@shopify/cli 4.6.1 → 4.7.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-6LI5GLWS.js +1 -0
- package/dist/analytics-UNRIIG4Y.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-LURVEPYP.js → chunk-2CYVZUYT.js} +1 -1
- package/dist/{chunk-BDDROQGK.js → chunk-2HK4MFWP.js} +3 -3
- package/dist/chunk-2JDCVEFK.js +1 -0
- package/dist/chunk-2SZOPJYI.js +1 -0
- package/dist/chunk-2U4P6UFZ.js +6 -0
- package/dist/{chunk-EVIO6OWW.js → chunk-2WJAAJVX.js} +1 -1
- package/dist/chunk-37TEEITE.js +2 -0
- package/dist/chunk-3K6VHXC2.js +4 -0
- package/dist/chunk-4HV6A6UH.js +8 -0
- package/dist/chunk-4JY2P2A5.js +1 -0
- package/dist/chunk-4LRG5YBS.js +3 -0
- package/dist/chunk-4W3UE2ZI.js +1 -0
- package/dist/chunk-5CADTCJE.js +25 -0
- package/dist/chunk-5CR5YJTU.js +11 -0
- package/dist/chunk-5CYJG63I.js +1 -0
- package/dist/chunk-5HBIIYSK.js +1 -0
- package/dist/chunk-5HPBQ6U5.js +1 -0
- package/dist/chunk-5NO5OXYP.js +15 -0
- package/dist/chunk-63CIFL36.js +6 -0
- package/dist/chunk-6EBLULOC.js +1 -0
- package/dist/{chunk-5QDM4XIK.js → chunk-6ENBE43F.js} +1 -1
- package/dist/chunk-6OFGSZD6.js +1 -0
- package/dist/chunk-6PDR2IUL.js +11 -0
- package/dist/chunk-6VGJVXZI.js +3 -0
- package/dist/{chunk-YHH3JA36.js → chunk-6VRXGEIW.js} +1 -1
- package/dist/chunk-6WZYX5RO.js +1 -0
- package/dist/chunk-7AALWJAO.js +7 -0
- package/dist/chunk-7DOWT5JZ.js +20 -0
- package/dist/chunk-7JIQXGDE.js +9 -0
- package/dist/chunk-7MHANY34.js +1 -0
- package/dist/chunk-7WTNEG2F.js +3 -0
- package/dist/chunk-7Y7AZRL3.js +10 -0
- package/dist/chunk-ACTDYTAV.js +317 -0
- package/dist/{chunk-Y2PC2BBJ.js → chunk-AEUCDGTB.js} +4 -4
- package/dist/chunk-AGOEROAI.js +10 -0
- package/dist/{chunk-DC7TXY4K.js → chunk-AH2ZGMDM.js} +1 -1
- package/dist/chunk-AMLWPYNA.js +4 -0
- package/dist/chunk-B4OMIONW.js +5 -0
- package/dist/chunk-BR6DBMQA.js +5 -0
- package/dist/chunk-CFWHR74L.js +1 -0
- package/dist/chunk-CHMEDVDZ.js +15 -0
- package/dist/chunk-CIH6LPTG.js +6 -0
- package/dist/chunk-CMYQXGLO.js +1 -0
- package/dist/chunk-CTRXLZAJ.js +1 -0
- package/dist/{chunk-NVQOAHID.js → chunk-CYOFLJ3Z.js} +1 -1
- package/dist/{chunk-P2P2MAZQ.js → chunk-CZJZCJRX.js} +1 -1
- package/dist/chunk-CZPGC2E7.js +1 -0
- package/dist/{chunk-UTK6V2NE.js → chunk-D2K2ZBKH.js} +8 -8
- package/dist/chunk-DHU57LKD.js +1 -0
- package/dist/chunk-DKL6N3L2.js +1 -0
- package/dist/chunk-DMXQLI35.js +1 -0
- package/dist/chunk-DPNZWBT5.js +1 -0
- package/dist/{chunk-LDWMX3KZ.js → chunk-DQCIORGH.js} +1 -1
- package/dist/chunk-DQFSKPKL.js +6 -0
- package/dist/{chunk-RMF3YNWE.js → chunk-E2W5OYYM.js} +1 -1
- package/dist/chunk-E5T4YRGW.js +1 -0
- package/dist/chunk-EOMCXBCS.js +5 -0
- package/dist/{chunk-GD5IRJBE.js → chunk-EW55WWT7.js} +1 -1
- package/dist/{chunk-7EE7YOCR.js → chunk-F5HCSUXC.js} +5 -5
- package/dist/{chunk-WOYI6SDK.js → chunk-FCGKO2KY.js} +1 -1
- package/dist/{chunk-J3D4KQOQ.js → chunk-FULWTZS6.js} +1 -1
- package/dist/chunk-FWPJEL6Q.js +3 -0
- package/dist/chunk-GKOBFX4A.js +1 -0
- package/dist/chunk-GLWQMLUC.js +1 -0
- package/dist/chunk-GMTNOCMS.js +375 -0
- package/dist/chunk-GSCWZR22.js +1 -0
- package/dist/chunk-GZ64KWHX.js +8 -0
- package/dist/{chunk-EZBB2ULE.js → chunk-H5KWM27L.js} +1 -1
- package/dist/chunk-HHVHVGRT.js +1 -0
- package/dist/{chunk-LXOBW4AW.js → chunk-HLNJL4B6.js} +1 -1
- package/dist/{chunk-U3P5TIIR.js → chunk-HZIX3DIT.js} +1 -1
- package/dist/chunk-I3N6NPHF.js +2 -0
- package/dist/chunk-JD5P5RAJ.js +1 -0
- package/dist/chunk-JJJTPEMD.js +1 -0
- package/dist/{chunk-KRZABRYT.js → chunk-JLGA3B7P.js} +1 -1
- package/dist/chunk-JQ2B3VHR.js +7 -0
- package/dist/{chunk-STCLJWHD.js → chunk-JQISGC7D.js} +1 -1
- package/dist/chunk-JQVXH26X.js +6 -0
- package/dist/{chunk-PCTVUTV3.js → chunk-JUKAWTYY.js} +1 -1
- package/dist/{chunk-XZ2KUBFJ.js → chunk-JZMRBJH3.js} +2 -2
- package/dist/chunk-JZXA3H5K.js +1 -0
- package/dist/chunk-K4KTNINH.js +1 -0
- package/dist/chunk-KCS75ZM4.js +1 -0
- package/dist/{chunk-WE3VLC2S.js → chunk-KIYHEMHD.js} +7 -7
- package/dist/chunk-KK24VGVE.js +6 -0
- package/dist/{chunk-7TXWKLPY.js → chunk-KOVAFUYN.js} +1 -1
- package/dist/{chunk-NENUUNWB.js → chunk-KUNDCAQN.js} +1 -1
- package/dist/{chunk-NKBSS7YL.js → chunk-L67BU25M.js} +1 -1
- package/dist/{chunk-6HQMZ324.js → chunk-LDF4PQ3B.js} +18 -18
- package/dist/chunk-LFOBYEWG.js +1 -0
- package/dist/chunk-LJM2DUXN.js +1 -0
- package/dist/{chunk-XWPPBOGF.js → chunk-LQ7ENG4V.js} +1 -1
- package/dist/chunk-LQCR4TGH.js +3 -0
- package/dist/{chunk-QARALFHD.js → chunk-LRQYUWWB.js} +1 -1
- package/dist/{chunk-YR7K4NQT.js → chunk-LWJA2DQG.js} +1 -1
- package/dist/{chunk-NKT5U6IJ.js → chunk-LZ3GZ7NS.js} +1 -1
- package/dist/chunk-MB7E5GEY.js +2 -0
- package/dist/{chunk-7MD5MIGN.js → chunk-MLZLDL6B.js} +8 -8
- package/dist/chunk-MRCWOOSF.js +8 -0
- package/dist/chunk-N6YTJXIS.js +18 -0
- package/dist/chunk-NEMPLS7C.js +1 -0
- package/dist/chunk-OE3F7XXU.js +4 -0
- package/dist/chunk-OORWOTAP.js +3 -0
- package/dist/chunk-OUZGGWFN.js +1 -0
- package/dist/chunk-P5MNNBSO.js +1 -0
- package/dist/chunk-PAAKBWSF.js +1 -0
- package/dist/{chunk-M5YGJYNI.js → chunk-PANGX7SA.js} +1 -1
- package/dist/{chunk-7L5AIZOP.js → chunk-PIFW2R3S.js} +1 -1
- package/dist/chunk-PWSI275S.js +7 -0
- package/dist/chunk-Q5DQGV3M.js +1 -0
- package/dist/chunk-QBIVQXUJ.js +6 -0
- package/dist/chunk-QEB3HUQE.js +19 -0
- package/dist/{chunk-C7LFLIRT.js → chunk-QKGZWOOY.js} +1 -1
- package/dist/chunk-QPWMD2VR.js +1 -0
- package/dist/chunk-QRT4A2RV.js +3 -0
- package/dist/chunk-QXHENYJH.js +2 -0
- package/dist/{chunk-GJEG7VGX.js → chunk-QZBSCOJV.js} +1 -1
- package/dist/chunk-R2R6JDNH.js +1 -0
- package/dist/chunk-RUFQCXBX.js +16 -0
- package/dist/chunk-RY2SJVWM.js +12 -0
- package/dist/chunk-RZFBGBNA.js +1 -0
- package/dist/chunk-S3P5WWJD.js +1 -0
- package/dist/chunk-SEVSMWNX.js +1 -0
- package/dist/chunk-SJMTETSU.js +32 -0
- package/dist/chunk-SSJGWLCW.js +28 -0
- package/dist/chunk-SYADOUBB.js +7 -0
- package/dist/chunk-T5JXQ7KO.js +1 -0
- package/dist/chunk-TCTVI6PK.js +1 -0
- package/dist/chunk-TSLQZTXR.js +1 -0
- package/dist/chunk-TTAPXLI5.js +1 -0
- package/dist/{chunk-MMP3F6LO.js → chunk-TY4W7AYX.js} +1 -1
- package/dist/chunk-TYIGOVRQ.js +3 -0
- package/dist/{chunk-W2357IN2.js → chunk-U2Z5NMXV.js} +1 -1
- package/dist/{chunk-X5RH4ALT.js → chunk-U6HYEGAE.js} +1 -1
- package/dist/chunk-U7R6LYPJ.js +5 -0
- package/dist/chunk-UPJLZHHR.js +4 -0
- package/dist/chunk-UVQL7RUY.js +1 -0
- package/dist/chunk-V2HCVJYF.js +1 -0
- package/dist/chunk-V5SC2RYQ.js +2 -0
- package/dist/chunk-VKSR6MJG.js +2 -0
- package/dist/chunk-VRVP2GQL.js +5 -0
- package/dist/{chunk-MY2H5XPY.js → chunk-WCRZJY3P.js} +1 -1
- package/dist/{chunk-LJZIIURR.js → chunk-WHLGNDRE.js} +1 -1
- package/dist/{chunk-HVMEBH24.js → chunk-WKUGSFTB.js} +3 -3
- package/dist/chunk-X4XP2RQJ.js +1 -0
- package/dist/chunk-XAOYKECS.js +1 -0
- package/dist/chunk-XCBEYRQI.js +3 -0
- package/dist/chunk-XHZ5BWXL.js +5 -0
- package/dist/{chunk-H5I7BSNG.js → chunk-XLURZ6GL.js} +52 -52
- package/dist/chunk-XRT2W5Y2.js +10 -0
- package/dist/chunk-XUEMMLXK.js +1 -0
- package/dist/chunk-Y34LWI3S.js +19 -0
- package/dist/chunk-YHPBDS52.js +16 -0
- package/dist/{chunk-5INBKZRD.js → chunk-YIZZ5LZN.js} +1 -1
- package/dist/chunk-YN6A26QL.js +836 -0
- package/dist/chunk-YOO7DLOT.js +1 -0
- package/dist/chunk-YUVE2I3C.js +1 -0
- package/dist/chunk-YY6TFARF.js +1 -0
- package/dist/chunk-Z5K4J7HQ.js +1 -0
- package/dist/chunk-ZCNIR6YU.js +1 -0
- package/dist/{chunk-K4M32VKU.js → chunk-ZO74GSWC.js} +1 -1
- package/dist/{chunk-FBVNXRVB.js → chunk-ZRLEAF7M.js} +1 -1
- package/dist/chunk-ZSFAURIH.js +3 -0
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- 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-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/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- 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.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- 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.js +1 -1
- 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.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.js +1 -1
- package/dist/cli/commands/send-analytics.d.ts +5 -0
- package/dist/cli/commands/send-analytics.js +1 -0
- 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.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli/services/doctor-release/theme/tests/init.js +4 -8
- package/dist/cli/services/doctor-release/theme/tests/push.js +3 -4
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-OAGJBITE.js +1 -0
- package/dist/custom-oclif-loader-BWAMUFQ4.js +1 -0
- package/dist/deprecations-K3NPRKBF.js +1 -0
- package/dist/dist-EXJEE23W.js +1 -0
- package/dist/dist-S62Z6IFV.js +1 -0
- package/dist/environments-ALH2N36U.js +1 -0
- package/dist/error-YX56C43A.js +1 -0
- package/dist/error-handler-FDCH72NH.js +1 -0
- package/dist/fs-SKHQZZTQ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -1
- 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/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/is-global-V5VORI3F.js +1 -0
- package/dist/lib-M72BVWQ3.js +1 -0
- package/dist/local-GX5AN6ZS.js +1 -0
- package/dist/metadata-XUJUTBTB.js +1 -0
- package/dist/{morph-ABSWZEVT.js → morph-77RHJICZ.js} +1 -1
- package/dist/node-package-manager-3WIYU7Y3.js +1 -0
- package/dist/notifications-system-RHULO564.js +1 -0
- package/dist/os-M6X7KOR4.js +1 -0
- package/dist/output-X47P6ICP.js +1 -0
- package/dist/{prettier-6ZMB2MMO.js → prettier-RVUAAWC7.js} +1 -1
- package/dist/system-SR5G7WEW.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-VYWSLAQ6.js +1 -0
- package/dist/upgrade-PFQ7JMXG.js +1 -0
- package/dist/version-FK4ETQ22.js +1 -0
- package/dist/version-U4GM2LNG.js +1 -0
- package/dist/workerd-NAPS5TA7.js +18 -0
- package/oclif.manifest.json +146 -120
- package/package.json +7 -8
- package/dist/analytics-3ICKUTK2.js +0 -1
- package/dist/analytics-73NVZI4Z.js +0 -1
- package/dist/chunk-25Z36VJG.js +0 -1
- package/dist/chunk-2AVFG5KT.js +0 -1
- package/dist/chunk-2DMTEIS3.js +0 -2
- package/dist/chunk-2GB3EAD3.js +0 -153
- package/dist/chunk-2NB4P6BB.js +0 -5
- package/dist/chunk-2OYQHHKC.js +0 -3
- package/dist/chunk-2VJKXWLG.js +0 -4
- package/dist/chunk-3Q5ESVIY.js +0 -1
- package/dist/chunk-3XCIUG5P.js +0 -1
- package/dist/chunk-445NFHXL.js +0 -3
- package/dist/chunk-4BPFJDH3.js +0 -1
- package/dist/chunk-4E5RGEJO.js +0 -1
- package/dist/chunk-4IHSAT76.js +0 -2
- package/dist/chunk-4TANJ4JK.js +0 -1
- package/dist/chunk-534U3DKZ.js +0 -6
- package/dist/chunk-56T6YCU2.js +0 -1
- package/dist/chunk-5HJTCBBV.js +0 -317
- package/dist/chunk-5Q4WAGQL.js +0 -3
- package/dist/chunk-65CEF3SM.js +0 -8
- package/dist/chunk-6KAWCN3I.js +0 -10
- package/dist/chunk-6ZPHB5U2.js +0 -3
- package/dist/chunk-7AWKXTNS.js +0 -4
- package/dist/chunk-7US4TVO2.js +0 -32
- package/dist/chunk-A4SBXDZB.js +0 -14
- package/dist/chunk-A7IDVXF7.js +0 -1
- package/dist/chunk-AFM3UZQO.js +0 -684
- package/dist/chunk-AHLNB45E.js +0 -3
- package/dist/chunk-ARCAYYRW.js +0 -1
- package/dist/chunk-B3U6GDHL.js +0 -7
- package/dist/chunk-BCZMDFI2.js +0 -370
- package/dist/chunk-BKJMVAI7.js +0 -1
- package/dist/chunk-BPDUBZMU.js +0 -1
- package/dist/chunk-BQOKTPUU.js +0 -1
- package/dist/chunk-CELVG4AL.js +0 -6
- package/dist/chunk-CNI7ZUST.js +0 -3
- package/dist/chunk-CONJQV7M.js +0 -11
- package/dist/chunk-CV5ELBVU.js +0 -1
- package/dist/chunk-DXUISRMZ.js +0 -2
- package/dist/chunk-EHV7EKB3.js +0 -2
- package/dist/chunk-EJDWYASP.js +0 -1
- package/dist/chunk-EQNJ2NQD.js +0 -3
- package/dist/chunk-FG5QXIQH.js +0 -9
- package/dist/chunk-FGG6HXIZ.js +0 -1
- package/dist/chunk-FJCZ4F6J.js +0 -5
- package/dist/chunk-FKH5ZF2C.js +0 -1
- package/dist/chunk-GT6BJ2GK.js +0 -1
- package/dist/chunk-GWNV44NZ.js +0 -18
- package/dist/chunk-GXO2RRV2.js +0 -1
- package/dist/chunk-H5YC3EP6.js +0 -16
- package/dist/chunk-HY3INWPI.js +0 -1
- package/dist/chunk-I6ST5X56.js +0 -1
- package/dist/chunk-ID6ASBGV.js +0 -15
- package/dist/chunk-IDQT2UY7.js +0 -1
- package/dist/chunk-IIOFR25P.js +0 -3
- package/dist/chunk-IJEDTDSJ.js +0 -25
- package/dist/chunk-ILICQWUF.js +0 -1
- package/dist/chunk-IMWEC6NF.js +0 -16
- package/dist/chunk-ITNFDLZ4.js +0 -1
- package/dist/chunk-IU5U6KKO.js +0 -4
- package/dist/chunk-IXCDFXMB.js +0 -2
- package/dist/chunk-JRTJZAFJ.js +0 -19
- package/dist/chunk-JT7YTXJ7.js +0 -1
- package/dist/chunk-JX4HSDDG.js +0 -28
- package/dist/chunk-K5GJNXDK.js +0 -1
- package/dist/chunk-KCNOFNS5.js +0 -11
- package/dist/chunk-KM2R6O7V.js +0 -6
- package/dist/chunk-KNFDN3AP.js +0 -1
- package/dist/chunk-LEDVV6XK.js +0 -1
- package/dist/chunk-LEEVJH4B.js +0 -1
- package/dist/chunk-MDQHEW7V.js +0 -8
- package/dist/chunk-MPYCIVRA.js +0 -7
- package/dist/chunk-N4RYVOXT.js +0 -2
- package/dist/chunk-NB6HHZ36.js +0 -1
- package/dist/chunk-NEK2KNKR.js +0 -8
- package/dist/chunk-NJONAV7V.js +0 -1
- package/dist/chunk-OHQTOHUX.js +0 -15
- package/dist/chunk-PKR6HS4T.js +0 -6
- package/dist/chunk-PKRDBS7O.js +0 -5
- package/dist/chunk-PMD6S7YG.js +0 -1
- package/dist/chunk-PUOCHFFI.js +0 -1
- package/dist/chunk-Q2DPBMV4.js +0 -1
- package/dist/chunk-Q6XT3YKV.js +0 -3
- package/dist/chunk-QEL3F2NY.js +0 -5
- package/dist/chunk-R2W5B7YI.js +0 -3
- package/dist/chunk-REABQXMP.js +0 -1
- package/dist/chunk-RTPVI7LE.js +0 -3
- package/dist/chunk-SFZQFEZB.js +0 -6
- package/dist/chunk-STJ3LWFL.js +0 -1
- package/dist/chunk-STJWHL36.js +0 -7
- package/dist/chunk-SZJHOXS6.js +0 -6
- package/dist/chunk-TEPMNVJN.js +0 -1
- package/dist/chunk-TNSMROUR.js +0 -1
- package/dist/chunk-UDDJQ34Y.js +0 -1
- package/dist/chunk-UKQ7NE5V.js +0 -1
- package/dist/chunk-UOQBCBKY.js +0 -1
- package/dist/chunk-UQWT2PFO.js +0 -1
- package/dist/chunk-V26QBVCN.js +0 -1
- package/dist/chunk-VVEQ4IHW.js +0 -1
- package/dist/chunk-VXBHTSMX.js +0 -20
- package/dist/chunk-WDCCITSG.js +0 -1
- package/dist/chunk-WGMYSPR2.js +0 -10
- package/dist/chunk-WHT2RCAD.js +0 -11
- package/dist/chunk-WW7TENNA.js +0 -1
- package/dist/chunk-WXJGZGQS.js +0 -1
- package/dist/chunk-X4AZV5A2.js +0 -1
- package/dist/chunk-XBBP5BWC.js +0 -7
- package/dist/chunk-XH32NPYG.js +0 -1
- package/dist/chunk-Y7A7Z2V3.js +0 -1
- package/dist/chunk-YE7XCF44.js +0 -1
- package/dist/chunk-YIFT67BD.js +0 -4
- package/dist/chunk-Z36JS7OX.js +0 -6
- package/dist/chunk-ZHPPBTNE.js +0 -28
- package/dist/chunk-ZMSE5SQB.js +0 -1
- package/dist/conf-store-YW3NWYCN.js +0 -1
- package/dist/custom-oclif-loader-4ZAXX5MR.js +0 -1
- package/dist/deprecations-VW7UIMZX.js +0 -1
- package/dist/dist-I3VCRVOE.js +0 -1
- package/dist/dist-MP4AU5F4.js +0 -1
- package/dist/environments-5P57CTOG.js +0 -1
- package/dist/error-U7DOQOWG.js +0 -1
- package/dist/error-handler-AOEXPYI7.js +0 -1
- package/dist/fs-K5NT4W2Q.js +0 -1
- package/dist/hooks/app-init.d.ts +0 -9
- package/dist/hooks/app-init.js +0 -1
- package/dist/is-global-CFYYUAIJ.js +0 -1
- package/dist/is-wsl-UEMXYJPN.js +0 -1
- package/dist/lib-JKLF33A7.js +0 -1
- package/dist/local-BRRQOCGY.js +0 -1
- package/dist/local-storage-FVSI2IBZ.js +0 -1
- package/dist/metadata-HVSGVFUQ.js +0 -1
- package/dist/node-package-manager-6JURLQKU.js +0 -1
- package/dist/notifications-system-BTEFKXCS.js +0 -1
- package/dist/output-EXMTVS2V.js +0 -1
- package/dist/system-DUJDILSL.js +0 -1
- package/dist/ui-AX6ZMY6P.js +0 -1
- package/dist/upgrade-5TEVQNLY.js +0 -1
- package/dist/version-7LKOAVDW.js +0 -1
- package/dist/version-PRFBZAWQ.js +0 -1
- package/dist/workerd-MFV7EBVM.js +0 -18
- /package/dist/{chunk-VDN6MEYI.js → chunk-NJPL5BTN.js} +0 -0
package/dist/chunk-JX4HSDDG.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import{a as Ea,b as Sa}from"./chunk-EJDWYASP.js";import{a as bn}from"./chunk-RJ5VF3QY.js";import{a as ya}from"./chunk-7UNQOKZW.js";import{a as wa}from"./chunk-GB3YC4TI.js";import{a as wt}from"./chunk-W2357IN2.js";import{f as Ne}from"./chunk-STCLJWHD.js";import{m as qe,n as Et,o as wn,p as En,t as Sn}from"./chunk-2GB3EAD3.js";import{C as ca,Db as yn,E as ua,F as fa,Fb as Tn,H as ma,Hb as St,J as da,Pb as Ie,T as un,Vb as Ge,Wb as ke,a as ea,eb as N,f as ra,fb as g,gb as y,hb as sr,ib as mn,jb as xt,kb as fe,l as na,lb as dn,m as oa,mb as De,nb as yt,ob as pn,pb as ar,rb as ha,sb as ga,t as ir,tb as hn,u as ia,ub as Be,vb as $e,wb as gn,xb as V,y as aa,z as la}from"./chunk-BCZMDFI2.js";import{e as ta,g as sa,j as pa,l as fn,u as Ue}from"./chunk-A4SBXDZB.js";import{f as nt,n as vn}from"./chunk-EQNJ2NQD.js";import{a as or}from"./chunk-UKQ7NE5V.js";import{b as an,i as ln,q as cn}from"./chunk-773TIA5M.js";import{a as xn}from"./chunk-636CTEW7.js";import{j as ba}from"./chunk-TR4OWSEX.js";import{a as xa}from"./chunk-TOLPNBZK.js";import{a as ue,c as k,e as D,g as u}from"./chunk-VKWPEFWQ.js";var Dn=k((Hu,Ln)=>{u();Ln.exports=Rn;Rn.sync=Ta;var Cn=ue("fs");function va(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function An(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:va(t,r)}function Rn(e,t,r){Cn.stat(e,function(n,o){r(n,n?!1:An(o,e,t))})}function Ta(e,t){return An(Cn.statSync(e),e,t)}});var In=k((Wu,Bn)=>{u();Bn.exports=Mn;Mn.sync=Ca;var kn=ue("fs");function Mn(e,t,r){kn.stat(e,function(n,o){r(n,n?!1:_n(o,t))})}function Ca(e,t){return _n(kn.statSync(e),t)}function _n(e,t){return e.isFile()&&Aa(e,t)}function Aa(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),f=parseInt("100",8),m=parseInt("010",8),d=parseInt("001",8),p=f|m,b=r&d||r&m&&o===s||r&f&&n===i||r&p&&i===0;return b}});var On=k((Xu,Pn)=>{u();var Vu=ue("fs"),vt;process.platform==="win32"||global.TESTING_WINDOWS?vt=Dn():vt=In();Pn.exports=lr;lr.sync=Ra;function lr(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){lr(e,t||{},function(i,s){i?o(i):n(s)})})}vt(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Ra(e,t){try{return vt.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Hn=k((Yu,Gn)=>{u();var He=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fn=ue("path"),La=He?";":":",Un=On(),$n=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Nn=(e,t)=>{let r=t.colon||La,n=e.match(/\//)||He&&e.match(/\\/)?[""]:[...He?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=He?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=He?o.split(r):[""];return He&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},qn=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Nn(e,t),s=[],f=d=>new Promise((p,b)=>{if(d===n.length)return t.all&&s.length?p(s):b($n(e));let S=n[d],v=/^".*"$/.test(S)?S.slice(1,-1):S,w=Fn.join(v,e),A=!v&&/^\.[\\\/]/.test(e)?e.slice(0,2)+w:w;p(m(A,d,0))}),m=(d,p,b)=>new Promise((S,v)=>{if(b===o.length)return S(f(p+1));let w=o[b];Un(d+w,{pathExt:i},(A,C)=>{if(!A&&C)if(t.all)s.push(d+w);else return S(d+w);return S(m(d,p,b+1))})});return r?f(0).then(d=>r(null,d),r):f(0)},Da=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Nn(e,t),i=[];for(let s=0;s<r.length;s++){let f=r[s],m=/^".*"$/.test(f)?f.slice(1,-1):f,d=Fn.join(m,e),p=!m&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let b=0;b<n.length;b++){let S=p+n[b];try{if(Un.sync(S,{pathExt:o}))if(t.all)i.push(S);else return S}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw $n(e)};Gn.exports=qn;qn.sync=Da});var Wn=k((Qu,cr)=>{"use strict";u();var jn=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};cr.exports=jn;cr.exports.default=jn});var Kn=k((ef,Xn)=>{"use strict";u();var zn=ue("path"),ka=Hn(),Ma=Wn();function Vn(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=ka.sync(e.command,{path:r[Ma({env:r})],pathExt:t?zn.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return s&&(s=zn.resolve(o?e.options.cwd:"",s)),s}function _a(e){return Vn(e)||Vn(e,!0)}Xn.exports=_a});var Yn=k((rf,fr)=>{"use strict";u();var ur=/([()\][%!^"`<>&|;, *?])/g;function Ba(e){return e=e.replace(ur,"^$1"),e}function Ia(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ur,"^$1"),t&&(e=e.replace(ur,"^$1")),e}fr.exports.command=Ba;fr.exports.argument=Ia});var Qn=k((of,Zn)=>{"use strict";u();Zn.exports=/^#!(.*)/});var eo=k((af,Jn)=>{"use strict";u();var Pa=Qn();Jn.exports=(e="")=>{let t=e.match(Pa);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var ro=k((cf,to)=>{"use strict";u();var mr=ue("fs"),Oa=eo();function Fa(e){let r=Buffer.alloc(150),n;try{n=mr.openSync(e,"r"),mr.readSync(n,r,0,150,0),mr.closeSync(n)}catch{}return Oa(r.toString())}to.exports=Fa});var so=k((ff,io)=>{"use strict";u();var Ua=ue("path"),no=Kn(),oo=Yn(),$a=ro(),Na=process.platform==="win32",qa=/\.(?:com|exe)$/i,Ga=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ha(e){e.file=no(e);let t=e.file&&$a(e.file);return t?(e.args.unshift(e.file),e.command=t,no(e)):e.file}function ja(e){if(!Na)return e;let t=Ha(e),r=!qa.test(t);if(e.options.forceShell||r){let n=Ga.test(t);e.command=Ua.normalize(e.command),e.command=oo.command(e.command),e.args=e.args.map(i=>oo.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Wa(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:ja(n)}io.exports=Wa});var co=k((df,lo)=>{"use strict";u();var dr=process.platform==="win32";function pr(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function za(e,t){if(!dr)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=ao(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function ao(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawn"):null}function Va(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawnSync"):null}lo.exports={hookChildProcess:za,verifyENOENT:ao,verifyENOENTSync:Va,notFoundError:pr}});var mo=k((hf,je)=>{"use strict";u();var uo=ue("child_process"),hr=so(),gr=co();function fo(e,t,r){let n=hr(e,t,r),o=uo.spawn(n.command,n.args,n.options);return gr.hookChildProcess(o,n),o}function Xa(e,t,r){let n=hr(e,t,r),o=uo.spawnSync(n.command,n.args,n.options);return o.error=o.error||gr.verifyENOENTSync(o.status,n),o}je.exports=fo;je.exports.spawn=fo;je.exports.sync=Xa;je.exports._parse=hr;je.exports._enoent=gr});var ko=k((Qf,Do)=>{"use strict";u();var{PassThrough:bl}=ue("stream");Do.exports=function(){var e=[],t=new bl({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(r),t;function r(i){return Array.isArray(i)?(i.forEach(r),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function n(){return e.length==0}function o(i){e=e.filter(function(s){return s!==i}),!e.length&&t.readable&&t.end()}}});var Jo=k((cd,Qo)=>{u();var{EventEmitter:Ql}=ue("events"),Dt=class{constructor(){this.eventEmitter=new Ql,this.onabort=null,this.aborted=!1,this.reason=void 0}toString(){return"[object AbortSignal]"}get[Symbol.toStringTag](){return"AbortSignal"}removeEventListener(t,r){this.eventEmitter.removeListener(t,r)}addEventListener(t,r){this.eventEmitter.on(t,r)}dispatchEvent(t){let r={type:t,target:this},n=`on${t}`;typeof this[n]=="function"&&this[n](r),this.eventEmitter.emit(t,r)}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new st;return r.abort(),r.signal}static timeout(t){let r=new st;return setTimeout(()=>r.abort(new Error("TimeoutError")),t),r.signal}},st=class{constructor(){this.signal=new Dt}abort(t){this.signal.aborted||(this.signal.aborted=!0,t?this.signal.reason=t:this.signal.reason=new Error("AbortError"),this.signal.dispatchEvent("abort"))}toString(){return"[object AbortController]"}get[Symbol.toStringTag](){return"AbortController"}};Qo.exports={AbortController:st,AbortSignal:Dt}});var ui=k((fp,ci)=>{"use strict";u();ci.exports=class ye{constructor(t){try{t(r=>{this.setValue(r,!1)},r=>{this.setValue(r,!0)})}catch(r){this.setValue(r,!0)}}setValue(t,r){this.val=t instanceof ye?t.val:t,this.rejected=r||(t instanceof ye?t.rejected:!1)}static valueFrom(t){if(t instanceof ye){if(t.rejected)throw t.val;return t.val}else return t}then(t){try{if(!this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}catch(t){try{if(this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}static resolve(t){return new ye(r=>{r(t)})}static reject(t){return new ye((r,n)=>{n(t)})}}});var di=k((dp,mi)=>{"use strict";u();var fi=typeof window<"u"&&window.window===window&&window.navigator,hc=fi?window.location.href:process.cwd(),gc=new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"),Ce=mi.exports={concat(e,t){let r=e[e.length-1]==="/",n=t[0]==="/";return e+(r||n?"":"/")+(r&&n?t.substring(1):t)},resolve(e){return Ce.isAbsolute(e)?Ce.normalize(e):Ce.normalize(Ce.concat(hc,e))},normalize(e){let t=[],r=0;e.split("/").reverse().filter(o=>o!==".").forEach(o=>{o===".."?r++:r===0?t.push(o):r--});let n=t.reverse().join("/");return(fi&&n[0]==="/"?n[1]==="/"?window.location.protocol:window.location.origin:"")+n},isData:e=>e.indexOf("data:")===0,isURL:e=>gc.test(e),isAbsolute:e=>e[0]==="/"||/^[^\/]*:/.test(e),relativeToFile(e,t){return Ce.isData(e)||Ce.isAbsolute(t)?Ce.normalize(t):Ce.normalize(Ce.concat(e.split("/").slice(0,-1).join("/"),t))}}});var hi=k((hp,pi)=>{"use strict";u();pi.exports=bc;function bc(e){if(!/^data\:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");var t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");for(var r=e.substring(5,t).split(";"),n=r[0]||"text/plain",o=n,i=!1,s="",f=1;f<r.length;f++)r[f]=="base64"?i=!0:(o+=";"+r[f],r[f].indexOf("charset=")==0&&(s=r[f].substring(8)));!r[0]&&!s.length&&(o+=";charset=US-ASCII",s="US-ASCII");var m=unescape(e.substring(t+1)),d=i?"base64":"ascii",p=Buffer.from?Buffer.from(m,d):new Buffer(m,d);return p.type=n,p.typeFull=o,p.charset=s,p}});var yi=k((bp,$t)=>{"use strict";u();var{assign:We}=Object,Pr=typeof window<"u"&&window.window===window&&window.navigator,xc=xa().SourceMapConsumer,Ut=ui(),Ir=di(),yc=hi(),bi=Pr?null:$t.require,gi=e=>{let t=r=>r in t.cache?t.cache[r]:t.cache[r]=e(r);return t.forgetEverything=()=>{t.cache=Object.create(null)},t.cache=Object.create(null),t};function xi(e,t){let r=t?Ut:Promise,n=gi(f=>o(f,e(f)));function o(f,m){return m===void 0?n(Ir.resolve(f)):r.resolve(m).then(d=>{let p,b,S,v=w=>(S=S||i(p))(w);return p={path:f,text:d,get lines(){return b=b||d.split(`
|
|
2
|
-
`)},resolve(w){let A=v(w);if(t)try{return Ut.valueFrom(A)}catch(C){return We({},w,{error:C})}else return Promise.resolve(A)},_resolve:v}})}function i(f){let m=/\u0023 sourceMappingURL=(.+)\n?/g,d;for(;;){let S=m.exec(f.text);if(S)d=S;else break}let p=d&&d[1],b=S=>We({},S,{sourceFile:f,sourceLine:f.lines[S.line-1]||""});return p?s(f.path,p,b):b}function s(f,m,d){let p=m.startsWith("data:")?o(f,yc(m).toString()):o(Ir.relativeToFile(f,m)),b=p.then(v=>xc(JSON.parse(v.text))),S=gi(function(w){return p.then(A=>{let C=Ir.relativeToFile(A.path,w);return b.then(I=>o(C,I.sourceContentFor(w,!0)||void 0))})});return v=>b.then(w=>{let A=w.originalPositionFor(v);return A.source?S(A.source).then(C=>C._resolve(We({},v,{line:A.line,column:A.column+1,name:A.name}))):d(v)}).catch(w=>We(d(v),{sourceMapError:w}))}return We(function(m){let d=o(m);if(t)try{return Ut.valueFrom(d)}catch(p){let b={path:m,text:"",lines:[],error:p,resolve(S){return We({},S,{error:p,sourceLine:"",sourceFile:b})}};return b}return d},{resetCache:()=>n.forgetEverything(),getCache:()=>n.cache})}$t.exports=xi(function(t){return new Ut(r=>{if(Pr){let n=new XMLHttpRequest;n.open("GET",t,!1),n.send(null),r(n.responseText)}else r(bi("fs").readFileSync(t,{encoding:"utf8"}))})},!0);$t.exports.async=xi(function(t){return new Promise((r,n)=>{if(Pr){let o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=i=>{o.readyState===4&&(o.status===200?r(o.responseText):n(new Error(o.statusText)))},o.send(null)}else bi("fs").readFile(t,{encoding:"utf8"},(o,i)=>{o?n(o):r(i)})})})});var Ei=k((yp,wi)=>{"use strict";u();wi.exports=(e,t)=>{let r=e||[],n=[],o={label:void 0,items:[r.first]};return r.forEach(i=>{let s=t(i);o.label!==s&&o.items.length?n.push(o={label:s,items:[i]}):o.items.push(i)}),n}});var vi=k((Ep,$r)=>{"use strict";u();var wc=(function(){function e(t,r){var n=[],o=!0,i=!1,s=void 0;try{for(var f=t[Symbol.iterator](),m;!(o=(m=f.next()).done)&&(n.push(m.value),!(r&&n.length===r));o=!0);}catch(d){i=!0,s=d}finally{try{!o&&f.return&&f.return()}finally{if(i)throw s}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),Nt="[\x1B\x9B][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]",Si="\0-\b\v-\x1B\x9B\xAD\u200B\u2028\u2029\uFEFF\uFE00-\uFE0F",Ur=`
|
|
3
|
-
`+Si,Ec=new RegExp("(?:"+Nt+")|["+Si+"]","g"),Or=new RegExp("(?:"+Nt+")|["+Ur+"]","g"),Fr=new RegExp("((?:"+Nt+")|[ "+Ur+"])?([^ "+Ur+"]*)","g");$r.exports={zeroWidthCharacters:Or,ansiEscapeCodes:new RegExp(Nt,"g"),strlen:e=>Array.from(e.replace(Or,"")).length,isBlank:e=>e.replace(Or,"").replace(/\s/g,"").length===0,blank:e=>Array.from(e.replace(Ec,"")).map(t=>t===" "||t===`
|
|
4
|
-
`?t:" ").join(""),partition(e){for(var t,r=[];Fr.lastIndex!==e.length&&(t=Fr.exec(e));)r.push([t[1]||"",t[2]]);return Fr.lastIndex=0,r},first(e,t){let r="",n=0;for(let i of $r.exports.partition(e)){var o=wc(i,2);let s=o[0],f=o[1],m=Array.from(f).slice(0,t-n);r+=s+m.join(""),n+=m.length}return r}}});var Li=k((vp,Ri)=>{"use strict";u();function ze(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var qt=Object,Ci=vi(),Sc=Ci.first,Gt=Ci.strlen,vc=(e,t)=>Sc(e,t-1)+"\u2026",Ti=(e,t)=>{let r=(w,A)=>w.reduce((C,I)=>I.map((R,T)=>[].concat(ze(C[T]||[]),[R])),[]).map(C=>A.apply(void 0,ze(C))),n=e.map(w=>w.map(A=>A.replace(/\n/g,"\\n"))),o=n.map(w=>w.map(Gt)),i=r(o,Math.max),s=qt.assign({delimiter:" ",minColumnWidths:i.map(w=>0),maxTotalWidth:0},t),f=Gt(s.delimiter),m=i.reduce((w,A)=>w+A,0),d=i.map(w=>w/m),p=s.maxTotalWidth-f*(i.length-1),b=Math.max(0,m-p),S=r([s.minColumnWidths,i,d],(w,A,C)=>Math.max(w,Math.floor(A-b*C))),v=o.map(w=>r([S,w],(A,C)=>A-C));return r([n,v],(w,A)=>r([w,A],(C,I)=>I>=0?s.right?" ".repeat(I)+C:C+" ".repeat(I):vc(C,Gt(C)+I)).join(s.delimiter))},Ai=e=>qt.assign(t=>{var r;if(t[0]&&Array.isArray(t[0]))return Ti(t.map(s=>s.map((f,m)=>f===void 0?"":e.print(f,m))),e).join(`
|
|
5
|
-
`);let n=[].concat(ze(new Set((r=[]).concat.apply(r,ze(t.map(qt.keys)))))),o=[n.map(e.title)].concat(ze(t.map(s=>n.map(f=>s[f]===void 0?"":e.print(s[f],f))))),i=Ti(o,e);return(e.dash?[i[0],e.dash.repeat(Gt(i[0]))].concat(ze(i.slice(1))):i).join(`
|
|
6
|
-
`)},e,{configure:t=>Ai(qt.assign({},e,t))});Ri.exports=Ai({maxTotalWidth:Number.MAX_SAFE_INTEGER,print:String,title:String,dash:"-",right:!1})});var Mi=k((Ap,Nr)=>{"use strict";u();var Ht=Object,Ve=typeof window<"u"&&window.window===window&&window.navigator,Cp=Ve?null:Nr.require,Di=e=>e[e.length-1],jt=yi(),Tc=Ei(),Cc=Li(),ut=e=>e.replace(/\\/g,"/"),ki=Ve?window.location.href:ut(process.cwd())+"/",ft=class e{constructor(t,r){let n=t,o=t&&t instanceof SyntaxError&&!Ve;if(t||(t=new Error,r=r===void 0?1:r),t instanceof Error&&(t=t.stack||""),typeof t=="string"&&(t=this.rawParse(t).slice(r).map(i=>this.extractEntryMetadata(i))),Array.isArray(t)){if(o){let i=ue("util").inspect(n).split(`
|
|
7
|
-
`),s=i[0].split(":"),f=s.pop(),m=s.join(":");m&&t.unshift({file:ut(m),line:f,column:(i[2]||"").indexOf("^")+1,sourceLine:i[1],callee:"(syntax error)",syntaxError:!0})}this.items=t}else this.items=[]}extractEntryMetadata(t){let r=this.decomposePath(t.file||""),n=r[0],o=r[1];return Ht.assign(t,{calleeShort:t.calleeShort||Di((t.callee||"").split(".")),fileRelative:n,fileShort:this.shortenPath(n),fileName:Di((t.file||"").split("/")),thirdParty:this.isThirdParty(n,o)&&!t.index,externalDomain:o})}shortenPath(t){return t.replace(/^node_modules\//,"").replace(/^webpack\/bootstrap\//,"").replace(/^__parcel_source_root\//,"")}decomposePath(t){let r=t;Ve&&(r=r.replace(ki,""));let n=r.match(/^(http|https)\:\/\/?([^\/]+)\/(.*)/),o=n?n[2]:void 0;return r=n?n[3]:r,Ve||(r=ue("path").relative(ki,r)),[ut(r).replace(/^.*\:\/\/?\/?/,""),o]}isThirdParty(t,r){return r||t[0]==="~"||t[0]==="/"||t.indexOf("node_modules")===0||t.indexOf("webpack/bootstrap")===0}rawParse(t){return(t||"").split(`
|
|
8
|
-
`).map(o=>{o=o.trim();let i,s=[],f,m,d;if((m=o.match(/at (.+) \(eval at .+ \((.+)\), .+\)/))||(m=o.match(/at (.+) \((.+)\)/))||(m=o.match(/at (.+) ([^ ]+)/))||o.slice(0,3)!=="at "&&(m=o.match(/(.*)@(.*)/)))i=m[1],f=m[2]==="native",s=(m[2].match(/(.*):(\d+):(\d+)/)||m[2].match(/(.*):(\d+)/)||[]).slice(1);else if(d=o.match(/^(at\s+)*(.+):(\d+):(\d+)/))s=d.slice(2);else return;return i&&!s[0]&&i.split(".")[0]==="Array"&&(f=!0),{beforeParse:o,callee:i||"",index:Ve&&s[0]===window.location.href,native:f||!1,file:ut(s[0]||""),line:parseInt(s[1]||"",10)||void 0,column:parseInt(s[2]||"",10)||void 0}}).filter(o=>o!==void 0)}withSourceAt(t){return this.items[t]&&this.withSource(this.items[t])}withSourceAsyncAt(t){return this.items[t]&&this.withSourceAsync(this.items[t])}withSource(t){if(this.shouldSkipResolving(t))return t;{let r=jt(t.file||"").resolve(t);return r.sourceFile?this.withSourceResolved(t,r):t}}withSourceAsync(t){return this.shouldSkipResolving(t)?Promise.resolve(t):jt.async(t.file||"").then(r=>r.resolve(t)).then(r=>this.withSourceResolved(t,r)).catch(r=>this.withSourceResolved(t,{error:r,sourceLine:""}))}shouldSkipResolving(t){return t.sourceFile||t.error||t.file&&t.file.indexOf("<")>=0}withSourceResolved(t,r){return r.sourceFile&&!r.sourceFile.error&&(r.file=ut(r.sourceFile.path),r=this.extractEntryMetadata(r)),r.sourceLine.includes("// @hide")&&(r.sourceLine=r.sourceLine.replace("// @hide",""),r.hide=!0),(r.sourceLine.includes("__webpack_require__")||r.sourceLine.includes("/******/ ({"))&&(r.thirdParty=!0),Ht.assign({sourceLine:""},t,r)}withSources(){return this.map(t=>this.withSource(t))}withSourcesAsync(){return Promise.all(this.items.map(t=>this.withSourceAsync(t))).then(t=>new e(t))}mergeRepeatedLines(){return new e(Tc(this.items,t=>t.file+t.line).map(t=>t.items.slice(1).reduce((r,n)=>(r.callee=(r.callee||"<anonymous>")+" \u2192 "+(n.callee||"<anonymous>"),r.calleeShort=(r.calleeShort||"<anonymous>")+" \u2192 "+(n.calleeShort||"<anonymous>"),r),Ht.assign({},t.items[0]))))}clean(){let t=this.withSources().mergeRepeatedLines();return t.filter(t.isClean.bind(t))}cleanAsync(){return this.withSourcesAsync().then(t=>(t=t.mergeRepeatedLines(),t.filter(t.isClean.bind(t))))}isClean(t,r){return r===0||!(t.thirdParty||t.hide||t.native)}at(t){return Ht.assign({beforeParse:"",callee:"<???>",index:!1,native:!1,file:"<???>",line:0,column:0},this.items[t])}asTable(t){let r=t&&t.maxColumnWidths||this.maxColumnWidths(),n=(s,f)=>s&&(s.length>f?s.slice(0,f-1)+"\u2026":s),o=(s,f)=>s&&(s.length>f?"\u2026"+s.slice(-(f-1)):s),i=this.map(s=>["at "+n(s.calleeShort,r.callee),o(s.fileShort&&s.fileShort+":"+s.line||"",r.file),n((s.sourceLine||"").trim()||"",r.sourceLine)]);return Cc(i.items)}maxColumnWidths(){return{callee:30,file:60,sourceLine:80}}static resetCache(){jt.resetCache(),jt.async.resetCache()}static locationsEqual(t,r){return t.file===r.file&&t.line===r.line&&t.column===r.column}};["map","filter","slice","concat"].forEach(e=>{ft.prototype[e]=function(){return new ft(this.items[e].apply(this.items,arguments))}});Nr.exports=ft});var $i=k((Mh,Ui)=>{u();function Bc(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),f=s.length;f--;){var m=s[e?f:++o];if(r(i[m],m,i)===!1)break}return t}}Ui.exports=Bc});var qi=k((Bh,Ni)=>{u();var Ic=$i(),Pc=Ic();Ni.exports=Pc});var Hi=k((Ph,Gi)=>{u();var Oc=qi(),Fc=ia();function Uc(e,t){return e&&Oc(e,t,Fc)}Gi.exports=Uc});var Wi=k((Fh,ji)=>{u();var $c=ir();function Nc(e,t){return function(r,n){if(r==null)return r;if(!$c(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Object(r);(t?i--:++i<o)&&n(s[i],i,s)!==!1;);return r}}ji.exports=Nc});var Vi=k(($h,zi)=>{u();var qc=Hi(),Gc=Wi(),Hc=Gc(qc);zi.exports=Hc});var Ki=k((qh,Xi)=>{u();var jc=Vi(),Wc=ir();function zc(e,t){var r=-1,n=Wc(e)?Array(e.length):[];return jc(e,function(o,i,s){n[++r]=t(o,i,s)}),n}Xi.exports=zc});var Zi=k((Hh,Yi)=>{u();function Vc(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}Yi.exports=Vc});var es=k((Wh,Ji)=>{u();var Qi=sa();function Xc(e,t){if(e!==t){var r=e!==void 0,n=e===null,o=e===e,i=Qi(e),s=t!==void 0,f=t===null,m=t===t,d=Qi(t);if(!f&&!d&&!i&&e>t||i&&s&&m&&!f&&!d||n&&s&&m||!r&&m||!o)return 1;if(!n&&!i&&!d&&e<t||d&&r&&o&&!n&&!i||f&&r&&o||!s&&o||!m)return-1}return 0}Ji.exports=Xc});var rs=k((Vh,ts)=>{u();var Kc=es();function Yc(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,s=o.length,f=r.length;++n<s;){var m=Kc(o[n],i[n]);if(m){if(n>=f)return m;var d=r[n];return m*(d=="desc"?-1:1)}}return e.index-t.index}ts.exports=Yc});var os=k((Kh,ns)=>{u();var Hr=la(),Zc=ca(),Qc=fa(),Jc=Ki(),eu=Zi(),tu=oa(),ru=rs(),nu=ua(),ou=ra();function iu(e,t,r){t.length?t=Hr(t,function(i){return ou(i)?function(s){return Zc(s,i.length===1?i[0]:i)}:i}):t=[nu];var n=-1;t=Hr(t,tu(Qc));var o=Jc(e,function(i,s,f){var m=Hr(t,function(d){return d(i)});return{criteria:m,index:++n,value:i}});return eu(o,function(i,s){return ru(i,s,r)})}ns.exports=iu});var ss=k((Zh,is)=>{u();var su=ea(),au=ir(),lu=na(),cu=ta();function uu(e,t,r){if(!cu(r))return!1;var n=typeof t;return(n=="number"?au(r)&&lu(t,r.length):n=="string"&&t in r)?su(r[t],e):!1}is.exports=uu});var cs=k((Jh,ls)=>{u();var fu=ma(),mu=os(),du=da(),as=ss(),pu=du(function(e,t){if(e==null)return[];var r=t.length;return r>1&&as(e,t[0],t[1])?t=[]:r>2&&as(t[0],t[1],t[2])&&(t=[t[0]]),mu(e,fu(t,1),[])});ls.exports=pu});var hs=k((kg,ps)=>{"use strict";u();var xu=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,i=0,s="";do s+=e.substr(i,n-i)+t+r,i=n+o,n=e.indexOf(t,i);while(n!==-1);return s+=e.substr(i),s},yu=(e,t,r,n)=>{let o=0,i="";do{let s=e[n-1]==="\r";i+=e.substr(o,(s?n-1:n)-o)+t+(s?`\r
|
|
9
|
-
`:`
|
|
10
|
-
`)+r,o=n+1,n=e.indexOf(`
|
|
11
|
-
`,o)}while(n!==-1);return i+=e.substr(o),i};ps.exports={stringReplaceAll:xu,stringEncaseCRLFWithFirstIndex:yu}});var ws=k((_g,ys)=>{"use strict";u();var wu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,gs=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Eu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Su=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,vu=new Map([["n",`
|
|
12
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function xs(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):vu.get(e)||e}function Tu(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let i of n){let s=Number(i);if(!Number.isNaN(s))r.push(s);else if(o=i.match(Eu))r.push(o[2].replace(Su,(f,m,d)=>m?xs(m):d));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return r}function Cu(e){gs.lastIndex=0;let t=[],r;for(;(r=gs.exec(e))!==null;){let n=r[1];if(r[2]){let o=Tu(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function bs(e,t){let r={};for(let o of t)for(let i of o.styles)r[i[0]]=o.inverse?null:i.slice(1);let n=e;for(let[o,i]of Object.entries(r))if(Array.isArray(i)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=i.length>0?n[o](...i):n[o]}return n}ys.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(wu,(i,s,f,m,d,p)=>{if(s)o.push(xs(s));else if(m){let b=o.join("");o=[],n.push(r.length===0?b:bs(e,r)(b)),r.push({inverse:f,styles:Cu(m)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(bs(e,r)(o.join(""))),o=[],r.pop()}else o.push(p)}),n.push(o.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var Rs=k((Ig,As)=>{"use strict";u();var dt=ba(),{stdout:Wr,stderr:zr}=ha(),{stringReplaceAll:Au,stringEncaseCRLFWithFirstIndex:Ru}=hs(),{isArray:Zt}=Array,Ss=["ansi","ansi","ansi256","ansi16m"],Qe=Object.create(null),Lu=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Wr?Wr.level:0;e.level=t.level===void 0?r:t.level},Vr=class{constructor(t){return vs(t)}},vs=e=>{let t={};return Lu(t,e),t.template=(...r)=>Cs(t.template,...r),Object.setPrototypeOf(t,Qt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Vr,t.template};function Qt(e){return vs(e)}for(let[e,t]of Object.entries(dt))Qe[e]={get(){let r=Jt(this,Xr(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Qe.visible={get(){let e=Jt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ts=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Ts)Qe[e]={get(){let{level:t}=this;return function(...r){let n=Xr(dt.color[Ss[t]][e](...r),dt.color.close,this._styler);return Jt(this,n,this._isEmpty)}}};for(let e of Ts){let t="bg"+e[0].toUpperCase()+e.slice(1);Qe[t]={get(){let{level:r}=this;return function(...n){let o=Xr(dt.bgColor[Ss[r]][e](...n),dt.bgColor.close,this._styler);return Jt(this,o,this._isEmpty)}}}}var Du=Object.defineProperties(()=>{},{...Qe,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Xr=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},Jt=(e,t,r)=>{let n=(...o)=>Zt(o[0])&&Zt(o[0].raw)?Es(n,Cs(n,...o)):Es(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,Du),n._generator=e,n._styler=t,n._isEmpty=r,n},Es=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=Au(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
|
|
13
|
-
`);return i!==-1&&(t=Ru(t,o,n,i)),n+t+o},jr,Cs=(e,...t)=>{let[r]=t;if(!Zt(r)||!Zt(r.raw))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let i=1;i<r.length;i++)o.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return jr===void 0&&(jr=ws()),jr(e,o.join(""))};Object.defineProperties(Qt.prototype,Qe);var er=Qt();er.supportsColor=Wr;er.stderr=Qt({level:zr?zr.level:0});er.stderr.supportsColor=zr;As.exports=er});var Ls=k((Kr,Yr)=>{u();(function(e,t){typeof Kr=="object"&&typeof Yr<"u"?Yr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(Kr,(function(){"use strict";function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(a)}var t=/^\s+/,r=/\s+$/;function n(a,c){if(a=a||"",c=c||{},a instanceof n)return a;if(!(this instanceof n))return new n(a,c);var l=o(a);this._originalInput=a,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=c.format||l.format,this._gradientType=c.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var c=this.toRgb();return(c.r*299+c.g*587+c.b*114)/1e3},getLuminance:function(){var c=this.toRgb(),l,h,E,x,U,W;return l=c.r/255,h=c.g/255,E=c.b/255,l<=.03928?x=l/12.92:x=Math.pow((l+.055)/1.055,2.4),h<=.03928?U=h/12.92:U=Math.pow((h+.055)/1.055,2.4),E<=.03928?W=E/12.92:W=Math.pow((E+.055)/1.055,2.4),.2126*x+.7152*U+.0722*W},setAlpha:function(c){return this._a=ve(c),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var c=m(this._r,this._g,this._b);return{h:c.h*360,s:c.s,v:c.v,a:this._a}},toHsvString:function(){var c=m(this._r,this._g,this._b),l=Math.round(c.h*360),h=Math.round(c.s*100),E=Math.round(c.v*100);return this._a==1?"hsv("+l+", "+h+"%, "+E+"%)":"hsva("+l+", "+h+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var c=s(this._r,this._g,this._b);return{h:c.h*360,s:c.s,l:c.l,a:this._a}},toHslString:function(){var c=s(this._r,this._g,this._b),l=Math.round(c.h*360),h=Math.round(c.s*100),E=Math.round(c.l*100);return this._a==1?"hsl("+l+", "+h+"%, "+E+"%)":"hsla("+l+", "+h+"%, "+E+"%, "+this._roundA+")"},toHex:function(c){return p(this._r,this._g,this._b,c)},toHexString:function(c){return"#"+this.toHex(c)},toHex8:function(c){return b(this._r,this._g,this._b,this._a,c)},toHex8String:function(c){return"#"+this.toHex8(c)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(B(this._r,255)*100)+"%",g:Math.round(B(this._g,255)*100)+"%",b:Math.round(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(B(this._r,255)*100)+"%, "+Math.round(B(this._g,255)*100)+"%, "+Math.round(B(this._b,255)*100)+"%)":"rgba("+Math.round(B(this._r,255)*100)+"%, "+Math.round(B(this._g,255)*100)+"%, "+Math.round(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:$[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(c){var l="#"+S(this._r,this._g,this._b,this._a),h=l,E=this._gradientType?"GradientType = 1, ":"";if(c){var x=n(c);h="#"+S(x._r,x._g,x._b,x._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+l+",endColorstr="+h+")"},toString:function(c){var l=!!c;c=c||this._format;var h=!1,E=this._a<1&&this._a>=0,x=!l&&E&&(c==="hex"||c==="hex6"||c==="hex3"||c==="hex4"||c==="hex8"||c==="name");return x?c==="name"&&this._a===0?this.toName():this.toRgbString():(c==="rgb"&&(h=this.toRgbString()),c==="prgb"&&(h=this.toPercentageRgbString()),(c==="hex"||c==="hex6")&&(h=this.toHexString()),c==="hex3"&&(h=this.toHexString(!0)),c==="hex4"&&(h=this.toHex8String(!0)),c==="hex8"&&(h=this.toHex8String()),c==="name"&&(h=this.toName()),c==="hsl"&&(h=this.toHslString()),c==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(c,l){var h=c.apply(null,[this].concat([].slice.call(l)));return this._r=h._r,this._g=h._g,this._b=h._b,this.setAlpha(h._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(c,l){return c.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(X,arguments)},triad:function(){return this._applyCombination(P,[3])},tetrad:function(){return this._applyCombination(P,[4])}},n.fromRatio=function(a,c){if(e(a)=="object"){var l={};for(var h in a)a.hasOwnProperty(h)&&(h==="a"?l[h]=a[h]:l[h]=tt(a[h]));a=l}return n(a,c)};function o(a){var c={r:0,g:0,b:0},l=1,h=null,E=null,x=null,U=!1,W=!1;return typeof a=="string"&&(a=Qs(a)),e(a)=="object"&&(Te(a.r)&&Te(a.g)&&Te(a.b)?(c=i(a.r,a.g,a.b),U=!0,W=String(a.r).substr(-1)==="%"?"prgb":"rgb"):Te(a.h)&&Te(a.s)&&Te(a.v)?(h=tt(a.s),E=tt(a.v),c=d(a.h,h,E),U=!0,W="hsv"):Te(a.h)&&Te(a.s)&&Te(a.l)&&(h=tt(a.s),x=tt(a.l),c=f(a.h,h,x),U=!0,W="hsl"),a.hasOwnProperty("a")&&(l=a.a)),l=ve(l),{ok:U,format:a.format||W,r:Math.min(255,Math.max(c.r,0)),g:Math.min(255,Math.max(c.g,0)),b:Math.min(255,Math.max(c.b,0)),a:l}}function i(a,c,l){return{r:B(a,255)*255,g:B(c,255)*255,b:B(l,255)*255}}function s(a,c,l){a=B(a,255),c=B(c,255),l=B(l,255);var h=Math.max(a,c,l),E=Math.min(a,c,l),x,U,W=(h+E)/2;if(h==E)x=U=0;else{var Y=h-E;switch(U=W>.5?Y/(2-h-E):Y/(h+E),h){case a:x=(c-l)/Y+(c<l?6:0);break;case c:x=(l-a)/Y+2;break;case l:x=(a-c)/Y+4;break}x/=6}return{h:x,s:U,l:W}}function f(a,c,l){var h,E,x;a=B(a,360),c=B(c,100),l=B(l,100);function U(ce,rt,ge){return ge<0&&(ge+=1),ge>1&&(ge-=1),ge<1/6?ce+(rt-ce)*6*ge:ge<1/2?rt:ge<2/3?ce+(rt-ce)*(2/3-ge)*6:ce}if(c===0)h=E=x=l;else{var W=l<.5?l*(1+c):l+c-l*c,Y=2*l-W;h=U(Y,W,a+1/3),E=U(Y,W,a),x=U(Y,W,a-1/3)}return{r:h*255,g:E*255,b:x*255}}function m(a,c,l){a=B(a,255),c=B(c,255),l=B(l,255);var h=Math.max(a,c,l),E=Math.min(a,c,l),x,U,W=h,Y=h-E;if(U=h===0?0:Y/h,h==E)x=0;else{switch(h){case a:x=(c-l)/Y+(c<l?6:0);break;case c:x=(l-a)/Y+2;break;case l:x=(a-c)/Y+4;break}x/=6}return{h:x,s:U,v:W}}function d(a,c,l){a=B(a,360)*6,c=B(c,100),l=B(l,100);var h=Math.floor(a),E=a-h,x=l*(1-c),U=l*(1-E*c),W=l*(1-(1-E)*c),Y=h%6,ce=[l,U,x,x,W,l][Y],rt=[W,l,l,U,x,x][Y],ge=[x,x,W,l,l,U][Y];return{r:ce*255,g:rt*255,b:ge*255}}function p(a,c,l,h){var E=[re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16))];return h&&E[0].charAt(0)==E[0].charAt(1)&&E[1].charAt(0)==E[1].charAt(1)&&E[2].charAt(0)==E[2].charAt(1)?E[0].charAt(0)+E[1].charAt(0)+E[2].charAt(0):E.join("")}function b(a,c,l,h,E){var x=[re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16)),re(on(h))];return E&&x[0].charAt(0)==x[0].charAt(1)&&x[1].charAt(0)==x[1].charAt(1)&&x[2].charAt(0)==x[2].charAt(1)&&x[3].charAt(0)==x[3].charAt(1)?x[0].charAt(0)+x[1].charAt(0)+x[2].charAt(0)+x[3].charAt(0):x.join("")}function S(a,c,l,h){var E=[re(on(h)),re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16))];return E.join("")}n.equals=function(a,c){return!a||!c?!1:n(a).toRgbString()==n(c).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function v(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.s-=c/100,l.s=O(l.s),n(l)}function w(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.s+=c/100,l.s=O(l.s),n(l)}function A(a){return n(a).desaturate(100)}function C(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.l+=c/100,l.l=O(l.l),n(l)}function I(a,c){c=c===0?0:c||10;var l=n(a).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(c/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(c/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(c/100)))),n(l)}function R(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.l-=c/100,l.l=O(l.l),n(l)}function T(a,c){var l=n(a).toHsl(),h=(l.h+c)%360;return l.h=h<0?360+h:h,n(l)}function L(a){var c=n(a).toHsl();return c.h=(c.h+180)%360,n(c)}function P(a,c){if(isNaN(c)||c<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(a).toHsl(),h=[n(a)],E=360/c,x=1;x<c;x++)h.push(n({h:(l.h+x*E)%360,s:l.s,l:l.l}));return h}function X(a){var c=n(a).toHsl(),l=c.h;return[n(a),n({h:(l+72)%360,s:c.s,l:c.l}),n({h:(l+216)%360,s:c.s,l:c.l})]}function ee(a,c,l){c=c||6,l=l||30;var h=n(a).toHsl(),E=360/l,x=[n(a)];for(h.h=(h.h-(E*c>>1)+720)%360;--c;)h.h=(h.h+E)%360,x.push(n(h));return x}function z(a,c){c=c||6;for(var l=n(a).toHsv(),h=l.h,E=l.s,x=l.v,U=[],W=1/c;c--;)U.push(n({h,s:E,v:x})),x=(x+W)%1;return U}n.mix=function(a,c,l){l=l===0?0:l||50;var h=n(a).toRgb(),E=n(c).toRgb(),x=l/100,U={r:(E.r-h.r)*x+h.r,g:(E.g-h.g)*x+h.g,b:(E.b-h.b)*x+h.b,a:(E.a-h.a)*x+h.a};return n(U)},n.readability=function(a,c){var l=n(a),h=n(c);return(Math.max(l.getLuminance(),h.getLuminance())+.05)/(Math.min(l.getLuminance(),h.getLuminance())+.05)},n.isReadable=function(a,c,l){var h=n.readability(a,c),E,x;switch(x=!1,E=Js(l),E.level+E.size){case"AAsmall":case"AAAlarge":x=h>=4.5;break;case"AAlarge":x=h>=3;break;case"AAAsmall":x=h>=7;break}return x},n.mostReadable=function(a,c,l){var h=null,E=0,x,U,W,Y;l=l||{},U=l.includeFallbackColors,W=l.level,Y=l.size;for(var ce=0;ce<c.length;ce++)x=n.readability(a,c[ce]),x>E&&(E=x,h=n(c[ce]));return n.isReadable(a,h,{level:W,size:Y})||!U?h:(l.includeFallbackColors=!1,n.mostReadable(a,["#fff","#000"],l))};var H=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=n.hexNames=pe(H);function pe(a){var c={};for(var l in a)a.hasOwnProperty(l)&&(c[a[l]]=l);return c}function ve(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function B(a,c){ie(a)&&(a="100%");var l=se(a);return a=Math.min(c,Math.max(0,parseFloat(a))),l&&(a=parseInt(a*c,10)/100),Math.abs(a-c)<1e-6?1:a%c/parseFloat(c)}function O(a){return Math.min(1,Math.max(0,a))}function F(a){return parseInt(a,16)}function ie(a){return typeof a=="string"&&a.indexOf(".")!=-1&&parseFloat(a)===1}function se(a){return typeof a=="string"&&a.indexOf("%")!=-1}function re(a){return a.length==1?"0"+a:""+a}function tt(a){return a<=1&&(a=a*100+"%"),a}function on(a){return Math.round(parseFloat(a)*255).toString(16)}function sn(a){return F(a)/255}var he=(function(){var a="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",l="(?:"+c+")|(?:"+a+")",h="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",E="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+h),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+h),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+h),hsva:new RegExp("hsva"+E),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Te(a){return!!he.CSS_UNIT.exec(a)}function Qs(a){a=a.replace(t,"").replace(r,"").toLowerCase();var c=!1;if(H[a])a=H[a],c=!0;else if(a=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=he.rgb.exec(a))?{r:l[1],g:l[2],b:l[3]}:(l=he.rgba.exec(a))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=he.hsl.exec(a))?{h:l[1],s:l[2],l:l[3]}:(l=he.hsla.exec(a))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=he.hsv.exec(a))?{h:l[1],s:l[2],v:l[3]}:(l=he.hsva.exec(a))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=he.hex8.exec(a))?{r:F(l[1]),g:F(l[2]),b:F(l[3]),a:sn(l[4]),format:c?"name":"hex8"}:(l=he.hex6.exec(a))?{r:F(l[1]),g:F(l[2]),b:F(l[3]),format:c?"name":"hex"}:(l=he.hex4.exec(a))?{r:F(l[1]+""+l[1]),g:F(l[2]+""+l[2]),b:F(l[3]+""+l[3]),a:sn(l[4]+""+l[4]),format:c?"name":"hex8"}:(l=he.hex3.exec(a))?{r:F(l[1]+""+l[1]),g:F(l[2]+""+l[2]),b:F(l[3]+""+l[3]),format:c?"name":"hex"}:!1}function Js(a){var c,l;return a=a||{level:"AA",size:"small"},c=(a.level||"AA").toUpperCase(),l=(a.size||"small").toLowerCase(),c!=="AA"&&c!=="AAA"&&(c="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:c,size:l}}return n}))});var Ps=k((Fg,Is)=>{u();var pt=Ls(),_s={r:256,g:256,b:256,a:1},Bs={h:360,s:1,v:1,a:1};function Jr(e,t,r){let n={};for(let o in e)e.hasOwnProperty(o)&&(n[o]=r===0?0:(t[o]-e[o])/r);return n}function en(e,t,r,n){let o={};for(let i in t)t.hasOwnProperty(i)&&(o[i]=e[i]*r+t[i],o[i]=o[i]<0?o[i]+n[i]:n[i]!==1?o[i]%n[i]:o[i]);return o}function Zr(e,t,r){let n=e.color.toRgb(),o=t.color.toRgb(),i=Jr(n,o,r),s=[e.color];for(let f=1;f<r;f++){let m=en(i,n,f,_s);s.push(pt(m))}return s}function Ds(e,t,r,n){let o=e.color.toHsv(),i=t.color.toHsv();if(o.s===0||i.s===0)return Zr(e,t,r);let s;if(typeof n=="boolean")s=n;else{let p=o.h<i.h&&i.h-o.h<180||o.h>i.h&&o.h-i.h>180;s=n==="long"&&p||n==="short"&&!p}let f=Jr(o,i,r),m=[e.color],d;o.h<=i.h&&!s||o.h>=i.h&&s?d=i.h-o.h:s?d=360-i.h+o.h:d=360-o.h+i.h,f.h=Math.pow(-1,s?1:0)*Math.abs(d)/r;for(let p=1;p<r;p++){let b=en(f,o,p,Bs);m.push(pt(b))}return m}function ks(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let i=1;i<r;i++){let s=(t-1)*(e[i].pos-e[i-1].pos);n.push(Math.max(1,Math.round(s)))}let o=1;for(let i=r-1;i--;)o+=n[i];for(;o!==t;)if(o<t){let i=Math.min.apply(null,n);n[n.indexOf(i)]++,o++}else{let i=Math.max.apply(null,n);n[n.indexOf(i)]--,o--}return n}function Ms(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let o,i;for(let m=0,d=e.length;m<d-1;m++)if(t>=e[m].pos&&t<e[m+1].pos){o=e[m],i=e[m+1];break}o||(o=i=e[e.length-1]);let s=Jr(o.color[r](),i.color[r](),(i.pos-o.pos)*100),f=en(s,o.color[r](),(t-o.pos)*100,n);return pt(f)}var Qr=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,o=-1,i=!1;this.stops=t.map((s,f)=>{let m=s.pos!==void 0;if(r^m)throw new Error("Cannot mix positionned and not posionned color stops");if(m){let d=s.color!==void 0;if(!d&&(i||f===0||f===n-1))throw new Error("Cannot define two consecutive position-only stops");if(i=!d,s={color:d?pt(s.color):null,colorLess:!d,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<o)throw new Error("Color stops positions are not ordered");o=s.pos}else s={color:pt(s.color!==void 0?s.color:s),pos:f/(n-1)};return s}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new e(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new e(t.concat(r.reverse()))}rgb(t){let r=ks(this.stops,t),n=[];this.stops.forEach((o,i)=>{o.colorLess&&(o.color=Zr(this.stops[i-1],this.stops[i+1],2)[1])});for(let o=0,i=this.stops.length;o<i-1;o++){let s=Zr(this.stops[o],this.stops[o+1],r[o]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=ks(this.stops,t),o=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Ds(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let f=Ds(this.stops[i],this.stops[i+1],n[i],r);o.splice(o.length,0,...f)}return o.push(this.stops[this.stops.length-1].color),o}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(o){n+=", "+(o.colorLess?"":o.color.toRgbString()+" ")+o.pos*100+"%"}),n+=")",n}rgbAt(t){return Ms(this.stops,t,"toRgb",_s)}hsvAt(t){return Ms(this.stops,t,"toHsv",Bs)}};Is.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new Qr(e)}});var Ns=k(($g,tr)=>{"use strict";u();var Fs=Rs(),ku=Ps(),Os=/\s/g;function tn(...e){let t=ku.apply(this,e),r=(n,o)=>Mu(n?n.toString():"",t,o);return r.multiline=(n,o)=>_u(n?n.toString():"",t,o),r}var Us=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function Mu(e,t,r){let n=$s(r),o=Math.max(e.replace(Os,"").length,t.stops.length),i=Us(t,n,o),s="";for(let f of e)s+=f.match(Os)?f:Fs.hex(i.shift().toHex())(f);return s}function _u(e,t,r){let n=$s(r),o=e.split(`
|
|
14
|
-
`),i=Math.max.apply(null,o.map(m=>m.length).concat([t.stops.length])),s=Us(t,n,i),f=[];for(let m of o){let d=s.slice(0),p="";for(let b of m)p+=Fs.hex(d.shift().toHex())(b);f.push(p)}return f.join(`
|
|
15
|
-
`)}function $s(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var ht={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};tr.exports=tn;for(let e in ht)tr.exports[e]=t=>new tn(ht[e].colors)(t,ht[e].options),tr.exports[e].multiline=t=>new tn(ht[e].colors).multiline(t,ht[e].options)});u();u();u();u();var Ho=D(mo(),1);import{Buffer as Il}from"node:buffer";import Pl from"node:path";import Dr from"node:child_process";import Lt from"node:process";u();function br(e){let t=typeof e=="string"?`
|
|
16
|
-
`:10,r=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}u();var Tt=new WeakMap,po=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(Tt.set(i,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return r};return bn(i,e),Tt.set(i,n),i};po.callCount=e=>{if(!Tt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Tt.get(e)};var ho=po;u();import ol from"node:process";u();import{constants as Qa}from"node:os";u();var go=()=>{let e=xo-bo+1;return Array.from({length:e},Ka)},Ka=(e,t)=>({name:`SIGRT${t+1}`,number:bo+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),bo=34,xo=64;u();import{constants as Ya}from"node:os";u();var yo=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var xr=()=>{let e=go();return[...yo,...e].map(Za)},Za=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{let{signals:{[e]:s}}=Ya,f=s!==void 0;return{name:e,number:f?s:t,description:r,supported:f,action:n,forced:o,standard:i}};var Ja=()=>{let e=xr();return Object.fromEntries(e.map(el))},el=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],wo=Ja(),tl=()=>{let e=xr(),t=65,r=Array.from({length:t},(n,o)=>rl(o,e));return Object.assign({},...r)},rl=(e,t)=>{let r=nl(e,t);if(r===void 0)return{};let{name:n,description:o,supported:i,action:s,forced:f,standard:m}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:f,standard:m}}},nl=(e,t)=>{let r=t.find(({name:n})=>Qa.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},Bf=tl();var il=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",ot=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:s,escapedCommand:f,timedOut:m,isCanceled:d,killed:p,parsed:{options:{timeout:b,cwd:S=ol.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let v=o===void 0?void 0:wo[o].description,w=n&&n.code,C=`Command ${il({timedOut:m,timeout:b,errorCode:w,signal:o,signalDescription:v,exitCode:i,isCanceled:d})}: ${s}`,I=Object.prototype.toString.call(n)==="[object Error]",R=I?`${C}
|
|
17
|
-
${n.message}`:C,T=[R,t,e].filter(Boolean).join(`
|
|
18
|
-
`);return I?(n.originalMessage=n.message,n.message=T):n=new Error(T),n.shortMessage=R,n.command=s,n.escapedCommand=f,n.exitCode=i,n.signal=o,n.signalDescription=v,n.stdout=e,n.stderr=t,n.cwd=S,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!m,n.isCanceled=d,n.killed=p&&!m,n};u();var Ct=["stdin","stdout","stderr"],sl=e=>Ct.some(t=>e[t]!==void 0),Eo=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Ct.map(n=>e[n]);if(sl(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ct.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Ct.length);return Array.from({length:r},(n,o)=>t[o])};u();var So=D(pa(),1);import al from"node:os";var ll=1e3*5,vo=(e,t="SIGTERM",r={})=>{let n=e(t);return cl(e,t,r,n),n},cl=(e,t,r,n)=>{if(!ul(t,r,n))return;let o=ml(r),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},ul=(e,{forceKillAfterTimeout:t},r)=>fl(e)&&t!==!1&&r,fl=e=>e===al.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",ml=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return ll;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},To=(e,t)=>{e.kill()&&(t.isCanceled=!0)},dl=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},Co=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let o,i=new Promise((f,m)=>{o=setTimeout(()=>{dl(e,r,m)},t)}),s=n.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},Ao=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Ro=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let o=(0,So.default)(()=>{e.kill()});return n.finally(()=>{o()})};u();import{createWriteStream as pl}from"node:fs";import{ChildProcess as hl}from"node:child_process";u();function At(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function yr(e){return At(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var gl=e=>e instanceof hl&&typeof e.then=="function",wr=(e,t,r)=>{if(typeof r=="string")return e[t].pipe(pl(r)),e;if(yr(r))return e[t].pipe(r),e;if(!gl(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!yr(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},Lo=e=>{e.stdout!==null&&(e.pipeStdout=wr.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=wr.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=wr.bind(void 0,e,"all"))};u();import{createReadStream as xl,readFileSync as yl}from"node:fs";var vr=D(wa(),1),Mo=D(ko(),1),_o=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},wl=({input:e,inputFile:t})=>typeof t!="string"?e:(_o(e),yl(t)),Bo=e=>{let t=wl(e);if(At(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},El=({input:e,inputFile:t})=>typeof t!="string"?e:(_o(e),xl(t)),Io=(e,t)=>{let r=El(t);r!==void 0&&(At(r)?r.pipe(e.stdin):e.stdin.end(r))},Po=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,Mo.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Er=async(e,t)=>{if(!(!e||t===void 0)){e.destroy();try{return await t}catch(r){return r.bufferedData}}},Sr=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?(0,vr.default)(e,{encoding:t,maxBuffer:n}):vr.default.buffer(e,{maxBuffer:n})},Oo=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},s)=>{let f=Sr(e,{encoding:n,buffer:o,maxBuffer:i}),m=Sr(t,{encoding:n,buffer:o,maxBuffer:i}),d=Sr(r,{encoding:n,buffer:o,maxBuffer:i*2});try{return await Promise.all([s,f,m,d])}catch(p){return Promise.all([{error:p,signal:p.signal,timedOut:p.timedOut},Er(e,f),Er(t,m),Er(r,d)])}};u();var Sl=(async()=>{})().constructor.prototype,vl=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Sl,e)]),Tr=(e,t)=>{for(let[r,n]of vl){let o=typeof t=="function"?(...i)=>Reflect.apply(n.value,t(),i):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}},Fo=e=>new Promise((t,r)=>{e.on("exit",(n,o)=>{t({exitCode:n,signal:o})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});u();import{Buffer as Tl}from"node:buffer";import{ChildProcess as Cl}from"node:child_process";var No=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Al=/^[\w.-]+$/,Rl=/"/g,Ll=e=>typeof e!="string"||Al.test(e)?e:`"${e.replace(Rl,'\\"')}"`,Cr=(e,t)=>No(e,t).join(" "),Ar=(e,t)=>No(e,t).map(r=>Ll(r)).join(" "),Dl=/ +/g;var Uo=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Cl)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(Tl.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},$o=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],kl=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{let i=o??e.raw[n],s=i.split(Dl).filter(Boolean),f=$o(r,s,i.startsWith(" "));if(n===t.length)return f;let m=t[n],d=Array.isArray(m)?m.map(p=>Uo(p)):[Uo(m)];return $o(f,d,i.endsWith(" "))},Rr=(e,t)=>{let r=[];for(let[n,o]of e.entries())r=kl({templates:e,expressions:t,tokens:r,index:n,template:o});return r};u();import{debuglog as Ml}from"node:util";import _l from"node:process";var qo=Ml("execa").enabled,Rt=(e,t)=>String(e).padStart(t,"0"),Bl=()=>{let e=new Date;return`${Rt(e.getHours(),2)}:${Rt(e.getMinutes(),2)}:${Rt(e.getSeconds(),2)}.${Rt(e.getMilliseconds(),3)}`},Lr=(e,{verbose:t})=>{t&&_l.stderr.write(`[${Bl()}] ${e}
|
|
19
|
-
`)};var Ol=1e3*1e3*100,Fl=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{let i=t?{...Lt.env,...e}:e;return r?xn({env:i,cwd:n,execPath:o}):i},jo=(e,t,r={})=>{let n=Ho.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Ol,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Lt.cwd(),execPath:Lt.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:qo,...r},r.env=Fl(r),r.stdio=Eo(r),Lt.platform==="win32"&&Pl.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},it=(e,t,r)=>typeof t!="string"&&!Il.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?br(t):t;function Pe(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options),Ao(n.options);let s;try{s=Dr.spawn(n.file,n.args,n.options)}catch(v){let w=new Dr.ChildProcess,A=Promise.reject(ot({error:v,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Tr(w,A),w}let f=Fo(s),m=Co(s,n.options,f),d=Ro(s,n.options,m),p={isCanceled:!1};s.kill=vo.bind(null,s.kill.bind(s)),s.cancel=To.bind(null,s,p);let S=ho(async()=>{let[{error:v,exitCode:w,signal:A,timedOut:C},I,R,T]=await Oo(s,n.options,d),L=it(n.options,I),P=it(n.options,R),X=it(n.options,T);if(v||w!==0||A!==null){let ee=ot({error:v,exitCode:w,signal:A,stdout:L,stderr:P,all:X,command:o,escapedCommand:i,parsed:n,timedOut:C,isCanceled:p.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:s.killed});if(!n.options.reject)return ee;throw ee}return{command:o,escapedCommand:i,exitCode:0,stdout:L,stderr:P,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Io(s,n.options),s.all=Po(s,n.options),Lo(s),Tr(s,S),s}function Ul(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options);let s=Bo(n.options),f;try{f=Dr.spawnSync(n.file,n.args,{...n.options,input:s})}catch(p){throw ot({error:p,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let m=it(n.options,f.stdout,f.error),d=it(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let p=ot({stdout:m,stderr:d,error:f.error,signal:f.signal,exitCode:f.status,command:o,escapedCommand:i,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return p;throw p}return{command:o,escapedCommand:i,exitCode:0,stdout:m,stderr:d,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var $l=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},Go=(e={})=>({preferLocal:!0,...$l(e),...e});function Wo(e){function t(r,...n){if(!Array.isArray(r))return Wo({...e,...r});let[o,...i]=Rr(r,n);return Pe(o,i,Go(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=Rr(r,n);return Ul(o,i,Go(e))},t}var Mm=Wo();import{userInfo as Nl}from"os";async function Fm(e=process.platform){Ie(St`Obtaining user name...`);let t=ql();if(t)return t;let r=Gl();if(r)return r;try{if(e==="win32"){let{stdout:o}=await Pe("whoami");return Hl(o)}let{stdout:n}=await Pe("id",["-u"]);try{let{stdout:o}=await Pe("id",["-un",n]);return o}catch{}return jl(n)}catch{return null}}function zo(e=process.platform,t=process.arch){let r;return t==="x64"?r="amd64":t==="ia32"?r="386":r=t,{platform:e.match(/^win.+/)?"windows":e,arch:r}}function ql(){let{env:e}=process;return e.SUDO_USER||e.C9_USER||e.LOGNAME||e.USER||e.LNAME||e.USERNAME}function Gl(){try{return Nl().username}catch{return null}}function Hl(e){return e.replace(/^.*\\/,"")}function jl(e){return`no-username-${e}`}var Xo=D(ga()),Ko=D(ya());import{fstatSync as Wl}from"fs";import{setTimeout as zl}from"timers/promises";var Vl=10*1024*1024;async function Qm(e){if(vn())return!1;let t=await import("./open-KLSGXBIW.js");try{return await t.default(e),!0}catch{return!1}}async function Jm(e,t,r){return(await kr(e,t,r)).stdout}async function Xl(e,t,r){let n=await kr(e,t,r,{reject:!1});return{stdout:n.stdout,stderr:n.stderr,exitCode:n.exitCode??0}}function Yo(e){let t=[],r="",n=null;for(let o of e)n?o===n?n=null:r+=o:o==='"'||o==="'"?n=o:o===" "||o===" "?r&&(t.push(r),r=""):r+=o;return r&&t.push(r),t}async function ed(e,t){let[r,...n]=Yo(e);return r?Xl(r,n,t):{stdout:"",stderr:"Empty command",exitCode:1}}async function td(e,t){let[r,...n]=Yo(e);if(!r)throw new qe("Empty command");await Kl(r,n,t)}async function Kl(e,t,r){if(r){let i=zo().platform==="windows";r.background=i?!1:r.background}let n=kr(e,t,r);r?.background&&n.unref(),r?.stderr&&r.stderr!=="inherit"&&n.stderr?.pipe(r.stderr,{end:!1}),r?.stdout&&r.stdout!=="inherit"&&n.stdout?.pipe(r.stdout,{end:!1});let o=!1;r?.signal?.addEventListener("abort",()=>{let i=n.pid;i&&(Ie(`Killing process ${i}: ${e} ${t.join(" ")}`),o=!0,wt(i,"SIGTERM"))});try{await n}catch(i){if(o)return;if(r?.externalErrorHandler)await r.externalErrorHandler(i);else{let s=new Et(i.message,e,t);throw s.stack=i.stack,s}}}function kr(e,t,r,n){let o=r?.env??process.env;ke()&&(o.FORCE_COLOR="1");let i=r?.cwd??cn();Yl(e,{cwd:i});let s=Pe(e,t,{env:o,cwd:i,input:r?.input,stdio:r?.background?"ignore":r?.stdio,stdin:r?.stdin,stdout:r?.stdout==="inherit"?"inherit":void 0,stderr:r?.stderr==="inherit"?"inherit":void 0,windowsHide:!1,detached:r?.background,cleanup:!r?.background,...n});return Ie(`Running system process${r?.background?" in background":""}:
|
|
20
|
-
\xB7 Command: ${e} ${t.join(" ")}
|
|
21
|
-
\xB7 Working directory: ${i}
|
|
22
|
-
`),s}function Yl(e,t){let r=`${t.cwd}${an}${process.env.PATH}`,n=Ko.default.sync(e,{nothrow:!0,path:r});if(n&&ln(n)===t.cwd){let o=["Skipped run of unsecure binary",{command:e},"found in the current directory."],i="Please remove that file or review your current PATH.";throw Vo({headline:o,body:i}),new qe(o,i)}}async function rd(e){await zl(1e3*e)}function nd(){return Xo.default.stdout}function Zo(){return or(process.env.CI)?!1:!!(process.stdin.isTTY&&process.stdout.isTTY)}function od(){return or(process.env.CI)}async function id(){return(await import("./is-wsl-UEMXYJPN.js")).default}function Zl(){try{let e=Wl(0);return e.isFIFO()||e.isFile()}catch{return!1}}async function sd(){if(!Zl())return;let e="",t=0;process.stdin.setEncoding("utf8");for await(let r of process.stdin){let n=String(r);if(t+=Buffer.byteLength(n,"utf8"),t>Vl)throw new qe("Stdin input exceeded the maximum allowed size.");e+=n}return e.trim()}u();var Mt=D(Jo()),kt=class extends Mt.AbortController{},ei=class extends Mt.AbortSignal{};u();u();var ae=D(N(),1);import{EventEmitter as Jl}from"events";var ti=(0,ae.createContext)(null);function te(){let e=(0,ae.useContext)(ti);if(!e)throw new Error("useComplete() called outside InkLifecycleRoot");return e}function ec({children:e}){let{exit:t}=dn(),[r,n]=(0,ae.useState)(null),o=(0,ae.useCallback)(i=>{n({error:i})},[]);return(0,ae.useEffect)(()=>{r!==null&&t(r.error)},[r,t]),ae.default.createElement(ti.Provider,{value:o},e)}function at(e,{logLevel:t="info",renderOptions:r}){let{output:n,unmount:o}=tc(e,r);return n&&yn(n,t),o(),n}async function Me(e,t){let{waitUntilExit:r}=sr(ae.default.createElement(ec,null,e),{patchConsole:!nt(),...t});await r()}var Mr=class extends Jl{constructor(t){super(),this.frames=[],this.write=r=>{this.frames.push(r),r!==`
|
|
23
|
-
`&&(this._lastFrame=r)},this.lastFrame=()=>this._lastFrame,this.columns=t.columns??80,this.rows=t.rows??80}},tc=(e,t)=>{let r=nt()?80:process.stdout.columns,n=t?.stdout??new Mr({columns:r}),o=sr(e,{stdout:n,debug:!0,exitOnCtrlC:!1,patchConsole:!1});return{output:n.lastFrame(),unmount:o.unmount}};function me(e,t,r=()=>{wt(process.pid,"SIGINT")}){e==="c"&&t.ctrl&&r()}var Z=D(N(),1);u();import rc from"node:process";u();u();import be from"node:process";function _r(){return be.platform!=="win32"?be.env.TERM!=="linux":!!be.env.CI||!!be.env.WT_SESSION||!!be.env.TERMINUS_SUBLIME||be.env.ConEmuTask==="{cmd::Cmder}"||be.env.TERM_PROGRAM==="Terminus-Sublime"||be.env.TERM_PROGRAM==="vscode"||be.env.TERM==="xterm-256color"||be.env.TERM==="alacritty"||be.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var{platform:nc}=rc,ri={square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},oc={...ri,...nc==="linux"?{circleQuestionMark:"?\u20DD",questionMarkPrefix:"?\u20DD"}:{circleQuestionMark:"?",questionMarkPrefix:"?"},tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},ic={...ri,tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},sc=_r(),ac=sc?oc:ic,ne=ac;import{Writable as lc}from"stream";import{AsyncLocalStorage as cc}from"node:async_hooks";function Br(e){return e<10?`0${e}`:e.toString()}function uc(){let e=new Date,t=Br(e.getHours()),r=Br(e.getMinutes()),n=Br(e.getSeconds());return`${t}:${r}:${n}`}var ni=new cc;function Fd(e,t){return ni.run(e,t)}var oi=({processes:e,prefixColumnSize:t,abortSignal:r,showTimestamps:n=!0,keepRunningAfterProcessesResolve:o=!1,useAlternativeColorPalette:i=!1})=>{let[s,f]=(0,Z.useState)([]),[m,d]=(0,Z.useState)(null),p=te(),b=(0,Z.useMemo)(()=>i?["#b994c3","#e69e19","#d17a73","cyan","magenta","blue"]:["yellow","cyan","magenta","green","blue"],[i]),S=(0,Z.useMemo)(()=>{let T=t??e.reduce((L,P)=>Math.max(L,P.prefix.length),0);return Math.min(T,25)},[e,t]),v=(R,T)=>{let L=T.indexOf(R);return L!==-1?L:(T.push(R),T.length-1)},w=(0,Z.useCallback)(R=>{let T=R%b.length;return b[T]},[b]),A=(0,Z.useCallback)((R,T)=>new lc({write(L,P,X){let ee=ni.getStore(),z=ee?.outputPrefix??R.prefix,H=ee?.stripAnsi??!0,$=L.toString("utf8").replace(/(\n)$/,""),pe=v(z,T),ve=H?fn($).split(/\n/):$.split(/\n/);f(B=>[...B,{color:w(pe),prefix:z,lines:ve}]),X()}}),[w]),C=R=>R.length>S?R.substring(0,S):`${" ".repeat(S-R.length)}${R}`;(0,Z.useEffect)(()=>{(async()=>{let T=[];try{await Promise.all(e.map(async L=>{let P=A(L,T),X=A(L,T);await L.action(P,X,r)})),o||d({})}catch(L){o||d({error:L})}})()},[r,e,A,o]),(0,Z.useEffect)(()=>{m!==null&&p(m.error)},[m,p]);let{lineVertical:I}=ne;return Z.default.createElement(mn,{items:s},(R,T)=>Z.default.createElement(g,{flexDirection:"column",key:T},R.lines.map((L,P)=>Z.default.createElement(g,{key:P,flexDirection:"row"},Z.default.createElement(y,null,n?Z.default.createElement(y,null,uc()," ",I," "):null,Z.default.createElement(y,{color:R.color},C(R.prefix)),Z.default.createElement(y,null," ",I," ",L))))))};u();u();u();u();var It=D(N(),1),_t=20,Bt=80;function de(){let{stdout:e}=De(),[t,r]=(0,It.useState)(ii(e));return(0,It.useLayoutEffect)(()=>{if(!e)return;function n(){r(ii(e))}return e.on("resize",n),()=>{e.off("resize",n)}},[]),t}function ii(e){let t=e?.columns??Bt,r=t,n=t;return t<=_t?(t=_t,r=_t,n=_t):t>Bt&&(r=si({fullWidth:t,fraction:[1,3],minWidth:Bt}),n=si({fullWidth:t,fraction:[2,3],minWidth:Bt})),{fullWidth:t,oneThird:r,twoThirds:n}}function si({fullWidth:e,fraction:t,minWidth:r}){let n=Math.floor(e/t[1]*t[0]);return n<r?r:n}var K=D(N(),1);function Pt(e){return{success:"green",error:"red",warning:"yellow",info:"dim",external_error:"red"}[e]}var fc=()=>{let e=(0,K.useContext)(ar);if(e===null||e.links.current===null)return null;let t=e.links.current,r=Object.keys(t);return r.length>0?K.default.createElement(g,{marginBottom:1,marginTop:-1,flexDirection:"column"},r.map(n=>{let o=`[${n}] ${t[n]?.url}`;return K.default.createElement(g,{key:n,width:o.length},K.default.createElement(y,null,o))})):null},mc=({type:e,children:t})=>{let{twoThirds:r}=de(),n=(0,K.useRef)({});return K.default.createElement(ar.Provider,{value:{links:n,addLink:(o,i)=>{let s=Object.keys(n.current).find(m=>n.current[m].url===i);if(s)return s;let f=(Object.keys(n.current).length+1).toString();return n.current={...n.current,[f]:{label:o,url:i}},f}}},K.default.createElement(g,{width:r,marginBottom:1,borderStyle:"round",flexDirection:"column",borderColor:Pt(e)},K.default.createElement(g,{marginTop:-1,marginLeft:1},K.default.createElement(y,null,` ${e.replace(/_/g," ")} `)),K.default.createElement(g,{flexDirection:"column",paddingY:1,paddingX:2,gap:1},t)),K.default.createElement(fc,null))},dc=({type:e,children:t})=>{let{twoThirds:r}=de(),n=r-2-e.length-2;return n<0&&(n=0),K.default.createElement(g,{flexDirection:"column",marginBottom:1,gap:1},K.default.createElement(y,null,K.default.createElement(y,{color:Pt(e)},"\u2500".repeat(2)),K.default.createElement(y,null,` ${e.replace(/_/g," ")} `),K.default.createElement(y,{color:Pt(e)},"\u2500".repeat(n))),t,K.default.createElement(y,{color:Pt(e)},"\u2500".repeat(r)))},Ot=({children:e,...t})=>t.type==="external_error"?K.default.createElement(dc,t,e):K.default.createElement(mc,t,e);u();var lt=D(N(),1),Ft=({tabularData:e,firstColumnSubdued:t})=>{let r=e.reduce((n,o)=>(o.forEach((i,s)=>{n[s]=Math.max(n[s]??0,Ge($e(i)).length)}),n),[]);return lt.default.createElement(g,{flexDirection:"column"},e.map((n,o)=>lt.default.createElement(g,{key:o,flexDirection:"row",gap:2},n.map((i,s)=>lt.default.createElement(g,{key:s,width:r[s]??0,flexShrink:s===0?0:1},lt.default.createElement(V,{item:s===0&&t&&typeof i=="string"?{subdued:i}:i}))))))};var le=D(N(),1),ai=({type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,customSections:s,orderedNextSteps:f=!1})=>le.default.createElement(Ot,{type:e},t?le.default.createElement(y,{bold:!0},le.default.createElement(V,{item:t})):null,r?le.default.createElement(V,{item:r}):null,n&&n.length>0?le.default.createElement(Be,{title:"Next steps",items:n,ordered:f}):null,o&&o.length>0?le.default.createElement(Be,{title:"Reference",items:o}):null,i?le.default.createElement(hn,{url:i.url,label:i.label}):null,s&&s.length>0?le.default.createElement(g,{flexDirection:"column",gap:1},s.map((m,d)=>le.default.createElement(g,{key:d,flexDirection:"column"},m.title?le.default.createElement(y,{bold:!0},m.title):null,typeof m.body=="object"&&"tabularData"in m.body?le.default.createElement(Ft,{...m.body}):le.default.createElement(V,{item:m.body})))):null);var li=D(N(),1),pc={info:"info",warning:"warn",success:"info",error:"error"};function ct({type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,customSections:s,orderedNextSteps:f=!1,renderOptions:m}){let{type:d,...p}=arguments[0];return at(li.default.createElement(ai,{type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,orderedNextSteps:f,customSections:s}),{logLevel:pc[e],renderOptions:m})}u();var Q=D(N(),1),_i=D(Mi(),1),Bi=({error:e})=>{let t,r;return e instanceof En&&(t=new _i.default(e),t.items.forEach(n=>{n.file=Sn(n.file)}),t=t.withSources(),t=t.filter(n=>!n.file.includes("@oclif/core")).map(n=>{let o=n.fileShort.split("packages/");return n.fileShort=o.length===2?o[1]:o[0],n})),e instanceof Et&&(r=`${e.command} ${e.args.join(" ")}`),Q.default.createElement(Ot,{type:r?"external_error":"error"},r?Q.default.createElement(y,null,"Error coming from ",Q.default.createElement(pn,{command:r})):null,e.formattedMessage?Q.default.createElement(V,{item:e.formattedMessage}):Q.default.createElement(V,{item:e.message}),e.tryMessage?Q.default.createElement(V,{item:e.tryMessage}):null,e.nextSteps&&e.nextSteps.length>0?Q.default.createElement(Be,{title:"Next steps",items:e.nextSteps}):null,e.customSections&&e.customSections.length>0?Q.default.createElement(g,{flexDirection:"column",gap:1},e.customSections.map((n,o)=>Q.default.createElement(g,{key:o,flexDirection:"column"},n.title?Q.default.createElement(y,{bold:!0},n.title):null,typeof n.body=="object"&&"tabularData"in n.body?Q.default.createElement(Ft,{...n.body}):Q.default.createElement(V,{item:n.body})))):null,t&&t.items.length!==0?Q.default.createElement(g,{flexDirection:"column"},Q.default.createElement(y,null,"To investigate the issue, examine this stack trace:"),t.items.map((n,o)=>Q.default.createElement(g,{flexDirection:"column",key:o,paddingLeft:2},Q.default.createElement(y,null,"at",n.calleeShort?Q.default.createElement(y,{color:"yellow"},` ${n.calleeShort}`):null,n.fileShort?` (${n.fileShort}:${n.line})`:null),Q.default.createElement(g,{paddingLeft:2},Q.default.createElement(y,{dimColor:!0},n.sourceLine?.trim()))))):null)};u();u();var Wt=D(N(),1);function Ac(e,t){return e.reduce((r,n,o)=>r.length===0?[n]:[...r,t(o),n],[])}var zt=({rowKey:e,columns:t,data:r,fillerChar:n,ignoreColumnColor:o})=>Wt.default.createElement(g,{flexDirection:"row"},...Ac(t.map(i=>{let s=r[i.name],f=`${e}-cell-${i.name.toString()}`,m=i.width-Ge(String(s??"")).length;return Wt.default.createElement(y,{key:f,color:o?void 0:i.color},s,n.repeat(m))}),i=>{let s=`${e}-horizontal-separator-${i}`;return Wt.default.createElement(y,{key:s}," ")}));var Xe=D(N(),1);function Ii({rows:e,columns:t}){let r=Object.entries(t).map(([o,{header:i,color:s}])=>{let f=String(i??o).length,m=e.map(d=>{let p=d[o];return p==null?0:Ge(String(p)).length});return{name:o,width:Math.max(...m,f),color:s}}),n=Object.entries(t).reduce((o,[i,{header:s}])=>({...o,[i]:s??i}),{});return Xe.default.createElement(g,{flexDirection:"column"},Xe.default.createElement(zt,{rowKey:"heading",fillerChar:" ",columns:r,data:n,ignoreColumnColor:!0}),Xe.default.createElement(zt,{rowKey:"separator",fillerChar:"\u2500",columns:r,data:{},ignoreColumnColor:!0}),e.map((o,i)=>{let s=`row-${i}`;return Xe.default.createElement(g,{flexDirection:"column",key:s},Xe.default.createElement(zt,{rowKey:`data-${s}`,fillerChar:" ",columns:r,data:o}))}))}u();u();var _e=D(N(),1);var Ke=({value:e,defaultValue:t="",onChange:r,placeholder:n="",noColor:o=!ke(),color:i=o?void 0:"cyan",password:s=!1,focus:f=!0})=>{let[m,d]=(0,_e.useState)((e||"").length),p=Math.min(m,(e||"").length);(0,_e.useLayoutEffect)(()=>{p!==m&&d(p)},[p,m]);let b=s?"*".repeat(e.length):e,S,v=R=>Ue.inverse(R[0])+Ue.dim(R.slice(1)),w=ne.square,A=_e.default.createElement(y,{backgroundColor:i},w),C=t.length>0?t:n.length>0?n:"",I=C.length>0?v(C):A;return S=b.split("").map((R,T)=>T===p?o?w:Ue.inverse(R):R).join(""),p===b.length&&(S=_e.default.createElement(y,null,S,A)),fe((R,T)=>{if(T.upArrow||T.downArrow||T.ctrl&&R==="c"||T.shift&&T.tab||T.return)return;if(T.tab&&e.length===0&&C){r(C),d(C.length);return}let L=p,P=e;T.leftArrow?p>0&&L--:T.rightArrow?p<e.length&&L++:T.backspace||T.delete?p>0&&(P=e.slice(0,p-1)+e.slice(p,e.length),L--):(P=e.slice(0,p)+R+e.slice(p,e.length),L+=R.length),d(L),P!==e&&r(P)},{isActive:f}),_e.default.createElement(y,{color:i},b.length>0?S:I)};u();var we=D(N(),1),Vt=({table:e})=>{let t=Array.isArray(e)?e:Object.keys(e).map(n=>({header:n,items:e[n],color:void 0,helperText:void 0,bullet:void 0,emptyItemsText:void 0})),r=Math.max(...t.map(n=>Math.max(...n.header.split(`
|
|
24
|
-
`).map(o=>o.length))));return we.default.createElement(g,{flexDirection:"column"},t.map((n,o)=>we.default.createElement(g,{key:o,marginBottom:o===t.length-1?0:1,flexDirection:"column"},n.header.length>0&&we.default.createElement(g,{width:r+1},we.default.createElement(y,{color:n.color,bold:!0},un(n.header))),we.default.createElement(g,{flexGrow:1,flexDirection:"column",gap:1},n.emptyItemsText&&n.items.length===0?we.default.createElement(y,{color:n.color},we.default.createElement(V,{item:{subdued:n.emptyItemsText}})):we.default.createElement(Be,{margin:!1,items:n.items,color:n.color,bullet:n.bullet}),n.helperText?we.default.createElement(y,{color:n.color},n.helperText):null))))};u();function Ye(e){let t=$e(e);return t.endsWith("?")||t.endsWith(":")||t.endsWith(".")?e:gn(e,":")}u();var Ze=D(N(),1),Rc=()=>Promise.resolve();function Ae(e,t=Rc){let r=te(),[n,o]=(0,Ze.useState)(!1);return(0,Ze.useLayoutEffect)(()=>{e?.addEventListener("abort",()=>{let i=e.reason.message==="AbortError"?void 0:e.reason;t(i).then(()=>o(!0)).catch(()=>{})})},[]),(0,Ze.useEffect)(()=>{if(n){let i=e?.reason?.message==="AbortError"?void 0:e?.reason;r(i)}},[n]),{isAborted:n}}u();var qr=D(N(),1),M;(function(e){e.Idle="idle",e.Loading="loading",e.Submitted="submitted",e.Error="error",e.Cancelled="cancelled"})(M||(M={}));function Re({initialAnswer:e}){let[t,r]=(0,qr.useState)(M.Idle),[n,o]=(0,qr.useState)(e);return{promptState:t,setPromptState:r,answer:n,setAnswer:o}}var _=D(N(),1);var Pi=({message:e,confirmation:t,infoTable:r,warningItem:n,onSubmit:o,abortSignal:i})=>{let s=(0,_.useCallback)(L=>L===t?void 0:["Value must be exactly",{userInput:t}],[t]),{oneThird:f,twoThirds:m}=de(),{promptState:d,setPromptState:p,answer:b,setAnswer:S}=Re({initialAnswer:""}),v=te(),[w,A]=(0,_.useState)(void 0),C=d===M.Error?"red":"cyan",I=new Array(f-3).fill("\u2594"),{isAborted:R}=Ae(i);fe((L,P)=>{if(me(L,P),P.escape&&(p(M.Cancelled),A(void 0)),P.return){let X=s(b);X?(p(M.Error),A(X)):p(M.Submitted)}}),(0,_.useEffect)(()=>{d===M.Submitted?(o(!0),v()):d===M.Cancelled&&(o(!1),v())},[o,d,v]);let T=d===M.Submitted||d===M.Cancelled;return R?null:_.default.createElement(g,{flexDirection:"column",marginBottom:1,width:m},_.default.createElement(g,null,_.default.createElement(g,{marginRight:2},_.default.createElement(y,null,"?")),_.default.createElement(V,{item:Ye(e)})),T?_.default.createElement(Lc,{cancelled:d===M.Cancelled}):_.default.createElement(_.default.Fragment,null,_.default.createElement(g,{flexDirection:"column",gap:1,marginTop:1,marginLeft:3},r?_.default.createElement(g,{paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},_.default.createElement(Vt,{table:r})):null,n?_.default.createElement(g,{flexDirection:"column"},_.default.createElement(y,{color:"red"},ne.warning," WARNING"),_.default.createElement(V,{item:n})):null,_.default.createElement(g,null,_.default.createElement(V,{item:["Type",{userInput:t},"to confirm, or press Escape to cancel."]}))),_.default.createElement(g,{flexDirection:"column",width:f},_.default.createElement(g,null,_.default.createElement(g,{marginRight:2},_.default.createElement(y,{color:C},">")),_.default.createElement(g,{flexGrow:1},_.default.createElement(Ke,{value:b,onChange:L=>{S(L),p(M.Idle)},defaultValue:"",color:C}))),_.default.createElement(g,{marginLeft:3},_.default.createElement(y,{color:C},I)),d===M.Error&&w?_.default.createElement(g,{marginLeft:3},_.default.createElement(y,{color:C},_.default.createElement(V,{item:w}))):null)))},Lc=({cancelled:e})=>_.default.createElement(g,null,_.default.createElement(g,{width:3},e?_.default.createElement(y,{color:"red"},ne.cross):_.default.createElement(y,{color:"cyan"},ne.tick)),_.default.createElement(g,{flexGrow:1},e?_.default.createElement(y,{color:"red"},"Cancelled"):_.default.createElement(y,{color:"cyan"},"Confirmed")));u();u();u();var Ee=D(N(),1),Dc="\u2502",kc="\u2551",Oi=({containerHeight:e,visibleListSectionLength:t,fullListLength:r,visibleFromIndex:n,noColor:o=!ke()})=>{let i=e>=4&&o,s=n+t-1,f=i?e-2:e,m=Math.min(f-1,Math.ceil(Math.min(1,t/r)*f)),d;if(s>=r-1)d=f-m;else{let A=f-m,C=r-t;d=Math.max(0,Math.min(f-m,Math.round(n/C*A)))}let p=f-m-d,b=o?Dc:" ",S=o?kc:" ",v=o?void 0:"gray",w=o?void 0:"cyan";return Ee.default.createElement(g,{flexDirection:"column"},i?Ee.default.createElement(y,null,"\u25B3"):null,Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:v},b.repeat(d))),Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:w},S.repeat(m))),Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:v},b.repeat(p))),i?Ee.default.createElement(y,null,"\u25BD"):null)};u();var xe=D(N(),1);import{isDeepStrictEqual as Mc}from"node:util";var Xt=class extends Map{constructor(t){let r=[],n,o,i=0;for(let s of t){let f={...s,previous:o,next:void 0,index:i};o&&(o.next=f),n??(n=f),r.push([s.value,f]),i++,o=f}super(r),this.first=n}},_c=(e,t)=>{switch(t.type){case"select-next-option":{if(typeof e.value>"u")return e;let r=e.optionMap.get(e.value);if(!r)return e;let n=r.next;for(;n&&n.disabled;)n=n.next;if(!n)return e;if(!(n.index>e.visibleToIndex))return{...e,value:n.value};let i=n.index,s=i-e.visibleOptionCount+1;return{...e,value:n.value,visibleFromIndex:s,visibleToIndex:i,previousValue:e.value}}case"select-previous-option":{if(typeof e.value>"u")return e;let r=e.optionMap.get(e.value);if(!r)return e;let n=r.previous;for(;n&&n.disabled;)n=n.previous;if(!n)return e;if(!(n.index<e.visibleFromIndex))return{...e,value:n.value};let i=n.index,s=i+e.visibleOptionCount-1;return{...e,value:n.value,visibleFromIndex:i,visibleToIndex:s,previousValue:e.value}}case"select-option":{let r=e.optionMap.get(t.option.value);return r?{...e,value:r.value,previousValue:e.value}:e}case"reset":return t.state;default:return e}},Gr=({visibleOptionCount:e,defaultValue:t,options:r})=>{let n=typeof e=="number"?Math.min(e,r.length):r.length,o=new Xt(r),i=typeof t>"u"?void 0:o.get(t),s=i&&!i.disabled?i:o.first;for(;s&&s.disabled;)s=s.next;return{optionMap:o,visibleOptionCount:n,visibleFromIndex:0,visibleToIndex:n-1,value:s?.value,previousValue:s?.value}},Fi=({visibleOptionCount:e,options:t,defaultValue:r})=>{let[n,o]=(0,xe.useReducer)(_c,{visibleOptionCount:e,defaultValue:r,options:t},Gr),[i,s]=(0,xe.useState)(t),[f,m]=(0,xe.useState)(e);t!==i&&!Mc(t,i)&&(o({type:"reset",state:Gr({visibleOptionCount:e,defaultValue:r,options:t})}),s(t)),e!==f&&(o({type:"reset",state:Gr({visibleOptionCount:e,defaultValue:r,options:t})}),m(e));let d=(0,xe.useCallback)(()=>{o({type:"select-next-option"})},[]),p=(0,xe.useCallback)(()=>{o({type:"select-previous-option"})},[]),b=(0,xe.useCallback)(({option:v})=>{o({type:"select-option",option:v})},[]),S=(0,xe.useMemo)(()=>t.slice(n.visibleFromIndex),[t,n.visibleFromIndex]);return{visibleFromIndex:n.visibleFromIndex,visibleToIndex:n.visibleToIndex,value:n.value,visibleOptions:S,selectNextOption:d,selectPreviousOption:p,selectOption:b,previousValue:n.previousValue}};var q=D(N(),1);var fs=D(cs(),1);function hu(e,t){if(!t)return e;let r;try{r=new RegExp(t,"i")}catch{return e}return e.replace(r,n=>Ue.bold(n))}function gu(e){if(e.some(t=>(t.key?.length??0)>1))throw new Error("SelectInput: Keys must be a single character");if(!e.every(t=>typeof t.key<"u"&&t.key.length>0))throw new Error("SelectInput: All items must have keys if one does")}function bu({item:e,previousItem:t,isSelected:r,highlightedTerm:n,enableShortcuts:o,items:i,hasAnyGroup:s,index:f}){let m=hu(e.label,n),d,p;r?p="cyan":e.disabled&&(p="dim"),(typeof t>"u"||e.group!==t.group)&&(d=e.group??(s?"Other":void 0));let b=o&&e.key&&e.key.length>0;return q.default.createElement(g,{key:f,flexDirection:"column",marginTop:i.indexOf(e)!==0&&d?1:0,minHeight:d?2:1},d?q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{bold:!0},d)):null,q.default.createElement(g,{key:f,marginLeft:s?3:0},q.default.createElement(g,{marginRight:2},r?q.default.createElement(y,{color:"cyan"},">"):q.default.createElement(y,null," ")),q.default.createElement(y,{wrap:"end",color:p},b?`(${e.key}) ${m}`:m)))}var us=25;function Kt({items:e,initialItems:t=e,onChange:r,enableShortcuts:n=!0,focus:o=!0,emptyMessage:i="No items to select.",defaultValue:s,highlightedTerm:f,loading:m=!1,errorMessage:d,hasMorePages:p=!1,morePagesMessage:b,availableLines:S=us,onSubmit:v,inputFixedAreaRef:w,ref:A,groupOrder:C}){let I=!1;e.length===0&&(e=[{label:i,value:null,disabled:!0}],I=!0);let R=e.some(O=>typeof O.group<"u"),T=(0,fs.default)(e,O=>{if(!O.group)return Number.MAX_SAFE_INTEGER+1;if(!C)return Number.MAX_SAFE_INTEGER;let F=C.indexOf(O.group);return F===-1?Number.MAX_SAFE_INTEGER:F}),L=T.some(O=>typeof O.key<"u"&&O.key.length>0);L&&gu(T);let P=Math.min(S,us);function X(O){let F=new Set(O.map(se=>se.group).filter(se=>se)).size,ie=Math.ceil(Math.min((P+1)/3,F+1));return F>0?(ie-1)*2+1:0}let ee=X(T),z=Math.max(2,P-ee),H=T.length>z,$=Fi({visibleOptionCount:z,options:T,defaultValue:s});(0,q.useEffect)(()=>{typeof $.value<"u"&&$.previousValue!==$.value&&r?.(T.find(O=>O.value===$.value))},[$.previousValue,$.value,T,r]);let pe=O=>{O.upArrow?$.selectPreviousOption():O.downArrow&&$.selectNextOption()},ve=(0,q.useCallback)(O=>{if($.visibleOptions.map(F=>F.key).includes(O)){let F=$.visibleOptions.find(se=>se.key===O),ie=T.find(se=>se.value===F?.value);F&&!F.disabled&&(v&&ie&&v(ie),$.selectOption({option:F}))}},[T,v,$]);fe((O,F)=>{if(me(O,F),typeof $.value<"u"&&F.return){let ie=T.find(se=>se.value===$.value);ie&&v&&v(ie)}n&&O.length>0&&Object.values(F).every(ie=>!ie)?ve(O):pe(F)},{isActive:o});let{twoThirds:B}=de();if(m)return q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{dimColor:!0},"Loading..."));if(d&&d.length>0)return q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{color:"red"},d));{let O=t.length+X(t),ie=Math.max(R?5:2,Math.min(P,O));return q.default.createElement(g,{flexDirection:"column",ref:A,gap:1,width:B},q.default.createElement(g,{flexDirection:"row",height:ie,width:"100%"},q.default.createElement(g,{flexDirection:"column",overflowY:"hidden",flexGrow:1},$.visibleOptions.map((se,re)=>q.default.createElement(bu,{key:re,item:se,previousItem:$.visibleOptions[re-1],highlightedTerm:f,isSelected:se.value===$.value,items:$.visibleOptions,enableShortcuts:n,hasAnyGroup:R,index:re}))),H?q.default.createElement(Oi,{containerHeight:ie,visibleListSectionLength:z,fullListLength:T.length,visibleFromIndex:$.visibleFromIndex}):null),q.default.createElement(g,{ref:w},I?q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{dimColor:!0},"Try again with a different keyword.")):q.default.createElement(g,{marginLeft:3,flexDirection:"column"},q.default.createElement(y,{dimColor:!0},`Press ${ne.arrowUp}${ne.arrowDown} arrows to select, enter ${L?"or a shortcut ":""}to confirm.`),p?q.default.createElement(y,null,q.default.createElement(y,{bold:!0},"1-",T.length," of many"),b?` ${b}`:null):null)))}}u();u();var mt=D(N(),1),ms=({message:{title:{color:e,text:t},body:r}})=>mt.default.createElement(g,{flexDirection:"column",gap:1},mt.default.createElement(y,{color:e},mt.default.createElement(V,{item:t})),mt.default.createElement(V,{item:r}));var j=D(N(),1);var Yt=({message:e,infoTable:t,abortSignal:r,infoMessage:n,header:o,state:i,input:s,submittedAnswerLabel:f})=>{let{stdout:m}=De(),[d,p]=(0,j.useState)(0),[b,S]=(0,j.useState)(0),[v,w]=(0,j.useState)(0),A=m.rows-b-v,[C,I]=(0,j.useState)(A),R=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);d!==H&&p(H)}},[d]),T=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);S(H)}},[]),L=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);w(H+3)}},[]),P=(0,j.cloneElement)(s,{availableLines:C,inputFixedAreaRef:L});(0,j.useLayoutEffect)(()=>{function z(){let H=m.rows-b-v;H!==C&&I(H)}return z(),m.on("resize",z),()=>{m.off("resize",z)}},[d,b,m,C,v]);let{isAborted:X}=Ae(r),ee=t&&Object.keys(t).length>0;return X?null:j.default.createElement(g,{flexDirection:"column",marginBottom:1,ref:R},j.default.createElement(g,{ref:T,flexDirection:"column"},j.default.createElement(g,null,j.default.createElement(g,{marginRight:2},j.default.createElement(y,null,"?")),j.default.createElement(V,{item:Ye(e)}),o),(ee||n)&&i!==M.Submitted?j.default.createElement(g,{marginTop:1,marginLeft:3,paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},n?j.default.createElement(ms,{message:n}):null,ee?j.default.createElement(Vt,{table:t}):null):null),i===M.Submitted&&f?j.default.createElement(g,null,j.default.createElement(g,{width:3},j.default.createElement(y,{color:"cyan"},ne.tick)),j.default.createElement(y,{color:"cyan"},f)):j.default.createElement(g,{marginTop:1},P))};var Oe=D(N(),1);function ds({message:e,choices:t,infoTable:r,infoMessage:n,onSubmit:o,defaultValue:i,abortSignal:s,groupOrder:f}){if(t.length===0)throw new Error("SelectPrompt requires at least one choice");let m=te(),{promptState:d,setPromptState:p,answer:b,setAnswer:S}=Re({initialAnswer:void 0}),v=(0,Oe.useCallback)(w=>{S(w),p(M.Submitted)},[S,p]);return(0,Oe.useEffect)(()=>{d===M.Submitted&&b&&(o(b.value),m())},[b,o,d,m]),Oe.default.createElement(Yt,{message:e,state:d,submittedAnswerLabel:b?.label,infoTable:r,infoMessage:n,abortSignal:s,input:Oe.default.createElement(Kt,{defaultValue:i,items:t,onSubmit:v,groupOrder:f})})}u();u();u();var oe=D(N(),1),qs=D(Ns(),1);function Bu(e,t){let r=5*t,n={h:r%360,s:.8,v:1},o={h:(r+1)%360,s:.8,v:1};return(0,qs.default)(n,o)(e,{interpolation:"hsv",hsvSpin:"long"})}function Iu(e,t){let r=t%e.length,n=e.slice(-r),o=e.slice(0,-r);return n+o}function Pu(e,t){return t?e.slice(0,t):e}var rn=(0,oe.memo)(({text:e,maxWidth:t})=>{let r=(0,oe.useRef)(0),[n,o]=(0,oe.useState)(e),i=(0,oe.useRef)(),{stdout:s}=De(),[f,m]=(0,oe.useState)(t??Math.floor(s.columns*.66));(0,oe.useLayoutEffect)(()=>{let p=()=>{m(Math.floor(s.columns*.66))};return s.on("resize",p),()=>{s.off("resize",p)}},[s]);let d=(0,oe.useCallback)(()=>{let p=r.current+1;r.current=p,o(Bu(Pu(Iu(e,r.current),f),r.current)),i.current=setTimeout(()=>{d()},35)},[e,f]);return(0,oe.useLayoutEffect)(()=>(d(),()=>{clearTimeout(i.current)}),[d]),oe.default.createElement(y,null,n)});rn.displayName="TextAnimation";var rr=D(N(),1);var Ou="\u2580",Gs="\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581",nr=({title:e,noColor:t,noProgressBar:r})=>{let{twoThirds:n}=de(),{stdout:o}=De(),i=!!o.isTTY,s=new Array(n).fill(Ou).join("");return(t??!ke())&&(s=Gs.repeat(Math.ceil(n/Gs.length))),rr.default.createElement(g,{flexDirection:"column"},i&&!r&&rr.default.createElement(rn,{text:s,maxWidth:n}),rr.default.createElement(y,null,e," ..."))};u();var gt=D(N(),1);function nn(e,{onFulfilled:t=()=>{},onRejected:r=()=>{}}={}){let n=te(),[o,i]=(0,gt.useState)(null);(0,gt.useEffect)(()=>{e().then(()=>{t(),i({})}).catch(s=>{r(s),i({error:s})})},[]),(0,gt.useEffect)(()=>{o!==null&&n(o.error)},[o])}u();function Hs(){let{isRawModeSupported:e}=xt();fe((t,r)=>{if(me(t,r),r.return)return null},{isActive:!!e})}var Fe=D(N(),1),Je;(function(e){e.Loading="loading",e.Success="success",e.Failure="failure"})(Je||(Je={}));async function js(e,t){e.retryCount=0,e.errors=[];let r=e.retry&&e.retry>0?e.retry+1:1;for(let n=1;n<=r;n++)try{return e.skip?.(t)?void 0:await e.task(t,e)}catch(o){if(n===r)throw o;e.errors.push(o),e.retryCount=n}}var Fu=()=>{};function Ws({tasks:e,silent:t=nt(),onComplete:r=Fu,abortSignal:n,noColor:o,noProgressBar:i=!1}){let[s,f]=(0,Fe.useState)(e[0]),[m,d]=(0,Fe.useState)(Je.Loading),p=(0,Fe.useRef)({});nn(async()=>{for(let w of e){f(w);let A=await js(w,p.current);if(Array.isArray(A)&&A.length>0&&A.every(C=>"task"in C))for(let C of A)f(C),await js(C,p.current)}},{onFulfilled:()=>{d(Je.Success),r(p.current)},onRejected:()=>{d(Je.Failure)}}),Hs();let{isAborted:S}=Ae(n);if(t)return null;let v=typeof s.title=="string"?s.title:s.title.value;return m===Je.Loading&&!S?Fe.default.createElement(nr,{title:v,noColor:o,noProgressBar:i}):null}u();var G=D(N(),1);var zs=({message:e,onSubmit:t,validate:r,defaultValue:n="",password:o=!1,allowEmpty:i=!1,emptyDisplayedValue:s="(empty)",abortSignal:f,preview:m,initialAnswer:d=""})=>{if(o&&n)throw new Error("Can't use defaultValue with password");let p=(0,G.useCallback)(H=>{if(r)return r(H);if(H.length===0&&!i)return"Type an answer to the prompt."},[i,r]),{oneThird:b}=de(),{promptState:S,setPromptState:v,answer:w,setAnswer:A}=Re({initialAnswer:d}),C=w.length>0?w:n,I=C==="",R=I?s:C,T=te(),[L,P]=(0,G.useState)(void 0),X=S===M.Error?"red":"cyan",ee=new Array(b-3).fill("\u2594"),{isAborted:z}=Ae(f);return fe((H,$)=>{if(me(H,$),$.return){let pe=p(C);pe?(v(M.Error),P(pe)):v(M.Submitted)}}),(0,G.useEffect)(()=>{S===M.Submitted&&(t(C),T())},[C,t,S,T]),z?null:G.default.createElement(g,{flexDirection:"column",marginBottom:1,width:b},G.default.createElement(g,null,G.default.createElement(g,{marginRight:2},G.default.createElement(y,null,"?")),G.default.createElement(V,{item:Ye(e)})),S===M.Submitted?G.default.createElement(g,null,G.default.createElement(g,{width:3},G.default.createElement(y,{color:"cyan"},ne.tick)),G.default.createElement(g,{flexGrow:1},G.default.createElement(y,{color:"cyan",dimColor:I},o?"*".repeat(w.length):R))):G.default.createElement(g,{flexDirection:"column"},G.default.createElement(g,null,G.default.createElement(g,{marginRight:2},G.default.createElement(y,{color:X},">")),G.default.createElement(g,{flexGrow:1},G.default.createElement(Ke,{value:w,onChange:H=>{A(H),v(M.Idle)},defaultValue:n,color:X,password:o}))),G.default.createElement(g,{marginLeft:3},G.default.createElement(y,{color:X},ee)),S===M.Error?G.default.createElement(g,{marginLeft:3},G.default.createElement(y,{color:X},L)):null,S!==M.Error&&m?G.default.createElement(g,{marginLeft:3},G.default.createElement(V,{item:m(C)})):null))};u();u();var Uu=D(aa()),Vs=D(Ea()),Xs=D(Sa());function Eb(e,t,r){return(0,Vs.default)(e,t,r)}function Ks(e,t,r){return(0,Xs.default)(e,t,r)}var J=D(N(),1);var $u=5,Nu=400;function Ys({message:e,choices:t,infoTable:r,onSubmit:n,search:o,hasMorePages:i=!1,abortSignal:s,infoMessage:f,groupOrder:m,searchDebounceMs:d=Nu}){let p=te(),[b,S]=(0,J.useState)(""),[v,w]=(0,J.useState)(t),A=t.length>$u,[C,I]=(0,J.useState)(i),{promptState:R,setPromptState:T,answer:L,setAnswer:P}=Re({initialAnswer:void 0}),X=(0,J.useCallback)(async B=>await o(B),[o]),ee=(0,J.useCallback)(B=>{R===M.Idle&&(P(B),T(M.Submitted))},[R,P,T]);(0,J.useEffect)(()=>{R===M.Submitted&&L&&(S(""),n(L.value),p())},[L,n,R,p]);let z=(0,J.useRef)(),H=(0,J.useRef)("");H.current=b;let $=(0,J.useRef)(t);$.current=t;let pe=(0,J.useRef)(i);pe.current=i;let ve=J.default.useMemo(()=>Ks(B=>{z.current=setTimeout(()=>{T(M.Loading)},100),X(B).then(O=>{H.current.length===0?(w($.current),I(pe.current)):(w(O.data),I(O.meta?.hasNextPage??!1)),T(M.Idle)}).catch(()=>{T(M.Error)}).finally(()=>{clearTimeout(z.current)})},d,{leading:!0,trailing:!0}),[X,T,d]);return J.default.createElement(Yt,{message:e,state:R,infoTable:r,infoMessage:f,abortSignal:s,header:R!==M.Submitted&&A?J.default.createElement(g,{marginLeft:3},J.default.createElement(Ke,{value:b,onChange:B=>{S(B),H.current=B,B.length>0?ve(B):(ve.cancel(),T(M.Idle),w(t))},placeholder:"Type to search..."})):null,submittedAnswerLabel:L?.label,input:J.default.createElement(Kt,{items:v,initialItems:t,enableShortcuts:!1,emptyMessage:"No results found.",highlightedTerm:b,loading:R===M.Loading,errorMessage:R===M.Error?"There has been an error while searching. Please try again later.":void 0,hasMorePages:C,morePagesMessage:"Find what you're looking for by typing its name.",onSubmit:ee,groupOrder:m})})}u();var Le=D(N(),1);var Zs=({task:e,title:t,onComplete:r,onAbort:n,noColor:o})=>{let[i,s]=(0,Le.useState)(t),[f,m]=(0,Le.useState)(!1),[d,p]=(0,Le.useState)(null),b=te(),{isRawModeSupported:S}=xt();return fe((v,w)=>{n?me(v,w,n):me(v,w)},{isActive:!!S}),(0,Le.useEffect)(()=>{e(s).then(v=>{m(!0),r?.(v),p({})}).catch(v=>{m(!0),p({error:v})})},[e,r]),(0,Le.useEffect)(()=>{d!==null&&b(d.error)},[d,b]),f?null:Le.default.createElement(nr,{title:i.value,noColor:o})};var Se=D(N()),et={skipTTYCheck:!1};async function t0({renderOptions:e,...t}){let r=t.abortSignal??new kt().signal;return Me(Se.default.createElement(oi,{...t,abortSignal:r}),e)}function r0(e){return ct({...e,type:"info"})}function n0(e){return ct({...e,type:"success"})}function Vo(e){return ct({...e,type:"warning"})}function o0(e){return ct({...e,type:"error"})}function i0(e,{renderOptions:t}={}){return at(Se.default.createElement(Bi,{error:e}),{logLevel:"error",renderOptions:t})}async function qu({renderOptions:e,isConfirmationPrompt:t,...r},n=et){return bt({message:r.message,stdin:e?.stdin},n),Ne("cmd_all_timing_prompts_ms")(async()=>{let o;return await Me(Se.default.createElement(ds,{...r,onSubmit:i=>{o=i}}),{...e,exitOnCtrlC:!1}),o})}async function s0({message:e,infoTable:t,confirmationMessage:r="Yes, confirm",cancellationMessage:n="No, cancel",renderOptions:o,defaultValue:i=!0,abortSignal:s,infoMessage:f}){return qu({choices:[{label:r,value:!0,key:"y"},{label:n,value:!1,key:"n"}],message:e,infoTable:t,renderOptions:o,defaultValue:i,isConfirmationPrompt:!0,abortSignal:s,infoMessage:f})}async function a0({renderOptions:e,...t},r=et){bt({message:t.message,stdin:e?.stdin},r);let n=t.search===void 0,o={search(i){let s=i.toLowerCase();return Promise.resolve({data:t.choices.filter(f=>f.label.toLowerCase().includes(s)||f.group?.toLowerCase().includes(s))})},...n?{searchDebounceMs:0}:{},...t};return Ne("cmd_all_timing_prompts_ms")(async()=>{let i;if(await Me(Se.default.createElement(Ys,{...o,onSubmit:s=>{i=s}}),{...e,exitOnCtrlC:!1}),i===void 0)throw new Error("Prompt was interrupted before a selection was made. This can happen if the process received a signal, was terminated, or the prompt was aborted.");return i})}function l0({renderOptions:e,...t}){return at(Se.default.createElement(Ii,{...t}),{renderOptions:e})}async function c0(e,{renderOptions:t,noProgressBar:r}={}){let n;return await Me(Se.default.createElement(Ws,{tasks:e,onComplete:o=>{n=o},noProgressBar:r}),{stdout:process.stderr,...t,exitOnCtrlC:!1}),n}async function u0({title:e,task:t,onAbort:r,renderOptions:n}){let o;return await Me(Se.default.createElement(Zs,{title:e,task:t,onComplete:i=>{o=i},onAbort:r}),{stdout:process.stderr,...n,exitOnCtrlC:!1}),o}async function f0({renderOptions:e,...t},r=et){return bt({message:t.message,stdin:e?.stdin},r),Ne("cmd_all_timing_prompts_ms")(async()=>{let n="";return await Me(Se.default.createElement(zs,{...t,onSubmit:o=>{n=o}}),{...e,exitOnCtrlC:!1}),n})}async function m0({renderOptions:e,...t},r=et){return bt({message:t.message,stdin:e?.stdin},r),Ne("cmd_all_timing_prompts_ms")(async()=>{let n;return await Me(Se.default.createElement(Pi,{...t,onSubmit:o=>{n=o}}),{...e,exitOnCtrlC:!1}),n})}var d0=async(e=process.stdin,t=et)=>(bt({message:"Press any key"},t),Ne("cmd_all_timing_prompts_ms")(()=>new Promise((r,n)=>{let o=i=>{e.setRawMode(!1);let s=Array.from(i);s.length&&s[0]===3&&(Ie("Canceled keypress, User pressed CTRL+C"),n(new wn)),e.unref(),process.nextTick(r)};e.setRawMode(!0),e.once("data",o),e.ref()})));function Gu({stdin:e=void 0,uiDebugOptions:t=et}={}){return!!(t.skipTTYCheck||e||Zo())}function bt({message:e,stdin:t=void 0},r){if(Gu({stdin:t,uiDebugOptions:r}))return;let n=$e(e),o=`Failed to prompt:
|
|
25
|
-
|
|
26
|
-
${St`${Tn.cyan(n)}`.value}
|
|
27
|
-
|
|
28
|
-
This usually happens when running a command non-interactively, for example in a CI environment, or when piping to or from another process.`;throw new qe(o,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")}export{kt as a,ei as b,Hi as c,mo as d,Pe as e,Fm as f,zo as g,Mi as h,Me as i,me as j,ne as k,Fd as l,oi as m,Ft as n,ai as o,Ae as p,Vi as q,Rs as r,Eb as s,t0 as t,r0 as u,n0 as v,Vo as w,o0 as x,i0 as y,qu as z,s0 as A,a0 as B,l0 as C,c0 as D,u0 as E,f0 as F,m0 as G,d0 as H,Gu as I,Qm as J,Jm as K,Xl as L,ed as M,td as N,Kl as O,rd as P,nd as Q,Zo as R,od as S,id as T,Zl as U,sd as V};
|
package/dist/chunk-K5GJNXDK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c,b as d,c as f}from"./chunk-BPDUBZMU.js";import{a as p}from"./chunk-WDCCITSG.js";import{a as r}from"./chunk-NENUUNWB.js";import{ta as s}from"./chunk-5HJTCBBV.js";import{b as n}from"./chunk-4TANJ4JK.js";import{a as y}from"./chunk-CTNBSUVU.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var m=g(y(),1);var a,t=class extends p{async run(){let{flags:e}=await this.parse(a),{app:o,developerPlatformClient:u,organization:h}=await s({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),l=await f(o,e.path);return await c({app:o,extension:l,stdout:e.stdout,developerPlatformClient:u,orgId:h.id}),{app:o}}};a=t;t.summary="Fetch the latest GraphQL schema for a function.";t.descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...r,...d,stdout:m.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};var T=t;export{T as a};
|
package/dist/chunk-KCNOFNS5.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{b as $}from"./chunk-K4M32VKU.js";import{a as O}from"./chunk-WDCCITSG.js";import{a as T}from"./chunk-NENUUNWB.js";import{i as k,ta as N}from"./chunk-5HJTCBBV.js";import{f as l}from"./chunk-7EE7YOCR.js";import{b as P,c as I}from"./chunk-4TANJ4JK.js";import{H as S,I as b}from"./chunk-AFM3UZQO.js";import{g as v,u as E}from"./chunk-JX4HSDDG.js";import{a as h}from"./chunk-REABQXMP.js";import{Gb as C,Hb as _,Lb as w,N as y,Wb as A}from"./chunk-BCZMDFI2.js";import{g as p,j as g}from"./chunk-773TIA5M.js";import{a as W}from"./chunk-CTNBSUVU.js";import{e as U,g as f}from"./chunk-VKWPEFWQ.js";f();f();async function x(n,e,t,o,i){return i.webEnv?F(n,e,t,i):R(n,e,o,i)}async function F(n,e,t,{format:o}){return $(n,e,t,o)}async function R(n,e,t,o){if(o.format==="json"){let i=j(n.allExtensions.filter(s=>s.isReturnedAsInfo())),r={...n,packageManager:t.packageManager,nodeDependencies:t.nodeDependencies,usesWorkspaces:t.usesWorkspaces,allExtensions:i};return"realExtensions"in r&&(r.realExtensions=j(r.realExtensions)),"specifications"in r&&(r={...r,specifications:r.specifications?.map(s=>D(s))}),_`${JSON.stringify(Object.fromEntries(Object.entries(r).filter(([s])=>s!=="configSchema")),null,2)}`}else return new d(n,e,t,o).output()}function D(n){if("schema"in n){let{schema:e,...t}=n;return t}return n}function j(n){return n.map(e=>{if("specification"in e&&e.specification){let t=e.specification,o=D(t);return{...e,specification:o}}else return e})}var M="unknown",u={subdued:"Not yet configured"},K="NOT LOADED",d=class{constructor(e,t,o,i){this.app=e,this.remoteApp=t,this.project=o,this.options=i}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let e=u;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(e=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let t=["User","unknown"],o=await this.options.developerPlatformClient.accountInfo();return b(o)?t=["Service account",o.orgName]:S(o)&&(t[1]=o.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:g(this.app.configPath)||l.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:u],["Client ID",this.remoteApp.apiKey||u],["Access scopes",k(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??u],["Update URLs",e],t],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:C(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let e=this.webComponentsSection();return[{title:`
|
|
2
|
-
Directory components`.toUpperCase(),body:""},...e?[e]:[],...this.extensionsSections()]}webComponentsSection(){let e=[],t=[];if(this.app.webs[0])return this.app.webs.forEach(o=>{if(o.configuration)if(o.configuration.name){let{name:i,roles:r}=o.configuration,s=p(this.app.directory,o.directory);t.push([` \u{1F4C2} ${i}`,{filePath:s||"/"}]),r.length>0&&t.push([" roles",r.join(", ")])}else o.configuration.roles.forEach(i=>{t.push([` \u{1F4C2} ${i}`,{filePath:p(this.app.directory,o.directory)}])});else t.push([{subdued:` \u{1F4C2} ${M}`},{filePath:p(this.app.directory,o.directory)}]);if(!this.app.errors.isEmpty()){let i=this.app.errors.getErrors(`${o.directory}/${l.web}`);e.push(...i.map(r=>r.message))}}),this.subtableSection("web",[["\u{1F4C2} web",""],...t,...e.map(o=>[{error:"error"},{error:this.formattedError(o)}])])}extensionsSections(){let e=this.app.allExtensions.filter(o=>o.isReturnedAsInfo());return y(e.map(o=>o.type)).map(o=>{let i=e.filter(r=>r.type===o);if(i[0])return this.subtableSection(i[0].externalType,i.map(r=>this.extensionSubSection(r)).flat())}).filter(o=>o!==void 0)}extensionSubSection(e){let t=e.configuration,o=[[`\u{1F4C2} ${e.handle||K}`,{filePath:p(this.app.directory,e.directory)}],[" config file",{filePath:p(e.directory,e.configurationPath)}]];t&&"metafields"in t&&Array.isArray(t.metafields)&&t.metafields.length>0&&o.push([" metafields",`${t.metafields.length}`]);let i=this.app.errors.getErrors(e.configurationPath);for(let r of i)o.push([{error:" error"},{error:this.formattedError(r.message)}]);return o}formattedError(e){let t=e.trim();if(A())return t;let[o,...i]=t.split(`
|
|
3
|
-
`);return[`! ${o}`,...i.map(r=>` ${r}`)].join(`
|
|
4
|
-
`)}async systemInfoSection(){let{platform:e,arch:t}=v();return this.tableSection("Tooling and System",[["Shopify CLI",h],["Package manager",this.project.packageManager],["OS",`${e}-${t}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}tableSection(e,t,{isFirstItem:o=!1}={}){return{title:`${o?"":`
|
|
5
|
-
`}${e.toUpperCase()}
|
|
6
|
-
`,body:{tabularData:t,firstColumnSubdued:!0}}}subtableSection(e,t){return{title:e,body:{tabularData:t,firstColumnSubdued:!0}}}};var L=U(W(),1);var m,a=class extends O{async run(){let{flags:e}=await this.parse(m),{app:t,project:o,remoteApp:i,organization:r,developerPlatformClient:s}=await N({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config,unsafeTolerateErrors:!0}),c=await x(t,i,r,o,{format:e.json?"json":"text",webEnv:e["web-env"],configName:e.config,developerPlatformClient:s});return typeof c=="string"||"value"in c?w(c):E({customSections:c}),t.errors.isEmpty()||process.exit(2),{app:t}}};m=a;a.summary="Print basic information about your app and extensions.";a.descriptionWithMarkdown=`The information returned includes the following:
|
|
7
|
-
|
|
8
|
-
- The app and dev store that's used when you run the [dev](https://shopify.dev/docs/api/shopify-cli/app/app-dev) command. You can reset these configurations using [\`dev --reset\`](https://shopify.dev/docs/api/shopify-cli/app/app-dev#flags-propertydetail-reset).
|
|
9
|
-
- The [structure](https://shopify.dev/docs/apps/tools/cli/structure) of your app project.
|
|
10
|
-
- The [access scopes](https://shopify.dev/docs/api/usage) your app has requested.
|
|
11
|
-
- System information, including the package manager and version of Shopify CLI used in the project.`;a.description=m.descriptionWithoutMarkdown();a.flags={...P,...T,...I,"web-env":L.Flags.boolean({hidden:!1,description:"Outputs environment variables necessary for running and deploying web/.",env:"SHOPIFY_FLAG_OUTPUT_WEB_ENV",default:!1})};var ae=a;export{ae as a};
|
package/dist/chunk-KM2R6O7V.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-GCN4O7HM.js";import{b as r}from"./chunk-WHT2RCAD.js";import{r as t}from"./chunk-GXO2RRV2.js";import{u as i}from"./chunk-JX4HSDDG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var o=class extends r{static{this.summary="Disable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
|
|
2
|
-
|
|
3
|
-
When auto-upgrade is disabled, Shopify CLI won't automatically update. Run \`shopify upgrade\` to update manually.
|
|
4
|
-
|
|
5
|
-
To enable auto-upgrade, run \`shopify config autoupgrade on\`.
|
|
6
|
-
`}static{this.description=this.descriptionWithoutMarkdown()}async run(){t(!1),i({body:e.off})}};export{o as a};
|
package/dist/chunk-KNFDN3AP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as c}from"./chunk-WHT2RCAD.js";import{Q as r}from"./chunk-AFM3UZQO.js";import{Nb as a}from"./chunk-BCZMDFI2.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
|
package/dist/chunk-LEDVV6XK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-MY2H5XPY.js";import{b as e}from"./chunk-WHT2RCAD.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var t=class extends e{static{this.description="View the UI kit components that display static output"}static{this.hidden=!0}async run(){await o()}};export{t as a};
|
package/dist/chunk-LEEVJH4B.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-CV5ELBVU.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
|
package/dist/chunk-MDQHEW7V.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{p as _,v as R}from"./chunk-445NFHXL.js";import{c as g,l as P}from"./chunk-2OYQHHKC.js";import{b as N}from"./chunk-4TANJ4JK.js";import{D as w,F as v,R as L,w as T,z as C}from"./chunk-JX4HSDDG.js";import{m as F}from"./chunk-2GB3EAD3.js";import{Aa as I,Ca as k,Ta as A,Va as E,ka as b,ma as f,ua as y}from"./chunk-BCZMDFI2.js";import{d as r}from"./chunk-773TIA5M.js";import{a as H}from"./chunk-CTNBSUVU.js";import{e as D,g as d}from"./chunk-VKWPEFWQ.js";d();d();var h="https://github.com/Shopify/skeleton-theme.git",q="https://github.com/Shopify/theme-liquid-docs.git",S={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function G(t,e){await U(t,e)}async function O(t,e){await U(t,e,!0)}async function U(t,e,o){await w([{title:`Cloning ${t} into ${e}`,task:async()=>{await g({repoUrl:t,destination:e,latestTag:o,shallow:!0}),await P(e),t===h&&(await Promise.all(Object.keys(S).map(async c=>x(r(e,`.${c}`)))),await x(r(e,".git")))}}])}async function x(t){await A(t)&&await k(t)}async function M(){return await C({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(S).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function $(t,e){let o=[];await w([{title:`Adding AI instructions into ${t}`,task:async()=>{await b(async c=>{await g({repoUrl:q,destination:c,shallow:!0});let l=e==="all"?Object.keys(S).filter(a=>a!=="all"):[e];try{let a=r(c,"ai","github","copilot-instructions.md"),s=await f(a),n=r(t,"AGENTS.md"),u=`# AGENTS.md
|
|
2
|
-
|
|
3
|
-
${s}`;await y(n,u),(await Promise.all(l.map(p=>W(t,n,p)))).forEach(p=>{p.copiedFile&&o.push(p.copiedFile)})}catch{throw new F("Failed to create AI instructions")}})}}]),o.length>0&&T({headline:"Files created instead of symlinks.",body:`Shopify CLI attempted to create symbolic links between AGENTS.md and ${o.join(", ")}, but your system doesn't have Developer Mode enabled or symlinks are disabled. Separate files were created instead.`})}async function W(t,e,o){if(o==="cursor")return{};let l={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],a=r(t,l);try{return await I(e,a),{}}catch(s){if(s instanceof Error){let n=await f(e);return await y(a,n),{copiedFile:l}}else throw s}}var m=D(H(),1);var j,i=class extends R{async command(e,o,c,l){let a=l.name??await this.promptName(e.path),s=e["clone-url"],n=r(e.path,a);if(e.latest?await O(s,n):await G(s,n),!L())return;let u=await M();u&&await $(n,u)}async promptName(e){let o=await E({suffix:"theme",directory:e,family:"creative"});return v({message:"Name of the new theme",defaultValue:o})}};j=i;i.summary="Clones a Git repository to use as a starting point for building a new theme.";i.descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
|
|
4
|
-
|
|
5
|
-
If no Git repository is specified, then this command creates a copy of Shopify's [Skeleton theme](${h}), with the specified name in the current folder. If no name is provided, then you're prompted to enter one.
|
|
6
|
-
|
|
7
|
-
> Caution: If you're building a theme for the Shopify Theme Store, then you can use our example theme as a starting point. However, the theme that you submit needs to be [substantively different from existing themes](https://shopify.dev/docs/themes/store/requirements#uniqueness) so that it provides added value for users.
|
|
8
|
-
`;i.description=j.descriptionWithoutMarkdown();i.usage="theme init [name] [flags]";i.args={name:m.Args.string({name:"name",description:"Name of the new theme",required:!1})};i.flags={...N,path:_.path,"clone-url":m.Flags.string({char:"u",default:h,description:"The Git URL to clone from. Defaults to Shopify's Skeleton theme.",env:"SHOPIFY_FLAG_CLONE_URL"}),latest:m.Flags.boolean({char:"l",description:"Downloads the latest release of the `clone-url`",env:"SHOPIFY_FLAG_LATEST"})};i.multiEnvironmentsFlags=null;var se=i;export{se as a};
|
package/dist/chunk-MPYCIVRA.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as D}from"./chunk-ZMSE5SQB.js";import{a as _,c as b}from"./chunk-LDWMX3KZ.js";import{a as c,b as F}from"./chunk-7TXWKLPY.js";import{e as y,q as T}from"./chunk-Y7A7Z2V3.js";import{i as v,p as g,v as w}from"./chunk-445NFHXL.js";import{b as u}from"./chunk-4TANJ4JK.js";import{A as p,v as d}from"./chunk-JX4HSDDG.js";import{U as f}from"./chunk-BCZMDFI2.js";import{a as C}from"./chunk-CTNBSUVU.js";import{e as Y,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function I(t,e,i){let r=e.themes;e.development&&(r=[(await new D(t).find()).id.toString()]);let n=t.storeFqdn,s=await L(t,{...e,themes:r,development:!1});if(!e.force&&!i&&!await M(s,n))return;await Promise.all(s.map(o=>(y(o)&&v(),T(o.id,t))));let l=e.environment?[{subdued:`Environment: ${e.environment}
|
|
2
|
-
|
|
3
|
-
`}]:[];d({body:f(s,o=>[...l,`The following themes were deleted from ${n}:`,F(o)],o=>[...l,"The theme",...c(o),`was deleted from ${n}.`])})}async function L(t,e){if(e.selectTheme||e.themes.length>0)return b(t,e);let i=t.storeFqdn;return[await _(t,{header:`Select a theme to delete from ${i}`,filter:{development:e.development}})]}async function M(t,e){let r={message:f(t,n=>[`Delete the following themes from ${e}?`],n=>["Delete",...c(n),`from ${e}?`]),confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return t.length>1&&(r.infoTable={"":t.map(c)}),p(r)}var a=Y(C(),1);var O,m=class extends w{async command(e,i,r){let{environment:n,development:s,force:l,theme:o}=e,E=o??[];await I(i,{selectTheme:e["show-all"],environment:n,development:s,themes:E,force:l},r)}};O=m;m.summary="Delete remote themes from the connected store. This command can't be undone.";m.descriptionWithMarkdown=`Deletes a theme from your store.
|
|
4
|
-
|
|
5
|
-
You can specify multiple themes by ID. If no theme is specified, then you're prompted to select the theme that you want to delete from the list of themes in your store.
|
|
6
|
-
|
|
7
|
-
You're asked to confirm that you want to delete the specified themes before they are deleted. You can skip this confirmation using the \`--force\` flag.`;m.description=O.descriptionWithoutMarkdown();m.flags={...u,...g,development:a.Flags.boolean({char:"d",description:"Delete your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),"show-all":a.Flags.boolean({char:"a",description:"Include others development themes in theme list.",env:"SHOPIFY_FLAG_SHOW_ALL"}),force:a.Flags.boolean({char:"f",description:"Skip confirmation.",env:"SHOPIFY_FLAG_FORCE"}),theme:a.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",multiple:!0})};m.multiEnvironmentsFlags=["store","password",["development","theme"]];var V=m;export{V as a};
|
package/dist/chunk-N4RYVOXT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w as h}from"./chunk-QEL3F2NY.js";import{a as d}from"./chunk-WDCCITSG.js";import{a as f}from"./chunk-NENUUNWB.js";import{ta as l}from"./chunk-5HJTCBBV.js";import{b as m}from"./chunk-4TANJ4JK.js";import{Lb as c,Xb as u}from"./chunk-BCZMDFI2.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
|
|
2
|
-
`)))}var a,t=class extends d{async run(){let{flags:e}=await this.parse(a),{app:o}=await l({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config});return o.errors.isEmpty()?g(o):process.exit(2),{app:o}}};a=t;t.summary="Print out a list of sources that may be used with the logs command.";t.descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";t.description=a.descriptionWithoutMarkdown();t.flags={...m,...f};var N=t;export{N as a};
|
package/dist/chunk-NB6HHZ36.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C,c as F}from"./chunk-5QDM4XIK.js";import{d as k,f as A,u as q}from"./chunk-5INBKZRD.js";import{a as N}from"./chunk-WDCCITSG.js";import{a as E,c as J}from"./chunk-NENUUNWB.js";import{b as x}from"./chunk-4BPFJDH3.js";import{b}from"./chunk-4TANJ4JK.js";import{E as m,v as f,x as S}from"./chunk-JX4HSDDG.js";import{d as z,f as y,m as u}from"./chunk-2GB3EAD3.js";import{Fb as c,Hb as n,Lb as O,Ta as v,ma as w,ua as g}from"./chunk-BCZMDFI2.js";import{e as I,g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=I(z(),1);async function D(s,e){if(s)try{return JSON.parse(s)}catch(t){let r=t instanceof Error?t.message:"Unknown error";throw new u(n`Invalid JSON in ${c.yellow("--variables")} flag: ${r}`,"Please provide valid JSON format.")}else if(e){if(!await v(e))throw new u(n`Variable file not found at ${c.path(e)}. Please check the path and try again.`);let t=await w(e,{encoding:"utf8"});try{return JSON.parse(t)}catch(r){let p=r instanceof Error?r.message:"Unknown error";throw new u(n`Invalid JSON in variable file ${c.path(e)}: ${p}`,"Please provide valid JSON format.")}}}async function $(s){let{remoteApp:e,store:t,query:r,variables:p,variableFile:L,version:R,outputFile:d}=s,{adminSession:V,version:G}=await m({title:n`Authenticating`,task:async()=>{let o=await C(e,t.shopDomain),i=await A({adminSession:o,userSpecifiedVersion:R});return{adminSession:o,version:i}},renderOptions:{stdout:process.stderr}}),P=await D(p,L);k(r),F(r,t);try{let o=await m({title:n`Executing GraphQL operation`,task:async()=>x({query:(0,M.parse)(r),session:V,variables:P,version:G,responseOptions:{handleErrors:!1}}),renderOptions:{stdout:process.stderr}}),i=JSON.stringify(o,null,2);d?(await g(d,i),f({headline:"Operation succeeded.",body:`Results written to ${d}`})):(f({headline:"Operation succeeded."}),O(i))}catch(o){if(o instanceof y){let i={errors:o.response.errors},Q=JSON.stringify(i,null,2);S({headline:"GraphQL operation failed.",body:Q});return}throw o}}var h,a=class extends N{async run(){let{flags:e}=await this.parse(h),{query:t,appContextResult:r,store:p}=await q(e);return await $({organization:r.organization,remoteApp:r.remoteApp,store:p,query:t,variables:e.variables,variableFile:e["variable-file"],outputFile:e["output-file"],...e.version&&{version:e.version}}),{app:r.app}}};h=a;a.summary="Execute GraphQL queries and mutations.";a.descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";a.description=h.descriptionWithoutMarkdown();a.flags={...b,...E,...J};var oe=a;export{oe as a};
|
package/dist/chunk-NEK2KNKR.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-ZMSE5SQB.js";import{a as y}from"./chunk-LDWMX3KZ.js";import{a as w}from"./chunk-7TXWKLPY.js";import{a as c,b as v}from"./chunk-STJ3LWFL.js";import{p as d,v as f}from"./chunk-445NFHXL.js";import{b as s}from"./chunk-4TANJ4JK.js";import{J as h,u as p}from"./chunk-JX4HSDDG.js";import{a as O}from"./chunk-CTNBSUVU.js";import{e as I,g as m}from"./chunk-VKWPEFWQ.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
|
|
2
|
-
|
|
3
|
-
`,{list:{items:[{link:{label:"Preview your theme",url:l}},{link:{label:"Customize your theme at the theme editor",url:a}}]}}]}),t.editor?await h(a):await h(l)}var r=I(O(),1);var g,e=class extends f{async command(t,i){await F(i,t)}};g=e;e.summary="Opens the preview of your remote theme.";e.descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
|
|
4
|
-
|
|
5
|
-
- A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
|
|
6
|
-
- A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.
|
|
7
|
-
|
|
8
|
-
If you don't specify a theme, then you're prompted to select the theme to open from the list of the themes in your store.`;e.description=g.descriptionWithoutMarkdown();e.flags={...s,...d,development:r.Flags.boolean({char:"d",description:"Open your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),editor:r.Flags.boolean({char:"E",description:"Open the theme editor for the specified theme in the browser.",env:"SHOPIFY_FLAG_EDITOR"}),live:r.Flags.boolean({char:"l",description:"Open your live (published) theme.",env:"SHOPIFY_FLAG_LIVE"}),theme:r.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};e.multiEnvironmentsFlags=null;var S=e;export{S as a};
|
package/dist/chunk-NJONAV7V.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as o}from"./chunk-4TANJ4JK.js";import{b as s}from"./chunk-WHT2RCAD.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends s{static{this.description="Clear the CLI cache, used to store some API responses and handle notifications status"}static{this.hidden=!0}async run(){await o()}};export{t as a};
|
package/dist/chunk-OHQTOHUX.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{a as O}from"./chunk-RMF3YNWE.js";import{a as I}from"./chunk-TEPMNVJN.js";import{c as _,i as P,n as k}from"./chunk-NKT5U6IJ.js";import{b as S,m as b}from"./chunk-Y7A7Z2V3.js";import{j as g,k as T,l as L,p as R,v as q}from"./chunk-445NFHXL.js";import{b as E}from"./chunk-4TANJ4JK.js";import{ua as x}from"./chunk-AFM3UZQO.js";import{a as v}from"./chunk-REABQXMP.js";import{m as u}from"./chunk-2GB3EAD3.js";import{Fb as d,Hb as m,Mb as o,Pb as c}from"./chunk-BCZMDFI2.js";import{a as G}from"./chunk-CTNBSUVU.js";import{e as V,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var f=class extends I{constructor(t){super(t),this.context="REPL",this.themeId=g()}async create(t,n){let s=await super.create(t,n);return await this.uploadThemeAssets(s),s}async findOrCreate(){let t=await this.fetch();if(!t){let n=`Liquid Console (${v})`;t=await this.create(S,n)}return t}setTheme(t){T(t)}removeTheme(){L()}async uploadThemeAssets(t){let n=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await b(t.id,n,this.adminSession)}};r();r();async function A(e){return await H(e)??await $(e)??await Y(e)??await z(e)??void 0}async function H(e){c(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,n=await h({...e,snippet:t}),s=await n.text();return C(n.status,s)?Q(s):void 0}async function $(e){c(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,n=await h({...e,snippet:t}),s=await n.text();C(n.status,s)&&e.replSession.push(JSON.parse(t))}async function Y(e){if(c(`Evaluating assignment context - ${e.snippet}`),oe(e.snippet))return e.snippet=`assign ${e.snippet}`,o(m`${d.gray(`> ${e.snippet}`)}`),$(e)}async function z(e){c(`Evaluating syntax error - ${e.snippet}`);let t="";if(X(e.snippet)||(t=await(await h({...e,snippet:`{{ ${e.snippet} }}`})).text()),y(t)||(t=await(await h({...e,snippet:`{% ${e.snippet} %}`})).text()),y(t)){let n=t.replace(/ \(snippets\/eval line \d+\)/,"");B(e.snippet,n)}}function B(e,t){if(t.includes("Unknown tag")){o(m`${d.errorText(`Unknown object, property, tag, or filter: '${e}'`)}`);return}let n=j(t);n&&o(m`${d.errorText(n)}`)}async function h(e){let t=K(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let n=await P(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
|
|
2
|
-
${t}
|
|
3
|
-
`}});return Z(n)&&ne(),ee(n)&&se(),te(n)&&re(),n}function K(e){return`[${[...e.replSession.map(n=>JSON.stringify(n)),e.snippet].join(",").replace(/\\"/g,'"')}]`}function Q(e){let t=j(e);if(t)return JSON.parse(t)?.find(s=>s.type==="display")?.value}function j(e){let t=e.split(`
|
|
4
|
-
`).slice(1,-1);if(t.length!==0)return t.join("")}function y(e){return e.includes("Liquid syntax error")}function X(e){return/^\s*assign\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function Z(e){return e.status===401||e.status===403}function ee(e){return e.status===430||e.status===429}function te(e){return e.headers.get("server-timing")?.includes('pageType;desc="404"')??!1}function ne(){throw new u("Session expired. Please initiate a new one.")}function se(){throw new u("Evaluations limit reached. Try again later.")}function re(){throw new u("Page not found. Please provide a valid --url value!")}function oe(e){return/^\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function C(e,t){return e===200&&!y(t)}r();function F(e){if(N(e)){o("Object can't be printed, but you can access its fields. Read more at https://shopify.dev/docs/api/liquid.");return}if(e==null){M("null");return}let t=JSON.stringify(e,null,2);M(t)}function N(e){if(Array.isArray(e))return e.length>0?N(e[0]):!1;if(e&&typeof e=="object"){let n=e.error;return typeof n=="string"&&n.includes("json not allowed for this object")}return!1}function M(e){return o(m`${d.cyan(e)}`)}import{createInterface as ie}from"readline";var ae=`Liquid Console doesn't support Liquid delimiters such as '{{ ... }}' or '{% ... %}'.
|
|
5
|
-
Please use 'collections.first' instead of '{{ collections.first }}'.`;async function D(e,t,n){process.stdin.isTTY&&process.stdin.ref();let s=ie({input:process.stdin,output:process.stdout}),a=[];s.on("line",p=>{ue(p,e,t,n,s,a)}),s.prompt()}async function ue(e,t,n,s,a,p){try{if(pe(e))return o(ae),a.prompt();let l=await A({snippet:e,themeSession:t,themeId:n,url:s,replSession:p});F(l),a.prompt()}catch(l){throw a.close(),l instanceof Error?(c(l.stack??"Error backtrace not found"),new u(l.message)):new u("An unknown error occurred. Please try again.")}}function pe(e){return/^\s*(\{\{|{%)/.test(e)}async function W(e,t){let n=await le(e),s=await _(e)?await O(t,e.storeFqdn):void 0;return{themeId:n,storePassword:s}}async function le(e){return(await new f(e).findOrCreate()).id.toString()}async function J(e,t,n,s,a){if(o(`Welcome to Shopify Liquid console
|
|
6
|
-
(press Ctrl + C to exit)`),s?.startsWith("shpat_"))throw new u("Unable to use Admin API tokens with the console command",`To use this command with the --password flag you must:
|
|
7
|
-
|
|
8
|
-
1. Install the Theme Access app on your shop
|
|
9
|
-
2. Generate a new password
|
|
10
|
-
|
|
11
|
-
Alternatively, you can authenticate normally by not passing the --password flag.
|
|
12
|
-
|
|
13
|
-
Learn more: https://shopify.dev/docs/storefronts/themes/tools/theme-access`);let p=await k(t,e,s,a);return D(p,t,n)}var w=V(G(),1);var U,i=class extends q{async command(t,n){let{url:s,password:a}=t,{themeId:p,storePassword:l}=await W(n,t["store-password"]);x("theme-command:console:single-env:authenticated"),await J(n,p,s,a,l)}};U=i;i.summary="Shopify Liquid REPL (read-eval-print loop) tool";i.usage=["theme console","theme console --url /products/classic-leather-jacket"];i.descriptionWithMarkdown=`Starts the Shopify Liquid REPL (read-eval-print loop) tool. This tool provides an interactive terminal interface for evaluating Liquid code and exploring Liquid objects, filters, and tags using real store data.
|
|
14
|
-
|
|
15
|
-
You can also provide context to the console using a URL, as some Liquid objects are context-specific`;i.description=U.descriptionWithoutMarkdown();i.flags={...E,...R,url:w.Flags.string({description:"The url to be used as context",env:"SHOPIFY_FLAG_URL",default:"/"}),"store-password":w.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"})};i.multiEnvironmentsFlags=null;var Ye=i;export{Ye as a};
|
package/dist/chunk-PKR6HS4T.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-LDWMX3KZ.js";import{a as c}from"./chunk-7TXWKLPY.js";import{f as l,o as p}from"./chunk-Y7A7Z2V3.js";import{p as s,v as d}from"./chunk-445NFHXL.js";import{b as h}from"./chunk-4TANJ4JK.js";import{v as i}from"./chunk-JX4HSDDG.js";import{a as F}from"./chunk-CTNBSUVU.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function v(t,r){let o=t.name??await l("New name for the theme"),a=await f(r,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}});await p(a.id,{name:o},r),i({body:[...t.environment?[{subdued:`Environment: ${t.environment}
|
|
2
|
-
|
|
3
|
-
`}]:[],"The theme",...c(a),"was renamed to",`'${o}'`]})}var m=w(F(),1);var u,e=class extends d{async command(r,o){await v(r,o)}};u=e;e.summary="Renames an existing theme.";e.descriptionWithMarkdown=`Renames a theme in your store.
|
|
4
|
-
|
|
5
|
-
If no theme is specified, then you're prompted to select the theme that you want to rename from the list of themes in your store.
|
|
6
|
-
`;e.description=u.descriptionWithoutMarkdown();e.flags={...h,...s,name:m.Flags.string({char:"n",description:"The new name for the theme.",env:"SHOPIFY_FLAG_NEW_NAME",required:!1}),development:m.Flags.boolean({char:"d",description:"Rename your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:m.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),live:m.Flags.boolean({char:"l",description:"Rename your remote live theme.",env:"SHOPIFY_FLAG_LIVE"})};e.multiEnvironmentsFlags=["store","password","name",["live","development","theme"]];var A=e;export{A as a};
|
package/dist/chunk-PKRDBS7O.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as v}from"./chunk-EZBB2ULE.js";import{a as h}from"./chunk-WDCCITSG.js";import{a as l}from"./chunk-NENUUNWB.js";import{ta as c}from"./chunk-5HJTCBBV.js";import{b as m}from"./chunk-4TANJ4JK.js";import{y as i}from"./chunk-AFM3UZQO.js";import{v as n}from"./chunk-JX4HSDDG.js";import{m as d}from"./chunk-2GB3EAD3.js";import{a as S}from"./chunk-CTNBSUVU.js";import{e as C,g as a}from"./chunk-VKWPEFWQ.js";a();a();async function f(o){let e=o.appContextResult.developerPlatformClient,r=o.appContextResult.remoteApp,s=await e.devSessionDelete({shopFqdn:o.store.shopDomain,appId:r.id});if(s.devSessionDelete?.userErrors.length){let w=s.devSessionDelete.userErrors.map(g=>g.message).join(`
|
|
2
|
-
`);throw new d(`Failed to stop the dev preview: ${w}`)}n({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${o.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var u=C(S(),1);var p,t=class extends h{async run(){let{flags:e}=await this.parse(p),r=await c({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),s=await v({appContextResult:r,storeFqdn:e.store,forceReselectStore:e.reset});return await f({appContextResult:r,store:s}),{app:r.app}}};p=t;t.summary="Cleans up the dev preview from the selected store.";t.descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
|
|
3
|
-
|
|
4
|
-
It restores the app's active version to the selected development store.
|
|
5
|
-
`;t.description=p.descriptionWithoutMarkdown();t.flags={...m,...l,store:u.Flags.string({hidden:!1,char:"s",description:"Store URL. Must be an existing development store.",env:"SHOPIFY_FLAG_STORE",parse:async o=>i(o)})};var L=t;export{L as a};
|
package/dist/chunk-PMD6S7YG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as E}from"./chunk-4TANJ4JK.js";import{b}from"./chunk-WHT2RCAD.js";import{M as F,N}from"./chunk-JX4HSDDG.js";import{Mb as k,S as C,Ta as w,ma as O}from"./chunk-BCZMDFI2.js";import{u as n}from"./chunk-A4SBXDZB.js";import{j as R}from"./chunk-EQNJ2NQD.js";import{d as u,f as P,g as x,h as g,n as T,q as y}from"./chunk-773TIA5M.js";import{a as U}from"./chunk-CTNBSUVU.js";import{e as H,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();d();var m=class{constructor(){this.assertions=[],this.registeredTests=[]}async runSuite(t){this.context=t,this.registeredTests=[];let e=[];this.tests();for(let i of this.registeredTests){this.assertions=[];let s=Date.now();try{await i.fn(),e.push({name:i.name,status:this.hasFailures()?"failed":"passed",duration:Date.now()-s,assertions:[...this.assertions]})}catch(r){e.push({name:i.name,status:"failed",duration:Date.now()-s,assertions:[...this.assertions],error:r instanceof Error?r:new Error(String(r))})}}return e}test(t,e){this.registeredTests.push({name:t,fn:e})}tests(){}async run(t,e){let i=e?.cwd??this.context.workingDirectory,s=await F(t,{cwd:i,env:e?.env});return{command:t,exitCode:s.exitCode,stdout:s.stdout,stderr:s.stderr,output:String(s.stdout)+String(s.stderr),success:s.exitCode===0}}async runInteractive(t,e){let i=e?.cwd??this.context.workingDirectory,s=0;try{await N(t,{cwd:i,env:e?.env,stdin:"inherit"})}catch{s=1}return{command:t,exitCode:s,stdout:"",stderr:"",output:"",success:s===0}}assertSuccess(t,e){this.assertions.push({description:e??`Command succeeded: ${t.command}`,passed:t.success,expected:"exit code 0",actual:`exit code ${t.exitCode}`})}assertError(t,e,i){let s=!t.success;if(e){let h=(typeof e=="string"?new RegExp(e):e).test(t.output),c;s?h?c="matched":c=`output: ${t.output.slice(0,200)}`:c="command succeeded",this.assertions.push({description:i??`Command failed with expected error: ${e}`,passed:s&&h,expected:`failure with error matching ${e}`,actual:c})}else this.assertions.push({description:i??`Command failed: ${t.command}`,passed:s,expected:"non-zero exit code",actual:`exit code ${t.exitCode}`})}async assertFile(t,e,i){let s=g(t)?t:u(this.context.workingDirectory,t),r=x(this.context.workingDirectory,s);if(!await w(s)){this.assertions.push({description:i??`File exists: ${r}`,passed:!1,expected:"file exists",actual:"file not found"});return}if(e){let c=await O(s),D=(typeof e=="string"?new RegExp(e):e).test(c);this.assertions.push({description:i??`File ${r} matches ${e}`,passed:D,expected:`content matching ${e}`,actual:D?"matched":`content: ${c.slice(0,200)}...`})}else this.assertions.push({description:i??`File exists: ${r}`,passed:!0,expected:"file exists",actual:"file exists"})}async assertNoFile(t,e){let i=g(t)?t:u(this.context.workingDirectory,t),s=x(this.context.workingDirectory,i),r=await w(i);this.assertions.push({description:e??`File does not exist: ${s}`,passed:!r,expected:"file does not exist",actual:r?"file exists":"file does not exist"})}async assertDirectory(t,e){let i=g(t)?t:u(this.context.workingDirectory,t),s=x(this.context.workingDirectory,i),r=await w(i);this.assertions.push({description:e??`Directory exists: ${s}`,passed:r,expected:"directory exists",actual:r?"directory exists":"directory not found"})}assertOutput(t,e,i){let r=(typeof e=="string"?new RegExp(e):e).test(t.output);this.assertions.push({description:i??`Output matches ${e}`,passed:r,expected:`output matching ${e}`,actual:r?"matched":`output: ${t.output.slice(0,200)}`})}assertJson(t,e,i){try{let s=JSON.parse(t.stdout);if(e){let r=e(s);this.assertions.push({description:i??"Output is valid JSON matching validator",passed:r,expected:"valid JSON matching validator",actual:r?"matched":"validator returned false"})}else this.assertions.push({description:i??"Output is valid JSON",passed:!0,expected:"valid JSON",actual:"valid JSON"});return s}catch{this.assertions.push({description:i??"Output is valid JSON",passed:!1,expected:"valid JSON",actual:`invalid JSON: ${t.stdout.slice(0,100)}`});return}}assert(t,e){this.assertions.push({description:e,passed:t,expected:"true",actual:String(t)})}assertEqual(t,e,i){this.assertions.push({description:i,passed:t===e,expected:String(e),actual:String(t)})}hasFailures(){return this.assertions.some(t=>!t.passed)}};m.description="Doctor test suite";var p=class extends m{constructor(){super(...arguments);this.themeName="";this.themePath=""}static{this.description="Tests the theme init command creates a valid theme structure"}tests(){this.test("init creates theme directory",async()=>{this.themeName=`doctor-theme-${C("creative")}`,this.themePath=u(this.context.workingDirectory,this.themeName);let e=await this.runInteractive(`shopify theme init ${this.themeName} --path ${this.context.workingDirectory}`);this.assertSuccess(e),this.context.themeName=this.themeName,this.context.themePath=this.themePath}),this.test("essential theme files exist",async()=>{let e=["layout/theme.liquid","config/settings_schema.json","templates/index.json"];await Promise.all(e.map(i=>this.assertFile(u(this.themePath,i))))}),this.test("theme directories exist",async()=>{let e=["sections","snippets","assets","locales"];await Promise.all(e.map(i=>this.assertDirectory(u(this.themePath,i))))}),this.test("layout/theme.liquid has valid content",async()=>{await this.assertFile(u(this.themePath,"layout/theme.liquid"),/<!doctype html>|<html|{{ content_for_header }}/i,"layout/theme.liquid contains expected Liquid markup")})}};d();var l=class extends m{static{this.description="Tests pushing a theme to the store creates an unpublished theme"}static{this.requiresStore=!0}tests(){this.test("push creates unpublished theme",async()=>{if(!this.context.themePath){this.assert(!1,"Theme init did not complete successfully; themePath is missing in context");return}let t=this.context.themeName??"doctor-theme",e=`shopify theme push --unpublished --json --path ${this.context.themePath} -t ${t}`;this.context.environment&&(e+=` -e ${this.context.environment}`),this.context.store&&(e+=` -s ${this.context.store}`),this.context.password&&(e+=` --password ${this.context.password}`);let i=await this.run(e);this.assertSuccess(i);let s=this.assertJson(i,r=>typeof r.theme?.id=="number");s?.theme&&(this.assert(typeof s.theme.id=="number","Theme was created with a valid ID"),this.assertEqual(s.theme.role,"unpublished","Theme role is unpublished"),this.assert(s.theme.editor_url.includes("/admin/themes/"),"Editor URL is provided"),this.assert(s.theme.preview_url.includes("preview_theme_id="),"Preview URL is provided"),this.context.themeId=String(s.theme.id),this.context.data.editorUrl=s.theme.editor_url,this.context.data.previewUrl=s.theme.preview_url)})}};d();function _(o){return{workingDirectory:o.path??y(),environment:o.environment,store:o.store,password:o.password,data:{}}}d();var a=o=>k(o),v;function J(o){v=o}function G(o){if(!v)return o;let t=/\/[^\s,)]+/g;return o.replace(t,e=>T(e,v))}function A(o,t){a(""),a(n.bold(n.cyan(`Suite: ${o}`))),a(n.dim(t))}function j(o){a(n.bold(n.blue(`Running: ${o}`)))}function q(o){let t=`(${(o.duration/1e3).toFixed(2)}s)`;if(o.status==="passed"){a(n.bold(n.green(`PASSED: ${o.name} ${n.dim(t)}`)));for(let e of I(o.assertions))a(e)}else if(o.status==="failed"){a(n.red(`FAILED: ${o.name} ${n.dim(t)}`));for(let e of I(o.assertions))a(e);o.error&&a(n.red(` Error: ${G(o.error.message)}`))}else a(n.yellow(`SKIPPED: ${o.name}`))}function S(o){let t=o.filter(h=>h.status==="passed").length,e=o.filter(h=>h.status==="failed").length,i=o.filter(h=>h.status==="skipped").length,s=o.length,r=o.reduce((h,c)=>h+c.duration,0);a(""),a(n.bold("\u2500".repeat(40))),e>0?a(n.red(n.bold(`Doctor Complete: ${e}/${s} tests failed`))):a(n.green(n.bold(`Doctor Complete: ${t}/${s} tests passed`))),a(` Passed: ${n.green(String(t))}`),a(` Failed: ${n.red(String(e))}`),i>0&&a(` Skipped: ${n.yellow(String(i))}`),a(` Total time: ${n.dim(`${(r/1e3).toFixed(2)}s`)}`)}function I(o){return o.map(t=>{if(t.passed)return n.green(` [OK] ${t.description}`);{let e=` (expected: ${t.expected}, actual: ${t.actual})`;return n.red(` [FAIL] ${t.description}${e}`)}})}var Y=[p,l];async function L(o){let t=[],e=_(o);J(e.workingDirectory);for(let i of Y){let s=new i,r=i.description??"Test suite";A(i.name,r);let h=await s.runSuite(e);for(let c of h)if(j(c.name),q(c),t.push(c),c.status==="failed")return S(t),t}return S(t),t}var f=H(U(),1);var $=class o extends b{static{this.description="Run all theme command doctor-release tests"}static{this.hidden=!0}static{this.flags={...E,path:f.Flags.string({char:"p",description:"The path to run tests in. Defaults to current directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>P(t),default:async()=>y()}),environment:f.Flags.string({char:"e",description:"The environment to use from shopify.theme.toml (required for store-connected tests).",env:"SHOPIFY_FLAG_ENVIRONMENT",required:!0}),store:f.Flags.string({char:"s",description:"Store URL (overrides environment).",env:"SHOPIFY_FLAG_STORE"}),password:f.Flags.string({description:"Password from Theme Access app (overrides environment).",env:"SHOPIFY_FLAG_PASSWORD"})}}async run(){if(!R())return;let{flags:t}=await this.parse(o);(await L({path:t.path,environment:t.environment,store:t.store,password:t.password})).some(s=>s.status==="failed")&&(process.exitCode=1)}};export{$ as a};
|
package/dist/chunk-PUOCHFFI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as E}from"./chunk-ZMSE5SQB.js";import{a as _}from"./chunk-LDWMX3KZ.js";import{a as I,b as w}from"./chunk-STJ3LWFL.js";import{f as a,g as u,p as S,v as b}from"./chunk-445NFHXL.js";import{b as T,c as g}from"./chunk-4TANJ4JK.js";import{ra as f,ua as p}from"./chunk-AFM3UZQO.js";import{g as s,u as c}from"./chunk-JX4HSDDG.js";import{m as v}from"./chunk-2GB3EAD3.js";import{Lb as l}from"./chunk-BCZMDFI2.js";import{a as x}from"./chunk-CTNBSUVU.js";import{e as L,g as m}from"./chunk-VKWPEFWQ.js";m();m();function A(o,e){return{theme:{id:o.id,name:o.name,role:o.role,shop:e.storeFqdn,preview_url:I(o,e),editor_url:w(o,e)}}}function D(o){let{platform:e,arch:n}=s(),t=a(),r=null;return t&&(r=Number(u())||null),{store:t??"Not configured",development_theme_id:r,cli_version:o.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version}}async function O(o,e){let n;if(e.development)n=await new E(o).findOrCreate();else{let t={filter:{theme:e.theme}};n=await _(o,t)}return n?A(n,o):void 0}async function y(o){return[M(),await j(o)]}function M(){let o=a()??"Not configured",e=u();return p(`theme-command:info:dev-theme-loaded:${e}`),N("Theme Configuration",[["Store",o],["Development Theme ID",e?`#${e}`:{subdued:"Not set"}]])}async function j(o){let{platform:e,arch:n}=s();return N("Tooling and System",[["Shopify CLI",o.cliVersion],["OS",`${e}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}function N(o,e){return{title:o,body:{tabularData:e,firstColumnSubdued:!0}}}async function F(o,e){let n=Object.entries(o.theme).map(([t,r])=>{if(t==="editor_url"||t==="preview_url"){let C=String(r),$=t==="editor_url"?"Open in Theme Editor":"Preview Theme";return[d(t),{link:{url:C,label:$}}]}else return t==="id"?[d(t),`#${r}`]:[d(t),`${r}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function d(o){return o.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var h=L(x(),1);var i=class extends b{async command(e,n){if(f("theme-command:info"),e.theme||e.development){let t=await O(n,e);if(!t)throw new v("Theme not found!");if(e.json)return l(JSON.stringify(t,null,2));let r=await F(t,e);c(r)}else{if(e.json)return l(JSON.stringify(D({cliVersion:this.config.version}),null,2));let t=await y({cliVersion:this.config.version});c({customSections:t})}f("theme-command:info")}};i.description="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";i.flags={...T,...g,...S,development:h.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:h.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};i.multiEnvironmentsFlags=["store","password"];var k=i;export{k as a};
|
package/dist/chunk-Q2DPBMV4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-LEEVJH4B.js";import{a as n}from"./chunk-NENUUNWB.js";import{C as s,ua as c,z as p}from"./chunk-5HJTCBBV.js";import{b as e}from"./chunk-4TANJ4JK.js";import{a as d}from"./chunk-CTNBSUVU.js";import{e as l,g as r}from"./chunk-VKWPEFWQ.js";r();var m=l(d(),1);var t,{config:b,...u}=n,o=class extends f{async run(){let{flags:a,args:i}=await this.parse(t),{app:g}=await c({directory:a.path,userProvidedConfigName:i.config});return await s(a.path),await p({directory:a.path,configName:i.config,reset:a.reset}),{app:g}}};t=o;o.summary="Activate an app configuration.";o.descriptionWithMarkdown="Sets default configuration when you run app-related CLI commands. If you omit the `config-name` parameter, then you'll be prompted to choose from the configuration files in your project.";o.description=t.descriptionWithoutMarkdown();o.usage="app config use [config] [flags]";o.flags={...e,...u};o.args={config:m.Args.string({description:"The name of the app configuration. Can be 'shopify.app.staging.toml' or simply 'staging'."})};var v=o;export{v as a};
|
package/dist/chunk-Q6XT3YKV.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{b as g}from"./chunk-4TANJ4JK.js";import{b as y}from"./chunk-WHT2RCAD.js";import{m as u}from"./chunk-AFM3UZQO.js";import{m as r}from"./chunk-2GB3EAD3.js";import{Lb as v,Mb as w,ua as l,wa as m}from"./chunk-BCZMDFI2.js";import{f as p,i as h}from"./chunk-773TIA5M.js";import{a as R}from"./chunk-CTNBSUVU.js";import{e as A,g as s}from"./chunk-VKWPEFWQ.js";s();s();var U="text/markdown",L="X-Shopify-Surface",E="cli",F=["shopify.dev"];async function S(t,e){let c;try{c=new URL(t)}catch{throw new r(`Invalid URL: ${t}`)}let{hostname:d}=c;if(!F.some(o=>d===o||d.endsWith(`.${o}`)))throw new r(`Only documents from the following hosts can be fetched: ${F.join(", ")}.`);let i=await u(t,{headers:{Accept:U,[L]:E}});if(!i.ok)throw new r(`Failed to fetch ${t}: ${i.status} ${i.statusText}`);let f=await i.text();if(e){let o=p(e);await m(h(o)),await l(o,f),w(`Saved ${t} to ${o}`);return}v(f)}var n=A(R(),1),a=class t extends y{static{this.description="Download a complete document from shopify.dev. Every page on shopify.dev has a Markdown version, and that is what this tool returns. Use this to pull an entire document verbatim \u2014 for example, a set of instructions an agent follows like a centrally-served skill. For finding the relevant pieces of content across shopify.dev instead, use `doc search`."}static{this.examples=[`# fetch the Markdown version of a Shopify.dev page
|
|
2
|
-
shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli`,`# save the document to a file instead of printing it
|
|
3
|
-
shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --output docs/shopify-cli.md`]}static{this.flags={...g,url:n.Flags.string({description:"The shopify.dev URL to fetch.",env:"SHOPIFY_FLAG_URL",required:!0}),output:n.Flags.string({description:"Write the document to this file path instead of printing it to stdout.",env:"SHOPIFY_FLAG_OUTPUT"})}}async run(){let{flags:e}=await this.parse(t);await S(e.url,e.output)}};export{a};
|
package/dist/chunk-QEL3F2NY.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{l as O}from"./chunk-JX4HSDDG.js";import{m as E}from"./chunk-2GB3EAD3.js";import{Pb as i,Qb as m,Y as b,ca as N}from"./chunk-BCZMDFI2.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();u();var l=class{constructor({export:e,input:r,inputBytes:o,output:n,outputBytes:s,logs:a,functionId:f,fuelConsumed:c,target:A,errorMessage:S,errorType:w,inputQueryVariablesMetafieldValue:g,inputQueryVariablesMetafieldNamespace:I,inputQueryVariablesMetafieldKey:C}){this.export=e,this.input=r,this.inputBytes=o,this.output=n,this.outputBytes=s,this.logs=a,this.functionId=f,this.fuelConsumed=c,this.target=A,this.errorMessage=S,this.errorType=w,this.inputQueryVariablesMetafieldValue=g,this.inputQueryVariablesMetafieldNamespace=I,this.inputQueryVariablesMetafieldKey=C}},h=class{constructor({cacheEntryEpochMs:e,cacheTtlMs:r,httpRequest:o,httpResponse:n}){this.cacheEntryEpochMs=e,this.cacheTtlMs=r,this.httpRequest=o,this.httpResponse=n}},_;(function(t){t[t.NoCachedResponse=0]="NoCachedResponse",t[t.CacheAboutToExpire=1]="CacheAboutToExpire",t[t.Unknown=2]="Unknown"})(_||(_={}));var d=class{constructor({reason:e,httpRequest:r}){this.reason=e,this.httpRequest=r}},y=class{constructor({attempt:e,connectTimeMs:r,writeReadTimeMs:o,httpRequest:n,httpResponse:s,error:a}){this.attempt=e,this.connectTimeMs=r,this.writeReadTimeMs=o,this.httpRequest=n,this.httpResponse=s,this.error=a}};u();function R(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function M(t,e){return e?.deep&&R(t)||e?.deep&&Array.isArray(t)?p(t,e):t}function p(t,e){if(Array.isArray(t))return t.map(r=>e?.deep?p(r,e):r);if(R(t)){let r={};for(let[o,n]of Object.entries(t))r[b(o)]=M(n,e);return r}return t}var L=450,P=5*1e3,T=60*1e3,H=5,W=1e6,U="function_run",z="function_network_access",V="function_network_access.response_from_cache",q="function_network_access.request_execution_in_background",J="function_network_access.request_execution",Z="no_cached_response",ee="cached_response_about_to_expire";function te(t){let e=JSON.parse(t),r=e.input_query_variables_metafield_value&&x(e.input_query_variables_metafield_value);return new l({export:e.export,input:e.input,inputBytes:e.input_bytes,output:e.output,outputBytes:e.output_bytes,logs:e.logs,functionId:e.function_id,fuelConsumed:e.fuel_consumed,target:e.target,errorMessage:e.error_message,errorType:e.error_type,inputQueryVariablesMetafieldValue:r,inputQueryVariablesMetafieldNamespace:e.input_query_variables_metafield_namespace,inputQueryVariablesMetafieldKey:e.input_query_variables_metafield_key})}function re(t){let e=JSON.parse(t);return new h({cacheEntryEpochMs:e.cache_entry_epoch_ms,cacheTtlMs:e.cache_ttl_ms,httpRequest:e.http_request,httpResponse:e.http_response})}var k={no_cached_response:_.NoCachedResponse,cached_response_about_to_expire:_.CacheAboutToExpire};function se(t){let e=JSON.parse(t);return new d({reason:k[e.reason]??_.Unknown,httpRequest:e.http_request})}function oe(t){let e=JSON.parse(t);return new y({attempt:e.attempt,connectTimeMs:e.connect_time_ms??null,writeReadTimeMs:e.write_read_time_ms??null,httpRequest:e.http_request,httpResponse:e.http_response??null,error:e.error??null})}var ne=async t=>{let{errors:e}=t.response,r=L,o=null,n="not_attempted";if(e.length>0)if(i(`Errors: ${e.map(s=>s.message).join(", ")}`),e.some(s=>s.status===401))try{o=await t.onResubscribe(),n="succeeded"}catch(s){i(`Failed to resubscribe to app logs: ${s}`),r=T,n="failed",t.onThrottle(r)}else e.some(s=>s.status===429)?(r=T,t.onThrottle(r)):(r=P,t.onUnknownError(r));return{retryIntervalMs:r,nextJwtToken:o,resubscribeResult:n}};function ae(t){return t.allExtensions.flatMap(e=>e.isFunctionExtension?[`extensions.${e.configuration.handle}`]:[])}var ie=({appLog:t,appLogPayload:e,storeName:r,prettyPrint:o=!0})=>{let{cursor:n,...s}=t,a=p({...s,payload:e,localTime:N(t.log_timestamp),storeName:r});return e instanceof l&&(a.payload.logs=e.logs.split(`
|
|
2
|
-
`).filter(Boolean),a.payload.inputQueryVariablesMetafieldValue&&(a.payload.inputQueryVariablesMetafieldValue=x(a.payload.inputQueryVariablesMetafieldValue))),o?JSON.stringify(a,null,2):JSON.stringify(a)},pe=(t,e)=>{let r=p(JSON.parse(t));return e===U?new l(r):e===V?new h(r):e===q?new d(r):e===J?new y(r):r},ce=async(t,e,r,o)=>{let n=await t.subscribeToAppLogs(e,r);if(!n.appLogsSubscribe)throw new E("Failed to subscribe to app logs: No response received");let{jwtToken:s,success:a,errors:f}=n.appLogsSubscribe;if(i(`Token: ${s}
|
|
3
|
-
`),i(`API Key: ${e.apiKey}
|
|
4
|
-
`),f&&f.length>0){let c=f.join(", ");throw await O({stripAnsi:!1},()=>{m(`Errors subscribing to app logs: ${c}`,o),m("App log streaming is not available in this session.",o)}),new E(c)}else{if(!s)throw new E("Failed to subscribe to app logs: No response received");let c=Array.isArray(e.shopIds)?e.shopIds:[e.shopIds];i(`Subscribed to App Events for shop ID(s) ${c.join(", ")}`),a!==void 0&&i(`Success: ${a}
|
|
5
|
-
`)}return s};function ue(t){try{if(typeof t=="string"){let e=JSON.parse(t);return JSON.stringify(e,null,2)}else return typeof t=="object"&&t!==null?JSON.stringify(t,null,2):void 0}catch(e){throw new Error(`Error parsing JSON: ${e}`)}}var x=t=>{try{return JSON.parse(t)}catch{return t}};export{l as a,h as b,_ as c,d,y as e,p as f,L as g,P as h,H as i,W as j,U as k,z as l,V as m,q as n,J as o,Z as p,ee as q,te as r,re as s,se as t,oe as u,ne as v,ae as w,ie as x,pe as y,ce as z,ue as A};
|
package/dist/chunk-R2W5B7YI.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as h}from"./chunk-LURVEPYP.js";import{p as m,v as a}from"./chunk-445NFHXL.js";import{b as s}from"./chunk-4TANJ4JK.js";import{ra as t}from"./chunk-AFM3UZQO.js";import{S as n}from"./chunk-BCZMDFI2.js";import{a as f}from"./chunk-CTNBSUVU.js";import{e as w,g as i}from"./chunk-VKWPEFWQ.js";i();var o=w(f(),1);var d,e=class extends a{async command(r,p,c,y,l){let u={environment:r.environment,force:r.force,noColor:r["no-color"],password:r.password,path:r.path,store:r.store,theme:n("creative"),unpublished:!0,listing:r.listing};t("theme-command:share"),await h(u,p,c,l),t("theme-command:share")}};d=e;e.summary="Creates a shareable, unpublished, and new theme on your theme library with a randomized name.";e.descriptionWithMarkdown=`Uploads your theme as a new, unpublished theme in your theme library. The theme is given a randomized name.
|
|
2
|
-
|
|
3
|
-
This command returns a [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with others.`;e.description=d.descriptionWithoutMarkdown();e.flags={...s,...m,force:o.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),listing:o.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"})};e.multiEnvironmentsFlags=["store","password","path"];var I=e;export{I as a};
|
package/dist/chunk-REABQXMP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as I}from"./chunk-VKWPEFWQ.js";I();var o="4.6.1";export{o as a};
|