shopify 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/dist/analytics-23GM6KJU.js +1 -0
  2. package/dist/analytics-743FYOAE.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-HSTZV6H7.js → chunk-2EQRXSF6.js} +1 -1
  5. package/dist/{chunk-AY3AAV77.js → chunk-2IXP3IPE.js} +1 -1
  6. package/dist/{chunk-OTMYJWIP.js → chunk-2KACAQJS.js} +1 -1
  7. package/dist/{chunk-24Q6X53V.js → chunk-2OCSYLKZ.js} +1 -1
  8. package/dist/{chunk-QCLE5REL.js → chunk-2PILNMHJ.js} +1 -1
  9. package/dist/{chunk-WPDJVUTY.js → chunk-36S6MFJQ.js} +1 -1
  10. package/dist/{chunk-YNZLLZU2.js → chunk-3DB4EC62.js} +1 -1
  11. package/dist/{chunk-FQLXQ7WN.js → chunk-3GL3IT4K.js} +1 -1
  12. package/dist/{chunk-JALDNBTU.js → chunk-3JRB7Q3T.js} +1 -1
  13. package/dist/{chunk-7A77JCED.js → chunk-3OYMK5X6.js} +1 -1
  14. package/dist/{chunk-ORMXPSJM.js → chunk-422BGHXN.js} +1 -1
  15. package/dist/{chunk-ZMU4EYXT.js → chunk-43C32FUQ.js} +1 -1
  16. package/dist/{chunk-ELR6AZT4.js → chunk-4AN7ECPE.js} +1 -1
  17. package/dist/chunk-4AWVU2OV.js +1 -0
  18. package/dist/chunk-4KBOLN7Q.js +8 -0
  19. package/dist/{chunk-YYWSHRO2.js → chunk-4LJERO23.js} +3 -3
  20. package/dist/{chunk-4FWPOGPQ.js → chunk-4M5WHOZW.js} +1 -1
  21. package/dist/{chunk-OWQEFORZ.js → chunk-4RO35FFQ.js} +1 -1
  22. package/dist/{chunk-6I7DT7QR.js → chunk-4ZS5354G.js} +1 -1
  23. package/dist/{chunk-ZXZWMXXK.js → chunk-55AWBPKU.js} +1 -1
  24. package/dist/{chunk-7PHDEILV.js → chunk-5BUYR23E.js} +1 -1
  25. package/dist/{chunk-AHYI27QL.js → chunk-5EDA7PVE.js} +3 -3
  26. package/dist/{chunk-5C6CXU74.js → chunk-5P6OELKZ.js} +1 -1
  27. package/dist/{chunk-SPJM7RTD.js → chunk-5PVXLQNX.js} +1 -1
  28. package/dist/{chunk-FU7PYW7H.js → chunk-5S2P4MHJ.js} +1 -1
  29. package/dist/{chunk-SBN3ILXO.js → chunk-5TJJVSCI.js} +1 -1
  30. package/dist/{chunk-VE3IIC7H.js → chunk-5TOK5OJS.js} +1 -1
  31. package/dist/{chunk-LGDWE3H3.js → chunk-5ZG2SWU2.js} +1 -1
  32. package/dist/{chunk-DDZYIC76.js → chunk-62F4ZMSC.js} +1 -1
  33. package/dist/{chunk-4NFX7YCT.js → chunk-652NT7OW.js} +1 -1
  34. package/dist/{chunk-5534MHZW.js → chunk-6B5KM3A4.js} +1 -1
  35. package/dist/{chunk-CRQQCT7F.js → chunk-6LCESSY3.js} +1 -1
  36. package/dist/chunk-6QHDMCAA.js +1 -0
  37. package/dist/{chunk-2KUM2RU4.js → chunk-7A4ZE5IS.js} +2 -2
  38. package/dist/{chunk-R6US7F33.js → chunk-7AQZKPJU.js} +1 -1
  39. package/dist/{chunk-HMPRWNGG.js → chunk-7FBOMPO5.js} +2 -2
  40. package/dist/{chunk-DGIIUQH3.js → chunk-7UK565VJ.js} +1 -1
  41. package/dist/{chunk-DOLVBTCB.js → chunk-A5BSUUNQ.js} +1 -1
  42. package/dist/{chunk-SCDGLREP.js → chunk-ADGE7MKB.js} +1 -1
  43. package/dist/{chunk-65NCQJYR.js → chunk-AEWRZ7AE.js} +1 -1
  44. package/dist/chunk-ALDJTWCO.js +1 -0
  45. package/dist/chunk-ARL5WBDK.js +1 -0
  46. package/dist/chunk-AXFEIJC7.js +1 -0
  47. package/dist/{chunk-JNSVKDBY.js → chunk-AYGL6F3P.js} +1 -1
  48. package/dist/{chunk-F6IQWX2F.js → chunk-AYTTE7X5.js} +1 -1
  49. package/dist/{chunk-JIYCZXK5.js → chunk-BDIZUTKC.js} +1 -1
  50. package/dist/{chunk-Z5WFRYVQ.js → chunk-BQKF4SRH.js} +1 -1
  51. package/dist/{chunk-7ART2IKU.js → chunk-C2AOCLEZ.js} +1 -1
  52. package/dist/{chunk-NYMKGE3J.js → chunk-C2SGJ5IG.js} +1 -1
  53. package/dist/{chunk-LPPEAMI6.js → chunk-C3S3UMV3.js} +1 -1
  54. package/dist/{chunk-S3RROJGG.js → chunk-C5DKLOW4.js} +1 -1
  55. package/dist/{chunk-DC7ITY6T.js → chunk-CA3GVT4D.js} +1 -1
  56. package/dist/{chunk-KFR7HWCG.js → chunk-CCLU5ZRK.js} +1 -1
  57. package/dist/{chunk-3FZ4LE6A.js → chunk-CE6XQDAG.js} +2 -2
  58. package/dist/{chunk-RKNVTEO3.js → chunk-CEJ5WS4I.js} +1 -1
  59. package/dist/chunk-CIBBQO2L.js +6 -0
  60. package/dist/{chunk-L2PUDV7Y.js → chunk-CKJXJ6HD.js} +1 -1
  61. package/dist/{chunk-KHZF73BL.js → chunk-COGKVNQB.js} +1 -1
  62. package/dist/{chunk-OY5M52EF.js → chunk-CQPZOXWO.js} +1 -1
  63. package/dist/{chunk-AVJJGQOP.js → chunk-CZYQIWNL.js} +1 -1
  64. package/dist/{chunk-VA2S7W7H.js → chunk-DA5RQFXA.js} +1 -1
  65. package/dist/{chunk-NUBJ2HK7.js → chunk-DESZFFOK.js} +1 -1
  66. package/dist/{chunk-WLYXBQ2M.js → chunk-DKR7562G.js} +1 -1
  67. package/dist/{chunk-KM4LE7K4.js → chunk-DNNTAMC5.js} +1 -1
  68. package/dist/{chunk-V4FC72R6.js → chunk-DUPQUQ2Z.js} +1 -1
  69. package/dist/{chunk-FHKK3QU7.js → chunk-DUTIWCJ2.js} +1 -1
  70. package/dist/chunk-E6JEBSHZ.js +20 -0
  71. package/dist/{chunk-VQSRU5XL.js → chunk-E6KNAPIY.js} +1 -1
  72. package/dist/{chunk-MTT6EAQO.js → chunk-E7XCCLQH.js} +1 -1
  73. package/dist/chunk-EE72PCKT.js +1 -0
  74. package/dist/{chunk-AGTUAQHX.js → chunk-EEYXBKR7.js} +1 -1
  75. package/dist/{chunk-H2KGP2FM.js → chunk-EGLA3WLZ.js} +1 -1
  76. package/dist/{chunk-JMSAHCBU.js → chunk-FDFE3SSG.js} +1 -1
  77. package/dist/{chunk-TSPJAMYB.js → chunk-FI5TQHUA.js} +1 -1
  78. package/dist/{chunk-QKPAB245.js → chunk-FIKZQ4RA.js} +1 -1
  79. package/dist/chunk-FJOVMEPN.js +3 -0
  80. package/dist/{chunk-5PSQFQL6.js → chunk-FLARCZ5F.js} +1 -1
  81. package/dist/{chunk-WE5KY6T6.js → chunk-FOMMPAWZ.js} +1 -1
  82. package/dist/chunk-G3DXNSA2.js +1 -0
  83. package/dist/{chunk-HYCNYUHW.js → chunk-G7JO3W2R.js} +1 -1
  84. package/dist/{chunk-C2HJEGTS.js → chunk-GABIWYY3.js} +1 -1
  85. package/dist/{chunk-OXZR2MB4.js → chunk-GFSEU7PF.js} +1 -1
  86. package/dist/{chunk-AMVWKHNY.js → chunk-GFVUWVEM.js} +1 -1
  87. package/dist/{chunk-D7IMC2G4.js → chunk-GHNSXX7R.js} +1 -1
  88. package/dist/{chunk-7N7KRZOM.js → chunk-GQ3LY7BY.js} +1 -1
  89. package/dist/{chunk-PJZZZNWR.js → chunk-H45S4MGC.js} +1 -1
  90. package/dist/{chunk-OJOF6IYG.js → chunk-HEB4YYM6.js} +4 -4
  91. package/dist/{chunk-I3WRA2LH.js → chunk-HI5FTI3M.js} +1 -1
  92. package/dist/{chunk-WFPVT2IY.js → chunk-HJ24NEP5.js} +1 -1
  93. package/dist/{chunk-LFBFPK22.js → chunk-HQFXVVTB.js} +1 -1
  94. package/dist/{chunk-27JT4NA4.js → chunk-HR6R7JXN.js} +1 -1
  95. package/dist/{chunk-JVY6CCLE.js → chunk-HRHJA5ZP.js} +1 -1
  96. package/dist/{chunk-5HOZDOJ7.js → chunk-HT5JQJMB.js} +1 -1
  97. package/dist/chunk-HT7273V7.js +1 -0
  98. package/dist/{chunk-ONZULPQH.js → chunk-HUB4HDWN.js} +75 -75
  99. package/dist/{chunk-HGZ2HRPO.js → chunk-IATNIWOC.js} +1 -1
  100. package/dist/{chunk-T6C4WC3Z.js → chunk-IHVWDKDV.js} +1 -1
  101. package/dist/{chunk-DMOLPSXF.js → chunk-IKXUYCK7.js} +1 -1
  102. package/dist/{chunk-HP4QYSBQ.js → chunk-IVQN2RUP.js} +1 -1
  103. package/dist/{chunk-FYQE5E6U.js → chunk-J324ZPO6.js} +1 -1
  104. package/dist/{chunk-3MZ7ELHS.js → chunk-JJQ3DJG5.js} +1 -1
  105. package/dist/{chunk-RLOEI6VE.js → chunk-JLAN6JXJ.js} +1 -1
  106. package/dist/{chunk-XRNBCV2B.js → chunk-K2GCCCCV.js} +1 -1
  107. package/dist/{chunk-ASKBYEO7.js → chunk-K4KKSBUW.js} +1 -1
  108. package/dist/{chunk-JC37YZ4I.js → chunk-K5UVCBIP.js} +1 -1
  109. package/dist/{chunk-3C72S6LO.js → chunk-KN2JIDNO.js} +1 -1
  110. package/dist/{chunk-WBJFTCEJ.js → chunk-KORVOCNN.js} +1 -1
  111. package/dist/{chunk-MGWCXTGD.js → chunk-KRQCQ57O.js} +1 -1
  112. package/dist/{chunk-3GD5ESWN.js → chunk-KT2AMFVW.js} +1 -1
  113. package/dist/{chunk-VRIFLMA3.js → chunk-L23Q53FM.js} +1 -1
  114. package/dist/{chunk-OXPEBT4I.js → chunk-L3DTONOI.js} +1 -1
  115. package/dist/{chunk-CEQGOCKX.js → chunk-LRETOC6P.js} +1 -1
  116. package/dist/{chunk-F5QKMDP3.js → chunk-LXFWK3O2.js} +1 -1
  117. package/dist/{chunk-KCAWHJGF.js → chunk-LZ2TN7EZ.js} +1 -1
  118. package/dist/{chunk-EDWIWZWM.js → chunk-MBAPM5HA.js} +1 -1
  119. package/dist/{chunk-IRLYC626.js → chunk-MGZK5EQW.js} +1 -1
  120. package/dist/{chunk-GSFWBFFH.js → chunk-MKUXSM33.js} +1 -1
  121. package/dist/chunk-MQ55QUOJ.js +276 -0
  122. package/dist/{chunk-A2NSORBM.js → chunk-NAQJMRPT.js} +1 -1
  123. package/dist/{chunk-Z5QEXS6F.js → chunk-NMXRDF4T.js} +1 -1
  124. package/dist/{chunk-SODCXZ5U.js → chunk-NOWM3CCG.js} +1 -1
  125. package/dist/{chunk-TXP6KFWO.js → chunk-NVDFXEQ5.js} +1 -1
  126. package/dist/{chunk-TP7CTMMT.js → chunk-OCILF2DD.js} +1 -1
  127. package/dist/{chunk-XWLNCBAG.js → chunk-OGBMFGYC.js} +1 -1
  128. package/dist/{chunk-ZMOW2YZ4.js → chunk-OIQ5NQ5I.js} +3 -3
  129. package/dist/{chunk-YTL45RXR.js → chunk-OKRKVVTK.js} +1 -1
  130. package/dist/{chunk-JQU2BJDH.js → chunk-ONNUEQGR.js} +1 -1
  131. package/dist/chunk-OSASE35V.js +6 -0
  132. package/dist/{chunk-6IMTMS2S.js → chunk-OTMTS5L4.js} +1 -1
  133. package/dist/{chunk-MKFRKNHF.js → chunk-OWPAHXDF.js} +1 -1
  134. package/dist/{chunk-YVPB7OT6.js → chunk-P7HZGJRU.js} +1 -1
  135. package/dist/{chunk-5T3ZT6CC.js → chunk-PIU3GVJ4.js} +1 -1
  136. package/dist/{chunk-DVD7I2TX.js → chunk-PSNCWS3Q.js} +1 -1
  137. package/dist/{chunk-XEZPN5TR.js → chunk-PSREELSQ.js} +4 -4
  138. package/dist/{chunk-SURFUFAZ.js → chunk-Q2CKRCPM.js} +1 -1
  139. package/dist/{chunk-WWCYEZUU.js → chunk-QA2D7DT2.js} +1 -1
  140. package/dist/{chunk-G3EWGBXR.js → chunk-QDMTJKQ3.js} +1 -1
  141. package/dist/{chunk-NY5N4ANL.js → chunk-QIJ7D2JS.js} +1 -1
  142. package/dist/{chunk-7DBKSSDK.js → chunk-QLN6IOOY.js} +1 -1
  143. package/dist/{chunk-A54TADAZ.js → chunk-QU3USVKT.js} +1 -1
  144. package/dist/chunk-R2E6TMBE.js +22 -0
  145. package/dist/chunk-R5COVIJM.js +1 -0
  146. package/dist/{chunk-S4KNPCW3.js → chunk-RFJ2LI64.js} +1 -1
  147. package/dist/chunk-RNF6T6IO.js +5 -0
  148. package/dist/{chunk-DVFVO6ZE.js → chunk-RSNFNZ6F.js} +1 -1
  149. package/dist/{chunk-7BPT5V24.js → chunk-RZ3UGOV4.js} +2 -2
  150. package/dist/{chunk-GGCP2TIK.js → chunk-S23ZG2RG.js} +1 -1
  151. package/dist/{chunk-3PS52ZT4.js → chunk-SAK42CAY.js} +1 -1
  152. package/dist/{chunk-G3RNO2TC.js → chunk-SBX7CMHM.js} +1 -1
  153. package/dist/{chunk-TUSS6PXB.js → chunk-SGQTRKYZ.js} +1 -1
  154. package/dist/{chunk-SQL67BKI.js → chunk-SNPJVVVE.js} +1 -1
  155. package/dist/{chunk-QUPZOBTB.js → chunk-SNRGS3YU.js} +1 -1
  156. package/dist/{chunk-FKKJQGYX.js → chunk-SUTSCIXU.js} +1 -1
  157. package/dist/{chunk-SHOMIS6Q.js → chunk-SWFCT5B7.js} +1 -1
  158. package/dist/{chunk-WZBZ7FWP.js → chunk-SZ64GAVG.js} +1 -1
  159. package/dist/{chunk-DTKGI43P.js → chunk-TDHIOONG.js} +1 -1
  160. package/dist/{chunk-7NRHZG5Y.js → chunk-TLN4BKXJ.js} +1 -1
  161. package/dist/{chunk-XLMKHTJ5.js → chunk-TXMZPF2U.js} +1 -1
  162. package/dist/{chunk-6BYHL3DS.js → chunk-TZOB52QK.js} +1 -1
  163. package/dist/{chunk-HVUMVDUG.js → chunk-U5BKU3OL.js} +1 -1
  164. package/dist/chunk-UK3BDOHR.js +7 -0
  165. package/dist/{chunk-YKDRUAY3.js → chunk-UORSJB4A.js} +90 -90
  166. package/dist/{chunk-Z6ZRS256.js → chunk-UY44O4IZ.js} +1 -1
  167. package/dist/{chunk-JG4FAT2T.js → chunk-V3H6SYK3.js} +1 -1
  168. package/dist/{chunk-AE3IQG7S.js → chunk-VBPMVVLV.js} +1 -1
  169. package/dist/{chunk-SVQDMZJO.js → chunk-VGBCG3I5.js} +1 -1
  170. package/dist/{chunk-MYMBHVC4.js → chunk-VHRUPKWH.js} +1 -1
  171. package/dist/{chunk-CZNUBAAG.js → chunk-VVHJ2AUF.js} +1 -1
  172. package/dist/{chunk-T4ZOTYOY.js → chunk-WB5GRBHW.js} +1 -1
  173. package/dist/{chunk-YNFQBYSL.js → chunk-WBKQSSWW.js} +1 -1
  174. package/dist/{chunk-MU7IVBGI.js → chunk-WDXDT7XY.js} +2 -2
  175. package/dist/{chunk-FAVPTYIR.js → chunk-WHOD5I7N.js} +1 -1
  176. package/dist/{chunk-7CT3NIXI.js → chunk-WL3M63DG.js} +1 -1
  177. package/dist/{chunk-25MYHE4W.js → chunk-WLJDMI7E.js} +1 -1
  178. package/dist/{chunk-VJG7VXFU.js → chunk-WZ3QWPK5.js} +2 -2
  179. package/dist/{chunk-BPKQA2EO.js → chunk-X5V7AGVU.js} +1 -1
  180. package/dist/{chunk-UFY4L5KQ.js → chunk-X76AYO36.js} +1 -1
  181. package/dist/{chunk-WBPP6PO7.js → chunk-XB7H2RYV.js} +1 -1
  182. package/dist/chunk-XHHAVKKV.js +1 -0
  183. package/dist/{chunk-4TCXPHKN.js → chunk-XKNDU62O.js} +1 -1
  184. package/dist/{chunk-7KID5BIR.js → chunk-XVJRGOJA.js} +1 -1
  185. package/dist/{chunk-CDSDQTNB.js → chunk-Y3ZAQZPH.js} +1 -1
  186. package/dist/{chunk-Q2LQJYRK.js → chunk-YGN65N6W.js} +1 -1
  187. package/dist/{chunk-UC4TOM36.js → chunk-YTC367JI.js} +1 -1
  188. package/dist/{chunk-TTAT62N3.js → chunk-Z2FGYMJ6.js} +1 -1
  189. package/dist/chunk-Z3QZNLT5.js +1 -0
  190. package/dist/{chunk-TSVEV2UD.js → chunk-ZC3EDADH.js} +1 -1
  191. package/dist/{chunk-O7HZ3EIP.js → chunk-ZLITAXPT.js} +1 -1
  192. package/dist/{chunk-WWVDZ3GC.js → chunk-ZNEQZV5K.js} +1 -1
  193. package/dist/{chunk-OVJVFB5E.js → chunk-ZOU6SOXW.js} +1 -1
  194. package/dist/{chunk-KFO2JNF5.js → chunk-ZQNGYJKJ.js} +1 -1
  195. package/dist/{chunk-MZDBH4XV.js → chunk-ZRM7ESSS.js} +1 -1
  196. package/dist/{chunk-ORYEDUKM.js → chunk-ZX33FUW3.js} +1 -1
  197. package/dist/cli/commands/app/build.js +1 -1
  198. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  199. package/dist/cli/commands/app/bulk/execute.js +1 -1
  200. package/dist/cli/commands/app/bulk/status.js +1 -1
  201. package/dist/cli/commands/app/config/link.js +1 -1
  202. package/dist/cli/commands/app/config/pull.js +1 -1
  203. package/dist/cli/commands/app/config/use.js +1 -1
  204. package/dist/cli/commands/app/config/validate.js +1 -1
  205. package/dist/cli/commands/app/demo/watcher.js +1 -1
  206. package/dist/cli/commands/app/deploy.js +1 -1
  207. package/dist/cli/commands/app/dev/clean.js +1 -1
  208. package/dist/cli/commands/app/dev.js +1 -1
  209. package/dist/cli/commands/app/env/pull.js +1 -1
  210. package/dist/cli/commands/app/env/show.js +1 -1
  211. package/dist/cli/commands/app/execute.js +1 -1
  212. package/dist/cli/commands/app/function/build.js +1 -1
  213. package/dist/cli/commands/app/function/info.js +1 -1
  214. package/dist/cli/commands/app/function/replay.js +1 -1
  215. package/dist/cli/commands/app/function/run.js +1 -1
  216. package/dist/cli/commands/app/function/schema.js +1 -1
  217. package/dist/cli/commands/app/function/typegen.js +1 -1
  218. package/dist/cli/commands/app/generate/extension.js +1 -1
  219. package/dist/cli/commands/app/graphiql.js +1 -1
  220. package/dist/cli/commands/app/import/channel-config.js +1 -1
  221. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  222. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  223. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  224. package/dist/cli/commands/app/import-extensions.js +1 -1
  225. package/dist/cli/commands/app/info.js +1 -1
  226. package/dist/cli/commands/app/init.js +1 -1
  227. package/dist/cli/commands/app/logs.js +1 -1
  228. package/dist/cli/commands/app/release.js +1 -1
  229. package/dist/cli/commands/app/security/check.js +1 -1
  230. package/dist/cli/commands/app/security/clean.js +1 -1
  231. package/dist/cli/commands/app/security/instructions.js +1 -1
  232. package/dist/cli/commands/app/security/record.js +1 -1
  233. package/dist/cli/commands/app/security/review.js +1 -1
  234. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  235. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  236. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  237. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  238. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  239. package/dist/cli/commands/app/versions/list.js +1 -1
  240. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  241. package/dist/cli/commands/auth/login.js +1 -1
  242. package/dist/cli/commands/auth/logout.js +1 -1
  243. package/dist/cli/commands/cache/clear.js +1 -1
  244. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  245. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  246. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  247. package/dist/cli/commands/debug/command-flags.js +1 -1
  248. package/dist/cli/commands/doc/fetch.js +1 -1
  249. package/dist/cli/commands/doc/search.js +1 -1
  250. package/dist/cli/commands/docs/generate.js +1 -1
  251. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  252. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  253. package/dist/cli/commands/help.js +1 -1
  254. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  255. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  256. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  257. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  258. package/dist/cli/commands/notifications/generate.js +1 -1
  259. package/dist/cli/commands/notifications/list.js +1 -1
  260. package/dist/cli/commands/organization/list.js +1 -1
  261. package/dist/cli/commands/search.js +1 -1
  262. package/dist/cli/commands/send-analytics.js +1 -1
  263. package/dist/cli/commands/theme/check.js +1 -1
  264. package/dist/cli/commands/theme/console.js +1 -1
  265. package/dist/cli/commands/theme/delete.js +1 -1
  266. package/dist/cli/commands/theme/dev.js +1 -1
  267. package/dist/cli/commands/theme/duplicate.js +1 -1
  268. package/dist/cli/commands/theme/info.js +1 -1
  269. package/dist/cli/commands/theme/init.js +1 -1
  270. package/dist/cli/commands/theme/language-server.js +1 -1
  271. package/dist/cli/commands/theme/list.js +1 -1
  272. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  273. package/dist/cli/commands/theme/open.js +1 -1
  274. package/dist/cli/commands/theme/package.js +1 -1
  275. package/dist/cli/commands/theme/preview.js +1 -1
  276. package/dist/cli/commands/theme/profile.js +1 -1
  277. package/dist/cli/commands/theme/publish.js +1 -1
  278. package/dist/cli/commands/theme/pull.js +1 -1
  279. package/dist/cli/commands/theme/push.js +1 -1
  280. package/dist/cli/commands/theme/rename.js +1 -1
  281. package/dist/cli/commands/theme/share.js +1 -1
  282. package/dist/cli/commands/upgrade.js +1 -1
  283. package/dist/cli/commands/version.js +1 -1
  284. package/dist/cli/help.js +1 -1
  285. package/dist/{cli-version-check-V25AVSZ6.js → cli-version-check-BW2CUMX4.js} +1 -1
  286. package/dist/{command-json-schema-C5UZXP2W.js → command-json-schema-LGR44Q2G.js} +1 -1
  287. package/dist/command-registry.js +1 -1
  288. package/dist/{conf-store-OCGEEV4U.js → conf-store-TODPQ2LC.js} +1 -1
  289. package/dist/configs/all.yml +9 -0
  290. package/dist/configs/recommended.yml +9 -0
  291. package/dist/{custom-oclif-loader-ZVUKMRGH.js → custom-oclif-loader-BPE2TH4B.js} +1 -1
  292. package/dist/data/objects.json +204 -11
  293. package/dist/data/section.json +14 -0
  294. package/dist/data/setting.json +9 -5
  295. package/dist/data/shopify_system_translations.json +84 -21
  296. package/dist/{deprecations-A5AXXKIK.js → deprecations-5CSI24TV.js} +1 -1
  297. package/dist/dist-LPKYTX3M.js +1 -0
  298. package/dist/dist-WT6MPTKJ.js +1 -0
  299. package/dist/{environments-Y5JEI3U3.js → environments-3HTT5CVC.js} +1 -1
  300. package/dist/error-PFOKPWFX.js +1 -0
  301. package/dist/error-handler-23FASAEU.js +1 -0
  302. package/dist/{fs-UOOLPOHJ.js → fs-RA25PWSJ.js} +1 -1
  303. package/dist/hooks/did-you-mean.js +1 -1
  304. package/dist/hooks/hydrogen-init.js +1 -1
  305. package/dist/hooks/plugin-plugins.js +1 -1
  306. package/dist/hooks/postrun.js +1 -1
  307. package/dist/hooks/prerun.js +1 -1
  308. package/dist/hooks/public-metadata.js +1 -1
  309. package/dist/hooks/sensitive-metadata.js +1 -1
  310. package/dist/hooks/tunnel-provider.js +1 -1
  311. package/dist/hooks/tunnel-start.js +1 -1
  312. package/dist/http-EVDTYINS.js +1 -0
  313. package/dist/index.js +12 -12
  314. package/dist/{is-global-CI77T7NE.js → is-global-3DNAMKUU.js} +1 -1
  315. package/dist/{json-error-6PBUR4LQ.js → json-error-HGCRNJRF.js} +1 -1
  316. package/dist/{lib-4JVADMNT.js → lib-4ZA53LTZ.js} +1 -1
  317. package/dist/{lib-L4STV5B2.js → lib-F3MES3XF.js} +1 -1
  318. package/dist/{lib-LEEN55OD.js → lib-XPJABU24.js} +1 -1
  319. package/dist/{local-5NIWPWDS.js → local-LNGPIGLG.js} +1 -1
  320. package/dist/{metadata-IXPNNPNJ.js → metadata-VHLSUKCW.js} +1 -1
  321. package/dist/{node-package-manager-ALFEGGD6.js → node-package-manager-SSFNUVWB.js} +1 -1
  322. package/dist/notifications-system-3NQRYYKW.js +1 -0
  323. package/dist/{os-6TNQTEUN.js → os-KIKVJONE.js} +1 -1
  324. package/dist/{output-LEOB5LAM.js → output-DUJTSURG.js} +1 -1
  325. package/dist/{prettier-VLTY4MIE.js → prettier-NOE3TJJ5.js} +1 -1
  326. package/dist/{system-J4CTESP5.js → system-CGOZSROX.js} +1 -1
  327. package/dist/tsconfig.tsbuildinfo +1 -1
  328. package/dist/{ui-YDUI56E3.js → ui-YMBFS3NG.js} +1 -1
  329. package/dist/upgrade-73RRPDSC.js +1 -0
  330. package/dist/version-AMUEEBIG.js +1 -0
  331. package/dist/{version-2YL4YEQ2.js → version-S4MGCKDO.js} +1 -1
  332. package/dist/{workerd-5UPTEWNI.js → workerd-DRWNY3S4.js} +1 -1
  333. package/oclif.manifest.json +23 -62
  334. package/package.json +7 -7
  335. package/dist/analytics-QFDTQYPM.js +0 -1
  336. package/dist/analytics-XADBBHOH.js +0 -1
  337. package/dist/chunk-2BYW3BYX.js +0 -1
  338. package/dist/chunk-2PD7TNFS.js +0 -275
  339. package/dist/chunk-3Z75BVGJ.js +0 -1
  340. package/dist/chunk-4WBWZIN5.js +0 -6
  341. package/dist/chunk-62NW4EPI.js +0 -17
  342. package/dist/chunk-ALINJ6J2.js +0 -1
  343. package/dist/chunk-BFAOTQGH.js +0 -1
  344. package/dist/chunk-CIGWIKOW.js +0 -1
  345. package/dist/chunk-DXEMSLI6.js +0 -1
  346. package/dist/chunk-H4K3F7PP.js +0 -5
  347. package/dist/chunk-JGLLABZR.js +0 -8
  348. package/dist/chunk-JIY6XWSC.js +0 -1
  349. package/dist/chunk-LXIWMYM4.js +0 -1
  350. package/dist/chunk-MGX7UG44.js +0 -1
  351. package/dist/chunk-QGQWVA7N.js +0 -1
  352. package/dist/chunk-RSZAAN37.js +0 -1
  353. package/dist/chunk-SN3PMWUF.js +0 -6
  354. package/dist/chunk-TD6JBHUS.js +0 -1
  355. package/dist/chunk-TIM4CIXZ.js +0 -22
  356. package/dist/chunk-WNVOEE6T.js +0 -7
  357. package/dist/chunk-YOYPYB4H.js +0 -1
  358. package/dist/cli/commands/app/logs-next.js +0 -1
  359. package/dist/dist-NORLLIHQ.js +0 -1
  360. package/dist/dist-XBM4XZS4.js +0 -1
  361. package/dist/error-GI4DXVDU.js +0 -1
  362. package/dist/error-handler-BS2ZENQV.js +0 -1
  363. package/dist/http-2OXOS2AW.js +0 -1
  364. package/dist/notifications-system-FQW3GKH2.js +0 -1
  365. package/dist/upgrade-LBCZORG2.js +0 -1
  366. package/dist/version-X2CPQVWQ.js +0 -1
  367. /package/dist/{chunk-2S3FHQFS.js → chunk-HVECVOIO.js} +0 -0
