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.
- package/dist/analytics-23GM6KJU.js +1 -0
- package/dist/analytics-743FYOAE.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-RPCIFYCY.js → chunk-2EQRXSF6.js} +2 -2
- package/dist/{chunk-NXAEBGMO.js → chunk-2IXP3IPE.js} +1 -1
- package/dist/{chunk-T4XJKM6B.js → chunk-2KACAQJS.js} +1 -1
- package/dist/chunk-2KFYIYLI.js +1 -0
- package/dist/chunk-2OCSYLKZ.js +1 -0
- package/dist/{chunk-AQKWPRZE.js → chunk-2PILNMHJ.js} +2 -2
- package/dist/chunk-36S6MFJQ.js +47 -0
- package/dist/{chunk-TFPW2VGN.js → chunk-3DB4EC62.js} +1 -1
- package/dist/chunk-3GL3IT4K.js +16 -0
- package/dist/{chunk-C3RFAKWR.js → chunk-3JRB7Q3T.js} +1 -1
- package/dist/chunk-3KGN6N7E.js +1 -0
- package/dist/chunk-3OYMK5X6.js +11 -0
- package/dist/chunk-3PYDIBTX.js +1 -0
- package/dist/chunk-422BGHXN.js +1 -0
- package/dist/chunk-43C32FUQ.js +1 -0
- package/dist/chunk-4AN7ECPE.js +9 -0
- package/dist/chunk-4AWVU2OV.js +1 -0
- package/dist/chunk-4IP37MBX.js +1 -0
- package/dist/chunk-4KBOLN7Q.js +8 -0
- package/dist/chunk-4LJERO23.js +89 -0
- package/dist/chunk-4M5WHOZW.js +1 -0
- package/dist/chunk-4RO35FFQ.js +1 -0
- package/dist/chunk-4ZS5354G.js +3 -0
- package/dist/chunk-55AWBPKU.js +7 -0
- package/dist/chunk-5BUYR23E.js +1 -0
- package/dist/chunk-5EDA7PVE.js +11 -0
- package/dist/{chunk-UKWIWCOH.js → chunk-5P6OELKZ.js} +1 -1
- package/dist/chunk-5PVXLQNX.js +1 -0
- package/dist/{chunk-J5ERDFIC.js → chunk-5S2P4MHJ.js} +1 -1
- package/dist/{chunk-26PWHH3B.js → chunk-5TJJVSCI.js} +1 -1
- package/dist/chunk-5TOK5OJS.js +1 -0
- package/dist/chunk-5ZG2SWU2.js +1 -0
- package/dist/{chunk-SLY27GDC.js → chunk-62F4ZMSC.js} +2 -2
- package/dist/chunk-652NT7OW.js +1 -0
- package/dist/chunk-6B5KM3A4.js +97 -0
- package/dist/chunk-6LCESSY3.js +1 -0
- package/dist/chunk-6QHDMCAA.js +1 -0
- package/dist/{chunk-D2KIGKBI.js → chunk-7A4ZE5IS.js} +60 -60
- package/dist/{chunk-CGVROSPS.js → chunk-7AQZKPJU.js} +1 -1
- package/dist/chunk-7FBOMPO5.js +203 -0
- package/dist/chunk-7HECBXSP.js +1 -0
- package/dist/chunk-7UK565VJ.js +1 -0
- package/dist/{chunk-LHXFTFFM.js → chunk-A5BSUUNQ.js} +1 -1
- package/dist/chunk-ADGE7MKB.js +1 -0
- package/dist/chunk-AEWRZ7AE.js +1 -0
- package/dist/chunk-ALDJTWCO.js +1 -0
- package/dist/chunk-ARL5WBDK.js +1 -0
- package/dist/chunk-AXFEIJC7.js +1 -0
- package/dist/{chunk-KZRLZWOU.js → chunk-AYGL6F3P.js} +1 -1
- package/dist/{chunk-URXM5A2K.js → chunk-AYTTE7X5.js} +1 -1
- package/dist/{chunk-3ODQKAEA.js → chunk-BDIZUTKC.js} +1 -1
- package/dist/chunk-BQKF4SRH.js +6 -0
- package/dist/chunk-C2AOCLEZ.js +1 -0
- package/dist/{chunk-WRZWHT6M.js → chunk-C2SGJ5IG.js} +1 -1
- package/dist/chunk-C3S3UMV3.js +1 -0
- package/dist/{chunk-WBJ6ZHYH.js → chunk-C5DKLOW4.js} +37 -37
- package/dist/chunk-C72QNK6O.js +4 -0
- package/dist/{chunk-6ES4KRFW.js → chunk-CA3GVT4D.js} +1 -1
- package/dist/chunk-CCLU5ZRK.js +9 -0
- package/dist/chunk-CE6XQDAG.js +10 -0
- package/dist/chunk-CEJ5WS4I.js +5 -0
- package/dist/{chunk-VEUKT5EI.js → chunk-CIBBQO2L.js} +2 -2
- package/dist/{chunk-IILLQOUC.js → chunk-CKJXJ6HD.js} +1 -1
- package/dist/{chunk-MEYVUHQH.js → chunk-COGKVNQB.js} +1 -1
- package/dist/chunk-CQAD5WML.js +1 -0
- package/dist/chunk-CQPZOXWO.js +6 -0
- package/dist/{chunk-62EOM3Y2.js → chunk-CZYQIWNL.js} +1 -1
- package/dist/chunk-DA5RQFXA.js +10 -0
- package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
- package/dist/{chunk-Q5IC3IYY.js → chunk-DESZFFOK.js} +1 -1
- package/dist/{chunk-PLSS456F.js → chunk-DKR7562G.js} +1 -1
- package/dist/{chunk-LGXI7EGM.js → chunk-DNNTAMC5.js} +2 -2
- package/dist/chunk-DUPQUQ2Z.js +1 -0
- package/dist/{chunk-Q4JYAUVL.js → chunk-DUTIWCJ2.js} +1 -1
- package/dist/chunk-E6JEBSHZ.js +20 -0
- package/dist/chunk-E6KNAPIY.js +4 -0
- package/dist/chunk-E7XCCLQH.js +1 -0
- package/dist/chunk-EE72PCKT.js +1 -0
- package/dist/chunk-EEYXBKR7.js +4 -0
- package/dist/{chunk-ZRI3SSLG.js → chunk-EGLA3WLZ.js} +2 -2
- package/dist/chunk-EVQPYZ7F.js +5 -0
- package/dist/chunk-FDFE3SSG.js +35 -0
- package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
- package/dist/chunk-FI5TQHUA.js +1 -0
- package/dist/chunk-FIKZQ4RA.js +1 -0
- package/dist/chunk-FJOVMEPN.js +3 -0
- package/dist/{chunk-ER6C5WS3.js → chunk-FLARCZ5F.js} +1 -1
- package/dist/chunk-FOMMPAWZ.js +1 -0
- package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
- package/dist/{chunk-HXZAY5OA.js → chunk-G3DXNSA2.js} +1 -1
- package/dist/{chunk-XWSWXQCC.js → chunk-G7JO3W2R.js} +1 -1
- package/dist/{chunk-WESTVWWD.js → chunk-GABIWYY3.js} +1 -1
- package/dist/chunk-GFSEU7PF.js +6 -0
- package/dist/chunk-GFVUWVEM.js +1 -0
- package/dist/{chunk-ISKQQXLZ.js → chunk-GHNSXX7R.js} +1 -1
- package/dist/{chunk-2L6AN3QA.js → chunk-GQ3LY7BY.js} +1 -1
- package/dist/{chunk-2A2JSAAA.js → chunk-H45S4MGC.js} +1 -1
- package/dist/chunk-HEB4YYM6.js +9 -0
- package/dist/{chunk-CXI3RHPW.js → chunk-HI5FTI3M.js} +1 -1
- package/dist/chunk-HJ24NEP5.js +1 -0
- package/dist/chunk-HQFXVVTB.js +1 -0
- package/dist/{chunk-TODZ3TJR.js → chunk-HR6R7JXN.js} +1 -1
- package/dist/chunk-HRHJA5ZP.js +3 -0
- package/dist/{chunk-QEKGGTMN.js → chunk-HT5JQJMB.js} +1 -1
- package/dist/chunk-HT7273V7.js +1 -0
- package/dist/{chunk-UXVXVI6O.js → chunk-HUB4HDWN.js} +78 -76
- package/dist/chunk-IATNIWOC.js +13 -0
- package/dist/chunk-IHVWDKDV.js +2 -0
- package/dist/{chunk-3KM5ZOW2.js → chunk-IKXUYCK7.js} +1 -1
- package/dist/chunk-IVQN2RUP.js +1 -0
- package/dist/chunk-IWNFPBH2.js +33 -0
- package/dist/{chunk-ESFCYB46.js → chunk-J324ZPO6.js} +1 -1
- package/dist/{chunk-KNWT7JLL.js → chunk-JJQ3DJG5.js} +2 -2
- package/dist/{chunk-7CCTPBCT.js → chunk-JLAN6JXJ.js} +1 -1
- package/dist/chunk-K2GCCCCV.js +1 -0
- package/dist/{chunk-NVKJ7ZLP.js → chunk-K4KKSBUW.js} +1 -1
- package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
- package/dist/{chunk-QDCLL5OI.js → chunk-K5UVCBIP.js} +1 -1
- package/dist/{chunk-64G5TGFF.js → chunk-KN2JIDNO.js} +1 -1
- package/dist/chunk-KORVOCNN.js +1 -0
- package/dist/chunk-KRQCQ57O.js +1 -0
- package/dist/{chunk-3MYDSQHF.js → chunk-KT2AMFVW.js} +1 -1
- package/dist/chunk-L23Q53FM.js +70 -0
- package/dist/{chunk-UBP3LQFY.js → chunk-L3DTONOI.js} +2 -2
- package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
- package/dist/chunk-LRETOC6P.js +1 -0
- package/dist/chunk-LXFWK3O2.js +1 -0
- package/dist/chunk-LZ2TN7EZ.js +1 -0
- package/dist/chunk-MBAPM5HA.js +15 -0
- package/dist/{chunk-UUAKOX7E.js → chunk-MGZK5EQW.js} +2 -2
- package/dist/chunk-MKUXSM33.js +1 -0
- package/dist/chunk-MQ55QUOJ.js +276 -0
- package/dist/chunk-NAQJMRPT.js +2296 -0
- package/dist/{chunk-DZKFP6H2.js → chunk-NMXRDF4T.js} +1 -1
- package/dist/chunk-NOWM3CCG.js +1 -0
- package/dist/chunk-NVDFXEQ5.js +5 -0
- package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
- package/dist/{chunk-B2O3ANRZ.js → chunk-OCILF2DD.js} +1 -1
- package/dist/{chunk-67L7FIB6.js → chunk-OGBMFGYC.js} +1 -1
- package/dist/chunk-OIQ5NQ5I.js +18 -0
- package/dist/chunk-OKRKVVTK.js +103 -0
- package/dist/chunk-ONNUEQGR.js +3 -0
- package/dist/chunk-OSASE35V.js +6 -0
- package/dist/chunk-OTMTS5L4.js +3 -0
- package/dist/chunk-OWPAHXDF.js +3 -0
- package/dist/chunk-P7HZGJRU.js +6 -0
- package/dist/chunk-PIU3GVJ4.js +1 -0
- package/dist/{chunk-2WJOTJOD.js → chunk-PSNCWS3Q.js} +2 -2
- package/dist/chunk-PSREELSQ.js +22 -0
- package/dist/{chunk-AQ6EVL73.js → chunk-Q2CKRCPM.js} +1 -1
- package/dist/chunk-QA2D7DT2.js +1 -0
- package/dist/chunk-QBRRFFMZ.js +1 -0
- package/dist/chunk-QDMTJKQ3.js +1 -0
- package/dist/{chunk-3Z3MADXZ.js → chunk-QIJ7D2JS.js} +1 -1
- package/dist/chunk-QLN6IOOY.js +1 -0
- package/dist/chunk-QU3USVKT.js +1 -0
- package/dist/chunk-R2E6TMBE.js +22 -0
- package/dist/chunk-R4E2E4NN.js +1 -0
- package/dist/chunk-R5COVIJM.js +1 -0
- package/dist/chunk-RFJ2LI64.js +81 -0
- package/dist/chunk-RNF6T6IO.js +5 -0
- package/dist/chunk-RSNFNZ6F.js +2 -0
- package/dist/{chunk-I4CEH7AK.js → chunk-RZ3UGOV4.js} +2 -2
- package/dist/{chunk-35XFNKNB.js → chunk-S23ZG2RG.js} +1 -1
- package/dist/{chunk-PF53E2DC.js → chunk-SAK42CAY.js} +1 -1
- package/dist/chunk-SBX7CMHM.js +1 -0
- package/dist/{chunk-S5P7KWY4.js → chunk-SGQTRKYZ.js} +1 -1
- package/dist/chunk-SNPJVVVE.js +5 -0
- package/dist/chunk-SNRGS3YU.js +1 -0
- package/dist/chunk-SUTSCIXU.js +7 -0
- package/dist/chunk-SWFCT5B7.js +2 -0
- package/dist/{chunk-4KECSZTL.js → chunk-SZ64GAVG.js} +2 -2
- package/dist/{chunk-WBVS5NBV.js → chunk-TDHIOONG.js} +2 -2
- package/dist/{chunk-W37IFK3P.js → chunk-TLN4BKXJ.js} +102 -102
- package/dist/{chunk-QW52RPAU.js → chunk-TXMZPF2U.js} +1 -1
- package/dist/chunk-TZHVCMZN.js +6 -0
- package/dist/{chunk-IHXGZW42.js → chunk-TZOB52QK.js} +1 -1
- package/dist/{chunk-N57Y7THE.js → chunk-U5BKU3OL.js} +1 -1
- package/dist/{chunk-Y55T4IIQ.js → chunk-UK3BDOHR.js} +1 -1
- package/dist/chunk-UORSJB4A.js +857 -0
- package/dist/chunk-UU6UQ2QY.js +1 -0
- package/dist/{chunk-PWAT52M4.js → chunk-UY44O4IZ.js} +1 -1
- package/dist/{chunk-QF5WKTPD.js → chunk-V3H6SYK3.js} +1 -1
- package/dist/{chunk-YTUUU33R.js → chunk-VBPMVVLV.js} +1 -1
- package/dist/{chunk-SNH4XZ6E.js → chunk-VGBCG3I5.js} +1 -1
- package/dist/{chunk-QEVTBD33.js → chunk-VHRUPKWH.js} +1 -1
- package/dist/chunk-VVHJ2AUF.js +3 -0
- package/dist/chunk-WB5GRBHW.js +1 -0
- package/dist/{chunk-YSWVYPWR.js → chunk-WBKQSSWW.js} +1 -1
- package/dist/{chunk-SIL6HPMK.js → chunk-WDXDT7XY.js} +2 -2
- package/dist/{chunk-SACNUF4I.js → chunk-WHOD5I7N.js} +1 -1
- package/dist/{chunk-Z2WAW6MM.js → chunk-WL3M63DG.js} +1 -1
- package/dist/{chunk-LEHBZKK3.js → chunk-WLJDMI7E.js} +1 -1
- package/dist/{chunk-PTSCGSQV.js → chunk-WZ3QWPK5.js} +2 -2
- package/dist/{chunk-H6GNKWYM.js → chunk-X5V7AGVU.js} +1 -1
- package/dist/{chunk-RPVZ2JON.js → chunk-X76AYO36.js} +1 -1
- package/dist/chunk-XB7H2RYV.js +31 -0
- package/dist/chunk-XHHAVKKV.js +1 -0
- package/dist/chunk-XKNDU62O.js +1 -0
- package/dist/chunk-XVJRGOJA.js +4 -0
- package/dist/chunk-Y3ZAQZPH.js +16 -0
- package/dist/chunk-YF4AXKM4.js +1 -0
- package/dist/chunk-YGN65N6W.js +16 -0
- package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
- package/dist/chunk-YTC367JI.js +3 -0
- package/dist/{chunk-ZBL7XMJ6.js → chunk-Z2FGYMJ6.js} +2 -2
- package/dist/chunk-Z3QZNLT5.js +1 -0
- package/dist/chunk-ZC3EDADH.js +26 -0
- package/dist/chunk-ZLITAXPT.js +1 -0
- package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
- package/dist/chunk-ZNEQZV5K.js +3 -0
- package/dist/chunk-ZOU6SOXW.js +20 -0
- package/dist/{chunk-YV2TP44L.js → chunk-ZQNGYJKJ.js} +1 -1
- package/dist/chunk-ZRM7ESSS.js +4 -0
- package/dist/chunk-ZX33FUW3.js +5 -0
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.d.ts +10 -10
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.d.ts +7 -7
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +21 -21
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +23 -23
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +90 -90
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.d.ts +7 -7
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.d.ts +24 -24
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.d.ts +7 -7
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli-version-check-BW2CUMX4.js +1 -0
- package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
- package/dist/command-json-schema-LGR44Q2G.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-TODPQ2LC.js +1 -0
- package/dist/configs/all.yml +9 -0
- package/dist/configs/recommended.yml +9 -0
- package/dist/custom-oclif-loader-BPE2TH4B.js +1 -0
- package/dist/data/filters.json +41 -2
- package/dist/data/local_block_entry.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/objects.json +279 -44
- package/dist/data/section.json +15 -1
- package/dist/data/setting.json +9 -5
- package/dist/data/shopify_system_translations.json +312 -32
- package/dist/data/strict_settings.json +24 -0
- package/dist/data/tags.json +57 -24
- package/dist/data/theme_block.json +1 -1
- package/dist/deprecations-5CSI24TV.js +1 -0
- package/dist/dist-LPKYTX3M.js +1 -0
- package/dist/dist-WT6MPTKJ.js +1 -0
- package/dist/environment-5P7JJ3GI.js +1 -0
- package/dist/environments-3HTT5CVC.js +1 -0
- package/dist/error-PFOKPWFX.js +1 -0
- package/dist/error-handler-23FASAEU.js +1 -0
- package/dist/fs-RA25PWSJ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -2
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/http-EVDTYINS.js +1 -0
- package/dist/http-proxy-node16-NZZ674YW.js +38 -0
- package/dist/index.js +12 -12
- package/dist/is-global-3DNAMKUU.js +1 -0
- package/dist/json-error-HGCRNJRF.js +1 -0
- package/dist/latest-version-75YEFEMK.js +9 -0
- package/dist/lib-4ZA53LTZ.js +1 -0
- package/dist/lib-F3MES3XF.js +1 -0
- package/dist/lib-XPJABU24.js +1 -0
- package/dist/{local-OKPVB4NH.js → local-LNGPIGLG.js} +1 -1
- package/dist/metadata-VHLSUKCW.js +1 -0
- package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
- package/dist/node-package-manager-SSFNUVWB.js +1 -0
- package/dist/notifications-system-3NQRYYKW.js +1 -0
- package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
- package/dist/os-KIKVJONE.js +1 -0
- package/dist/output-DUJTSURG.js +1 -0
- package/dist/{prettier-EGVCP5CY.js → prettier-NOE3TJJ5.js} +1 -1
- package/dist/registry-auth-token-EDH77OOW.js +1 -0
- package/dist/registry-url-JMNV3LLX.js +1 -0
- package/dist/semver-HHZRKD6Y.js +1 -0
- package/dist/system-CGOZSROX.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-YMBFS3NG.js +1 -0
- package/dist/upgrade-73RRPDSC.js +1 -0
- package/dist/version-AMUEEBIG.js +1 -0
- package/dist/version-S4MGCKDO.js +1 -0
- package/dist/workerd-DRWNY3S4.js +18 -0
- package/oclif.manifest.json +25618 -1167
- package/package.json +7 -7
- package/dist/analytics-NMMVOF4B.js +0 -1
- package/dist/analytics-UK77WNLG.js +0 -1
- package/dist/chunk-224UPIYS.js +0 -4
- package/dist/chunk-27NXPOAS.js +0 -1
- package/dist/chunk-2MT3LSMZ.js +0 -1
- package/dist/chunk-2T4HDR6R.js +0 -70
- package/dist/chunk-2ZBXHCQZ.js +0 -1
- package/dist/chunk-335BUVBP.js +0 -1
- package/dist/chunk-33ZE3DRQ.js +0 -16
- package/dist/chunk-34MOWGRL.js +0 -1
- package/dist/chunk-3JSKNXL7.js +0 -1
- package/dist/chunk-3MG4MTWQ.js +0 -1
- package/dist/chunk-3XRI3D44.js +0 -1
- package/dist/chunk-43R5VGKT.js +0 -1
- package/dist/chunk-4WYKPIN3.js +0 -1
- package/dist/chunk-5AEZJZNQ.js +0 -1
- package/dist/chunk-5ED7SOQZ.js +0 -20
- package/dist/chunk-5IDJALJH.js +0 -1
- package/dist/chunk-66TMIQMB.js +0 -1
- package/dist/chunk-74NRFUGQ.js +0 -1
- package/dist/chunk-7GUMJ5E4.js +0 -1
- package/dist/chunk-7NFTSBHQ.js +0 -10
- package/dist/chunk-ACZNWIRY.js +0 -1
- package/dist/chunk-AUE7LM32.js +0 -1
- package/dist/chunk-AXL2VIWA.js +0 -16
- package/dist/chunk-B3ZJGYZY.js +0 -3
- package/dist/chunk-BOAGJ6P5.js +0 -1
- package/dist/chunk-BWN2QG6D.js +0 -5
- package/dist/chunk-CCUQM4FX.js +0 -6
- package/dist/chunk-CLUUA3HX.js +0 -3
- package/dist/chunk-CYEEGTVZ.js +0 -11
- package/dist/chunk-DBDTE3EE.js +0 -5
- package/dist/chunk-DLVB3237.js +0 -31
- package/dist/chunk-DN6X7SHW.js +0 -2
- package/dist/chunk-E5COIKGY.js +0 -5
- package/dist/chunk-E6RONHMT.js +0 -1
- package/dist/chunk-EAZIQI2D.js +0 -1
- package/dist/chunk-EEY4FKAW.js +0 -1
- package/dist/chunk-EKFPTBXC.js +0 -1
- package/dist/chunk-F3CK3EJJ.js +0 -1
- package/dist/chunk-FEBOZ2XX.js +0 -31
- package/dist/chunk-FFSDGRAN.js +0 -1
- package/dist/chunk-FZCGRIOM.js +0 -1
- package/dist/chunk-GNCVDN7U.js +0 -1
- package/dist/chunk-GQLNG537.js +0 -836
- package/dist/chunk-GVI3DWSB.js +0 -4
- package/dist/chunk-GW7YIJPJ.js +0 -5
- package/dist/chunk-H6GYBLVQ.js +0 -2
- package/dist/chunk-HB3MJYBK.js +0 -1
- package/dist/chunk-HSKDFEXW.js +0 -1
- package/dist/chunk-HTRJU4R4.js +0 -1
- package/dist/chunk-I7PEEJVH.js +0 -1
- package/dist/chunk-IHMATNOR.js +0 -1
- package/dist/chunk-IJY3RJPJ.js +0 -47
- package/dist/chunk-J3JPJCWP.js +0 -1
- package/dist/chunk-J55GQLP4.js +0 -1
- package/dist/chunk-JLQRDFR5.js +0 -18
- package/dist/chunk-JPWRZ5SL.js +0 -16
- package/dist/chunk-K7ZSPQKL.js +0 -4
- package/dist/chunk-L5TSPCSY.js +0 -26
- package/dist/chunk-LUGMXSRI.js +0 -9
- package/dist/chunk-M2CWCOFU.js +0 -11
- package/dist/chunk-M5VIFG2V.js +0 -1
- package/dist/chunk-MADINS4Z.js +0 -1
- package/dist/chunk-MGHPF7HU.js +0 -6
- package/dist/chunk-MHR5OHT5.js +0 -10
- package/dist/chunk-MXEXP3HT.js +0 -15
- package/dist/chunk-OJULL7HT.js +0 -1
- package/dist/chunk-OMPQ7REW.js +0 -3
- package/dist/chunk-OR4IJ4BQ.js +0 -1
- package/dist/chunk-P2RMFHQP.js +0 -1
- package/dist/chunk-P4VZYOKO.js +0 -15
- package/dist/chunk-PDZBKVWL.js +0 -97
- package/dist/chunk-Q2KWXZQB.js +0 -12
- package/dist/chunk-QFSENE5T.js +0 -3
- package/dist/chunk-QFWWCZOI.js +0 -1
- package/dist/chunk-QFYLJVJW.js +0 -77
- package/dist/chunk-QQJNQNKP.js +0 -6
- package/dist/chunk-R4UVIYZP.js +0 -4
- package/dist/chunk-RLNIOJH3.js +0 -272
- package/dist/chunk-RW6G4ZPU.js +0 -1
- package/dist/chunk-S4LOWCGS.js +0 -1
- package/dist/chunk-SB27UOXX.js +0 -1
- package/dist/chunk-SHD4VV5V.js +0 -3
- package/dist/chunk-SK7EPN6C.js +0 -1
- package/dist/chunk-TAWCKJKP.js +0 -1
- package/dist/chunk-U2T5HPRD.js +0 -319
- package/dist/chunk-U6YOP562.js +0 -1
- package/dist/chunk-UPPO3BMT.js +0 -7
- package/dist/chunk-USXIXANP.js +0 -103
- package/dist/chunk-UV5GAGAD.js +0 -1
- package/dist/chunk-UY6W2EVZ.js +0 -1
- package/dist/chunk-UYELAINQ.js +0 -16
- package/dist/chunk-V75WUEFU.js +0 -1
- package/dist/chunk-VAVXDIUX.js +0 -6
- package/dist/chunk-VGSH52JM.js +0 -1
- package/dist/chunk-VHZ6RL67.js +0 -1
- package/dist/chunk-VQA3X7O3.js +0 -1
- package/dist/chunk-VZCMJRYV.js +0 -1
- package/dist/chunk-W56ZGEQQ.js +0 -2265
- package/dist/chunk-WCC52MR2.js +0 -1
- package/dist/chunk-WSDKCQH6.js +0 -6
- package/dist/chunk-X2PFXSU4.js +0 -1
- package/dist/chunk-X5NIAZA4.js +0 -1
- package/dist/chunk-XBMD3FEZ.js +0 -3
- package/dist/chunk-XDVPIGXE.js +0 -2
- package/dist/chunk-XLIJYJ6Q.js +0 -1
- package/dist/chunk-XUHGWIWW.js +0 -4
- package/dist/chunk-Y5CVX5LJ.js +0 -1
- package/dist/chunk-Y6J46XYF.js +0 -3
- package/dist/chunk-YKMINHYY.js +0 -3
- package/dist/chunk-ZDQO6CNY.js +0 -1
- package/dist/chunk-ZGASBRSQ.js +0 -5
- package/dist/chunk-ZGBTO46A.js +0 -1
- package/dist/chunk-ZJOX5HW4.js +0 -22
- package/dist/chunk-ZOOT3GBY.js +0 -5
- package/dist/command-json-schema-F5XF7XHL.js +0 -1
- package/dist/conf-store-5CBLWTOC.js +0 -1
- package/dist/custom-oclif-loader-UDVUFKMD.js +0 -1
- package/dist/deprecations-EOHPSTCS.js +0 -1
- package/dist/dist-RNV3GFZ7.js +0 -1
- package/dist/dist-ZFKWJVNB.js +0 -1
- package/dist/environment-O7ECODHU.js +0 -1
- package/dist/environments-4FLRZW4P.js +0 -1
- package/dist/error-JY2ADS6S.js +0 -1
- package/dist/error-handler-4GCXKC6I.js +0 -1
- package/dist/fs-XS5YF34R.js +0 -1
- package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
- package/dist/is-global-27MUENOK.js +0 -1
- package/dist/json-error-S5XFS3UX.js +0 -1
- package/dist/latest-version-LDWU5F7A.js +0 -49
- package/dist/lib-PJHT4MKY.js +0 -1
- package/dist/lib-VKSQ65BQ.js +0 -1
- package/dist/lib-YEZOHXF3.js +0 -1
- package/dist/metadata-2YJBAKR7.js +0 -1
- package/dist/node-package-manager-B3OW3PFQ.js +0 -1
- package/dist/notifications-system-BWTDYBG2.js +0 -1
- package/dist/os-F6QKJCFW.js +0 -1
- package/dist/output-BRIPK7UC.js +0 -1
- package/dist/system-466QKFDI.js +0 -1
- package/dist/ui-VJTNGCS6.js +0 -1
- package/dist/upgrade-VHVJLXKX.js +0 -1
- package/dist/version-FETZRLZO.js +0 -1
- package/dist/version-T4XXTJMB.js +0 -1
- package/dist/workerd-32DMKLMN.js +0 -18
- /package/dist/{chunk-YLQ3LNNY.js → chunk-HVECVOIO.js} +0 -0
- /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
package/dist/chunk-P4VZYOKO.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{Bb as ms,Da as cs,Oa as hs,Pa as us,Sa as fs,Va as ds,ab as ps,la as wt,oa as be,qb as kt,sb as gs,ta as ls,va as bt}from"./chunk-JLQRDFR5.js";import{c as we,f as yt,h as as}from"./chunk-IWTNUJGY.js";import{a as X,c as gi,e as mi,g as ye}from"./chunk-VKWPEFWQ.js";var ui=gi(l=>{"use strict";ye();Object.defineProperty(l,"__esModule",{value:!0});var yi=X("stream"),W=X("path"),G=X("fs"),Es=X("crypto"),O=class{constructor(e,s,i,r,n){this.kind=e,this.input=s,this.begin=i,this.end=r,this.file=n}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,s]=[1,1];for(let i=0;i<this.begin;i++)this.input[i]===`
|
|
2
|
-
`?(e++,s=1):s++;return[e,s]}size(){return this.end-this.begin}},D=class{liquidMethodMissing(e,s){}},wi=Object.prototype.toString,ys=String.prototype.toLowerCase,Qt=Object.hasOwnProperty;function d(t){return typeof t=="string"}function x(t){return typeof t=="function"}function bi(t){return t&&x(t.then)}function _e(t){return t&&x(t.next)&&x(t.throw)&&x(t.return)}function Kt(t){return function(...e){return new Promise((s,i)=>{t(...e,(r,n)=>{r?i(r):s(n)})})}}function h(t){return t=m(t),d(t)?t:k(t)?"":S(t)?t.map(e=>h(e)).join(""):String(t)}function ge(t){return t=m(t),S(t)?t:d(t)&&t.length>0?[t]:Ti(t)?Array.from(t):dt(t)?Object.keys(t).map(e=>[e,t[e]]):[]}function L(t){return t=m(t),k(t)?[]:S(t)?t:[t]}function m(t){return t instanceof D&&x(t.valueOf)?t.valueOf():t}function xt(t){return+m(t)||0}function ft(t){return typeof t=="number"}function Vs(t){return t&&x(t.toLiquid)?Vs(t.toLiquid()):t}function k(t){return t==null}function ki(t){return t===void 0}function S(t){return wi.call(t)==="[object Array]"}function Ps(t){return t&&ft(t.length)}function Ti(t){return dt(t)&&Symbol.iterator in t}function ws(t,e){t=t||{};for(let s in t)if(Qt.call(t,s)&&e(t[s],s,t)===!1)break;return t}function xi(t){return t[t.length-1]}function dt(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function Cs(t,e,s=1){let i=[];for(let r=t;r<e;r+=s)i.push(r);return i}function oe(t,e,s=" "){return $s(t,e,s,(i,r)=>r+i)}function Si(t,e,s=" "){return $s(t,e,s,(i,r)=>i+r)}function $s(t,e,s,i){t=String(t);let r=e-t.length;return r<=0?t:i(t,s.repeat(r))}function js(t){return t}function _i(t){return[...t].some(s=>s>="a"&&s<="z")?t.toUpperCase():t.toLowerCase()}function Li(t,e){return t.length>e?t.slice(0,e-3)+"...":t}function Fi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||t<e?-1:t>e?1:0}function Oi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||(t=ys.call(t),e=ys.call(e),t<e)?-1:t>e?1:0}function pt(t){return function(...e){return t.call(this,...e.map(m))}}function V(t){return function(...e){return t.call(this,...e.map(xt))}}function*ke(t){let e=new Set;for(let s of t){let i=JSON.stringify(s);e.has(i)||(e.add(i),yield s)}}var bs="__liquidClass__",E=class extends Error{constructor(e,s){super(typeof e=="string"?e:e.message),this.context="",typeof e!="string"&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:s,enumerable:!1}),Object.defineProperty(this,bs,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:vi(this.token),enumerable:!1}),this.message=zi(this.message,this.token),this.stack=this.message+`
|
|
3
|
-
`+this.context+`
|
|
4
|
-
`+this.stack,this.originalError&&(this.stack+=`
|
|
5
|
-
From `+this.originalError.stack)}static is(e){return e?.[bs]==="LiquidError"}},Le=class extends E{constructor(e,s){super(e,s),this.name="TokenizationError",super.update()}},Fe=class extends E{constructor(e,s){super(e,s),this.name="ParseError",this.message=e.message,super.update()}},Oe=class extends E{constructor(e,s){super(e,s.token),this.name="RenderError",this.message=e.message,super.update()}static is(e){return e.name==="RenderError"}},ve=class extends E{constructor(e){super(e[0],e[0].token),this.errors=e,this.name="LiquidErrors";let s=e.length>1?"s":"";this.message=`${e.length} error${s} found`,super.update()}static is(e){return e.name==="LiquidErrors"}},ze=class extends E{constructor(e,s){super(e,s),this.name="UndefinedVariableError",this.message=e.message,super.update()}},St=class extends Error{constructor(e){super(`undefined variable: ${e}`),this.name="InternalUndefinedVariableError",this.variableName=e}},Re=class extends Error{constructor(e){super(e),this.name="AssertionError",this.message=e+""}};function vi(t){let[e,s]=t.getPosition(),i=t.input.split(`
|
|
6
|
-
`),r=Math.max(e-2,1),n=Math.min(e+3,i.length);return Cs(r,n+1).map(a=>{let c=a===e?">> ":" ",f=oe(String(a),String(n).length),u=`${c}${f}| `,p=a===e?`
|
|
7
|
-
`+oe("^",s+u.length):"";return u+=i[a-1],u+=p,u}).join(`
|
|
8
|
-
`)}function zi(t,e){e.file&&(t+=`, file:${e.file}`);let[s,i]=e.getPosition();return t+=`, line:${s}, col:${i}`,t}var w=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Ri=1,te=4,ks=8,Is=16,Ai=32,Ni=64,qi=128;function Te(t){let e=t.charCodeAt(0);return e>=128?!w[e]:!!(w[e]&Ri)}w[160]=w[5760]=w[6158]=w[8192]=w[8193]=w[8194]=w[8195]=w[8196]=w[8197]=w[8198]=w[8199]=w[8200]=w[8201]=w[8202]=w[8232]=w[8233]=w[8239]=w[8287]=w[12288]=te;w[8220]=w[8221]=qi;function _(t,e){if(!t){let s=typeof e=="function"?e():e||`expect ${t} to be true`;throw new Re(s)}}function Ae(t,e=`unexpected ${JSON.stringify(t)}`){_(!t,e)}var _t=class extends D{equals(e){return k(m(e))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}},ae=class t extends D{equals(e){return e instanceof t?!1:(e=m(e),d(e)||S(e)?e.length===0:dt(e)?Object.keys(e).length===0:!1)}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}static is(e){return e instanceof t}},Lt=class t extends ae{equals(e){return e===!1||k(m(e))?!0:d(e)?/^\s*$/.test(e):super.equals(e)}static is(e){return e instanceof t}},le=class extends D{constructor(e,s,i){super(),this.i=0,this.length=e,this.name=`${i}-${s}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return this.i===0}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}},Ne=class{constructor(){this.buffer=""}write(e){this.buffer+=h(e)}},Ft=class{constructor(){this.buffer="",this.stream=new yi.PassThrough}write(e){this.stream.write(h(e))}error(e){this.stream.emit("error",e)}end(){this.stream.end()}},Ot=class{constructor(){this.buffer=""}write(e){e=m(e),typeof e!="string"&&this.buffer===""?this.buffer=e:this.buffer=h(this.buffer)+h(e)}},qe=class extends D{constructor(e=()=>""){super(),this.superBlockRender=e}*super(){let e=new Ne;return yield this.superBlockRender(e),e.buffer}};function A(t){return t&&x(t.equals)&&x(t.gt)&&x(t.geq)&&x(t.lt)&&x(t.leq)}var Ts=new _t,Bs={true:!0,false:!1,nil:Ts,null:Ts,empty:new ae,blank:new Lt};function vt(t){let e={};for(let[s,i]of Object.entries(t)){let r=e;for(let n=0;n<s.length;n++){let o=s[n];r[o]=r[o]||{},n===s.length-1&&Te(s[n])&&(r[o].needBoundary=!0),r=r[o]}r.data=i,r.end=!0}return e}function zt(t,e){let s=e||t;return(i,...r)=>i?s(...r):t(...r)}async function q(t){if(!_e(t))return t;let e,s=!1,i="next";do{let r=t[i](e);s=r.done,e=r.value,i="next";try{_e(e)&&(e=q(e)),bi(e)&&(e=await e)}catch(n){i="throw",e=n}}while(!s);return e}function M(t){if(!_e(t))return t;let e,s=!1,i="next";do{let r=t[i](e);if(s=r.done,e=r.value,i="next",_e(e))try{e=M(e)}catch(n){i="throw",e=n}}while(!s);return e}var Mi=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function Di(t){return[31,Ei(t)?29:28,31,30,31,30,31,31,30,31,30,31]}function Us(t){let e=0;for(let s=0;s<t.getMonth();++s)e+=Di(t)[s];return e+t.getDate()}function xs(t,e){let s=Us(t)+(e-t.getDay()),r=7-new Date(t.getFullYear(),0,1).getDay()+e;return String(Math.floor((s-r)/7)+1)}function Ei(t){let e=t.getFullYear();return!!((e&3)===0&&(e%100||e%400===0&&e))}function Vi(t){let e=t.getDate();if([11,12,13].includes(e))return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function Pi(t){return parseInt(t.getFullYear().toString().substring(0,2),10)}var Ci={d:2,e:2,H:2,I:2,j:3,k:2,l:2,L:3,m:2,M:2,S:2,U:2,W:2},$i=new Set("aAbBceklpP");function Ss(t,e){let s=Math.abs(t.getTimezoneOffset()),i=Math.floor(s/60),r=s%60;return(t.getTimezoneOffset()>0?"-":"+")+oe(i,2,"0")+(e.flags[":"]?":":"")+oe(r,2,"0")}var Rt={a:t=>t.getShortWeekdayName(),A:t=>t.getLongWeekdayName(),b:t=>t.getShortMonthName(),B:t=>t.getLongMonthName(),c:t=>t.toLocaleString(),C:t=>Pi(t),d:t=>t.getDate(),e:t=>t.getDate(),H:t=>t.getHours(),I:t=>String(t.getHours()%12||12),j:t=>Us(t),k:t=>t.getHours(),l:t=>String(t.getHours()%12||12),L:t=>t.getMilliseconds(),m:t=>t.getMonth()+1,M:t=>t.getMinutes(),N:(t,e)=>{let s=Number(e.width)||9,i=String(t.getMilliseconds()).slice(0,s);return e.memoryLimit?.use(s-i.length),Si(i,s,"0")},p:t=>t.getHours()<12?"AM":"PM",P:t=>t.getHours()<12?"am":"pm",q:t=>Vi(t),s:t=>Math.round(t.getTime()/1e3),S:t=>t.getSeconds(),u:t=>t.getDay()||7,U:t=>xs(t,0),w:t=>t.getDay(),W:t=>xs(t,1),x:t=>t.toLocaleDateString(),X:t=>t.toLocaleTimeString(),y:t=>t.getFullYear().toString().slice(2,4),Y:t=>t.getFullYear(),z:Ss,Z:(t,e)=>t.getTimeZoneName()||Ss(t,e),t:()=>" ",n:()=>`
|
|
9
|
-
`,"%":()=>"%"};Rt.h=Rt.b;function xe(t,e,s){let i="",r=e,n;for(;n=Mi.exec(r);)i+=r.slice(0,n.index),r=r.slice(n.index+n[0].length),i+=ji(t,n,s);return i+r}function ji(t,e,s){let[i,r="",n,o,a]=e,c=Rt[a];if(!c)return i;let f={};for(let y of r)f[y]=!0;let u=String(c(t,{flags:f,width:n,modifier:o,memoryLimit:s})),p=$i.has(a)?" ":"0",g=n||Ci[a]||0;return f["^"]?u=u.toUpperCase():f["#"]&&(u=_i(u)),f._?p=" ":f[0]&&(p="0"),f["-"]&&(g=0),s?.use(Number(g)-u.length),oe(u,g,p)}function Ws(){return typeof Intl<"u"?Intl.DateTimeFormat:void 0}var Ii=6e4,Bi=/([zZ]|([+-])(\d{2}):?(\d{2}))$/,Hs=["January","February","March","April","May","June","July","August","September","October","November","December"],Ui=Hs.map(t=>t.slice(0,3)),Ys=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Wi=Ys.map(t=>t.slice(0,3)),I=class t{constructor(e,s,i){this.locale=s,this.DateTimeFormat=Ws(),this.date=new Date(e),this.timezoneFixed=i!==void 0,i===void 0&&(i=this.date.getTimezoneOffset()),this.timezoneOffset=d(i)?t.getTimezoneOffset(i,this.date):i,this.timezoneName=d(i)?i:"";let r=(this.date.getTimezoneOffset()-this.timezoneOffset)*Ii,n=this.date.getTime()+r;this.displayDate=new Date(n)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(e,s){return s?.timeZone?this.date.toLocaleString(e,s):this.displayDate.toLocaleString(e,s)}toLocaleTimeString(e){return this.displayDate.toLocaleTimeString(e)}toLocaleDateString(e){return this.displayDate.toLocaleDateString(e)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){if(this.timezoneFixed)return this.timezoneName;if(this.DateTimeFormat)return this.DateTimeFormat().resolvedOptions().timeZone}getLongMonthName(){return this.format({month:"long"})??Hs[this.getMonth()]}getShortMonthName(){return this.format({month:"short"})??Ui[this.getMonth()]}getLongWeekdayName(){return this.format({weekday:"long"})??Ys[this.displayDate.getDay()]}getShortWeekdayName(){return this.format({weekday:"short"})??Wi[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(e){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,e).format(this.displayDate)}static createDateFixedToTimezone(e,s){let i=e.match(Bi);if(i&&i[1]==="Z")return new t(+new Date(e),s,0);if(i&&i[2]&&i[3]&&i[4]){let[,,r,n,o]=i,a=(r==="+"?-1:1)*(parseInt(n,10)*60+parseInt(o,10));return new t(+new Date(e),s,a)}return new t(e,s)}static getTimezoneOffset(e,s){let i=s.toLocaleString("en-US",{timeZone:e}),r=s.toLocaleString("en-US",{timeZone:"UTC"}),n=new Date(i);return(+new Date(r)-+n)/(60*1e3)}},ce=class{constructor(e,s){this.base=0,this.message=`${e} limit exceeded`,this.limit=s}use(e){+e>0&&(_(this.base+ +e<=this.limit,this.message),this.base+=+e)}check(e){+e>0&&_(+e<=this.limit,this.message)}},he=class extends O{constructor(e,[s,i],r,n,o,a,c,f){super(e,r,n,o,f),this.trimLeft=!1,this.trimRight=!1;let u=r[s]==="-",p=r[i-1]==="-",g=u?s+1:s,y=p?i-1:i;for(;g<y&&w[r.charCodeAt(g)]&te;)g++;for(;y>g&&w[r.charCodeAt(y-1)]&te;)y--;this.contentRange=[g,y],this.trimLeft=u||a,this.trimRight=p||c}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}},ue=class extends he{constructor(e,s,i,r,n){let{trimTagLeft:o,trimTagRight:a,tagDelimiterLeft:c,tagDelimiterRight:f}=r,[u,p]=[s+c.length,i-f.length];super(l.TokenKind.Tag,[u,p],e,s,i,o,a,n),this.tokenizer=new z(e,r.operators,n,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank(),this.args=this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}},At=class extends he{constructor(e,s,i,r,n){let{trimOutputLeft:o,trimOutputRight:a,outputDelimiterLeft:c,outputDelimiterRight:f}=r,u=[s+c.length,i-f.length];super(l.TokenKind.Output,u,e,s,i,o,a,n)}},Me=class extends O{constructor(e,s,i,r){super(l.TokenKind.HTML,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}},Nt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Number,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=Number(this.getText())}},ie=class extends O{constructor(e,s,i,r){super(l.TokenKind.Word,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=this.getText()}},qt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Literal,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.literal=this.getText(),this.content=Bs[this.literal]}},_s={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},Hi={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0},Mt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Operator,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.operator=this.getText()}getPrecedence(){let e=this.getText();return e in _s?_s[e]:1}},De=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.PropertyAccess,i,r,n,o),this.variable=e,this.props=s}},Ee=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Filter,i,r,n,o),this.name=e,this.args=s}},Dt=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Hash,e,s,i,o),this.input=e,this.begin=s,this.end=i,this.name=r,this.value=n,this.file=o}},Yi=/[\da-fA-F]/,Ls=/[0-7]/,Fs={b:"\b",f:"\f",n:`
|
|
10
|
-
`,r:"\r",t:" ",v:"\v"};function Os(t){let e=t.charCodeAt(0);return e>=97?e-87:e>=65?e-55:e-48}function Ji(t){let e="";for(let s=1;s<t.length-1;s++){if(t[s]!=="\\"){e+=t[s];continue}if(Fs[t[s+1]]!==void 0)e+=Fs[t[++s]];else if(t[s+1]==="u"){let i=0,r=s+2;for(;r<=s+5&&Yi.test(t[r]);)i=i*16+Os(t[r++]);s=r-1,e+=String.fromCharCode(i)}else if(!Ls.test(t[s+1]))e+=t[++s];else{let i=s+1,r=0;for(;i<=s+3&&Ls.test(t[i]);)r=r*8+Os(t[i++]);s=i-1,e+=String.fromCharCode(r)}}return e}var Et=class extends O{constructor(e,s,i,r){super(l.TokenKind.Quoted,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=Ji(this.getText())}},Vt=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Range,e,s,i,o),this.input=e,this.begin=s,this.end=i,this.lhs=r,this.rhs=n,this.file=o}},Pt=class extends he{constructor(e,s,i,r,n){super(l.TokenKind.Tag,[s,i],e,s,i,!1,!1,n),this.tokenizer=new z(e,r.operators,n,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal liquid tag syntax"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}},Ct=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.FilteredValue,i,r,n,o),this.initial=e,this.filters=s,this.input=i,this.begin=r,this.end=n,this.file=o}},Zi={now:()=>Date.now()};function $t(){return typeof global=="object"&&global.performance||typeof window=="object"&&window.performance||Zi}var jt=class{renderTemplatesToNodeStream(e,s){let i=new Ft;return Promise.resolve().then(()=>q(this.renderTemplates(e,s,i))).then(()=>i.end(),r=>i.error(r)),i.stream}*renderTemplates(e,s,i){i||(i=s.opts.keepOutputType?new Ot:new Ne),s.renderLimit.check($t().now());let r=[];for(let n of e){s.renderLimit.check($t().now());try{let o=yield n.render(s,i);if(o&&i.write(o),s.breakCalled||s.continueCalled)break}catch(o){let a=E.is(o)?o:new Oe(o,n);if(s.opts.catchAllErrors)r.push(a);else throw a}}if(r.length)throw new ve(r);return i.buffer}},Ve=class{constructor(e){this.postfix=[...Gi(e)]}*evaluate(e,s){_(e,"unable to evaluate: context not defined");let i=[];for(let r of this.postfix)if(Gt(r)){let n=i.pop(),o;if(Hi[r.operator]===1)o=yield e.opts.operators[r.operator](n,e);else{let a=i.pop();o=yield e.opts.operators[r.operator](a,n,e)}i.push(o)}else i.push(yield T(r,e,s));return i[0]}valid(){return!!this.postfix.length}};function*T(t,e,s=!1){if(t){if("content"in t)return t.content;if(pe(t))return yield Qi(t,e,s);if(Xt(t))return yield Ki(t,e)}}function*Qi(t,e,s){let i=[];for(let r of t.props)i.push(yield T(r,e,!1));try{if(t.variable){let r=yield T(t.variable,e,s);return yield e._getFromScope(r,i)}else return yield e._get(i)}catch(r){if(s&&r.name==="InternalUndefinedVariableError")return null;throw new ze(r,t)}}function Js(t){return t.content}function*Ki(t,e){let s=yield T(t.lhs,e),i=yield T(t.rhs,e);return e.memoryLimit.use(i-s+1),Cs(+s,+i+1)}function*Gi(t){let e=[];for(let s of t)if(Gt(s)){for(;e.length&&e[e.length-1].getPrecedence()>s.getPrecedence();)yield e.pop();e.push(s)}else yield s;for(;e.length;)yield e.pop()}function U(t,e){return!me(t,e)}function me(t,e){return t=m(t),e.opts.jsTruthy?!t:t===!1||t===void 0||t===null}var Zs={"==":$,"!=":(t,e)=>!$(t,e),">":(t,e)=>A(t)?t.gt(e):A(e)?e.lt(t):m(t)>m(e),"<":(t,e)=>A(t)?t.lt(e):A(e)?e.gt(t):m(t)<m(e),">=":(t,e)=>A(t)?t.geq(e):A(e)?e.leq(t):m(t)>=m(e),"<=":(t,e)=>A(t)?t.leq(e):A(e)?e.geq(t):m(t)<=m(e),contains:(t,e)=>(t=m(t),S(t)?t.some(s=>$(s,e)):x(t?.indexOf)?t.indexOf(m(e))>-1:!1),not:(t,e)=>me(m(t),e),and:(t,e,s)=>U(m(t),s)&&U(m(e),s),or:(t,e,s)=>U(m(t),s)||U(m(e),s)};function $(t,e){return A(t)?t.equals(e):A(e)?e.equals(t):(t=m(t),e=m(e),S(t)?S(e)&&Xi(t,e):t===e)}function Xi(t,e){return t.length!==e.length?!1:!t.some((s,i)=>!$(s,e[i]))}function er(t,e){return t.some(s=>$(s,e))}var re=class{constructor(e,s,i,r){this.key=e,this.value=s,this.next=i,this.prev=r}},Pe=class{constructor(e,s=0){this.limit=e,this.size=s,this.cache={},this.head=new re("HEAD",null,null,null),this.tail=new re("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(e,s){if(this.cache[e])this.cache[e].value=s;else{let i=new re(e,s,this.head.next,this.head);this.head.next.prev=i,this.head.next=i,this.cache[e]=i,this.size++,this.ensureLimit()}}read(e){if(!this.cache[e])return;let{value:s}=this.cache[e];return this.remove(e),this.write(e,s),s}remove(e){let s=this.cache[e];s.prev.next=s.next,s.next.prev=s.prev,delete this.cache[e],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}},tr=t=>X.resolve(t,{paths:["."]}),sr=Kt(G.stat),ir=Kt(G.readFile);async function rr(t){try{return await sr(t),!0}catch{return!1}}function nr(t){return ir(t,"utf8")}function or(t){try{return G.statSync(t),!0}catch{return!1}}function ar(t){return G.readFileSync(t,"utf8")}function lr(t,e,s){return W.extname(e)||(e+=s),W.resolve(t,e)}function cr(t){try{return tr(t)}catch{}}function hr(t){return W.dirname(t)}var vs=Kt(G.realpath);async function ur(t,e){try{let s=await vs(t),i=await vs(e),r=s.endsWith(W.sep)?s:s+W.sep;return i.startsWith(r)}catch{return!1}}function fr(t,e){try{let s=G.realpathSync(t),i=G.realpathSync(e),r=s.endsWith(W.sep)?s:s+W.sep;return i.startsWith(r)}catch{return!1}}var dr=Object.freeze({__proto__:null,exists:rr,readFile:nr,existsSync:or,readFileSync:ar,resolve:lr,fallback:cr,dirname:hr,contains:ur,containsSync:fr,sep:W.sep});function pr(t,e,...s){return t=m(t),S(t)||d(t)?t.length?t:e:t===!1&&new Map(s).get("allow_false")?!1:me(t,this.context)?e:t}function zs(t,e=0){return JSON.stringify(t,null,e)}function gr(t,e=0){let s=[];return JSON.stringify(t,function(i,r){if(typeof r!="object"||r===null)return r;for(;s.length>0&&s[s.length-1]!==this;)s.pop();return s.includes(r)?"[Circular]":(s.push(r),r)},e)}function mr(t){return Number(t)}var yr={raw:!0,handler:js},Qs={default:pr,raw:yr,jsonify:zs,to_integer:mr,json:zs,inspect:gr},wr={"&":"&","<":"<",">":">",'"':""","'":"'"},br={"&":"&","<":"<",">":">",""":'"',"'":"'"};function gt(t){return t=h(t),this.context.memoryLimit.use(t.length),t.replace(/&|<|>|"|'/g,e=>wr[e])}function kr(t){return gt.call(this,t)}function Tr(t){return t=h(t),this.context.memoryLimit.use(t.length),t.replace(/&(amp|lt|gt|#34|#39);/g,e=>br[e])}function xr(t){return gt.call(this,Tr.call(this,t))}function Sr(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,`<br />
|
|
11
|
-
`)}function _r(t){let e=h(t);this.context.memoryLimit.use(e.length);let s=new Map([["<script","</script>"],["<style","</style>"],["<!--","-->"],["<",">"]]),i="",r=0;for(;r<e.length;){let n=e.indexOf("<",r);if(n<0)return i+e.slice(r);i+=e.slice(r,n);for(let[o,a]of s){if(!e.startsWith(o,n))continue;let c=e.indexOf(a,n+o.length);if(c>=0){r=c+a.length;break}s.delete(o)}if(r===n)return i+e.slice(n)}return i}var Lr=Object.freeze({__proto__:null,escape:gt,xml_escape:kr,escape_once:xr,newline_to_br:Sr,strip_html:_r}),It=class{constructor(e){this.mapping=e,this.sep="/"}async exists(e){return this.existsSync(e)}existsSync(e){return!k(this.mapping[e])}async readFile(e){return this.readFileSync(e)}readFileSync(e){let s=this.mapping[e];if(k(s))throw new Error(`ENOENT: ${e}`);return s}dirname(e){let s=e.split(this.sep);return s.pop(),s.join(this.sep)}resolve(e,s,i){if(s+=i,e===".")return s;let r=e.split(/\/+/);for(let n of s.split(this.sep))n==="."||n===""||(n===".."?(r.length>1||r[0]!=="")&&r.pop():r.push(n));return r.join(this.sep)}},Q={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:dr,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:Zs,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function Fr(t){if(t.hasOwnProperty("root")&&(t.hasOwnProperty("partials")||(t.partials=t.root),t.hasOwnProperty("layouts")||(t.layouts=t.root)),t.hasOwnProperty("cache")){let e;typeof t.cache=="number"?e=t.cache>0?new Pe(t.cache):void 0:typeof t.cache=="object"?e=t.cache:e=t.cache?new Pe(1024):void 0,t.cache=e}return t={...Q,...t.jekyllInclude?{dynamicPartials:!1}:{},...t},(!t.fs.dirname||!t.fs.sep)&&t.relativeReference&&(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),t.relativeReference=!1),t.root=Se(t.root),t.partials=Se(t.partials),t.layouts=Se(t.layouts),t.outputEscape=t.outputEscape&&Or(t.outputEscape),t.locale||(t.locale=Ws()?.().resolvedOptions().locale??"en-US"),t.templates&&(t.fs=new It(t.templates),t.relativeReference=!0,t.root=t.partials=t.layouts="."),t}function Or(t){return t==="escape"?gt:t==="json"?Qs.json:(_(x(t),"`outputEscape` need to be of type string or function"),t)}function Se(t){let e=[];return S(t)&&(e=t),d(t)&&(e=[t]),e}function vr(t,e){let s=!1;for(let i=0;i<t.length;i++){let r=t[i];ei(r)&&(!s&&r.trimLeft&&zr(t[i-1],e.greedy),J(r)&&(r.name==="raw"?s=!0:r.name==="endraw"&&(s=!1)),!s&&r.trimRight&&Rr(t[i+1],e.greedy))}}function zr(t,e){if(!t||!mt(t))return;let s=e?te:Is;for(;w[t.input.charCodeAt(t.end-1-t.trimRight)]&s;)t.trimRight++}function Rr(t,e){if(!t||!mt(t))return;let s=e?te:Is;for(;w[t.input.charCodeAt(t.begin+t.trimLeft)]&s;)t.trimLeft++;t.input.charAt(t.begin+t.trimLeft)===`
|
|
12
|
-
`&&t.trimLeft++}var z=class{constructor(e,s=Q.operators,i,r){this.input=e,this.file=i,this.rawBeginAt=-1,this.p=r?r[0]:0,this.N=r?r[1]:e.length,this.opTrie=vt(s),this.literalTrie=vt(Bs)}readExpression(){return new Ve(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){let e=this.readOperator();if(e){yield e;continue}let s=this.readValue();if(s){yield s;continue}return}}readOperator(){this.skipBlank();let e=this.matchTrie(this.opTrie);if(e!==-1)return new Mt(this.input,this.p,this.p=e,this.file)}matchTrie(e){let s=e,i=this.p,r;for(;s[this.input[i]]&&i<this.N;)s=s[this.input[i++]],s.end&&(r=s);return!r||r.needBoundary&&Te(this.peek(i-this.p))?-1:i}readFilteredValue(){let e=this.p,s=this.readExpression();this.assert(s.valid(),`invalid value expression: ${this.snapshot()}`);let i=this.readFilters();return new Ct(s,i,this.input,e,this.p,this.file)}readFilters(){let e=[];for(;;){let s=this.readFilter();if(!s)return e;e.push(s)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert(this.read()==="|",'expected "|" before filter');let e=this.readIdentifier();if(!e.size())return this.assert(this.end(),"expected filter name"),null;let s=[];if(this.skipBlank(),this.peek()===":")do{++this.p;let i=this.readFilterArg();i&&s.push(i),this.skipBlank(),this.assert(this.end()||this.peek()===","||this.peek()==="|",()=>`unexpected character ${this.snapshot()}`)}while(this.peek()===",");else if(!(this.peek()==="|"||this.end()))throw this.error('expected ":" after filter name');return new Ee(e.getText(),s,this.input,e.begin,this.p,this.file)}readFilterArg(){let e=this.readValue();if(!e)return;if(this.skipBlank(),this.peek()!==":")return e;++this.p;let s=this.readValue();return[e.getText(),s]}readTopLevelTokens(e=Q){let s=[];for(;this.p<this.N;){let i=this.readTopLevelToken(e);s.push(i)}return vr(s,e),s}readTopLevelToken(e){let{tagDelimiterLeft:s,outputDelimiterLeft:i}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(s)?this.readTagToken(e):this.match(i)?this.readOutputToken(e):this.readHTMLToken([s,i])}readHTMLToken(e){let s=this.p;for(;this.p<this.N&&!e.some(i=>this.match(i));)++this.p;return new Me(this.input,s,this.p,this.file)}readTagToken(e){let{file:s,input:i}=this,r=this.p;if(this.readToDelimiter(e.tagDelimiterRight)===-1)throw this.error(`tag ${this.snapshot(r)} not closed`,r);let n=new ue(i,r,this.p,e,s);return n.name==="raw"&&(this.rawBeginAt=r),n}readToDelimiter(e,s=!1){for(this.skipBlank();this.p<this.N;){if(s&&this.peekType()&ks){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return-1}readOutputToken(e=Q){let{file:s,input:i}=this,{outputDelimiterRight:r}=e,n=this.p;if(this.readToDelimiter(r,!0)===-1)throw this.error(`output ${this.snapshot(n)} not closed`,n);return new At(i,n,this.p,e,s)}readEndrawOrRawContent(e){let{tagDelimiterLeft:s,tagDelimiterRight:i}=e,r=this.p,n=this.readTo(s)-s.length;for(;this.p<this.N;){if(this.readIdentifier().getText()!=="endraw"){n=this.readTo(s)-s.length;continue}for(;this.p<=this.N;){if(this.rmatch(i)){let o=this.p;return r===n?(this.rawBeginAt=-1,new ue(this.input,r,o,e,this.file)):(this.p=n,new Me(this.input,r,n,this.file))}if(this.rmatch(s))break;this.p++}}throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,r)}readLiquidTagTokens(e=Q){let s=[];for(;this.p<this.N;){let i=this.readLiquidTagToken(e);i&&s.push(i)}return s}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;let s=this.p;this.readToDelimiter(`
|
|
13
|
-
`);let i=this.p;return new Pt(this.input,s,i,e,this.file)}error(e,s=this.p){return new Le(e,new ie(this.input,s,this.N,this.file))}assert(e,s,i){if(!e)throw this.error(typeof s=="function"?s():s,i)}snapshot(e=this.p){return JSON.stringify(Li(this.input.slice(e,this.N),32))}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();let e=this.p;for(;!this.end()&&Te(this.peek());)++this.p;return new ie(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){let e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return this.skipBlank(),this.input[this.p]==="#"?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){let s=[];for(;;){let i=this.readHash(e);if(!i)return s;s.push(i)}}readHash(e){this.skipBlank(),this.peek()===","&&++this.p;let s=this.p,i=this.readNonEmptyIdentifier();if(!i)return;let r;this.skipBlank();let n=d(e)?e:e?"=":":";return this.peek()===n&&(++this.p,r=this.readValue()),new Dt(this.input,s,this.p,i,r,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){this.skipBlank();let e=this.p,s=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),i=this.readProperties(!s);return i.length?new De(s,i,this.input,e,this.p):s}readScopeValue(){this.skipBlank();let e=this.p,s=this.readProperties();if(s.length)return new De(void 0,s,this.input,e,this.p)}readProperties(e=!0){let s=[];for(;;){if(this.peek()==="["){this.p++;let i=this.readValue()||new ie(this.input,this.p,this.p,this.file);this.assert(this.readTo("]")!==-1,"[ not closed"),s.push(i);continue}if(e&&!s.length){let i=this.readNonEmptyIdentifier();if(i){s.push(i);continue}}if(this.peek()==="."&&this.peek(1)!=="."){this.p++;let i=this.readNonEmptyIdentifier();if(!i)break;s.push(i);continue}break}return s}readNumber(){this.skipBlank();let e=!1,s=!1,i=0;for(this.peekType()&Ni&&i++;this.p+i<=this.N;)if(this.peekType(i)&Ai)s=!0,i++;else if(this.peek(i)==="."&&this.peek(i+1)!=="."){if(e||!s)return;e=!0,i++}else break;if(s&&!Te(this.peek(i))){let r=new Nt(this.input,this.p,this.p+i,this.file);return this.advance(i),r}}readLiteral(){this.skipBlank();let e=this.matchTrie(this.literalTrie);if(e===-1)return;let s=new qt(this.input,this.p,e,this.file);return this.p=e,s}readRange(){this.skipBlank();let e=this.p;if(this.peek()!=="(")return;++this.p;let s=this.readValueOrThrow();this.skipBlank(),this.assert(this.read()==="."&&this.read()===".","invalid range syntax");let i=this.readValueOrThrow();return this.skipBlank(),this.assert(this.read()===")","invalid range syntax"),new Vt(this.input,e,this.p,s,i,this.file)}readValueOrThrow(){let e=this.readValue();return this.assert(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();let e=this.p;if(!(this.peekType()&ks))return;++this.p;let s=!1;for(;this.p<this.N&&(++this.p,!(this.input[this.p-1]===this.input[e]&&!s));)s?s=!1:this.input[this.p-1]==="\\"&&(s=!0);return new Et(this.input,e,this.p,this.file)}*readFileNameTemplate(e){let{outputDelimiterLeft:s}=e,i=[","," ","\r",`
|
|
14
|
-
`," ",s],r=new Set(i);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(s)?this.readOutputToken(e):this.readHTMLToken(i)}match(e){for(let s=0;s<e.length;s++)if(e[s]!==this.input[this.p+s])return!1;return!0}rmatch(e){for(let s=0;s<e.length;s++)if(e[e.length-1-s]!==this.input[this.p-1-s])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:w[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;this.peekType()&te;)++this.p}},Ce=class{constructor(e,s){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=s}on(e,s){return this.handlers[e]=s,this}trigger(e,s){let i=this.handlers[e];return i?(i.call(this,s),!0):!1}start(){this.trigger("start");let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e)||J(e)&&this.trigger(`tag:${e.name}`,e))continue;let s=this.parseToken(e,this.tokens);this.trigger("template",s)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}},fe=class{constructor(e){this.token=e}},b=class extends fe{constructor(e,s,i){super(e),this.name=e.name,this.liquid=i,this.tokenizer=e.tokenizer}},j=class{constructor(e,s){this.hash={};let i=e instanceof z?e:new z(e,{});for(let r of i.readHashes(s))this.hash[r.name.content]=r.value}*render(e){let s={};for(let i of Object.keys(this.hash))s[i]=this.hash[i]===void 0?!0:yield T(this.hash[i],e);return s}};function Ar(t){return class extends b{constructor(e,s,i){super(e,s,i),x(t.parse)&&t.parse.call(this,e,s)}*render(e,s){let i=yield new j(this.token.args,e.opts.keyValueSeparator).render(e);return yield t.render.call(this,e,s,i)}}}function Ks(t){return S(t)}var de=class{constructor(e,s,i){this.token=e,this.name=e.name,this.handler=x(s)?s:x(s?.handler)?s.handler:js,this.raw=!x(s)&&!!s?.raw,this.args=e.args,this.liquid=i}*render(e,s){let i=[];for(let r of this.args)Ks(r)?i.push([r[0],yield T(r[1],s)]):i.push(yield T(r,s));return yield this.handler.apply({context:s,token:this.token,liquid:this.liquid},[e,...i])}},F=class{constructor(e,s){this.filters=[];let i=typeof e=="string"?new z(e,s.options.operators).readFilteredValue():e;this.initial=i.initial,this.filters=i.filters.map(r=>new de(r,this.getFilter(s,r.name),s))}*value(e,s){s=s||e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let i=yield this.initial.evaluate(e,s);for(let r of this.filters)i=yield r.render(i,e);return i}getFilter(e,s){let i=e.filters[s];return _(i||!e.options.strictFilters,()=>`undefined filter: ${s}`),i}},$e=class extends fe{constructor(e,s){super(e);let i=new z(e.input,s.options.operators,e.file,e.contentRange);this.value=new F(i.readFilteredValue(),s);let r=this.value.filters,n=s.options.outputEscape;if(!r[r.length-1]?.raw&&n){let o=new Ee(toString.call(n),[],"",0,0);r.push(new de(o,n,s))}}*render(e,s){let i=yield this.value.value(e,!1);s.write(i)}*arguments(){yield this.value}},Bt=class extends fe{constructor(e){super(e),this.str=e.getContent()}*render(e,s){s.write(this.str)}},H=class t{constructor(e,s){this.segments=e,this.location=s}toString(){return Ie(this.segments,!0)}toArray(){function*e(...s){for(let i of s)i instanceof t?yield Array.from(e(...i.segments)):yield i}return Array.from(e(...this.segments))}},ne=class{constructor(){this.map=new Map}get(e){let s=Ie([e.segments[0]]);return this.map.has(s)||this.map.set(s,[]),this.map.get(s)}has(e){return this.map.has(Ie([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}},Gs={partials:!0};function*Xs(t,e,s){let i=new ne,r=new ne,n=new ne,o=new je(new Set),a=new Set;function c(u,p){i.push(u);let g=p.alias(u);if(g!==void 0){let y=g.segments[0];d(y)&&!o.has(y)&&r.push(g)}else{let y=u.segments[0];d(y)&&!p.has(y)&&r.push(u)}for(let y of u.segments)y instanceof H&&c(y,p)}function*f(u,p){if(u.arguments)for(let g of u.arguments())for(let y of Rs(g))c(y,p);if(u.localScope)for(let g of u.localScope()){p.add(g.content),p.deleteAlias(g.content);let[y,se]=g.getPosition();n.push(new H([g.content],{row:y,col:se,file:g.file}))}if(u.children)if(u.partialScope){let g=u.partialScope();if(g===void 0){for(let Z of yield u.children(e,s))yield f(Z,p);return}if(a.has(g.name))return;let y=new Set,se=g.isolated?new je(y):p.push(y);for(let Z of g.scope)if(d(Z))y.add(Z);else{let[ns,pi]=Z;y.add(ns);let os=Array.from(Rs(pi));os.length&&se.setAlias(ns,os[0].segments)}for(let Z of yield u.children(e,s))yield f(Z,se),a.add(g.name);se.pop()}else{u.blockScope&&p.push(new Set(u.blockScope()));for(let g of yield u.children(e,s))yield f(g,p);u.blockScope&&p.pop()}}for(let u of t)yield f(u,o);return{variables:i.asObject(),globals:r.asObject(),locals:n.asObject()}}function P(t,e={}){let s={...Gs,...e};return q(Xs(t,s.partials,!1))}function C(t,e={}){let s={...Gs,...e};return M(Xs(t,s.partials,!0))}var je=class{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(let s of this.stack)if(s.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){return this.stack.pop()?.names}add(e){this.stack[0].names.add(e)}alias(e){let s=e.segments[0];if(!d(s))return;let i=this.getAlias(s);if(i!==void 0)return new H([...i,...e.segments.slice(1)],e.location)}setAlias(e,s){this.stack[this.stack.length-1].aliases.set(e,s)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(let s of this.stack){if(s.aliases.has(e))return s.aliases.get(e);if(s.names.has(e))return}}};function*Rs(t){v(t)?yield*ee(t):t instanceof F&&(yield*Nr(t))}function*Nr(t){for(let e of t.initial.postfix)v(e)&&(yield*ee(e));for(let e of t.filters)for(let s of e.args)Ks(s)&&s[1]?yield*ee(s[1]):v(s)&&(yield*ee(s))}function*ee(t){Xt(t)?(yield*ee(t.lhs),yield*ee(t.rhs)):pe(t)&&(yield Ut(t))}function Ut(t){let e=[],s=t.file,i=t.props[0];s=s||i.file,Be(i)||Ht(i)||Yt(i)?e.push(i.content):pe(i)&&e.push(...Ut(i).segments);for(let o of t.props.slice(1))s=s||o.file,Be(o)||Ht(o)||Yt(o)?e.push(o.content):pe(o)&&e.push(Ut(o));let[r,n]=t.getPosition();return new H(e,{row:r,col:n,file:s})}var As=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function Ie(t,e=!1){let s=[],i=t[0];d(i)&&(!e||i.match(As)?s.push(`${i}`):s.push(`['${i}']`));for(let r of t.slice(1))r instanceof H?s.push(`[${Ie(r.segments)}]`):d(r)?r.match(As)?s.push(`.${r}`):s.push(`['${r}']`):s.push(`[${r}]`);return s.join("")}(function(t){t.Partials="partials",t.Layouts="layouts",t.Root="root"})(l.LookupType||(l.LookupType={}));var Wt=class{constructor(e){if(this.options=e,e.relativeReference){let i=e.fs.sep;_(i,"`fs.sep` is required for relative reference");let r=["."+i,".."+i,"./","../"];this.shouldLoadRelative=n=>r.some(o=>n.startsWith(o))}else this.shouldLoadRelative=i=>!1;let s=e.fs;this.contains=zt(s.contains?.bind(s)||(async()=>!0),s.containsSync?.bind(s)||(()=>!0)),this.exists=zt(s.exists?.bind(s)||(async()=>!1),s.existsSync?.bind(s))}*lookup(e,s,i,r){let n=this.options[s];for(let o of this.candidates(e,n,r)){let a=!1;for(let c of n)if(yield this.contains(!!i,c,o)){a=!0;break}if(a&&(yield this.exists(!!i,o)))return o}throw this.lookupError(e,n)}*candidates(e,s,i){let{fs:r,extname:n}=this.options;this.shouldLoadRelative(e)&&i&&(yield r.resolve(this.dirname(i),e,n));for(let o of s)yield r.resolve(o,e,n);if(r.fallback!==void 0){let o=r.fallback(e);o!==void 0&&(yield o)}}dirname(e){let s=this.options.fs;return _(s.dirname,"`fs.dirname` is required for relative reference"),s.dirname(e)}lookupError(e,s){let i=new Error("ENOENT");return i.message=`ENOENT: Failed to lookup "${e}" in "${s}"`,i.code="ENOENT",i}},N=class{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Wt(this.liquid.options),this.parseLimit=new ce("parse length",e.options.parseLimit),this.readFile=zt(this.fs.readFile?.bind(this.fs)||(async()=>{throw new Error("readFile not implemented")}),this.fs.readFileSync?.bind(this.fs))}parse(e,s){e=String(e),this.parseLimit.use(e.length);let r=new z(e,this.liquid.options.operators,s).readTopLevelTokens(this.liquid.options);return this.parseTokens(r)}parseTokens(e){let s,i=[],r=[];for(;s=e.shift();)try{i.push(this.parseToken(s,e))}catch(n){if(this.liquid.options.catchAllErrors)r.push(n);else throw n}if(r.length)throw new ve(r);return i}parseToken(e,s){try{if(J(e)){let i=this.liquid.tags[e.name];return _(i,`tag "${e.name}" not found`),new i(e,s,this.liquid,this)}return ti(e)?new $e(e,this.liquid):new Bt(e)}catch(i){throw E.is(i)?i:new Fe(i,e)}}parseStream(e){return new Ce(e,(s,i)=>this.parseToken(s,i))}*_parseFileCached(e,s,i=l.LookupType.Root,r){let n=this.cache,o=this.loader.shouldLoadRelative(e)?r+","+e:i+":"+e,a=yield n.read(o);if(a)return a;let c=this._parseFile(e,s,i,r),f=s?yield c:q(c);n.write(o,f);try{return yield f}catch(u){throw n.remove(o),u}}*_parseFile(e,s,i=l.LookupType.Root,r){let n=yield this.loader.lookup(e,i,s,r);return this.parse(yield this.readFile(!!s,n),n)}};(function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.FilteredValue=4096]="FilteredValue",t[t.Delimited=12]="Delimited"})(l.TokenKind||(l.TokenKind={}));function ei(t){return!!(R(t)&l.TokenKind.Delimited)}function Gt(t){return R(t)===l.TokenKind.Operator}function mt(t){return R(t)===l.TokenKind.HTML}function ti(t){return R(t)===l.TokenKind.Output}function J(t){return R(t)===l.TokenKind.Tag}function Be(t){return R(t)===l.TokenKind.Quoted}function qr(t){return R(t)===l.TokenKind.Literal}function Ht(t){return R(t)===l.TokenKind.Number}function pe(t){return R(t)===l.TokenKind.PropertyAccess}function Yt(t){return R(t)===l.TokenKind.Word}function Xt(t){return R(t)===l.TokenKind.Range}function v(t){return(R(t)&1667)>0}function R(t){return t?t.kind:-1}var Mr=Object.freeze({__proto__:null,isDelimitedToken:ei,isOperatorToken:Gt,isHTMLToken:mt,isOutputToken:ti,isTagToken:J,isQuotedToken:Be,isLiteralToken:qr,isNumberToken:Ht,isPropertyAccessToken:pe,isWordToken:Yt,isRangeToken:Xt,isValueToken:v}),Ue=function(){return Ue=Object.assign||function(e){for(var s,i=1,r=arguments.length;i<r;i++){s=arguments[i];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Ue.apply(this,arguments)};function Y(t){let e=Object.create(null);return t&&Object.assign(e,t),e}var B=class t{constructor(e={},s=Q,i={},{memoryLimit:r,renderLimit:n}={}){this.scopes=[Y()],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!i.sync,this.opts=s,this.globals=i.globals??s.globals,this.environments=dt(e)?e:Object(e),this.strictVariables=i.strictVariables??this.opts.strictVariables,this.ownPropertyOnly=i.ownPropertyOnly??s.ownPropertyOnly,this.memoryLimit=r??new ce("memory alloc",i.memoryLimit??s.memoryLimit),this.renderLimit=n??new ce("template render",$t().now()+(i.renderLimit??s.renderLimit))}getRegister(e,s=void 0){return this.registers[e]=this.registers[e]||s}setRegister(e,s){return this.registers[e]=s}saveRegister(...e){return e.map(s=>[s,this.getRegister(s)])}restoreRegister(e){return e.forEach(([s,i])=>this.setRegister(s,i))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,s)=>Ue(e,s),{})}get(e){return this.getSync(e)}getSync(e){return M(this._get(e))}*_get(e){let s=this.findScope(e[0]);return yield this._getFromScope(s,e)}getFromScope(e,s){return M(this._getFromScope(e,s))}*_getFromScope(e,s,i=this.strictVariables){d(s)&&(s=s.split("."));for(let r=0;r<s.length;r++)if(e=yield this.readProperty(e,s[r]),i&&ki(e))throw new St(s.slice(0,r+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new t(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables,ownPropertyOnly:this.ownPropertyOnly},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let s=this.scopes.length-1;s>=0;s--){let i=this.scopes[s];if(e in i)return i}return e in this.environments?this.environments:this.globals}readProperty(e,s){if(e=Vs(e),s=m(s),k(e))return e;if(S(e)&&s<0)return e[e.length+ +s];let i=Dr(e,s,this.ownPropertyOnly);return i===void 0&&e instanceof D?e.liquidMethodMissing(s,this):x(i)?i.call(e):s==="size"?Pr(e):s==="first"?Er(e):s==="last"?Vr(e):i}};function Dr(t,e,s){if(!(s&&!Qt.call(t,e)&&!(t instanceof D)))return t[e]}function Er(t){return S(t)?t[0]:t.first}function Vr(t){return S(t)?t[t.length-1]:t.last}function Pr(t){if(Qt.call(t,"size")||t.size!==void 0)return t.size;if(S(t)||d(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var K;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(K||(K={}));var Cr=V(Math.abs),$r=V(Math.max),jr=V(Math.min),Ir=V(Math.ceil),Br=V((t,e,s=!1)=>s?Math.floor(t/e):t/e),Ur=V(Math.floor),Wr=V((t,e)=>t-e),Hr=V((t,e)=>t+e),Yr=V((t,e)=>t%e),Jr=V((t,e)=>t*e);function Zr(t,e=0){t=xt(t),e=xt(e);let s=Math.pow(10,e),i=t*s;return Math.sign(t)*Math.round(Math.abs(i))/s}var Qr=Object.freeze({__proto__:null,abs:Cr,at_least:$r,at_most:jr,ceil:Ir,divided_by:Br,floor:Ur,minus:Wr,plus:Hr,modulo:Yr,times:Jr,round:Zr}),Kr=t=>decodeURIComponent(h(t)).replace(/\+/g," "),Gr=t=>encodeURIComponent(h(t)).replace(/%20/g,"+"),Xr=t=>encodeURIComponent(h(t)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),en=t=>encodeURI(h(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),Ns=/[^\p{M}\p{L}\p{Nd}]+/ug,tn={raw:/\s+/g,default:Ns,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:Ns,none:null};function sn(t,e="default",s=!1){t=h(t);let i=tn[e];return i&&(e==="latin"&&(t=rn(t)),t=t.replace(i,"-").replace(/^-|-$/g,"")),s?t:t.toLowerCase()}function rn(t){return t.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}var nn=Object.freeze({__proto__:null,url_decode:Kr,url_encode:Gr,cgi_escape:Xr,uri_escape:en,slugify:sn}),on=pt(function(t,e){let s=L(t),i=k(e)?" ":h(e),r=s.length*(1+i.length);return this.context.memoryLimit.use(r),s.join(i)}),an=pt(t=>Ps(t)?xi(t):""),ln=pt(t=>Ps(t)?t[0]:""),cn=pt(function(t){let e=L(t);return this.context.memoryLimit.use(e.length),[...e].reverse()});function*si(t,e,s){let i=[],r=L(t);this.context.memoryLimit.use(r.length);for(let n of r)i.push([n,e?yield this.context._getFromScope(n,h(e).split("."),!1):n]);return i.sort((n,o)=>s(n[1],o[1])).map(n=>n[0])}function*hn(t,e){return yield*si.call(this,t,e,Fi)}function*un(t,e){return yield*si.call(this,t,e,Oi)}var fn=t=>t&&t.length||0;function*dn(t,e){let s=[],i=L(t);this.context.memoryLimit.use(i.length);for(let r of i)s.push(yield this.context._getFromScope(r,h(e),!1));return s}function*pn(t,e){let s=0,i=L(t);for(let r of i){let n=Number(e?yield this.context._getFromScope(r,h(e),!1):r);s+=Number.isNaN(n)?0:n}return s}function gn(t){let e=L(t);return this.context.memoryLimit.use(e.length),e.filter(s=>!k(m(s)))}function ii(t,e=[]){let s=L(t),i=L(e);return this.context.memoryLimit.use(s.length+i.length),s.concat(i)}function mn(t,e){return ii.call(this,t,[e])}function yn(t,e){let s=L(t);this.context.memoryLimit.use(s.length);let i=[...s];return i.unshift(e),i}function wn(t){let e=[...L(t)];return e.pop(),e}function bn(t){let e=L(t);this.context.memoryLimit.use(e.length);let s=[...e];return s.shift(),s}function kn(t,e,s=1){return t=m(t),k(t)?[]:(S(t)||(t=h(t)),e=e<0?t.length+e:e,this.context.memoryLimit.use(s),t.slice(e,e+s))}function ri(t){return this.context.opts.jekyllWhere?e=>ae.is(t)?$(e,t):S(e)?er(e,t):$(e,t):t===void 0?e=>U(e,this.context):e=>$(e,t)}function*ni(t,e,s,i){let r=[];e=L(e),this.context.memoryLimit.use(e.length);let n=new z(h(s)).readScopeValue();for(let a of e)r.push(yield T(n,this.context.spawn(a)));let o=ri.call(this,i);return e.filter((a,c)=>o(r[c])===t)}function*oi(t,e,s,i){let r=[],n=new F(h(i),this.liquid),o=L(e);this.context.memoryLimit.use(o.length);for(let a of o){this.context.push({[s]:a});let c=yield n.value(this.context);this.context.pop(),c===t&&r.push(a)}return r}function*Tn(t,e,s){return yield*ni.call(this,!0,t,e,s)}function*xn(t,e,s){return yield*ni.call(this,!1,t,e,s)}function*Sn(t,e,s){return yield*oi.call(this,!0,t,e,s)}function*_n(t,e,s){return yield*oi.call(this,!1,t,e,s)}function*Ln(t,e){let s=new Map;t=ge(t);let i=new z(h(e)).readScopeValue();this.context.memoryLimit.use(t.length);for(let r of t){let n=yield T(i,this.context.spawn(r));s.has(n)||s.set(n,[]),s.get(n).push(r)}return[...s.entries()].map(([r,n])=>({name:r,items:n}))}function*Fn(t,e,s){let i=new Map,r=new F(h(s),this.liquid);t=ge(t),this.context.memoryLimit.use(t.length);for(let n of t){this.context.push({[e]:n});let o=yield r.value(this.context);this.context.pop(),i.has(o)||i.set(o,[]),i.get(o).push(n)}return[...i.entries()].map(([n,o])=>({name:n,items:o}))}function*es(t,e,s){let i=new z(h(e)).readScopeValue(),r=L(t),n=ri.call(this,s);for(let o=0;o<r.length;o++){let a=yield T(i,this.context.spawn(r[o]));if(n(a))return[o,r[o]]}}function*ts(t,e,s){let i=new F(h(s),this.liquid),r=L(t);for(let n=0;n<r.length;n++){this.context.push({[e]:r[n]});let o=yield i.value(this.context);if(this.context.pop(),o)return[n,r[n]]}}function*On(t,e,s){return!!(yield*es.call(this,t,e,s))}function*vn(t,e,s){return!!(yield*ts.call(this,t,e,s))}function*zn(t,e,s){let i=yield*es.call(this,t,e,s);return i?i[0]:void 0}function*Rn(t,e,s){let i=yield*ts.call(this,t,e,s);return i?i[0]:void 0}function*An(t,e,s){let i=yield*es.call(this,t,e,s);return i?i[1]:void 0}function*Nn(t,e,s){let i=yield*ts.call(this,t,e,s);return i?i[1]:void 0}function qn(t){return t=L(t),this.context.memoryLimit.use(t.length),[...new Set(t)]}function Mn(t,e=1){if(t=m(t),k(t))return[];S(t)||(t=h(t)),this.context.memoryLimit.use(e);let s=[...t].sort(()=>Math.random()-.5);return e===1?s[0]:s.slice(0,e)}var Dn=Object.freeze({__proto__:null,join:on,last:an,first:ln,reverse:cn,sort:hn,sort_natural:un,size:fn,map:dn,sum:pn,compact:gn,concat:ii,push:mn,unshift:yn,pop:wn,shift:bn,slice:kn,where:Tn,reject:xn,where_exp:Sn,reject_exp:_n,group_by:Ln,group_by_exp:Fn,has:On,has_exp:vn,find_index:zn,find_index_exp:Rn,find:An,find_exp:Nn,uniq:qn,sample:Mn});function ss(t,e,s){let i=(t?.length??0)+(s?.length??0);this.context.memoryLimit.use(i);let r=li(t,this.context.opts,s);return r?(e=m(e),e=k(e)?this.context.opts.dateFormat:h(e),this.context.memoryLimit.use(e.length),xe(r,e,this.context.memoryLimit)):t}function En(t){return ss.call(this,t,"%Y-%m-%dT%H:%M:%S%:z")}function Vn(t){return ss.call(this,t,"%a, %d %b %Y %H:%M:%S %z")}function Pn(t,e,s){return ai.call(this,t,"%b",e,s)}function Cn(t,e,s){return ai.call(this,t,"%B",e,s)}function ai(t,e,s,i){let r=li(t,this.context.opts);if(!r)return t;let n=this.context.memoryLimit;if(s==="ordinal"){let o=r.getDate();return i==="US"?xe(r,`${e} ${o}%q, %Y`,n):xe(r,`${o}%q ${e} %Y`,n)}return xe(r,`%d ${e} %Y`,n)}function li(t,e,s){let i,r=s??e.timezoneOffset,n=e.locale;if(t=m(t),!k(t))return t==="now"||t==="today"?i=new I(Date.now(),n,r):ft(t)?i=new I(t*1e3,n,r):d(t)?/^\d+$/.test(t)?i=new I(+t*1e3,n,r):e.preserveTimezones&&s===void 0?i=I.createDateFixedToTimezone(t,n):i=new I(t,n,r):i=new I(t,n,r),i.valid()?i:void 0}var $n=Object.freeze({__proto__:null,date:ss,date_to_xmlschema:En,date_to_rfc822:Vn,date_to_string:Pn,date_to_long_string:Cn}),Tt=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,qs=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function jn(t,e){_(arguments.length===2,"append expect 2 arguments");let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),s+i}function In(t,e){_(arguments.length===2,"prepend expect 2 arguments");let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),i+s}function Bn(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),e){e=h(e),this.context.memoryLimit.use(e.length);for(let i=0,r=new Set(e);i<s.length;i++)if(!r.has(s[i]))return s.slice(i);return""}return s.trimStart()}function Un(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.toLowerCase()}function Wn(t){let e=h(t);return this.context.memoryLimit.use(e.length),h(e).toUpperCase()}function Hn(t,e){let s=h(t);return e=h(e),this.context.memoryLimit.use(s.length+e.length),s.split(e).join("")}function Yn(t,e){let s=h(t);return e=h(e),this.context.memoryLimit.use(s.length+e.length),s.replace(e,"")}function Jn(t,e){let s=h(t),i=h(e);this.context.memoryLimit.use(s.length+i.length);let r=s.lastIndexOf(i);return r===-1?s:s.substring(0,r)+s.substring(r+i.length)}function Zn(t,e){if(t=h(t),this.context.memoryLimit.use(t.length),e){e=h(e),this.context.memoryLimit.use(e.length);for(let s=t.length-1,i=new Set(e);s>=0;s--)if(!i.has(t[s]))return t.slice(0,s+1);return""}return t.trimEnd()}function Qn(t,e){let s=h(t);this.context.memoryLimit.use(s.length);let i=s.split(h(e));for(;i.length&&i[i.length-1]==="";)i.pop();return i}function Kn(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),e){let i=new Set(h(e));this.context.memoryLimit.use(i.size);let r=0,n=s.length-1;for(;i.has(s[r]);)r++;for(;n>=r&&i.has(s[n]);)n--;return s.slice(r,n+1)}return s.trim()}function Gn(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"")}function Xn(t){return t=h(t),this.context.memoryLimit.use(t.length),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function eo(t,e,s){let i=h(t);e=h(e),s=h(s);let r=i.split(e),n=i.length+(r.length-1)*(s.length-e.length);return this.context.memoryLimit.use(n),r.join(s)}function to(t,e,s){let i=h(t);return e=h(e),s=h(s),this.context.memoryLimit.use(i.length+e.length+s.length),i.replace(e,()=>s)}function so(t,e,s){let i=h(t),r=h(e),n=h(s);this.context.memoryLimit.use(i.length+r.length+n.length);let o=i.lastIndexOf(r);return o===-1?i:i.substring(0,o)+n+i.substring(o+r.length)}function io(t,e=50,s="..."){let i=h(t);return s=h(s),this.context.memoryLimit.use(i.length+s.length),i.length<=e?t:i.substring(0,e-s.length)+s}function ro(t,e=15,s="..."){let i=h(t);s=h(s),this.context.memoryLimit.use(i.length+s.length);let r=i.split(/\s+/);e<=0&&(e=1);let n=r.slice(0,e).join(" ");return r.length>=e&&(n+=s),n}function no(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\s+/g," ")}function oo(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),t=s.trim(),!t)return 0;switch(e){case"cjk":return(t.match(Tt)||[]).length+(t.match(qs)||[]).length;case"auto":return Tt.test(t)?t.match(Tt).length+(t.match(qs)||[]).length:t.split(/\s+/).length;default:return t.split(/\s+/).length}}function ao(t,e="and"){switch(e=h(e),this.context.memoryLimit.use(t.length+e.length),t.length){case 0:return"";case 1:return t[0];case 2:return`${t[0]} ${e} ${t[1]}`;default:return`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}}var lo=Object.freeze({__proto__:null,append:jn,prepend:In,lstrip:Bn,downcase:Un,upcase:Wn,remove:Hn,remove_first:Yn,remove_last:Jn,rstrip:Zn,split:Qn,strip:Kn,strip_newlines:Gn,capitalize:Xn,replace:eo,replace_first:to,replace_last:so,truncate:io,truncatewords:ro,normalize_whitespace:no,number_of_words:oo,array_to_sentence_string:ao});function co(t){return Buffer.from(t,"utf8").toString("base64")}function ho(t){return Buffer.from(t,"base64").toString("utf8")}function uo(t){if(typeof Buffer<"u"&&Buffer.isBuffer(t))return this.context.memoryLimit.use(t.byteLength),t.toString("base64");let e=h(t);return this.context.memoryLimit.use(e.length),co(e)}function fo(t){let e=h(t);return this.context.memoryLimit.use(e.length),ho(e)}var po=Object.freeze({__proto__:null,base64_encode:uo,base64_decode:fo});function go(t){return Es.createHash("sha256").update(t,"utf8").digest("hex")}function mo(t,e){return Es.createHmac("sha256",e).update(t,"utf8").digest("hex")}function yo(t){let e=h(t);return this.context.memoryLimit.use(e.length),go(e)}function wo(t,e){let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),mo(s,i)}var bo=Object.freeze({__proto__:null,sha256:yo,hmac_sha256:wo}),ci={...Lr,...Qr,...nn,...Dn,...$n,...lo,...po,...bo,...Qs},We=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()==="=",'expected "="'),this.tokenizer.advance(),this.value=new F(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},Ms=["offset","limit","reversed"],He=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier(),o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(!n.size()||o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.hash=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let c,f=r.parseStream(s).on("start",()=>c=this.templates).on("tag:else",u=>{Ae(u.args),c=this.elseTemplates}).on("tag:endfor",u=>{Ae(u.args),f.stop()}).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=this.liquid.renderer,r=ge(yield T(this.collection,e));if(!r.length){yield i.renderTemplates(this.elseTemplates,e,s);return}let n="continue-"+this.variable+"-"+this.collection.getText();e.push(Y({continue:e.getRegister(n,{})}));let o=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter(f=>Ms.includes(f)):Ms.filter(f=>o[f]!==void 0)).reduce((f,u)=>u==="offset"?To(f,o.offset):u==="limit"?xo(f,o.limit):ko(f),r),e.setRegister(n,(o.offset||0)+r.length);let c=Y({forloop:new le(r.length,this.collection.getText(),this.variable)});e.push(c);for(let f of r){if(c[this.variable]=f,e.continueCalled=e.breakCalled=!1,yield i.renderTemplates(this.templates,e,s),e.breakCalled)break;c.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){let e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(let e of Object.values(this.hash.hash))v(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}};function ko(t){return[...t].reverse()}function To(t,e){return t.slice(e)}function xo(t,e){return t.slice(0,e)}var Ye=class extends b{constructor(e,s,i,r){for(super(e,s,i),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;s.length;){let n=s.shift();if(J(n)&&n.name==="endcapture")return;this.templates.push(r.parseToken(n,s))}throw new Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted(),e))return e;throw this.tokenizer.error("invalid capture name")}*render(e){let i=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=i}*children(){return this.templates}*localScope(){yield this.identifier}},Je=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[],this.value=new F(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let n=[],o=0,a=r.parseStream(s).on("tag:when",c=>{if(o>0)return;n=[];let f=[];for(;!c.tokenizer.end();)f.push(c.tokenizer.readValueOrThrow()),c.tokenizer.skipBlank(),c.tokenizer.peek()===","?c.tokenizer.readTo(","):c.tokenizer.readTo("or");this.branches.push({values:f,templates:n})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endcase",()=>a.stop()).on("template",c=>{(n!==this.elseTemplates||o===1)&&n.push(c)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});a.start()}*render(e,s){let i=this.liquid.renderer,r=m(yield this.value.value(e,e.opts.lenientIf)),n=!1;for(let o of this.branches)for(let a of o.values){let c=yield T(a,e,e.opts.lenientIf);if($(r,c)){yield i.renderTemplates(o.templates,e,s),n=!0;break}}n||(yield i.renderTemplates(this.elseTemplates,e,s))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},Ze=class extends b{constructor(e,s,i){for(super(e,s,i);s.length;){let r=s.shift();if(J(r)&&r.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}},Qe=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer;for(this.file=is(n,this.liquid,r),this.currentFile=e.file;!n.end();){n.skipBlank();let o=n.p,a=n.readIdentifier();if((a.content==="with"||a.content==="for")&&(n.skipBlank(),n.peek()!==":")){let c=n.readValue();if(c){let f=n.p,u=n.readIdentifier(),p;u.content==="as"?p=n.readIdentifier():n.p=f,this[a.content]={value:c,alias:p&&p.content},n.skipBlank(),n.peek()===","&&n.advance();continue}}n.p=o;break}this.hash=new j(n,i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r}=this,n=yield rs(this.file,e,i);_(n,()=>`illegal file path "${n}"`);let o=e.spawn(),a=o.bottom();if(Ue(a,yield r.render(e)),this.with){let{value:c,alias:f}=this.with;a[f||n]=yield T(c,e)}if(this.for){let{value:c,alias:f}=this.for,u=ge(yield T(c,e));a.forloop=new le(u.length,c.getText(),f);for(let p of u){a[f]=p;let g=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(g,o,s),a.forloop.next()}}else{let c=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(c,o,s)}}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:s,alias:i}=this.with;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}if(this.for){let{value:s,alias:i}=this.for;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(let e of Object.values(this.hash.hash))v(e)&&(yield e);if(this.with){let{value:e}=this.with;v(e)&&(yield e)}if(this.for){let{value:e}=this.for;v(e)&&(yield e)}}};function is(t,e,s){if(e.options.dynamicPartials){let n=t.readValue();if(t.assert(n,"illegal file path"),n.getText()==="none")return;if(Be(n)){let o=s.parse(Js(n));return Ds(o)}return n}let i=[...t.readFileNameTemplate(e.options)],r=Ds(s.parseTokens(i));return r==="none"?void 0:r}function Ds(t){return t.length===1&&mt(t[0].token)?t[0].token.getContent():t}function*rs(t,e,s){return typeof t=="string"?t:Array.isArray(t)?s.renderer.renderTemplates(t,e):yield T(t,e)}var Ke=class extends b{constructor(e,s,i,r){super(e,s,i);let{tokenizer:n}=e;this.file=is(n,this.liquid,r),this.currentFile=e.file;let o=n.p;n.readIdentifier().content==="with"?(n.skipBlank(),n.peek()!==":"?this.withVar=n.readValue():n.p=o):n.p=o,this.hash=new j(n,i.options.jekyllInclude||i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r,withVar:n}=this,{renderer:o}=i,a=yield rs(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",K.OUTPUT);let f=Y(yield r.render(e));n&&(f[a]=yield T(n,e));let u=yield i._parsePartialFile(a,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?Y({include:f}):f),yield o.renderTemplates(u,e,s),e.pop(),e.restoreRegister(c)}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e;return this.liquid.options.jekyllInclude?e=["include"]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(v),v(this.file)&&(yield this.file),v(this.withVar)&&(yield this.withVar)}},Ge=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ft(i[this.variable])||(i[this.variable]=0),s.write(h(--i[this.variable]))}*localScope(){yield this.identifier}},Xe=class extends b{constructor(e,s,i){super(e,s,i),this.candidates=[];let r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(this.tokenizer.peek()===":"?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){let n=this.tokenizer.readValue();n&&this.candidates.push(n),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,s){let r=`cycle:${yield T(this.group,e)}:`+this.candidates.join(","),n=e.getRegister("cycle",{}),o=n[r];o===void 0&&(o=n[r]=0);let a=this.candidates[o];return o=(o+1)%this.candidates.length,n[r]=o,yield T(a,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},et=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[];let n=[];r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})).on("tag:elsif",o=>{_(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new F(o.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})}).on("tag:else",o=>{Ae(o.args),_(!this.elseTemplates,"duplicated else"),n=this.elseTemplates=[]}).on("tag:endif",function(o){Ae(o.args),this.stop()}).on("template",o=>n.push(o)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,templates:n}of this.branches){let o=yield r.value(e,e.opts.lenientIf);if(U(o,e)){yield i.renderTemplates(n,e,s);return}}yield i.renderTemplates(this.elseTemplates||[],e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},tt=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ft(i[this.variable])||(i[this.variable]=0);let r=i[this.variable];i[this.variable]++,s.write(h(r))}*localScope(){yield this.identifier}},st=class extends b{constructor(e,s,i,r){super(e,s,i),this.file=is(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=r.parseTokens(s)}*render(e,s){let{liquid:i,args:r,file:n}=this,{renderer:o}=i;if(n===void 0){e.setRegister("blockMode",K.OUTPUT),yield o.renderTemplates(this.templates,e,s);return}let a=yield rs(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=yield i._parseLayoutFile(a,e.sync,this.currentFile);e.setRegister("blockMode",K.STORE);let f=yield o.renderTemplates(this.templates,e),u=e.getRegister("blocks",{});u[""]===void 0&&(u[""]=(p,g)=>g.write(f)),e.setRegister("blockMode",K.OUTPUT),e.push(Y(yield r.render(e))),yield o.renderTemplates(c,e,s),e.pop()}*children(e){let s=this.templates.slice();return e&&d(this.file)&&s.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),s}*arguments(){for(let e of Object.values(this.args.hash))v(e)&&(yield e);v(this.file)&&(yield this.file)}partialScope(){if(d(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},it=class extends b{constructor(e,s,i,r){super(e,s,i),this.templates=[];let n=/\w+/.exec(e.args);for(this.block=n?n[0]:"";s.length;){let o=s.shift();if(J(o)&&o.name==="endblock")return;let a=r.parseToken(o,s);this.templates.push(a)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,s){let i=this.getBlockRender(e);e.getRegister("blockMode")===K.STORE?e.getRegister("blocks",{})[this.block]=i:yield i(new qe,s)}getBlockRender(e){let s=this,{liquid:i,templates:r}=this,n=e.getRegister("blocks",{})[this.block],o=function*(a,c){let f=e.getRegister("blockStack",[]);if(f.includes(s))throw new Error("block tag cannot be nested");f.push(s),e.push(Y({block:a})),yield i.renderer.renderTemplates(r,e,c),e.pop(),f.pop()};return n?(a,c)=>n(new qe(f=>o(a,f)),c):o}*children(){return this.templates}blockScope(){return["block"]}},rt=class extends b{constructor(e,s,i){for(super(e,s,i),this.tokens=[];s.length;){let r=s.shift();if(J(r)&&r.name==="endraw")return;this.tokens.push(r)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}},Jt=class extends le{constructor(e,s,i,r){super(e,i,r),this.length=e,this.cols=s}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}},nt=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();let o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.args=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=[];let c,f=r.parseStream(s).on("start",()=>c=this.templates).on("tag:endtablerow",()=>f.stop()).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=ge(yield T(this.collection,e)),r=yield this.args.render(e),n=r.offset||0,o=r.limit===void 0?i.length:r.limit;i=i.slice(n,n+o);let a=r.cols||i.length,c=this.liquid.renderer,f=new Jt(i.length,a,this.collection.getText(),this.variable),u=Y({tablerowloop:f});e.push(u);for(let p=0;p<i.length;p++,f.next())u[this.variable]=i[p],f.col0()===0&&(f.row()!==1&&s.write("</tr>"),s.write(`<tr class="row${f.row()}">`)),s.write(`<td class="col${f.col()}">`),yield c.renderTemplates(this.templates,e,s),s.write("</td>");i.length&&s.write("</tr>"),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(let e of Object.values(this.args.hash))v(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}},ot=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[];let n=[],o=0;r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),test:me,templates:n=[]})).on("tag:elsif",a=>{if(o>0){n=[];return}this.branches.push({value:new F(a.tokenizer.readFilteredValue(),this.liquid),test:U,templates:n=[]})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",a=>{(n!==this.elseTemplates||o===1)&&n.push(a)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,test:n,templates:o}of this.branches){let a=yield r.value(e,e.opts.lenientIf);if(n(a,e)){yield i.renderTemplates(o,e,s);return}}yield i.renderTemplates(this.elseTemplates,e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},at=class extends b{render(e,s){e.breakCalled=!0}},lt=class extends b{render(e,s){e.continueCalled=!0}},ct=class extends b{constructor(e,s,i){super(e,s,i),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new F(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,s){if(!this.value)return;let i=yield this.value.value(e,!1);s.write(i)}*arguments(){this.value&&(yield this.value)}},ht=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(n)}*render(e,s){yield this.liquid.renderer.renderTemplates(this.templates,e,s)}*children(){return this.templates}},ut=class extends b{constructor(e,s,i){if(super(e,s,i),e.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}},hi={assign:We,for:He,capture:Ye,case:Je,comment:Ze,include:Ke,render:Qe,decrement:Ge,increment:tt,cycle:Xe,if:et,layout:st,block:it,raw:rt,tablerow:nt,unless:ot,break:at,continue:lt,echo:ct,liquid:ht,"#":ut},Zt=class t{constructor(e={}){this.renderer=new jt,this.filters=Object.create(null),this.tags=Object.create(null),this.options=Fr(e),this.parser=new N(this),ws(hi,(s,i)=>this.registerTag(i,s)),ws(ci,(s,i)=>this.registerFilter(i,s))}parse(e,s){return new N(this).parse(e,s)}_render(e,s,i){let r=s instanceof B?s:new B(s,this.options,i);return this.renderer.renderTemplates(e,r)}async render(e,s,i){return q(this._render(e,s,{...i,sync:!1}))}renderSync(e,s,i){return M(this._render(e,s,{...i,sync:!0}))}renderToNodeStream(e,s,i={}){let r=new B(s,this.options,i);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,s,i){let r=this.parse(e);return this._render(r,s,i)}async parseAndRender(e,s,i){return q(this._parseAndRender(e,s,{...i,sync:!1}))}parseAndRenderSync(e,s,i){return M(this._parseAndRender(e,s,{...i,sync:!0}))}_parsePartialFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Partials,i)}_parseLayoutFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Layouts,i)}_parseFile(e,s,i,r){return new N(this).parseFile(e,s,i,r)}async parseFile(e,s){return q(new N(this).parseFile(e,!1,s))}parseFileSync(e,s){return M(new N(this).parseFile(e,!0,s))}*_renderFile(e,s,i){let r=yield this._parseFile(e,i.sync,i.lookupType);return yield this._render(r,s,i)}async renderFile(e,s,i){return q(this._renderFile(e,s,{...i,sync:!1}))}renderFileSync(e,s,i){return M(this._renderFile(e,s,{...i,sync:!0}))}async renderFileToNodeStream(e,s,i){let r=await this.parseFile(e);return this.renderToNodeStream(r,s,i)}_evalValue(e,s){let i=new F(e,this),r=s instanceof B?s:new B(s,this.options);return i.value(r)}async evalValue(e,s){return q(this._evalValue(e,s))}evalValueSync(e,s){return M(this._evalValue(e,s))}registerFilter(e,s){this.filters[e]=s}registerTag(e,s){this.tags[e]=x(s)?s:Ar(s)}plugin(e){return e.call(this,t)}express(){let e=this,s=!0;return function(i,r,n){if(s){s=!1;let o=Se(this.root);e.options.root.unshift(...o),e.options.layouts.unshift(...o),e.options.partials.unshift(...o)}e.renderFile(i,r).then(o=>n(null,o),n)}}async analyze(e,s={}){return P(e,s)}analyzeSync(e,s={}){return C(e,s)}async parseAndAnalyze(e,s,i={}){return P(this.parse(e,s),i)}parseAndAnalyzeSync(e,s,i={}){return C(this.parse(e,s),i)}async variables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}variablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}async fullVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}fullVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}async variableSegments(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}variableSegmentsSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}async globalVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}globalVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}async globalFullVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}globalFullVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}async globalVariableSegments(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}globalVariableSegmentsSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}},So="10.27.0";l.AssertionError=Re;l.AssignTag=We;l.BlockTag=it;l.BreakTag=at;l.CaptureTag=Ye;l.CaseTag=Je;l.CommentTag=Ze;l.Context=B;l.ContinueTag=lt;l.CycleTag=Xe;l.DecrementTag=Ge;l.Drop=D;l.EchoTag=ct;l.Expression=Ve;l.Filter=de;l.ForTag=He;l.Hash=j;l.IfTag=et;l.IncludeTag=Ke;l.IncrementTag=tt;l.InlineCommentTag=ut;l.LayoutTag=st;l.Liquid=Zt;l.LiquidError=E;l.LiquidTag=ht;l.Output=$e;l.ParseError=Fe;l.ParseStream=Ce;l.Parser=N;l.RawTag=rt;l.RenderError=Oe;l.RenderTag=Qe;l.TablerowTag=nt;l.Tag=b;l.TagToken=ue;l.Token=O;l.TokenizationError=Le;l.Tokenizer=z;l.TypeGuards=Mr;l.UndefinedVariableError=ze;l.UnlessTag=ot;l.Value=F;l.Variable=H;l.analyze=P;l.analyzeSync=C;l.assert=_;l.createTrie=vt;l.defaultOperators=Zs;l.defaultOptions=Q;l.evalQuotedToken=Js;l.evalToken=T;l.filters=ci;l.isFalsy=me;l.isTruthy=U;l.tags=hi;l.toPromise=q;l.toValue=m;l.toValueSync=M;l.version=So});ye();var di=mi(ui());function fi(t,e){let s=new di.Liquid;return s.render(s.parse(t),e)}async function Ao(t,e,s){ms(gs`Copying template from directory ${kt.path(t)} to ${kt.path(e)}`);let i=await ds(we(t,"**/*"),{dot:!0}),r=we(t,".cli-liquid-bypass"),n=[];await fs(r)&&(n=(await wt(r)).split(`
|
|
15
|
-
`).filter(a=>a.trim().length>0));let o=i.map(a=>a.split("/")).sort((a,c)=>a.length<c.length?1:-1).map(a=>a.join("/"));await Promise.all(o.map(async a=>{let c=await fi(we(e,yt(t,a)),s),f=n.some(u=>{let p=yt(t,a),g=u.replace(/^\.\//,"");return ps(p,g)||p.startsWith(g)});if(await cs(a))await bt(c);else if(a.endsWith(".liquid")&&!f){await bt(as(c));let u=await wt(a),p=await fi(u,s),g=await us(a),y=c.replace(".liquid","");await be(a,y),await ls(y,p),g&&await hs(y,493)}else if(a.endsWith(".raw")){let u=c.replace(".raw","");await be(a,u)}else await be(a,c)}))}export{fi as a,Ao as b};
|
package/dist/chunk-PDZBKVWL.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import{a as I,b as M}from"./chunk-ACA2BGAD.js";import{a as A}from"./chunk-NVKJ7ZLP.js";import{ba as u}from"./chunk-U2T5HPRD.js";import{e as p}from"./chunk-GQLNG537.js";import{b as O,c as y,f as E}from"./chunk-3KM5ZOW2.js";import{a as c}from"./chunk-BN7ZXAZJ.js";import{b as t}from"./chunk-FZCGRIOM.js";import{b as w}from"./chunk-YTUUU33R.js";import{e as H,g as n}from"./chunk-VKWPEFWQ.js";n();n();var k=["HONOR_BILLING_PRICE","PLAN_PRICE"],W=["OPT_OUT","WHEN_REQUIRED"],D=["UNSCHEDULED","SCHEDULED","MIGRATED"];var r=H(w(),1);var m={...O,...A,...y},K={watch:r.Flags.boolean({description:"Display the current operation state while polling, then output the final outcome when every operation reaches a terminal status.",env:"SHOPIFY_FLAG_WATCH",default:!1})},B={watch:r.Flags.boolean({description:"Display the current operation state while polling, then output the final state when every operation reaches a terminal status.",env:"SHOPIFY_FLAG_WATCH",default:!1})},et={...m,status:r.Flags.option({description:"Filter subscriptions by migration status.",env:"SHOPIFY_FLAG_STATUS",options:[...D]})()},it={...m,input:r.Flags.string({char:"i",description:"Path to the migration CSV. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),force:E(r.Flags.boolean({char:"f",description:"Skip confirmation.",env:"SHOPIFY_FLAG_FORCE",default:!1})),...K},q={...m,id:r.Flags.string({description:"The app subscription migration operation ID. Can be specified multiple times.",env:"SHOPIFY_FLAG_ID",required:!0,multiple:!0})},nt={...q,...B};n();var l=t.string().regex(/^gid:\/\/shopify\/AppSubscriptionMigrationOperation\/[^/]+$/).describe("The Shopify AppSubscriptionMigrationOperation GID."),F=t.string().regex(/^gid:\/\/shopify\/Shop\/\d+$/).describe("The Shopify Shop GID."),o=t.object({gid:l,status:t.string().min(1).describe("Upstream status: RUNNING, COMPLETED, FAILED, or CANCELED."),total:t.number().int().nonnegative(),results:t.array(t.object({shopGid:F,code:t.string().min(1).describe("The upstream per-shop migration result code.")}).strict())}).strict(),g=t.object({message:t.string(),fieldPath:t.array(t.string()).nullable()}).strict(),C=t.discriminatedUnion("status",[t.object({status:t.literal("success"),operationGid:l,operation:o}).strict(),t.object({status:t.literal("failed"),operationGid:l,operation:o.nullable(),error:t.union([I.extend({details:t.object({userErrors:t.array(g)}).strict()}),M])}).strict()]),pt=c({name:"MigrationCancellationResult",schema:t.object({status:t.enum(["success","partial"]),operations:t.array(C)}).strict(),definitions:{MigrationCancellationOutcome:C,MigrationOperation:o,MigrationUserError:g}}),b=t.string().datetime().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/),Y=t.string().date(),N=t.object({amount:t.string().regex(/^-?\d+(?:\.\d+)?$/),currencyCode:t.string().regex(/^[A-Z]{3}$/)}).strict(),R=t.object({kind:t.string().describe("Known values: NONE, OPT_OUT, WHEN_REQUIRED."),optOutDeadline:b.nullable(),sentAt:b.nullable()}).strict(),P=t.object({shopGid:F,status:t.string().describe("Known values: UNSCHEDULED, SCHEDULED, MIGRATED."),manualSubscriptionName:t.string().nullable(),manualSubscriptionPrice:N.nullable(),manualSubscriptionInterval:t.string().describe("Known values: EVERY_30_DAYS, ANNUAL."),targetPlanHandle:t.string().nullable(),notification:R.nullable(),priceBehavior:t.string().nullable().describe("Known values: HONOR_BILLING_PRICE, PLAN_PRICE."),effectiveDate:t.union([Y,b]).nullable().describe("The upstream calendar date or whole-second UTC instant; date-only values retain their format."),lastFailureReason:t.string().nullable().describe("Known values: SUPERSEDED, SCHEDULING_FAILED.")}).strict().describe("All subscription projection fields are present; unavailable values are null."),ut=c({name:"MigrationListResult",schema:t.object({subscriptions:t.array(P).describe("The complete list across every fetched page.")}).strict(),definitions:{MigratableSubscription:P,MigratableSubscriptionPrice:N,MigratableSubscriptionNotification:R}}),T=t.object({batchIndex:t.number().int().nonnegative(),batchPayloadDigest:t.string().min(1),operation:o}).strict(),v=t.discriminatedUnion("type",[t.object({type:t.literal("submission"),batchIndex:t.number().int().nonnegative(),userErrors:t.array(g)}).strict(),t.object({type:t.literal("operations"),operationGids:t.array(l)}).strict()]);function x(){return{clientId:t.string().min(1).describe("The app client ID, not a Shopify GID."),action:t.enum(["schedule","unschedule"]),inputDigest:t.string().min(1),total:t.number().int().nonnegative(),operations:t.array(T)}}var lt=c({name:"MigrationSubmissionResult",schema:t.discriminatedUnion("status",[t.object({status:t.literal("success"),changed:t.boolean(),...x()}).strict(),t.object({status:t.literal("partial"),changed:t.boolean(),...x(),failure:v}).strict(),t.object({status:t.literal("cancelled"),changed:t.literal(!1),action:t.enum(["schedule","unschedule"]),reason:t.string()}).strict()]),definitions:{SubmittedMigrationOperation:T,MigrationOperation:o,MigrationSubmissionFailure:v,MigrationUserError:g}}),gt=c({name:"MigrationStatusResult",schema:t.object({operations:t.array(o)}).strict(),definitions:{MigrationOperation:o}});n();function J(e){return{gid:e.id,status:e.status,total:e.total,results:e.results.edges.map(({node:i})=>({shopGid:i.shopId,code:i.code}))}}function Q(e){return e.map(({message:i,field:a})=>({message:i,fieldPath:a}))}function bt(e){return{shopGid:e.shopId,status:e.status,manualSubscriptionName:e.manualSubscriptionName,manualSubscriptionPrice:e.manualSubscriptionPrice===null?null:{amount:e.manualSubscriptionPrice.amount,currencyCode:e.manualSubscriptionPrice.currencyCode},manualSubscriptionInterval:e.manualSubscriptionInterval,targetPlanHandle:e.targetPlanHandle,notification:e.notification===null?null:{kind:e.notification.kind,optOutDeadline:S(e.notification.optOutDeadline),sentAt:S(e.notification.sentAt)},priceBehavior:e.priceBehavior,effectiveDate:e.effectiveDate===null||/^\d{4}-\d{2}-\d{2}$/.test(e.effectiveDate)?e.effectiveDate:S(e.effectiveDate),lastFailureReason:e.lastFailureReason}}function S(e){return e===null?null:new Date(e).toISOString().replace(/\.\d{3}Z$/,"Z")}function St(e){if(e.status==="cancelled")return e;let i={changed:e.submission.operations.length>0,clientId:e.submission.clientId,action:e.submission.action,inputDigest:e.submission.inputDigest,total:e.submission.total,operations:e.submission.operations.map(({batchIndex:a,batchPayloadDigest:s,operation:f})=>({batchIndex:a,batchPayloadDigest:s,operation:J(f)}))};return e.status==="success"?{status:"success",...i}:{status:"partial",...i,failure:e.failure.type==="submission"?{type:e.failure.type,batchIndex:e.failure.batchIndex,userErrors:Q(e.failure.userErrors)}:{type:e.failure.type,operationGids:e.failure.operationIds}}}n();n();var _=p`
|
|
2
|
-
query MigratableAppSubscriptions(
|
|
3
|
-
$apiKey: String!
|
|
4
|
-
$first: Int!
|
|
5
|
-
$after: String
|
|
6
|
-
$status: AppSubscriptionMigrationStatus
|
|
7
|
-
) {
|
|
8
|
-
migratableAppSubscriptions(apiKey: $apiKey, first: $first, after: $after, status: $status) {
|
|
9
|
-
edges {
|
|
10
|
-
cursor
|
|
11
|
-
node {
|
|
12
|
-
shopId
|
|
13
|
-
status
|
|
14
|
-
manualSubscriptionName
|
|
15
|
-
manualSubscriptionPrice {
|
|
16
|
-
amount
|
|
17
|
-
currencyCode
|
|
18
|
-
}
|
|
19
|
-
manualSubscriptionInterval
|
|
20
|
-
targetPlanHandle
|
|
21
|
-
notification {
|
|
22
|
-
kind
|
|
23
|
-
optOutDeadline
|
|
24
|
-
sentAt
|
|
25
|
-
}
|
|
26
|
-
priceBehavior
|
|
27
|
-
effectiveDate
|
|
28
|
-
lastFailureReason
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
pageInfo {
|
|
32
|
-
hasNextPage
|
|
33
|
-
endCursor
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`,U=p`
|
|
38
|
-
mutation AppSubscriptionMigrationOperationCreate($input: AppSubscriptionMigrationOperationCreateInput!) {
|
|
39
|
-
appSubscriptionMigrationOperationCreate(input: $input) {
|
|
40
|
-
operation {
|
|
41
|
-
id
|
|
42
|
-
status
|
|
43
|
-
total
|
|
44
|
-
results(first: 250) {
|
|
45
|
-
edges {
|
|
46
|
-
node {
|
|
47
|
-
shopId
|
|
48
|
-
code
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
userErrors {
|
|
54
|
-
message
|
|
55
|
-
field
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
`,G=p`
|
|
60
|
-
query AppSubscriptionMigrationOperation($apiKey: String!, $id: ID!) {
|
|
61
|
-
appSubscriptionMigrationOperation(apiKey: $apiKey, id: $id) {
|
|
62
|
-
id
|
|
63
|
-
status
|
|
64
|
-
total
|
|
65
|
-
results(first: 250) {
|
|
66
|
-
edges {
|
|
67
|
-
node {
|
|
68
|
-
shopId
|
|
69
|
-
code
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
`,L=p`
|
|
76
|
-
mutation AppSubscriptionMigrationOperationCancel($input: AppSubscriptionMigrationOperationCancelInput!) {
|
|
77
|
-
appSubscriptionMigrationOperationCancel(input: $input) {
|
|
78
|
-
operation {
|
|
79
|
-
id
|
|
80
|
-
status
|
|
81
|
-
total
|
|
82
|
-
results(first: 250) {
|
|
83
|
-
edges {
|
|
84
|
-
node {
|
|
85
|
-
shopId
|
|
86
|
-
code
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
userErrors {
|
|
92
|
-
message
|
|
93
|
-
field
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
`;function j(e){return e===null?null:{...e,results:{edges:e.results?.edges?.filter(i=>i!==null)??[]}}}function $(e){return{operation:j(e.operation),userErrors:e.userErrors??[]}}async function At({clientId:e,first:i,after:a,status:s}){let d=(await u.getInstance().request(_,{apiKey:e,first:i,after:a,status:s})).migratableAppSubscriptions;return d===null?null:{subscriptions:d.edges?.flatMap(h=>h===null?[]:[h.node])??[],pageInfo:d.pageInfo}}async function Dt({clientId:e,idempotencyKey:i,migrations:a}){let s=await u.getInstance().request(U,{input:{apiKey:e,idempotencyKey:i,migrations:a}});return $(s.appSubscriptionMigrationOperationCreate)}async function Ct({clientId:e,operationId:i}){let a=await u.getInstance().request(G,{apiKey:e,id:i});return j(a.appSubscriptionMigrationOperation)}async function Pt({clientId:e,operationId:i}){let a=await u.getInstance().request(L,{input:{apiKey:e,id:i}});return $(a.appSubscriptionMigrationOperationCancel)}export{k as a,W as b,et as c,it as d,q as e,nt as f,l as g,pt as h,ut as i,lt as j,gt as k,J as l,Q as m,bt as n,St as o,At as p,Dt as q,Ct as r,Pt as s};
|
package/dist/chunk-Q2KWXZQB.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{a as Y}from"./chunk-V75WUEFU.js";import{a as u,b as le,c as de}from"./chunk-HB3MJYBK.js";import{a as re}from"./chunk-X5NIAZA4.js";import{b as ue}from"./chunk-66TMIQMB.js";import{D as te,F as ne,J as se,M as ie,O as p,P as j,R as y,S as $,T as R,U as S,V as b,W as oe,Y as C,Z as ce,_ as ae,a as V,d as A,k as l,l as X,m,n as Q,o as _,q as Z,t as ee}from"./chunk-W56ZGEQQ.js";import{b as G}from"./chunk-ZJOX5HW4.js";import{b as q,c as J}from"./chunk-3KM5ZOW2.js";import{A as B,B as M,C as H,z as U}from"./chunk-D2KIGKBI.js";import{a as W}from"./chunk-BN7ZXAZJ.js";import{h as K}from"./chunk-M5VIFG2V.js";import{ga as P,wb as z}from"./chunk-JLQRDFR5.js";import{b as s,c as g,d as O}from"./chunk-FZCGRIOM.js";import{b as Be}from"./chunk-YTUUU33R.js";import{e as Ue,g as d}from"./chunk-VKWPEFWQ.js";d();d();var Me={resolveSelection:ne,loadResults:ue,recordMetadata:re};function He(e,t){let n=t.checkIds.length>0?{checkIds:t.checkIds}:null,i=e.sources.deterministic!==null||e.sources.agent!==null;n&&i&&Ge(n.checkIds,e.checks);let o=n?e.checks.filter(r=>n.checkIds.includes(r.id)):e.checks;return{resultsDirectory:t.resultsDirectory,sources:e.sources,allChecks:e.checks,checks:o,filter:n,scopeDiffers:Ke(e.sources),blocking:{level:t.blocking,blockedChecks:ze(o,t.blocking)}}}function Ke({deterministic:e,agent:t}){return!e||!t?!1:JSON.stringify(e.document.coverage.scope)!==JSON.stringify(t.document.scope)}function ze(e,t){return t==="none"?0:e.filter(n=>l(n).length>0&&A[n.severity]>=A[t]).length}function Ge(e,t){let n=new Set(t.map(c=>c.id)),i=e.filter(c=>!n.has(c));if(i.length===0)return;let o=i.length===1?"check ID":"check IDs",r=new K(`Unknown ${o}: ${i.join(", ")}.`,"Pass --check-id with one of the checks in the results files.",[],[{title:"Available check IDs",body:{list:{items:t.map(c=>c.id)}}}]);throw r.code="unknown-check-id",r.details={checkIds:i},r}async function x(e,t=Me){let n=await t.resolveSelection({path:e.directory,config:e.configName,clientId:e.clientId,withoutAppConfig:e.withoutAppConfig,allowPrompts:!1,validateClientIdFlag:!0}),i=await t.loadResults(n,e.directory),o=He(i,{resultsDirectory:ee(n.appDirectory,te(n)).resultsDirectory,checkIds:e.checkIds,blocking:e.blocking});if(o.sources.deterministic!==null||o.sources.agent!==null){let r=o.allChecks.reduce((c,a)=>c+l(a).length,0);await t.recordMetadata({num_security_findings:r})}return{selection:n,result:o,commands:se(n,e.directory,i.sources.deterministic?.document.coverage.scope)}}d();d();var F=()=>g.describe(`${g.description}`),ye=()=>s.enum(["executed","not-applicable","unresolved"]),pe=()=>s.enum(["union","prefer-agent"]),T=s.object({filePath:p().describe("The absolute path of the file."),line:s.number().int().positive().nullable().describe("The one-based line, or null for the whole file."),column:s.number().int().positive().nullable().describe("The one-based column, or null when none is recorded.")}).strict().describe("A place in a file."),Se=s.object({location:T,quote:s.string().min(1).nullable().describe("The quoted source, redacted, or null when none is recorded.")}).strict().describe("Source that supports a finding."),ve=()=>({disposition:s.enum(["active","suppressed","superseded"]).describe("Whether the finding counts: active; suppressed by the agent; or superseded, a deterministic finding that a check's prefer-agent agent result replaces."),location:T,message:s.string().describe("What the finding is, redacted."),snippet:s.string().min(1).nullable().describe("The flagged code, redacted, or null when none is recorded."),evidence:s.array(Se)}),ke=s.object({source:s.literal("deterministic"),...ve(),fix:s.object({description:s.string(),guide:s.string().min(1).nullable().describe("A guide to the fix, or null when none is recorded."),automated:s.boolean().describe("Whether the fix can be applied automatically.")}).strict().nullable().describe("How to fix the finding, or null when none is recorded.")}).strict().describe("A finding from deterministic-findings.json."),we=s.object({source:s.literal("agent"),...ve(),confidence:s.enum(["high","medium","low"]).nullable().describe("The agent's confidence, or null when it didn't report one."),reasoning:s.string().min(1).nullable().describe("The agent's reasoning, redacted, or null when none is recorded."),suppression:s.object({justification:s.string()}).strict().nullable().describe("Why the agent suppressed the finding, or null when it is not suppressed.")}).strict().describe("A finding from agent-findings.json."),Ae=s.discriminatedUnion("source",[ke,we]),D=s.object({version:s.number().int().positive().describe("The check version: the catalog version for deterministic results, the one the agent claimed for agent results."),status:ye().describe("The source's own status for the check."),reason:s.object({code:s.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:s.string()}).strict().nullable().describe("Why the check is unresolved or not applicable, or null when none is recorded."),analysisMode:s.enum(["regex","structured-config","ast"]).nullable().describe("How the deterministic check analyzed the files. Null for agent results."),generatedAt:F().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."),he=s.object({id:s.string().describe("The check ID, such as CREDENTIAL_LOG_LEAKAGE."),title:s.string(),severity:s.enum(["high","medium","low"]),description:s.string(),guide:s.string().min(1).nullable().describe("A guide to the check, or null when none is recorded."),docsUrl:s.string().url().nullable().describe("The check's page on shopify.dev, or null when the results files predate it."),precedence:pe().describe("How the sources combine: union keeps both sources' findings; prefer-agent lets the agent result replace the deterministic one."),appliedPrecedence:pe().describe("The precedence that applied: union when a prefer-agent agent result is older than the deterministic one."),status:ye().describe("The combined status. Under union, executed when either source executed the check."),bySource:s.object({deterministic:D.nullable(),agent:D.nullable()}).strict().describe("Each source's own result, or null when that source didn't record the check."),findings:s.array(Ae).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."),fe=s.object({framework:s.enum(["react-router","none","unknown","mixed"]),surface:s.enum(["react-router","theme-app-extension","config-only","unknown","mixed"]),languages:s.array(s.object({name:s.string().describe("The language, such as typescript."),support:s.enum(["supported","unsupported"]).describe("Whether the deterministic checks analyze it."),files:s.array(s.object({path:p()}).strict())}).strict())}).strict().describe("What the latest check detected in the app."),ge=s.object({filesScanned:s.number().int().nonnegative().describe("The number of files scanned."),filesSkipped:s.array(s.object({path:p(),reason:s.enum(["too-large","unreadable"]),sizeBytes:s.number().int().nonnegative().nullable().describe("The file size, or null when unknown."),detail:s.string().min(1).nullable().describe("Why the file was unreadable, or null when none is recorded.")}).strict()),gaps:s.array(s.object({code:s.enum(["skipped-file","unsupported-framework","unsupported-language","unresolved-check"]),message:s.string(),checkId:s.string().nullable().describe("The check that the gap concerns, or null."),filePath:p().nullable().describe("The file that the gap concerns, or null.")}).strict()),scanDirectories:s.array($)}).strict().describe("What the latest check covered."),me=s.object({path:p().describe("The absolute path of deterministic-findings.json."),generatedAt:F().nullable().describe("When check wrote the file, or null when the recorded time is not a valid instant."),engine:s.object({name:s.string(),version:s.string(),ruleset:s.string()}).strict(),scope:y}).strict().describe("deterministic-findings.json, which check writes, with the scope of the scan."),be=s.object({path:p().describe("The absolute path of agent-findings.json."),generatedAt:F().nullable().describe("When record wrote the file, or null when the recorded time is not a valid instant."),engine:s.object({name:s.string(),version:s.string()}).strict(),scope:y}).strict().describe("agent-findings.json, which record writes, with the scope that the agent reported."),v=W({name:"AppSecurityReviewResult",schema:s.object({status:s.literal("success"),valid:s.boolean().describe("Whether --blocking passed: no check in checks has an active finding and a severity at or above the level. Unresolved checks never fail it, and --blocking none always passes."),app:j,resultsDirectory:p().describe("The absolute path of the results directory."),resultsFiles:s.object({deterministic:me.nullable(),agent:be.nullable()}).strict().describe("The results files that the review combines. Null when a file does not exist."),detection:fe.nullable().describe("What the latest check detected in the app, or null without deterministic-findings.json."),coverage:ge.nullable().describe("What the latest check covered, or null without deterministic-findings.json."),scopeDiffers:s.boolean().describe("Whether the agent reported another scope than the latest scan used. False unless both results files exist."),checks:s.array(he).describe("The checks after --check-id, most severe first, then by ID. Empty when no results file exists."),blocking:R}).strict().describe("The combined results of the app security check."),definitions:{AppSecurityApp:j,AppSecurityScope:y,AppSecurityScanDirectory:$,AppSecurityBlocking:R,AppSecurityDeterministicResultsFile:me,AppSecurityAgentResultsFile:be,AppSecurityDetection:fe,AppSecurityCoverage:ge,AppSecurityCheck:he,AppSecuritySourceResult:D,AppSecurityFinding:Ae,AppSecurityDeterministicFinding:ke,AppSecurityAgentFinding:we,AppSecurityLocation:T,AppSecurityEvidence:Se}});d();var Re={high:"High",medium:"Medium",low:"Low"},qe={executed:"passed",not_applicable:"not applicable",unresolved:"unresolved"},Je={executed:"executed",not_applicable:"not applicable",unresolved:"unresolved"},k=["deterministic","agent"],Ye={deterministic:"deterministic-findings.json",agent:"agent-findings.json"},_e=3,Ve="Agent findings were recorded for a different scope than the latest scan.",Ce="agent result stale",Xe="The agent result is older than the deterministic result, so both are shown.",Qe={info:U,success:B,warning:M,error:H};function xe(e){for(let t of Ze(e))Qe[t.type](t.options)}function Ze(e){let{checks:t}=e.result,n=t.filter(r=>r.status==="unresolved"&&l(r).length===0),i=t.filter(r=>r.status!=="unresolved"&&l(r).length===0),o=t.filter(r=>l(r).length>0);return[...n.length>0?[ht(n,e.verbose)]:[],...i.length>0?[ft(i,e.verbose)]:[],...o.map(r=>mt(r,e.verbose,e.now)),dt(et(e))]}function et(e){let{result:t}=e,n=t.sources.deterministic!==null||t.sources.agent!==null,i=_(t.checks),o=t.sources.deterministic?.document,r=t.blocking.blockedChecks>0,c=t.checks.filter(m).length;return{type:nt(t.checks,i,n),headline:st(t.checks,i,n),...t.filter&&n?{filterLine:`Showing ${t.checks.length} of ${t.allChecks.length} checks (--check-id).`}:{},checksWithFindings:t.checks.filter(a=>l(a).length>0).map(it),otherChecks:ot(i),...c>0?{staleAgentResults:tt(c)}:{},...o?{coverage:ct(o)}:{},scopeLines:at(t.sources),...t.scopeDiffers?{scopeNote:Ve}:{},resultsFiles:{directory:t.resultsDirectory,rows:k.map(a=>ut(a,t.sources[a]?.document,e.now))},...r?{blocking:`${u(t.blocking.blockedChecks,"check")} at or above ${t.blocking.level} (--blocking ${t.blocking.level}).`}:{nextSteps:lt(t,i,n,c,e.commands)}}}function tt(e){let t=e===1?"shows":"show";return`${u(e,"check")} ${t} both sources because the agent results are older than the deterministic results.`}function nt(e,t,n){return n?e.some(i=>i.severity==="high"&&l(i).length>0)?"error":t.withFindings>0||t.unresolved>0?"warning":"success":"info"}function st(e,t,n){if(!n)return"No app security check results to review.";if(t.withFindings===0)return`No findings in ${u(e.length,"check")}.`;let i=t.unresolved>0?` ${u(t.unresolved,"check")} unresolved.`:"";return`${le(t)}.${i}`}function it(e){return{severity:Re[e.severity],id:e.id,counts:rt(e)}}function rt(e){let t=l(e);return k.map(n=>[n,t.filter(i=>i.source===n).length]).filter(([,n])=>n>0).map(([n,i])=>`${i} ${n}`).join(", ")}function ot(e){return[w(de(e)),De(e)].filter(t=>t!=="")}function De(e){return w([e.suppressed>0?`${u(e.suppressed,"finding")} suppressed`:void 0,e.superseded>0?`${u(e.superseded,"finding")} superseded`:void 0])}function E(e){return De(_([e]))}function w(e){return e.filter(t=>t!==void 0).join(" \xB7 ")}function ct(e){let t=e.coverage.files_skipped,{too_large:n,unreadable:i}=Z(t),o=[n>0?`${n} too large`:void 0,i>0?`${i} unreadable`:void 0].filter(h=>h!==void 0),r=t.length===0?"none skipped":`${t.length} skipped (${o.join(", ")})`,c=e.detection.languages.filter(h=>h.support==="unsupported"),a=c.length===0?"":` Unsupported ${c.length===1?"language":"languages"}: ${c.map(h=>`${h.name} (${u(h.files.length,"file")})`).join(", ")}.`;return`Deterministic coverage: ${u(e.coverage.files_scanned,"file")} scanned, ${r}.${a}`}function je(e){let t=[...e.include_dirs.map(n=>`--include-dir ${n}`),...e.excludes.map(n=>`--exclude ${n}`),...e.no_git_ignore?["--no-git-ignore"]:[]];return t.length===0?"none":t.join(" ")}function at({deterministic:e,agent:t}){return[...e?[`Scan directories: ${e.document.coverage.scan_directories.map(({directory:n})=>n).join(", ")}`,`Scan scope: ${je(e.document.coverage.scope)}`]:[],...t?[`Scope reported by the agent: ${je(t.document.scope)}`]:[]]}function ut(e,t,n){let i=Ye[e];return t?{name:i,updated:Fe(t.generated_at,n),engine:t.engine.version}:{name:i,updated:"not found"}}function Fe(e,t){let n=Date.parse(e);return Number.isNaN(n)?"unknown":P(new Date(n),t)}function lt(e,t,n,i,o){let r={command:ie(o.scan)};if(!n)return[["Run",r,"or have your coding agent run it."]];let c=[];if(t.withFindings>0){let a=["Fix the issues, then run",r,"again."];e.sources.agent===null?c.push(a,"For a deeper review, have your agent run the same command and record its findings."):i>0?c.push(a):c.push([...a,"To refresh agent findings, have your agent run the command and record its findings."])}return i>0?c.push(["Agent results are older than the deterministic results. Have your coding agent run",r,"and record its findings again to refresh them."]):t.withFindings===0&&e.sources.agent===null&&c.push(["For a deeper review, have your coding agent run",r,{char:"."}]),c}function dt(e){let t=[];return e.filterLine&&t.push({body:{subdued:e.filterLine}}),e.checksWithFindings.length>0&&t.push({title:"Checks with findings",body:{tabularData:e.checksWithFindings.map(n=>[n.severity,n.id,n.counts]),firstColumnSubdued:!0}}),e.otherChecks.length>0&&t.push({title:"Other checks",body:e.otherChecks.join(`
|
|
2
|
-
`)}),e.staleAgentResults&&t.push({body:e.staleAgentResults}),e.coverage&&t.push({body:{subdued:e.coverage}}),e.scopeLines.length>0&&t.push({body:{subdued:e.scopeLines.join(`
|
|
3
|
-
`)}}),e.scopeNote&&t.push({body:e.scopeNote}),t.push({title:`Results files in ${e.resultsFiles.directory}`,body:{tabularData:[["",{subdued:"Updated"},{subdued:"Engine"}],...e.resultsFiles.rows.map(pt)]}}),e.blocking===void 0?e.nextSteps.length>0&&t.push({title:"Next steps",body:{list:{items:e.nextSteps}}}):t.push({title:"Blocking",body:e.blocking}),{type:e.type,options:{headline:e.headline,customSections:t}}}function pt(e){return e.engine===void 0?[e.name,{subdued:e.updated}]:[e.name,e.updated,e.engine]}function ht(e,t){return{type:"warning",options:{headline:`${u(e.length,"check")} unresolved.`,customSections:e.flatMap(n=>[{title:`${n.id} \xB7 ${n.title}`,body:{tabularData:Te(n,{withDispositions:!0}),firstColumnSubdued:!0}},...t?n.findings.map(i=>I(i,t,`${n.id} \xB7 `)):[]])}}}function ft(e,t){let n=e.filter(X).length,i=e.length-n;return{type:"info",options:{headline:[n>0?`${u(n,"check")} passed.`:void 0,i>0?`${u(i,"check")} not applicable.`:void 0].filter(r=>r!==void 0).join(" "),customSections:[{body:{tabularData:e.map(gt)}},...t?e.flatMap(r=>r.findings.map(c=>I(c,t,`${r.id} \xB7 `))):[]]}}}function gt(e){let t=E(e);return[e.id,w([qe[e.status],t===""?void 0:t,m(e)?Ce:void 0])]}function mt(e,t,n){let i=E(e),o=t?e.findings:l(e);return{type:e.severity==="high"?"error":"warning",options:{headline:`${Re[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:[...bt(e,n),...o.map(r=>I(r,t))]}}}function bt(e,t){if(m(e))return[{body:{tabularData:k.flatMap(c=>{let a=e.by_source[c];return a?[[c,Ee(a),Fe(a.generated_at,t)]]:[]}),firstColumnSubdued:!0}},{body:{subdued:Xe}}];let{deterministic:n,agent:i}=e.by_source;return n!==null&&i!==null&&n.status!==i.status?[{body:{tabularData:Te(e,{withDispositions:!1}),firstColumnSubdued:!0}}]:[]}function Te(e,t){let n=m(e),i=k.flatMap(r=>{let c=e.by_source[r];if(!c)return[];let a=n&&r==="agent"?Ce:void 0;return[[r,w([Ee(c),a])]]}),o=t.withDispositions?E(e):"";return o===""?i:[...i,["findings",o]]}function Ee(e){let t=Je[e.status];return e.reason?`${t} \u2014 ${e.reason.message}`:t}function I(e,t,n=""){let i=e.disposition==="active"?"":` (${e.disposition})`,o=[e.message];if(e.snippet&&o.push({subdued:`
|
|
4
|
-
Code: ${e.snippet}`}),e.source==="deterministic"){e.fix&&o.push({subdued:`
|
|
5
|
-
Fix: ${e.fix.description}`});let r=e.fix?.guide;r&&o.push({subdued:`
|
|
6
|
-
Guide: ${r}`})}else e.confidence&&o.push({subdued:`
|
|
7
|
-
Confidence: ${e.confidence}`}),e.reasoning&&o.push({subdued:`
|
|
8
|
-
Reasoning: ${t?e.reasoning:yt(e.reasoning)}`});return t&&(o.push(...e.evidence.map(r=>({subdued:`
|
|
9
|
-
Evidence: ${$e(r.location)}${r.quote?` \u2014 ${r.quote}`:""}`}))),Q(e,e.source)&&e.suppression&&o.push({subdued:`
|
|
10
|
-
Suppressed: ${e.suppression.justification}`})),{title:`${n}${e.source} \xB7 ${$e(e.location)}${i}`,body:o}}function yt(e){let t=e.split(`
|
|
11
|
-
`);return t.length<=_e?e:`${t.slice(0,_e).join(`
|
|
12
|
-
`)}\u2026`}function $e(e){return e.line===void 0?e.file:`${e.file}:${e.line}`}var Ne={executed:"executed",not_applicable:"not-applicable",unresolved:"unresolved"},St={regex:"regex",structured_config:"structured-config",ast:"ast"},vt={react_router:"react-router",none:"none",unknown:"unknown",mixed:"mixed"},kt={react_router:"react-router",theme_app_extension:"theme-app-extension",config_only:"config-only",unknown:"unknown",mixed:"mixed"},wt={too_large:"too-large",unreadable:"unreadable"},At={skipped_file:"skipped-file",unsupported_framework:"unsupported-framework",unsupported_language:"unsupported-language",unresolved_check:"unresolved-check"};function Oe(e,t,n){n==="json"?z(v.encode(_t(e))):xe({result:e.result,verbose:t.verbose,now:new Date,commands:e.commands}),e.result.blocking.blockedChecks>0&&(process.exitCode=1)}function _t({selection:e,result:t}){let{appDirectory:n}=e,i=t.sources.deterministic?.document;return{status:"success",valid:t.blocking.blockedChecks===0,app:oe(e),resultsDirectory:S(t.resultsDirectory),resultsFiles:jt(t.sources),detection:i?$t(i.detection,n):null,coverage:i?Rt(i.coverage,n):null,scopeDiffers:t.scopeDiffers,checks:t.checks.map(o=>Ct(o,n)),blocking:ae(t.blocking)}}function jt({deterministic:e,agent:t}){return{deterministic:e?{path:S(e.path),generatedAt:L(e.document.generated_at),engine:{name:e.document.engine.name,version:e.document.engine.version,ruleset:e.document.engine.ruleset},scope:C(e.document.coverage.scope)}:null,agent:t?{path:S(t.path),generatedAt:L(t.document.generated_at),engine:{name:t.document.engine.name,version:t.document.engine.version},scope:C(t.document.scope)}:null}}function L(e){let t=Date.parse(e);if(Number.isNaN(t))return null;let n=O(new Date(t));return g.safeParse(n).success?n:null}function f(e){return e===void 0||e===""?null:e}function Ie(e){return e??null}function We(e,t){return{filePath:b(t,e.file),line:Ie(e.line),column:Ie(e.column)}}function $t(e,t){return{framework:vt[e.framework],surface:kt[e.surface],languages:e.languages.map(n=>({name:n.name,support:n.support,files:n.files.map(i=>({path:b(t,i)}))}))}}function Rt(e,t){return{filesScanned:e.files_scanned,filesSkipped:e.files_skipped.map(n=>({path:b(t,n.path),reason:wt[n.reason],sizeBytes:n.size_bytes??null,detail:f(n.detail)})),gaps:e.gaps.map(n=>({code:At[n.code],message:n.message,checkId:n.check_id??null,filePath:n.file===void 0?null:b(t,n.file)})),scanDirectories:e.scan_directories.map(n=>ce(t,n))}}function Ct(e,t){return{id:e.id,title:e.title,severity:e.severity,description:e.description,guide:f(e.guide),docsUrl:e.docs_url??null,precedence:e.precedence,appliedPrecedence:e.applied_precedence,status:Ne[e.status],bySource:{deterministic:e.by_source.deterministic?Le(e.by_source.deterministic):null,agent:e.by_source.agent?Le(e.by_source.agent):null},findings:e.findings.map(n=>xt(n,t))}}function Le(e){return{version:e.version,status:Ne[e.status],reason:e.reason?{code:e.reason.code,message:e.reason.message}:null,analysisMode:e.analysis_mode?St[e.analysis_mode]:null,generatedAt:L(e.generated_at)}}function xt(e,t){let n={disposition:e.disposition,location:We(e.location,t),message:e.message,snippet:f(e.snippet),evidence:e.evidence.map(i=>Dt(i,t))};return e.source==="deterministic"?{source:"deterministic",...n,fix:e.fix?{description:e.fix.description,guide:f(e.fix.guide),automated:e.fix.automated}:null}:{source:"agent",...n,confidence:e.confidence??null,reasoning:f(e.reasoning),suppression:e.suppression?{justification:e.suppression.justification}:null}}function Dt(e,t){return{location:We(e.location,t),quote:f(e.quote)}}var Pe=Ue(Be(),1);var N=class e extends G{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, evidence and suppressed findings, and `--blocking` to exit with code 1 when a check with findings is at or above a severity. With `--json`, the result always includes every finding in full.\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 get jsonOutputSchema(){return v}static description=this.descriptionForHelp();static flags={...q,...V,"check-id":Pe.Flags.string({description:"Show only this check. Repeat the flag to show several checks.",env:"SHOPIFY_FLAG_CHECK_ID",multiple:!0}),...Y,...J};async run(){let{flags:t}=await this.parse(e),n=await x({directory:t.path,configName:t.config,clientId:t["client-id"],withoutAppConfig:!!t["without-app-config"],checkIds:t["check-id"]??[],blocking:t.blocking});Oe(n,{verbose:!!t.verbose},t.json?"json":"text")}};export{N as a};
|
package/dist/chunk-QFSENE5T.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as J}from"./chunk-VHZ6RL67.js";import{a as x}from"./chunk-NVKJ7ZLP.js";import{A,E as S,I as E,J as F,K as R,Ma as k}from"./chunk-U2T5HPRD.js";import{a as f}from"./chunk-N57Y7THE.js";import{b as j,c as V}from"./chunk-3KM5ZOW2.js";import{A as y,C as u}from"./chunk-D2KIGKBI.js";import{a as C}from"./chunk-BN7ZXAZJ.js";import{j as h}from"./chunk-M5VIFG2V.js";import{wb as g,xb as v}from"./chunk-JLQRDFR5.js";import{b as i}from"./chunk-FZCGRIOM.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 get jsonOutputSchema(){return 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};
|
package/dist/chunk-QFWWCZOI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as s}from"./chunk-ACA2BGAD.js";import{a as l}from"./chunk-BN7ZXAZJ.js";import{b as e}from"./chunk-FZCGRIOM.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();var p=e.string().regex(/^\d+$/).describe("The decimal Online Store theme ID, not a Shopify GID."),h=e.string().regex(/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/).nullable(),b=e.object({id:p,name:e.string(),role:e.string().describe("The upstream theme role; known values include live, unpublished, and development.")}).strict(),v=b.extend({storeDomain:h,previewUrl:e.string().url().nullable(),editorUrl:e.string().url().nullable()}).strict(),d=e.object({status:e.literal("cancelled")}).strict();function O(n){let i=e.union([n.schema,d]),c=e.union([e.object({environment:e.string(),result:i}).strict(),e.object({environment:e.string(),error:s}).strict()]),o=l({name:n.name,schema:e.union([i,e.object({environments:e.array(c)}).strict()]),definitions:{...n.definitions,ThemeEnvironment:c}}),m=t=>d.safeParse(t).success?t:n.project(t);return{...o,encode(t){let a=e.object({environments:e.array(e.unknown())}).strict().safeParse(t);if(!a.success)return JSON.stringify(o.validate(m(t)),null,2);let f=a.data.environments.map(g=>{let r=e.union([e.object({environment:e.string(),result:e.unknown()}).strict(),e.object({environment:e.string(),error:s}).strict()]).parse(g);return"error"in r?r:{...r,result:m(r.result)}});return JSON.stringify(o.validate({environments:f}),null,2)}}}function S(n){if(typeof n=="number"&&(!Number.isSafeInteger(n)||n<0))throw new TypeError("Theme IDs must be safe nonnegative integers or decimal strings.");return p.parse(String(n))}function w(n){return n&&h.safeParse(n).success?n:null}function D(n){return{id:S(n.id),name:n.name,role:n.role}}export{p as a,h as b,b as c,v as d,O as e,S as f,w as g,D as h};
|