shopify 4.9.4 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. package/dist/analytics-Q6QDIDYT.js +1 -0
  2. package/dist/analytics-VKKJNJ62.js +1 -0
  3. package/dist/assets/hydrogen/starter/CHANGELOG.md +7 -0
  4. package/dist/assets/hydrogen/starter/package.json +2 -2
  5. package/dist/assets/hydrogen/vite/package.json +3 -4
  6. package/dist/assets/hydrogen/vite/vite.config.js +3 -3
  7. package/dist/bootstrap.js +1 -1
  8. package/dist/{chunk-LKXFHYLI.js → chunk-24NUJTIH.js} +1 -1
  9. package/dist/chunk-2CMEKSI7.js +1 -0
  10. package/dist/chunk-2DID73ML.js +1 -0
  11. package/dist/chunk-2ORRV7GH.js +1 -0
  12. package/dist/chunk-2VSNFOKD.js +1 -0
  13. package/dist/chunk-335BUVBP.js +1 -0
  14. package/dist/{chunk-UEBUGSBT.js → chunk-3A3DZVEJ.js} +1 -1
  15. package/dist/chunk-3C6VLJ5D.js +319 -0
  16. package/dist/{chunk-PB5ZZET5.js → chunk-3G4HJO72.js} +30 -30
  17. package/dist/chunk-3LVCG4JB.js +1 -0
  18. package/dist/chunk-43KLFFP7.js +1 -0
  19. package/dist/chunk-43R5VGKT.js +1 -0
  20. package/dist/chunk-46MSIQ6Z.js +1 -0
  21. package/dist/chunk-4ARCB6DT.js +1 -0
  22. package/dist/chunk-4C2DAX5T.js +1 -0
  23. package/dist/chunk-4CRBTSVP.js +2 -0
  24. package/dist/chunk-4GCI2YCZ.js +8 -0
  25. package/dist/chunk-4GOJQKY5.js +1 -0
  26. package/dist/chunk-4RDFMBRG.js +9 -0
  27. package/dist/chunk-4SS6DXC7.js +5 -0
  28. package/dist/{chunk-J4J2YXH3.js → chunk-4TI7U2PN.js} +1 -1
  29. package/dist/{chunk-67EBF76X.js → chunk-52FDK2LC.js} +1 -1
  30. package/dist/chunk-53BG3NLH.js +3 -0
  31. package/dist/{chunk-LD6ZCTZ3.js → chunk-5B76DT7X.js} +1 -1
  32. package/dist/{chunk-A2VCTDKH.js → chunk-5NEGOQT6.js} +1 -1
  33. package/dist/{chunk-MW3JKGJH.js → chunk-5OMJFPQW.js} +1 -1
  34. package/dist/chunk-5TB52UUV.js +2 -0
  35. package/dist/chunk-5UWMXOHM.js +7 -0
  36. package/dist/chunk-6BNKBCCU.js +1 -0
  37. package/dist/chunk-6DXP7PQ7.js +1 -0
  38. package/dist/chunk-6PUU6ZNQ.js +1 -0
  39. package/dist/chunk-7GHSE7SG.js +1 -0
  40. package/dist/{chunk-7556AIVG.js → chunk-7IFE4UQY.js} +1 -1
  41. package/dist/chunk-7LAKWAKX.js +25 -0
  42. package/dist/chunk-7MVWDCI3.js +1 -0
  43. package/dist/chunk-7NSK77WG.js +3 -0
  44. package/dist/chunk-7QUZWCJZ.js +3 -0
  45. package/dist/chunk-7RPFJZLP.js +1 -0
  46. package/dist/{chunk-LJIJEGND.js → chunk-7UOA4DI7.js} +2 -2
  47. package/dist/chunk-7WPUV7GY.js +6 -0
  48. package/dist/chunk-7Y7AZRL3.js +10 -0
  49. package/dist/{chunk-NGSEF3UX.js → chunk-ACA2BGAD.js} +1 -1
  50. package/dist/chunk-AJMDF3QC.js +1 -0
  51. package/dist/{chunk-R7YJNDXW.js → chunk-AXC2MHHO.js} +1 -1
  52. package/dist/{chunk-DEF2G7S4.js → chunk-AYL6KBPE.js} +1 -1
  53. package/dist/chunk-BAHIL37I.js +1 -0
  54. package/dist/{chunk-RSC5NQAT.js → chunk-BCYTZ7LM.js} +1 -1
  55. package/dist/{chunk-AVMNIZAJ.js → chunk-BJPDJIS4.js} +1 -1
  56. package/dist/{chunk-7VAKNVFD.js → chunk-BN7ZXAZJ.js} +1 -1
  57. package/dist/chunk-BVSKBX7T.js +16 -0
  58. package/dist/chunk-BWRNXCVN.js +4 -0
  59. package/dist/{chunk-XNPUZRWP.js → chunk-C3KEDG33.js} +1 -1
  60. package/dist/{chunk-WEXOA4C4.js → chunk-C7V755IT.js} +1 -1
  61. package/dist/chunk-CCMDZX35.js +7 -0
  62. package/dist/chunk-CCQNP5YR.js +1 -0
  63. package/dist/chunk-CEIJKJOF.js +11 -0
  64. package/dist/chunk-CIK5BF7V.js +1 -0
  65. package/dist/{chunk-6YDLNP4G.js → chunk-CVVQQLCF.js} +1 -1
  66. package/dist/chunk-CW2T7EOQ.js +1 -0
  67. package/dist/chunk-CZ22VZDA.js +376 -0
  68. package/dist/{chunk-3G2ZQ2EF.js → chunk-D7NB7YR6.js} +1 -1
  69. package/dist/{chunk-DYPZX7MW.js → chunk-DFQ4WTET.js} +2 -2
  70. package/dist/chunk-DJAZBPYA.js +3 -0
  71. package/dist/chunk-DNMXVMJM.js +47 -0
  72. package/dist/{chunk-CLD3NZYD.js → chunk-EGCWR5AS.js} +1 -1
  73. package/dist/{chunk-BOE2ST6J.js → chunk-EITIW5OX.js} +1 -1
  74. package/dist/chunk-EMSF57ZB.js +1 -0
  75. package/dist/{chunk-ZEBMW5KS.js → chunk-EXFBZPZS.js} +1 -1
  76. package/dist/chunk-FDXHQZTO.js +26 -0
  77. package/dist/{chunk-Q2XLIWG4.js → chunk-FFHH5LOR.js} +1 -1
  78. package/dist/{chunk-MMQZO2W2.js → chunk-FNLECT7B.js} +1 -1
  79. package/dist/{chunk-PO5T44H3.js → chunk-FWB3GLMW.js} +1 -1
  80. package/dist/chunk-FZCGRIOM.js +1 -0
  81. package/dist/{chunk-G7JW4UIM.js → chunk-G6ZMSWEU.js} +1 -1
  82. package/dist/chunk-GAMC2BNY.js +7 -0
  83. package/dist/chunk-GB6E3ATN.js +4 -0
  84. package/dist/chunk-GCNA3HXH.js +8 -0
  85. package/dist/{chunk-IGDVKRB4.js → chunk-GFVKTWFT.js} +1 -1
  86. package/dist/chunk-GQNOVEKP.js +2 -0
  87. package/dist/{chunk-5BTLE67Z.js → chunk-GRGFA26K.js} +1 -1
  88. package/dist/chunk-GXORLBVN.js +2 -0
  89. package/dist/{chunk-3V4VL3SD.js → chunk-H4V55Y3Z.js} +118 -118
  90. package/dist/chunk-HCZG7YJ6.js +16 -0
  91. package/dist/chunk-HF4NDEX3.js +1 -0
  92. package/dist/chunk-HIRTL45Q.js +1 -0
  93. package/dist/chunk-I4OVLRQR.js +1 -0
  94. package/dist/{chunk-ENQXB532.js → chunk-I6FRVYGE.js} +1 -1
  95. package/dist/chunk-IEQ4UOH3.js +4 -0
  96. package/dist/{chunk-PIZDYS7T.js → chunk-IILLQOUC.js} +60 -60
  97. package/dist/{chunk-45SZ5PSE.js → chunk-IQVRP7CT.js} +1 -1
  98. package/dist/chunk-IUP7POIE.js +6 -0
  99. package/dist/chunk-IUTZIN2T.js +10 -0
  100. package/dist/chunk-IWEKM5Y3.js +1 -0
  101. package/dist/chunk-IWTNUJGY.js +2 -0
  102. package/dist/chunk-J6TW43TG.js +1 -0
  103. package/dist/chunk-JDR6UVZA.js +8 -0
  104. package/dist/{chunk-CVFPY2SH.js → chunk-JEA3C7ON.js} +1 -1
  105. package/dist/chunk-JOJV5E2K.js +1 -0
  106. package/dist/chunk-JYMDWR25.js +1 -0
  107. package/dist/{chunk-TPHHQAUD.js → chunk-KDPQXURV.js} +1 -1
  108. package/dist/{chunk-MW3IMZJ5.js → chunk-KGRIYAMA.js} +1 -1
  109. package/dist/chunk-KJQDS5HI.js +1 -0
  110. package/dist/chunk-KKPOOIE4.js +2 -0
  111. package/dist/{chunk-VS7QVU3Z.js → chunk-KSDU4YOB.js} +1 -1
  112. package/dist/chunk-L7MSPGDS.js +5 -0
  113. package/dist/{chunk-43URS56H.js → chunk-LDU5T3DN.js} +1 -1
  114. package/dist/chunk-LHKVXJPX.js +1 -0
  115. package/dist/{chunk-EO4YJFMY.js → chunk-LMQGNECW.js} +86 -200
  116. package/dist/{chunk-TQ7URMGS.js → chunk-LQ7ENG4V.js} +1 -1
  117. package/dist/chunk-LVLAOBJM.js +103 -0
  118. package/dist/chunk-LWCTKI4Z.js +18 -0
  119. package/dist/chunk-M3ACZWMR.js +1 -0
  120. package/dist/chunk-M4BVLMPH.js +31 -0
  121. package/dist/{chunk-NCRWOW6F.js → chunk-M5TGCSUK.js} +1 -1
  122. package/dist/chunk-M7LPHCP2.js +274 -0
  123. package/dist/{chunk-IDKRJ2F4.js → chunk-MDRVCBDO.js} +1 -1
  124. package/dist/chunk-MR2AUT7Q.js +1 -0
  125. package/dist/chunk-MXJAH2GW.js +5 -0
  126. package/dist/{chunk-UU6BRRYS.js → chunk-MYAIWSOO.js} +1 -1
  127. package/dist/{chunk-NT4A37HG.js → chunk-N2RFDHRY.js} +1 -1
  128. package/dist/{chunk-GSE6FXZU.js → chunk-NB4BRW3H.js} +1 -1
  129. package/dist/chunk-NDKSG4CC.js +97 -0
  130. package/dist/chunk-NK2MGR6A.js +1 -0
  131. package/dist/chunk-NOH63WC6.js +12 -0
  132. package/dist/{chunk-BVB3DTNE.js → chunk-OGWPS55W.js} +1 -1
  133. package/dist/chunk-OQ5CLM2H.js +4 -0
  134. package/dist/{chunk-PVAZCZSY.js → chunk-OQU3HLAE.js} +1 -1
  135. package/dist/chunk-OVWUGAEU.js +11 -0
  136. package/dist/chunk-OX7UVDSU.js +6 -0
  137. package/dist/chunk-P33TONYG.js +1 -0
  138. package/dist/chunk-PEVIRAMR.js +6 -0
  139. package/dist/{chunk-YPCXVZ2N.js → chunk-PGLWZMJU.js} +4 -4
  140. package/dist/chunk-PIAD3F6M.js +16 -0
  141. package/dist/chunk-PMHP57MH.js +20 -0
  142. package/dist/{chunk-F3PZGSOY.js → chunk-POKY4RWR.js} +1 -1
  143. package/dist/chunk-PSSYLJG4.js +2 -0
  144. package/dist/chunk-PYIICTLX.js +1 -0
  145. package/dist/chunk-PZUGDE7N.js +2 -0
  146. package/dist/{chunk-NU5WLZ6Y.js → chunk-Q2SZCZE7.js} +1 -1
  147. package/dist/{chunk-MUM34KUM.js → chunk-Q2XRITUG.js} +1 -1
  148. package/dist/chunk-Q5MEFIMV.js +4 -0
  149. package/dist/chunk-Q66CI37F.js +7 -0
  150. package/dist/chunk-QFWWCZOI.js +1 -0
  151. package/dist/{chunk-TR4OWSEX.js → chunk-QFYLJVJW.js} +1 -1
  152. package/dist/chunk-QKVVJXWS.js +3 -0
  153. package/dist/chunk-QN3774QI.js +1 -0
  154. package/dist/chunk-R2BDABJD.js +213 -0
  155. package/dist/{chunk-7HWMURCW.js → chunk-R7EMV77H.js} +1 -1
  156. package/dist/chunk-RFGEM5JC.js +3 -0
  157. package/dist/{chunk-7A3RW2VM.js → chunk-RVQV6G5M.js} +1 -1
  158. package/dist/chunk-S67I4E7M.js +5 -0
  159. package/dist/chunk-SFPXYHHL.js +1 -0
  160. package/dist/{chunk-4OCVXE5Y.js → chunk-SFQEHDJY.js} +1 -1
  161. package/dist/chunk-SL3VBI62.js +3 -0
  162. package/dist/{chunk-LOWSU4BB.js → chunk-SNNZ4U2W.js} +1 -1
  163. package/dist/chunk-T2IUXXCT.js +1 -0
  164. package/dist/chunk-TPSA4JN5.js +1 -0
  165. package/dist/chunk-TTEF7GTX.js +1 -0
  166. package/dist/{chunk-FQL2WEKX.js → chunk-U25W35TX.js} +1 -1
  167. package/dist/chunk-UIQL5ZF3.js +1 -0
  168. package/dist/chunk-UK6576EO.js +1 -0
  169. package/dist/chunk-ULD7CIOY.js +4 -0
  170. package/dist/{chunk-D3KFKT4D.js → chunk-UOS2XLGG.js} +1 -1
  171. package/dist/{chunk-EMH7OHCW.js → chunk-UVRKTMF7.js} +1 -1
  172. package/dist/{chunk-ZTICX3AO.js → chunk-UWMZ5CSB.js} +1 -1
  173. package/dist/chunk-UZROQRLX.js +2 -0
  174. package/dist/{chunk-5BGUKF7L.js → chunk-V75WUEFU.js} +1 -1
  175. package/dist/chunk-VB7YQMAM.js +5 -0
  176. package/dist/chunk-VHUD3CBC.js +3 -0
  177. package/dist/chunk-VMMUJN4T.js +17 -0
  178. package/dist/{chunk-S36VGP37.js → chunk-VW6QS7DO.js} +1 -1
  179. package/dist/chunk-VWH3VPYI.js +1 -0
  180. package/dist/{chunk-4TF7ER72.js → chunk-WBJ6ZHYH.js} +1 -1
  181. package/dist/chunk-WDFCOZAY.js +16 -0
  182. package/dist/chunk-WFWISGLS.js +1 -0
  183. package/dist/chunk-WGUOLSMG.js +1 -0
  184. package/dist/{chunk-PFXNBHQQ.js → chunk-WJSUIUBW.js} +2 -2
  185. package/dist/{chunk-TFXUDHCP.js → chunk-WMAFG2JD.js} +1 -1
  186. package/dist/chunk-X2H6I2WW.js +5 -0
  187. package/dist/{chunk-DSS4ECIH.js → chunk-X7HVAVSZ.js} +1 -1
  188. package/dist/{chunk-NYYXH2SX.js → chunk-XBQDMGUN.js} +1 -1
  189. package/dist/chunk-XITZIDCL.js +18 -0
  190. package/dist/chunk-XKRJKUA7.js +1 -0
  191. package/dist/{chunk-FEQHCE2E.js → chunk-XM7YUXTF.js} +2 -2
  192. package/dist/chunk-XMODGI45.js +1 -0
  193. package/dist/{chunk-B3M3KIOU.js → chunk-XNNKLUTN.js} +1 -1
  194. package/dist/chunk-XTREQ4A2.js +1 -0
  195. package/dist/chunk-YGYEM6QO.js +1 -0
  196. package/dist/{chunk-LWU5TKNA.js → chunk-YKS7MH3F.js} +9 -6
  197. package/dist/chunk-YTUDXZLN.js +1 -0
  198. package/dist/{chunk-I3J63RFV.js → chunk-YTUUU33R.js} +1 -1
  199. package/dist/chunk-YVVU4J5O.js +3 -0
  200. package/dist/{chunk-4TZCRMBJ.js → chunk-YVY32DNA.js} +1 -1
  201. package/dist/chunk-Z5SILNH2.js +7 -0
  202. package/dist/chunk-ZAA2DXK5.js +5 -0
  203. package/dist/chunk-ZDQO6CNY.js +1 -0
  204. package/dist/chunk-ZGV3HNEV.js +1 -0
  205. package/dist/chunk-ZQDDRIBA.js +22 -0
  206. package/dist/{chunk-QTLGMJDW.js → chunk-ZT5WFUKJ.js} +4 -4
  207. package/dist/chunk-ZYQ2XWC5.js +5 -0
  208. package/dist/cli/commands/app/build.js +1 -1
  209. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  210. package/dist/cli/commands/app/bulk/execute.js +1 -1
  211. package/dist/cli/commands/app/bulk/status.js +1 -1
  212. package/dist/cli/commands/app/config/link.js +1 -1
  213. package/dist/cli/commands/app/config/pull.js +1 -1
  214. package/dist/cli/commands/app/config/use.js +1 -1
  215. package/dist/cli/commands/app/config/validate.js +1 -1
  216. package/dist/cli/commands/app/demo/watcher.js +1 -1
  217. package/dist/cli/commands/app/deploy.js +1 -1
  218. package/dist/cli/commands/app/dev/clean.js +1 -1
  219. package/dist/cli/commands/app/dev.js +1 -1
  220. package/dist/cli/commands/app/env/pull.js +1 -1
  221. package/dist/cli/commands/app/env/show.js +1 -1
  222. package/dist/cli/commands/app/execute.js +1 -1
  223. package/dist/cli/commands/app/function/build.js +1 -1
  224. package/dist/cli/commands/app/function/info.js +1 -1
  225. package/dist/cli/commands/app/function/replay.js +1 -1
  226. package/dist/cli/commands/app/function/run.js +1 -1
  227. package/dist/cli/commands/app/function/schema.js +1 -1
  228. package/dist/cli/commands/app/function/typegen.js +1 -1
  229. package/dist/cli/commands/app/generate/extension.js +1 -1
  230. package/dist/cli/commands/app/graphiql.js +1 -1
  231. package/dist/cli/commands/app/import/channel-config.js +1 -1
  232. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  233. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  234. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  235. package/dist/cli/commands/app/import-extensions.js +1 -1
  236. package/dist/cli/commands/app/info.js +1 -1
  237. package/dist/cli/commands/app/init.js +1 -1
  238. package/dist/cli/commands/app/logs.js +1 -1
  239. package/dist/cli/commands/app/release.js +1 -1
  240. package/dist/cli/commands/app/security/check.js +1 -1
  241. package/dist/cli/commands/app/security/clean.js +1 -1
  242. package/dist/cli/commands/app/security/instructions.js +1 -1
  243. package/dist/cli/commands/app/security/record.js +1 -1
  244. package/dist/cli/commands/app/security/review.js +1 -1
  245. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  246. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  247. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  248. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  249. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  250. package/dist/cli/commands/app/versions/list.js +1 -1
  251. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  252. package/dist/cli/commands/auth/login.js +1 -1
  253. package/dist/cli/commands/auth/logout.js +1 -1
  254. package/dist/cli/commands/cache/clear.js +1 -1
  255. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  256. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  257. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  258. package/dist/cli/commands/debug/command-flags.js +1 -1
  259. package/dist/cli/commands/doc/fetch.d.ts +34 -1
  260. package/dist/cli/commands/doc/fetch.js +1 -1
  261. package/dist/cli/commands/doc/search.d.ts +53 -1
  262. package/dist/cli/commands/doc/search.js +1 -1
  263. package/dist/cli/commands/docs/generate.js +1 -1
  264. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  265. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  266. package/dist/cli/commands/help.d.ts +6 -6
  267. package/dist/cli/commands/help.js +1 -1
  268. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  269. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  270. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  271. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  272. package/dist/cli/commands/notifications/generate.js +1 -1
  273. package/dist/cli/commands/notifications/list.js +1 -1
  274. package/dist/cli/commands/organization/list.js +1 -1
  275. package/dist/cli/commands/search.js +1 -1
  276. package/dist/cli/commands/send-analytics.js +1 -1
  277. package/dist/cli/commands/theme/check.js +1 -1
  278. package/dist/cli/commands/theme/console.js +1 -1
  279. package/dist/cli/commands/theme/delete.js +1 -1
  280. package/dist/cli/commands/theme/dev.js +1 -1
  281. package/dist/cli/commands/theme/duplicate.js +1 -1
  282. package/dist/cli/commands/theme/info.js +1 -1
  283. package/dist/cli/commands/theme/init.js +1 -1
  284. package/dist/cli/commands/theme/language-server.js +1 -1
  285. package/dist/cli/commands/theme/list.js +1 -1
  286. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  287. package/dist/cli/commands/theme/open.js +1 -1
  288. package/dist/cli/commands/theme/package.js +1 -1
  289. package/dist/cli/commands/theme/preview.js +1 -1
  290. package/dist/cli/commands/theme/profile.js +1 -1
  291. package/dist/cli/commands/theme/publish.js +1 -1
  292. package/dist/cli/commands/theme/pull.js +1 -1
  293. package/dist/cli/commands/theme/push.js +1 -1
  294. package/dist/cli/commands/theme/rename.js +1 -1
  295. package/dist/cli/commands/theme/share.js +1 -1
  296. package/dist/cli/commands/upgrade.d.ts +64 -0
  297. package/dist/cli/commands/upgrade.js +1 -1
  298. package/dist/cli/commands/version.js +1 -1
  299. package/dist/cli/help.js +1 -1
  300. package/dist/cli/services/commands/doc/fetch-result.d.ts +2 -0
  301. package/dist/cli/services/commands/doc/fetch-result.js +22 -0
  302. package/dist/cli/services/commands/doc/fetch.d.ts +2 -1
  303. package/dist/cli/services/commands/doc/fetch.js +2 -15
  304. package/dist/cli/services/commands/doc/search-result.d.ts +2 -0
  305. package/dist/cli/services/commands/doc/search-result.js +14 -0
  306. package/dist/cli/services/commands/doc/search.d.ts +9 -1
  307. package/dist/cli/services/commands/doc/search.js +27 -2
  308. package/dist/cli/services/commands/doc/types.d.ts +107 -0
  309. package/dist/cli/services/commands/doc/types.js +47 -0
  310. package/dist/cli/services/commands/help/types.d.ts +6 -6
  311. package/dist/command-event-context-LFUZ7UCA.js +1 -0
  312. package/dist/command-json-schema-2UMKY7MY.js +1 -0
  313. package/dist/command-registry.js +1 -1
  314. package/dist/conf-store-RI3TL6I4.js +1 -0
  315. package/dist/custom-oclif-loader-IZCKN67O.js +1 -0
  316. package/dist/deprecations-IFVUXXDB.js +1 -0
  317. package/dist/dist-4H2B7BMN.js +1 -0
  318. package/dist/dist-QNWOGQN3.js +1 -0
  319. package/dist/{environment-RSUK27TA.js → environment-O7ECODHU.js} +1 -1
  320. package/dist/environments-CYMEN7NV.js +1 -0
  321. package/dist/error-IL6WQMSW.js +1 -0
  322. package/dist/error-handler-74HKA23T.js +1 -0
  323. package/dist/fs-AINFLJ2E.js +1 -0
  324. package/dist/hooks/did-you-mean.js +1 -1
  325. package/dist/hooks/hydrogen-init.js +1 -1
  326. package/dist/hooks/plugin-plugins.js +1 -1
  327. package/dist/hooks/postrun.js +1 -1
  328. package/dist/hooks/prerun.js +1 -1
  329. package/dist/hooks/public-metadata.js +1 -1
  330. package/dist/hooks/sensitive-metadata.js +1 -1
  331. package/dist/hooks/tunnel-provider.js +1 -1
  332. package/dist/hooks/tunnel-start.js +1 -1
  333. package/dist/index.js +13 -13
  334. package/dist/is-global-2VLKV46Q.js +1 -0
  335. package/dist/json-error-HZB5YIHV.js +1 -0
  336. package/dist/{lib-TYM5B75S.js → lib-PJHT4MKY.js} +1 -1
  337. package/dist/{lib-55QUD4AJ.js → lib-VKSQ65BQ.js} +1 -1
  338. package/dist/{lib-PH52G55H.js → lib-YEZOHXF3.js} +1 -1
  339. package/dist/{local-R3UAQN7T.js → local-KOZETREJ.js} +1 -1
  340. package/dist/{metadata-JWJG4JV4.js → metadata-IBPHZB7N.js} +1 -1
  341. package/dist/{morph-BABFBRSW.js → morph-CRY35DIK.js} +1 -1
  342. package/dist/node-package-manager-DXSRNEDC.js +1 -0
  343. package/dist/notifications-system-XA3EBOGJ.js +1 -0
  344. package/dist/os-X73O7BAB.js +1 -0
  345. package/dist/out-B2GISN65.js +1 -0
  346. package/dist/output-3OYXK3Z5.js +1 -0
  347. package/dist/{path-CPAYTWQW.js → path-3L2QRACZ.js} +1 -1
  348. package/dist/system-JWYYT4PM.js +1 -0
  349. package/dist/tsconfig.tsbuildinfo +1 -1
  350. package/dist/ui-PCG5D6RZ.js +1 -0
  351. package/dist/upgrade-7U2TUNC4.js +1 -0
  352. package/dist/version-7DGU2KYH.js +1 -0
  353. package/dist/version-SXQTRBXB.js +1 -0
  354. package/dist/workerd-MQZ3NKJI.js +18 -0
  355. package/oclif.manifest.json +1664 -427
  356. package/package.json +8 -8
  357. package/dist/analytics-APDNTBDE.js +0 -1
  358. package/dist/analytics-LX52KYSE.js +0 -1
  359. package/dist/chunk-2PDVBGQH.js +0 -7
  360. package/dist/chunk-2YVSZFXJ.js +0 -4
  361. package/dist/chunk-35WQTGN3.js +0 -5
  362. package/dist/chunk-37BGAWAW.js +0 -2
  363. package/dist/chunk-3C4WVKSO.js +0 -6
  364. package/dist/chunk-3LHE4GIX.js +0 -1
  365. package/dist/chunk-47IQIIFX.js +0 -383
  366. package/dist/chunk-4ES7BJEK.js +0 -1
  367. package/dist/chunk-4IFY7V7W.js +0 -1
  368. package/dist/chunk-4JGWKUJN.js +0 -2
  369. package/dist/chunk-4O5GQ3DS.js +0 -7
  370. package/dist/chunk-4O7LK5RG.js +0 -26
  371. package/dist/chunk-4TFJ5RW7.js +0 -8
  372. package/dist/chunk-4ZNBEMRT.js +0 -20
  373. package/dist/chunk-5JIJDUXX.js +0 -20
  374. package/dist/chunk-66YRAUWX.js +0 -3
  375. package/dist/chunk-6A4H3HPY.js +0 -7
  376. package/dist/chunk-6HPUOCFF.js +0 -1
  377. package/dist/chunk-6IDEDOXW.js +0 -2
  378. package/dist/chunk-6IMHGT7F.js +0 -8
  379. package/dist/chunk-6MC2BEW4.js +0 -1
  380. package/dist/chunk-73D5O7A3.js +0 -1
  381. package/dist/chunk-7E4MJCVE.js +0 -10
  382. package/dist/chunk-7HNRK2CR.js +0 -1
  383. package/dist/chunk-7SJHVJ3W.js +0 -5
  384. package/dist/chunk-ALK66U3O.js +0 -3
  385. package/dist/chunk-AMLCWRHU.js +0 -4
  386. package/dist/chunk-AYIU6Z4C.js +0 -1
  387. package/dist/chunk-BIWG3FQQ.js +0 -5
  388. package/dist/chunk-BQ3U3CQV.js +0 -1
  389. package/dist/chunk-C6IBY7NW.js +0 -16
  390. package/dist/chunk-CQF5NDTJ.js +0 -4
  391. package/dist/chunk-DMDLJRLW.js +0 -1
  392. package/dist/chunk-DMNWSUKV.js +0 -5
  393. package/dist/chunk-FK7GA4QQ.js +0 -1
  394. package/dist/chunk-FO2R6KHG.js +0 -1
  395. package/dist/chunk-FOAV642V.js +0 -1
  396. package/dist/chunk-GE4MLO3C.js +0 -5
  397. package/dist/chunk-GM4EFJJF.js +0 -7
  398. package/dist/chunk-GN66BRYF.js +0 -1
  399. package/dist/chunk-GPRZYFDE.js +0 -1
  400. package/dist/chunk-GZ7VGCVW.js +0 -3
  401. package/dist/chunk-HASIOUH2.js +0 -3
  402. package/dist/chunk-HILYTMVA.js +0 -1
  403. package/dist/chunk-HJHS23Q3.js +0 -1
  404. package/dist/chunk-HLPAVELJ.js +0 -1
  405. package/dist/chunk-HPM3HF7A.js +0 -1
  406. package/dist/chunk-HQJ62PII.js +0 -3
  407. package/dist/chunk-HQY6JM6G.js +0 -6
  408. package/dist/chunk-HSYMUYEZ.js +0 -359
  409. package/dist/chunk-I5PQZRYM.js +0 -32
  410. package/dist/chunk-IPZ6LUJV.js +0 -4
  411. package/dist/chunk-J4NBPC57.js +0 -1
  412. package/dist/chunk-J6LQR2F6.js +0 -7
  413. package/dist/chunk-JYGZD4HM.js +0 -1
  414. package/dist/chunk-K3HUQLIC.js +0 -6
  415. package/dist/chunk-K7D53KSJ.js +0 -1
  416. package/dist/chunk-KQFA5YTT.js +0 -97
  417. package/dist/chunk-KTD7VLHL.js +0 -2
  418. package/dist/chunk-L4DFMMOI.js +0 -1
  419. package/dist/chunk-LJZTSQRD.js +0 -11
  420. package/dist/chunk-LLPB6JN5.js +0 -9
  421. package/dist/chunk-LYIXRMQJ.js +0 -46
  422. package/dist/chunk-MCNK5SJ6.js +0 -2
  423. package/dist/chunk-MJZSSCGD.js +0 -5
  424. package/dist/chunk-N55MSO3X.js +0 -12
  425. package/dist/chunk-N5AZZYQA.js +0 -4
  426. package/dist/chunk-NCVGCVQ5.js +0 -6
  427. package/dist/chunk-O5FFMTJE.js +0 -25
  428. package/dist/chunk-OE3HSNSE.js +0 -16
  429. package/dist/chunk-ONF7XXEL.js +0 -1
  430. package/dist/chunk-PG4S5HJJ.js +0 -5
  431. package/dist/chunk-PHG4DASY.js +0 -18
  432. package/dist/chunk-PP4VCR4Y.js +0 -1
  433. package/dist/chunk-PWS4VFSD.js +0 -1
  434. package/dist/chunk-Q37WAD6F.js +0 -1
  435. package/dist/chunk-Q43LBSPT.js +0 -1
  436. package/dist/chunk-QAJZUJR5.js +0 -1
  437. package/dist/chunk-QO5RNGWA.js +0 -1
  438. package/dist/chunk-QPQS2YU3.js +0 -1
  439. package/dist/chunk-QUXQM3S3.js +0 -1
  440. package/dist/chunk-R3KSOCMB.js +0 -6
  441. package/dist/chunk-R74WHKHH.js +0 -15
  442. package/dist/chunk-RJSQMKKS.js +0 -1
  443. package/dist/chunk-RK2V6OIJ.js +0 -2
  444. package/dist/chunk-RUHQNF2W.js +0 -1
  445. package/dist/chunk-RXTLNUPF.js +0 -1
  446. package/dist/chunk-SNE4RHM4.js +0 -1
  447. package/dist/chunk-SQAS5RVZ.js +0 -10
  448. package/dist/chunk-SZI6G247.js +0 -103
  449. package/dist/chunk-TVCWDEVS.js +0 -1
  450. package/dist/chunk-TYMYIUIQ.js +0 -1
  451. package/dist/chunk-UIC7K2HX.js +0 -7
  452. package/dist/chunk-UNHT4ZFP.js +0 -317
  453. package/dist/chunk-UQ6ALA3Y.js +0 -3
  454. package/dist/chunk-UWI76E2L.js +0 -18
  455. package/dist/chunk-VE35YELD.js +0 -1
  456. package/dist/chunk-VGBUN3CZ.js +0 -17
  457. package/dist/chunk-VMNOSVPT.js +0 -8
  458. package/dist/chunk-VNFUCH6T.js +0 -1
  459. package/dist/chunk-W4KE7AO6.js +0 -1
  460. package/dist/chunk-WEPO4J2F.js +0 -19
  461. package/dist/chunk-WLWHCUPZ.js +0 -1
  462. package/dist/chunk-XGKCPD6W.js +0 -1
  463. package/dist/chunk-XNVOKAF2.js +0 -1
  464. package/dist/chunk-XSMCQLJW.js +0 -1
  465. package/dist/chunk-XUUIBSLW.js +0 -1
  466. package/dist/chunk-XWQM2NZ2.js +0 -2
  467. package/dist/chunk-Y3PY5LP7.js +0 -3
  468. package/dist/chunk-Y62EMOQA.js +0 -1
  469. package/dist/chunk-Y743UVBS.js +0 -16
  470. package/dist/chunk-YBSX53QP.js +0 -1
  471. package/dist/chunk-YHCP326A.js +0 -16
  472. package/dist/chunk-YHESTFMZ.js +0 -4
  473. package/dist/chunk-YT27FIQN.js +0 -275
  474. package/dist/chunk-YTR5JHNJ.js +0 -2
  475. package/dist/chunk-YYA5VGDW.js +0 -1
  476. package/dist/chunk-Z6X2GT6Q.js +0 -1
  477. package/dist/chunk-ZEE32UH6.js +0 -1
  478. package/dist/cli/commands/app/app-logs/sources.js +0 -1
  479. package/dist/command-json-schema-SS4GDJTQ.js +0 -1
  480. package/dist/conf-store-54YJCIDK.js +0 -1
  481. package/dist/custom-oclif-loader-3UBH7Q7R.js +0 -1
  482. package/dist/deprecations-ZX7ZKF6L.js +0 -1
  483. package/dist/dist-JMNE7MP6.js +0 -1
  484. package/dist/dist-M2AXGBOL.js +0 -1
  485. package/dist/environments-KD2IDYPG.js +0 -1
  486. package/dist/error-AA6LW3PN.js +0 -1
  487. package/dist/error-handler-4VW3AV2G.js +0 -1
  488. package/dist/fs-4QZCAEP7.js +0 -1
  489. package/dist/is-global-FKG327CG.js +0 -1
  490. package/dist/json-error-32ETFU3V.js +0 -1
  491. package/dist/node-package-manager-M4XHUTQR.js +0 -1
  492. package/dist/notifications-system-QVM2JWKB.js +0 -1
  493. package/dist/os-FEHBQQKP.js +0 -1
  494. package/dist/out-53ABAVL7.js +0 -1
  495. package/dist/output-2LS5AOAH.js +0 -1
  496. package/dist/system-TMD2LYZM.js +0 -1
  497. package/dist/ui-FNPICAAH.js +0 -1
  498. package/dist/upgrade-YYPP5VZY.js +0 -1
  499. package/dist/version-OX3MORI6.js +0 -1
  500. package/dist/version-P7D5ME4Z.js +0 -1
  501. package/dist/workerd-TKVRZK2F.js +0 -18