@@ -1,3 +1,3 @@
1
- import{a as t,b as p,d as h}from"./chunk-WBJFTCEJ.js";import{p as f,v as c}from"./chunk-CZNUBAAG.js";import{b as d,c as l}from"./chunk-DMOLPSXF.js";import{i as a}from"./chunk-TD6JBHUS.js";import{zb as m}from"./chunk-ZMOW2YZ4.js";import{j as n}from"./chunk-3PYDIBTX.js";import{b as v}from"./chunk-AE3IQG7S.js";import{e as F,g as s}from"./chunk-VKWPEFWQ.js";s();var u=F(v(),1),i=class extends c{static jsonOutputSchema=t;static summary="Download metafields definitions from your shop into a local file.";static descriptionWithMarkdown=`Retrieves metafields from Shopify Admin.
1
+ import{a as t,b as p,d as h}from"./chunk-KORVOCNN.js";import{p as f,v as c}from"./chunk-VVHJ2AUF.js";import{b as d,c as l}from"./chunk-IKXUYCK7.js";import{j as a}from"./chunk-FJOVMEPN.js";import{zb as m}from"./chunk-OIQ5NQ5I.js";import{j as n}from"./chunk-3PYDIBTX.js";import{b as v}from"./chunk-VBPMVVLV.js";import{e as F,g as s}from"./chunk-VKWPEFWQ.js";s();var u=F(v(),1),i=class extends c{static jsonOutputSchema=t;static summary="Download metafields definitions from your shop into a local file.";static descriptionWithMarkdown=`Retrieves metafields from Shopify Admin.
2
2
 
3
3
  If the metafields file already exists, it will be overwritten.`;static description=this.descriptionForHelp();static flags={...d,...l,...f,force:u.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"})};static multiEnvironmentsFlags=null;async command(e,b,w=!1){let y={path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"]},o=await h(y);if(o.status==="failed"){let r=new a("Failed to fetch metafield definitions.","Check your connection and permissions, then try again.");throw r.details={failedOwnerTypes:o.failedOwnerTypes},r}return o.status==="downloaded"&&o.failedOwnerTypes.length>0&&(process.exitCode=1,e.json&&n({type:"diagnostic",level:"error",message:`Failed to fetch metafield definitions for: ${o.failedOwnerTypes.join(", ")}.`})),(!w||!e.json)&&p(o,e.json?"json":"text"),o}renderEnvironmentResults(e){m(t.encode({environments:e}))}};export{i as a};
@@ -1,4 +1,4 @@
1
- import{a as j}from"./chunk-RSZAAN37.js";import{a as D}from"./chunk-ASKBYEO7.js";import{E as u,F as _,P as L}from"./chunk-HMPRWNGG.js";import{b as $,c as P}from"./chunk-DMOLPSXF.js";import{y as R,z as A}from"./chunk-2KUM2RU4.js";import{a as S}from"./chunk-LG3KEHGD.js";import{i as a}from"./chunk-TD6JBHUS.js";import{Sa as O,ab as v,ta as E,va as N,zb as F}from"./chunk-ZMOW2YZ4.js";import{b as s}from"./chunk-3PYDIBTX.js";import{b as X}from"./chunk-AE3IQG7S.js";import{c as m,e as w,f,h as T,i as C}from"./chunk-IWTNUJGY.js";import{e as z,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();async function k({remoteApp:t,developerPlatformClient:e}){let n=await e.channelSpecExport(t);if(n.status===404)throw new a("The channel spec export endpoint is not available for this app.","Check that the app and organization are correct.");if(!n.ok){let r=typeof n.body?.reason=="string"?n.body.reason:void 0;if(n.status===426)throw new a(`Failed to fetch the channel spec export: ${r??"This version of the Shopify CLI is no longer supported."}`,"Upgrade the Shopify CLI and try again.");if(n.status===422)return{success:!1,reason:r??`http_${n.status}`};throw n.status===401||n.status===403?new a(`Failed to fetch the channel spec export: authentication failed (status ${n.status}).`,"Run `shopify auth logout` and try again."):new a(`Failed to fetch the channel spec export: the server responded with status ${n.status}.`,"Try again in a moment.")}let{handle:i,filename:p,toml:o,warnings:h}=n.body;if(typeof i!="string"||typeof p!="string"||typeof o!="string")throw new a("Failed to fetch the channel spec export: the response was missing required fields.");return{success:!0,handle:i,filename:p,toml:o,warnings:B(h)}}function B(t){return Array.isArray(t)?t.flatMap(e=>e&&typeof e=="object"&&typeof e.code=="string"&&typeof e.message=="string"?[e]:[]):[]}c();var M=s.object({code:s.string(),message:s.string()}).strict(),d=S({name:"ImportChannelConfigResult",schema:s.object({status:s.literal("success"),handle:s.string().min(1),filename:s.string().min(1),path:s.string().regex(/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/,"The path must be absolute.").describe("Absolute path of the written TOML file."),toml:s.string().describe("Native channel_config TOML content, unchanged from the export."),warnings:s.array(M).describe("Warnings returned with the channel spec export.")}).strict(),definitions:{ChannelSpecExportWarning:M}});var g=m("extensions","channel-config"),he=m(g,_),x="shopify.extension.toml",G=`name = "Channel config"
1
+ import{a as j}from"./chunk-R5COVIJM.js";import{a as D}from"./chunk-K4KKSBUW.js";import{E as u,F as _,P as L}from"./chunk-7FBOMPO5.js";import{b as $,c as P}from"./chunk-IKXUYCK7.js";import{y as R,z as A}from"./chunk-7A4ZE5IS.js";import{a as S}from"./chunk-LG3KEHGD.js";import{j as a}from"./chunk-FJOVMEPN.js";import{Sa as O,ab as v,ta as E,va as N,zb as F}from"./chunk-OIQ5NQ5I.js";import{b as s}from"./chunk-3PYDIBTX.js";import{b as X}from"./chunk-VBPMVVLV.js";import{c as m,e as w,f,h as T,i as C}from"./chunk-IWTNUJGY.js";import{e as z,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();async function k({remoteApp:t,developerPlatformClient:e}){let n=await e.channelSpecExport(t);if(n.status===404)throw new a("The channel spec export endpoint is not available for this app.","Check that the app and organization are correct.");if(!n.ok){let r=typeof n.body?.reason=="string"?n.body.reason:void 0;if(n.status===426)throw new a(`Failed to fetch the channel spec export: ${r??"This version of the Shopify CLI is no longer supported."}`,"Upgrade the Shopify CLI and try again.");if(n.status===422)return{success:!1,reason:r??`http_${n.status}`};throw n.status===401||n.status===403?new a(`Failed to fetch the channel spec export: authentication failed (status ${n.status}).`,"Run `shopify auth logout` and try again."):new a(`Failed to fetch the channel spec export: the server responded with status ${n.status}.`,"Try again in a moment.")}let{handle:i,filename:p,toml:o,warnings:h}=n.body;if(typeof i!="string"||typeof p!="string"||typeof o!="string")throw new a("Failed to fetch the channel spec export: the response was missing required fields.");return{success:!0,handle:i,filename:p,toml:o,warnings:B(h)}}function B(t){return Array.isArray(t)?t.flatMap(e=>e&&typeof e=="object"&&typeof e.code=="string"&&typeof e.message=="string"?[e]:[]):[]}c();var M=s.object({code:s.string(),message:s.string()}).strict(),d=S({name:"ImportChannelConfigResult",schema:s.object({status:s.literal("success"),handle:s.string().min(1),filename:s.string().min(1),path:s.string().regex(/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/,"The path must be absolute.").describe("Absolute path of the written TOML file."),toml:s.string().describe("Native channel_config TOML content, unchanged from the export."),warnings:s.array(M).describe("Warnings returned with the channel spec export.")}).strict(),definitions:{ChannelSpecExportWarning:M}});var g=m("extensions","channel-config"),he=m(g,_),x="shopify.extension.toml",G=`name = "Channel config"
2
2
  type = "${u}"
3
3
  handle = "channel-config"
4
4
  `,U=["extensions/*"],q={no_exportable_frozen_record:"This app doesn't have a channel spec that can be exported yet.",multiple_exportable_records:"This app has more than one channel spec, so it can't be exported automatically.",not_allowlisted:"This app isn't part of the channel spec export prototype yet.",contains_no_public_fields:"This app's channel spec has no public channel_config fields.",invalid_public_schema:"This app's channel spec doesn't match the public channel_config schema."};async function H(t){let{app:e,remoteApp:n,developerPlatformClient:i,force:p}=t,o=await k({remoteApp:n,developerPlatformClient:i});if(!o.success){let y=q[o.reason];throw y?new a(y):new a(`The channel spec for this app could not be exported (reason: ${o.reason}).`)}let{extensionDirectory:h,createExtension:r}=Z(e),l=w(h,_,C(o.filename));if(!p&&await O(l))throw new a(`A channel spec already exists at ${f(e.directory,l)}.`,"Re-run with `--force` to replace it.");let I=d.validate({status:"success",handle:o.handle,filename:C(o.filename),path:l,toml:o.toml,warnings:o.warnings.map(({code:y,message:Y})=>({code:y,message:Y}))});return await N(T(l)),r&&await E(m(h,x),G),await E(l,I.toml),{...I,extensionConfigurationPath:r?w(h,x):null}}function Z(t){let e=t.allExtensions.filter(r=>r.type===u);if(e.length>1){let r=e.map(l=>f(t.directory,l.directory)).join(", ");throw new a(`This app has more than one ${u} extension (${r}).`,"Only one is allowed. Remove the extras and try again.")}if(e.length===1)return{extensionDirectory:e[0].directory,createExtension:!1};let n=t.configuration.extension_directories,i=n&&n.length>0?n:U;if(!i.some(r=>v(`${g}/${x}`,`${r}/*.extension.toml`)))throw new a(`Your shopify.app.toml only loads extensions from ${i.join(", ")}, so a new extension at ${g} wouldn't be deployed.`,`Create a ${u} extension in one of those directories with a ${x} like:
@@ -1 +1 @@
1
- import{n as o}from"./chunk-HMPRWNGG.js";import{c as i,f as n}from"./chunk-JGLLABZR.js";import{j as r}from"./chunk-YYWSHRO2.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function m(S,e,c){await o(e,c.source);let t=await i(e);return t||n(),{variables:[{name:"SHOPIFY_API_KEY",value:e.apiKey,isSecret:!1},t?{name:"SHOPIFY_API_SECRET",value:t,isSecret:!0}:{name:"SHOPIFY_API_SECRET",isSecret:!0},{name:"SCOPES",value:r(S.configuration),isSecret:!1}]}}export{m as a};
1
+ import{n as o}from"./chunk-7FBOMPO5.js";import{c as i,h as n}from"./chunk-4KBOLN7Q.js";import{j as r}from"./chunk-4LJERO23.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function l(S,e,c){await o(e,c.source);let t=await i(e);return t||n(),{variables:[{name:"SHOPIFY_API_KEY",value:e.apiKey,isSecret:!1},t?{name:"SHOPIFY_API_SECRET",value:t,isSecret:!0}:{name:"SHOPIFY_API_SECRET",isSecret:!0},{name:"SCOPES",value:r(S.configuration),isSecret:!1}]}}export{l as a};
@@ -1,5 +1,5 @@
1
- import{a as V}from"./chunk-XWLNCBAG.js";import{a as K}from"./chunk-RSZAAN37.js";import{a as D}from"./chunk-ASKBYEO7.js";import{P as Y,n as M}from"./chunk-HMPRWNGG.js";import{c as W,f as $}from"./chunk-JGLLABZR.js";import{j as m}from"./chunk-YYWSHRO2.js";import{u as b}from"./chunk-OJOF6IYG.js";import{N as F,O}from"./chunk-YKDRUAY3.js";import{a as f}from"./chunk-JIY6XWSC.js";import{b as R,c as L}from"./chunk-DMOLPSXF.js";import{x as N}from"./chunk-2KUM2RU4.js";import{c as g}from"./chunk-H4K3F7PP.js";import{a as _}from"./chunk-LG3KEHGD.js";import{L as w,Lb as k,N as x,ub as T,zb as U}from"./chunk-ZMOW2YZ4.js";import{b as e}from"./chunk-3PYDIBTX.js";import{b as ae}from"./chunk-AE3IQG7S.js";import{f as u,i as P}from"./chunk-IWTNUJGY.js";import{e as se,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();var l=e.record(e.unknown()),S=e.object({id:e.string(),name:e.string(),continueOnError:e.boolean().optional()}),J=e.array(e.object({lifecycle:e.literal("deploy"),steps:e.array(e.discriminatedUnion("type",[S.extend({type:e.literal("include_assets"),config:e.object({generatesAssetsManifest:e.boolean().optional(),inclusions:e.array(e.discriminatedUnion("type",[e.object({type:e.literal("pattern"),baseDir:e.string().optional(),include:e.array(e.string()).optional(),ignore:e.array(e.string()).optional(),destination:e.string().optional()}),e.object({type:e.literal("static"),source:e.string(),destination:e.string().optional()}),e.object({type:e.literal("configKey"),key:e.string(),destination:e.string().optional(),anchor:e.string().optional(),groupBy:e.string().optional(),preserveFilePaths:e.boolean().optional()})]))})}),S.extend({type:e.literal("bundle_ui"),config:e.object({generatesAssetsManifest:e.boolean().optional(),bundleFolder:e.string().optional()}).optional()}),S.extend({type:e.enum(["build_theme","bundle_theme","build_function","create_tax_stub"]),config:e.record(e.never()).optional()})]))})),A=e.object({identifier:e.string(),externalIdentifier:e.string(),externalName:e.string(),group:e.string().optional(),additionalIdentifiers:e.array(e.string()),partnersWebIdentifier:e.string(),surface:e.string(),registrationLimit:e.number(),experience:e.enum(["extension","configuration"]),uidStrategy:e.enum(["single","dynamic","uuid"]),dependency:e.string().optional(),graphQLType:e.string().optional(),clientSteps:J.optional(),loadedRemoteSpecs:e.boolean().optional()}),v=e.object({name:e.string(),type:e.string(),externalType:e.string(),humanName:e.string(),surface:e.string(),features:e.array(e.string()),dependency:e.string().optional(),entrySourceFilePath:e.string(),devUUID:e.string(),localIdentifier:e.string(),idEnvironmentVariableName:e.string(),directory:e.string(),configuration:l,configurationPath:e.string(),outputPath:e.string(),handle:e.string(),specification:A,uid:e.string()}).passthrough(),q=e.object({directory:e.string(),configuration:l.optional()}).passthrough(),Q=e.object({file:e.string(),message:e.string()}).passthrough(),h=e.object({id:e.string(),title:e.string(),apiKey:e.string(),organizationId:e.string(),appType:e.string().optional(),newApp:e.boolean().optional(),grantedScopes:e.array(e.string()),developmentStorePreviewEnabled:e.boolean().optional(),applicationUrl:e.string().optional(),redirectUrlWhitelist:e.array(e.string()).optional(),requestedAccessScopes:e.array(e.string()).optional(),webhookApiVersion:e.string().optional(),embedded:e.boolean().optional(),posEmbedded:e.boolean().optional(),preferencesUrl:e.string().optional(),gdprWebhooks:e.object({customerDeletionUrl:e.string().optional(),customerDataRequestUrl:e.string().optional(),shopDeletionUrl:e.string().optional()}).optional(),appProxy:e.object({subPath:e.string(),subPathPrefix:e.string(),url:e.string()}).optional(),configuration:l.optional(),flags:e.array(e.string())}),B=e.object({path:e.string(),message:e.string()}),I=e.object({path:e.string(),content:l,errors:e.array(B)}),G=e.object({directory:e.string(),appConfigFiles:e.array(I),extensionConfigFiles:e.array(I),webConfigFiles:e.array(I),dotenvFiles:e.array(e.object({path:e.string()})),errors:e.array(B)}),X=e.object({cliVersion:e.string(),nodeVersion:e.string(),platform:e.string(),arch:e.string(),shell:e.string().optional()}),H=e.object({remoteApp:h,account:e.discriminatedUnion("type",[e.object({type:e.literal("UserAccount"),email:e.string()}),e.object({type:e.literal("ServiceAccount"),orgName:e.string()}),e.object({type:e.literal("UnknownAccount")})]),project:G,system:X,devStoreUrl:e.string().optional(),name:e.string(),idEnvironmentVariableName:e.literal("SHOPIFY_API_KEY"),directory:e.string(),configPath:e.string(),configuration:l,webs:e.array(q),dotenv:e.object({path:e.string(),variables:e.record(e.string())}).passthrough().optional(),errors:e.object({errors:e.array(Q)}).passthrough(),specifications:e.array(A),remoteFlags:e.array(e.string()),realExtensions:e.array(v),devApplicationURLs:l.optional(),_hiddenConfig:l,packageManager:e.string(),nodeDependencies:e.record(e.string()),usesWorkspaces:e.boolean(),organization:e.object({id:e.string(),businessName:e.string(),source:e.string()}),allExtensions:e.array(v)}).passthrough(),z=e.object({SHOPIFY_API_KEY:e.string(),SHOPIFY_API_SECRET:e.string().optional(),SCOPES:e.string()}),d=_({name:"AppInfoResult",schema:e.union([z,H]),definitions:{AppInfo:H,AppInfoRemoteApp:h,AppInfoProject:G,AppInfoSystem:X,AppInfoWebEnvironment:z,AppInfoExtension:v,AppInfoSpecification:A,AppInfoClientSteps:J,AppInfoWeb:q,AppInfoConfigurationError:Q}});async function ee(r,t,n,o,i){if(i.webEnv){await M(t,n.source);let a=await W(t);return a||$(),{SHOPIFY_API_KEY:t.apiKey,...a?{SHOPIFY_API_SECRET:a}:{},SCOPES:m(r.configuration)}}let s={...r,packageManager:o.packageManager,nodeDependencies:o.nodeDependencies,usesWorkspaces:o.usesWorkspaces,organization:{id:n.id,businessName:n.businessName,source:n.source},remoteApp:h.parse(t),account:await t.developerPlatformClient.accountInfo(),project:{directory:o.directory,appConfigFiles:o.appConfigFiles.map(E),extensionConfigFiles:o.extensionConfigFiles.map(E),webConfigFiles:o.webConfigFiles.map(E),dotenvFiles:[...o.dotenvFiles.values()].map(({path:a})=>({path:a})),errors:(o.errors??[]).map(({path:a,message:ie})=>({path:a,message:ie}))},system:{cliVersion:f,nodeVersion:process.version,...g(),shell:process.env.SHELL},devStoreUrl:r.configuration.build?.dev_store_url??r.hiddenConfig.dev_store_url,allExtensions:Z(r.allExtensions.filter(a=>a.isReturnedAsInfo())),realExtensions:Z(r.realExtensions),specifications:r.specifications.map(te)},p=JSON.parse(JSON.stringify(Object.fromEntries(Object.entries(s).filter(([a])=>a!=="configSchema"))));return d.validate(p)}function te(r){return{identifier:r.identifier,externalIdentifier:r.externalIdentifier,externalName:r.externalName,group:r.group,additionalIdentifiers:r.additionalIdentifiers,partnersWebIdentifier:r.partnersWebIdentifier,surface:r.surface,registrationLimit:r.registrationLimit,experience:r.experience,uidStrategy:r.uidStrategy,dependency:r.dependency,graphQLType:r.graphQLType,clientSteps:r.clientSteps,..."loadedRemoteSpecs"in r?{loadedRemoteSpecs:r.loadedRemoteSpecs}:{}}}function E({path:r,content:t,errors:n}){return{path:r,content:t,errors:n.map(({path:o,message:i})=>({path:o,message:i}))}}function Z(r){return r.map(t=>({...t,name:t.name,type:t.type,externalType:t.externalType,humanName:t.humanName,surface:t.surface,features:t.features,dependency:t.dependency,specification:te(t.specification)}))}c();async function pe(r){let{app:t,remoteApp:n,organization:o,project:i}=r,s=await n.developerPlatformClient.accountInfo();return new C(t,n,o,i,s).output()}async function oe(r){N({customSections:await pe(r)})}function ce(r,t){if(t==="json")return d.encode(r);if(!("name"in r))return V({variables:Object.entries(r).map(([n,o])=>({name:n,value:o}))});throw new Error("App information text output requires the loaded app context.")}function ne(r,t){U(ce(r,t))}var le="unknown",y={subdued:"Not yet configured"},ue="NOT LOADED",C=class{app;remoteApp;organization;project;account;constructor(t,n,o,i,s){this.app=t,this.remoteApp=n,this.organization=o,this.project=i,this.account=s}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let t=y;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(t=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let n=["User","unknown"],o=this.account;return O(o)?n=["Service account",o.orgName]:F(o)&&(n[1]=o.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:P(this.app.configPath)||b.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:y],["Client ID",this.remoteApp.apiKey||y],["Organization",`${this.organization.businessName} (${this.organization.id})`],["Access scopes",m(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??y],["Update URLs",t],n],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:T(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let t=this.webComponentsSection();return[{title:`
2
- Directory components`.toUpperCase(),body:""},...t?[t]:[],...this.extensionsSections()]}webComponentsSection(){let t=[],n=[];if(this.app.webs[0])return this.app.webs.forEach(o=>{if(o.configuration)if(o.configuration.name){let{name:i,roles:s}=o.configuration,p=u(this.app.directory,o.directory);n.push([` \u{1F4C2} ${i}`,{filePath:p||"/"}]),s.length>0&&n.push([" roles",s.join(", ")])}else o.configuration.roles.forEach(i=>{n.push([` \u{1F4C2} ${i}`,{filePath:u(this.app.directory,o.directory)}])});else n.push([{subdued:` \u{1F4C2} ${le}`},{filePath:u(this.app.directory,o.directory)}]);if(!this.app.errors.isEmpty()){let i=this.app.errors.getErrors(`${o.directory}/${b.web}`);t.push(...i.map(s=>s.message))}}),this.subtableSection("web",[["\u{1F4C2} web",""],...n,...t.map(o=>[{error:"error"},{error:this.formattedError(o)}])])}extensionsSections(){let t=this.app.allExtensions.filter(i=>i.isReturnedAsInfo()),o=x(t.map(i=>i.type)).map(i=>{let s=t.filter(p=>p.type===i);if(s[0])return this.subtableSection(s[0].externalType,s.flatMap(p=>this.extensionSubSection(p)))});return w(o)}extensionSubSection(t){let n=t.configuration,o=[[`\u{1F4C2} ${t.handle||ue}`,{filePath:u(this.app.directory,t.directory)}],[" config file",{filePath:u(t.directory,t.configurationPath)}]];n&&"metafields"in n&&Array.isArray(n.metafields)&&n.metafields.length>0&&o.push([" metafields",`${n.metafields.length}`]);let i=this.app.errors.getErrors(t.configurationPath);for(let s of i)o.push([{error:" error"},{error:this.formattedError(s.message)}]);return o}formattedError(t){let n=t.trim();if(k())return n;let[o,...i]=n.split(`
1
+ import{a as V}from"./chunk-OGBMFGYC.js";import{a as K}from"./chunk-R5COVIJM.js";import{a as D}from"./chunk-K4KKSBUW.js";import{P as Y,n as M}from"./chunk-7FBOMPO5.js";import{c as W,h as $}from"./chunk-4KBOLN7Q.js";import{j as m}from"./chunk-4LJERO23.js";import{u as b}from"./chunk-HEB4YYM6.js";import{N as F,O}from"./chunk-UORSJB4A.js";import{a as f}from"./chunk-EE72PCKT.js";import{b as k,c as L}from"./chunk-IKXUYCK7.js";import{x as N}from"./chunk-7A4ZE5IS.js";import{c as g}from"./chunk-RNF6T6IO.js";import{a as _}from"./chunk-LG3KEHGD.js";import{L as w,Lb as R,N as x,ub as T,zb as U}from"./chunk-OIQ5NQ5I.js";import{b as e}from"./chunk-3PYDIBTX.js";import{b as ae}from"./chunk-VBPMVVLV.js";import{f as u,i as P}from"./chunk-IWTNUJGY.js";import{e as se,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();var l=e.record(e.unknown()),S=e.object({id:e.string(),name:e.string(),continueOnError:e.boolean().optional()}),J=e.array(e.object({lifecycle:e.literal("deploy"),steps:e.array(e.discriminatedUnion("type",[S.extend({type:e.literal("include_assets"),config:e.object({generatesAssetsManifest:e.boolean().optional(),inclusions:e.array(e.discriminatedUnion("type",[e.object({type:e.literal("pattern"),baseDir:e.string().optional(),include:e.array(e.string()).optional(),ignore:e.array(e.string()).optional(),destination:e.string().optional()}),e.object({type:e.literal("static"),source:e.string(),destination:e.string().optional()}),e.object({type:e.literal("configKey"),key:e.string(),destination:e.string().optional(),anchor:e.string().optional(),groupBy:e.string().optional(),preserveFilePaths:e.boolean().optional()})]))})}),S.extend({type:e.literal("bundle_ui"),config:e.object({generatesAssetsManifest:e.boolean().optional(),bundleFolder:e.string().optional()}).optional()}),S.extend({type:e.enum(["build_theme","bundle_theme","build_function","create_tax_stub"]),config:e.record(e.never()).optional()})]))})),A=e.object({identifier:e.string(),externalIdentifier:e.string(),externalName:e.string(),group:e.string().optional(),additionalIdentifiers:e.array(e.string()),partnersWebIdentifier:e.string(),surface:e.string(),registrationLimit:e.number(),experience:e.enum(["extension","configuration"]),uidStrategy:e.enum(["single","dynamic","uuid"]),dependency:e.string().optional(),graphQLType:e.string().optional(),clientSteps:J.optional(),loadedRemoteSpecs:e.boolean().optional()}),v=e.object({name:e.string(),type:e.string(),externalType:e.string(),humanName:e.string(),surface:e.string(),features:e.array(e.string()),dependency:e.string().optional(),entrySourceFilePath:e.string(),devUUID:e.string(),localIdentifier:e.string(),idEnvironmentVariableName:e.string(),directory:e.string(),configuration:l,configurationPath:e.string(),outputPath:e.string(),handle:e.string(),specification:A,uid:e.string()}).passthrough(),q=e.object({directory:e.string(),configuration:l.optional()}).passthrough(),Q=e.object({file:e.string(),message:e.string()}).passthrough(),h=e.object({id:e.string(),title:e.string(),apiKey:e.string(),organizationId:e.string(),appType:e.string().optional(),newApp:e.boolean().optional(),grantedScopes:e.array(e.string()),developmentStorePreviewEnabled:e.boolean().optional(),applicationUrl:e.string().optional(),redirectUrlWhitelist:e.array(e.string()).optional(),requestedAccessScopes:e.array(e.string()).optional(),webhookApiVersion:e.string().optional(),embedded:e.boolean().optional(),posEmbedded:e.boolean().optional(),preferencesUrl:e.string().optional(),gdprWebhooks:e.object({customerDeletionUrl:e.string().optional(),customerDataRequestUrl:e.string().optional(),shopDeletionUrl:e.string().optional()}).optional(),appProxy:e.object({subPath:e.string(),subPathPrefix:e.string(),url:e.string()}).optional(),configuration:l.optional(),flags:e.array(e.string())}),B=e.object({path:e.string(),message:e.string()}),I=e.object({path:e.string(),content:l,errors:e.array(B)}),G=e.object({directory:e.string(),appConfigFiles:e.array(I),extensionConfigFiles:e.array(I),webConfigFiles:e.array(I),dotenvFiles:e.array(e.object({path:e.string()})),errors:e.array(B)}),X=e.object({cliVersion:e.string(),nodeVersion:e.string(),platform:e.string(),arch:e.string(),shell:e.string().optional()}),H=e.object({remoteApp:h,account:e.discriminatedUnion("type",[e.object({type:e.literal("UserAccount"),email:e.string()}),e.object({type:e.literal("ServiceAccount"),orgName:e.string()}),e.object({type:e.literal("UnknownAccount")})]),project:G,system:X,devStoreUrl:e.string().optional(),name:e.string(),idEnvironmentVariableName:e.literal("SHOPIFY_API_KEY"),directory:e.string(),configPath:e.string(),configuration:l,webs:e.array(q),dotenv:e.object({path:e.string(),variables:e.record(e.string())}).passthrough().optional(),errors:e.object({errors:e.array(Q)}).passthrough(),specifications:e.array(A),remoteFlags:e.array(e.string()),realExtensions:e.array(v),devApplicationURLs:l.optional(),_hiddenConfig:l,packageManager:e.string(),nodeDependencies:e.record(e.string()),usesWorkspaces:e.boolean(),organization:e.object({id:e.string(),businessName:e.string(),source:e.string()}),allExtensions:e.array(v)}).passthrough(),z=e.object({SHOPIFY_API_KEY:e.string(),SHOPIFY_API_SECRET:e.string().optional(),SCOPES:e.string()}),d=_({name:"AppInfoResult",schema:e.union([z,H]),definitions:{AppInfo:H,AppInfoRemoteApp:h,AppInfoProject:G,AppInfoSystem:X,AppInfoWebEnvironment:z,AppInfoExtension:v,AppInfoSpecification:A,AppInfoClientSteps:J,AppInfoWeb:q,AppInfoConfigurationError:Q}});async function ee(r,t,n,o,i){if(i.webEnv){await M(t,n.source);let a=await W(t);return a||$(),{SHOPIFY_API_KEY:t.apiKey,...a?{SHOPIFY_API_SECRET:a}:{},SCOPES:m(r.configuration)}}let s={...r,packageManager:o.packageManager,nodeDependencies:o.nodeDependencies,usesWorkspaces:o.usesWorkspaces,organization:{id:n.id,businessName:n.businessName,source:n.source},remoteApp:h.parse(t),account:await t.developerPlatformClient.accountInfo(),project:{directory:o.directory,appConfigFiles:o.appConfigFiles.map(E),extensionConfigFiles:o.extensionConfigFiles.map(E),webConfigFiles:o.webConfigFiles.map(E),dotenvFiles:[...o.dotenvFiles.values()].map(({path:a})=>({path:a})),errors:(o.errors??[]).map(({path:a,message:ie})=>({path:a,message:ie}))},system:{cliVersion:f,nodeVersion:process.version,...g(),shell:process.env.SHELL},devStoreUrl:r.configuration.build?.dev_store_url??r.hiddenConfig.dev_store_url,allExtensions:Z(r.allExtensions.filter(a=>a.isReturnedAsInfo())),realExtensions:Z(r.realExtensions),specifications:r.specifications.map(te)},p=JSON.parse(JSON.stringify(Object.fromEntries(Object.entries(s).filter(([a])=>a!=="configSchema"))));return d.validate(p)}function te(r){return{identifier:r.identifier,externalIdentifier:r.externalIdentifier,externalName:r.externalName,group:r.group,additionalIdentifiers:r.additionalIdentifiers,partnersWebIdentifier:r.partnersWebIdentifier,surface:r.surface,registrationLimit:r.registrationLimit,experience:r.experience,uidStrategy:r.uidStrategy,dependency:r.dependency,graphQLType:r.graphQLType,clientSteps:r.clientSteps,..."loadedRemoteSpecs"in r?{loadedRemoteSpecs:r.loadedRemoteSpecs}:{}}}function E({path:r,content:t,errors:n}){return{path:r,content:t,errors:n.map(({path:o,message:i})=>({path:o,message:i}))}}function Z(r){return r.map(t=>({...t,name:t.name,type:t.type,externalType:t.externalType,humanName:t.humanName,surface:t.surface,features:t.features,dependency:t.dependency,specification:te(t.specification)}))}c();async function pe(r){let{app:t,remoteApp:n,organization:o,project:i}=r,s=await n.developerPlatformClient.accountInfo();return new C(t,n,o,i,s).output()}async function oe(r){N({customSections:await pe(r)})}function ce(r,t){if(t==="json")return d.encode(r);if(!("name"in r))return V({variables:Object.entries(r).map(([n,o])=>({name:n,value:o}))});throw new Error("App information text output requires the loaded app context.")}function ne(r,t){U(ce(r,t))}var le="unknown",y={subdued:"Not yet configured"},ue="NOT LOADED",C=class{app;remoteApp;organization;project;account;constructor(t,n,o,i,s){this.app=t,this.remoteApp=n,this.organization=o,this.project=i,this.account=s}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let t=y;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(t=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let n=["User","unknown"],o=this.account;return O(o)?n=["Service account",o.orgName]:F(o)&&(n[1]=o.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:P(this.app.configPath)||b.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:y],["Client ID",this.remoteApp.apiKey||y],["Organization",`${this.organization.businessName} (${this.organization.id})`],["Access scopes",m(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??y],["Update URLs",t],n],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:T(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let t=this.webComponentsSection();return[{title:`
2
+ Directory components`.toUpperCase(),body:""},...t?[t]:[],...this.extensionsSections()]}webComponentsSection(){let t=[],n=[];if(this.app.webs[0])return this.app.webs.forEach(o=>{if(o.configuration)if(o.configuration.name){let{name:i,roles:s}=o.configuration,p=u(this.app.directory,o.directory);n.push([` \u{1F4C2} ${i}`,{filePath:p||"/"}]),s.length>0&&n.push([" roles",s.join(", ")])}else o.configuration.roles.forEach(i=>{n.push([` \u{1F4C2} ${i}`,{filePath:u(this.app.directory,o.directory)}])});else n.push([{subdued:` \u{1F4C2} ${le}`},{filePath:u(this.app.directory,o.directory)}]);if(!this.app.errors.isEmpty()){let i=this.app.errors.getErrors(`${o.directory}/${b.web}`);t.push(...i.map(s=>s.message))}}),this.subtableSection("web",[["\u{1F4C2} web",""],...n,...t.map(o=>[{error:"error"},{error:this.formattedError(o)}])])}extensionsSections(){let t=this.app.allExtensions.filter(i=>i.isReturnedAsInfo()),o=x(t.map(i=>i.type)).map(i=>{let s=t.filter(p=>p.type===i);if(s[0])return this.subtableSection(s[0].externalType,s.flatMap(p=>this.extensionSubSection(p)))});return w(o)}extensionSubSection(t){let n=t.configuration,o=[[`\u{1F4C2} ${t.handle||ue}`,{filePath:u(this.app.directory,t.directory)}],[" config file",{filePath:u(t.directory,t.configurationPath)}]];n&&"metafields"in n&&Array.isArray(n.metafields)&&n.metafields.length>0&&o.push([" metafields",`${n.metafields.length}`]);let i=this.app.errors.getErrors(t.configurationPath);for(let s of i)o.push([{error:" error"},{error:this.formattedError(s.message)}]);return o}formattedError(t){let n=t.trim();if(R())return n;let[o,...i]=n.split(`
3
3
  `);return[`! ${o}`,...i.map(s=>` ${s}`)].join(`
4
4
  `)}async systemInfoSection(){let{platform:t,arch:n}=g();return this.tableSection("Tooling and System",[["Shopify CLI",f],["Package manager",this.project.packageManager],["OS",`${t}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}tableSection(t,n,{isFirstItem:o=!1}={}){return{title:`${o?"":`
5
5
  `}${t.toUpperCase()}
@@ -8,4 +8,4 @@ Directory components`.toUpperCase(),body:""},...t?[t]:[],...this.extensionsSecti
8
8
  - The app and dev store that's used when you run the [dev](https://shopify.dev/docs/api/shopify-cli/app/app-dev) command. You can reset these configurations using [\`dev --reset\`](https://shopify.dev/docs/api/shopify-cli/app/app-dev#flags-propertydetail-reset).
9
9
  - The [structure](https://shopify.dev/docs/apps/tools/cli/structure) of your app project.
10
10
  - The [access scopes](https://shopify.dev/docs/api/usage) your app has requested.
11
- - System information, including the package manager and version of Shopify CLI used in the project.`;static jsonOutputSchema=d;static description=this.descriptionForHelp();static flags={...R,...D,...L,"web-env":re.Flags.boolean({hidden:!1,description:"Outputs environment variables necessary for running and deploying web/.",env:"SHOPIFY_FLAG_OUTPUT_WEB_ENV",default:!1})};async run(){let{flags:t}=await this.parse(r),{app:n,project:o,remoteApp:i,organization:s}=await Y({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0});if(t.json||t["web-env"]){let p=await ee(n,i,s,o,{webEnv:t["web-env"]});ne(p,t.json?"json":"text")}else await oe({app:n,remoteApp:i,organization:s,project:o});return n.errors.isEmpty()||process.exit(2),{app:n}}};export{j as a};
11
+ - System information, including the package manager and version of Shopify CLI used in the project.`;static jsonOutputSchema=d;static description=this.descriptionForHelp();static flags={...k,...D,...L,"web-env":re.Flags.boolean({hidden:!1,description:"Outputs environment variables necessary for running and deploying web/.",env:"SHOPIFY_FLAG_OUTPUT_WEB_ENV",default:!1})};async run(){let{flags:t}=await this.parse(r),{app:n,project:o,remoteApp:i,organization:s}=await Y({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0});if(t.json||t["web-env"]){let p=await ee(n,i,s,o,{webEnv:t["web-env"]});ne(p,t.json?"json":"text")}else await oe({app:n,remoteApp:i,organization:s,project:o});return n.errors.isEmpty()||process.exit(2),{app:n}}};export{j as a};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-3C72S6LO.js";import{b as a}from"./chunk-XEZPN5TR.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class extends a{static description="View the UI kit components that process async tasks";static hidden=!0;async run(){await o()}};export{t as a};
1
+ import{a as o}from"./chunk-KN2JIDNO.js";import{b as a}from"./chunk-PSREELSQ.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class extends a{static description="View the UI kit components that process async tasks";static hidden=!0;async run(){await o()}};export{t as a};
@@ -1 +1 @@
1
- import{a as k}from"./chunk-ZMU4EYXT.js";import{$ as c,C as A,J as v,K as D,Q as b,R as C,S as R,b as w,ba as j,ia as l,ja as p}from"./chunk-A2NSORBM.js";import{b as f}from"./chunk-XEZPN5TR.js";import{b as S,c as g}from"./chunk-DMOLPSXF.js";import{x as d,y}from"./chunk-2KUM2RU4.js";import{a as m}from"./chunk-LG3KEHGD.js";import{zb as h}from"./chunk-ZMOW2YZ4.js";import{b as o}from"./chunk-3PYDIBTX.js";import{b as T}from"./chunk-AE3IQG7S.js";import{e as J,g as i}from"./chunk-VKWPEFWQ.js";i();i();var W={cleanResults:v,cleanAllResults:D};async function n(t,e=W){return{removed:t.all?await e.cleanAllResults(t.appDirectory):await e.cleanResults(t.selection.appDirectory,b(t.selection))}}i();i();var x=o.object({directory:l().describe("The absolute app directory.")}).strict(),a=m({name:"AppSecurityCleanResult",schema:o.object({status:o.literal("success"),changed:o.boolean().describe("Whether any results directory was removed."),app:o.union([p,x]).describe("The selected app. With --all, only its directory."),resultsDirectories:o.array(l()).describe("The absolute paths of the removed results directories, sorted. Empty when there was nothing to remove.")}).strict(),definitions:{AppSecurityApp:p,AppSecurityCleanAllApp:x}});function O(t,e,s){if(s==="json"){h(a.encode(I(t,e)));return}if(t.removed.length===0){let r=e.all?e.appDirectory:e.selection.appDirectory;d({headline:"No app security check results to remove.",body:["Nothing was found in",{filePath:A(r)}]})}else y({headline:"App security check results removed.",body:{list:{items:t.removed.map(r=>({filePath:r}))}}})}function I(t,e){return{status:"success",changed:t.removed.length>0,app:e.all?{directory:c(e.appDirectory)}:j(e.selection),resultsDirectories:t.removed.map(c)}}var P=J(T(),1);var u=class t extends f{static summary="Remove local app security check results.";static descriptionWithMarkdown="Deletes the results directory, `.shopify/app-security/<results key>/`, without asking. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`. Other results directories are left alone. Prints each removed path.\n\nUse `--all` to delete every results directory under `.shopify/app-security/` instead. `--all` takes neither `--config` nor `--client-id`, and with `--without-app-config` it doesn't need `--client-id`.";static jsonOutputSchema=a;static description=this.descriptionForHelp();static flags={...S,...w,...g,all:P.Flags.boolean({description:"Delete every results directory under .shopify/app-security/, not only the selected one.",exclusive:["config","client-id"]})};async run(){let{flags:e}=await this.parse(t),s={path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"]},r=e.all?{all:!0,appDirectory:await C(s)}:{all:!1,selection:await R({...s,allowPrompts:!1})};r.all||await k(r.selection,e.path);let F=await n(r);O(F,r,e.json?"json":"text")}};export{u as a};
1
+ import{a as k}from"./chunk-43C32FUQ.js";import{$ as c,C as A,J as v,K as D,Q as b,R as C,S as R,b as w,ba as j,ia as l,ja as p}from"./chunk-NAQJMRPT.js";import{b as f}from"./chunk-PSREELSQ.js";import{b as S,c as g}from"./chunk-IKXUYCK7.js";import{x as d,y}from"./chunk-7A4ZE5IS.js";import{a as m}from"./chunk-LG3KEHGD.js";import{zb as h}from"./chunk-OIQ5NQ5I.js";import{b as o}from"./chunk-3PYDIBTX.js";import{b as T}from"./chunk-VBPMVVLV.js";import{e as J,g as i}from"./chunk-VKWPEFWQ.js";i();i();var W={cleanResults:v,cleanAllResults:D};async function n(t,e=W){return{removed:t.all?await e.cleanAllResults(t.appDirectory):await e.cleanResults(t.selection.appDirectory,b(t.selection))}}i();i();var x=o.object({directory:l().describe("The absolute app directory.")}).strict(),a=m({name:"AppSecurityCleanResult",schema:o.object({status:o.literal("success"),changed:o.boolean().describe("Whether any results directory was removed."),app:o.union([p,x]).describe("The selected app. With --all, only its directory."),resultsDirectories:o.array(l()).describe("The absolute paths of the removed results directories, sorted. Empty when there was nothing to remove.")}).strict(),definitions:{AppSecurityApp:p,AppSecurityCleanAllApp:x}});function O(t,e,s){if(s==="json"){h(a.encode(I(t,e)));return}if(t.removed.length===0){let r=e.all?e.appDirectory:e.selection.appDirectory;d({headline:"No app security check results to remove.",body:["Nothing was found in",{filePath:A(r)}]})}else y({headline:"App security check results removed.",body:{list:{items:t.removed.map(r=>({filePath:r}))}}})}function I(t,e){return{status:"success",changed:t.removed.length>0,app:e.all?{directory:c(e.appDirectory)}:j(e.selection),resultsDirectories:t.removed.map(c)}}var P=J(T(),1);var u=class t extends f{static summary="Remove local app security check results.";static descriptionWithMarkdown="Deletes the results directory, `.shopify/app-security/<results key>/`, without asking. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`. Other results directories are left alone. Prints each removed path.\n\nUse `--all` to delete every results directory under `.shopify/app-security/` instead. `--all` takes neither `--config` nor `--client-id`, and with `--without-app-config` it doesn't need `--client-id`.";static jsonOutputSchema=a;static description=this.descriptionForHelp();static flags={...S,...w,...g,all:P.Flags.boolean({description:"Delete every results directory under .shopify/app-security/, not only the selected one.",exclusive:["config","client-id"]})};async run(){let{flags:e}=await this.parse(t),s={path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"]},r=e.all?{all:!0,appDirectory:await C(s)}:{all:!1,selection:await R({...s,allowPrompts:!1})};r.all||await k(r.selection,e.path);let F=await n(r);O(F,r,e.json?"json":"text")}};export{u as a};
@@ -1 +1 @@
1
- import{k as M,l as h,r as y}from"./chunk-5534MHZW.js";import{H as w,x as O}from"./chunk-2KUM2RU4.js";import{i as d}from"./chunk-TD6JBHUS.js";import{vb as f,zb as S}from"./chunk-ZMOW2YZ4.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();function E(t){return t.map(L).join(" \xB7 ")}function x(t,r){if(r){S(M.encode({operations:t.map(h)}));return}O({headline:"Subscription migration operations.",body:t.map(L)})}function L(t){return`${t.id}: ${t.status} (${t.results.edges.length}/${t.total} settled)`}n();n();var C=1e3,F=new Set(["COMPLETED","FAILED","CANCELED"]);async function T({clientId:t,operationIds:r,getOperation:s=y,pollIntervalMs:p=C,sleep:m=$,onUpdate:c}){let u=new Map,g=new Map,l=!0,a=[...r];for(;a.length>0;){let e=await Promise.all(a.map(async o=>{let i=await s({clientId:t,operationId:o});if(!i)throw new d(`Migration operation not found: ${o}`);return{operationId:o,operation:i}})),A=e.some(({operationId:o,operation:i})=>g.get(o)!==JSON.stringify(i));for(let{operationId:o,operation:i}of e)u.set(o,i),g.set(o,JSON.stringify(i));if(c&&(l||A)){let o=r.map(i=>u.get(i));await c(o)}l=!1,a=e.filter(({operation:o})=>!F.has(o.status)).map(({operationId:o})=>o),a.length>0&&await m(p)}return r.map(e=>u.get(e))}async function $(t){await new Promise(r=>setTimeout(r,t))}async function v({clientId:t,operationIds:r,waitForOperations:s=T}){return w({title:f`Polling subscription migration operations`,task:p=>s({clientId:t,operationIds:r,onUpdate:m=>p(f`${E(m)}`)}),renderOptions:{stdout:process.stderr}})}export{x as a,v as b};
1
+ import{k as M,l as h,r as y}from"./chunk-6B5KM3A4.js";import{H as w,x as O}from"./chunk-7A4ZE5IS.js";import{j as d}from"./chunk-FJOVMEPN.js";import{vb as f,zb as S}from"./chunk-OIQ5NQ5I.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();function E(t){return t.map(L).join(" \xB7 ")}function x(t,r){if(r){S(M.encode({operations:t.map(h)}));return}O({headline:"Subscription migration operations.",body:t.map(L)})}function L(t){return`${t.id}: ${t.status} (${t.results.edges.length}/${t.total} settled)`}n();n();var C=1e3,F=new Set(["COMPLETED","FAILED","CANCELED"]);async function T({clientId:t,operationIds:r,getOperation:s=y,pollIntervalMs:p=C,sleep:m=$,onUpdate:c}){let u=new Map,g=new Map,l=!0,a=[...r];for(;a.length>0;){let e=await Promise.all(a.map(async o=>{let i=await s({clientId:t,operationId:o});if(!i)throw new d(`Migration operation not found: ${o}`);return{operationId:o,operation:i}})),A=e.some(({operationId:o,operation:i})=>g.get(o)!==JSON.stringify(i));for(let{operationId:o,operation:i}of e)u.set(o,i),g.set(o,JSON.stringify(i));if(c&&(l||A)){let o=r.map(i=>u.get(i));await c(o)}l=!1,a=e.filter(({operation:o})=>!F.has(o.status)).map(({operationId:o})=>o),a.length>0&&await m(p)}return r.map(e=>u.get(e))}async function $(t){await new Promise(r=>setTimeout(r,t))}async function v({clientId:t,operationIds:r,waitForOperations:s=T}){return w({title:f`Polling subscription migration operations`,task:p=>s({clientId:t,operationIds:r,onUpdate:m=>p(f`${E(m)}`)}),renderOptions:{stdout:process.stderr}})}export{x as a,v as b};
@@ -1 +1 @@
1
- import{$ as B}from"./chunk-YKDRUAY3.js";import{t as O}from"./chunk-2KUM2RU4.js";import{F as w,f as m}from"./chunk-ZMOW2YZ4.js";import{c as g,e as s,g as o}from"./chunk-VKWPEFWQ.js";var f=g((Q,c)=>{o();function j(r,e,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;){var u=r[a];e(n,u,t(u),r)}return n}c.exports=j});var A=g((S,h)=>{o();var l=O();function E(r,e,t,n){return l(r,function(a,i,u){e(n,a,t(a),u)}),n}h.exports=E});var p=g((U,q)=>{o();var G=f(),I=A(),V=w(),C=m();function D(r,e){return function(t,n){var a=C(t)?G:I,i=e?e():{};return a(t,r,V(n,2),i)}}q.exports=D});var x=g((X,v)=>{o();var F=B(),H=p(),J=Object.prototype,K=J.hasOwnProperty,L=H(function(r,e,t){K.call(r,t)?r[t].push(e):F(r,t,[e])});v.exports=L});var y=g((Z,b)=>{o();var M=p(),N=M(function(r,e,t){r[t?0:1].push(e)},function(){return[[],[]]});b.exports=N});o();var P=s(x()),d=s(y());function $(r,e){return(0,P.default)(r,e)}function k(r,e){return(0,d.default)(r,e)}export{$ as a,k as b};
1
+ import{$ as B}from"./chunk-UORSJB4A.js";import{t as O}from"./chunk-7A4ZE5IS.js";import{F as w,f as m}from"./chunk-OIQ5NQ5I.js";import{c as g,e as s,g as o}from"./chunk-VKWPEFWQ.js";var f=g((Q,c)=>{o();function j(r,e,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;){var u=r[a];e(n,u,t(u),r)}return n}c.exports=j});var A=g((S,h)=>{o();var l=O();function E(r,e,t,n){return l(r,function(a,i,u){e(n,a,t(a),u)}),n}h.exports=E});var p=g((U,q)=>{o();var G=f(),I=A(),V=w(),C=m();function D(r,e){return function(t,n){var a=C(t)?G:I,i=e?e():{};return a(t,r,V(n,2),i)}}q.exports=D});var x=g((X,v)=>{o();var F=B(),H=p(),J=Object.prototype,K=J.hasOwnProperty,L=H(function(r,e,t){K.call(r,t)?r[t].push(e):F(r,t,[e])});v.exports=L});var y=g((Z,b)=>{o();var M=p(),N=M(function(r,e,t){r[t?0:1].push(e)},function(){return[[],[]]});b.exports=N});o();var P=s(x()),d=s(y());function $(r,e){return(0,P.default)(r,e)}function k(r,e){return(0,d.default)(r,e)}export{$ as a,k as b};
@@ -1 +1 @@
1
- import{m as S,o as O,r as R}from"./chunk-WPDJVUTY.js";import{a as x}from"./chunk-7N7KRZOM.js";import{e as J}from"./chunk-7HECBXSP.js";import{p as E,v as j}from"./chunk-CZNUBAAG.js";import{Da as h,q as l}from"./chunk-YKDRUAY3.js";import{b as g,c as f}from"./chunk-DMOLPSXF.js";import{M as _,y as b,z as I}from"./chunk-2KUM2RU4.js";import{i as s}from"./chunk-TD6JBHUS.js";import{Ta as y,la as P,zb as w}from"./chunk-ZMOW2YZ4.js";import{b as p}from"./chunk-3PYDIBTX.js";import{b as N}from"./chunk-AE3IQG7S.js";import{e as H,g as n}from"./chunk-VKWPEFWQ.js";n();n();n();async function $({session:r,overridesContent:e,themeId:t}){h("theme-preview:create");let d=`${O(r)}/theme_preview.json?preview_theme_id=${t}`,i=await S(r,{headers:{"Content-Type":"application/json"}}),o=await l(d,{method:"POST",body:e,headers:i});if(!o.ok)throw new s(`Theme preview request failed with status ${o.status}: ${o.statusText}`);let m=await U(o);return h("theme-preview:create"),m}async function A({session:r,overridesContent:e,themeId:t,previewIdentifier:a}){h("theme-preview:update");let i=`${O(r)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(a)}`,o=await S(r,{headers:{"Content-Type":"application/json"}}),m=await l(i,{method:"POST",body:e,headers:o});if(!m.ok)throw new s(`Theme preview request failed with status ${m.status}: ${m.statusText}`);let v=await U(m);return h("theme-preview:update"),v}async function U(r){let e=await r.json();if(e.error)throw new s(`Theme preview failed: ${e.error}`);if(!e.url||!e.preview_identifier)throw new s("Theme preview returned an unexpected response");return{url:e.url,preview_identifier:e.preview_identifier}}async function L(r){if(!y(r.overrideJson))throw new s(`Override file not found: ${r.overrideJson}`);let e=await P(r.overrideJson),t;try{t=JSON.parse(e)}catch(i){let o=i instanceof Error?i.message:String(i);throw new s(`Failed to parse override file: ${r.overrideJson}`,o)}let a=await R(r.themeId,r.adminSession,r.password),d=JSON.stringify(t);return r.previewIdentifier?A({session:a,overridesContent:d,themeId:r.themeId,previewIdentifier:r.previewIdentifier}):$({session:a,overridesContent:d,themeId:r.themeId})}n();n();var C=p.object({id:p.string().min(1).describe("The opaque Storefront preview identifier, not a theme ID or Shopify GID."),url:p.string().url()}).strict(),u=J({name:"ThemePreviewResult",schema:p.object({status:p.literal("success"),preview:C}).strict(),definitions:{ThemePreview:C},project:r=>{let e=r;return{status:"success",preview:{id:e.preview_identifier,url:e.url}}}});function D(r,e,t){if(e==="json"){w(u.encode(r));return}b({body:[{list:{title:t?"Preview updated":"Preview is ready",items:[{link:{url:r.url}},`Preview ID: ${r.preview_identifier}`]}}]})}function T(r){let e="Failed to open theme preview.",t=r.stack??r.message;I({headline:e,body:t})}var c=H(N(),1);var F=class extends j{static jsonOutputSchema=u;static summary="Applies JSON overrides to a theme and returns a preview URL.";static descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";static description=this.descriptionForHelp();static flags={...g,...f,...E,theme:c.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),overrides:c.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES"}),"preview-id":c.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:c.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:c.Flags.boolean({...f.json,description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};static multiEnvironmentsFlags=["store","password","theme","overrides"];async command(e,t,a=!1){let d=await x(t,{filter:{theme:e.theme}}),i=await L({adminSession:t,overrideJson:e.overrides,themeId:d.id.toString(),previewIdentifier:e["preview-id"],password:e.password}),o=e.json?"json":"text";return e.open&&await _(i.url).catch(v=>T(v))===!1&&T(new Error(`Could not open the browser. Open this URL manually: ${i.url}`)),(!a||!e.json)&&D(i,o,!!e["preview-id"]),i}renderEnvironmentResults(e){w(u.encode({environments:e}))}validateCommandFlags(e){if(!e.theme||!e.overrides)throw new s("Specify both --theme and --overrides, either as flags or in an environment.")}requiredFlagsForSingleEnvironment(e){return super.requiredFlagsForSingleEnvironment(e).filter(t=>t!=="store")}};export{F as a};
1
+ import{m as S,o as O,r as R}from"./chunk-36S6MFJQ.js";import{a as x}from"./chunk-GQ3LY7BY.js";import{e as J}from"./chunk-7HECBXSP.js";import{p as E,v as j}from"./chunk-VVHJ2AUF.js";import{Ea as h,q as l}from"./chunk-UORSJB4A.js";import{b as g,c as f}from"./chunk-IKXUYCK7.js";import{M as _,y as b,z as I}from"./chunk-7A4ZE5IS.js";import{j as s}from"./chunk-FJOVMEPN.js";import{Ta as y,la as P,zb as w}from"./chunk-OIQ5NQ5I.js";import{b as p}from"./chunk-3PYDIBTX.js";import{b as N}from"./chunk-VBPMVVLV.js";import{e as H,g as n}from"./chunk-VKWPEFWQ.js";n();n();n();async function $({session:r,overridesContent:e,themeId:t}){h("theme-preview:create");let d=`${O(r)}/theme_preview.json?preview_theme_id=${t}`,i=await S(r,{headers:{"Content-Type":"application/json"}}),o=await l(d,{method:"POST",body:e,headers:i});if(!o.ok)throw new s(`Theme preview request failed with status ${o.status}: ${o.statusText}`);let m=await U(o);return h("theme-preview:create"),m}async function A({session:r,overridesContent:e,themeId:t,previewIdentifier:a}){h("theme-preview:update");let i=`${O(r)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(a)}`,o=await S(r,{headers:{"Content-Type":"application/json"}}),m=await l(i,{method:"POST",body:e,headers:o});if(!m.ok)throw new s(`Theme preview request failed with status ${m.status}: ${m.statusText}`);let v=await U(m);return h("theme-preview:update"),v}async function U(r){let e=await r.json();if(e.error)throw new s(`Theme preview failed: ${e.error}`);if(!e.url||!e.preview_identifier)throw new s("Theme preview returned an unexpected response");return{url:e.url,preview_identifier:e.preview_identifier}}async function L(r){if(!y(r.overrideJson))throw new s(`Override file not found: ${r.overrideJson}`);let e=await P(r.overrideJson),t;try{t=JSON.parse(e)}catch(i){let o=i instanceof Error?i.message:String(i);throw new s(`Failed to parse override file: ${r.overrideJson}`,o)}let a=await R(r.themeId,r.adminSession,r.password),d=JSON.stringify(t);return r.previewIdentifier?A({session:a,overridesContent:d,themeId:r.themeId,previewIdentifier:r.previewIdentifier}):$({session:a,overridesContent:d,themeId:r.themeId})}n();n();var C=p.object({id:p.string().min(1).describe("The opaque Storefront preview identifier, not a theme ID or Shopify GID."),url:p.string().url()}).strict(),u=J({name:"ThemePreviewResult",schema:p.object({status:p.literal("success"),preview:C}).strict(),definitions:{ThemePreview:C},project:r=>{let e=r;return{status:"success",preview:{id:e.preview_identifier,url:e.url}}}});function D(r,e,t){if(e==="json"){w(u.encode(r));return}b({body:[{list:{title:t?"Preview updated":"Preview is ready",items:[{link:{url:r.url}},`Preview ID: ${r.preview_identifier}`]}}]})}function T(r){let e="Failed to open theme preview.",t=r.stack??r.message;I({headline:e,body:t})}var c=H(N(),1);var F=class extends j{static jsonOutputSchema=u;static summary="Applies JSON overrides to a theme and returns a preview URL.";static descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";static description=this.descriptionForHelp();static flags={...g,...f,...E,theme:c.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),overrides:c.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES"}),"preview-id":c.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:c.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:c.Flags.boolean({...f.json,description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};static multiEnvironmentsFlags=["store","password","theme","overrides"];async command(e,t,a=!1){let d=await x(t,{filter:{theme:e.theme}}),i=await L({adminSession:t,overrideJson:e.overrides,themeId:d.id.toString(),previewIdentifier:e["preview-id"],password:e.password}),o=e.json?"json":"text";return e.open&&await _(i.url).catch(v=>T(v))===!1&&T(new Error(`Could not open the browser. Open this URL manually: ${i.url}`)),(!a||!e.json)&&D(i,o,!!e["preview-id"]),i}renderEnvironmentResults(e){w(u.encode({environments:e}))}validateCommandFlags(e){if(!e.theme||!e.overrides)throw new s("Specify both --theme and --overrides, either as flags or in an environment.")}requiredFlagsForSingleEnvironment(e){return super.requiredFlagsForSingleEnvironment(e).filter(t=>t!=="store")}};export{F as a};
@@ -1 +1 @@
1
- import{a as I,b as h,d as m}from"./chunk-T4ZOTYOY.js";import{m as f,n as L}from"./chunk-3FZ4LE6A.js";import{a as v}from"./chunk-JIY6XWSC.js";import{Eb as g}from"./chunk-ZMOW2YZ4.js";import{a as b}from"./chunk-O472FAYX.js";import{e as V,g as w}from"./chunk-VKWPEFWQ.js";w();var e=V(b(),1),S=300*1e3,$=3e3,K="@shopify/cli",o=`${new e.SemVer(v).major}.x`,y=new Map;function N(){return m(o)}async function D({includeCurrentMajor:n=!0}={}){try{let s=await I(),t=h(s,o),i=y.get(t);if(i)return i;let c=m(void 0,s),u=m(o,s);if(c&&(!n||u))return{latest:c,currentMajor:u};let l=L(`${t}-lookup-failure`);if(l&&Date.now()-l.timestamp<S)return{};let a=T(s).catch(()=>({})).finally(()=>{y.delete(t)});return y.set(t,a),a}catch{return g("Skipping the CLI version lookup after a registry or cache failure."),{}}}async function T(n){let s=h(n),t=h(n,o),i=`${t}-lookup-failure`;try{let[{fetch:c},{default:u}]=await Promise.all([import("./http-2OXOS2AW.js"),import("./registry-auth-token-EDH77OOW.js")]),l=new URL(encodeURIComponent(K).replace(/^%40/,"@"),n),a=u(n,{recursive:!0}),C={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};a&&(C.authorization=`${a.type} ${a.token}`);let k=await c(l.href,{headers:C,redirect:"error"},{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:$});if(!k.ok)throw new Error("The npm registry request failed.");let p=await k.json(),r=p["dist-tags"].latest;if(!r||!(0,e.valid)(r)||!p.versions[r])throw new Error("The npm registry did not return a stable latest CLI version.");let j=Object.keys(p.versions).filter(R=>!p.versions[R]?.deprecated),M=(0,e.satisfies)(r,o)?`${o} <=${r}`:o,d=(0,e.maxSatisfying)(j,M);if(!d)throw new Error("The npm registry did not return a stable CLI version in the current major.");return f(s,r),f(t,d),{latest:r,currentMajor:d}}catch{return g("Skipping the CLI version lookup after a registry or cache failure."),f(i,""),{}}}export{N as a,D as b};
1
+ import{a as I,b as h,d as m}from"./chunk-WB5GRBHW.js";import{m as f,n as L}from"./chunk-CE6XQDAG.js";import{a as v}from"./chunk-EE72PCKT.js";import{Eb as g}from"./chunk-OIQ5NQ5I.js";import{a as b}from"./chunk-O472FAYX.js";import{e as V,g as w}from"./chunk-VKWPEFWQ.js";w();var e=V(b(),1),S=300*1e3,$=3e3,K="@shopify/cli",o=`${new e.SemVer(v).major}.x`,y=new Map;function N(){return m(o)}async function D({includeCurrentMajor:n=!0}={}){try{let s=await I(),t=h(s,o),i=y.get(t);if(i)return i;let c=m(void 0,s),u=m(o,s);if(c&&(!n||u))return{latest:c,currentMajor:u};let l=L(`${t}-lookup-failure`);if(l&&Date.now()-l.timestamp<S)return{};let a=T(s).catch(()=>({})).finally(()=>{y.delete(t)});return y.set(t,a),a}catch{return g("Skipping the CLI version lookup after a registry or cache failure."),{}}}async function T(n){let s=h(n),t=h(n,o),i=`${t}-lookup-failure`;try{let[{fetch:c},{default:u}]=await Promise.all([import("./http-EVDTYINS.js"),import("./registry-auth-token-EDH77OOW.js")]),l=new URL(encodeURIComponent(K).replace(/^%40/,"@"),n),a=u(n,{recursive:!0}),C={accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"};a&&(C.authorization=`${a.type} ${a.token}`);let k=await c(l.href,{headers:C,redirect:"error"},{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:$});if(!k.ok)throw new Error("The npm registry request failed.");let p=await k.json(),r=p["dist-tags"].latest;if(!r||!(0,e.valid)(r)||!p.versions[r])throw new Error("The npm registry did not return a stable latest CLI version.");let j=Object.keys(p.versions).filter(R=>!p.versions[R]?.deprecated),M=(0,e.satisfies)(r,o)?`${o} <=${r}`:o,d=(0,e.maxSatisfying)(j,M);if(!d)throw new Error("The npm registry did not return a stable CLI version in the current major.");return f(s,r),f(t,d),{latest:r,currentMajor:d}}catch{return g("Skipping the CLI version lookup after a registry or cache failure."),f(i,""),{}}}export{N as a,D as b};
@@ -1,4 +1,4 @@
1
- import{d as le,h as pe,i as de,j as ce}from"./chunk-JG4FAT2T.js";import{a as ie,c as se,d as ae,e as re}from"./chunk-MGX7UG44.js";import{a as M}from"./chunk-ZNEPRGFY.js";import{b as D}from"./chunk-SBN3ILXO.js";import{a as oe}from"./chunk-RSZAAN37.js";import{a as q}from"./chunk-ASKBYEO7.js";import{P as ne,i as te}from"./chunk-HMPRWNGG.js";import{V as X,Z as ee,g as Z}from"./chunk-YYWSHRO2.js";import{a as Q}from"./chunk-HVUMVDUG.js";import{b as W,c as J}from"./chunk-DMOLPSXF.js";import{D as Y,G as z,L as K,w as N,x as G,y as T}from"./chunk-2KUM2RU4.js";import{a as U}from"./chunk-LG3KEHGD.js";import{d as $}from"./chunk-I3WRA2LH.js";import{i as y,k as E}from"./chunk-TD6JBHUS.js";import{Ba as V,Bb as R,Gb as k,L as B,ub as C,va as S,zb as H}from"./chunk-ZMOW2YZ4.js";import{b as d}from"./chunk-3PYDIBTX.js";import{b as Ie}from"./chunk-AE3IQG7S.js";import{c as _,h as j}from"./chunk-IWTNUJGY.js";import{e as Ee,g as m}from"./chunk-VKWPEFWQ.js";m();m();m();async function ue(e){let t,o;e.bundlePath&&(t=await re(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await ae(t,e.bundlePath));let n={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};t&&(n.bundleUrl=t),e.appModules.length>0&&(n.appModules=e.appModules);let i=await e.developerPlatformClient.deploy(n);if(!i.appDeploy.appVersion){let a=_e(i.appDeploy.userErrors??[],e.appModuleRegistrationIds,e.appModules,{version:e.version});throw new y({bold:"Version couldn't be created."},null,[],a)}return i.appDeploy.userErrors?.length>0&&(o=i.appDeploy.userErrors.map(a=>a.message).join(", ")||"The app version could not be released."),{validationErrors:i.appDeploy.appVersion.appModuleVersions.filter(a=>a.validationErrors.length>0).map(a=>({uuid:a.registrationUuid,errors:a.validationErrors})),versionGid:i.appDeploy.appVersion.uuid,versionTag:i.appDeploy.appVersion.versionTag,location:i.appDeploy.appVersion.location,message:i.appDeploy.appVersion.message,deployError:o}}var x=`
1
+ import{d as le,h as pe,i as de,j as ce}from"./chunk-V3H6SYK3.js";import{a as ie,c as se,d as ae,e as re}from"./chunk-G3DXNSA2.js";import{a as M}from"./chunk-ZNEPRGFY.js";import{b as D}from"./chunk-5TJJVSCI.js";import{a as oe}from"./chunk-R5COVIJM.js";import{a as q}from"./chunk-K4KKSBUW.js";import{P as ne,i as te}from"./chunk-7FBOMPO5.js";import{V as X,Z as ee,g as Z}from"./chunk-4LJERO23.js";import{a as Q}from"./chunk-U5BKU3OL.js";import{b as W,c as J}from"./chunk-IKXUYCK7.js";import{D as Y,G as z,L as K,w as N,x as G,y as T}from"./chunk-7A4ZE5IS.js";import{a as U}from"./chunk-LG3KEHGD.js";import{d as $}from"./chunk-HI5FTI3M.js";import{j as y,m as E}from"./chunk-FJOVMEPN.js";import{Ba as V,Bb as R,Gb as k,L as B,ub as C,va as S,zb as H}from"./chunk-OIQ5NQ5I.js";import{b as d}from"./chunk-3PYDIBTX.js";import{b as Ie}from"./chunk-VBPMVVLV.js";import{c as _,h as j}from"./chunk-IWTNUJGY.js";import{e as Ee,g as m}from"./chunk-VKWPEFWQ.js";m();m();m();async function ue(e){let t,o;e.bundlePath&&(t=await re(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await ae(t,e.bundlePath));let n={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};t&&(n.bundleUrl=t),e.appModules.length>0&&(n.appModules=e.appModules);let i=await e.developerPlatformClient.deploy(n);if(!i.appDeploy.appVersion){let a=_e(i.appDeploy.userErrors??[],e.appModuleRegistrationIds,e.appModules,{version:e.version});throw new y({bold:"Version couldn't be created."},null,[],a)}return i.appDeploy.userErrors?.length>0&&(o=i.appDeploy.userErrors.map(a=>a.message).join(", ")||"The app version could not be released."),{validationErrors:i.appDeploy.appVersion.appModuleVersions.filter(a=>a.validationErrors.length>0).map(a=>({uuid:a.registrationUuid,errors:a.validationErrors})),versionGid:i.appDeploy.appVersion.uuid,versionTag:i.appDeploy.appVersion.versionTag,location:i.appDeploy.appVersion.location,message:i.appDeploy.appVersion.message,deployError:o}}var x=`
2
2
  Validation errors`,O=`
3
3
  `;function _e(e,t,o,n={}){let i=l=>l.details?.some(v=>v.extension_id)??!1,s=(l,v)=>{let w=l.details?.find(F=>typeof F.extension_id<"u")?.extension_id??"";return Object.values(v).includes(w.toString())},a=l=>{let v=l.on?l.on[0]:void 0;return o.some(w=>w.uid===v?.user_identifier)},[c,u]=D(e,l=>a(l)),[h,p]=D(u,l=>i(l)),[g,r]=D(h,l=>s(l,t));return[...Se(p,{version:n.version}),...De(g,t),...Me(r),...Ae(c,o)]}function Se(e,t={}){return e.length>0?e.filter(o=>o.field&&o.field.includes("version_tag")&&o.message==="has already been taken").length>0&&t.version?[{body:["An app version with the name",{userInput:t.version},"already exists. Deploy again with a different version name."]}]:e.length===1?[{body:e[0]?.message??""}]:[{body:{list:{items:e.map(o=>o.message)}}}]:[]}function De(e,t){return e.reduce((o,n)=>{let i=(n.field??["unknown"]).join(".").replace("extension_points","extensions.targeting"),s=i==="base"?n.message:`${i}: ${n.message}`,a=n.details.find(r=>typeof r.extension_title<"u")?.extension_title,c=n.details.find(r=>typeof r.specification_identifier<"u")?.specification_identifier,u=n.details.find(r=>typeof r.extension_id<"u")?.extension_id?.toString(),p=Object.keys(t).find(r=>t[r]===u)??a;c==="webhook_subscription"&&(p="Webhook Subscription");let g=o.find(r=>r.title===p);if(g){let r=g.body,f=n.category==="invalid"?r.find(l=>l.list.title===x):r.find(l=>l.list.title===O);f?f.list.items.includes(s)||f.list.items.push(s):r.push({list:{title:n.category==="invalid"?x:O,items:[s]}})}else o.push({title:p,body:[{list:{title:n.category==="invalid"?x:O,items:[s]}}]});return o.forEach(r=>{r.body.sort((f,l)=>f.list.title===x?1:l.list.title===x?-1:0)}),o},[])}function Ae(e,t){return e.reduce((o,n)=>{let s=(n.on?n.on[0]:void 0)?.user_identifier,a=t.find(r=>r.uid===s),c=s?`Extension with uid: ${s}`:"Unknown Extension",u=a?.handle??c,p=`${(n.field??["unknown"]).join(".")}: ${n.message}`,g=o.find(r=>r.title===u);if(g){let f=g.body.find(l=>l.list.title===x);f&&(f.list.items.includes(p)||f.list.items.push(p))}else o.push({title:u,body:[{list:{title:x,items:[p]}}]});return o},[])}function Me(e){return e.reduce((t,o)=>{let n=o.details.find(s=>typeof s.extension_title<"u")?.extension_title,i=t.find(s=>s.title===n);return i?i.errorCount+=1:t.push({title:n,errorCount:1}),t},[]).map(t=>({title:t.title,body:`
4
4
  ${t.errorCount} error${t.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}m();async function me(e){let t=_(e.app.directory,".shopify","deploy-bundle");await V(t,{force:!0}),await S(t),await ie(e.appManifest,t),e.skipBuild||await Z(e.app);let o=e.app.allExtensions.map(i=>({prefix:i.localIdentifier,action:async(s,a,c)=>{await i.buildForBundle({stderr:a,stdout:s,signal:c,app:e.app,environment:"production",skipBuild:e.skipBuild},t)}}));if(await N({processes:o,showTimestamps:!1}),e.app.allExtensions.some(i=>i.hasDeploySteps))return await se(t,e.bundlePath),e.bundlePath}async function Te(e){let{app:t,remoteApp:o,developerPlatformClient:n,noRelease:i,allowUpdates:s,allowDeletes:a,extensions:c}=e,u=[i,s,a].some(Boolean),h=[`App can't be deployed until Partner Dashboard managed extensions are added to your version or removed from your app:
@@ -1 +1 @@
1
- import{e as s}from"./chunk-Z5QEXS6F.js";import{d as p}from"./chunk-JGLLABZR.js";import{Z as i}from"./chunk-YKDRUAY3.js";import{i as a}from"./chunk-TD6JBHUS.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();async function x(t,e){return i(e,t.apiKey,await p(t))}function S(t){let{organization:e,remoteApp:m,storeFqdn:u,version:o}=t,r=[`Organization: ${e.businessName}`,`App: ${m.title}`,`Store: ${u}`];return o&&r.push(`API version: ${o}`),r}function y(t,e){if(s(t)&&e.storeType!=="APP_DEVELOPMENT")throw new a("Mutations can only be executed on dev stores.")}export{x as a,S as b,y as c};
1
+ import{e as s}from"./chunk-NMXRDF4T.js";import{e as p}from"./chunk-4KBOLN7Q.js";import{Z as i}from"./chunk-UORSJB4A.js";import{j as a}from"./chunk-FJOVMEPN.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();async function x(t,e){return i(e,t.apiKey,await p(t))}function S(t){let{organization:e,remoteApp:m,storeFqdn:u,version:o}=t,r=[`Organization: ${e.businessName}`,`App: ${m.title}`,`Store: ${u}`];return o&&r.push(`API version: ${o}`),r}function y(t,e){if(s(t)&&e.storeType!=="APP_DEVELOPMENT")throw new a("Mutations can only be executed on dev stores.")}export{x as a,S as b,y as c};
@@ -1,4 +1,4 @@
1
- import{a as I,b as M}from"./chunk-ZNEPRGFY.js";import{a as A}from"./chunk-ASKBYEO7.js";import{e as u}from"./chunk-HMPRWNGG.js";import{f as p}from"./chunk-YKDRUAY3.js";import{b as O,c as y,f as E}from"./chunk-DMOLPSXF.js";import{a as c}from"./chunk-LG3KEHGD.js";import{b as t}from"./chunk-3PYDIBTX.js";import{b as w}from"./chunk-AE3IQG7S.js";import{e as H,g as n}from"./chunk-VKWPEFWQ.js";n();n();var k=["HONOR_BILLING_PRICE","PLAN_PRICE"],W=["OPT_OUT","WHEN_REQUIRED"],D=["UNSCHEDULED","SCHEDULED","MIGRATED"];var r=H(w(),1);var m={...O,...A,...y},K={watch:r.Flags.boolean({description:"Display the current operation state while polling, then output the final outcome when every operation reaches a terminal status.",env:"SHOPIFY_FLAG_WATCH",default:!1})},B={watch:r.Flags.boolean({description:"Display the current operation state while polling, then output the final state when every operation reaches a terminal status.",env:"SHOPIFY_FLAG_WATCH",default:!1})},et={...m,status:r.Flags.option({description:"Filter subscriptions by migration status.",env:"SHOPIFY_FLAG_STATUS",options:[...D]})()},it={...m,input:r.Flags.string({char:"i",description:"Path to the migration CSV. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),force:E(r.Flags.boolean({char:"f",description:"Skip confirmation.",env:"SHOPIFY_FLAG_FORCE",default:!1})),...K},q={...m,id:r.Flags.string({description:"The app subscription migration operation ID. Can be specified multiple times.",env:"SHOPIFY_FLAG_ID",required:!0,multiple:!0})},nt={...q,...B};n();var l=t.string().regex(/^gid:\/\/shopify\/AppSubscriptionMigrationOperation\/[^/]+$/).describe("The Shopify AppSubscriptionMigrationOperation GID."),F=t.string().regex(/^gid:\/\/shopify\/Shop\/\d+$/).describe("The Shopify Shop GID."),o=t.object({gid:l,status:t.string().min(1).describe("Upstream status: RUNNING, COMPLETED, FAILED, or CANCELED."),total:t.number().int().nonnegative(),results:t.array(t.object({shopGid:F,code:t.string().min(1).describe("The upstream per-shop migration result code.")}).strict())}).strict(),g=t.object({message:t.string(),fieldPath:t.array(t.string()).nullable()}).strict(),C=t.discriminatedUnion("status",[t.object({status:t.literal("success"),operationGid:l,operation:o}).strict(),t.object({status:t.literal("failed"),operationGid:l,operation:o.nullable(),error:t.union([I.extend({details:t.object({userErrors:t.array(g)}).strict()}),M])}).strict()]),pt=c({name:"MigrationCancellationResult",schema:t.object({status:t.enum(["success","partial"]),operations:t.array(C)}).strict(),definitions:{MigrationCancellationOutcome:C,MigrationOperation:o,MigrationUserError:g}}),b=t.string().datetime().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/),Y=t.string().date(),N=t.object({amount:t.string().regex(/^-?\d+(?:\.\d+)?$/),currencyCode:t.string().regex(/^[A-Z]{3}$/)}).strict(),R=t.object({kind:t.string().describe("Known values: NONE, OPT_OUT, WHEN_REQUIRED."),optOutDeadline:b.nullable(),sentAt:b.nullable()}).strict(),P=t.object({shopGid:F,status:t.string().describe("Known values: UNSCHEDULED, SCHEDULED, MIGRATED."),manualSubscriptionName:t.string().nullable(),manualSubscriptionPrice:N.nullable(),manualSubscriptionInterval:t.string().describe("Known values: EVERY_30_DAYS, ANNUAL."),targetPlanHandle:t.string().nullable(),notification:R.nullable(),priceBehavior:t.string().nullable().describe("Known values: HONOR_BILLING_PRICE, PLAN_PRICE."),effectiveDate:t.union([Y,b]).nullable().describe("The upstream calendar date or whole-second UTC instant; date-only values retain their format."),lastFailureReason:t.string().nullable().describe("Known values: SUPERSEDED, SCHEDULING_FAILED.")}).strict().describe("All subscription projection fields are present; unavailable values are null."),ut=c({name:"MigrationListResult",schema:t.object({subscriptions:t.array(P).describe("The complete list across every fetched page.")}).strict(),definitions:{MigratableSubscription:P,MigratableSubscriptionPrice:N,MigratableSubscriptionNotification:R}}),T=t.object({batchIndex:t.number().int().nonnegative(),batchPayloadDigest:t.string().min(1),operation:o}).strict(),v=t.discriminatedUnion("type",[t.object({type:t.literal("submission"),batchIndex:t.number().int().nonnegative(),userErrors:t.array(g)}).strict(),t.object({type:t.literal("operations"),operationGids:t.array(l)}).strict()]);function x(){return{clientId:t.string().min(1).describe("The app client ID, not a Shopify GID."),action:t.enum(["schedule","unschedule"]),inputDigest:t.string().min(1),total:t.number().int().nonnegative(),operations:t.array(T)}}var lt=c({name:"MigrationSubmissionResult",schema:t.discriminatedUnion("status",[t.object({status:t.literal("success"),changed:t.boolean(),...x()}).strict(),t.object({status:t.literal("partial"),changed:t.boolean(),...x(),failure:v}).strict(),t.object({status:t.literal("cancelled"),changed:t.literal(!1),action:t.enum(["schedule","unschedule"]),reason:t.string()}).strict()]),definitions:{SubmittedMigrationOperation:T,MigrationOperation:o,MigrationSubmissionFailure:v,MigrationUserError:g}}),gt=c({name:"MigrationStatusResult",schema:t.object({operations:t.array(o)}).strict(),definitions:{MigrationOperation:o}});n();function J(e){return{gid:e.id,status:e.status,total:e.total,results:e.results.edges.map(({node:i})=>({shopGid:i.shopId,code:i.code}))}}function Q(e){return e.map(({message:i,field:a})=>({message:i,fieldPath:a}))}function bt(e){return{shopGid:e.shopId,status:e.status,manualSubscriptionName:e.manualSubscriptionName,manualSubscriptionPrice:e.manualSubscriptionPrice===null?null:{amount:e.manualSubscriptionPrice.amount,currencyCode:e.manualSubscriptionPrice.currencyCode},manualSubscriptionInterval:e.manualSubscriptionInterval,targetPlanHandle:e.targetPlanHandle,notification:e.notification===null?null:{kind:e.notification.kind,optOutDeadline:S(e.notification.optOutDeadline),sentAt:S(e.notification.sentAt)},priceBehavior:e.priceBehavior,effectiveDate:e.effectiveDate===null||/^\d{4}-\d{2}-\d{2}$/.test(e.effectiveDate)?e.effectiveDate:S(e.effectiveDate),lastFailureReason:e.lastFailureReason}}function S(e){return e===null?null:new Date(e).toISOString().replace(/\.\d{3}Z$/,"Z")}function St(e){if(e.status==="cancelled")return e;let i={changed:e.submission.operations.length>0,clientId:e.submission.clientId,action:e.submission.action,inputDigest:e.submission.inputDigest,total:e.submission.total,operations:e.submission.operations.map(({batchIndex:a,batchPayloadDigest:s,operation:f})=>({batchIndex:a,batchPayloadDigest:s,operation:J(f)}))};return e.status==="success"?{status:"success",...i}:{status:"partial",...i,failure:e.failure.type==="submission"?{type:e.failure.type,batchIndex:e.failure.batchIndex,userErrors:Q(e.failure.userErrors)}:{type:e.failure.type,operationGids:e.failure.operationIds}}}n();n();var _=p`
1
+ import{a as I,b as M}from"./chunk-ZNEPRGFY.js";import{a as A}from"./chunk-K4KKSBUW.js";import{e as u}from"./chunk-7FBOMPO5.js";import{f as p}from"./chunk-UORSJB4A.js";import{b as O,c as y,f as E}from"./chunk-IKXUYCK7.js";import{a as c}from"./chunk-LG3KEHGD.js";import{b as t}from"./chunk-3PYDIBTX.js";import{b as w}from"./chunk-VBPMVVLV.js";import{e as H,g as n}from"./chunk-VKWPEFWQ.js";n();n();var k=["HONOR_BILLING_PRICE","PLAN_PRICE"],W=["OPT_OUT","WHEN_REQUIRED"],D=["UNSCHEDULED","SCHEDULED","MIGRATED"];var r=H(w(),1);var m={...O,...A,...y},K={watch:r.Flags.boolean({description:"Display the current operation state while polling, then output the final outcome when every operation reaches a terminal status.",env:"SHOPIFY_FLAG_WATCH",default:!1})},B={watch:r.Flags.boolean({description:"Display the current operation state while polling, then output the final state when every operation reaches a terminal status.",env:"SHOPIFY_FLAG_WATCH",default:!1})},et={...m,status:r.Flags.option({description:"Filter subscriptions by migration status.",env:"SHOPIFY_FLAG_STATUS",options:[...D]})()},it={...m,input:r.Flags.string({char:"i",description:"Path to the migration CSV. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),force:E(r.Flags.boolean({char:"f",description:"Skip confirmation.",env:"SHOPIFY_FLAG_FORCE",default:!1})),...K},q={...m,id:r.Flags.string({description:"The app subscription migration operation ID. Can be specified multiple times.",env:"SHOPIFY_FLAG_ID",required:!0,multiple:!0})},nt={...q,...B};n();var l=t.string().regex(/^gid:\/\/shopify\/AppSubscriptionMigrationOperation\/[^/]+$/).describe("The Shopify AppSubscriptionMigrationOperation GID."),F=t.string().regex(/^gid:\/\/shopify\/Shop\/\d+$/).describe("The Shopify Shop GID."),o=t.object({gid:l,status:t.string().min(1).describe("Upstream status: RUNNING, COMPLETED, FAILED, or CANCELED."),total:t.number().int().nonnegative(),results:t.array(t.object({shopGid:F,code:t.string().min(1).describe("The upstream per-shop migration result code.")}).strict())}).strict(),g=t.object({message:t.string(),fieldPath:t.array(t.string()).nullable()}).strict(),C=t.discriminatedUnion("status",[t.object({status:t.literal("success"),operationGid:l,operation:o}).strict(),t.object({status:t.literal("failed"),operationGid:l,operation:o.nullable(),error:t.union([I.extend({details:t.object({userErrors:t.array(g)}).strict()}),M])}).strict()]),pt=c({name:"MigrationCancellationResult",schema:t.object({status:t.enum(["success","partial"]),operations:t.array(C)}).strict(),definitions:{MigrationCancellationOutcome:C,MigrationOperation:o,MigrationUserError:g}}),b=t.string().datetime().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/),Y=t.string().date(),N=t.object({amount:t.string().regex(/^-?\d+(?:\.\d+)?$/),currencyCode:t.string().regex(/^[A-Z]{3}$/)}).strict(),R=t.object({kind:t.string().describe("Known values: NONE, OPT_OUT, WHEN_REQUIRED."),optOutDeadline:b.nullable(),sentAt:b.nullable()}).strict(),P=t.object({shopGid:F,status:t.string().describe("Known values: UNSCHEDULED, SCHEDULED, MIGRATED."),manualSubscriptionName:t.string().nullable(),manualSubscriptionPrice:N.nullable(),manualSubscriptionInterval:t.string().describe("Known values: EVERY_30_DAYS, ANNUAL."),targetPlanHandle:t.string().nullable(),notification:R.nullable(),priceBehavior:t.string().nullable().describe("Known values: HONOR_BILLING_PRICE, PLAN_PRICE."),effectiveDate:t.union([Y,b]).nullable().describe("The upstream calendar date or whole-second UTC instant; date-only values retain their format."),lastFailureReason:t.string().nullable().describe("Known values: SUPERSEDED, SCHEDULING_FAILED.")}).strict().describe("All subscription projection fields are present; unavailable values are null."),ut=c({name:"MigrationListResult",schema:t.object({subscriptions:t.array(P).describe("The complete list across every fetched page.")}).strict(),definitions:{MigratableSubscription:P,MigratableSubscriptionPrice:N,MigratableSubscriptionNotification:R}}),T=t.object({batchIndex:t.number().int().nonnegative(),batchPayloadDigest:t.string().min(1),operation:o}).strict(),v=t.discriminatedUnion("type",[t.object({type:t.literal("submission"),batchIndex:t.number().int().nonnegative(),userErrors:t.array(g)}).strict(),t.object({type:t.literal("operations"),operationGids:t.array(l)}).strict()]);function x(){return{clientId:t.string().min(1).describe("The app client ID, not a Shopify GID."),action:t.enum(["schedule","unschedule"]),inputDigest:t.string().min(1),total:t.number().int().nonnegative(),operations:t.array(T)}}var lt=c({name:"MigrationSubmissionResult",schema:t.discriminatedUnion("status",[t.object({status:t.literal("success"),changed:t.boolean(),...x()}).strict(),t.object({status:t.literal("partial"),changed:t.boolean(),...x(),failure:v}).strict(),t.object({status:t.literal("cancelled"),changed:t.literal(!1),action:t.enum(["schedule","unschedule"]),reason:t.string()}).strict()]),definitions:{SubmittedMigrationOperation:T,MigrationOperation:o,MigrationSubmissionFailure:v,MigrationUserError:g}}),gt=c({name:"MigrationStatusResult",schema:t.object({operations:t.array(o)}).strict(),definitions:{MigrationOperation:o}});n();function J(e){return{gid:e.id,status:e.status,total:e.total,results:e.results.edges.map(({node:i})=>({shopGid:i.shopId,code:i.code}))}}function Q(e){return e.map(({message:i,field:a})=>({message:i,fieldPath:a}))}function bt(e){return{shopGid:e.shopId,status:e.status,manualSubscriptionName:e.manualSubscriptionName,manualSubscriptionPrice:e.manualSubscriptionPrice===null?null:{amount:e.manualSubscriptionPrice.amount,currencyCode:e.manualSubscriptionPrice.currencyCode},manualSubscriptionInterval:e.manualSubscriptionInterval,targetPlanHandle:e.targetPlanHandle,notification:e.notification===null?null:{kind:e.notification.kind,optOutDeadline:S(e.notification.optOutDeadline),sentAt:S(e.notification.sentAt)},priceBehavior:e.priceBehavior,effectiveDate:e.effectiveDate===null||/^\d{4}-\d{2}-\d{2}$/.test(e.effectiveDate)?e.effectiveDate:S(e.effectiveDate),lastFailureReason:e.lastFailureReason}}function S(e){return e===null?null:new Date(e).toISOString().replace(/\.\d{3}Z$/,"Z")}function St(e){if(e.status==="cancelled")return e;let i={changed:e.submission.operations.length>0,clientId:e.submission.clientId,action:e.submission.action,inputDigest:e.submission.inputDigest,total:e.submission.total,operations:e.submission.operations.map(({batchIndex:a,batchPayloadDigest:s,operation:f})=>({batchIndex:a,batchPayloadDigest:s,operation:J(f)}))};return e.status==="success"?{status:"success",...i}:{status:"partial",...i,failure:e.failure.type==="submission"?{type:e.failure.type,batchIndex:e.failure.batchIndex,userErrors:Q(e.failure.userErrors)}:{type:e.failure.type,operationGids:e.failure.operationIds}}}n();n();var _=p`
2
2
  query MigratableAppSubscriptions(
3
3
  $apiKey: String!
4
4
  $first: Int!
@@ -1 +1 @@
1
- import{a as b}from"./chunk-RSZAAN37.js";import{a as O}from"./chunk-ASKBYEO7.js";import{G as R,H as l,I as x,N as j,O as v,P as F}from"./chunk-HMPRWNGG.js";import{b as A,c as S}from"./chunk-DMOLPSXF.js";import{y as P}from"./chunk-2KUM2RU4.js";import{a as y}from"./chunk-LG3KEHGD.js";import{i as k}from"./chunk-TD6JBHUS.js";import{zb as w}from"./chunk-ZMOW2YZ4.js";import{e as C,i as p}from"./chunk-IWTNUJGY.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function m(i){let{directory:t,configName:n,configPath:s,configuration:a,remoteApp:e}=i;if(!a.client_id)throw new k("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=e.developerPlatformClient,d=await R({developerPlatformClient:c,app:e}),g=e.flags,N={directory:t,configName:n,developerPlatformClient:c,apiKey:a.client_id},f=await j(N,d,g,e.apiKey),h=p(s),L=await v({remoteApp:e,developerPlatformClient:c,specifications:d,flags:g,configFileName:h,appDirectory:f.appDirectory??t,localAppOptions:f});return x({path:C(f.appDirectory??t,h),appName:L.name,app:e})}o();var r=y({name:"AppConfigPullResult",schema:l.schema,definitions:l.definitions});o();function J(i,t){if(t==="json"){w(r.encode(i));return}P({headline:`Pulled latest configuration for "${i.app.name}"`,body:`Updated ${p(i.path)} with the remote data.`})}var u=class i extends b{static summary="Refresh an already-linked app configuration without prompts.";static descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";static jsonOutputSchema=r;static description=this.descriptionForHelp();static flags={...A,...S,...O};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:s}=await F({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),a=await m({directory:t.path,configName:t.config,configPath:n.configPath,configuration:n.configuration,remoteApp:s});return J(a,t.json?"json":"text"),{app:n}}};export{u as a};
1
+ import{a as b}from"./chunk-R5COVIJM.js";import{a as O}from"./chunk-K4KKSBUW.js";import{G as R,H as l,I as x,N as j,O as v,P as F}from"./chunk-7FBOMPO5.js";import{b as A,c as S}from"./chunk-IKXUYCK7.js";import{y as P}from"./chunk-7A4ZE5IS.js";import{a as y}from"./chunk-LG3KEHGD.js";import{j as k}from"./chunk-FJOVMEPN.js";import{zb as w}from"./chunk-OIQ5NQ5I.js";import{e as C,i as p}from"./chunk-IWTNUJGY.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function m(i){let{directory:t,configName:n,configPath:s,configuration:a,remoteApp:e}=i;if(!a.client_id)throw new k("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=e.developerPlatformClient,d=await R({developerPlatformClient:c,app:e}),g=e.flags,N={directory:t,configName:n,developerPlatformClient:c,apiKey:a.client_id},f=await j(N,d,g,e.apiKey),h=p(s),L=await v({remoteApp:e,developerPlatformClient:c,specifications:d,flags:g,configFileName:h,appDirectory:f.appDirectory??t,localAppOptions:f});return x({path:C(f.appDirectory??t,h),appName:L.name,app:e})}o();var r=y({name:"AppConfigPullResult",schema:l.schema,definitions:l.definitions});o();function J(i,t){if(t==="json"){w(r.encode(i));return}P({headline:`Pulled latest configuration for "${i.app.name}"`,body:`Updated ${p(i.path)} with the remote data.`})}var u=class i extends b{static summary="Refresh an already-linked app configuration without prompts.";static descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one.";static jsonOutputSchema=r;static description=this.descriptionForHelp();static flags={...A,...S,...O};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:s}=await F({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),a=await m({directory:t.path,configName:t.config,configPath:n.configPath,configuration:n.configuration,remoteApp:s});return J(a,t.json?"json":"text"),{app:n}}};export{u as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-PSREELSQ.js";import{Ca as r}from"./chunk-UORSJB4A.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static hidden=!0;async run(){await r()}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as In,b as C0,c as m0,d as ZI,f as KA,g as vd,h as KB,i as Go,j as d0,k as pR,l as Cs,m as IR,n as p0,o as QR,p as hR}from"./chunk-7Y7AZRL3.js";import{a as B0,c as xg}from"./chunk-H4K3F7PP.js";import{a as dR}from"./chunk-5HBIIYSK.js";import{a as mR}from"./chunk-7UNQOKZW.js";import{d as yd}from"./chunk-QBRRFFMZ.js";import{f as Mg}from"./chunk-I3WRA2LH.js";import{i as ms,j as qB,k as h0,l as y0,p as S0}from"./chunk-TD6JBHUS.js";import{a as Sd}from"./chunk-AY3AAV77.js";import{Bb as Dd,C as fR,E as gR,Eb as Tg,F as ER,Fb as R0,H as BR,J as CR,Kb as bl,Lb as Ti,T as f0,a as nR,db as Ug,eb as g0,f as lR,fb as zc,hb as XI,jb as E0,l as uR,m as iR,qb as I0,rb as Q0,t as jI,tb as D0,u as oR,vb as VI,y as rR,z as sR}from"./chunk-ZMOW2YZ4.js";import{e as aR,g as cR,h as YB,i as $e}from"./chunk-B4OMIONW.js";import{j as To,k as Hg}from"./chunk-3PYDIBTX.js";import{g as FB,o as v0}from"./chunk-DOLVBTCB.js";import{b as FI}from"./chunk-QGQWVA7N.js";import{a as qI}from"./chunk-JD5P5RAJ.js";import{e as r0,p as s0}from"./chunk-IWTNUJGY.js";import{a as AR}from"./chunk-JFBCE4HN.js";import{a as c0,c as je,e as yt,g as R}from"./chunk-VKWPEFWQ.js";var F0=je(ge=>{"use strict";R();var $I=Symbol.for("react.transitional.element"),TR=Symbol.for("react.portal"),GR=Symbol.for("react.fragment"),bR=Symbol.for("react.strict_mode"),OR=Symbol.for("react.profiler"),wR=Symbol.for("react.consumer"),_R=Symbol.for("react.context"),zR=Symbol.for("react.forward_ref"),LR=Symbol.for("react.suspense"),JR=Symbol.for("react.memo"),z0=Symbol.for("react.lazy"),YR=Symbol.for("react.activity"),b0=Symbol.iterator;function KR(a){return a===null||typeof a!="object"?null:(a=b0&&a[b0]||a["@@iterator"],typeof a=="function"?a:null)}var L0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J0=Object.assign,Y0={};function bg(a,i,c){this.props=a,this.context=i,this.refs=Y0,this.updater=c||L0}bg.prototype.isReactComponent={};bg.prototype.setState=function(a,i){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,i,"setState")};bg.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function K0(){}K0.prototype=bg.prototype;function tQ(a,i,c){this.props=a,this.context=i,this.refs=Y0,this.updater=c||L0}var eQ=tQ.prototype=new K0;eQ.constructor=tQ;J0(eQ,bg.prototype);eQ.isPureReactComponent=!0;var O0=Array.isArray;function PI(){}var DA={H:null,A:null,T:null,S:null},q0=Object.prototype.hasOwnProperty;function AQ(a,i,c){var g=c.ref;return{$$typeof:$I,type:a,key:i,ref:g!==void 0?g:null,props:c}}function qR(a,i){return AQ(a.type,i,a.props)}function nQ(a){return typeof a=="object"&&a!==null&&a.$$typeof===$I}function FR(a){var i={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return i[c]})}var w0=/\/+/g;function WI(a,i){return typeof a=="object"&&a!==null&&a.key!=null?FR(""+a.key):i.toString(36)}function jR(a){switch(a.status){case"fulfilled":return a.value;case"rejected":throw a.reason;default:switch(typeof a.status=="string"?a.then(PI,PI):(a.status="pending",a.then(function(i){a.status==="pending"&&(a.status="fulfilled",a.value=i)},function(i){a.status==="pending"&&(a.status="rejected",a.reason=i)})),a.status){case"fulfilled":return a.value;case"rejected":throw a.reason}}throw a}function Gg(a,i,c,g,B){var d=typeof a;(d==="undefined"||d==="boolean")&&(a=null);var p=!1;if(a===null)p=!0;else switch(d){case"bigint":case"string":case"number":p=!0;break;case"object":switch(a.$$typeof){case $I:case TR:p=!0;break;case z0:return p=a._init,Gg(p(a._payload),i,c,g,B)}}if(p)return B=B(a),p=g===""?"."+WI(a,0):g,O0(B)?(c="",p!=null&&(c=p.replace(w0,"$&/")+"/"),Gg(B,i,c,"",function(H){return H})):B!=null&&(nQ(B)&&(B=qR(B,c+(B.key==null||a&&a.key===B.key?"":(""+B.key).replace(w0,"$&/")+"/")+p)),i.push(B)),1;p=0;var y=g===""?".":g+":";if(O0(a))for(var Q=0;Q<a.length;Q++)g=a[Q],d=y+WI(g,Q),p+=Gg(g,i,c,d,B);else if(Q=KR(a),typeof Q=="function")for(a=Q.call(a),Q=0;!(g=a.next()).done;)g=g.value,d=y+WI(g,Q++),p+=Gg(g,i,c,d,B);else if(d==="object"){if(typeof a.then=="function")return Gg(jR(a),i,c,g,B);throw i=String(a),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return p}function Nd(a,i,c){if(a==null)return a;var g=[],B=0;return Gg(a,g,"","",function(d){return i.call(c,d,B++)}),g}function XR(a){if(a._status===-1){var i=a._result;i=i(),i.then(function(c){(a._status===0||a._status===-1)&&(a._status=1,a._result=c)},function(c){(a._status===0||a._status===-1)&&(a._status=2,a._result=c)}),a._status===-1&&(a._status=0,a._result=i)}if(a._status===1)return a._result.default;throw a._result}var _0=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},ZR={map:Nd,forEach:function(a,i,c){Nd(a,function(){i.apply(this,arguments)},c)},count:function(a){var i=0;return Nd(a,function(){i++}),i},toArray:function(a){return Nd(a,function(i){return i})||[]},only:function(a){if(!nQ(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};ge.Activity=YR;ge.Children=ZR;ge.Component=bg;ge.Fragment=GR;ge.Profiler=OR;ge.PureComponent=tQ;ge.StrictMode=bR;ge.Suspense=LR;ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=DA;ge.__COMPILER_RUNTIME={__proto__:null,c:function(a){return DA.H.useMemoCache(a)}};ge.cache=function(a){return function(){return a.apply(null,arguments)}};ge.cacheSignal=function(){return null};ge.cloneElement=function(a,i,c){if(a==null)throw Error("The argument must be a React element, but you passed "+a+".");var g=J0({},a.props),B=a.key;if(i!=null)for(d in i.key!==void 0&&(B=""+i.key),i)!q0.call(i,d)||d==="key"||d==="__self"||d==="__source"||d==="ref"&&i.ref===void 0||(g[d]=i[d]);var d=arguments.length-2;if(d===1)g.children=c;else if(1<d){for(var p=Array(d),y=0;y<d;y++)p[y]=arguments[y+2];g.children=p}return AQ(a.type,B,g)};ge.createContext=function(a){return a={$$typeof:_R,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null},a.Provider=a,a.Consumer={$$typeof:wR,_context:a},a};ge.createElement=function(a,i,c){var g,B={},d=null;if(i!=null)for(g in i.key!==void 0&&(d=""+i.key),i)q0.call(i,g)&&g!=="key"&&g!=="__self"&&g!=="__source"&&(B[g]=i[g]);var p=arguments.length-2;if(p===1)B.children=c;else if(1<p){for(var y=Array(p),Q=0;Q<p;Q++)y[Q]=arguments[Q+2];B.children=y}if(a&&a.defaultProps)for(g in p=a.defaultProps,p)B[g]===void 0&&(B[g]=p[g]);return AQ(a,d,B)};ge.createRef=function(){return{current:null}};ge.forwardRef=function(a){return{$$typeof:zR,render:a}};ge.isValidElement=nQ;ge.lazy=function(a){return{$$typeof:z0,_payload:{_status:-1,_result:a},_init:XR}};ge.memo=function(a,i){return{$$typeof:JR,type:a,compare:i===void 0?null:i}};ge.startTransition=function(a){var i=DA.T,c={};DA.T=c;try{var g=a(),B=DA.S;B!==null&&B(c,g),typeof g=="object"&&g!==null&&typeof g.then=="function"&&g.then(PI,_0)}catch(d){_0(d)}finally{i!==null&&c.types!==null&&(i.types=c.types),DA.T=i}};ge.unstable_useCacheRefresh=function(){return DA.H.useCacheRefresh()};ge.use=function(a){return DA.H.use(a)};ge.useActionState=function(a,i,c){return DA.H.useActionState(a,i,c)};ge.useCallback=function(a,i){return DA.H.useCallback(a,i)};ge.useContext=function(a){return DA.H.useContext(a)};ge.useDebugValue=function(){};ge.useDeferredValue=function(a,i){return DA.H.useDeferredValue(a,i)};ge.useEffect=function(a,i){return DA.H.useEffect(a,i)};ge.useEffectEvent=function(a){return DA.H.useEffectEvent(a)};ge.useId=function(){return DA.H.useId()};ge.useImperativeHandle=function(a,i,c){return DA.H.useImperativeHandle(a,i,c)};ge.useInsertionEffect=function(a,i){return DA.H.useInsertionEffect(a,i)};ge.useLayoutEffect=function(a,i){return DA.H.useLayoutEffect(a,i)};ge.useMemo=function(a,i){return DA.H.useMemo(a,i)};ge.useOptimistic=function(a,i){return DA.H.useOptimistic(a,i)};ge.useReducer=function(a,i,c){return DA.H.useReducer(a,i,c)};ge.useRef=function(a){return DA.H.useRef(a)};ge.useState=function(a){return DA.H.useState(a)};ge.useSyncExternalStore=function(a,i,c){return DA.H.useSyncExternalStore(a,i,c)};ge.useTransition=function(){return DA.H.useTransition()};ge.version="19.2.4"});var j0=je((ie,Ud)=>{"use strict";R();process.env.NODE_ENV!=="production"&&(function(){function a(h,J){Object.defineProperty(g.prototype,h,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",J[0],J[1])}})}function i(h){return h===null||typeof h!="object"?null:(h=xe&&h[xe]||h["@@iterator"],typeof h=="function"?h:null)}function c(h,J){h=(h=h.constructor)&&(h.displayName||h.name)||"ReactClass";var lt=h+"."+J;Gt[lt]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",J,h),Gt[lt]=!0)}function g(h,J,lt){this.props=h,this.context=J,this.refs=Kt,this.updater=lt||ne}function B(){}function d(h,J,lt){this.props=h,this.context=J,this.refs=Kt,this.updater=lt||ne}function p(){}function y(h){return""+h}function Q(h){try{y(h);var J=!1}catch{J=!0}if(J){J=console;var lt=J.error,Bt=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return lt.call(J,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Bt),y(h)}}function H(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===XA?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case Ee:return"Fragment";case On:return"Profiler";case qA:return"StrictMode";case rA:return"Suspense";case wa:return"SuspenseList";case le:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case _t:return"Portal";case FA:return h.displayName||"Context";case An:return(h._context.displayName||"Context")+".Consumer";case jA:var J=h.render;return h=h.displayName,h||(h=J.displayName||J.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case wn:return J=h.displayName||null,J!==null?J:H(h.type)||"Memo";case lA:J=h._payload,h=h._init;try{return H(h(J))}catch{}}return null}function x(h){if(h===Ee)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===lA)return"<...>";try{var J=H(h);return J?"<"+J+">":"<...>"}catch{return"<...>"}}function q(){var h=Yt.A;return h===null?null:h.getOwner()}function N(){return Error("react-stack-top-frame")}function _(h){if(rn.call(h,"key")){var J=Object.getOwnPropertyDescriptor(h,"key").get;if(J&&J.isReactWarning)return!1}return h.key!==void 0}function F(h,J){function lt(){RA||(RA=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",J))}lt.isReactWarning=!0,Object.defineProperty(h,"key",{get:lt,configurable:!0})}function W(){var h=H(this.type);return Qa[h]||(Qa[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function z(h,J,lt,Bt,Rt,kt){var qt=lt.ref;return h={$$typeof:xt,type:h,key:J,props:lt,_owner:Bt},(qt!==void 0?qt:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:W}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Rt}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:kt}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function ht(h,J){return J=z(h.type,J,h.props,h._owner,h._debugStack,h._debugTask),h._store&&(J._store.validated=h._store.validated),J}function pt(h){rt(h)?h._store&&(h._store.validated=1):typeof h=="object"&&h!==null&&h.$$typeof===lA&&(h._payload.status==="fulfilled"?rt(h._payload.value)&&h._payload.value._store&&(h._payload.value._store.validated=1):h._store&&(h._store.validated=1))}function rt(h){return typeof h=="object"&&h!==null&&h.$$typeof===xt}function It(h){var J={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(lt){return J[lt]})}function wt(h,J){return typeof h=="object"&&h!==null&&h.key!=null?(Q(h.key),It(""+h.key)):J.toString(36)}function Ae(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(p,p):(h.status="pending",h.then(function(J){h.status==="pending"&&(h.status="fulfilled",h.value=J)},function(J){h.status==="pending"&&(h.status="rejected",h.reason=J)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function Vt(h,J,lt,Bt,Rt){var kt=typeof h;(kt==="undefined"||kt==="boolean")&&(h=null);var qt=!1;if(h===null)qt=!0;else switch(kt){case"bigint":case"string":case"number":qt=!0;break;case"object":switch(h.$$typeof){case xt:case _t:qt=!0;break;case lA:return qt=h._init,Vt(qt(h._payload),J,lt,Bt,Rt)}}if(qt){qt=h,Rt=Rt(qt);var De=Bt===""?"."+wt(qt,0):Bt;return gA(Rt)?(lt="",De!=null&&(lt=De.replace(zl,"$&/")+"/"),Vt(Rt,J,lt,"",function(ZA){return ZA})):Rt!=null&&(rt(Rt)&&(Rt.key!=null&&(qt&&qt.key===Rt.key||Q(Rt.key)),lt=ht(Rt,lt+(Rt.key==null||qt&&qt.key===Rt.key?"":(""+Rt.key).replace(zl,"$&/")+"/")+De),Bt!==""&&qt!=null&&rt(qt)&&qt.key==null&&qt._store&&!qt._store.validated&&(lt._store.validated=2),Rt=lt),J.push(Rt)),1}if(qt=0,De=Bt===""?".":Bt+":",gA(h))for(var ue=0;ue<h.length;ue++)Bt=h[ue],kt=De+wt(Bt,ue),qt+=Vt(Bt,J,lt,kt,Rt);else if(ue=i(h),typeof ue=="function")for(ue===h.entries&&(ha||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ha=!0),h=ue.call(h),ue=0;!(Bt=h.next()).done;)Bt=Bt.value,kt=De+wt(Bt,ue++),qt+=Vt(Bt,J,lt,kt,Rt);else if(kt==="object"){if(typeof h.then=="function")return Vt(Ae(h),J,lt,Bt,Rt);throw J=String(h),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return qt}function Qt(h,J,lt){if(h==null)return h;var Bt=[],Rt=0;return Vt(h,Bt,"","",function(kt){return J.call(lt,kt,Rt++)}),Bt}function Ct(h){if(h._status===-1){var J=h._ioInfo;J!=null&&(J.start=J.end=performance.now()),J=h._result;var lt=J();if(lt.then(function(Rt){if(h._status===0||h._status===-1){h._status=1,h._result=Rt;var kt=h._ioInfo;kt!=null&&(kt.end=performance.now()),lt.status===void 0&&(lt.status="fulfilled",lt.value=Rt)}},function(Rt){if(h._status===0||h._status===-1){h._status=2,h._result=Rt;var kt=h._ioInfo;kt!=null&&(kt.end=performance.now()),lt.status===void 0&&(lt.status="rejected",lt.reason=Rt)}}),J=h._ioInfo,J!=null){J.value=lt;var Bt=lt.displayName;typeof Bt=="string"&&(J.name=Bt)}h._status===-1&&(h._status=0,h._result=lt)}if(h._status===1)return J=h._result,J===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ import{a as In,b as C0,c as m0,d as ZI,f as KA,g as vd,h as KB,i as Go,j as d0,k as pR,l as Cs,m as IR,n as p0,o as QR,p as hR}from"./chunk-7Y7AZRL3.js";import{a as B0,c as xg}from"./chunk-RNF6T6IO.js";import{a as dR}from"./chunk-5HBIIYSK.js";import{a as mR}from"./chunk-7UNQOKZW.js";import{d as yd}from"./chunk-QBRRFFMZ.js";import{f as Mg}from"./chunk-HI5FTI3M.js";import{j as ms,l as qB,m as h0,n as y0,r as S0}from"./chunk-FJOVMEPN.js";import{a as Sd}from"./chunk-2IXP3IPE.js";import{Bb as Dd,C as fR,E as gR,Eb as Tg,F as ER,Fb as R0,H as BR,J as CR,Kb as bl,Lb as Ti,T as f0,a as nR,db as Ug,eb as g0,f as lR,fb as zc,hb as XI,jb as E0,l as uR,m as iR,qb as I0,rb as Q0,t as jI,tb as D0,u as oR,vb as VI,y as rR,z as sR}from"./chunk-OIQ5NQ5I.js";import{e as aR,g as cR,h as YB,i as $e}from"./chunk-B4OMIONW.js";import{j as To,k as Hg}from"./chunk-3PYDIBTX.js";import{g as FB,o as v0}from"./chunk-A5BSUUNQ.js";import{b as FI}from"./chunk-4AWVU2OV.js";import{a as qI}from"./chunk-JD5P5RAJ.js";import{e as r0,p as s0}from"./chunk-IWTNUJGY.js";import{a as AR}from"./chunk-JFBCE4HN.js";import{a as c0,c as je,e as yt,g as R}from"./chunk-VKWPEFWQ.js";var F0=je(ge=>{"use strict";R();var $I=Symbol.for("react.transitional.element"),TR=Symbol.for("react.portal"),GR=Symbol.for("react.fragment"),bR=Symbol.for("react.strict_mode"),OR=Symbol.for("react.profiler"),wR=Symbol.for("react.consumer"),_R=Symbol.for("react.context"),zR=Symbol.for("react.forward_ref"),LR=Symbol.for("react.suspense"),JR=Symbol.for("react.memo"),z0=Symbol.for("react.lazy"),YR=Symbol.for("react.activity"),b0=Symbol.iterator;function KR(a){return a===null||typeof a!="object"?null:(a=b0&&a[b0]||a["@@iterator"],typeof a=="function"?a:null)}var L0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J0=Object.assign,Y0={};function bg(a,i,c){this.props=a,this.context=i,this.refs=Y0,this.updater=c||L0}bg.prototype.isReactComponent={};bg.prototype.setState=function(a,i){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,i,"setState")};bg.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function K0(){}K0.prototype=bg.prototype;function tQ(a,i,c){this.props=a,this.context=i,this.refs=Y0,this.updater=c||L0}var eQ=tQ.prototype=new K0;eQ.constructor=tQ;J0(eQ,bg.prototype);eQ.isPureReactComponent=!0;var O0=Array.isArray;function PI(){}var DA={H:null,A:null,T:null,S:null},q0=Object.prototype.hasOwnProperty;function AQ(a,i,c){var g=c.ref;return{$$typeof:$I,type:a,key:i,ref:g!==void 0?g:null,props:c}}function qR(a,i){return AQ(a.type,i,a.props)}function nQ(a){return typeof a=="object"&&a!==null&&a.$$typeof===$I}function FR(a){var i={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return i[c]})}var w0=/\/+/g;function WI(a,i){return typeof a=="object"&&a!==null&&a.key!=null?FR(""+a.key):i.toString(36)}function jR(a){switch(a.status){case"fulfilled":return a.value;case"rejected":throw a.reason;default:switch(typeof a.status=="string"?a.then(PI,PI):(a.status="pending",a.then(function(i){a.status==="pending"&&(a.status="fulfilled",a.value=i)},function(i){a.status==="pending"&&(a.status="rejected",a.reason=i)})),a.status){case"fulfilled":return a.value;case"rejected":throw a.reason}}throw a}function Gg(a,i,c,g,B){var d=typeof a;(d==="undefined"||d==="boolean")&&(a=null);var p=!1;if(a===null)p=!0;else switch(d){case"bigint":case"string":case"number":p=!0;break;case"object":switch(a.$$typeof){case $I:case TR:p=!0;break;case z0:return p=a._init,Gg(p(a._payload),i,c,g,B)}}if(p)return B=B(a),p=g===""?"."+WI(a,0):g,O0(B)?(c="",p!=null&&(c=p.replace(w0,"$&/")+"/"),Gg(B,i,c,"",function(H){return H})):B!=null&&(nQ(B)&&(B=qR(B,c+(B.key==null||a&&a.key===B.key?"":(""+B.key).replace(w0,"$&/")+"/")+p)),i.push(B)),1;p=0;var y=g===""?".":g+":";if(O0(a))for(var Q=0;Q<a.length;Q++)g=a[Q],d=y+WI(g,Q),p+=Gg(g,i,c,d,B);else if(Q=KR(a),typeof Q=="function")for(a=Q.call(a),Q=0;!(g=a.next()).done;)g=g.value,d=y+WI(g,Q++),p+=Gg(g,i,c,d,B);else if(d==="object"){if(typeof a.then=="function")return Gg(jR(a),i,c,g,B);throw i=String(a),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return p}function Nd(a,i,c){if(a==null)return a;var g=[],B=0;return Gg(a,g,"","",function(d){return i.call(c,d,B++)}),g}function XR(a){if(a._status===-1){var i=a._result;i=i(),i.then(function(c){(a._status===0||a._status===-1)&&(a._status=1,a._result=c)},function(c){(a._status===0||a._status===-1)&&(a._status=2,a._result=c)}),a._status===-1&&(a._status=0,a._result=i)}if(a._status===1)return a._result.default;throw a._result}var _0=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},ZR={map:Nd,forEach:function(a,i,c){Nd(a,function(){i.apply(this,arguments)},c)},count:function(a){var i=0;return Nd(a,function(){i++}),i},toArray:function(a){return Nd(a,function(i){return i})||[]},only:function(a){if(!nQ(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};ge.Activity=YR;ge.Children=ZR;ge.Component=bg;ge.Fragment=GR;ge.Profiler=OR;ge.PureComponent=tQ;ge.StrictMode=bR;ge.Suspense=LR;ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=DA;ge.__COMPILER_RUNTIME={__proto__:null,c:function(a){return DA.H.useMemoCache(a)}};ge.cache=function(a){return function(){return a.apply(null,arguments)}};ge.cacheSignal=function(){return null};ge.cloneElement=function(a,i,c){if(a==null)throw Error("The argument must be a React element, but you passed "+a+".");var g=J0({},a.props),B=a.key;if(i!=null)for(d in i.key!==void 0&&(B=""+i.key),i)!q0.call(i,d)||d==="key"||d==="__self"||d==="__source"||d==="ref"&&i.ref===void 0||(g[d]=i[d]);var d=arguments.length-2;if(d===1)g.children=c;else if(1<d){for(var p=Array(d),y=0;y<d;y++)p[y]=arguments[y+2];g.children=p}return AQ(a.type,B,g)};ge.createContext=function(a){return a={$$typeof:_R,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null},a.Provider=a,a.Consumer={$$typeof:wR,_context:a},a};ge.createElement=function(a,i,c){var g,B={},d=null;if(i!=null)for(g in i.key!==void 0&&(d=""+i.key),i)q0.call(i,g)&&g!=="key"&&g!=="__self"&&g!=="__source"&&(B[g]=i[g]);var p=arguments.length-2;if(p===1)B.children=c;else if(1<p){for(var y=Array(p),Q=0;Q<p;Q++)y[Q]=arguments[Q+2];B.children=y}if(a&&a.defaultProps)for(g in p=a.defaultProps,p)B[g]===void 0&&(B[g]=p[g]);return AQ(a,d,B)};ge.createRef=function(){return{current:null}};ge.forwardRef=function(a){return{$$typeof:zR,render:a}};ge.isValidElement=nQ;ge.lazy=function(a){return{$$typeof:z0,_payload:{_status:-1,_result:a},_init:XR}};ge.memo=function(a,i){return{$$typeof:JR,type:a,compare:i===void 0?null:i}};ge.startTransition=function(a){var i=DA.T,c={};DA.T=c;try{var g=a(),B=DA.S;B!==null&&B(c,g),typeof g=="object"&&g!==null&&typeof g.then=="function"&&g.then(PI,_0)}catch(d){_0(d)}finally{i!==null&&c.types!==null&&(i.types=c.types),DA.T=i}};ge.unstable_useCacheRefresh=function(){return DA.H.useCacheRefresh()};ge.use=function(a){return DA.H.use(a)};ge.useActionState=function(a,i,c){return DA.H.useActionState(a,i,c)};ge.useCallback=function(a,i){return DA.H.useCallback(a,i)};ge.useContext=function(a){return DA.H.useContext(a)};ge.useDebugValue=function(){};ge.useDeferredValue=function(a,i){return DA.H.useDeferredValue(a,i)};ge.useEffect=function(a,i){return DA.H.useEffect(a,i)};ge.useEffectEvent=function(a){return DA.H.useEffectEvent(a)};ge.useId=function(){return DA.H.useId()};ge.useImperativeHandle=function(a,i,c){return DA.H.useImperativeHandle(a,i,c)};ge.useInsertionEffect=function(a,i){return DA.H.useInsertionEffect(a,i)};ge.useLayoutEffect=function(a,i){return DA.H.useLayoutEffect(a,i)};ge.useMemo=function(a,i){return DA.H.useMemo(a,i)};ge.useOptimistic=function(a,i){return DA.H.useOptimistic(a,i)};ge.useReducer=function(a,i,c){return DA.H.useReducer(a,i,c)};ge.useRef=function(a){return DA.H.useRef(a)};ge.useState=function(a){return DA.H.useState(a)};ge.useSyncExternalStore=function(a,i,c){return DA.H.useSyncExternalStore(a,i,c)};ge.useTransition=function(){return DA.H.useTransition()};ge.version="19.2.4"});var j0=je((ie,Ud)=>{"use strict";R();process.env.NODE_ENV!=="production"&&(function(){function a(h,J){Object.defineProperty(g.prototype,h,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",J[0],J[1])}})}function i(h){return h===null||typeof h!="object"?null:(h=xe&&h[xe]||h["@@iterator"],typeof h=="function"?h:null)}function c(h,J){h=(h=h.constructor)&&(h.displayName||h.name)||"ReactClass";var lt=h+"."+J;Gt[lt]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",J,h),Gt[lt]=!0)}function g(h,J,lt){this.props=h,this.context=J,this.refs=Kt,this.updater=lt||ne}function B(){}function d(h,J,lt){this.props=h,this.context=J,this.refs=Kt,this.updater=lt||ne}function p(){}function y(h){return""+h}function Q(h){try{y(h);var J=!1}catch{J=!0}if(J){J=console;var lt=J.error,Bt=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return lt.call(J,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Bt),y(h)}}function H(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===XA?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case Ee:return"Fragment";case On:return"Profiler";case qA:return"StrictMode";case rA:return"Suspense";case wa:return"SuspenseList";case le:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case _t:return"Portal";case FA:return h.displayName||"Context";case An:return(h._context.displayName||"Context")+".Consumer";case jA:var J=h.render;return h=h.displayName,h||(h=J.displayName||J.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case wn:return J=h.displayName||null,J!==null?J:H(h.type)||"Memo";case lA:J=h._payload,h=h._init;try{return H(h(J))}catch{}}return null}function x(h){if(h===Ee)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===lA)return"<...>";try{var J=H(h);return J?"<"+J+">":"<...>"}catch{return"<...>"}}function q(){var h=Yt.A;return h===null?null:h.getOwner()}function N(){return Error("react-stack-top-frame")}function _(h){if(rn.call(h,"key")){var J=Object.getOwnPropertyDescriptor(h,"key").get;if(J&&J.isReactWarning)return!1}return h.key!==void 0}function F(h,J){function lt(){RA||(RA=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",J))}lt.isReactWarning=!0,Object.defineProperty(h,"key",{get:lt,configurable:!0})}function W(){var h=H(this.type);return Qa[h]||(Qa[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function z(h,J,lt,Bt,Rt,kt){var qt=lt.ref;return h={$$typeof:xt,type:h,key:J,props:lt,_owner:Bt},(qt!==void 0?qt:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:W}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Rt}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:kt}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function ht(h,J){return J=z(h.type,J,h.props,h._owner,h._debugStack,h._debugTask),h._store&&(J._store.validated=h._store.validated),J}function pt(h){rt(h)?h._store&&(h._store.validated=1):typeof h=="object"&&h!==null&&h.$$typeof===lA&&(h._payload.status==="fulfilled"?rt(h._payload.value)&&h._payload.value._store&&(h._payload.value._store.validated=1):h._store&&(h._store.validated=1))}function rt(h){return typeof h=="object"&&h!==null&&h.$$typeof===xt}function It(h){var J={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(lt){return J[lt]})}function wt(h,J){return typeof h=="object"&&h!==null&&h.key!=null?(Q(h.key),It(""+h.key)):J.toString(36)}function Ae(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(p,p):(h.status="pending",h.then(function(J){h.status==="pending"&&(h.status="fulfilled",h.value=J)},function(J){h.status==="pending"&&(h.status="rejected",h.reason=J)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function Vt(h,J,lt,Bt,Rt){var kt=typeof h;(kt==="undefined"||kt==="boolean")&&(h=null);var qt=!1;if(h===null)qt=!0;else switch(kt){case"bigint":case"string":case"number":qt=!0;break;case"object":switch(h.$$typeof){case xt:case _t:qt=!0;break;case lA:return qt=h._init,Vt(qt(h._payload),J,lt,Bt,Rt)}}if(qt){qt=h,Rt=Rt(qt);var De=Bt===""?"."+wt(qt,0):Bt;return gA(Rt)?(lt="",De!=null&&(lt=De.replace(zl,"$&/")+"/"),Vt(Rt,J,lt,"",function(ZA){return ZA})):Rt!=null&&(rt(Rt)&&(Rt.key!=null&&(qt&&qt.key===Rt.key||Q(Rt.key)),lt=ht(Rt,lt+(Rt.key==null||qt&&qt.key===Rt.key?"":(""+Rt.key).replace(zl,"$&/")+"/")+De),Bt!==""&&qt!=null&&rt(qt)&&qt.key==null&&qt._store&&!qt._store.validated&&(lt._store.validated=2),Rt=lt),J.push(Rt)),1}if(qt=0,De=Bt===""?".":Bt+":",gA(h))for(var ue=0;ue<h.length;ue++)Bt=h[ue],kt=De+wt(Bt,ue),qt+=Vt(Bt,J,lt,kt,Rt);else if(ue=i(h),typeof ue=="function")for(ue===h.entries&&(ha||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ha=!0),h=ue.call(h),ue=0;!(Bt=h.next()).done;)Bt=Bt.value,kt=De+wt(Bt,ue++),qt+=Vt(Bt,J,lt,kt,Rt);else if(kt==="object"){if(typeof h.then=="function")return Vt(Ae(h),J,lt,Bt,Rt);throw J=String(h),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return qt}function Qt(h,J,lt){if(h==null)return h;var Bt=[],Rt=0;return Vt(h,Bt,"","",function(kt){return J.call(lt,kt,Rt++)}),Bt}function Ct(h){if(h._status===-1){var J=h._ioInfo;J!=null&&(J.start=J.end=performance.now()),J=h._result;var lt=J();if(lt.then(function(Rt){if(h._status===0||h._status===-1){h._status=1,h._result=Rt;var kt=h._ioInfo;kt!=null&&(kt.end=performance.now()),lt.status===void 0&&(lt.status="fulfilled",lt.value=Rt)}},function(Rt){if(h._status===0||h._status===-1){h._status=2,h._result=Rt;var kt=h._ioInfo;kt!=null&&(kt.end=performance.now()),lt.status===void 0&&(lt.status="rejected",lt.reason=Rt)}}),J=h._ioInfo,J!=null){J.value=lt;var Bt=lt.displayName;typeof Bt=="string"&&(J.name=Bt)}h._status===-1&&(h._status=0,h._result=lt)}if(h._status===1)return J=h._result,J===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -279,7 +279,7 @@ ${g.map(zc).join(`
279
279
  ${Q}`:Q})].filter(y=>y!==void 0).join(`
280
280
 
281
281
  `)}R();var yn=yt(Mt(),1),LD=yt(zD(),1),JD=({error:a})=>{let i,c;return a instanceof y0&&(i=new LD.default(a),i.items.forEach(g=>{g.file=S0(g.file)}),i=i.withSources(),i=i.filter(g=>!g.file.includes("@oclif/core")).map(g=>{let B=g.fileShort.split("packages/");return g.fileShort=B.length===2?B[1]:B[0],g})),a instanceof qB&&(c=`${a.command} ${a.args.join(" ")}`),yn.default.createElement(Cp,{type:c?"external_error":"error"},c?yn.default.createElement(nt,null,"Error coming from ",yn.default.createElement(dp,{command:c})):null,a.formattedMessage?yn.default.createElement(tA,{item:a.formattedMessage}):yn.default.createElement(tA,{item:a.message}),a.tryMessage?yn.default.createElement(tA,{item:a.tryMessage}):null,a.nextSteps&&a.nextSteps.length>0?yn.default.createElement(Li,{title:"Next steps",items:a.nextSteps}):null,a.customSections&&a.customSections.length>0?yn.default.createElement(ut,{flexDirection:"column",gap:1},a.customSections.map((g,B)=>yn.default.createElement(ut,{key:B,flexDirection:"column"},g.title?yn.default.createElement(nt,{bold:!0},g.title):null,typeof g.body=="object"&&"tabularData"in g.body?yn.default.createElement(pp,{...g.body}):yn.default.createElement(tA,{item:g.body})))):null,i&&i.items.length!==0?yn.default.createElement(ut,{flexDirection:"column"},yn.default.createElement(nt,null,"To investigate the issue, examine this stack trace:"),i.items.map((g,B)=>yn.default.createElement(ut,{flexDirection:"column",key:B,paddingLeft:2},yn.default.createElement(nt,null,"at",g.calleeShort?yn.default.createElement(nt,{color:"yellow"},` ${g.calleeShort}`):null,g.fileShort?` (${g.fileShort}:${g.line})`:null),yn.default.createElement(ut,{paddingLeft:2},yn.default.createElement(nt,{dimColor:!0},g.sourceLine?.trim()))))):null)};R();R();var Rp=yt(Mt(),1);function _H(a,i){return a.reduce((c,g,B)=>c.length===0?[g]:[...c,i(B),g],[])}var Np=({rowKey:a,columns:i,data:c,fillerChar:g,ignoreColumnColor:B})=>Rp.default.createElement(ut,{flexDirection:"row"},..._H(i.map(d=>{let p=c[d.name],y=`${a}-cell-${d.name.toString()}`,Q=d.width-bl(String(p??"")).length;return Rp.default.createElement(nt,{key:y,color:B?void 0:d.color},p,g.repeat(Q))}),d=>{let p=`${a}-horizontal-separator-${d}`;return Rp.default.createElement(nt,{key:p}," ")}));var Vg=yt(Mt(),1);var zH=2;function YD({rows:a,columns:i}){return Object.entries(i).map(([c,{header:g,color:B}])=>{let d=String(g??c).length,p=a.map(y=>{let Q=y[c];return Q==null?0:bl(String(Q)).length});return{name:c,width:Math.max(...p,d),color:B}})}function KD(a){let i=YD(a),c=Math.max(i.length-1,0)*zH;return i.reduce((g,B)=>g+B.width,c)}function qD({rows:a,columns:i}){let c=YD({rows:a,columns:i}),g=Object.entries(i).reduce((B,[d,{header:p}])=>({...B,[d]:p??d}),{});return Vg.default.createElement(ut,{flexDirection:"column"},Vg.default.createElement(Np,{rowKey:"heading",fillerChar:" ",columns:c,data:g,ignoreColumnColor:!0}),Vg.default.createElement(Np,{rowKey:"separator",fillerChar:"\u2500",columns:c,data:{},ignoreColumnColor:!0}),a.map((B,d)=>{let p=`row-${d}`;return Vg.default.createElement(ut,{flexDirection:"column",key:p},Vg.default.createElement(Np,{rowKey:`data-${p}`,fillerChar:" ",columns:c,data:B}))}))}R();R();var Vc=yt(Mt(),1);var kg=({value:a,defaultValue:i="",onChange:c,placeholder:g="",noColor:B=!Ti(),color:d=B?void 0:"cyan",password:p=!1,focus:y=!0})=>{let[Q,H]=(0,Vc.useState)((a||"").length),x=Math.min(Q,(a||"").length);(0,Vc.useLayoutEffect)(()=>{x!==Q&&H(x)},[x,Q]);let q=p?"*".repeat(a.length):a,N,_=pt=>$e.inverse(pt[0])+$e.dim(pt.slice(1)),F=Oa.square,W=Vc.default.createElement(nt,{backgroundColor:d},F),z=i.length>0?i:g.length>0?g:"",ht=z.length>0?_(z):W;return N=q.split("").map((pt,rt)=>rt===x?B?F:$e.inverse(pt):pt).join(""),x===q.length&&(N=Vc.default.createElement(nt,null,N,W)),Ol((pt,rt)=>{if(rt.upArrow||rt.downArrow||rt.ctrl&&pt==="c"||rt.shift&&rt.tab||rt.return)return;if(rt.tab&&a.length===0&&z){c(z),H(z.length);return}let It=x,wt=a;rt.leftArrow?x>0&&It--:rt.rightArrow?x<a.length&&It++:rt.backspace||rt.delete?x>0&&(wt=a.slice(0,x-1)+a.slice(x,a.length),It--):(wt=a.slice(0,x)+pt+a.slice(x,a.length),It+=pt.length),H(It),wt!==a&&c(wt)},{isActive:y}),Vc.default.createElement(nt,{color:d},q.length>0?N:ht)};R();var Ki=yt(Mt(),1),Up=({table:a})=>{let i=Array.isArray(a)?a:Object.keys(a).map(g=>({header:g,items:a[g],color:void 0,helperText:void 0,bullet:void 0,emptyItemsText:void 0})),c=Math.max(...i.map(g=>Math.max(...g.header.split(`
282
- `).map(B=>B.length))));return Ki.default.createElement(ut,{flexDirection:"column"},i.map((g,B)=>Ki.default.createElement(ut,{key:B,marginBottom:B===i.length-1?0:1,flexDirection:"column"},g.header.length>0&&Ki.default.createElement(ut,{width:c+1},Ki.default.createElement(nt,{color:g.color,bold:!0},f0(g.header))),Ki.default.createElement(ut,{flexGrow:1,flexDirection:"column",gap:1},g.emptyItemsText&&g.items.length===0?Ki.default.createElement(nt,{color:g.color},Ki.default.createElement(tA,{item:{subdued:g.emptyItemsText}})):Ki.default.createElement(Li,{margin:!1,items:g.items,color:g.color,bullet:g.bullet}),g.helperText?Ki.default.createElement(nt,{color:g.color},g.helperText):null))))};R();function Wg(a){let i=Ug(a);return i.endsWith("?")||i.endsWith(":")||i.endsWith(".")?a:g0(a,":")}R();var Pg=yt(Mt(),1),LH=()=>Promise.resolve();function FD(a){return a?.reason?.name==="AbortError"?void 0:a?.reason}function Lo(a,i=LH){let c=Ia(),[g,B]=(0,Pg.useState)(!1);return(0,Pg.useLayoutEffect)(()=>{a?.addEventListener("abort",()=>{i(FD(a)).then(()=>B(!0)).catch(()=>{})})},[]),(0,Pg.useEffect)(()=>{g&&c(FD(a))},[g]),{isAborted:g}}R();var Ih=yt(Mt(),1),ye;(function(a){a.Idle="idle",a.Loading="loading",a.Submitted="submitted",a.Error="error",a.Cancelled="cancelled"})(ye||(ye={}));function Jo({initialAnswer:a}){let[i,c]=(0,Ih.useState)(ye.Idle),[g,B]=(0,Ih.useState)(a);return{promptState:i,setPromptState:c,answer:g,setAnswer:B}}var pe=yt(Mt(),1);var jD=({message:a,confirmation:i,infoTable:c,warningItem:g,onSubmit:B,abortSignal:d})=>{let p=(0,pe.useCallback)(rt=>rt===i?void 0:["Value must be exactly",{userInput:i}],[i]),{oneThird:y,twoThirds:Q}=zi(),{promptState:H,setPromptState:x,answer:q,setAnswer:N}=Jo({initialAnswer:""}),_=Ia(),[F,W]=(0,pe.useState)(void 0),z=H===ye.Error?"red":"cyan",{isAborted:ht}=Lo(d);Ol((rt,It)=>{if(du(rt,It),It.escape&&(x(ye.Cancelled),W(void 0)),It.return){let wt=p(q);wt?(x(ye.Error),W(wt)):x(ye.Submitted)}}),(0,pe.useEffect)(()=>{H===ye.Submitted?(B(!0),_()):H===ye.Cancelled&&(B(!1),_())},[B,H,_]);let pt=H===ye.Submitted||H===ye.Cancelled;return ht?null:pe.default.createElement(ut,{flexDirection:"column",marginBottom:1,width:Q},pe.default.createElement(ut,null,pe.default.createElement(ut,{marginRight:2},pe.default.createElement(nt,null,"?")),pe.default.createElement(tA,{item:Wg(a)})),pt?pe.default.createElement(JH,{cancelled:H===ye.Cancelled}):pe.default.createElement(pe.default.Fragment,null,pe.default.createElement(ut,{flexDirection:"column",gap:1,marginTop:1,marginLeft:3},c?pe.default.createElement(ut,{paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},pe.default.createElement(Up,{table:c})):null,g?pe.default.createElement(ut,{flexDirection:"column"},pe.default.createElement(nt,{color:"red"},Oa.warning," WARNING"),pe.default.createElement(tA,{item:g})):null,pe.default.createElement(ut,null,pe.default.createElement(tA,{item:["Type",{userInput:i},"to confirm, or press Escape to cancel."]}))),pe.default.createElement(ut,{flexDirection:"column",width:y},pe.default.createElement(ut,null,pe.default.createElement(ut,{marginRight:2},pe.default.createElement(nt,{color:z},">")),pe.default.createElement(ut,{flexGrow:1},pe.default.createElement(kg,{value:q,onChange:rt=>{N(rt),x(ye.Idle)},defaultValue:"",color:z}))),xg().platform==="windows"?pe.default.createElement(ut,{marginLeft:3,borderStyle:"single",borderColor:z,borderBottom:!1,borderLeft:!1,borderRight:!1}):pe.default.createElement(ut,{marginLeft:3},pe.default.createElement(nt,{color:z},"\u2594".repeat(y-3))),H===ye.Error&&F?pe.default.createElement(ut,{marginLeft:3},pe.default.createElement(nt,{color:z},pe.default.createElement(tA,{item:F}))):null)))},JH=({cancelled:a})=>pe.default.createElement(ut,null,pe.default.createElement(ut,{width:3},a?pe.default.createElement(nt,{color:"red"},Oa.cross):pe.default.createElement(nt,{color:"cyan"},Oa.tick)),pe.default.createElement(ut,{flexGrow:1},a?pe.default.createElement(nt,{color:"red"},"Cancelled"):pe.default.createElement(nt,{color:"cyan"},"Confirmed")));R();R();R();var qi=yt(Mt(),1),YH="\u2502",KH="\u2551",XD=({containerHeight:a,visibleListSectionLength:i,fullListLength:c,visibleFromIndex:g,noColor:B=!Ti()})=>{let d=a>=4&&B,p=g+i-1,y=d?a-2:a,Q=Math.min(y-1,Math.ceil(Math.min(1,i/c)*y)),H;if(p>=c-1)H=y-Q;else{let W=y-Q,z=c-i;H=Math.max(0,Math.min(y-Q,Math.round(g/z*W)))}let x=y-Q-H,q=B?YH:" ",N=B?KH:" ",_=B?void 0:"gray",F=B?void 0:"cyan";return qi.default.createElement(ut,{flexDirection:"column"},d?qi.default.createElement(nt,null,"\u25B3"):null,qi.default.createElement(ut,{width:1},qi.default.createElement(nt,{backgroundColor:_},q.repeat(H))),qi.default.createElement(ut,{width:1},qi.default.createElement(nt,{backgroundColor:F},N.repeat(Q))),qi.default.createElement(ut,{width:1},qi.default.createElement(nt,{backgroundColor:_},q.repeat(x))),d?qi.default.createElement(nt,null,"\u25BD"):null)};R();var Ai=yt(Mt(),1);import{isDeepStrictEqual as qH}from"node:util";var Hp=class extends Map{first;constructor(i){let c=[],g,B,d=0;for(let p of i){let y={...p,previous:B,next:void 0,index:d};B&&(B.next=y),g??=y,c.push([p.value,y]),d++,B=y}super(c),this.first=g}},FH=(a,i)=>{switch(i.type){case"select-next-option":{if(typeof a.value>"u")return a;let c=a.optionMap.get(a.value);if(!c)return a;let g=c.next;for(;g&&g.disabled;)g=g.next;if(!g)return a;if(!(g.index>a.visibleToIndex))return{...a,value:g.value};let d=g.index,p=d-a.visibleOptionCount+1;return{...a,value:g.value,visibleFromIndex:p,visibleToIndex:d,previousValue:a.value}}case"select-previous-option":{if(typeof a.value>"u")return a;let c=a.optionMap.get(a.value);if(!c)return a;let g=c.previous;for(;g&&g.disabled;)g=g.previous;if(!g)return a;if(!(g.index<a.visibleFromIndex))return{...a,value:g.value};let d=g.index,p=d+a.visibleOptionCount-1;return{...a,value:g.value,visibleFromIndex:d,visibleToIndex:p,previousValue:a.value}}case"select-option":{let c=a.optionMap.get(i.option.value);return c?{...a,value:c.value,previousValue:a.value}:a}case"reset":return i.state;default:return a}},Qh=({visibleOptionCount:a,defaultValue:i,options:c})=>{let g=typeof a=="number"?Math.min(a,c.length):c.length,B=new Hp(c),d=typeof i>"u"?void 0:B.get(i),p=d&&!d.disabled?d:B.first;for(;p&&p.disabled;)p=p.next;return{optionMap:B,visibleOptionCount:g,visibleFromIndex:0,visibleToIndex:g-1,value:p?.value,previousValue:p?.value}},ZD=({visibleOptionCount:a,options:i,defaultValue:c})=>{let[g,B]=(0,Ai.useReducer)(FH,{visibleOptionCount:a,defaultValue:c,options:i},Qh),[d,p]=(0,Ai.useState)(i),[y,Q]=(0,Ai.useState)(a);i!==d&&!qH(i,d)&&(B({type:"reset",state:Qh({visibleOptionCount:a,defaultValue:c,options:i})}),p(i)),a!==y&&(B({type:"reset",state:Qh({visibleOptionCount:a,defaultValue:c,options:i})}),Q(a));let H=(0,Ai.useCallback)(()=>{B({type:"select-next-option"})},[]),x=(0,Ai.useCallback)(()=>{B({type:"select-previous-option"})},[]),q=(0,Ai.useCallback)(({option:_})=>{B({type:"select-option",option:_})},[]),N=(0,Ai.useMemo)(()=>i.slice(g.visibleFromIndex),[i,g.visibleFromIndex]);return{visibleFromIndex:g.visibleFromIndex,visibleToIndex:g.visibleToIndex,value:g.value,visibleOptions:N,selectNextOption:H,selectPreviousOption:x,selectOption:q,previousValue:g.previousValue}};var aA=yt(Mt(),1);var h1=yt(I1(),1);function Nx(a,i){if(!i)return a;let c;try{c=new RegExp(i,"i")}catch{return a}return a.replace(c,g=>$e.bold(g))}function Ux(a){if(a.some(i=>(i.key?.length??0)>1))throw new Error("SelectInput: Keys must be a single character");if(!a.every(i=>typeof i.key<"u"&&i.key.length>0))throw new Error("SelectInput: All items must have keys if one does")}function Hx({item:a,previousItem:i,isSelected:c,highlightedTerm:g,enableShortcuts:B,items:d,hasAnyGroup:p,index:y}){let Q=Nx(a.label,g),H,x;c?x="cyan":a.disabled&&(x="dim"),(typeof i>"u"||a.group!==i.group)&&(H=a.group??(p?"Other":void 0));let q=B&&a.key&&a.key.length>0;return aA.default.createElement(ut,{key:y,flexDirection:"column",marginTop:d.indexOf(a)!==0&&H?1:0,minHeight:H?2:1},H?aA.default.createElement(ut,{marginLeft:3},aA.default.createElement(nt,{bold:!0},H)):null,aA.default.createElement(ut,{key:y,marginLeft:p?3:0},aA.default.createElement(ut,{marginRight:2},c?aA.default.createElement(nt,{color:"cyan"},">"):aA.default.createElement(nt,null," ")),aA.default.createElement(nt,{wrap:"end",color:x},q?`(${a.key}) ${Q}`:Q)))}var Q1=25;function xp({items:a,initialItems:i=a,onChange:c,enableShortcuts:g=!0,focus:B=!0,emptyMessage:d="No items to select.",defaultValue:p,highlightedTerm:y,loading:Q=!1,errorMessage:H,hasMorePages:x=!1,morePagesMessage:q,availableLines:N=Q1,onSubmit:_,inputFixedAreaRef:F,ref:W,groupOrder:z}){let ht=!1;a.length===0&&(a=[{label:d,value:null,disabled:!0}],ht=!0);let pt=a.some(Jt=>typeof Jt.group<"u"),rt=(0,h1.default)(a,Jt=>{if(!Jt.group)return Number.MAX_SAFE_INTEGER+1;if(!z)return Number.MAX_SAFE_INTEGER;let ot=z.indexOf(Jt.group);return ot===-1?Number.MAX_SAFE_INTEGER:ot}),It=rt.some(Jt=>typeof Jt.key<"u"&&Jt.key.length>0);It&&Ux(rt);let wt=Math.min(N,Q1);function Ae(Jt){let ot=new Set(Jt.map(xt=>xt.group).filter(xt=>xt)).size,Dt=Math.ceil(Math.min((wt+1)/3,ot+1));return ot>0?(Dt-1)*2+1:0}let Vt=Ae(rt),Qt=Math.max(2,wt-Vt),Ct=rt.length>Qt,St=ZD({visibleOptionCount:Qt,options:rt,defaultValue:p});(0,aA.useEffect)(()=>{typeof St.value<"u"&&St.previousValue!==St.value&&c?.(rt.find(Jt=>Jt.value===St.value))},[St.previousValue,St.value,rt,c]);let se=Jt=>{Jt.upArrow?St.selectPreviousOption():Jt.downArrow&&St.selectNextOption()},bt=(0,aA.useCallback)(Jt=>{if(St.visibleOptions.map(ot=>ot.key).includes(Jt)){let ot=St.visibleOptions.find(xt=>xt.key===Jt),Dt=rt.find(xt=>xt.value===ot?.value);ot&&!ot.disabled&&(_&&Dt&&_(Dt),St.selectOption({option:ot}))}},[rt,_,St]);Ol((Jt,ot)=>{if(du(Jt,ot),typeof St.value<"u"&&ot.return){let Dt=rt.find(xt=>xt.value===St.value);Dt&&_&&_(Dt)}g&&Jt.length>0&&Object.values(ot).every(Dt=>!Dt)?bt(Jt):se(ot)},{isActive:B});let{twoThirds:He}=zi();if(Q)return aA.default.createElement(ut,{marginLeft:3},aA.default.createElement(nt,{dimColor:!0},"Loading..."));if(H&&H.length>0)return aA.default.createElement(ut,{marginLeft:3},aA.default.createElement(nt,{color:"red"},H));{let Jt=i.length+Ae(i),Dt=Math.max(pt?5:2,Math.min(wt,Jt));return aA.default.createElement(ut,{flexDirection:"column",ref:W,gap:1,width:He},aA.default.createElement(ut,{flexDirection:"row",height:Dt,width:"100%"},aA.default.createElement(ut,{flexDirection:"column",overflowY:"hidden",flexGrow:1},St.visibleOptions.map((xt,_t)=>aA.default.createElement(Hx,{key:_t,item:xt,previousItem:St.visibleOptions[_t-1],highlightedTerm:y,isSelected:xt.value===St.value,items:St.visibleOptions,enableShortcuts:g,hasAnyGroup:pt,index:_t}))),Ct?aA.default.createElement(XD,{containerHeight:Dt,visibleListSectionLength:Qt,fullListLength:rt.length,visibleFromIndex:St.visibleFromIndex}):null),aA.default.createElement(ut,{ref:F},ht?aA.default.createElement(ut,{marginLeft:3},aA.default.createElement(nt,{dimColor:!0},"Try again with a different keyword.")):aA.default.createElement(ut,{marginLeft:3,flexDirection:"column"},aA.default.createElement(nt,{dimColor:!0},`Press ${Oa.arrowUp}${Oa.arrowDown} arrows to select, enter ${It?"or a shortcut ":""}to confirm.`),x?aA.default.createElement(nt,null,aA.default.createElement(nt,{bold:!0},"1-",rt.length," of many"),q?` ${q}`:null):null)))}}R();R();var DC=yt(Mt(),1),y1=({message:{title:{color:a,text:i},body:c}})=>DC.default.createElement(ut,{flexDirection:"column",gap:1},DC.default.createElement(nt,{color:a},DC.default.createElement(tA,{item:i})),DC.default.createElement(tA,{item:c}));var cA=yt(Mt(),1);var S1=24,Mp=({message:a,infoTable:i,abortSignal:c,infoMessage:g,header:B,state:d,input:p,submittedAnswerLabel:y})=>{let{stdout:Q}=hs(),[H,x]=(0,cA.useState)(0),[q,N]=(0,cA.useState)(0),[_,F]=(0,cA.useState)(0),W=(Q.rows??S1)-q-_,[z,ht]=(0,cA.useState)(W),pt=(0,cA.useCallback)(Qt=>{if(Qt!==null){let{height:Ct}=dC(Qt);H!==Ct&&x(Ct)}},[H]),rt=(0,cA.useCallback)(Qt=>{if(Qt!==null){let{height:Ct}=dC(Qt);N(Ct)}},[]),It=(0,cA.useCallback)(Qt=>{if(Qt!==null){let{height:Ct}=dC(Qt);F(Ct+3)}},[]),wt=(0,cA.cloneElement)(p,{availableLines:z,inputFixedAreaRef:It});(0,cA.useLayoutEffect)(()=>{function Qt(){let Ct=(Q.rows??S1)-q-_;Ct!==z&&ht(Ct)}return Qt(),Q.on("resize",Qt),()=>{Q.off("resize",Qt)}},[H,q,Q,z,_]);let{isAborted:Ae}=Lo(c),Vt=i&&Object.keys(i).length>0;return Ae?null:cA.default.createElement(ut,{flexDirection:"column",marginBottom:1,ref:pt},cA.default.createElement(ut,{ref:rt,flexDirection:"column"},cA.default.createElement(ut,null,cA.default.createElement(ut,{marginRight:2},cA.default.createElement(nt,null,"?")),cA.default.createElement(tA,{item:Wg(a)}),B),(Vt||g)&&d!==ye.Submitted?cA.default.createElement(ut,{marginTop:1,marginLeft:3,paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},g?cA.default.createElement(y1,{message:g}):null,Vt?cA.default.createElement(Up,{table:i}):null):null),d===ye.Submitted&&y?cA.default.createElement(ut,null,cA.default.createElement(ut,{width:3},cA.default.createElement(nt,{color:"cyan"},Oa.tick)),cA.default.createElement(nt,{color:"cyan"},y)):cA.default.createElement(ut,{marginTop:1},wt))};var Ss=yt(Mt(),1);function v1({message:a,choices:i,infoTable:c,infoMessage:g,onSubmit:B,defaultValue:d,abortSignal:p,groupOrder:y}){if(i.length===0)throw new Error("SelectPrompt requires at least one choice");let Q=Ia(),{promptState:H,setPromptState:x,answer:q,setAnswer:N}=Jo({initialAnswer:void 0}),_=(0,Ss.useCallback)(F=>{N(F),x(ye.Submitted)},[N,x]);return(0,Ss.useEffect)(()=>{H===ye.Submitted&&q&&(B(q.value),Q())},[q,B,H,Q]),Ss.default.createElement(Mp,{message:a,state:H,submittedAnswerLabel:q?.label,infoTable:c,infoMessage:g,abortSignal:p,input:Ss.default.createElement(xp,{defaultValue:d,items:i,onSubmit:_,groupOrder:y})})}R();R();R();var kc=yt(Mt(),1);var xx="#96BF48",Mx=350,D1=({title:a,noColor:i=!Ti()})=>{let[c,g]=(0,kc.useState)(!0);return(0,kc.useLayoutEffect)(()=>{let B=setInterval(()=>{g(d=>!d)},Mx);return()=>{clearInterval(B)}},[]),kc.default.createElement(nt,null,kc.default.createElement(nt,{bold:!0,italic:!0},"S"),kc.default.createElement(nt,{bold:!0,color:i?void 0:xx},c?">":" "),` ${a} ...`)};var yh=yt(Mt(),1);var Tp=({title:a,noColor:i,noProgressBar:c})=>{let{stdout:g}=hs(),B=!!g.isTTY,d=i??!Ti();return!B||c?yh.default.createElement(nt,null,a," ..."):yh.default.createElement(D1,{title:a,noColor:d})};R();var RC=yt(Mt(),1);function Sh(a,{onFulfilled:i=()=>{},onRejected:c=()=>{}}={}){let g=Ia(),[B,d]=(0,RC.useState)(null);(0,RC.useEffect)(()=>{a().then(p=>{i(p),d({})}).catch(p=>{c(p),d({error:p})})},[]),(0,RC.useEffect)(()=>{B!==null&&g(B.error)},[B])}R();function R1(){let{isRawModeSupported:a}=Xc();Ol((i,c)=>{if(du(i,c),c.return)return null},{isActive:!!a})}R();async function Gp(a,i=()=>{}){let c={},g=yd(),B,d=async p=>{try{return i(p),await Tx(p,c,y=>{To({type:"progress",operation:g,status:y==="started"&&B?"updated":y,message:vh(p)},{alreadyRendered:!0}),B=p})}catch(y){throw To({type:"progress",operation:g,status:"failed",message:vh(p)},{alreadyRendered:!0}),y}};for(let p of a){let y=await d(p);if(Array.isArray(y)&&y.length>0&&y.every(Q=>"task"in Q))for(let Q of y)await d(Q)}return B&&To({type:"progress",operation:g,status:"completed",message:vh(B),current:1,total:1},{alreadyRendered:!0}),c}async function Tx(a,i,c){a.retryCount=0,a.errors=[];let g=a.retry&&a.retry>0?a.retry+1:1,B=!1;for(let d=1;d<=g;d++)try{return a.skip?.(i)?void 0:(c(B?"retrying":"started"),B=!0,await a.task(i,a))}catch(p){if(d===g)throw p;a.errors.push(p),a.retryCount=d}}function vh(a){return bl(typeof a.title=="string"?a.title:a.title.value)}var NC=yt(Mt(),1),$g;(function(a){a.Loading="loading",a.Success="success",a.Failure="failure"})($g||($g={}));var Gx=()=>{};function N1({tasks:a,silent:i=FB(),onComplete:c=Gx,abortSignal:g,noColor:B,noProgressBar:d=!1}){let[p,y]=(0,NC.useState)(a[0]),[Q,H]=(0,NC.useState)($g.Loading);Sh(()=>Gp(a,y),{onFulfilled:N=>{H($g.Success),c(N)},onRejected:()=>{H($g.Failure)}}),R1();let{isAborted:x}=Lo(g);if(i)return null;let q=typeof p.title=="string"?p.title:p.title.value;return Q===$g.Loading&&!x?NC.default.createElement(Tp,{title:q,noColor:B,noProgressBar:d}):null}R();var eA=yt(Mt(),1);var U1=({message:a,onSubmit:i,validate:c,defaultValue:g="",password:B=!1,allowEmpty:d=!1,emptyDisplayedValue:p="(empty)",abortSignal:y,preview:Q,initialAnswer:H=""})=>{if(B&&g)throw new Error("Can't use defaultValue with password");let x=(0,eA.useCallback)(Qt=>{if(c)return c(Qt);if(Qt.length===0&&!d)return"Type an answer to the prompt."},[d,c]),{oneThird:q}=zi(),{promptState:N,setPromptState:_,answer:F,setAnswer:W}=Jo({initialAnswer:H}),z=F.length>0?F:g,ht=z==="",pt=ht?p:z,rt=Ia(),[It,wt]=(0,eA.useState)(void 0),Ae=N===ye.Error?"red":"cyan",{isAborted:Vt}=Lo(y);return Ol((Qt,Ct)=>{if(du(Qt,Ct),Ct.return){let St=x(z);St?(_(ye.Error),wt(St)):_(ye.Submitted)}}),(0,eA.useEffect)(()=>{N===ye.Submitted&&(i(z),rt())},[z,i,N,rt]),Vt?null:eA.default.createElement(ut,{flexDirection:"column",marginBottom:1,width:q},eA.default.createElement(ut,null,eA.default.createElement(ut,{marginRight:2},eA.default.createElement(nt,null,"?")),eA.default.createElement(tA,{item:Wg(a)})),N===ye.Submitted?eA.default.createElement(ut,null,eA.default.createElement(ut,{width:3},eA.default.createElement(nt,{color:"cyan"},Oa.tick)),eA.default.createElement(ut,{flexGrow:1},eA.default.createElement(nt,{color:"cyan",dimColor:ht},B?"*".repeat(F.length):pt))):eA.default.createElement(ut,{flexDirection:"column"},eA.default.createElement(ut,null,eA.default.createElement(ut,{marginRight:2},eA.default.createElement(nt,{color:Ae},">")),eA.default.createElement(ut,{flexGrow:1},eA.default.createElement(kg,{value:F,onChange:Qt=>{W(Qt),_(ye.Idle)},defaultValue:g,color:Ae,password:B}))),xg().platform==="windows"?eA.default.createElement(ut,{marginLeft:3,borderStyle:"single",borderColor:Ae,borderBottom:!1,borderLeft:!1,borderRight:!1}):eA.default.createElement(ut,{marginLeft:3},eA.default.createElement(nt,{color:Ae},"\u2594".repeat(q-3))),N===ye.Error?eA.default.createElement(ut,{marginLeft:3},eA.default.createElement(nt,{color:Ae},It)):null,N!==ye.Error&&Q?eA.default.createElement(ut,{marginLeft:3},eA.default.createElement(tA,{item:Q(z)})):null))};R();R();var bx=yt(rR()),H1=yt(QR()),x1=yt(hR());function HL(a,i,c){return(0,H1.default)(a,i,c)}function M1(a,i,c){return(0,x1.default)(a,i,c)}var Sn=yt(Mt(),1);var Ox=5,wx=400;function T1({message:a,choices:i,infoTable:c,onSubmit:g,search:B,hasMorePages:d=!1,abortSignal:p,infoMessage:y,groupOrder:Q,searchDebounceMs:H=wx}){let x=Ia(),[q,N]=(0,Sn.useState)(""),[_,F]=(0,Sn.useState)(i),W=d||i.length>Ox,[z,ht]=(0,Sn.useState)(d),{promptState:pt,setPromptState:rt,answer:It,setAnswer:wt}=Jo({initialAnswer:void 0}),Ae=(0,Sn.useCallback)(async He=>await B(He),[B]),Vt=(0,Sn.useCallback)(He=>{pt===ye.Idle&&(wt(He),rt(ye.Submitted))},[pt,wt,rt]);(0,Sn.useEffect)(()=>{pt===ye.Submitted&&It&&(N(""),g(It.value),x())},[It,g,pt,x]);let Qt=(0,Sn.useRef)(),Ct=(0,Sn.useRef)("");Ct.current=q;let St=(0,Sn.useRef)(i);St.current=i;let se=(0,Sn.useRef)(d);se.current=d;let bt=Sn.default.useMemo(()=>M1(He=>{Qt.current=setTimeout(()=>{rt(ye.Loading)},100),Ae(He).then(Jt=>{Ct.current.length===0?(F(St.current),ht(se.current)):(F(Jt.data),ht(Jt.meta?.hasNextPage??!1)),rt(ye.Idle)}).catch(()=>{rt(ye.Error)}).finally(()=>{clearTimeout(Qt.current)})},H,{leading:!0,trailing:!0}),[Ae,rt,H]);return Sn.default.createElement(Mp,{message:a,state:pt,infoTable:c,infoMessage:y,abortSignal:p,header:pt!==ye.Submitted&&W?Sn.default.createElement(ut,{marginLeft:3},Sn.default.createElement(kg,{value:q,onChange:He=>{N(He),Ct.current=He,He.length>0?bt(He):(bt.cancel(),rt(ye.Idle),F(i))},placeholder:"Type to search..."})):null,submittedAnswerLabel:It?.label,input:Sn.default.createElement(xp,{items:_,initialItems:i,enableShortcuts:!1,emptyMessage:"No results found.",highlightedTerm:q,loading:pt===ye.Loading,errorMessage:pt===ye.Error?"There has been an error while searching. Please try again later.":void 0,hasMorePages:z,morePagesMessage:"Find what you're looking for by typing its name.",onSubmit:Vt,groupOrder:Q})})}R();var Yo=yt(Mt(),1);var G1=({task:a,title:i,onComplete:c,onAbort:g,noColor:B})=>{let[d,p]=(0,Yo.useState)(i),[y,Q]=(0,Yo.useState)(!1),[H,x]=(0,Yo.useState)(null),q=Ia(),{isRawModeSupported:N}=Xc();return Ol((_,F)=>{g?du(_,F,g):du(_,F)},{isActive:!!N}),(0,Yo.useEffect)(()=>{a(p).then(_=>{Q(!0),c?.(_),x({})}).catch(_=>{Q(!0),x({error:_})})},[a,c]),(0,Yo.useEffect)(()=>{H!==null&&q(H.error)},[H,q]),y?null:Yo.default.createElement(Tp,{title:d.value,noColor:B})};var Fi=yt(Mt()),tE={skipTTYCheck:!1};async function g6({renderOptions:a,...i}){let c=i.abortSignal??new Rd().signal;return Hg()==="json"&&!i.keepRunningAfterProcessesResolve?i.processes.length===0?void 0:Jx({title:VI`Running concurrent processes`,task:async()=>eD({...i,abortSignal:c})}):Zc(Fi.default.createElement(AD,{...i,abortSignal:c}),a)}function E6(a){return yC({...a,type:"info"})}function B6(a){return yC({...a,type:"success"})}function U0(a){return yC({...a,type:"warning"})}function C6(a){return yC({...a,type:"error"})}function m6(a,{renderOptions:i}={}){return IC(Fi.default.createElement(JD,{error:a}),{logLevel:"error",renderOptions:i})}async function _x({renderOptions:a,isConfirmationPrompt:i,...c},g=tE){return UC({message:c.message,stdin:a?.stdin},g),Mg("cmd_all_timing_prompts_ms")(async()=>{let B;return await Zc(Fi.default.createElement(v1,{...c,onSubmit:d=>{B=d}}),{stdout:process.stderr,...a,exitOnCtrlC:!1}),B})}async function d6({message:a,infoTable:i,confirmationMessage:c="Yes, confirm",cancellationMessage:g="No, cancel",renderOptions:B,defaultValue:d=!0,abortSignal:p,infoMessage:y}){return _x({choices:[{label:c,value:!0,key:"y"},{label:g,value:!1,key:"n"}],message:a,infoTable:i,renderOptions:B,defaultValue:d,isConfirmationPrompt:!0,abortSignal:p,infoMessage:y})}async function p6({renderOptions:a,...i},c=tE){UC({message:i.message,stdin:a?.stdin},c);let g=i.search===void 0,B={search(d){let p=d.toLowerCase();return Promise.resolve({data:i.choices.filter(y=>y.label.toLowerCase().includes(p)||y.group?.toLowerCase().includes(p))})},...g?{searchDebounceMs:0}:{},...i};return Mg("cmd_all_timing_prompts_ms")(async()=>{let d;if(await Zc(Fi.default.createElement(T1,{...B,onSubmit:p=>{d=p}}),{stdout:process.stderr,...a,exitOnCtrlC:!1}),d===void 0)throw new Error("Prompt was interrupted before a selection was made. This can happen if the process received a signal, was terminated, or the prompt was aborted.");return d})}function I6({renderOptions:a,...i}){return IC(Fi.default.createElement(qD,{...i}),{renderOptions:zx(i,a)})}function zx(a,i){if(i?.stdout)return i;let c=KD(a),g=process.stdout.columns;if(g!==void 0&&g>=c)return i;let B=Math.max(g??Lx,c);return{...i,stdout:new pC({columns:B})}}var Lx=80;async function Q6(a,{renderOptions:i,noProgressBar:c}={}){if(Hg()==="json")return Gp(a);let g;return await Zc(Fi.default.createElement(N1,{tasks:a,onComplete:B=>{g=B},noProgressBar:c}),{stdout:process.stderr,...i,exitOnCtrlC:!1}),g}async function Jx({title:a,task:i,retry:c=0,onAbort:g,renderOptions:B}){let d=yd(),p=a,y=!1,Q=g?()=>{y=!0,g()}:void 0,H=async q=>{To({type:"progress",operation:d,status:"started",message:bl(p.value)},{alreadyRendered:!0});let N=_=>{p=_,To({type:"progress",operation:d,status:"updated",message:bl(_.value)},{alreadyRendered:!0}),q(_)};for(let _=0;;_++){let F;try{F=await i(N)}catch(W){if(y)throw W;let z=_<c;if(To({type:"progress",operation:d,status:z?"retrying":"failed",message:bl(p.value)},{alreadyRendered:!0}),!z)throw W;continue}return y||To({type:"progress",operation:d,status:"completed",message:bl(p.value),current:1,total:1},{alreadyRendered:!0}),F}};if(Hg()==="json"){let q=()=>Q?.();g&&process.once("SIGINT",q);try{return await H(()=>{})}finally{g&&process.removeListener("SIGINT",q)}}let x;return await Zc(Fi.default.createElement(G1,{title:a,task:H,onComplete:q=>{x=q},onAbort:Q}),{stdout:process.stderr,...B,exitOnCtrlC:!1}),x}async function h6({renderOptions:a,...i},c=tE){return UC({message:i.message,stdin:a?.stdin},c),Mg("cmd_all_timing_prompts_ms")(async()=>{let g="";return await Zc(Fi.default.createElement(U1,{...i,onSubmit:B=>{g=B}}),{stdout:process.stderr,...a,exitOnCtrlC:!1}),g})}async function y6({renderOptions:a,...i},c=tE){return UC({message:i.message,stdin:a?.stdin},c),Mg("cmd_all_timing_prompts_ms")(async()=>{let g;return await Zc(Fi.default.createElement(jD,{...i,onSubmit:B=>{g=B}}),{stdout:process.stderr,...a,exitOnCtrlC:!1}),g})}var S6=async(a=process.stdin,i=tE,{keys:c}={})=>(UC({message:"Press any key"},i),Mg("cmd_all_timing_prompts_ms")(()=>{let{promise:g,resolve:B,reject:d}=Promise.withResolvers(),p=a.isRaw===!0,y=()=>{a.off("data",Q),p||a.setRawMode(!1),a.unref()},Q=H=>{let x=H.toString();x.includes("")?(y(),Tg("Canceled keypress, User pressed CTRL+C"),d(new h0)):(!c||[...x].some(q=>c.includes(q)))&&(y(),process.nextTick(B))};return p||a.setRawMode(!0),a.on("data",Q),a.ref(),g}));function Yx({stdin:a=void 0,uiDebugOptions:i=tE}={}){return!!(i.skipTTYCheck||a||G0())}function UC({message:a,stdin:i=void 0},c){if(Yx({stdin:i,uiDebugOptions:c}))return;let g=Ug(a),B=`Failed to prompt:
282
+ `).map(B=>B.length))));return Ki.default.createElement(ut,{flexDirection:"column"},i.map((g,B)=>Ki.default.createElement(ut,{key:B,marginBottom:B===i.length-1?0:1,flexDirection:"column"},g.header.length>0&&Ki.default.createElement(ut,{width:c+1},Ki.default.createElement(nt,{color:g.color,bold:!0},f0(g.header))),Ki.default.createElement(ut,{flexGrow:1,flexDirection:"column",gap:1},g.emptyItemsText&&g.items.length===0?Ki.default.createElement(nt,{color:g.color},Ki.default.createElement(tA,{item:{subdued:g.emptyItemsText}})):Ki.default.createElement(Li,{margin:!1,items:g.items,color:g.color,bullet:g.bullet}),g.helperText?Ki.default.createElement(nt,{color:g.color},g.helperText):null))))};R();function Wg(a){let i=Ug(a);return i.endsWith("?")||i.endsWith(":")||i.endsWith(".")?a:g0(a,":")}R();var Pg=yt(Mt(),1),LH=()=>Promise.resolve();function FD(a){return a?.reason?.name==="AbortError"?void 0:a?.reason}function Lo(a,i=LH){let c=Ia(),[g,B]=(0,Pg.useState)(!1);return(0,Pg.useLayoutEffect)(()=>{a?.addEventListener("abort",()=>{i(FD(a)).then(()=>B(!0)).catch(()=>{})})},[]),(0,Pg.useEffect)(()=>{g&&c(FD(a))},[g]),{isAborted:g}}R();var Ih=yt(Mt(),1),ye;(function(a){a.Idle="idle",a.Loading="loading",a.Submitted="submitted",a.Error="error",a.Cancelled="cancelled"})(ye||(ye={}));function Jo({initialAnswer:a}){let[i,c]=(0,Ih.useState)(ye.Idle),[g,B]=(0,Ih.useState)(a);return{promptState:i,setPromptState:c,answer:g,setAnswer:B}}var pe=yt(Mt(),1);var jD=({message:a,confirmation:i,infoTable:c,warningItem:g,onSubmit:B,abortSignal:d})=>{let p=(0,pe.useCallback)(rt=>rt===i?void 0:["Value must be exactly",{userInput:i}],[i]),{oneThird:y,twoThirds:Q}=zi(),{promptState:H,setPromptState:x,answer:q,setAnswer:N}=Jo({initialAnswer:""}),_=Ia(),[F,W]=(0,pe.useState)(void 0),z=H===ye.Error?"red":"cyan",{isAborted:ht}=Lo(d);Ol((rt,It)=>{if(du(rt,It),It.escape&&(x(ye.Cancelled),W(void 0)),It.return){let wt=p(q);wt?(x(ye.Error),W(wt)):x(ye.Submitted)}}),(0,pe.useEffect)(()=>{H===ye.Submitted?(B(!0),_()):H===ye.Cancelled&&(B(!1),_())},[B,H,_]);let pt=H===ye.Submitted||H===ye.Cancelled;return ht?null:pe.default.createElement(ut,{flexDirection:"column",marginBottom:1,width:Q},pe.default.createElement(ut,null,pe.default.createElement(ut,{marginRight:2},pe.default.createElement(nt,null,"?")),pe.default.createElement(tA,{item:Wg(a)})),pt?pe.default.createElement(JH,{cancelled:H===ye.Cancelled}):pe.default.createElement(pe.default.Fragment,null,pe.default.createElement(ut,{flexDirection:"column",gap:1,marginTop:1,marginLeft:3},c?pe.default.createElement(ut,{paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},pe.default.createElement(Up,{table:c})):null,g?pe.default.createElement(ut,{flexDirection:"column"},pe.default.createElement(nt,{color:"red"},Oa.warning," WARNING"),pe.default.createElement(tA,{item:g})):null,pe.default.createElement(ut,null,pe.default.createElement(tA,{item:["Type",{userInput:i},"to confirm, or press Escape to cancel."]}))),pe.default.createElement(ut,{flexDirection:"column",width:y},pe.default.createElement(ut,null,pe.default.createElement(ut,{marginRight:2},pe.default.createElement(nt,{color:z},">")),pe.default.createElement(ut,{flexGrow:1},pe.default.createElement(kg,{value:q,onChange:rt=>{N(rt),x(ye.Idle)},defaultValue:"",color:z}))),xg().platform==="windows"?pe.default.createElement(ut,{marginLeft:3,borderStyle:"single",borderColor:z,borderBottom:!1,borderLeft:!1,borderRight:!1}):pe.default.createElement(ut,{marginLeft:3},pe.default.createElement(nt,{color:z},"\u2594".repeat(y-3))),H===ye.Error&&F?pe.default.createElement(ut,{marginLeft:3},pe.default.createElement(nt,{color:z},pe.default.createElement(tA,{item:F}))):null)))},JH=({cancelled:a})=>pe.default.createElement(ut,null,pe.default.createElement(ut,{width:3},a?pe.default.createElement(nt,{color:"red"},Oa.cross):pe.default.createElement(nt,{color:"cyan"},Oa.tick)),pe.default.createElement(ut,{flexGrow:1},a?pe.default.createElement(nt,{color:"red"},"Cancelled"):pe.default.createElement(nt,{color:"cyan"},"Confirmed")));R();R();R();var qi=yt(Mt(),1),YH="\u2502",KH="\u2551",XD=({containerHeight:a,visibleListSectionLength:i,fullListLength:c,visibleFromIndex:g,noColor:B=!Ti()})=>{let d=a>=4&&B,p=g+i-1,y=d?a-2:a,Q=Math.min(y-1,Math.ceil(Math.min(1,i/c)*y)),H;if(p>=c-1)H=y-Q;else{let W=y-Q,z=c-i;H=Math.max(0,Math.min(y-Q,Math.round(g/z*W)))}let x=y-Q-H,q=B?YH:" ",N=B?KH:" ",_=B?void 0:"gray",F=B?void 0:"cyan";return qi.default.createElement(ut,{flexDirection:"column"},d?qi.default.createElement(nt,null,"\u25B3"):null,qi.default.createElement(ut,{width:1},qi.default.createElement(nt,{backgroundColor:_},q.repeat(H))),qi.default.createElement(ut,{width:1},qi.default.createElement(nt,{backgroundColor:F},N.repeat(Q))),qi.default.createElement(ut,{width:1},qi.default.createElement(nt,{backgroundColor:_},q.repeat(x))),d?qi.default.createElement(nt,null,"\u25BD"):null)};R();var Ai=yt(Mt(),1);import{isDeepStrictEqual as qH}from"node:util";var Hp=class extends Map{first;constructor(i){let c=[],g,B,d=0;for(let p of i){let y={...p,previous:B,next:void 0,index:d};B&&(B.next=y),g??=y,c.push([p.value,y]),d++,B=y}super(c),this.first=g}},FH=(a,i)=>{switch(i.type){case"select-next-option":{if(typeof a.value>"u")return a;let c=a.optionMap.get(a.value);if(!c)return a;let g=c.next;for(;g&&g.disabled;)g=g.next;if(!g)return a;if(!(g.index>a.visibleToIndex))return{...a,value:g.value};let d=g.index,p=d-a.visibleOptionCount+1;return{...a,value:g.value,visibleFromIndex:p,visibleToIndex:d,previousValue:a.value}}case"select-previous-option":{if(typeof a.value>"u")return a;let c=a.optionMap.get(a.value);if(!c)return a;let g=c.previous;for(;g&&g.disabled;)g=g.previous;if(!g)return a;if(!(g.index<a.visibleFromIndex))return{...a,value:g.value};let d=g.index,p=d+a.visibleOptionCount-1;return{...a,value:g.value,visibleFromIndex:d,visibleToIndex:p,previousValue:a.value}}case"select-option":{let c=a.optionMap.get(i.option.value);return c?{...a,value:c.value,previousValue:a.value}:a}case"reset":return i.state;default:return a}},Qh=({visibleOptionCount:a,defaultValue:i,options:c})=>{let g=typeof a=="number"?Math.min(a,c.length):c.length,B=new Hp(c),d=typeof i>"u"?void 0:B.get(i),p=d&&!d.disabled?d:B.first;for(;p&&p.disabled;)p=p.next;return{optionMap:B,visibleOptionCount:g,visibleFromIndex:0,visibleToIndex:g-1,value:p?.value,previousValue:p?.value}},ZD=({visibleOptionCount:a,options:i,defaultValue:c})=>{let[g,B]=(0,Ai.useReducer)(FH,{visibleOptionCount:a,defaultValue:c,options:i},Qh),[d,p]=(0,Ai.useState)(i),[y,Q]=(0,Ai.useState)(a);i!==d&&!qH(i,d)&&(B({type:"reset",state:Qh({visibleOptionCount:a,defaultValue:c,options:i})}),p(i)),a!==y&&(B({type:"reset",state:Qh({visibleOptionCount:a,defaultValue:c,options:i})}),Q(a));let H=(0,Ai.useCallback)(()=>{B({type:"select-next-option"})},[]),x=(0,Ai.useCallback)(()=>{B({type:"select-previous-option"})},[]),q=(0,Ai.useCallback)(({option:_})=>{B({type:"select-option",option:_})},[]),N=(0,Ai.useMemo)(()=>i.slice(g.visibleFromIndex),[i,g.visibleFromIndex]);return{visibleFromIndex:g.visibleFromIndex,visibleToIndex:g.visibleToIndex,value:g.value,visibleOptions:N,selectNextOption:H,selectPreviousOption:x,selectOption:q,previousValue:g.previousValue}};var aA=yt(Mt(),1);var h1=yt(I1(),1);function Nx(a,i){if(!i)return a;let c;try{c=new RegExp(i,"i")}catch{return a}return a.replace(c,g=>$e.bold(g))}function Ux(a){if(a.some(i=>(i.key?.length??0)>1))throw new Error("SelectInput: Keys must be a single character");if(!a.every(i=>typeof i.key<"u"&&i.key.length>0))throw new Error("SelectInput: All items must have keys if one does")}function Hx({item:a,previousItem:i,isSelected:c,highlightedTerm:g,enableShortcuts:B,items:d,hasAnyGroup:p,index:y}){let Q=Nx(a.label,g),H,x;c?x="cyan":a.disabled&&(x="dim"),(typeof i>"u"||a.group!==i.group)&&(H=a.group??(p?"Other":void 0));let q=B&&a.key&&a.key.length>0;return aA.default.createElement(ut,{key:y,flexDirection:"column",marginTop:d.indexOf(a)!==0&&H?1:0,minHeight:H?2:1},H?aA.default.createElement(ut,{marginLeft:3},aA.default.createElement(nt,{bold:!0},H)):null,aA.default.createElement(ut,{key:y,marginLeft:p?3:0},aA.default.createElement(ut,{marginRight:2},c?aA.default.createElement(nt,{color:"cyan"},">"):aA.default.createElement(nt,null," ")),aA.default.createElement(nt,{wrap:"end",color:x},q?`(${a.key}) ${Q}`:Q)))}var Q1=25;function xp({items:a,initialItems:i=a,onChange:c,enableShortcuts:g=!0,focus:B=!0,emptyMessage:d="No items to select.",defaultValue:p,highlightedTerm:y,loading:Q=!1,errorMessage:H,hasMorePages:x=!1,morePagesMessage:q,availableLines:N=Q1,onSubmit:_,inputFixedAreaRef:F,ref:W,groupOrder:z}){let ht=!1;a.length===0&&(a=[{label:d,value:null,disabled:!0}],ht=!0);let pt=a.some(Jt=>typeof Jt.group<"u"),rt=(0,h1.default)(a,Jt=>{if(!Jt.group)return Number.MAX_SAFE_INTEGER+1;if(!z)return Number.MAX_SAFE_INTEGER;let ot=z.indexOf(Jt.group);return ot===-1?Number.MAX_SAFE_INTEGER:ot}),It=rt.some(Jt=>typeof Jt.key<"u"&&Jt.key.length>0);It&&Ux(rt);let wt=Math.min(N,Q1);function Ae(Jt){let ot=new Set(Jt.map(xt=>xt.group).filter(xt=>xt)).size,Dt=Math.ceil(Math.min((wt+1)/3,ot+1));return ot>0?(Dt-1)*2+1:0}let Vt=Ae(rt),Qt=Math.max(2,wt-Vt),Ct=rt.length>Qt,St=ZD({visibleOptionCount:Qt,options:rt,defaultValue:p});(0,aA.useEffect)(()=>{typeof St.value<"u"&&St.previousValue!==St.value&&c?.(rt.find(Jt=>Jt.value===St.value))},[St.previousValue,St.value,rt,c]);let se=Jt=>{Jt.upArrow?St.selectPreviousOption():Jt.downArrow&&St.selectNextOption()},bt=(0,aA.useCallback)(Jt=>{if(St.visibleOptions.map(ot=>ot.key).includes(Jt)){let ot=St.visibleOptions.find(xt=>xt.key===Jt),Dt=rt.find(xt=>xt.value===ot?.value);ot&&!ot.disabled&&(_&&Dt&&_(Dt),St.selectOption({option:ot}))}},[rt,_,St]);Ol((Jt,ot)=>{if(du(Jt,ot),typeof St.value<"u"&&ot.return){let Dt=rt.find(xt=>xt.value===St.value);Dt&&_&&_(Dt)}g&&Jt.length>0&&Object.values(ot).every(Dt=>!Dt)?bt(Jt):se(ot)},{isActive:B});let{twoThirds:He}=zi();if(Q)return aA.default.createElement(ut,{marginLeft:3},aA.default.createElement(nt,{dimColor:!0},"Loading..."));if(H&&H.length>0)return aA.default.createElement(ut,{marginLeft:3},aA.default.createElement(nt,{color:"red"},H));{let Jt=i.length+Ae(i),Dt=Math.max(pt?5:2,Math.min(wt,Jt));return aA.default.createElement(ut,{flexDirection:"column",ref:W,gap:1,width:He},aA.default.createElement(ut,{flexDirection:"row",height:Dt,width:"100%"},aA.default.createElement(ut,{flexDirection:"column",overflowY:"hidden",flexGrow:1},St.visibleOptions.map((xt,_t)=>aA.default.createElement(Hx,{key:_t,item:xt,previousItem:St.visibleOptions[_t-1],highlightedTerm:y,isSelected:xt.value===St.value,items:St.visibleOptions,enableShortcuts:g,hasAnyGroup:pt,index:_t}))),Ct?aA.default.createElement(XD,{containerHeight:Dt,visibleListSectionLength:Qt,fullListLength:rt.length,visibleFromIndex:St.visibleFromIndex}):null),aA.default.createElement(ut,{ref:F},ht?aA.default.createElement(ut,{marginLeft:3},aA.default.createElement(nt,{dimColor:!0},"Try again with a different keyword.")):aA.default.createElement(ut,{marginLeft:3,flexDirection:"column"},aA.default.createElement(nt,{dimColor:!0},`Press ${Oa.arrowUp}${Oa.arrowDown} arrows to select, enter ${It?"or a shortcut ":""}to confirm.`),x?aA.default.createElement(nt,null,aA.default.createElement(nt,{bold:!0},"1-",rt.length," of many"),q?` ${q}`:null):null)))}}R();R();var DC=yt(Mt(),1),y1=({message:{title:{color:a,text:i},body:c}})=>DC.default.createElement(ut,{flexDirection:"column",gap:1},DC.default.createElement(nt,{color:a},DC.default.createElement(tA,{item:i})),DC.default.createElement(tA,{item:c}));var cA=yt(Mt(),1);var S1=24,Mp=({message:a,infoTable:i,abortSignal:c,infoMessage:g,header:B,state:d,input:p,submittedAnswerLabel:y})=>{let{stdout:Q}=hs(),[H,x]=(0,cA.useState)(0),[q,N]=(0,cA.useState)(0),[_,F]=(0,cA.useState)(0),W=(Q.rows??S1)-q-_,[z,ht]=(0,cA.useState)(W),pt=(0,cA.useCallback)(Qt=>{if(Qt!==null){let{height:Ct}=dC(Qt);H!==Ct&&x(Ct)}},[H]),rt=(0,cA.useCallback)(Qt=>{if(Qt!==null){let{height:Ct}=dC(Qt);N(Ct)}},[]),It=(0,cA.useCallback)(Qt=>{if(Qt!==null){let{height:Ct}=dC(Qt);F(Ct+3)}},[]),wt=(0,cA.cloneElement)(p,{availableLines:z,inputFixedAreaRef:It});(0,cA.useLayoutEffect)(()=>{function Qt(){let Ct=(Q.rows??S1)-q-_;Ct!==z&&ht(Ct)}return Qt(),Q.on("resize",Qt),()=>{Q.off("resize",Qt)}},[H,q,Q,z,_]);let{isAborted:Ae}=Lo(c),Vt=i&&Object.keys(i).length>0;return Ae?null:cA.default.createElement(ut,{flexDirection:"column",marginBottom:1,ref:pt},cA.default.createElement(ut,{ref:rt,flexDirection:"column"},cA.default.createElement(ut,null,cA.default.createElement(ut,{marginRight:2},cA.default.createElement(nt,null,"?")),cA.default.createElement(tA,{item:Wg(a)}),B),(Vt||g)&&d!==ye.Submitted?cA.default.createElement(ut,{marginTop:1,marginLeft:3,paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},g?cA.default.createElement(y1,{message:g}):null,Vt?cA.default.createElement(Up,{table:i}):null):null),d===ye.Submitted&&y?cA.default.createElement(ut,null,cA.default.createElement(ut,{width:3},cA.default.createElement(nt,{color:"cyan"},Oa.tick)),cA.default.createElement(nt,{color:"cyan"},y)):cA.default.createElement(ut,{marginTop:1},wt))};var Ss=yt(Mt(),1);function v1({message:a,choices:i,infoTable:c,infoMessage:g,onSubmit:B,defaultValue:d,abortSignal:p,groupOrder:y}){if(i.length===0)throw new Error("SelectPrompt requires at least one choice");let Q=Ia(),{promptState:H,setPromptState:x,answer:q,setAnswer:N}=Jo({initialAnswer:void 0}),_=(0,Ss.useCallback)(F=>{N(F),x(ye.Submitted)},[N,x]);return(0,Ss.useEffect)(()=>{H===ye.Submitted&&q&&(B(q.value),Q())},[q,B,H,Q]),Ss.default.createElement(Mp,{message:a,state:H,submittedAnswerLabel:q?.label,infoTable:c,infoMessage:g,abortSignal:p,input:Ss.default.createElement(xp,{defaultValue:d,items:i,onSubmit:_,groupOrder:y})})}R();R();R();var kc=yt(Mt(),1);var xx="#96BF48",Mx=350,D1=({title:a,noColor:i=!Ti()})=>{let[c,g]=(0,kc.useState)(!0);return(0,kc.useLayoutEffect)(()=>{let B=setInterval(()=>{g(d=>!d)},Mx);return()=>{clearInterval(B)}},[]),kc.default.createElement(nt,null,kc.default.createElement(nt,{bold:!0,italic:!0},"S"),kc.default.createElement(nt,{bold:!0,color:i?void 0:xx},c?">":" "),` ${a} ...`)};var yh=yt(Mt(),1);var Tp=({title:a,noColor:i,noProgressBar:c})=>{let{stdout:g}=hs(),B=!!g.isTTY,d=i??!Ti();return!B||c?yh.default.createElement(nt,null,a," ..."):yh.default.createElement(D1,{title:a,noColor:d})};R();var RC=yt(Mt(),1);function Sh(a,{onFulfilled:i=()=>{},onRejected:c=()=>{}}={}){let g=Ia(),[B,d]=(0,RC.useState)(null);(0,RC.useEffect)(()=>{a().then(p=>{i(p),d({})}).catch(p=>{c(p),d({error:p})})},[]),(0,RC.useEffect)(()=>{B!==null&&g(B.error)},[B])}R();function R1(){let{isRawModeSupported:a}=Xc();Ol((i,c)=>{if(du(i,c),c.return)return null},{isActive:!!a})}R();async function Gp(a,i=()=>{}){let c={},g=yd(),B,d=async p=>{try{return i(p),await Tx(p,c,y=>{To({type:"progress",operation:g,status:y==="started"&&B?"updated":y,message:vh(p)},{alreadyRendered:!0}),B=p})}catch(y){throw To({type:"progress",operation:g,status:"failed",message:vh(p)},{alreadyRendered:!0}),y}};for(let p of a){let y=await d(p);if(Array.isArray(y)&&y.length>0&&y.every(Q=>"task"in Q))for(let Q of y)await d(Q)}return B&&To({type:"progress",operation:g,status:"completed",message:vh(B),current:1,total:1},{alreadyRendered:!0}),c}async function Tx(a,i,c){a.retryCount=0,a.errors=[];let g=a.retry&&a.retry>0?a.retry+1:1,B=!1;for(let d=1;d<=g;d++)try{return a.skip?.(i)?void 0:(c(B?"retrying":"started"),B=!0,await a.task(i,a))}catch(p){if(d===g)throw p;a.errors.push(p),a.retryCount=d}}function vh(a){return bl(typeof a.title=="string"?a.title:a.title.value)}var NC=yt(Mt(),1),$g;(function(a){a.Loading="loading",a.Success="success",a.Failure="failure"})($g||($g={}));var Gx=()=>{};function N1({tasks:a,silent:i=FB(),onComplete:c=Gx,abortSignal:g,noColor:B,noProgressBar:d=!1}){let[p,y]=(0,NC.useState)(a[0]),[Q,H]=(0,NC.useState)($g.Loading);Sh(()=>Gp(a,y),{onFulfilled:N=>{H($g.Success),c(N)},onRejected:()=>{H($g.Failure)}}),R1();let{isAborted:x}=Lo(g);if(i)return null;let q=typeof p.title=="string"?p.title:p.title.value;return Q===$g.Loading&&!x?NC.default.createElement(Tp,{title:q,noColor:B,noProgressBar:d}):null}R();var eA=yt(Mt(),1);var U1=({message:a,onSubmit:i,validate:c,defaultValue:g="",password:B=!1,allowEmpty:d=!1,emptyDisplayedValue:p="(empty)",abortSignal:y,preview:Q,initialAnswer:H=""})=>{if(B&&g)throw new Error("Can't use defaultValue with password");let x=(0,eA.useCallback)(Qt=>{if(c)return c(Qt);if(Qt.length===0&&!d)return"Type an answer to the prompt."},[d,c]),{oneThird:q}=zi(),{promptState:N,setPromptState:_,answer:F,setAnswer:W}=Jo({initialAnswer:H}),z=F.length>0?F:g,ht=z==="",pt=ht?p:z,rt=Ia(),[It,wt]=(0,eA.useState)(void 0),Ae=N===ye.Error?"red":"cyan",{isAborted:Vt}=Lo(y);return Ol((Qt,Ct)=>{if(du(Qt,Ct),Ct.return){let St=x(z);St?(_(ye.Error),wt(St)):_(ye.Submitted)}}),(0,eA.useEffect)(()=>{N===ye.Submitted&&(i(z),rt())},[z,i,N,rt]),Vt?null:eA.default.createElement(ut,{flexDirection:"column",marginBottom:1,width:q},eA.default.createElement(ut,null,eA.default.createElement(ut,{marginRight:2},eA.default.createElement(nt,null,"?")),eA.default.createElement(tA,{item:Wg(a)})),N===ye.Submitted?eA.default.createElement(ut,null,eA.default.createElement(ut,{width:3},eA.default.createElement(nt,{color:"cyan"},Oa.tick)),eA.default.createElement(ut,{flexGrow:1},eA.default.createElement(nt,{color:"cyan",dimColor:ht},B?"*".repeat(F.length):pt))):eA.default.createElement(ut,{flexDirection:"column"},eA.default.createElement(ut,null,eA.default.createElement(ut,{marginRight:2},eA.default.createElement(nt,{color:Ae},">")),eA.default.createElement(ut,{flexGrow:1},eA.default.createElement(kg,{value:F,onChange:Qt=>{W(Qt),_(ye.Idle)},defaultValue:g,color:Ae,password:B}))),xg().platform==="windows"?eA.default.createElement(ut,{marginLeft:3,borderStyle:"single",borderColor:Ae,borderBottom:!1,borderLeft:!1,borderRight:!1}):eA.default.createElement(ut,{marginLeft:3},eA.default.createElement(nt,{color:Ae},"\u2594".repeat(q-3))),N===ye.Error?eA.default.createElement(ut,{marginLeft:3},eA.default.createElement(nt,{color:Ae},It)):null,N!==ye.Error&&Q?eA.default.createElement(ut,{marginLeft:3},eA.default.createElement(tA,{item:Q(z)})):null))};R();R();var bx=yt(rR(),1),H1=yt(QR(),1),x1=yt(hR(),1);function HL(a,i,c){return(0,H1.default)(a,i,c)}function M1(a,i,c){return(0,x1.default)(a,i,c)}var Sn=yt(Mt(),1);var Ox=5,wx=400;function T1({message:a,choices:i,infoTable:c,onSubmit:g,search:B,hasMorePages:d=!1,abortSignal:p,infoMessage:y,groupOrder:Q,searchDebounceMs:H=wx}){let x=Ia(),[q,N]=(0,Sn.useState)(""),[_,F]=(0,Sn.useState)(i),W=d||i.length>Ox,[z,ht]=(0,Sn.useState)(d),{promptState:pt,setPromptState:rt,answer:It,setAnswer:wt}=Jo({initialAnswer:void 0}),Ae=(0,Sn.useCallback)(async He=>await B(He),[B]),Vt=(0,Sn.useCallback)(He=>{pt===ye.Idle&&(wt(He),rt(ye.Submitted))},[pt,wt,rt]);(0,Sn.useEffect)(()=>{pt===ye.Submitted&&It&&(N(""),g(It.value),x())},[It,g,pt,x]);let Qt=(0,Sn.useRef)(),Ct=(0,Sn.useRef)("");Ct.current=q;let St=(0,Sn.useRef)(i);St.current=i;let se=(0,Sn.useRef)(d);se.current=d;let bt=Sn.default.useMemo(()=>M1(He=>{Qt.current=setTimeout(()=>{rt(ye.Loading)},100),Ae(He).then(Jt=>{Ct.current.length===0?(F(St.current),ht(se.current)):(F(Jt.data),ht(Jt.meta?.hasNextPage??!1)),rt(ye.Idle)}).catch(()=>{rt(ye.Error)}).finally(()=>{clearTimeout(Qt.current)})},H,{leading:!0,trailing:!0}),[Ae,rt,H]);return Sn.default.createElement(Mp,{message:a,state:pt,infoTable:c,infoMessage:y,abortSignal:p,header:pt!==ye.Submitted&&W?Sn.default.createElement(ut,{marginLeft:3},Sn.default.createElement(kg,{value:q,onChange:He=>{N(He),Ct.current=He,He.length>0?bt(He):(bt.cancel(),rt(ye.Idle),F(i))},placeholder:"Type to search..."})):null,submittedAnswerLabel:It?.label,input:Sn.default.createElement(xp,{items:_,initialItems:i,enableShortcuts:!1,emptyMessage:"No results found.",highlightedTerm:q,loading:pt===ye.Loading,errorMessage:pt===ye.Error?"There has been an error while searching. Please try again later.":void 0,hasMorePages:z,morePagesMessage:"Find what you're looking for by typing its name.",onSubmit:Vt,groupOrder:Q})})}R();var Yo=yt(Mt(),1);var G1=({task:a,title:i,onComplete:c,onAbort:g,noColor:B})=>{let[d,p]=(0,Yo.useState)(i),[y,Q]=(0,Yo.useState)(!1),[H,x]=(0,Yo.useState)(null),q=Ia(),{isRawModeSupported:N}=Xc();return Ol((_,F)=>{g?du(_,F,g):du(_,F)},{isActive:!!N}),(0,Yo.useEffect)(()=>{a(p).then(_=>{Q(!0),c?.(_),x({})}).catch(_=>{Q(!0),x({error:_})})},[a,c]),(0,Yo.useEffect)(()=>{H!==null&&q(H.error)},[H,q]),y?null:Yo.default.createElement(Tp,{title:d.value,noColor:B})};var Fi=yt(Mt()),tE={skipTTYCheck:!1};async function g6({renderOptions:a,...i}){let c=i.abortSignal??new Rd().signal;return Hg()==="json"&&!i.keepRunningAfterProcessesResolve?i.processes.length===0?void 0:Jx({title:VI`Running concurrent processes`,task:async()=>eD({...i,abortSignal:c})}):Zc(Fi.default.createElement(AD,{...i,abortSignal:c}),a)}function E6(a){return yC({...a,type:"info"})}function B6(a){return yC({...a,type:"success"})}function U0(a){return yC({...a,type:"warning"})}function C6(a){return yC({...a,type:"error"})}function m6(a,{renderOptions:i}={}){return IC(Fi.default.createElement(JD,{error:a}),{logLevel:"error",renderOptions:i})}async function _x({renderOptions:a,isConfirmationPrompt:i,...c},g=tE){return UC({message:c.message,stdin:a?.stdin},g),Mg("cmd_all_timing_prompts_ms")(async()=>{let B;return await Zc(Fi.default.createElement(v1,{...c,onSubmit:d=>{B=d}}),{stdout:process.stderr,...a,exitOnCtrlC:!1}),B})}async function d6({message:a,infoTable:i,confirmationMessage:c="Yes, confirm",cancellationMessage:g="No, cancel",renderOptions:B,defaultValue:d=!0,abortSignal:p,infoMessage:y}){return _x({choices:[{label:c,value:!0,key:"y"},{label:g,value:!1,key:"n"}],message:a,infoTable:i,renderOptions:B,defaultValue:d,isConfirmationPrompt:!0,abortSignal:p,infoMessage:y})}async function p6({renderOptions:a,...i},c=tE){UC({message:i.message,stdin:a?.stdin},c);let g=i.search===void 0,B={search(d){let p=d.toLowerCase();return Promise.resolve({data:i.choices.filter(y=>y.label.toLowerCase().includes(p)||y.group?.toLowerCase().includes(p))})},...g?{searchDebounceMs:0}:{},...i};return Mg("cmd_all_timing_prompts_ms")(async()=>{let d;if(await Zc(Fi.default.createElement(T1,{...B,onSubmit:p=>{d=p}}),{stdout:process.stderr,...a,exitOnCtrlC:!1}),d===void 0)throw new Error("Prompt was interrupted before a selection was made. This can happen if the process received a signal, was terminated, or the prompt was aborted.");return d})}function I6({renderOptions:a,...i}){return IC(Fi.default.createElement(qD,{...i}),{renderOptions:zx(i,a)})}function zx(a,i){if(i?.stdout)return i;let c=KD(a),g=process.stdout.columns;if(g!==void 0&&g>=c)return i;let B=Math.max(g??Lx,c);return{...i,stdout:new pC({columns:B})}}var Lx=80;async function Q6(a,{renderOptions:i,noProgressBar:c}={}){if(Hg()==="json")return Gp(a);let g;return await Zc(Fi.default.createElement(N1,{tasks:a,onComplete:B=>{g=B},noProgressBar:c}),{stdout:process.stderr,...i,exitOnCtrlC:!1}),g}async function Jx({title:a,task:i,retry:c=0,onAbort:g,renderOptions:B}){let d=yd(),p=a,y=!1,Q=g?()=>{y=!0,g()}:void 0,H=async q=>{To({type:"progress",operation:d,status:"started",message:bl(p.value)},{alreadyRendered:!0});let N=_=>{p=_,To({type:"progress",operation:d,status:"updated",message:bl(_.value)},{alreadyRendered:!0}),q(_)};for(let _=0;;_++){let F;try{F=await i(N)}catch(W){if(y)throw W;let z=_<c;if(To({type:"progress",operation:d,status:z?"retrying":"failed",message:bl(p.value)},{alreadyRendered:!0}),!z)throw W;continue}return y||To({type:"progress",operation:d,status:"completed",message:bl(p.value),current:1,total:1},{alreadyRendered:!0}),F}};if(Hg()==="json"){let q=()=>Q?.();g&&process.once("SIGINT",q);try{return await H(()=>{})}finally{g&&process.removeListener("SIGINT",q)}}let x;return await Zc(Fi.default.createElement(G1,{title:a,task:H,onComplete:q=>{x=q},onAbort:Q}),{stdout:process.stderr,...B,exitOnCtrlC:!1}),x}async function h6({renderOptions:a,...i},c=tE){return UC({message:i.message,stdin:a?.stdin},c),Mg("cmd_all_timing_prompts_ms")(async()=>{let g="";return await Zc(Fi.default.createElement(U1,{...i,onSubmit:B=>{g=B}}),{stdout:process.stderr,...a,exitOnCtrlC:!1}),g})}async function y6({renderOptions:a,...i},c=tE){return UC({message:i.message,stdin:a?.stdin},c),Mg("cmd_all_timing_prompts_ms")(async()=>{let g;return await Zc(Fi.default.createElement(jD,{...i,onSubmit:B=>{g=B}}),{stdout:process.stderr,...a,exitOnCtrlC:!1}),g})}var S6=async(a=process.stdin,i=tE,{keys:c}={})=>(UC({message:"Press any key"},i),Mg("cmd_all_timing_prompts_ms")(()=>{let{promise:g,resolve:B,reject:d}=Promise.withResolvers(),p=a.isRaw===!0,y=()=>{a.off("data",Q),p||a.setRawMode(!1),a.unref()},Q=H=>{let x=H.toString();x.includes("")?(y(),Tg("Canceled keypress, User pressed CTRL+C"),d(new h0)):(!c||[...x].some(q=>c.includes(q)))&&(y(),process.nextTick(B))};return p||a.setRawMode(!0),a.on("data",Q),a.ref(),g}));function Yx({stdin:a=void 0,uiDebugOptions:i=tE}={}){return!!(i.skipTTYCheck||a||G0())}function UC({message:a,stdin:i=void 0},c){if(Yx({stdin:i,uiDebugOptions:c}))return;let g=Ug(a),B=`Failed to prompt:
283
283
 
284
284
  ${VI`${D0.cyan(g)}`.value}
285
285
 
@@ -1 +1 @@
1
- import{a as s}from"./chunk-6BYHL3DS.js";import{g as r,h as n,i as h}from"./chunk-CZNUBAAG.js";import{i as m}from"./chunk-TD6JBHUS.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var c=t=>`Development theme #${t} could not be found. Please create a new development theme.`,E="No development theme ID has been set. Please create a development theme first.",p=class extends s{context="Development";constructor(e){super(e),this.themeId=r()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?c(this.themeId):E);return e}setTheme(e){n(e)}removeTheme(){h()}};export{p as a};
1
+ import{a as s}from"./chunk-TZOB52QK.js";import{g as r,h as n,i as h}from"./chunk-VVHJ2AUF.js";import{j as m}from"./chunk-FJOVMEPN.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var c=t=>`Development theme #${t} could not be found. Please create a new development theme.`,E="No development theme ID has been set. Please create a development theme first.",p=class extends s{context="Development";constructor(e){super(e),this.themeId=r()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?c(this.themeId):E);return e}setTheme(e){n(e)}removeTheme(){h()}};export{p as a};