shopify 5.0.2 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (529) hide show
  1. package/dist/analytics-23GM6KJU.js +1 -0
  2. package/dist/analytics-743FYOAE.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-RPCIFYCY.js → chunk-2EQRXSF6.js} +2 -2
  5. package/dist/{chunk-NXAEBGMO.js → chunk-2IXP3IPE.js} +1 -1
  6. package/dist/{chunk-T4XJKM6B.js → chunk-2KACAQJS.js} +1 -1
  7. package/dist/chunk-2KFYIYLI.js +1 -0
  8. package/dist/chunk-2OCSYLKZ.js +1 -0
  9. package/dist/{chunk-AQKWPRZE.js → chunk-2PILNMHJ.js} +2 -2
  10. package/dist/chunk-36S6MFJQ.js +47 -0
  11. package/dist/{chunk-TFPW2VGN.js → chunk-3DB4EC62.js} +1 -1
  12. package/dist/chunk-3GL3IT4K.js +16 -0
  13. package/dist/{chunk-C3RFAKWR.js → chunk-3JRB7Q3T.js} +1 -1
  14. package/dist/chunk-3KGN6N7E.js +1 -0
  15. package/dist/chunk-3OYMK5X6.js +11 -0
  16. package/dist/chunk-3PYDIBTX.js +1 -0
  17. package/dist/chunk-422BGHXN.js +1 -0
  18. package/dist/chunk-43C32FUQ.js +1 -0
  19. package/dist/chunk-4AN7ECPE.js +9 -0
  20. package/dist/chunk-4AWVU2OV.js +1 -0
  21. package/dist/chunk-4IP37MBX.js +1 -0
  22. package/dist/chunk-4KBOLN7Q.js +8 -0
  23. package/dist/chunk-4LJERO23.js +89 -0
  24. package/dist/chunk-4M5WHOZW.js +1 -0
  25. package/dist/chunk-4RO35FFQ.js +1 -0
  26. package/dist/chunk-4ZS5354G.js +3 -0
  27. package/dist/chunk-55AWBPKU.js +7 -0
  28. package/dist/chunk-5BUYR23E.js +1 -0
  29. package/dist/chunk-5EDA7PVE.js +11 -0
  30. package/dist/{chunk-UKWIWCOH.js → chunk-5P6OELKZ.js} +1 -1
  31. package/dist/chunk-5PVXLQNX.js +1 -0
  32. package/dist/{chunk-J5ERDFIC.js → chunk-5S2P4MHJ.js} +1 -1
  33. package/dist/{chunk-26PWHH3B.js → chunk-5TJJVSCI.js} +1 -1
  34. package/dist/chunk-5TOK5OJS.js +1 -0
  35. package/dist/chunk-5ZG2SWU2.js +1 -0
  36. package/dist/{chunk-SLY27GDC.js → chunk-62F4ZMSC.js} +2 -2
  37. package/dist/chunk-652NT7OW.js +1 -0
  38. package/dist/chunk-6B5KM3A4.js +97 -0
  39. package/dist/chunk-6LCESSY3.js +1 -0
  40. package/dist/chunk-6QHDMCAA.js +1 -0
  41. package/dist/{chunk-D2KIGKBI.js → chunk-7A4ZE5IS.js} +60 -60
  42. package/dist/{chunk-CGVROSPS.js → chunk-7AQZKPJU.js} +1 -1
  43. package/dist/chunk-7FBOMPO5.js +203 -0
  44. package/dist/chunk-7HECBXSP.js +1 -0
  45. package/dist/chunk-7UK565VJ.js +1 -0
  46. package/dist/{chunk-LHXFTFFM.js → chunk-A5BSUUNQ.js} +1 -1
  47. package/dist/chunk-ADGE7MKB.js +1 -0
  48. package/dist/chunk-AEWRZ7AE.js +1 -0
  49. package/dist/chunk-ALDJTWCO.js +1 -0
  50. package/dist/chunk-ARL5WBDK.js +1 -0
  51. package/dist/chunk-AXFEIJC7.js +1 -0
  52. package/dist/{chunk-KZRLZWOU.js → chunk-AYGL6F3P.js} +1 -1
  53. package/dist/{chunk-URXM5A2K.js → chunk-AYTTE7X5.js} +1 -1
  54. package/dist/{chunk-3ODQKAEA.js → chunk-BDIZUTKC.js} +1 -1
  55. package/dist/chunk-BQKF4SRH.js +6 -0
  56. package/dist/chunk-C2AOCLEZ.js +1 -0
  57. package/dist/{chunk-WRZWHT6M.js → chunk-C2SGJ5IG.js} +1 -1
  58. package/dist/chunk-C3S3UMV3.js +1 -0
  59. package/dist/{chunk-WBJ6ZHYH.js → chunk-C5DKLOW4.js} +37 -37
  60. package/dist/chunk-C72QNK6O.js +4 -0
  61. package/dist/{chunk-6ES4KRFW.js → chunk-CA3GVT4D.js} +1 -1
  62. package/dist/chunk-CCLU5ZRK.js +9 -0
  63. package/dist/chunk-CE6XQDAG.js +10 -0
  64. package/dist/chunk-CEJ5WS4I.js +5 -0
  65. package/dist/{chunk-VEUKT5EI.js → chunk-CIBBQO2L.js} +2 -2
  66. package/dist/{chunk-IILLQOUC.js → chunk-CKJXJ6HD.js} +1 -1
  67. package/dist/{chunk-MEYVUHQH.js → chunk-COGKVNQB.js} +1 -1
  68. package/dist/chunk-CQAD5WML.js +1 -0
  69. package/dist/chunk-CQPZOXWO.js +6 -0
  70. package/dist/{chunk-62EOM3Y2.js → chunk-CZYQIWNL.js} +1 -1
  71. package/dist/chunk-DA5RQFXA.js +10 -0
  72. package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
  73. package/dist/{chunk-Q5IC3IYY.js → chunk-DESZFFOK.js} +1 -1
  74. package/dist/{chunk-PLSS456F.js → chunk-DKR7562G.js} +1 -1
  75. package/dist/{chunk-LGXI7EGM.js → chunk-DNNTAMC5.js} +2 -2
  76. package/dist/chunk-DUPQUQ2Z.js +1 -0
  77. package/dist/{chunk-Q4JYAUVL.js → chunk-DUTIWCJ2.js} +1 -1
  78. package/dist/chunk-E6JEBSHZ.js +20 -0
  79. package/dist/chunk-E6KNAPIY.js +4 -0
  80. package/dist/chunk-E7XCCLQH.js +1 -0
  81. package/dist/chunk-EE72PCKT.js +1 -0
  82. package/dist/chunk-EEYXBKR7.js +4 -0
  83. package/dist/{chunk-ZRI3SSLG.js → chunk-EGLA3WLZ.js} +2 -2
  84. package/dist/chunk-EVQPYZ7F.js +5 -0
  85. package/dist/chunk-FDFE3SSG.js +35 -0
  86. package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
  87. package/dist/chunk-FI5TQHUA.js +1 -0
  88. package/dist/chunk-FIKZQ4RA.js +1 -0
  89. package/dist/chunk-FJOVMEPN.js +3 -0
  90. package/dist/{chunk-ER6C5WS3.js → chunk-FLARCZ5F.js} +1 -1
  91. package/dist/chunk-FOMMPAWZ.js +1 -0
  92. package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
  93. package/dist/{chunk-HXZAY5OA.js → chunk-G3DXNSA2.js} +1 -1
  94. package/dist/{chunk-XWSWXQCC.js → chunk-G7JO3W2R.js} +1 -1
  95. package/dist/{chunk-WESTVWWD.js → chunk-GABIWYY3.js} +1 -1
  96. package/dist/chunk-GFSEU7PF.js +6 -0
  97. package/dist/chunk-GFVUWVEM.js +1 -0
  98. package/dist/{chunk-ISKQQXLZ.js → chunk-GHNSXX7R.js} +1 -1
  99. package/dist/{chunk-2L6AN3QA.js → chunk-GQ3LY7BY.js} +1 -1
  100. package/dist/{chunk-2A2JSAAA.js → chunk-H45S4MGC.js} +1 -1
  101. package/dist/chunk-HEB4YYM6.js +9 -0
  102. package/dist/{chunk-CXI3RHPW.js → chunk-HI5FTI3M.js} +1 -1
  103. package/dist/chunk-HJ24NEP5.js +1 -0
  104. package/dist/chunk-HQFXVVTB.js +1 -0
  105. package/dist/{chunk-TODZ3TJR.js → chunk-HR6R7JXN.js} +1 -1
  106. package/dist/chunk-HRHJA5ZP.js +3 -0
  107. package/dist/{chunk-QEKGGTMN.js → chunk-HT5JQJMB.js} +1 -1
  108. package/dist/chunk-HT7273V7.js +1 -0
  109. package/dist/{chunk-UXVXVI6O.js → chunk-HUB4HDWN.js} +78 -76
  110. package/dist/chunk-IATNIWOC.js +13 -0
  111. package/dist/chunk-IHVWDKDV.js +2 -0
  112. package/dist/{chunk-3KM5ZOW2.js → chunk-IKXUYCK7.js} +1 -1
  113. package/dist/chunk-IVQN2RUP.js +1 -0
  114. package/dist/chunk-IWNFPBH2.js +33 -0
  115. package/dist/{chunk-ESFCYB46.js → chunk-J324ZPO6.js} +1 -1
  116. package/dist/{chunk-KNWT7JLL.js → chunk-JJQ3DJG5.js} +2 -2
  117. package/dist/{chunk-7CCTPBCT.js → chunk-JLAN6JXJ.js} +1 -1
  118. package/dist/chunk-K2GCCCCV.js +1 -0
  119. package/dist/{chunk-NVKJ7ZLP.js → chunk-K4KKSBUW.js} +1 -1
  120. package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
  121. package/dist/{chunk-QDCLL5OI.js → chunk-K5UVCBIP.js} +1 -1
  122. package/dist/{chunk-64G5TGFF.js → chunk-KN2JIDNO.js} +1 -1
  123. package/dist/chunk-KORVOCNN.js +1 -0
  124. package/dist/chunk-KRQCQ57O.js +1 -0
  125. package/dist/{chunk-3MYDSQHF.js → chunk-KT2AMFVW.js} +1 -1
  126. package/dist/chunk-L23Q53FM.js +70 -0
  127. package/dist/{chunk-UBP3LQFY.js → chunk-L3DTONOI.js} +2 -2
  128. package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
  129. package/dist/chunk-LRETOC6P.js +1 -0
  130. package/dist/chunk-LXFWK3O2.js +1 -0
  131. package/dist/chunk-LZ2TN7EZ.js +1 -0
  132. package/dist/chunk-MBAPM5HA.js +15 -0
  133. package/dist/{chunk-UUAKOX7E.js → chunk-MGZK5EQW.js} +2 -2
  134. package/dist/chunk-MKUXSM33.js +1 -0
  135. package/dist/chunk-MQ55QUOJ.js +276 -0
  136. package/dist/chunk-NAQJMRPT.js +2296 -0
  137. package/dist/{chunk-DZKFP6H2.js → chunk-NMXRDF4T.js} +1 -1
  138. package/dist/chunk-NOWM3CCG.js +1 -0
  139. package/dist/chunk-NVDFXEQ5.js +5 -0
  140. package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
  141. package/dist/{chunk-B2O3ANRZ.js → chunk-OCILF2DD.js} +1 -1
  142. package/dist/{chunk-67L7FIB6.js → chunk-OGBMFGYC.js} +1 -1
  143. package/dist/chunk-OIQ5NQ5I.js +18 -0
  144. package/dist/chunk-OKRKVVTK.js +103 -0
  145. package/dist/chunk-ONNUEQGR.js +3 -0
  146. package/dist/chunk-OSASE35V.js +6 -0
  147. package/dist/chunk-OTMTS5L4.js +3 -0
  148. package/dist/chunk-OWPAHXDF.js +3 -0
  149. package/dist/chunk-P7HZGJRU.js +6 -0
  150. package/dist/chunk-PIU3GVJ4.js +1 -0
  151. package/dist/{chunk-2WJOTJOD.js → chunk-PSNCWS3Q.js} +2 -2
  152. package/dist/chunk-PSREELSQ.js +22 -0
  153. package/dist/{chunk-AQ6EVL73.js → chunk-Q2CKRCPM.js} +1 -1
  154. package/dist/chunk-QA2D7DT2.js +1 -0
  155. package/dist/chunk-QBRRFFMZ.js +1 -0
  156. package/dist/chunk-QDMTJKQ3.js +1 -0
  157. package/dist/{chunk-3Z3MADXZ.js → chunk-QIJ7D2JS.js} +1 -1
  158. package/dist/chunk-QLN6IOOY.js +1 -0
  159. package/dist/chunk-QU3USVKT.js +1 -0
  160. package/dist/chunk-R2E6TMBE.js +22 -0
  161. package/dist/chunk-R4E2E4NN.js +1 -0
  162. package/dist/chunk-R5COVIJM.js +1 -0
  163. package/dist/chunk-RFJ2LI64.js +81 -0
  164. package/dist/chunk-RNF6T6IO.js +5 -0
  165. package/dist/chunk-RSNFNZ6F.js +2 -0
  166. package/dist/{chunk-I4CEH7AK.js → chunk-RZ3UGOV4.js} +2 -2
  167. package/dist/{chunk-35XFNKNB.js → chunk-S23ZG2RG.js} +1 -1
  168. package/dist/{chunk-PF53E2DC.js → chunk-SAK42CAY.js} +1 -1
  169. package/dist/chunk-SBX7CMHM.js +1 -0
  170. package/dist/{chunk-S5P7KWY4.js → chunk-SGQTRKYZ.js} +1 -1
  171. package/dist/chunk-SNPJVVVE.js +5 -0
  172. package/dist/chunk-SNRGS3YU.js +1 -0
  173. package/dist/chunk-SUTSCIXU.js +7 -0
  174. package/dist/chunk-SWFCT5B7.js +2 -0
  175. package/dist/{chunk-4KECSZTL.js → chunk-SZ64GAVG.js} +2 -2
  176. package/dist/{chunk-WBVS5NBV.js → chunk-TDHIOONG.js} +2 -2
  177. package/dist/{chunk-W37IFK3P.js → chunk-TLN4BKXJ.js} +102 -102
  178. package/dist/{chunk-QW52RPAU.js → chunk-TXMZPF2U.js} +1 -1
  179. package/dist/chunk-TZHVCMZN.js +6 -0
  180. package/dist/{chunk-IHXGZW42.js → chunk-TZOB52QK.js} +1 -1
  181. package/dist/{chunk-N57Y7THE.js → chunk-U5BKU3OL.js} +1 -1
  182. package/dist/{chunk-Y55T4IIQ.js → chunk-UK3BDOHR.js} +1 -1
  183. package/dist/chunk-UORSJB4A.js +857 -0
  184. package/dist/chunk-UU6UQ2QY.js +1 -0
  185. package/dist/{chunk-PWAT52M4.js → chunk-UY44O4IZ.js} +1 -1
  186. package/dist/{chunk-QF5WKTPD.js → chunk-V3H6SYK3.js} +1 -1
  187. package/dist/{chunk-YTUUU33R.js → chunk-VBPMVVLV.js} +1 -1
  188. package/dist/{chunk-SNH4XZ6E.js → chunk-VGBCG3I5.js} +1 -1
  189. package/dist/{chunk-QEVTBD33.js → chunk-VHRUPKWH.js} +1 -1
  190. package/dist/chunk-VVHJ2AUF.js +3 -0
  191. package/dist/chunk-WB5GRBHW.js +1 -0
  192. package/dist/{chunk-YSWVYPWR.js → chunk-WBKQSSWW.js} +1 -1
  193. package/dist/{chunk-SIL6HPMK.js → chunk-WDXDT7XY.js} +2 -2
  194. package/dist/{chunk-SACNUF4I.js → chunk-WHOD5I7N.js} +1 -1
  195. package/dist/{chunk-Z2WAW6MM.js → chunk-WL3M63DG.js} +1 -1
  196. package/dist/{chunk-LEHBZKK3.js → chunk-WLJDMI7E.js} +1 -1
  197. package/dist/{chunk-PTSCGSQV.js → chunk-WZ3QWPK5.js} +2 -2
  198. package/dist/{chunk-H6GNKWYM.js → chunk-X5V7AGVU.js} +1 -1
  199. package/dist/{chunk-RPVZ2JON.js → chunk-X76AYO36.js} +1 -1
  200. package/dist/chunk-XB7H2RYV.js +31 -0
  201. package/dist/chunk-XHHAVKKV.js +1 -0
  202. package/dist/chunk-XKNDU62O.js +1 -0
  203. package/dist/chunk-XVJRGOJA.js +4 -0
  204. package/dist/chunk-Y3ZAQZPH.js +16 -0
  205. package/dist/chunk-YF4AXKM4.js +1 -0
  206. package/dist/chunk-YGN65N6W.js +16 -0
  207. package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
  208. package/dist/chunk-YTC367JI.js +3 -0
  209. package/dist/{chunk-ZBL7XMJ6.js → chunk-Z2FGYMJ6.js} +2 -2
  210. package/dist/chunk-Z3QZNLT5.js +1 -0
  211. package/dist/chunk-ZC3EDADH.js +26 -0
  212. package/dist/chunk-ZLITAXPT.js +1 -0
  213. package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
  214. package/dist/chunk-ZNEQZV5K.js +3 -0
  215. package/dist/chunk-ZOU6SOXW.js +20 -0
  216. package/dist/{chunk-YV2TP44L.js → chunk-ZQNGYJKJ.js} +1 -1
  217. package/dist/chunk-ZRM7ESSS.js +4 -0
  218. package/dist/chunk-ZX33FUW3.js +5 -0
  219. package/dist/cli/commands/app/build.js +1 -1
  220. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  221. package/dist/cli/commands/app/bulk/execute.js +1 -1
  222. package/dist/cli/commands/app/bulk/status.js +1 -1
  223. package/dist/cli/commands/app/config/link.js +1 -1
  224. package/dist/cli/commands/app/config/pull.js +1 -1
  225. package/dist/cli/commands/app/config/use.js +1 -1
  226. package/dist/cli/commands/app/config/validate.js +1 -1
  227. package/dist/cli/commands/app/demo/watcher.js +1 -1
  228. package/dist/cli/commands/app/deploy.js +1 -1
  229. package/dist/cli/commands/app/dev/clean.js +1 -1
  230. package/dist/cli/commands/app/dev.js +1 -1
  231. package/dist/cli/commands/app/env/pull.js +1 -1
  232. package/dist/cli/commands/app/env/show.js +1 -1
  233. package/dist/cli/commands/app/execute.js +1 -1
  234. package/dist/cli/commands/app/function/build.js +1 -1
  235. package/dist/cli/commands/app/function/info.js +1 -1
  236. package/dist/cli/commands/app/function/replay.js +1 -1
  237. package/dist/cli/commands/app/function/run.js +1 -1
  238. package/dist/cli/commands/app/function/schema.js +1 -1
  239. package/dist/cli/commands/app/function/typegen.js +1 -1
  240. package/dist/cli/commands/app/generate/extension.js +1 -1
  241. package/dist/cli/commands/app/graphiql.js +1 -1
  242. package/dist/cli/commands/app/import/channel-config.js +1 -1
  243. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  244. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  245. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  246. package/dist/cli/commands/app/import-extensions.js +1 -1
  247. package/dist/cli/commands/app/info.js +1 -1
  248. package/dist/cli/commands/app/init.js +1 -1
  249. package/dist/cli/commands/app/logs.js +1 -1
  250. package/dist/cli/commands/app/release.js +1 -1
  251. package/dist/cli/commands/app/security/check.js +1 -1
  252. package/dist/cli/commands/app/security/clean.js +1 -1
  253. package/dist/cli/commands/app/security/instructions.js +1 -1
  254. package/dist/cli/commands/app/security/record.js +1 -1
  255. package/dist/cli/commands/app/security/review.js +1 -1
  256. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  257. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  258. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  259. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  260. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  261. package/dist/cli/commands/app/versions/list.js +1 -1
  262. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  263. package/dist/cli/commands/auth/login.d.ts +10 -10
  264. package/dist/cli/commands/auth/login.js +1 -1
  265. package/dist/cli/commands/auth/logout.d.ts +7 -7
  266. package/dist/cli/commands/auth/logout.js +1 -1
  267. package/dist/cli/commands/cache/clear.js +1 -1
  268. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
  269. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  270. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
  271. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  272. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
  273. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  274. package/dist/cli/commands/debug/command-flags.js +1 -1
  275. package/dist/cli/commands/doc/fetch.d.ts +21 -21
  276. package/dist/cli/commands/doc/fetch.js +1 -1
  277. package/dist/cli/commands/doc/search.d.ts +23 -23
  278. package/dist/cli/commands/doc/search.js +1 -1
  279. package/dist/cli/commands/docs/generate.js +1 -1
  280. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  281. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  282. package/dist/cli/commands/help.d.ts +90 -90
  283. package/dist/cli/commands/help.js +1 -1
  284. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  285. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  286. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  287. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  288. package/dist/cli/commands/notifications/generate.js +1 -1
  289. package/dist/cli/commands/notifications/list.js +1 -1
  290. package/dist/cli/commands/organization/list.js +1 -1
  291. package/dist/cli/commands/search.d.ts +7 -7
  292. package/dist/cli/commands/search.js +1 -1
  293. package/dist/cli/commands/send-analytics.js +1 -1
  294. package/dist/cli/commands/theme/check.js +1 -1
  295. package/dist/cli/commands/theme/console.js +1 -1
  296. package/dist/cli/commands/theme/delete.js +1 -1
  297. package/dist/cli/commands/theme/dev.js +1 -1
  298. package/dist/cli/commands/theme/duplicate.js +1 -1
  299. package/dist/cli/commands/theme/info.js +1 -1
  300. package/dist/cli/commands/theme/init.js +1 -1
  301. package/dist/cli/commands/theme/language-server.js +1 -1
  302. package/dist/cli/commands/theme/list.js +1 -1
  303. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  304. package/dist/cli/commands/theme/open.js +1 -1
  305. package/dist/cli/commands/theme/package.js +1 -1
  306. package/dist/cli/commands/theme/preview.js +1 -1
  307. package/dist/cli/commands/theme/profile.js +1 -1
  308. package/dist/cli/commands/theme/publish.js +1 -1
  309. package/dist/cli/commands/theme/pull.js +1 -1
  310. package/dist/cli/commands/theme/push.js +1 -1
  311. package/dist/cli/commands/theme/rename.js +1 -1
  312. package/dist/cli/commands/theme/share.js +1 -1
  313. package/dist/cli/commands/upgrade.d.ts +24 -24
  314. package/dist/cli/commands/upgrade.js +1 -1
  315. package/dist/cli/commands/version.d.ts +7 -7
  316. package/dist/cli/commands/version.js +1 -1
  317. package/dist/cli/help.js +1 -1
  318. package/dist/cli-version-check-BW2CUMX4.js +1 -0
  319. package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
  320. package/dist/command-json-schema-LGR44Q2G.js +1 -0
  321. package/dist/command-registry.js +1 -1
  322. package/dist/conf-store-TODPQ2LC.js +1 -0
  323. package/dist/configs/all.yml +9 -0
  324. package/dist/configs/recommended.yml +9 -0
  325. package/dist/custom-oclif-loader-BPE2TH4B.js +1 -0
  326. package/dist/data/filters.json +41 -2
  327. package/dist/data/local_block_entry.json +1 -1
  328. package/dist/data/manifest_theme.json +1 -0
  329. package/dist/data/objects.json +279 -44
  330. package/dist/data/section.json +15 -1
  331. package/dist/data/setting.json +9 -5
  332. package/dist/data/shopify_system_translations.json +312 -32
  333. package/dist/data/strict_settings.json +24 -0
  334. package/dist/data/tags.json +57 -24
  335. package/dist/data/theme_block.json +1 -1
  336. package/dist/deprecations-5CSI24TV.js +1 -0
  337. package/dist/dist-LPKYTX3M.js +1 -0
  338. package/dist/dist-WT6MPTKJ.js +1 -0
  339. package/dist/environment-5P7JJ3GI.js +1 -0
  340. package/dist/environments-3HTT5CVC.js +1 -0
  341. package/dist/error-PFOKPWFX.js +1 -0
  342. package/dist/error-handler-23FASAEU.js +1 -0
  343. package/dist/fs-RA25PWSJ.js +1 -0
  344. package/dist/hooks/did-you-mean.js +1 -1
  345. package/dist/hooks/hydrogen-init.js +1 -1
  346. package/dist/hooks/plugin-plugins.js +1 -1
  347. package/dist/hooks/postrun.js +1 -1
  348. package/dist/hooks/prerun.js +2 -2
  349. package/dist/hooks/public-metadata.js +1 -1
  350. package/dist/hooks/sensitive-metadata.js +1 -1
  351. package/dist/hooks/tunnel-provider.js +1 -1
  352. package/dist/hooks/tunnel-start.js +1 -1
  353. package/dist/http-EVDTYINS.js +1 -0
  354. package/dist/http-proxy-node16-NZZ674YW.js +38 -0
  355. package/dist/index.js +12 -12
  356. package/dist/is-global-3DNAMKUU.js +1 -0
  357. package/dist/json-error-HGCRNJRF.js +1 -0
  358. package/dist/latest-version-75YEFEMK.js +9 -0
  359. package/dist/lib-4ZA53LTZ.js +1 -0
  360. package/dist/lib-F3MES3XF.js +1 -0
  361. package/dist/lib-XPJABU24.js +1 -0
  362. package/dist/{local-OKPVB4NH.js → local-LNGPIGLG.js} +1 -1
  363. package/dist/metadata-VHLSUKCW.js +1 -0
  364. package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
  365. package/dist/node-package-manager-SSFNUVWB.js +1 -0
  366. package/dist/notifications-system-3NQRYYKW.js +1 -0
  367. package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
  368. package/dist/os-KIKVJONE.js +1 -0
  369. package/dist/output-DUJTSURG.js +1 -0
  370. package/dist/{prettier-EGVCP5CY.js → prettier-NOE3TJJ5.js} +1 -1
  371. package/dist/registry-auth-token-EDH77OOW.js +1 -0
  372. package/dist/registry-url-JMNV3LLX.js +1 -0
  373. package/dist/semver-HHZRKD6Y.js +1 -0
  374. package/dist/system-CGOZSROX.js +1 -0
  375. package/dist/tsconfig.tsbuildinfo +1 -1
  376. package/dist/ui-YMBFS3NG.js +1 -0
  377. package/dist/upgrade-73RRPDSC.js +1 -0
  378. package/dist/version-AMUEEBIG.js +1 -0
  379. package/dist/version-S4MGCKDO.js +1 -0
  380. package/dist/workerd-DRWNY3S4.js +18 -0
  381. package/oclif.manifest.json +25618 -1167
  382. package/package.json +7 -7
  383. package/dist/analytics-NMMVOF4B.js +0 -1
  384. package/dist/analytics-UK77WNLG.js +0 -1
  385. package/dist/chunk-224UPIYS.js +0 -4
  386. package/dist/chunk-27NXPOAS.js +0 -1
  387. package/dist/chunk-2MT3LSMZ.js +0 -1
  388. package/dist/chunk-2T4HDR6R.js +0 -70
  389. package/dist/chunk-2ZBXHCQZ.js +0 -1
  390. package/dist/chunk-335BUVBP.js +0 -1
  391. package/dist/chunk-33ZE3DRQ.js +0 -16
  392. package/dist/chunk-34MOWGRL.js +0 -1
  393. package/dist/chunk-3JSKNXL7.js +0 -1
  394. package/dist/chunk-3MG4MTWQ.js +0 -1
  395. package/dist/chunk-3XRI3D44.js +0 -1
  396. package/dist/chunk-43R5VGKT.js +0 -1
  397. package/dist/chunk-4WYKPIN3.js +0 -1
  398. package/dist/chunk-5AEZJZNQ.js +0 -1
  399. package/dist/chunk-5ED7SOQZ.js +0 -20
  400. package/dist/chunk-5IDJALJH.js +0 -1
  401. package/dist/chunk-66TMIQMB.js +0 -1
  402. package/dist/chunk-74NRFUGQ.js +0 -1
  403. package/dist/chunk-7GUMJ5E4.js +0 -1
  404. package/dist/chunk-7NFTSBHQ.js +0 -10
  405. package/dist/chunk-ACZNWIRY.js +0 -1
  406. package/dist/chunk-AUE7LM32.js +0 -1
  407. package/dist/chunk-AXL2VIWA.js +0 -16
  408. package/dist/chunk-B3ZJGYZY.js +0 -3
  409. package/dist/chunk-BOAGJ6P5.js +0 -1
  410. package/dist/chunk-BWN2QG6D.js +0 -5
  411. package/dist/chunk-CCUQM4FX.js +0 -6
  412. package/dist/chunk-CLUUA3HX.js +0 -3
  413. package/dist/chunk-CYEEGTVZ.js +0 -11
  414. package/dist/chunk-DBDTE3EE.js +0 -5
  415. package/dist/chunk-DLVB3237.js +0 -31
  416. package/dist/chunk-DN6X7SHW.js +0 -2
  417. package/dist/chunk-E5COIKGY.js +0 -5
  418. package/dist/chunk-E6RONHMT.js +0 -1
  419. package/dist/chunk-EAZIQI2D.js +0 -1
  420. package/dist/chunk-EEY4FKAW.js +0 -1
  421. package/dist/chunk-EKFPTBXC.js +0 -1
  422. package/dist/chunk-F3CK3EJJ.js +0 -1
  423. package/dist/chunk-FEBOZ2XX.js +0 -31
  424. package/dist/chunk-FFSDGRAN.js +0 -1
  425. package/dist/chunk-FZCGRIOM.js +0 -1
  426. package/dist/chunk-GNCVDN7U.js +0 -1
  427. package/dist/chunk-GQLNG537.js +0 -836
  428. package/dist/chunk-GVI3DWSB.js +0 -4
  429. package/dist/chunk-GW7YIJPJ.js +0 -5
  430. package/dist/chunk-H6GYBLVQ.js +0 -2
  431. package/dist/chunk-HB3MJYBK.js +0 -1
  432. package/dist/chunk-HSKDFEXW.js +0 -1
  433. package/dist/chunk-HTRJU4R4.js +0 -1
  434. package/dist/chunk-I7PEEJVH.js +0 -1
  435. package/dist/chunk-IHMATNOR.js +0 -1
  436. package/dist/chunk-IJY3RJPJ.js +0 -47
  437. package/dist/chunk-J3JPJCWP.js +0 -1
  438. package/dist/chunk-J55GQLP4.js +0 -1
  439. package/dist/chunk-JLQRDFR5.js +0 -18
  440. package/dist/chunk-JPWRZ5SL.js +0 -16
  441. package/dist/chunk-K7ZSPQKL.js +0 -4
  442. package/dist/chunk-L5TSPCSY.js +0 -26
  443. package/dist/chunk-LUGMXSRI.js +0 -9
  444. package/dist/chunk-M2CWCOFU.js +0 -11
  445. package/dist/chunk-M5VIFG2V.js +0 -1
  446. package/dist/chunk-MADINS4Z.js +0 -1
  447. package/dist/chunk-MGHPF7HU.js +0 -6
  448. package/dist/chunk-MHR5OHT5.js +0 -10
  449. package/dist/chunk-MXEXP3HT.js +0 -15
  450. package/dist/chunk-OJULL7HT.js +0 -1
  451. package/dist/chunk-OMPQ7REW.js +0 -3
  452. package/dist/chunk-OR4IJ4BQ.js +0 -1
  453. package/dist/chunk-P2RMFHQP.js +0 -1
  454. package/dist/chunk-P4VZYOKO.js +0 -15
  455. package/dist/chunk-PDZBKVWL.js +0 -97
  456. package/dist/chunk-Q2KWXZQB.js +0 -12
  457. package/dist/chunk-QFSENE5T.js +0 -3
  458. package/dist/chunk-QFWWCZOI.js +0 -1
  459. package/dist/chunk-QFYLJVJW.js +0 -77
  460. package/dist/chunk-QQJNQNKP.js +0 -6
  461. package/dist/chunk-R4UVIYZP.js +0 -4
  462. package/dist/chunk-RLNIOJH3.js +0 -272
  463. package/dist/chunk-RW6G4ZPU.js +0 -1
  464. package/dist/chunk-S4LOWCGS.js +0 -1
  465. package/dist/chunk-SB27UOXX.js +0 -1
  466. package/dist/chunk-SHD4VV5V.js +0 -3
  467. package/dist/chunk-SK7EPN6C.js +0 -1
  468. package/dist/chunk-TAWCKJKP.js +0 -1
  469. package/dist/chunk-U2T5HPRD.js +0 -319
  470. package/dist/chunk-U6YOP562.js +0 -1
  471. package/dist/chunk-UPPO3BMT.js +0 -7
  472. package/dist/chunk-USXIXANP.js +0 -103
  473. package/dist/chunk-UV5GAGAD.js +0 -1
  474. package/dist/chunk-UY6W2EVZ.js +0 -1
  475. package/dist/chunk-UYELAINQ.js +0 -16
  476. package/dist/chunk-V75WUEFU.js +0 -1
  477. package/dist/chunk-VAVXDIUX.js +0 -6
  478. package/dist/chunk-VGSH52JM.js +0 -1
  479. package/dist/chunk-VHZ6RL67.js +0 -1
  480. package/dist/chunk-VQA3X7O3.js +0 -1
  481. package/dist/chunk-VZCMJRYV.js +0 -1
  482. package/dist/chunk-W56ZGEQQ.js +0 -2265
  483. package/dist/chunk-WCC52MR2.js +0 -1
  484. package/dist/chunk-WSDKCQH6.js +0 -6
  485. package/dist/chunk-X2PFXSU4.js +0 -1
  486. package/dist/chunk-X5NIAZA4.js +0 -1
  487. package/dist/chunk-XBMD3FEZ.js +0 -3
  488. package/dist/chunk-XDVPIGXE.js +0 -2
  489. package/dist/chunk-XLIJYJ6Q.js +0 -1
  490. package/dist/chunk-XUHGWIWW.js +0 -4
  491. package/dist/chunk-Y5CVX5LJ.js +0 -1
  492. package/dist/chunk-Y6J46XYF.js +0 -3
  493. package/dist/chunk-YKMINHYY.js +0 -3
  494. package/dist/chunk-ZDQO6CNY.js +0 -1
  495. package/dist/chunk-ZGASBRSQ.js +0 -5
  496. package/dist/chunk-ZGBTO46A.js +0 -1
  497. package/dist/chunk-ZJOX5HW4.js +0 -22
  498. package/dist/chunk-ZOOT3GBY.js +0 -5
  499. package/dist/command-json-schema-F5XF7XHL.js +0 -1
  500. package/dist/conf-store-5CBLWTOC.js +0 -1
  501. package/dist/custom-oclif-loader-UDVUFKMD.js +0 -1
  502. package/dist/deprecations-EOHPSTCS.js +0 -1
  503. package/dist/dist-RNV3GFZ7.js +0 -1
  504. package/dist/dist-ZFKWJVNB.js +0 -1
  505. package/dist/environment-O7ECODHU.js +0 -1
  506. package/dist/environments-4FLRZW4P.js +0 -1
  507. package/dist/error-JY2ADS6S.js +0 -1
  508. package/dist/error-handler-4GCXKC6I.js +0 -1
  509. package/dist/fs-XS5YF34R.js +0 -1
  510. package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
  511. package/dist/is-global-27MUENOK.js +0 -1
  512. package/dist/json-error-S5XFS3UX.js +0 -1
  513. package/dist/latest-version-LDWU5F7A.js +0 -49
  514. package/dist/lib-PJHT4MKY.js +0 -1
  515. package/dist/lib-VKSQ65BQ.js +0 -1
  516. package/dist/lib-YEZOHXF3.js +0 -1
  517. package/dist/metadata-2YJBAKR7.js +0 -1
  518. package/dist/node-package-manager-B3OW3PFQ.js +0 -1
  519. package/dist/notifications-system-BWTDYBG2.js +0 -1
  520. package/dist/os-F6QKJCFW.js +0 -1
  521. package/dist/output-BRIPK7UC.js +0 -1
  522. package/dist/system-466QKFDI.js +0 -1
  523. package/dist/ui-VJTNGCS6.js +0 -1
  524. package/dist/upgrade-VHVJLXKX.js +0 -1
  525. package/dist/version-FETZRLZO.js +0 -1
  526. package/dist/version-T4XXTJMB.js +0 -1
  527. package/dist/workerd-32DMKLMN.js +0 -18
  528. /package/dist/{chunk-YLQ3LNNY.js → chunk-HVECVOIO.js} +0 -0
  529. /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