@@ -1 +1 @@
1
- import{e as c,f as m}from"./chunk-7E4MJCVE.js";import{g as F}from"./chunk-VKWPEFWQ.js";F();F();F();function o(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var S=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,B=["\x1B","\x9B"],E=e=>`${B[0]}[${e}m`,y=(e,t,a)=>{let i=[];e=[...e];for(let f of e){let s=f;f.includes(";")&&(f=f.split(";")[0][0]+"0");let r=m.codes.get(Number.parseInt(f,10));if(r){let n=e.indexOf(r.toString());n===-1?i.push(E(t?r:s)):e.splice(n,1)}else if(t){i.push(E(0));break}else i.push(E(s))}if(t&&(i=i.filter((f,s)=>i.indexOf(f)===s),a!==void 0)){let f=E(m.codes.get(Number.parseInt(a,10)));i=i.reduce((s,r)=>r===f?[r,...s]:[...s,r],[])}return i.join("")};function p(e,t,a){let i=[...e],f=[],s=typeof a=="number"?a:i.length,r=!1,n,u=0,l="";for(let[h,x]of i.entries()){let b=!1;if(B.includes(x)){let A=/\d[^m]*/.exec(e.slice(h,h+18));n=A&&A.length>0?A[0]:void 0,u<s&&(r=!0,n!==void 0&&f.push(n))}else r&&x==="m"&&(r=!1,b=!0);if(!r&&!b&&u++,!S.test(x)&&o(x.codePointAt())&&(u++,typeof a!="number"&&s++),u>t&&u<=s)l+=x;else if(u===t&&!r&&n!==void 0)l=y(f);else if(u>=s){l+=y(f,!0,n);break}}return l}function g(e,t,a){if(e.charAt(t)===" ")return t;let i=a?1:-1;for(let f=0;f<=3;f++){let s=t+f*i;if(e.charAt(s)===" ")return s}return t}function C(e,t,a={}){let{position:i="end",space:f=!1,preferTruncationOnSpace:s=!1}=a,{truncationCharacter:r="\u2026"}=a;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return"";if(t===1)return r;let n=c(e);if(n<=t)return e;if(i==="start"){if(s){let u=g(e,n-t+1,!0);return r+p(e,u,n).trim()}return f===!0&&(r+=" "),r+p(e,n-t+c(r),n)}if(i==="middle"){f===!0&&(r=` ${r} `);let u=Math.floor(t/2);if(s){let l=g(e,u),h=g(e,n-(t-u)+1,!0);return p(e,0,l)+r+p(e,h,n).trim()}return p(e,0,u)+r+p(e,n-(t-u)+c(r),n)}if(i==="end"){if(s){let u=g(e,t-1);return p(e,0,u)+r}return f===!0&&(r=` ${r}`),p(e,0,t-c(r))+r}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${i}`)}export{o as a,C as b};
1
+ import{e as c,f as m}from"./chunk-7Y7AZRL3.js";import{g as F}from"./chunk-VKWPEFWQ.js";F();F();F();function o(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var S=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,B=["\x1B","\x9B"],E=e=>`${B[0]}[${e}m`,y=(e,t,a)=>{let i=[];e=[...e];for(let f of e){let s=f;f.includes(";")&&(f=f.split(";")[0][0]+"0");let r=m.codes.get(Number.parseInt(f,10));if(r){let n=e.indexOf(r.toString());n===-1?i.push(E(t?r:s)):e.splice(n,1)}else if(t){i.push(E(0));break}else i.push(E(s))}if(t&&(i=i.filter((f,s)=>i.indexOf(f)===s),a!==void 0)){let f=E(m.codes.get(Number.parseInt(a,10)));i=i.reduce((s,r)=>r===f?[r,...s]:[...s,r],[])}return i.join("")};function p(e,t,a){let i=[...e],f=[],s=typeof a=="number"?a:i.length,r=!1,n,u=0,l="";for(let[h,x]of i.entries()){let b=!1;if(B.includes(x)){let A=/\d[^m]*/.exec(e.slice(h,h+18));n=A&&A.length>0?A[0]:void 0,u<s&&(r=!0,n!==void 0&&f.push(n))}else r&&x==="m"&&(r=!1,b=!0);if(!r&&!b&&u++,!S.test(x)&&o(x.codePointAt())&&(u++,typeof a!="number"&&s++),u>t&&u<=s)l+=x;else if(u===t&&!r&&n!==void 0)l=y(f);else if(u>=s){l+=y(f,!0,n);break}}return l}function g(e,t,a){if(e.charAt(t)===" ")return t;let i=a?1:-1;for(let f=0;f<=3;f++){let s=t+f*i;if(e.charAt(s)===" ")return s}return t}function C(e,t,a={}){let{position:i="end",space:f=!1,preferTruncationOnSpace:s=!1}=a,{truncationCharacter:r="\u2026"}=a;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return"";if(t===1)return r;let n=c(e);if(n<=t)return e;if(i==="start"){if(s){let u=g(e,n-t+1,!0);return r+p(e,u,n).trim()}return f===!0&&(r+=" "),r+p(e,n-t+c(r),n)}if(i==="middle"){f===!0&&(r=` ${r} `);let u=Math.floor(t/2);if(s){let l=g(e,u),h=g(e,n-(t-u)+1,!0);return p(e,0,l)+r+p(e,h,n).trim()}return p(e,0,u)+r+p(e,n-(t-u)+c(r),n)}if(i==="end"){if(s){let u=g(e,t-1);return p(e,0,u)+r}return f===!0&&(r=` ${r}`),p(e,0,t-c(r))+r}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${i}`)}export{o as a,C as b};
@@ -0,0 +1,103 @@
1
+ import{a as z,b as $t}from"./chunk-JLGA3B7P.js";import{a as Tt,b as St,f as Ce,g as le,h as O,j as de,l as Pt,o as vt}from"./chunk-DNMXVMJM.js";import{a as J,l as Rt,m as Ft}from"./chunk-5TB52UUV.js";import{s as ce,t as B}from"./chunk-DJAZBPYA.js";import{a as U,b as M,e as dt,g as ut,i as pt,j as mt,k as ft,n as ht,p as gt,q as yt,r as ae,s as I,u as Et,w as wt}from"./chunk-Q7BOSHWX.js";import{da as xt}from"./chunk-M5TGCSUK.js";import{va as q,xa as D}from"./chunk-H4V55Y3Z.js";import{B as L,C as re,D as ct,U as lt,z as at}from"./chunk-CZ22VZDA.js";import{c as it}from"./chunk-335BUVBP.js";import{h as k}from"./chunk-2VSNFOKD.js";import{Bb as v,Cb as W,O as nt,Sa as b,Va as N,Z as _e,ab as qe,la as _,na as Le,qb as C,sb as oe,ta as je,va as rt,xa as ot,yb as ie}from"./chunk-LWCTKI4Z.js";import{c as x,e as et,f as A,h as tt,i as st,j as H,n as Ie}from"./chunk-IWTNUJGY.js";import{e as Ke,g as m}from"./chunk-VKWPEFWQ.js";m();m();m();var ps=".shopifyignore",kt=/templates\/\*(\.(json|liquid))?$/,bt=new Set;function ue(e,t={}){let s=t.ignoreFromFile??[],n=t.ignore??[],r=t.only??[],[o=[],i=[]]=Ae(s),[a=[],u=[]]=Ae(n),[p=[],c=[]]=Ae(r),l=e.filter(G(o,".shopifyignore"));return l=l.filter(G(a,"--ignore")),l=l.filter(G(p,"--only",!0)),i.length>0&&(l=l.concat(e.filter(G(i,".shopifyignore",!0)))),u.length>0&&(l=l.concat(e.filter(G(u,"--ignore",!0)))),c.length>0&&(l=l.filter(G(c,"--only"))),nt(l,w=>w.key)}function G(e,t,s=!1){return({key:n})=>{if(e.length===0)return!0;let r=e.some(i=>ms(n,i)||gs(i)&&hs(n,ys(i)));return(s?!r:r)?(v(`Ignoring theme file ${n} via ${t}...`),!1):!0}}async function It(e){let t=x(e,ps);return await b(t)?(await _(t,{encoding:"utf8"})).split(/(\r\n|\r|\n)/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")):[]}function Ae(e){let t=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return[e.filter(n=>!n.startsWith("!")),t]}function ms(e,t){let s={matchBase:!0,noglobstar:!0};return qe(e,t,s)?!0:(!t.includes("*")&&t.endsWith("/")&&!bt.has(t)&&(bt.add(t),L({headline:"Directory pattern may be misleading.",body:`For more reliable matching, consider using "${t}*" or "${t}*.<file_extension>" instead.`})),fs(t)?qe(e,t.replace(kt,"templates/**/*$1"),s):!1)}function fs(e){return kt.test(e)}function hs(e,t){return t.test(e)}function gs(e){return e.startsWith("/")&&e.endsWith("/")}function ys(e){return new RegExp(e.slice(1,-1))}m();import _t from"fs/promises";var pe=class{notifyPath;isValidUrl;constructor(t){this.notifyPath=t,this.isValidUrl=this.validateUrl(t),this.notifyPath===""&&W("Notification skipped: notifyPath is an empty string")}async notify(t){if(this.notifyPath!=="")try{v(`Notifying filechange listener at ${this.notifyPath}...`),this.isValidUrl?await this.notifyUrl(t):await this.notifyFile(t)}catch(s){q(s);let n=`Failed to notify filechange listener at ${this.notifyPath}`;s instanceof Error&&(n=n.concat(`: ${s.message}`)),W(n)}}async notifyUrl(t){let s=await fetch(this.notifyPath,{method:"POST",body:JSON.stringify({files:[t]}),headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error(s.statusText)}async notifyFile(t){await _t.writeFile(this.notifyPath,t),await _t.utimes(this.notifyPath,new Date,new Date)}validateUrl(t){try{let s=new URL(t);return s.protocol==="http:"||s.protocol==="https:"}catch{return!1}}};m();m();m();import Es from"node:events";var Lt=["assets/**/*.*","locales/**/*.json","blocks/**/*.liquid","snippets/**/*.liquid"];function jt(e){let t=new Map,s=new Set,n=new Es,r=(c,l)=>{n.emit(c,l)},o=async c=>{let l=await fe(e,c),f=me(c,l),w=typeof l=="string"?l:"",h=Buffer.isBuffer(l)?l.toString("base64"):"";return t.set(c,J({key:c,checksum:f,value:w,attachment:h})),l},i=N(Lt,{cwd:e,deep:3,ignore:B}).then(c=>Promise.all(c.map(o))),a=(c,l)=>{let f=A(e,l),w=o(f).then(()=>{let h=t.get(f);return s.add(h.key),h.value??h.attachment??""});lt(5).then(()=>{s.delete(f)}).catch(()=>{}),r(c,{fileKey:f,onContent:h=>{w.then(y=>{y&&h(y)}).catch(()=>{})},onSync:h=>{}})},u=c=>{let l=A(e,c);s.delete(l),t.delete(l),r("unlink",{fileKey:l,onSync:f=>f()})},p=new Set(Lt.map(c=>x(e,c.split("/").shift()??"")));return{root:e,files:t,unsyncedFileKeys:s,ready:async()=>i.then(()=>{}),delete:async c=>{t.delete(c)},write:async c=>{t.set(c.key,c)},read:o,addEventListener:(c,l)=>{n.on(c,l)},startWatcher:async()=>{let{default:c}=await import("./chokidar-5RWEYTNQ.js");c.watch([...p],{ignored:B,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}).on("add",a.bind(null,"add")).on("change",a.bind(null,"change")).on("unlink",u.bind(null))}}}m();m();var ws="https://unpkg.com/@shopify/polaris@13.9.2/build/esm/styles.css";function qt(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Ct(e){return(0,String.raw)`<!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>${e.title}</title>
5
+ <link rel="stylesheet" href="${ws}" />
6
+ </head>
7
+ <body>
8
+ <div style="display: flex; justify-content: center; padding-top: 2rem;">
9
+ <div style="width: 80%;">
10
+ <div class="Polaris-Banner Polaris-Banner--withinPage" tabindex="0" role="alert" aria-live="polite">
11
+ <div class="Polaris-Box" style="--pc-box-width:100%">
12
+ <div
13
+ class="Polaris-BlockStack"
14
+ style="--pc-block-stack-align:space-between;--pc-block-stack-order:column"
15
+ >
16
+ <div
17
+ class="Polaris-Box"
18
+ style="--pc-box-color: var(--p-color-text-critical-on-bg-fill); --pc-box-background: var(--p-color-bg-fill-critical); --pc-box-padding-block-start-xs: var(--p-space-300); --pc-box-padding-block-end-xs: var(--p-space-300); --pc-box-padding-inline-start-xs: var(--p-space-300); --pc-box-padding-inline-end-xs: var(--p-space-300); --pc-box-border-start-start-radius: var(--p-border-radius-300); --pc-box-border-start-end-radius: var(--p-border-radius-300);"
19
+ >
20
+ <div
21
+ class="Polaris-InlineStack"
22
+ style="--pc-inline-stack-align:space-between;--pc-inline-stack-block-align:center;--pc-inline-stack-wrap:nowrap;--pc-inline-stack-gap-xs:var(--p-space-200);--pc-inline-stack-flex-direction-xs:row"
23
+ >
24
+ <div
25
+ class="Polaris-InlineStack"
26
+ style="--pc-inline-stack-wrap:nowrap;--pc-inline-stack-gap-xs:var(--p-space-100);--pc-inline-stack-flex-direction-xs:row"
27
+ >
28
+ <span class="Polaris-Banner--textCriticalOnBgFill">
29
+ <span class="Polaris-Icon">
30
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
31
+ <path d="M10 6a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.75.75 0 0 1 .75-.75Z" />
32
+ <path d="M11 13a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" />
33
+ <path
34
+ fill-rule="evenodd"
35
+ d="M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z"
36
+ />
37
+ </svg>
38
+ </span>
39
+ </span>
40
+ <h2 class="Polaris-Text--root Polaris-Text--headingSm Polaris-Text--break">
41
+ ${e.header}
42
+ </h2>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <div
47
+ class="Polaris-Box"
48
+ style="--pc-box-padding-block-start-xs:var(--p-space-300);--pc-box-padding-block-end-xs:var(--p-space-300);--pc-box-padding-block-end-md:var(--p-space-400);--pc-box-padding-inline-start-xs:var(--p-space-300);--pc-box-padding-inline-start-md:var(--p-space-400);--pc-box-padding-inline-end-xs:var(--p-space-300);--pc-box-padding-inline-end-md:var(--p-space-400)"
49
+ >
50
+ <div
51
+ class="Polaris-BlockStack"
52
+ style="--pc-block-stack-order:column;--pc-block-stack-gap-xs:var(--p-space-300)"
53
+ >
54
+ ${e.errors.map(s=>`
55
+ <div>
56
+ <span class="Polaris-Text--root Polaris-Text--headingSm">${qt(s.message)}</span>
57
+ <ul class="Polaris-List">
58
+ <li class="Polaris-List__Item">${qt(s.code)}</li>
59
+ </ul>
60
+ </div>`).join("")}
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </body>
69
+ </html>`}m();m();var xs=/<head(\s[^>]*)?>/i,Ne="https://cdn.shopify.com/storefront",Ts=`${Ne}/standard-events.js`,Ss=`${Ne}/standard-events.dev.js`,At=`${Ne}/standard-events-inspector.js`,Ht="shopify-cli-standard-events-inspector",Rs=new RegExp(`<script\\b[^>]*(?:\\bid=["']${He(Ht)}["']|\\bsrc=["']${He(At)}["'])[^>]*>`,"i"),Fs=new RegExp(He(Ts),"g");function he(e){return Rs.test(e)?e:e.replace(xs,t=>`${t}<script id="${Ht}" src="${At}" defer></script>`)}function Nt(e){return e.replace(Fs,Ss)}function He(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}m();var Ot=80;function K(e,t,s){if(!Ps(e)||s.type==="theme-extension")return;let n=e.path.length>Ot?`${e.path.substring(0,Ot)}...`:e.path,o=t.headers.get("server-timing")?.match(/cfRequestDuration;dur=([\d.]+)/)?.[1],i=o?`${Math.round(Number(o))}ms`:"",a=vs(t.status),u=e.method.padStart(6);ie(oe`• ${ce.format(new Date)} Request ${C.raw("\xBB")} ${u} ${a(String(t.status))} ${n} ${C.gray(i)}`)}function Ps(e){let t=[V,Y,"/checkouts","/payments"],s=[".js",".css",".json",".map"];if(t.some(o=>e.path.startsWith(o)))return!1;let[n]=e.path.split("?"),r=H(n);return!s.includes(r)}function vs(e){return e<300?C.green:e<400?C.yellow:C.errorText}var Y="/cdn/",V="/ext/cdn/",Oe="/api/collect",$s=/^\/cart\//,bs=/^\/cart(\/|\.js|\.json|$)/,De=/^\/checkouts\/(?!internal\/)/,Dt=/^\/account(\/login\/multipass(\/[^/]+)?|\/logout)?\/?$/,ks=new RegExp(`^${Y}`),Is=new RegExp(`^${V}`),_s=/^\/api\/(unstable|\d{4}-\d{2})\/graphql\.json/,Ls=["/.well-known","/shopify/monorail","/mini-profiler-resources","/web-pixels-manager","/web-pixels@","/wpm","/services/",Oe,"/cdn-cgi/challenge-platform"],Wt="_shopify_essential",js=new RegExp(`${Wt}=([^;]*)(;|$)`);function Ut(e,t){return I(async s=>{if(Ls.some(n=>s.path.startsWith(n)))return null;if(qs(s)){let n=s.path.split("?")[0]??"";return Ue(s,t).then(async r=>{if(K(s,r,t),r.ok){let o=n.split("/").at(-1)??"";if(t.localThemeFileSystem.files.has(`assets/${o}.liquid`)){let i=ee(await r.text(),t);return new Response(i,r)}}return r}).catch(async r=>{let{status:o,statusText:i,...a}=O(r,`Failed to proxy request to ${n}`);return o>=500&&!n.endsWith(".js.map")&&L(a),new Response(r.message,{status:o,statusText:i})})}})}function qs(e){if(e.method!=="GET"||e.path.match($s)||e.path.match(De)||e.path.match(Dt)||e.path.match(ks)||e.path.match(Is))return!0;let[t]=e.path.split("?"),s=H(t),n=e.headers.get("accept")??"*/*";return s===".html"||n.includes("text/html")?!1:!!s||n!=="*/*"}function Cs(e){let[t]=e.split("?");return!(bs.test(t)||De.test(t)||Dt.test(t))}function ge(e){return e.session.storeFqdn.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function As(e){return _s.test(e.path)}function ee(e,t){let s=e,n=`(data-shs-beacon-endpoint=["'])https://${ge(t)}${Oe}`,r=new RegExp(n,"g");s=s.replace(r,`$1${Oe}`);let o=new RegExp(`(https?:)?//${ge(t)}${Y}`,"g");s=s.replace(o,Y);let i=/(?:https?:)?\/\/cdn\.shopify\.com\/(.*?\/(assets\/[^?#"'`>\s]+))/g,a=c=>c.startsWith("assets/"),u=new Set([...t.localThemeFileSystem.files.keys()].filter(a)),p=new Set([...t.localThemeExtensionFileSystem.files.keys()].filter(a));return s=s.replace(i,(c,l,f)=>{let w=f&&u.has(f),h=f&&p.has(f)&&l.startsWith("extensions/");return z(f).startsWith("image/")?c:h?`${V}${l}`:w?`${Y}${l}`:c}),t.options.standardEventsDevBundle&&(s=Nt(s)),s}function Hs(e,t){let s=`http://${t.options.host}:${t.options.port}`,n=new RegExp(`data-base-url=["']((?:https?:)?//${ge(t)})[^"']*?["']`,"g");return e.replace(n,(r,o)=>r.replace(o,s))}function Ns(e,t){let s=new RegExp(`Domain=${ge(t)};\\s*`,"gi");return e.map(n=>n.replace(s,""))}async function te(e,t,s){let n=Bt(e,t);if(n.status>=300&&n.status<400)return n;t.headers.get("content-type")?.includes("application/json")||n.headers.set("content-type","text/html; charset=utf-8");let i=await n.text();return i=ee(i,e),i=Hs(i,e),e.options.standardEventsInspector&&(i=he(i)),s&&(i=s(i)??i),new Response(i,n)}var Mt=["connection","keep-alive","proxy-authenticate","proxy-authorization","te","trailer","transfer-encoding","upgrade","expect","content-security-policy","host"];function Bt(e,t){let s=new Response(t.body,t);s.headers.delete("content-length"),s.headers.delete("content-encoding");for(let i of Mt)s.headers.delete(i);s.headers.delete("access-control-allow-origin"),s.headers.delete("access-control-allow-credentials"),s.headers.delete("access-control-allow-methods"),s.headers.delete("access-control-allow-headers"),s.headers.delete("access-control-expose-headers"),s.headers.delete("access-control-max-age");let n=s.headers.get("Link");n&&s.headers.set("Link",ee(n,e));let r=s.headers.get("Location");if(r){let i=new URL(r,"https://shopify.dev");De.test(i.pathname)||(i.searchParams.delete("_fd"),i.searchParams.delete("pb"),s.headers.set("Location",i.href.replace(i.origin,"")))}let o=s.headers.getSetCookie();if(o?.length){s.headers.set("Set-Cookie",Ns(o,e).join(","));let i=o.join(",").match(js)?.[1];i&&(e.session.sessionCookies[Wt]=i)}return s}function We(e){let t=dt(e);for(let n of Mt)delete t[n];delete t["upgrade-insecure-requests"];let s=ut(e);return s&&(t["X-Forwarded-For"]=s),t}function Ue(e,t){let s=e.path.replace(new RegExp(V,"g"),"/"),n=e.path.startsWith(V)?"cdn.shopify.com":t.session.storeFqdn,r=new URL(s,`https://${n}`);if(r.hostname!==n)return Promise.reject(new Error(`Request failed: Hostname mismatch. Expected host: ${n}. Resulting URL hostname: ${r.hostname}`));let o=pt(e),i=We(e);return As(e)||(/\/assets\/[^/]+\.(css|js)$/.test(r.pathname)&&/\?\d+$/.test(r.search)&&(r.search=`?v=${Date.now()}`),r.searchParams.set("_fd","0"),r.searchParams.set("pb","0"),i=St({...i,...Tt(),...n===t.session.storeFqdn?t.session.crawlerSignatureHeaders:{},referer:r.origin,Cookie:Pt(t.session,{headers:i}),...t.type==="theme"&&Cs(e.path)?{Authorization:`Bearer ${t.session.storefrontToken}`}:{}})),fetch(r,{method:e.method,body:o,duplex:o?"half":void 0,redirect:"manual",headers:i}).then(a=>Bt(t,a)).catch(a=>{throw le(q(a),r)})}var Me=0,Os=5;function zt(e,t){return I(s=>{let[n="/",r=""]=s.path.split("?");return Ws(s)&&(t.lastRequestedPath=s.path),t.options.errorOverlay!=="silent"&&t.localThemeFileSystem.uploadErrors.size>0?Jt(t,{status:500,statusText:"Internal Server Error"},{title:"Failed to Upload Theme Files",header:"Upload Errors",errors:Array.from(t.localThemeFileSystem.uploadErrors.entries()).map(([i,a])=>({message:i,code:a.join(`
70
+ `)}))}):de(t.session,{method:s.method,path:n,query:[...new URLSearchParams(r)],themeId:String(e.id),sectionId:"",headers:We(s),replaceExtensionTemplates:Ee(t),replaceTemplates:Be(t,n,mt(s,"localization")?.toLowerCase())}).then(async i=>{if(i.status>=400&&i.status<500&&!Ds(s)){let a=await Us(s,t,i);if(a)return K(s,a,t),a}return K(s,i,t),te(t,i,a=>(Ms(i,a,String(e.id)),Me=0,Je(a,t)))}).catch(async i=>{if(i instanceof ye&&(v(`Theme ID mismatch: expected ${i.getExpectedThemeId()} but got ${i.getActualThemeId()}; refreshing session...`),D("theme-service:error-page:theme-id-mismatch"),t.session.refresh)){Me++,Me>Os&&(ct(new k(i.getMessage())),process.exit(1)),await t.session.refresh();let w=new URLSearchParams(r),h=new URLSearchParams([...w].filter(([be])=>!be.startsWith("__sfr"))),y=n+(h.toString()?`?${h}`:"");return new Response(null,{status:302,headers:{Location:y}})}let{status:a,statusText:u,cause:p,...c}=O(i,"Failed to render storefront"),[l,...f]=c.headline.split(`
71
+ `);return re(c),Jt(t,{status:a,statusText:u},{title:l,header:l,errors:[{message:[...f,p.message].join("<br>"),code:p.stack?.replace(`${p.message}
72
+ `,"")??""}]})})})}function Jt(e,t,s){let n=Je(Ct(s),e);return e.options.standardEventsInspector&&(n=he(n)),D("theme-service:error-page:rendered"),new Response(n,{...t,headers:t.headers??{"Content-Type":"text/html; charset=utf-8"}})}function Ds(e){let t=new URLSearchParams(e.path.split("?")[1]);return["section_id","sections","app_block_id"].some(s=>t.has(s))}function Ws(e){return e.headers.get("sec-fetch-mode")==="navigate"}async function Us(e,t,s){v(`Render failed for ${e.path} with ${s.status} (x-request-id: ${s.headers.get("x-request-id")}), trying proxy...`);let n=await Ue(e,t).catch(r=>new Response(null,O(r)));if(n.status<400)return v(`Proxy status: ${n.status}. Returning proxy response.`),t.options.standardEventsInspector&&(n.headers.get("content-type")??"").includes("text/html")?te(t,n):n;v(`Proxy status: ${n.status}. Returning render error.`)}function Ms(e,t,s){let n=t.match(/Shopify\.theme\s*=\s*{[^}]+?"id":\s*"?(\d+)"?(}|,)/)?.[1];if(n&&n!==s)throw new ye(s,n,e)}var ye=class extends Error{response;expectedThemeId;actualThemeId;constructor(t,s,n){super([`Theme ID mismatch: expected ${t} but got ${s}.`,`Request ID: ${n.headers.get("x-request-id")}`,`URL: ${n.url}`,"This is likely related to an issue in upstream Shopify APIs.","Please try again in a few minutes and report this issue:","https://community.shopify.dev/c/shopify-cli-libraries/14"].join(`
73
+ `)),this.response=n,this.expectedThemeId=t,this.actualThemeId=s}getMessage(){return this.message}getResponse(){return this.response}getExpectedThemeId(){return this.expectedThemeId}getActualThemeId(){return this.actualThemeId}};m();m();function we(e,t){let s=new RegExp(`{%-?\\s*${t}\\s*-?%}`),n=new RegExp(`{%-?\\s*end${t}\\s*-?%}`),r=s.exec(e);if(!r)return;let o=r.index+r[0].length;n.lastIndex=o;let i=n.exec(e);if(!i)return;let a=i.index;return e.slice(o,a)}m();function xe(e){let{pathname:t,search:s,searchParams:n}=new URL(e.path,"http://e.c");return{pathname:t,search:s,searchParams:n}}var Bs={stylesheet:new Map,javascript:new Map};function Gt(e,t){return I(async s=>{if(s.method!=="GET")return;if(Ys(s,t))return Vs(s,t);let{file:n,fileKey:r,isUnsynced:o}=Gs(s,t);if(!r)return;let i=z(r);if(i.startsWith("image/")&&s.path.includes("&")&&!o)return;if(ht(s,"X-Local-Asset","true"),!n){o&&M(s,U({statusCode:404,statusMessage:"Not found"}));return}let a=n.value?Buffer.from(ee(n.value,t)):Buffer.from(n.attachment??"","base64");return ae(s,{getContents:()=>a,getMeta:()=>({type:i,size:a.length,mtime:n.stats?.mtime})})})}var Js=/^(?:\/cdn\/(?!extensions\/).*?)?\/assets\/([^?]+)/,zs=/^(?:\/(?:ext\/)?cdn\/extensions\/.*?)?\/assets\/([^?]+)/;function Gs(e,t){let s=(n,r)=>{let o=e.path.match(n)?.[1];if(o){let i=x("assets",o),a=r.files.get(i),u=r.unsyncedFileKeys.has(i);if(a||u)return{file:a,isUnsynced:u,fileKey:i}}};return s(Js,t.localThemeFileSystem)??s(zs,t.localThemeExtensionFileSystem)??{isUnsynced:!1,fileKey:void 0,file:void 0}}function Ys(e,t){return t.type==="theme"&&e.path.includes("/compiled_assets")}function Vs(e,t){switch(xe(e).pathname.split("/").at(-1)){case"styles.css":return Xs(t,e);case"block-scripts.js":return ze(t,e,"block");case"snippet-scripts.js":return ze(t,e,"snippet");case"scripts.js":return ze(t,e,"section");case void 0:break;default:break}}function Xs(e,t){let s=Te(e,"section"),n=Te(e,"block"),r=Te(e,"snippet"),o=[`/*** GENERATED LOCALLY ***/
74
+ `];for(let[,a]of[...s,...n,...r]){let u=Yt(a,"stylesheet");u&&o.push(u)}let i=o.join(`
75
+ `);return ae(t,{getContents:()=>i,getMeta:()=>({type:"text/css",size:Buffer.byteLength(i),mtime:new Date})})}function ze(e,t,s){let n=Te(e,s),r=`${s}s`,o=[`
76
+ /*** GENERATED LOCALLY ***/
77
+
78
+ (function () {
79
+ var __${r}__ = {};
80
+
81
+ (function () {
82
+ var element = document.getElementById("${r}-script");
83
+ var attribute = element ? element.getAttribute("data-${r}") : "";
84
+ var ${r} = attribute.split(",").filter(Boolean);
85
+
86
+ for (var i = 0; i < ${r}.length; i++) {
87
+ __${r}__[${r}[i]] = true;
88
+ }
89
+ })();`];for(let[a,u]of n){let p=a.split("/").pop()?.replace(".liquid",""),c=Yt(u,"javascript")??"";p&&c&&o.push(`
90
+ (function () {
91
+ if (!__${r}__["${p}"] && !Shopify.designMode) return;
92
+ try {
93
+ ${c}
94
+ } catch (e) {
95
+ console.error(e);
96
+ }
97
+ })();`)}o.push("})();");let i=o.join(`
98
+ `);return ae(t,{getContents:()=>i,getMeta:()=>({type:"text/javascript",size:Buffer.byteLength(i),mtime:new Date})})}function Te(e,t){return[...e.localThemeFileSystem.files.entries()].filter(([s])=>s.endsWith(".liquid")&&s.startsWith(`${t}s/`)).sort(([s],[n])=>s.localeCompare(n))}function Yt(e,t){let s=Bs[t],n=s.get(e.key);if(n?.checksum===e.checksum)return n.content;if(s.delete(e.key),!e.value)return;let r=[`/* ${e.key} */`],o=we(e.value??"",t)?.trimEnd();if(o&&r.push(o),r.length>1){let i=r.join(`
99
+ `);return s.set(e.key,{checksum:e.checksum,content:i}),i}}m();import*as Vt from"node:os";function Zs(e,t){let s=new Set,n=`:${t}`,r=e.toLowerCase().trim();if(s.add(`${r}${n}`),["localhost","127.0.0.1","::1","0.0.0.0"].includes(r)&&(s.add(`localhost${n}`),s.add(`127.0.0.1${n}`),s.add(`[::1]${n}`)),r==="0.0.0.0"||r==="::")for(let i of Object.values(Vt.networkInterfaces()))for(let a of i??[]){let u=a.address.toLowerCase().split("%")[0],c=a.family==="IPv6"?`[${u}]`:u;s.add(`${c}${n}`)}return s}function Qs(e){if(e)return e.toLowerCase().replace(/\.(?=:\d|$)/,"")}function Xt(e,t){let s=Zs(e,t);return I(n=>{let r=n.node.req.headers.host,o=Qs(r);if(!o||!s.has(o))return M(n,U({statusCode:400,statusMessage:"Bad Request",message:"Invalid Host header"}))})}m();function Zt(){return Qt()}function Br(){return Qt()}function Qt(){return{root:"",files:new Map,unsyncedFileKeys:new Set,uploadErrors:new Map,ready:()=>Promise.resolve(),delete:async e=>{},read:async e=>"",write:async e=>{},stat:async e=>({mtime:new Date,size:1}),addEventListener:()=>{},startWatcher:async()=>{}}}import{createServer as Ks}from"node:http";async function no(e,t){let s=await tn(e,t);return await sn(e,s),en(e,s)}function en(e,t){let s=Et();s.use(Xt(t.options.host,t.options.port)),s.use(Kt(e,t)),s.use(Gt(e,t)),s.use(Ut(e,t)),s.use(zt(e,t));let n=Ks(wt(s));return{dispatch:s.handler.bind(s),start:async()=>new Promise(r=>n.listen({port:t.options.port,host:t.options.host},()=>r({close:async()=>{await Promise.all([new Promise(o=>{n.closeAllConnections(),n.close(o)})])}})))}}async function tn(e,t){let{adminSession:s,storefrontPassword:n,themeExtensionPort:r,themeExtensionDirectory:o,crawlerSignatureHeaders:i}=t,a="127.0.0.1",u=r??9293,p=Zt(),c=jt(o);return await c.ready(),{session:await vt(e.id.toString(),s,void 0,n,i),localThemeFileSystem:p,localThemeExtensionFileSystem:c,directory:o,type:"theme-extension",lastRequestedPath:"",options:{themeEditorSync:!1,noDelete:!1,ignore:[],only:[],host:a,port:u,liveReload:"hot-reload",standardEventsDevBundle:!1,standardEventsInspector:!1,open:!1,errorOverlay:"default"}}}async function sn(e,t){let s=t.localThemeExtensionFileSystem,n=({fileKey:r,onContent:o,onSync:i})=>{o(()=>{Se(e,t,i,{type:"update",key:r,payload:{isThemeExtension:!0}})})};return s.addEventListener("add",n),s.addEventListener("change",n),s.ready().then(async()=>s.startWatcher())}function Ee(e){let t={},s=e.localThemeExtensionFileSystem;for(let n of s.unsyncedFileKeys){let r=s.files.get(n),o=r?.value??r?.attachment;o&&(t[n]=o)}return t}var Pe=Ke(xt(),1);import nn from"node:events";var Ge=new Map,se=new Map;function es(e,t){let s=(0,Pe.parseJSON)(t,null,!0);if(!s)return;let n=s?.sections;n&&!e.startsWith("locales/")?se.set(e,Object.entries(n||{}).map(([r,{type:o}])=>[o,r])):se.delete(e)}function Ye(e){return!e.startsWith("assets/")&&[".liquid",".json"].includes(H(e))}function Be(e,t,s){let n={},r=/^templates\/.+\.json$/,o=t?`${x("templates",t.replace(/^\//,"").replace(/\.html$/,"")||"index")}.json`:"",i=!!t&&e.localThemeFileSystem.files.has(o),a=/^locales\/.+\.json$/,u=!!s&&(e.localThemeFileSystem.files.has(`locales/${s}.json`)||e.localThemeFileSystem.files.has(`locales/${s}.default.json`));for(let p of e.localThemeFileSystem.unsyncedFileKeys)if(Ye(p)){if(i&&r.test(p)){if(p!==o)continue}else if(a.test(p)){if(u){if(!p.startsWith(`locales/${s}.`))continue}else if(!p.includes(".default."))continue}n[p]=e.localThemeFileSystem.files.get(p)?.value??""}return n}function xo(e,t){let s=({fileKey:r,onContent:o,onSync:i})=>{let a=H(r);o(u=>{!ln(r)&&Ye(r)&&a===".json"&&es(r,u),Se(e,t,i,{type:"update",key:r,payload:an(r,t)})})},n=({fileKey:r,onSync:o})=>{se.delete(r),Se(e,t,o,{type:"delete",key:r})};return t.localThemeFileSystem.addEventListener("add",s),t.localThemeFileSystem.addEventListener("change",s),t.localThemeFileSystem.addEventListener("unlink",n),t.localThemeFileSystem.ready().then(async()=>{let r=[...t.localThemeFileSystem.files];return Promise.allSettled(r.map(async([o,i])=>{if(o.endsWith(".json")){let a=i.value??await t.localThemeFileSystem.read(o);a&&typeof a=="string"&&es(o,a)}else o.endsWith(".liquid")&&rs(i)}))})}var rn="1",ss=new nn;function Fe(e){ss.emit("hot-reload",{...e,version:rn})}function Kt(e,t){return I(s=>{let n=s.headers.get("accept")==="text/event-stream",r=xe(s).searchParams;if(n){let o=yt(s);return ss.on("hot-reload",i=>{o.push(JSON.stringify(i)).catch(a=>{L({headline:"Failed to send HotReload event.",body:a.stack})})}),Fe({type:"open",pid:String(process.pid),themeId:String(e.id)}),o.send().then(()=>o.flush())}if(r.has("hr-log")){let o=(0,Pe.parseJSON)(r.get("hr-log")??"",null);return o&&(o.headline=`[HotReload] ${o.headline}`,o.type==="error"?re(o):o.type==="warn"?L(o):o.type==="info"?at(o):L({headline:`Unknown HotReload log type: ${o.type}`})),null}if(s.path===ns)return _(ve()).then(o=>ft(s,o,"application/javascript")).catch(o=>M(s,U({cause:o})));if(r.has("section_id")||r.has("app_block_id")){let o=r.get("section_key")??"",i=r.get("section_id")??"",a=r.get("app_block_id")??"",u=s.path.split("?")[0]??"",p=new URLSearchParams(r);if(p.delete("section_key"),p.delete("section_id"),p.delete("app_block_id"),p.delete("_fd"),p.delete("pb"),i===""&&a==="")return;let c={};if(i){let l=t.localThemeFileSystem.unsyncedFileKeys;if(l.has(o)){let f=t.localThemeFileSystem.files.get(o)?.value;if(!f)return"";c[o]=f}for(let f of l)if(f.endsWith(".json")){for(let[w,h]of se.get(f)??[])if(i.endsWith(`__${h}`)){let y=t.localThemeFileSystem.files.get(f)?.value;y&&(c[f]=y);continue}}}return de(t.session,{method:s.method,path:u??"/",query:[...p.entries()],themeId:String(e.id),sectionId:i,appBlockId:a,replaceTemplates:c,headers:gt(s),replaceExtensionTemplates:Ee(t)}).then(async l=>{if(!l.ok)throw D("theme-service:hot-reload:section:render-failed"),le(l);return te(t,l)}).catch(async l=>{let{status:f,statusText:w,...h}=O(q(l),"Failed to render section on Hot Reload");return D("theme-service:hot-reload:section:render-error"),a||L(h),new Response(null,{status:f,statusText:w})})}})}var ne=(e,t)=>Fe({themeId:String(e),type:"full",key:t});function Se(e,t,s,n){let r=()=>ne(e.id,n.key);if(t.options.liveReload==="off")return;if(t.options.liveReload==="full-page"){s(r);return}let o=String(e.id);Fe({sync:"local",themeId:o,...n}),s(()=>Fe({sync:"remote",themeId:o,...n}),r)}function on(e,t){let s=new Set;if(e.endsWith(".json")){let n=t.localThemeFileSystem.files.get(e)?.value;if(n){let r=(0,Pe.parseJSON)(n,null,!0)?.sections;for(let o of Object.keys(r??{}))s.add(o)}}else{let n=e.match(/^sections\/(.+)\.liquid$/)?.[1];if(n)for(let[r,o]of se)for(let[i,a]of o)i===n&&s.add(a)}return[...s]}function an(e,t){let[s]=e.split("/"),n=t.localThemeFileSystem.files.get(e);return{sectionNames:s==="sections"?on(e,t):[],replaceTemplates:Ye(e)?Be(t):{},updatedFileParts:n&&rs(n)}}var Re="hot-reload-client",cn="/cdn/shopifycloud/theme-hot-reload/theme-hot-reload.js",ts=new RegExp(`<script id="${Re}"[^>]*>[^<]*</script>`),ns="/@shopify/theme-hot-reload";function Je(e,t){return t.options.liveReload==="off"?e.replace(ts,""):process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD?e.replace(ts,"").replace(/<\/head>/,`<script id="${Re}" src="${ns}" defer></script></head>`):e.includes(`<script id="${Re}"`)?e:e.replace(/<\/head>/,`<script id="${Re}" src="${cn}" defer></script></head>`)}function ln(e){return e.startsWith("assets/")}function rs(e){if(!(["sections/","snippets/","blocks/"].some(c=>e.key.startsWith(c))&&e.key.endsWith(".liquid")))return;let n={stylesheetTag:!1,javascriptTag:!1,schemaTag:!1,liquid:!1},r={checksum:e.checksum,liquid:"",stylesheetTag:"",javascriptTag:"",schemaTag:""},o=Ge.get(e.key);if(o?.checksum===e.checksum||(Ge.delete(e.key),!e.value))return n;let i=["stylesheet","javascript","schema"],a=c=>c?.replace(/\s+/g," ").trim(),u=e.value,p=(c,l)=>{u=u.replace(l,"");let f=a(l),w=`${c}Tag`;n[w]=!o||f!==o[w],r[w]=f};for(let c of i){let l=we(e.value??"",c);l&&p(c,l)}return u=a(u.replace(/<!--[\s\S]*?-->/g,"").replace(/{%\s*comment\s*%}[\s\S]*?{%\s*endcomment\s*%}/g,"").replace(/{%\s*doc\s*%}[\s\S]*?{%\s*enddoc\s*%}/g,"")),r.liquid=u,n.liquid=!o||u!==o.liquid,Ge.set(e.key,r),n}m();m();import{lstat as dn}from"node:fs/promises";async function Ve(e){try{return await dn(e),!0}catch(t){if(t instanceof Error&&"code"in t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return!1;throw t}}async function os(e,t){return e===t||await Ve(e)?e:os(tt(e),t)}function X(e){if(!e||e==="."||e===".."||/[\\/]/.test(e)||/^[a-z]:/i.test(e))throw new k(`Unsafe listing name: ${e}`)}async function P(e,t){let s=t.replace(/\\/g,"/");if(!t||/^[\\/]/.test(t)||/^[a-z]:/i.test(t)||s.split("/").includes(".."))throw new k(`Unsafe theme file key: ${t}`);let n=et(e),r=x(n,s);if(A(n,r)===""||!Ie(n,r,{native:!0}))throw new k(`Unsafe theme file key: ${t}`);let o=await os(r,n);try{let i=await Le(n),a=await Le(o);if(!Ie(i,a,{native:!0}))throw new k(`Unsafe theme file key: ${t}`)}catch{throw new k(`Unsafe theme file key: ${t}`)}return r}var is=Ke(xt(),1);function un(e){return(e.startsWith("templates/")||e.startsWith("sections/"))&&e.endsWith(".json")}async function as(e,t,s){if(X(t),un(s)){await P(e,s);let n=await P(e,x("listings",t,s));if(await b(n))return n}}async function cs(e,t){X(t);let s=await P(e,"config/settings_data.json"),n=await _(s,{encoding:"utf8"}),r=(0,is.parseJSON)(n,null,!0);return r?(r.current=_e(t),JSON.stringify(r,null,2)):n}async function qo(e,t){X(t);let s=x(e,"listings"),n=x(s,t);if(await Ve(e)&&(await P(e,"listings"),await P(e,x("listings",t))),await b(n))return;let o=[];await b(s)&&(o=await N("*",{cwd:s,onlyDirectories:!0,deep:1}));let i=o.length>0?`Available presets: ${o.map(a=>`"${_e(a)}"`).join(", ")}`:'No presets found under "listings/"';throw new k(`Listing preset "${t}" was not found. ${i}.`,`Add the preset to config/settings_data.json and its corresponding "listings/${t}" folder, or remove the --listing flag to use the default theme settings.`)}import pn from"node:events";import{fileURLToPath as mn}from"node:url";var fn=250,ls=["AGENTS.md","DESIGN.md","assets/**/*.*","config/**/*.json","config/styles.css","layout/**/*.liquid","locales/**/*.json","sections/**/*.{liquid,json}","blocks/**/*.liquid","snippets/**/*.liquid","templates/**/*.{liquid,json}","templates/customers/**/*.{liquid,json}"],$={documentationFilesRegex:/^(AGENTS|DESIGN)\.md$/,layoutLiquidRegex:/^layout\/.+\.liquid$/,sectionLiquidRegex:/^sections\/.+\.liquid$/,blockLiquidRegex:/^blocks\/.+\.liquid$/,configSchemaRegex:/^config\/settings_schema\.json$/,configDataRegex:/^config\/settings_data\.json$/,configStylesheetRegex:/^config\/styles\.css$/,sectionJsonRegex:/^sections\/.+\.json$/,templateJsonRegex:/^templates\/.+\.json$/,jsonRegex:/^(?!config\/).*\.json$/,contextualizedJsonRegex:/\.context\.[^.]+\.json$/i,staticAssetRegex:/^assets\/(?!.*\.liquid$)/};function ei(e,t){t?.listing!==void 0&&X(t.listing);let s=new Map,n=new Map,r=new Set,o={ignoreFromFile:[],ignore:t?.filters?.ignore??[],only:t?.filters?.only??[]},i=new pn,a=(d,E)=>{i.emit(d,E)},u=t?.notify?new pe(t.notify):void 0,p=async d=>{let E=t?.listing?await gn(e,d,t.listing):await fe(e,d),g=me(d,E);return s.set(d,J({key:d,checksum:g,value:typeof E=="string"?E:"",attachment:Buffer.isBuffer(E)?E.toString("base64"):""})),E},c=N(ls,{cwd:e,deep:3,ignore:B}).then(async d=>{o.ignoreFromFile.push(...await It(e));let E=ue(d.map(g=>({key:g})),o);await Promise.all(E.map(({key:g})=>p(g)))}),l=d=>A(e,d),f=d=>ue([{key:d}],o).length===0;function w(d,E,g,T){if(process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD&&T===ve()){ne(E,T);return}let R=l(T);if(t?.listing&&R.startsWith(`listings/${t.listing}/`)){let S=R.replace(`listings/${t.listing}/`,"");if(S.startsWith("templates/")||S.startsWith("sections/"))R=S;else return}h(R).then(()=>{switch(d){case"add":case"change":return y(d,E,g,R);case"unlink":return be(E,g,R,n)}}).catch(S=>{W(`Error handling file event for ${R}: ${S}`)})}function h(d){return u?.notify(d)??Promise.resolve()}let y=(d,E,g,T)=>{if(f(T))return;let R=s.get(T)?.checksum,S=p(T).then(async()=>{let F=s.get(T);if(F)return F.checksum!==R&&r.add(T),{value:F.value||void 0,attachment:F.attachment}}),j=S.then(F=>{if(F)return hn(r,n,T,E,g)(F)}).catch(Ce(T,"upload"));a(d,{fileKey:T,onContent:F=>{S.then(Z=>{r.has(T)&&F(Z?.value??Z?.attachment??"")}).catch(()=>{})},onSync:(F,Z)=>{j.then(Q=>{Q?F():Z?.()}).catch(()=>{})}})},be=(d,E,g,T)=>{if(f(g))return;T.delete(g),s.delete(g),r.add(g);let R=t?.noDelete?Promise.resolve():Rt(Number(d),[g],E).then(async S=>{if(!S[0]?.success)throw new Error(`Failed to delete file "${g}" from remote theme.`);return r.delete(g),ds("delete",g),!0}).catch(S=>(Ce(g,"delete")(S),!1));a("unlink",{fileKey:g,onSync:S=>{R.then(j=>{j&&S()}).catch(()=>{})}})},ke=new Set(ls.map(d=>x(e,d.split("/").shift()??"")));return t?.listing&&ke.add(x(e,"listings",t.listing)),process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD&&ke.add(ve()),{root:e,files:s,unsyncedFileKeys:r,uploadErrors:n,ready:()=>c,delete:async d=>{await P(e,d),s.delete(d),await yn(e,d)},write:async d=>{await P(e,d.key);let E=(d.key.startsWith("templates/")||d.key.startsWith("sections/"))&&d.key.endsWith(".json");if(t?.listing&&E){let g=x("listings",t.listing,d.key),T=await P(e,g),R=await b(T);s.set(d.key,J({key:d.key,checksum:d.checksum,value:d.value??"",attachment:d.attachment??""})),R?await Xe(e,{...d,key:g}):await Xe(e,d);return}s.set(d.key,J({key:d.key,checksum:d.checksum,value:d.value??"",attachment:d.attachment??""})),await Xe(e,d)},read:p,applyIgnoreFilters:d=>ue(d,o),addEventListener:(d,E)=>{i.on(d,E)},startWatcher:async(d,E)=>{let{default:g}=await import("./chokidar-5RWEYTNQ.js"),T=g.watch([...ke],{ignored:B,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}),R=new Map,S=(j,F)=>{let Q=`${l(F)}:${j}`,Qe=R.get(Q);Qe&&clearTimeout(Qe);let us=setTimeout(()=>{R.delete(Q),w(j,d,E,F)},fn);R.set(Q,us)};T.on("add",S.bind(null,"add")).on("change",S.bind(null,"change")).on("unlink",S.bind(null,"unlink")).on("error",j=>{W(`File watcher error: ${j}`),q("theme-service:file-watcher:error")})}}}function hn(e,t,s,n,r){return async o=>{if(!e.has(s))return!1;let[i]=await Ft(Number(n),[{key:s,...o}],r);if(!i?.success){let a=i?.errors?.asset??["Response was not successful."];throw t.set(s,a),ne(n,s),new Error(a.join(`
100
+ `))}return t.delete(s)&&ne(n,s),e.delete(s),ds("update",s),!0}}async function Xe(e,{key:t,attachment:s,value:n}){let r=await P(e,t);if(await En(r),s){let o=Buffer.from(s,"base64");await je(r,o,{encoding:"base64"})}else await je(r,n??"")}async function fe(e,t){let s=$e(t)?{encoding:"utf8"}:{},n=await P(e,t);if(!await b(n)){v(`File ${n} can't be read because it doesn't exist...`);return}return _(n,s)}async function gn(e,t,s){if(t==="config/settings_data.json")return cs(e,s);let n=await as(e,s,t);if(n){let r=$e(t)?{encoding:"utf8"}:{};return _(n,r)}return fe(e,t)}async function yn(e,t){let s=await P(e,t);if(!await b(s)){v(`File ${s} can't be removed because it doesn't exist...`);return}await ot(s)}function ti(e){let t=[],s=[],n=[],r=[],o=[],i=[],a=[],u=[],p=[],c=[],l=[],f=[],w=[];return e.forEach(h=>{let y=h.key;$.documentationFilesRegex.test(y)?w.push(h):y.endsWith(".liquid")?$.sectionLiquidRegex.test(y)?t.push(h):$.blockLiquidRegex.test(y)?l.push(h):$.layoutLiquidRegex.test(y)?f.push(h):s.push(h):$.configSchemaRegex.test(y)?a.push(h):$.configDataRegex.test(y)?u.push(h):$.configStylesheetRegex.test(y)?p.push(h):$.jsonRegex.test(y)?$.contextualizedJsonRegex.test(y)?i.push(h):$.sectionJsonRegex.test(y)?n.push(h):$.templateJsonRegex.test(y)?r.push(h):o.push(h):$.staticAssetRegex.test(y)&&c.push(h)}),{sectionLiquidFiles:t,otherLiquidFiles:s,sectionJsonFiles:n,templateJsonFiles:r,contextualizedJsonFiles:i,otherJsonFiles:o,configSchemaFile:a,configDataFile:u,configStylesheetFiles:p,staticAssetFiles:c,blockLiquidFiles:l,layoutFiles:f,documentationFiles:w}}function $e(e){return $t({liquid:"application/liquid",sass:"text/x-sass",scss:"text/x-scss"}),["application/javascript","application/json","application/liquid","text/css","text/x-sass","text/x-scss","image/svg+xml","text/markdown"].includes(z(e))}async function si(e){let t=new Set(await N("*",{cwd:e,deep:1,onlyDirectories:!0}));return["config","layout","templates"].every(n=>t.has(n))}async function En(e){let t=wn(e);await b(t)||await rt(t)}function wn(e){let t=st(e),s=e.lastIndexOf(t);return e.substring(0,s)}function ds(e,t){ie(oe`• ${ce.format(new Date)} Synced ${C.raw("\xBB")} ${e} ${t}`)}function ve(){let e=process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD;return!e||e==="true"?x(mn(import.meta.url.split("/cli/")[0]??""),"theme-hot-reload/dist/theme-hot-reload.js"):e}function me(e,t){return t?Buffer.isBuffer(t)?Ze(t):Rn(e)?xn(t):Tn(e,t):""}function xn(e){let t=e;return t=t.replace(/\r\n/g,`
101
+ `),t=t.replace(/\/\*[\s\S]*?\*\//,""),t=Sn(t),Ze(t)}function Tn(e,t){let s=t;return $e(e)&&(s=s.replace(/\r\n/g,`
102
+ `)),Ze(s)}function Sn(e){let t=!1,s=!1,n="";for(let r of e)r==='"'&&!s&&(t=!t),!(!t&&(r===" "||r===`
103
+ `))&&(n+=r,s=r==="\\"&&!s);return n}function Ze(e){let t=Buffer.isBuffer(e)?e:Buffer.from(e);return it(t)}function ai(e){let t=new Set(e.filter(({key:s})=>s.startsWith("assets/")&&s.endsWith(".liquid")).map(({key:s})=>s));return e.filter(({key:s})=>s.startsWith("assets/")?!t.has(`${s}.liquid`):!0)}function Rn(e){return e.endsWith("/settings_data.json")}export{ai as a,Ut as b,zt as c,Gt as d,Xt as e,Br as f,no as g,xo as h,Kt as i,ne as j,as as k,qo as l,ei as m,ti as n,si as o};
@@ -0,0 +1,18 @@
1
+ import{a as _h,b as qe,c as Jr,d as zt,e as Hr,f as dt,g as Kr,h as Vr,i as O}from"./chunk-B4OMIONW.js";import{a as bh}from"./chunk-BOAGJ6P5.js";import{a as Eh}from"./chunk-5B76DT7X.js";import{i as Fi,j as Yr}from"./chunk-FZCGRIOM.js";import{e as Ri,g as ue}from"./chunk-3A3DZVEJ.js";import{a as bi}from"./chunk-JD5P5RAJ.js";import{a as qi,b as Gt,c as yt,d as zr,e as Br,h as Ci,m as Oi,n as Ti,p as Pi,q as Ai}from"./chunk-IWTNUJGY.js";import{a as Ei}from"./chunk-ZGASBRSQ.js";import{a as D,b as Sh,c as p,d as xh,e as Y,f as ye,g as s}from"./chunk-VKWPEFWQ.js";var $i=p((mq,Ni)=>{"use strict";s();var Ph=D("os"),Di=D("tty"),ce=Ei(),{env:k}=process,Ce;ce("no-color")||ce("no-colors")||ce("color=false")||ce("color=never")?Ce=0:(ce("color")||ce("colors")||ce("color=true")||ce("color=always"))&&(Ce=1);"FORCE_COLOR"in k&&(k.FORCE_COLOR==="true"?Ce=1:k.FORCE_COLOR==="false"?Ce=0:Ce=k.FORCE_COLOR.length===0?1:Math.min(parseInt(k.FORCE_COLOR,10),3));function en(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function tn(e,t){if(Ce===0)return 0;if(ce("color=16m")||ce("color=full")||ce("color=truecolor"))return 3;if(ce("color=256"))return 2;if(e&&!t&&Ce===void 0)return 0;let r=Ce||0;if(k.TERM==="dumb")return r;if(process.platform==="win32"){let n=Ph.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in k)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in k)||k.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in k)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(k.TEAMCITY_VERSION)?1:0;if(k.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in k){let n=parseInt((k.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(k.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(k.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(k.TERM)||"COLORTERM"in k?1:r}function Ah(e){let t=tn(e,e&&e.isTTY);return en(t)}Ni.exports={supportsColor:Ah,stdout:en(tn(!0,Di.isatty(1))),stderr:en(tn(!0,Di.isatty(2)))}});var Wi=p((vq,Ui)=>{"use strict";s();var Fh=$i(),Je=Ei();function ki(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e)||[];return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function rn(e){let{CI:t,FORCE_HYPERLINK:r,NETLIFY:n,TEAMCITY_VERSION:i,TERM_PROGRAM:o,TERM_PROGRAM_VERSION:a,VTE_VERSION:u,TERM:l}=process.env;if(r)return!(r.length>0&&parseInt(r,10)===0);if(Je("no-hyperlink")||Je("no-hyperlinks")||Je("hyperlink=false")||Je("hyperlink=never"))return!1;if(Je("hyperlink=true")||Je("hyperlink=always")||n)return!0;if(!Fh.supportsColor(e)||e&&!e.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||t||i)return!1;if(o){let f=ki(a||"");switch(o){case"iTerm.app":return f.major===3?f.minor>=1:f.major>3;case"WezTerm":return f.major>=20200620;case"vscode":return f.major>1||f.major===1&&f.minor>=72;case"ghostty":return!0}}if(u){if(u==="0.50.0")return!1;let f=ki(u);return f.major>0||f.minor>=50}return l==="alacritty"}Ui.exports={supportsHyperlink:rn,stdout:rn(process.stdout),stderr:rn(process.stderr)}});var Xi=p((tC,Zi)=>{s();function Dh(){this.__data__=[],this.size=0}Zi.exports=Dh});var sn=p((nC,Qi)=>{s();function Nh(e,t){return e===t||e!==e&&t!==t}Qi.exports=Nh});var _t=p((oC,eo)=>{s();var $h=sn();function kh(e,t){for(var r=e.length;r--;)if($h(e[r][0],t))return r;return-1}eo.exports=kh});var ro=p((aC,to)=>{s();var Uh=_t(),Wh=Array.prototype,Gh=Wh.splice;function zh(e){var t=this.__data__,r=Uh(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Gh.call(t,r,1),--this.size,!0}to.exports=zh});var io=p((cC,no)=>{s();var Bh=_t();function Jh(e){var t=this.__data__,r=Bh(t,e);return r<0?void 0:t[r][1]}no.exports=Jh});var so=p((lC,oo)=>{s();var Hh=_t();function Kh(e){return Hh(this.__data__,e)>-1}oo.exports=Kh});var uo=p((hC,ao)=>{s();var Yh=_t();function Vh(e,t){var r=this.__data__,n=Yh(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}ao.exports=Vh});var bt=p((dC,co)=>{s();var Zh=Xi(),Xh=ro(),Qh=io(),ey=so(),ty=uo();function Ye(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ye.prototype.clear=Zh;Ye.prototype.delete=Xh;Ye.prototype.get=Qh;Ye.prototype.has=ey;Ye.prototype.set=ty;co.exports=Ye});var lo=p((gC,fo)=>{s();var ry=bt();function ny(){this.__data__=new ry,this.size=0}fo.exports=ny});var ho=p((wC,po)=>{s();function iy(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}po.exports=iy});var mo=p((xC,yo)=>{s();function oy(e){return this.__data__.get(e)}yo.exports=oy});var vo=p((bC,go)=>{s();function sy(e){return this.__data__.has(e)}go.exports=sy});var an=p((qC,wo)=>{s();var ay=zt(),uy=Hr(),cy="[object AsyncFunction]",fy="[object Function]",ly="[object GeneratorFunction]",py="[object Proxy]";function hy(e){if(!uy(e))return!1;var t=ay(e);return t==fy||t==ly||t==cy||t==py}wo.exports=hy});var xo=p((OC,So)=>{s();var yy=qe(),dy=yy["__core-js_shared__"];So.exports=dy});var Eo=p((PC,bo)=>{s();var un=xo(),_o=(function(){var e=/[^.]+$/.exec(un&&un.keys&&un.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function my(e){return!!_o&&_o in e}bo.exports=my});var cn=p((FC,qo)=>{s();var gy=Function.prototype,vy=gy.toString;function wy(e){if(e!=null){try{return vy.call(e)}catch{}try{return e+""}catch{}}return""}qo.exports=wy});var Oo=p((IC,Co)=>{s();var Sy=an(),xy=Eo(),_y=Hr(),by=cn(),Ey=/[\\^$.*+?()[\]{}|]/g,qy=/^\[object .+?Constructor\]$/,Cy=Function.prototype,Oy=Object.prototype,Ty=Cy.toString,Py=Oy.hasOwnProperty,Ay=RegExp("^"+Ty.call(Py).replace(Ey,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fy(e){if(!_y(e)||xy(e))return!1;var t=Sy(e)?Ay:qy;return t.test(by(e))}Co.exports=Fy});var Po=p((jC,To)=>{s();function Ry(e,t){return e?.[t]}To.exports=Ry});var Oe=p((DC,Ao)=>{s();var Iy=Oo(),Ly=Po();function jy(e,t){var r=Ly(e,t);return Iy(r)?r:void 0}Ao.exports=jy});var tr=p(($C,Fo)=>{s();var My=Oe(),Dy=qe(),Ny=My(Dy,"Map");Fo.exports=Ny});var Et=p((UC,Ro)=>{s();var $y=Oe(),ky=$y(Object,"create");Ro.exports=ky});var jo=p((GC,Lo)=>{s();var Io=Et();function Uy(){this.__data__=Io?Io(null):{},this.size=0}Lo.exports=Uy});var Do=p((BC,Mo)=>{s();function Wy(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Mo.exports=Wy});var $o=p((HC,No)=>{s();var Gy=Et(),zy="__lodash_hash_undefined__",By=Object.prototype,Jy=By.hasOwnProperty;function Hy(e){var t=this.__data__;if(Gy){var r=t[e];return r===zy?void 0:r}return Jy.call(t,e)?t[e]:void 0}No.exports=Hy});var Uo=p((YC,ko)=>{s();var Ky=Et(),Yy=Object.prototype,Vy=Yy.hasOwnProperty;function Zy(e){var t=this.__data__;return Ky?t[e]!==void 0:Vy.call(t,e)}ko.exports=Zy});var Go=p((ZC,Wo)=>{s();var Xy=Et(),Qy="__lodash_hash_undefined__";function ed(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xy&&t===void 0?Qy:t,this}Wo.exports=ed});var Bo=p((QC,zo)=>{s();var td=jo(),rd=Do(),nd=$o(),id=Uo(),od=Go();function Ve(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ve.prototype.clear=td;Ve.prototype.delete=rd;Ve.prototype.get=nd;Ve.prototype.has=id;Ve.prototype.set=od;zo.exports=Ve});var Ko=p((tO,Ho)=>{s();var Jo=Bo(),sd=bt(),ad=tr();function ud(){this.size=0,this.__data__={hash:new Jo,map:new(ad||sd),string:new Jo}}Ho.exports=ud});var Vo=p((nO,Yo)=>{s();function cd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Yo.exports=cd});var qt=p((oO,Zo)=>{s();var fd=Vo();function ld(e,t){var r=e.__data__;return fd(t)?r[typeof t=="string"?"string":"hash"]:r.map}Zo.exports=ld});var Qo=p((aO,Xo)=>{s();var pd=qt();function hd(e){var t=pd(this,e).delete(e);return this.size-=t?1:0,t}Xo.exports=hd});var ts=p((cO,es)=>{s();var yd=qt();function dd(e){return yd(this,e).get(e)}es.exports=dd});var ns=p((lO,rs)=>{s();var md=qt();function gd(e){return md(this,e).has(e)}rs.exports=gd});var os=p((hO,is)=>{s();var vd=qt();function wd(e,t){var r=vd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}is.exports=wd});var rr=p((dO,ss)=>{s();var Sd=Ko(),xd=Qo(),_d=ts(),bd=ns(),Ed=os();function Ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ze.prototype.clear=Sd;Ze.prototype.delete=xd;Ze.prototype.get=_d;Ze.prototype.has=bd;Ze.prototype.set=Ed;ss.exports=Ze});var us=p((gO,as)=>{s();var qd=bt(),Cd=tr(),Od=rr(),Td=200;function Pd(e,t){var r=this.__data__;if(r instanceof qd){var n=r.__data__;if(!Cd||n.length<Td-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Od(n)}return r.set(e,t),this.size=r.size,this}as.exports=Pd});var fn=p((wO,cs)=>{s();var Ad=bt(),Fd=lo(),Rd=ho(),Id=mo(),Ld=vo(),jd=us();function Xe(e){var t=this.__data__=new Ad(e);this.size=t.size}Xe.prototype.clear=Fd;Xe.prototype.delete=Rd;Xe.prototype.get=Id;Xe.prototype.has=Ld;Xe.prototype.set=jd;cs.exports=Xe});var ls=p((xO,fs)=>{s();var Md="__lodash_hash_undefined__";function Dd(e){return this.__data__.set(e,Md),this}fs.exports=Dd});var hs=p((bO,ps)=>{s();function Nd(e){return this.__data__.has(e)}ps.exports=Nd});var ir=p((qO,ys)=>{s();var $d=rr(),kd=ls(),Ud=hs();function nr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new $d;++t<r;)this.add(e[t])}nr.prototype.add=nr.prototype.push=kd;nr.prototype.has=Ud;ys.exports=nr});var ms=p((OO,ds)=>{s();function Wd(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}ds.exports=Wd});var or=p((PO,gs)=>{s();function Gd(e,t){return e.has(t)}gs.exports=Gd});var ln=p((FO,vs)=>{s();var zd=ir(),Bd=ms(),Jd=or(),Hd=1,Kd=2;function Yd(e,t,r,n,i,o){var a=r&Hd,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var f=o.get(e),c=o.get(t);if(f&&c)return f==t&&c==e;var h=-1,d=!0,y=r&Kd?new zd:void 0;for(o.set(e,t),o.set(t,e);++h<u;){var m=e[h],g=t[h];if(n)var v=a?n(g,m,h,t,e,o):n(m,g,h,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(y){if(!Bd(t,function(w,S){if(!Jd(y,S)&&(m===w||i(m,w,r,n,o)))return y.push(S)})){d=!1;break}}else if(!(m===g||i(m,g,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}vs.exports=Yd});var Ss=p((IO,ws)=>{s();var Vd=qe(),Zd=Vd.Uint8Array;ws.exports=Zd});var _s=p((jO,xs)=>{s();function Xd(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}xs.exports=Xd});var sr=p((DO,bs)=>{s();function Qd(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}bs.exports=Qd});var Ts=p(($O,Os)=>{s();var Es=Jr(),qs=Ss(),em=sn(),tm=ln(),rm=_s(),nm=sr(),im=1,om=2,sm="[object Boolean]",am="[object Date]",um="[object Error]",cm="[object Map]",fm="[object Number]",lm="[object RegExp]",pm="[object Set]",hm="[object String]",ym="[object Symbol]",dm="[object ArrayBuffer]",mm="[object DataView]",Cs=Es?Es.prototype:void 0,pn=Cs?Cs.valueOf:void 0;function gm(e,t,r,n,i,o,a){switch(r){case mm:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dm:return!(e.byteLength!=t.byteLength||!o(new qs(e),new qs(t)));case sm:case am:case fm:return em(+e,+t);case um:return e.name==t.name&&e.message==t.message;case lm:case hm:return e==t+"";case cm:var u=rm;case pm:var l=n&im;if(u||(u=nm),e.size!=t.size&&!l)return!1;var f=a.get(e);if(f)return f==t;n|=om,a.set(e,t);var c=tm(u(e),u(t),n,i,o,a);return a.delete(e),c;case ym:if(pn)return pn.call(e)==pn.call(t)}return!1}Os.exports=gm});var hn=p((UO,Ps)=>{s();function vm(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}Ps.exports=vm});var ve=p((GO,As)=>{s();var wm=Array.isArray;As.exports=wm});var Rs=p((BO,Fs)=>{s();var Sm=hn(),xm=ve();function _m(e,t,r){var n=t(e);return xm(e)?n:Sm(n,r(e))}Fs.exports=_m});var Ls=p((HO,Is)=>{s();function bm(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}Is.exports=bm});var Ms=p((YO,js)=>{s();function Em(){return[]}js.exports=Em});var $s=p((ZO,Ns)=>{s();var qm=Ls(),Cm=Ms(),Om=Object.prototype,Tm=Om.propertyIsEnumerable,Ds=Object.getOwnPropertySymbols,Pm=Ds?function(e){return e==null?[]:(e=Object(e),qm(Ds(e),function(t){return Tm.call(e,t)}))}:Cm;Ns.exports=Pm});var Us=p((QO,ks)=>{s();function Am(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}ks.exports=Am});var Gs=p((tT,Ws)=>{s();var Fm=zt(),Rm=dt(),Im="[object Arguments]";function Lm(e){return Rm(e)&&Fm(e)==Im}Ws.exports=Lm});var ar=p((nT,Js)=>{s();var zs=Gs(),jm=dt(),Bs=Object.prototype,Mm=Bs.hasOwnProperty,Dm=Bs.propertyIsEnumerable,Nm=zs((function(){return arguments})())?zs:function(e){return jm(e)&&Mm.call(e,"callee")&&!Dm.call(e,"callee")};Js.exports=Nm});var Ks=p((oT,Hs)=>{s();function $m(){return!1}Hs.exports=$m});var yn=p((Ct,Qe)=>{s();var km=qe(),Um=Ks(),Zs=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,Ys=Zs&&typeof Qe=="object"&&Qe&&!Qe.nodeType&&Qe,Wm=Ys&&Ys.exports===Zs,Vs=Wm?km.Buffer:void 0,Gm=Vs?Vs.isBuffer:void 0,zm=Gm||Um;Qe.exports=zm});var dn=p((uT,Xs)=>{s();var Bm=9007199254740991,Jm=/^(?:0|[1-9]\d*)$/;function Hm(e,t){var r=typeof e;return t=t??Bm,!!t&&(r=="number"||r!="symbol"&&Jm.test(e))&&e>-1&&e%1==0&&e<t}Xs.exports=Hm});var ur=p((fT,Qs)=>{s();var Km=9007199254740991;function Ym(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Km}Qs.exports=Ym});var ta=p((pT,ea)=>{s();var Vm=zt(),Zm=ur(),Xm=dt(),Qm="[object Arguments]",eg="[object Array]",tg="[object Boolean]",rg="[object Date]",ng="[object Error]",ig="[object Function]",og="[object Map]",sg="[object Number]",ag="[object Object]",ug="[object RegExp]",cg="[object Set]",fg="[object String]",lg="[object WeakMap]",pg="[object ArrayBuffer]",hg="[object DataView]",yg="[object Float32Array]",dg="[object Float64Array]",mg="[object Int8Array]",gg="[object Int16Array]",vg="[object Int32Array]",wg="[object Uint8Array]",Sg="[object Uint8ClampedArray]",xg="[object Uint16Array]",_g="[object Uint32Array]",A={};A[yg]=A[dg]=A[mg]=A[gg]=A[vg]=A[wg]=A[Sg]=A[xg]=A[_g]=!0;A[Qm]=A[eg]=A[pg]=A[tg]=A[hg]=A[rg]=A[ng]=A[ig]=A[og]=A[sg]=A[ag]=A[ug]=A[cg]=A[fg]=A[lg]=!1;function bg(e){return Xm(e)&&Zm(e.length)&&!!A[Vm(e)]}ea.exports=bg});var mn=p((yT,ra)=>{s();function Eg(e){return function(t){return e(t)}}ra.exports=Eg});var ia=p((Ot,et)=>{s();var qg=_h(),na=typeof Ot=="object"&&Ot&&!Ot.nodeType&&Ot,Tt=na&&typeof et=="object"&&et&&!et.nodeType&&et,Cg=Tt&&Tt.exports===na,gn=Cg&&qg.process,Og=(function(){try{var e=Tt&&Tt.require&&Tt.require("util").types;return e||gn&&gn.binding&&gn.binding("util")}catch{}})();et.exports=Og});var vn=p((gT,aa)=>{s();var Tg=ta(),Pg=mn(),oa=ia(),sa=oa&&oa.isTypedArray,Ag=sa?Pg(sa):Tg;aa.exports=Ag});var ca=p((wT,ua)=>{s();var Fg=Us(),Rg=ar(),Ig=ve(),Lg=yn(),jg=dn(),Mg=vn(),Dg=Object.prototype,Ng=Dg.hasOwnProperty;function $g(e,t){var r=Ig(e),n=!r&&Rg(e),i=!r&&!n&&Lg(e),o=!r&&!n&&!i&&Mg(e),a=r||n||i||o,u=a?Fg(e.length,String):[],l=u.length;for(var f in e)(t||Ng.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||jg(f,l)))&&u.push(f);return u}ua.exports=$g});var la=p((xT,fa)=>{s();var kg=Object.prototype;function Ug(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||kg;return e===r}fa.exports=Ug});var ha=p((bT,pa)=>{s();function Wg(e,t){return function(r){return e(t(r))}}pa.exports=Wg});var da=p((qT,ya)=>{s();var Gg=ha(),zg=Gg(Object.keys,Object);ya.exports=zg});var ga=p((OT,ma)=>{s();var Bg=la(),Jg=da(),Hg=Object.prototype,Kg=Hg.hasOwnProperty;function Yg(e){if(!Bg(e))return Jg(e);var t=[];for(var r in Object(e))Kg.call(e,r)&&r!="constructor"&&t.push(r);return t}ma.exports=Yg});var wn=p((PT,va)=>{s();var Vg=an(),Zg=ur();function Xg(e){return e!=null&&Zg(e.length)&&!Vg(e)}va.exports=Xg});var Sn=p((FT,wa)=>{s();var Qg=ca(),ev=ga(),tv=wn();function rv(e){return tv(e)?Qg(e):ev(e)}wa.exports=rv});var xa=p((IT,Sa)=>{s();var nv=Rs(),iv=$s(),ov=Sn();function sv(e){return nv(e,ov,iv)}Sa.exports=sv});var Ea=p((jT,ba)=>{s();var _a=xa(),av=1,uv=Object.prototype,cv=uv.hasOwnProperty;function fv(e,t,r,n,i,o){var a=r&av,u=_a(e),l=u.length,f=_a(t),c=f.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var d=u[h];if(!(a?d in t:cv.call(t,d)))return!1}var y=o.get(e),m=o.get(t);if(y&&m)return y==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=a;++h<l;){d=u[h];var w=e[d],S=t[d];if(n)var C=a?n(S,w,d,t,e,o):n(w,S,d,e,t,o);if(!(C===void 0?w===S||i(w,S,r,n,o):C)){g=!1;break}v||(v=d=="constructor")}if(g&&!v){var H=e.constructor,we=t.constructor;H!=we&&"constructor"in e&&"constructor"in t&&!(typeof H=="function"&&H instanceof H&&typeof we=="function"&&we instanceof we)&&(g=!1)}return o.delete(e),o.delete(t),g}ba.exports=fv});var Ca=p((DT,qa)=>{s();var lv=Oe(),pv=qe(),hv=lv(pv,"DataView");qa.exports=hv});var Ta=p(($T,Oa)=>{s();var yv=Oe(),dv=qe(),mv=yv(dv,"Promise");Oa.exports=mv});var xn=p((UT,Pa)=>{s();var gv=Oe(),vv=qe(),wv=gv(vv,"Set");Pa.exports=wv});var Fa=p((GT,Aa)=>{s();var Sv=Oe(),xv=qe(),_v=Sv(xv,"WeakMap");Aa.exports=_v});var $a=p((BT,Na)=>{s();var _n=Ca(),bn=tr(),En=Ta(),qn=xn(),Cn=Fa(),Da=zt(),tt=cn(),Ra="[object Map]",bv="[object Object]",Ia="[object Promise]",La="[object Set]",ja="[object WeakMap]",Ma="[object DataView]",Ev=tt(_n),qv=tt(bn),Cv=tt(En),Ov=tt(qn),Tv=tt(Cn),$e=Da;(_n&&$e(new _n(new ArrayBuffer(1)))!=Ma||bn&&$e(new bn)!=Ra||En&&$e(En.resolve())!=Ia||qn&&$e(new qn)!=La||Cn&&$e(new Cn)!=ja)&&($e=function(e){var t=Da(e),r=t==bv?e.constructor:void 0,n=r?tt(r):"";if(n)switch(n){case Ev:return Ma;case qv:return Ra;case Cv:return Ia;case Ov:return La;case Tv:return ja}return t});Na.exports=$e});var Ha=p((HT,Ja)=>{s();var On=fn(),Pv=ln(),Av=Ts(),Fv=Ea(),ka=$a(),Ua=ve(),Wa=yn(),Rv=vn(),Iv=1,Ga="[object Arguments]",za="[object Array]",cr="[object Object]",Lv=Object.prototype,Ba=Lv.hasOwnProperty;function jv(e,t,r,n,i,o){var a=Ua(e),u=Ua(t),l=a?za:ka(e),f=u?za:ka(t);l=l==Ga?cr:l,f=f==Ga?cr:f;var c=l==cr,h=f==cr,d=l==f;if(d&&Wa(e)){if(!Wa(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new On),a||Rv(e)?Pv(e,t,r,n,i,o):Av(e,t,l,r,n,i,o);if(!(r&Iv)){var y=c&&Ba.call(e,"__wrapped__"),m=h&&Ba.call(t,"__wrapped__");if(y||m){var g=y?e.value():e,v=m?t.value():t;return o||(o=new On),i(g,v,r,n,o)}}return d?(o||(o=new On),Fv(e,t,r,n,i,o)):!1}Ja.exports=jv});var Tn=p((YT,Va)=>{s();var Mv=Ha(),Ka=dt();function Ya(e,t,r,n,i){return e===t?!0:e==null||t==null||!Ka(e)&&!Ka(t)?e!==e&&t!==t:Mv(e,t,r,n,Ya,i)}Va.exports=Ya});var Xa=p((ZT,Za)=>{s();var Dv=fn(),Nv=Tn(),$v=1,kv=2;function Uv(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var l=u[0],f=e[l],c=u[1];if(a&&u[2]){if(f===void 0&&!(l in e))return!1}else{var h=new Dv;if(n)var d=n(f,c,l,e,t,h);if(!(d===void 0?Nv(c,f,$v|kv,n,h):d))return!1}}return!0}Za.exports=Uv});var Pn=p((QT,Qa)=>{s();var Wv=Hr();function Gv(e){return e===e&&!Wv(e)}Qa.exports=Gv});var tu=p((t1,eu)=>{s();var zv=Pn(),Bv=Sn();function Jv(e){for(var t=Bv(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,zv(i)]}return t}eu.exports=Jv});var An=p((n1,ru)=>{s();function Hv(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}ru.exports=Hv});var iu=p((o1,nu)=>{s();var Kv=Xa(),Yv=tu(),Vv=An();function Zv(e){var t=Yv(e);return t.length==1&&t[0][2]?Vv(t[0][0],t[0][1]):function(r){return r===e||Kv(r,e,t)}}nu.exports=Zv});var fr=p((a1,ou)=>{s();var Xv=ve(),Qv=Kr(),ew=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tw=/^\w*$/;function rw(e,t){if(Xv(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Qv(e)?!0:tw.test(e)||!ew.test(e)||t!=null&&e in Object(t)}ou.exports=rw});var uu=p((c1,au)=>{s();var su=rr(),nw="Expected a function";function Fn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(nw);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Fn.Cache||su),r}Fn.Cache=su;au.exports=Fn});var fu=p((l1,cu)=>{s();var iw=uu(),ow=500;function sw(e){var t=iw(e,function(n){return r.size===ow&&r.clear(),n}),r=t.cache;return t}cu.exports=sw});var pu=p((h1,lu)=>{s();var aw=fu(),uw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cw=/\\(\\)?/g,fw=aw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uw,function(r,n,i,o){t.push(i?o.replace(cw,"$1"):n||r)}),t});lu.exports=fw});var Rn=p((d1,hu)=>{s();function lw(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}hu.exports=lw});var wu=p((g1,vu)=>{s();var yu=Jr(),pw=Rn(),hw=ve(),yw=Kr(),dw=1/0,du=yu?yu.prototype:void 0,mu=du?du.toString:void 0;function gu(e){if(typeof e=="string")return e;if(hw(e))return pw(e,gu)+"";if(yw(e))return mu?mu.call(e):"";var t=e+"";return t=="0"&&1/e==-dw?"-0":t}vu.exports=gu});var xu=p((w1,Su)=>{s();var mw=wu();function gw(e){return e==null?"":mw(e)}Su.exports=gw});var In=p((x1,_u)=>{s();var vw=ve(),ww=fr(),Sw=pu(),xw=xu();function _w(e,t){return vw(e)?e:ww(e,t)?[e]:Sw(xw(e))}_u.exports=_w});var Pt=p((b1,bu)=>{s();var bw=Kr(),Ew=1/0;function qw(e){if(typeof e=="string"||bw(e))return e;var t=e+"";return t=="0"&&1/e==-Ew?"-0":t}bu.exports=qw});var Ln=p((q1,Eu)=>{s();var Cw=In(),Ow=Pt();function Tw(e,t){t=Cw(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ow(t[r++])];return r&&r==n?e:void 0}Eu.exports=Tw});var Cu=p((O1,qu)=>{s();var Pw=Ln();function Aw(e,t,r){var n=e==null?void 0:Pw(e,t);return n===void 0?r:n}qu.exports=Aw});var Tu=p((P1,Ou)=>{s();function Fw(e,t){return e!=null&&t in Object(e)}Ou.exports=Fw});var Au=p((F1,Pu)=>{s();var Rw=In(),Iw=ar(),Lw=ve(),jw=dn(),Mw=ur(),Dw=Pt();function Nw(e,t,r){t=Rw(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=Dw(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Mw(i)&&jw(a,i)&&(Lw(e)||Iw(e)))}Pu.exports=Nw});var Ru=p((I1,Fu)=>{s();var $w=Tu(),kw=Au();function Uw(e,t){return e!=null&&kw(e,t,$w)}Fu.exports=Uw});var Lu=p((j1,Iu)=>{s();var Ww=Tn(),Gw=Cu(),zw=Ru(),Bw=fr(),Jw=Pn(),Hw=An(),Kw=Pt(),Yw=1,Vw=2;function Zw(e,t){return Bw(e)&&Jw(t)?Hw(Kw(e),t):function(r){var n=Gw(r,e);return n===void 0&&n===t?zw(r,e):Ww(t,n,Yw|Vw)}}Iu.exports=Zw});var lr=p((D1,ju)=>{s();function Xw(e){return e}ju.exports=Xw});var Du=p(($1,Mu)=>{s();function Qw(e){return function(t){return t?.[e]}}Mu.exports=Qw});var $u=p((U1,Nu)=>{s();var eS=Ln();function tS(e){return function(t){return eS(t,e)}}Nu.exports=tS});var Uu=p((G1,ku)=>{s();var rS=Du(),nS=$u(),iS=fr(),oS=Pt();function sS(e){return iS(e)?rS(oS(e)):nS(e)}ku.exports=sS});var Gu=p((B1,Wu)=>{s();var aS=iu(),uS=Lu(),cS=lr(),fS=ve(),lS=Uu();function pS(e){return typeof e=="function"?e:e==null?cS:typeof e=="object"?fS(e)?uS(e[0],e[1]):aS(e):lS(e)}Wu.exports=pS});var Bu=p((H1,zu)=>{s();function hS(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}zu.exports=hS});var Hu=p((Y1,Ju)=>{s();function yS(e){return e!==e}Ju.exports=yS});var Yu=p((Z1,Ku)=>{s();function dS(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}Ku.exports=dS});var Zu=p((Q1,Vu)=>{s();var mS=Bu(),gS=Hu(),vS=Yu();function wS(e,t,r){return t===t?vS(e,t,r):mS(e,gS,r)}Vu.exports=wS});var jn=p((tP,Xu)=>{s();var SS=Zu();function xS(e,t){var r=e==null?0:e.length;return!!r&&SS(e,t,0)>-1}Xu.exports=xS});var Mn=p((nP,Qu)=>{s();function _S(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}Qu.exports=_S});var tc=p((oP,ec)=>{s();function bS(){}ec.exports=bS});var nc=p((aP,rc)=>{s();var Dn=xn(),ES=tc(),qS=sr(),CS=1/0,OS=Dn&&1/qS(new Dn([,-0]))[1]==CS?function(e){return new Dn(e)}:ES;rc.exports=OS});var oc=p((cP,ic)=>{s();var TS=ir(),PS=jn(),AS=Mn(),FS=or(),RS=nc(),IS=sr(),LS=200;function jS(e,t,r){var n=-1,i=PS,o=e.length,a=!0,u=[],l=u;if(r)a=!1,i=AS;else if(o>=LS){var f=t?null:RS(e);if(f)return IS(f);a=!1,i=FS,l=new TS}else l=t?[]:u;e:for(;++n<o;){var c=e[n],h=t?t(c):c;if(c=r||c!==0?c:0,a&&h===h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),u.push(c)}else i(l,h,r)||(l!==u&&l.push(h),u.push(c))}return u}ic.exports=jS});var ac=p((lP,sc)=>{s();var MS=Gu(),DS=oc();function NS(e,t){return e&&e.length?DS(e,MS(t,2)):[]}sc.exports=NS});var cc=p((hP,uc)=>{s();var $S=ir(),kS=jn(),US=Mn(),WS=Rn(),GS=mn(),zS=or(),BS=200;function JS(e,t,r,n){var i=-1,o=kS,a=!0,u=e.length,l=[],f=t.length;if(!u)return l;r&&(t=WS(t,GS(r))),n?(o=US,a=!1):t.length>=BS&&(o=zS,a=!1,t=new $S(t));e:for(;++i<u;){var c=e[i],h=r==null?c:r(c);if(c=n||c!==0?c:0,a&&h===h){for(var d=f;d--;)if(t[d]===h)continue e;l.push(c)}else o(t,h,n)||l.push(c)}return l}uc.exports=JS});var hc=p((dP,pc)=>{s();var fc=Jr(),HS=ar(),KS=ve(),lc=fc?fc.isConcatSpreadable:void 0;function YS(e){return KS(e)||HS(e)||!!(lc&&e&&e[lc])}pc.exports=YS});var mc=p((gP,dc)=>{s();var VS=hn(),ZS=hc();function yc(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=ZS),i||(i=[]);++o<a;){var u=e[o];t>0&&r(u)?t>1?yc(u,t-1,r,n,i):VS(i,u):n||(i[i.length]=u)}return i}dc.exports=yc});var vc=p((wP,gc)=>{s();function XS(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}gc.exports=XS});var xc=p((xP,Sc)=>{s();var QS=vc(),wc=Math.max;function ex(e,t,r){return t=wc(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=wc(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(a),QS(e,this,u)}}Sc.exports=ex});var bc=p((bP,_c)=>{s();function tx(e){return function(){return e}}_c.exports=tx});var qc=p((qP,Ec)=>{s();var rx=Oe(),nx=(function(){try{var e=rx(Object,"defineProperty");return e({},"",{}),e}catch{}})();Ec.exports=nx});var Tc=p((OP,Oc)=>{s();var ix=bc(),Cc=qc(),ox=lr(),sx=Cc?function(e,t){return Cc(e,"toString",{configurable:!0,enumerable:!1,value:ix(t),writable:!0})}:ox;Oc.exports=sx});var Ac=p((PP,Pc)=>{s();var ax=800,ux=16,cx=Date.now;function fx(e){var t=0,r=0;return function(){var n=cx(),i=ux-(n-r);if(r=n,i>0){if(++t>=ax)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}Pc.exports=fx});var Rc=p((FP,Fc)=>{s();var lx=Tc(),px=Ac(),hx=px(lx);Fc.exports=hx});var Lc=p((IP,Ic)=>{s();var yx=lr(),dx=xc(),mx=Rc();function gx(e,t){return mx(dx(e,t,yx),e+"")}Ic.exports=gx});var Mc=p((jP,jc)=>{s();var vx=wn(),wx=dt();function Sx(e){return wx(e)&&vx(e)}jc.exports=Sx});var $c=p((DP,Nc)=>{s();var xx=cc(),_x=mc(),bx=Lc(),Dc=Mc(),Ex=bx(function(e,t){return Dc(e)?xx(e,_x(t,1,Dc,!0)):[]});Nc.exports=Ex});var fe={};xh(fe,{__addDisposableResource:()=>hf,__assign:()=>pr,__asyncDelegator:()=>of,__asyncGenerator:()=>nf,__asyncValues:()=>sf,__await:()=>rt,__awaiter:()=>Zc,__classPrivateFieldGet:()=>ff,__classPrivateFieldIn:()=>pf,__classPrivateFieldSet:()=>lf,__createBinding:()=>yr,__decorate:()=>zc,__disposeResources:()=>yf,__esDecorate:()=>Jc,__exportStar:()=>Qc,__extends:()=>Wc,__generator:()=>Xc,__importDefault:()=>cf,__importStar:()=>uf,__makeTemplateObject:()=>af,__metadata:()=>Vc,__param:()=>Bc,__propKey:()=>Kc,__read:()=>Un,__rest:()=>Gc,__rewriteRelativeImportExtension:()=>df,__runInitializers:()=>Hc,__setFunctionName:()=>Yc,__spread:()=>ef,__spreadArray:()=>rf,__spreadArrays:()=>tf,__values:()=>hr,default:()=>Tx});function Wc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Gc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function zc(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function Bc(e,t){return function(r,n){t(r,n,e)}}function Jc(e,t,r,n,i,o){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",f=!t&&e?n.static?e:e.prototype:null,c=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),h,d=!1,y=r.length-1;y>=0;y--){var m={};for(var g in n)m[g]=g==="access"?{}:n[g];for(var g in n.access)m.access[g]=n.access[g];m.addInitializer=function(w){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(w||null))};var v=(0,r[y])(u==="accessor"?{get:c.get,set:c.set}:c[l],m);if(u==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(h=a(v.get))&&(c.get=h),(h=a(v.set))&&(c.set=h),(h=a(v.init))&&i.unshift(h)}else(h=a(v))&&(u==="field"?i.unshift(h):c[l]=h)}f&&Object.defineProperty(f,n.name,c),d=!0}function Hc(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Kc(e){return typeof e=="symbol"?e:"".concat(e)}function Yc(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Vc(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Zc(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(c){try{f(n.next(c))}catch(h){a(h)}}function l(c){try{f(n.throw(c))}catch(h){a(h)}}function f(c){c.done?o(c.value):i(c.value).then(u,l)}f((n=n.apply(e,t||[])).next())})}function Xc(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,f[0]&&(r=0)),r;)try{if(n=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}o[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(c){f=[6,c],i=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Qc(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&yr(t,e,r)}function hr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Un(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function ef(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Un(arguments[t]));return e}function tf(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function rf(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function rt(e){return this instanceof rt?(this.v=e,this):new rt(e)}function nf(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(y){return function(m){return Promise.resolve(m).then(y,h)}}function u(y,m){n[y]&&(i[y]=function(g){return new Promise(function(v,w){o.push([y,g,v,w])>1||l(y,g)})},m&&(i[y]=m(i[y])))}function l(y,m){try{f(n[y](m))}catch(g){d(o[0][3],g)}}function f(y){y.value instanceof rt?Promise.resolve(y.value.v).then(c,h):d(o[0][2],y)}function c(y){l("next",y)}function h(y){l("throw",y)}function d(y,m){y(m),o.shift(),o.length&&l(o[0][0],o[0][1])}}function of(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:rt(e[i](a)),done:!1}:o?o(a):a}:o}}function sf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof hr=="function"?hr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(f){o({value:f,done:u})},a)}}function af(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function uf(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=kn(e),n=0;n<r.length;n++)r[n]!=="default"&&yr(t,e,r[n]);return Cx(t,e),t}function cf(e){return e&&e.__esModule?e:{default:e}}function ff(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function lf(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function pf(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function hf(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function yf(e){function t(o){e.error=e.hasError?new Ox(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function df(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}var $n,pr,yr,Cx,kn,Ox,Tx,le=Sh(()=>{s();$n=function(e,t){return $n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},$n(e,t)};pr=function(){return pr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},pr.apply(this,arguments)};yr=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});Cx=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},kn=function(e){return kn=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},kn(e)};Ox=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};Tx={__extends:Wc,__assign:pr,__rest:Gc,__decorate:zc,__param:Bc,__esDecorate:Jc,__runInitializers:Hc,__propKey:Kc,__setFunctionName:Yc,__metadata:Vc,__awaiter:Zc,__generator:Xc,__createBinding:yr,__exportStar:Qc,__values:hr,__read:Un,__spread:ef,__spreadArrays:tf,__spreadArray:rf,__await:rt,__asyncGenerator:nf,__asyncDelegator:of,__asyncValues:sf,__makeTemplateObject:af,__importStar:uf,__importDefault:cf,__classPrivateFieldGet:ff,__classPrivateFieldSet:lf,__classPrivateFieldIn:pf,__addDisposableResource:hf,__disposeResources:yf,__rewriteRelativeImportExtension:df}});var mf=p(nt=>{"use strict";s();Object.defineProperty(nt,"__esModule",{value:!0});nt.lowerCase=nt.localeLowerCase=void 0;var Px={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},az:{regexp:/\u0130/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},lt:{regexp:/\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,map:{I:"i\u0307",J:"j\u0307",\u012E:"\u012F\u0307",\u00CC:"i\u0307\u0300",\u00CD:"i\u0307\u0301",\u0128:"i\u0307\u0303"}}};function Ax(e,t){var r=Px[t.toLowerCase()];return Wn(r?e.replace(r.regexp,function(n){return r.map[n]}):e)}nt.localeLowerCase=Ax;function Wn(e){return e.toLowerCase()}nt.lowerCase=Wn});var ke=p(dr=>{"use strict";s();Object.defineProperty(dr,"__esModule",{value:!0});dr.noCase=void 0;var Fx=mf(),Rx=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Ix=/[^A-Z0-9]+/gi;function Lx(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,n=r===void 0?Rx:r,i=t.stripRegexp,o=i===void 0?Ix:i,a=t.transform,u=a===void 0?Fx.lowerCase:a,l=t.delimiter,f=l===void 0?" ":l,c=gf(gf(e,n,"$1\0$2"),o,"\0"),h=0,d=c.length;c.charAt(h)==="\0";)h++;for(;c.charAt(d-1)==="\0";)d--;return c.slice(h,d).split("\0").map(u).join(f)}dr.noCase=Lx;function gf(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(n,i){return n.replace(i,r)},e)}});var Gn=p(Te=>{"use strict";s();Object.defineProperty(Te,"__esModule",{value:!0});Te.pascalCase=Te.pascalCaseTransformMerge=Te.pascalCaseTransform=void 0;var jx=(le(),ye(fe)),Mx=ke();function vf(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}Te.pascalCaseTransform=vf;function Dx(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}Te.pascalCaseTransformMerge=Dx;function Nx(e,t){return t===void 0&&(t={}),Mx.noCase(e,jx.__assign({delimiter:"",transform:vf},t))}Te.pascalCase=Nx});var Sf=p(Pe=>{"use strict";s();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.camelCase=Pe.camelCaseTransformMerge=Pe.camelCaseTransform=void 0;var $x=(le(),ye(fe)),zn=Gn();function wf(e,t){return t===0?e.toLowerCase():zn.pascalCaseTransform(e,t)}Pe.camelCaseTransform=wf;function kx(e,t){return t===0?e.toLowerCase():zn.pascalCaseTransformMerge(e)}Pe.camelCaseTransformMerge=kx;function Ux(e,t){return t===void 0&&(t={}),zn.pascalCase(e,$x.__assign({transform:wf},t))}Pe.camelCase=Ux});var Bn=p(mr=>{"use strict";s();Object.defineProperty(mr,"__esModule",{value:!0});mr.upperCaseFirst=void 0;function Wx(e){return e.charAt(0).toUpperCase()+e.substr(1)}mr.upperCaseFirst=Wx});var Jn=p(it=>{"use strict";s();Object.defineProperty(it,"__esModule",{value:!0});it.capitalCase=it.capitalCaseTransform=void 0;var Gx=(le(),ye(fe)),zx=ke(),Bx=Bn();function xf(e){return Bx.upperCaseFirst(e.toLowerCase())}it.capitalCaseTransform=xf;function Jx(e,t){return t===void 0&&(t={}),zx.noCase(e,Gx.__assign({delimiter:" ",transform:xf},t))}it.capitalCase=Jx});var _f=p(ot=>{"use strict";s();Object.defineProperty(ot,"__esModule",{value:!0});ot.upperCase=ot.localeUpperCase=void 0;var Hx={tr:{regexp:/[\u0069]/g,map:{i:"\u0130"}},az:{regexp:/[\u0069]/g,map:{i:"\u0130"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{i\u0307:"I",j\u0307:"J",\u012F\u0307:"\u012E",i\u0307\u0300:"\xCC",i\u0307\u0301:"\xCD",i\u0307\u0303:"\u0128"}}};function Kx(e,t){var r=Hx[t.toLowerCase()];return Hn(r?e.replace(r.regexp,function(n){return r.map[n]}):e)}ot.localeUpperCase=Kx;function Hn(e){return e.toUpperCase()}ot.upperCase=Hn});var bf=p(gr=>{"use strict";s();Object.defineProperty(gr,"__esModule",{value:!0});gr.constantCase=void 0;var Yx=(le(),ye(fe)),Vx=ke(),Zx=_f();function Xx(e,t){return t===void 0&&(t={}),Vx.noCase(e,Yx.__assign({delimiter:"_",transform:Zx.upperCase},t))}gr.constantCase=Xx});var At=p(vr=>{"use strict";s();Object.defineProperty(vr,"__esModule",{value:!0});vr.dotCase=void 0;var Qx=(le(),ye(fe)),e0=ke();function t0(e,t){return t===void 0&&(t={}),e0.noCase(e,Qx.__assign({delimiter:"."},t))}vr.dotCase=t0});var Ef=p(wr=>{"use strict";s();Object.defineProperty(wr,"__esModule",{value:!0});wr.headerCase=void 0;var r0=(le(),ye(fe)),n0=Jn();function i0(e,t){return t===void 0&&(t={}),n0.capitalCase(e,r0.__assign({delimiter:"-"},t))}wr.headerCase=i0});var qf=p(Sr=>{"use strict";s();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.paramCase=void 0;var o0=(le(),ye(fe)),s0=At();function a0(e,t){return t===void 0&&(t={}),s0.dotCase(e,o0.__assign({delimiter:"-"},t))}Sr.paramCase=a0});var Cf=p(xr=>{"use strict";s();Object.defineProperty(xr,"__esModule",{value:!0});xr.pathCase=void 0;var u0=(le(),ye(fe)),c0=At();function f0(e,t){return t===void 0&&(t={}),c0.dotCase(e,u0.__assign({delimiter:"/"},t))}xr.pathCase=f0});var Tf=p(st=>{"use strict";s();Object.defineProperty(st,"__esModule",{value:!0});st.sentenceCase=st.sentenceCaseTransform=void 0;var l0=(le(),ye(fe)),p0=ke(),h0=Bn();function Of(e,t){var r=e.toLowerCase();return t===0?h0.upperCaseFirst(r):r}st.sentenceCaseTransform=Of;function y0(e,t){return t===void 0&&(t={}),p0.noCase(e,l0.__assign({delimiter:" ",transform:Of},t))}st.sentenceCase=y0});var Pf=p(_r=>{"use strict";s();Object.defineProperty(_r,"__esModule",{value:!0});_r.snakeCase=void 0;var d0=(le(),ye(fe)),m0=At();function g0(e,t){return t===void 0&&(t={}),m0.dotCase(e,d0.__assign({delimiter:"_"},t))}_r.snakeCase=g0});var Af=p(se=>{"use strict";s();Object.defineProperty(se,"__esModule",{value:!0});var de=(le(),ye(fe));de.__exportStar(Sf(),se);de.__exportStar(Jn(),se);de.__exportStar(bf(),se);de.__exportStar(At(),se);de.__exportStar(Ef(),se);de.__exportStar(ke(),se);de.__exportStar(qf(),se);de.__exportStar(Gn(),se);de.__exportStar(Cf(),se);de.__exportStar(Tf(),se);de.__exportStar(Pf(),se)});var Q=p(Yn=>{"use strict";s();Yn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{t.push((i,o)=>i!=null?n(i):r(o)),e.apply(this,t)})},"name",{value:e.name})};Yn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(n=>r(null,n),r)},"name",{value:e.name})}});var Lf=p((HA,If)=>{s();var Ae=D("constants"),q0=process.cwd,Er=null,C0=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Er||(Er=q0.call(process)),Er};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Vn=process.chdir,process.chdir=function(e){Er=null,Vn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Vn));var Vn;If.exports=O0;function O0(e){Ae.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,h,d){d&&process.nextTick(d)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,h,d,y){y&&process.nextTick(y)},e.lchownSync=function(){}),C0==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(c){function h(d,y,m){var g=Date.now(),v=0;c(d,y,function w(S){if(S&&(S.code==="EACCES"||S.code==="EPERM"||S.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){e.stat(y,function(C,H){C&&C.code==="ENOENT"?c(d,y,w):m(S)})},v),v<100&&(v+=10);return}m&&m(S)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(c){function h(d,y,m,g,v,w){var S;if(w&&typeof w=="function"){var C=0;S=function(H,we,Ee){if(H&&H.code==="EAGAIN"&&C<10)return C++,c.call(e,d,y,m,g,v,S);w.apply(this,arguments)}}return c.call(e,d,y,m,g,v,S)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(c){return function(h,d,y,m,g){for(var v=0;;)try{return c.call(e,h,d,y,m,g)}catch(w){if(w.code==="EAGAIN"&&v<10){v++;continue}throw w}}})(e.readSync);function t(c){c.lchmod=function(h,d,y){c.open(h,Ae.O_WRONLY|Ae.O_SYMLINK,d,function(m,g){if(m){y&&y(m);return}c.fchmod(g,d,function(v){c.close(g,function(w){y&&y(v||w)})})})},c.lchmodSync=function(h,d){var y=c.openSync(h,Ae.O_WRONLY|Ae.O_SYMLINK,d),m=!0,g;try{g=c.fchmodSync(y,d),m=!1}finally{if(m)try{c.closeSync(y)}catch{}else c.closeSync(y)}return g}}function r(c){Ae.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(h,d,y,m){c.open(h,Ae.O_SYMLINK,function(g,v){if(g){m&&m(g);return}c.futimes(v,d,y,function(w){c.close(v,function(S){m&&m(w||S)})})})},c.lutimesSync=function(h,d,y){var m=c.openSync(h,Ae.O_SYMLINK),g,v=!0;try{g=c.futimesSync(m,d,y),v=!1}finally{if(v)try{c.closeSync(m)}catch{}else c.closeSync(m)}return g}):c.futimes&&(c.lutimes=function(h,d,y,m){m&&process.nextTick(m)},c.lutimesSync=function(){})}function n(c){return c&&function(h,d,y){return c.call(e,h,d,function(m){f(m)&&(m=null),y&&y.apply(this,arguments)})}}function i(c){return c&&function(h,d){try{return c.call(e,h,d)}catch(y){if(!f(y))throw y}}}function o(c){return c&&function(h,d,y,m){return c.call(e,h,d,y,function(g){f(g)&&(g=null),m&&m.apply(this,arguments)})}}function a(c){return c&&function(h,d,y){try{return c.call(e,h,d,y)}catch(m){if(!f(m))throw m}}}function u(c){return c&&function(h,d,y){typeof d=="function"&&(y=d,d=null);function m(g,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),y&&y.apply(this,arguments)}return d?c.call(e,h,d,m):c.call(e,h,m)}}function l(c){return c&&function(h,d){var y=d?c.call(e,h,d):c.call(e,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function f(c){if(!c||c.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var Df=p((YA,Mf)=>{s();var jf=D("stream").Stream;Mf.exports=T0;function T0(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);jf.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),u=0,l=a.length;u<l;u++){var f=a[u];this[f]=i[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(c,h){if(c){o.emit("error",c),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);jf.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var $f=p((ZA,Nf)=>{"use strict";s();Nf.exports=A0;var P0=Object.getPrototypeOf||function(e){return e.__proto__};function A0(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:P0(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var ee=p((QA,Qn)=>{s();var j=D("fs"),F0=Lf(),R0=Df(),I0=$f(),qr=D("util"),B,Or;typeof Symbol=="function"&&typeof Symbol.for=="function"?(B=Symbol.for("graceful-fs.queue"),Or=Symbol.for("graceful-fs.previous")):(B="___graceful-fs.queue",Or="___graceful-fs.previous");function L0(){}function Wf(e,t){Object.defineProperty(e,B,{get:function(){return t}})}var Ue=L0;qr.debuglog?Ue=qr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ue=function(){var e=qr.format.apply(qr,arguments);e="GFS4: "+e.split(/\n/).join(`
2
+ GFS4: `),console.error(e)});j[B]||(kf=global[B]||[],Wf(j,kf),j.close=(function(e){function t(r,n){return e.call(j,r,function(i){i||Uf(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Or,{value:e}),t})(j.close),j.closeSync=(function(e){function t(r){e.apply(j,arguments),Uf()}return Object.defineProperty(t,Or,{value:e}),t})(j.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ue(j[B]),D("assert").equal(j[B].length,0)}));var kf;global[B]||Wf(global,j[B]);Qn.exports=Zn(I0(j));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!j.__patched&&(Qn.exports=Zn(j),j.__patched=!0);function Zn(e){F0(e),e.gracefulify=Zn,e.createReadStream=we,e.createWriteStream=Ee;var t=e.readFile;e.readFile=r;function r(x,_,E){return typeof _=="function"&&(E=_,_=null),W(x,_,E);function W(G,$,I,M){return t(G,$,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?at([W,[G,$,I],T,M||Date.now(),Date.now()]):typeof I=="function"&&I.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(x,_,E,W){return typeof E=="function"&&(W=E,E=null),G(x,_,E,W);function G($,I,M,T,z){return n($,I,M,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?at([G,[$,I,M,T],F,z||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=a);function a(x,_,E,W){return typeof E=="function"&&(W=E,E=null),G(x,_,E,W);function G($,I,M,T,z){return o($,I,M,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?at([G,[$,I,M,T],F,z||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=l);function l(x,_,E,W){return typeof E=="function"&&(W=E,E=0),G(x,_,E,W);function G($,I,M,T,z){return u($,I,M,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?at([G,[$,I,M,T],F,z||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var f=e.readdir;e.readdir=h;var c=/^v[0-5]\./;function h(x,_,E){typeof _=="function"&&(E=_,_=null);var W=c.test(process.version)?function(I,M,T,z){return f(I,G(I,M,T,z))}:function(I,M,T,z){return f(I,M,G(I,M,T,z))};return W(x,_,E);function G($,I,M,T){return function(z,F){z&&(z.code==="EMFILE"||z.code==="ENFILE")?at([W,[$,I,M],z,T||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof M=="function"&&M.call(this,z,F))}}}if(process.version.substr(0,4)==="v0.8"){var d=R0(e);w=d.ReadStream,C=d.WriteStream}var y=e.ReadStream;y&&(w.prototype=Object.create(y.prototype),w.prototype.open=S);var m=e.WriteStream;m&&(C.prototype=Object.create(m.prototype),C.prototype.open=H),Object.defineProperty(e,"ReadStream",{get:function(){return w},set:function(x){w=x},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(x){C=x},enumerable:!0,configurable:!0});var g=w;Object.defineProperty(e,"FileReadStream",{get:function(){return g},set:function(x){g=x},enumerable:!0,configurable:!0});var v=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});function w(x,_){return this instanceof w?(y.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function S(){var x=this;ze(x.path,x.flags,x.mode,function(_,E){_?(x.autoClose&&x.destroy(),x.emit("error",_)):(x.fd=E,x.emit("open",E),x.read())})}function C(x,_){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function H(){var x=this;ze(x.path,x.flags,x.mode,function(_,E){_?(x.destroy(),x.emit("error",_)):(x.fd=E,x.emit("open",E))})}function we(x,_){return new e.ReadStream(x,_)}function Ee(x,_){return new e.WriteStream(x,_)}var ae=e.open;e.open=ze;function ze(x,_,E,W){return typeof E=="function"&&(W=E,E=null),G(x,_,E,W);function G($,I,M,T,z){return ae($,I,M,function(F,eq){F&&(F.code==="EMFILE"||F.code==="ENFILE")?at([G,[$,I,M,T],F,z||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return e}function at(e){Ue("ENQUEUE",e[0].name,e[1]),j[B].push(e),Xn()}var Cr;function Uf(){for(var e=Date.now(),t=0;t<j[B].length;++t)j[B][t].length>2&&(j[B][t][3]=e,j[B][t][4]=e);Xn()}function Xn(){if(clearTimeout(Cr),Cr=void 0,j[B].length!==0){var e=j[B].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ue("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ue("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var u=Date.now()-o,l=Math.max(o-i,1),f=Math.min(l*1.2,100);u>=f?(Ue("RETRY",t.name,r),t.apply(null,r.concat([i]))):j[B].push(e)}Cr===void 0&&(Cr=setTimeout(Xn,0))}}});var ut=p(_e=>{"use strict";s();var Gf=Q().fromCallback,V=ee(),j0=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof V[e]=="function");Object.assign(_e,V);j0.forEach(e=>{_e[e]=Gf(V[e])});_e.exists=function(e,t){return typeof t=="function"?V.exists(e,t):new Promise(r=>V.exists(e,r))};_e.read=function(e,t,r,n,i,o){return typeof o=="function"?V.read(e,t,r,n,i,o):new Promise((a,u)=>{V.read(e,t,r,n,i,(l,f,c)=>{if(l)return u(l);a({bytesRead:f,buffer:c})})})};_e.write=function(e,t,...r){return typeof r[r.length-1]=="function"?V.write(e,t,...r):new Promise((n,i)=>{V.write(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffer:u})})})};_e.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?V.readv(e,t,...r):new Promise((n,i)=>{V.readv(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesRead:a,buffers:u})})})};_e.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?V.writev(e,t,...r):new Promise((n,i)=>{V.writev(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffers:u})})})};typeof V.realpath.native=="function"?_e.realpath.native=Gf(V.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Bf=p((nF,zf)=>{"use strict";s();var M0=D("path");zf.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(M0.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var Yf=p((oF,ei)=>{"use strict";s();var Jf=ut(),{checkPath:Hf}=Bf(),Kf=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};ei.exports.makeDir=async(e,t)=>(Hf(e),Jf.mkdir(e,{mode:Kf(t),recursive:!0}));ei.exports.makeDirSync=(e,t)=>(Hf(e),Jf.mkdirSync(e,{mode:Kf(t),recursive:!0}))});var me=p((aF,Vf)=>{"use strict";s();var D0=Q().fromPromise,{makeDir:N0,makeDirSync:ti}=Yf(),ri=D0(N0);Vf.exports={mkdirs:ri,mkdirsSync:ti,mkdirp:ri,mkdirpSync:ti,ensureDir:ri,ensureDirSync:ti}});var Fe=p((cF,Xf)=>{"use strict";s();var $0=Q().fromPromise,Zf=ut();function k0(e){return Zf.access(e).then(()=>!0).catch(()=>!1)}Xf.exports={pathExists:$0(k0),pathExistsSync:Zf.existsSync}});var ni=p((lF,Qf)=>{"use strict";s();var ct=ee();function U0(e,t,r,n){ct.open(e,"r+",(i,o)=>{if(i)return n(i);ct.futimes(o,t,r,a=>{ct.close(o,u=>{n&&n(a||u)})})})}function W0(e,t,r){let n=ct.openSync(e,"r+");return ct.futimesSync(n,t,r),ct.closeSync(n)}Qf.exports={utimesMillis:U0,utimesMillisSync:W0}});var We=p((hF,rl)=>{"use strict";s();var ft=ut(),U=D("path"),G0=D("util");function z0(e,t,r){let n=r.dereference?i=>ft.stat(i,{bigint:!0}):i=>ft.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,o])=>({srcStat:i,destStat:o}))}function B0(e,t,r){let n,i=r.dereference?a=>ft.statSync(a,{bigint:!0}):a=>ft.lstatSync(a,{bigint:!0}),o=i(e);try{n=i(t)}catch(a){if(a.code==="ENOENT")return{srcStat:o,destStat:null};throw a}return{srcStat:o,destStat:n}}function J0(e,t,r,n,i){G0.callbackify(z0)(e,t,n,(o,a)=>{if(o)return i(o);let{srcStat:u,destStat:l}=a;if(l){if(Ft(u,l)){let f=U.basename(e),c=U.basename(t);return r==="move"&&f!==c&&f.toLowerCase()===c.toLowerCase()?i(null,{srcStat:u,destStat:l,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(u.isDirectory()&&!l.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!u.isDirectory()&&l.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return u.isDirectory()&&ii(e,t)?i(new Error(Tr(e,t,r))):i(null,{srcStat:u,destStat:l})})}function H0(e,t,r,n){let{srcStat:i,destStat:o}=B0(e,t,n);if(o){if(Ft(i,o)){let a=U.basename(e),u=U.basename(t);if(r==="move"&&a!==u&&a.toLowerCase()===u.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&ii(e,t))throw new Error(Tr(e,t,r));return{srcStat:i,destStat:o}}function el(e,t,r,n,i){let o=U.resolve(U.dirname(e)),a=U.resolve(U.dirname(r));if(a===o||a===U.parse(a).root)return i();ft.stat(a,{bigint:!0},(u,l)=>u?u.code==="ENOENT"?i():i(u):Ft(t,l)?i(new Error(Tr(e,r,n))):el(e,t,a,n,i))}function tl(e,t,r,n){let i=U.resolve(U.dirname(e)),o=U.resolve(U.dirname(r));if(o===i||o===U.parse(o).root)return;let a;try{a=ft.statSync(o,{bigint:!0})}catch(u){if(u.code==="ENOENT")return;throw u}if(Ft(t,a))throw new Error(Tr(e,r,n));return tl(e,t,o,n)}function Ft(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function ii(e,t){let r=U.resolve(e).split(U.sep).filter(i=>i),n=U.resolve(t).split(U.sep).filter(i=>i);return r.reduce((i,o,a)=>i&&n[a]===o,!0)}function Tr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}rl.exports={checkPaths:J0,checkPathsSync:H0,checkParentPaths:el,checkParentPathsSync:tl,isSrcSubdir:ii,areIdentical:Ft}});var ul=p((dF,al)=>{"use strict";s();var te=ee(),Rt=D("path"),K0=me().mkdirs,Y0=Fe().pathExists,V0=ni().utimesMillis,It=We();function Z0(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
+
4
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),It.checkPaths(e,t,"copy",r,(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:u}=o;It.checkParentPaths(e,a,t,"copy",l=>{if(l)return n(l);il(e,t,r,(f,c)=>{if(f)return n(f);if(!c)return n();X0(u,e,t,r,n)})})})}function X0(e,t,r,n,i){let o=Rt.dirname(r);Y0(o,(a,u)=>{if(a)return i(a);if(u)return oi(e,t,r,n,i);K0(o,l=>l?i(l):oi(e,t,r,n,i))})}function il(e,t,r,n){if(!r.filter)return n(null,!0);Promise.resolve(r.filter(e,t)).then(i=>n(null,i),i=>n(i))}function oi(e,t,r,n,i){(n.dereference?te.stat:te.lstat)(t,(a,u)=>a?i(a):u.isDirectory()?o_(u,e,t,r,n,i):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?Q0(u,e,t,r,n,i):u.isSymbolicLink()?u_(e,t,r,n,i):u.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function Q0(e,t,r,n,i,o){return t?e_(e,r,n,i,o):ol(e,r,n,i,o)}function e_(e,t,r,n,i){if(n.overwrite)te.unlink(r,o=>o?i(o):ol(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function ol(e,t,r,n,i){te.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?t_(e.mode,t,r,i):Pr(r,e.mode,i))}function t_(e,t,r,n){return r_(e)?n_(r,e,i=>i?n(i):nl(e,t,r,n)):nl(e,t,r,n)}function r_(e){return(e&128)===0}function n_(e,t,r){return Pr(e,t|128,r)}function nl(e,t,r,n){i_(t,r,i=>i?n(i):Pr(r,e,n))}function Pr(e,t,r){return te.chmod(e,t,r)}function i_(e,t,r){te.stat(e,(n,i)=>n?r(n):V0(t,i.atime,i.mtime,r))}function o_(e,t,r,n,i,o){return t?sl(r,n,i,o):s_(e.mode,r,n,i,o)}function s_(e,t,r,n,i){te.mkdir(r,o=>{if(o)return i(o);sl(t,r,n,a=>a?i(a):Pr(r,e,i))})}function sl(e,t,r,n){te.readdir(e,(i,o)=>i?n(i):si(o,e,t,r,n))}function si(e,t,r,n,i){let o=e.pop();return o?a_(e,o,t,r,n,i):i()}function a_(e,t,r,n,i,o){let a=Rt.join(r,t),u=Rt.join(n,t);il(a,u,i,(l,f)=>{if(l)return o(l);if(!f)return si(e,r,n,i,o);It.checkPaths(a,u,"copy",i,(c,h)=>{if(c)return o(c);let{destStat:d}=h;oi(d,a,u,i,y=>y?o(y):si(e,r,n,i,o))})})}function u_(e,t,r,n,i){te.readlink(t,(o,a)=>{if(o)return i(o);if(n.dereference&&(a=Rt.resolve(process.cwd(),a)),e)te.readlink(r,(u,l)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?te.symlink(a,r,i):i(u):(n.dereference&&(l=Rt.resolve(process.cwd(),l)),It.isSrcSubdir(a,l)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):It.isSrcSubdir(l,a)?i(new Error(`Cannot overwrite '${l}' with '${a}'.`)):c_(a,r,i)));else return te.symlink(a,r,i)})}function c_(e,t,r){te.unlink(t,n=>n?r(n):te.symlink(e,t,r))}al.exports=Z0});var hl=p((gF,pl)=>{"use strict";s();var Z=ee(),Lt=D("path"),f_=me().mkdirsSync,l_=ni().utimesMillisSync,jt=We();function p_(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
+
6
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=jt.checkPathsSync(e,t,"copy",r);if(jt.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let o=Lt.dirname(t);return Z.existsSync(o)||f_(o),cl(i,e,t,r)}function cl(e,t,r,n){let o=(n.dereference?Z.statSync:Z.lstatSync)(t);if(o.isDirectory())return w_(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return h_(o,e,t,r,n);if(o.isSymbolicLink())return __(e,t,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${t}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function h_(e,t,r,n,i){return t?y_(e,r,n,i):fl(e,r,n,i)}function y_(e,t,r,n){if(n.overwrite)return Z.unlinkSync(r),fl(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function fl(e,t,r,n){return Z.copyFileSync(t,r),n.preserveTimestamps&&d_(e.mode,t,r),ai(r,e.mode)}function d_(e,t,r){return m_(e)&&g_(r,e),v_(t,r)}function m_(e){return(e&128)===0}function g_(e,t){return ai(e,t|128)}function ai(e,t){return Z.chmodSync(e,t)}function v_(e,t){let r=Z.statSync(e);return l_(t,r.atime,r.mtime)}function w_(e,t,r,n,i){return t?ll(r,n,i):S_(e.mode,r,n,i)}function S_(e,t,r,n){return Z.mkdirSync(r),ll(t,r,n),ai(r,e)}function ll(e,t,r){Z.readdirSync(e).forEach(n=>x_(n,e,t,r))}function x_(e,t,r,n){let i=Lt.join(t,e),o=Lt.join(r,e);if(n.filter&&!n.filter(i,o))return;let{destStat:a}=jt.checkPathsSync(i,o,"copy",n);return cl(a,i,o,n)}function __(e,t,r,n){let i=Z.readlinkSync(t);if(n.dereference&&(i=Lt.resolve(process.cwd(),i)),e){let o;try{o=Z.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Z.symlinkSync(i,r);throw a}if(n.dereference&&(o=Lt.resolve(process.cwd(),o)),jt.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(jt.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return b_(i,r)}else return Z.symlinkSync(i,r)}function b_(e,t){return Z.unlinkSync(t),Z.symlinkSync(e,t)}pl.exports=p_});var Ar=p((wF,yl)=>{"use strict";s();var E_=Q().fromCallback;yl.exports={copy:E_(ul()),copySync:hl()}});var Mt=p((xF,ml)=>{"use strict";s();var dl=ee(),q_=Q().fromCallback;function C_(e,t){dl.rm(e,{recursive:!0,force:!0},t)}function O_(e){dl.rmSync(e,{recursive:!0,force:!0})}ml.exports={remove:q_(C_),removeSync:O_}});var El=p((bF,bl)=>{"use strict";s();var T_=Q().fromPromise,wl=ut(),Sl=D("path"),xl=me(),_l=Mt(),gl=T_(async function(t){let r;try{r=await wl.readdir(t)}catch{return xl.mkdirs(t)}return Promise.all(r.map(n=>_l.remove(Sl.join(t,n))))});function vl(e){let t;try{t=wl.readdirSync(e)}catch{return xl.mkdirsSync(e)}t.forEach(r=>{r=Sl.join(e,r),_l.removeSync(r)})}bl.exports={emptyDirSync:vl,emptydirSync:vl,emptyDir:gl,emptydir:gl}});var Tl=p((qF,Ol)=>{"use strict";s();var P_=Q().fromCallback,ql=D("path"),Re=ee(),Cl=me();function A_(e,t){function r(){Re.writeFile(e,"",n=>{if(n)return t(n);t()})}Re.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=ql.dirname(e);Re.stat(o,(a,u)=>{if(a)return a.code==="ENOENT"?Cl.mkdirs(o,l=>{if(l)return t(l);r()}):t(a);u.isDirectory()?r():Re.readdir(o,l=>{if(l)return t(l)})})})}function F_(e){let t;try{t=Re.statSync(e)}catch{}if(t&&t.isFile())return;let r=ql.dirname(e);try{Re.statSync(r).isDirectory()||Re.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Cl.mkdirsSync(r);else throw n}Re.writeFileSync(e,"")}Ol.exports={createFile:P_(A_),createFileSync:F_}});var Il=p((OF,Rl)=>{"use strict";s();var R_=Q().fromCallback,Pl=D("path"),Ie=ee(),Al=me(),I_=Fe().pathExists,{areIdentical:Fl}=We();function L_(e,t,r){function n(i,o){Ie.link(i,o,a=>{if(a)return r(a);r(null)})}Ie.lstat(t,(i,o)=>{Ie.lstat(e,(a,u)=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);if(o&&Fl(u,o))return r(null);let l=Pl.dirname(t);I_(l,(f,c)=>{if(f)return r(f);if(c)return n(e,t);Al.mkdirs(l,h=>{if(h)return r(h);n(e,t)})})})})}function j_(e,t){let r;try{r=Ie.lstatSync(t)}catch{}try{let o=Ie.lstatSync(e);if(r&&Fl(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=Pl.dirname(t);return Ie.existsSync(n)||Al.mkdirsSync(n),Ie.linkSync(e,t)}Rl.exports={createLink:R_(L_),createLinkSync:j_}});var jl=p((PF,Ll)=>{"use strict";s();var Le=D("path"),Dt=ee(),M_=Fe().pathExists;function D_(e,t,r){if(Le.isAbsolute(e))return Dt.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Le.dirname(t),i=Le.join(n,e);return M_(i,(o,a)=>o?r(o):a?r(null,{toCwd:i,toDst:e}):Dt.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:Le.relative(n,e)})))}}function N_(e,t){let r;if(Le.isAbsolute(e)){if(r=Dt.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Le.dirname(t),i=Le.join(n,e);if(r=Dt.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Dt.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Le.relative(n,e)}}}Ll.exports={symlinkPaths:D_,symlinkPathsSync:N_}});var Nl=p((FF,Dl)=>{"use strict";s();var Ml=ee();function $_(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Ml.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function k_(e,t){let r;if(t)return t;try{r=Ml.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Dl.exports={symlinkType:$_,symlinkTypeSync:k_}});var Jl=p((IF,Bl)=>{"use strict";s();var U_=Q().fromCallback,kl=D("path"),ge=ut(),Ul=me(),W_=Ul.mkdirs,G_=Ul.mkdirsSync,Wl=jl(),z_=Wl.symlinkPaths,B_=Wl.symlinkPathsSync,Gl=Nl(),J_=Gl.symlinkType,H_=Gl.symlinkTypeSync,K_=Fe().pathExists,{areIdentical:zl}=We();function Y_(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ge.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([ge.stat(e),ge.stat(t)]).then(([a,u])=>{if(zl(a,u))return n(null);$l(e,t,r,n)}):$l(e,t,r,n)})}function $l(e,t,r,n){z_(e,t,(i,o)=>{if(i)return n(i);e=o.toDst,J_(o.toCwd,r,(a,u)=>{if(a)return n(a);let l=kl.dirname(t);K_(l,(f,c)=>{if(f)return n(f);if(c)return ge.symlink(e,t,u,n);W_(l,h=>{if(h)return n(h);ge.symlink(e,t,u,n)})})})})}function V_(e,t,r){let n;try{n=ge.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let u=ge.statSync(e),l=ge.statSync(t);if(zl(u,l))return}let i=B_(e,t);e=i.toDst,r=H_(i.toCwd,r);let o=kl.dirname(t);return ge.existsSync(o)||G_(o),ge.symlinkSync(e,t,r)}Bl.exports={createSymlink:U_(Y_),createSymlinkSync:V_}});var ep=p((jF,Ql)=>{"use strict";s();var{createFile:Hl,createFileSync:Kl}=Tl(),{createLink:Yl,createLinkSync:Vl}=Il(),{createSymlink:Zl,createSymlinkSync:Xl}=Jl();Ql.exports={createFile:Hl,createFileSync:Kl,ensureFile:Hl,ensureFileSync:Kl,createLink:Yl,createLinkSync:Vl,ensureLink:Yl,ensureLinkSync:Vl,createSymlink:Zl,createSymlinkSync:Xl,ensureSymlink:Zl,ensureSymlinkSync:Xl}});var Fr=p((DF,tp)=>{s();function Z_(e,{EOL:t=`
7
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function X_(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}tp.exports={stringify:Z_,stripBom:X_}});var op=p(($F,ip)=>{s();var lt;try{lt=ee()}catch{lt=D("fs")}var Rr=Q(),{stringify:rp,stripBom:np}=Fr();async function Q_(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||lt,n="throws"in t?t.throws:!0,i=await Rr.fromCallback(r.readFile)(e,t);i=np(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return o}var eb=Rr.fromPromise(Q_);function tb(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||lt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=np(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function rb(e,t,r={}){let n=r.fs||lt,i=rp(t,r);await Rr.fromCallback(n.writeFile)(e,i,r)}var nb=Rr.fromPromise(rb);function ib(e,t,r={}){let n=r.fs||lt,i=rp(t,r);return n.writeFileSync(e,i,r)}ip.exports={readFile:eb,readFileSync:tb,writeFile:nb,writeFileSync:ib}});var ap=p((UF,sp)=>{"use strict";s();var Ir=op();sp.exports={readJson:Ir.readFile,readJsonSync:Ir.readFileSync,writeJson:Ir.writeFile,writeJsonSync:Ir.writeFileSync}});var Lr=p((GF,fp)=>{"use strict";s();var ob=Q().fromCallback,Nt=ee(),up=D("path"),cp=me(),sb=Fe().pathExists;function ab(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=up.dirname(e);sb(i,(o,a)=>{if(o)return n(o);if(a)return Nt.writeFile(e,t,r,n);cp.mkdirs(i,u=>{if(u)return n(u);Nt.writeFile(e,t,r,n)})})}function ub(e,...t){let r=up.dirname(e);if(Nt.existsSync(r))return Nt.writeFileSync(e,...t);cp.mkdirsSync(r),Nt.writeFileSync(e,...t)}fp.exports={outputFile:ob(ab),outputFileSync:ub}});var pp=p((BF,lp)=>{"use strict";s();var{stringify:cb}=Fr(),{outputFile:fb}=Lr();async function lb(e,t,r={}){let n=cb(t,r);await fb(e,n,r)}lp.exports=lb});var yp=p((HF,hp)=>{"use strict";s();var{stringify:pb}=Fr(),{outputFileSync:hb}=Lr();function yb(e,t,r){let n=pb(t,r);hb(e,n,r)}hp.exports=yb});var mp=p((YF,dp)=>{"use strict";s();var db=Q().fromPromise,X=ap();X.outputJson=db(pp());X.outputJsonSync=yp();X.outputJSON=X.outputJson;X.outputJSONSync=X.outputJsonSync;X.writeJSON=X.writeJson;X.writeJSONSync=X.writeJsonSync;X.readJSON=X.readJson;X.readJSONSync=X.readJsonSync;dp.exports=X});var xp=p((ZF,Sp)=>{"use strict";s();var mb=ee(),ci=D("path"),gb=Ar().copy,wp=Mt().remove,vb=me().mkdirp,wb=Fe().pathExists,gp=We();function Sb(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};let i=r.overwrite||r.clobber||!1;gp.checkPaths(e,t,"move",r,(o,a)=>{if(o)return n(o);let{srcStat:u,isChangingCase:l=!1}=a;gp.checkParentPaths(e,u,t,"move",f=>{if(f)return n(f);if(xb(t))return vp(e,t,i,l,n);vb(ci.dirname(t),c=>c?n(c):vp(e,t,i,l,n))})})}function xb(e){let t=ci.dirname(e);return ci.parse(t).root===t}function vp(e,t,r,n,i){if(n)return ui(e,t,r,i);if(r)return wp(t,o=>o?i(o):ui(e,t,r,i));wb(t,(o,a)=>o?i(o):a?i(new Error("dest already exists.")):ui(e,t,r,i))}function ui(e,t,r,n){mb.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):_b(e,t,r,n):n())}function _b(e,t,r,n){gb(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):wp(e,n))}Sp.exports=Sb});var Cp=p((QF,qp)=>{"use strict";s();var bp=ee(),li=D("path"),bb=Ar().copySync,Ep=Mt().removeSync,Eb=me().mkdirpSync,_p=We();function qb(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=_p.checkPathsSync(e,t,"move",r);return _p.checkParentPathsSync(e,i,t,"move"),Cb(t)||Eb(li.dirname(t)),Ob(e,t,n,o)}function Cb(e){let t=li.dirname(e);return li.parse(t).root===t}function Ob(e,t,r,n){if(n)return fi(e,t,r);if(r)return Ep(t),fi(e,t,r);if(bp.existsSync(t))throw new Error("dest already exists.");return fi(e,t,r)}function fi(e,t,r){try{bp.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Tb(e,t,r)}}function Tb(e,t,r){return bb(e,t,{overwrite:r,errorOnExist:!0}),Ep(e)}qp.exports=qb});var Tp=p((tR,Op)=>{"use strict";s();var Pb=Q().fromCallback;Op.exports={move:Pb(xp()),moveSync:Cp()}});var Xp=p((mI,Zp)=>{s();var Bp=bh();Zp.exports=Nb;var Jp="\0SLASH"+Math.random()+"\0",Hp="\0OPEN"+Math.random()+"\0",vi="\0CLOSE"+Math.random()+"\0",Kp="\0COMMA"+Math.random()+"\0",Yp="\0PERIOD"+Math.random()+"\0";function gi(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Mb(e){return e.split("\\\\").join(Jp).split("\\{").join(Hp).split("\\}").join(vi).split("\\,").join(Kp).split("\\.").join(Yp)}function Db(e){return e.split(Jp).join("\\").split(Hp).join("{").split(vi).join("}").split(Kp).join(",").split(Yp).join(".")}function Vp(e){if(!e)return[""];var t=[],r=Bp("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,o=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var u=Vp(o);return o.length&&(a[a.length-1]+=u.shift(),a.push.apply(a,u)),t.push.apply(t,a),t}function Nb(e,t){if(!e)return[];t=t||{};var r=t.max==null?1/0:t.max;return e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),kt(Mb(e),r,!0).map(Db)}function $b(e){return"{"+e+"}"}function kb(e){return/^-?0\d/.test(e)}function Ub(e,t){return e<=t}function Wb(e,t){return e>=t}function kt(e,t,r){var n=[],i=Bp("{","}",e);if(!i)return[e];var o=i.pre,a=i.post.length?kt(i.post,t,!1):[""];if(/\$$/.test(i.pre))for(var u=0;u<a.length&&u<t;u++){var l=o+"{"+i.body+"}"+a[u];n.push(l)}else{var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=f||c,d=i.body.indexOf(",")>=0;if(!h&&!d)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+vi+i.post,kt(e,t,!0)):[e];var y;if(h)y=i.body.split(/\.\./);else if(y=Vp(i.body),y.length===1&&(y=kt(y[0],t,!1).map($b),y.length===1))return a.map(function(E){return i.pre+y[0]+E});var m;if(h){var g=gi(y[0]),v=gi(y[1]),w=Math.max(y[0].length,y[1].length),S=y.length==3?Math.max(Math.abs(gi(y[2])),1):1,C=Ub,H=v<g;H&&(S*=-1,C=Wb);var we=y.some(kb);m=[];for(var Ee=g;C(Ee,v);Ee+=S){var ae;if(c)ae=String.fromCharCode(Ee),ae==="\\"&&(ae="");else if(ae=String(Ee),we){var ze=w-ae.length;if(ze>0){var x=new Array(ze+1).join("0");Ee<0?ae="-"+x+ae.slice(1):ae=x+ae}}m.push(ae)}}else{m=[];for(var _=0;_<y.length;_++)m.push.apply(m,kt(y[_],t,!1))}for(var _=0;_<m.length;_++)for(var u=0;u<a.length&&n.length<t;u++){var l=o+m[_]+a[u];(!r||h||l)&&n.push(l)}}return n}});s();s();s();import{realpathSync as qh}from"fs";var Bt;function Zr(e=process.argv){try{if(Bt!==void 0&&!ue())return Bt;let t=Ai()??Pi(),r=Ch(t);if(!r)return!0;let n=e[1]??"";return n?(Bt=!Ti(r.trim(),n),Bt):!0}catch{return!1}}async function oq(e){let{outputInfo:t}=await import("./output-3OYXK3Z5.js"),{exec:r}=await import("./system-JWYYT4PM.js"),{jsonOutputEnabled:n}=await import("./environment-O7ECODHU.js"),i=e==="yarn"?["global","add","@shopify/cli@latest"]:["install","-g","@shopify/cli@latest"];t(`Running ${e} ${i.join(" ")}...`),await r(e,i,n()?{}:{stdio:"inherit"})}async function sq(){let{terminalSupportsPrompting:e}=await import("./system-JWYYT4PM.js");if(!e())return{install:!1,alreadyInstalled:!1};let{globalCLIVersion:t}=await import("./version-7DGU2KYH.js");if(await t())return{install:!1,alreadyInstalled:!0};let{renderSelectPrompt:r}=await import("./ui-PCG5D6RZ.js");return{install:await r({message:"We recommend installing Shopify CLI globally in your system. Would you like to install it now?",choices:[{value:"yes",label:"Yes"},{value:"no",label:"No, just for this project"}]})==="yes",alreadyInstalled:!1}}function aq(e=process.argv,t=process.env){if(!Zr(e))return"unknown";if(t.SHOPIFY_HOMEBREW_FORMULA)return"homebrew";let r=e[1]??"",n=r.toLowerCase(),i=n;try{i=qh(r).toLowerCase()}catch{}let o=a=>i.includes(a)||n.includes(a);return o("yarn")?"yarn":o("pnpm")?"pnpm":o("bun")?"bun":i.includes("/cellar/")?"homebrew":"npm"}function Ch(e){let t=["shopify.app{,.*}.toml","hydrogen.config.js","hydrogen.config.ts"],r=n=>{let i=Ii(t.map(o=>yt(n,o)));return i.length>0?i[0]:void 0};try{let n=Li(r,{cwd:e,type:"file"});if(n)return Ci(n)}catch{return}}s();s();s();import Xr from"node:process";var q="\x1B[",gt="\x1B]",Be="\x07",mt=";",Qr=typeof window<"u"&&typeof window.document<"u",ji=!Qr&&Xr.env.TERM_PROGRAM==="Apple_Terminal",Oh=!Qr&&Xr.platform==="win32",Th=Qr?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Xr.cwd,b={};b.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?q+(e+1)+"G":q+(t+1)+mt+(e+1)+"H"};b.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=q+-e+"D":e>0&&(r+=q+e+"C"),t<0?r+=q+-t+"A":t>0&&(r+=q+t+"B"),r};b.cursorUp=(e=1)=>q+e+"A";b.cursorDown=(e=1)=>q+e+"B";b.cursorForward=(e=1)=>q+e+"C";b.cursorBackward=(e=1)=>q+e+"D";b.cursorLeft=q+"G";b.cursorSavePosition=ji?"\x1B7":q+"s";b.cursorRestorePosition=ji?"\x1B8":q+"u";b.cursorGetPosition=q+"6n";b.cursorNextLine=q+"E";b.cursorPrevLine=q+"F";b.cursorHide=q+"?25l";b.cursorShow=q+"?25h";b.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=b.eraseLine+(r<e-1?b.cursorUp():"");return e&&(t+=b.cursorLeft),t};b.eraseEndLine=q+"K";b.eraseStartLine=q+"1K";b.eraseLine=q+"2K";b.eraseDown=q+"J";b.eraseUp=q+"1J";b.eraseScreen=q+"2J";b.scrollUp=q+"S";b.scrollDown=q+"T";b.clearScreen="\x1Bc";b.clearTerminal=Oh?`${b.eraseScreen}${q}0f`:`${b.eraseScreen}${q}3J${q}H`;b.enterAlternativeScreen=q+"?1049h";b.exitAlternativeScreen=q+"?1049l";b.beep=Be;b.link=(e,t)=>[gt,"8",mt,mt,t,Be,e,gt,"8",mt,mt,Be].join("");b.image=(e,t={})=>{let r=`${gt}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+Be};b.iTerm={setCwd:(e=Th())=>`${gt}50;CurrentDir=${e}${Be}`,annotation(e,t={}){let r=`${gt}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+Be}};var Mi=b;var Gi=Y(Wi(),1),oe=class{value;constructor(t){this.value=t}},Jt=class extends oe{output(){return this.value}},Ht=class extends oe{link;fallback;constructor(t,r,n){super(t),this.link=r??N(t),this.fallback=n}output(){let t=O.green(N(this.value)),r=this.link??"",n=this.value===this.link?t:`${t} ( ${r} )`;return Gi.default.stdout?Mi.link(t,r):this.fallback??n}},vt=class extends oe{output(){return`\`${O.magentaBright(N(this.value))}\``}},Rh=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g;function Ih(e){let t=typeof e=="string"?JSON.parse(e):e,n=JSON.stringify(t,void 0,2).replace(Rh,i=>i.startsWith('"')?i.endsWith(":")?O.white(i):O.green(i):i==="true"||i==="false"?O.cyan(i):i==="null"?O.red(i):O.magenta(i));return O.yellow(n)}var Kt=class extends oe{output(){try{return Ih(N(this.value)??{})}catch{return JSON.stringify(N(this.value)??{},null,2)}}},Yt=class extends oe{output(){return this.value.flatMap(t=>t.added?t.value.split(/\n/).filter(r=>r!=="").map(r=>O.green(`+ ${r}
8
+ `)):t.removed?t.value.split(/\n/).filter(r=>r!=="").map(r=>O.magenta(`- ${r}
9
+ `)):t.value)}},Se=class extends oe{color;constructor(t,r){super(t),this.color=r}output(){return this.color(N(this.value))}},wt=class extends oe{output(){return O.bold.redBright(N(this.value))}},Vt=class extends oe{output(){return Oi(N(this.value))}},Zt=class extends oe{output(){return O.bold.underline(N(this.value))}},Xt=class extends oe{output(){return O.underline(N(this.value))}},Qt=class extends oe{output(){return O.italic(N(this.value))}};s();function He(e){return typeof e=="string"?e:"command"in e?e.command:"link"in e?e.link.label||e.link.url:"char"in e?e.char:"userInput"in e?e.userInput:"subdued"in e?e.subdued:"filePath"in e?e.filePath:"list"in e?e.list.items.map(He).join(" "):"bold"in e?e.bold:"info"in e?e.info:"warn"in e?e.warn:"error"in e?e.error:e.map((t,r)=>r!==0&&!(typeof t!="string"&&"char"in t)?` ${He(t)}`:He(t)).join("")}function Cq(e,t){return Array.isArray(e)?[...e,{char:t}]:[e,{char:t}]}function zi(e){return Array.isArray(e)?e.map((t,r)=>{let n=Bi(t);return r!==0&&!(typeof t!="string"&&"char"in t)?` ${n}`:n}).join(""):Bi(e)}function Bi(e){if(typeof e=="string")return e;if("link"in e){let{label:t,url:r}=e.link;return t&&t!==r?`${t} (${r})`:r}if("list"in e){let t=e.list.title?zi(e.list.title).trim():void 0,r=e.list.items.map(zi).join("; ");return t?`${t}${r?`: ${r}`:""}`:r}return He(e)}s();function Ji(e){return Yi()?e:Ke(e)}function Hi(e){process.stdout.write(`${Ji(e)}
10
+ `)}function xe(e){console.warn(Ji(e))}function Ki(e,t="info",r=xe){ue()&&De(t,e);let n=N(e);Ne(t,r,n)}import{Writable as Lh}from"stream";var er=class{value;constructor(t){this.value=t}},P={raw(e){return new Jt(e)},genericShellCommand(e){return new vt(e)},json(e){return new Kt(e)},path(e){return new Vt(e)},link(e,t,r){return new Ht(e,t,r)},heading(e){return new Zt(e)},subheading(e){return new Xt(e)},italic(e){return new Qt(e)},errorText(e){return new wt(e)},cyan(e){return new Se(e,O.cyan)},yellow(e){return new Se(e,O.yellow)},magenta(e){return new Se(e,O.magenta)},green(e){return new Se(e,O.green)},gray(e){return new Se(e,O.gray)},packagejsonScript(e,t,...r){return new vt(jh(e,t,...r))},successIcon(){return new Se("\u2714",O.green)},failIcon(){return new wt("\u2716")},linesDiff(e){return new Yt(e)}};function jh(e,t,...r){if(Zr())return[t,...r].join(" ");switch(e){case"pnpm":case"bun":case"yarn":return[e,t,...r].join(" ");case"npm":{let n=["npm","run",t];return r.length>0&&(n.push("--"),n.push(...r)),n.join(" ")}case"homebrew":case"unknown":return[t,...r].join(" ")}}function R(e,...t){let r=e.reduce((n,i,o)=>{let a=t[o],u="";if(typeof a=="string")u=a;else if(a){let l=a.output();u=Array.isArray(l)?l.join(""):l}return n+i+u},"");return new er(r)}function Vi(e){switch(e){case"trace":return 10;case"debug":return 20;case"info":return 30;case"warn":return 40;case"error":return 50;case"fatal":return 60;case"silent":return 70}}function Mh(){return Ri()?"debug":"info"}function on(e){if(ue())return!1;let t=Vi(Mh());return Vi(e)>=t}var St={},nn;function De(e,t){let r=Vr(N(t));St.output??=[],St[e]??=[],St.output.push(r),St[e].push(r)}var Gq=()=>{St={}};function zq(e){Ki(e,"info",Hi)}async function Bq(){await new Promise((e,t)=>{process.stdout.write("",r=>{r?t(r):e()})})}function Jq(e,t=xe){if(xt(e,"info",t))return;let r=N(e);ue()&&De("info",e),Ne("info",t,r)}function Hq(e,t=xe){if(xt(e,"info",t))return;let r=O.bold(`\u2705 Success! ${N(e)}.`);ue()&&De("success",e),Ne("info",t,r)}function Kq(e,t=xe){if(xt(e,"info",t))return;let r=`${O.green("\u2714")} ${N(e)}`;ue()&&De("completed",e),Ne("info",t,r)}function L(e,t=xe){if(xt(e,"debug",t)||(ue()&&De("debug",e),!on("debug")))return;let r=O.gray(N(e));Ne("debug",t,`${new Date().toISOString()}: ${r}`)}function Yq(e,t=xe){if(xt(e,"warning",t))return;ue()&&De("warn",e);let r=O.yellow(N(e));Ne("warn",t,r)}function Vq(){Yr()!=="json"&&xe("")}function N(e){return e instanceof er?e.value:e}function Zq(e){return He(e)}function Ne(e,t,r){on(e)&&(t instanceof Lh?t.write(r):t(r,e))}function Ke(e){return e.includes("\x1B")?Vr(e):e}function xt(e,t,r){if(r!==xe||Yr()!=="json")return!1;if(t==="debug"&&!ue()&&!on("debug"))return!0;let n=Ke(N(e));return n.trim().length>0&&Fi({type:"diagnostic",level:t,message:n}),!0}function Yi(e=process){if(e===process&&nn!==void 0)return nn;let{env:t,stdout:r}=e,n=Object.hasOwnProperty.call(t,"FORCE_COLOR")?bi(t.FORCE_COLOR):!!r.isTTY;return e===process&&(nn=n),n}function Xq(e,t){let r=e.toUpperCase().padEnd(35);return R`${P.heading(r)}\n${t}`.value}s();s();var kc=Y(ac(),1),qx=Y($c(),1);function Nn(e){return e[Math.floor(Math.random()*e.length)]}function $P(e){return e.filter(t=>t!==void 0)}function kP(e){return e.length!==new Set(e).size}function Uc(e){return Array.from(new Set(e))}function UP(e,t){return(0,kc.default)(e,t)}function WP(e){return e.length<2?e:e.reduce((t,r,n)=>(n===e.length-1?t.push("and"):n!==0&&t.push(", "),t.push(r),t),[])}var pe=Y(Af(),1),v0=["commercial","profitable","amortizable","branded","integrated","synergistic","consolidated","diversified","lean","niche","premium","luxury","scalable","optimized","empowered","international","beneficial","fruitful","extensive","lucrative","modern","stable","strategic","adaptive","efficient","growing","sustainable","innovative","regional","specialized","focused","pragmatic","ethical","flexible","competitive"],w0=["bright","impactful","stylish","colorful","modern","minimal","trendy","creative","artistic","spectacular","glamorous","luxury","retro","nostalgic","comfy","polished","fabulous","balanced","monochrome","glitched","contrasted","elegant","textured","vibrant","harmonious","versatile","eclectic","futuristic","idealistic","intricate","bohemian","abstract","meticulous","refined","flamboyant"],S0=["account","consumer","customer","enterprise","business","venture","marketplace","revenue","vertical","portfolio","negotiation","shipping","demand","supply","growth","merchant","investment","shareholder","conversion","capital","projection","upside","trade","deal","merchandise","transaction","sale","franchise","subsidiary","logistics","sponsorship","partnership","tax","policy","outsource","equity","strategy","valuation","benchmark","metrics","duplication"],x0=["vibe","style","moment","mood","flavor","look","appearance","perspective","aspect","ambience","quality","backdrop","focus","tone","inspiration","imagery","aesthetics","palette","ornamentation","contrast","colorway","visuals","typography","composition","scale","symmetry","gradients","proportions","textures","harmony","shapes","patterns"],Ff={business:{adjectives:v0,nouns:S0},creative:{adjectives:w0,nouns:x0}};function Rf(e="business"){return`${Nn(Ff[e].adjectives)}-${Nn(Ff[e].nouns)}`}function EA(e){return e.substring(0,1).toUpperCase()+e.substring(1)}function qA(e,t,r,n){return e.length===1?r(e[0]):e.length>1?t(e):n?n():""}function CA(e){if(e===void 0)return;let t=Number.parseInt(e,10);return Number.isNaN(t)?void 0:t}function OA(e){let t=[];for(let n=0;e[0]&&n<e[0].length;n++){let i=e.map(o=>o[n]);t.push(Math.max(...i.map(o=>Ke(o).length)))}return e.map(n=>n.map((i,o)=>`${i}${" ".repeat(t[o]-Ke(i).length)}`).join(" ").trimEnd()).join(`
11
+ `)}function TA(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function PA(e){return(0,pe.camelCase)(e)}function AA(e){return(0,pe.capitalCase)(e)}function FA(e){return(0,pe.paramCase)(e)}function RA(e){return(0,pe.snakeCase)(e)}function IA(e){return(0,pe.constantCase)(e)}function _0(e){let t=e.toISOString().split("T"),r=t[0]??e.toDateString(),n=t[1]?.split(".")[0]??e.toTimeString();return`${r} ${n}`}function LA(e){let t=new Date(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()));return _0(r)}function jA(e){return e.length===0?"":e.length===1?`"${e[0]}"`:`${e.slice(0,-1).map(t=>`"${t}"`).join(", ")} and "${e[e.length-1]}"`}function MA(e){return(0,pe.pascalCase)(e)}function DA(e,t=","){if(e)return Uc(e.split(t).map(r=>r.trim()).filter(r=>r!=="")).sort().join(t)}function NA(e,t){let r=Math.floor((t.getTime()-e.getTime())/1e3);if(r<60)return`${br(r,"second")} ago`;let n=Math.floor(r/60);if(n<60)return`${br(n,"minute")} ago`;let i=Math.floor(n/60);if(i<24)return`${br(i,"hour")} ago`;let o=Math.floor(i/24);return`${br(o,"day")} ago`}function br(e,t){return`${e} ${t}${e===1?"":"s"}`}s();import{realpath as b0}from"fs/promises";import{tmpdir as E0}from"os";var Kn=await b0(E0());s();var jr=Y(Ar(),1),pt=Y(El(),1),re=Y(ep(),1),ne=Y(mp(),1),je=Y(me(),1),Mr=Y(Tp(),1),Dr=Y(Lr(),1),Nr=Y(Fe(),1),$r=Y(Mt(),1),pi=jr.default.copy,nR=jr.default.copySync,iR=pt.default.emptyDirSync,oR=pt.default.emptydirSync,sR=pt.default.emptyDir,aR=pt.default.emptydir,uR=re.default.createFile,cR=re.default.createFileSync,Pp=re.default.ensureFile,Ap=re.default.ensureFileSync,fR=re.default.createLink,lR=re.default.createLinkSync,pR=re.default.ensureLink,hR=re.default.ensureLinkSync,yR=re.default.createSymlink,dR=re.default.createSymlinkSync,mR=re.default.ensureSymlink,gR=re.default.ensureSymlinkSync,vR=ne.default.readJson,wR=ne.default.readJSON,SR=ne.default.readJsonSync,xR=ne.default.readJSONSync,_R=ne.default.writeJson,bR=ne.default.writeJSON,ER=ne.default.writeJsonSync,qR=ne.default.writeJSONSync,CR=ne.default.outputJson,OR=ne.default.outputJSON,TR=ne.default.outputJsonSync,PR=ne.default.outputJSONSync,AR=je.default.mkdirs,FR=je.default.mkdirsSync,RR=je.default.mkdirp,IR=je.default.mkdirpSync,LR=je.default.ensureDir,jR=je.default.ensureDirSync,Fp=Mr.default.move,MR=Mr.default.moveSync,DR=Dr.default.outputFile,NR=Dr.default.outputFileSync,$R=Nr.default.pathExists,kR=Nr.default.pathExistsSync,UR=$r.default.remove,Rp=$r.default.removeSync,WR={...jr.default,...pt.default,...re.default,...ne.default,...je.default,...Mr.default,...Dr.default,...Nr.default,...$r.default};s();import be from"node:path";import{fileURLToPath as Ib}from"node:url";s();import jp from"node:process";import Mp from"node:path";import Ip,{promises as Lp}from"node:fs";import{fileURLToPath as Rb}from"node:url";s();s();s();var hi=class{value;next;constructor(t){this.value=t}},$t=class{#t;#r;#i;constructor(){this.clear()}enqueue(t){let r=new hi(t);this.#t?(this.#r.next=r,this.#r=r):(this.#t=r,this.#r=r),this.#i++}dequeue(){let t=this.#t;if(t)return this.#t=this.#t.next,this.#i--,this.#t||(this.#r=void 0),t.value}peek(){if(this.#t)return this.#t.value}clear(){this.#t=void 0,this.#r=void 0,this.#i=0}get size(){return this.#i}*[Symbol.iterator](){let t=this.#t;for(;t;)yield t.value,t=t.next}*drain(){for(;this.#t;)yield this.dequeue()}};function kr(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new $t,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(u,l,f)=>{r++;let c=(async()=>u(...f))();l(c);try{await c}catch{}n()},o=(u,l,f)=>{t.enqueue(i.bind(void 0,u,l,f)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},a=(u,...l)=>new Promise(f=>{o(u,f,l)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a}var Ur=class extends Error{constructor(t){super(),this.value=t}},Ab=async(e,t)=>t(await e),Fb=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Ur(t[0]);return!1};async function yi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){let i=kr(r),o=[...e].map(u=>[u,i(Ab,u,t)]),a=kr(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(o.map(u=>a(Fb,u)))}catch(u){if(u instanceof Ur)return u.value;throw u}}var Dp={directory:"isDirectory",file:"isFile"};function Np(e){if(!Object.hasOwnProperty.call(Dp,e))throw new Error(`Invalid type specified: ${e}`)}var $p=(e,t)=>t[Dp[e]](),kp=e=>e instanceof URL?Rb(e):e;async function di(e,{cwd:t=jp.cwd(),type:r="file",allowSymlinks:n=!0,concurrency:i,preserveOrder:o}={}){Np(r),t=kp(t);let a=n?Lp.stat:Lp.lstat;return yi(e,async u=>{try{let l=await a(Mp.resolve(t,u));return $p(r,l)}catch{return!1}},{concurrency:i,preserveOrder:o})}function mi(e,{cwd:t=jp.cwd(),type:r="file",allowSymlinks:n=!0}={}){Np(r),t=kp(t);let i=n?Ip.statSync:Ip.lstatSync;for(let o of e)try{let a=i(Mp.resolve(t,o),{throwIfNoEntry:!1});if(!a)continue;if($p(r,a))return o}catch{}}s();var Up=e=>e instanceof URL?Ib(e):e,Wp=Symbol("findUpStop");async function Lb(e,t={}){let r=be.resolve(Up(t.cwd)||""),{root:n}=be.parse(r),i=be.resolve(r,t.stopAt||n),o=t.limit||Number.POSITIVE_INFINITY,a=[e].flat(),u=async f=>{if(typeof e!="function")return di(a,f);let c=await e(f.cwd);return typeof c=="string"?di([c],f):c},l=[];for(;;){let f=await u({...t,cwd:r});if(f===Wp||(f&&l.push(be.resolve(r,f)),r===i||l.length>=o))break;r=be.dirname(r)}return l}function jb(e,t={}){let r=be.resolve(Up(t.cwd)||""),{root:n}=be.parse(r),i=t.stopAt||n,o=t.limit||Number.POSITIVE_INFINITY,a=[e].flat(),u=f=>{if(typeof e!="function")return mi(a,f);let c=e(f.cwd);return typeof c=="string"?mi([c],f):c},l=[];for(;;){let f=u({...t,cwd:r});if(f===Wp||(f&&l.push(be.resolve(r,f)),r===i||l.length>=o))break;r=be.dirname(r)}return l}async function Gp(e,t={}){return(await Lb(e,{...t,limit:1}))[0]}function zp(e,t={}){return jb(e,{...t,limit:1})[0]}s();var ah=Y(Xp(),1);s();var Ut=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};s();s();var Gb={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Wt=e=>e.replace(/[[\]\\-]/g,"\\$&"),zb=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Qp=e=>e.join(""),eh=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],o=r+1,a=!1,u=!1,l=!1,f=!1,c=r,h="";e:for(;o<e.length;){let g=e.charAt(o);if((g==="!"||g==="^")&&o===r+1){f=!0,o++;continue}if(g==="]"&&a&&!l){c=o+1;break}if(a=!0,g==="\\"&&!l){l=!0,o++;continue}if(g==="["&&!l){for(let[v,[w,S,C]]of Object.entries(Gb))if(e.startsWith(v,o)){if(h)return["$.",!1,e.length-r,!0];o+=v.length,C?i.push(w):n.push(w),u=u||S;continue e}}if(l=!1,h){g>h?n.push(Wt(h)+"-"+Wt(g)):g===h&&n.push(Wt(g)),h="",o++;continue}if(e.startsWith("-]",o+1)){n.push(Wt(g+"-")),o+=2;continue}if(e.startsWith("-",o+1)){h=g,o+=2;continue}n.push(Wt(g)),o++}if(c<o)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!f){let g=n[0].length===2?n[0].slice(-1):n[0];return[zb(g),!1,c-r,!1]}let d="["+(f?"^":"")+Qp(n)+"]",y="["+(f?"":"^")+Qp(i)+"]";return[n.length&&i.length?"("+d+"|"+y+")":n.length?d:y,u,c-r,!0]};s();var Me=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var ie,Bb=new Set(["!","?","+","*","@"]),wi=e=>Bb.has(e),th=e=>wi(e.type),Jb=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Hb=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Kb=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),rh=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Yb="(?!(?:^|/)\\.\\.?(?:$|/))",Wr="(?!\\.)",Vb=new Set(["[","."]),Zb=new Set(["..","."]),Xb=new Set("().*{}+?[]^$\\!"),Qb=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Si="[^/]",nh=Si+"*?",ih=Si+"+?",Ge=class{type;#t;#r;#i=!1;#e=[];#n;#a;#c;#u=!1;#o;#s;#f=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#n=r,this.#t=this.#n?this.#n.#t:this,this.#o=this.#t===this?n:this.#t.#o,this.#c=this.#t===this?[]:this.#t.#c,t==="!"&&!this.#t.#u&&this.#c.push(this),this.#a=this.#n?this.#n.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#s!==void 0?this.#s:this.type?this.#s=this.type+"("+this.#e.map(t=>String(t)).join("|")+")":this.#s=this.#e.map(t=>String(t)).join("")}#g(){if(this!==this.#t)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let t;for(;t=this.#c.pop();){if(t.type!=="!")continue;let r=t,n=r.#n;for(;n;){for(let i=r.#a+1;!n.type&&i<n.#e.length;i++)for(let o of t.#e){if(typeof o=="string")throw new Error("string part in extglob AST??");o.copyIn(n.#e[i])}r=n,n=r.#n}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof ie&&r.#n===this))throw new Error("invalid part: "+r);this.#e.push(r)}}toJSON(){let t=this.type===null?this.#e.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#e.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#u&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#n?.isStart())return!1;if(this.#a===0)return!0;let t=this.#n;for(let r=0;r<this.#a;r++){let n=t.#e[r];if(!(n instanceof ie&&n.type==="!"))return!1}return!0}isEnd(){if(this.#t===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let t=this.#n?this.#n.#e.length:0;return this.#a===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new ie(this.type,t);for(let n of this.#e)r.copyIn(n);return r}static#l(t,r,n,i,o){let a=i.maxExtglobRecursion??2,u=!1,l=!1,f=-1,c=!1;if(r.type===null){let g=n,v="";for(;g<t.length;){let w=t.charAt(g++);if(u||w==="\\"){u=!u,v+=w;continue}if(l){g===f+1?(w==="^"||w==="!")&&(c=!0):w==="]"&&!(g===f+2&&c)&&(l=!1),v+=w;continue}else if(w==="["){l=!0,f=g,c=!1,v+=w;continue}if(!i.noext&&wi(w)&&t.charAt(g)==="("&&o<=a){r.push(v),v="";let C=new ie(w,r);g=ie.#l(t,C,g,i,o+1),r.push(C);continue}v+=w}return r.push(v),g}let h=n+1,d=new ie(null,r),y=[],m="";for(;h<t.length;){let g=t.charAt(h++);if(u||g==="\\"){u=!u,m+=g;continue}if(l){h===f+1?(g==="^"||g==="!")&&(c=!0):g==="]"&&!(h===f+2&&c)&&(l=!1),m+=g;continue}else if(g==="["){l=!0,f=h,c=!1,m+=g;continue}if(wi(g)&&t.charAt(h)==="("&&(o<=a||r&&r.#p(g))){let w=r&&r.#p(g)?0:1;d.push(m),m="";let S=new ie(g,d);d.push(S),h=ie.#l(t,S,h,i,o+w);continue}if(g==="|"){d.push(m),m="",y.push(d),d=new ie(null,r);continue}if(g===")")return m===""&&r.#e.length===0&&(r.#f=!0),d.push(m),m="",r.push(...y,d),h;m+=g}return r.type=null,r.#r=void 0,r.#e=[t.substring(n-1)],h}#v(t){return this.#y(t,Hb)}#y(t,r=Jb){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null)return!1;let n=t.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#p(n.type,r)}#p(t,r=Kb){return!!r.get(this.type)?.includes(t)}#w(t,r){let n=t.#e[0],i=new ie(null,n,this.options);i.#e.push(""),n.push(i),this.#d(t,r)}#d(t,r){let n=t.#e[0];this.#e.splice(r,1,...n.#e);for(let i of n.#e)typeof i=="object"&&(i.#n=this);this.#s=void 0}#S(t){return!!rh.get(this.type)?.has(t)}#x(t){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let r=t.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#S(r.type)}#_(t){let r=rh.get(this.type),n=t.#e[0],i=r?.get(n.type);if(!i)return!1;this.#e=n.#e;for(let o of this.#e)typeof o=="object"&&(o.#n=this);this.type=i,this.#s=void 0,this.#f=!1}#h(){if(th(this)){let t=0,r=!1;do{r=!0;for(let n=0;n<this.#e.length;n++){let i=this.#e[n];typeof i=="object"&&(i.#h(),this.#y(i)?(r=!1,this.#d(i,n)):this.#v(i)?(r=!1,this.#w(i,n)):this.#x(i)&&(r=!1,this.#_(i)))}}while(!r&&++t<10)}else for(let t of this.#e)typeof t=="object"&&t.#h();this.#s=void 0}static fromGlob(t,r={}){let n=new ie(null,void 0,r);return ie.#l(t,n,0,r,0),n}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let t=this.toString(),[r,n,i,o]=this.toRegExpSource();if(!(i||this.#r||this.#o.nocase&&!this.#o.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let u=(this.#o.nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${r}$`,u),{_src:r,_glob:t})}get options(){return this.#o}toRegExpSource(t){let r=t??!!this.#o.dot;if(this.#t===this&&(this.#h(),this.#g()),!th(this)){let l=this.isStart()&&this.isEnd(),f=this.#e.map(y=>{let[m,g,v,w]=typeof y=="string"?ie.#b(y,this.#r,l):y.toRegExpSource(t);return this.#r=this.#r||v,this.#i=this.#i||w,m}).join(""),c="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Zb.has(this.#e[0]))){let m=Vb,g=r&&m.has(f.charAt(0))||f.startsWith("\\.")&&m.has(f.charAt(2))||f.startsWith("\\.\\.")&&m.has(f.charAt(4)),v=!r&&!t&&m.has(f.charAt(0));c=g?Yb:v?Wr:""}let h="";return this.isEnd()&&this.#t.#u&&this.#n?.type==="!"&&(h="(?:$|\\/)"),[c+f+h,Me(f),this.#r=!!this.#r,this.#i]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",o=this.#m(r);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){let l=this.toString(),f=this;return f.#e=[l],f.type=null,f.#r=void 0,[l,Me(this.toString()),!1,!1]}let a=!n||t||r||!Wr?"":this.#m(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let u="";if(this.type==="!"&&this.#f)u=(this.isStart()&&!r?Wr:"")+ih;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Wr:"")+nh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;u=i+o+l}return[u,Me(o),this.#r=!!this.#r,this.#i]}#m(t){return this.#e.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,o,a]=r.toRegExpSource(t);return this.#i=this.#i||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#b(t,r,n=!1){let i=!1,o="",a=!1,u=!1;for(let l=0;l<t.length;l++){let f=t.charAt(l);if(i){i=!1,o+=(Xb.has(f)?"\\":"")+f,u=!1;continue}if(f==="\\"){l===t.length-1?o+="\\\\":i=!0;continue}if(f==="["){let[c,h,d,y]=eh(t,l);if(d){o+=c,a=a||h,l+=d-1,r=r||y,u=!1;continue}}if(f==="*"){if(u)continue;u=!0,o+=n&&/^[*]+$/.test(t)?ih:nh,r=!0;continue}else u=!1;if(f==="?"){o+=Si,r=!0;continue}o+=Qb(f)}return[o,Me(t),!!r,a]}};ie=Ge;s();var xi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var J=(e,t,r={})=>(Ut(t),!r.nocomment&&t.charAt(0)==="#"?!1:new ht(t,r).match(e)),eE=/^\*+([^+@!?\*\[\(]*)$/,tE=e=>t=>!t.startsWith(".")&&t.endsWith(e),rE=e=>t=>t.endsWith(e),nE=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),iE=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),oE=/^\*+\.\*+$/,sE=e=>!e.startsWith(".")&&e.includes("."),aE=e=>e!=="."&&e!==".."&&e.includes("."),uE=/^\.\*+$/,cE=e=>e!=="."&&e!==".."&&e.startsWith("."),fE=/^\*+$/,lE=e=>e.length!==0&&!e.startsWith("."),pE=e=>e.length!==0&&e!=="."&&e!=="..",hE=/^\?+([^+@!?\*\[\(]*)?$/,yE=([e,t=""])=>{let r=uh([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},dE=([e,t=""])=>{let r=ch([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},mE=([e,t=""])=>{let r=ch([e]);return t?n=>r(n)&&n.endsWith(t):r},gE=([e,t=""])=>{let r=uh([e]);return t?n=>r(n)&&n.endsWith(t):r},uh=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},ch=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},fh=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",oh={win32:{sep:"\\"},posix:{sep:"/"}},vE=fh==="win32"?oh.win32.sep:oh.posix.sep;J.sep=vE;var K=Symbol("globstar **");J.GLOBSTAR=K;var wE="[^/]",SE=wE+"*?",xE="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_E="(?:(?!(?:\\/|^)\\.).)*?",bE=(e,t={})=>r=>J(r,e,t);J.filter=bE;var he=(e,t={})=>Object.assign({},e,t),EE=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return J;let t=J;return Object.assign((n,i,o={})=>t(n,i,he(e,o)),{Minimatch:class extends t.Minimatch{constructor(i,o={}){super(i,he(e,o))}static defaults(i){return t.defaults(he(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,o,a={}){super(i,o,he(e,a))}static fromGlob(i,o={}){return t.AST.fromGlob(i,he(e,o))}},unescape:(n,i={})=>t.unescape(n,he(e,i)),escape:(n,i={})=>t.escape(n,he(e,i)),filter:(n,i={})=>t.filter(n,he(e,i)),defaults:n=>t.defaults(he(e,n)),makeRe:(n,i={})=>t.makeRe(n,he(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,he(e,i)),match:(n,i,o={})=>t.match(n,i,he(e,o)),sep:t.sep,GLOBSTAR:K})};J.defaults=EE;var lh=(e,t={})=>(Ut(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,ah.default)(e));J.braceExpand=lh;var qE=(e,t={})=>new ht(e,t).makeRe();J.makeRe=qE;var CE=(e,t,r={})=>{let n=new ht(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};J.match=CE;var sh=/[?*]|[+@!]\(.*?\)|\[|\]/,OE=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ht=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,r={}){Ut(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||fh,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((o,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=o[0]===""&&o[1]===""&&(o[2]==="?"||!sh.test(o[2]))&&!sh.test(o[3]),f=/^[a-z]:/i.test(o[0]);if(l)return[...o.slice(0,4),...o.slice(4).map(c=>this.parse(c))];if(f)return[o[0],...o.slice(1).map(c=>this.parse(c))]}return o.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){let a=this.set[o];a[0]===""&&a[1]===""&&this.globParts[o][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let o=n[n.length-1];return i==="**"&&o==="**"?n:i===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let o=t[i];i===1&&o===""&&t[0]===""||(o==="."||o==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let u=n[i+1],l=n[i+2],f=n[i+3];if(u!==".."||!l||l==="."||l===".."||!f||f==="."||f==="..")continue;r=!0,n.splice(i,1);let c=n.slice(0);c[i]="**",t.push(c),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let u=n[a];a===1&&u===""&&n[0]===""||(u==="."||u==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let o=0;for(;(o=n.indexOf("..",o+1))!==-1;){let a=n[o-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=o===1&&n[o+1]==="**"?["."]:[];n.splice(o-1,2,...l),n.length===0&&n.push(""),o-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,o=0,a=[],u="";for(;i<t.length&&o<r.length;)if(t[i]===r[o])a.push(u==="b"?r[o]:t[i]),i++,o++;else if(n&&t[i]==="**"&&r[o]===t[i+1])a.push(t[i]),i++;else if(n&&r[o]==="**"&&t[i]===r[o+1])a.push(r[o]),o++;else if(t[i]==="*"&&r[o]&&(this.options.dot||!r[o].startsWith("."))&&r[o]!=="**"){if(u==="b")return!1;u="a",a.push(t[i]),i++,o++}else if(r[o]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(u==="a")return!1;u="b",a.push(r[o]),i++,o++}else return!1;return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,o=0;if(this.isWindows){let u=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),l=!u&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),c=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),h=l?3:u?0:void 0,d=c?3:f?0:void 0;if(typeof h=="number"&&typeof d=="number"){let[y,m]=[t[h],r[d]];y.toLowerCase()===m.toLowerCase()&&(r[d]=y,o=d,i=h)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(K)?this.#t(t,r,n,i,o):this.#i(t,r,n,i,o)}#t(t,r,n,i,o){let a=r.indexOf(K,o),u=r.lastIndexOf(K),[l,f,c]=n?[r.slice(o,a),r.slice(a+1),[]]:[r.slice(o,a),r.slice(a+1,u),r.slice(u+1)];if(l.length){let S=t.slice(i,i+l.length);if(!this.#i(S,l,n,0,0))return!1;i+=l.length}let h=0;if(c.length){if(c.length+i>t.length)return!1;let S=t.length-c.length;if(this.#i(t,c,n,S,0))h=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||(S--,!this.#i(t,c,n,S,0)))return!1;h=c.length+1}}if(!f.length){let S=!!h;for(let C=i;C<t.length-h;C++){let H=String(t[C]);if(S=!0,H==="."||H===".."||!this.options.dot&&H.startsWith("."))return!1}return n||S}let d=[[[],0]],y=d[0],m=0,g=[0];for(let S of f)S===K?(g.push(m),y=[[],0],d.push(y)):(y[0].push(S),m++);let v=d.length-1,w=t.length-h;for(let S of d)S[1]=w-(g[v--]+S[0].length);return!!this.#r(t,d,i,0,n,0,!!h)}#r(t,r,n,i,o,a,u){let l=r[i];if(!l){for(let h=n;h<t.length;h++){u=!0;let d=t[h];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1}return u}let[f,c]=l;for(;n<=c;){if(this.#i(t.slice(0,n+f.length),f,o,n,0)&&a<this.maxGlobstarRecursion){let y=this.#r(t,r,n+f.length,i+1,o,a+1,u);if(y!==!1)return y}let d=t[n];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1;n++}return o||null}#i(t,r,n,i,o){let a,u,l,f;for(a=i,u=o,f=t.length,l=r.length;a<f&&u<l;a++,u++){this.debug("matchOne loop");let c=r[u],h=t[a];if(this.debug(r,c,h),c===!1||c===K)return!1;let d;if(typeof c=="string"?(d=h===c,this.debug("string match",c,h,d)):(d=c.test(h),this.debug("pattern match",c,h,d)),!d)return!1}if(a===f&&u===l)return!0;if(a===f)return n;if(u===l)return a===f-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return lh(this.pattern,this.options)}parse(t){Ut(t);let r=this.options;if(t==="**")return K;if(t==="")return"";let n,i=null;(n=t.match(fE))?i=r.dot?pE:lE:(n=t.match(eE))?i=(r.nocase?r.dot?iE:nE:r.dot?rE:tE)(n[1]):(n=t.match(hE))?i=(r.nocase?r.dot?dE:yE:r.dot?mE:gE)(n):(n=t.match(oE))?i=r.dot?aE:sE:(n=t.match(uE))&&(i=cE);let o=Ge.fromGlob(t,this.options).toMMPattern();return i&&typeof o=="object"&&Reflect.defineProperty(o,"test",{value:i}),o}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?SE:r.dot?xE:_E,i=new Set(r.nocase?["i"]:[]),o=t.map(l=>{let f=l.map(c=>{if(c instanceof RegExp)for(let h of c.flags.split(""))i.add(h);return typeof c=="string"?OE(c):c===K?K:c._src});return f.forEach((c,h)=>{let d=f[h+1],y=f[h-1];c!==K||y===K||(y===void 0?d!==void 0&&d!==K?f[h+1]="(?:\\/|"+n+"\\/)?"+d:f[h]=n:d===void 0?f[h-1]=y+"(?:\\/|"+n+")?":d!==K&&(f[h-1]=y+"(?:\\/|\\/"+n+"\\/)"+d,f[h+1]=K))}),f.filter(c=>c!==K).join("/")}).join("|"),[a,u]=t.length>1?["(?:",")"]:["",""];o="^"+a+o+u+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let o=this.set;this.debug(this.pattern,"set",o);let a=i[i.length-1];if(!a)for(let u=i.length-2;!a&&u>=0;u--)a=i[u];for(let u=0;u<o.length;u++){let l=o[u],f=i;if(n.matchBase&&l.length===1&&(f=[a]),this.matchOne(f,l,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return J.defaults(t).Minimatch}};J.AST=Ge;J.Minimatch=ht;J.escape=xi;J.unescape=Me;var ph=Y(Eh());import{mkdirSync as TE,readFileSync as PE,writeFileSync as AE,appendFileSync as FE,statSync as hh,createReadStream as RE,createWriteStream as IE,constants as yh,existsSync as LE,unlinkSync as jE,mkdtempSync as ME,accessSync as DE,statSync as NE}from"fs";import{mkdir as $E,writeFile as kE,readFile as UE,realpath as WE,appendFile as GE,mkdtemp as dh,stat as mh,lstat as gh,chmod as zE,access as vh,rename as BE,unlink as JE,rm as _i,readdir as HE,symlink as KE}from"fs/promises";import{pathToFileURL as YE}from"url";import*as Gr from"os";function XI(e,t){let r=e.split(qi);return Gt(...r.slice(t))}async function QI(e){let t=await dh(Gt(Kn,"tmp-"));try{return await e(t)}finally{await _i(t,{recursive:!0,force:!0,maxRetries:2})}}function eL(){return ME(Gt(Kn,"tmp-"))}async function tL(e,t={encoding:"utf8"}){return L(R`Reading the content of file at ${P.path(e)}...`),UE(e,t)}function rL(e){return L(R`Sync-reading the content of file at ${P.path(e)}...`),PE(e)}async function nL(e){return WE(e)}async function iL(e,t){if(Br(e)===Br(t)){L(R`Skipping copy file step because source and destination is the same: ${P.path(e)}`);return}L(R`Copying file from ${P.path(e)} to ${P.path(t)}...`),await pi(e,t)}async function oL(e){L(R`Creating an empty file at ${P.path(e)}...`),await Pp(e)}function sL(e){L(R`Creating an empty file at ${P.path(e)}...`),Ap(e)}async function aL(e,t){L(R`Appending the following content to ${P.path(e)}:
12
+ ${t.split(`
13
+ `).map(r=>` ${r}`).join(`
14
+ `)}
15
+ `),await GE(e,t)}function uL(e,t){FE(e,t)}async function cL(e,t,r={encoding:"utf8"}){L(R`Writing some content to file at ${P.path(e)}...`),await kE(e,t,r)}function fL(e,t){L(R`File-writing some content to file at ${P.path(e)}...`),AE(e,t)}async function lL(e){L(R`Creating directory at ${P.path(e)}...`),await $E(e,{recursive:!0})}function pL(e){L(R`Sync-creating directory at ${P.path(e)}...`),TE(e,{recursive:!0})}async function hL(e,t={}){L(R`Removing file at ${P.path(e)}...`),await _i(e,{recursive:!0,force:!0,...t})}async function yL(e,t){L(R`Renaming file from ${P.path(e)} to ${P.path(t)}...`),await BE(e,t)}async function dL(e,t){L(R`Creating symbolic link from ${P.path(t)} to ${P.path(e)}...`);let r="file";try{(await gh(e)).isDirectory()&&(r="junction")}catch{}await KE(e,t,r)}function mL(e){L(R`Sync-removing file at ${P.path(e)}...`),Rp(e)}async function gL(e,t={}){L(R`Removing directory at ${P.path(e)}...`),await _i(e,{recursive:!0,force:t.force??!0})}async function vL(){return L(R`Creating a temporary directory...`),await dh(yt(Gr.tmpdir(),"tmp-"))}async function wL(e){return L(R`Checking if ${P.path(e)} is a directory...`),(await gh(e)).isDirectory()}function SL(e){return L(R`Checking if ${P.path(e)} is a directory...`),hh(e).isDirectory()}async function xL(e){return L(R`Getting the size of file at ${P.path(e)}...`),(await mh(e)).size}function _L(e){return L(R`Sync-getting the size of file at ${P.path(e)}...`),hh(e).size}function bL(e){jE(e)}function EL(e){return JE(e)}function qL(e,t){return RE(e,t)}function CL(e){return IE(e)}async function VE(e){return L(R`Getting last updated timestamp for file at ${P.path(e)}...`),(await mh(e)).ctime}async function OL(e){try{return(await VE(e)).getTime()}catch{return}}async function TL(e,t,r={}){await Fp(e,t,r)}async function PL(e,t){await zE(e,t)}async function AL(e){try{return await vh(e,yh.X_OK),!0}catch{return!1}}function FL(e){try{return DE(e,yh.W_OK),!0}catch{return!1}}function RL(e){if(!(process.platform==="win32"||typeof process.getuid!="function")){if(!ZE(e))return!1;try{let t=NE(e),r=process.getuid();return t.uid===r}catch{return!1}}}async function wh(e){try{return await vh(e),!0}catch{return!1}}function ZE(e){return LE(e)}async function XE(e){let t=`${Rf(e.family??"business")}-${e.suffix}`,r=yt(e.directory,t);return await wh(r)?XE(e):t}async function IL(e,t){let{default:r}=await import("./out-B2GISN65.js"),n=t;return t?.dot==null&&(n={...t,dot:!0}),r(e,n)}function Ii(e,t){let r=t;return t?.dot==null&&(r={...t,dot:!0}),ph.default.sync(e,r)}function LL(e){return YE(e)}function jL(e){let t=e.match(/\r\n|\n/g);if(!t)return QE();let r=0;for(let i of t)i===`\r
16
+ `&&r++;let n=t.length-r;return r>n?`\r
17
+ `:`
18
+ `}function QE(){return Gr.EOL}async function ML(e,t){let r=await Gp(e,t);return r?zr(r):void 0}function Li(e,t){let r=zp(e,t);return r?zr(r):void 0}function DL(e,t,r){return J(e,t,r)}function NL(e){return HE(e)}async function $L(e,t){if(!await wh(e))throw new Error(`Source directory ${e} does not exist`);await pi(e,t)}export{sn as a,fn as b,Ss as c,_s as d,hn as e,ve as f,Rs as g,Ms as h,$s as i,ar as j,yn as k,dn as l,mn as m,ia as n,vn as o,ca as p,la as q,ha as r,ga as s,wn as t,Sn as u,xa as v,$a as w,Tn as x,uu as y,Rn as z,In as A,Pt as B,Ln as C,Cu as D,lr as E,Gu as F,cc as G,mc as H,qc as I,Lc as J,Mc as K,$P as L,kP as M,Uc as N,UP as O,WP as P,fe as Q,le as R,Rf as S,EA as T,qA as U,CA as V,OA as W,TA as X,PA as Y,AA as Z,FA as _,RA as $,IA as aa,_0 as ba,LA as ca,jA as da,MA as ea,DA as fa,NA as ga,ee as ha,XI as ia,QI as ja,eL as ka,tL as la,rL as ma,nL as na,iL as oa,oL as pa,sL as qa,aL as ra,uL as sa,cL as ta,fL as ua,lL as va,pL as wa,hL as xa,yL as ya,dL as za,mL as Aa,gL as Ba,vL as Ca,wL as Da,SL as Ea,xL as Fa,_L as Ga,bL as Ha,EL as Ia,qL as Ja,CL as Ka,VE as La,OL as Ma,TL as Na,PL as Oa,AL as Pa,FL as Qa,RL as Ra,wh as Sa,ZE as Ta,XE as Ua,IL as Va,Ii as Wa,LL as Xa,jL as Ya,QE as Za,ML as _a,Li as $a,DL as ab,NL as bb,$L as cb,He as db,Cq as eb,zi as fb,xe as gb,Ki as hb,Zr as ib,oq as jb,sq as kb,aq as lb,Ch as mb,Mi as nb,Wi as ob,er as pb,P as qb,jh as rb,R as sb,St as tb,De as ub,Gq as vb,zq as wb,Bq as xb,Jq as yb,Hq as zb,Kq as Ab,L as Bb,Yq as Cb,Vq as Db,N as Eb,Zq as Fb,Ne as Gb,Ke as Hb,Yi as Ib,Xq as Jb};
@@ -0,0 +1 @@
1
+ import{c as i,f as v,g as C}from"./chunk-4GOJQKY5.js";import{a as T}from"./chunk-7RPFJZLP.js";import{a as F}from"./chunk-FWB3GLMW.js";import{Na as S,e as w}from"./chunk-3C6VLJ5D.js";import{b as y,c as g}from"./chunk-Q2SZCZE7.js";import{A as l,y as d}from"./chunk-CZ22VZDA.js";import{c as f}from"./chunk-J6TW43TG.js";import{a as u}from"./chunk-BN7ZXAZJ.js";import{wb as h}from"./chunk-LWCTKI4Z.js";import{b as s,h as m}from"./chunk-FZCGRIOM.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();e();import{resolve as O}from"node:path";async function b(o,t){return await w(o,t),{status:"success",function:{handle:o.configuration.handle??null,name:o.name,directory:O(o.directory)}}}e();var n=u({name:"FunctionTypegenResult",schema:s.object({status:s.literal("success"),function:i}).strict(),definitions:{Function:i}});e();function j(o,t){t?h(n.encode(o)):l({headline:"GraphQL types generated successfully."})}var a=class o extends T{static get jsonOutputSchema(){return n}static summary="Generate GraphQL types for a function.";static 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.";static description=this.descriptionForHelp();static flags={...y,...F,...v,...g};async run(){let{flags:t}=await this.parse(o),{app:r}=await S({directory:t.path,userProvidedConfigName:t.config}),p=await C(r,t.path),c=async(x,J)=>{let G=await b(p,{stdout:x,stderr:J,app:r});j(G,t.json)};return t.json?await m({outputMode:"json",sink:f},()=>d({processes:[{prefix:p.localIdentifier,action:c}],showTimestamps:!1})):await c(process.stdout,process.stderr),{app:r}}};export{a};