@shopify/cli 4.1.0 → 4.3.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/{acorn-LOOAJL3S.js → acorn-7M27BPGP.js} +1 -1
- package/dist/analytics-JH64XI2J.js +1 -0
- package/dist/analytics-MEGKKFGF.js +1 -0
- package/dist/angular-DW5TQVCM.js +4 -0
- package/dist/{babel-URCL33XX.js → babel-I2RLWM7N.js} +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
- package/dist/chunk-25HJX3L2.js +5 -0
- package/dist/chunk-2EHBJWC6.js +26 -0
- package/dist/chunk-2GAFKG64.js +4 -0
- package/dist/chunk-2GU7OY3H.js +1 -0
- package/dist/{chunk-4IC626OL.js → chunk-2K7FGAT6.js} +1 -1
- package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
- package/dist/{chunk-NMBBTTIH.js → chunk-2RBIR3NM.js} +1 -1
- package/dist/chunk-2TMQG2UT.js +1 -0
- package/dist/chunk-2XZBQZ5R.js +7 -0
- package/dist/{chunk-Q4T2T2QE.js → chunk-33OHQUHZ.js} +1 -1
- package/dist/chunk-3AOQKI4B.js +1 -0
- package/dist/{chunk-OBEWZXOQ.js → chunk-3SPDFV5D.js} +1 -1
- package/dist/chunk-3YDYZ232.js +103 -0
- package/dist/chunk-4FFPTEKD.js +1 -0
- package/dist/chunk-4J32OHLY.js +1382 -0
- package/dist/chunk-4QTEPWEJ.js +283 -0
- package/dist/chunk-57PPQKJT.js +15 -0
- package/dist/{chunk-AGNMOFJS.js → chunk-5BKCIDMS.js} +1 -1
- package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
- package/dist/chunk-5FFHQTRC.js +4 -0
- package/dist/{chunk-2GK56X53.js → chunk-5FVB7JHP.js} +1 -1
- package/dist/{chunk-UYXEA3Y6.js → chunk-5H3VTG77.js} +1 -1
- package/dist/chunk-5O43334U.js +2 -0
- package/dist/chunk-5XDQ76DQ.js +1 -0
- package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
- package/dist/chunk-6JKGUQRD.js +1 -0
- package/dist/chunk-6KETAPWL.js +1 -0
- package/dist/{chunk-ULFWK45W.js → chunk-6LWOWDF4.js} +2 -2
- package/dist/chunk-7572RLUP.js +1 -0
- package/dist/chunk-762JWOWJ.js +5 -0
- package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
- package/dist/{chunk-76R52ODR.js → chunk-7D45IAMQ.js} +1 -1
- package/dist/chunk-7FQFEB33.js +370 -0
- package/dist/chunk-7LV55VWE.js +1 -0
- package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
- package/dist/chunk-A27NZMWB.js +1 -0
- package/dist/chunk-A4SBXDZB.js +14 -0
- package/dist/{chunk-4DCQNGUV.js → chunk-A5HKAMAC.js} +10 -10
- package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
- package/dist/chunk-AERKD4TO.js +3 -0
- package/dist/{chunk-L2MGAEV3.js → chunk-ANBOLDON.js} +2 -2
- package/dist/{chunk-UJVH7FZS.js → chunk-AO3RFGNV.js} +1 -1
- package/dist/{chunk-KHSYW7I4.js → chunk-ATSMK66C.js} +1 -1
- package/dist/chunk-AU5EZQW7.js +5 -0
- package/dist/chunk-AVD3INWF.js +1 -0
- package/dist/chunk-AWEB5AQM.js +1 -0
- package/dist/chunk-AXNAGI32.js +1 -0
- package/dist/chunk-BL46CZ2M.js +2 -0
- package/dist/chunk-BQWK3C47.js +278 -0
- package/dist/chunk-CEHXOWA6.js +3 -0
- package/dist/{chunk-EKXY5COY.js → chunk-CFOXXOO2.js} +1 -1
- package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
- package/dist/chunk-CV5EQGES.js +22 -0
- package/dist/chunk-CX5CC6P5.js +1 -0
- package/dist/chunk-DCLUZFT7.js +2 -0
- package/dist/{chunk-Q33IBIVJ.js → chunk-DNXYKGV2.js} +1 -1
- package/dist/chunk-DTIWUT2T.js +18 -0
- package/dist/{chunk-VICYNG2W.js → chunk-DYNH5SKT.js} +1 -1
- package/dist/chunk-DZQYG32N.js +2 -0
- package/dist/{chunk-FQWB2F75.js → chunk-E7DHELFH.js} +1 -1
- package/dist/chunk-EH7ZTFS4.js +613 -0
- package/dist/{chunk-P6XE4MH5.js → chunk-EJDWYASP.js} +1 -1
- package/dist/chunk-EKVTNWHM.js +1 -0
- package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
- package/dist/chunk-EVZA2TCI.js +3 -0
- package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
- package/dist/chunk-FIYAECXH.js +28 -0
- package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
- package/dist/chunk-FOFJBRSL.js +11 -0
- package/dist/chunk-FQ5ZZX2G.js +25 -0
- package/dist/chunk-G2LVUM7N.js +6 -0
- package/dist/chunk-G2OHWAY2.js +7 -0
- package/dist/chunk-G3JJLXPH.js +1 -0
- package/dist/chunk-G3RWLAOG.js +1 -0
- package/dist/chunk-G4OQABDT.js +836 -0
- package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
- package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
- package/dist/chunk-GDHD3TGC.js +6 -0
- package/dist/{chunk-JXW374CL.js → chunk-GJXINXSU.js} +11 -11
- package/dist/chunk-GWHV62YT.js +1 -0
- package/dist/chunk-HCTZN7L4.js +2 -0
- package/dist/{chunk-ZSBA6VIC.js → chunk-HDC5V7RY.js} +1 -1
- package/dist/{chunk-7NH7CHVI.js → chunk-HIQHYPLU.js} +1 -1
- package/dist/{chunk-XOTA6JTZ.js → chunk-HOSFU6UP.js} +3 -3
- package/dist/chunk-I22ZTRKK.js +3 -0
- package/dist/chunk-I4R7TML2.js +7 -0
- package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
- package/dist/chunk-IWOTLFOY.js +32 -0
- package/dist/{chunk-7UYZQN4V.js → chunk-J3H4LPN6.js} +3 -3
- package/dist/{chunk-XULPJ6UG.js → chunk-J3HX6ZGD.js} +1 -1
- package/dist/chunk-J3JPJCWP.js +1 -0
- package/dist/chunk-J5BRKYGE.js +294 -0
- package/dist/chunk-JAWKLBOB.js +3 -0
- package/dist/{chunk-MCVRONUY.js → chunk-JAWOP4HJ.js} +1 -1
- package/dist/{chunk-ZGK3LGCH.js → chunk-JCIN73BE.js} +1 -1
- package/dist/chunk-JEZ3PGVC.js +1 -0
- package/dist/{chunk-C7BTJ32Z.js → chunk-JJ6RM54S.js} +1 -1
- package/dist/chunk-JK3NIHTX.js +17 -0
- package/dist/chunk-JLE4NBMT.js +1 -0
- package/dist/chunk-JSOGPMWB.js +5 -0
- package/dist/chunk-JUYJZUYU.js +1 -0
- package/dist/chunk-KRQGLK2Q.js +3 -0
- package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
- package/dist/{chunk-BS3BKORT.js → chunk-L2PC4MUV.js} +1 -1
- package/dist/chunk-LCZDC6EE.js +5 -0
- package/dist/chunk-LXVORHCQ.js +1 -0
- package/dist/chunk-M2YINBHF.js +32 -0
- package/dist/chunk-M7YFD4EV.js +10 -0
- package/dist/chunk-MEIEEENL.js +1 -0
- package/dist/chunk-MIDYZPO4.js +1 -0
- package/dist/chunk-MINZGZ4N.js +1 -0
- package/dist/chunk-MMIHHCMW.js +5 -0
- package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
- package/dist/chunk-MRS6LAY7.js +1 -0
- package/dist/chunk-N3CNWCC2.js +19 -0
- package/dist/{chunk-M2D7USAX.js → chunk-N3NE4MVN.js} +1 -1
- package/dist/chunk-N3YTDGFY.js +4 -0
- package/dist/{chunk-MHWV5RQV.js → chunk-N5LVGFDS.js} +2 -2
- package/dist/{chunk-QBSKKQBN.js → chunk-NILXAUUT.js} +1 -1
- package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
- package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
- package/dist/{chunk-6G6TMKXF.js → chunk-NTRAWIEJ.js} +21 -21
- package/dist/chunk-NWXDOCL5.js +1 -0
- package/dist/{chunk-2AJ5FI2K.js → chunk-OU3M32A2.js} +1 -1
- package/dist/chunk-OU4SKQTC.js +5 -0
- package/dist/chunk-OXJBYKMX.js +1 -0
- package/dist/chunk-OZBY45KT.js +1 -0
- package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
- package/dist/chunk-PCCK4YTE.js +1 -0
- package/dist/{chunk-6RE2SNCU.js → chunk-PFGYC53K.js} +1 -1
- package/dist/chunk-PMS4MNHB.js +6 -0
- package/dist/chunk-PNP5OKNZ.js +1 -0
- package/dist/{chunk-KN3WTTHZ.js → chunk-PXHY753L.js} +1 -1
- package/dist/chunk-Q73GEVSJ.js +11 -0
- package/dist/{chunk-5WVAHE5E.js → chunk-Q77MM2N2.js} +1 -1
- package/dist/chunk-Q7C44DX5.js +4 -0
- package/dist/chunk-QDVJJKLB.js +1 -0
- package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
- package/dist/{chunk-E3EMHAJB.js → chunk-RKDZGK5K.js} +1 -1
- package/dist/{chunk-TYZXGSHO.js → chunk-RSRYC5ZF.js} +1 -1
- package/dist/chunk-S22NCNAJ.js +1 -0
- package/dist/chunk-S5IFJ737.js +3 -0
- package/dist/chunk-S6B2ADVR.js +8 -0
- package/dist/chunk-S7F5KFQP.js +1 -0
- package/dist/chunk-SSCYLDSX.js +3 -0
- package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
- package/dist/chunk-T3ERXB7F.js +8 -0
- package/dist/chunk-T4IV643Z.js +9 -0
- package/dist/chunk-T4NS63K4.js +16 -0
- package/dist/chunk-T6CC5WUU.js +159 -0
- package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
- package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
- package/dist/{chunk-DRFGABEB.js → chunk-TP7E54WN.js} +1 -1
- package/dist/chunk-TPCG6DCA.js +1 -0
- package/dist/{chunk-SXTMSGUE.js → chunk-TRYWVIVJ.js} +1 -1
- package/dist/chunk-TU47HMTL.js +1 -0
- package/dist/chunk-TUNUEOHO.js +3 -0
- package/dist/{chunk-MWY3A7O3.js → chunk-TY6BZTG3.js} +1 -1
- package/dist/chunk-TYMYIUIQ.js +1 -0
- package/dist/chunk-UB26DGTR.js +6 -0
- package/dist/chunk-UC7KMA6W.js +8 -0
- package/dist/chunk-UOHNRH6E.js +7 -0
- package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
- package/dist/chunk-USLYL5AC.js +1 -0
- package/dist/chunk-UTO4Z6P6.js +567 -0
- package/dist/{chunk-M2ZHFKPN.js → chunk-UU5P2IYU.js} +1 -1
- package/dist/chunk-UYSF234H.js +1 -0
- package/dist/chunk-VE35YELD.js +1 -0
- package/dist/{chunk-WSDN25F5.js → chunk-VI34CKV6.js} +1 -1
- package/dist/chunk-VJ6KDRZI.js +1 -0
- package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
- package/dist/chunk-VKWPEFWQ.js +1 -0
- package/dist/chunk-VPPWSKOY.js +1 -0
- package/dist/chunk-VRJTLVG3.js +1 -0
- package/dist/chunk-VUMUCNI7.js +1 -0
- package/dist/chunk-W7DDV2EY.js +1 -0
- package/dist/chunk-WA3YC5W4.js +15 -0
- package/dist/chunk-WHNWE7P2.js +1 -0
- package/dist/chunk-WVRGCNBZ.js +1 -0
- package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
- package/dist/{chunk-HZA6IAA4.js → chunk-XVUHUA36.js} +1 -1
- package/dist/{chunk-OLZHWPZP.js → chunk-XWPPBOGF.js} +1 -1
- package/dist/chunk-YIRFEW5M.js +1 -0
- package/dist/{chunk-KR6QDE7D.js → chunk-YL3TYQGT.js} +1 -1
- package/dist/{chunk-7MUKLZOL.js → chunk-YLQ3LNNY.js} +3 -3
- package/dist/chunk-YMAWEIUR.js +1 -0
- package/dist/chunk-YPBCSDFQ.js +1 -0
- package/dist/{chunk-KZOBF55B.js → chunk-YSIBRY6C.js} +1 -1
- package/dist/{chunk-KHTV6PBV.js → chunk-YVQXEPHY.js} +1 -1
- package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
- package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
- package/dist/chunk-ZGJ3DFTQ.js +9 -0
- package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
- package/dist/chunk-ZM75DSIW.js +1 -0
- package/dist/{chunk-URZPVSJZ.js → chunk-ZUKLGZOU.js} +66 -66
- package/dist/cli/commands/app/app-logs/sources.js +1 -2
- 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 -9
- package/dist/cli/commands/app/bulk/status.js +1 -5
- package/dist/cli/commands/app/config/link.js +1 -4
- 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 -3
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -22
- package/dist/cli/commands/app/dev/clean.js +1 -5
- package/dist/cli/commands/app/dev.js +1 -320
- package/dist/cli/commands/app/env/pull.js +1 -11
- 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 -16
- package/dist/cli/commands/app/function/replay.js +1 -5
- 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 -5
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -11
- package/dist/cli/commands/app/init.js +1 -10
- package/dist/cli/commands/app/logs.js +1 -2
- package/dist/cli/commands/app/release.js +1 -4
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -25
- 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/constants.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.d.ts +12 -0
- package/dist/cli/commands/doc/fetch.js +1 -0
- package/dist/cli/commands/doc/search.d.ts +13 -0
- package/dist/cli/commands/doc/search.js +1 -0
- 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.d.ts +4 -0
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -15
- package/dist/cli/commands/theme/delete.js +1 -7
- package/dist/cli/commands/theme/dev.js +1 -26
- package/dist/cli/commands/theme/duplicate.js +1 -32
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -8
- 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 -3
- package/dist/cli/commands/theme/open.js +1 -8
- package/dist/cli/commands/theme/package.js +1 -7
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -3
- package/dist/cli/commands/theme/publish.js +1 -7
- package/dist/cli/commands/theme/pull.js +1 -3
- package/dist/cli/commands/theme/push.js +1 -28
- package/dist/cli/commands/theme/rename.js +1 -6
- package/dist/cli/commands/theme/share.js +1 -3
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
- package/dist/cli/services/commands/doc/fetch.js +45 -0
- package/dist/cli/services/commands/doc/search.d.ts +1 -0
- package/dist/cli/services/commands/doc/search.js +47 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-UY3MDGGA.js +1 -0
- package/dist/configs/all.yml +3 -0
- package/dist/configs/recommended.yml +3 -0
- package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-3AICQCNU.js} +1 -1
- package/dist/data/filters.json +60 -0
- package/dist/data/latest.json +1 -1
- package/dist/data/setting.json +29 -9
- package/dist/data/shopify_system_translations.json +71 -19
- package/dist/data/tags.json +3 -3
- package/dist/deprecations-KNUMDRIU.js +1 -0
- package/dist/{devtools-OLOT2NY4.js → devtools-37DE4MUR.js} +1 -1
- package/dist/{devtools-UFRKBFGI.js → devtools-WAWU5KQL.js} +1 -1
- package/dist/dist-C5IV2YDQ.js +1 -0
- package/dist/dist-VL4KZWV2.js +1 -0
- package/dist/environments-YPRVO2CF.js +1 -0
- package/dist/error-XRBQTNFM.js +1 -0
- package/dist/error-handler-NI7D6GSY.js +1 -0
- package/dist/{estree-KI7NUW53.js → estree-JV5M77BA.js} +2 -2
- package/dist/{flow-MLHT7MTJ.js → flow-N4JYPYMQ.js} +1 -1
- package/dist/fs-LJWVNO4H.js +1 -0
- package/dist/{glimmer-HAJ4HQCW.js → glimmer-JEV3BXHR.js} +1 -1
- package/dist/{graphql-F7IHGXDT.js → graphql-DTF6MHYF.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -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/html-LVOJ3RQS.js +25 -0
- package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
- package/dist/index.js +23 -1175
- package/dist/is-global-W6ALVC5L.js +1 -0
- package/dist/is-wsl-UEMXYJPN.js +1 -0
- package/dist/{latest-version-EFWBOTWM.js → latest-version-32HXMWJ7.js} +1 -1
- package/dist/lib-AIKYSHWL.js +1 -0
- package/dist/lib-O5EZ4NVT.js +1 -0
- package/dist/lib-Q4PWEMFD.js +1 -0
- package/dist/lib-QJDPPAWN.js +1 -0
- package/dist/{local-MTKXSZ3I.js → local-GKEWZAIV.js} +1 -1
- package/dist/local-storage-ZOZMA22B.js +1 -0
- package/dist/{markdown-PLKL4IZK.js → markdown-J6CE6POI.js} +2 -2
- package/dist/{meriyah-AYZQ3BGY.js → meriyah-PNQQZQYI.js} +1 -1
- package/dist/metadata-UEUN64TK.js +1 -0
- package/dist/{morph-EMYAITFM.js → morph-CGOZEPPZ.js} +4 -4
- package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
- package/dist/node-package-manager-4ASQQIIF.js +1 -0
- package/dist/notifications-system-HLXJCAMG.js +1 -0
- package/dist/{npa-ICFSA3NL.js → npa-A4YSCQ5Q.js} +1 -1
- package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
- package/dist/out-CDCY25QC.js +1 -0
- package/dist/output-S6E37GJQ.js +1 -0
- package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
- package/dist/{postcss-3FJQPJI2.js → postcss-Q36SHOML.js} +2 -2
- package/dist/{prettier-NVRHEAFO.js → prettier-EGVCP5CY.js} +1 -1
- package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
- package/dist/system-YQZNGSWB.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-5R4Y7PXE.js +1 -0
- package/dist/{typescript-ODJ335NU.js → typescript-WYPDGPSV.js} +1 -1
- package/dist/ui-D2FFWRK7.js +1 -0
- package/dist/upgrade-TVTCFMXM.js +1 -0
- package/dist/version-J6MDN7BZ.js +1 -0
- package/dist/version-RIRW5EXQ.js +1 -0
- package/dist/workerd-QOTT6UCO.js +18 -0
- package/dist/{yaml-BIHS2GQW.js → yaml-6KWCJ64X.js} +1 -1
- package/oclif.manifest.json +442 -9
- package/package.json +18 -12
- package/dist/analytics-5TEIW43T.js +0 -1
- package/dist/analytics-GG7CYCGL.js +0 -1
- package/dist/angular-VRDO2DBE.js +0 -4
- package/dist/chunk-3D4JXJPS.js +0 -2
- package/dist/chunk-3NBK56IK.js +0 -1
- package/dist/chunk-4ZGSSQC6.js +0 -1
- package/dist/chunk-54CAKCYR.js +0 -144
- package/dist/chunk-5UHQVR2Z.js +0 -1
- package/dist/chunk-67MH4AXG.js +0 -1
- package/dist/chunk-6CYMJ76C.js +0 -9
- package/dist/chunk-6HBRBQAN.js +0 -6
- package/dist/chunk-6ITDI2SD.js +0 -1
- package/dist/chunk-6SF3ZETE.js +0 -1
- package/dist/chunk-6WL4GA2M.js +0 -15
- package/dist/chunk-7ESSIN27.js +0 -567
- package/dist/chunk-7QIOUDCX.js +0 -8
- package/dist/chunk-7ZT57XT7.js +0 -2
- package/dist/chunk-AKML26N3.js +0 -7
- package/dist/chunk-C2IK2HY3.js +0 -4
- package/dist/chunk-CBXSPL4W.js +0 -1
- package/dist/chunk-CEIQFLCN.js +0 -1
- package/dist/chunk-CERXUPGC.js +0 -14
- package/dist/chunk-DCPBRWVC.js +0 -1
- package/dist/chunk-DN2IE3VY.js +0 -1
- package/dist/chunk-EQU4MUQJ.js +0 -1
- package/dist/chunk-F2QU6WWX.js +0 -1
- package/dist/chunk-FFQ5EWII.js +0 -294
- package/dist/chunk-FKMC5OFF.js +0 -1
- package/dist/chunk-FUOIGXI4.js +0 -1
- package/dist/chunk-FYFNUDOC.js +0 -19
- package/dist/chunk-G4BPGWJC.js +0 -1
- package/dist/chunk-GVQIPEZT.js +0 -1
- package/dist/chunk-GZS44BUW.js +0 -102
- package/dist/chunk-HIBX234C.js +0 -6
- package/dist/chunk-HRUGYZZ4.js +0 -2
- package/dist/chunk-HUIJMGVJ.js +0 -586
- package/dist/chunk-IX5ICOBV.js +0 -7
- package/dist/chunk-IZ3C5J7G.js +0 -5
- package/dist/chunk-JAO53IH2.js +0 -1
- package/dist/chunk-JCL2RRU6.js +0 -1
- package/dist/chunk-JQJBBXMX.js +0 -17
- package/dist/chunk-K2WUCOQJ.js +0 -32
- package/dist/chunk-K6CTUBFC.js +0 -12
- package/dist/chunk-KKTW6ZCA.js +0 -5
- package/dist/chunk-LDGAHMS7.js +0 -159
- package/dist/chunk-M3RYUB22.js +0 -1
- package/dist/chunk-M56NDIMD.js +0 -1
- package/dist/chunk-MWGBTOO3.js +0 -1
- package/dist/chunk-N5PQPIBF.js +0 -374
- package/dist/chunk-NF2ABOOU.js +0 -1
- package/dist/chunk-NPEVESCV.js +0 -3
- package/dist/chunk-OTY24J2W.js +0 -1
- package/dist/chunk-OY3PNHPZ.js +0 -103
- package/dist/chunk-PAP22IQO.js +0 -264
- package/dist/chunk-PYVAWAUO.js +0 -5
- package/dist/chunk-QA23HIH4.js +0 -1
- package/dist/chunk-S6EJHWJL.js +0 -1
- package/dist/chunk-SIMFNECG.js +0 -1
- package/dist/chunk-T542UQBY.js +0 -1
- package/dist/chunk-TQ6HYDVC.js +0 -1
- package/dist/chunk-UHJYPEY2.js +0 -1
- package/dist/chunk-UJXUSRQK.js +0 -1
- package/dist/chunk-UWJ73J4B.js +0 -1
- package/dist/chunk-UXVZ2P63.js +0 -1411
- package/dist/chunk-VPRTJUIN.js +0 -1
- package/dist/chunk-WFXRSKRK.js +0 -1
- package/dist/chunk-XEFQQPL4.js +0 -1
- package/dist/chunk-XITQULK4.js +0 -3
- package/dist/chunk-XONFGLJQ.js +0 -847
- package/dist/chunk-XR6GMMEU.js +0 -1
- package/dist/chunk-XXVEHDVO.js +0 -1
- package/dist/chunk-Y7JGYGV7.js +0 -1
- package/dist/chunk-YOZNRLFC.js +0 -1
- package/dist/chunk-YTNDFQJT.js +0 -3
- package/dist/chunk-ZBRRJDGW.js +0 -1
- package/dist/chunk-ZTMSBSYD.js +0 -1
- package/dist/conf-store-BMZFATRQ.js +0 -1
- package/dist/deprecations-7LHRXPXU.js +0 -1
- package/dist/dist-LDXPBYSZ.js +0 -1
- package/dist/dist-V63ILV6L.js +0 -1
- package/dist/environments-5X7S2O5U.js +0 -1
- package/dist/error-ZRLNNGIQ.js +0 -1
- package/dist/error-handler-PRZFHPRG.js +0 -1
- package/dist/fs-H7V6IRSH.js +0 -1
- package/dist/html-VSSXOZOQ.js +0 -25
- package/dist/is-global-IOWPCT2U.js +0 -1
- package/dist/is-wsl-FVUIXDOK.js +0 -1
- package/dist/lib-5L7UKDEK.js +0 -1
- package/dist/lib-C3VO2BQW.js +0 -1
- package/dist/lib-QB6I6CTC.js +0 -1
- package/dist/lib-WU3FEA6I.js +0 -1
- package/dist/local-storage-CYEL4MXF.js +0 -1
- package/dist/metadata-NOVBMKLM.js +0 -1
- package/dist/node-package-manager-N5CVNHA3.js +0 -1
- package/dist/notifications-system-YX2GPLDW.js +0 -1
- package/dist/out-WLY6KV4B.js +0 -1
- package/dist/output-Q46DT46U.js +0 -1
- package/dist/system-E6Q3OBX3.js +0 -1
- package/dist/typescript-K5CWIA4V.js +0 -1
- package/dist/ui-WRS2IDPP.js +0 -1
- package/dist/upgrade-TKUN2M5P.js +0 -1
- package/dist/version-5W5RVAPA.js +0 -1
- package/dist/version-BQJ3FPXD.js +0 -1
- package/dist/workerd-GOK6GWEX.js +0 -18
package/dist/chunk-7QIOUDCX.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{d as h}from"./chunk-M56NDIMD.js";import{Gb as V,Ib as T,Qb as $,Ta as N,ma as w}from"./chunk-N5PQPIBF.js";import{a as d,c as b,e as K,g as v}from"./chunk-VPRTJUIN.js";var O=b((H,L)=>{L.exports={name:"dotenv",version:"16.4.7",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var j=b((z,p)=>{v();var m=d("fs"),y=d("path"),Y=d("os"),R=d("crypto"),F=O(),_=F.version,P=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function S(e){let n={},r=e.toString();r=r.replace(/\r\n?/mg,`
|
|
2
|
-
`);let s;for(;(s=P.exec(r))!=null;){let a=s[1],t=s[2]||"";t=t.trim();let o=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(t=t.replace(/\\n/g,`
|
|
3
|
-
`),t=t.replace(/\\r/g,"\r")),n[a]=t}return n}function U(e){let n=A(e),r=c.configDotenv({path:n});if(!r.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${n} for an unknown reason`);throw o.code="MISSING_DATA",o}let s=k(e).split(","),a=s.length,t;for(let o=0;o<a;o++)try{let i=s[o].trim(),l=q(r,i);t=c.decrypt(l.ciphertext,l.key);break}catch(i){if(o+1>=a)throw i}return c.parse(t)}function C(e){console.log(`[dotenv@${_}][INFO] ${e}`)}function M(e){console.log(`[dotenv@${_}][WARN] ${e}`)}function g(e){console.log(`[dotenv@${_}][DEBUG] ${e}`)}function k(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function q(e,n){let r;try{r=new URL(n)}catch(i){if(i.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw i}let s=r.password;if(!s){let i=new Error("INVALID_DOTENV_KEY: Missing key part");throw i.code="INVALID_DOTENV_KEY",i}let a=r.searchParams.get("environment");if(!a){let i=new Error("INVALID_DOTENV_KEY: Missing environment part");throw i.code="INVALID_DOTENV_KEY",i}let t=`DOTENV_VAULT_${a.toUpperCase()}`,o=e.parsed[t];if(!o){let i=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${t} in your .env.vault file.`);throw i.code="NOT_FOUND_DOTENV_ENVIRONMENT",i}return{ciphertext:o,key:s}}function A(e){let n=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)m.existsSync(r)&&(n=r.endsWith(".vault")?r:`${r}.vault`);else n=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else n=y.resolve(process.cwd(),".env.vault");return m.existsSync(n)?n:null}function I(e){return e[0]==="~"?y.join(Y.homedir(),e.slice(1)):e}function B(e){C("Loading env from encrypted .env.vault");let n=c._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),c.populate(r,n,e),{parsed:n}}function W(e){let n=y.resolve(process.cwd(),".env"),r="utf8",s=!!(e&&e.debug);e&&e.encoding?r=e.encoding:s&&g("No encoding is specified. UTF-8 is used by default");let a=[n];if(e&&e.path)if(!Array.isArray(e.path))a=[I(e.path)];else{a=[];for(let l of e.path)a.push(I(l))}let t,o={};for(let l of a)try{let u=c.parse(m.readFileSync(l,{encoding:r}));c.populate(o,u,e)}catch(u){s&&g(`Failed to load ${l} ${u.message}`),t=u}let i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),c.populate(i,o,e),t?{parsed:o,error:t}:{parsed:o}}function G(e){if(k(e).length===0)return c.configDotenv(e);let n=A(e);return n?c._configVault(e):(M(`You set DOTENV_KEY but you are missing a .env.vault file at ${n}. Did you forget to build it?`),c.configDotenv(e))}function J(e,n){let r=Buffer.from(n.slice(-64),"hex"),s=Buffer.from(e,"base64"),a=s.subarray(0,12),t=s.subarray(-16);s=s.subarray(12,-16);try{let o=R.createDecipheriv("aes-256-gcm",r,a);return o.setAuthTag(t),`${o.update(s)}${o.final()}`}catch(o){let i=o instanceof RangeError,l=o.message==="Invalid key length",u=o.message==="Unsupported state or unable to authenticate data";if(i||l){let f=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw f.code="INVALID_DOTENV_KEY",f}else if(u){let f=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw f.code="DECRYPTION_FAILED",f}else throw o}}function Q(e,n,r={}){let s=!!(r&&r.debug),a=!!(r&&r.override);if(typeof n!="object"){let t=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw t.code="OBJECT_REQUIRED",t}for(let t of Object.keys(n))Object.prototype.hasOwnProperty.call(e,t)?(a===!0&&(e[t]=n[t]),s&&g(a===!0?`"${t}" is already defined and WAS overwritten`:`"${t}" is already defined and was NOT overwritten`)):e[t]=n[t]}var c={configDotenv:W,_configVault:B,_parseVault:U,config:G,decrypt:J,parse:S,populate:Q};p.exports.configDotenv=c.configDotenv;p.exports._configVault=c._configVault;p.exports._parseVault=c._parseVault;p.exports.config=c.config;p.exports.decrypt=c.decrypt;p.exports.parse=c.parse;p.exports.populate=c.populate;p.exports=c});v();var x=K(j());async function re(e){if($(T`Reading the .env file at ${V.path(e)}`),!await N(e))throw new h(`The environment file at ${e} does not exist.`);let n=await w(e);return{path:e,variables:(0,x.parse)(n)}}function oe(e,n){let r=[],s=e===null?[]:e.split(`
|
|
4
|
-
`),a=[],t;for(let o of s){if(t){if(o.endsWith(t.quote)){let u=E(t.key,t.value+o.slice(0,-1),t.quote),f=n[t.key];f&&(a.push(t.key),u=E(t.key,f)),r.push(u),t=void 0}else t.value+=`${o}
|
|
5
|
-
`;continue}let i=o.match(/^([^=:#]+?)[=:](.*)/),l=o;if(i){let u=i[1].trim(),f=(i[2]??"").trim();if(/^["'`]/.test(f)&&!f.endsWith(f[0])){t={key:u,value:`${f.slice(1)}
|
|
6
|
-
`,quote:f[0]};continue}let D=n[u];D&&(a.push(u),l=E(u,D))}r.push(l)}if(t)throw new h(`Multi-line environment variable '${t.key}' is not properly enclosed.`);for(let[o,i]of Object.entries(n))a.includes(o)||r.push(E(o,i));return r.join(`
|
|
7
|
-
`)}function E(e,n,r){if(r)return`${e}=${r}${n}${r}`;if(n?.includes(`
|
|
8
|
-
`)){let s=['"',"'","`"].find(a=>!n.includes(a));if(!s)throw new h(`The environment file patch has an env value that can't be surrounded by quotes: ${n}`);return`${e}=${s}${n}${s}`}return`${e}=${n}`}export{re as a,oe as b,E as c};
|
package/dist/chunk-7ZT57XT7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as k,b as N,c as w}from"./chunk-UYXEA3Y6.js";import{n as F}from"./chunk-XONFGLJQ.js";import{a as T,b as D}from"./chunk-XULPJ6UG.js";import{O as A,P,a as O}from"./chunk-6G6TMKXF.js";import{g as b}from"./chunk-M56NDIMD.js";import{Ia as _,La as U,Pa as I,Qb as u,Ua as p,xa as x,za as y}from"./chunk-N5PQPIBF.js";import{f as h}from"./chunk-YTNDFQJT.js";import{d as m,i as l,j as S}from"./chunk-IU2ZQ6TE.js";import{g as f}from"./chunk-VPRTJUIN.js";f();f();import{fileURLToPath as M}from"url";import Y from"util";import{pipeline as j}from"stream";import{execSync as q,execFileSync as z}from"child_process";var v="2024.8.2",B=`https://github.com/cloudflare/cloudflared/releases/download/${v}/`,W={arm64:"cloudflared-linux-arm64",arm:"cloudflared-linux-arm",x64:"cloudflared-linux-amd64",ia32:"cloudflared-linux-386"},G={arm64:"cloudflared-darwin-arm64.tgz",x64:"cloudflared-darwin-amd64.tgz"},V={x64:"cloudflared-windows-amd64.exe",ia32:"cloudflared-windows-386.exe",arm64:"cloudflared-windows-amd64.exe"},$={linux:W,darwin:G,win32:V};function X(e=process.platform,t=process.arch){if(!Object.keys($).includes(e))throw new Error(`Unsupported system platform: ${e}`);let n=$[e][t];if(n===void 0)throw new Error(`Unsupported system arch: ${t}`);return B+n}function Z(e=process.env,t=process.platform){return e.SHOPIFY_CLI_CLOUDFLARED_PATH?e.SHOPIFY_CLI_CLOUDFLARED_PATH:m(l(M(import.meta.url)),"..","bin",t==="win32"?"cloudflared.exe":"cloudflared")}async function g(e=process.env,t=process.platform,r=process.arch){if(e.SHOPIFY_CLI_IGNORE_CLOUDFLARED){u("Skipping cloudflared installation because SHOPIFY_CLI_IGNORE_CLOUDFLARED is set");return}let n=X(t,r),o=Z(e,t);if(p(o))try{let a=z(o,["--version"],{encoding:"utf8"}).split(" "),i=a.length>2?a[2]:"0.0.0";if(!J(v,i)){u("cloudflared already installed, skipping");return}}catch{u("version check failed, reinstalling")}if(t==="linux")await K(n,o);else if(t==="darwin")await tt(n,o);else if(t==="win32")await Q(n,o);else throw new Error(`Unsupported platform: ${t}`)}function J(e,t){let[r,n,o]=e.split(".").map(Number),[a,i,c]=t.split(".").map(Number);return r!==a?(r??0)>(a??0):n!==i?(n??0)>(i??0):(o??0)>(c??0)}async function K(e,t){await C(e,t),await I(t,"755")}async function Q(e,t){await C(e,t)}async function tt(e,t){await C(e,`${t}.tgz`);let r=S(`${t}.tgz`);q(`tar -xzf ${r}`,{cwd:l(t)}),_(`${t}.tgz`),await y(`${l(t)}/cloudflared`,t)}async function C(e,t){p(l(t))||x(l(t));let r=Y.promisify(j),n=await F(e,{redirect:"follow"},"slow-request");if(!n.ok||!n.body)throw new Error(`Couldn't download file ${e} (${n.status} ${n.statusText})`);let o=U(t);return await r(n.body,o),t}import{Writable as et}from"stream";import{fileURLToPath as rt}from"url";var kt=N({provider:w,action:st}),nt=h()?.2:40,ot=5;async function st(e){try{let t=new R(e);return await t.startTunnel(),T(t)}catch(t){let r=new k("unknown",t.message);return D(r)}}var R=class{constructor(t){this.provider=w,this.currentStatus={status:"not-started"},this.abortController=void 0,this.port=t}async startTunnel(){try{await g(),this.tunnel()}catch(t){this.currentStatus={status:"error",message:t.message,tryMessage:d()}}}getTunnelStatus(){return this.currentStatus}stopTunnel(){this.abortController?.abort()}tunnel(t=0){this.abortController=new O;let r=!1;if(t>=ot){r=!0,this.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: max retries reached.",tryMessage:d()};return}let n=["tunnel","--url",`http://localhost:${this.port}`,"--no-autoupdate"],o=[],a=!1,i;this.currentStatus={status:"starting"},setTimeout(()=>{if(!r){r=!0;let s=[...new Set(o)].slice(-5).join(`
|
|
2
|
-
`);s===""?this.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: unknown error.",tryMessage:d()}:this.currentStatus={status:"error",message:s,tryMessage:d()},this.abortController?.abort()}},nt*1e3);let c=this,E=new et({write(s,ft,H){if(u(s.toString()),r)return;i??(i=it(s)),ut(s)&&(a=!0),a&&(i?(r=!0,c.currentStatus={status:"connected",url:i}):c.currentStatus={status:"error",message:"Could not start Cloudflare tunnel: URL not found."});let L=at(s);L&&o.push(L),H()}});A(ct(),n,{stdout:E,stderr:E,signal:this.abortController.signal,externalErrorHandler:async s=>{if(r)throw new b(`Could not start Cloudflare tunnel: process crashed after stablishing a connection: ${s.message}`,d());u(`Cloudflare tunnel crashed: ${s.message}, restarting...`),h()||await P(1),this.tunnel(t+1)}})}};function d(){return["You can run the command again, or try networking with Shopify via",{command:"--use-localhost"},"or",{command:"--tunnel-url <custom tunnel>"},".",{link:{label:"See documentation for details.",url:"https://shopify.dev/docs/apps/build/cli-for-apps/networking-options"}}]}function it(e){let t=new RegExp(`(https:\\/\\/[^\\s]+\\.${dt()})`),r=e.toString().match(t)??void 0;return r&&r[1]}function at(e){if([/failed to request quick Tunnel/,/failed to unmarshal quick Tunnel/,/failed to parse quick Tunnel ID/,/failed to provision routing/,/ERR Couldn't start tunnel/,/ERR Failed to serve quic connection/,/ERR Failed to create new quic connection error/].some(n=>n.test(e.toString())))return`Could not start Cloudflare tunnel: ${lt(e.toString())}`}function lt(e){let t=/^[0-9TZ:-]+ (ERR )?/g,r=/connIndex.*/g;return e.replace(t,"").replace(r,"")}function ut(e){let t=e.toString().match(/(INF Registered tunnel connection|INF Connection)/)??void 0;return t&&t[0]}function ct(){return process.env.SHOPIFY_CLI_CLOUDFLARED_PATH?process.env.SHOPIFY_CLI_CLOUDFLARED_PATH:m(l(rt(import.meta.url)),"..","bin",process.platform==="win32"?"cloudflared.exe":"cloudflared")}function dt(){return process.env.SHOPIFY_CLI_CLOUDFLARED_DOMAIN??"trycloudflare.com"}export{kt as a};
|
package/dist/chunk-AKML26N3.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as g,c as E,e as H,g as d}from"./chunk-VPRTJUIN.js";var ze=E((gr,Ve)=>{"use strict";d();var{Duplex:Kt}=g("stream");function $e(t){t.emit("close")}function Xt(){!this.destroyed&&this._writableState.finished&&this.destroy()}function je(t){this.removeListener("error",je),this.destroy(),this.listenerCount("error")===0&&this.emit("error",t)}function Zt(t,e){let s=!0,r=new Kt({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(n,o){let f=!o&&r._readableState.objectMode?n.toString():n;r.push(f)||t.pause()}),t.once("error",function(n){r.destroyed||(s=!1,r.destroy(n))}),t.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(i,n){if(t.readyState===t.CLOSED){n(i),process.nextTick($e,r);return}let o=!1;t.once("error",function(l){o=!0,n(l)}),t.once("close",function(){o||n(i),process.nextTick($e,r)}),s&&t.terminate()},r._final=function(i){if(t.readyState===t.CONNECTING){t.once("open",function(){r._final(i)});return}t._socket!==null&&(t._socket._writableState.finished?(i(),r._readableState.endEmitted&&r.destroy()):(t._socket.once("finish",function(){i()}),t.close()))},r._read=function(){t.isPaused&&t.resume()},r._write=function(i,n,o){if(t.readyState===t.CONNECTING){t.once("open",function(){r._write(i,n,o)});return}t.send(i,o)},r.on("end",Xt),r.on("error",je),r}Ve.exports=Zt});var k=E((Sr,Ke)=>{"use strict";d();var He=["nodebuffer","arraybuffer","fragments"],Ye=typeof Blob<"u";Ye&&He.push("blob");Ke.exports={BINARY_TYPES:He,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:Ye,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Y=E((Er,re)=>{"use strict";d();var{EMPTY_BUFFER:Qt}=k(),ye=Buffer[Symbol.species];function Jt(t,e){if(t.length===0)return Qt;if(t.length===1)return t[0];let s=Buffer.allocUnsafe(e),r=0;for(let i=0;i<t.length;i++){let n=t[i];s.set(n,r),r+=n.length}return r<e?new ye(s.buffer,s.byteOffset,r):s}function Xe(t,e,s,r,i){for(let n=0;n<i;n++)s[r+n]=t[n]^e[n&3]}function Ze(t,e){for(let s=0;s<t.length;s++)t[s]^=e[s&3]}function es(t){return t.length===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.length)}function Se(t){if(Se.readOnly=!0,Buffer.isBuffer(t))return t;let e;return t instanceof ArrayBuffer?e=new ye(t):ArrayBuffer.isView(t)?e=new ye(t.buffer,t.byteOffset,t.byteLength):(e=Buffer.from(t),Se.readOnly=!1),e}re.exports={concat:Jt,mask:Xe,toArrayBuffer:es,toBuffer:Se,unmask:Ze};if(!process.env.WS_NO_BUFFER_UTIL)try{let t=g("bufferutil");re.exports.mask=function(e,s,r,i,n){n<48?Xe(e,s,r,i,n):t.mask(e,s,r,i,n)},re.exports.unmask=function(e,s){e.length<32?Ze(e,s):t.unmask(e,s)}}catch{}});var et=E((br,Je)=>{"use strict";d();var Qe=Symbol("kDone"),xe=Symbol("kRun"),Ee=class{constructor(e){this[Qe]=()=>{this.pending--,this[xe]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[xe]()}[xe](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[Qe])}}};Je.exports=Ee});var Z=E((Or,it)=>{"use strict";d();var K=g("zlib"),tt=Y(),ts=et(),{kStatusCode:st}=k(),ss=Buffer[Symbol.species],rs=Buffer.from([0,0,255,255]),oe=Symbol("permessage-deflate"),C=Symbol("total-length"),X=Symbol("callback"),P=Symbol("buffers"),ne=Symbol("error"),ie,ve=class{constructor(e,s,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!s,this._deflate=null,this._inflate=null,this.params=null,!ie){let i=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;ie=new ts(i)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[X];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let s=this._options,r=e.find(i=>!(s.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(s.serverMaxWindowBits===!1||typeof s.serverMaxWindowBits=="number"&&s.serverMaxWindowBits>i.server_max_window_bits)||typeof s.clientMaxWindowBits=="number"&&!i.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return s.serverNoContextTakeover&&(r.server_no_context_takeover=!0),s.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof s.serverMaxWindowBits=="number"&&(r.server_max_window_bits=s.serverMaxWindowBits),typeof s.clientMaxWindowBits=="number"?r.client_max_window_bits=s.clientMaxWindowBits:(r.client_max_window_bits===!0||s.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let s=e[0];if(this._options.clientNoContextTakeover===!1&&s.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!s.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(s.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&s.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return s}normalizeParams(e){return e.forEach(s=>{Object.keys(s).forEach(r=>{let i=s[r];if(i.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(i=i[0],r==="client_max_window_bits"){if(i!==!0){let n=+i;if(!Number.isInteger(n)||n<8||n>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=n}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else if(r==="server_max_window_bits"){let n=+i;if(!Number.isInteger(n)||n<8||n>15)throw new TypeError(`Invalid value for parameter "${r}": ${i}`);i=n}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${i}`)}else throw new Error(`Unknown parameter "${r}"`);s[r]=i})}),e}decompress(e,s,r){ie.add(i=>{this._decompress(e,s,(n,o)=>{i(),r(n,o)})})}compress(e,s,r){ie.add(i=>{this._compress(e,s,(n,o)=>{i(),r(n,o)})})}_decompress(e,s,r){let i=this._isServer?"client":"server";if(!this._inflate){let n=`${i}_max_window_bits`,o=typeof this.params[n]!="number"?K.Z_DEFAULT_WINDOWBITS:this.params[n];this._inflate=K.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[oe]=this,this._inflate[C]=0,this._inflate[P]=[],this._inflate.on("error",ns),this._inflate.on("data",rt)}this._inflate[X]=r,this._inflate.write(e),s&&this._inflate.write(rs),this._inflate.flush(()=>{let n=this._inflate[ne];if(n){this._inflate.close(),this._inflate=null,r(n);return}let o=tt.concat(this._inflate[P],this._inflate[C]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[C]=0,this._inflate[P]=[],s&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),r(null,o)})}_compress(e,s,r){let i=this._isServer?"server":"client";if(!this._deflate){let n=`${i}_max_window_bits`,o=typeof this.params[n]!="number"?K.Z_DEFAULT_WINDOWBITS:this.params[n];this._deflate=K.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[C]=0,this._deflate[P]=[],this._deflate.on("data",is)}this._deflate[X]=r,this._deflate.write(e),this._deflate.flush(K.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let n=tt.concat(this._deflate[P],this._deflate[C]);s&&(n=new ss(n.buffer,n.byteOffset,n.length-4)),this._deflate[X]=null,this._deflate[C]=0,this._deflate[P]=[],s&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),r(null,n)})}};it.exports=ve;function is(t){this[P].push(t),this[C]+=t.length}function rt(t){if(this[C]+=t.length,this[oe]._maxPayload<1||this[C]<=this[oe]._maxPayload){this[P].push(t);return}this[ne]=new RangeError("Max payload size exceeded"),this[ne].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[ne][st]=1009,this.removeListener("data",rt),this.reset()}function ns(t){this[oe]._inflate=null,t[st]=1007,this[X](t)}});var F=E((kr,ae)=>{"use strict";d();var{isUtf8:nt}=g("buffer"),{hasBlob:os}=k(),as=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function fs(t){return t>=1e3&&t<=1014&&t!==1004&&t!==1005&&t!==1006||t>=3e3&&t<=4999}function be(t){let e=t.length,s=0;for(;s<e;)if((t[s]&128)===0)s++;else if((t[s]&224)===192){if(s+1===e||(t[s+1]&192)!==128||(t[s]&254)===192)return!1;s+=2}else if((t[s]&240)===224){if(s+2>=e||(t[s+1]&192)!==128||(t[s+2]&192)!==128||t[s]===224&&(t[s+1]&224)===128||t[s]===237&&(t[s+1]&224)===160)return!1;s+=3}else if((t[s]&248)===240){if(s+3>=e||(t[s+1]&192)!==128||(t[s+2]&192)!==128||(t[s+3]&192)!==128||t[s]===240&&(t[s+1]&240)===128||t[s]===244&&t[s+1]>143||t[s]>244)return!1;s+=4}else return!1;return!0}function ls(t){return os&&typeof t=="object"&&typeof t.arrayBuffer=="function"&&typeof t.type=="string"&&typeof t.stream=="function"&&(t[Symbol.toStringTag]==="Blob"||t[Symbol.toStringTag]==="File")}ae.exports={isBlob:ls,isValidStatusCode:fs,isValidUTF8:be,tokenChars:as};if(nt)ae.exports.isValidUTF8=function(t){return t.length<24?be(t):nt(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=g("utf-8-validate");ae.exports.isValidUTF8=function(e){return e.length<32?be(e):t(e)}}catch{}});var Ce=E((Lr,ut)=>{"use strict";d();var{Writable:hs}=g("stream"),ot=Z(),{BINARY_TYPES:cs,EMPTY_BUFFER:at,kStatusCode:us,kWebSocket:ds}=k(),{concat:we,toArrayBuffer:_s,unmask:ps}=Y(),{isValidStatusCode:ms,isValidUTF8:ft}=F(),fe=Buffer[Symbol.species],b=0,lt=1,ht=2,ct=3,Oe=4,Te=5,le=6,ke=class extends hs{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||cs[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[ds]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=b}_write(e,s,r){if(this._opcode===8&&this._state==b)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new fe(r.buffer,r.byteOffset+e,r.length-e),new fe(r.buffer,r.byteOffset,e)}let s=Buffer.allocUnsafe(e);do{let r=this._buffers[0],i=s.length-e;e>=r.length?s.set(this._buffers.shift(),i):(s.set(new Uint8Array(r.buffer,r.byteOffset,e),i),this._buffers[0]=new fe(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return s}startLoop(e){this._loop=!0;do switch(this._state){case b:this.getInfo(e);break;case lt:this.getPayloadLength16(e);break;case ht:this.getPayloadLength64(e);break;case ct:this.getMask();break;case Oe:this.getData(e);break;case Te:case le:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let s=this.consume(2);if((s[0]&48)!==0){let i=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(i);return}let r=(s[0]&64)===64;if(r&&!this._extensions[ot.extensionName]){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(this._fin=(s[0]&128)===128,this._opcode=s[0]&15,this._payloadLength=s[1]&127,this._opcode===0){if(r){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(!this._fragmented){let i=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let i=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(i);return}if(r){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(i);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let i=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(i);return}}else{let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(i);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(s[1]&128)===128,this._isServer){if(!this._masked){let i=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(i);return}}else if(this._masked){let i=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(i);return}this._payloadLength===126?this._state=lt:this._payloadLength===127?this._state=ht:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let s=this.consume(8),r=s.readUInt32BE(0);if(r>Math.pow(2,21)-1){let i=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(i);return}this._payloadLength=r*Math.pow(2,32)+s.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let s=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(s);return}this._masked?this._state=ct:this._state=Oe}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=Oe}getData(e){let s=at;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}s=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&ps(s,this._mask)}if(this._opcode>7){this.controlMessage(s,e);return}if(this._compressed){this._state=Te,this.decompress(s,e);return}s.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(s)),this.dataMessage(e)}decompress(e,s){this._extensions[ot.extensionName].decompress(e,this._fin,(i,n)=>{if(i)return s(i);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let o=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");s(o);return}this._fragments.push(n)}this.dataMessage(s),this._state===b&&this.startLoop(s)})}dataMessage(e){if(!this._fin){this._state=b;return}let s=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let i;this._binaryType==="nodebuffer"?i=we(r,s):this._binaryType==="arraybuffer"?i=_s(we(r,s)):this._binaryType==="blob"?i=new Blob(r):i=r,this._allowSynchronousEvents?(this.emit("message",i,!0),this._state=b):(this._state=le,setImmediate(()=>{this.emit("message",i,!0),this._state=b,this.startLoop(e)}))}else{let i=we(r,s);if(!this._skipUTF8Validation&&!ft(i)){let n=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(n);return}this._state===Te||this._allowSynchronousEvents?(this.emit("message",i,!1),this._state=b):(this._state=le,setImmediate(()=>{this.emit("message",i,!1),this._state=b,this.startLoop(e)}))}}controlMessage(e,s){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,at),this.end();else{let r=e.readUInt16BE(0);if(!ms(r)){let n=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");s(n);return}let i=new fe(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!ft(i)){let n=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");s(n);return}this._loop=!1,this.emit("conclude",r,i),this.end()}this._state=b;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=b):(this._state=le,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=b,this.startLoop(s)}))}createError(e,s,r,i,n){this._loop=!1,this._errored=!0;let o=new e(r?`Invalid WebSocket frame: ${s}`:s);return Error.captureStackTrace(o,this.createError),o.code=n,o[us]=i,o}};ut.exports=ke});var Pe=E((Br,pt)=>{"use strict";d();var{Duplex:Pr}=g("stream"),{randomFillSync:gs}=g("crypto"),dt=Z(),{EMPTY_BUFFER:ys,kWebSocket:Ss,NOOP:xs}=k(),{isBlob:q,isValidStatusCode:Es}=F(),{mask:_t,toBuffer:R}=Y(),w=Symbol("kByteLength"),vs=Buffer.alloc(4),he=8*1024,U,G=he,O=0,bs=1,ws=2,Le=class t{constructor(e,s,r){this._extensions=s||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=O,this.onerror=xs,this[Ss]=void 0}static frame(e,s){let r,i=!1,n=2,o=!1;s.mask&&(r=s.maskBuffer||vs,s.generateMask?s.generateMask(r):(G===he&&(U===void 0&&(U=Buffer.alloc(he)),gs(U,0,he),G=0),r[0]=U[G++],r[1]=U[G++],r[2]=U[G++],r[3]=U[G++]),o=(r[0]|r[1]|r[2]|r[3])===0,n=6);let f;typeof e=="string"?(!s.mask||o)&&s[w]!==void 0?f=s[w]:(e=Buffer.from(e),f=e.length):(f=e.length,i=s.mask&&s.readOnly&&!o);let l=f;f>=65536?(n+=8,l=127):f>125&&(n+=2,l=126);let a=Buffer.allocUnsafe(i?f+n:n);return a[0]=s.fin?s.opcode|128:s.opcode,s.rsv1&&(a[0]|=64),a[1]=l,l===126?a.writeUInt16BE(f,2):l===127&&(a[2]=a[3]=0,a.writeUIntBE(f,4,6)),s.mask?(a[1]|=128,a[n-4]=r[0],a[n-3]=r[1],a[n-2]=r[2],a[n-1]=r[3],o?[a,e]:i?(_t(e,r,a,n,f),[a]):(_t(e,r,e,0,f),[a,e])):[a,e]}close(e,s,r,i){let n;if(e===void 0)n=ys;else{if(typeof e!="number"||!Es(e))throw new TypeError("First argument must be a valid error code number");if(s===void 0||!s.length)n=Buffer.allocUnsafe(2),n.writeUInt16BE(e,0);else{let f=Buffer.byteLength(s);if(f>123)throw new RangeError("The message must not be greater than 123 bytes");n=Buffer.allocUnsafe(2+f),n.writeUInt16BE(e,0),typeof s=="string"?n.write(s,2):n.set(s,2)}}let o={[w]:n.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==O?this.enqueue([this.dispatch,n,!1,o,i]):this.sendFrame(t.frame(n,o),i)}ping(e,s,r){let i,n;if(typeof e=="string"?(i=Buffer.byteLength(e),n=!1):q(e)?(i=e.size,n=!1):(e=R(e),i=e.length,n=R.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[w]:i,fin:!0,generateMask:this._generateMask,mask:s,maskBuffer:this._maskBuffer,opcode:9,readOnly:n,rsv1:!1};q(e)?this._state!==O?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):this._state!==O?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(t.frame(e,o),r)}pong(e,s,r){let i,n;if(typeof e=="string"?(i=Buffer.byteLength(e),n=!1):q(e)?(i=e.size,n=!1):(e=R(e),i=e.length,n=R.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[w]:i,fin:!0,generateMask:this._generateMask,mask:s,maskBuffer:this._maskBuffer,opcode:10,readOnly:n,rsv1:!1};q(e)?this._state!==O?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):this._state!==O?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(t.frame(e,o),r)}send(e,s,r){let i=this._extensions[dt.extensionName],n=s.binary?2:1,o=s.compress,f,l;typeof e=="string"?(f=Buffer.byteLength(e),l=!1):q(e)?(f=e.size,l=!1):(e=R(e),f=e.length,l=R.readOnly),this._firstFragment?(this._firstFragment=!1,o&&i&&i.params[i._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(o=f>=i._threshold),this._compress=o):(o=!1,n=0),s.fin&&(this._firstFragment=!0);let a={[w]:f,fin:s.fin,generateMask:this._generateMask,mask:s.mask,maskBuffer:this._maskBuffer,opcode:n,readOnly:l,rsv1:o};q(e)?this._state!==O?this.enqueue([this.getBlobData,e,this._compress,a,r]):this.getBlobData(e,this._compress,a,r):this._state!==O?this.enqueue([this.dispatch,e,this._compress,a,r]):this.dispatch(e,this._compress,a,r)}getBlobData(e,s,r,i){this._bufferedBytes+=r[w],this._state=ws,e.arrayBuffer().then(n=>{if(this._socket.destroyed){let f=new Error("The socket was closed while the blob was being read");process.nextTick(Ne,this,f,i);return}this._bufferedBytes-=r[w];let o=R(n);s?this.dispatch(o,s,r,i):(this._state=O,this.sendFrame(t.frame(o,r),i),this.dequeue())}).catch(n=>{process.nextTick(Os,this,n,i)})}dispatch(e,s,r,i){if(!s){this.sendFrame(t.frame(e,r),i);return}let n=this._extensions[dt.extensionName];this._bufferedBytes+=r[w],this._state=bs,n.compress(e,r.fin,(o,f)=>{if(this._socket.destroyed){let l=new Error("The socket was closed while data was being compressed");Ne(this,l,i);return}this._bufferedBytes-=r[w],this._state=O,r.readOnly=!1,this.sendFrame(t.frame(f,r),i),this.dequeue()})}dequeue(){for(;this._state===O&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][w],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][w],this._queue.push(e)}sendFrame(e,s){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],s),this._socket.uncork()):this._socket.write(e[0],s)}};pt.exports=Le;function Ne(t,e,s){typeof s=="function"&&s(e);for(let r=0;r<t._queue.length;r++){let i=t._queue[r],n=i[i.length-1];typeof n=="function"&&n(e)}}function Os(t,e,s){Ne(t,e,s),t.onerror(e)}});var wt=E((Ur,bt)=>{"use strict";d();var{kForOnEventAttribute:Q,kListener:Be}=k(),mt=Symbol("kCode"),gt=Symbol("kData"),yt=Symbol("kError"),St=Symbol("kMessage"),xt=Symbol("kReason"),$=Symbol("kTarget"),Et=Symbol("kType"),vt=Symbol("kWasClean"),L=class{constructor(e){this[$]=null,this[Et]=e}get target(){return this[$]}get type(){return this[Et]}};Object.defineProperty(L.prototype,"target",{enumerable:!0});Object.defineProperty(L.prototype,"type",{enumerable:!0});var I=class extends L{constructor(e,s={}){super(e),this[mt]=s.code===void 0?0:s.code,this[xt]=s.reason===void 0?"":s.reason,this[vt]=s.wasClean===void 0?!1:s.wasClean}get code(){return this[mt]}get reason(){return this[xt]}get wasClean(){return this[vt]}};Object.defineProperty(I.prototype,"code",{enumerable:!0});Object.defineProperty(I.prototype,"reason",{enumerable:!0});Object.defineProperty(I.prototype,"wasClean",{enumerable:!0});var j=class extends L{constructor(e,s={}){super(e),this[yt]=s.error===void 0?null:s.error,this[St]=s.message===void 0?"":s.message}get error(){return this[yt]}get message(){return this[St]}};Object.defineProperty(j.prototype,"error",{enumerable:!0});Object.defineProperty(j.prototype,"message",{enumerable:!0});var J=class extends L{constructor(e,s={}){super(e),this[gt]=s.data===void 0?null:s.data}get data(){return this[gt]}};Object.defineProperty(J.prototype,"data",{enumerable:!0});var Ts={addEventListener(t,e,s={}){for(let i of this.listeners(t))if(!s[Q]&&i[Be]===e&&!i[Q])return;let r;if(t==="message")r=function(n,o){let f=new J("message",{data:o?n:n.toString()});f[$]=this,ce(e,this,f)};else if(t==="close")r=function(n,o){let f=new I("close",{code:n,reason:o.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});f[$]=this,ce(e,this,f)};else if(t==="error")r=function(n){let o=new j("error",{error:n,message:n.message});o[$]=this,ce(e,this,o)};else if(t==="open")r=function(){let n=new L("open");n[$]=this,ce(e,this,n)};else return;r[Q]=!!s[Q],r[Be]=e,s.once?this.once(t,r):this.on(t,r)},removeEventListener(t,e){for(let s of this.listeners(t))if(s[Be]===e&&!s[Q]){this.removeListener(t,s);break}}};bt.exports={CloseEvent:I,ErrorEvent:j,Event:L,EventTarget:Ts,MessageEvent:J};function ce(t,e,s){typeof t=="object"&&t.handleEvent?t.handleEvent.call(t,s):t.call(e,s)}});var Re=E((Dr,Ot)=>{"use strict";d();var{tokenChars:ee}=F();function T(t,e,s){t[e]===void 0?t[e]=[s]:t[e].push(s)}function ks(t){let e=Object.create(null),s=Object.create(null),r=!1,i=!1,n=!1,o,f,l=-1,a=-1,h=-1,c=0;for(;c<t.length;c++)if(a=t.charCodeAt(c),o===void 0)if(h===-1&&ee[a]===1)l===-1&&(l=c);else if(c!==0&&(a===32||a===9))h===-1&&l!==-1&&(h=c);else if(a===59||a===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${c}`);h===-1&&(h=c);let y=t.slice(l,h);a===44?(T(e,y,s),s=Object.create(null)):o=y,l=h=-1}else throw new SyntaxError(`Unexpected character at index ${c}`);else if(f===void 0)if(h===-1&&ee[a]===1)l===-1&&(l=c);else if(a===32||a===9)h===-1&&l!==-1&&(h=c);else if(a===59||a===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${c}`);h===-1&&(h=c),T(s,t.slice(l,h),!0),a===44&&(T(e,o,s),s=Object.create(null),o=void 0),l=h=-1}else if(a===61&&l!==-1&&h===-1)f=t.slice(l,c),l=h=-1;else throw new SyntaxError(`Unexpected character at index ${c}`);else if(i){if(ee[a]!==1)throw new SyntaxError(`Unexpected character at index ${c}`);l===-1?l=c:r||(r=!0),i=!1}else if(n)if(ee[a]===1)l===-1&&(l=c);else if(a===34&&l!==-1)n=!1,h=c;else if(a===92)i=!0;else throw new SyntaxError(`Unexpected character at index ${c}`);else if(a===34&&t.charCodeAt(c-1)===61)n=!0;else if(h===-1&&ee[a]===1)l===-1&&(l=c);else if(l!==-1&&(a===32||a===9))h===-1&&(h=c);else if(a===59||a===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${c}`);h===-1&&(h=c);let y=t.slice(l,h);r&&(y=y.replace(/\\/g,""),r=!1),T(s,f,y),a===44&&(T(e,o,s),s=Object.create(null),o=void 0),f=void 0,l=h=-1}else throw new SyntaxError(`Unexpected character at index ${c}`);if(l===-1||n||a===32||a===9)throw new SyntaxError("Unexpected end of input");h===-1&&(h=c);let p=t.slice(l,h);return o===void 0?T(e,p,s):(f===void 0?T(s,p,!0):r?T(s,f,p.replace(/\\/g,"")):T(s,f,p),T(e,o,s)),e}function Cs(t){return Object.keys(t).map(e=>{let s=t[e];return Array.isArray(s)||(s=[s]),s.map(r=>[e].concat(Object.keys(r).map(i=>{let n=r[i];return Array.isArray(n)||(n=[n]),n.map(o=>o===!0?i:`${i}=${o}`).join("; ")})).join("; ")).join(", ")}).join(", ")}Ot.exports={format:Cs,parse:ks}});var Ae=E((Fr,Mt)=>{"use strict";d();var Ls=g("events"),Ns=g("https"),Ps=g("http"),Ct=g("net"),Bs=g("tls"),{randomBytes:Rs,createHash:Us}=g("crypto"),{Duplex:Ar,Readable:Wr}=g("stream"),{URL:Ue}=g("url"),B=Z(),Is=Ce(),Ds=Pe(),{isBlob:Ms}=F(),{BINARY_TYPES:Tt,EMPTY_BUFFER:ue,GUID:As,kForOnEventAttribute:Ie,kListener:Ws,kStatusCode:Fs,kWebSocket:S,NOOP:Lt}=k(),{EventTarget:{addEventListener:qs,removeEventListener:Gs}}=wt(),{format:$s,parse:js}=Re(),{toBuffer:Vs}=Y(),zs=30*1e3,Nt=Symbol("kAborted"),De=[8,13],N=["CONNECTING","OPEN","CLOSING","CLOSED"],Hs=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,_=class t extends Ls{constructor(e,s,r){super(),this._binaryType=Tt[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=ue,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=t.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,s===void 0?s=[]:Array.isArray(s)||(typeof s=="object"&&s!==null?(r=s,s=[]):s=[s]),Pt(this,e,s,r)):(this._autoPong=r.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){Tt.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,s,r){let i=new Is({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),n=new Ds(e,this._extensions,r.generateMask);this._receiver=i,this._sender=n,this._socket=e,i[S]=this,n[S]=this,e[S]=this,i.on("conclude",Xs),i.on("drain",Zs),i.on("error",Qs),i.on("message",Js),i.on("ping",er),i.on("pong",tr),n.onerror=sr,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),s.length>0&&e.unshift(s),e.on("close",Ut),e.on("data",_e),e.on("end",It),e.on("error",Dt),this._readyState=t.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[B.extensionName]&&this._extensions[B.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,s){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){v(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===t.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=t.CLOSING,this._sender.close(e,s,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),Rt(this)}}pause(){this.readyState===t.CONNECTING||this.readyState===t.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,s,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=s=void 0):typeof s=="function"&&(r=s,s=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){Me(this,e,r);return}s===void 0&&(s=!this._isServer),this._sender.ping(e||ue,s,r)}pong(e,s,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=s=void 0):typeof s=="function"&&(r=s,s=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){Me(this,e,r);return}s===void 0&&(s=!this._isServer),this._sender.pong(e||ue,s,r)}resume(){this.readyState===t.CONNECTING||this.readyState===t.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,s,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof s=="function"&&(r=s,s={}),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){Me(this,e,r);return}let i={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...s};this._extensions[B.extensionName]||(i.compress=!1),this._sender.send(e||ue,i,r)}terminate(){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){v(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=t.CLOSING,this._socket.destroy())}}};Object.defineProperty(_,"CONNECTING",{enumerable:!0,value:N.indexOf("CONNECTING")});Object.defineProperty(_.prototype,"CONNECTING",{enumerable:!0,value:N.indexOf("CONNECTING")});Object.defineProperty(_,"OPEN",{enumerable:!0,value:N.indexOf("OPEN")});Object.defineProperty(_.prototype,"OPEN",{enumerable:!0,value:N.indexOf("OPEN")});Object.defineProperty(_,"CLOSING",{enumerable:!0,value:N.indexOf("CLOSING")});Object.defineProperty(_.prototype,"CLOSING",{enumerable:!0,value:N.indexOf("CLOSING")});Object.defineProperty(_,"CLOSED",{enumerable:!0,value:N.indexOf("CLOSED")});Object.defineProperty(_.prototype,"CLOSED",{enumerable:!0,value:N.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(t=>{Object.defineProperty(_.prototype,t,{enumerable:!0})});["open","error","close","message"].forEach(t=>{Object.defineProperty(_.prototype,`on${t}`,{enumerable:!0,get(){for(let e of this.listeners(t))if(e[Ie])return e[Ws];return null},set(e){for(let s of this.listeners(t))if(s[Ie]){this.removeListener(t,s);break}typeof e=="function"&&this.addEventListener(t,e,{[Ie]:!0})}})});_.prototype.addEventListener=qs;_.prototype.removeEventListener=Gs;Mt.exports=_;function Pt(t,e,s,r){let i={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:De[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(t._autoPong=i.autoPong,!De.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${De.join(", ")})`);let n;if(e instanceof Ue)n=e;else try{n=new Ue(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}n.protocol==="http:"?n.protocol="ws:":n.protocol==="https:"&&(n.protocol="wss:"),t._url=n.href;let o=n.protocol==="wss:",f=n.protocol==="ws+unix:",l;if(n.protocol!=="ws:"&&!o&&!f?l=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:f&&!n.pathname?l="The URL's pathname is empty":n.hash&&(l="The URL contains a fragment identifier"),l){let u=new SyntaxError(l);if(t._redirects===0)throw u;de(t,u);return}let a=o?443:80,h=Rs(16).toString("base64"),c=o?Ns.request:Ps.request,p=new Set,y;if(i.createConnection=i.createConnection||(o?Ks:Ys),i.defaultPort=i.defaultPort||a,i.port=n.port||a,i.host=n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":h,Connection:"Upgrade",Upgrade:"websocket"},i.path=n.pathname+n.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(y=new B(i.perMessageDeflate!==!0?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=$s({[B.extensionName]:y.offer()})),s.length){for(let u of s){if(typeof u!="string"||!Hs.test(u)||p.has(u))throw new SyntaxError("An invalid or duplicated subprotocol was specified");p.add(u)}i.headers["Sec-WebSocket-Protocol"]=s.join(",")}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(n.username||n.password)&&(i.auth=`${n.username}:${n.password}`),f){let u=i.path.split(":");i.socketPath=u[0],i.path=u[1]}let m;if(i.followRedirects){if(t._redirects===0){t._originalIpc=f,t._originalSecure=o,t._originalHostOrSocketPath=f?i.socketPath:n.host;let u=r&&r.headers;if(r={...r,headers:{}},u)for(let[x,A]of Object.entries(u))r.headers[x.toLowerCase()]=A}else if(t.listenerCount("redirect")===0){let u=f?t._originalIpc?i.socketPath===t._originalHostOrSocketPath:!1:t._originalIpc?!1:n.host===t._originalHostOrSocketPath;(!u||t._originalSecure&&!o)&&(delete i.headers.authorization,delete i.headers.cookie,u||delete i.headers.host,i.auth=void 0)}i.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64")),m=t._req=c(i),t._redirects&&t.emit("redirect",t.url,m)}else m=t._req=c(i);i.timeout&&m.on("timeout",()=>{v(t,m,"Opening handshake has timed out")}),m.on("error",u=>{m===null||m[Nt]||(m=t._req=null,de(t,u))}),m.on("response",u=>{let x=u.headers.location,A=u.statusCode;if(x&&i.followRedirects&&A>=300&&A<400){if(++t._redirects>i.maxRedirects){v(t,m,"Maximum redirects exceeded");return}m.abort();let V;try{V=new Ue(x,e)}catch{let W=new SyntaxError(`Invalid URL: ${x}`);de(t,W);return}Pt(t,V,s,r)}else t.emit("unexpected-response",m,u)||v(t,m,`Unexpected server response: ${u.statusCode}`)}),m.on("upgrade",(u,x,A)=>{if(t.emit("upgrade",u),t.readyState!==_.CONNECTING)return;m=t._req=null;let V=u.headers.upgrade;if(V===void 0||V.toLowerCase()!=="websocket"){v(t,x,"Invalid Upgrade header");return}let Fe=Us("sha1").update(h+As).digest("base64");if(u.headers["sec-websocket-accept"]!==Fe){v(t,x,"Invalid Sec-WebSocket-Accept header");return}let W=u.headers["sec-websocket-protocol"],z;if(W!==void 0?p.size?p.has(W)||(z="Server sent an invalid subprotocol"):z="Server sent a subprotocol but none was requested":p.size&&(z="Server sent no subprotocol"),z){v(t,x,z);return}W&&(t._protocol=W);let qe=u.headers["sec-websocket-extensions"];if(qe!==void 0){if(!y){v(t,x,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let me;try{me=js(qe)}catch{v(t,x,"Invalid Sec-WebSocket-Extensions header");return}let Ge=Object.keys(me);if(Ge.length!==1||Ge[0]!==B.extensionName){v(t,x,"Server indicated an extension that was not requested");return}try{y.accept(me[B.extensionName])}catch{v(t,x,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[B.extensionName]=y}t.setSocket(x,A,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest?i.finishRequest(m,t):m.end()}function de(t,e){t._readyState=_.CLOSING,t._errorEmitted=!0,t.emit("error",e),t.emitClose()}function Ys(t){return t.path=t.socketPath,Ct.connect(t)}function Ks(t){return t.path=void 0,!t.servername&&t.servername!==""&&(t.servername=Ct.isIP(t.host)?"":t.host),Bs.connect(t)}function v(t,e,s){t._readyState=_.CLOSING;let r=new Error(s);Error.captureStackTrace(r,v),e.setHeader?(e[Nt]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(de,t,r)):(e.destroy(r),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function Me(t,e,s){if(e){let r=Ms(e)?e.size:Vs(e).length;t._socket?t._sender._bufferedBytes+=r:t._bufferedAmount+=r}if(s){let r=new Error(`WebSocket is not open: readyState ${t.readyState} (${N[t.readyState]})`);process.nextTick(s,r)}}function Xs(t,e){let s=this[S];s._closeFrameReceived=!0,s._closeMessage=e,s._closeCode=t,s._socket[S]!==void 0&&(s._socket.removeListener("data",_e),process.nextTick(Bt,s._socket),t===1005?s.close():s.close(t,e))}function Zs(){let t=this[S];t.isPaused||t._socket.resume()}function Qs(t){let e=this[S];e._socket[S]!==void 0&&(e._socket.removeListener("data",_e),process.nextTick(Bt,e._socket),e.close(t[Fs])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",t))}function kt(){this[S].emitClose()}function Js(t,e){this[S].emit("message",t,e)}function er(t){let e=this[S];e._autoPong&&e.pong(t,!this._isServer,Lt),e.emit("ping",t)}function tr(t){this[S].emit("pong",t)}function Bt(t){t.resume()}function sr(t){let e=this[S];e.readyState!==_.CLOSED&&(e.readyState===_.OPEN&&(e._readyState=_.CLOSING,Rt(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",t)))}function Rt(t){t._closeTimer=setTimeout(t._socket.destroy.bind(t._socket),zs)}function Ut(){let t=this[S];this.removeListener("close",Ut),this.removeListener("data",_e),this.removeListener("end",It),t._readyState=_.CLOSING;let e;!this._readableState.endEmitted&&!t._closeFrameReceived&&!t._receiver._writableState.errorEmitted&&(e=t._socket.read())!==null&&t._receiver.write(e),t._receiver.end(),this[S]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",kt),t._receiver.on("finish",kt))}function _e(t){this[S]._receiver.write(t)||this.pause()}function It(){let t=this[S];t._readyState=_.CLOSING,t._receiver.end(),this.end()}function Dt(){let t=this[S];this.removeListener("error",Dt),this.on("error",Lt),t&&(t._readyState=_.CLOSING,this.destroy())}});var Wt=E((Gr,At)=>{"use strict";d();var{tokenChars:rr}=F();function ir(t){let e=new Set,s=-1,r=-1,i=0;for(i;i<t.length;i++){let o=t.charCodeAt(i);if(r===-1&&rr[o]===1)s===-1&&(s=i);else if(i!==0&&(o===32||o===9))r===-1&&s!==-1&&(r=i);else if(o===44){if(s===-1)throw new SyntaxError(`Unexpected character at index ${i}`);r===-1&&(r=i);let f=t.slice(s,r);if(e.has(f))throw new SyntaxError(`The "${f}" subprotocol is duplicated`);e.add(f),s=r=-1}else throw new SyntaxError(`Unexpected character at index ${i}`)}if(s===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let n=t.slice(s,i);if(e.has(n))throw new SyntaxError(`The "${n}" subprotocol is duplicated`);return e.add(n),e}At.exports={parse:ir}});var zt=E((Vr,Vt)=>{"use strict";d();var nr=g("events"),pe=g("http"),{Duplex:jr}=g("stream"),{createHash:or}=g("crypto"),Ft=Re(),D=Z(),ar=Wt(),fr=Ae(),{GUID:lr,kWebSocket:hr}=k(),cr=/^[+/0-9A-Za-z]{22}==$/,qt=0,Gt=1,jt=2,We=class extends nr{constructor(e,s){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:fr,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=pe.createServer((r,i)=>{let n=pe.STATUS_CODES[426];i.writeHead(426,{"Content-Length":n.length,"Content-Type":"text/plain"}),i.end(n)}),this._server.listen(e.port,e.host,e.backlog,s)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=ur(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,n,o)=>{this.handleUpgrade(i,n,o,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=qt}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===jt){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(te,this);return}if(e&&this.once("close",e),this._state!==Gt)if(this._state=Gt,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(te,this):process.nextTick(te,this);else{let s=this._server;this._removeListeners(),this._removeListeners=this._server=null,s.close(()=>{te(this)})}}shouldHandle(e){if(this.options.path){let s=e.url.indexOf("?");if((s!==-1?e.url.slice(0,s):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,s,r,i){s.on("error",$t);let n=e.headers["sec-websocket-key"],o=e.headers.upgrade,f=+e.headers["sec-websocket-version"];if(e.method!=="GET"){M(this,e,s,405,"Invalid HTTP method");return}if(o===void 0||o.toLowerCase()!=="websocket"){M(this,e,s,400,"Invalid Upgrade header");return}if(n===void 0||!cr.test(n)){M(this,e,s,400,"Missing or invalid Sec-WebSocket-Key header");return}if(f!==8&&f!==13){M(this,e,s,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(e)){se(s,400);return}let l=e.headers["sec-websocket-protocol"],a=new Set;if(l!==void 0)try{a=ar.parse(l)}catch{M(this,e,s,400,"Invalid Sec-WebSocket-Protocol header");return}let h=e.headers["sec-websocket-extensions"],c={};if(this.options.perMessageDeflate&&h!==void 0){let p=new D(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let y=Ft.parse(h);y[D.extensionName]&&(p.accept(y[D.extensionName]),c[D.extensionName]=p)}catch{M(this,e,s,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let p={origin:e.headers[`${f===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(p,(y,m,u,x)=>{if(!y)return se(s,m||401,u,x);this.completeUpgrade(c,n,a,e,s,r,i)});return}if(!this.options.verifyClient(p))return se(s,401)}this.completeUpgrade(c,n,a,e,s,r,i)}completeUpgrade(e,s,r,i,n,o,f){if(!n.readable||!n.writable)return n.destroy();if(n[hr])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>qt)return se(n,503);let a=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${or("sha1").update(s+lr).digest("base64")}`],h=new this.options.WebSocket(null,void 0,this.options);if(r.size){let c=this.options.handleProtocols?this.options.handleProtocols(r,i):r.values().next().value;c&&(a.push(`Sec-WebSocket-Protocol: ${c}`),h._protocol=c)}if(e[D.extensionName]){let c=e[D.extensionName].params,p=Ft.format({[D.extensionName]:[c]});a.push(`Sec-WebSocket-Extensions: ${p}`),h._extensions=e}this.emit("headers",a,i),n.write(a.concat(`\r
|
|
2
|
-
`).join(`\r
|
|
3
|
-
`)),n.removeListener("error",$t),h.setSocket(n,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(h),h.on("close",()=>{this.clients.delete(h),this._shouldEmitClose&&!this.clients.size&&process.nextTick(te,this)})),f(h,i)}};Vt.exports=We;function ur(t,e){for(let s of Object.keys(e))t.on(s,e[s]);return function(){for(let r of Object.keys(e))t.removeListener(r,e[r])}}function te(t){t._state=jt,t.emit("close")}function $t(){this.destroy()}function se(t,e,s,r){s=s||pe.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(s),...r},t.once("finish",t.destroy),t.end(`HTTP/1.1 ${e} ${pe.STATUS_CODES[e]}\r
|
|
4
|
-
`+Object.keys(r).map(i=>`${i}: ${r[i]}`).join(`\r
|
|
5
|
-
`)+`\r
|
|
6
|
-
\r
|
|
7
|
-
`+s)}function M(t,e,s,r,i){if(t.listenerCount("wsClientError")){let n=new Error(i);Error.captureStackTrace(n,M),t.emit("wsClientError",n,s,e)}else se(s,r,i)}});d();var dr=H(ze(),1),_r=H(Ce(),1),pr=H(Pe(),1),Ht=H(Ae(),1),mr=H(zt(),1);var Hr=Ht.default;export{mr as a,Hr as b};
|
package/dist/chunk-C2IK2HY3.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{b as f,e as c}from"./chunk-7ESSIN27.js";import{d as s}from"./chunk-M56NDIMD.js";import{$ as l,Ta as i,qa as m,wa as p}from"./chunk-N5PQPIBF.js";import{d as o}from"./chunk-IU2ZQ6TE.js";import{g as a}from"./chunk-VPRTJUIN.js";a();async function v(t,r){let n=t?.path??"",e=o(r,n);if(!await i(e))throw new s(`
|
|
2
|
-
The extension is not available for ${t?.value}`);return e}async function P({name:t,app:r}){let n=l(t),e=o(r.directory,c.extensions.directoryName,n);if(await i(e))throw new s(`
|
|
3
|
-
A directory with this name (${n}) already exists.
|
|
4
|
-
Choose a new name for your extension.`);return await p(e),await m(o(e,f.lockFile)),e}async function b({localApp:t,developerPlatformClient:r,apiKey:n,organizationId:e}){let{dashboardManagedExtensionRegistrations:h}=(await r.appExtensionRegistrations({id:n,apiKey:n,organizationId:e})).app;return h.length>0||t.allExtensions.filter(x=>x.isThemeExtension).length>0||t.allExtensions.length>0}export{v as a,P as b,b as c};
|
package/dist/chunk-CBXSPL4W.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as k}from"./chunk-EKXY5COY.js";import{ua as b,va as c,xa as s}from"./chunk-XONFGLJQ.js";import{F as _}from"./chunk-6G6TMKXF.js";import{d as N}from"./chunk-M56NDIMD.js";import{Qb as E,T as D}from"./chunk-N5PQPIBF.js";import{g as l}from"./chunk-VPRTJUIN.js";l();var M=/gid:\/\/shopify\/\w*\/(\d+)/,T="development",W="live",Y="unpublished";function Z(e){return e.role===T}async function J(e){let i=await D("creative");return _({message:e,defaultValue:i})}function F(e){return`gid://shopify/OnlineStoreTheme/${e}`}function h(e){let i=M.exec(e);if(i&&i[1]!==void 0)return parseInt(i[1],10);throw new Error(`Invalid GID: ${e}`)}l();l();var S;(function(e){e.Delete="DELETE",e.Upload="UPLOAD"})(S||(S={}));l();function y(e){if(!e)return;e.processing??(e.processing=!1),e.createdAtRuntime??(e.createdAtRuntime=!1);let{id:i,name:a,role:n,processing:d,createdAtRuntime:t}=e;return{id:i,name:a,processing:d,createdAtRuntime:t,role:n==="main"?"live":n}}function te(e){if(!e)return;let{key:i,checksum:a,attachment:n,value:d}=e,t={size:(d||n||"").length,mtime:Date.now()};return{key:i,checksum:a,attachment:n,value:d,stats:t}}l();var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var w={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeId"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var x={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDuplicate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDuplicate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newTheme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themePublish"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themePublish"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"source"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"URL"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"role"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ThemeRole"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"source"},value:{kind:"Variable",name:{kind:"Name",value:"source"}}},{kind:"Argument",name:{kind:"Name",value:"role"},value:{kind:"Variable",name:{kind:"Name",value:"role"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var A={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileBodies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filenames"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"filenames"},value:{kind:"Variable",name:{kind:"Name",value:"filenames"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"body"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyBase64"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentBase64"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyUrl"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileChecksums"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var C={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesUpsert"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFilesUpsertFileInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesUpsert"},arguments:[{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}},{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upsertedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}},{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitionsByOwnerType"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getTheme"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"findDevelopmentThemeByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"2"}},{kind:"Argument",name:{kind:"Name",value:"names"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"name"}}]}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"DEVELOPMENT"}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OnlineStorePasswordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStore"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"passwordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var $="https://cdn.shopify.com/static/online-store/theme-skeleton.zip",p={useNetworkLevelRetry:!0,useAbortSignal:!1,maxRetryTimeMs:90*1e3,recordCommandRetries:!0};async function an(e,i){let a=F(e);s("theme-api:fetch-theme");try{let{theme:n}=await k({query:q,session:i,variables:{id:a},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(n)return y({id:h(n.id),processing:n.processing,role:n.role.toLowerCase(),name:n.name})}catch(n){c(n),E(`Error fetching theme with ID: ${e}`)}}async function tn(e){let i=[],a=null;for(s("theme-api:fetch-themes");;){let n=await k({query:L,session:e,variables:{after:a},responseOptions:{handleErrors:!1},preferredBehaviour:p});n.themes||r("Failed to fetch themes");let{nodes:d,pageInfo:t}=n.themes;if(d.forEach(m=>{let o=y({id:h(m.id),processing:m.processing,role:m.role.toLowerCase(),name:m.name});o&&i.push(o)}),!t.hasNextPage)return i;a=t.endCursor}}async function dn(e,i){s("theme-api:find-development-theme-by-name");let{themes:a}=await k({query:R,session:i,variables:{name:e},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(a||r("Failed to fetch themes"),a.nodes.length>1)throw c(new N(`More than one development theme is named "${e}"`));if(a.nodes.length===1){let{id:n,processing:d,role:t,name:m}=a.nodes[0];return y({id:h(n),processing:d,role:t.toLowerCase(),name:m})}}async function ln(e,i){let a=e.src??$;s("theme-api:create-theme");let{themeCreate:n}=await k({query:I,session:i,variables:{name:e.name??"",source:a,role:(e.role??T).toUpperCase()},responseOptions:{handleErrors:!1},preferredBehaviour:p});n||r("Failed to create theme");let{theme:d,userErrors:t}=n;if(t.length){let m=n.userErrors.map(o=>o.message).join(", ");throw c(new N(m))}return d||r("Failed to create theme"),y({id:h(d.id),name:d.name,role:d.role.toLowerCase()})}async function mn(e,i,a){let n=[],d=null;for(s("theme-api:fetch-assets");;){let t=await k({query:A,session:a,variables:{id:g(e),filenames:i,after:d},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(!t.theme?.files?.nodes||!t.theme?.files?.pageInfo){let u=t.theme?.files?.userErrors.map(f=>f.filename).join(", ");r(`Error fetching assets: ${u}`)}let{nodes:m,pageInfo:o}=t.theme.files;if(n.push(...await Promise.all(m.map(async u=>{let{attachment:f,value:v}=await X(u.body);return{attachment:f,key:u.filename,checksum:u.checksumMd5,value:v}}))),!o.hasNextPage)return n;d=o.endCursor}}async function on(e,i,a){let d=[];s("theme-api:delete-assets");for(let t=0;t<i.length;t+=50){let m=i.slice(t,t+50),{themeFilesDelete:o}=await k({query:P,session:a,variables:{themeId:F(e),files:m},preferredBehaviour:p});o||r("Failed to delete theme assets");let{deletedThemeFiles:u,userErrors:f}=o;u&&u.forEach(v=>{d.push({key:v.filename,success:!0,operation:S.Delete})}),f.length>0&&f.forEach(v=>{v.filename?(c(`Asset deletion failed for ${v.filename}: ${v.message}`),d.push({key:v.filename,success:!1,operation:S.Delete,errors:{asset:[v.message]}})):r(`Failed to delete theme assets: ${v.message}`)})}return d}async function rn(e,i,a){let n=[];s("theme-api:bulk-upload-assets");for(let d=0;d<i.length;d+=50){let t=i.slice(d,d+50),m=z(t);b("theme-api:upload-files");let o=await H(e,m,a);b("theme-api:upload-files"),n.push(...j(o))}return n}function z(e){return e.map(i=>i.attachment?{filename:i.key,body:{type:"BASE64",value:i.attachment}}:{filename:i.key,body:{type:"TEXT",value:i.value??""}})}async function H(e,i,a){return k({query:C,session:a,variables:{themeId:g(e),files:i},preferredBehaviour:p})}function j(e){let{themeFilesUpsert:i}=e;i||r("Failed to upload theme files");let{upsertedThemeFiles:a,userErrors:n}=i,d=[];return a?.forEach(t=>{d.push({key:t.filename,success:!0,operation:S.Upload})}),n.forEach(t=>{t.filename||r(`Error uploading theme files: ${t.message}`),c(`Asset upload failed for ${t.filename}: ${t.message}`),d.push({key:t.filename,success:!1,operation:S.Upload,errors:{asset:[t.message]}})}),d}async function sn(e,i){let a=[],n=null;for(s("theme-api:fetch-checksums");;){let d=await k({query:B,session:i,variables:{id:g(e),after:n},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(!d?.theme?.files?.nodes||!d?.theme?.files?.pageInfo){let o=d.theme?.files?.userErrors.map(u=>u.filename).join(", ");throw c(new N(`Failed to fetch checksums for: ${o}`))}let{nodes:t,pageInfo:m}=d.theme.files;if(a.push(...t.map(o=>({key:o.filename,checksum:o.checksumMd5}))),!m.hasNextPage)return a;n=m.endCursor}}async function kn(e,i,a){let n=i.name,d={};n&&(d.name=n),s("theme-api:update-theme");let{themeUpdate:t}=await k({query:V,session:a,variables:{id:F(e),input:d},preferredBehaviour:p});t||r("Failed to update theme");let{theme:m,userErrors:o}=t;if(o.length){let u=t.userErrors.map(f=>f.message).join(", ");throw c(new N(u))}return m||r("Failed to update theme"),y({id:h(m.id),name:m.name,role:m.role.toLowerCase()})}async function un(e,i){s("theme-api:publish-theme");let{themePublish:a}=await k({query:O,session:i,variables:{id:F(e)},preferredBehaviour:p});a||r("Failed to update theme");let{theme:n,userErrors:d}=a;if(d.length){let t=a.userErrors.map(m=>m.message).join(", ");throw c(new N(t))}return n||r("Failed to update theme"),y({id:h(n.id),name:n.name,role:n.role.toLowerCase()})}async function cn(e,i){s("theme-api:delete-theme");let{themeDelete:a}=await k({query:w,session:i,variables:{id:F(e)},preferredBehaviour:p});a||r("Failed to update theme");let{deletedThemeId:n,userErrors:d}=a;if(d.length){let t=a.userErrors.map(m=>m.message).join(", ");throw c(new N(t))}return n||r("Failed to update theme"),!0}async function pn(e,i,a){let n;s("theme-api:duplicate-theme");let{themeDuplicate:d}=await k({query:x,session:a,variables:{id:F(e),name:i},preferredBehaviour:p,responseOptions:{onResponse:u=>{n=u.headers.get("x-request-id")??void 0}}});if(!d)return c("Failed to duplicate theme"),{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:n};let{newTheme:t,userErrors:m}=d;return m.length>0?{theme:void 0,userErrors:m,requestId:n}:t?{theme:y({id:h(t.id),name:t.name,role:t.role.toLowerCase()}),userErrors:[],requestId:n}:{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:n}}async function vn(e,i){s("theme-api:fetch-metafield-definitions");let{metafieldDefinitions:a}=await k({query:U,session:i,variables:{ownerType:e}});return a.nodes.map(n=>({key:n.key,namespace:n.namespace,name:n.name,description:n.description,type:{name:n.type.name,category:n.type.category}}))}async function Nn(e){s("theme-api:check-password-protection");let{onlineStore:i}=await k({query:G,session:e});i||r("Unable to get details about the storefront's password protection");let{passwordProtection:a}=i;return a.enabled}function r(e){throw c(new N(e))}function g(e){return`gid://shopify/OnlineStoreTheme/${e}`}async function X(e){switch(e.__typename){case"OnlineStoreThemeFileBodyText":return{value:e.content};case"OnlineStoreThemeFileBodyBase64":return{attachment:e.contentBase64};case"OnlineStoreThemeFileBodyUrl":try{let a=await(await fetch(e.url)).arrayBuffer();return{attachment:Buffer.from(a).toString("base64")}}catch{throw c(new N(`Error downloading content from URL: ${e.url}`))}}}export{te as a,T as b,W as c,Y as d,Z as e,J as f,an as g,tn as h,dn as i,ln as j,mn as k,on as l,rn as m,sn as n,kn as o,un as p,cn as q,pn as r,vn as s,Nn as t};
|
package/dist/chunk-CEIQFLCN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as n,c as s,d as h}from"./chunk-XITQULK4.js";import{a as r}from"./chunk-SXTMSGUE.js";import{d as m}from"./chunk-M56NDIMD.js";import{g as o}from"./chunk-VPRTJUIN.js";o();var p=t=>`Development theme #${t} could not be found. Please create a new development theme.`,d="No development theme ID has been set. Please create a development theme first.",i=class extends r{constructor(e){super(e);this.context="Development";this.themeId=n()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?p(this.themeId):d);return e}setTheme(e){s(e)}removeTheme(){h()}};export{i as a};
|
package/dist/chunk-CERXUPGC.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{a as Eu,c as p,d as ne,e as pu,g as n}from"./chunk-VPRTJUIN.js";var Lu=p((Nr,uu)=>{n();uu.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&uu.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&uu.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Wu=p((_r,$)=>{n();var a=global.process,S=function(u){return u&&typeof u=="object"&&typeof u.removeListener=="function"&&typeof u.emit=="function"&&typeof u.reallyExit=="function"&&typeof u.listeners=="function"&&typeof u.kill=="function"&&typeof u.pid=="number"&&typeof u.on=="function"};S(a)?(ju=Eu("assert"),I=Lu(),Mu=/^win/i.test(a.platform),Y=Eu("events"),typeof Y!="function"&&(Y=Y.EventEmitter),a.__signal_exit_emitter__?d=a.__signal_exit_emitter__:(d=a.__signal_exit_emitter__=new Y,d.count=0,d.emitted={}),d.infinite||(d.setMaxListeners(1/0),d.infinite=!0),$.exports=function(u,D){if(!S(global.process))return function(){};ju.equal(typeof u,"function","a callback must be provided for exit handler"),_===!1&&du();var e="exit";D&&D.alwaysLast&&(e="afterexit");var t=function(){d.removeListener(e,u),d.listeners("exit").length===0&&d.listeners("afterexit").length===0&&Du()};return d.on(e,u),t},Du=function(){!_||!S(global.process)||(_=!1,I.forEach(function(D){try{a.removeListener(D,eu[D])}catch{}}),a.emit=tu,a.reallyExit=Bu,d.count-=1)},$.exports.unload=Du,v=function(D,e,t){d.emitted[D]||(d.emitted[D]=!0,d.emit(D,e,t))},eu={},I.forEach(function(u){eu[u]=function(){if(S(global.process)){var e=a.listeners(u);e.length===d.count&&(Du(),v("exit",null,u),v("afterexit",null,u),Mu&&u==="SIGHUP"&&(u="SIGINT"),a.kill(a.pid,u))}}}),$.exports.signals=function(){return I},_=!1,du=function(){_||!S(global.process)||(_=!0,d.count+=1,I=I.filter(function(D){try{return a.on(D,eu[D]),!0}catch{return!1}}),a.emit=Gu,a.reallyExit=ku)},$.exports.load=du,Bu=a.reallyExit,ku=function(D){S(global.process)&&(a.exitCode=D||0,v("exit",a.exitCode,null),v("afterexit",a.exitCode,null),Bu.call(a,a.exitCode))},tu=a.emit,Gu=function(D,e){if(D==="exit"&&S(global.process)){e!==void 0&&(a.exitCode=e);var t=tu.apply(this,arguments);return v("exit",a.exitCode,null),v("afterexit",a.exitCode,null),t}else return tu.apply(this,arguments)}):$.exports=function(){return function(){}};var ju,I,Mu,Y,d,Du,v,eu,_,du,Bu,ku,tu,Gu});var qu=p((Zr,Yu)=>{n();Yu.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var He=p((Lo,cD)=>{n();function Ke(u){var D=typeof u;return u!=null&&(D=="object"||D=="function")}cD.exports=Ke});var TD=p((fn,xD)=>{n();var Rt=typeof global=="object"&&global&&global.Object===Object&&global;xD.exports=Rt});var wD=p((pn,yD)=>{n();var Nt=TD(),It=typeof self=="object"&&self&&self.Object===Object&&self,_t=Nt||It||Function("return this")();yD.exports=_t});var vu=p((Bn,SD)=>{n();var $t=wD(),Lt=$t.Symbol;SD.exports=Lt});var ND=p((gn,RD)=>{n();var vD=vu(),OD=Object.prototype,jt=OD.hasOwnProperty,Mt=OD.toString,Z=vD?vD.toStringTag:void 0;function kt(u){var D=jt.call(u,Z),e=u[Z];try{u[Z]=void 0;var t=!0}catch{}var r=Mt.call(u);return t&&(D?u[Z]=e:delete u[Z]),r}RD.exports=kt});var _D=p((bn,ID)=>{n();var Gt=Object.prototype,Wt=Gt.toString;function Pt(u){return Wt.call(u)}ID.exports=Pt});var MD=p((xn,jD)=>{n();var $D=vu(),Ut=ND(),Vt=_D(),Yt="[object Null]",qt="[object Undefined]",LD=$D?$D.toStringTag:void 0;function Kt(u){return u==null?u===void 0?qt:Yt:LD&&LD in Object(u)?Ut(u):Vt(u)}jD.exports=Kt});var GD=p((yn,kD)=>{n();function Ht(u){return u!=null&&typeof u=="object"}kD.exports=Ht});var Zt=p((Sn,WD)=>{n();var zt=MD(),Jt=GD(),Xt="[object Symbol]";function Qt(u){return typeof u=="symbol"||Jt(u)&&zt(u)==Xt}WD.exports=Qt});var UD=p((On,Ou)=>{"use strict";n();var PD=(u,D)=>{for(let e of Reflect.ownKeys(D))Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(D,e));return u};Ou.exports=PD;Ou.exports.default=PD});var YD=p((Nn,Cu)=>{"use strict";n();var ur=UD(),cu=new WeakMap,VD=(u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,t=0,r=u.displayName||u.name||"<anonymous>",o=function(...F){if(cu.set(o,++t),t===1)e=u.apply(this,F),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e};return ur(o,u),cu.set(o,t),o};Cu.exports=VD;Cu.exports.default=VD;Cu.exports.callCount=u=>{if(!cu.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return cu.get(u)}});var XD=p((Xn,fr)=>{fr.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var Er=p((Qn,_u)=>{"use strict";n();var QD=XD();_u.exports=QD;_u.exports.default=QD});var ue=p((uF,ZD)=>{"use strict";n();var pr=/[|\\{}()[\]^$+*?.-]/g;ZD.exports=u=>{if(typeof u!="string")throw new TypeError("Expected a string");return u.replace(pr,"\\$&")}});var br=p((eF,te)=>{"use strict";n();var dr=ue(),Br=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",ee=[].concat(Eu("module").builtinModules,"bootstrap_node","node").map(u=>new RegExp(`(?:\\((?:node:)?${u}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${u}(?:\\.js)?:\\d+:\\d+$)`));ee.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var $u=class u{constructor(D){D={ignoredPackages:[],...D},"internals"in D||(D.internals=u.nodeInternals()),"cwd"in D||(D.cwd=Br),this._cwd=D.cwd.replace(/\\/g,"/"),this._internals=[].concat(D.internals,hr(D.ignoredPackages)),this._wrapCallSite=D.wrapCallSite||!1}static nodeInternals(){return[...ee]}clean(D,e=0){e=" ".repeat(e),Array.isArray(D)||(D=D.split(`
|
|
2
|
-
`)),!/^\s*at /.test(D[0])&&/^\s*at /.test(D[1])&&(D=D.slice(1));let t=!1,r=null,o=[];return D.forEach(F=>{if(F=F.replace(/\\/g,"/"),this._internals.some(l=>l.test(F)))return;let i=/^\s*at /.test(F);t?F=F.trimEnd().replace(/^(\s+)at /,"$1"):(F=F.trim(),i&&(F=F.slice(3))),F=F.replace(`${this._cwd}/`,""),F&&(i?(r&&(o.push(r),r=null),o.push(F)):(t=!0,r=F))}),o.map(F=>`${e}${F}
|
|
3
|
-
`).join("")}captureString(D,e=this.captureString){typeof D=="function"&&(e=D,D=1/0);let{stackTraceLimit:t}=Error;D&&(Error.stackTraceLimit=D);let r={};Error.captureStackTrace(r,e);let{stack:o}=r;return Error.stackTraceLimit=t,this.clean(o)}capture(D,e=this.capture){typeof D=="function"&&(e=D,D=1/0);let{prepareStackTrace:t,stackTraceLimit:r}=Error;Error.prepareStackTrace=(i,l)=>this._wrapCallSite?l.map(this._wrapCallSite):l,D&&(Error.stackTraceLimit=D);let o={};Error.captureStackTrace(o,e);let{stack:F}=o;return Object.assign(Error,{prepareStackTrace:t,stackTraceLimit:r}),F}at(D=this.at){let[e]=this.capture(1,D);if(!e)return{};let t={line:e.getLineNumber(),column:e.getColumnNumber()};De(t,e.getFileName(),this._cwd),e.isConstructor()&&Object.defineProperty(t,"constructor",{value:!0,configurable:!0}),e.isEval()&&(t.evalOrigin=e.getEvalOrigin()),e.isNative()&&(t.native=!0);let r;try{r=e.getTypeName()}catch{}r&&r!=="Object"&&r!=="[object Object]"&&(t.type=r);let o=e.getFunctionName();o&&(t.function=o);let F=e.getMethodName();return F&&o!==F&&(t.method=F),t}parseLine(D){let e=D&&D.match(gr);if(!e)return null;let t=e[1]==="new",r=e[2],o=e[3],F=e[4],i=Number(e[5]),l=Number(e[6]),E=e[7],N=e[8],g=e[9],A=e[10]==="native",h=e[11]===")",m,B={};if(N&&(B.line=Number(N)),g&&(B.column=Number(g)),h&&E){let y=0;for(let w=E.length-1;w>0;w--)if(E.charAt(w)===")")y++;else if(E.charAt(w)==="("&&E.charAt(w-1)===" "&&(y--,y===-1&&E.charAt(w-1)===" ")){let oe=E.slice(0,w-1);E=E.slice(w+1),r+=` (${oe}`;break}}if(r){let y=r.match(mr);y&&(r=y[1],m=y[2])}return De(B,E,this._cwd),t&&Object.defineProperty(B,"constructor",{value:!0,configurable:!0}),o&&(B.evalOrigin=o,B.evalLine=i,B.evalColumn=l,B.evalFile=F&&F.replace(/\\/g,"/")),A&&(B.native=!0),r&&(B.function=r),m&&r!==m&&(B.method=m),B}};function De(u,D,e){D&&(D=D.replace(/\\/g,"/"),D.startsWith(`${e}/`)&&(D=D.slice(e.length+1)),u.file=D)}function hr(u){if(u.length===0)return[];let D=u.map(e=>dr(e));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${D.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var gr=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),mr=/^(.*?) \[as (.*?)\]$/;te.exports=$u});n();n();function U({onlyFirst:u=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}var Fe=U();function V(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Fe,"")}n();n();n();n();var ru=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ou=[12288,12288,65281,65376,65504,65510],hu=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],gu=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],q=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];n();var nu=(u,D)=>{let e=0,t=Math.floor(u.length/2)-1;for(;e<=t;){let r=Math.floor((e+t)/2),o=r*2;if(D<u[o])t=r-1;else if(D>u[o+1])e=r+1;else return!0}return!1};var ie=ru[0],se=ru.at(-1),le=ou[0],ae=ou.at(-1),Pr=hu[0],Ur=hu.at(-1),Vr=gu[0],Yr=gu.at(-1),ce=q[0],Ce=q.at(-1),Pu=19968,[fe,Ee]=pe(q);function pe(u){let D=u[0],e=u[1];for(let t=0;t<u.length;t+=2){let r=u[t],o=u[t+1];if(Pu>=r&&Pu<=o)return[r,o];o-r>e-D&&(D=r,e=o)}return[D,e]}var Uu=u=>u<ie||u>se?!1:nu(ru,u),K=u=>u<le||u>ae?!1:nu(ou,u);var H=u=>u>=fe&&u<=Ee?!0:u<ce||u>Ce?!1:nu(q,u);function de(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function Vu(u,{ambiguousAsWide:D=!1}={}){return de(u),K(u)||H(u)||D&&Uu(u)?2:1}var Ku=pu(qu(),1),Be=new Intl.Segmenter,he=/^\p{Default_Ignorable_Code_Point}$/u;function O(u,D={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:t=!1}=D;if(t||(u=V(u)),u.length===0)return 0;let r=0,o={ambiguousAsWide:!e};for(let{segment:F}of Be.segment(u)){let i=F.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!he.test(F)){if((0,Ku.default)().test(F)){r+=2;continue}r+=Vu(i,o)}}return r}n();n();var Hu=(u=0)=>D=>`\x1B[${D+u}m`,zu=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,Ju=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,c={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},oo=Object.keys(c.modifier),ge=Object.keys(c.color),me=Object.keys(c.bgColor),no=[...ge,...me];function be(){let u=new Map;for(let[D,e]of Object.entries(c)){for(let[t,r]of Object.entries(e))c[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=c[t],u.set(r[0],r[1]);Object.defineProperty(c,D,{value:e,enumerable:!1})}return Object.defineProperty(c,"codes",{value:u,enumerable:!1}),c.color.close="\x1B[39m",c.bgColor.close="\x1B[49m",c.color.ansi=Hu(),c.color.ansi256=zu(),c.color.ansi16m=Ju(),c.bgColor.ansi=Hu(10),c.bgColor.ansi256=zu(10),c.bgColor.ansi16m=Ju(10),Object.defineProperties(c,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));let r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>c.rgbToAnsi256(...c.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;let i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(e,t,r)*2;if(o===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>c.ansi256ToAnsi(c.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>c.ansi256ToAnsi(c.hexToAnsi256(D)),enumerable:!1}}),c}var Ae=be(),x=Ae;var iu=new Set(["\x1B","\x9B"]),xe=39,bu="\x07",Zu="[",Te="]",uD="m",Fu=`${Te}8;;`,Xu=u=>`${iu.values().next().value}${Zu}${u}${uD}`,Qu=u=>`${iu.values().next().value}${Fu}${u}${bu}`,ye=u=>u.split(" ").map(D=>O(D)),mu=(u,D,e)=>{let t=[...D],r=!1,o=!1,F=O(V(u.at(-1)));for(let[i,l]of t.entries()){let E=O(l);if(F+E<=e?u[u.length-1]+=l:(u.push(l),F=0),iu.has(l)&&(r=!0,o=t.slice(i+1,i+1+Fu.length).join("")===Fu),r){o?l===bu&&(r=!1,o=!1):l===uD&&(r=!1);continue}F+=E,F===e&&i<t.length-1&&(u.push(""),F=0)}!F&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},we=u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(O(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},Se=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o,F=ye(u),i=[""];for(let[g,A]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let h=O(i.at(-1));if(g!==0&&(h>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),h=0),(h>0||e.trim===!1)&&(i[i.length-1]+=" ",h++)),e.hard&&F[g]>D){let m=D-h,B=1+Math.floor((F[g]-m-1)/D);Math.floor((F[g]-1)/D)<B&&i.push(""),mu(i,A,D);continue}if(h+F[g]>D&&h>0&&F[g]>0){if(e.wordWrap===!1&&h<D){mu(i,A,D);continue}i.push("")}if(h+F[g]>D&&e.wordWrap===!1){mu(i,A,D);continue}i[i.length-1]+=A}e.trim!==!1&&(i=i.map(g=>we(g)));let l=i.join(`
|
|
4
|
-
`),E=[...l],N=0;for(let[g,A]of E.entries()){if(t+=A,iu.has(A)){let{groups:m}=new RegExp(`(?:\\${Zu}(?<code>\\d+)m|\\${Fu}(?<uri>.*)${bu})`).exec(l.slice(N))||{groups:{}};if(m.code!==void 0){let B=Number.parseFloat(m.code);r=B===xe?void 0:B}else m.uri!==void 0&&(o=m.uri.length===0?void 0:m.uri)}let h=x.codes.get(Number(r));E[g+1]===`
|
|
5
|
-
`?(o&&(t+=Qu("")),r&&h&&(t+=Xu(h))):A===`
|
|
6
|
-
`&&(r&&h&&(t+=Xu(r)),o&&(t+=Qu(o))),N+=A.length}return t};function ve(u,D,e){return String(u).normalize().replaceAll(`\r
|
|
7
|
-
`,`
|
|
8
|
-
`).split(`
|
|
9
|
-
`).map(t=>Se(t,D,e)).join(`
|
|
10
|
-
`)}n();var Oe=U();function Re(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(Oe,"")}n();n();var DD=(u=0)=>D=>`\x1B[${D+u}m`,eD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,tD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,C={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Bo=Object.keys(C.modifier),Ne=Object.keys(C.color),Ie=Object.keys(C.bgColor),ho=[...Ne,...Ie];function _e(){let u=new Map;for(let[D,e]of Object.entries(C)){for(let[t,r]of Object.entries(e))C[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=C[t],u.set(r[0],r[1]);Object.defineProperty(C,D,{value:e,enumerable:!1})}return Object.defineProperty(C,"codes",{value:u,enumerable:!1}),C.color.close="\x1B[39m",C.bgColor.close="\x1B[49m",C.color.ansi=DD(),C.color.ansi256=eD(),C.color.ansi16m=tD(),C.bgColor.ansi=DD(10),C.bgColor.ansi256=eD(10),C.bgColor.ansi16m=tD(10),Object.defineProperties(C,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));let r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>C.rgbToAnsi256(...C.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;let i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(e,t,r)*2;if(o===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>C.ansi256ToAnsi(C.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>C.ansi256ToAnsi(C.hexToAnsi256(D)),enumerable:!1}}),C}var $e=_e(),T=$e;n();import Au from"node:process";import Le from"node:os";import rD from"node:tty";function b(u,D=globalThis.Deno?globalThis.Deno.args:Au.argv){let e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}var{env:f}=Au,su;b("no-color")||b("no-colors")||b("color=false")||b("color=never")?su=0:(b("color")||b("colors")||b("color=true")||b("color=always"))&&(su=1);function je(){if("FORCE_COLOR"in f)return f.FORCE_COLOR==="true"?1:f.FORCE_COLOR==="false"?0:f.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(f.FORCE_COLOR,10),3)}function Me(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function ke(u,{streamIsTTY:D,sniffFlags:e=!0}={}){let t=je();t!==void 0&&(su=t);let r=e?su:t;if(r===0)return 0;if(e){if(b("color=16m")||b("color=full")||b("color=truecolor"))return 3;if(b("color=256"))return 2}if("TF_BUILD"in f&&"AGENT_NAME"in f)return 1;if(u&&!D&&r===void 0)return 0;let o=r||0;if(f.TERM==="dumb")return o;if(Au.platform==="win32"){let F=Le.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in f)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(F=>F in f)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(F=>F in f)||f.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in f)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(f.TEAMCITY_VERSION)?1:0;if(f.COLORTERM==="truecolor"||f.TERM==="xterm-kitty"||f.TERM==="xterm-ghostty"||f.TERM==="wezterm")return 3;if("TERM_PROGRAM"in f){let F=Number.parseInt((f.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(f.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(f.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(f.TERM)||"COLORTERM"in f?1:o}function oD(u,D={}){let e=ke(u,{streamIsTTY:u&&u.isTTY,...D});return Me(e)}var Ge={stdout:oD({isTTY:rD.isatty(1)}),stderr:oD({isTTY:rD.isatty(2)})},nD=Ge;n();function FD(u,D,e){let t=u.indexOf(D);if(t===-1)return u;let r=D.length,o=0,F="";do F+=u.slice(o,t)+D+e,o=t+r,t=u.indexOf(D,o);while(t!==-1);return F+=u.slice(o),F}function iD(u,D,e,t){let r=0,o="";do{let F=u[t-1]==="\r";o+=u.slice(r,F?t-1:t)+D+(F?`\r
|
|
11
|
-
`:`
|
|
12
|
-
`)+e,r=t+1,t=u.indexOf(`
|
|
13
|
-
`,r)}while(t!==-1);return o+=u.slice(r),o}var{stdout:sD,stderr:lD}=nD,xu=Symbol("GENERATOR"),L=Symbol("STYLER"),z=Symbol("IS_EMPTY"),aD=["ansi","ansi","ansi256","ansi16m"],j=Object.create(null),We=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let e=sD?sD.level:0;u.level=D.level===void 0?e:D.level};var Pe=u=>{let D=(...e)=>e.join(" ");return We(D,u),Object.setPrototypeOf(D,J.prototype),D};function J(u){return Pe(u)}Object.setPrototypeOf(J.prototype,Function.prototype);for(let[u,D]of Object.entries(T))j[u]={get(){let e=lu(this,yu(D.open,D.close,this[L]),this[z]);return Object.defineProperty(this,u,{value:e}),e}};j.visible={get(){let u=lu(this,this[L],!0);return Object.defineProperty(this,"visible",{value:u}),u}};var Tu=(u,D,e,...t)=>u==="rgb"?D==="ansi16m"?T[e].ansi16m(...t):D==="ansi256"?T[e].ansi256(T.rgbToAnsi256(...t)):T[e].ansi(T.rgbToAnsi(...t)):u==="hex"?Tu("rgb",D,e,...T.hexToRgb(...t)):T[e][u](...t),Ue=["rgb","hex","ansi256"];for(let u of Ue){j[u]={get(){let{level:e}=this;return function(...t){let r=yu(Tu(u,aD[e],"color",...t),T.color.close,this[L]);return lu(this,r,this[z])}}};let D="bg"+u[0].toUpperCase()+u.slice(1);j[D]={get(){let{level:e}=this;return function(...t){let r=yu(Tu(u,aD[e],"bgColor",...t),T.bgColor.close,this[L]);return lu(this,r,this[z])}}}}var Ve=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[xu].level},set(u){this[xu].level=u}}}),yu=(u,D,e)=>{let t,r;return e===void 0?(t=u,r=D):(t=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:t,closeAll:r,parent:e}},lu=(u,D,e)=>{let t=(...r)=>Ye(t,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(t,Ve),t[xu]=u,t[L]=D,t[z]=e,t},Ye=(u,D)=>{if(u.level<=0||!D)return u[z]?"":D;let e=u[L];if(e===void 0)return D;let{openAll:t,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=FD(D,e.close,e.open),e=e.parent;let o=D.indexOf(`
|
|
14
|
-
`);return o!==-1&&(D=iD(D,r,t,o)),t+D+r};Object.defineProperties(J.prototype,j);var qe=J(),No=J({level:lD?lD.level:0});var Io=qe;var mD={};ne(mD,{ConEmu:()=>gD,beep:()=>xt,beginSynchronizedOutput:()=>dD,clearScreen:()=>dt,clearTerminal:()=>gt,clearViewport:()=>Bt,cursorBackward:()=>et,cursorDown:()=>ut,cursorForward:()=>Dt,cursorGetPosition:()=>ot,cursorHide:()=>it,cursorLeft:()=>ED,cursorMove:()=>Ze,cursorNextLine:()=>nt,cursorPrevLine:()=>Ft,cursorRestorePosition:()=>rt,cursorSavePosition:()=>tt,cursorShow:()=>st,cursorTo:()=>Qe,cursorUp:()=>fD,endSynchronizedOutput:()=>BD,enterAlternativeScreen:()=>mt,eraseDown:()=>Ct,eraseEndLine:()=>at,eraseLine:()=>pD,eraseLines:()=>lt,eraseScreen:()=>au,eraseStartLine:()=>ct,eraseUp:()=>ft,exitAlternativeScreen:()=>bt,iTerm:()=>hD,image:()=>yt,link:()=>Tt,scrollDown:()=>pt,scrollUp:()=>Et,setCwd:()=>wt,synchronizedOutput:()=>At});n();import k from"node:process";import ze from"node:os";n();var M=globalThis.window?.document!==void 0,Mo=globalThis.process?.versions?.node!==void 0,ko=globalThis.process?.versions?.bun!==void 0,Go=globalThis.Deno?.version?.deno!==void 0,Wo=globalThis.process?.versions?.electron!==void 0,Po=globalThis.navigator?.userAgent?.includes("jsdom")===!0,Uo=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,Vo=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,Yo=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,qo=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,X=globalThis.navigator?.userAgentData?.platform,Ko=X==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Ho=X==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",zo=X==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",Jo=X==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),Xo=X==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var s="\x1B[",G="\x1B]",R="\x07",Q=";",CD=!M&&k.env.TERM_PROGRAM==="Apple_Terminal",Je=!M&&k.platform==="win32",Xe=!M&&(k.env.TERM?.startsWith("screen")||k.env.TERM?.startsWith("tmux")||k.env.TMUX!==void 0),wu=M?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:k.cwd,W=u=>Xe?"\x1BPtmux;"+u.replaceAll("\x1B","\x1B\x1B")+"\x1B\\":u,Qe=(u,D)=>{if(typeof u!="number")throw new TypeError("The `x` argument is required");return typeof D!="number"?s+(u+1)+"G":s+(D+1)+Q+(u+1)+"H"},Ze=(u,D)=>{if(typeof u!="number")throw new TypeError("The `x` argument is required");let e="";return u<0?e+=s+-u+"D":u>0&&(e+=s+u+"C"),D<0?e+=s+-D+"A":D>0&&(e+=s+D+"B"),e},fD=(u=1)=>s+u+"A",ut=(u=1)=>s+u+"B",Dt=(u=1)=>s+u+"C",et=(u=1)=>s+u+"D",ED=s+"G",tt=CD?"\x1B7":s+"s",rt=CD?"\x1B8":s+"u",ot=s+"6n",nt=s+"E",Ft=s+"F",it=s+"?25l",st=s+"?25h",lt=u=>{let D="";for(let e=0;e<u;e++)D+=pD+(e<u-1?fD():"");return u&&(D+=ED),D},at=s+"K",ct=s+"1K",pD=s+"2K",Ct=s+"J",ft=s+"1J",au=s+"2J",Et=s+"S",pt=s+"T",dt="\x1Bc",Bt=`${au}${s}H`,ht=()=>{if(M||!Je)return!1;let u=ze.release().split("."),D=Number(u[0]),e=Number(u[2]??0);return D<10||D===10&&e<10586},gt=ht()?`${au}${s}0f`:`${au}${s}3J${s}H`,mt=s+"?1049h",bt=s+"?1049l",dD=s+"?2026h",BD=s+"?2026l",At=u=>dD+u+BD,xt=R,Tt=(u,D)=>{let e=W(`${G}8${Q}${Q}${D}${R}`),t=W(`${G}8${Q}${Q}${R}`);return e+u+t},yt=(u,D={})=>{let e=`${G}1337;File=inline=1`;D.width&&(e+=`;width=${D.width}`),D.height&&(e+=`;height=${D.height}`),D.preserveAspectRatio===!1&&(e+=";preserveAspectRatio=0");let t=Buffer.from(u);return W(e+`;size=${t.byteLength}:`+t.toString("base64")+R)},hD={setCwd:(u=wu())=>W(`${G}50;CurrentDir=${u}${R}`),annotation(u,D={}){let e=`${G}1337;`,t=D.x!==void 0,r=D.y!==void 0;if((t||r)&&!(t&&r&&D.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return u=u.replaceAll("|",""),e+=D.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",D.length>0?e+=(t?[u,D.length,D.x,D.y]:[D.length,u]).join("|"):e+=u,W(e+R)}},gD={setCwd:(u=wu())=>W(`${G}9;9;${u}${R}`)},wt=(u=wu())=>hD.setCwd(u)+gD.setCwd(u);n();n();var St=u=>{let D=new Set;do for(let e of Reflect.ownKeys(u))D.add([u,e]);while((u=Reflect.getPrototypeOf(u))&&u!==Object.prototype);return D};function vt(u,{include:D,exclude:e}={}){let t=r=>{let o=F=>typeof F=="string"?r===F:F.test(r);return D?D.some(o):e?!e.some(o):!0};for(let[r,o]of St(u.constructor.prototype)){if(o==="constructor"||!t(o))continue;let F=Reflect.getOwnPropertyDescriptor(r,o);F&&typeof F.value=="function"&&(u[o]=u[o].bind(u))}return u}n();import{PassThrough as bD}from"node:stream";var AD=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],Su={},Ot=u=>{let D=new bD,e=new bD;D.write=r=>{u("stdout",r)},e.write=r=>{u("stderr",r)};let t=new console.Console(D,e);for(let r of AD)Su[r]=console[r],console[r]=t[r];return()=>{for(let r of AD)console[r]=Su[r];Su={}}},an=Ot;n();import zD from"node:process";n();var qD=pu(YD(),1),KD=pu(Wu(),1);import Dr from"node:process";var er=(0,qD.default)(()=>{(0,KD.default)(()=>{Dr.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),HD=er;var fu=!1,P={};P.show=(u=zD.stderr)=>{u.isTTY&&(fu=!1,u.write("\x1B[?25h"))};P.hide=(u=zD.stderr)=>{u.isTTY&&(HD(),fu=!0,u.write("\x1B[?25l"))};P.toggle=(u,D)=>{u!==void 0&&(fu=u),fu?P.show(D):P.hide(D)};var kn=P;n();function tr(u,D=1,e={}){let{indent:t=" ",includeEmptyLines:r=!1}=e;if(typeof u!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof u}\``);if(typeof D!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof D}\``);if(D<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${D}\``);if(typeof t!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof t}\``);if(D===0)return u;let o=r?/^/gm:/^(?!\s*$)/gm;return u.replace(o,t.repeat(D))}n();function Ru(u){return Number.isInteger(u)?K(u)||H(u):!1}n();var rr=new Set([27,155]),or="0".codePointAt(0),nr="9".codePointAt(0),Fr=19,Iu=new Set,Nu=new Map;for(let[u,D]of x.codes)Iu.add(x.color.ansi(D)),Nu.set(x.color.ansi(u),x.color.ansi(D));function ir(u){if(Iu.has(u))return u;if(Nu.has(u))return Nu.get(u);u=u.slice(2),u.includes(";")&&(u=u[0]+"0");let D=x.codes.get(Number.parseInt(u,10));return D?x.color.ansi(D):x.reset.open}function sr(u){for(let D=0;D<u.length;D++){let e=u.codePointAt(D);if(e>=or&&e<=nr)return D}return-1}function lr(u,D){u=u.slice(D,D+Fr);let e=sr(u);if(e!==-1){let t=u.indexOf("m",e);return t===-1&&(t=u.length),u.slice(0,t+1)}}function ar(u,D=Number.POSITIVE_INFINITY){let e=[],t=0,r=0;for(;t<u.length;){let o=u.codePointAt(t);if(rr.has(o)){let l=lr(u,t);if(l){e.push({type:"ansi",code:l,endCode:ir(l)}),t+=l.length;continue}}let F=Ru(o),i=String.fromCodePoint(o);if(e.push({type:"character",value:i,isFullWidth:F}),t+=i.length,r+=F?2:i.length,r>=D)break}return e}function JD(u){let D=[];for(let e of u)e.code===x.reset.open?D=[]:Iu.has(e.code)?D=D.filter(t=>t.endCode!==e.code):(D=D.filter(t=>t.endCode!==e.endCode),D.push(e));return D}function cr(u){return JD(u).map(({endCode:t})=>t).reverse().join("")}function Cr(u,D,e){let t=ar(u,e),r=[],o=0,F="",i=!1;for(let l of t){if(e!==void 0&&o>=e)break;l.type==="ansi"?(r.push(l),i&&(F+=l.code)):(!i&&o>=D&&(i=!0,r=JD(r),F=r.map(({code:E})=>E).join("")),i&&(F+=l.value),o+=l.isFullWidth?2:l.value.length)}return F+=cr(r),F}n();n();var Ar=(u,D=2)=>u.replace(/^\t+/gm,e=>" ".repeat(e.length*D)),re=Ar;var xr=(u,D)=>{let e=[],t=u-D,r=u+D;for(let o=t;o<=r;o++)e.push(o);return e},Tr=(u,D,e={})=>{var t;if(typeof u!="string")throw new TypeError("Source code is missing.");if(!D||D<1)throw new TypeError("Line number must start from `1`.");let r=re(u).split(/\r?\n/);if(!(D>r.length))return xr(D,(t=e.around)!==null&&t!==void 0?t:3).filter(o=>r[o-1]!==void 0).map(o=>({line:o,value:r[o-1]}))},FF=Tr;export{TD as a,wD as b,vu as c,MD as d,He as e,GD as f,Zt as g,mD as h,vt as i,Wu as j,an as k,V as l,Vu as m,O as n,x as o,ve as p,Re as q,Ru as r,Cr as s,tr as t,Er as u,Io as v,kn as w,br as x,FF as y};
|
package/dist/chunk-DCPBRWVC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as l,ga as o,ha as h,ia as c,v as s,w as q,z as f}from"./chunk-XONFGLJQ.js";import{b as g}from"./chunk-4LNCYIS3.js";import{b as m}from"./chunk-ZSBA6VIC.js";import{e as i,g as a}from"./chunk-VPRTJUIN.js";a();var y=i(c()),x=new y.default({minTime:150,maxConcurrent:10});async function v(e){let n="App Management",r=`https://${await s()}/app_management/unstable/graphql.json`;return{token:e,api:n,url:r,responseOptions:{onResponse:d}}}var A=e=>l(e),T=async(e,n,t)=>{let u=`https://${await s()}/app_management/unstable/organizations/${e}/app_logs/poll`;return h(u,n,t)};async function U(e){let n=e.cacheOptions?.cacheExtraKey??"",t=e.cacheOptions?{...e.cacheOptions,cacheExtraKey:n}:void 0;return x.schedule(async()=>o({...await v(e.token),query:e.query,variables:e.variables,cacheOptions:t,preferredBehaviour:e.requestOptions?.requestMode,unauthorizedHandler:e.unauthorizedHandler}))}function d(e){if(!e.extensions)return;let n=[];for(let t of e.extensions.deprecations)t.supportedUntilDate&&n.push(new Date(t.supportedUntilDate));g(n)}a();var D=i(c()),z=new D.default({minTime:150,maxConcurrent:10});async function L(e){let n="App Dev",t=f(e.shopFqdn),u=`https://${await q(t)}/app_dev/unstable/graphql.json`,p=m()==="local"?{"x-forwarded-host":t}:void 0;return z.schedule(()=>o({query:e.query,api:n,url:u,token:e.token,addedHeaders:p,variables:e.variables,unauthorizedHandler:e.unauthorizedHandler,preferredBehaviour:e.requestOptions?.requestMode}))}a();var b=i(c()),k=new b.default({minTime:150,maxConcurrent:10});async function R(e,n,t){let r="Functions",p=`https://${await s()}/functions/unstable/organizations/${e}/${t}/graphql`;return{token:n,api:r,url:p,responseOptions:{onResponse:d}}}async function P(e){return await k.schedule(async()=>o({...await R(e.organizationId,e.token,e.appId),query:e.query,variables:e.variables,unauthorizedHandler:e.unauthorizedHandler}))}a();var w=i(c()),H=new w.default({minTime:150,maxConcurrent:10});async function Z(e){let n="Webhooks",r=`https://${await s()}/webhooks/unstable/organizations/${e.organizationId}/graphql.json`;return H.schedule(()=>o({query:e.query,api:n,url:r,token:e.token,variables:e.variables,unauthorizedHandler:e.unauthorizedHandler}))}export{A as a,T as b,U as c,L as d,P as e,Z as f};
|
package/dist/chunk-DN2IE3VY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as i,c,d as f}from"./chunk-JAO53IH2.js";import{b as w}from"./chunk-XITQULK4.js";import{d as s,f as d,j as S}from"./chunk-CBXSPL4W.js";import{B as h}from"./chunk-6G6TMKXF.js";import{d as u}from"./chunk-M56NDIMD.js";import{U as a}from"./chunk-N5PQPIBF.js";import{g as l}from"./chunk-VPRTJUIN.js";l();async function q(e,r){let n=await i(e),t=new f(r.filter),m=e.storeFqdn;if(t.any())return c(m,n,t)[0];let T=r.header??"",p=n.map(o=>{let g=o.id.toString()===w()?" [current]":"";return{value:async()=>o,label:`${o.name}${g}`,group:a(o.role)}});return r.create&&p.unshift(y(e)),(await h({message:T,choices:p}))()}async function B(e,r){return(await i(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await i(e),t=new f(r),m=e.storeFqdn;return t.any()?c(m,n,t):[]}function y(e){return{value:async()=>{let r=s,n=await d("Name of the new theme"),t=await S({name:n,role:r},e);if(!t)throw new u("The theme could not be created.");return t},label:"[Create a new theme]",group:a(s)}}export{q as a,B as b,C as c};
|
package/dist/chunk-EQU4MUQJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as m}from"./chunk-MHWV5RQV.js";import{Ib as t,Qb as o}from"./chunk-N5PQPIBF.js";import{g as h}from"./chunk-VPRTJUIN.js";h();var n;function r(){return n??(n=new m({projectName:"shopify-cli-host-theme-conf"})),n}function u(e){return o(t`Getting host theme...`),r().get(e)}function p(e,s){o(t`Setting host theme...`),r().set(e,s)}function g(e){o(t`Removing host theme...`),r().delete(e)}export{u as a,p as b,g as c};
|
package/dist/chunk-F2QU6WWX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as I}from"./chunk-VPRTJUIN.js";I();var o="4.1.0";export{o as a};
|