@@ -0,0 +1,16 @@
1
+ import{f as A,g as R,h as j}from"./chunk-PIU3GVJ4.js";import{a as T}from"./chunk-HT7273V7.js";import{a as S}from"./chunk-K4KKSBUW.js";import{Q as N}from"./chunk-7FBOMPO5.js";import{b as I,c as w}from"./chunk-4LJERO23.js";import{b as y,c as x}from"./chunk-IKXUYCK7.js";import{x as m}from"./chunk-7A4ZE5IS.js";import{a as d}from"./chunk-LG3KEHGD.js";import{tb as b,vb as g,zb as P}from"./chunk-OIQ5NQ5I.js";import{b as r}from"./chunk-3PYDIBTX.js";import{c as h}from"./chunk-IWTNUJGY.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();import{resolve as u}from"node:path";function v(t,{functionRunnerPath:n,schemaPath:e}){let i=t.configuration;return{function:{handle:i.handle??null,name:t.name,apiVersion:i.api_version??null,directory:u(t.directory),targets:(i.targeting??[]).filter(({target:o})=>!!o).map(o=>({target:o.target,inputQueryPath:o.input_query?u(h(t.directory,o.input_query)):null,export:o.export===""?null:o.export??null})),schemaPath:e?u(e):null,wasmPath:u(h(t.directory,i.build?.path??t.outputRelativePath)),functionRunnerPath:u(n)}}}a();var s=r.string().regex(/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/).describe("An absolute native filesystem path."),C=r.object({target:r.string().min(1),inputQueryPath:s.nullable().describe("Null when no input query is configured."),export:r.string().min(1).nullable().describe("Null when no WebAssembly export is configured.")}).strict(),O=r.object({handle:r.string().nullable().describe("Null when the extension does not configure a handle."),name:r.string(),apiVersion:r.string().nullable().describe("The configured API version, or null when unavailable."),directory:s,targets:r.array(C).describe("All configured targets; empty when none are configured."),schemaPath:s.nullable().describe("Null when a GraphQL schema is unavailable."),wasmPath:s,functionRunnerPath:s}).strict(),l=d({name:"FunctionInfoResult",schema:r.object({function:O}).strict(),definitions:{FunctionInfo:O,FunctionTarget:C}});a();function B(t,n){return{title:`CONFIGURATION
2
+ `,body:{tabularData:[["Handle",t.handle??"N/A"],["Name",n??"N/A"],["API Version",t.api_version??"N/A"]],firstColumnSubdued:!0}}}function E(t){if(Object.keys(t).length===0)return null;let n=[];return Object.entries(t).forEach(([e,i])=>{n.push([g`${b.cyan(e)}`.value,""]),i.inputQueryPath&&n.push([{subdued:" Input Query Path"},{filePath:i.inputQueryPath}]),i.export&&n.push([{subdued:" Export"},i.export])}),{title:`
3
+ TARGETING
4
+ `,body:{tabularData:n}}}function G(t,n){return{title:`
5
+ BUILD
6
+ `,body:{tabularData:[["Schema Path",{filePath:n??"N/A"}],["Wasm Path",{filePath:t}]],firstColumnSubdued:!0}}}function U(t){return{title:`
7
+ FUNCTION RUNNER
8
+ `,body:{tabularData:[["Path",{filePath:t}]],firstColumnSubdued:!0}}}function F(t,n){if(n==="json"){P(l.encode(t));return}let e=t.function,i=Object.fromEntries(e.targets.map(({target:f,inputQueryPath:Q,export:D})=>[f,{inputQueryPath:Q??void 0,export:D??void 0}])),o=[B({handle:e.handle??void 0,api_version:e.apiVersion??void 0},e.name)],c=E(i);c&&o.push(c),o.push(G(e.wasmPath,e.schemaPath??void 0)),o.push(U(e.functionRunnerPath)),m({customSections:o})}var p=class t extends T{static jsonOutputSchema=l;static summary="Print basic information about your function.";static descriptionWithMarkdown=`The information returned includes the following:
9
+
10
+ - The function handle
11
+ - The function name
12
+ - The function API version
13
+ - The targeting configuration
14
+ - The schema path
15
+ - The WASM path
16
+ - The function runner path`;static description=this.descriptionForHelp();static flags={...y,...S,...A,...x};async run(){let{flags:n}=await this.parse(t),{app:e}=await N({directory:n.path,userProvidedConfigName:n.config}),i=await R(e,n.path),o=I();await w(o);let c=await j(i,n.path,n["client-id"],n.reset,n.config),f=v(i,{functionRunnerPath:o.path,schemaPath:c});return F(f,n.json?"json":"text"),{app:e}}};export{p as a};
@@ -1 +1 @@
1
- import{b as n,c as t,g as s,h as i}from"./chunk-QFWWCZOI.js";import{b as e}from"./chunk-FZCGRIOM.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var l=e.object({id:e.number(),name:e.string(),role:e.string(),processing:e.boolean(),createdAtRuntime:e.boolean(),src:e.string().optional(),shop:e.string()}),m=t.extend({storeDomain:n,processing:e.boolean(),sourceUrl:e.string().url().nullable()}).strict().describe("The selected theme projection; sourceUrl is null when the upstream source URL is unavailable.");function u(o){return{...i(o),storeDomain:s(o.shop),processing:o.processing,sourceUrl:o.src===""?null:o.src??null}}export{l as a,m as b,u as c};
1
+ import{b as n,c as t,g as s,h as i}from"./chunk-7HECBXSP.js";import{b as e}from"./chunk-3PYDIBTX.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var l=e.object({id:e.number(),name:e.string(),role:e.string(),processing:e.boolean(),createdAtRuntime:e.boolean(),src:e.string().optional(),shop:e.string()}),m=t.extend({storeDomain:n,processing:e.boolean(),sourceUrl:e.string().url().nullable()}).strict().describe("The selected theme projection; sourceUrl is null when the upstream source URL is unavailable.");function u(o){return{...i(o),storeDomain:s(o.shop),processing:o.processing,sourceUrl:o.src===""?null:o.src??null}}export{l as a,m as b,u as c};
@@ -0,0 +1,3 @@
1
+ import{c as b,i as u,n as w,p as _}from"./chunk-6B5KM3A4.js";import{a as h}from"./chunk-R5COVIJM.js";import{P as g}from"./chunk-7FBOMPO5.js";import{c as d}from"./chunk-IKXUYCK7.js";import{j as m}from"./chunk-FJOVMEPN.js";import{zb as s}from"./chunk-OIQ5NQ5I.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var j=250,c=class extends Error{constructor(){super("Migratable subscriptions were not found"),this.name="MigratableSubscriptionsNotFoundError"}},l=class extends Error{constructor(t){super(t),this.name="MigrationListProtocolError"}};async function*S({clientId:i,status:t,getPage:o=_}){let e=new Set,a;for(;;){let p=await o({clientId:i,first:j,after:a,status:t});if(p===null)throw new c;if(yield p.subscriptions,!p.pageInfo.hasNextPage)return;let{endCursor:n}=p.pageInfo;if(n===null||n.trim()==="")throw new l("Migratable subscription page has no cursor for its next page");if(e.has(n))throw new l(`Migratable subscription pagination repeated cursor: ${n}`);e.add(n),a=n}}r();var v="shop_id,status,manual_subscription_name,manual_subscription_price_amount,manual_subscription_price_currency_code,manual_subscription_interval,target_plan_handle,notification_kind,notification_opt_out_deadline,notification_sent_at,price_behavior,effective_date,last_failure_reason";function C(i){return u.encode({subscriptions:i.map(w)})}async function y({pages:i,json:t}){t?s(C(await x(i))):await E(i)}async function x(i){let t=[];for await(let o of i)t.push(...o);return t}async function E(i){let t=!1;for await(let o of i){let e=M(o);t?e.length>0&&s(e.join(`
2
+ `)):(s([v,...e].join(`
3
+ `)),t=!0)}t||s(v)}function M(i){return i.map(t=>[t.shopId,t.status,t.manualSubscriptionName,t.manualSubscriptionPrice?.amount,t.manualSubscriptionPrice?.currencyCode,t.manualSubscriptionInterval,t.targetPlanHandle,t.notification?.kind,t.notification?.optOutDeadline,t.notification?.sentAt,t.priceBehavior,t.effectiveDate,t.lastFailureReason].map(L).join(","))}function L(i){let t=i??"";return/[",\r\n]/.test(t)?`"${t.replaceAll('"','""')}"`:t}var f=class i extends h{static summary="Lists app subscriptions eligible for migration.";static descriptionWithMarkdown="Lists every app subscription eligible for migration.\n\nBy default, the command writes CSV to stdout, streaming each page of results as it arrives. If a later page fails, the rows already written remain valid CSV. Use `--json` to fetch all pages first and then write a single JSON envelope to stdout. Use shell redirection to save either format, for example `shopify app subscription-migrations list > subscriptions.csv` or `shopify app subscription-migrations list --json > subscriptions.json`.\n\nUse `--status` to filter subscriptions by migration status. Supported values are `UNSCHEDULED`, `SCHEDULED`, and `MIGRATED`.\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 jsonOutputSchema=u;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --status SCHEDULED > scheduled-subscriptions.csv","<%= config.bin %> <%= command.id %> --json","<%= config.bin %> <%= command.id %> --json > subscriptions.json","<%= config.bin %> <%= command.id %> --client-id <client-id> > subscriptions.csv"];static flags={...b,...d};async run(){let{flags:t}=await this.parse(i),{app:o,remoteApp:e}=await g({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});try{let a=S({clientId:e.apiKey,status:t.status});await y({pages:a,json:t.json})}catch(a){throw a instanceof c?new m("App not found"):a}return{app:o}}};export{f as a};
@@ -1,4 +1,4 @@
1
- import{a as R,b as V,c as H,d as i,e as O,f as _,g as q,h as C,i as x}from"./chunk-KZRLZWOU.js";import{a as M}from"./chunk-VHZ6RL67.js";import{a as A}from"./chunk-NVKJ7ZLP.js";import{Ma as L,ja as F}from"./chunk-U2T5HPRD.js";import{fa as k}from"./chunk-33ZE3DRQ.js";import{b as E,c as I,f as p}from"./chunk-3KM5ZOW2.js";import{E as m,G as v,K as b}from"./chunk-D2KIGKBI.js";import{a as y}from"./chunk-BN7ZXAZJ.js";import{h as w}from"./chunk-M5VIFG2V.js";import{Cb as T,Eb as S,wb as P,zb as h}from"./chunk-JLQRDFR5.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as Q}from"./chunk-YTUUU33R.js";import{i as g}from"./chunk-IWTNUJGY.js";import{e as X,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function D(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function W(e){let t=e.map(o=>({label:o,value:o}));return await v({message:"Webhook Topic",choices:t})}async function B(e){return m({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function N(){return m({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function Y(e){return(await b({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!O(o,e))return`Invalid address.
1
+ import{a as R,b as V,c as H,d as i,e as O,f as _,g as q,h as C,i as x}from"./chunk-AYGL6F3P.js";import{a as M}from"./chunk-R5COVIJM.js";import{a as A}from"./chunk-K4KKSBUW.js";import{P as L,m as F}from"./chunk-7FBOMPO5.js";import{e as k}from"./chunk-4KBOLN7Q.js";import{b as E,c as I,f as p}from"./chunk-IKXUYCK7.js";import{C as m,E as v,I as b}from"./chunk-7A4ZE5IS.js";import{a as y}from"./chunk-LG3KEHGD.js";import{j as w}from"./chunk-FJOVMEPN.js";import{Cb as h,Fb as T,Hb as S,zb as P}from"./chunk-OIQ5NQ5I.js";import{b as n}from"./chunk-3PYDIBTX.js";import{b as Q}from"./chunk-VBPMVVLV.js";import{i as g}from"./chunk-IWTNUJGY.js";import{e as X,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();a();async function D(e,t,r){let o={api_version:t},{webhookTopics:s}=await e.topics(o,r);return s}a();async function W(e){let t=e.map(o=>({label:o,value:o}));return await v({message:"Webhook Topic",choices:t})}async function B(e){return m({message:"Webhook ApiVersion",choices:e.map(t=>({label:t,value:t}))})}async function N(){return m({message:"Delivery method",choices:[{label:"HTTP",value:i.HTTP},{label:"Google Pub/Sub",value:i.PUBSUB},{label:"Amazon EventBridge",value:i.EVENTBRIDGE}]})}async function Y(e){return(await b({message:"Address for delivery",validate:r=>{let o=r.trim();if(o.length===0)return"Address can't be empty";if(!O(o,e))return`Invalid address.
2
2
  ${l(e)}`}})).trim()}function Z(e){return e===i.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:e===i.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:e===i.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function l(e){return Z(e).map(t=>` \xB7 ${S(t)}`).join(`
3
3
  `)}async function G(e,t){let{clientSecret:r,clientId:o,remoteApp:s,app:c}=e;return r&&(o||t!==i.EVENTBRIDGE)?{clientSecret:r,apiKey:o}:(F({appName:s.title,configFile:g(c.configPath)}),r?{clientSecret:r,apiKey:s.apiKey}:{clientSecret:await k(s,"Pass the secret with the --client-secret flag."),apiKey:s.apiKey})}async function j(e,t,r){let o=await R(e,r);return t?q(t,o):B(o)}async function z(e,t,r,o){let s=await D(e,t,o);return r?C(r,t,s):W(s)}async function U(e,t){let r=e??x(t)??await N(),o=t??await Y(r);return _(o,r)}async function J(e){let t=await ee(e);return te(t)}async function ee(e){let t=await j(e.developerPlatformClient,e.apiVersion,e.organizationId),r=await z(e.developerPlatformClient,t,e.topic,e.organizationId),[o,s]=await U(e.deliveryMethod,e.address),c=await G(e,s);return{topic:r,apiVersion:t,deliveryMethod:s,address:o,apiKey:c.apiKey,clientSecret:c.clientSecret,developerPlatformClient:e.developerPlatformClient,organizationId:e.organizationId}}async function te(e){let t={topic:e.topic,api_version:e.apiVersion,address:e.address,delivery_method:e.deliveryMethod,shared_secret:e.clientSecret,api_key:e.apiKey},r=await V(e.developerPlatformClient,t,e.organizationId);if(!r.success)return{status:"failed",reason:"sample-request",userErrors:r.userErrors};let o={topic:e.topic,apiVersion:e.apiVersion,deliveryMethod:e.deliveryMethod,address:e.address,status:"enqueued"};return e.deliveryMethod===i.LOCALHOST?await H(e.address,r.samplePayload,r.headers)?{status:"success",delivery:{...o,status:"delivered"},samplePayloadIsEmpty:r.samplePayload===JSON.stringify({})}:{status:"failed",reason:"localhost-delivery"}:{status:"success",delivery:o,samplePayloadIsEmpty:r.samplePayload===JSON.stringify({})}}a();var K=n.object({topic:n.string(),apiVersion:n.string(),deliveryMethod:n.enum(["localhost","http","google-pub-sub","event-bridge"]),address:n.string(),status:n.enum(["delivered","enqueued"]).describe("Remote delivery is enqueued, not confirmed received.")}).strict(),u=y({name:"AppWebhookTriggerResult",schema:n.object({status:n.literal("success"),delivery:K}).strict(),definitions:{AppWebhookDelivery:K}});a();function $(e,t){if(e.status==="failed"){if(t==="json"){let r=new w(e.reason==="sample-request"?"Webhook sample request failed.":"Localhost delivery failed");throw e.reason==="sample-request"&&(r.details={userErrors:e.userErrors.map(({message:o,fields:s})=>({message:o,fieldPath:s}))}),r}T(e.reason==="sample-request"?`Request errors:
4
4
  ${re(e.userErrors)}`:"Localhost delivery failed");return}t==="json"?P(u.encode({status:e.status,delivery:e.delivery})):e.delivery.status==="delivered"?h("Localhost delivery sucessful"):e.samplePayloadIsEmpty&&h("Webhook has been enqueued for delivery")}function re(e){try{return e.map(t=>JSON.parse(t.message).map(r=>` \xB7 ${r}`).join(`
@@ -18,7 +18,7 @@ ${re(e.userErrors)}`:"Localhost delivery failed");return}t==="json"?P(u.encode({
18
18
  - Webhooks triggered using this method aren't retried when they fail.
19
19
  - Trigger requests are rate-limited using the [Partner API rate limit](https://shopify.dev/docs/api/partner#rate_limits).
20
20
  - You can't use this method to validate your API webhook subscriptions.
21
- `;static get jsonOutputSchema(){return u}static description=this.descriptionForHelp();static flags={...E,...A,...I,help:d.Flags.help({required:!1,hidden:!1,env:"SHOPIFY_FLAG_HELP",description:"This help. When you run the trigger command the CLI will prompt you for any information that isn't passed using flags."}),topic:p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_TOPIC",description:"The requested webhook topic."})),"api-version":p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_API_VERSION",description:"The API Version of the webhook topic."})),"delivery-method":d.Flags.string({required:!1,hidden:!1,options:[i.HTTP,i.PUBSUB,i.EVENTBRIDGE],env:"SHOPIFY_FLAG_DELIVERY_METHOD",description:"Method chosen to deliver the topic payload. If not passed, it's inferred from the address."}),"client-secret":d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_CLIENT_SECRET",description:"Your app's client secret. This secret allows us to return the X-Shopify-Hmac-SHA256 header that lets you validate the origin of the response that you receive."}),address:p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_ADDRESS",description:`The URL where the webhook payload should be sent.
21
+ `;static jsonOutputSchema=u;static description=this.descriptionForHelp();static flags={...E,...A,...I,help:d.Flags.help({required:!1,hidden:!1,env:"SHOPIFY_FLAG_HELP",description:"This help. When you run the trigger command the CLI will prompt you for any information that isn't passed using flags."}),topic:p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_TOPIC",description:"The requested webhook topic."})),"api-version":p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_API_VERSION",description:"The API Version of the webhook topic."})),"delivery-method":d.Flags.string({required:!1,hidden:!1,options:[i.HTTP,i.PUBSUB,i.EVENTBRIDGE],env:"SHOPIFY_FLAG_DELIVERY_METHOD",description:"Method chosen to deliver the topic payload. If not passed, it's inferred from the address."}),"client-secret":d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_CLIENT_SECRET",description:"Your app's client secret. This secret allows us to return the X-Shopify-Hmac-SHA256 header that lets you validate the origin of the response that you receive."}),address:p(d.Flags.string({required:!1,hidden:!1,env:"SHOPIFY_FLAG_ADDRESS",description:`The URL where the webhook payload should be sent.
22
22
  You will need a different address type for each delivery-method:
23
23
  ${l(i.HTTP)}
24
24
  ${l(i.PUBSUB)}
@@ -0,0 +1 @@
1
+ import{A as D,t as v,w as U}from"./chunk-4KBOLN7Q.js";import{$ as z,_ as $,aa as x,ca as L,ea as I}from"./chunk-4LJERO23.js";import{p as P}from"./chunk-HEB4YYM6.js";import{a as k}from"./chunk-U5BKU3OL.js";import{B as g,W as R}from"./chunk-UORSJB4A.js";import{G as N,L as S,S as y,x as _,y as O}from"./chunk-7A4ZE5IS.js";import{b as C}from"./chunk-QBRRFFMZ.js";import{h as A,j as i}from"./chunk-FJOVMEPN.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();l();async function b(e,t){if(t.clientName!==v.AppManagement||!t.devStoreCapReached)return!1;try{return await t.devStoreCapReached(e)}catch{return!1}}async function E(e,t,o,d="disabled"){let m=o.clientName===v.AppManagement,c=async f=>o.devStoresForOrg(t.id,f),s=d!=="disabled"&&o.clientName===v.AppManagement,n=async()=>{if(await b(t.id,o))throw new i(W,q(t.id));let f=await $(),h=await z(),M=await x(),u=await P({name:f,plan:h,withDemoData:M,organization:t,json:!1,summary:!1}),w=await H(t,u,o);return O({headline:`Dev store "${w.shopName}" created successfully.`}),w},a,r;if(s&&e.stores.length===0){if(await b(t.id,o))throw new i(W,q(t.id));if(S()===!1)throw new i("No development store was specified.",G(t.id));a=async()=>(_({body:j(t)}),n())}else if(s&&d==="selection-option"){if(S()===!1&&(e.stores.length>1||e.hasMorePages))throw new i("No development store was specified.","Run `shopify app dev --store <store-domain>` to select a development store.");S()&&!await b(t.id,o)&&(r=n)}let p=await L({onSearchForStoresByName:c,...e,showDomainOnPrompt:m,...a?{onCreateStoreWhenEmpty:a}:{},...r?{onCreateStore:r}:{}});if(!p){if(a)throw new A;if(_({body:await o.getCreateDevStoreLink(t)}),await y(5),!await I(t))throw new A;let h=await V(t.id,o);p=await E({stores:h,hasMorePages:!1},t,o,d)}return F(p),p}async function H(e,t,o){let c;if(await N([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){try{let a=await D(e,t,o);if(a){c=a;return}}catch(a){if(!(a instanceof U))throw a}await y(3)}}}]),!c)throw new i(`The newly created development store (${t}) is not available yet.`,`Run \`shopify app dev --store ${t}\` to select it when it is ready.`);return c}async function V(e,t){let m=[];return await N([{title:"Fetching organization data",task:async()=>{for(let s=0;s<10;s++){let{stores:n}=await t.devStoresForOrg(e);if(n.length>0){m=n;return}await y(3)}}}]),m}var W="Your organization has reached its development store limit.";function j(e){return`You don't have any dev stores associated with ${e.businessName}'s Dev Dashboard. Let's create one.`}function B(e){return`shopify store create dev --organization-id ${e} --name <store-name> --plan <plan>`}function G(e){return`Create a development store with \`${B(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function q(e){return`Make a development store slot available in Dev Dashboard. Then create a development store with \`${B(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function F(e){if(!e.transferDisabled)throw!e.transferDisabled&&!e.convertableToPartnerTest?new i(`The store you specified (${e.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store."):new i(`The store you specified (${e.shopDomain}) is not transfer-disabled`,"Run dev --reset and select a transfer-disabled dev store.")}async function ve({appContextResult:e,storeFqdn:t,forceReselectStore:o,storeTypes:d=["APP_DEVELOPMENT"],storeCreationMode:m="disabled",devSession:c=!1}){let{app:s,organization:n,developerPlatformClient:a}=e,r,p=s.configuration.build?.dev_store_url,f=s.hiddenConfig.dev_store_url,h=p??f,u=t??(o?void 0:h),w=d.length===1&&d[0]==="APP_DEVELOPMENT",T=c&&w&&R();if(T)r=J(u);else if(u)r=await D(n,u,a,d),w&&F(r);else{let Y=await a.devStoresForOrg(n.id);r=await E(Y,n,a,m)}return r.shopDomain=g(r.shopDomain),await K(r,o),!T&&(r.shopDomain!==h||!f)&&await s.updateHiddenConfig({dev_store_url:r.shopDomain}),T||await a.ensureUserAccessToStore(n.id,r),r}function J(e){if(!e)throw new i("A service account needs a dev store to run this command.","Pass the dev store with --store, or set build.dev_store_url in the app configuration.");let t=g(e);return{shopId:"",link:"",shopDomain:t,shopName:t,transferDisabled:!0,convertableToPartnerTest:!1,provisionable:!1}}async function K(e,t){await k.addPublicMetadata(()=>({cmd_app_reset_used:t,store_fqdn_hash:C(e.shopDomain),store_domain:e.shopDomain})),await k.addSensitiveMetadata(()=>({store_fqdn:e.shopDomain}))}export{ve as a};
@@ -0,0 +1,26 @@
1
+ import{a as Be,b as Ke,e as P,f as gn,g as mn}from"./chunk-SUTSCIXU.js";import{a as Xe,b as l,c as C,d as hn,e as fn}from"./chunk-4M5WHOZW.js";import{b as bn}from"./chunk-43C32FUQ.js";import{a as rn,d as on,e as an,f as cn,g as ne,h as dn}from"./chunk-SBX7CMHM.js";import{$ as D,B as m,E as Ve,Q as ze,S as Je,W as Qe,Z as N,a as Ge,aa as j,ba as Ze,da as ee,ea as en,fa as nn,ga as tn,ha as sn,ia as k,ja as te,la as M,ma as se,n as He,na as ie,o as Ye,oa as un,pa as ln,qa as re,ra as pn,u as v,v as X,w as x,x as Z,z as qe}from"./chunk-NAQJMRPT.js";import{b as Ue}from"./chunk-PSREELSQ.js";import{a as _e}from"./chunk-EE72PCKT.js";import{b as Me,c as We}from"./chunk-IKXUYCK7.js";import{A as De,C as J,D as je,I as Pe,U as Le,x as xe,y as Ne,z}from"./chunk-7A4ZE5IS.js";import{a as Fe}from"./chunk-QBRRFFMZ.js";import{a as Re}from"./chunk-LG3KEHGD.js";import{j as R}from"./chunk-FJOVMEPN.js";import{Xa as Te,ga as Ee,zb as Q}from"./chunk-OIQ5NQ5I.js";import{b as a,d as F,e as Ie}from"./chunk-3PYDIBTX.js";import{a as Oe}from"./chunk-A5BSUUNQ.js";import{b as kt}from"./chunk-VBPMVVLV.js";import{d as I,f as Ce}from"./chunk-IWTNUJGY.js";import{e as St,g as b}from"./chunk-VKWPEFWQ.js";b();b();import{isDeepStrictEqual as ae}from"node:util";var At=12,$t={resolveSelection:Je,loadResults:bn,recordMetadata:Xe};function _t(e,n){let t=n.checkIds.length>0?{checkIds:n.checkIds}:null,s=n.failOnUnresolved??!1,i=e.sources.deterministic!==null||e.sources.agent!==null,r=It(e.checks);if(t&&(i||s)){let d=e.checks.map(u=>u.id);Tt(t.checkIds,s?[...d,...r]:d)}let o=t?e.checks.filter(d=>t.checkIds.includes(d.id)):e.checks,c=W(e.checks);return{resultsDirectory:n.resultsDirectory,sources:e.sources,allChecks:e.checks,checks:o,filter:t,scopeDiffers:Et(e.sources),suppressions:e.suppressions,findingNumbers:new Map(c.map(({finding:d,number:u})=>[d,u])),likelyFindingNumbers:Rt(e,c),resultsDigest:i?Ct(c):null,blocking:{level:n.blocking,blockedChecks:Ke(o,n.blocking)},failOnUnresolved:s,unresolvedChecks:o.filter(d=>d.status==="unresolved").length,missingCheckIds:t?r.filter(d=>t.checkIds.includes(d)):r}}function E(e){return e.blocking.blockedChecks>0||e.failOnUnresolved&&(e.unresolvedChecks>0||e.missingCheckIds.length>0)}function It(e){let n=new Set(e.map(t=>t.id));return Ye().filter(t=>!n.has(t))}function W(e){return e.flatMap(n=>n.findings.map(t=>({check:n,finding:t}))).map((n,t)=>({...n,number:t+1}))}function Rt(e,n){return new Map(e.suppressions.flatMap(({index:t,entry:s,likely_finding:i})=>{if(i===void 0)return[];let o=e.sources[s.source]?.document.checks.find(({id:d})=>d===s.check)?.findings[i.index],c=n.find(({check:d,finding:u})=>d.id===s.check&&u.source===s.source&&ae(Rn(u),o));return c?[[t,c.number]]:[]}))}function Ct(e){let n=e.map(({check:t,finding:{disposition:s,suppressed_by:i,...r}})=>[t.id,r]);return Fe(JSON.stringify(n)).toString("hex").slice(0,At)}function Et({deterministic:e,agent:n}){return!e||!n?!1:JSON.stringify(e.document.coverage.scope)!==JSON.stringify(n.document.scope)}function Tt(e,n){let t=e.filter(r=>!n.includes(r));if(t.length===0)return;let s=t.length===1?"check ID":"check IDs",i=new R(`Unknown ${s}: ${t.join(", ")}.`,"Pass --check-id with one of the available check IDs.",[],[{title:"Available check IDs",body:{list:{items:n}}}]);throw i.code="unknown-check-id",i.details={checkIds:t},i}async function ce(e,n=$t){let t=e.suppress?Dt(e.suppress):void 0,s=await n.resolveSelection({path:e.directory,config:e.configName,clientId:e.clientId,withoutAppConfig:e.withoutAppConfig,allowPrompts:!1,validateClientIdFlag:!0}),i=async()=>{let g=await n.loadResults(s,e.directory),p=_t(g,{resultsDirectory:Ve(s.appDirectory,ze(s)).resultsDirectory,checkIds:e.checkIds,blocking:e.blocking,failOnUnresolved:e.failOnUnresolved});return{results:g,result:p}},r=await i(),o=e.suppress&&t?Nt(await oe(s,r.results,r.result,e.suppress,t)):void 0,c=e.interactive?Lt(r.results,r.result):new Map,d=e.interactive?await e.interactive({result:r.result,findings:yn(r.result,Ft),supersededFindings:yn(r.result,xt),suppress:async({findingNumber:g,decision:p,includeSuperseded:S})=>{let _=await i(),U={findingNumber:g,resultsDigest:r.result.resultsDigest??void 0,includeSuperseded:S};return oe(s,_.results,_.result,U,{decision:p,missing:[]})},reattachments:c,reattach:async g=>{let p=c.get(g);if(!p)return A(Cn(g));let S=await i(),_={findingNumber:g,resultsDigest:r.result.resultsDigest??void 0,includeSuperseded:!1,reattachment:p};return oe(s,S.results,S.result,_,{decision:{},missing:[]})}}):void 0,{results:u,result:f}=o!==void 0||d!==void 0?await i():r;if(f.sources.deterministic!==null||f.sources.agent!==null){let g=f.allChecks.reduce((p,S)=>p+v(S).length,0);await n.recordMetadata({num_security_findings:g})}return{selection:s,result:f,commands:Qe(s,e.directory,u.sources.deterministic?.document.coverage.scope),...o?{savedSuppressions:o}:{},...d?{interactiveReview:d}:{}}}function yn(e,n){let t=new Set(e.checks.map(s=>s.id));return W(e.allChecks).filter(({check:s,finding:i})=>t.has(s.id)&&n(i))}function Ft(e){return e.disposition==="active"}function xt(e){return e.disposition==="superseded"&&e.suppressed_by===void 0}function Nt(e){if(e.status==="saved")return e.savedSuppressions;let{code:n,message:t,tryMessage:s,details:i,errors:r}=e.refusal;if(r!==void 0)throw An(r);let o=new R(t,s);throw o.code=n,o.details=i,o}function Dt(e){let n=on(e);if(n.ok)return n;throw An(n.errors)}var Sn="The suppression could not be saved because a flag is invalid.",kn="Pass --kind false-positive or --kind accepted-risk, and a --reason that explains the decision.";function An(e){let n=new R(Sn,kn,[],[{title:"Errors",body:{list:{items:e}}}]);return n.code="suppression-flags-invalid",n.details={errors:e},n}function jt(e){return{code:"suppression-flags-invalid",message:Sn,tryMessage:kn,details:{errors:e},errors:e}}function Pt({kind:e,reason:n}){return e===void 0||n===void 0?void 0:{kind:e,reason:n}}function $n(e,n){return{kind:n.kind??e.kind,reason:n.reason??e.reason}}function vn(e,n,t){let[s]=[...n.likelyFindingNumbers].find(([,r])=>r===t)??[],i=s===void 0?void 0:e.suppressions[s]?.entry;return s===void 0||i===void 0?void 0:{index:s,entry:i}}function _n(e){return{deterministic:e.sources.deterministic?.document??null,agent:e.sources.agent?.document??null}}function Lt(e,n){let t=W(n.allChecks),s=e.suppressions.map(({entry:i})=>i);return new Map([...n.likelyFindingNumbers].flatMap(([i,r])=>{let o=t.find(({number:u})=>u===r),c=s[i];if(!o||!c)return[];let d=ne(In(e,o),i,$n(c,{}),_n(e),s);return d.status!=="change"||d.change.type!=="replace-code"?[]:[[r,{entryIndex:i,entry:c,code:d.change.code}]]}))}async function oe(e,n,t,s,{decision:i,missing:r}){if(s.resultsDigest!==void 0&&s.resultsDigest!==t.resultsDigest)return A(Ut(s.resultsDigest,t.resultsDigest));let o=W(t.allChecks),c=o.find(({number:h})=>h===s.findingNumber),d=c?vn(n,t,c.number):void 0;if(s.reattachment){if(!d)return A(Cn(s.findingNumber));let{entryIndex:h,entry:y}=s.reattachment;if(d.index!==h||!ae(d.entry,y))return A({code:"finding-not-suppressible",message:`The stale suppression for finding ${s.findingNumber} changed during the review. Nothing was saved.`,tryMessage:"Run the review again to see the current entry before re-attaching it.",details:{findingNumber:s.findingNumber}})}let u=c?.finding.suppressed_by?.origin==="file"?c.finding.suppressed_by:void 0,f=d?.entry??(s.includeSuperseded?u:void 0),g=f?$n(f,i):Pt(i);if(!g)return A(jt(r));if(!c)return A(Mt(s.findingNumber,o.length));let p=Ot(c,o),S=c.finding.suppressed_by!==void 0,_=s.includeSuperseded&&u!==void 0;if(S&&!_)return A(wn(c));let U=[...S?[]:[c],...s.includeSuperseded?p:[]];if(U.length===0)return A(wn(c));let ke=_n(n),q=n.suppressions.map(({entry:h})=>h),Ae=U.map(h=>{let y=In(n,h),$e=vn(n,t,h.number);return{numberedFinding:h,plan:$e?ne(y,$e.index,g,ke,q):cn(y,g,ke,q)}}),K=Ae.find(({plan:h})=>h.status==="refused");if(K?.plan.status==="refused")return A(Wt(K.numberedFinding,K.plan,o));let V=Ae.flatMap(({numberedFinding:h,plan:y})=>y.status==="change"?[{findingNumber:h.number,findingSuperseded:h.finding.disposition==="superseded",change:y.change}]:[]),{path:vt,saved:wt}=await dn(e.appDirectory,V.map(({change:h})=>h),q);return{status:"saved",savedSuppressions:{path:vt,saved:wt.map((h,y)=>({...h,findingNumber:V[y].findingNumber,findingSuperseded:V[y].findingSuperseded})),companionNumbers:s.includeSuperseded?[]:p.map(({number:h})=>h)}}}function A(e){return{status:"refused",refusal:e}}function Ot(e,n){if(e.finding.source!=="agent")return[];let t=I(e.finding.location.file),s=n.filter(({check:o,finding:c})=>o.id===e.check.id&&c.source==="deterministic"&&c.disposition==="superseded"&&I(c.location.file)===t),i=s.filter(({finding:o})=>o.location.line===e.finding.location.line);return(i.length>0?i:s).filter(({finding:o})=>o.suppressed_by?.origin!=="file")}function In(e,{check:n,finding:t}){let{source:s}=t,i=Rn(t),o=e.sources[s]?.document.checks.find(({id:c})=>c===n.id)?.findings.findIndex(c=>ae(c,i))??-1;return{source:s,checkId:n.id,findingIndex:o,finding:i}}function Rn(e){let{source:n,disposition:t,suppressed_by:s,...i}=e;return i}function Cn(e){return{code:"finding-not-suppressible",message:`Finding ${e} is no longer the likely finding of a stale entry. Nothing was saved.`,tryMessage:`Choose Suppress to save a new entry for it, or run the review again to see the stale entries of ${m}.`,details:{findingNumber:e}}}function Ut(e,n){return{code:"results-digest-mismatch",message:`The results changed since digest ${e}, so the finding numbers may name other findings. Nothing was saved.`,tryMessage:"Run the review again, check the number of the finding, and pass the new digest with --results-digest.",details:{resultsDigest:n}}}function Mt(e,n){return{code:"finding-not-found",message:`No finding has number ${e}. Nothing was saved.`,tryMessage:n===0?"The results have no findings.":`The findings are numbered from 1 to ${n}. Run the review to see their numbers.`,details:{findingNumber:e,findingCount:n}}}function wn({number:e,finding:n}){let t=n.suppressed_by?.origin==="file",s=n.suppressed_by?.origin==="file"?`suppressions[${n.suppressed_by.entry_index}] in ${m}`:"the agent";return{code:"finding-not-suppressible",message:`Finding ${e} is already suppressed by ${s}. Nothing was saved.`,tryMessage:t?`To change the suppression, edit ${m}.`:`The agent's suppression applies to these results only. To save one in ${m}, record the agent findings again without it, then suppress the finding.`,details:{findingNumber:e,disposition:n.disposition}}}function Wt(e,n,t){return{code:"finding-not-suppressible",message:`Finding ${e.number} can't be suppressed: ${n.problem}. Nothing was saved.`,tryMessage:Bt(e,n,t),details:{findingNumber:e.number}}}function Bt(e,{withoutCode:n,invalidFields:t},s){return t?Gt(e,t):n?Ht(e,s):`Add an entry for it to ${m} by hand, with a code that names it alone.`}function Gt({check:e,finding:n},t){if(t.includes("check")){let s=n.source==="agent"?"have your coding agent run check and record its findings again":"run check again";return[`This version of the CLI has no ${n.source} check ${e.id}, so an entry for it by hand would make ${m} invalid too.`,`The results may be from another version of the CLI. To update them, ${s}.`].join(" ")}return t.includes("path")?[`${m} can't name the path ${I(n.location.file)}, so no entry can suppress this finding.`,"An entry for it by hand would make the file invalid too."].join(" "):`An entry for it by hand with the same values would make ${m} invalid too.`}function Ht({check:e,finding:n},t){let s=I(n.location.file),i=t.filter(o=>o.check.id===e.id&&o.finding.source===n.source&&I(o.finding.location.file)===s).map(o=>o.number);return["The automatic code selectors did not select this finding alone. You can try a manual entry with a code that names it alone.",`${n.source==="agent"?"An agent entry":"A deterministic entry"} for ${e.id} in ${s} without code suppresses all ${l(i.length,`${n.source} finding`)} of that check in that file: ${C(i)}.`,`Add either entry to ${m} by hand. Omit code only if you intend to suppress all of these findings.`].join(" ")}b();b();var de={high:"High",medium:"Medium",low:"Low"},En={executed:"passed",not_applicable:"not applicable",unresolved:"unresolved"},Yt="no deterministic findings",qt={executed:"executed",not_applicable:"not applicable",unresolved:"unresolved"},B=["deterministic","agent"],Kt={deterministic:"deterministic-findings.json",agent:"agent-findings.json"},Tn=3,Vt="Agent findings were recorded for a different scope than the latest scan.",Nn="agent result stale",zt="The agent result is older than the deterministic result, so both are shown.",Jt={info:xe,success:Ne,warning:z,error:De};function Dn(e){for(let n of Qt(e))$(n)}function $(e){Jt[e.type](e.options)}function Qt(e){let{checks:n,filter:t,suppressions:s}=e.result,i=Mn(e).ids,r=p=>e.result.findingNumbers.get(p),o=n.filter(p=>p.status==="unresolved"&&v(p).length===0),c=n.filter(p=>p.status!=="unresolved"&&v(p).length===0),d=n.filter(p=>v(p).length>0),u=Cs(e.result),f=gn(n,s),g=mn(t?s.filter(p=>t.checkIds.includes(p.entry.check)):s,Xt(e));return[...o.length>0?[Ts(o,e.verbose,r)]:[],...u.length>0?[Es(u)]:[],...c.length>0?[Fs(c,i,e.verbose,r)]:[],...d.map(p=>Ds(p,e.verbose,e.now,r)),...f?[as(f)]:[],...g?[cs(g)]:[],Is(ds(e)),...e.savedSuppressions?[ss(e.savedSuppressions)]:[],...e.interactiveReview?[rs(e.interactiveReview)]:[]]}function Xt({result:e,commands:n}){let t=e.resultsDigest===null?[]:["--results-digest",e.resultsDigest];return{review:N(n.review),reattach:{findingNumbers:e.likelyFindingNumbers,command:s=>N({...n.review,args:[...n.review.args,"--suppress",String(s),...t]})}}}var Zt={added:"added","code-replaced":"re-attached"};function ue({index:e,change:n,entry:t,previous:s,findingNumber:i,findingSuperseded:r}){return{title:`suppressions[${e}] \xB7 finding ${i} \xB7 ${Zt[n]}`,body:[`${t.source} ${t.check} in`,{filePath:t.path},...s?ns(t,s):es(t),...r?[`
2
+ ${ts(i)}`]:[]]}}function es(e){return[{subdued:`
3
+ Kind: ${P[e.kind]}`},...e.code===void 0?[]:[{subdued:`
4
+ Code: ${e.code}`}],{subdued:`
5
+ Reason: ${e.reason}`}]}function ns(e,n){let t=e.kind===n.kind?"kept":`replaced, it was ${P[n.kind]}`,s=e.reason===n.reason;return[{subdued:`
6
+ Kind: ${P[e.kind]} (${t})`},...n.code===void 0?[]:[{subdued:`
7
+ Old code: ${n.code}`}],...e.code===void 0?[]:[{subdued:`
8
+ New code: ${e.code}`}],{subdued:`
9
+ Reason (${s?"kept":"replaced"}): ${e.reason}`},...s?[]:[{subdued:`
10
+ Old reason: ${n.reason}`}]]}function ts(e){return`The agent result supersedes finding ${e} in the review, but check --blocking, which reads no agent results, counts it. This entry suppresses it for check --blocking.`}var jn={title:"Next steps",body:{list:{items:[`Review and commit ${m}.`]}}};function le(e){return`Saved ${l(e.length,"suppression")} to ${m}.`}function ss({saved:e,companionNumbers:n}){let t=e.map(ue),s=n.length===0?[]:[{title:"Not suppressed",body:`${Ln(n)} the same check in the same file, so check --blocking, which reads no agent results, still counts ${n.length===1?"it":"them"}. To suppress ${n.length===1?"it":"them"} with the same kind and reason, run the command again with --include-superseded.`}];return{type:"success",options:{headline:le(e),customSections:[...t,...s,jn]}}}function Pn({number:e,check:n,finding:t},s,i){return{type:n.severity==="high"?"error":"warning",options:{headline:`${de[n.severity]} \xB7 ${n.id} \xB7 ${n.title}`,body:{subdued:s},...n.docs_url?{link:{label:`${n.id} on shopify.dev`,url:n.docs_url}}:{},customSections:[H(t,e,!0),...i?[is(i)]:[]]}}}function is({entryIndex:e,entry:n,code:t}){return{title:`Stale entry suppressions[${e}] \xB7 ${P[n.kind]}`,body:["Its code matches no finding, and the code of this finding is similar. Re-attach gives the entry this finding's code, and keeps its kind and reason.",{subdued:`
11
+ Reason: ${n.reason}`},...n.code===void 0?[]:[{subdued:`
12
+ Old code: ${n.code}`}],{subdued:`
13
+ New code: ${t}`}]}}function pe(e){return{type:"success",options:{headline:le(e),customSections:e.map(ue)}}}function rs({saved:e,declinedCompanions:n,ending:t,resultsDigest:s}){let r={finished:void 0,quit:"You quit the review. The suppressions you saved are kept.","results-changed":"The review stopped because the results changed. The suppressions you saved are kept."}[t],o=r===void 0?{}:{body:r};if(e.length===0)return{type:"info",options:{headline:`No suppressions saved to ${m}.`,...o}};let c=n.length===0?[]:[{title:"Not suppressed",body:{list:{items:n.map(d=>os(d,s))}}}];return{type:"success",options:{headline:le(e),...o,customSections:[...e.map(ue),...c,jn]}}}function os({findingNumber:e,companionNumbers:n},t){let s=n.length===1?"it":"them",i=t===null?"":` --results-digest ${t}`;return`${Ln(n)} the same check in the same file as finding ${e}, so check --blocking, which reads no agent results, still counts ${s}. To suppress ${s}, run the review with --suppress ${e} --include-superseded${i} and the same --kind and --reason.`}function Ln(e){return e.length===1?`Finding ${e[0]} is a superseded deterministic finding of`:`Findings ${C(e)} are superseded deterministic findings of`}function as({headline:e,counts:n,sections:t}){return{type:"info",options:{headline:e,customSections:[{body:n},...t]}}}function cs({headline:e,needsChange:n,sections:t}){return{type:n?"warning":"info",options:{headline:e,customSections:t}}}function ds(e){let{result:n}=e,t=n.sources.deterministic!==null||n.sources.agent!==null,s=Z(n.checks),i=n.sources.deterministic?.document,r=n.checks.filter(x).length,o=Mn(e),c=E(n);return{type:bs(n.checks,s,t,o.total,c),headline:ys(n.checks,s,t),...n.filter&&t?{filterLine:`Showing ${n.checks.length} of ${n.allChecks.length} checks (--check-id).`}:{},checksWithFindings:n.checks.filter(d=>v(d).length>0).map(vs),otherChecks:Ss(n.checks,o.ids,s),...t&&o.total>0?{agentResultsPending:ms(o)}:{},...r>0?{staleAgentResults:fs(r)}:{},...i?{coverage:ks(i)}:{},scopeLines:As(n.sources),...n.scopeDiffers?{scopeNote:Vt}:{},resultsFiles:{directory:n.resultsDirectory,rows:B.map(d=>$s(d,n.sources[d]?.document,e.now))},...n.resultsDigest===null?{}:{resultsDigest:n.resultsDigest},...c?{blocking:Un(n)}:{nextSteps:_s(n,s,t,r,o.total,e.commands)}}}function us({blockedChecks:e,level:n}){return`${l(e,"check")} at or above ${n} (--blocking ${n}).`}function ls(e){let n=ps(e),t=E(e)?Un(e):void 0;if(!(n===void 0&&t===void 0))return{...n===void 0?{}:{headline:n},...t===void 0?{}:{customSections:[{title:"Blocking",body:t}]}}}function On(e){let n=ls(e);n&&z(n)}function ps(e){let n=hs(e);return n===void 0||e.failOnUnresolved?n:`${n} Pass --fail-on-unresolved to exit with code 1 while a check is unresolved or has no result.`}function hs(e){if(e.sources.deterministic===null&&e.sources.agent===null)return"The SARIF log has no results, so code scanning would close every open alert as fixed.";let n=e.checks.filter(r=>r.status==="unresolved").length,t=e.missingCheckIds.length;if(n+t===0)return;let s=[n>0?l(n,"unresolved check"):"",t>0?`${l(t,"check")} without results`:""].filter(Boolean).join(" and "),i=n+t===1?"its":"their";return`The SARIF log has ${s}, so code scanning could close ${i} open alerts as fixed. Have your coding agent record its findings before you upload it.`}function Un(e){let n=[e.unresolvedChecks>0?`${l(e.unresolvedChecks,"check")} unresolved`:"",e.missingCheckIds.length>0?`${l(e.missingCheckIds.length,"check")} without results`:""].filter(Boolean);return[e.blocking.blockedChecks>0?us(e.blocking):"",e.failOnUnresolved&&n.length>0?`${n.join(" and ")} (--fail-on-unresolved).`:""].filter(Boolean).join(" ")}function fs(e){let n=e===1?"shows":"show";return`${l(e,"check")} ${n} both sources because the agent results are older than the deterministic results.`}function Mn({result:e,agentChecks:n}){let t=new Map(e.allChecks.map(r=>[r.id,r])),s=e.filter?new Set(e.filter.checkIds):null,i={ids:new Set,withoutResults:0,unresolved:0,deterministicResultOnly:0};for(let{id:r,precedence:o}of n){if(s&&!s.has(r))continue;let c=gs(t.get(r),o);c!==void 0&&(i[c]+=1,i.ids.add(r))}return{...i,total:i.ids.size}}function gs(e,n){if(e===void 0)return"withoutResults";let{deterministic:t,agent:s}=e.by_source;if(!(s!==null||t===null)){if(t.status==="unresolved")return"unresolved";if(t.status==="executed"&&n==="prefer-agent")return"deterministicResultOnly"}}function ms({withoutResults:e,unresolved:n,deterministicResultOnly:t,total:s}){let i=[e>0?`${e} without results`:void 0,n>0?`${n} unresolved`:void 0,t>0?`${t} where an agent result takes precedence over the deterministic one`:void 0].filter(o=>o!==void 0),r=i.map((o,c)=>c>0&&c===i.length-1?`and ${o}`:o).join(", ");return`${l(s,"check")} ${s===1?"needs":"need"} your coding agent: ${r}.`}function bs(e,n,t,s,i){return e.some(r=>r.severity==="high"&&v(r).length>0)?"error":i||n.withFindings>0||n.unresolved>0?"warning":!t||s>0?"info":"success"}function ys(e,n,t){if(!t)return"No app security check results to review.";if(n.withFindings===0)return`No ${n.suppressed>0?"active findings":"findings"} in ${l(e.length,"check")}.`;let s=n.unresolved>0?` ${l(n.unresolved,"check")} unresolved.`:"";return`${hn(n)}.${s}`}function vs(e){return{severity:de[e.severity],id:e.id,counts:ws(e)}}function ws(e){let n=v(e);return B.map(t=>[t,n.filter(s=>s.source===t).length]).filter(([,t])=>t>0).map(([t,s])=>`${s} ${t}`).join(", ")}function Ss(e,n,t){let s=e.filter(i=>X(i)&&n.has(i.id)).length;return[G(fn(t,s)),Wn(t)].filter(i=>i!=="")}function Wn(e){return G([e.suppressed>0?`${l(e.suppressed,"finding")} suppressed`:void 0,e.superseded>0?`${l(e.superseded,"finding")} superseded`:void 0])}function he(e){return Wn(Z([e]))}function G(e){return e.filter(n=>n!==void 0).join(" \xB7 ")}function ks(e){let n=e.coverage.files_skipped,{too_large:t,unreadable:s}=qe(n),i=[t>0?`${t} too large`:void 0,s>0?`${s} unreadable`:void 0].filter(d=>d!==void 0),r=n.length===0?"none skipped":`${n.length} skipped (${i.join(", ")})`,o=e.detection.languages.filter(d=>d.support==="unsupported"),c=o.length===0?"":` Unsupported ${o.length===1?"language":"languages"}: ${o.map(d=>`${d.name} (${l(d.files.length,"file")})`).join(", ")}.`;return`Deterministic coverage: ${l(e.coverage.files_scanned,"file")} scanned, ${r}.${c}`}function Fn(e){let n=[...e.include_dirs.map(t=>`--include-dir ${t}`),...e.excludes.map(t=>`--exclude ${t}`),...e.no_git_ignore?["--no-git-ignore"]:[]];return n.length===0?"none":n.join(" ")}function As({deterministic:e,agent:n}){return[...e?[`Scan directories: ${e.document.coverage.scan_directories.map(({directory:t})=>t).join(", ")}`,`Scan scope: ${Fn(e.document.coverage.scope)}`]:[],...n?[`Scope reported by the agent: ${Fn(n.document.scope)}`]:[]]}function $s(e,n,t){let s=Kt[e];return n?{name:s,updated:Bn(n.generated_at,t),engine:n.engine.version}:{name:s,updated:"not found"}}function Bn(e,n){let t=Date.parse(e);return Number.isNaN(t)?"unknown":Ee(new Date(t),n)}function _s(e,n,t,s,i,r){let o={command:N(r.scan)};if(!t)return[["Run",o,"or have your coding agent run it."]];let c=[];if(n.withFindings>0){let d=["Fix the issues, then run",o,"again."];e.sources.agent===null||s>0?c.push(d):c.push([...d,"To refresh agent findings, have your agent run the command and record its findings."])}return s>0?c.push(["Agent results are older than the deterministic results. Have your coding agent run",o,"and record its findings again to refresh them."]):i>0&&c.push([`To run ${l(i,"check")} with no agent result yet, have your coding agent follow`,{command:N(r.instructions)},{char:"."}]),c}function Is(e){let n=[];return e.filterLine&&n.push({body:{subdued:e.filterLine}}),e.checksWithFindings.length>0&&n.push({title:"Checks with findings",body:{tabularData:e.checksWithFindings.map(t=>[t.severity,t.id,t.counts]),firstColumnSubdued:!0}}),e.otherChecks.length>0&&n.push({title:"Other checks",body:e.otherChecks.join(`
14
+ `)}),e.agentResultsPending&&n.push({body:e.agentResultsPending}),e.staleAgentResults&&n.push({body:e.staleAgentResults}),e.coverage&&n.push({body:{subdued:e.coverage}}),e.scopeLines.length>0&&n.push({body:{subdued:e.scopeLines.join(`
15
+ `)}}),e.scopeNote&&n.push({body:e.scopeNote}),n.push({title:`Results files in ${e.resultsFiles.directory}`,body:{tabularData:[["",{subdued:"Updated"},{subdued:"Engine"}],...e.resultsFiles.rows.map(Rs)]}}),e.resultsDigest&&n.push({body:{subdued:`Results digest: ${e.resultsDigest} (pass it to --results-digest with --suppress)`}}),e.blocking===void 0?e.nextSteps.length>0&&n.push({title:"Next steps",body:{list:{items:e.nextSteps}}}):n.push({title:"Blocking",body:e.blocking}),{type:e.type,options:{headline:e.headline,customSections:n}}}function Rs(e){return e.engine===void 0?[e.name,{subdued:e.updated}]:[e.name,e.updated,e.engine]}function Cs(e){let n=e.sources.deterministic!==null||e.sources.agent!==null;return e.failOnUnresolved&&n?e.missingCheckIds:[]}function Es(e){return{type:"warning",options:{headline:`${l(e.length,"check")} without results.`,body:"Neither results file has these checks.",customSections:[{body:{list:{items:e}}}]}}}function Ts(e,n,t){return{type:"warning",options:{headline:`${l(e.length,"check")} unresolved.`,customSections:e.flatMap(s=>[{title:`${s.id} \xB7 ${s.title}`,body:{tabularData:Gn(s,{withDispositions:!0}),firstColumnSubdued:!0}},...n?s.findings.map(i=>H(i,t(i),n,`${s.id} \xB7 `)):[]])}}}function Fs(e,n,t,s){let i=e.filter(X),r=i.filter(u=>n.has(u.id)).length,o=i.length-r,c=e.length-i.length;return{type:"info",options:{headline:[o>0?`${l(o,"check")} passed.`:void 0,r>0?`${l(r,"check")} with no deterministic findings.`:void 0,c>0?`${l(c,"check")} not applicable.`:void 0].filter(u=>u!==void 0).join(" "),customSections:[{body:{tabularData:e.map(u=>xs(u,n))}},...t?e.flatMap(u=>u.findings.map(f=>H(f,s(f),t,`${u.id} \xB7 `))):[]]}}}function xs(e,n){let t=he(e);return[e.id,G([Ns(e,n),t===""?void 0:t,x(e)?Nn:void 0])]}function Ns(e,n){return e.status!=="executed"?En[e.status]:n.has(e.id)?Yt:En.executed}function Ds(e,n,t,s){let i=he(e),r=n?e.findings:v(e);return{type:e.severity==="high"?"error":"warning",options:{headline:`${de[e.severity]} \xB7 ${e.id} \xB7 ${e.title}`,...i===""?{}:{body:{subdued:i}},...e.docs_url?{link:{label:`${e.id} on shopify.dev`,url:e.docs_url}}:{},customSections:[...js(e,t),...r.map(o=>H(o,s(o),n))]}}}function js(e,n){if(x(e))return[{body:{tabularData:B.flatMap(o=>{let c=e.by_source[o];return c?[[o,Hn(c),Bn(c.generated_at,n)]]:[]}),firstColumnSubdued:!0}},{body:{subdued:zt}}];let{deterministic:t,agent:s}=e.by_source;return t!==null&&s!==null&&t.status!==s.status?[{body:{tabularData:Gn(e,{withDispositions:!1}),firstColumnSubdued:!0}}]:[]}function Gn(e,n){let t=x(e),s=B.flatMap(r=>{let o=e.by_source[r];if(!o)return[];let c=t&&r==="agent"?Nn:void 0;return[[r,G([Hn(o),c])]]}),i=n.withDispositions?he(e):"";return i===""?s:[...s,["findings",i]]}function Hn(e){let n=qt[e.status];return e.reason?`${n} \u2014 ${e.reason.message}`:n}function H(e,n,t,s=""){let i=e.disposition==="active"?"":` (${e.disposition})`,r=[e.message];if(e.snippet&&r.push({subdued:`
16
+ Code: ${e.snippet}`}),e.source==="deterministic"){e.fix&&r.push({subdued:`
17
+ Fix: ${e.fix.description}`});let o=e.fix?.guide;o&&r.push({subdued:`
18
+ Guide: ${o}`})}else e.confidence&&r.push({subdued:`
19
+ Confidence: ${e.confidence}`}),e.reasoning&&r.push({subdued:`
20
+ Reasoning: ${t?e.reasoning:Ps(e.reasoning)}`});return t&&(r.push(...e.evidence.map(o=>({subdued:`
21
+ Evidence: ${xn(o.location)}${o.quote?` \u2014 ${o.quote}`:""}`}))),e.disposition==="suppressed"&&e.suppressed_by&&r.push({subdued:`
22
+ Suppressed: ${e.suppressed_by.reason}`})),{title:`${s}#${n} \xB7 ${e.source} \xB7 ${xn(e.location)}${i}`,body:r}}function Ps(e){let n=e.split(`
23
+ `);return n.length<=Tn?e:`${n.slice(0,Tn).join(`
24
+ `)}\u2026`}function xn(e){return e.line===void 0?e.file:`${e.file}:${e.line}`}function Ls(){return Le()&&Oe()}var Os={canPrompt:Ls,selectAction:e=>J(e),selectKind:e=>J(e),enterReason:e=>Pe(e),confirmCompanions:e=>je(e)};function Kn(e=Os){if(!e.canPrompt()){let n=new R("The interactive review needs an interactive terminal.","Run it in a terminal, outside CI and without --no-input. To suppress a finding from a script or an agent, pass its number to --suppress with --kind and --reason.");throw n.code="interactive-review-unavailable",n}return async n=>{$(Bs(n));let t=await Yn(n,e,{findings:n.findings,label:"Active"},{saved:[],declinedCompanions:[],ending:"finished",resultsDigest:n.result.resultsDigest});if(t.ending!=="finished")return t;let s=Us(n.supersededFindings,t);return s.length===0?t:($(Gs(s)),Yn(n,e,{findings:s,label:"Superseded"},t))}}function Us(e,n){let t=new Set([...n.saved.map(({findingNumber:s})=>s),...n.declinedCompanions.flatMap(({companionNumbers:s})=>s)]);return e.filter(({number:s})=>!t.has(s))}var L={saved:[],declinedCompanionNumbers:[],resultsChanged:!1};async function Yn(e,n,t,s){let i={saved:[...s.saved],declinedCompanions:[...s.declinedCompanions],ending:"finished",resultsDigest:s.resultsDigest};for(let[r,o]of t.findings.entries()){let c=`${t.label} finding ${r+1} of ${t.findings.length}`,d=e.reattachments.get(o.number);$(Pn(o,c,d));let u=await n.selectAction(Hs(o,d));if(u==="quit")return fe(i,"quit");if(u==="continue")continue;let f=await Ms(e,n,o,u,d);if(i.saved.push(...f.saved),f.declinedCompanionNumbers.length>0&&i.declinedCompanions.push({findingNumber:o.number,companionNumbers:f.declinedCompanionNumbers}),f.resultsChanged)return fe(i,"results-changed")}return fe(i,"finished")}function fe(e,n){let t=new Set(e.saved.map(({findingNumber:i})=>i)),s=e.declinedCompanions.flatMap(({findingNumber:i,companionNumbers:r})=>{let o=r.filter(c=>!t.has(c));return o.length===0?[]:[{findingNumber:i,companionNumbers:o}]});return{...e,declinedCompanions:s,ending:n}}async function Ms(e,n,t,s,i){if(s==="suppress")return Ws(e,n,t);if(s==="reattach"&&i){let r=await e.reattach(t.number);return Vn(e,n,t,r,{kind:i.entry.kind,reason:i.entry.reason})}return L}async function Ws(e,n,t){let s=await n.selectKind(Ys(t)),i=await n.enterReason(qs(t)),r={kind:s,reason:i},o=await e.suppress({findingNumber:t.number,decision:r,includeSuperseded:!1});return Vn(e,n,t,o,r)}async function Vn(e,n,t,s,i){if(s.status==="refused")return qn(s.refusal);let{saved:r,companionNumbers:o}=s.savedSuppressions;if($(pe(r)),o.length===0)return{...L,saved:r};if(!await n.confirmCompanions(Ks(t,o)))return{...L,saved:r,declinedCompanionNumbers:o};let d=await e.suppress({findingNumber:t.number,decision:i,includeSuperseded:!0});return d.status==="refused"?{...qn(d.refusal),saved:r}:($(pe(d.savedSuppressions.saved)),{...L,saved:[...r,...d.savedSuppressions.saved]})}function qn(e){let n=e.code==="results-digest-mismatch";return $({type:n?"error":"warning",options:{headline:e.message,body:n?"The review stops here, and the suppressions you saved before are kept. Run the review again to see the current findings.":e.tryMessage}}),{...L,resultsChanged:n}}function Bs({findings:e,reattachments:n}){if(e.length===0)return{type:"info",options:{headline:"No active findings to review."}};let t=n.size===0?"":` When a stale entry of ${m} likely names a finding because its code was edited, you can also choose Re-attach: the entry gets the finding's code, and keeps its kind and reason.`;return{type:"info",options:{headline:`Reviewing ${l(e.length,"active finding")}, most severe first.`,body:`For each finding, choose Suppress to save an entry for it to ${m} at once, Continue to leave it active, or Quit to stop.${t} The suppressions you save apply to all app configurations and are kept when you quit.`}}}function Gs(e){let n=e.length===1,t=n?"it":"them";return{type:"info",options:{headline:`Reviewing ${l(e.length,"superseded finding")} that check --blocking still counts.`,body:`An agent result supersedes ${n?"this deterministic finding":"these deterministic findings"}, so the review doesn't count ${t}. But check --blocking, which reads no agent results, still counts ${t}, so a CI gate that runs it can fail. Choose Suppress, Continue or Quit for each finding, as before.`}}}function Hs({number:e},n){let t=n?[{label:`Re-attach suppressions[${n.entryIndex}]`,value:"reattach",key:"r"}]:[];return{message:`What do you want to do with finding #${e}?`,choices:[...t,{label:"Suppress",value:"suppress",key:"s"},{label:"Continue",value:"continue",key:"c"},{label:"Quit",value:"quit",key:"q"}],defaultValue:"continue"}}function Ys({number:e}){return{message:`Is finding #${e} a false positive or an accepted risk?`,choices:[{label:"False positive: the finding is wrong",value:"false-positive"},{label:"Accepted risk: the finding is real, and you accept the risk",value:"accepted-risk"}]}}function qs({number:e}){return{message:`Why should finding #${e} be suppressed?`,validate:n=>{let t=an(n);return t===void 0?void 0:`The reason ${t}.`}}}function Ks({check:e,finding:n},t){let s=t.length===1?"it":"them";return{message:`${t.length===1?`Finding #${t[0]} is a superseded deterministic finding`:`Findings ${C(t.map(r=>`#${r}`))} are superseded deterministic findings`} of ${e.id} in ${n.location.file}, and check --blocking, which reads no agent results, still counts ${s}. Suppress ${s} too, with the same kind and reason?`,confirmationMessage:`Yes, suppress ${s} too`,cancellationMessage:"No",defaultValue:!1}}b();b();var me=()=>F.describe(`${F.description}`),tt=()=>a.enum(["executed","not-applicable","unresolved"]),zn=()=>a.enum(["union","prefer-agent"]),be=a.object({filePath:k().describe("The absolute path of the file."),line:a.number().int().positive().nullable().describe("The one-based line, or null for the whole file."),column:a.number().int().positive().nullable().describe("The one-based column, or null when none is recorded.")}).strict().describe("A place in a file."),st=a.object({location:be,quote:a.string().min(1).nullable().describe("The quoted source, redacted, or null when none is recorded.")}).strict().describe("Source that supports a finding."),ye=a.discriminatedUnion("origin",[a.object({justification:a.string().describe("The entry's reason."),origin:a.literal("file").describe("An entry of shopify.app-security.json suppresses the finding."),entryIndex:a.number().int().nonnegative().describe("The entry's index in the file, from 0, as in suppressions.entries."),kind:un()}).strict(),a.object({justification:a.string().describe("The agent's justification."),origin:a.literal("agent").describe("The agent suppressed the finding when it recorded it.")}).strict()]).describe("What suppresses a finding, and why."),it=()=>({number:a.number().int().positive().describe("The finding's number, from 1, which --suppress takes. Every finding of every check has one, whatever --check-id and --verbose, in the order of checks then findings. It names the same finding for the same results files, which resultsDigest identifies."),disposition:a.enum(["active","suppressed","superseded"]).describe("Whether the finding counts: active; suppressed, by an entry of shopify.app-security.json or by the agent, so it doesn't count for valid or blocking; or superseded, a deterministic finding that a check's prefer-agent agent result replaces."),location:be,message:a.string().describe("What the finding is, redacted."),snippet:a.string().min(1).nullable().describe("The flagged code, redacted, or null when none is recorded."),evidence:a.array(st)}),rt=a.object({source:a.literal("deterministic"),...it(),fix:a.object({description:a.string(),guide:a.string().min(1).nullable().describe("A guide to the fix, or null when none is recorded."),automated:a.boolean().describe("Whether the fix can be applied automatically.")}).strict().nullable().describe("How to fix the finding, or null when none is recorded."),suppression:ye.nullable().describe("The entry of shopify.app-security.json that suppresses the finding. Also set on a superseded finding that an entry matched. Null otherwise.")}).strict().describe("A finding from deterministic-findings.json."),ot=a.object({source:a.literal("agent"),...it(),confidence:a.enum(["high","medium","low"]).nullable().describe("The agent's confidence, or null when it didn't report one."),reasoning:a.string().min(1).nullable().describe("The agent's reasoning, redacted, or null when none is recorded."),suppression:ye.nullable().describe("What suppresses the finding: an entry of shopify.app-security.json, which comes first, or the agent's own suppression. Null when the finding is not suppressed.")}).strict().describe("A finding from agent-findings.json."),at=a.discriminatedUnion("source",[rt,ot]),ge=a.object({version:a.number().int().positive().describe("The check version: the catalog version for deterministic results, the one the agent claimed for agent results."),status:tt().describe("The source's own status for the check."),reason:a.object({code:a.string().describe("A short code. Agent codes are free-form. Deterministic codes: capability_absent, no_relevant_files, unsupported_framework, unsupported_language, parser_unavailable, agent_investigation_required, input_rejected."),message:a.string()}).strict().nullable().describe("Why the check is unresolved or not applicable, or null when none is recorded."),analysisMode:a.enum(["regex","structured-config","ast"]).nullable().describe("How the deterministic check analyzed the files. Null for agent results."),generatedAt:me().nullable().describe("When the source recorded the check, or null when the recorded time is not a valid instant.")}).strict().describe("One source's own result for a check."),Jn=a.object({id:a.string().describe("The check ID, such as CREDENTIAL_LOG_LEAKAGE."),title:a.string(),severity:a.enum(["high","medium","low"]),description:a.string(),guide:a.string().min(1).nullable().describe("A guide to the check, or null when none is recorded."),docsUrl:a.string().url().nullable().describe("The check's page on shopify.dev, or null when the results files predate it."),precedence:zn().describe("How the sources combine: union keeps both sources' findings; prefer-agent lets the agent result replace the deterministic one."),appliedPrecedence:zn().describe("The precedence that applied: union when a prefer-agent agent result is older than the deterministic one."),status:tt().describe("The combined status. Under union, executed when either source executed the check."),bySource:a.object({deterministic:ge.nullable(),agent:ge.nullable()}).strict().describe("Each source's own result, or null when that source didn't record the check."),findings:a.array(at).describe("Every finding of both sources, including suppressed and superseded ones, whatever --verbose. Sorted by file, line, then source.")}).strict().describe("One check, combined from both results files."),Qn=a.object({framework:a.enum(["react-router","none","unknown","mixed"]),surface:a.enum(["react-router","theme-app-extension","config-only","unknown","mixed"]),languages:a.array(a.object({name:a.string().describe("The language, such as typescript."),support:a.enum(["supported","unsupported"]).describe("Whether the deterministic checks analyze it."),files:a.array(a.object({path:k()}).strict())}).strict())}).strict().describe("What the latest check detected in the app."),Xn=a.object({filesScanned:a.number().int().nonnegative().describe("The number of files scanned."),filesSkipped:a.array(a.object({path:k(),reason:a.enum(["too-large","unreadable"]),sizeBytes:a.number().int().nonnegative().nullable().describe("The file size, or null when unknown."),detail:a.string().min(1).nullable().describe("Why the file was unreadable, or null when none is recorded.")}).strict()),gaps:a.array(a.object({code:a.enum(["skipped-file","unsupported-framework","unsupported-language","unresolved-check"]),message:a.string(),checkId:a.string().nullable().describe("The check that the gap concerns, or null."),filePath:k().nullable().describe("The file that the gap concerns, or null.")}).strict()),scanDirectories:a.array(se)}).strict().describe("What the latest check covered."),ct=pn.extend({findingNumber:a.number().int().positive().describe("The number of the finding that the entry was saved for.")}).describe("An entry of shopify.app-security.json that --suppress saved, as the file now holds it."),Zn=a.object({filePath:k().describe("The absolute path of shopify.app-security.json."),entries:a.array(ct).describe("The entries that were added or extended: the one for the --suppress finding, then one for each companion with --include-superseded."),companionFindingNumbers:a.array(a.number().int().positive()).describe("The numbers of the finding's companions that weren't suppressed because --include-superseded wasn't passed: superseded deterministic findings of the same check in the same file, which check --blocking still counts because it reads no agent results.")}).strict().describe("What --suppress saved to shopify.app-security.json."),et=a.object({path:k().describe("The absolute path of deterministic-findings.json."),generatedAt:me().nullable().describe("When check wrote the file, or null when the recorded time is not a valid instant."),engine:a.object({name:a.string(),version:a.string(),ruleset:a.string()}).strict(),scope:M}).strict().describe("deterministic-findings.json, which check writes, with the scope of the scan."),nt=a.object({path:k().describe("The absolute path of agent-findings.json."),generatedAt:me().nullable().describe("When record wrote the file, or null when the recorded time is not a valid instant."),engine:a.object({name:a.string(),version:a.string()}).strict(),scope:M}).strict().describe("agent-findings.json, which record writes, with the scope that the agent reported."),Y=Re({name:"AppSecurityReviewResult",schema:a.object({status:a.literal("success"),valid:a.boolean().describe("Whether the review passed: no check in checks has an active finding at or above the blocking level and, with failOnUnresolved, no check is unresolved and missingCheckIds is empty. Suppressed and superseded findings don't count."),app:te,resultsDirectory:k().describe("The absolute path of the results directory."),resultsFiles:a.object({deterministic:et.nullable(),agent:nt.nullable()}).strict().describe("The results files that the review combines. Null when a file does not exist."),detection:Qn.nullable().describe("What the latest check detected in the app, or null without deterministic-findings.json."),coverage:Xn.nullable().describe("What the latest check covered, or null without deterministic-findings.json."),scopeDiffers:a.boolean().describe("Whether the agent reported another scope than the latest scan used. False unless both results files exist."),checks:a.array(Jn).describe("The checks after --check-id, most severe first, then by ID. Empty when no results file exists."),resultsDigest:a.string().min(1).nullable().describe("A digest of the findings that the numbers name. Pass it to --results-digest with --suppress, so the suppression is refused if the results changed. Null when no results file exists."),blocking:ie,failOnUnresolved:a.boolean().describe("Whether --fail-on-unresolved was passed."),missingCheckIds:a.array(a.string()).describe("The IDs of the checks after --check-id that have no result in either results file, sorted."),suppressions:re,savedSuppressions:Zn.nullable().describe("What --suppress saved to shopify.app-security.json, or null without --suppress. With --suppress, the rest of the result is the review after the save.")}).strict().describe("The combined results of the app security check."),definitions:{AppSecurityApp:te,AppSecurityScope:M,AppSecurityScanDirectory:se,AppSecurityBlocking:ie,AppSecuritySuppressions:re,AppSecuritySuppressionEntry:ln,AppSecurityDeterministicResultsFile:et,AppSecurityAgentResultsFile:nt,AppSecurityDetection:Qn,AppSecurityCoverage:Xn,AppSecurityCheck:Jn,AppSecuritySourceResult:ge,AppSecurityFinding:at,AppSecurityDeterministicFinding:rt,AppSecurityAgentFinding:ot,AppSecurityLocation:be,AppSecurityEvidence:st,AppSecurityFindingSuppression:ye,AppSecuritySavedSuppressions:Zn,AppSecuritySavedSuppression:ct}});b();var Vs="https://json.schemastore.org/sarif-2.1.0.json",ut={high:"error",medium:"warning",low:"note"},zs={high:"8.0",medium:"5.0",low:"2.0"};function Js(e,n){let t=n===null?"":`client-id/${n}/`;return`shopify-app-security/check-id/${[...new Set(e)].sort().join(",")}/${t}`}function lt(e,{checkIds:n}){let t=e.resultsFiles.deterministic===null&&e.resultsFiles.agent===null,s=e.checks.some(r=>r.status==="unresolved"),i=t?[]:e.missingCheckIds;return{$schema:Vs,version:"2.1.0",runs:[{tool:{driver:{name:"Shopify app security check",semanticVersion:_e,informationUri:"https://shopify.dev/docs/api/shopify-cli",rules:e.checks.map(ti)}},invocations:[{executionSuccessful:!t&&!s&&i.length===0,toolExecutionNotifications:[...t?[Qs]:[],...e.checks.flatMap((r,o)=>Zs(r,o)),...i.map(ei),...(e.coverage?.gaps??[]).flatMap(r=>ni(r,e.checks))]}],...n.length>0?{automationDetails:{id:Js(n,e.app.clientId)}}:{},columnKind:"utf16CodeUnits",results:e.checks.flatMap((r,o)=>r.findings.filter(c=>c.disposition==="active").map(c=>si(r,o,c,e.app.directory)))}]}}function O(e){return{text:ve(e)}}function ve(e){return e.replace(/[\\[\]]/g,"\\$&")}var Qs={level:"error",message:O("No results file to review: run shopify app security check first."),descriptor:{id:"no-results-file"}},Xs={unresolved:"is unresolved","not-applicable":"is not applicable"};function Zs(e,n){if(e.status==="executed")return[];let t=[e.bySource.deterministic,e.bySource.agent].find(i=>i?.status===e.status&&i.reason!==null)?.reason,s=t?`: ${t.message} (${t.code})`:".";return[{level:e.status==="unresolved"?"warning":"note",message:O(`${e.id} ${Xs[e.status]}${s}`),descriptor:{id:e.status},associatedRule:{id:e.id,index:n}}]}function ei(e){return{level:"warning",message:O(`${e} has no result: neither results file has this check.`),descriptor:{id:"no-result"}}}function ni(e,n){if(e.code==="unresolved-check")return[];let t=e.checkId===null?-1:n.findIndex(s=>s.id===e.checkId);return e.checkId!==null&&n[t]?.status!=="executed"?[]:[{level:"warning",message:O(e.message),descriptor:{id:e.code},...e.checkId===null?{}:{associatedRule:{id:e.checkId,index:t}},...e.filePath===null?{}:{locations:[{physicalLocation:{artifactLocation:pt(e.filePath)}}]}}]}function ti(e){return{id:e.id,shortDescription:{text:e.title},fullDescription:{text:e.description},help:{text:e.guide===null?e.description:`${e.description}
25
+
26
+ Guide: ${e.guide}`},...e.docsUrl===null?{}:{helpUri:e.docsUrl},defaultConfiguration:{level:ut[e.severity]},properties:{tags:["security"],"security-severity":zs[e.severity]}}}function si(e,n,t,s){let i=t.evidence.map((c,d)=>({id:d,physicalLocation:dt(c.location),...c.quote===null?{}:{message:O(c.quote)}})),r=ve(t.message===""?e.title:t.message),o=t.evidence.map((c,d)=>`[${ve(ii(c.location,s))}](${d})`);return{ruleId:e.id,ruleIndex:n,level:ut[e.severity],message:{text:o.length===0?r:`${r} Evidence: ${o.join(", ")}.`},locations:[{physicalLocation:dt(t.location,t.snippet)}],...i.length>0?{relatedLocations:i}:{},properties:{source:t.source,...t.source==="agent"&&t.confidence!==null?{confidence:t.confidence}:{}}}}function ii(e,n){let t=Ce(n,e.filePath);return e.line===null?t:`${t}:${e.line}`}function dt(e,n=null){let t=pt(e.filePath);return e.line===null?{artifactLocation:t}:{artifactLocation:t,region:{startLine:e.line,...e.column===null?{}:{startColumn:e.column},...n===null?{}:{snippet:{text:n}}}}}function pt(e){return{uri:Te(e).href}}var mt={executed:"executed",not_applicable:"not-applicable",unresolved:"unresolved"},ri={regex:"regex",structured_config:"structured-config",ast:"ast"},oi={react_router:"react-router",none:"none",unknown:"unknown",mixed:"mixed"},ai={react_router:"react-router",theme_app_extension:"theme-app-extension",config_only:"config-only",unknown:"unknown",mixed:"mixed"},ci={too_large:"too-large",unreadable:"unreadable"},di={skipped_file:"skipped-file",unsupported_framework:"unsupported-framework",unsupported_language:"unsupported-language",unresolved_check:"unresolved-check"};function bt(e,n,t){if(t==="json")Q(Y.encode(ht(e)));else if(t==="sarif"){let s=lt(ht(e),{checkIds:e.result.filter?.checkIds??[]});Q(JSON.stringify(s,null,2)),On(e.result)}else Dn({result:e.result,verbose:n.verbose,now:new Date,commands:e.commands,agentChecks:He(),...e.savedSuppressions?{savedSuppressions:e.savedSuppressions}:{},...e.interactiveReview?{interactiveReview:e.interactiveReview}:{}});E(e.result)&&(process.exitCode=1)}function ht({selection:e,result:n,savedSuppressions:t}){let{appDirectory:s}=e,i=n.sources.deterministic?.document;return{status:"success",valid:!E(n),app:Ze(e),resultsDirectory:D(n.resultsDirectory),resultsFiles:li(n.sources),detection:i?pi(i.detection,s):null,coverage:i?hi(i.coverage,s):null,scopeDiffers:n.scopeDiffers,checks:n.checks.map(r=>fi(r,s,n.findingNumbers)),resultsDigest:n.resultsDigest,blocking:nn(n.blocking),failOnUnresolved:n.failOnUnresolved,missingCheckIds:n.missingCheckIds,suppressions:tn(s,n.suppressions,n.allChecks,n.likelyFindingNumbers),savedSuppressions:t?ui(t,s):null}}function ui({path:e,saved:n,companionNumbers:t},s){return{filePath:D(e),entries:n.map(i=>({...sn(s,i),findingNumber:i.findingNumber})),companionFindingNumbers:t}}function li({deterministic:e,agent:n}){return{deterministic:e?{path:D(e.path),generatedAt:we(e.document.generated_at),engine:{name:e.document.engine.name,version:e.document.engine.version,ruleset:e.document.engine.ruleset},scope:ee(e.document.coverage.scope)}:null,agent:n?{path:D(n.path),generatedAt:we(n.document.generated_at),engine:{name:n.document.engine.name,version:n.document.engine.version},scope:ee(n.document.scope)}:null}}function we(e){let n=Date.parse(e);if(Number.isNaN(n))return null;let t=Ie(new Date(n));return F.safeParse(t).success?t:null}function T(e){return e===void 0||e===""?null:e}function ft(e){return e??null}function yt(e,n){return{filePath:j(n,e.file),line:ft(e.line),column:ft(e.column)}}function pi(e,n){return{framework:oi[e.framework],surface:ai[e.surface],languages:e.languages.map(t=>({name:t.name,support:t.support,files:t.files.map(s=>({path:j(n,s)}))}))}}function hi(e,n){return{filesScanned:e.files_scanned,filesSkipped:e.files_skipped.map(t=>({path:j(n,t.path),reason:ci[t.reason],sizeBytes:t.size_bytes??null,detail:T(t.detail)})),gaps:e.gaps.map(t=>({code:di[t.code],message:t.message,checkId:t.check_id??null,filePath:t.file===void 0?null:j(n,t.file)})),scanDirectories:e.scan_directories.map(t=>en(n,t))}}function fi(e,n,t){return{id:e.id,title:e.title,severity:e.severity,description:e.description,guide:T(e.guide),docsUrl:e.docs_url??null,precedence:e.precedence,appliedPrecedence:e.applied_precedence,status:mt[e.status],bySource:{deterministic:e.by_source.deterministic?gt(e.by_source.deterministic):null,agent:e.by_source.agent?gt(e.by_source.agent):null},findings:e.findings.map(s=>gi(s,t.get(s),n))}}function gt(e){return{version:e.version,status:mt[e.status],reason:e.reason?{code:e.reason.code,message:e.reason.message}:null,analysisMode:e.analysis_mode?ri[e.analysis_mode]:null,generatedAt:we(e.generated_at)}}function gi(e,n,t){let s={number:n,disposition:e.disposition,location:yt(e.location,t),message:e.message,snippet:T(e.snippet),evidence:e.evidence.map(i=>bi(i,t)),suppression:mi(e.suppressed_by)};return e.source==="deterministic"?{source:"deterministic",...s,fix:e.fix?{description:e.fix.description,guide:T(e.fix.guide),automated:e.fix.automated}:null}:{source:"agent",...s,confidence:e.confidence??null,reasoning:T(e.reasoning)}}function mi(e){return e===void 0?null:e.origin==="agent"?{justification:e.reason,origin:"agent"}:{justification:e.reason,origin:"file",entryIndex:e.entry_index,kind:e.kind}}function bi(e,n){return{location:yt(e.location,n),quote:T(e.quote)}}var w=St(kt(),1);var Se=class e extends Ue{static summary="Show the combined app security check results.";static descriptionWithMarkdown="Combines the deterministic results (`deterministic-findings.json`, written by `shopify app security check`) with the recorded agent results (`agent-findings.json`, written by `shopify app security record`) and shows one view of every check: its findings, status and source. Both files are in the results directory, `.shopify/app-security/<results key>/`. `--client-id` is checked against your Shopify account before any results are read, so it needs you to be logged in.\n\nThe summary shows the scan directories and the scope of the latest scan, and the scope the agent reported. It notes when the agent findings were recorded for a different scope than the latest scan; that doesn't change the exit code.\n\nThe agent results are optional. Use `--check-id` to narrow the review to specific checks, `--verbose` for full reasoning and evidence, and for suppressed and superseded findings in full, and `--blocking` to exit with code 1 when a check with active findings is at or above a severity. Add `--fail-on-unresolved` to also exit with code 1 when a check is unresolved or has no result. With `--json`, the result always includes every finding in full, and how the entries of `shopify.app-security.json` applied.\n\n`shopify.app-security.json`, in the app directory, holds the findings that your team decided not to fix. Commit it, so that your team and CI use the same decisions. Each entry names a finding's source, check ID and file, and can name a `code` text of the finding. It has a kind, `false-positive` or `accepted-risk`, a reason, which is required. Suppressions apply to all app configurations and client-ID runs. A finding that an entry matches is suppressed: it doesn't count for `--blocking`, and it's always listed with its kind and reason. Findings that the agent suppressed, and superseded deterministic findings, which a check's prefer-agent agent result replaces, don't count either. An entry's `code` matches the code excerpt that the results file saved with the finding. A results file that would be larger than 5 MB with excerpts is saved without them, and results written before excerpts existed have none; then an entry with `code` matches only the finding's message. An entry that matches no finding is stale, and an entry whose code matches more than one finding is ambiguous. Neither suppresses anything, and the review lists both, so you can remove or update them. When an edit to the flagged code, such as a rename, makes an entry stale, the review names the entry's likely finding: the one finding of its source and check in its file that nothing suppresses and whose flagged line holds at least two thirds of the words of the entry's code. It names none when the entry's code or that line holds a redacted secret, such as `shpa[REDACTED:38:a5e9444f]`: redaction hides the only text that tells two credentials apart, so suppress that finding again with `--kind` and `--reason`. It names none either when the entry's code holds a secret that the CLI would redact, because the output of a re-attach shows the old code. Entries for checks without an executed result aren't evaluated. An invalid file makes the command fail with every problem.\n\nEvery finding has a number, shown before its source, and the summary shows a digest of the results. The numbers count every finding of every check, so `--check-id` and `--verbose` change which findings are shown, never their numbers, and a number names the same finding until the results files change. To suppress a finding, pass its number to `--suppress` with `--kind` and `--reason`, and the digest to `--results-digest` to refuse the suppression if the results changed since you read the number. The command saves an entry to `shopify.app-security.json` that matches only that finding, then shows the review with the finding suppressed. Review and commit the file. When the finding is the likely finding of a stale entry, `--suppress` re-attaches that entry instead of adding one: the entry gets the code that names the finding alone, and keeps its kind and reason, so `--kind` and `--reason` are optional, and replace the entry's kind and reason when you pass them. The output shows the old and the new code. Nothing re-attaches an entry on its own: only `--suppress` and the Re-attach choice of `--interactive` change the file. When the finding is an agent finding that supersedes a deterministic finding of the same check in the same file, `check --blocking` still counts the deterministic finding, because it reads no agent results: the output names it, and `--include-superseded` suppresses it too, with the same kind and reason. Once an entry suppresses the agent finding, `--suppress` with `--include-superseded` saves only the deterministic finding, with the kind and reason of that entry unless you pass `--kind` and `--reason`. A superseded deterministic finding can also be suppressed by its own number, for example when the agent result has no finding in its file: the review doesn't count it, but `check --blocking` does, and the output says so.\n\nUse `--interactive` in a terminal to go through the active findings one at a time, most severe first, each shown in full with its number. For each finding, choose Suppress, Continue or Quit, or Re-attach when the finding is the likely finding of a stale entry: it shows the entry's old code and the new one, and re-attaches the entry with its kind and reason. Suppress asks whether the finding is a false positive or an accepted risk, and for a reason, which is required. Then it saves the entry at once, as `--suppress` does. When the finding has superseded deterministic findings that `check --blocking` still counts, it asks separately whether to suppress them too. Continue leaves the finding active. Quit stops the review and keeps what you saved. After the active findings, the review offers in the same way each superseded deterministic finding that `check --blocking` still counts, when there are any, apart from the ones it already asked about. At the end, the command shows the review with the findings you suppressed, and lists the entries it saved. `--interactive` never prompts in CI, without a terminal, or with `--no-input`: it fails before it reads anything. It can't be combined with `--json`, `--sarif` or `--suppress`.\n\nUse `--sarif` to print the reviewed checks as a [SARIF 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/sarif-v2.1.0.html) log instead of the review, for GitHub code scanning and other tools that read SARIF. Only the log goes to stdout, so redirect it to save it to a file: `shopify app security review --sarif > app-security.sarif`. Warnings go to stderr. Each check is a rule and each active finding a result, with an error, warning, or note level for a high, medium, or low severity. Suppressed and superseded findings are left out: GitHub code scanning ignores SARIF suppressions and would open alerts for them, so instead an open alert closes as fixed once its finding is suppressed. Unresolved and not applicable checks, checks with no result in either results file, and coverage gaps are listed as tool execution notifications, and the execution is marked unsuccessful when a check is unresolved or has no result, or there's no results file. A check with no result has no rule. File locations are absolute `file:` URIs, which GitHub's `upload-sarif` action makes relative to the repository.\n\nCode scanning replaces the previous analysis of the same category on each upload, and closes the alerts that are missing from it as fixed. A check without results reads as passing, so an upload with unresolved checks, checks with no result, or no results file closes alerts that may still be open; a warning says when that's the case. Have your coding agent record its findings before you upload the log. With `--fail-on-unresolved`, the review exits with code 1 when a check is unresolved or has no result, so the pipeline can stop before the upload. The log holds the same checks as the review, so `--check-id` narrows it too, and gives it a category of its own: `automationDetails.id` is `shopify-app-security/check-id/<IDs>/client-id/<client ID>/`, with the sorted check IDs separated by commas, and without the client ID part when the app has none, so a narrowed upload leaves the alerts of a full one, and of other apps, open. That ID takes precedence over the `category` input of `upload-sarif`. A full run has no `automationDetails`, so `category` sets it.\n\nReports the number of findings to Shopify as usage telemetry, but not finding details. See [usage reporting](https://shopify.dev/docs/api/shopify-cli#usage-reporting) for details.";static jsonOutputSchema=Y;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --interactive","<%= config.bin %> <%= command.id %> --check-id COMMITTED_SECRET --verbose",'<%= config.bin %> <%= command.id %> --suppress 3 --kind false-positive --reason="A fake token in a test fixture." --results-digest 1a2b3c4d5e6f','<%= config.bin %> <%= command.id %> --suppress 2 --kind accepted-risk --reason="Kept until the migration ships." --include-superseded',"<%= config.bin %> <%= command.id %> --blocking high"];static flags={...Me,...Ge,"check-id":w.Flags.string({description:"Show only this check. Repeat the flag to show several checks.",env:"SHOPIFY_FLAG_CHECK_ID",multiple:!0}),...Be,"fail-on-unresolved":w.Flags.boolean({description:"Exit with code 1 when a reviewed check is unresolved or has no result, whatever --blocking is.",env:"SHOPIFY_FLAG_APP_SECURITY_FAIL_ON_UNRESOLVED",default:!1}),sarif:w.Flags.boolean({description:"Print the reviewed checks as SARIF 2.1.0 instead of the review, for code scanning tools. Redirect the output to save it to a file.",default:!1,exclusive:["json"],env:"SHOPIFY_FLAG_APP_SECURITY_SARIF"}),suppress:w.Flags.integer({description:"Suppress the finding with this number: save an entry for it to shopify.app-security.json. Requires --kind and --reason, unless the finding is the likely finding of a stale entry: then the command re-attaches that entry to it. They are optional too with --include-superseded on a finding that an entry already suppresses: its superseded findings get the kind and reason of that entry.",env:"SHOPIFY_FLAG_APP_SECURITY_SUPPRESS",min:1,exclusive:["sarif"]}),kind:w.Flags.string({description:`Why the finding is suppressed, with --suppress: ${rn.join(" or ")}. Optional when --suppress re-attaches a stale entry, or saves only the superseded findings of a finding that an entry already suppresses: the entry's kind is kept unless you pass this flag.`,env:"SHOPIFY_FLAG_APP_SECURITY_SUPPRESSION_KIND",dependsOn:["suppress"]}),reason:w.Flags.string({description:"The reason for the suppression, with --suppress. It is saved in shopify.app-security.json. Optional when --suppress re-attaches a stale entry, or saves only the superseded findings of a finding that an entry already suppresses: the entry's reason is kept unless you pass this flag.",env:"SHOPIFY_FLAG_APP_SECURITY_SUPPRESSION_REASON",dependsOn:["suppress"]}),"results-digest":w.Flags.string({description:"With --suppress, the results digest that the finding number was read with. The suppression is refused if the results changed since.",env:"SHOPIFY_FLAG_APP_SECURITY_RESULTS_DIGEST",dependsOn:["suppress"]}),"include-superseded":w.Flags.boolean({description:"With --suppress, also suppress the superseded deterministic findings of the agent finding's check in the same file, which check --blocking still counts.",env:"SHOPIFY_FLAG_APP_SECURITY_INCLUDE_SUPERSEDED",dependsOn:["suppress"]}),interactive:w.Flags.boolean({description:"Go through the active findings one at a time, most severe first, then the superseded findings that check --blocking still counts, and choose Suppress, Continue or Quit for each, or Re-attach for the likely finding of a stale entry. Needs an interactive terminal.",env:"SHOPIFY_FLAG_APP_SECURITY_INTERACTIVE",exclusive:["json","sarif","suppress"]}),...We};async run(){let{flags:n}=await this.parse(e),t=n.interactive?Kn():void 0,s=await ce({directory:n.path,configName:n.config,clientId:n["client-id"],withoutAppConfig:!!n["without-app-config"],checkIds:n["check-id"]??[],blocking:n.blocking,failOnUnresolved:!!n["fail-on-unresolved"],...n.suppress===void 0?{}:{suppress:{findingNumber:n.suppress,kind:n.kind,reason:n.reason,resultsDigest:n["results-digest"],includeSuperseded:!!n["include-superseded"]}},...t?{interactive:t}:{}});bt(s,{verbose:!!n.verbose},yi(n))}};function yi(e){return e.json?"json":e.sarif?"sarif":"text"}export{Se as a};
@@ -0,0 +1 @@
1
+ import{h as a}from"./chunk-RSNFNZ6F.js";import{U as l}from"./chunk-UORSJB4A.js";import{j as h}from"./chunk-FJOVMEPN.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();var i=["live","unpublished","development"];async function A(e,r){let t=await l(e,r);return d(t)}async function d(e,{allowEmpty:r=!1}={}){let t=e.storeFqdn,o=(await a(e)).filter(w);if(o.length===0&&!r)throw new h(`There are no themes in the ${t} store`);return o.sort(y)}function w(e){return i.includes(e.role)}function y(e,r){return i.indexOf(e.role)-i.indexOf(r.role)}u();function E(e,r,t,{allowEmpty:o=!1}={}){return T(e,r,t,o)??L(e,r,t,o)}function T(e,r,t,o){let n=t.role;if(!n)return;let s=`No themes on the store ${e} match the role "${n}"`;return p(r,f=>f.role===n).orThrow(s,o)}function L(e,r,t,o){return t.themeIdentifiers.flatMap(s=>{let f=`No themes on the store ${e} match the ID or name "${s}"`;return p(r,c=>`${c.id}`===s||c.name.toLowerCase()===s.toLowerCase()?!0:g(c.name.toLowerCase(),s.toLowerCase())).orThrow(f,o)})}function p(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:(o,n)=>{if(n)return[];throw new h(o)}}}var m=class{queryProps;constructor(r){this.queryProps=r}get role(){for(let r of i)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function g(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{i as a,A as b,d as c,E as d,m as e};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-BN7ZXAZJ.js";import{b as r}from"./chunk-FZCGRIOM.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var e=r.object({title:r.string().optional(),body:r.union([r.string(),r.array(r.array(r.string()))])}).strict(),o={message:r.string(),code:r.string().min(1).optional().describe("A stable error code, included only when known."),tryMessage:r.string().optional(),nextSteps:r.array(r.string()).optional(),customSections:r.array(e).optional(),details:r.unknown().optional().describe("Selected domain details, preserving native API payloads such as GraphQL errors, extensions, and data.")},s=r.object({type:r.literal("abort"),...o}).strict(),a=r.object({type:r.literal("bug"),...o,stack:r.string().optional()}).strict(),i=r.object({type:r.literal("external"),...o,command:r.string(),args:r.array(r.string())}).strict(),c=r.union([s,a,i]),m=r.object({error:c}).strict(),d=n({name:"JsonErrorDocument",schema:m,definitions:{JsonError:c,JsonErrorCustomSection:e,JsonAbortError:s,JsonBugError:a,JsonExternalError:i}});export{s as a,c as b,d as c};
1
+ import{a as n}from"./chunk-LG3KEHGD.js";import{b as r}from"./chunk-3PYDIBTX.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var e=r.object({title:r.string().optional(),body:r.union([r.string(),r.array(r.array(r.string()))])}).strict(),o={message:r.string(),code:r.string().min(1).optional().describe("A stable error code, included only when known."),tryMessage:r.string().optional(),nextSteps:r.array(r.string()).optional(),customSections:r.array(e).optional(),details:r.unknown().optional().describe("Selected domain details, preserving native API payloads such as GraphQL errors, extensions, and data.")},s=r.object({type:r.literal("abort"),...o}).strict(),a=r.object({type:r.literal("bug"),...o,stack:r.string().optional()}).strict(),i=r.object({type:r.literal("external"),...o,command:r.string(),args:r.array(r.string())}).strict(),c=r.union([s,a,i]),m=r.object({error:c}).strict(),d=n({name:"JsonErrorDocument",schema:m,definitions:{JsonError:c,JsonErrorCustomSection:e,JsonAbortError:s,JsonBugError:a,JsonExternalError:i}});export{s as a,c as b,d as c};
@@ -0,0 +1,3 @@
1
+ import{a as J}from"./chunk-R5COVIJM.js";import{a as x}from"./chunk-K4KKSBUW.js";import{P as k}from"./chunk-7FBOMPO5.js";import{E as A,I as S,N as E,O as F,P as R}from"./chunk-4LJERO23.js";import{a as f}from"./chunk-U5BKU3OL.js";import{b as j,c as V}from"./chunk-IKXUYCK7.js";import{A as u,y}from"./chunk-7A4ZE5IS.js";import{a as C}from"./chunk-LG3KEHGD.js";import{m as h}from"./chunk-FJOVMEPN.js";import{Ab as v,zb as g}from"./chunk-OIQ5NQ5I.js";import{b as i}from"./chunk-3PYDIBTX.js";import{g as w,i as m}from"./chunk-IWTNUJGY.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var M=i.object({filePath:i.string().refine(w,"Expected an absolute filesystem path.").nullable(),message:i.string(),fieldPath:i.array(i.union([i.string(),i.number().int().nonnegative()])).nullable(),code:i.string().nullable().describe("The upstream validation code, or null when unavailable.")}).strict(),c=C({name:"AppConfigValidateResult",schema:i.object({path:i.string().refine(w,"Expected an absolute filesystem path."),valid:i.boolean(),issues:i.array(M)}).strict(),definitions:{ValidationIssue:M}});r();function O(a,t){t==="json"?g(c.encode(a)):a.valid?y({headline:`App configuration '${m(a.path)}' is valid.`}):u({headline:"Validation errors found.",body:a.issues.map(e=>`\u2022 ${R({file:e.filePath??a.path,path:e.fieldPath??void 0,code:e.code??void 0,message:e.message})}`).join(`
2
+ `)})}r();import{resolve as z}from"node:path";async function B(a,t){let e=new Set(t.map(o=>o.file)).size;await f.addPublicMetadata(()=>({cmd_app_validate_valid:a,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:e}))}async function I(a){let t=a.errors?.getErrors()??[];return await B(t.length===0,t),{path:z(a.configPath),valid:t.length===0,issues:t.map(({file:e,message:o,path:p,code:d})=>({filePath:z(e),message:o,fieldPath:p??null,code:d??null}))}}import{resolve as _}from"node:path";async function T(a,t){await f.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:a,cmd_app_validate_file_count:t}))}async function $(a,t){let e=new Set(t.map(o=>o.filePath)).size;throw await T(t.length,e),g(c.encode({path:_(a),valid:!1,issues:t})),await v(),new h}var b=class a extends J{static summary="Validate your app configuration and extensions.";static descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found.";static jsonOutputSchema=c;static description=this.descriptionForHelp();static flags={...j,...x,...V};async run(){let{flags:t}=await this.parse(a);await f.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let e=await A.load(t.path),o=await E(e,t.config,{clientId:t["client-id"],skipPrompts:!!t["client-id"]}),p=S(e,o.file);if(p.length>0){let n=p.map(s=>({filePath:_(s.path),message:s.message,fieldPath:null,code:null}));t.json&&await $(o.file.path,n);let l=new Set(p.map(s=>s.path)).size;throw await T(n.length,l),u({headline:"Validation errors found.",body:n.map(s=>`\u2022 ${s.message}`).join(`
3
+ `)}),new h}let d;try{d=(await k({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config??(t["client-id"]?m(o.file.path):void 0),unsafeTolerateErrors:!0})).app}catch(n){throw n instanceof F&&t.json&&await $(n.configurationPath,n.errors.map(l=>({filePath:_(l.file),message:l.message,fieldPath:l.path??null,code:l.code??null}))),n}let P=await I(d);if(O(P,t.json?"json":"text"),!P.valid)throw await v(),new h;return{app:d}}};export{b as a};
@@ -0,0 +1,20 @@
1
+ import{a as le}from"./chunk-LZ2TN7EZ.js";import{e as me}from"./chunk-7HECBXSP.js";import{p as S,v as ue}from"./chunk-VVHJ2AUF.js";import{ca as je,da as he}from"./chunk-MQ55QUOJ.js";import{r as oe}from"./chunk-OSASE35V.js";import{b as ae,c as G}from"./chunk-IKXUYCK7.js";import{x as F,y as ie}from"./chunk-7A4ZE5IS.js";import{d as ne}from"./chunk-WLJDMI7E.js";import{j as $}from"./chunk-FJOVMEPN.js";import{Bb as re,Cb as se,Da as X,Eb as ce,N as E,Sa as L,_a as Z,na as Q,ta as N,zb as y}from"./chunk-OIQ5NQ5I.js";import{b as m,i as ee,j as P,k as te}from"./chunk-3PYDIBTX.js";import{b as Ie}from"./chunk-VBPMVVLV.js";import{c as x,d as q,e as v,g as V,i as z,o as K}from"./chunk-IWTNUJGY.js";import{e as T,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();import{AsyncLocalStorage as Ae}from"node:async_hooks";import{format as Ee}from"node:util";var fe=new Ae,_=0,D;async function W(t,e={}){let i={json:te()==="json"},n=o=>{e.onDiagnostic?.(o),!(o.code==="custom-checks-disabled"&&e.onCustomChecksDisabled&&(e.onCustomChecksDisabled(),!i.json))&&(i.json?P({type:"diagnostic",level:o.level,message:o.message}):console.error(o.message))};if(!i.json)return t(n);_===0&&(D=console.error,console.error=(...o)=>{let r=fe.getStore();if(r){let c=Ee(...o);if(r.json){P({type:"diagnostic",level:"warning",message:c});return}}D(...o)}),_++;try{return await fe.run(i,()=>t(n))}finally{Ne()}}function Ne(){_--,_===0&&(console.error=D)}var s=T(he(),1),C=T(je(),1);function de(t){return t instanceof Error&&"code"in t&&t.code==="ENOENT"&&"path"in t&&typeof t.path=="string"}function pe(t){let e=t.startsWith("theme-check:")?t:z(t);return e.startsWith("theme-check:")?e:void 0}async function Le(t,e,i){if(pe(t.path)!==void 0||i!==void 0&&v(t.path)===v(i))return!0;try{await W(()=>(0,s.loadConfig)(i,e))}catch(n){if(de(n)&&"syscall"in n&&n.syscall==="open"&&v(n.path)===v(t.path))return!0;throw t}return!1}async function Pe(t){if(!(t===void 0||s.ModernIdentifiers.some(e=>e===t))&&await L(t)&&await X(await Q(t)))throw new $(`Theme Check config must be a file, but ${t} is a directory.`,"Pass the path to a .theme-check.yml file to --config, or omit --config to use the .theme-check.yml in your theme root. To choose the theme directory, use --path.")}async function H(t,e,i){await Pe(e);try{return await i()}catch(n){if(de(n)&&await Le(n,t,e)){let o=pe(n.path),r=e!==void 0&&v(n.path)===v(e)?e:q(n.path),c=o?`Unknown Theme Check config: ${o}`:`Theme Check config file not found: ${r}`;throw new $(c,`Use a built-in config (${s.ModernIdentifiers.join(", ")}), or a path to an existing .theme-check.yml file. Check the extends values in your Theme Check config.`)}throw n}}function $e(t){switch(t){case"error":return s.Severity.ERROR;case"suggestion":case"warning":return s.Severity.WARNING;case"style":case"info":return s.Severity.INFO;case"crash":return}}function ge(t){switch(t){case s.Severity.ERROR:return"error";case s.Severity.WARNING:return"warning";case s.Severity.INFO:return"info"}}function Ge(t){return new Map(t.map(e=>[e.uri,e.source]))}function De(t,e,i){let o=t.split(`
2
+ `).slice(e,i+1),r=o.length===1;return o.map((c,a)=>{let u=e+a+1,h=r?c.trim():c;return`${u} ${h}`}).join(`
3
+ `)}function We(t){switch(t){case s.Severity.ERROR:return{error:`
4
+ [error]:`};case s.Severity.WARNING:return{warn:`
5
+ [warning]:`};case s.Severity.INFO:return{info:`
6
+ [info]:`}}}function He(t,e){return t.map((n,o)=>{let{message:r,uri:c,start:a,end:u,check:h,severity:k}=n,p=e.get(c),d=p===void 0?[]:[`
7
+
8
+ ${De(p,a.line,u.line)}`],g=o===t.length-1?"":`
9
+
10
+ `;return[We(k),{bold:h},{subdued:`
11
+ ${r}`},...d,g]}).flat()}var Ue=(t,e)=>t.severity-e.severity;function U(t){let e=t.reduce((i,n)=>{let{uri:o}=n,r=s.path.fsPath(o);return i[r]??=[],i[r].push(n),i},{});return Object.keys(e).reduce((i,n)=>(i[n]=e[n].sort(Ue),i),{})}function ye(t){return t.reduce((e,i)=>(e[i.severity]=(e[i.severity]??0)+1,e),{})}function ke(t,e,i,n=!1){let o=[`${i.length} files inspected`];if(t.length===0)o.push("with no offenses found.");else{o.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let r=ye(t);r[s.Severity.ERROR]&&o.push(`
12
+ ${r[s.Severity.ERROR]} errors.`),r[s.Severity.WARNING]&&o.push(`
13
+ ${r[s.Severity.WARNING]} warnings.`),r[s.Severity.INFO]&&o.push(`
14
+ ${r[s.Severity.INFO]} info issues.`)}return n&&o.push("\nCustom theme checks are disabled. Allow them by running theme check with the `--allow-custom-checks` flag."),o}function ve(t,e,i,n){let o=Ge(i);Object.keys(t).sort().forEach(c=>{let a=c.replace(e,"").slice(1);F({headline:n?`[${n}] ${a}`:a,body:He(t[c],o)})})}function Ye(t,e){return Object.entries(t).map(([i,n])=>{let o=n.map(c=>({check:c.check,severity:ge(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),r=ye(n);return{environment:e,path:i,offenses:o,errorCount:r[s.Severity.ERROR]??0,warningCount:r[s.Severity.WARNING]??0,infoCount:r[s.Severity.INFO]??0}})}function Ce(t,e){process.exit(Y(t,e)?1:0)}function Y(t,e){let i=e?$e(e):void 0;return i!==void 0&&t.some(n=>n.severity<=i)}function Je(t){return t.split(`
15
+ `).map(e=>`# ${e}`).join(`
16
+ `)}async function we(t){let e=".theme-check.yml",i=x(t,e);if(await L(i)){re(`${e} already exists at ${t}`);return}let{settings:n}=await(0,s.loadConfig)(void 0,t),o=Je(C.default.stringify(n)),r=C.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await N(i,`${r}${o}`),se(`Created ${e} at ${t}`)}var Me=async(t,e)=>{let i=(0,s.applyFixToString)(t.source,e),n=s.path.fsPath(t.uri);await N(n,i)};async function be(t,e){await(0,s.autofix)(t,e,Me)}async function Oe(t,e,i,n={}){let{ignore:o,settings:r,rootUri:c}=await H(t,e,()=>(0,s.loadConfig)(e,t,n)),a={extends:[],ignore:E(o??[]),rootUri:c,...r},u=i?{[i]:a}:a;y(C.default.stringify(u))}async function Te(t,e,i,n={}){let{settings:o,ignore:r,checks:c}=await H(t,e,()=>(0,s.loadConfig)(e,t,n)),a=E(r??[]),h=Object.keys(o).reduce((p,d)=>{let{severity:g,enabled:w,...b}=o[d];if(!w)return p;let Se=ge(g??s.Severity.INFO),O=c.find(Re=>Re.meta.code===d),_e=O&&O.meta?{description:O.meta.docs.description,doc:O.meta.docs.url}:{};return p[d]={severity:Se,..._e,ignored_patterns:`[${a.join(", ")}]`,...b},p},{}),k=i?{[i]:h}:h;y(C.default.stringify(k))}function xe(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}async function J(t,e,i,n={}){let o=!1,{offenses:r,theme:c}=await H(t,e,()=>W(u=>(0,s.themeCheckRun)(t,e,h=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&ce(h)},{...n,onDiagnostic:u}),{onDiagnostic:n.onDiagnostic,onCustomChecksDisabled:()=>{o=!0}}));return{result:Ye(U(r),i),offenses:r,theme:c,customChecksDisabled:o}}l();l();import{resolve as Be}from"node:path";var Fe=m.object({filePath:m.string().refine(V).describe("The absolute native path of the file."),check:m.string(),severity:m.enum(["error","warning","info"]),startRow:m.number().int().positive().describe("The one-based starting line."),startColumn:m.number().int().positive().describe("The one-based starting column."),endRow:m.number().int().positive().describe("The one-based ending line."),endColumn:m.number().int().positive().describe("The one-based ending column."),message:m.string()}).strict(),qe=m.object({valid:m.boolean().describe("Whether the validation passes the selected blocking policy."),issues:m.array(Fe),errorCount:m.number().int().nonnegative(),warningCount:m.number().int().nonnegative(),infoCount:m.number().int().nonnegative()}).strict();function R(t){return Math.max(t+1,1)}var I=me({name:"ThemeCheckResult",schema:qe,definitions:{ThemeCheckIssue:Fe},project:t=>{let{files:e,valid:i}=Array.isArray(t)?{files:t,valid:void 0}:t;return{valid:i??e.every(n=>n.errorCount===0),issues:e.flatMap(n=>n.offenses.map(o=>({filePath:Be(n.path),check:o.check,severity:o.severity,startRow:R(o.start_row),startColumn:R(o.start_column),endRow:R(o.end_row),endColumn:R(o.end_column),message:o.message}))),errorCount:e.reduce((n,o)=>n+o.errorCount,0),warningCount:e.reduce((n,o)=>n+o.warningCount,0),infoCount:e.reduce((n,o)=>n+o.infoCount,0)}}});function M(t){return JSON.stringify(JSON.parse(I.encode(t)))}function j({result:t,offenses:e,theme:i,valid:n,customChecksDisabled:o=!1},r,c,a){let u=U(e);if(r==="text"&&(ve(u,c,i,a),(e.length?F:ie)({headline:a?`[${a}] Theme Check Summary.`:"Theme Check Summary.",body:ke(e,u,i,o)})),r==="json"){let h=process.stdout;xe(h)&&h._handle.setBlocking(!0),y(M(n===void 0?t:{files:t,valid:n}))}}var f=T(Ie(),1);var B=T(he(),1);var A=class extends ue{static jsonOutputSchema=I;static summary="Validate the theme.";static descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";static description=this.descriptionForHelp();static flags={...ae,...G,json:f.Flags.boolean({...G.json,env:"SHOPIFY_FLAG_JSON",exclusive:["init","version","print","list"]}),path:S.path,"allow-custom-checks":S["allow-custom-checks"],"auto-correct":f.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:f.Flags.string({char:"C",required:!1,description:`Path to a config file to use, overriding .theme-check.yml if present
17
+ Use --path to set the theme directory
18
+ Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
19
+ theme-check:recommended, theme-check:all
20
+ For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":f.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:f.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:f.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:f.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:f.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:f.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:S.environment};static multiEnvironmentsFlags=["path"];inputArgv=[...this.argv];async command(e,i,n){let o=e.path,r=e.environment?.[0],a=e.config?.startsWith(":")&&B.LegacyIdentifiers.has(e.config.slice(1))?B.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await we(o);return}if(e.version){let w=await Z(x("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:K(import.meta.url)}),b="unknown";w&&(b=await oe(w)??"unknown"),y(b);return}let u=await le(this.inputArgv);if(e.print){await Oe(o,a,r,u);return}if(e.list){await Te(o,a,r,u);return}let h=await J(o,a,r,u),{offenses:k,theme:p}=h,d=e.json||e.output==="json",g=!Y(k,e["fail-level"]);if(d||j({...h,valid:g},e.output,o,r),e["auto-correct"]&&await be(p,k),d&&!n&&j({...h,valid:g},"json",o,r),d)return g||(process.exitCode=1),{files:h.result,valid:g};if(!n)return Ce(k,e["fail-level"])}async _run(){let e=this.argv.indexOf("--"),i=e<0?this.argv:this.argv.slice(0,e),n=Ve(i)==="json";return n&&!i.includes("--json")&&(this.argv=[...i,"--json",...e<0?[]:this.argv.slice(e)]),n?ee({outputMode:"json",sink:ne},()=>super._run()):super._run()}collectsEnvironmentResults(e){return!!e.json||e.output==="json"}validateCommandFlags(e){if(!this.collectsEnvironmentResults(e))return;let i=["init","version","print","list"].find(n=>e[n]);i&&this.error(`JSON output can't be used with --${i}.`,{exit:2})}renderEnvironmentResults(e){y(M({environments:e}))}};function Ve(t){let e=process.env.SHOPIFY_FLAG_OUTPUT,i=Object.entries(A.flags);for(let n=0;n<t.length;n++){let o=t[n];if(o.startsWith("--")){let[r,...c]=o.slice(2).split("=");if(i.find(([h])=>h===r)?.[1]?.type!=="option")continue;let u=c.length?c.join("="):t[++n];r==="output"&&(e=u)}else if(o.startsWith("-"))for(let r=1;r<o.length;r++){let c=i.find(([,u])=>u.char===o[r]);if(!c)break;if(c[1].type!=="option")continue;let a=o.slice(r+1).replace(/^=/,"")||t[++n];c[0]==="output"&&(e=a);break}}return e}async function Et(t,e,i,n,o={}){let r=await J(t,i,n,o);return j(r,e,t,n),{offenses:r.offenses,theme:r.theme}}export{A as a,Et as b};
@@ -1,2 +1,2 @@
1
- import{Bb as n,Sa as o,qb as e,sb as r,ta as d,va as f}from"./chunk-JLQRDFR5.js";import{c as i}from"./chunk-IWTNUJGY.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var g=".shopify";async function c(h){let t=i(h,g),a=i(t,".gitignore");return await o(t)||(n(r`Creating hidden .shopify folder at ${e.path(t)}...`),await f(t)),await o(a)||(n(r`Creating .gitignore in ${e.path(t)}...`),await d(a,`# Ignore the entire ${g} directory
1
+ import{Eb as n,Sa as o,ta as d,tb as e,va as f,vb as r}from"./chunk-OIQ5NQ5I.js";import{c as i}from"./chunk-IWTNUJGY.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var g=".shopify";async function c(h){let t=i(h,g),a=i(t,".gitignore");return await o(t)||(n(r`Creating hidden .shopify folder at ${e.path(t)}...`),await f(t)),await o(a)||(n(r`Creating .gitignore in ${e.path(t)}...`),await d(a,`# Ignore the entire ${g} directory
2
2
  *`)),t}export{c as a};
@@ -0,0 +1,4 @@
1
+ import{a as _e,b as Te,c as $e,d as O}from"./chunk-3GL3IT4K.js";import{a as ie,b as le,c as pe,d as de,f as Ee,g as Re}from"./chunk-SUTSCIXU.js";import{a as Ce}from"./chunk-4M5WHOZW.js";import{b as Fe,c as De}from"./chunk-SBX7CMHM.js";import{$ as v,A as D,E as ue,F as he,N as j,O as fe,P as k,Q as ge,S as me,T as ye,U as be,V as we,W as Se,X as ke,Y as ve,Z as f,a as ne,aa as Ae,ba as _,c as se,ca as xe,da as T,e as oe,ea as $,fa as Ie,ga as Pe,i as re,ia as w,ja as C,ka as E,la as A,ma as x,na as R,pa as je,qa as G,t as ce,y as ae}from"./chunk-NAQJMRPT.js";import{b as Z}from"./chunk-PSREELSQ.js";import{b as ee,c as te}from"./chunk-IKXUYCK7.js";import{A as z,C as Q,U as S,x as F,y as q,z as h}from"./chunk-7A4ZE5IS.js";import{a as J}from"./chunk-LG3KEHGD.js";import{j as X}from"./chunk-FJOVMEPN.js";import{na as V,zb as b}from"./chunk-OIQ5NQ5I.js";import{b as c}from"./chunk-3PYDIBTX.js";import{b as ze}from"./chunk-VBPMVVLV.js";import{f as g,p as K}from"./chunk-IWTNUJGY.js";import{e as qe,g as l}from"./chunk-VKWPEFWQ.js";l();l();var Qe={resolveSelection:me,execute:pe,listFiles:de,writeArtifacts:he,canPrompt:S,recordMetadata:Ce,readSuppressions:Fe};async function N(e,t=Qe){let i=await ye(e.includeDirs),n=await t.resolveSelection({path:e.directory,config:e.configName,clientId:e.clientId,withoutAppConfig:e.withoutAppConfig,allowPrompts:!e.listFiles&&t.canPrompt(),validateClientIdFlag:!0});if(n.kind==="declined")return{kind:"cancelled"};let{appDirectory:s}=n,r={include_dirs:[...e.includeDirs],excludes:[...e.excludePatterns],no_git_ignore:e.noGitIgnore},o=Se(n,e.directory,r);(n.kind==="no-config"?!e.withoutAppConfig:n.appConfigFilePicked===!0)&&e.onSelectionPrompted?.(o);let a=n.kind==="config"?n.appConfigDirectories??[]:[],{scanDirectories:I,requestedScanDirectories:Je}=be(s,i,a),P={selection:n,resultsKey:ge(n),commands:o,scope:r,scanDirectories:I},B={appDirectory:s,scanDirectories:I.map(({directory:u})=>u),requestedScanDirectories:Je,appConfigDirectories:I.filter(({origin:u})=>u==="app_config_directory").map(({directory:u})=>u),appConfigFilePath:n.kind==="config"?n.appConfigFilePath:void 0,clientId:k(n),includeDirs:e.includeDirs,excludePatterns:e.excludePatterns,noGitIgnore:e.noGitIgnore};if(e.listFiles){let u=await t.listFiles(B);return{kind:"listed",...P,...u}}let M=await t.readSuppressions(s),{execution:y,codeExcerptsOmitted:Y}=Xe(await t.execute(B));await t.recordMetadata({num_security_findings:y.scan.issues.length});let Ke=await t.writeArtifacts(s,P.resultsKey,{deterministicFindings:y.deterministicFindings,agentChecks:y.agentChecks}),{checks:H,suppressions:Ve}=ce({deterministic:y.deterministicFindings,agent:null,suppressions:{entries:M,missingPaths:await De(s,M)}});return{kind:"scanned",...P,execution:y,artifacts:Ke,checks:H,suppressions:Ve,blocking:{level:e.blocking,blockedChecks:le(H,e.blocking)},...Y?{codeExcerptsOmitted:Y}:{}}}function Xe(e){if(j(e.deterministicFindings)<=D)return{execution:e,codeExcerptsOmitted:!1};let t=oe(e.deterministicFindings);if(j(t)>D)throw new X("The deterministic findings are larger than 5 MB, so the results were not changed.","Use --exclude or scan fewer directories, then run the command again.");return{execution:{...e,deterministicFindings:t,scan:{...e.scan,issues:e.scan.issues.map(({code_excerpt:i,evidence:n,...s})=>({...s,...n===void 0?{}:{evidence:n.map(({code_excerpt:r,...o})=>o)}}))}},codeExcerptsOmitted:!0}}l();l();var Ge=c.object({status:c.literal("success"),app:C,scope:A,scanDirectories:c.array(x).describe("The directories that a scan would walk."),files:c.array(c.object({path:w().describe("The absolute path of the file.")}).strict()).describe("The files that a scan would gather, ordered by their paths relative to the app directory, as listed without --json.")}).strict().describe("With --list-files, the files that a scan would gather. Nothing is scanned or written."),m=J({name:"AppSecurityCheckResult",schema:c.union([c.object({status:c.literal("success"),valid:c.boolean().describe("Whether --blocking passed: no check of the scan has an active finding and a severity at or above the level. Findings that shopify.app-security.json suppresses don't count. blocking.blockedCheckCount counts the checks that fail, and --blocking none always passes. Run review --json for the findings."),app:C,resultsDirectory:w().describe("The absolute path of the results directory that holds the files the scan wrote."),deterministicFindingsPath:w().describe("The absolute path of deterministic-findings.json, which the scan replaced."),agentChecksPath:w().describe("The absolute path of agent-checks.json, which the scan replaced."),scope:A,scanDirectories:c.array(x).describe("The directories that the scan walked."),agentCheckCount:c.number().int().nonnegative().describe("The number of checks in agent-checks.json for a coding agent to investigate."),blocking:R,suppressions:G,instructions:E.optional().describe("The coding-agent instructions for this scan, with --print-instructions or when chosen at the prompt. Left out otherwise.")}).strict(),Ge,c.object({status:c.literal("cancelled")}).strict().describe("Asked whether to scan without app configuration, the user declined. Nothing was scanned or written.")]).describe("The scan and the files it wrote. With --list-files, the files that a scan would gather."),definitions:{AppSecurityApp:C,AppSecurityScope:A,AppSecurityScanDirectory:x,AppSecurityBlocking:R,AppSecuritySuppressions:G,AppSecuritySuppressionEntry:je,AppSecurityInstructions:E,AppSecurityCheckFileList:Ge}});l();var Ze={high:"High",medium:"Medium",low:"Low"},L=3,U=8;function et(e){let t=re(e.scan.issues,e.checks),i={activeIssues:t,groups:ae(t),suppressed:Ee(e.checks,e.suppressions),unappliedEntries:Re(e.suppressions,{review:f(e.commands.review)})},{groups:n}=i;return{type:tt(e,t),options:{headline:it(e,i),body:nt(e),reference:[{subdued:`Engine: ${e.engine.name} ${e.engine.version}`},{subdued:`Ruleset: ${e.engine.ruleset}`},...n.some(s=>s.issues.length>1)&&!e.verbose?[{subdued:"Use --verbose for every occurrence and fix. deterministic-findings.json retains all file and line details."}]:[]],customSections:ct(e,i)}}}function Oe(e){let{type:t,options:i}=et(e);if(t==="success"){q(i);return}if(t==="warning"){h(i);return}z(i)}function Ne(e){return e.scan.scan.coverage_gaps.length>0}function tt(e,t){return t.some(i=>i.severity==="high")?"error":t.length>0||Ne(e)?"warning":"success"}function it(e,{activeIssues:t,groups:i,suppressed:n}){let s=t.length;return i.length<s?`${i.length} security issue ${i.length===1?"group":"groups"} found (${s} occurrences).`:s>0?`${s} security ${s===1?"issue":"issues"} found.`:Ne(e)?"Scan completed with coverage gaps.":n?"No active security issues found.":"No security issues found."}function nt(e){let t=e.scan,i=[{userInput:t.app.name},{char:"."},`${t.scan.files_scanned} files scanned in ${dt(e.elapsedMilliseconds)}.`],n=t.scan.checks_executed.filter(s=>s.status==="not_applicable").length;return n>0&&i.push({info:`
2
+ ${n} check${n===1?"":"s"} not applicable.`}),i.push({info:`
3
+ ${e.agentCheckCount} check${e.agentCheckCount===1?"":"s"} ready for your coding agent.`}),i}function st(e){return[["Have your coding agent run the agent checks, following",{command:f(e.commands.instructions)},{char:"."}],["Record the agent results with",{command:f(e.commands.record)}],["Review the results with",{command:f(e.commands.review)}]]}function ot(e){let t=k(e)??"not linked";return e.kind==="config"&&e.clientIdOverride?`${t} (from --client-id)`:t}function rt(e){let{selection:t}=e;return{title:"Selection",body:{tabularData:[["App directory",t.appDirectory],["Config file",fe(t)??"none"],["Client ID",ot(t)],["Scan directories",e.scanDirectories.map(({directory:i})=>g(t.appDirectory,i)||".").join(", ")]],firstColumnSubdued:!0}}}function ct(e,{groups:t,suppressed:i,unappliedEntries:n}){let s=[rt(e)];for(let o of["high","medium","low"]){let d=t.filter(a=>a.severity===o);d.length!==0&&s.push({title:Ze[o],body:{list:{items:d.flatMap(a=>[lt(a),...e.verbose?a.issues.map(at):[]])}}})}if(i&&s.push({title:"Suppressed findings",body:i.counts},...i.sections),n&&s.push(...n.sections),e.scan.scan.coverage_gaps.length>0){let o=e.scan.scan.coverage_gaps,d=o.slice(0,U).map(a=>a.message);o.length>U&&d.push({info:`${o.length-U} more coverage gaps`}),s.push({title:"Coverage gaps",body:{list:{items:d}}})}let{appDirectory:r}=e.selection;return s.push({title:"Artifacts",body:{list:{items:[["Deterministic findings:",{filePath:g(r,e.deterministicFindingsPath)}],["Agent security check instructions:",{filePath:g(r,e.agentChecksPath)}]]}}}),s.push({title:"Next steps",body:{list:{items:st(e),ordered:!0}}}),e.verbose&&s.push({title:"Scan details",body:{tabularData:[["Framework",e.scan.detection.framework],["Surface",e.scan.detection.surface],["Languages",e.scan.detection.languages.map(o=>`${o.name} (${o.support})`).join(", ")||"none"],["Capabilities",pt(e.scan.capabilities)],["Rules run",String(e.scan.scan.rules_run)],["Not run",String(e.scan.scan.rules_skipped)]],firstColumnSubdued:!0}}),s}function at(e){let t=e.location.line?`${e.location.file}:${e.location.line}`:e.location.file,i=[{bold:e.title},Le(e.id),{filePath:t}];return i.push({subdued:e.message},{subdued:`Fix: ${e.fix.description}`}),e.fix.guide&&(e.fix.guide.startsWith("https://")||e.fix.guide.startsWith("http://")?i.push({link:{label:"Guide",url:e.fix.guide}}):i.push({subdued:`Guide: ${e.fix.guide}`})),e.snippet&&i.push({subdued:`Code: ${e.snippet}`}),i}function lt(e){let t=e.issues[0],i=e.issues.length,n=e.files.length,s=e.files.slice(0,L).map(r=>{let o=e.issues.find(a=>a.location.file===r);return{filePath:o.location.line?`${r}:${o.location.line}`:r}});return[{bold:t.title},Le(t.id),`${i} ${i===1?"occurrence":"occurrences"} across ${n} ${n===1?"file":"files"}`,...s,...n>L?[{subdued:`+${n-L} more files`}]:[]]}function Le(e){let t=se(e);return t?{link:{label:e,url:t}}:{subdued:e}}function pt(e){let t=Object.entries(e).filter(([,i])=>i).map(([i])=>i);return t.length>0?t.join(", "):"none detected"}function dt(e){return e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(1)}s`}var ut={canPrompt:S,selectInstructionsDestination:e=>Q(e)};function ht(e,t){return{message:`${e} recommended agent ${e===1?"check":"checks"} available to complete your scan. How do you want to pass that prompt to your agent?`,choices:t==="json"?[{label:"Include instructions in the JSON output and copy them to the clipboard",value:"copy"},{label:"Include instructions in the JSON output",value:"print"},{label:"Nothing",value:"nothing"}]:[{label:"Copy instructions to the clipboard",value:"copy"},{label:"Print instructions to the terminal",value:"print"},{label:"Nothing",value:"nothing"}],defaultValue:"copy"}}function We(e){F({headline:"To skip these prompts next time, run:",body:[{command:f(e.scan)}]})}async function Be(e,t,i,n=ut){if(e.kind==="cancelled"){if(i==="json")b(m.encode({status:"cancelled"}));else{let{headline:s,nextStep:r}=we(t.directory);F({headline:s,body:r})}return}if(e.kind==="listed"){await Ue(e),i==="json"?b(m.encode(yt(e))):e.paths.length>0&&b(e.paths.join(`
4
+ `));return}await Ue(e.execution),e.codeExcerptsOmitted&&h({headline:"deterministic-findings.json was written without code excerpts, because with them it would be larger than 5 MB.",body:["Use",{command:"--exclude"},"or scan fewer directories to keep them."]}),i==="json"?await gt(e,t,n):await ft(e,t,n),e.blocking.blockedChecks>0&&(process.exitCode=1)}async function ft(e,t,i){Oe(bt(e,t.verbose));let n=await Ye(e,t,"text",i);if(n==="nothing")return;let s=He(e);n==="print"?O(s,{copy:!1}):await Me(s,"text")&&O(s,{copy:!0})}async function gt(e,t,i){let n=await Ye(e,t,"json",i),s=n==="nothing"?void 0:He(e),r=s!==void 0&&n==="copy"&&await Me(s,"json");b(m.encode(mt(e,s===void 0?void 0:xe(s,{copy:r}))))}async function Me(e,t){try{return await $e(e,{copy:!0}),!0}catch(i){if(!(i instanceof _e))throw i;return h({headline:i.message,body:t==="json"?"The result still includes them.":["Run the check again with",{command:"--print-instructions"},"to print them."]}),!1}}async function Ye(e,t,i,n){return t.skipInstructions?"nothing":t.printInstructions?"print":n.canPrompt()?n.selectInstructionsDestination(ht(e.execution.agentChecks.checks.length,i)):"nothing"}function He(e){return Te({appDirectory:e.selection.appDirectory,resultsKey:e.resultsKey,commands:e.commands,scanScope:e.scope})}function mt(e,t){let{appDirectory:i}=e.selection,{resultsDirectory:n}=ue(i,e.resultsKey);return{status:"success",valid:e.blocking.blockedChecks===0,app:_(e.selection),resultsDirectory:v(n),deterministicFindingsPath:v(e.artifacts.deterministicFindingsPath),agentChecksPath:v(e.artifacts.agentChecksPath),scope:T(e.scope),scanDirectories:e.scanDirectories.map(s=>$(i,s)),agentCheckCount:e.execution.agentChecks.checks.length,blocking:Ie(e.blocking),suppressions:Pe(i,e.suppressions,e.checks),...t===void 0?{}:{instructions:t}}}function yt(e){let{appDirectory:t}=e.selection;return{status:"success",app:_(e.selection),scope:T(e.scope),scanDirectories:e.scanDirectories.map(i=>$(t,i)),files:e.paths.map(i=>({path:Ae(t,i)}))}}function bt(e,t){let{execution:i,artifacts:n}=e;return{scan:i.scan,selection:e.selection,scanDirectories:e.scanDirectories,engine:i.engine,verbose:t,elapsedMilliseconds:i.elapsedMilliseconds,commands:e.commands,deterministicFindingsPath:n.deterministicFindingsPath,agentChecksPath:n.agentChecksPath,agentCheckCount:i.agentChecks.checks.length,checks:e.checks,suppressions:e.suppressions}}function wt(e){return e.replace(/[?*()[\]{}!#\\]/g,"\\$&")}async function Ue(e){if(e.ignoredScanDirectories.length===0&&e.otherAppDirectories.length===0)return;let t=await V(K()),i=n=>g(t,n)||".";for(let n of e.ignoredScanDirectories)h({headline:`${i(n)} is ignored by Git, so only the files Git tracks in it are scanned.`,body:["Use",{command:"--no-git-ignore"},"to scan everything in it."]});for(let n of e.otherAppDirectories){let s=i(n);h({headline:`${s} holds another app's configuration, so its files are scanned as part of this app.`,body:["Use",{command:`--exclude ${ve(wt(s),ke())}`},"to leave it out."]})}}var p=qe(ze(),1);var W=class e extends Z{static summary="Check an app for Shopify-specific security issues and write deterministic-findings.json and agent-checks.json.";static descriptionWithMarkdown="Runs an app security check locally and writes `deterministic-findings.json` and `agent-checks.json` to the results directory, `.shopify/app-security/<results key>/`. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`; the other `app security` commands take the same selection flags and find the same directory. Every run replaces both files, so it's always safe to run the check again.\n\n`deterministic-findings.json` holds the deterministic scan results. `agent-checks.json` holds the checks for your coding agent to investigate; the agent's results are recorded with `shopify app security record`. Use `--config` to select a specific app configuration when the project has multiple `shopify.app*.toml` files; the check inspects only that configuration. Use `--client-id` to replace the configuration's client ID for this run. `--client-id` is checked against your Shopify account before anything is scanned, so it needs you to be logged in. When no app configuration exists, use `--without-app-config --client-id <client-id>` to scan `--path` anyway with config checks skipped; in an interactive terminal the command offers to do this.\n\nThe check scans the app directory and each `--include-dir`. Git ignore rules apply by default: a file or directory that Git ignores is skipped, using the rules of the repository that contains it, while files that Git tracks are always scanned. Use `--no-git-ignore` to turn Git ignore rules off for every scanned directory. When the check uses Git, it requires Git 2.38.0 or later.\n\nUse `--exclude` to skip more paths. Each value is a glob that is matched against the path relative to the working directory, so a path above it starts with `../`, and a name at any depth needs `**/`, for example `--exclude '**/generated'`. Repeat the flag to add globs. An exclusion can't remove the selected app configuration file. Quote each value so your shell doesn't expand `*`. The coding-agent instructions this check offers repeat the globs. Other `app security` commands don't take `--exclude` or `--no-git-ignore`, so pass the same flags each time you run the check.\n\nUse `--list-files` to check the scope before scanning: it prints the files the check would gather, one path per line and relative to the app directory, and then stops. It writes no results and never prompts. `--client-id` is still checked, but doesn't change the list. With `--json`, the result lists the files with absolute paths.\n\nIn interactive terminals, the command offers to copy the coding-agent instructions, print them, or choose nothing; copying is the default. In CI and other non-interactive environments, instructions aren't offered unless you pass `--print-instructions`, which prints them. You can also run `shopify app security instructions` to print, copy, or write them later. With `--json`, the command offers to include the instructions in the result, with or without copying them, and `--print-instructions` includes them.\n\nFindings that an entry of `shopify.app-security.json` in the app directory matches are suppressed: they don't count for `--blocking`, and the output lists each one with its kind and reason. An entry that matches no finding is stale, and an entry whose code matches more than one finding is ambiguous. Neither suppresses anything, and the output lists both, so you can remove or update them. When an edit to the flagged code, such as a rename, makes an entry stale, the output names the location of its likely finding: run `shopify app security review` to see that finding's number, and `shopify app security review --suppress` with it to re-attach the entry. It names none when the entry's code or the finding's line holds a redacted secret, because redaction hides the only text that tells two credentials apart, or when the entry's code holds a secret that the CLI would redact. Agent entries aren't evaluated, because the check reads no agent results. An invalid file makes the check fail with every problem. To add entries, run `shopify app security review --interactive` or `shopify app security review --suppress`, or ask your coding agent to run `shopify app security review --suppress` for a suppression that you approve, then review and commit the file. `shopify app security record` never changes the file: a suppression in the agent findings applies only to them.\n\nWith `--json`, the result describes the scan and the files it wrote, whether `--blocking` passed, and how the entries of `shopify.app-security.json` applied, but not the findings: run `shopify app security review --json` for those.\n\nFindings that an entry of `shopify.app-security.json` in the app directory suppresses don't count for `--blocking`. The results files still hold every finding. Suppressions apply to all app configurations and client-ID runs. An entry's `code` matches the code excerpt that the results file saves with the finding. A results file that would be larger than 5 MB with excerpts is saved without them; then an entry with `code` matches only the finding's message, so it can go stale and leave the finding active. The check reads `shopify.app-security.json` before it scans, so an invalid file stops the command before any results file is replaced.\n\nReports the number of findings to Shopify as usage telemetry, but not finding details. See [usage reporting](https://shopify.dev/docs/api/shopify-cli#usage-reporting) for details.";static jsonOutputSchema=m;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --include-dir ../backend","<%= config.bin %> <%= command.id %> --path extensions --config production --include-dir .","<%= config.bin %> <%= command.id %> --without-app-config --client-id <client-id>",'<%= config.bin %> <%= command.id %> --path app --include-dir . --exclude marketing --exclude "**/generated"',"<%= config.bin %> <%= command.id %> --no-git-ignore --exclude local-data","<%= config.bin %> <%= command.id %> --include-dir ../backend --list-files","<%= config.bin %> <%= command.id %> --blocking high"];static flags={...ee,...ne,"include-dir":p.Flags.string({description:"Also scan this directory, relative to the working directory. Repeat the flag to add directories. Use it for code that lives outside the app directory, such as a backend or a shared library.",multiple:!0}),exclude:p.Flags.string({description:"Skip paths that match this glob, relative to the working directory. Repeat the flag to add globs. The selected app configuration file can't be excluded.",multiple:!0}),"no-git-ignore":p.Flags.boolean({description:"Turn off Git ignore rules for every scanned directory, so files that Git ignores are scanned too. Files that Git tracks are always scanned.",env:"SHOPIFY_FLAG_NO_GIT_IGNORE"}),"list-files":p.Flags.boolean({description:"Print the files the check would gather, one path per line, and stop. Nothing is scanned, no results are written, and nothing is prompted for. With --json, the result lists them with absolute paths.",env:"SHOPIFY_FLAG_LIST_FILES",exclusive:["print-instructions","skip-instructions","blocking"]}),...ie,"print-instructions":p.Flags.boolean({description:"Print coding-agent instructions without prompting for how to deliver them. With --json, the instructions are included in the result.",default:!1,exclusive:["skip-instructions"],env:"SHOPIFY_FLAG_APP_SECURITY_PRINT_INSTRUCTIONS"}),yes:p.Flags.boolean({description:"Print coding-agent instructions without prompting.",hidden:!0,deprecated:{to:"--print-instructions"},exclusive:["skip-instructions","list-files"],env:"SHOPIFY_FLAG_YES"}),"skip-instructions":p.Flags.boolean({description:"Don't offer the coding-agent instructions after the scan. Use it when you want only the deterministic scan results.",default:!1,exclusive:["print-instructions"],env:"SHOPIFY_FLAG_APP_SECURITY_SKIP_INSTRUCTIONS"}),...te};async run(){let{flags:t}=await this.parse(e),i=await N({directory:t.path,configName:t.config,clientId:t["client-id"],withoutAppConfig:!!t["without-app-config"],blocking:t.blocking,includeDirs:t["include-dir"]??[],excludePatterns:t.exclude??[],noGitIgnore:!!t["no-git-ignore"],listFiles:!!t["list-files"],onSelectionPrompted:We});await Be(i,{directory:t.path,verbose:!!t.verbose,printInstructions:!!(t["print-instructions"]||t.yes),skipInstructions:t["skip-instructions"]},t.json?"json":"text")}};export{W as a};
@@ -0,0 +1,5 @@
1
+ import{a as x}from"./chunk-Z3QZNLT5.js";import{a as F}from"./chunk-R5COVIJM.js";import{a as y}from"./chunk-K4KKSBUW.js";import{P as D}from"./chunk-7FBOMPO5.js";import{B as f,K as v}from"./chunk-UORSJB4A.js";import{b as C,c as S}from"./chunk-IKXUYCK7.js";import{y as w}from"./chunk-7A4ZE5IS.js";import{a as h}from"./chunk-LG3KEHGD.js";import{j as m}from"./chunk-FJOVMEPN.js";import{zb as g}from"./chunk-OIQ5NQ5I.js";import{b as a,c as u}from"./chunk-3PYDIBTX.js";import{b as O}from"./chunk-VBPMVVLV.js";import{e as j,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function A(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,i=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id}),r=i?.devSessionDelete?.userErrors;if(!Array.isArray(r)||r.some(n=>typeof n?.message!="string")){let n=new m("Failed to stop the dev preview: the server returned an invalid response.");throw n.details={data:i},n}if(r.length){let n=r.map(I=>I.message).join(`
2
+ `),l=new m(`Failed to stop the dev preview: ${n}`);throw l.details={userErrors:r},l}return{status:"success",app:{name:o.title,clientId:o.apiKey},storeHostname:t.store.shopDomain}}s();var R=a.object({name:a.string(),clientId:a.string().min(1)}).strict(),p=h({name:"AppDevCleanResult",schema:a.object({status:a.literal("success"),app:R,storeDomain:u.nullable().describe("The canonical *.myshopify.com hostname, or null when unknown.")}).strict(),definitions:{AppDevCleanApp:R}});s();function b(t,e){if(e==="json"){let o={status:t.status,app:t.app,storeDomain:v(t.storeHostname)?t.storeHostname:null};g(p.encode(o));return}w({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${t.storeHostname} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var c=j(O(),1);var d=class t extends F{static summary="Cleans up the dev preview from the selected store.";static descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
+
4
+ It restores the app's active version to the selected development store.
5
+ `;static jsonOutputSchema=p;static description=this.descriptionForHelp();static flags={...C,...y,...S,"client-id":c.Flags.string({hidden:!1,description:"The Client ID of your app. Use with --config to clean up the dev preview for a different app than the one it is linked to.",env:"SHOPIFY_FLAG_CLIENT_ID"}),store:c.Flags.string({hidden:!1,char:"s",description:"Store URL. Must be an existing development store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>f(e)})};async run(){let{flags:e}=await this.parse(t),o=await D({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),i=await x({appContextResult:o,storeFqdn:e.store,forceReselectStore:e.reset,devSession:!0}),r=await A({appContextResult:o,store:i});return b(r,e.json?"json":"text"),{app:o.app}}};export{d as a};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-P2RMFHQP.js";import"../../../chunk-VGSH52JM.js";import"../../../chunk-7CCTPBCT.js";import"../../../chunk-3MYDSQHF.js";import"../../../chunk-NVKJ7ZLP.js";import"../../../chunk-U2T5HPRD.js";import"../../../chunk-6ES4KRFW.js";import"../../../chunk-YLQ3LNNY.js";import"../../../chunk-33ZE3DRQ.js";import"../../../chunk-YV2TP44L.js";import"../../../chunk-RLNIOJH3.js";import"../../../chunk-IWOTLFOY.js";import"../../../chunk-FFSDGRAN.js";import"../../../chunk-SK7EPN6C.js";import"../../../chunk-VJEKDBGZ.js";import"../../../chunk-TODZ3TJR.js";import"../../../chunk-Y5CVX5LJ.js";import"../../../chunk-T4XJKM6B.js";import"../../../chunk-N57Y7THE.js";import"../../../chunk-ZJOX5HW4.js";import"../../../chunk-LFOBYEWG.js";import"../../../chunk-GQLNG537.js";import"../../../chunk-ZDF5N422.js";import"../../../chunk-QQJNQNKP.js";import"../../../chunk-MPW2YJWU.js";import"../../../chunk-MHR5OHT5.js";import"../../../chunk-HSKDFEXW.js";import"../../../chunk-F3CK3EJJ.js";import"../../../chunk-3KM5ZOW2.js";import"../../../chunk-T7KHS6RF.js";import"../../../chunk-D2KIGKBI.js";import"../../../chunk-7Y7AZRL3.js";import"../../../chunk-LEHBZKK3.js";import"../../../chunk-GW7YIJPJ.js";import"../../../chunk-5HBIIYSK.js";import"../../../chunk-GB3YC4TI.js";import"../../../chunk-335BUVBP.js";import"../../../chunk-YRHFPXC3.js";import"../../../chunk-BN7ZXAZJ.js";import"../../../chunk-RJ5VF3QY.js";import"../../../chunk-7UNQOKZW.js";import"../../../chunk-CXI3RHPW.js";import"../../../chunk-M5VIFG2V.js";import"../../../chunk-636CTEW7.js";import"../../../chunk-NXAEBGMO.js";import"../../../chunk-JLQRDFR5.js";import"../../../chunk-B4OMIONW.js";import"../../../chunk-BOAGJ6P5.js";import"../../../chunk-5B76DT7X.js";import"../../../chunk-JJZNUFPD.js";import"../../../chunk-FZCGRIOM.js";import"../../../chunk-LHXFTFFM.js";import"../../../chunk-43R5VGKT.js";import"../../../chunk-ZDQO6CNY.js";import"../../../chunk-YTUUU33R.js";import"../../../chunk-JD5P5RAJ.js";import"../../../chunk-IWTNUJGY.js";import"../../../chunk-QFYLJVJW.js";import"../../../chunk-ZGASBRSQ.js";import"../../../chunk-I5A6BPCP.js";import"../../../chunk-CX5CC6P5.js";import"../../../chunk-IGE4Y5SE.js";import"../../../chunk-JFBCE4HN.js";import"../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../chunk-7UK565VJ.js";import"../../../chunk-HT7273V7.js";import"../../../chunk-JLAN6JXJ.js";import"../../../chunk-KT2AMFVW.js";import"../../../chunk-K4KKSBUW.js";import"../../../chunk-7FBOMPO5.js";import"../../../chunk-HVECVOIO.js";import"../../../chunk-4KBOLN7Q.js";import"../../../chunk-XHHAVKKV.js";import"../../../chunk-4LJERO23.js";import"../../../chunk-CA3GVT4D.js";import"../../../chunk-HEB4YYM6.js";import"../../../chunk-QLN6IOOY.js";import"../../../chunk-ZQNGYJKJ.js";import"../../../chunk-MQ55QUOJ.js";import"../../../chunk-IWOTLFOY.js";import"../../../chunk-VJEKDBGZ.js";import"../../../chunk-HR6R7JXN.js";import"../../../chunk-LXFWK3O2.js";import"../../../chunk-2KACAQJS.js";import"../../../chunk-U5BKU3OL.js";import"../../../chunk-PSREELSQ.js";import"../../../chunk-LFOBYEWG.js";import"../../../chunk-UORSJB4A.js";import"../../../chunk-ZDF5N422.js";import"../../../chunk-OSASE35V.js";import"../../../chunk-WB5GRBHW.js";import"../../../chunk-CE6XQDAG.js";import"../../../chunk-MPW2YJWU.js";import"../../../chunk-EE72PCKT.js";import"../../../chunk-ARL5WBDK.js";import"../../../chunk-IKXUYCK7.js";import"../../../chunk-T7KHS6RF.js";import"../../../chunk-7A4ZE5IS.js";import"../../../chunk-7Y7AZRL3.js";import"../../../chunk-WLJDMI7E.js";import"../../../chunk-RNF6T6IO.js";import"../../../chunk-5HBIIYSK.js";import"../../../chunk-RJ5VF3QY.js";import"../../../chunk-7UNQOKZW.js";import"../../../chunk-GB3YC4TI.js";import"../../../chunk-2KFYIYLI.js";import"../../../chunk-QBRRFFMZ.js";import"../../../chunk-Z2AV4BWZ.js";import"../../../chunk-LG3KEHGD.js";import"../../../chunk-HI5FTI3M.js";import"../../../chunk-FJOVMEPN.js";import"../../../chunk-636CTEW7.js";import"../../../chunk-2IXP3IPE.js";import"../../../chunk-OIQ5NQ5I.js";import"../../../chunk-B4OMIONW.js";import"../../../chunk-UU6UQ2QY.js";import"../../../chunk-5B76DT7X.js";import"../../../chunk-JJZNUFPD.js";import"../../../chunk-3PYDIBTX.js";import"../../../chunk-A5BSUUNQ.js";import"../../../chunk-4AWVU2OV.js";import"../../../chunk-R4E2E4NN.js";import"../../../chunk-VBPMVVLV.js";import"../../../chunk-JD5P5RAJ.js";import"../../../chunk-IWTNUJGY.js";import"../../../chunk-3KGN6N7E.js";import"../../../chunk-RFJ2LI64.js";import"../../../chunk-CQAD5WML.js";import"../../../chunk-I5A6BPCP.js";import"../../../chunk-O472FAYX.js";import"../../../chunk-IGE4Y5SE.js";import"../../../chunk-JFBCE4HN.js";import"../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../../../chunk-DN6X7SHW.js";import"../../../../chunk-CLUUA3HX.js";import"../../../../chunk-AUE7LM32.js";import"../../../../chunk-DZKFP6H2.js";import"../../../../chunk-J55GQLP4.js";import"../../../../chunk-VHZ6RL67.js";import"../../../../chunk-3MYDSQHF.js";import"../../../../chunk-NVKJ7ZLP.js";import"../../../../chunk-U2T5HPRD.js";import"../../../../chunk-6ES4KRFW.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-33ZE3DRQ.js";import"../../../../chunk-YV2TP44L.js";import"../../../../chunk-RLNIOJH3.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-SK7EPN6C.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-TODZ3TJR.js";import"../../../../chunk-Y5CVX5LJ.js";import"../../../../chunk-T4XJKM6B.js";import"../../../../chunk-N57Y7THE.js";import"../../../../chunk-ZJOX5HW4.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-GQLNG537.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-QQJNQNKP.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-MHR5OHT5.js";import"../../../../chunk-HSKDFEXW.js";import"../../../../chunk-F3CK3EJJ.js";import"../../../../chunk-3KM5ZOW2.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-D2KIGKBI.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-LEHBZKK3.js";import"../../../../chunk-GW7YIJPJ.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-335BUVBP.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-BN7ZXAZJ.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-CXI3RHPW.js";import"../../../../chunk-M5VIFG2V.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-NXAEBGMO.js";import"../../../../chunk-JLQRDFR5.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-FZCGRIOM.js";import"../../../../chunk-LHXFTFFM.js";import"../../../../chunk-43R5VGKT.js";import"../../../../chunk-ZDQO6CNY.js";import"../../../../chunk-YTUUU33R.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-QFYLJVJW.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../../chunk-IHVWDKDV.js";import"../../../../chunk-OTMTS5L4.js";import"../../../../chunk-652NT7OW.js";import"../../../../chunk-NMXRDF4T.js";import"../../../../chunk-Z3QZNLT5.js";import"../../../../chunk-R5COVIJM.js";import"../../../../chunk-KT2AMFVW.js";import"../../../../chunk-K4KKSBUW.js";import"../../../../chunk-7FBOMPO5.js";import"../../../../chunk-HVECVOIO.js";import"../../../../chunk-4KBOLN7Q.js";import"../../../../chunk-XHHAVKKV.js";import"../../../../chunk-4LJERO23.js";import"../../../../chunk-CA3GVT4D.js";import"../../../../chunk-HEB4YYM6.js";import"../../../../chunk-QLN6IOOY.js";import"../../../../chunk-ZQNGYJKJ.js";import"../../../../chunk-MQ55QUOJ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-HR6R7JXN.js";import"../../../../chunk-LXFWK3O2.js";import"../../../../chunk-2KACAQJS.js";import"../../../../chunk-U5BKU3OL.js";import"../../../../chunk-PSREELSQ.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-UORSJB4A.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-OSASE35V.js";import"../../../../chunk-WB5GRBHW.js";import"../../../../chunk-CE6XQDAG.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-EE72PCKT.js";import"../../../../chunk-ARL5WBDK.js";import"../../../../chunk-IKXUYCK7.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-7A4ZE5IS.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-WLJDMI7E.js";import"../../../../chunk-RNF6T6IO.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-2KFYIYLI.js";import"../../../../chunk-QBRRFFMZ.js";import"../../../../chunk-Z2AV4BWZ.js";import"../../../../chunk-LG3KEHGD.js";import"../../../../chunk-HI5FTI3M.js";import"../../../../chunk-FJOVMEPN.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-2IXP3IPE.js";import"../../../../chunk-OIQ5NQ5I.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-UU6UQ2QY.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-3PYDIBTX.js";import"../../../../chunk-A5BSUUNQ.js";import"../../../../chunk-4AWVU2OV.js";import"../../../../chunk-R4E2E4NN.js";import"../../../../chunk-VBPMVVLV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-3KGN6N7E.js";import"../../../../chunk-RFJ2LI64.js";import"../../../../chunk-CQAD5WML.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-O472FAYX.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../../../chunk-4KECSZTL.js";import"../../../../chunk-CLUUA3HX.js";import"../../../../chunk-AUE7LM32.js";import"../../../../chunk-DZKFP6H2.js";import"../../../../chunk-J55GQLP4.js";import"../../../../chunk-VHZ6RL67.js";import"../../../../chunk-3MYDSQHF.js";import"../../../../chunk-NVKJ7ZLP.js";import"../../../../chunk-U2T5HPRD.js";import"../../../../chunk-6ES4KRFW.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-33ZE3DRQ.js";import"../../../../chunk-YV2TP44L.js";import"../../../../chunk-RLNIOJH3.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-SK7EPN6C.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-TODZ3TJR.js";import"../../../../chunk-Y5CVX5LJ.js";import"../../../../chunk-T4XJKM6B.js";import"../../../../chunk-N57Y7THE.js";import"../../../../chunk-ZJOX5HW4.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-GQLNG537.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-QQJNQNKP.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-MHR5OHT5.js";import"../../../../chunk-HSKDFEXW.js";import"../../../../chunk-F3CK3EJJ.js";import"../../../../chunk-3KM5ZOW2.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-D2KIGKBI.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-LEHBZKK3.js";import"../../../../chunk-GW7YIJPJ.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-335BUVBP.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-BN7ZXAZJ.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-CXI3RHPW.js";import"../../../../chunk-M5VIFG2V.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-NXAEBGMO.js";import"../../../../chunk-JLQRDFR5.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-FZCGRIOM.js";import"../../../../chunk-LHXFTFFM.js";import"../../../../chunk-43R5VGKT.js";import"../../../../chunk-ZDQO6CNY.js";import"../../../../chunk-YTUUU33R.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-QFYLJVJW.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../../chunk-SZ64GAVG.js";import"../../../../chunk-OTMTS5L4.js";import"../../../../chunk-652NT7OW.js";import"../../../../chunk-NMXRDF4T.js";import"../../../../chunk-Z3QZNLT5.js";import"../../../../chunk-R5COVIJM.js";import"../../../../chunk-KT2AMFVW.js";import"../../../../chunk-K4KKSBUW.js";import"../../../../chunk-7FBOMPO5.js";import"../../../../chunk-HVECVOIO.js";import"../../../../chunk-4KBOLN7Q.js";import"../../../../chunk-XHHAVKKV.js";import"../../../../chunk-4LJERO23.js";import"../../../../chunk-CA3GVT4D.js";import"../../../../chunk-HEB4YYM6.js";import"../../../../chunk-QLN6IOOY.js";import"../../../../chunk-ZQNGYJKJ.js";import"../../../../chunk-MQ55QUOJ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-HR6R7JXN.js";import"../../../../chunk-LXFWK3O2.js";import"../../../../chunk-2KACAQJS.js";import"../../../../chunk-U5BKU3OL.js";import"../../../../chunk-PSREELSQ.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-UORSJB4A.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-OSASE35V.js";import"../../../../chunk-WB5GRBHW.js";import"../../../../chunk-CE6XQDAG.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-EE72PCKT.js";import"../../../../chunk-ARL5WBDK.js";import"../../../../chunk-IKXUYCK7.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-7A4ZE5IS.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-WLJDMI7E.js";import"../../../../chunk-RNF6T6IO.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-2KFYIYLI.js";import"../../../../chunk-QBRRFFMZ.js";import"../../../../chunk-Z2AV4BWZ.js";import"../../../../chunk-LG3KEHGD.js";import"../../../../chunk-HI5FTI3M.js";import"../../../../chunk-FJOVMEPN.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-2IXP3IPE.js";import"../../../../chunk-OIQ5NQ5I.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-UU6UQ2QY.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-3PYDIBTX.js";import"../../../../chunk-A5BSUUNQ.js";import"../../../../chunk-4AWVU2OV.js";import"../../../../chunk-R4E2E4NN.js";import"../../../../chunk-VBPMVVLV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-3KGN6N7E.js";import"../../../../chunk-RFJ2LI64.js";import"../../../../chunk-CQAD5WML.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-O472FAYX.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../../../chunk-DBDTE3EE.js";import"../../../../chunk-CLUUA3HX.js";import"../../../../chunk-AUE7LM32.js";import"../../../../chunk-DZKFP6H2.js";import"../../../../chunk-J55GQLP4.js";import"../../../../chunk-VHZ6RL67.js";import"../../../../chunk-3MYDSQHF.js";import"../../../../chunk-NVKJ7ZLP.js";import"../../../../chunk-U2T5HPRD.js";import"../../../../chunk-6ES4KRFW.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-33ZE3DRQ.js";import"../../../../chunk-YV2TP44L.js";import"../../../../chunk-RLNIOJH3.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-SK7EPN6C.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-TODZ3TJR.js";import"../../../../chunk-Y5CVX5LJ.js";import"../../../../chunk-T4XJKM6B.js";import"../../../../chunk-N57Y7THE.js";import"../../../../chunk-ZJOX5HW4.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-GQLNG537.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-QQJNQNKP.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-MHR5OHT5.js";import"../../../../chunk-HSKDFEXW.js";import"../../../../chunk-F3CK3EJJ.js";import"../../../../chunk-3KM5ZOW2.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-D2KIGKBI.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-LEHBZKK3.js";import"../../../../chunk-GW7YIJPJ.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-335BUVBP.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-BN7ZXAZJ.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-CXI3RHPW.js";import"../../../../chunk-M5VIFG2V.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-NXAEBGMO.js";import"../../../../chunk-JLQRDFR5.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-FZCGRIOM.js";import"../../../../chunk-LHXFTFFM.js";import"../../../../chunk-43R5VGKT.js";import"../../../../chunk-ZDQO6CNY.js";import"../../../../chunk-YTUUU33R.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-QFYLJVJW.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../../chunk-CEJ5WS4I.js";import"../../../../chunk-OTMTS5L4.js";import"../../../../chunk-652NT7OW.js";import"../../../../chunk-NMXRDF4T.js";import"../../../../chunk-Z3QZNLT5.js";import"../../../../chunk-R5COVIJM.js";import"../../../../chunk-KT2AMFVW.js";import"../../../../chunk-K4KKSBUW.js";import"../../../../chunk-7FBOMPO5.js";import"../../../../chunk-HVECVOIO.js";import"../../../../chunk-4KBOLN7Q.js";import"../../../../chunk-XHHAVKKV.js";import"../../../../chunk-4LJERO23.js";import"../../../../chunk-CA3GVT4D.js";import"../../../../chunk-HEB4YYM6.js";import"../../../../chunk-QLN6IOOY.js";import"../../../../chunk-ZQNGYJKJ.js";import"../../../../chunk-MQ55QUOJ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-HR6R7JXN.js";import"../../../../chunk-LXFWK3O2.js";import"../../../../chunk-2KACAQJS.js";import"../../../../chunk-U5BKU3OL.js";import"../../../../chunk-PSREELSQ.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-UORSJB4A.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-OSASE35V.js";import"../../../../chunk-WB5GRBHW.js";import"../../../../chunk-CE6XQDAG.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-EE72PCKT.js";import"../../../../chunk-ARL5WBDK.js";import"../../../../chunk-IKXUYCK7.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-7A4ZE5IS.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-WLJDMI7E.js";import"../../../../chunk-RNF6T6IO.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-2KFYIYLI.js";import"../../../../chunk-QBRRFFMZ.js";import"../../../../chunk-Z2AV4BWZ.js";import"../../../../chunk-LG3KEHGD.js";import"../../../../chunk-HI5FTI3M.js";import"../../../../chunk-FJOVMEPN.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-2IXP3IPE.js";import"../../../../chunk-OIQ5NQ5I.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-UU6UQ2QY.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-3PYDIBTX.js";import"../../../../chunk-A5BSUUNQ.js";import"../../../../chunk-4AWVU2OV.js";import"../../../../chunk-R4E2E4NN.js";import"../../../../chunk-VBPMVVLV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-3KGN6N7E.js";import"../../../../chunk-RFJ2LI64.js";import"../../../../chunk-CQAD5WML.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-O472FAYX.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../../../chunk-224UPIYS.js";import"../../../../chunk-VHZ6RL67.js";import"../../../../chunk-3MYDSQHF.js";import"../../../../chunk-NVKJ7ZLP.js";import"../../../../chunk-U2T5HPRD.js";import"../../../../chunk-6ES4KRFW.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-33ZE3DRQ.js";import"../../../../chunk-YV2TP44L.js";import"../../../../chunk-RLNIOJH3.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-SK7EPN6C.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-TODZ3TJR.js";import"../../../../chunk-Y5CVX5LJ.js";import"../../../../chunk-T4XJKM6B.js";import"../../../../chunk-N57Y7THE.js";import"../../../../chunk-ZJOX5HW4.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-GQLNG537.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-QQJNQNKP.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-MHR5OHT5.js";import"../../../../chunk-HSKDFEXW.js";import"../../../../chunk-F3CK3EJJ.js";import"../../../../chunk-3KM5ZOW2.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-D2KIGKBI.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-LEHBZKK3.js";import"../../../../chunk-GW7YIJPJ.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-335BUVBP.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-BN7ZXAZJ.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-CXI3RHPW.js";import"../../../../chunk-M5VIFG2V.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-NXAEBGMO.js";import"../../../../chunk-JLQRDFR5.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-FZCGRIOM.js";import"../../../../chunk-LHXFTFFM.js";import"../../../../chunk-43R5VGKT.js";import"../../../../chunk-ZDQO6CNY.js";import"../../../../chunk-YTUUU33R.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-QFYLJVJW.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../../chunk-E6KNAPIY.js";import"../../../../chunk-R5COVIJM.js";import"../../../../chunk-KT2AMFVW.js";import"../../../../chunk-K4KKSBUW.js";import"../../../../chunk-7FBOMPO5.js";import"../../../../chunk-HVECVOIO.js";import"../../../../chunk-4KBOLN7Q.js";import"../../../../chunk-XHHAVKKV.js";import"../../../../chunk-4LJERO23.js";import"../../../../chunk-CA3GVT4D.js";import"../../../../chunk-HEB4YYM6.js";import"../../../../chunk-QLN6IOOY.js";import"../../../../chunk-ZQNGYJKJ.js";import"../../../../chunk-MQ55QUOJ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-HR6R7JXN.js";import"../../../../chunk-LXFWK3O2.js";import"../../../../chunk-2KACAQJS.js";import"../../../../chunk-U5BKU3OL.js";import"../../../../chunk-PSREELSQ.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-UORSJB4A.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-OSASE35V.js";import"../../../../chunk-WB5GRBHW.js";import"../../../../chunk-CE6XQDAG.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-EE72PCKT.js";import"../../../../chunk-ARL5WBDK.js";import"../../../../chunk-IKXUYCK7.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-7A4ZE5IS.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-WLJDMI7E.js";import"../../../../chunk-RNF6T6IO.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-2KFYIYLI.js";import"../../../../chunk-QBRRFFMZ.js";import"../../../../chunk-Z2AV4BWZ.js";import"../../../../chunk-LG3KEHGD.js";import"../../../../chunk-HI5FTI3M.js";import"../../../../chunk-FJOVMEPN.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-2IXP3IPE.js";import"../../../../chunk-OIQ5NQ5I.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-UU6UQ2QY.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-3PYDIBTX.js";import"../../../../chunk-A5BSUUNQ.js";import"../../../../chunk-4AWVU2OV.js";import"../../../../chunk-R4E2E4NN.js";import"../../../../chunk-VBPMVVLV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-3KGN6N7E.js";import"../../../../chunk-RFJ2LI64.js";import"../../../../chunk-CQAD5WML.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-O472FAYX.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};