shopify 4.9.0 → 4.9.1

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 (323) hide show
  1. package/dist/analytics-EPKJADE2.js +1 -0
  2. package/dist/analytics-TVCGKQGZ.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-ZPCCSPAE.js → chunk-23ITMFUO.js} +1 -1
  5. package/dist/{chunk-CHLSNYF7.js → chunk-254XYKPN.js} +1 -1
  6. package/dist/{chunk-4Y22EM45.js → chunk-2AAHKMPP.js} +1 -1
  7. package/dist/{chunk-P3Z5RLVV.js → chunk-2AZXDU2R.js} +1 -1
  8. package/dist/{chunk-7Y4X5I6N.js → chunk-2FHVYY3B.js} +1 -1
  9. package/dist/{chunk-DGMRL5DQ.js → chunk-2KBTFKSM.js} +1 -1
  10. package/dist/{chunk-2OHSGC4Q.js → chunk-2NBNVDDA.js} +1 -1
  11. package/dist/{chunk-CACPRKUF.js → chunk-2QV5FHXJ.js} +1 -1
  12. package/dist/{chunk-7DRKDQRT.js → chunk-2RVMF4QP.js} +1 -1
  13. package/dist/{chunk-PGTKKP2B.js → chunk-2TOIR7YQ.js} +1 -1
  14. package/dist/chunk-32B4LIKH.js +1 -0
  15. package/dist/{chunk-Q3O3AFZT.js → chunk-33D7HGAI.js} +1 -1
  16. package/dist/{chunk-QJST4LZX.js → chunk-3GVSG4S6.js} +1 -1
  17. package/dist/{chunk-Y5ZN62VF.js → chunk-3MEL3WLG.js} +1 -1
  18. package/dist/{chunk-ZHJ6KA43.js → chunk-3UZYLXCB.js} +1 -1
  19. package/dist/{chunk-6DHY67FO.js → chunk-3VOMVINB.js} +1 -1
  20. package/dist/{chunk-3ZK5JZLY.js → chunk-3VXXYY6S.js} +1 -1
  21. package/dist/{chunk-D3K42KBL.js → chunk-3WMFKHIM.js} +1 -1
  22. package/dist/{chunk-Q34PKJRR.js → chunk-46IUD46F.js} +1 -1
  23. package/dist/{chunk-5HONV6NQ.js → chunk-4AXLWDKW.js} +1 -1
  24. package/dist/{chunk-55PABKRC.js → chunk-55JDA75S.js} +1 -1
  25. package/dist/{chunk-NGN7U2UF.js → chunk-5CANB25O.js} +1 -1
  26. package/dist/{chunk-IISE7SBT.js → chunk-5I5HKOQU.js} +1 -1
  27. package/dist/{chunk-DKJPE42V.js → chunk-5KILOX2V.js} +1 -1
  28. package/dist/{chunk-XBSWZ6BT.js → chunk-5MJX7RKQ.js} +1 -1
  29. package/dist/{chunk-QBGSSUJP.js → chunk-5UDBNXNH.js} +1 -1
  30. package/dist/{chunk-JOJRABPY.js → chunk-5ZSN73EA.js} +1 -1
  31. package/dist/{chunk-BPIQ4YTW.js → chunk-63GEZEYP.js} +1 -1
  32. package/dist/{chunk-LSWFHTJT.js → chunk-6WGHVCYY.js} +1 -1
  33. package/dist/{chunk-2Q3WIH7S.js → chunk-77QKJLBG.js} +1 -1
  34. package/dist/{chunk-CPFAATMO.js → chunk-77QYKF34.js} +1 -1
  35. package/dist/{chunk-6RBCFXJT.js → chunk-7AD5YCLL.js} +1 -1
  36. package/dist/{chunk-HSZC2LBB.js → chunk-7H4IM6PX.js} +1 -1
  37. package/dist/{chunk-7ZSN2QT5.js → chunk-7IS6Q756.js} +1 -1
  38. package/dist/{chunk-7QQPAT4L.js → chunk-7UV53AU2.js} +1 -1
  39. package/dist/{chunk-GQZPGTG7.js → chunk-7UZO72KN.js} +2 -2
  40. package/dist/{chunk-3AASYIOA.js → chunk-7WWPAHVE.js} +1 -1
  41. package/dist/{chunk-SDFO7P2M.js → chunk-7ZONBOEZ.js} +1 -1
  42. package/dist/chunk-A6OSIGQI.js +1 -0
  43. package/dist/{chunk-SXPWOYLT.js → chunk-ADIHYUQC.js} +1 -1
  44. package/dist/{chunk-IUZZWXJG.js → chunk-AJOTU26E.js} +1 -1
  45. package/dist/{chunk-2KLXRVGQ.js → chunk-AKSOCKVF.js} +38 -38
  46. package/dist/{chunk-2YFB3PTV.js → chunk-AZCPTV4A.js} +1 -1
  47. package/dist/{chunk-TJJVX7CU.js → chunk-B4YDR22W.js} +1 -1
  48. package/dist/{chunk-SDJNAUU6.js → chunk-B7Y2LMPU.js} +1 -1
  49. package/dist/{chunk-YQQHBFMA.js → chunk-BATQEAGE.js} +1 -1
  50. package/dist/{chunk-SGBLCVUX.js → chunk-C4QR7Z4N.js} +1 -1
  51. package/dist/{chunk-3DMDSAWK.js → chunk-C7YSU4R5.js} +1 -1
  52. package/dist/{chunk-E75DJTAF.js → chunk-CKLS5LTU.js} +1 -1
  53. package/dist/{chunk-YJWNM4XO.js → chunk-COFGQT76.js} +2 -2
  54. package/dist/{chunk-2LZQM5JG.js → chunk-CPKLTBLZ.js} +1 -1
  55. package/dist/{chunk-FW5HGFSZ.js → chunk-CUZQRXTV.js} +3 -3
  56. package/dist/{chunk-W7CBJNXD.js → chunk-DCSSFNW7.js} +1 -1
  57. package/dist/{chunk-2YRVHJEY.js → chunk-DEY5P63E.js} +1 -1
  58. package/dist/{chunk-OBYY45BX.js → chunk-DP7SBNLN.js} +1 -1
  59. package/dist/{chunk-77B77IGP.js → chunk-DREP3FRJ.js} +1 -1
  60. package/dist/{chunk-OG7SF4FU.js → chunk-DUWS6Q7C.js} +1 -1
  61. package/dist/{chunk-SJARQZVN.js → chunk-DUWU7CL7.js} +1 -1
  62. package/dist/{chunk-6IL3B5Z5.js → chunk-DYHRCMH6.js} +1 -1
  63. package/dist/{chunk-C6FZII5S.js → chunk-DZS4GBQX.js} +1 -1
  64. package/dist/{chunk-VFP3PUGZ.js → chunk-EDLID4PK.js} +1 -1
  65. package/dist/{chunk-2W6M7YDY.js → chunk-EVQPVO4P.js} +1 -1
  66. package/dist/{chunk-GDQLA5NB.js → chunk-EYB45DUG.js} +1 -1
  67. package/dist/{chunk-44QTWXOJ.js → chunk-F34MAI7X.js} +1 -1
  68. package/dist/{chunk-72HS7MHV.js → chunk-FJCNEHTH.js} +1 -1
  69. package/dist/{chunk-FL34EOXG.js → chunk-FNITLQDL.js} +1 -1
  70. package/dist/{chunk-A54V5UCD.js → chunk-FROK2K3X.js} +1 -1
  71. package/dist/{chunk-LQLFMDVD.js → chunk-GF75CMTJ.js} +1 -1
  72. package/dist/{chunk-74HXMIDM.js → chunk-GHO2S3W3.js} +1 -1
  73. package/dist/{chunk-ADW7ECNU.js → chunk-GILHUPUG.js} +1 -1
  74. package/dist/{chunk-YD66PU3Y.js → chunk-GPRUQBQX.js} +1 -1
  75. package/dist/{chunk-XTYSJIZY.js → chunk-GRKZRK4G.js} +1 -1
  76. package/dist/{chunk-G7OIACY5.js → chunk-H3QLPW7Q.js} +1 -1
  77. package/dist/{chunk-3SG5EJFC.js → chunk-HJ3DOUAL.js} +1 -1
  78. package/dist/{chunk-IBTQO3JD.js → chunk-HKNFZUAM.js} +1 -1
  79. package/dist/{chunk-53U6XS3J.js → chunk-HQK6QRXN.js} +1 -1
  80. package/dist/{chunk-OASB6XPV.js → chunk-HT2JVMLK.js} +1 -1
  81. package/dist/{chunk-55NKAIIT.js → chunk-HVOYSAB3.js} +1 -1
  82. package/dist/{chunk-LV2IWYGL.js → chunk-I4FS7HYY.js} +1 -1
  83. package/dist/{chunk-QTEWTPAQ.js → chunk-ICFM55ZS.js} +1 -1
  84. package/dist/{chunk-ZO4IBP4B.js → chunk-IPWU2ALH.js} +1 -1
  85. package/dist/{chunk-AD4S2VEI.js → chunk-IQ4VOPT7.js} +1 -1
  86. package/dist/{chunk-JWDUSMCA.js → chunk-ISIPFEFB.js} +1 -1
  87. package/dist/{chunk-5RL6DKWR.js → chunk-IUUKRTKF.js} +1 -1
  88. package/dist/{chunk-VFO5OYQ4.js → chunk-J4SJHG3M.js} +1 -1
  89. package/dist/{chunk-O6E7YL7N.js → chunk-JCOQDVEB.js} +1 -1
  90. package/dist/{chunk-5HEBS5DG.js → chunk-JCVQB6MX.js} +1 -1
  91. package/dist/{chunk-EYSZRIUL.js → chunk-JF47WERF.js} +1 -1
  92. package/dist/{chunk-UFU2LGFK.js → chunk-JJ4MYCVU.js} +1 -1
  93. package/dist/{chunk-IWML2HLC.js → chunk-JOEWOCHY.js} +1 -1
  94. package/dist/{chunk-E5ND6RBL.js → chunk-JSGOBMF6.js} +1 -1
  95. package/dist/{chunk-4WACZNFF.js → chunk-JWQBRHVY.js} +1 -1
  96. package/dist/{chunk-RHNFWHFY.js → chunk-K5KUOPEF.js} +1 -1
  97. package/dist/{chunk-SKRUMRB4.js → chunk-KCHERKZO.js} +1 -1
  98. package/dist/{chunk-JQKB3D37.js → chunk-KVZXRZ7U.js} +1 -1
  99. package/dist/{chunk-XCNJL7ES.js → chunk-KXSUEB4Y.js} +1 -1
  100. package/dist/{chunk-NTVEJYKI.js → chunk-LAHZ6FO5.js} +1 -1
  101. package/dist/{chunk-4TQFTZVD.js → chunk-LBBYCPZP.js} +1 -1
  102. package/dist/{chunk-6ILP6QCH.js → chunk-LEFAUWKH.js} +1 -1
  103. package/dist/{chunk-GVRFO4CV.js → chunk-LIB64ZJW.js} +1 -1
  104. package/dist/{chunk-4A7FPJVT.js → chunk-LOKVWZD2.js} +2 -2
  105. package/dist/{chunk-Z3XIZMEM.js → chunk-LRKJSNM3.js} +1 -1
  106. package/dist/{chunk-3WVEL423.js → chunk-MDMKTILJ.js} +1 -1
  107. package/dist/{chunk-WCAGYCT7.js → chunk-MEFJND2V.js} +1 -1
  108. package/dist/{chunk-SW5EWGBJ.js → chunk-MFXBSQDH.js} +1 -1
  109. package/dist/{chunk-B4RPJYDH.js → chunk-MIMOKFDI.js} +1 -1
  110. package/dist/chunk-MINDMVTH.js +1 -0
  111. package/dist/{chunk-QSKOR3ED.js → chunk-MZJKZLCC.js} +1 -1
  112. package/dist/{chunk-DYA5UUXL.js → chunk-NE32WJR5.js} +1 -1
  113. package/dist/{chunk-BOFCBTX7.js → chunk-NGQDG4CJ.js} +1 -1
  114. package/dist/{chunk-VZUHMW5E.js → chunk-NHEUJKAO.js} +1 -1
  115. package/dist/{chunk-R757TSQ6.js → chunk-NSHKVJST.js} +1 -1
  116. package/dist/{chunk-6GA56I3E.js → chunk-NTFIW3VK.js} +1 -1
  117. package/dist/{chunk-WU7MSL3I.js → chunk-NWBAD3AV.js} +1 -1
  118. package/dist/{chunk-7IGMIDKK.js → chunk-NYNSMHKY.js} +1 -1
  119. package/dist/{chunk-ECEOBSGD.js → chunk-NZRQKFUB.js} +1 -1
  120. package/dist/{chunk-WPUQTUDX.js → chunk-OJ7KRWUH.js} +1 -1
  121. package/dist/{chunk-KLYJDAP6.js → chunk-OKX6PKAW.js} +1 -1
  122. package/dist/{chunk-3T2WMZHC.js → chunk-ON3YXHON.js} +1 -1
  123. package/dist/{chunk-5BLXN5WU.js → chunk-OSA6BKSU.js} +1 -1
  124. package/dist/{chunk-AS2O62JX.js → chunk-OUSRNKZG.js} +1 -1
  125. package/dist/{chunk-PZHE37Z4.js → chunk-OVOOQFRY.js} +1 -1
  126. package/dist/{chunk-CMICT4XI.js → chunk-P676C7UT.js} +1 -1
  127. package/dist/{chunk-LYPNQFWX.js → chunk-P6ID3ULA.js} +1 -1
  128. package/dist/chunk-PCKWLJW2.js +1 -0
  129. package/dist/{chunk-BJOJNAKH.js → chunk-PTS7J2JO.js} +1 -1
  130. package/dist/{chunk-LOTGSNS5.js → chunk-QEEA2KEN.js} +1 -1
  131. package/dist/{chunk-ZUVAHONX.js → chunk-QEF43PR2.js} +1 -1
  132. package/dist/{chunk-QAXFCAOV.js → chunk-QF6EH4HX.js} +1 -1
  133. package/dist/{chunk-KVROYIUQ.js → chunk-QH5R32AA.js} +1 -1
  134. package/dist/{chunk-QILWHHAQ.js → chunk-QNR3U4IO.js} +1 -1
  135. package/dist/{chunk-TO7TXDLU.js → chunk-QPCDSJ4J.js} +1 -1
  136. package/dist/{chunk-MRVQ6XRW.js → chunk-QZDFPNYT.js} +1 -1
  137. package/dist/{chunk-XFZDFDZV.js → chunk-RDCHRPKV.js} +1 -1
  138. package/dist/{chunk-I4FGM6UH.js → chunk-RFB7RXTA.js} +1 -1
  139. package/dist/{chunk-JTPVSO6Y.js → chunk-RFDOSK57.js} +1 -1
  140. package/dist/{chunk-4XSYMLQG.js → chunk-RNXWL6DS.js} +1 -1
  141. package/dist/{chunk-VDDNDA5K.js → chunk-RRBI2IRE.js} +1 -1
  142. package/dist/{chunk-Z35PUKKP.js → chunk-RX27ER4R.js} +1 -1
  143. package/dist/{chunk-OETFY7FE.js → chunk-S3IDGHAZ.js} +1 -1
  144. package/dist/{chunk-YAH5WFYR.js → chunk-S3J3BYQ3.js} +1 -1
  145. package/dist/{chunk-7HDJBEBP.js → chunk-S6YUSGTF.js} +1 -1
  146. package/dist/{chunk-23K3B23N.js → chunk-SHDGD2WJ.js} +1 -1
  147. package/dist/{chunk-GJJBOCKD.js → chunk-SKK7CPUY.js} +1 -1
  148. package/dist/{chunk-TMV37ENR.js → chunk-SMZ74TME.js} +1 -1
  149. package/dist/{chunk-JROJL6RV.js → chunk-STLYSBD5.js} +1 -1
  150. package/dist/{chunk-22LJALHJ.js → chunk-T7BUP75N.js} +1 -1
  151. package/dist/{chunk-ZSJXZCAW.js → chunk-TGUAZMI2.js} +1 -1
  152. package/dist/{chunk-OEZATTOS.js → chunk-TH4D7IGZ.js} +1 -1
  153. package/dist/{chunk-5BYVVXGD.js → chunk-U2WUTGPI.js} +1 -1
  154. package/dist/{chunk-OM243CQ6.js → chunk-UJD7OQ3I.js} +1 -1
  155. package/dist/{chunk-PVOWU77O.js → chunk-UVSXPMUN.js} +1 -1
  156. package/dist/{chunk-YX5GRXRS.js → chunk-UZTL2UET.js} +1 -1
  157. package/dist/{chunk-TSLZNTFM.js → chunk-VEIZLSMG.js} +1 -1
  158. package/dist/{chunk-QWDJRSJJ.js → chunk-VEQDI5AB.js} +1 -1
  159. package/dist/{chunk-I7GYNNCU.js → chunk-VL3XMULV.js} +1 -1
  160. package/dist/{chunk-ZSVR5NEO.js → chunk-VPH2AAHJ.js} +1 -1
  161. package/dist/{chunk-L5XWYTHY.js → chunk-VWYZCCRE.js} +3 -3
  162. package/dist/{chunk-QQN4PJZD.js → chunk-VX2CDHRQ.js} +1 -1
  163. package/dist/{chunk-ASUARYJD.js → chunk-VXHLE5UQ.js} +1 -1
  164. package/dist/{chunk-PXD2WJOI.js → chunk-VY7UGJZK.js} +1 -1
  165. package/dist/{chunk-CSRNHTHO.js → chunk-W6TPRWEE.js} +1 -1
  166. package/dist/{chunk-Q45XAEG2.js → chunk-WBTR5JZ6.js} +1 -1
  167. package/dist/{chunk-N4DE5H65.js → chunk-WGBUSO27.js} +1 -1
  168. package/dist/{chunk-G54BKNIX.js → chunk-WR2MMFJO.js} +1 -1
  169. package/dist/{chunk-RCIU7NHA.js → chunk-WR6KP7RT.js} +1 -1
  170. package/dist/{chunk-T234RERA.js → chunk-WRVB4JCZ.js} +1 -1
  171. package/dist/{chunk-ZVDFCUJT.js → chunk-X3WFHNF5.js} +1 -1
  172. package/dist/{chunk-BL5JWD3Y.js → chunk-X6Y3HDXN.js} +1 -1
  173. package/dist/{chunk-NF7MOA4K.js → chunk-XCXQPV5W.js} +1 -1
  174. package/dist/{chunk-FCULF3JA.js → chunk-XUJURYN5.js} +1 -1
  175. package/dist/{chunk-MVVHISCR.js → chunk-XW33ZO7F.js} +1 -1
  176. package/dist/{chunk-S7536EWZ.js → chunk-XY2SSJQD.js} +1 -1
  177. package/dist/{chunk-TNXZWQZU.js → chunk-YACDI6IK.js} +1 -1
  178. package/dist/{chunk-YBQKJHZW.js → chunk-YFR53MWF.js} +1 -1
  179. package/dist/{chunk-GALDYSEX.js → chunk-YQZPL4K3.js} +1 -1
  180. package/dist/{chunk-PK4ID32C.js → chunk-YS5RZ6D5.js} +1 -1
  181. package/dist/{chunk-PXXTSW6I.js → chunk-Z6VWYOKN.js} +1 -1
  182. package/dist/{chunk-PBBZNGS4.js → chunk-ZDRQUKLN.js} +1 -1
  183. package/dist/{chunk-NYABB6XW.js → chunk-ZQKZC2KN.js} +1 -1
  184. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  185. package/dist/cli/commands/app/build.js +1 -1
  186. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  187. package/dist/cli/commands/app/bulk/execute.js +1 -1
  188. package/dist/cli/commands/app/bulk/status.js +1 -1
  189. package/dist/cli/commands/app/config/link.js +1 -1
  190. package/dist/cli/commands/app/config/pull.js +1 -1
  191. package/dist/cli/commands/app/config/use.js +1 -1
  192. package/dist/cli/commands/app/config/validate.js +1 -1
  193. package/dist/cli/commands/app/demo/watcher.js +1 -1
  194. package/dist/cli/commands/app/deploy.js +1 -1
  195. package/dist/cli/commands/app/dev/clean.js +1 -1
  196. package/dist/cli/commands/app/dev.js +1 -1
  197. package/dist/cli/commands/app/env/pull.js +1 -1
  198. package/dist/cli/commands/app/env/show.js +1 -1
  199. package/dist/cli/commands/app/execute.js +1 -1
  200. package/dist/cli/commands/app/function/build.js +1 -1
  201. package/dist/cli/commands/app/function/info.js +1 -1
  202. package/dist/cli/commands/app/function/replay.js +1 -1
  203. package/dist/cli/commands/app/function/run.js +1 -1
  204. package/dist/cli/commands/app/function/schema.js +1 -1
  205. package/dist/cli/commands/app/function/typegen.js +1 -1
  206. package/dist/cli/commands/app/generate/extension.js +1 -1
  207. package/dist/cli/commands/app/graphiql.js +1 -1
  208. package/dist/cli/commands/app/import/channel-config.js +1 -1
  209. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  210. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  211. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  212. package/dist/cli/commands/app/import-extensions.js +1 -1
  213. package/dist/cli/commands/app/info.js +1 -1
  214. package/dist/cli/commands/app/init.js +1 -1
  215. package/dist/cli/commands/app/logs.js +1 -1
  216. package/dist/cli/commands/app/release.js +1 -1
  217. package/dist/cli/commands/app/security/check.js +1 -1
  218. package/dist/cli/commands/app/security/clean.js +1 -1
  219. package/dist/cli/commands/app/security/instructions.js +1 -1
  220. package/dist/cli/commands/app/security/record.js +1 -1
  221. package/dist/cli/commands/app/security/review.js +1 -1
  222. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  223. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  224. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  225. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  226. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  227. package/dist/cli/commands/app/versions/list.js +1 -1
  228. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  229. package/dist/cli/commands/auth/login.js +1 -1
  230. package/dist/cli/commands/auth/logout.js +1 -1
  231. package/dist/cli/commands/cache/clear.js +1 -1
  232. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  233. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  234. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  235. package/dist/cli/commands/debug/command-flags.js +1 -1
  236. package/dist/cli/commands/doc/fetch.js +1 -1
  237. package/dist/cli/commands/doc/search.js +1 -1
  238. package/dist/cli/commands/docs/generate.js +1 -1
  239. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  240. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  241. package/dist/cli/commands/help.js +1 -1
  242. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  243. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  244. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  245. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  246. package/dist/cli/commands/notifications/generate.js +1 -1
  247. package/dist/cli/commands/notifications/list.js +1 -1
  248. package/dist/cli/commands/organization/list.js +1 -1
  249. package/dist/cli/commands/search.js +1 -1
  250. package/dist/cli/commands/send-analytics.js +1 -1
  251. package/dist/cli/commands/theme/check.js +1 -1
  252. package/dist/cli/commands/theme/console.js +1 -1
  253. package/dist/cli/commands/theme/delete.js +1 -1
  254. package/dist/cli/commands/theme/dev.js +1 -1
  255. package/dist/cli/commands/theme/duplicate.js +1 -1
  256. package/dist/cli/commands/theme/info.js +1 -1
  257. package/dist/cli/commands/theme/init.js +1 -1
  258. package/dist/cli/commands/theme/language-server.js +1 -1
  259. package/dist/cli/commands/theme/list.js +1 -1
  260. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  261. package/dist/cli/commands/theme/open.js +1 -1
  262. package/dist/cli/commands/theme/package.js +1 -1
  263. package/dist/cli/commands/theme/preview.js +1 -1
  264. package/dist/cli/commands/theme/profile.js +1 -1
  265. package/dist/cli/commands/theme/publish.js +1 -1
  266. package/dist/cli/commands/theme/pull.js +1 -1
  267. package/dist/cli/commands/theme/push.js +1 -1
  268. package/dist/cli/commands/theme/rename.js +1 -1
  269. package/dist/cli/commands/theme/share.js +1 -1
  270. package/dist/cli/commands/upgrade.js +1 -1
  271. package/dist/cli/commands/version.js +1 -1
  272. package/dist/cli/help.js +1 -1
  273. package/dist/{command-json-schema-Y3N2NUZN.js → command-json-schema-SU56F3T4.js} +1 -1
  274. package/dist/command-registry.js +1 -1
  275. package/dist/{conf-store-5ZA3ILWV.js → conf-store-WDYDHG6V.js} +1 -1
  276. package/dist/{custom-oclif-loader-VQKMCXNH.js → custom-oclif-loader-CP4XJAPS.js} +1 -1
  277. package/dist/{deprecations-PFQXWNF6.js → deprecations-CBSMNYL3.js} +1 -1
  278. package/dist/dist-HI6AAP5V.js +1 -0
  279. package/dist/dist-W25ND3PJ.js +1 -0
  280. package/dist/environments-PUH6A5BU.js +1 -0
  281. package/dist/{error-FBSXLW22.js → error-LNWX6IWE.js} +1 -1
  282. package/dist/error-handler-24QGAUUD.js +1 -0
  283. package/dist/{fs-ZLV5W4TV.js → fs-Y33QBYY5.js} +1 -1
  284. package/dist/hooks/did-you-mean.js +1 -1
  285. package/dist/hooks/hydrogen-init.js +1 -1
  286. package/dist/hooks/postrun.js +1 -1
  287. package/dist/hooks/prerun.js +1 -1
  288. package/dist/hooks/public-metadata.js +1 -1
  289. package/dist/hooks/sensitive-metadata.js +1 -1
  290. package/dist/hooks/tunnel-provider.js +1 -1
  291. package/dist/hooks/tunnel-start.js +1 -1
  292. package/dist/index.js +1 -1
  293. package/dist/{is-global-GZ5CIXQA.js → is-global-KY3QE3OZ.js} +1 -1
  294. package/dist/{json-error-2BL3UZ7H.js → json-error-UR2OILQ6.js} +1 -1
  295. package/dist/{local-KAZJAYLX.js → local-77XQ4CX3.js} +1 -1
  296. package/dist/{metadata-M3ZE24WB.js → metadata-BC3BGHRY.js} +1 -1
  297. package/dist/{node-package-manager-RVPONQBY.js → node-package-manager-6UZUTDCP.js} +1 -1
  298. package/dist/notifications-system-4UDT72DQ.js +1 -0
  299. package/dist/{os-DRUILZZR.js → os-U3LELTCV.js} +1 -1
  300. package/dist/{output-SDE274Y5.js → output-GGY66WEM.js} +1 -1
  301. package/dist/{system-5FQ3L5PA.js → system-MCWAHFXK.js} +1 -1
  302. package/dist/tsconfig.tsbuildinfo +1 -1
  303. package/dist/{ui-TEZZM7SE.js → ui-SYB4LLWY.js} +1 -1
  304. package/dist/upgrade-V4GCQJBN.js +1 -0
  305. package/dist/version-HQPFW4QN.js +1 -0
  306. package/dist/version-VOSHQCYM.js +1 -0
  307. package/dist/{workerd-WRW4ZUYM.js → workerd-MEAM3XYI.js} +1 -1
  308. package/oclif.manifest.json +1 -1
  309. package/package.json +7 -7
  310. package/dist/analytics-QK4RFCB6.js +0 -1
  311. package/dist/analytics-R6I5APDB.js +0 -1
  312. package/dist/chunk-RGIUP4FW.js +0 -1
  313. package/dist/chunk-WXV35TPE.js +0 -1
  314. package/dist/chunk-YGFEUXKQ.js +0 -1
  315. package/dist/chunk-ZOYSMJ27.js +0 -1
  316. package/dist/dist-4X53WJBQ.js +0 -1
  317. package/dist/dist-5M2V3YCM.js +0 -1
  318. package/dist/environments-3RUZ7F4Q.js +0 -1
  319. package/dist/error-handler-D5BURRJ7.js +0 -1
  320. package/dist/notifications-system-MYEMV7JF.js +0 -1
  321. package/dist/upgrade-3PIVJYBL.js +0 -1
  322. package/dist/version-FMWTVLMF.js +0 -1
  323. package/dist/version-IAMVSP7U.js +0 -1
@@ -1 +1 @@
1
- import{a as g}from"./chunk-QQN4PJZD.js";import{D as m,E as h,F as w,b as u,s as d,x as y,y as f}from"./chunk-YX5GRXRS.js";import{b as p}from"./chunk-DGMRL5DQ.js";import{b as n}from"./chunk-FW5HGFSZ.js";import{y as a,z as c}from"./chunk-SKRUMRB4.js";import{b as S}from"./chunk-JA2QZ635.js";import{e as A,g as o}from"./chunk-VKWPEFWQ.js";o();o();var C={cleanResults:y,cleanAllResults:f};async function s(t,e=C){return{removed:t.all?await e.cleanAllResults(t.appDirectory):await e.cleanResults(t.selection.appDirectory,m(t.selection))}}function D(t,e){t.removed.length===0?a({headline:"No app security check results to remove.",body:["Nothing was found in",{filePath:d(e)}]}):c({headline:"App security check results removed.",body:{list:{items:t.removed.map(r=>({filePath:r}))}}})}var v=A(S(),1);var l=class t extends n{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 description=this.descriptionForHelp();static flags={...p,...u,all:v.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),r={path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"]},i=e.all?{all:!0,appDirectory:await h(r)}:{all:!1,selection:await w({...r,allowPrompts:!1})};i.all||await g(i.selection,e.path);let R=await s(i),k=i.all?i.appDirectory:i.selection.appDirectory;D(R,k)}};export{l as a};
1
+ import{a as g}from"./chunk-VX2CDHRQ.js";import{D as m,E as h,F as w,b as u,s as d,x as y,y as f}from"./chunk-UZTL2UET.js";import{b as p}from"./chunk-2KBTFKSM.js";import{b as n}from"./chunk-CUZQRXTV.js";import{y as a,z as c}from"./chunk-KCHERKZO.js";import{b as S}from"./chunk-JA2QZ635.js";import{e as A,g as o}from"./chunk-VKWPEFWQ.js";o();o();var C={cleanResults:y,cleanAllResults:f};async function s(t,e=C){return{removed:t.all?await e.cleanAllResults(t.appDirectory):await e.cleanResults(t.selection.appDirectory,m(t.selection))}}function D(t,e){t.removed.length===0?a({headline:"No app security check results to remove.",body:["Nothing was found in",{filePath:d(e)}]}):c({headline:"App security check results removed.",body:{list:{items:t.removed.map(r=>({filePath:r}))}}})}var v=A(S(),1);var l=class t extends n{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 description=this.descriptionForHelp();static flags={...p,...u,all:v.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),r={path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"]},i=e.all?{all:!0,appDirectory:await h(r)}:{all:!1,selection:await w({...r,allowPrompts:!1})};i.all||await g(i.selection,e.path);let R=await s(i),k=i.all?i.appDirectory:i.selection.appDirectory;D(R,k)}};export{l as a};
@@ -1,4 +1,4 @@
1
- import{i as E}from"./chunk-FCULF3JA.js";import{Cb as $,Eb as T,Nb as O,Xa as V,qa as N}from"./chunk-YJWNM4XO.js";import{a as g,c as w,e as Y,g as m}from"./chunk-VKWPEFWQ.js";var I=w((z,R)=>{R.exports={name:"dotenv",version:"16.6.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var K=w((X,d)=>{m();var b=g("fs"),y=g("path"),q=g("os"),F=g("crypto"),P=I(),D=P.version,C=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function S(e){let n={},r=e.toString();r=r.replace(/\r\n?/mg,`
1
+ import{i as E}from"./chunk-XUJURYN5.js";import{Cb as $,Eb as T,Nb as O,Xa as V,qa as N}from"./chunk-COFGQT76.js";import{a as g,c as w,e as Y,g as m}from"./chunk-VKWPEFWQ.js";var I=w((z,R)=>{R.exports={name:"dotenv",version:"16.6.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var K=w((X,d)=>{m();var b=g("fs"),y=g("path"),q=g("os"),F=g("crypto"),P=I(),D=P.version,C=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function S(e){let n={},r=e.toString();r=r.replace(/\r\n?/mg,`
2
2
  `);let s;for(;(s=C.exec(r))!=null;){let a=s[1],t=s[2]||"";t=t.trim();let o=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(t=t.replace(/\\n/g,`
3
3
  `),t=t.replace(/\\r/g,"\r")),n[a]=t}return n}function U(e){e=e||{};let n=x(e);e.path=n;let r=l.configDotenv(e);if(!r.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${n} for an unknown reason`);throw o.code="MISSING_DATA",o}let s=A(e).split(","),a=s.length,t;for(let o=0;o<a;o++)try{let i=s[o].trim(),f=M(r,i);t=l.decrypt(f.ciphertext,f.key);break}catch(i){if(o+1>=a)throw i}return l.parse(t)}function B(e){console.log(`[dotenv@${D}][WARN] ${e}`)}function v(e){console.log(`[dotenv@${D}][DEBUG] ${e}`)}function j(e){console.log(`[dotenv@${D}] ${e}`)}function A(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function M(e,n){let r;try{r=new URL(n)}catch(i){if(i.code==="ERR_INVALID_URL"){let f=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw f.code="INVALID_DOTENV_KEY",f}throw i}let s=r.password;if(!s){let i=new Error("INVALID_DOTENV_KEY: Missing key part");throw i.code="INVALID_DOTENV_KEY",i}let a=r.searchParams.get("environment");if(!a){let i=new Error("INVALID_DOTENV_KEY: Missing environment part");throw i.code="INVALID_DOTENV_KEY",i}let t=`DOTENV_VAULT_${a.toUpperCase()}`,o=e.parsed[t];if(!o){let i=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${t} in your .env.vault file.`);throw i.code="NOT_FOUND_DOTENV_ENVIRONMENT",i}return{ciphertext:o,key:s}}function x(e){let n=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)b.existsSync(r)&&(n=r.endsWith(".vault")?r:`${r}.vault`);else n=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else n=y.resolve(process.cwd(),".env.vault");return b.existsSync(n)?n:null}function k(e){return e[0]==="~"?y.join(q.homedir(),e.slice(1)):e}function W(e){let n=!!(e&&e.debug),r=e&&"quiet"in e?e.quiet:!0;(n||!r)&&j("Loading env from encrypted .env.vault");let s=l._parseVault(e),a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),l.populate(a,s,e),{parsed:s}}function G(e){let n=y.resolve(process.cwd(),".env"),r="utf8",s=!!(e&&e.debug),a=e&&"quiet"in e?e.quiet:!0;e&&e.encoding?r=e.encoding:s&&v("No encoding is specified. UTF-8 is used by default");let t=[n];if(e&&e.path)if(!Array.isArray(e.path))t=[k(e.path)];else{t=[];for(let u of e.path)t.push(k(u))}let o,i={};for(let u of t)try{let c=l.parse(b.readFileSync(u,{encoding:r}));l.populate(i,c,e)}catch(c){s&&v(`Failed to load ${u} ${c.message}`),o=c}let f=process.env;if(e&&e.processEnv!=null&&(f=e.processEnv),l.populate(f,i,e),s||!a){let u=Object.keys(i).length,c=[];for(let p of t)try{let h=y.relative(process.cwd(),p);c.push(h)}catch(h){s&&v(`Failed to load ${p} ${h.message}`),o=h}j(`injecting env (${u}) from ${c.join(",")}`)}return o?{parsed:i,error:o}:{parsed:i}}function J(e){if(A(e).length===0)return l.configDotenv(e);let n=x(e);return n?l._configVault(e):(B(`You set DOTENV_KEY but you are missing a .env.vault file at ${n}. Did you forget to build it?`),l.configDotenv(e))}function Q(e,n){let r=Buffer.from(n.slice(-64),"hex"),s=Buffer.from(e,"base64"),a=s.subarray(0,12),t=s.subarray(-16);s=s.subarray(12,-16);try{let o=F.createDecipheriv("aes-256-gcm",r,a);return o.setAuthTag(t),`${o.update(s)}${o.final()}`}catch(o){let i=o instanceof RangeError,f=o.message==="Invalid key length",u=o.message==="Unsupported state or unable to authenticate data";if(i||f){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(u){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw o}}function H(e,n,r={}){let s=!!(r&&r.debug),a=!!(r&&r.override);if(typeof n!="object"){let t=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw t.code="OBJECT_REQUIRED",t}for(let t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)?(a===!0&&(e[t]=n[t]),s&&v(a===!0?`"${t}" is already defined and WAS overwritten`:`"${t}" is already defined and was NOT overwritten`)):e[t]=n[t]}var l={configDotenv:G,_configVault:W,_parseVault:U,config:J,decrypt:Q,parse:S,populate:H};d.exports.configDotenv=l.configDotenv;d.exports._configVault=l._configVault;d.exports._parseVault=l._parseVault;d.exports.config=l.config;d.exports.decrypt=l.decrypt;d.exports.parse=l.parse;d.exports.populate=l.populate;d.exports=l});m();var L=Y(K());async function oe(e){if(O(T`Reading the .env file at ${$.path(e)}`),!await V(e))throw new E(`The environment file at ${e} does not exist.`);let n=await N(e);return{path:e,variables:(0,L.parse)(n)}}function se(e,n){let r=[],s=e===null?[]:e.split(`
4
4
  `),a=[],t;for(let o of s){if(t){if(o.endsWith(t.quote)){let u=_(t.key,t.value+o.slice(0,-1),t.quote),c=n[t.key];c&&(a.push(t.key),u=_(t.key,c)),r.push(u),t=void 0}else t.value+=`${o}
@@ -1,4 +1,4 @@
1
- import{b as S}from"./chunk-HSZC2LBB.js";import{a as A,b as B,c as L,f as I,j as x,k as $,m as N,t as q}from"./chunk-3AASYIOA.js";import{a as P}from"./chunk-YGFEUXKQ.js";import{a as z}from"./chunk-JTPVSO6Y.js";import{b as C}from"./chunk-DGMRL5DQ.js";import{N as g,u as E}from"./chunk-L5XWYTHY.js";import{B as w,G as T,y as u,z as v}from"./chunk-SKRUMRB4.js";import{l as D}from"./chunk-FCULF3JA.js";import{Cb as l,Eb as d,Pb as b,fa as k,ka as y}from"./chunk-YJWNM4XO.js";import{i as m}from"./chunk-B4OMIONW.js";import{b as M}from"./chunk-JA2QZ635.js";import{e as K,g as c}from"./chunk-VKWPEFWQ.js";c();c();async function R(e){let{organization:o,storeFqdn:t,operationId:r,remoteApp:a}=e;u({headline:"Checking bulk operation status.",body:[{list:{items:S({organization:o,remoteApp:a,storeFqdn:t})}}]});let s=a.apiSecretKeys[0]?.secret;if(!s)throw new D("No API secret keys found for app");let p=await g(t,a.apiKey,s),i=await x({adminSession:p,operationId:r,version:await I({adminSession:p,minimumDefaultVersion:A})});i?U(i):w({headline:"Bulk operation not found.",body:d`ID: ${l.yellow(r)}`.value})}async function _(e){let{organization:o,storeFqdn:t,remoteApp:r}=e;u({headline:"Listing bulk operations.",body:[{list:{items:S({organization:o,remoteApp:r,storeFqdn:t})}}]});let a=r.apiSecretKeys[0]?.secret;if(!a)throw new D("No API secret keys found for app");let s=await g(t,r.apiKey,a),i=(await $({adminSession:s,version:await I({adminSession:s,minimumDefaultVersion:A})})).map(n=>({id:L(n.id),status:V(n.status),count:G(n.objectCount),dateCreated:k(new Date(String(n.createdAt))),dateFinished:n.completedAt?k(new Date(String(n.completedAt))):"",results:Y(n.url??n.partialDataUrl)}));b(),i.length===0?u({body:"No bulk operations found in the last 7 days."}):T({rows:i,columns:{id:{header:"ID",color:"yellow"},status:{header:"STATUS"},count:{header:"COUNT"},dateCreated:{header:"DATE CREATED",color:"cyan"},dateFinished:{header:"DATE FINISHED",color:"cyan"},results:{header:"RESULTS"}}}),b()}function U(e){let{id:o,status:t,createdAt:r,completedAt:a,url:s,partialDataUrl:p}=e,i=N(e).value,n=H(r,a),f=d`ID: ${l.yellow(o)}\n${n}`.value;if(t==="COMPLETED"){let h=s?l.link("Download results",s):"";v({headline:i,body:d`${f}\n${h}`.value})}else if(t==="FAILED"){let h=p?l.link("Download partial results",p):"";w({headline:i,body:d`${f}\n${h}`.value})}else u({headline:i,body:f})}function H(e,o){let t=new Date;return o?`Finished ${y(new Date(String(o)),t)}`:`Started ${y(new Date(String(e)),t)}`}function V(e){return e==="COMPLETED"?m.green(e):e==="FAILED"?m.red(e):m.dim(e)}function G(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function Y(e){return e?d`${l.link("download",e)}`.value:""}var F=K(M(),1);var O=class e extends P{static summary="Check the status of bulk operations.";static descriptionWithMarkdown=`Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days.
1
+ import{b as S}from"./chunk-7H4IM6PX.js";import{a as A,b as B,c as L,f as I,j as x,k as $,m as N,t as q}from"./chunk-7WWPAHVE.js";import{a as P}from"./chunk-MINDMVTH.js";import{a as z}from"./chunk-RFDOSK57.js";import{b as C}from"./chunk-2KBTFKSM.js";import{N as g,u as E}from"./chunk-VWYZCCRE.js";import{B as w,G as T,y as u,z as v}from"./chunk-KCHERKZO.js";import{l as D}from"./chunk-XUJURYN5.js";import{Cb as l,Eb as d,Pb as b,fa as k,ka as y}from"./chunk-COFGQT76.js";import{i as m}from"./chunk-B4OMIONW.js";import{b as M}from"./chunk-JA2QZ635.js";import{e as K,g as c}from"./chunk-VKWPEFWQ.js";c();c();async function R(e){let{organization:o,storeFqdn:t,operationId:r,remoteApp:a}=e;u({headline:"Checking bulk operation status.",body:[{list:{items:S({organization:o,remoteApp:a,storeFqdn:t})}}]});let s=a.apiSecretKeys[0]?.secret;if(!s)throw new D("No API secret keys found for app");let p=await g(t,a.apiKey,s),i=await x({adminSession:p,operationId:r,version:await I({adminSession:p,minimumDefaultVersion:A})});i?U(i):w({headline:"Bulk operation not found.",body:d`ID: ${l.yellow(r)}`.value})}async function _(e){let{organization:o,storeFqdn:t,remoteApp:r}=e;u({headline:"Listing bulk operations.",body:[{list:{items:S({organization:o,remoteApp:r,storeFqdn:t})}}]});let a=r.apiSecretKeys[0]?.secret;if(!a)throw new D("No API secret keys found for app");let s=await g(t,r.apiKey,a),i=(await $({adminSession:s,version:await I({adminSession:s,minimumDefaultVersion:A})})).map(n=>({id:L(n.id),status:V(n.status),count:G(n.objectCount),dateCreated:k(new Date(String(n.createdAt))),dateFinished:n.completedAt?k(new Date(String(n.completedAt))):"",results:Y(n.url??n.partialDataUrl)}));b(),i.length===0?u({body:"No bulk operations found in the last 7 days."}):T({rows:i,columns:{id:{header:"ID",color:"yellow"},status:{header:"STATUS"},count:{header:"COUNT"},dateCreated:{header:"DATE CREATED",color:"cyan"},dateFinished:{header:"DATE FINISHED",color:"cyan"},results:{header:"RESULTS"}}}),b()}function U(e){let{id:o,status:t,createdAt:r,completedAt:a,url:s,partialDataUrl:p}=e,i=N(e).value,n=H(r,a),f=d`ID: ${l.yellow(o)}\n${n}`.value;if(t==="COMPLETED"){let h=s?l.link("Download results",s):"";v({headline:i,body:d`${f}\n${h}`.value})}else if(t==="FAILED"){let h=p?l.link("Download partial results",p):"";w({headline:i,body:d`${f}\n${h}`.value})}else u({headline:i,body:f})}function H(e,o){let t=new Date;return o?`Finished ${y(new Date(String(o)),t)}`:`Started ${y(new Date(String(e)),t)}`}function V(e){return e==="COMPLETED"?m.green(e):e==="FAILED"?m.red(e):m.dim(e)}function G(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function Y(e){return e?d`${l.link("download",e)}`.value:""}var F=K(M(),1);var O=class e extends P{static summary="Check the status of bulk operations.";static descriptionWithMarkdown=`Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days.
2
2
 
3
3
  Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](https://shopify.dev/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports).
4
4
 
@@ -1,2 +1,2 @@
1
- import{b as x,c as D,f as M}from"./chunk-7ZSN2QT5.js";import{a as o}from"./chunk-RGIUP4FW.js";import{D as s,G as h,J as e,z as y}from"./chunk-SKRUMRB4.js";import{d as w}from"./chunk-YTJ3EPD3.js";import{Kb as _,ya as u}from"./chunk-YJWNM4XO.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
1
+ import{b as x,c as D,f as M}from"./chunk-7IS6Q756.js";import{a as o}from"./chunk-32B4LIKH.js";import{D as s,G as h,J as e,z as y}from"./chunk-KCHERKZO.js";import{d as w}from"./chunk-YTJ3EPD3.js";import{Kb as _,ya as u}from"./chunk-COFGQT76.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
2
2
  `)}export{$ as a,j as b};
@@ -1 +1 @@
1
- import{Ha as x,p as A}from"./chunk-2KLXRVGQ.js";import{F}from"./chunk-SKRUMRB4.js";import{i as s}from"./chunk-FCULF3JA.js";import{Eb as f,Ib as I,Kb as P,Xa as p,ya as v}from"./chunk-YJWNM4XO.js";import{a as S}from"./chunk-SGBLCVUX.js";import{b as D}from"./chunk-JA2QZ635.js";import{d as m,f as y,q as w}from"./chunk-3VYOLEQE.js";import{e as E,g as l}from"./chunk-VKWPEFWQ.js";l();async function b(n){let{extension:e,stdout:o,developerPlatformClient:i,app:r,orgId:t}=n,c=r.configuration.client_id,{api_version:a,type:u,targeting:d}=e.configuration,T=await(!!d?.length?_({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,target:d[0].target,version:a,orgId:t}):$({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,type:u,version:a,orgId:t})),h=A(T,a);if(o)I(h);else{let g=m(e.directory,"schema.graphql");await v(g,h),P(`GraphQL Schema for ${e.localIdentifier} written to ${g}`)}}async function _({localIdentifier:n,developerPlatformClient:e,apiKey:o,target:i,version:r,orgId:t}){let c={handle:i,version:r},a=await e.targetSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function targets and version are valid.`);return a}async function $({localIdentifier:n,developerPlatformClient:e,apiKey:o,version:i,type:r,orgId:t}){let c={version:i,type:r},a=await e.apiSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function API type and version are valid.`);return a}l();var C=E(D(),1);var J={path:C.Flags.string({hidden:!1,description:"The path to your function directory.",parse:async n=>y(n),default:async()=>w(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"})};async function M(n,e){let o=n.allExtensions.filter(r=>r.isFunctionExtension),i=o.find(r=>r.directory===e);if(i)return i;if(o.length===1&&o[0])return o[0];if(S())return await F({message:"Which function?",choices:o.map(t=>({label:t.handle,value:t}))});throw new s("Run this command from a function directory or use `--path` to specify a function directory.")}async function N(n,e,o,i,r){let t=m(n.directory,"schema.graphql");if(await p(t))return t;let{app:c,developerPlatformClient:a,organization:u}=await x({directory:e,clientId:o,forceRelink:i,userProvidedConfigName:r});return await b({app:c,developerPlatformClient:a,extension:n,stdout:!1,orgId:u.id}),await p(t)?t:void 0}export{b as a,J as b,M as c,N as d};
1
+ import{Ha as x,p as A}from"./chunk-AKSOCKVF.js";import{F}from"./chunk-KCHERKZO.js";import{i as s}from"./chunk-XUJURYN5.js";import{Eb as f,Ib as I,Kb as P,Xa as p,ya as v}from"./chunk-COFGQT76.js";import{a as S}from"./chunk-C4QR7Z4N.js";import{b as D}from"./chunk-JA2QZ635.js";import{d as m,f as y,q as w}from"./chunk-3VYOLEQE.js";import{e as E,g as l}from"./chunk-VKWPEFWQ.js";l();async function b(n){let{extension:e,stdout:o,developerPlatformClient:i,app:r,orgId:t}=n,c=r.configuration.client_id,{api_version:a,type:u,targeting:d}=e.configuration,T=await(!!d?.length?_({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,target:d[0].target,version:a,orgId:t}):$({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,type:u,version:a,orgId:t})),h=A(T,a);if(o)I(h);else{let g=m(e.directory,"schema.graphql");await v(g,h),P(`GraphQL Schema for ${e.localIdentifier} written to ${g}`)}}async function _({localIdentifier:n,developerPlatformClient:e,apiKey:o,target:i,version:r,orgId:t}){let c={handle:i,version:r},a=await e.targetSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function targets and version are valid.`);return a}async function $({localIdentifier:n,developerPlatformClient:e,apiKey:o,version:i,type:r,orgId:t}){let c={version:i,type:r},a=await e.apiSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function API type and version are valid.`);return a}l();var C=E(D(),1);var J={path:C.Flags.string({hidden:!1,description:"The path to your function directory.",parse:async n=>y(n),default:async()=>w(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"})};async function M(n,e){let o=n.allExtensions.filter(r=>r.isFunctionExtension),i=o.find(r=>r.directory===e);if(i)return i;if(o.length===1&&o[0])return o[0];if(S())return await F({message:"Which function?",choices:o.map(t=>({label:t.handle,value:t}))});throw new s("Run this command from a function directory or use `--path` to specify a function directory.")}async function N(n,e,o,i,r){let t=m(n.directory,"schema.graphql");if(await p(t))return t;let{app:c,developerPlatformClient:a,organization:u}=await x({directory:e,clientId:o,forceRelink:i,userProvidedConfigName:r});return await b({app:c,developerPlatformClient:a,extension:n,stdout:!1,orgId:u.id}),await p(t)?t:void 0}export{b as a,J as b,M as c,N as d};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-WXV35TPE.js";import{a as e}from"./chunk-JTPVSO6Y.js";import{F as n,I as p,Ia as s}from"./chunk-2KLXRVGQ.js";import{b as r}from"./chunk-DGMRL5DQ.js";import{b as d}from"./chunk-JA2QZ635.js";import{e as l,g as i}from"./chunk-VKWPEFWQ.js";i();var f=l(d(),1);var{config:b,...u}=e,o=class m extends c{static summary="Activate an app configuration.";static descriptionWithMarkdown="Sets default configuration when you run app-related CLI commands. If you omit the `config-name` parameter, then you'll be prompted to choose from the configuration files in your project.";static description=this.descriptionForHelp();static usage="app config use [config] [flags]";static flags={...r,...u};static args={config:f.Args.string({description:"The name of the app configuration. Can be 'shopify.app.staging.toml' or simply 'staging'."})};async run(){let{flags:t,args:a}=await this.parse(m),{app:g}=await s({directory:t.path,userProvidedConfigName:a.config});return await p(t.path),await n({directory:t.path,configName:a.config,reset:t.reset}),{app:g}}};export{o as a};
1
+ import{a as c}from"./chunk-A6OSIGQI.js";import{a as e}from"./chunk-RFDOSK57.js";import{F as n,I as p,Ia as s}from"./chunk-AKSOCKVF.js";import{b as r}from"./chunk-2KBTFKSM.js";import{b as d}from"./chunk-JA2QZ635.js";import{e as l,g as i}from"./chunk-VKWPEFWQ.js";i();var f=l(d(),1);var{config:b,...u}=e,o=class m extends c{static summary="Activate an app configuration.";static descriptionWithMarkdown="Sets default configuration when you run app-related CLI commands. If you omit the `config-name` parameter, then you'll be prompted to choose from the configuration files in your project.";static description=this.descriptionForHelp();static usage="app config use [config] [flags]";static flags={...r,...u};static args={config:f.Args.string({description:"The name of the app configuration. Can be 'shopify.app.staging.toml' or simply 'staging'."})};async run(){let{flags:t,args:a}=await this.parse(m),{app:g}=await s({directory:t.path,userProvidedConfigName:a.config});return await p(t.path),await n({directory:t.path,configName:a.config,reset:t.reset}),{app:g}}};export{o as a};
@@ -1,4 +1,4 @@
1
- import{a as p}from"./chunk-YJWNM4XO.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();a();var j=Symbol("Let zodToJsonSchema decide on which parser to use");var T={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},N=e=>typeof e=="string"?{...T,name:e}:{...T,...e};a();var M=e=>{let t=N(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}};a();function k(e,t,r,n){n?.errorMessages&&r&&(e.errorMessage={...e.errorMessage,[t]:r})}function m(e,t,r,n,i){e[t]=r,k(e,t,n,i)}a();var A=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};a();a();a();function f(e){if(e.target!=="openAi")return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy==="relative"?A(t,e.currentPath):t.join("/")}}a();function $(e,t){let r={type:"array"};return e.type?._def&&e.type?._def?.typeName!==p.ZodAny&&(r.items=o(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&m(r,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&m(r,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(m(r,"minItems",e.exactLength.value,e.exactLength.message,t),m(r,"maxItems",e.exactLength.value,e.exactLength.message,t)),r}a();function w(e,t){let r={type:"integer",format:"int64"};if(!e.checks)return r;for(let n of e.checks)switch(n.kind){case"min":t.target==="jsonSchema7"?n.inclusive?m(r,"minimum",n.value,n.message,t):m(r,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(r.exclusiveMinimum=!0),m(r,"minimum",n.value,n.message,t));break;case"max":t.target==="jsonSchema7"?n.inclusive?m(r,"maximum",n.value,n.message,t):m(r,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(r.exclusiveMaximum=!0),m(r,"maximum",n.value,n.message,t));break;case"multipleOf":m(r,"multipleOf",n.value,n.message,t);break}return r}a();function E(){return{type:"boolean"}}a();function v(e,t){return o(e.type._def,t)}a();var z=(e,t)=>o(e.innerType._def,t);a();function _(e,t,r){let n=r??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((i,s)=>_(e,t,i))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return se(e,t)}}var se=(e,t)=>{let r={type:"integer",format:"unix-time"};if(t.target==="openApi3")return r;for(let n of e.checks)switch(n.kind){case"min":m(r,"minimum",n.value,n.message,t);break;case"max":m(r,"maximum",n.value,n.message,t);break}return r};a();function R(e,t){return{...o(e.innerType._def,t),default:e.defaultValue()}}a();function L(e,t){return t.effectStrategy==="input"?o(e.schema._def,t):f(t)}a();function F(e){return{type:"string",enum:Array.from(e.values)}}a();var pe=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function I(e,t){let r=[o(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),o(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(s=>!!s),n=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,i=[];return r.forEach(s=>{if(pe(s))i.push(...s.allOf),s.unevaluatedProperties===void 0&&(n=void 0);else{let c=s;if("additionalProperties"in s&&s.additionalProperties===!1){let{additionalProperties:l,...u}=s;c=u}else n=void 0;i.push(c)}}),i.length?{allOf:i,...n}:void 0}a();function C(e,t){let r=typeof e.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[e.value]}:{type:r==="bigint"?"integer":r,const:e.value}}a();a();a();var S,g={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(S===void 0&&(S=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),S),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function P(e,t){let r={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":m(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,t);break;case"max":m(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,t);break;case"email":switch(t.emailStrategy){case"format:email":y(r,"email",n.message,t);break;case"format:idn-email":y(r,"idn-email",n.message,t);break;case"pattern:zod":d(r,g.email,n.message,t);break}break;case"url":y(r,"uri",n.message,t);break;case"uuid":y(r,"uuid",n.message,t);break;case"regex":d(r,n.regex,n.message,t);break;case"cuid":d(r,g.cuid,n.message,t);break;case"cuid2":d(r,g.cuid2,n.message,t);break;case"startsWith":d(r,RegExp(`^${Z(n.value,t)}`),n.message,t);break;case"endsWith":d(r,RegExp(`${Z(n.value,t)}$`),n.message,t);break;case"datetime":y(r,"date-time",n.message,t);break;case"date":y(r,"date",n.message,t);break;case"time":y(r,"time",n.message,t);break;case"duration":y(r,"duration",n.message,t);break;case"length":m(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,t),m(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,t);break;case"includes":{d(r,RegExp(Z(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&y(r,"ipv4",n.message,t),n.version!=="v4"&&y(r,"ipv6",n.message,t);break}case"base64url":d(r,g.base64url,n.message,t);break;case"jwt":d(r,g.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&d(r,g.ipv4Cidr,n.message,t),n.version!=="v4"&&d(r,g.ipv6Cidr,n.message,t);break}case"emoji":d(r,g.emoji(),n.message,t);break;case"ulid":{d(r,g.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{y(r,"binary",n.message,t);break}case"contentEncoding:base64":{m(r,"contentEncoding","base64",n.message,t);break}case"pattern:zod":{d(r,g.base64,n.message,t);break}}break}case"nanoid":d(r,g.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function Z(e,t){return t.patternStrategy==="escape"?me(e):e}var ue=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function me(e){let t="";for(let r=0;r<e.length;r++)ue.has(e[r])||(t+="\\"),t+=e[r];return t}function y(e,t,r,n){e.format||e.anyOf?.some(i=>i.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&n.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):m(e,"format",t,r,n)}function d(e,t,r,n){e.pattern||e.allOf?.some(i=>i.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&n.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:U(t,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):m(e,"pattern",U(t,n),r,n)}function U(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=r.i?e.source.toLowerCase():e.source,i="",s=!1,c=!1,l=!1;for(let u=0;u<n.length;u++){if(s){i+=n[u],s=!1;continue}if(r.i){if(c){if(n[u].match(/[a-z]/)){l?(i+=n[u],i+=`${n[u-2]}-${n[u]}`.toUpperCase(),l=!1):n[u+1]==="-"&&n[u+2]?.match(/[a-z]/)?(i+=n[u],l=!0):i+=`${n[u]}${n[u].toUpperCase()}`;continue}}else if(n[u].match(/[a-z]/)){i+=`[${n[u]}${n[u].toUpperCase()}]`;continue}}if(r.m){if(n[u]==="^"){i+=`(^|(?<=[\r
1
+ import{a as p}from"./chunk-COFGQT76.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();a();var j=Symbol("Let zodToJsonSchema decide on which parser to use");var T={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},N=e=>typeof e=="string"?{...T,name:e}:{...T,...e};a();var M=e=>{let t=N(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}};a();function k(e,t,r,n){n?.errorMessages&&r&&(e.errorMessage={...e.errorMessage,[t]:r})}function m(e,t,r,n,i){e[t]=r,k(e,t,n,i)}a();var A=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};a();a();a();function f(e){if(e.target!=="openAi")return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy==="relative"?A(t,e.currentPath):t.join("/")}}a();function $(e,t){let r={type:"array"};return e.type?._def&&e.type?._def?.typeName!==p.ZodAny&&(r.items=o(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&m(r,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&m(r,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(m(r,"minItems",e.exactLength.value,e.exactLength.message,t),m(r,"maxItems",e.exactLength.value,e.exactLength.message,t)),r}a();function w(e,t){let r={type:"integer",format:"int64"};if(!e.checks)return r;for(let n of e.checks)switch(n.kind){case"min":t.target==="jsonSchema7"?n.inclusive?m(r,"minimum",n.value,n.message,t):m(r,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(r.exclusiveMinimum=!0),m(r,"minimum",n.value,n.message,t));break;case"max":t.target==="jsonSchema7"?n.inclusive?m(r,"maximum",n.value,n.message,t):m(r,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(r.exclusiveMaximum=!0),m(r,"maximum",n.value,n.message,t));break;case"multipleOf":m(r,"multipleOf",n.value,n.message,t);break}return r}a();function E(){return{type:"boolean"}}a();function v(e,t){return o(e.type._def,t)}a();var z=(e,t)=>o(e.innerType._def,t);a();function _(e,t,r){let n=r??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((i,s)=>_(e,t,i))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return se(e,t)}}var se=(e,t)=>{let r={type:"integer",format:"unix-time"};if(t.target==="openApi3")return r;for(let n of e.checks)switch(n.kind){case"min":m(r,"minimum",n.value,n.message,t);break;case"max":m(r,"maximum",n.value,n.message,t);break}return r};a();function R(e,t){return{...o(e.innerType._def,t),default:e.defaultValue()}}a();function L(e,t){return t.effectStrategy==="input"?o(e.schema._def,t):f(t)}a();function F(e){return{type:"string",enum:Array.from(e.values)}}a();var pe=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function I(e,t){let r=[o(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),o(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(s=>!!s),n=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,i=[];return r.forEach(s=>{if(pe(s))i.push(...s.allOf),s.unevaluatedProperties===void 0&&(n=void 0);else{let c=s;if("additionalProperties"in s&&s.additionalProperties===!1){let{additionalProperties:l,...u}=s;c=u}else n=void 0;i.push(c)}}),i.length?{allOf:i,...n}:void 0}a();function C(e,t){let r=typeof e.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[e.value]}:{type:r==="bigint"?"integer":r,const:e.value}}a();a();a();var S,g={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(S===void 0&&(S=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),S),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function P(e,t){let r={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":m(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,t);break;case"max":m(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,t);break;case"email":switch(t.emailStrategy){case"format:email":y(r,"email",n.message,t);break;case"format:idn-email":y(r,"idn-email",n.message,t);break;case"pattern:zod":d(r,g.email,n.message,t);break}break;case"url":y(r,"uri",n.message,t);break;case"uuid":y(r,"uuid",n.message,t);break;case"regex":d(r,n.regex,n.message,t);break;case"cuid":d(r,g.cuid,n.message,t);break;case"cuid2":d(r,g.cuid2,n.message,t);break;case"startsWith":d(r,RegExp(`^${Z(n.value,t)}`),n.message,t);break;case"endsWith":d(r,RegExp(`${Z(n.value,t)}$`),n.message,t);break;case"datetime":y(r,"date-time",n.message,t);break;case"date":y(r,"date",n.message,t);break;case"time":y(r,"time",n.message,t);break;case"duration":y(r,"duration",n.message,t);break;case"length":m(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,t),m(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,t);break;case"includes":{d(r,RegExp(Z(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&y(r,"ipv4",n.message,t),n.version!=="v4"&&y(r,"ipv6",n.message,t);break}case"base64url":d(r,g.base64url,n.message,t);break;case"jwt":d(r,g.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&d(r,g.ipv4Cidr,n.message,t),n.version!=="v4"&&d(r,g.ipv6Cidr,n.message,t);break}case"emoji":d(r,g.emoji(),n.message,t);break;case"ulid":{d(r,g.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{y(r,"binary",n.message,t);break}case"contentEncoding:base64":{m(r,"contentEncoding","base64",n.message,t);break}case"pattern:zod":{d(r,g.base64,n.message,t);break}}break}case"nanoid":d(r,g.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function Z(e,t){return t.patternStrategy==="escape"?me(e):e}var ue=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function me(e){let t="";for(let r=0;r<e.length;r++)ue.has(e[r])||(t+="\\"),t+=e[r];return t}function y(e,t,r,n){e.format||e.anyOf?.some(i=>i.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&n.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):m(e,"format",t,r,n)}function d(e,t,r,n){e.pattern||e.allOf?.some(i=>i.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&n.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:U(t,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):m(e,"pattern",U(t,n),r,n)}function U(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=r.i?e.source.toLowerCase():e.source,i="",s=!1,c=!1,l=!1;for(let u=0;u<n.length;u++){if(s){i+=n[u],s=!1;continue}if(r.i){if(c){if(n[u].match(/[a-z]/)){l?(i+=n[u],i+=`${n[u-2]}-${n[u]}`.toUpperCase(),l=!1):n[u+1]==="-"&&n[u+2]?.match(/[a-z]/)?(i+=n[u],l=!0):i+=`${n[u]}${n[u].toUpperCase()}`;continue}}else if(n[u].match(/[a-z]/)){i+=`[${n[u]}${n[u].toUpperCase()}]`;continue}}if(r.m){if(n[u]==="^"){i+=`(^|(?<=[\r
2
2
  ]))`;continue}else if(n[u]==="$"){i+=`($|(?=[\r
3
3
  ]))`;continue}}if(r.s&&n[u]==="."){i+=c?`${n[u]}\r
4
4
  `:`[${n[u]}\r
@@ -1,4 +1,4 @@
1
- import{a as B,j as C,m as P}from"./chunk-NTVEJYKI.js";import{e as U,f as _}from"./chunk-ZHJ6KA43.js";import{e as g}from"./chunk-ECEOBSGD.js";import{l as v,m as w}from"./chunk-R757TSQ6.js";import{ra as E}from"./chunk-L5XWYTHY.js";import{Nb as m}from"./chunk-YJWNM4XO.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
1
+ import{a as B,j as C,m as P}from"./chunk-LAHZ6FO5.js";import{e as U,f as _}from"./chunk-3UZYLXCB.js";import{e as g}from"./chunk-NZRQKFUB.js";import{l as v,m as w}from"./chunk-NSHKVJST.js";import{ra as E}from"./chunk-VWYZCCRE.js";import{Nb as m}from"./chunk-COFGQT76.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
2
2
  `);_(f.key,"delete")(new Error(`Failed to delete ${f.key}: ${y}`))}}),c.current+=k.length});u.push(a)}let h=Promise.all(u).then(()=>{c.current=c.total});return{progress:c,promise:h}}function L(t,e){let s=e.applyIgnoreFilters(t).filter(o=>!e.files.has(o.key));return m(`Files to be deleted:
3
3
  ${s.map(o=>`-${o.key}`).join(`
4
4
  `)}`),s}function x(t){let e=P(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configStylesheetFiles,...e.documentationFiles,...e.configSchemaFile,...e.staticAssetFiles]}var D=[{key:"config/settings_schema.json",value:"[]"},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"}];async function R(t,e,r){let s=new Set(r.map(l=>l.key)),o=D.filter(({key:l})=>!s.has(l));o.length>0&&await w(t.id,o,e)}function q(t,e,r,s,o){let l=S(e,t);e.unsyncedFileKeys.clear(),l.forEach(a=>e.unsyncedFileKeys.add(a.key));let{independentFiles:n,dependentFiles:i}=I(l),c={current:0,total:l.length},u=a=>a.length===0?Promise.resolve():Promise.all(z(a).map(d=>N(d,e,s,r.id,o).then(()=>{c.current+=d.length,d.forEach(f=>e.unsyncedFileKeys.delete(f.key))}))).then(()=>{}),h=i.reduce((a,d)=>a.then(()=>u(d)),Promise.resolve()),p=Promise.resolve().then(()=>u(n.flat())),k=Promise.all([h,p]).then(()=>{c.current=c.total});return{progress:c,promise:k}}function S(t,e){let r=K(t),s=t.applyIgnoreFilters(r),o=new Map(e.map(n=>[n.key,n])),l=s.filter(n=>{let i=o.get(n.key);return!i||i.checksum!==n.checksum});return m(`Files to be uploaded:
@@ -1,3 +1,3 @@
1
- import{a as j}from"./chunk-QBGSSUJP.js";import{c as O,i as x,o as R}from"./chunk-ZHJ6KA43.js";import{e as k}from"./chunk-ECEOBSGD.js";import{a as E}from"./chunk-LYPNQFWX.js";import{p as v,v as A}from"./chunk-P3Z5RLVV.js";import{b as F,c as L}from"./chunk-DGMRL5DQ.js";import{N as y}from"./chunk-SKRUMRB4.js";import{i as T}from"./chunk-FCULF3JA.js";import{Ib as S,Nb as n,db as $,pa as w,ya as P}from"./chunk-YJWNM4XO.js";import{b as D}from"./chunk-JA2QZ635.js";import{d as l,i as u}from"./chunk-3VYOLEQE.js";import{e as q,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();import{fileURLToPath as U}from"node:url";async function _(...r){let e=await $("package.json",{cwd:U(import.meta.url),type:"file"});if(!e)throw new Error("Failed to find CLI root path");return e.endsWith("/packages/theme/package.json")?l(u(e),"assets",...r):l(u(e),"dist","assets",...r)}async function b(r,e,i,t,a,m){let c=await O(r)?await j(m,r.storeFqdn):void 0;if(a)throw new T("Unable to use Admin API or Theme Access tokens with the profile command","You must authenticate manually by not passing the --password flag.");let f=await R(e,r,a,c),o=await x(f,{method:"GET",path:i,query:[],themeId:e,headers:{Accept:"application/vnd.speedscope+json"}});if(o.status!==200){let h=await o.text();throw new Error(`Bad response: ${o.status}: ${h}`)}let s=await o.text();t?S(s):await H(s)}async function H(r){let e=process.env.WSL_DISTRO_NAME,i=e?`//wsl$/${e}`:"",t=await _("speedscope","index.html");n(`[Theme Profile] Resolved URL to open: ${t}`);let a="liquid-profile",m=Buffer.from(r).toString("base64"),c=`speedscope.loadFileFromBase64(${JSON.stringify(a)}, ${JSON.stringify(m)})`,f=`speedscope-${Number(new Date)}-${process.pid}`,o=l(w(),`${f}.js`);n(`[Theme Profile] writing JS file to: ${o}`),await P(o,c),n(`[Theme Profile] JS file created successfully: ${o}`),t=`${i}${t}`,o=`${i}${o}`,t+=`#localProfilePath=${o}`;let s=l(w(),`${f}.html`);n(`[Theme Profile] writing HTML file to: ${s}`),await P(s,`<script>window.location=${JSON.stringify(t)}</script>`),n(`[Theme Profile] HTML file created successfully: ${s}`),s=`${i}${s}`,t=`file://${s}`,n(`[Theme Profile] Opening URL: ${t}`);let h=await y(t);n(`[Theme Profile] URL opened successfully: ${h}`)}var d=q(D(),1);var g=class extends A{static summary="Profile the Liquid rendering of a theme page.";static usage=["theme profile","theme profile --url /products/classic-leather-jacket"];static descriptionWithMarkdown=`Profile the Shopify Liquid on a given page.
1
+ import{a as j}from"./chunk-5UDBNXNH.js";import{c as O,i as x,o as R}from"./chunk-3UZYLXCB.js";import{e as k}from"./chunk-NZRQKFUB.js";import{a as E}from"./chunk-P6ID3ULA.js";import{p as v,v as A}from"./chunk-2AZXDU2R.js";import{b as F,c as L}from"./chunk-2KBTFKSM.js";import{N as y}from"./chunk-KCHERKZO.js";import{i as T}from"./chunk-XUJURYN5.js";import{Ib as S,Nb as n,db as $,pa as w,ya as P}from"./chunk-COFGQT76.js";import{b as D}from"./chunk-JA2QZ635.js";import{d as l,i as u}from"./chunk-3VYOLEQE.js";import{e as q,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();import{fileURLToPath as U}from"node:url";async function _(...r){let e=await $("package.json",{cwd:U(import.meta.url),type:"file"});if(!e)throw new Error("Failed to find CLI root path");return e.endsWith("/packages/theme/package.json")?l(u(e),"assets",...r):l(u(e),"dist","assets",...r)}async function b(r,e,i,t,a,m){let c=await O(r)?await j(m,r.storeFqdn):void 0;if(a)throw new T("Unable to use Admin API or Theme Access tokens with the profile command","You must authenticate manually by not passing the --password flag.");let f=await R(e,r,a,c),o=await x(f,{method:"GET",path:i,query:[],themeId:e,headers:{Accept:"application/vnd.speedscope+json"}});if(o.status!==200){let h=await o.text();throw new Error(`Bad response: ${o.status}: ${h}`)}let s=await o.text();t?S(s):await H(s)}async function H(r){let e=process.env.WSL_DISTRO_NAME,i=e?`//wsl$/${e}`:"",t=await _("speedscope","index.html");n(`[Theme Profile] Resolved URL to open: ${t}`);let a="liquid-profile",m=Buffer.from(r).toString("base64"),c=`speedscope.loadFileFromBase64(${JSON.stringify(a)}, ${JSON.stringify(m)})`,f=`speedscope-${Number(new Date)}-${process.pid}`,o=l(w(),`${f}.js`);n(`[Theme Profile] writing JS file to: ${o}`),await P(o,c),n(`[Theme Profile] JS file created successfully: ${o}`),t=`${i}${t}`,o=`${i}${o}`,t+=`#localProfilePath=${o}`;let s=l(w(),`${f}.html`);n(`[Theme Profile] writing HTML file to: ${s}`),await P(s,`<script>window.location=${JSON.stringify(t)}</script>`),n(`[Theme Profile] HTML file created successfully: ${s}`),s=`${i}${s}`,t=`file://${s}`,n(`[Theme Profile] Opening URL: ${t}`);let h=await y(t);n(`[Theme Profile] URL opened successfully: ${h}`)}var d=q(D(),1);var g=class extends A{static summary="Profile the Liquid rendering of a theme page.";static usage=["theme profile","theme profile --url /products/classic-leather-jacket"];static descriptionWithMarkdown=`Profile the Shopify Liquid on a given page.
2
2
 
3
3
  This command will open a web page with the Speedscope profiler detailing the time spent executing Liquid on the given page.`;static description=this.descriptionForHelp();static flags={...F,...v,theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),url:d.Flags.string({description:"The url to be used as context",env:"SHOPIFY_FLAG_URL",default:"/"}),"store-password":d.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"}),...L};static multiEnvironmentsFlags=null;async command(e,i){let{password:t}=e,a;e.theme?a={filter:{theme:e.theme}}:a={filter:{live:!0}};let m=await E(i,a),c=[{title:`Generating Liquid profile for ${i.storeFqdn} ${e.url}`,task:async()=>{await b(i,m.id.toString(),e.url,e.json,t,e["store-password"])}}];await k(c)}};export{g as a};
@@ -1,4 +1,4 @@
1
- import{a as J}from"./chunk-UFU2LGFK.js";import{a as p}from"./chunk-ECEOBSGD.js";import{a as v}from"./chunk-YY6TFARF.js";import{a as E,b as C}from"./chunk-LYPNQFWX.js";import{r as S}from"./chunk-R757TSQ6.js";import{p as h,r as D,v as N}from"./chunk-P3Z5RLVV.js";import{b as q,c as F,f as O}from"./chunk-DGMRL5DQ.js";import{K as b}from"./chunk-L5XWYTHY.js";import{B as m,E as T,W as d,z as w}from"./chunk-SKRUMRB4.js";import{Ib as n}from"./chunk-YJWNM4XO.js";import{b as Y}from"./chunk-JA2QZ635.js";import{e as P,g as c}from"./chunk-VKWPEFWQ.js";c();c();async function x(t,o,e){let{name:r,verbose:u,noColor:l,json:a,force:A}=e,y=d()||A;if(J({verbose:u,noColor:l}),y&&!o){let i="A theme ID is required to duplicate a theme, specify one with the --theme flag";a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}let s=o?await C(t,o):await E(t,{header:"Select a theme to duplicate",filter:{theme:o}});if(!s){let i=`No theme with ID ${o} could be found. Use shopify theme list to find a theme ID.`;a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}if(s?.role==="development"){let i="Development themes can't be duplicated. Use shopify theme push to upload it to the store first.";a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}if(!y&&!await T({message:`Do you want to duplicate '${s.name}' on ${t.storeFqdn}?`,confirmationMessage:`Yes, duplicate '${s.name}'`,cancellationMessage:"No, cancel duplicate"}))return;let I=await S(s.id,r,t);a?M(s,t,I):j(s,t,I)}function j(t,o,e){if(e.userErrors&&e.userErrors.length>0){let r=e.userErrors.map(u=>u.message).join(", ");m({body:["The theme",...p(t),"could not be duplicated due to errors: ",{subdued:r},{char:"."},...e.requestId?[`
1
+ import{a as J}from"./chunk-JJ4MYCVU.js";import{a as p}from"./chunk-NZRQKFUB.js";import{a as v}from"./chunk-YY6TFARF.js";import{a as E,b as C}from"./chunk-P6ID3ULA.js";import{r as S}from"./chunk-NSHKVJST.js";import{p as h,r as D,v as N}from"./chunk-2AZXDU2R.js";import{b as q,c as F,f as O}from"./chunk-2KBTFKSM.js";import{K as b}from"./chunk-VWYZCCRE.js";import{B as m,E as T,W as d,z as w}from"./chunk-KCHERKZO.js";import{Ib as n}from"./chunk-COFGQT76.js";import{b as Y}from"./chunk-JA2QZ635.js";import{e as P,g as c}from"./chunk-VKWPEFWQ.js";c();c();async function x(t,o,e){let{name:r,verbose:u,noColor:l,json:a,force:A}=e,y=d()||A;if(J({verbose:u,noColor:l}),y&&!o){let i="A theme ID is required to duplicate a theme, specify one with the --theme flag";a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}let s=o?await C(t,o):await E(t,{header:"Select a theme to duplicate",filter:{theme:o}});if(!s){let i=`No theme with ID ${o} could be found. Use shopify theme list to find a theme ID.`;a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}if(s?.role==="development"){let i="Development themes can't be duplicated. Use shopify theme push to upload it to the store first.";a?n(JSON.stringify({message:i,errors:[]})):m({body:[i]});return}if(!y&&!await T({message:`Do you want to duplicate '${s.name}' on ${t.storeFqdn}?`,confirmationMessage:`Yes, duplicate '${s.name}'`,cancellationMessage:"No, cancel duplicate"}))return;let I=await S(s.id,r,t);a?M(s,t,I):j(s,t,I)}function j(t,o,e){if(e.userErrors&&e.userErrors.length>0){let r=e.userErrors.map(u=>u.message).join(", ");m({body:["The theme",...p(t),"could not be duplicated due to errors: ",{subdued:r},{char:"."},...e.requestId?[`
2
2
  Request ID: `,{subdued:e.requestId}]:[]]})}else e.theme?w({body:["The theme",...p(t),"has been duplicated",{char:"."}],nextSteps:[[{link:{label:"View the duplicated theme",url:v(e.theme,o)}}]]}):m({body:["The theme",...p(t),"unexpectedly could not be duplicated",{char:"."},...e.requestId?[`
3
3
  Request ID: `,{subdued:e.requestId}]:[]]})}function M(t,o,e){if(e.userErrors&&e.userErrors.length>0)n(JSON.stringify({message:`The theme '${t.name}' could not be duplicated due to errors`,errors:e.userErrors.map(r=>r.message),requestId:e.requestId}));else if(e.theme){let{id:r,name:u,role:l}=e.theme,a={theme:{id:r,name:u,role:l,shop:o.storeFqdn}};n(JSON.stringify(a))}else n(JSON.stringify({message:`The theme '${t.name}' unexpectedly could not be duplicated `,errors:[],requestId:e.requestId}))}var f=P(Y(),1);var g=class t extends N{static summary="Duplicates a theme from your theme library.";static usage=["theme duplicate","theme duplicate --theme 10 --name 'New Theme'"];static descriptionWithMarkdown=`If you want to duplicate your local theme, you need to run \`shopify theme push\` first.
4
4
 
@@ -1,2 +1,2 @@
1
- import{a as B,b as E}from"./chunk-HSZC2LBB.js";import{b as y,c as A,l as C,n as F,o as S,t as x}from"./chunk-3AASYIOA.js";import{a as D}from"./chunk-YGFEUXKQ.js";import{a as w}from"./chunk-JTPVSO6Y.js";import{b as O}from"./chunk-DGMRL5DQ.js";import{u as f}from"./chunk-L5XWYTHY.js";import{A as b,B as g,y as c,z as k}from"./chunk-SKRUMRB4.js";import{Cb as h,Eb as I}from"./chunk-YJWNM4XO.js";import{b as v}from"./chunk-JA2QZ635.js";import{e as z,g as a}from"./chunk-VKWPEFWQ.js";a();a();async function T(i){let{organization:e,storeFqdn:o,operationId:t,remoteApp:u}=i;c({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${t}`,...E({organization:e,remoteApp:u,storeFqdn:o})]}}]});let q=await B(u,o),s=await C({adminSession:q,operationId:t});if(s?.userErrors?.length){F(s.userErrors,"Failed to cancel bulk operation.");return}let n=s?.bulkOperation;if(n){let r=S(n),d=n.status==="CANCELING"?[`This may take a few moments. Check the status with:
1
+ import{a as B,b as E}from"./chunk-7H4IM6PX.js";import{b as y,c as A,l as C,n as F,o as S,t as x}from"./chunk-7WWPAHVE.js";import{a as D}from"./chunk-MINDMVTH.js";import{a as w}from"./chunk-RFDOSK57.js";import{b as O}from"./chunk-2KBTFKSM.js";import{u as f}from"./chunk-VWYZCCRE.js";import{A as b,B as g,y as c,z as k}from"./chunk-KCHERKZO.js";import{Cb as h,Eb as I}from"./chunk-COFGQT76.js";import{b as v}from"./chunk-JA2QZ635.js";import{e as z,g as a}from"./chunk-VKWPEFWQ.js";a();a();async function T(i){let{organization:e,storeFqdn:o,operationId:t,remoteApp:u}=i;c({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${t}`,...E({organization:e,remoteApp:u,storeFqdn:o})]}}]});let q=await B(u,o),s=await C({adminSession:q,operationId:t});if(s?.userErrors?.length){F(s.userErrors,"Failed to cancel bulk operation.");return}let n=s?.bulkOperation;if(n){let r=S(n),d=n.status==="CANCELING"?[`This may take a few moments. Check the status with:
2
2
  `,{command:`shopify app bulk status --id=${A(n.id)}`}]:r.body,p={headline:r.headline,...d&&{body:d},...r.customSections&&{customSections:r.customSections}};switch(r.renderType){case"success":k(p);break;case"warning":b(p);break;case"info":c(p);break}}else g({headline:"Bulk operation not found or could not be canceled.",body:I`ID: ${h.yellow(t)}`.value})}var l=z(v(),1);var m=class i extends D{static summary="Cancel a bulk operation.";static description="Cancels a running bulk operation by ID.";static flags={...O,...w,id:l.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:l.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>f(e)})};async run(){let{flags:e}=await this.parse(i),{appContextResult:o,store:t}=await x(e);return await T({organization:o.organization,storeFqdn:t.shopDomain,operationId:y(e.id),remoteApp:o.remoteApp}),{app:o.app}}};export{m as a};
@@ -1 +1 @@
1
- import{b as n}from"./chunk-DGMRL5DQ.js";import{i as r}from"./chunk-B4OMIONW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
1
+ import{b as n}from"./chunk-2KBTFKSM.js";import{i as r}from"./chunk-B4OMIONW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
@@ -1,4 +1,4 @@
1
- import{a as f}from"./chunk-YGFEUXKQ.js";import{a as m}from"./chunk-JTPVSO6Y.js";import{Ha as l,i as s,ja as d}from"./chunk-2KLXRVGQ.js";import{b as u}from"./chunk-DGMRL5DQ.js";import{Cb as n,Eb as a,Ib as c}from"./chunk-YJWNM4XO.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();async function g(e,t,o){return S(e,t,o,"text")}async function S(e,t,o,r){return await d(t,o.source),r==="json"?a`${n.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:s(e.configuration)})}`:a`
1
+ import{a as f}from"./chunk-MINDMVTH.js";import{a as m}from"./chunk-RFDOSK57.js";import{Ha as l,i as s,ja as d}from"./chunk-AKSOCKVF.js";import{b as u}from"./chunk-2KBTFKSM.js";import{Cb as n,Eb as a,Ib as c}from"./chunk-COFGQT76.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();async function g(e,t,o){return S(e,t,o,"text")}async function S(e,t,o,r){return await d(t,o.source),r==="json"?a`${n.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:s(e.configuration)})}`:a`
2
2
  ${n.green("SHOPIFY_API_KEY")}=${t.apiKey}
3
3
  ${n.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
4
4
  ${n.green("SCOPES")}=${s(e.configuration)}
@@ -1 +1 @@
1
- import{a as v}from"./chunk-G7OIACY5.js";import{b as y,c as P,d as b}from"./chunk-AD4S2VEI.js";import{a as F}from"./chunk-WXV35TPE.js";import{a as m}from"./chunk-JTPVSO6Y.js";import{Ia as x}from"./chunk-2KLXRVGQ.js";import{b as d,c as h}from"./chunk-DGMRL5DQ.js";import{F as g,M as l}from"./chunk-SKRUMRB4.js";import{Nb as n}from"./chunk-YJWNM4XO.js";import{b as _}from"./chunk-JA2QZ635.js";import{e as U,g as u}from"./chunk-VKWPEFWQ.js";u();var i=U(_(),1);var a="_start",s=class w extends F{static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...d,...m,...y,...h,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(w),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&l({})){let O=r.map(f=>({label:f.target,value:f.export||a}));o=await g({message:"Which target would you like to execute?",choices:O})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,T=c&&`${e?.directory}/${c}`,A=await b(e,t.path,t["client-id"],t.reset,t.config);return await v({functionExtension:e,json:t.json,inputPath:t.input,export:o,stdin:"inherit",schemaPath:A,queryPath:T,profile:t.profile}),{app:p}}};export{s as a};
1
+ import{a as v}from"./chunk-H3QLPW7Q.js";import{b as y,c as P,d as b}from"./chunk-IQ4VOPT7.js";import{a as F}from"./chunk-A6OSIGQI.js";import{a as m}from"./chunk-RFDOSK57.js";import{Ia as x}from"./chunk-AKSOCKVF.js";import{b as d,c as h}from"./chunk-2KBTFKSM.js";import{F as g,M as l}from"./chunk-KCHERKZO.js";import{Nb as n}from"./chunk-COFGQT76.js";import{b as _}from"./chunk-JA2QZ635.js";import{e as U,g as u}from"./chunk-VKWPEFWQ.js";u();var i=U(_(),1);var a="_start",s=class w extends F{static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...d,...m,...y,...h,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(w),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&l({})){let O=r.map(f=>({label:f.target,value:f.export||a}));o=await g({message:"Which target would you like to execute?",choices:O})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,T=c&&`${e?.directory}/${c}`,A=await b(e,t.path,t["client-id"],t.reset,t.config);return await v({functionExtension:e,json:t.json,inputPath:t.input,export:o,stdin:"inherit",schemaPath:A,queryPath:T,profile:t.profile}),{app:p}}};export{s as a};
@@ -1 +1 @@
1
- import{b as O,c as b,f as F}from"./chunk-DGMRL5DQ.js";import{b as L}from"./chunk-FW5HGFSZ.js";import{F as g,t as f,w as p,x as d,y as h,z as S}from"./chunk-L5XWYTHY.js";import{j as r}from"./chunk-QAXFCAOV.js";import{D as w,J as y}from"./chunk-SKRUMRB4.js";import{a as m}from"./chunk-5RL6DKWR.js";import{Ib as A,Mb as I,b as n}from"./chunk-YJWNM4XO.js";import{b as j}from"./chunk-JA2QZ635.js";import{e as C,g as i}from"./chunk-VKWPEFWQ.js";i();i();var a=m({name:"AuthLoginResult",schema:n.object({status:n.literal("success"),alias:n.string()}).strict()});i();var c="NEW_LOGIN";function _(s,e){let t=[],o=s[e];if(o)for(let[l,x]of Object.entries(o))t.push({label:x.identity.alias??l,value:l});return t}async function q(){let s=await g({},{forceNewSession:!0}),e=await d(s.userId);if(!e){let t=await y({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await h(s.userId,t),t}return e}async function E(){let s=await p(),e=await f(),t=[];return s&&t.push(..._(s,e)),t.length>0&&t.push({label:"Log in with a different account",value:c}),t}async function N(s){if(s){let o=await S(s);if(o)return r(o),s}let e=await E(),t=c;return e.length>0&&(t=await w({message:"Which account would you like to use?",choices:e})),t===c?q():(r(t),e.find(o=>o.value===t)?.label??t)}var v=C(j(),1);var u=class s extends L{static descriptionWithMarkdown="Logs you in to your Shopify account.";static description=this.descriptionForHelp();static flags={...O,...b,alias:F(v.Flags.string({description:"Alias of an existing session you want to use.",env:"SHOPIFY_FLAG_AUTH_ALIAS"}))};static get jsonOutputSchema(){return a}async run(){let{flags:e}=await this.parse(s),t=await N(e.alias);e.json?A(a.encode({status:"success",alias:t})):I(`Current account: ${t}.`)}};export{u as a};
1
+ import{b as O,c as b,f as F}from"./chunk-2KBTFKSM.js";import{b as L}from"./chunk-CUZQRXTV.js";import{F as g,t as f,w as p,x as d,y as h,z as S}from"./chunk-VWYZCCRE.js";import{j as r}from"./chunk-QF6EH4HX.js";import{D as w,J as y}from"./chunk-KCHERKZO.js";import{a as m}from"./chunk-IUUKRTKF.js";import{Ib as A,Mb as I,b as n}from"./chunk-COFGQT76.js";import{b as j}from"./chunk-JA2QZ635.js";import{e as C,g as i}from"./chunk-VKWPEFWQ.js";i();i();var a=m({name:"AuthLoginResult",schema:n.object({status:n.literal("success"),alias:n.string()}).strict()});i();var c="NEW_LOGIN";function _(s,e){let t=[],o=s[e];if(o)for(let[l,x]of Object.entries(o))t.push({label:x.identity.alias??l,value:l});return t}async function q(){let s=await g({},{forceNewSession:!0}),e=await d(s.userId);if(!e){let t=await y({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await h(s.userId,t),t}return e}async function E(){let s=await p(),e=await f(),t=[];return s&&t.push(..._(s,e)),t.length>0&&t.push({label:"Log in with a different account",value:c}),t}async function N(s){if(s){let o=await S(s);if(o)return r(o),s}let e=await E(),t=c;return e.length>0&&(t=await w({message:"Which account would you like to use?",choices:e})),t===c?q():(r(t),e.find(o=>o.value===t)?.label??t)}var v=C(j(),1);var u=class s extends L{static descriptionWithMarkdown="Logs you in to your Shopify account.";static description=this.descriptionForHelp();static flags={...O,...b,alias:F(v.Flags.string({description:"Alias of an existing session you want to use.",env:"SHOPIFY_FLAG_AUTH_ALIAS"}))};static get jsonOutputSchema(){return a}async run(){let{flags:e}=await this.parse(s),t=await N(e.alias);e.json?A(a.encode({status:"success",alias:t})):I(`Current account: ${t}.`)}};export{u as a};
@@ -1,4 +1,4 @@
1
- import{b as l}from"./chunk-DGMRL5DQ.js";import{b as u}from"./chunk-FW5HGFSZ.js";import{k as f}from"./chunk-L5XWYTHY.js";import{i as n}from"./chunk-FCULF3JA.js";import{Ib as m}from"./chunk-YJWNM4XO.js";import{b as g}from"./chunk-JA2QZ635.js";import{e as v,g as o}from"./chunk-VKWPEFWQ.js";o();o();var S="https://shopify.dev/assistant/search",w="X-Shopify-Surface",A="cli";async function y(s,e,p){let i=new URLSearchParams({query:s});e&&i.append("api_name",e),p&&i.append("api_version",p);let r;try{r=await f(`${S}?${i.toString()}`,{headers:{Accept:"application/json",[w]:A}})}catch{throw new n("Could not reach shopify.dev to run the search.","Check your network connection and try again.")}let h=await r.text();if(!r.ok){let d=`${r.status} ${r.statusText}`;try{let t=JSON.parse(h);t?.error&&(d=t.error)}catch(t){if(!(t instanceof SyntaxError))throw t}throw new n(`Search failed: ${d}`)}m(h)}var a=v(g(),1),c=class s extends u{static description="Query the shopify.dev vector store and print the most relevant documentation chunks as JSON. Best for programmatic discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`.";static examples=[`# search shopify.dev for a topic
1
+ import{b as l}from"./chunk-2KBTFKSM.js";import{b as u}from"./chunk-CUZQRXTV.js";import{k as f}from"./chunk-VWYZCCRE.js";import{i as n}from"./chunk-XUJURYN5.js";import{Ib as m}from"./chunk-COFGQT76.js";import{b as g}from"./chunk-JA2QZ635.js";import{e as v,g as o}from"./chunk-VKWPEFWQ.js";o();o();var S="https://shopify.dev/assistant/search",w="X-Shopify-Surface",A="cli";async function y(s,e,p){let i=new URLSearchParams({query:s});e&&i.append("api_name",e),p&&i.append("api_version",p);let r;try{r=await f(`${S}?${i.toString()}`,{headers:{Accept:"application/json",[w]:A}})}catch{throw new n("Could not reach shopify.dev to run the search.","Check your network connection and try again.")}let h=await r.text();if(!r.ok){let d=`${r.status} ${r.statusText}`;try{let t=JSON.parse(h);t?.error&&(d=t.error)}catch(t){if(!(t instanceof SyntaxError))throw t}throw new n(`Search failed: ${d}`)}m(h)}var a=v(g(),1),c=class s extends u{static description="Query the shopify.dev vector store and print the most relevant documentation chunks as JSON. Best for programmatic discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`.";static examples=[`# search shopify.dev for a topic
2
2
  shopify doc search --query "subscribe to webhooks"
3
3
 
4
4
  # narrow the search to a specific API and version
@@ -1,4 +1,4 @@
1
- import{a as yn,b as zy,c as Ly,d as AQ,f as kA,g as Rm,h as KB,i as To,j as Jy,k as B2,l as ps,m as d2,n as Yy,o as m2,p as C2}from"./chunk-7Y7AZRL3.js";import{b as _y,d as Mg}from"./chunk-OEZATTOS.js";import{a as E2}from"./chunk-5HBIIYSK.js";import{d as vm}from"./chunk-YTJ3EPD3.js";import{a as g2}from"./chunk-7UNQOKZW.js";import{f as Hg}from"./chunk-G54BKNIX.js";import{i as ms,j as Nm,k as qy,l as jy,p as Xy}from"./chunk-FCULF3JA.js";import{a as Dm}from"./chunk-BJOJNAKH.js";import{Ab as Fy,C as u2,Cb as Vy,D as i2,Eb as nQ,G as o2,I as c2,J as r2,Kb as Um,L as s2,N as f2,Nb as qB,Ob as ky,Tb as Ol,Ub as Jc,X as Gy,e as $R,ib as Ug,j as e2,jb as Oy,kb as Lc,p as A2,pb as wy,q as n2,rb as bo,sb as xg,x as eQ,y as a2,yb as Ky,zb as p2}from"./chunk-YJWNM4XO.js";import{e as t2,g as l2,h as YB,i as uA}from"./chunk-B4OMIONW.js";import{g as FB,o as Zy}from"./chunk-SGBLCVUX.js";import{b as tQ}from"./chunk-5XO6PAMV.js";import{a as $I}from"./chunk-JD5P5RAJ.js";import{b as Hy,i as by,q as Ty}from"./chunk-3VYOLEQE.js";import{j as WR}from"./chunk-TR4OWSEX.js";import{a as PR}from"./chunk-TOLPNBZK.js";import{a as My,c as ze,e as Ut,g as R}from"./chunk-VKWPEFWQ.js";var ES=ze(Qe=>{"use strict";R();var iQ=Symbol.for("react.transitional.element"),U2=Symbol.for("react.portal"),x2=Symbol.for("react.fragment"),M2=Symbol.for("react.strict_mode"),H2=Symbol.for("react.profiler"),b2=Symbol.for("react.consumer"),T2=Symbol.for("react.context"),G2=Symbol.for("react.forward_ref"),O2=Symbol.for("react.suspense"),w2=Symbol.for("react.memo"),oS=Symbol.for("react.lazy"),_2=Symbol.for("react.activity"),aS=Symbol.iterator;function z2(n){return n===null||typeof n!="object"?null:(n=aS&&n[aS]||n["@@iterator"],typeof n=="function"?n:null)}var cS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rS=Object.assign,sS={};function Tg(n,u,c){this.props=n,this.context=u,this.refs=sS,this.updater=c||cS}Tg.prototype.isReactComponent={};Tg.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,u,"setState")};Tg.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function fS(){}fS.prototype=Tg.prototype;function oQ(n,u,c){this.props=n,this.context=u,this.refs=sS,this.updater=c||cS}var cQ=oQ.prototype=new fS;cQ.constructor=oQ;rS(cQ,Tg.prototype);cQ.isPureReactComponent=!0;var lS=Array.isArray;function uQ(){}var HA={H:null,A:null,T:null,S:null},gS=Object.prototype.hasOwnProperty;function rQ(n,u,c){var r=c.ref;return{$$typeof:iQ,type:n,key:u,ref:r!==void 0?r:null,props:c}}function L2(n,u){return rQ(n.type,u,n.props)}function sQ(n){return typeof n=="object"&&n!==null&&n.$$typeof===iQ}function J2(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(c){return u[c]})}var uS=/\/+/g;function lQ(n,u){return typeof n=="object"&&n!==null&&n.key!=null?J2(""+n.key):u.toString(36)}function Y2(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(uQ,uQ):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function bg(n,u,c,r,E){var m=typeof n;(m==="undefined"||m==="boolean")&&(n=null);var C=!1;if(n===null)C=!0;else switch(m){case"bigint":case"string":case"number":C=!0;break;case"object":switch(n.$$typeof){case iQ:case U2:C=!0;break;case oS:return C=n._init,bg(C(n._payload),u,c,r,E)}}if(C)return E=E(n),C=r===""?"."+lQ(n,0):r,lS(E)?(c="",C!=null&&(c=C.replace(uS,"$&/")+"/"),bg(E,u,c,"",function(N){return N})):E!=null&&(sQ(E)&&(E=L2(E,c+(E.key==null||n&&n.key===E.key?"":(""+E.key).replace(uS,"$&/")+"/")+C)),u.push(E)),1;C=0;var h=r===""?".":r+":";if(lS(n))for(var Q=0;Q<n.length;Q++)r=n[Q],m=h+lQ(r,Q),C+=bg(r,u,c,m,E);else if(Q=z2(n),typeof Q=="function")for(n=Q.call(n),Q=0;!(r=n.next()).done;)r=r.value,m=h+lQ(r,Q++),C+=bg(r,u,c,m,E);else if(m==="object"){if(typeof n.then=="function")return bg(Y2(n),u,c,r,E);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return C}function Mm(n,u,c){if(n==null)return n;var r=[],E=0;return bg(n,r,"","",function(m){return u.call(c,m,E++)}),r}function K2(n){if(n._status===-1){var u=n._result;u=u(),u.then(function(c){(n._status===0||n._status===-1)&&(n._status=1,n._result=c)},function(c){(n._status===0||n._status===-1)&&(n._status=2,n._result=c)}),n._status===-1&&(n._status=0,n._result=u)}if(n._status===1)return n._result.default;throw n._result}var iS=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},F2={map:Mm,forEach:function(n,u,c){Mm(n,function(){u.apply(this,arguments)},c)},count:function(n){var u=0;return Mm(n,function(){u++}),u},toArray:function(n){return Mm(n,function(u){return u})||[]},only:function(n){if(!sQ(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Qe.Activity=_2;Qe.Children=F2;Qe.Component=Tg;Qe.Fragment=x2;Qe.Profiler=H2;Qe.PureComponent=oQ;Qe.StrictMode=M2;Qe.Suspense=O2;Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=HA;Qe.__COMPILER_RUNTIME={__proto__:null,c:function(n){return HA.H.useMemoCache(n)}};Qe.cache=function(n){return function(){return n.apply(null,arguments)}};Qe.cacheSignal=function(){return null};Qe.cloneElement=function(n,u,c){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var r=rS({},n.props),E=n.key;if(u!=null)for(m in u.key!==void 0&&(E=""+u.key),u)!gS.call(u,m)||m==="key"||m==="__self"||m==="__source"||m==="ref"&&u.ref===void 0||(r[m]=u[m]);var m=arguments.length-2;if(m===1)r.children=c;else if(1<m){for(var C=Array(m),h=0;h<m;h++)C[h]=arguments[h+2];r.children=C}return rQ(n.type,E,r)};Qe.createContext=function(n){return n={$$typeof:T2,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:b2,_context:n},n};Qe.createElement=function(n,u,c){var r,E={},m=null;if(u!=null)for(r in u.key!==void 0&&(m=""+u.key),u)gS.call(u,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(E[r]=u[r]);var C=arguments.length-2;if(C===1)E.children=c;else if(1<C){for(var h=Array(C),Q=0;Q<C;Q++)h[Q]=arguments[Q+2];E.children=h}if(n&&n.defaultProps)for(r in C=n.defaultProps,C)E[r]===void 0&&(E[r]=C[r]);return rQ(n,m,E)};Qe.createRef=function(){return{current:null}};Qe.forwardRef=function(n){return{$$typeof:G2,render:n}};Qe.isValidElement=sQ;Qe.lazy=function(n){return{$$typeof:oS,_payload:{_status:-1,_result:n},_init:K2}};Qe.memo=function(n,u){return{$$typeof:w2,type:n,compare:u===void 0?null:u}};Qe.startTransition=function(n){var u=HA.T,c={};HA.T=c;try{var r=n(),E=HA.S;E!==null&&E(c,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(uQ,iS)}catch(m){iS(m)}finally{u!==null&&c.types!==null&&(u.types=c.types),HA.T=u}};Qe.unstable_useCacheRefresh=function(){return HA.H.useCacheRefresh()};Qe.use=function(n){return HA.H.use(n)};Qe.useActionState=function(n,u,c){return HA.H.useActionState(n,u,c)};Qe.useCallback=function(n,u){return HA.H.useCallback(n,u)};Qe.useContext=function(n){return HA.H.useContext(n)};Qe.useDebugValue=function(){};Qe.useDeferredValue=function(n,u){return HA.H.useDeferredValue(n,u)};Qe.useEffect=function(n,u){return HA.H.useEffect(n,u)};Qe.useEffectEvent=function(n){return HA.H.useEffectEvent(n)};Qe.useId=function(){return HA.H.useId()};Qe.useImperativeHandle=function(n,u,c){return HA.H.useImperativeHandle(n,u,c)};Qe.useInsertionEffect=function(n,u){return HA.H.useInsertionEffect(n,u)};Qe.useLayoutEffect=function(n,u){return HA.H.useLayoutEffect(n,u)};Qe.useMemo=function(n,u){return HA.H.useMemo(n,u)};Qe.useOptimistic=function(n,u){return HA.H.useOptimistic(n,u)};Qe.useReducer=function(n,u,c){return HA.H.useReducer(n,u,c)};Qe.useRef=function(n){return HA.H.useRef(n)};Qe.useState=function(n){return HA.H.useState(n)};Qe.useSyncExternalStore=function(n,u,c){return HA.H.useSyncExternalStore(n,u,c)};Qe.useTransition=function(){return HA.H.useTransition()};Qe.version="19.2.4"});var BS=ze((de,Hm)=>{"use strict";R();process.env.NODE_ENV!=="production"&&(function(){function n(y,F){Object.defineProperty(r.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",F[0],F[1])}})}function u(y){return y===null||typeof y!="object"?null:(y=Et&&y[Et]||y["@@iterator"],typeof y=="function"?y:null)}function c(y,F){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var st=y+"."+F;At[st]||(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.",F,y),At[st]=!0)}function r(y,F,st){this.props=y,this.context=F,this.refs=Ht,this.updater=st||Mt}function E(){}function m(y,F,st){this.props=y,this.context=F,this.refs=Ht,this.updater=st||Mt}function C(){}function h(y){return""+y}function Q(y){try{h(y);var F=!1}catch{F=!0}if(F){F=console;var st=F.error,ht=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return st.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ht),h(y)}}function N(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===Fe?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case re:return"Fragment";case ln:return"Profiler";case DA:return"StrictMode";case cA:return"Suspense";case H:return"SuspenseList";case V:return"Activity"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case _t:return"Portal";case We:return y.displayName||"Context";case Ve:return(y._context.displayName||"Context")+".Consumer";case bA:var F=y.render;return y=y.displayName,y||(y=F.displayName||F.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case T:return F=y.displayName||null,F!==null?F:N(y.type)||"Memo";case M:F=y._payload,y=y._init;try{return N(y(F))}catch{}}return null}function b(y){if(y===re)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===M)return"<...>";try{var F=N(y);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function X(){var y=Wt.A;return y===null?null:y.getOwner()}function U(){return Error("react-stack-top-frame")}function J(y){if(gn.call(y,"key")){var F=Object.getOwnPropertyDescriptor(y,"key").get;if(F&&F.isReactWarning)return!1}return y.key!==void 0}function Z(y,F){function st(){TA||(TA=!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)",F))}st.isReactWarning=!0,Object.defineProperty(y,"key",{get:st,configurable:!0})}function P(){var y=N(this.type);return ha[y]||(ha[y]=!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.")),y=this.props.ref,y!==void 0?y:null}function Y(y,F,st,ht,Gt,le){var Pt=st.ref;return y={$$typeof:wt,type:y,key:F,props:st,_owner:ht},(Pt!==void 0?Pt:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:P}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Gt}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function Nt(y,F){return F=Y(y.type,F,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(F._store.validated=y._store.validated),F}function St(y){Bt(y)?y._store&&(y._store.validated=1):typeof y=="object"&&y!==null&&y.$$typeof===M&&(y._payload.status==="fulfilled"?Bt(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function Bt(y){return typeof y=="object"&&y!==null&&y.$$typeof===wt}function vt(y){var F={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(st){return F[st]})}function qt(y,F){return typeof y=="object"&&y!==null&&y.key!=null?(Q(y.key),vt(""+y.key)):F.toString(36)}function ce(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(C,C):(y.status="pending",y.then(function(F){y.status==="pending"&&(y.status="fulfilled",y.value=F)},function(F){y.status==="pending"&&(y.status="rejected",y.reason=F)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,F,st,ht,Gt){var le=typeof y;(le==="undefined"||le==="boolean")&&(y=null);var Pt=!1;if(y===null)Pt=!0;else switch(le){case"bigint":case"string":case"number":Pt=!0;break;case"object":switch(y.$$typeof){case wt:case _t:Pt=!0;break;case M:return Pt=y._init,ee(Pt(y._payload),F,st,ht,Gt)}}if(Pt){Pt=y,Gt=Gt(Pt);var Me=ht===""?"."+qt(Pt,0):ht;return Pe(Gt)?(st="",Me!=null&&(st=Me.replace(Ll,"$&/")+"/"),ee(Gt,F,st,"",function(WA){return WA})):Gt!=null&&(Bt(Gt)&&(Gt.key!=null&&(Pt&&Pt.key===Gt.key||Q(Gt.key)),st=Nt(Gt,st+(Gt.key==null||Pt&&Pt.key===Gt.key?"":(""+Gt.key).replace(Ll,"$&/")+"/")+Me),ht!==""&&Pt!=null&&Bt(Pt)&&Pt.key==null&&Pt._store&&!Pt._store.validated&&(st._store.validated=2),Gt=st),F.push(Gt)),1}if(Pt=0,Me=ht===""?".":ht+":",Pe(y))for(var Be=0;Be<y.length;Be++)ht=y[Be],le=Me+qt(ht,Be),Pt+=ee(ht,F,st,le,Gt);else if(Be=u(y),typeof Be=="function")for(Be===y.entries&&(ya||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ya=!0),y=Be.call(y),Be=0;!(ht=y.next()).done;)ht=ht.value,le=Me+qt(ht,Be++),Pt+=ee(ht,F,st,le,Gt);else if(le==="object"){if(typeof y.then=="function")return ee(ce(y),F,st,ht,Gt);throw F=String(y),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Pt}function Rt(y,F,st){if(y==null)return y;var ht=[],Gt=0;return ee(y,ht,"","",function(le){return F.call(st,le,Gt++)}),ht}function It(y){if(y._status===-1){var F=y._ioInfo;F!=null&&(F.start=F.end=performance.now()),F=y._result;var st=F();if(st.then(function(Gt){if(y._status===0||y._status===-1){y._status=1,y._result=Gt;var le=y._ioInfo;le!=null&&(le.end=performance.now()),st.status===void 0&&(st.status="fulfilled",st.value=Gt)}},function(Gt){if(y._status===0||y._status===-1){y._status=2,y._result=Gt;var le=y._ioInfo;le!=null&&(le.end=performance.now()),st.status===void 0&&(st.status="rejected",st.reason=Gt)}}),F=y._ioInfo,F!=null){F.value=st;var ht=st.displayName;typeof ht=="string"&&(F.name=ht)}y._status===-1&&(y._status=0,y._result=st)}if(y._status===1)return F=y._result,F===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ import{a as yn,b as zy,c as Ly,d as AQ,f as kA,g as Rm,h as KB,i as To,j as Jy,k as B2,l as ps,m as d2,n as Yy,o as m2,p as C2}from"./chunk-7Y7AZRL3.js";import{b as _y,d as Mg}from"./chunk-TH4D7IGZ.js";import{a as E2}from"./chunk-5HBIIYSK.js";import{d as vm}from"./chunk-YTJ3EPD3.js";import{a as g2}from"./chunk-7UNQOKZW.js";import{f as Hg}from"./chunk-WR2MMFJO.js";import{i as ms,j as Nm,k as qy,l as jy,p as Xy}from"./chunk-XUJURYN5.js";import{a as Dm}from"./chunk-PTS7J2JO.js";import{Ab as Fy,C as u2,Cb as Vy,D as i2,Eb as nQ,G as o2,I as c2,J as r2,Kb as Um,L as s2,N as f2,Nb as qB,Ob as ky,Tb as Ol,Ub as Jc,X as Gy,e as $R,ib as Ug,j as e2,jb as Oy,kb as Lc,p as A2,pb as wy,q as n2,rb as bo,sb as xg,x as eQ,y as a2,yb as Ky,zb as p2}from"./chunk-COFGQT76.js";import{e as t2,g as l2,h as YB,i as uA}from"./chunk-B4OMIONW.js";import{g as FB,o as Zy}from"./chunk-C4QR7Z4N.js";import{b as tQ}from"./chunk-5XO6PAMV.js";import{a as $I}from"./chunk-JD5P5RAJ.js";import{b as Hy,i as by,q as Ty}from"./chunk-3VYOLEQE.js";import{j as WR}from"./chunk-TR4OWSEX.js";import{a as PR}from"./chunk-TOLPNBZK.js";import{a as My,c as ze,e as Ut,g as R}from"./chunk-VKWPEFWQ.js";var ES=ze(Qe=>{"use strict";R();var iQ=Symbol.for("react.transitional.element"),U2=Symbol.for("react.portal"),x2=Symbol.for("react.fragment"),M2=Symbol.for("react.strict_mode"),H2=Symbol.for("react.profiler"),b2=Symbol.for("react.consumer"),T2=Symbol.for("react.context"),G2=Symbol.for("react.forward_ref"),O2=Symbol.for("react.suspense"),w2=Symbol.for("react.memo"),oS=Symbol.for("react.lazy"),_2=Symbol.for("react.activity"),aS=Symbol.iterator;function z2(n){return n===null||typeof n!="object"?null:(n=aS&&n[aS]||n["@@iterator"],typeof n=="function"?n:null)}var cS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rS=Object.assign,sS={};function Tg(n,u,c){this.props=n,this.context=u,this.refs=sS,this.updater=c||cS}Tg.prototype.isReactComponent={};Tg.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,u,"setState")};Tg.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function fS(){}fS.prototype=Tg.prototype;function oQ(n,u,c){this.props=n,this.context=u,this.refs=sS,this.updater=c||cS}var cQ=oQ.prototype=new fS;cQ.constructor=oQ;rS(cQ,Tg.prototype);cQ.isPureReactComponent=!0;var lS=Array.isArray;function uQ(){}var HA={H:null,A:null,T:null,S:null},gS=Object.prototype.hasOwnProperty;function rQ(n,u,c){var r=c.ref;return{$$typeof:iQ,type:n,key:u,ref:r!==void 0?r:null,props:c}}function L2(n,u){return rQ(n.type,u,n.props)}function sQ(n){return typeof n=="object"&&n!==null&&n.$$typeof===iQ}function J2(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(c){return u[c]})}var uS=/\/+/g;function lQ(n,u){return typeof n=="object"&&n!==null&&n.key!=null?J2(""+n.key):u.toString(36)}function Y2(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(uQ,uQ):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function bg(n,u,c,r,E){var m=typeof n;(m==="undefined"||m==="boolean")&&(n=null);var C=!1;if(n===null)C=!0;else switch(m){case"bigint":case"string":case"number":C=!0;break;case"object":switch(n.$$typeof){case iQ:case U2:C=!0;break;case oS:return C=n._init,bg(C(n._payload),u,c,r,E)}}if(C)return E=E(n),C=r===""?"."+lQ(n,0):r,lS(E)?(c="",C!=null&&(c=C.replace(uS,"$&/")+"/"),bg(E,u,c,"",function(N){return N})):E!=null&&(sQ(E)&&(E=L2(E,c+(E.key==null||n&&n.key===E.key?"":(""+E.key).replace(uS,"$&/")+"/")+C)),u.push(E)),1;C=0;var h=r===""?".":r+":";if(lS(n))for(var Q=0;Q<n.length;Q++)r=n[Q],m=h+lQ(r,Q),C+=bg(r,u,c,m,E);else if(Q=z2(n),typeof Q=="function")for(n=Q.call(n),Q=0;!(r=n.next()).done;)r=r.value,m=h+lQ(r,Q++),C+=bg(r,u,c,m,E);else if(m==="object"){if(typeof n.then=="function")return bg(Y2(n),u,c,r,E);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return C}function Mm(n,u,c){if(n==null)return n;var r=[],E=0;return bg(n,r,"","",function(m){return u.call(c,m,E++)}),r}function K2(n){if(n._status===-1){var u=n._result;u=u(),u.then(function(c){(n._status===0||n._status===-1)&&(n._status=1,n._result=c)},function(c){(n._status===0||n._status===-1)&&(n._status=2,n._result=c)}),n._status===-1&&(n._status=0,n._result=u)}if(n._status===1)return n._result.default;throw n._result}var iS=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},F2={map:Mm,forEach:function(n,u,c){Mm(n,function(){u.apply(this,arguments)},c)},count:function(n){var u=0;return Mm(n,function(){u++}),u},toArray:function(n){return Mm(n,function(u){return u})||[]},only:function(n){if(!sQ(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Qe.Activity=_2;Qe.Children=F2;Qe.Component=Tg;Qe.Fragment=x2;Qe.Profiler=H2;Qe.PureComponent=oQ;Qe.StrictMode=M2;Qe.Suspense=O2;Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=HA;Qe.__COMPILER_RUNTIME={__proto__:null,c:function(n){return HA.H.useMemoCache(n)}};Qe.cache=function(n){return function(){return n.apply(null,arguments)}};Qe.cacheSignal=function(){return null};Qe.cloneElement=function(n,u,c){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var r=rS({},n.props),E=n.key;if(u!=null)for(m in u.key!==void 0&&(E=""+u.key),u)!gS.call(u,m)||m==="key"||m==="__self"||m==="__source"||m==="ref"&&u.ref===void 0||(r[m]=u[m]);var m=arguments.length-2;if(m===1)r.children=c;else if(1<m){for(var C=Array(m),h=0;h<m;h++)C[h]=arguments[h+2];r.children=C}return rQ(n.type,E,r)};Qe.createContext=function(n){return n={$$typeof:T2,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:b2,_context:n},n};Qe.createElement=function(n,u,c){var r,E={},m=null;if(u!=null)for(r in u.key!==void 0&&(m=""+u.key),u)gS.call(u,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(E[r]=u[r]);var C=arguments.length-2;if(C===1)E.children=c;else if(1<C){for(var h=Array(C),Q=0;Q<C;Q++)h[Q]=arguments[Q+2];E.children=h}if(n&&n.defaultProps)for(r in C=n.defaultProps,C)E[r]===void 0&&(E[r]=C[r]);return rQ(n,m,E)};Qe.createRef=function(){return{current:null}};Qe.forwardRef=function(n){return{$$typeof:G2,render:n}};Qe.isValidElement=sQ;Qe.lazy=function(n){return{$$typeof:oS,_payload:{_status:-1,_result:n},_init:K2}};Qe.memo=function(n,u){return{$$typeof:w2,type:n,compare:u===void 0?null:u}};Qe.startTransition=function(n){var u=HA.T,c={};HA.T=c;try{var r=n(),E=HA.S;E!==null&&E(c,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(uQ,iS)}catch(m){iS(m)}finally{u!==null&&c.types!==null&&(u.types=c.types),HA.T=u}};Qe.unstable_useCacheRefresh=function(){return HA.H.useCacheRefresh()};Qe.use=function(n){return HA.H.use(n)};Qe.useActionState=function(n,u,c){return HA.H.useActionState(n,u,c)};Qe.useCallback=function(n,u){return HA.H.useCallback(n,u)};Qe.useContext=function(n){return HA.H.useContext(n)};Qe.useDebugValue=function(){};Qe.useDeferredValue=function(n,u){return HA.H.useDeferredValue(n,u)};Qe.useEffect=function(n,u){return HA.H.useEffect(n,u)};Qe.useEffectEvent=function(n){return HA.H.useEffectEvent(n)};Qe.useId=function(){return HA.H.useId()};Qe.useImperativeHandle=function(n,u,c){return HA.H.useImperativeHandle(n,u,c)};Qe.useInsertionEffect=function(n,u){return HA.H.useInsertionEffect(n,u)};Qe.useLayoutEffect=function(n,u){return HA.H.useLayoutEffect(n,u)};Qe.useMemo=function(n,u){return HA.H.useMemo(n,u)};Qe.useOptimistic=function(n,u){return HA.H.useOptimistic(n,u)};Qe.useReducer=function(n,u,c){return HA.H.useReducer(n,u,c)};Qe.useRef=function(n){return HA.H.useRef(n)};Qe.useState=function(n){return HA.H.useState(n)};Qe.useSyncExternalStore=function(n,u,c){return HA.H.useSyncExternalStore(n,u,c)};Qe.useTransition=function(){return HA.H.useTransition()};Qe.version="19.2.4"});var BS=ze((de,Hm)=>{"use strict";R();process.env.NODE_ENV!=="production"&&(function(){function n(y,F){Object.defineProperty(r.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",F[0],F[1])}})}function u(y){return y===null||typeof y!="object"?null:(y=Et&&y[Et]||y["@@iterator"],typeof y=="function"?y:null)}function c(y,F){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var st=y+"."+F;At[st]||(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.",F,y),At[st]=!0)}function r(y,F,st){this.props=y,this.context=F,this.refs=Ht,this.updater=st||Mt}function E(){}function m(y,F,st){this.props=y,this.context=F,this.refs=Ht,this.updater=st||Mt}function C(){}function h(y){return""+y}function Q(y){try{h(y);var F=!1}catch{F=!0}if(F){F=console;var st=F.error,ht=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return st.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ht),h(y)}}function N(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===Fe?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case re:return"Fragment";case ln:return"Profiler";case DA:return"StrictMode";case cA:return"Suspense";case H:return"SuspenseList";case V:return"Activity"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case _t:return"Portal";case We:return y.displayName||"Context";case Ve:return(y._context.displayName||"Context")+".Consumer";case bA:var F=y.render;return y=y.displayName,y||(y=F.displayName||F.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case T:return F=y.displayName||null,F!==null?F:N(y.type)||"Memo";case M:F=y._payload,y=y._init;try{return N(y(F))}catch{}}return null}function b(y){if(y===re)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===M)return"<...>";try{var F=N(y);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function X(){var y=Wt.A;return y===null?null:y.getOwner()}function U(){return Error("react-stack-top-frame")}function J(y){if(gn.call(y,"key")){var F=Object.getOwnPropertyDescriptor(y,"key").get;if(F&&F.isReactWarning)return!1}return y.key!==void 0}function Z(y,F){function st(){TA||(TA=!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)",F))}st.isReactWarning=!0,Object.defineProperty(y,"key",{get:st,configurable:!0})}function P(){var y=N(this.type);return ha[y]||(ha[y]=!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.")),y=this.props.ref,y!==void 0?y:null}function Y(y,F,st,ht,Gt,le){var Pt=st.ref;return y={$$typeof:wt,type:y,key:F,props:st,_owner:ht},(Pt!==void 0?Pt:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:P}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Gt}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function Nt(y,F){return F=Y(y.type,F,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(F._store.validated=y._store.validated),F}function St(y){Bt(y)?y._store&&(y._store.validated=1):typeof y=="object"&&y!==null&&y.$$typeof===M&&(y._payload.status==="fulfilled"?Bt(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function Bt(y){return typeof y=="object"&&y!==null&&y.$$typeof===wt}function vt(y){var F={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(st){return F[st]})}function qt(y,F){return typeof y=="object"&&y!==null&&y.key!=null?(Q(y.key),vt(""+y.key)):F.toString(36)}function ce(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(C,C):(y.status="pending",y.then(function(F){y.status==="pending"&&(y.status="fulfilled",y.value=F)},function(F){y.status==="pending"&&(y.status="rejected",y.reason=F)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,F,st,ht,Gt){var le=typeof y;(le==="undefined"||le==="boolean")&&(y=null);var Pt=!1;if(y===null)Pt=!0;else switch(le){case"bigint":case"string":case"number":Pt=!0;break;case"object":switch(y.$$typeof){case wt:case _t:Pt=!0;break;case M:return Pt=y._init,ee(Pt(y._payload),F,st,ht,Gt)}}if(Pt){Pt=y,Gt=Gt(Pt);var Me=ht===""?"."+qt(Pt,0):ht;return Pe(Gt)?(st="",Me!=null&&(st=Me.replace(Ll,"$&/")+"/"),ee(Gt,F,st,"",function(WA){return WA})):Gt!=null&&(Bt(Gt)&&(Gt.key!=null&&(Pt&&Pt.key===Gt.key||Q(Gt.key)),st=Nt(Gt,st+(Gt.key==null||Pt&&Pt.key===Gt.key?"":(""+Gt.key).replace(Ll,"$&/")+"/")+Me),ht!==""&&Pt!=null&&Bt(Pt)&&Pt.key==null&&Pt._store&&!Pt._store.validated&&(st._store.validated=2),Gt=st),F.push(Gt)),1}if(Pt=0,Me=ht===""?".":ht+":",Pe(y))for(var Be=0;Be<y.length;Be++)ht=y[Be],le=Me+qt(ht,Be),Pt+=ee(ht,F,st,le,Gt);else if(Be=u(y),typeof Be=="function")for(Be===y.entries&&(ya||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ya=!0),y=Be.call(y),Be=0;!(ht=y.next()).done;)ht=ht.value,le=Me+qt(ht,Be++),Pt+=ee(ht,F,st,le,Gt);else if(le==="object"){if(typeof y.then=="function")return ee(ce(y),F,st,ht,Gt);throw F=String(y),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Pt}function Rt(y,F,st){if(y==null)return y;var ht=[],Gt=0;return ee(y,ht,"","",function(le){return F.call(st,le,Gt++)}),ht}function It(y){if(y._status===-1){var F=y._ioInfo;F!=null&&(F.start=F.end=performance.now()),F=y._result;var st=F();if(st.then(function(Gt){if(y._status===0||y._status===-1){y._status=1,y._result=Gt;var le=y._ioInfo;le!=null&&(le.end=performance.now()),st.status===void 0&&(st.status="fulfilled",st.value=Gt)}},function(Gt){if(y._status===0||y._status===-1){y._status=2,y._result=Gt;var le=y._ioInfo;le!=null&&(le.end=performance.now()),st.status===void 0&&(st.status="rejected",st.reason=Gt)}}),F=y._ioInfo,F!=null){F.value=st;var ht=st.displayName;typeof ht=="string"&&(F.name=ht)}y._status===-1&&(y._status=0,y._result=st)}if(y._status===1)return F=y._result,F===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'))
@@ -1 +1 @@
1
- import{a as p}from"./chunk-ZUVAHONX.js";import{a as r,b as c}from"./chunk-SDFO7P2M.js";import{d as s}from"./chunk-4Y22EM45.js";import{a}from"./chunk-YGFEUXKQ.js";import{Ha as n}from"./chunk-2KLXRVGQ.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class d extends a{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...s};async run(){let{flags:t}=await this.parse(d),{app:m,remoteApp:u}=await n({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),h=await p({action:"unschedule",input:t.input??"-",clientId:u.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:r}:{}}),i=c(h,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:m}}};export{e as a};
1
+ import{a as p}from"./chunk-QEF43PR2.js";import{a as r,b as c}from"./chunk-7ZONBOEZ.js";import{d as s}from"./chunk-2AAHKMPP.js";import{a}from"./chunk-MINDMVTH.js";import{Ha as n}from"./chunk-AKSOCKVF.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class d extends a{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...s};async run(){let{flags:t}=await this.parse(d),{app:m,remoteApp:u}=await n({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),h=await p({action:"unschedule",input:t.input??"-",clientId:u.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:r}:{}}),i=c(h,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:m}}};export{e as a};
@@ -1 +1 @@
1
- import{b as m,c as u}from"./chunk-AD4S2VEI.js";import{a as p}from"./chunk-WXV35TPE.js";import{a as n}from"./chunk-JTPVSO6Y.js";import{Ia as c,q as a}from"./chunk-2KLXRVGQ.js";import{b as e}from"./chunk-DGMRL5DQ.js";import{z as i}from"./chunk-SKRUMRB4.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var s=class l extends p{static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...e,...n,...m};async run(){let{flags:t}=await this.parse(l),{app:o}=await c({directory:t.path,userProvidedConfigName:t.config}),d=await u(o,t.path);return await a(d,{app:o,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),i({headline:"Function built successfully."}),{app:o}}};export{s as a};
1
+ import{b as m,c as u}from"./chunk-IQ4VOPT7.js";import{a as p}from"./chunk-A6OSIGQI.js";import{a as n}from"./chunk-RFDOSK57.js";import{Ia as c,q as a}from"./chunk-AKSOCKVF.js";import{b as e}from"./chunk-2KBTFKSM.js";import{z as i}from"./chunk-KCHERKZO.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var s=class l extends p{static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...e,...n,...m};async run(){let{flags:t}=await this.parse(l),{app:o}=await c({directory:t.path,userProvidedConfigName:t.config}),d=await u(o,t.path);return await a(d,{app:o,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),i({headline:"Function built successfully."}),{app:o}}};export{s as a};
@@ -1,4 +1,4 @@
1
- import{a as U,b as xt}from"./chunk-JLGA3B7P.js";import{a as ht,b as ft,f as Ie,g as ae,h as A,i as ce,k as Et,n as Tt}from"./chunk-ZHJ6KA43.js";import{a as M,l as gt,m as yt}from"./chunk-R757TSQ6.js";import{s as ie,t as W}from"./chunk-P3Z5RLVV.js";import{a as D,b as O,e as nt,g as rt,i as ot,j as it,k as at,n as ct,p as lt,q as dt,r as oe,s as b,u as ut,w as pt}from"./chunk-Q7BOSHWX.js";import{aa as mt}from"./chunk-IBTQO3JD.js";import{pa as L,ra as H}from"./chunk-L5XWYTHY.js";import{A as I,B as te,C as tt,T as st,y as et}from"./chunk-SKRUMRB4.js";import{c as Ke}from"./chunk-YTJ3EPD3.js";import{i as se}from"./chunk-FCULF3JA.js";import{Aa as Ze,Ca as Qe,Cb as j,Eb as ne,Kb as re,Nb as P,Ob as N,S as Xe,Xa as $,_a as C,ba as $e,fb as ke,qa as k,ya as be}from"./chunk-YJWNM4XO.js";import{d as T,g as V,j as Ve,k as q}from"./chunk-3VYOLEQE.js";import{e as Ye,g as h}from"./chunk-VKWPEFWQ.js";h();h();h();var rs=".shopifyignore",Rt=/templates\/\*(\.(json|liquid))?$/,St=new Set;function Le(e,t={}){let s=t.ignoreFromFile??[],n=t.ignore??[],r=t.only??[],[o=[],i=[]]=_e(s),[a=[],u=[]]=_e(n),[p=[],c=[]]=_e(r),l=e.filter(B(o,".shopifyignore"));return l=l.filter(B(a,"--ignore")),l=l.filter(B(p,"--only",!0)),i.length>0&&(l=l.concat(e.filter(B(i,".shopifyignore",!0)))),u.length>0&&(l=l.concat(e.filter(B(u,"--ignore",!0)))),c.length>0&&(l=l.filter(B(c,"--only"))),Xe(l,x=>x.key)}function B(e,t,s=!1){return({key:n})=>{if(e.length===0)return!0;let r=e.some(i=>os(n,i)||cs(i)&&as(n,ls(i)));return(s?!r:r)?(P(`Ignoring theme file ${n} via ${t}...`),!1):!0}}async function wt(e){let t=T(e,rs);return await $(t)?(await k(t,{encoding:"utf8"})).split(/(\r\n|\r|\n)/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")):[]}function _e(e){let t=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return[e.filter(n=>!n.startsWith("!")),t]}function os(e,t){let s={matchBase:!0,noglobstar:!0};return ke(e,t,s)?!0:(!t.includes("*")&&t.endsWith("/")&&!St.has(t)&&(St.add(t),I({headline:"Directory pattern may be misleading.",body:`For more reliable matching, consider using "${t}*" or "${t}*.<file_extension>" instead.`})),is(t)?ke(e,t.replace(Rt,"templates/**/*$1"),s):!1)}function is(e){return Rt.test(e)}function as(e,t){return t.test(e)}function cs(e){return e.startsWith("/")&&e.endsWith("/")}function ls(e){return new RegExp(e.slice(1,-1))}h();import Ft from"fs/promises";var le=class{notifyPath;isValidUrl;constructor(t){this.notifyPath=t,this.isValidUrl=this.validateUrl(t),this.notifyPath===""&&N("Notification skipped: notifyPath is an empty string")}async notify(t){if(this.notifyPath!=="")try{P(`Notifying filechange listener at ${this.notifyPath}...`),this.isValidUrl?await this.notifyUrl(t):await this.notifyFile(t)}catch(s){L(s);let n=`Failed to notify filechange listener at ${this.notifyPath}`;s instanceof Error&&(n=n.concat(`: ${s.message}`)),N(n)}}async notifyUrl(t){let s=await fetch(this.notifyPath,{method:"POST",body:JSON.stringify({files:[t]}),headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error(s.statusText)}async notifyFile(t){await Ft.writeFile(this.notifyPath,t),await Ft.utimes(this.notifyPath,new Date,new Date)}validateUrl(t){try{let s=new URL(t);return s.protocol==="http:"||s.protocol==="https:"}catch{return!1}}};h();h();h();import ds from"node:events";var Pt=["assets/**/*.*","locales/**/*.json","blocks/**/*.liquid","snippets/**/*.liquid"];function vt(e){let t=new Map,s=new Set,n=new ds,r=(c,l)=>{n.emit(c,l)},o=async c=>{let l=await ue(e,c),m=de(c,l),x=typeof l=="string"?l:"",f=Buffer.isBuffer(l)?l.toString("base64"):"";return t.set(c,M({key:c,checksum:m,value:x,attachment:f})),l},i=C(Pt,{cwd:e,deep:3,ignore:W}).then(c=>Promise.all(c.map(o))),a=(c,l)=>{let m=V(e,l),x=o(m).then(()=>{let f=t.get(m);return s.add(f.key),f.value??f.attachment??""});st(5).then(()=>{s.delete(m)}).catch(()=>{}),r(c,{fileKey:m,onContent:f=>{x.then(g=>{g&&f(g)}).catch(()=>{})},onSync:f=>{}})},u=c=>{let l=V(e,c);s.delete(l),t.delete(l),r("unlink",{fileKey:l,onSync:m=>m()})},p=new Set(Pt.map(c=>T(e,c.split("/").shift()??"")));return{root:e,files:t,unsyncedFileKeys:s,ready:async()=>i.then(()=>{}),delete:async c=>{t.delete(c)},write:async c=>{t.set(c.key,c)},read:o,addEventListener:(c,l)=>{n.on(c,l)},startWatcher:async()=>{let{default:c}=await import("./chokidar-5RWEYTNQ.js");c.watch([...p],{ignored:W,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}).on("add",a.bind(null,"add")).on("change",a.bind(null,"change")).on("unlink",u.bind(null))}}}h();h();var us="https://unpkg.com/@shopify/polaris@13.9.2/build/esm/styles.css";function $t(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function bt(e){return(0,String.raw)`<!DOCTYPE html>
1
+ import{a as U,b as xt}from"./chunk-JLGA3B7P.js";import{a as ht,b as ft,f as Ie,g as ae,h as A,i as ce,k as Et,n as Tt}from"./chunk-3UZYLXCB.js";import{a as M,l as gt,m as yt}from"./chunk-NSHKVJST.js";import{s as ie,t as W}from"./chunk-2AZXDU2R.js";import{a as D,b as O,e as nt,g as rt,i as ot,j as it,k as at,n as ct,p as lt,q as dt,r as oe,s as b,u as ut,w as pt}from"./chunk-Q7BOSHWX.js";import{aa as mt}from"./chunk-HKNFZUAM.js";import{pa as L,ra as H}from"./chunk-VWYZCCRE.js";import{A as I,B as te,C as tt,T as st,y as et}from"./chunk-KCHERKZO.js";import{c as Ke}from"./chunk-YTJ3EPD3.js";import{i as se}from"./chunk-XUJURYN5.js";import{Aa as Ze,Ca as Qe,Cb as j,Eb as ne,Kb as re,Nb as P,Ob as N,S as Xe,Xa as $,_a as C,ba as $e,fb as ke,qa as k,ya as be}from"./chunk-COFGQT76.js";import{d as T,g as V,j as Ve,k as q}from"./chunk-3VYOLEQE.js";import{e as Ye,g as h}from"./chunk-VKWPEFWQ.js";h();h();h();var rs=".shopifyignore",Rt=/templates\/\*(\.(json|liquid))?$/,St=new Set;function Le(e,t={}){let s=t.ignoreFromFile??[],n=t.ignore??[],r=t.only??[],[o=[],i=[]]=_e(s),[a=[],u=[]]=_e(n),[p=[],c=[]]=_e(r),l=e.filter(B(o,".shopifyignore"));return l=l.filter(B(a,"--ignore")),l=l.filter(B(p,"--only",!0)),i.length>0&&(l=l.concat(e.filter(B(i,".shopifyignore",!0)))),u.length>0&&(l=l.concat(e.filter(B(u,"--ignore",!0)))),c.length>0&&(l=l.filter(B(c,"--only"))),Xe(l,x=>x.key)}function B(e,t,s=!1){return({key:n})=>{if(e.length===0)return!0;let r=e.some(i=>os(n,i)||cs(i)&&as(n,ls(i)));return(s?!r:r)?(P(`Ignoring theme file ${n} via ${t}...`),!1):!0}}async function wt(e){let t=T(e,rs);return await $(t)?(await k(t,{encoding:"utf8"})).split(/(\r\n|\r|\n)/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")):[]}function _e(e){let t=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return[e.filter(n=>!n.startsWith("!")),t]}function os(e,t){let s={matchBase:!0,noglobstar:!0};return ke(e,t,s)?!0:(!t.includes("*")&&t.endsWith("/")&&!St.has(t)&&(St.add(t),I({headline:"Directory pattern may be misleading.",body:`For more reliable matching, consider using "${t}*" or "${t}*.<file_extension>" instead.`})),is(t)?ke(e,t.replace(Rt,"templates/**/*$1"),s):!1)}function is(e){return Rt.test(e)}function as(e,t){return t.test(e)}function cs(e){return e.startsWith("/")&&e.endsWith("/")}function ls(e){return new RegExp(e.slice(1,-1))}h();import Ft from"fs/promises";var le=class{notifyPath;isValidUrl;constructor(t){this.notifyPath=t,this.isValidUrl=this.validateUrl(t),this.notifyPath===""&&N("Notification skipped: notifyPath is an empty string")}async notify(t){if(this.notifyPath!=="")try{P(`Notifying filechange listener at ${this.notifyPath}...`),this.isValidUrl?await this.notifyUrl(t):await this.notifyFile(t)}catch(s){L(s);let n=`Failed to notify filechange listener at ${this.notifyPath}`;s instanceof Error&&(n=n.concat(`: ${s.message}`)),N(n)}}async notifyUrl(t){let s=await fetch(this.notifyPath,{method:"POST",body:JSON.stringify({files:[t]}),headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error(s.statusText)}async notifyFile(t){await Ft.writeFile(this.notifyPath,t),await Ft.utimes(this.notifyPath,new Date,new Date)}validateUrl(t){try{let s=new URL(t);return s.protocol==="http:"||s.protocol==="https:"}catch{return!1}}};h();h();h();import ds from"node:events";var Pt=["assets/**/*.*","locales/**/*.json","blocks/**/*.liquid","snippets/**/*.liquid"];function vt(e){let t=new Map,s=new Set,n=new ds,r=(c,l)=>{n.emit(c,l)},o=async c=>{let l=await ue(e,c),m=de(c,l),x=typeof l=="string"?l:"",f=Buffer.isBuffer(l)?l.toString("base64"):"";return t.set(c,M({key:c,checksum:m,value:x,attachment:f})),l},i=C(Pt,{cwd:e,deep:3,ignore:W}).then(c=>Promise.all(c.map(o))),a=(c,l)=>{let m=V(e,l),x=o(m).then(()=>{let f=t.get(m);return s.add(f.key),f.value??f.attachment??""});st(5).then(()=>{s.delete(m)}).catch(()=>{}),r(c,{fileKey:m,onContent:f=>{x.then(g=>{g&&f(g)}).catch(()=>{})},onSync:f=>{}})},u=c=>{let l=V(e,c);s.delete(l),t.delete(l),r("unlink",{fileKey:l,onSync:m=>m()})},p=new Set(Pt.map(c=>T(e,c.split("/").shift()??"")));return{root:e,files:t,unsyncedFileKeys:s,ready:async()=>i.then(()=>{}),delete:async c=>{t.delete(c)},write:async c=>{t.set(c.key,c)},read:o,addEventListener:(c,l)=>{n.on(c,l)},startWatcher:async()=>{let{default:c}=await import("./chokidar-5RWEYTNQ.js");c.watch([...p],{ignored:W,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}).on("add",a.bind(null,"add")).on("change",a.bind(null,"change")).on("unlink",u.bind(null))}}}h();h();var us="https://unpkg.com/@shopify/polaris@13.9.2/build/esm/styles.css";function $t(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function bt(e){return(0,String.raw)`<!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
4
  <title>${e.title}</title>
@@ -1,4 +1,4 @@
1
- import{c as ee,e as ne,f as te,g as ie}from"./chunk-MVVHISCR.js";import{a as J,c as Z,d as Q,e as X}from"./chunk-7Y4X5I6N.js";import{b as I}from"./chunk-5BYVVXGD.js";import{a as q}from"./chunk-YGFEUXKQ.js";import{a as j}from"./chunk-JTPVSO6Y.js";import{Ha as W,K as z,N as H,ea as K,g as Y}from"./chunk-2KLXRVGQ.js";import{a as G}from"./chunk-6RBCFXJT.js";import{b as V}from"./chunk-DGMRL5DQ.js";import{E as U,H as B,M as N,x as O,y as F,z as M}from"./chunk-SKRUMRB4.js";import{d as L}from"./chunk-G54BKNIX.js";import{i as h,k as $}from"./chunk-FCULF3JA.js";import{Aa as E,Db as S,Ga as R,Kb as A,P as D,Pb as C}from"./chunk-YJWNM4XO.js";import{b as ce}from"./chunk-JA2QZ635.js";import{d as x,i as P}from"./chunk-3VYOLEQE.js";import{e as pe,g}from"./chunk-VKWPEFWQ.js";g();g();g();async function oe(e){let n,t;e.bundlePath&&(n=await X(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await Q(n,e.bundlePath));let i={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};n&&(i.bundleUrl=n),e.appModules.length>0&&(i.appModules=e.appModules);let a=await e.developerPlatformClient.deploy(i);if(!a.appDeploy.appVersion){let o=ue(a.appDeploy.userErrors??[],e.appModuleRegistrationIds,e.appModules,{version:e.version});throw new h({bold:"Version couldn't be created."},null,[],o)}return a.appDeploy.userErrors?.length>0&&(t=a.appDeploy.userErrors.map(o=>o.message).join(", ")),{validationErrors:a.appDeploy.appVersion.appModuleVersions.filter(o=>o.validationErrors.length>0).map(o=>({uuid:o.registrationUuid,errors:o.validationErrors})),versionTag:a.appDeploy.appVersion.versionTag,location:a.appDeploy.appVersion.location,message:a.appDeploy.appVersion.message,deployError:t}}var w=`
1
+ import{c as ee,e as ne,f as te,g as ie}from"./chunk-XW33ZO7F.js";import{a as J,c as Z,d as Q,e as X}from"./chunk-2FHVYY3B.js";import{b as I}from"./chunk-U2WUTGPI.js";import{a as q}from"./chunk-MINDMVTH.js";import{a as j}from"./chunk-RFDOSK57.js";import{Ha as W,K as z,N as H,ea as K,g as Y}from"./chunk-AKSOCKVF.js";import{a as G}from"./chunk-7AD5YCLL.js";import{b as V}from"./chunk-2KBTFKSM.js";import{E as U,H as B,M as N,x as O,y as F,z as M}from"./chunk-KCHERKZO.js";import{d as L}from"./chunk-WR2MMFJO.js";import{i as h,k as $}from"./chunk-XUJURYN5.js";import{Aa as E,Db as S,Ga as R,Kb as A,P as D,Pb as C}from"./chunk-COFGQT76.js";import{b as ce}from"./chunk-JA2QZ635.js";import{d as x,i as P}from"./chunk-3VYOLEQE.js";import{e as pe,g}from"./chunk-VKWPEFWQ.js";g();g();g();async function oe(e){let n,t;e.bundlePath&&(n=await X(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await Q(n,e.bundlePath));let i={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};n&&(i.bundleUrl=n),e.appModules.length>0&&(i.appModules=e.appModules);let a=await e.developerPlatformClient.deploy(i);if(!a.appDeploy.appVersion){let o=ue(a.appDeploy.userErrors??[],e.appModuleRegistrationIds,e.appModules,{version:e.version});throw new h({bold:"Version couldn't be created."},null,[],o)}return a.appDeploy.userErrors?.length>0&&(t=a.appDeploy.userErrors.map(o=>o.message).join(", ")),{validationErrors:a.appDeploy.appVersion.appModuleVersions.filter(o=>o.validationErrors.length>0).map(o=>({uuid:o.registrationUuid,errors:o.validationErrors})),versionTag:a.appDeploy.appVersion.versionTag,location:a.appDeploy.appVersion.location,message:a.appDeploy.appVersion.message,deployError:t}}var w=`
2
2
  Validation errors`,k=`
3
3
  `;function ue(e,n,t,i={}){let a=l=>l.details?.some(y=>y.extension_id)??!1,s=(l,y)=>{let b=l.details?.find(_=>typeof _.extension_id<"u")?.extension_id??"";return Object.values(y).includes(b.toString())},o=l=>{let y=l.on?l.on[0]:void 0;return t.some(b=>b.uid===y?.user_identifier)},[d,u]=I(e,l=>o(l)),[p,c]=I(u,l=>a(l)),[m,r]=I(p,l=>s(l,n));return[...fe(c,{version:i.version}),...me(m,n),...he(r),...ge(d,t)]}function fe(e,n={}){return e.length>0?e.filter(t=>t.field&&t.field.includes("version_tag")&&t.message==="has already been taken").length>0&&n.version?[{body:["An app version with the name",{userInput:n.version},"already exists. Deploy again with a different version name."]}]:e.length===1?[{body:e[0]?.message??""}]:[{body:{list:{items:e.map(t=>t.message)}}}]:[]}function me(e,n){return e.reduce((t,i)=>{let a=(i.field??["unknown"]).join(".").replace("extension_points","extensions.targeting"),s=a==="base"?i.message:`${a}: ${i.message}`,o=i.details.find(r=>typeof r.extension_title<"u")?.extension_title,d=i.details.find(r=>typeof r.specification_identifier<"u")?.specification_identifier,u=i.details.find(r=>typeof r.extension_id<"u")?.extension_id?.toString(),c=Object.keys(n).find(r=>n[r]===u)??o;d==="webhook_subscription"&&(c="Webhook Subscription");let m=t.find(r=>r.title===c);if(m){let r=m.body,f=i.category==="invalid"?r.find(l=>l.list.title===w):r.find(l=>l.list.title===k);f?f.list.items.includes(s)||f.list.items.push(s):r.push({list:{title:i.category==="invalid"?w:k,items:[s]}})}else t.push({title:c,body:[{list:{title:i.category==="invalid"?w:k,items:[s]}}]});return t.forEach(r=>{r.body.sort((f,l)=>f.list.title===w?1:l.list.title===w?-1:0)}),t},[])}function ge(e,n){return e.reduce((t,i)=>{let s=(i.on?i.on[0]:void 0)?.user_identifier,o=n.find(r=>r.uid===s),d=s?`Extension with uid: ${s}`:"Unknown Extension",u=o?.handle??d,c=`${(i.field??["unknown"]).join(".")}: ${i.message}`,m=t.find(r=>r.title===u);if(m){let f=m.body.find(l=>l.list.title===w);f&&(f.list.items.includes(c)||f.list.items.push(c))}else t.push({title:u,body:[{list:{title:w,items:[c]}}]});return t},[])}function he(e){return e.reduce((n,t)=>{let i=t.details.find(s=>typeof s.extension_title<"u")?.extension_title,a=n.find(s=>s.title===i);return a?a.errorCount+=1:n.push({title:i,errorCount:1}),n},[]).map(n=>({title:n.title,body:`
4
4
  ${n.errorCount} error${n.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}g();async function ae(e){let n=x(e.app.directory,".shopify","deploy-bundle");await R(n,{force:!0}),await E(n),await J(e.appManifest,n),e.skipBuild||await Y(e.app);let t=e.app.allExtensions.map(a=>({prefix:a.localIdentifier,action:async(s,o,d)=>{await a.buildForBundle({stderr:o,stdout:s,signal:d,app:e.app,environment:"production",skipBuild:e.skipBuild},n)}}));if(await O({processes:t,showTimestamps:!1}),e.app.allExtensions.some(a=>a.hasDeploySteps))return await Z(n,e.bundlePath),e.bundlePath}async function ye(e){let{app:n,remoteApp:t,developerPlatformClient:i,noRelease:a,allowUpdates:s,allowDeletes:o,extensions:d}=e,u=[a,s,o].some(Boolean),p=[`App can't be deployed until Partner Dashboard managed extensions are added to your version or removed from your app:
@@ -1 +1 @@
1
- import{a as l,c as b,d as D,e as _}from"./chunk-SDJNAUU6.js";import{g as T,p as y,v as O}from"./chunk-P3Z5RLVV.js";import{b as L,c as S}from"./chunk-DGMRL5DQ.js";import{e as d}from"./chunk-QAXFCAOV.js";import{y as v}from"./chunk-SKRUMRB4.js";import{Eb as s,Ib as F,Nb as a}from"./chunk-YJWNM4XO.js";import{b as G}from"./chunk-JA2QZ635.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var w;function f(){return w??=new d({projectName:"shopify-cli-host-theme-conf"}),w}function E(t){return a(s`Getting host theme...`),f().get(t)}function Y(t,e){a(s`Setting host theme...`),f().set(t,e)}function C(t){a(s`Removing host theme...`),f().delete(t)}function j(t,e){return{title:t,body:{tabularData:e}}}async function I(t,e){let r=e.storeFqdn,p=new _({...l.reduce((n,i)=>(n[i]=t.role===i,n),{}),theme:t.id?.toString()??t.name}),m=await b(e),x=T(),H=E(r);if(p.any()&&(m=D(r,m,p)),t.json)return F(JSON.stringify(m,null,2));let A=m.map(({id:n,name:i,role:g})=>{let c="";return g&&(c=`[${g}]`,[x,H].includes(`${n}`)&&(c+=" [current]")),[i,c,`#${n}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];v({customSections:[...t.environment?[{title:`${r} theme library`,body:[{subdued:`Environment name: ${t.environment}`}]}]:[],j("",R)]})}var h=$(G(),1);var u=class extends O{static description="Lists the themes in your store, along with their IDs and statuses.";static flags={...L,...S,...y,role:h.Flags.custom({description:"Only list themes with the given role.",options:l,env:"SHOPIFY_FLAG_ROLE"})(),name:h.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:h.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,r){await I(e,r)}};export{E as a,Y as b,C as c,u as d};
1
+ import{a as l,c as b,d as D,e as _}from"./chunk-B7Y2LMPU.js";import{g as T,p as y,v as O}from"./chunk-2AZXDU2R.js";import{b as L,c as S}from"./chunk-2KBTFKSM.js";import{e as d}from"./chunk-QF6EH4HX.js";import{y as v}from"./chunk-KCHERKZO.js";import{Eb as s,Ib as F,Nb as a}from"./chunk-COFGQT76.js";import{b as G}from"./chunk-JA2QZ635.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var w;function f(){return w??=new d({projectName:"shopify-cli-host-theme-conf"}),w}function E(t){return a(s`Getting host theme...`),f().get(t)}function Y(t,e){a(s`Setting host theme...`),f().set(t,e)}function C(t){a(s`Removing host theme...`),f().delete(t)}function j(t,e){return{title:t,body:{tabularData:e}}}async function I(t,e){let r=e.storeFqdn,p=new _({...l.reduce((n,i)=>(n[i]=t.role===i,n),{}),theme:t.id?.toString()??t.name}),m=await b(e),x=T(),H=E(r);if(p.any()&&(m=D(r,m,p)),t.json)return F(JSON.stringify(m,null,2));let A=m.map(({id:n,name:i,role:g})=>{let c="";return g&&(c=`[${g}]`,[x,H].includes(`${n}`)&&(c+=" [current]")),[i,c,`#${n}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];v({customSections:[...t.environment?[{title:`${r} theme library`,body:[{subdued:`Environment name: ${t.environment}`}]}]:[],j("",R)]})}var h=$(G(),1);var u=class extends O{static description="Lists the themes in your store, along with their IDs and statuses.";static flags={...L,...S,...y,role:h.Flags.custom({description:"Only list themes with the given role.",options:l,env:"SHOPIFY_FLAG_ROLE"})(),name:h.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:h.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,r){await I(e,r)}};export{E as a,Y as b,C as c,u as d};
@@ -1 +1 @@
1
- import{a as s}from"./chunk-72HS7MHV.js";import{g as r,h as n,i as h}from"./chunk-P3Z5RLVV.js";import{i as m}from"./chunk-FCULF3JA.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-FJCNEHTH.js";import{g as r,h as n,i as h}from"./chunk-2AZXDU2R.js";import{i as m}from"./chunk-XUJURYN5.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};