@aussieljk/forkbook 0.0.0-stage → 0.0.1-2
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/LICENSE +22 -0
- package/README.md +77 -2
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +36 -0
- package/assets/browser/favicon-wrapper.svg +46 -0
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/builder-vite/iframe.html +99 -0
- package/assets/create/rendererAssets/.eslintrc.json +16 -0
- package/assets/create/rendererAssets/common/Configure.mdx +388 -0
- package/assets/create/rendererAssets/common/assets/accessibility.png +0 -0
- package/assets/create/rendererAssets/common/assets/accessibility.svg +1 -0
- package/assets/create/rendererAssets/common/assets/addon-library.png +0 -0
- package/assets/create/rendererAssets/common/assets/assets.png +0 -0
- package/assets/create/rendererAssets/common/assets/avif-test-image.avif +0 -0
- package/assets/create/rendererAssets/common/assets/context.png +0 -0
- package/assets/create/rendererAssets/common/assets/discord.svg +1 -0
- package/assets/create/rendererAssets/common/assets/docs.png +0 -0
- package/assets/create/rendererAssets/common/assets/figma-plugin.png +0 -0
- package/assets/create/rendererAssets/common/assets/github.svg +1 -0
- package/assets/create/rendererAssets/common/assets/share.png +0 -0
- package/assets/create/rendererAssets/common/assets/styling.png +0 -0
- package/assets/create/rendererAssets/common/assets/testing.png +0 -0
- package/assets/create/rendererAssets/common/assets/theming.png +0 -0
- package/assets/create/rendererAssets/common/assets/tutorials.svg +1 -0
- package/assets/create/rendererAssets/common/assets/youtube.svg +1 -0
- package/assets/create/rendererAssets/common/button.css +30 -0
- package/assets/create/rendererAssets/common/header.css +32 -0
- package/assets/create/rendererAssets/common/page.css +68 -0
- package/assets/create/templates/react-native/index.expo.js +20 -0
- package/assets/create/templates/react-native/index.js +25 -0
- package/assets/docs/addon-backgrounds.gif +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/highlight.png +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/react-native/metro-env.d.ts +69 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +116 -0
- package/assets/server/base-preview-head.html +494 -0
- package/assets/server/openBrowser.applescript +94 -0
- package/assets/server/template.ejs +87 -0
- package/dist/.build-stamp +0 -0
- package/dist/_browser-chunks/Color-PCLE2J36.js +1025 -0
- package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
- package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +1619 -0
- package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
- package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
- package/dist/_browser-chunks/chunk-2MEPHP35.js +17 -0
- package/dist/_browser-chunks/chunk-2SCZVUKW.js +24 -0
- package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
- package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
- package/dist/_browser-chunks/chunk-52CW7FF7.js +49 -0
- package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +20 -0
- package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
- package/dist/_browser-chunks/chunk-66OCZ54D.js +2604 -0
- package/dist/_browser-chunks/chunk-6SXYJQST.js +253 -0
- package/dist/_browser-chunks/chunk-AYRF6EJB.js +36 -0
- package/dist/_browser-chunks/chunk-B4AUNNU4.js +156 -0
- package/dist/_browser-chunks/chunk-BCP2FFXF.js +369 -0
- package/dist/_browser-chunks/chunk-C3D4HEFY.js +3396 -0
- package/dist/_browser-chunks/chunk-CFAOWGL7.js +43 -0
- package/dist/_browser-chunks/chunk-CFWWCCZV.js +223 -0
- package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
- package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
- package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
- package/dist/_browser-chunks/chunk-EIYAKDGP.js +302 -0
- package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
- package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
- package/dist/_browser-chunks/chunk-FJGWSWL5.js +155 -0
- package/dist/_browser-chunks/chunk-FVSEPWWX.js +2810 -0
- package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
- package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
- package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
- package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +108 -0
- package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
- package/dist/_browser-chunks/chunk-JSBKXXXF.js +218 -0
- package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
- package/dist/_browser-chunks/chunk-JYVGARBG.js +2943 -0
- package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
- package/dist/_browser-chunks/chunk-KQ7CRO2B.js +108 -0
- package/dist/_browser-chunks/chunk-LAWXTSXK.js +18 -0
- package/dist/_browser-chunks/chunk-LE2LTDW3.js +14 -0
- package/dist/_browser-chunks/chunk-LEVSOOLQ.js +48 -0
- package/dist/_browser-chunks/chunk-LV5PIKV4.js +93 -0
- package/dist/_browser-chunks/chunk-MDOL7KML.js +56 -0
- package/dist/_browser-chunks/chunk-MFMDGWP6.js +34 -0
- package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
- package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
- package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/chunk-OD6IBQCC.js +117 -0
- package/dist/_browser-chunks/chunk-ODVJ3XZJ.js +157 -0
- package/dist/_browser-chunks/chunk-OQWFVDIN.js +386 -0
- package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
- package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
- package/dist/_browser-chunks/chunk-P6PK47TQ.js +1970 -0
- package/dist/_browser-chunks/chunk-PFRNG3UC.js +22 -0
- package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
- package/dist/_browser-chunks/chunk-QC4HFS6K.js +41 -0
- package/dist/_browser-chunks/chunk-QDXFODK4.js +274 -0
- package/dist/_browser-chunks/chunk-RBCHTR7C.js +28 -0
- package/dist/_browser-chunks/chunk-RMYQ3QN3.js +294 -0
- package/dist/_browser-chunks/chunk-RNTIV5CE.js +411 -0
- package/dist/_browser-chunks/chunk-RSPAQWVJ.js +80 -0
- package/dist/_browser-chunks/chunk-S6TK43XQ.js +836 -0
- package/dist/_browser-chunks/chunk-SC67XZST.js +18 -0
- package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
- package/dist/_browser-chunks/chunk-SZYFOQMT.js +25 -0
- package/dist/_browser-chunks/chunk-TBJCJXK4.js +18 -0
- package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
- package/dist/_browser-chunks/chunk-V2G23FV7.js +11 -0
- package/dist/_browser-chunks/chunk-V5M7Q4HT.js +88 -0
- package/dist/_browser-chunks/chunk-W5M6NPS3.js +198 -0
- package/dist/_browser-chunks/chunk-W7NE2JXW.js +84 -0
- package/dist/_browser-chunks/chunk-WGVAAM43.js +1110 -0
- package/dist/_browser-chunks/chunk-WHQRNHXD.js +8 -0
- package/dist/_browser-chunks/chunk-WOSOWBCA.js +12 -0
- package/dist/_browser-chunks/chunk-WZ7KR7SH.js +85 -0
- package/dist/_browser-chunks/chunk-YEKO6BHJ.js +20 -0
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-YTIT5NA5.js +1966 -0
- package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
- package/dist/_browser-chunks/chunk-ZTQ5MEJ5.js +203 -0
- package/dist/_browser-chunks/matchers-YLBYSYAF.js +1263 -0
- package/dist/_browser-chunks/react-dom-client-4OHE3QDV.js +9 -0
- package/dist/_node-chunks/attached-runtime-I2G4WLJI.js +282 -0
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +1661 -0
- package/dist/_node-chunks/chunk-2BUPBPFB.js +82 -0
- package/dist/_node-chunks/chunk-2DSIDINN.js +884 -0
- package/dist/_node-chunks/chunk-2RU7BKEW.js +23 -0
- package/dist/_node-chunks/chunk-34EO2PUT.js +26 -0
- package/dist/_node-chunks/chunk-3BKIBF5S.js +3008 -0
- package/dist/_node-chunks/chunk-3SDUYDXH.js +98 -0
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +662 -0
- package/dist/_node-chunks/chunk-3W7F2B7P.js +79 -0
- package/dist/_node-chunks/chunk-3Y6AAY5H.js +80 -0
- package/dist/_node-chunks/chunk-42UWAGPW.js +1193 -0
- package/dist/_node-chunks/chunk-4FEANXWU.js +1986 -0
- package/dist/_node-chunks/chunk-5DQFEZEA.js +40 -0
- package/dist/_node-chunks/chunk-6KEHV53S.js +1218 -0
- package/dist/_node-chunks/chunk-6LMWA44H.js +3837 -0
- package/dist/_node-chunks/chunk-6YKBRP72.js +20 -0
- package/dist/_node-chunks/chunk-7GUDZVRQ.js +110 -0
- package/dist/_node-chunks/chunk-B5J7Q7J4.js +21 -0
- package/dist/_node-chunks/chunk-BS2WMZMR.js +90 -0
- package/dist/_node-chunks/chunk-BSKFCWQD.js +47 -0
- package/dist/_node-chunks/chunk-BXVYT7SB.js +36 -0
- package/dist/_node-chunks/chunk-CCOTJ4FC.js +688 -0
- package/dist/_node-chunks/chunk-CQKMLL5J.js +33 -0
- package/dist/_node-chunks/chunk-CXRU72ET.js +63 -0
- package/dist/_node-chunks/chunk-DC7DKR5K.js +20 -0
- package/dist/_node-chunks/chunk-DHJFTB4K.js +25 -0
- package/dist/_node-chunks/chunk-DUR55DJJ.js +1094 -0
- package/dist/_node-chunks/chunk-E6YESGLX.js +7032 -0
- package/dist/_node-chunks/chunk-EHUNOMDD.js +52345 -0
- package/dist/_node-chunks/chunk-ET7PWEO7.js +298 -0
- package/dist/_node-chunks/chunk-EWOX7HPJ.js +20 -0
- package/dist/_node-chunks/chunk-F3ZFKBHY.js +844 -0
- package/dist/_node-chunks/chunk-FK7KGTV7.js +26 -0
- package/dist/_node-chunks/chunk-FPZB5OI7.js +35 -0
- package/dist/_node-chunks/chunk-FW2HQUBQ.js +25 -0
- package/dist/_node-chunks/chunk-FY6UXW6G.js +11 -0
- package/dist/_node-chunks/chunk-GEFQN7K3.js +499 -0
- package/dist/_node-chunks/chunk-GRBLDJCR.js +989 -0
- package/dist/_node-chunks/chunk-H32DYT6P.js +87 -0
- package/dist/_node-chunks/chunk-H4PPVMP5.js +23 -0
- package/dist/_node-chunks/chunk-HMP2G23X.js +25 -0
- package/dist/_node-chunks/chunk-ICPBH3E7.js +59 -0
- package/dist/_node-chunks/chunk-IDEL2J23.js +23 -0
- package/dist/_node-chunks/chunk-IK4FGZLR.js +223 -0
- package/dist/_node-chunks/chunk-JDXXX6LB.js +68 -0
- package/dist/_node-chunks/chunk-JGGFYIG5.js +5468 -0
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +29 -0
- package/dist/_node-chunks/chunk-JZOO7GGC.js +48 -0
- package/dist/_node-chunks/chunk-KISMCCP5.js +4744 -0
- package/dist/_node-chunks/chunk-LCK4ZQKG.js +115 -0
- package/dist/_node-chunks/chunk-LO56I6E2.js +132 -0
- package/dist/_node-chunks/chunk-LXBD4UL4.js +104 -0
- package/dist/_node-chunks/chunk-MA24JW6C.js +7162 -0
- package/dist/_node-chunks/chunk-MK2KYAI6.js +5414 -0
- package/dist/_node-chunks/chunk-NDWKJ4CL.js +2102 -0
- package/dist/_node-chunks/chunk-NIBT7XDZ.js +168 -0
- package/dist/_node-chunks/chunk-NPO45IMH.js +33 -0
- package/dist/_node-chunks/chunk-OISX4AGQ.js +414 -0
- package/dist/_node-chunks/chunk-OUW6R7C3.js +26 -0
- package/dist/_node-chunks/chunk-OWNFOGTA.js +194 -0
- package/dist/_node-chunks/chunk-Q7QNUM5H.js +49 -0
- package/dist/_node-chunks/chunk-QEQLR22M.js +1877 -0
- package/dist/_node-chunks/chunk-RRN2V55B.js +45 -0
- package/dist/_node-chunks/chunk-RWFIFGO5.js +144 -0
- package/dist/_node-chunks/chunk-RXNJDRGO.js +209 -0
- package/dist/_node-chunks/chunk-RZMQ7S3L.js +92 -0
- package/dist/_node-chunks/chunk-SIEXZVCR.js +51 -0
- package/dist/_node-chunks/chunk-SLWQNBGO.js +2034 -0
- package/dist/_node-chunks/chunk-SVTBJ7Q3.js +35 -0
- package/dist/_node-chunks/chunk-SWO5CDYU.js +32 -0
- package/dist/_node-chunks/chunk-TD5PLLQG.js +121 -0
- package/dist/_node-chunks/chunk-TEQGGSP7.js +33 -0
- package/dist/_node-chunks/chunk-TFCEV2XX.js +155 -0
- package/dist/_node-chunks/chunk-TFEWM4E3.js +1073 -0
- package/dist/_node-chunks/chunk-TINO74G5.js +21 -0
- package/dist/_node-chunks/chunk-TNJIXE37.js +40 -0
- package/dist/_node-chunks/chunk-TWI4GVH7.js +19 -0
- package/dist/_node-chunks/chunk-U5W53R2J.js +1011 -0
- package/dist/_node-chunks/chunk-UBOGWBEA.js +148 -0
- package/dist/_node-chunks/chunk-UMUBKI6E.js +3787 -0
- package/dist/_node-chunks/chunk-UVINFLGY.js +56 -0
- package/dist/_node-chunks/chunk-V2DY426G.js +1133 -0
- package/dist/_node-chunks/chunk-VLOXOXXE.js +45 -0
- package/dist/_node-chunks/chunk-W4OMYLSP.js +1297 -0
- package/dist/_node-chunks/chunk-WAXVSN3O.js +18 -0
- package/dist/_node-chunks/chunk-WCULS5TP.js +3767 -0
- package/dist/_node-chunks/chunk-WNZ2UMFM.js +153 -0
- package/dist/_node-chunks/chunk-WZJF2OUH.js +74 -0
- package/dist/_node-chunks/chunk-XGIUVY52.js +611 -0
- package/dist/_node-chunks/chunk-XHL2LVBM.js +415 -0
- package/dist/_node-chunks/chunk-XI6B6P47.js +59 -0
- package/dist/_node-chunks/chunk-XLP2ZKXV.js +60 -0
- package/dist/_node-chunks/chunk-YCMRA6RX.js +95 -0
- package/dist/_node-chunks/chunk-YZFWBA5L.js +2700 -0
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +4731 -0
- package/dist/_node-chunks/chunk-ZWBCQ4MJ.js +110 -0
- package/dist/_node-chunks/dist-VTSTZKUB.js +16 -0
- package/dist/_node-chunks/globby-OEMHPBFY.js +2884 -0
- package/dist/_node-chunks/jiti-NFX6UU74.js +3848 -0
- package/dist/_node-chunks/lib-MDVARD7W.js +366 -0
- package/dist/_node-chunks/local-runtime-NTKIN2QT.js +78 -0
- package/dist/_node-chunks/mdx-plugin-MWISDWDQ.js +5680 -0
- package/dist/_node-chunks/monorepo-LIRFMQXE.js +121 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js +121 -0
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +22 -0
- package/dist/_node-chunks/pattern-copy-play-EKHIUAU2.js +807 -0
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +20 -0
- package/dist/_node-chunks/rehype-external-links-BUN3HUCO.js +121 -0
- package/dist/_node-chunks/rehype-slug-PLADX223.js +52 -0
- package/dist/_node-chunks/relaxed-limits-GBHW6KIQ.js +117 -0
- package/dist/_node-chunks/run-KDTIZNSY.js +103 -0
- package/dist/_node-chunks/run-NL66VTNR.js +4532 -0
- package/dist/_node-chunks/session-id-KIIVOQLR.js +23 -0
- package/dist/_node-chunks/setup-MGC7BQO6.js +278 -0
- package/dist/_node-chunks/vitest.config.4.template-JH2THZFG.js +54 -0
- package/dist/actions/decorator.d.ts +7 -0
- package/dist/actions/decorator.js +43 -0
- package/dist/actions/index.d.ts +67 -0
- package/dist/actions/index.js +28 -0
- package/dist/addon-a11y/index.d.ts +52 -0
- package/dist/addon-a11y/index.js +16 -0
- package/dist/addon-a11y/manager.js +1429 -0
- package/dist/addon-a11y/preset.js +18 -0
- package/dist/addon-a11y/preview.d.ts +17 -0
- package/dist/addon-a11y/preview.js +15 -0
- package/dist/addon-docs/blocks.d.ts +1061 -0
- package/dist/addon-docs/blocks.js +2461 -0
- package/dist/addon-docs/index.d.ts +236 -0
- package/dist/addon-docs/index.js +16 -0
- package/dist/addon-docs/manager.js +90 -0
- package/dist/addon-docs/mdx-react-shim.d.ts +1 -0
- package/dist/addon-docs/mdx-react-shim.js +2 -0
- package/dist/addon-docs/preset.js +378 -0
- package/dist/addon-docs/preview.d.ts +4 -0
- package/dist/addon-docs/preview.js +7 -0
- package/dist/addon-links/index.d.ts +22 -0
- package/dist/addon-links/index.js +20 -0
- package/dist/addon-links/manager.js +14 -0
- package/dist/addon-links/preview.d.ts +6 -0
- package/dist/addon-links/preview.js +9 -0
- package/dist/addon-links/react/index.d.ts +25 -0
- package/dist/addon-links/react/index.js +52 -0
- package/dist/addon-mcp/preset.js +1345 -0
- package/dist/addon-mcp/preview.js +29 -0
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1153 -0
- package/dist/addon-ondevice-actions/index.d.ts +4 -0
- package/dist/addon-ondevice-actions/index.js +7 -0
- package/dist/addon-ondevice-actions/register.js +7 -0
- package/dist/addon-ondevice-controls/index.d.ts +6 -0
- package/dist/addon-ondevice-controls/index.js +14 -0
- package/dist/addon-ondevice-controls/register.js +10 -0
- package/dist/addon-pseudo-states/index.d.ts +35 -0
- package/dist/addon-pseudo-states/index.js +15 -0
- package/dist/addon-pseudo-states/manager.js +53 -0
- package/dist/addon-pseudo-states/preview.d.ts +9 -0
- package/dist/addon-pseudo-states/preview.js +10 -0
- package/dist/addon-themes/index.d.ts +80 -0
- package/dist/addon-themes/index.js +104 -0
- package/dist/addon-themes/manager.js +97 -0
- package/dist/addon-themes/postinstall.js +33 -0
- package/dist/addon-themes/preview.d.ts +6 -0
- package/dist/addon-themes/preview.js +8 -0
- package/dist/addon-vitest/constants.d.ts +132 -0
- package/dist/addon-vitest/constants.js +66 -0
- package/dist/addon-vitest/index.d.ts +4 -0
- package/dist/addon-vitest/index.js +8 -0
- package/dist/addon-vitest/manager.js +665 -0
- package/dist/addon-vitest/node/coverage-reporter.js +1284 -0
- package/dist/addon-vitest/node/vitest.js +674 -0
- package/dist/addon-vitest/postinstall.js +24 -0
- package/dist/addon-vitest/preset.js +943 -0
- package/dist/addon-vitest/vitest-plugin/global-setup.js +162 -0
- package/dist/addon-vitest/vitest-plugin/index.d.ts +56 -0
- package/dist/addon-vitest/vitest-plugin/index.js +463 -0
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +9 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.browser.4.js +20 -0
- package/dist/addon-vitest/vitest-plugin/setup-file.js +50 -0
- package/dist/addon-vitest/vitest-plugin/test-utils.js +128 -0
- package/dist/babel/index.d.ts +2301 -0
- package/dist/babel/index.js +61 -0
- package/dist/backgrounds/index.d.ts +6 -0
- package/dist/backgrounds/index.js +15 -0
- package/dist/bin/core.js +1705 -0
- package/dist/bin/dispatcher.js +43 -0
- package/dist/bin/loader.js +115 -0
- package/dist/builder-vite/index.d.ts +50 -0
- package/dist/builder-vite/index.js +245 -0
- package/dist/builder-vite/preset.js +27 -0
- package/dist/channels/index.d.ts +2 -0
- package/dist/channels/index.js +352 -0
- package/dist/chunk-B2t1tGRh.d.ts +284 -0
- package/dist/chunk-BCoJQE-f.d.ts +602 -0
- package/dist/chunk-BGkgZp-H.d.ts +214 -0
- package/dist/chunk-BTVrWliM.d.ts +115 -0
- package/dist/chunk-BXLImeLy.d.ts +197 -0
- package/dist/chunk-BfBzpgct.d.ts +916 -0
- package/dist/chunk-Bpi2tz-6.d.ts +511 -0
- package/dist/chunk-BxWufQms.d.ts +142 -0
- package/dist/chunk-C-bavsOH.d.ts +34 -0
- package/dist/chunk-C2p5r3Vt.d.ts +13001 -0
- package/dist/chunk-C6PAgHLT.d.ts +12 -0
- package/dist/chunk-CMeX4WRe.d.ts +179 -0
- package/dist/chunk-Ct9xd6IM.d.ts +65 -0
- package/dist/chunk-CwQKNaYL.d.ts +15 -0
- package/dist/chunk-D7DwV41f.d.ts +3622 -0
- package/dist/chunk-DEVFdzxR.d.ts +253 -0
- package/dist/chunk-DaVb55-_.d.ts +124 -0
- package/dist/chunk-DgRNfmj_.d.ts +40 -0
- package/dist/chunk-DoIGKY33.d.ts +666 -0
- package/dist/chunk-Dr3R0DXk.d.ts +40 -0
- package/dist/chunk-DtHByo32.d.ts +55 -0
- package/dist/chunk-Dw1z1Pki.d.ts +933 -0
- package/dist/chunk-DzuY9DXg.d.ts +79 -0
- package/dist/chunk-FjDVzZTj.d.ts +62 -0
- package/dist/chunk-Kt1tW-D1.d.ts +59 -0
- package/dist/chunk-XP8oHzpE.d.ts +6 -0
- package/dist/chunk-gCX81nOr.d.ts +61 -0
- package/dist/chunk-pcFXCimE.d.ts +741 -0
- package/dist/cli/index.d.ts +1174 -0
- package/dist/cli/index.js +5613 -0
- package/dist/cli/skills/content/index.d.ts +72 -0
- package/dist/cli/skills/content/index.js +335 -0
- package/dist/cli/tools/sdk/child-host.d.ts +61 -0
- package/dist/cli/tools/sdk/child-host.js +131 -0
- package/dist/cli/tools/sdk/index.d.ts +137 -0
- package/dist/cli/tools/sdk/index.js +44 -0
- package/dist/cli-commands/bin/index.js +25 -0
- package/dist/client-logger/index.d.ts +31 -0
- package/dist/client-logger/index.js +63 -0
- package/dist/common/index.d.ts +1103 -0
- package/dist/common/index.js +364 -0
- package/dist/components/index.d.ts +1924 -0
- package/dist/components/index.js +13759 -0
- package/dist/core-events/index.d.ts +155 -0
- package/dist/core-events/index.js +136 -0
- package/dist/core-server/index.d.ts +2200 -0
- package/dist/core-server/index.js +4165 -0
- package/dist/core-server/presets/common-manager.css +170 -0
- package/dist/core-server/presets/common-manager.js +4168 -0
- package/dist/core-server/presets/common-override-preset.js +81 -0
- package/dist/core-server/presets/common-preset.js +2187 -0
- package/dist/create/bin/index.js +23 -0
- package/dist/create/index.js +25 -0
- package/dist/csf/csf-utils.d.ts +2 -0
- package/dist/csf/csf-utils.js +19 -0
- package/dist/csf/index.d.ts +7 -0
- package/dist/csf/index.js +2142 -0
- package/dist/csf-tools/index.d.ts +1157 -0
- package/dist/csf-tools/index.js +736 -0
- package/dist/docs-tools/index.d.ts +197 -0
- package/dist/docs-tools/index.js +61 -0
- package/dist/highlight/index.d.ts +10 -0
- package/dist/highlight/index.js +15 -0
- package/dist/instrumenter/index.d.ts +113 -0
- package/dist/instrumenter/index.js +2595 -0
- package/dist/manager/_manager-chunks/globals-runtime-8HkdnU2F.js +6144 -0
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +3389 -0
- package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
- package/dist/manager/_manager-chunks/globals-runtime-BmphMP6z.js +1190 -0
- package/dist/manager/_manager-chunks/globals-runtime-BvM-NY2g.js +13307 -0
- package/dist/manager/_manager-chunks/globals-runtime-C02fvgcd.js +9243 -0
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +9766 -0
- package/dist/manager/_manager-chunks/globals-runtime-DpNYC-qi.js +5564 -0
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +5357 -0
- package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
- package/dist/manager/_manager-chunks/globals-runtime-FC201B7s.js +6837 -0
- package/dist/manager/_manager-chunks/globals-runtime-Rp_zjGnh.js +121 -0
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +10463 -0
- package/dist/manager/_manager-chunks/globals-runtime-eLPTIfX-.js +7759 -0
- package/dist/manager/_manager-chunks/globals-runtime-qKvCZHFY.js +4468 -0
- package/dist/manager/_manager-chunks/globals-runtime-sGpNlIJ1.js +5102 -0
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +452 -0
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +22 -0
- package/dist/manager/_manager-chunks/runtime-BhkT2CXl.js +1408 -0
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +998 -0
- package/dist/manager/_manager-chunks/runtime-D0UOWx0U.js +979 -0
- package/dist/manager/_manager-chunks/runtime-D94Vq3oR.js +4014 -0
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +77 -0
- package/dist/manager/_manager-chunks/runtime-EITvVbkG.js +46 -0
- package/dist/manager/_manager-chunks/runtime-cp5pazY2.js +8936 -0
- package/dist/manager/_manager-chunks/runtime-eDVAYF7N.js +6860 -0
- package/dist/manager/_manager-chunks/runtime-i-PDAHLR.js +2493 -0
- package/dist/manager/globals-runtime.js +2 -0
- package/dist/manager/globals.d.ts +23 -0
- package/dist/manager/globals.js +26 -0
- package/dist/manager/manager-stores.d.ts +2 -0
- package/dist/manager/manager-stores.js +19 -0
- package/dist/manager/runtime.js +2 -0
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +3257 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +20 -0
- package/dist/mcp/index.d.ts +270 -0
- package/dist/mcp/index.js +305 -0
- package/dist/mocking-utils/index.d.ts +689 -0
- package/dist/mocking-utils/index.js +521 -0
- package/dist/mocking-utils/mocker-runtime.js +1254 -0
- package/dist/nextjs-vite/config/preview.js +3 -0
- package/dist/nextjs-vite/export-mocks/cache/index.d.ts +25 -0
- package/dist/nextjs-vite/export-mocks/cache/index.js +29 -0
- package/dist/nextjs-vite/export-mocks/headers/index.d.ts +37 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +54 -0
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +9 -0
- package/dist/nextjs-vite/export-mocks/link/index.js +59 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +28 -0
- package/dist/nextjs-vite/export-mocks/navigation/index.js +58 -0
- package/dist/nextjs-vite/export-mocks/router/index.d.ts +34 -0
- package/dist/nextjs-vite/export-mocks/router/index.js +63 -0
- package/dist/nextjs-vite/index.d.ts +92 -0
- package/dist/nextjs-vite/index.js +58 -0
- package/dist/nextjs-vite/node/index.d.ts +6 -0
- package/dist/nextjs-vite/node/index.js +20 -0
- package/dist/nextjs-vite/preset.js +648 -0
- package/dist/nextjs-vite/preview.d.ts +20 -0
- package/dist/nextjs-vite/preview.js +11 -0
- package/dist/nextjs-vite/vite-plugin/index.d.ts +6 -0
- package/dist/nextjs-vite/vite-plugin/index.js +19 -0
- package/dist/nextjs-vite-plugin/index.d.ts +28 -0
- package/dist/nextjs-vite-plugin/index.js +923 -0
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-context.js +8 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-default-loader.js +23 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +28 -0
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +17 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/cache/index.js +29 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/dynamic/index.js +40 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/headers/index.js +55 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/link/index.js +63 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/navigation/index.js +71 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +74 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/rsc/server-only.js +7 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/safe-stable-stringify/index.js +13 -0
- package/dist/nextjs-vite-plugin/plugins/next-mocks/compatibility/draft-mode.compat.js +7 -0
- package/dist/node-logger/index.d.ts +495 -0
- package/dist/node-logger/index.js +42 -0
- package/dist/oxc-parser/index.d.ts +99 -0
- package/dist/oxc-parser/index.js +275 -0
- package/dist/oxc-parser/worker.js +37 -0
- package/dist/preview/_chunks/runtime-BIzIdDbb.js +10263 -0
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +1102 -0
- package/dist/preview/_chunks/runtime-BZSnICCg.js +8484 -0
- package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +63 -0
- package/dist/preview/_chunks/runtime-CqHxptiK.js +6143 -0
- package/dist/preview/_chunks/runtime-CsV4HZPV.js +5064 -0
- package/dist/preview/_chunks/runtime-CxZK_Ln3.js +284 -0
- package/dist/preview/_chunks/runtime-DZToXfvO.js +9767 -0
- package/dist/preview/_chunks/runtime-DrTjJkPY.js +3872 -0
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +387 -0
- package/dist/preview/_chunks/runtime-iXdo8CR8.js +3635 -0
- package/dist/preview/_chunks/runtime-q3wt0e_N.js +6838 -0
- package/dist/preview/globals.d.ts +16 -0
- package/dist/preview/globals.js +20 -0
- package/dist/preview/runtime.js +6 -0
- package/dist/preview-api/index.d.ts +4 -0
- package/dist/preview-api/index.js +147 -0
- package/dist/preview-errors.d.ts +186 -0
- package/dist/preview-errors.js +56 -0
- package/dist/react/docgen/docgen-worker.js +38 -0
- package/dist/react/entry-preview-argtypes.js +9 -0
- package/dist/react/entry-preview-docs.js +12 -0
- package/dist/react/entry-preview-rsc.js +11 -0
- package/dist/react/entry-preview.js +21 -0
- package/dist/react/index.d.ts +119 -0
- package/dist/react/index.js +26 -0
- package/dist/react/preset.js +301 -0
- package/dist/react/preview.d.ts +2 -0
- package/dist/react/preview.js +11 -0
- package/dist/react-native/bin/get-stories.js +34 -0
- package/dist/react-native/index.d.ts +160 -0
- package/dist/react-native/index.js +1547 -0
- package/dist/react-native/metro/node.d.ts +83 -0
- package/dist/react-native/metro/node.js +21 -0
- package/dist/react-native/metro/withStorybook.d.ts +2269 -0
- package/dist/react-native/metro/withStorybook.js +138 -0
- package/dist/react-native/preview.d.ts +6 -0
- package/dist/react-native/preview.js +20 -0
- package/dist/react-native/scripts/generate.d.ts +22 -0
- package/dist/react-native/scripts/generate.js +18 -0
- package/dist/react-native/stub.js +20 -0
- package/dist/react-native-theming/index.d.ts +175 -0
- package/dist/react-native-theming/index.js +2591 -0
- package/dist/react-native-ui/index.d.ts +130 -0
- package/dist/react-native-ui/index.js +1448 -0
- package/dist/react-native-ui-common/index.d.ts +230 -0
- package/dist/react-native-ui-common/index.js +514 -0
- package/dist/react-vite/index.d.ts +4 -0
- package/dist/react-vite/index.js +8 -0
- package/dist/react-vite/node/index.d.ts +6 -0
- package/dist/react-vite/node/index.js +20 -0
- package/dist/react-vite/preset.d.ts +6 -0
- package/dist/react-vite/preset.js +21 -0
- package/dist/router/index.d.ts +141 -0
- package/dist/router/index.js +1217 -0
- package/dist/server-errors.d.ts +2 -0
- package/dist/server-errors.js +149 -0
- package/dist/shared/open-service/index.d.ts +3 -0
- package/dist/shared/open-service/index.js +115 -0
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +75 -0
- package/dist/shared/open-service/toolsets/docs/public.d.ts +1296 -0
- package/dist/shared/open-service/toolsets/docs/public.js +991 -0
- package/dist/telemetry/index.d.ts +314 -0
- package/dist/telemetry/index.js +103 -0
- package/dist/test/index.d.ts +158 -0
- package/dist/test/index.js +19421 -0
- package/dist/theming/create.d.ts +15 -0
- package/dist/theming/create.js +11 -0
- package/dist/theming/index.d.ts +54 -0
- package/dist/theming/index.js +511 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +48 -0
- package/dist/viewport/index.d.ts +275 -0
- package/dist/viewport/index.js +21 -0
- package/package.json +1054 -4
- package/template/nextjs-vite/cli/.eslintrc.json +6 -0
- package/template/nextjs-vite/cli/js/Button.jsx +42 -0
- package/template/nextjs-vite/cli/js/Button.stories.js +49 -0
- package/template/nextjs-vite/cli/js/Configure.mdx +470 -0
- package/template/nextjs-vite/cli/js/Header.jsx +58 -0
- package/template/nextjs-vite/cli/js/Header.stories.js +30 -0
- package/template/nextjs-vite/cli/js/Page.jsx +68 -0
- package/template/nextjs-vite/cli/js/Page.stories.js +28 -0
- package/template/nextjs-vite/cli/ts/Button.stories.ts +54 -0
- package/template/nextjs-vite/cli/ts/Button.tsx +39 -0
- package/template/nextjs-vite/cli/ts/Configure.mdx +446 -0
- package/template/nextjs-vite/cli/ts/Header.stories.ts +34 -0
- package/template/nextjs-vite/cli/ts/Header.tsx +54 -0
- package/template/nextjs-vite/cli/ts/Page.stories.ts +33 -0
- package/template/nextjs-vite/cli/ts/Page.tsx +73 -0
- package/template/react/cli/.eslintrc.json +5 -0
- package/template/react/cli/js/Button.jsx +39 -0
- package/template/react/cli/js/Button.stories.js +49 -0
- package/template/react/cli/js/Header.jsx +56 -0
- package/template/react/cli/js/Header.stories.js +29 -0
- package/template/react/cli/js/Page.jsx +69 -0
- package/template/react/cli/js/Page.stories.js +28 -0
- package/template/react/cli/ts/Button.stories.ts +54 -0
- package/template/react/cli/ts/Button.tsx +37 -0
- package/template/react/cli/ts/Header.stories.ts +34 -0
- package/template/react/cli/ts/Header.tsx +56 -0
- package/template/react/cli/ts/Page.stories.ts +33 -0
- package/template/react/cli/ts/Page.tsx +73 -0
- package/template/react-vite/cli/.eslintrc.json +5 -0
- package/template/react-vite/cli/js/Button.jsx +39 -0
- package/template/react-vite/cli/js/Button.stories.js +49 -0
- package/template/react-vite/cli/js/Header.jsx +56 -0
- package/template/react-vite/cli/js/Header.stories.js +29 -0
- package/template/react-vite/cli/js/Page.jsx +69 -0
- package/template/react-vite/cli/js/Page.stories.js +28 -0
- package/template/react-vite/cli/ts/Button.stories.ts +54 -0
- package/template/react-vite/cli/ts/Button.tsx +37 -0
- package/template/react-vite/cli/ts/Header.stories.ts +34 -0
- package/template/react-vite/cli/ts/Header.tsx +56 -0
- package/template/react-vite/cli/ts/Page.stories.ts +33 -0
- package/template/react-vite/cli/ts/Page.tsx +73 -0
|
@@ -0,0 +1,4532 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ro17f80mg6k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ro17f80mg6k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ro17f80mg6k from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ro17f80mg6k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ro17f80mg6k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ro17f80mg6k.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
postinstallAddon
|
|
14
|
+
} from "./chunk-WZJF2OUH.js";
|
|
15
|
+
import {
|
|
16
|
+
version
|
|
17
|
+
} from "./chunk-WAXVSN3O.js";
|
|
18
|
+
import {
|
|
19
|
+
leven
|
|
20
|
+
} from "./chunk-Q7QNUM5H.js";
|
|
21
|
+
import "./chunk-F3ZFKBHY.js";
|
|
22
|
+
import "./chunk-TNJIXE37.js";
|
|
23
|
+
import {
|
|
24
|
+
require_picocolors
|
|
25
|
+
} from "./chunk-2BUPBPFB.js";
|
|
26
|
+
import {
|
|
27
|
+
__commonJS,
|
|
28
|
+
__require,
|
|
29
|
+
__toESM
|
|
30
|
+
} from "./chunk-CXRU72ET.js";
|
|
31
|
+
|
|
32
|
+
// ../../node_modules/envinfo/dist/envinfo.js
|
|
33
|
+
var require_envinfo = __commonJS({
|
|
34
|
+
"../../node_modules/envinfo/dist/envinfo.js"(exports, module) {
|
|
35
|
+
(() => {
|
|
36
|
+
var e = { 2980: (e2, t2, n2) => {
|
|
37
|
+
"use strict";
|
|
38
|
+
n2(7360), n2(5888), n2(8412), n2(3852), n2(5584);
|
|
39
|
+
var r = n2(9892), o = n2(5008), i = n2(5088), s = n2(224);
|
|
40
|
+
function a(e3, t3) {
|
|
41
|
+
(t3 = t3 || {}).clipboard && console.log(`
|
|
42
|
+
*** Clipboard option removed - use clipboardy or clipboard-cli directly ***
|
|
43
|
+
`);
|
|
44
|
+
var n3 = Object.keys(e3).length > 0 ? e3 : i.defaults, s2 = Object.entries(n3).reduce((function(e4, n4) {
|
|
45
|
+
var o2 = n4[0], i2 = n4[1], s3 = r[`get${o2}`];
|
|
46
|
+
return s3 ? (i2 && e4.push(s3(i2, t3)), e4) : e4 = e4.concat((i2 || []).map((function(e5) {
|
|
47
|
+
var t4 = r[`get${e5.replace(/\s/g, "")}Info`];
|
|
48
|
+
return t4 ? t4() : Promise.resolve(["Unknown"]);
|
|
49
|
+
})));
|
|
50
|
+
}), []);
|
|
51
|
+
return Promise.all(s2).then((function(e4) {
|
|
52
|
+
var n4 = e4.reduce((function(e5, t4) {
|
|
53
|
+
return t4 && t4[0] && Object.assign(e5, { [t4[0]]: t4 }), e5;
|
|
54
|
+
}), {});
|
|
55
|
+
return (function(e5, t4) {
|
|
56
|
+
var n5 = t4.json ? o.json : t4.markdown ? o.markdown : o.yaml;
|
|
57
|
+
if (t4.console) {
|
|
58
|
+
var r2 = !1;
|
|
59
|
+
process.stdout.isTTY && (r2 = !0), console.log(n5(e5, Object.assign({}, t4, { console: r2 })));
|
|
60
|
+
}
|
|
61
|
+
return n5(e5, Object.assign({}, t4, { console: !1 }));
|
|
62
|
+
})(Object.entries(i.defaults).reduce((function(e5, t4) {
|
|
63
|
+
var r2 = t4[0], o2 = t4[1];
|
|
64
|
+
return n4[r2] ? Object.assign(e5, { [r2]: n4[r2][1] }) : Object.assign(e5, { [r2]: (o2 || []).reduce((function(e6, t5) {
|
|
65
|
+
return n4[t5] ? (n4[t5].shift(), n4[t5].length === 1 ? Object.assign(e6, { [t5]: n4[t5][0] }) : Object.assign(e6, { [t5]: { version: n4[t5][0], path: n4[t5][1] } })) : e6;
|
|
66
|
+
}), {}) });
|
|
67
|
+
}), {}), t3);
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
e2.exports = { cli: function(e3) {
|
|
71
|
+
if (e3.all) return a(Object.assign({}, i.defaults, { npmPackages: !0, npmGlobalPackages: !0, pnpmGlobalPackages: !0 }), e3);
|
|
72
|
+
if (e3.raw) return a(JSON.parse(e3.raw), e3);
|
|
73
|
+
if (e3.helper) {
|
|
74
|
+
var t3 = r[`get${e3.helper}`] || r[`get${e3.helper}Info`] || r[e3.helper];
|
|
75
|
+
return t3 ? t3().then(console.log) : console.error("Not Found");
|
|
76
|
+
}
|
|
77
|
+
var n3 = function(e4, t4) {
|
|
78
|
+
return e4.toLowerCase().includes(t4.toLowerCase());
|
|
79
|
+
}, o2 = Object.keys(e3).filter((function(e4) {
|
|
80
|
+
return Object.keys(i.defaults).some((function(t4) {
|
|
81
|
+
return n3(t4, e4);
|
|
82
|
+
}));
|
|
83
|
+
})), c = Object.entries(i.defaults).reduce((function(t4, r2) {
|
|
84
|
+
return o2.some((function(e4) {
|
|
85
|
+
return n3(e4, r2[0]);
|
|
86
|
+
})) ? Object.assign(t4, { [r2[0]]: r2[1] || e3[r2[0]] }) : t4;
|
|
87
|
+
}), {});
|
|
88
|
+
return e3.preset ? i[e3.preset] ? a(Object.assign({}, s.omit(i[e3.preset], ["options"]), c), Object.assign({}, i[e3.preset].options, s.pick(e3, ["duplicates", "fullTree", "json", "markdown", "console"]))) : console.error(`
|
|
89
|
+
No "${e3.preset}" preset found.`) : a(c, e3);
|
|
90
|
+
}, helpers: r, main: a, run: function(e3, t3) {
|
|
91
|
+
return typeof e3.preset == "string" ? a(i[e3.preset], t3) : a(e3, t3);
|
|
92
|
+
} };
|
|
93
|
+
}, 5008: (e2, t2, n2) => {
|
|
94
|
+
"use strict";
|
|
95
|
+
n2(223), n2(3852), n2(4880), n2(3708), n2(5584), n2(5308);
|
|
96
|
+
var r = n2(6232), o = n2(224);
|
|
97
|
+
function i(e3, t3) {
|
|
98
|
+
return o.log("trace", "clean", e3), Object.keys(e3).reduce((function(n3, r2) {
|
|
99
|
+
return !t3.showNotFound && e3[r2] === "Not Found" || e3[r2] === "N/A" || e3[r2] === void 0 || Object.keys(e3[r2]).length === 0 ? n3 : o.isObject(e3[r2]) ? Object.values(e3[r2]).every((function(e4) {
|
|
100
|
+
return e4 === "N/A" || !t3.showNotFound && e4 === "Not Found";
|
|
101
|
+
})) ? n3 : Object.assign(n3, { [r2]: i(e3[r2], t3) }) : Object.assign(n3, { [r2]: e3[r2] });
|
|
102
|
+
}), {});
|
|
103
|
+
}
|
|
104
|
+
function s(e3, t3) {
|
|
105
|
+
o.log("trace", "formatHeaders"), t3 || (t3 = { type: "underline" });
|
|
106
|
+
var n3 = { underline: ["\x1B[4m", "\x1B[0m"] };
|
|
107
|
+
return e3.slice().split(`
|
|
108
|
+
`).map((function(e4) {
|
|
109
|
+
if (e4.slice("-1") === ":") {
|
|
110
|
+
var r2 = e4.match(/^[\s]*/g)[0];
|
|
111
|
+
return `${r2}${n3[t3.type][0]}${e4.slice(r2.length)}${n3[t3.type][1]}`;
|
|
112
|
+
}
|
|
113
|
+
return e4;
|
|
114
|
+
})).join(`
|
|
115
|
+
`);
|
|
116
|
+
}
|
|
117
|
+
function a(e3) {
|
|
118
|
+
return o.log("trace", "formatPackages"), e3.npmPackages ? Object.assign(e3, { npmPackages: Object.entries(e3.npmPackages || {}).reduce((function(e4, t3) {
|
|
119
|
+
var n3 = t3[0], r2 = t3[1];
|
|
120
|
+
if (r2 === "Not Found") return Object.assign(e4, { [n3]: r2 });
|
|
121
|
+
var o2 = r2.wanted ? `${r2.wanted} =>` : "", i2 = Array.isArray(r2.installed) ? r2.installed.join(", ") : r2.installed, s2 = r2.duplicates ? `(${r2.duplicates.join(", ")})` : "";
|
|
122
|
+
return Object.assign(e4, { [n3]: `${o2} ${i2} ${s2}` });
|
|
123
|
+
}), {}) }) : e3;
|
|
124
|
+
}
|
|
125
|
+
function c(e3, t3, n3) {
|
|
126
|
+
return n3 || (n3 = { emptyMessage: "None" }), Array.isArray(t3) && (t3 = t3.length > 0 ? t3.join(", ") : n3.emptyMessage), { [e3]: t3 };
|
|
127
|
+
}
|
|
128
|
+
function u(e3, t3) {
|
|
129
|
+
return Object.entries(e3).reduce((function(e4, n3) {
|
|
130
|
+
var r2 = n3[0], i2 = n3[1];
|
|
131
|
+
return o.isObject(i2) ? Object.assign(e4, { [r2]: u(i2, t3) }) : Object.assign(e4, t3(r2, i2));
|
|
132
|
+
}), {});
|
|
133
|
+
}
|
|
134
|
+
function l(e3) {
|
|
135
|
+
return o.log("trace", "serializeArrays"), u(e3, c);
|
|
136
|
+
}
|
|
137
|
+
function f(e3) {
|
|
138
|
+
return o.log("trace", "serializeVersionsAndPaths"), Object.entries(e3).reduce((function(e4, t3) {
|
|
139
|
+
return Object.assign(e4, { [t3[0]]: Object.entries(t3[1]).reduce((function(e5, t4) {
|
|
140
|
+
var n3 = t4[0], r2 = t4[1];
|
|
141
|
+
return r2.version ? Object.assign(e5, { [n3]: [r2.version, r2.path].filter(Boolean).join(" - ") }) : Object.assign(e5, { [n3]: [r2][0] });
|
|
142
|
+
}), {}) }, {});
|
|
143
|
+
}), {});
|
|
144
|
+
}
|
|
145
|
+
function p(e3) {
|
|
146
|
+
return r(e3, { indent: " ", prefix: `
|
|
147
|
+
`, postfix: `
|
|
148
|
+
` });
|
|
149
|
+
}
|
|
150
|
+
function h(e3) {
|
|
151
|
+
return e3.slice().split(`
|
|
152
|
+
`).map((function(e4) {
|
|
153
|
+
if (e4 !== "") {
|
|
154
|
+
var t3 = e4.slice("-1") === ":", n3 = e4.search(/\S|$/);
|
|
155
|
+
return t3 ? `${"#".repeat(n3 / 2 + 1)} ` + e4.slice(n3) : " - " + e4.slice(n3);
|
|
156
|
+
}
|
|
157
|
+
return "";
|
|
158
|
+
})).join(`
|
|
159
|
+
`);
|
|
160
|
+
}
|
|
161
|
+
function d(e3, t3) {
|
|
162
|
+
return t3 || (t3 = { indent: " " }), JSON.stringify(e3, null, t3.indent);
|
|
163
|
+
}
|
|
164
|
+
e2.exports = { json: function(e3, t3) {
|
|
165
|
+
return o.log("trace", "formatToJson"), t3 || (t3 = {}), e3 = o.pipe([function() {
|
|
166
|
+
return i(e3, t3);
|
|
167
|
+
}, t3.title ? function(e4) {
|
|
168
|
+
return { [t3.title]: e4 };
|
|
169
|
+
} : o.noop, d])(e3), e3 = t3.console ? `
|
|
170
|
+
${e3}
|
|
171
|
+
` : e3;
|
|
172
|
+
}, markdown: function(e3, t3) {
|
|
173
|
+
return o.log("trace", "formatToMarkdown"), o.pipe([function() {
|
|
174
|
+
return i(e3, t3);
|
|
175
|
+
}, a, l, f, p, h, t3.title ? function(e4) {
|
|
176
|
+
return `
|
|
177
|
+
# ${t3.title}${e4}`;
|
|
178
|
+
} : o.noop])(e3, t3);
|
|
179
|
+
}, yaml: function(e3, t3) {
|
|
180
|
+
return o.log("trace", "formatToYaml", t3), o.pipe([function() {
|
|
181
|
+
return i(e3, t3);
|
|
182
|
+
}, a, l, f, t3.title ? function(e4) {
|
|
183
|
+
return { [t3.title]: e4 };
|
|
184
|
+
} : o.noop, p, t3.console ? s : o.noop])(e3, t3);
|
|
185
|
+
} };
|
|
186
|
+
}, 6732: (e2, t2, n2) => {
|
|
187
|
+
"use strict";
|
|
188
|
+
n2(5888);
|
|
189
|
+
var r = n2(224);
|
|
190
|
+
e2.exports = { getNodeInfo: function() {
|
|
191
|
+
return r.log("trace", "getNodeInfo"), Promise.all([r.isWindows ? r.run("node -v").then(r.findVersion) : r.which("node").then((function(e3) {
|
|
192
|
+
return e3 ? r.run(e3 + " -v") : Promise.resolve("");
|
|
193
|
+
})).then(r.findVersion), r.which("node")]).then((function(e3) {
|
|
194
|
+
return r.determineFound("Node", e3[0], e3[1]);
|
|
195
|
+
}));
|
|
196
|
+
}, getnpmInfo: function() {
|
|
197
|
+
return r.log("trace", "getnpmInfo"), Promise.all([r.run("npm -v"), r.which("npm")]).then((function(e3) {
|
|
198
|
+
return r.determineFound("npm", e3[0], e3[1]);
|
|
199
|
+
}));
|
|
200
|
+
}, getWatchmanInfo: function() {
|
|
201
|
+
return r.log("trace", "getWatchmanInfo"), Promise.all([r.which("watchman").then((function(e3) {
|
|
202
|
+
return e3 ? r.run(e3 + " -v") : void 0;
|
|
203
|
+
})), r.which("watchman")]).then((function(e3) {
|
|
204
|
+
return r.determineFound("Watchman", e3[0], e3[1]);
|
|
205
|
+
}));
|
|
206
|
+
}, getYarnInfo: function() {
|
|
207
|
+
return r.log("trace", "getYarnInfo"), Promise.all([r.run("yarn -v"), r.which("yarn")]).then((function(e3) {
|
|
208
|
+
return r.determineFound("Yarn", e3[0], e3[1]);
|
|
209
|
+
}));
|
|
210
|
+
}, getpnpmInfo: function() {
|
|
211
|
+
return r.log("trace", "getpnpmInfo"), Promise.all([r.run("pnpm -v"), r.which("pnpm")]).then((function(e3) {
|
|
212
|
+
return r.determineFound("pnpm", e3[0], e3[1]);
|
|
213
|
+
}));
|
|
214
|
+
}, getbunInfo: function() {
|
|
215
|
+
return r.log("trace", "getbunInfo"), Promise.all([r.run("bun -v"), r.which("bun")]).then((function(e3) {
|
|
216
|
+
return r.determineFound("bun", e3[0], e3[1]);
|
|
217
|
+
}));
|
|
218
|
+
}, getDenoInfo: function() {
|
|
219
|
+
return r.log("trace", "getDenoInfo"), Promise.all([r.isWindows ? r.run("deno --version").then(r.findVersion) : r.which("deno").then((function(e3) {
|
|
220
|
+
return e3 ? r.run(e3 + " --version") : Promise.resolve("");
|
|
221
|
+
})).then(r.findVersion), r.which("deno")]).then((function(e3) {
|
|
222
|
+
return r.determineFound("Deno", e3[0], e3[1]);
|
|
223
|
+
}));
|
|
224
|
+
} };
|
|
225
|
+
}, 2524: (e2, t2, n2) => {
|
|
226
|
+
"use strict";
|
|
227
|
+
n2(3708), n2(5888), n2(8412);
|
|
228
|
+
var r = n2(2058), o = n2(8558), i = n2(224), s = n2(7072);
|
|
229
|
+
function a(e3, t3, n3) {
|
|
230
|
+
var r2;
|
|
231
|
+
return (i.isLinux ? i.run("firefox --version").then((function(e4) {
|
|
232
|
+
return e4.replace(/^.* ([^ ]*)/g, "$1");
|
|
233
|
+
})) : i.isMacOS && typeof t3 == "string" && t3 ? i.getDarwinApplicationVersion(t3) : i.isWindows && typeof n3 == "string" && n3 ? i.windowsExeExists(n3).then((function(e4) {
|
|
234
|
+
return r2 = e4, e4 ? i.run(`powershell "& '${e4}' -v | Write-Output"`).then((function(e5) {
|
|
235
|
+
return i.findVersion(e5);
|
|
236
|
+
})) : i.NA;
|
|
237
|
+
})) : Promise.resolve(i.NA)).then((function(t4) {
|
|
238
|
+
return i.determineFound(e3, t4, r2 || i.NA);
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
241
|
+
e2.exports = { getBraveBrowserInfo: function() {
|
|
242
|
+
return i.log("trace", "getBraveBrowser"), (i.isLinux ? i.run("brave --version || brave-browser --version").then((function(e3) {
|
|
243
|
+
return e3.replace(/^.* ([^ ]*)/g, "$1");
|
|
244
|
+
})) : i.isMacOS ? i.getDarwinApplicationVersion(i.browserBundleIdentifiers["Brave Browser"]).then(i.findVersion) : Promise.resolve("N/A")).then((function(e3) {
|
|
245
|
+
return i.determineFound("Brave Browser", e3, "N/A");
|
|
246
|
+
}));
|
|
247
|
+
}, getChromeInfo: function() {
|
|
248
|
+
var e3;
|
|
249
|
+
if (i.log("trace", "getChromeInfo"), i.isLinux) e3 = i.run("google-chrome --version").then((function(e4) {
|
|
250
|
+
return e4.replace(" dev", "").replace(/^.* ([^ ]*)/g, "$1");
|
|
251
|
+
}));
|
|
252
|
+
else if (i.isMacOS) e3 = i.getDarwinApplicationVersion(i.browserBundleIdentifiers.Chrome).then(i.findVersion);
|
|
253
|
+
else if (i.isWindows) {
|
|
254
|
+
var t3;
|
|
255
|
+
try {
|
|
256
|
+
var n3 = [process.env.ProgramFiles, process.env["ProgramFiles(x86)"]].filter(Boolean).map((function(e4) {
|
|
257
|
+
try {
|
|
258
|
+
return r.readdirSync(s.join(e4, "Google/Chrome/Application"));
|
|
259
|
+
} catch {
|
|
260
|
+
return [];
|
|
261
|
+
}
|
|
262
|
+
})).reduce((function(e4, t4) {
|
|
263
|
+
return e4.concat(t4);
|
|
264
|
+
}), []);
|
|
265
|
+
t3 = n3.length ? i.findVersion(n3.join(`
|
|
266
|
+
`)) : i.NotFound;
|
|
267
|
+
} catch {
|
|
268
|
+
t3 = i.NotFound;
|
|
269
|
+
}
|
|
270
|
+
e3 = Promise.resolve(t3);
|
|
271
|
+
} else e3 = Promise.resolve("N/A");
|
|
272
|
+
return e3.then((function(e4) {
|
|
273
|
+
return i.determineFound("Chrome", e4, "N/A");
|
|
274
|
+
}));
|
|
275
|
+
}, getChromeCanaryInfo: function() {
|
|
276
|
+
return i.log("trace", "getChromeCanaryInfo"), i.getDarwinApplicationVersion(i.browserBundleIdentifiers["Chrome Canary"]).then((function(e3) {
|
|
277
|
+
return i.determineFound("Chrome Canary", e3, "N/A");
|
|
278
|
+
}));
|
|
279
|
+
}, getChromiumInfo: function() {
|
|
280
|
+
return i.log("trace", "getChromiumInfo"), (i.isLinux ? i.run("chromium --version").then(i.findVersion) : Promise.resolve("N/A")).then((function(e3) {
|
|
281
|
+
return i.determineFound("Chromium", e3, "N/A");
|
|
282
|
+
}));
|
|
283
|
+
}, getEdgeInfo: function() {
|
|
284
|
+
var e3;
|
|
285
|
+
if (i.log("trace", "getEdgeInfo"), i.isWindows && o.release().split(".")[0] === "10") {
|
|
286
|
+
var t3 = { Spartan: "Microsoft.MicrosoftEdge", Chromium: "Microsoft.MicrosoftEdge.Stable", ChromiumDev: "Microsoft.MicrosoftEdge.Dev" };
|
|
287
|
+
e3 = Promise.all(Object.keys(t3).map((function(e4) {
|
|
288
|
+
return (function(e5, t4) {
|
|
289
|
+
return i.run(`powershell get-appxpackage ${e5}`).then((function(e6) {
|
|
290
|
+
if (i.findVersion(e6) !== "") return `${t4} (${i.findVersion(e6)})`;
|
|
291
|
+
}));
|
|
292
|
+
})(t3[e4], e4);
|
|
293
|
+
})).filter((function(e4) {
|
|
294
|
+
return e4 !== void 0;
|
|
295
|
+
})));
|
|
296
|
+
} else {
|
|
297
|
+
if (!i.isMacOS) return Promise.resolve("N/A");
|
|
298
|
+
e3 = i.getDarwinApplicationVersion(i.browserBundleIdentifiers["Microsoft Edge"]);
|
|
299
|
+
}
|
|
300
|
+
return e3.then((function(e4) {
|
|
301
|
+
return i.determineFound("Edge", Array.isArray(e4) ? e4.filter((function(e5) {
|
|
302
|
+
return e5 !== void 0;
|
|
303
|
+
})) : e4, i.NA);
|
|
304
|
+
}));
|
|
305
|
+
}, getFirefoxInfo: function() {
|
|
306
|
+
return i.log("trace", "getFirefoxInfo"), a("Firefox", i.browserBundleIdentifiers.Firefox, "Mozilla Firefox/firefox.exe");
|
|
307
|
+
}, getFirefoxDeveloperEditionInfo: function() {
|
|
308
|
+
return i.log("trace", "getFirefoxDeveloperEditionInfo"), a("Firefox Developer Edition", i.browserBundleIdentifiers["Firefox Developer Edition"], "Firefox Developer Edition/firefox.exe");
|
|
309
|
+
}, getFirefoxNightlyInfo: function() {
|
|
310
|
+
return i.log("trace", "getFirefoxNightlyInfo"), (i.isLinux ? i.run("firefox-trunk --version").then((function(e3) {
|
|
311
|
+
return e3.replace(/^.* ([^ ]*)/g, "$1");
|
|
312
|
+
})) : i.isMacOS ? i.getDarwinApplicationVersion(i.browserBundleIdentifiers["Firefox Nightly"]) : Promise.resolve("N/A")).then((function(e3) {
|
|
313
|
+
return i.determineFound("Firefox Nightly", e3, "N/A");
|
|
314
|
+
}));
|
|
315
|
+
}, getInternetExplorerInfo: function() {
|
|
316
|
+
var e3;
|
|
317
|
+
if (i.log("trace", "getInternetExplorerInfo"), i.isWindows) {
|
|
318
|
+
var t3 = [process.env.SYSTEMDRIVE || "C:", "Program Files", "Internet Explorer", "iexplore.exe"].join("\\\\");
|
|
319
|
+
e3 = i.run(`wmic datafile where "name='${t3}'" get Version`).then(i.findVersion);
|
|
320
|
+
} else e3 = Promise.resolve("N/A");
|
|
321
|
+
return e3.then((function(e4) {
|
|
322
|
+
return i.determineFound("Internet Explorer", e4, "N/A");
|
|
323
|
+
}));
|
|
324
|
+
}, getSafariTechnologyPreviewInfo: function() {
|
|
325
|
+
return i.log("trace", "getSafariTechnologyPreviewInfo"), i.getDarwinApplicationVersion(i.browserBundleIdentifiers["Safari Technology Preview"]).then((function(e3) {
|
|
326
|
+
return i.determineFound("Safari Technology Preview", e3, "N/A");
|
|
327
|
+
}));
|
|
328
|
+
}, getSafariInfo: function() {
|
|
329
|
+
return i.log("trace", "getSafariInfo"), i.getDarwinApplicationVersion(i.browserBundleIdentifiers.Safari).then((function(e3) {
|
|
330
|
+
return i.determineFound("Safari", e3, "N/A");
|
|
331
|
+
}));
|
|
332
|
+
} };
|
|
333
|
+
}, 6620: (e2, t2, n2) => {
|
|
334
|
+
"use strict";
|
|
335
|
+
n2(7360), n2(5888);
|
|
336
|
+
var r = n2(224);
|
|
337
|
+
e2.exports = { getMongoDBInfo: function() {
|
|
338
|
+
return r.log("trace", "getMongoDBInfo"), Promise.all([r.run("mongo --version").then(r.findVersion), r.which("mongo")]).then((function(e3) {
|
|
339
|
+
return r.determineFound("MongoDB", e3[0], e3[1]);
|
|
340
|
+
}));
|
|
341
|
+
}, getMySQLInfo: function() {
|
|
342
|
+
return r.log("trace", "getMySQLInfo"), Promise.all([r.run("mysql --version").then((function(e3) {
|
|
343
|
+
return `${r.findVersion(e3, null, 1)}${e3.includes("MariaDB") ? " (MariaDB)" : ""}`;
|
|
344
|
+
})), r.which("mysql")]).then((function(e3) {
|
|
345
|
+
return r.determineFound("MySQL", e3[0], e3[1]);
|
|
346
|
+
}));
|
|
347
|
+
}, getPostgreSQLInfo: function() {
|
|
348
|
+
return r.log("trace", "getPostgreSQLInfo"), Promise.all([r.run("postgres --version").then(r.findVersion), r.which("postgres")]).then((function(e3) {
|
|
349
|
+
return r.determineFound("PostgreSQL", e3[0], e3[1]);
|
|
350
|
+
}));
|
|
351
|
+
}, getSQLiteInfo: function() {
|
|
352
|
+
return r.log("trace", "getSQLiteInfo"), Promise.all([r.run("sqlite3 --version").then(r.findVersion), r.which("sqlite3")]).then((function(e3) {
|
|
353
|
+
return r.determineFound("SQLite", e3[0], e3[1]);
|
|
354
|
+
}));
|
|
355
|
+
} };
|
|
356
|
+
}, 3224: (e2, t2, n2) => {
|
|
357
|
+
"use strict";
|
|
358
|
+
n2(3708), n2(8412), n2(5888);
|
|
359
|
+
var r = n2(7072), o = n2(224);
|
|
360
|
+
e2.exports = { getAndroidStudioInfo: function() {
|
|
361
|
+
var e3 = Promise.resolve("N/A");
|
|
362
|
+
if (o.isMacOS) {
|
|
363
|
+
var t3 = [r.join("/", "Applications", "Android Studio.app", "Contents", "Info.plist"), r.join(process.env.HOME, "Applications", "Android Studio.app", "Contents", "Info.plist"), r.join("/", "Applications", "JetBrains Toolbox", "Android Studio.app", "Contents", "Info.plist"), r.join(process.env.HOME, "Applications", "JetBrains Toolbox", "Android Studio.app", "Contents", "Info.plist")];
|
|
364
|
+
e3 = Promise.all(t3.map((function(e4) {
|
|
365
|
+
return o.fileExists(e4).then((function(t4) {
|
|
366
|
+
if (!t4) return null;
|
|
367
|
+
var n3 = o.generatePlistBuddyCommand(e4.replace(/ /g, "\\ "), ["CFBundleShortVersionString", "CFBundleVersion"]);
|
|
368
|
+
return o.run(n3).then((function(e5) {
|
|
369
|
+
return e5.split(`
|
|
370
|
+
`).join(" ");
|
|
371
|
+
}));
|
|
372
|
+
}));
|
|
373
|
+
}))).then((function(e4) {
|
|
374
|
+
return e4.find((function(e5) {
|
|
375
|
+
return e5 !== null;
|
|
376
|
+
})) || o.NotFound;
|
|
377
|
+
}));
|
|
378
|
+
} else o.isLinux ? e3 = Promise.all([o.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(o.findVersion), o.run("cat /opt/android-studio/build.txt")]).then((function(e4) {
|
|
379
|
+
return `${e4[0]} ${e4[1]}`.trim() || o.NotFound;
|
|
380
|
+
})) : o.isWindows && (e3 = Promise.all([o.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then((function(e4) {
|
|
381
|
+
return e4.replace(/(\r\n|\n|\r)/gm, "");
|
|
382
|
+
})), o.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then((function(e4) {
|
|
383
|
+
return e4.replace(/(\r\n|\n|\r)/gm, "");
|
|
384
|
+
}))]).then((function(e4) {
|
|
385
|
+
return `${e4[0]} ${e4[1]}`.trim() || o.NotFound;
|
|
386
|
+
})));
|
|
387
|
+
return e3.then((function(e4) {
|
|
388
|
+
return o.determineFound("Android Studio", e4);
|
|
389
|
+
}));
|
|
390
|
+
}, getAtomInfo: function() {
|
|
391
|
+
return o.log("trace", "getAtomInfo"), Promise.all([o.getDarwinApplicationVersion(o.ideBundleIdentifiers.Atom), "N/A"]).then((function(e3) {
|
|
392
|
+
return o.determineFound("Atom", e3[0], e3[1]);
|
|
393
|
+
}));
|
|
394
|
+
}, getEmacsInfo: function() {
|
|
395
|
+
return o.log("trace", "getEmacsInfo"), o.isMacOS || o.isLinux ? Promise.all([o.run("emacs --version").then(o.findVersion), o.which("emacs")]).then((function(e3) {
|
|
396
|
+
return o.determineFound("Emacs", e3[0], e3[1]);
|
|
397
|
+
})) : Promise.resolve(["Emacs", "N/A"]);
|
|
398
|
+
}, getIntelliJInfo: function() {
|
|
399
|
+
return o.log("trace", "getIntelliJInfo"), o.getDarwinApplicationVersion(o.ideBundleIdentifiers.IntelliJ).then((function(e3) {
|
|
400
|
+
return o.determineFound("IntelliJ", e3);
|
|
401
|
+
}));
|
|
402
|
+
}, getNanoInfo: function() {
|
|
403
|
+
return o.log("trace", "getNanoInfo"), o.isLinux ? Promise.all([o.run("nano --version").then(o.findVersion), o.which("nano")]).then((function(e3) {
|
|
404
|
+
return o.determineFound("Nano", e3[0], e3[1]);
|
|
405
|
+
})) : Promise.resolve(["Nano", "N/A"]);
|
|
406
|
+
}, getNvimInfo: function() {
|
|
407
|
+
return o.log("trace", "getNvimInfo"), o.isMacOS || o.isLinux ? Promise.all([o.run("nvim --version").then(o.findVersion), o.which("nvim")]).then((function(e3) {
|
|
408
|
+
return o.determineFound("Nvim", e3[0], e3[1]);
|
|
409
|
+
})) : Promise.resolve(["Vim", "N/A"]);
|
|
410
|
+
}, getPhpStormInfo: function() {
|
|
411
|
+
return o.log("trace", "getPhpStormInfo"), o.getDarwinApplicationVersion(o.ideBundleIdentifiers.PhpStorm).then((function(e3) {
|
|
412
|
+
return o.determineFound("PhpStorm", e3);
|
|
413
|
+
}));
|
|
414
|
+
}, getSublimeTextInfo: function() {
|
|
415
|
+
return o.log("trace", "getSublimeTextInfo"), Promise.all([o.run("subl --version").then((function(e3) {
|
|
416
|
+
return o.findVersion(e3, /\d+/);
|
|
417
|
+
})), o.which("subl")]).then((function(e3) {
|
|
418
|
+
return e3[0] === "" && o.isMacOS ? (o.log("trace", "getSublimeTextInfo using plist"), Promise.all([o.getDarwinApplicationVersion(o.ideBundleIdentifiers["Sublime Text"]), "N/A"])) : e3;
|
|
419
|
+
})).then((function(e3) {
|
|
420
|
+
return o.determineFound("Sublime Text", e3[0], e3[1]);
|
|
421
|
+
}));
|
|
422
|
+
}, getVimInfo: function() {
|
|
423
|
+
return o.log("trace", "getVimInfo"), o.isMacOS || o.isLinux ? Promise.all([o.run("vim --version").then(o.findVersion), o.which("vim")]).then((function(e3) {
|
|
424
|
+
return o.determineFound("Vim", e3[0], e3[1]);
|
|
425
|
+
})) : Promise.resolve(["Vim", "N/A"]);
|
|
426
|
+
}, getVSCodeInfo: function() {
|
|
427
|
+
return o.log("trace", "getVSCodeInfo"), Promise.all([o.run("code --version").then(o.findVersion), o.which("code")]).then((function(e3) {
|
|
428
|
+
return o.determineFound("VSCode", e3[0], e3[1]);
|
|
429
|
+
}));
|
|
430
|
+
}, getCursorInfo: function() {
|
|
431
|
+
return o.log("trace", "getCursorInfo"), Promise.all([o.run("cursor --version").then(o.findVersion), o.which("cursor")]).then((function(e3) {
|
|
432
|
+
return o.determineFound("Cursor", e3[0], e3[1]);
|
|
433
|
+
}));
|
|
434
|
+
}, getClaudeCodeInfo: function() {
|
|
435
|
+
return o.log("trace", "getClaudeCodeInfo"), Promise.all([o.run("claude --version").then(o.findVersion), o.which("claude")]).then((function(e3) {
|
|
436
|
+
return o.determineFound("Claude Code", e3[0], e3[1]);
|
|
437
|
+
}));
|
|
438
|
+
}, getopencodeInfo: function() {
|
|
439
|
+
return o.log("trace", "getopencodeInfo"), Promise.all([o.run("opencode --version").then(o.findVersion), o.which("opencode")]).then((function(e3) {
|
|
440
|
+
return o.determineFound("opencode", e3[0], e3[1]);
|
|
441
|
+
}));
|
|
442
|
+
}, getCodexInfo: function() {
|
|
443
|
+
return o.log("trace", "getCodexInfo"), Promise.all([o.run("codex --version").then(o.findVersion), o.which("codex")]).then((function(e3) {
|
|
444
|
+
return o.determineFound("Codex", e3[0], e3[1]);
|
|
445
|
+
}));
|
|
446
|
+
}, getVisualStudioInfo: function() {
|
|
447
|
+
return o.log("trace", "getVisualStudioInfo"), o.isWindows ? o.run(`"${process.env["ProgramFiles(x86)"]}/Microsoft Visual Studio/Installer/vswhere.exe" -format json -prerelease`).then((function(e3) {
|
|
448
|
+
var t3 = JSON.parse(e3).map((function(e4) {
|
|
449
|
+
return { Version: e4.installationVersion, DisplayName: e4.displayName };
|
|
450
|
+
}));
|
|
451
|
+
return o.determineFound("Visual Studio", t3.map((function(e4) {
|
|
452
|
+
return `${e4.Version} (${e4.DisplayName})`;
|
|
453
|
+
})));
|
|
454
|
+
})).catch((function() {
|
|
455
|
+
return Promise.resolve(["Visual Studio", o.NotFound]);
|
|
456
|
+
})) : Promise.resolve(["Visual Studio", o.NA]);
|
|
457
|
+
}, getWebStormInfo: function() {
|
|
458
|
+
return o.log("trace", "getWebStormInfo"), o.getDarwinApplicationVersion(o.ideBundleIdentifiers.WebStorm).then((function(e3) {
|
|
459
|
+
return o.determineFound("WebStorm", e3);
|
|
460
|
+
}));
|
|
461
|
+
}, getXcodeInfo: function() {
|
|
462
|
+
return o.log("trace", "getXcodeInfo"), o.isMacOS ? Promise.all([o.which("xcodebuild").then((function(e3) {
|
|
463
|
+
return o.run(e3 + " -version");
|
|
464
|
+
})).then((function(e3) {
|
|
465
|
+
return `${o.findVersion(e3)}/${e3.split("Build version ")[1]}`;
|
|
466
|
+
})), o.which("xcodebuild")]).then((function(e3) {
|
|
467
|
+
return o.determineFound("Xcode", e3[0], e3[1]);
|
|
468
|
+
})) : Promise.resolve(["Xcode", "N/A"]);
|
|
469
|
+
} };
|
|
470
|
+
}, 9892: (e2, t2, n2) => {
|
|
471
|
+
"use strict";
|
|
472
|
+
function r(e3, t3, n3) {
|
|
473
|
+
return t3 in e3 ? Object.defineProperty(e3, t3, { value: n3, enumerable: !0, configurable: !0, writable: !0 }) : e3[t3] = n3, e3;
|
|
474
|
+
}
|
|
475
|
+
n2(5584);
|
|
476
|
+
var o = n2(6304), i = n2(224), s = n2(6732), a = n2(2524), c = n2(6620), u = n2(3224), l = n2(6436), f = n2(760), p = n2(2060), h = n2(7508), d = n2(9284), m = n2(8144), g = n2(5882), v = n2(9676);
|
|
477
|
+
e2.exports = Object.assign({}, i, o, (function(e3) {
|
|
478
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
479
|
+
var n3 = arguments[t3] != null ? arguments[t3] : {}, o2 = Object.keys(n3);
|
|
480
|
+
typeof Object.getOwnPropertySymbols == "function" && (o2 = o2.concat(Object.getOwnPropertySymbols(n3).filter((function(e4) {
|
|
481
|
+
return Object.getOwnPropertyDescriptor(n3, e4).enumerable;
|
|
482
|
+
})))), o2.forEach((function(t4) {
|
|
483
|
+
r(e3, t4, n3[t4]);
|
|
484
|
+
}));
|
|
485
|
+
}
|
|
486
|
+
return e3;
|
|
487
|
+
})({}, s, a, c, u, l, f, p, h, d, m, g, v));
|
|
488
|
+
}, 6436: (e2, t2, n2) => {
|
|
489
|
+
"use strict";
|
|
490
|
+
n2(5888);
|
|
491
|
+
var r = n2(224);
|
|
492
|
+
e2.exports = { getBashInfo: function() {
|
|
493
|
+
return r.log("trace", "getBashInfo"), Promise.all([r.run("bash --version").then(r.findVersion), r.which("bash")]).then((function(e3) {
|
|
494
|
+
return r.determineFound("Bash", e3[0], e3[1]);
|
|
495
|
+
}));
|
|
496
|
+
}, getElixirInfo: function() {
|
|
497
|
+
return r.log("trace", "getElixirInfo"), Promise.all([r.run("elixir --version").then((function(e3) {
|
|
498
|
+
return r.findVersion(e3, /[Elixir]+\s([\d+.[\d+|.]+)/, 1);
|
|
499
|
+
})), r.which("elixir")]).then((function(e3) {
|
|
500
|
+
return Promise.resolve(r.determineFound("Elixir", e3[0], e3[1]));
|
|
501
|
+
}));
|
|
502
|
+
}, getErlangInfo: function() {
|
|
503
|
+
return r.log("trace", "getErlangInfo"), Promise.all([r.run(`erl -eval "{ok, Version} = file:read_file(filename:join([code:root_dir(), 'releases', erlang:system_info(otp_release), 'OTP_VERSION'])), io:fwrite(Version), halt()." -noshell`).then(r.findVersion), r.which("erl")]).then((function(e3) {
|
|
504
|
+
return Promise.resolve(r.determineFound("Erlang", e3[0], e3[1]));
|
|
505
|
+
}));
|
|
506
|
+
}, getGoInfo: function() {
|
|
507
|
+
return r.log("trace", "getGoInfo"), Promise.all([r.run("go version").then(r.findVersion), r.which("go")]).then((function(e3) {
|
|
508
|
+
return r.determineFound("Go", e3[0], e3[1]);
|
|
509
|
+
}));
|
|
510
|
+
}, getJavaInfo: function() {
|
|
511
|
+
return r.log("trace", "getJavaInfo"), Promise.all([r.run("javac -version", { unify: !0 }).then((function(e3) {
|
|
512
|
+
return r.findVersion(e3, /\d+\.[\w+|.|_|-]+/);
|
|
513
|
+
})), r.which("javac")]).then((function(e3) {
|
|
514
|
+
return r.determineFound("Java", e3[0], e3[1]);
|
|
515
|
+
}));
|
|
516
|
+
}, getPerlInfo: function() {
|
|
517
|
+
return r.log("trace", "getPerlInfo"), Promise.all([r.run("perl -v").then(r.findVersion), r.which("perl")]).then((function(e3) {
|
|
518
|
+
return r.determineFound("Perl", e3[0], e3[1]);
|
|
519
|
+
}));
|
|
520
|
+
}, getPHPInfo: function() {
|
|
521
|
+
return r.log("trace", "getPHPInfo"), Promise.all([r.run("php -v").then(r.findVersion), r.which("php")]).then((function(e3) {
|
|
522
|
+
return r.determineFound("PHP", e3[0], e3[1]);
|
|
523
|
+
}));
|
|
524
|
+
}, getProtocInfo: function() {
|
|
525
|
+
return r.log("trace", "getProtocInfo"), Promise.all([r.run("protoc --version").then(r.findVersion), r.which("protoc")]).then((function(e3) {
|
|
526
|
+
return r.determineFound("Protoc", e3[0], e3[1]);
|
|
527
|
+
}));
|
|
528
|
+
}, getPythonInfo: function() {
|
|
529
|
+
return r.log("trace", "getPythonInfo"), Promise.all([r.run("python -V 2>&1").then(r.findVersion), r.which("python")]).then((function(e3) {
|
|
530
|
+
return r.determineFound("Python", e3[0], e3[1]);
|
|
531
|
+
}));
|
|
532
|
+
}, getPython3Info: function() {
|
|
533
|
+
return r.log("trace", "getPython3Info"), Promise.all([r.run("python3 -V 2>&1").then(r.findVersion), r.which("python3")]).then((function(e3) {
|
|
534
|
+
return r.determineFound("Python3", e3[0], e3[1]);
|
|
535
|
+
}));
|
|
536
|
+
}, getRInfo: function() {
|
|
537
|
+
return r.log("trace", "getRInfo"), Promise.all([r.run("R --version", { unify: !0 }).then(r.findVersion), r.which("R")]).then((function(e3) {
|
|
538
|
+
return r.determineFound("R", e3[0], e3[1]);
|
|
539
|
+
}));
|
|
540
|
+
}, getRubyInfo: function() {
|
|
541
|
+
return r.log("trace", "getRubyInfo"), Promise.all([r.run("ruby -v").then(r.findVersion), r.which("ruby")]).then((function(e3) {
|
|
542
|
+
return r.determineFound("Ruby", e3[0], e3[1]);
|
|
543
|
+
}));
|
|
544
|
+
}, getRustInfo: function() {
|
|
545
|
+
return r.log("trace", "getRustInfo"), Promise.all([r.run("rustc --version").then(r.findVersion), r.which("rustc")]).then((function(e3) {
|
|
546
|
+
return r.determineFound("Rust", e3[0], e3[1]);
|
|
547
|
+
}));
|
|
548
|
+
}, getZigInfo: function() {
|
|
549
|
+
return r.log("trace", "getZigInfo"), Promise.all([r.run("zig version").then(r.findVersion), r.which("zig")]).then((function(e3) {
|
|
550
|
+
return r.determineFound("Zig", e3[0], e3[1]);
|
|
551
|
+
}));
|
|
552
|
+
}, getScalaInfo: function() {
|
|
553
|
+
return r.log("trace", "getScalaInfo"), r.isMacOS || r.isLinux ? Promise.all([r.run("scalac -version").then(r.findVersion), r.which("scalac")]).then((function(e3) {
|
|
554
|
+
return r.determineFound("Scala", e3[0], e3[1]);
|
|
555
|
+
})) : Promise.resolve(["Scala", "N/A"]);
|
|
556
|
+
} };
|
|
557
|
+
}, 760: (e2, t2, n2) => {
|
|
558
|
+
"use strict";
|
|
559
|
+
n2(5888);
|
|
560
|
+
var r = n2(224);
|
|
561
|
+
e2.exports = { getAptInfo: function() {
|
|
562
|
+
return r.log("trace", "getAptInfo"), r.isLinux ? Promise.all([r.run("apt --version").then(r.findVersion), r.which("apt")]).then((function(e3) {
|
|
563
|
+
return r.determineFound("Apt", e3[0], e3[1]);
|
|
564
|
+
})) : Promise.all(["Apt", "N/A"]);
|
|
565
|
+
}, getCargoInfo: function() {
|
|
566
|
+
return r.log("trace", "getCargoInfo"), Promise.all([r.run("cargo --version").then(r.findVersion), r.which("cargo")]).then((function(e3) {
|
|
567
|
+
return r.determineFound("Cargo", e3[0], e3[1]);
|
|
568
|
+
}));
|
|
569
|
+
}, getCocoaPodsInfo: function() {
|
|
570
|
+
return r.log("trace", "getCocoaPodsInfo"), r.isMacOS ? Promise.all([r.run("pod --version").then(r.findVersion), r.which("pod")]).then((function(e3) {
|
|
571
|
+
return r.determineFound("CocoaPods", e3[0], e3[1]);
|
|
572
|
+
})) : Promise.all(["CocoaPods", "N/A"]);
|
|
573
|
+
}, getComposerInfo: function() {
|
|
574
|
+
return r.log("trace", "getComposerInfo"), Promise.all([r.run("composer --version").then(r.findVersion), r.which("composer").then(r.condensePath)]).then((function(e3) {
|
|
575
|
+
return r.determineFound("Composer", e3[0], e3[1]);
|
|
576
|
+
}));
|
|
577
|
+
}, getGradleInfo: function() {
|
|
578
|
+
return r.log("trace", "getGradleInfo"), Promise.all([r.run("gradle --version").then(r.findVersion), r.which("gradle").then(r.condensePath)]).then((function(e3) {
|
|
579
|
+
return r.determineFound("Gradle", e3[0], e3[1]);
|
|
580
|
+
}));
|
|
581
|
+
}, getHomebrewInfo: function() {
|
|
582
|
+
return r.log("trace", "getHomebrewInfo"), r.isMacOS || r.isLinux ? Promise.all([r.run("brew --version").then(r.findVersion), r.which("brew")]).then((function(e3) {
|
|
583
|
+
return r.determineFound("Homebrew", e3[0], e3[1]);
|
|
584
|
+
})) : Promise.all(["Homebrew", "N/A"]);
|
|
585
|
+
}, getMavenInfo: function() {
|
|
586
|
+
return r.log("trace", "getMavenInfo"), Promise.all([r.run("mvn --version").then(r.findVersion), r.which("mvn").then(r.condensePath)]).then((function(e3) {
|
|
587
|
+
return r.determineFound("Maven", e3[0], e3[1]);
|
|
588
|
+
}));
|
|
589
|
+
}, getpip2Info: function() {
|
|
590
|
+
return r.log("trace", "getpip2Info"), Promise.all([r.run("pip2 --version").then(r.findVersion), r.which("pip2").then(r.condensePath)]).then((function(e3) {
|
|
591
|
+
return r.determineFound("pip2", e3[0], e3[1]);
|
|
592
|
+
}));
|
|
593
|
+
}, getpip3Info: function() {
|
|
594
|
+
return r.log("trace", "getpip3Info"), Promise.all([r.run("pip3 --version").then(r.findVersion), r.which("pip3").then(r.condensePath)]).then((function(e3) {
|
|
595
|
+
return r.determineFound("pip3", e3[0], e3[1]);
|
|
596
|
+
}));
|
|
597
|
+
}, getRubyGemsInfo: function() {
|
|
598
|
+
return r.log("trace", "getRubyGemsInfo"), Promise.all([r.run("gem --version").then(r.findVersion), r.which("gem")]).then((function(e3) {
|
|
599
|
+
return r.determineFound("RubyGems", e3[0], e3[1]);
|
|
600
|
+
}));
|
|
601
|
+
}, getYumInfo: function() {
|
|
602
|
+
return r.log("trace", "getYumInfo"), r.isLinux ? Promise.all([r.run("yum --version").then(r.findVersion), r.which("yum")]).then((function(e3) {
|
|
603
|
+
return r.determineFound("Yum", e3[0], e3[1]);
|
|
604
|
+
})) : Promise.all(["Yum", "N/A"]);
|
|
605
|
+
} };
|
|
606
|
+
}, 2060: (e2, t2, n2) => {
|
|
607
|
+
"use strict";
|
|
608
|
+
n2(5888);
|
|
609
|
+
var r = n2(224), o = n2(7072);
|
|
610
|
+
e2.exports = { getYarnWorkspacesInfo: function() {
|
|
611
|
+
return r.log("trace", "getYarnWorkspacesInfo"), Promise.all([r.run("yarn -v"), r.getPackageJsonByPath("package.json").then((function(e3) {
|
|
612
|
+
return e3 && "workspaces" in e3;
|
|
613
|
+
}))]).then((function(e3) {
|
|
614
|
+
var t3 = "Yarn Workspaces";
|
|
615
|
+
return e3[0] && e3[1] ? Promise.resolve([t3, e3[0]]) : Promise.resolve([t3, "Not Found"]);
|
|
616
|
+
}));
|
|
617
|
+
}, getLernaInfo: function() {
|
|
618
|
+
return r.log("trace", "getLernaInfo"), Promise.all([r.getPackageJsonByName("lerna").then((function(e3) {
|
|
619
|
+
return e3 && e3.version;
|
|
620
|
+
})), r.fileExists(o.join(process.cwd(), "lerna.json"))]).then((function(e3) {
|
|
621
|
+
var t3 = "Lerna";
|
|
622
|
+
return e3[0] && e3[1] ? Promise.resolve([t3, e3[0]]) : Promise.resolve([t3, "Not Found"]);
|
|
623
|
+
}));
|
|
624
|
+
} };
|
|
625
|
+
}, 7508: (e2, t2, n2) => {
|
|
626
|
+
"use strict";
|
|
627
|
+
n2(4880), n2(5888), n2(3708);
|
|
628
|
+
var r = n2(8558), o = n2(2058), i = n2(7072), s = n2(224);
|
|
629
|
+
e2.exports = { getAndroidSDKInfo: function() {
|
|
630
|
+
return s.run("sdkmanager --list").then((function(e3) {
|
|
631
|
+
return !e3 && process.env.ANDROID_HOME ? s.run(`${process.env.ANDROID_HOME}/tools/bin/sdkmanager --list`) : e3;
|
|
632
|
+
})).then((function(e3) {
|
|
633
|
+
return !e3 && process.env.ANDROID_HOME ? s.run(`${process.env.ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --list`) : e3;
|
|
634
|
+
})).then((function(e3) {
|
|
635
|
+
return !e3 && s.isMacOS ? s.run("~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager --list") : e3;
|
|
636
|
+
})).then((function(e3) {
|
|
637
|
+
return !e3 && s.isMacOS ? s.run("~/Library/Android/sdk/tools/bin/sdkmanager --list") : e3;
|
|
638
|
+
})).then((function(e3) {
|
|
639
|
+
if (!e3 && s.isWindows) {
|
|
640
|
+
var t3 = i.join(r.homedir(), "AppData/Local/Android/Sdk/cmdline-tools/latest/bin/sdkmanager");
|
|
641
|
+
return s.run(`${t3} --list`);
|
|
642
|
+
}
|
|
643
|
+
return e3;
|
|
644
|
+
})).then((function(e3) {
|
|
645
|
+
var t3 = s.parseSDKManagerOutput(e3), n3 = function(e4) {
|
|
646
|
+
var t4, n4 = i.join(e4, "source.properties");
|
|
647
|
+
try {
|
|
648
|
+
t4 = o.readFileSync(n4, "utf8");
|
|
649
|
+
} catch (e5) {
|
|
650
|
+
if (e5.code === "ENOENT") return;
|
|
651
|
+
throw e5;
|
|
652
|
+
}
|
|
653
|
+
for (var r3 = t4.split(`
|
|
654
|
+
`), s2 = 0; s2 < r3.length; s2 += 1) {
|
|
655
|
+
var a = r3[s2].split("=");
|
|
656
|
+
if (a.length === 2 && a[0].trim() === "Pkg.Revision") return a[1].trim();
|
|
657
|
+
}
|
|
658
|
+
}, r2 = process.env.ANDROID_NDK ? n3(process.env.ANDROID_NDK) : process.env.ANDROID_NDK_HOME ? n3(process.env.ANDROID_NDK_HOME) : process.env.ANDROID_HOME ? n3(i.join(process.env.ANDROID_HOME, "ndk-bundle")) : void 0;
|
|
659
|
+
return t3.buildTools.length || t3.apiLevels.length || t3.systemImages.length || r2 ? Promise.resolve(["Android SDK", { "API Levels": t3.apiLevels || s.NotFound, "Build Tools": t3.buildTools || s.NotFound, "System Images": t3.systemImages || s.NotFound, "Android NDK": r2 || s.NotFound }]) : Promise.resolve(["Android SDK", s.NotFound]);
|
|
660
|
+
}));
|
|
661
|
+
}, getiOSSDKInfo: function() {
|
|
662
|
+
return s.isMacOS ? s.run("xcodebuild -showsdks").then((function(e3) {
|
|
663
|
+
return e3.match(/[\w]+\s[\d|.]+/g);
|
|
664
|
+
})).then(s.uniq).then((function(e3) {
|
|
665
|
+
return e3.length ? ["iOS SDK", { Platforms: e3 }] : ["iOS SDK", s.NotFound];
|
|
666
|
+
})) : Promise.resolve(["iOS SDK", "N/A"]);
|
|
667
|
+
}, getWindowsSDKInfo: function() {
|
|
668
|
+
if (s.log("trace", "getWindowsSDKInfo"), s.isWindows) {
|
|
669
|
+
var e3 = s.NotFound;
|
|
670
|
+
return s.run("reg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock").then((function(t3) {
|
|
671
|
+
e3 = t3.split(/[\r\n]/g).slice(1).filter((function(e4) {
|
|
672
|
+
return e4 !== "";
|
|
673
|
+
})).reduce((function(e4, t4) {
|
|
674
|
+
var n4 = t4.match(/[^\s]+/g);
|
|
675
|
+
return n4[2] !== "0x0" && n4[2] !== "0x1" || (n4[2] = n4[2] === "0x1" ? "Enabled" : "Disabled"), e4[n4[0]] = n4[2], e4;
|
|
676
|
+
}), {}), Object.keys(e3).length === 0 && (e3 = s.NotFound);
|
|
677
|
+
try {
|
|
678
|
+
var n3 = o.readdirSync(`${process.env["ProgramFiles(x86)"]}/Windows Kits/10/Platforms/UAP`);
|
|
679
|
+
e3.Versions = n3;
|
|
680
|
+
} catch {
|
|
681
|
+
}
|
|
682
|
+
return Promise.resolve(["Windows SDK", e3]);
|
|
683
|
+
}));
|
|
684
|
+
}
|
|
685
|
+
return Promise.resolve(["Windows SDK", s.NA]);
|
|
686
|
+
} };
|
|
687
|
+
}, 9284: (e2, t2, n2) => {
|
|
688
|
+
"use strict";
|
|
689
|
+
n2(5888);
|
|
690
|
+
var r = n2(224);
|
|
691
|
+
e2.exports = { getApacheInfo: function() {
|
|
692
|
+
return r.log("trace", "getApacheInfo"), r.isMacOS || r.isLinux ? Promise.all([r.run("apachectl -v").then(r.findVersion), r.which("apachectl")]).then((function(e3) {
|
|
693
|
+
return r.determineFound("Apache", e3[0], e3[1]);
|
|
694
|
+
})) : Promise.resolve(["Apache", "N/A"]);
|
|
695
|
+
}, getNginxInfo: function() {
|
|
696
|
+
return r.log("trace", "getNginxInfo"), r.isMacOS || r.isLinux ? Promise.all([r.run("nginx -v 2>&1").then(r.findVersion), r.which("nginx")]).then((function(e3) {
|
|
697
|
+
return r.determineFound("Nginx", e3[0], e3[1]);
|
|
698
|
+
})) : Promise.resolve(["Nginx", "N/A"]);
|
|
699
|
+
} };
|
|
700
|
+
}, 8144: (e2, t2, n2) => {
|
|
701
|
+
"use strict";
|
|
702
|
+
n2(3708), n2(4880), n2(5888);
|
|
703
|
+
var r = n2(2288), o = n2(224), i = n2(8558);
|
|
704
|
+
e2.exports = { getContainerInfo: function() {
|
|
705
|
+
return o.log("trace", "getContainerInfo"), o.isLinux ? Promise.all([o.fileExists("/.dockerenv"), o.readFile("/proc/self/cgroup")]).then((function(e3) {
|
|
706
|
+
return o.log("trace", "getContainerInfoThen", e3), Promise.resolve(["Container", e3[0] || e3[1] ? "Yes" : "N/A"]);
|
|
707
|
+
})).catch((function(e3) {
|
|
708
|
+
return o.log("trace", "getContainerInfoCatch", e3);
|
|
709
|
+
})) : Promise.resolve(["Container", "N/A"]);
|
|
710
|
+
}, getCPUInfo: function() {
|
|
711
|
+
var e3;
|
|
712
|
+
o.log("trace", "getCPUInfo");
|
|
713
|
+
try {
|
|
714
|
+
var t3 = i.cpus();
|
|
715
|
+
e3 = "(" + t3.length + ") " + i.arch() + " " + t3[0].model;
|
|
716
|
+
} catch {
|
|
717
|
+
e3 = "Unknown";
|
|
718
|
+
}
|
|
719
|
+
return Promise.all(["CPU", e3]);
|
|
720
|
+
}, getMemoryInfo: function() {
|
|
721
|
+
return o.log("trace", "getMemoryInfo"), Promise.all(["Memory", `${o.toReadableBytes(i.freemem())} / ${o.toReadableBytes(i.totalmem())}`]);
|
|
722
|
+
}, getOSInfo: function() {
|
|
723
|
+
var e3, t3;
|
|
724
|
+
if (o.log("trace", "getOSInfo"), o.isMacOS) e3 = o.run("sw_vers -productVersion ");
|
|
725
|
+
else if (o.isLinux) e3 = o.run("cat /etc/os-release").then((function(e4) {
|
|
726
|
+
var t4 = (e4 || "").match(/NAME="(.+)"/) || "", n4 = (e4 || "").match(/VERSION="(.+)"/) || ["", ""], r2 = n4 !== null ? n4[1] : "";
|
|
727
|
+
return `${t4[1]} ${r2}`.trim() || "";
|
|
728
|
+
}));
|
|
729
|
+
else if (o.isWindows) {
|
|
730
|
+
e3 = Promise.resolve(i.release());
|
|
731
|
+
var n3 = i.release().split(".");
|
|
732
|
+
n3[0] === "10" && n3[1] === "0" && n3[2] >= 22e3 && (t3 = "Windows 11");
|
|
733
|
+
} else e3 = Promise.resolve();
|
|
734
|
+
return e3.then((function(e4) {
|
|
735
|
+
return t3 = t3 || r(i.platform(), i.release()), e4 && (t3 += ` ${e4}`), ["OS", t3];
|
|
736
|
+
}));
|
|
737
|
+
}, getShellInfo: function() {
|
|
738
|
+
if (o.log("trace", "getShellInfo", process.env), o.isMacOS || o.isLinux) {
|
|
739
|
+
var e3 = process.env.SHELL || o.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1"), t3 = `${e3} --version 2>&1`;
|
|
740
|
+
return e3.match("/bin/ash") && (t3 = `${e3} --help 2>&1`), Promise.all([o.run(t3).then(o.findVersion), o.which(e3)]).then((function(e4) {
|
|
741
|
+
return o.determineFound("Shell", e4[0] || "Unknown", e4[1]);
|
|
742
|
+
}));
|
|
743
|
+
}
|
|
744
|
+
return Promise.resolve(["Shell", "N/A"]);
|
|
745
|
+
}, getGLibcInfo: function() {
|
|
746
|
+
return o.log("trace", "getGLibc"), o.isLinux ? Promise.all([o.run("ldd --version").then(o.findVersion)]).then((function(e3) {
|
|
747
|
+
return o.determineFound("GLibc", e3[0] || "Unknown");
|
|
748
|
+
})) : Promise.resolve(["GLibc", "N/A"]);
|
|
749
|
+
} };
|
|
750
|
+
}, 5882: (e2, t2, n2) => {
|
|
751
|
+
"use strict";
|
|
752
|
+
n2(5888);
|
|
753
|
+
var r = n2(224);
|
|
754
|
+
e2.exports = { getBazelInfo: function() {
|
|
755
|
+
return r.log("trace", "getBazelInfo"), Promise.all([r.run("bazel --version").then(r.findVersion), r.which("bazel")]).then((function(e3) {
|
|
756
|
+
return r.determineFound("Bazel", e3[0], e3[1]);
|
|
757
|
+
}));
|
|
758
|
+
}, getCMakeInfo: function() {
|
|
759
|
+
return r.log("trace", "getCMakeInfo"), Promise.all([r.run("cmake --version").then(r.findVersion), r.which("cmake")]).then((function(e3) {
|
|
760
|
+
return r.determineFound("CMake", e3[0], e3[1]);
|
|
761
|
+
}));
|
|
762
|
+
}, getGCCInfo: function() {
|
|
763
|
+
return r.log("trace", "getGCCInfo"), r.isMacOS || r.isLinux ? Promise.all([r.run("gcc -v 2>&1").then(r.findVersion), r.which("gcc")]).then((function(e3) {
|
|
764
|
+
return r.determineFound("GCC", e3[0], e3[1]);
|
|
765
|
+
})) : Promise.resolve(["GCC", "N/A"]);
|
|
766
|
+
}, getClangInfo: function() {
|
|
767
|
+
return r.log("trace", "getClangInfo"), Promise.all([r.run("clang --version").then(r.findVersion), r.which("clang")]).then((function(e3) {
|
|
768
|
+
return r.determineFound("Clang", e3[0], e3[1]);
|
|
769
|
+
}));
|
|
770
|
+
}, getGitInfo: function() {
|
|
771
|
+
return r.log("trace", "getGitInfo"), Promise.all([r.run("git --version").then(r.findVersion), r.which("git")]).then((function(e3) {
|
|
772
|
+
return r.determineFound("Git", e3[0], e3[1]);
|
|
773
|
+
}));
|
|
774
|
+
}, getGitLFSInfo: function() {
|
|
775
|
+
return r.log("trace", "getGitLFSInfo"), Promise.all([r.run("git lfs version").then(r.findVersion), r.which("git-lfs")]).then((function(e3) {
|
|
776
|
+
return r.determineFound("Git LFS", e3[0], e3[1]);
|
|
777
|
+
}));
|
|
778
|
+
}, getMakeInfo: function() {
|
|
779
|
+
return r.log("trace", "getMakeInfo"), r.isMacOS || r.isLinux ? Promise.all([r.run("make --version").then(r.findVersion), r.which("make")]).then((function(e3) {
|
|
780
|
+
return r.determineFound("Make", e3[0], e3[1]);
|
|
781
|
+
})) : Promise.resolve(["Make", "N/A"]);
|
|
782
|
+
}, getNinjaInfo: function() {
|
|
783
|
+
return r.log("trace", "getNinjaInfo"), Promise.all([r.run("ninja --version").then(r.findVersion), r.which("ninja")]).then((function(e3) {
|
|
784
|
+
return r.determineFound("Ninja", e3[0], e3[1]);
|
|
785
|
+
}));
|
|
786
|
+
}, getMercurialInfo: function() {
|
|
787
|
+
return r.log("trace", "getMercurialInfo"), r.isMacOS || r.isLinux ? Promise.all([r.run("hg --version").then(r.findVersion), r.which("hg")]).then((function(e3) {
|
|
788
|
+
return r.determineFound("Mercurial", e3[0], e3[1]);
|
|
789
|
+
})) : Promise.resolve(["Mercurial", "N/A"]);
|
|
790
|
+
}, getSubversionInfo: function() {
|
|
791
|
+
return r.log("trace", "getSubversionInfo"), r.isMacOS || r.isLinux ? Promise.all([r.run("svn --version").then(r.findVersion), r.which("svn")]).then((function(e3) {
|
|
792
|
+
return r.determineFound("Subversion", e3[0], e3[1]);
|
|
793
|
+
})) : Promise.resolve(["Subversion", "N/A"]);
|
|
794
|
+
}, getFFmpegInfo: function() {
|
|
795
|
+
return r.log("trace", "getFFmpegInfo"), Promise.all([r.run("ffmpeg -version").then(r.findVersion), r.which("ffmpeg")]).then((function(e3) {
|
|
796
|
+
return r.determineFound("FFmpeg", e3[0], e3[1]);
|
|
797
|
+
}));
|
|
798
|
+
}, getCurlInfo: function() {
|
|
799
|
+
return r.log("trace", "getCurlInfo"), Promise.all([r.run("curl --version").then(r.findVersion), r.which("curl")]).then((function(e3) {
|
|
800
|
+
return r.determineFound("Curl", e3[0], e3[1]);
|
|
801
|
+
}));
|
|
802
|
+
}, getOpenSSLInfo: function() {
|
|
803
|
+
return r.log("trace", "getOpenSSLInfo"), Promise.all([r.run("openssl version").then(r.findVersion), r.which("openssl")]).then((function(e3) {
|
|
804
|
+
return r.determineFound("OpenSSL", e3[0], e3[1]);
|
|
805
|
+
}));
|
|
806
|
+
}, getccacheInfo: function() {
|
|
807
|
+
return r.log("trace", "getccacheInfo"), Promise.all([r.run("ccache -V").then(r.findVersion), r.which("ccache")]).then((function(e3) {
|
|
808
|
+
return r.determineFound("ccache", e3[0], e3[1]);
|
|
809
|
+
}));
|
|
810
|
+
}, get7zInfo: function() {
|
|
811
|
+
r.log("trace", "get7zInfo");
|
|
812
|
+
var e3 = ["7z", "7zz"], t3 = function() {
|
|
813
|
+
return Promise.all(e3.map((function(e4) {
|
|
814
|
+
return r.which(e4);
|
|
815
|
+
}))).then((function(t4) {
|
|
816
|
+
var n3 = t4.findIndex(Boolean);
|
|
817
|
+
return n3 >= 0 ? { bin: e3[n3], path: t4[n3] } : null;
|
|
818
|
+
}));
|
|
819
|
+
};
|
|
820
|
+
return r.isWindows ? r.windowsExeExists("7-Zip/7z.exe").then((function(e4) {
|
|
821
|
+
return e4 ? Promise.all([r.run(`powershell "& '${e4}' i | Write-Output"`).then(r.findVersion), Promise.resolve(e4)]).then((function(e5) {
|
|
822
|
+
return r.determineFound("7z", e5[0], e5[1]);
|
|
823
|
+
})) : t3().then((function(e5) {
|
|
824
|
+
return e5 ? Promise.all([r.run(`${e5.bin} i`).then(r.findVersion), Promise.resolve(e5.path)]).then((function(e6) {
|
|
825
|
+
return r.determineFound("7z", e6[0], e6[1]);
|
|
826
|
+
})) : r.determineFound("7z", "", void 0);
|
|
827
|
+
}));
|
|
828
|
+
})) : t3().then((function(e4) {
|
|
829
|
+
return e4 ? Promise.all([r.run(`${e4.bin} i`).then(r.findVersion), Promise.resolve(e4.path)]).then((function(e5) {
|
|
830
|
+
return r.determineFound("7z", e5[0], e5[1]);
|
|
831
|
+
})) : r.determineFound("7z", "", void 0);
|
|
832
|
+
}));
|
|
833
|
+
}, getClashMetaInfo: function() {
|
|
834
|
+
r.log("trace", "getClashMetaInfo");
|
|
835
|
+
var e3 = ["mihomo"];
|
|
836
|
+
return Promise.all(e3.map((function(e4) {
|
|
837
|
+
return r.which(e4);
|
|
838
|
+
}))).then((function(t3) {
|
|
839
|
+
var n3 = t3.findIndex(Boolean);
|
|
840
|
+
return n3 >= 0 ? { bin: e3[n3], path: t3[n3] } : null;
|
|
841
|
+
})).then((function(e4) {
|
|
842
|
+
return e4 ? Promise.all([r.run(`${e4.bin} -v`).then(r.findVersion), Promise.resolve(e4.path)]).then((function(e5) {
|
|
843
|
+
return r.determineFound("Clash Meta", e5[0], e5[1]);
|
|
844
|
+
})) : r.determineFound("Clash Meta", "", void 0);
|
|
845
|
+
}));
|
|
846
|
+
}, getCalibreInfo: function() {
|
|
847
|
+
return r.log("trace", "getCalibreInfo"), Promise.all([r.run("ebook-convert --version").then(r.findVersion), r.which("calibre")]).then((function(e3) {
|
|
848
|
+
return r.determineFound("Calibre", e3[0], e3[1]);
|
|
849
|
+
}));
|
|
850
|
+
} };
|
|
851
|
+
}, 9676: (e2, t2, n2) => {
|
|
852
|
+
"use strict";
|
|
853
|
+
n2(5888);
|
|
854
|
+
var r = n2(224);
|
|
855
|
+
e2.exports = { getDockerInfo: function() {
|
|
856
|
+
return r.log("trace", "getDockerInfo"), Promise.all([r.run("docker --version").then(r.findVersion), r.which("docker")]).then((function(e3) {
|
|
857
|
+
return r.determineFound("Docker", e3[0], e3[1]);
|
|
858
|
+
}));
|
|
859
|
+
}, getDockerComposeInfo: function() {
|
|
860
|
+
return r.log("trace", "getDockerComposeInfo"), Promise.all([r.run("docker-compose --version").then(r.findVersion), r.which("docker-compose")]).then((function(e3) {
|
|
861
|
+
return r.determineFound("Docker Compose", e3[0], e3[1]);
|
|
862
|
+
}));
|
|
863
|
+
}, getParallelsInfo: function() {
|
|
864
|
+
return r.log("trace", "getParallelsInfo"), Promise.all([r.run("prlctl --version").then(r.findVersion), r.which("prlctl")]).then((function(e3) {
|
|
865
|
+
return r.determineFound("Parallels", e3[0], e3[1]);
|
|
866
|
+
}));
|
|
867
|
+
}, getPodmanInfo: function() {
|
|
868
|
+
return r.log("trace", "getPodmanInfo"), Promise.all([r.run("podman --version").then(r.findVersion), r.which("podman")]).then((function(e3) {
|
|
869
|
+
return r.determineFound("Podman", e3[0], e3[1]);
|
|
870
|
+
}));
|
|
871
|
+
}, getVirtualBoxInfo: function() {
|
|
872
|
+
return r.log("trace", "getVirtualBoxInfo"), Promise.all([r.run("vboxmanage --version").then(r.findVersion), r.which("vboxmanage")]).then((function(e3) {
|
|
873
|
+
return r.determineFound("VirtualBox", e3[0], e3[1]);
|
|
874
|
+
}));
|
|
875
|
+
}, getVMwareFusionInfo: function() {
|
|
876
|
+
return r.log("trace", "getVMwareFusionInfo"), r.getDarwinApplicationVersion("com.vmware.fusion").then((function(e3) {
|
|
877
|
+
return r.determineFound("VMWare Fusion", e3, "N/A");
|
|
878
|
+
}));
|
|
879
|
+
} };
|
|
880
|
+
}, 6032: (e2) => {
|
|
881
|
+
"use strict";
|
|
882
|
+
e2.exports = { androidSystemImages: /system-images;([\S \t]+)/g, androidAPILevels: /platforms;android-(\d+)[\S\s]/g, androidBuildTools: /build-tools;([\d|.]+)[\S\s]/g };
|
|
883
|
+
}, 6304: (e2, t2, n2) => {
|
|
884
|
+
"use strict";
|
|
885
|
+
n2(8412), n2(9224), n2(4880), n2(5584), n2(5888), n2(7360), n2(3708);
|
|
886
|
+
var r = n2(808), o = n2(7072), i = n2(224), s = function(e3) {
|
|
887
|
+
var t3 = e3.split("node_modules" + o.sep), n3 = t3[t3.length - 1];
|
|
888
|
+
return n3.charAt(0) === "@" ? [n3.split(o.sep)[0], n3.split(o.sep)[1]].join("/") : n3.split(o.sep)[0];
|
|
889
|
+
};
|
|
890
|
+
e2.exports = { getnpmPackages: function(e3, t3) {
|
|
891
|
+
i.log("trace", "getnpmPackages"), t3 || (t3 = {});
|
|
892
|
+
var n3 = null, r2 = null;
|
|
893
|
+
return typeof e3 == "string" && (e3.includes("*") || e3.includes("?") || e3.includes("+") || e3.includes("!") ? n3 = e3 : e3 = e3.split(",")), Promise.all(["npmPackages", i.getPackageJsonByPath("package.json").then((function(e4) {
|
|
894
|
+
return Object.assign({}, (e4 || {}).devDependencies || {}, (e4 || {}).dependencies || {});
|
|
895
|
+
})).then((function(e4) {
|
|
896
|
+
return r2 = e4, t3.fullTree || t3.duplicates || n3 ? i.getAllPackageJsonPaths(n3) : Promise.resolve(Object.keys(e4 || []).map((function(e5) {
|
|
897
|
+
return o.join("node_modules", e5, "package.json");
|
|
898
|
+
})));
|
|
899
|
+
})).then((function(o2) {
|
|
900
|
+
return !n3 && typeof e3 != "boolean" || t3.fullTree ? Array.isArray(e3) ? Promise.resolve((o2 || []).filter((function(t4) {
|
|
901
|
+
return e3.includes(s(t4));
|
|
902
|
+
}))) : Promise.resolve(o2) : Promise.resolve((o2 || []).filter((function(e4) {
|
|
903
|
+
return Object.keys(r2 || []).includes(s(e4));
|
|
904
|
+
})));
|
|
905
|
+
})).then((function(e4) {
|
|
906
|
+
return Promise.all([e4, Promise.all(e4.map((function(e5) {
|
|
907
|
+
return i.getPackageJsonByPath(e5);
|
|
908
|
+
})))]);
|
|
909
|
+
})).then((function(e4) {
|
|
910
|
+
var n4 = e4[0], o2 = e4[1].reduce((function(e5, r3, o3) {
|
|
911
|
+
return r3 && r3.name && (e5[r3.name] || (e5[r3.name] = {}), t3.duplicates && (e5[r3.name].duplicates = i.uniq((e5[r3.name].duplicates || []).concat(r3.version))), (n4[o3].match(/node_modules/g) || []).length === 1 && (e5[r3.name].installed = r3.version)), e5;
|
|
912
|
+
}), {});
|
|
913
|
+
return Object.keys(o2).forEach((function(e5) {
|
|
914
|
+
o2[e5].duplicates && o2[e5].installed && (o2[e5].duplicates = o2[e5].duplicates.filter((function(t4) {
|
|
915
|
+
return t4 !== o2[e5].installed;
|
|
916
|
+
}))), r2[e5] && (o2[e5].wanted = r2[e5]);
|
|
917
|
+
})), o2;
|
|
918
|
+
})).then((function(n4) {
|
|
919
|
+
return t3.showNotFound && Array.isArray(e3) && e3.forEach((function(e4) {
|
|
920
|
+
n4[e4] || (n4[e4] = "Not Found");
|
|
921
|
+
})), n4;
|
|
922
|
+
})).then((function(e4) {
|
|
923
|
+
return i.sortObject(e4);
|
|
924
|
+
}))]);
|
|
925
|
+
}, getnpmGlobalPackages: function(e3, t3) {
|
|
926
|
+
i.log("trace", "getnpmGlobalPackages", e3);
|
|
927
|
+
var n3 = null;
|
|
928
|
+
return typeof e3 == "string" ? e3.includes("*") || e3.includes("?") || e3.includes("+") || e3.includes("!") ? n3 = e3 : e3 = e3.split(",") : Array.isArray(e3) || (e3 = !0), Promise.all(["npmGlobalPackages", i.run("npm get prefix --global").then((function(e4) {
|
|
929
|
+
return new Promise((function(t4, s2) {
|
|
930
|
+
return r(o.join(e4, i.isWindows ? "" : "lib", "node_modules", n3 || "{*,@*/*}", "package.json"), (function(e5, n4) {
|
|
931
|
+
e5 || t4(n4), s2(e5);
|
|
932
|
+
}));
|
|
933
|
+
}));
|
|
934
|
+
})).then((function(t4) {
|
|
935
|
+
return Promise.all(t4.filter((function(t5) {
|
|
936
|
+
return typeof e3 == "boolean" || n3 !== null || e3.includes(s(t5));
|
|
937
|
+
})).map((function(e4) {
|
|
938
|
+
return i.getPackageJsonByFullPath(e4);
|
|
939
|
+
})));
|
|
940
|
+
})).then((function(e4) {
|
|
941
|
+
return e4.reduce((function(e5, t4) {
|
|
942
|
+
return t4 ? Object.assign(e5, { [t4.name]: t4.version }) : e5;
|
|
943
|
+
}), {});
|
|
944
|
+
})).then((function(n4) {
|
|
945
|
+
return t3.showNotFound && Array.isArray(e3) && e3.forEach((function(e4) {
|
|
946
|
+
n4[e4] || (n4[e4] = "Not Found");
|
|
947
|
+
})), n4;
|
|
948
|
+
}))]);
|
|
949
|
+
}, getpnpmGlobalPackages: function(e3, t3) {
|
|
950
|
+
i.log("trace", "getpnpmGlobalPackages", e3);
|
|
951
|
+
var n3 = null;
|
|
952
|
+
return typeof e3 == "string" ? e3.includes("*") || e3.includes("?") || e3.includes("+") || e3.includes("!") ? n3 = e3 : e3 = e3.split(",") : Array.isArray(e3) || (e3 = !0), Promise.all(["pnpmGlobalPackages", i.run("pnpm list --global --depth=0 --json").then((function(e4) {
|
|
953
|
+
var t4 = {};
|
|
954
|
+
try {
|
|
955
|
+
var n4 = JSON.parse(e4 || "[]");
|
|
956
|
+
(Array.isArray(n4) ? n4 : [n4]).forEach((function(e5) {
|
|
957
|
+
if (e5) {
|
|
958
|
+
var n5 = e5.dependencies || {};
|
|
959
|
+
Object.keys(n5).forEach((function(e6) {
|
|
960
|
+
var r2 = n5[e6];
|
|
961
|
+
r2 && typeof r2 == "object" && r2.version ? t4[e6] = r2.version : typeof r2 == "string" && (t4[e6] = r2);
|
|
962
|
+
})), e5.name && e5.version && (t4[e5.name] = e5.version);
|
|
963
|
+
}
|
|
964
|
+
}));
|
|
965
|
+
} catch (e5) {
|
|
966
|
+
i.log("trace", "pnpm parseJson error", e5 && e5.message || String(e5));
|
|
967
|
+
}
|
|
968
|
+
return t4;
|
|
969
|
+
})).then((function(r2) {
|
|
970
|
+
var o2 = r2 || {};
|
|
971
|
+
if (n3 !== null) {
|
|
972
|
+
var s2 = new RegExp("^" + n3.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/\?/g, ".") + "$");
|
|
973
|
+
o2 = Object.keys(o2).filter((function(e4) {
|
|
974
|
+
return s2.test(e4);
|
|
975
|
+
})).reduce((function(e4, t4) {
|
|
976
|
+
return Object.assign(e4, { [t4]: o2[t4] });
|
|
977
|
+
}), {});
|
|
978
|
+
} else Array.isArray(e3) && (o2 = Object.keys(o2).filter((function(t4) {
|
|
979
|
+
return e3.includes(t4);
|
|
980
|
+
})).reduce((function(e4, t4) {
|
|
981
|
+
return Object.assign(e4, { [t4]: o2[t4] });
|
|
982
|
+
}), {}));
|
|
983
|
+
return t3 && t3.showNotFound && Array.isArray(e3) && e3.forEach((function(e4) {
|
|
984
|
+
o2[e4] || (o2[e4] = "Not Found");
|
|
985
|
+
})), i.sortObject(o2);
|
|
986
|
+
}))]);
|
|
987
|
+
} };
|
|
988
|
+
}, 5088: (e2) => {
|
|
989
|
+
"use strict";
|
|
990
|
+
e2.exports = { defaults: { System: ["OS", "CPU", "Memory", "Container", "Shell"], Binaries: ["Node", "Yarn", "npm", "pnpm", "bun", "Deno", "Watchman"], Managers: ["Apt", "Cargo", "CocoaPods", "Composer", "Gradle", "Homebrew", "Maven", "pip2", "pip3", "RubyGems", "Yum"], Utilities: ["7z", "Bazel", "CMake", "Make", "GCC", "Git", "Git LFS", "Clang", "Ninja", "Mercurial", "Subversion", "FFmpeg", "Curl", "OpenSSL", "ccache", "Calibre", "Clash Meta"], Servers: ["Apache", "Nginx"], Virtualization: ["Docker", "Docker Compose", "Parallels", "VirtualBox", "VMware Fusion"], SDKs: ["iOS SDK", "Android SDK", "Windows SDK"], IDEs: ["Android Studio", "Atom", "Emacs", "IntelliJ", "NVim", "Nano", "PhpStorm", "Sublime Text", "VSCode", "Cursor", "Claude Code", "Codex", "opencode", "Visual Studio", "Vim", "WebStorm", "Xcode"], Languages: ["Bash", "Go", "Elixir", "Erlang", "Java", "Perl", "PHP", "Protoc", "Python", "Python3", "R", "Ruby", "Rust", "Scala", "Zig"], Databases: ["MongoDB", "MySQL", "PostgreSQL", "SQLite"], Browsers: ["Brave Browser", "Chrome", "Chrome Canary", "Chromium", "Edge", "Firefox", "Firefox Developer Edition", "Firefox Nightly", "Internet Explorer", "Safari", "Safari Technology Preview"], Monorepos: ["Yarn Workspaces", "Lerna"], npmPackages: null, npmGlobalPackages: null, pnpmGlobalPackages: null }, cssnano: { System: ["OS", "CPU"], Binaries: ["Node", "Yarn", "npm", "pnpm", "bun", "Deno"], npmPackages: ["cssnano", "postcss"], options: { duplicates: !0 } }, jest: { System: ["OS", "CPU"], Binaries: ["Node", "Yarn", "npm", "pnpm", "bun", "Deno"], npmPackages: ["jest"] }, "react-native": { System: ["OS", "CPU"], Binaries: ["Node", "Yarn", "npm", "pnpm", "bun", "Watchman"], SDKs: ["iOS SDK", "Android SDK", "Windows SDK"], IDEs: ["Android Studio", "Xcode", "Visual Studio"], npmPackages: ["react", "react-native"], npmGlobalPackages: ["react-native-cli"] }, nyc: { System: ["OS", "CPU", "Memory"], Binaries: ["Node", "Yarn", "npm", "pnpm", "bun", "Deno"], npmPackages: "/**/{*babel*,@babel/*/,*istanbul*,nyc,source-map-support,typescript,ts-node}" }, webpack: { System: ["OS", "CPU"], Binaries: ["Node", "Yarn", "npm", "pnpm", "bun", "Deno"], npmPackages: "*webpack*", npmGlobalPackages: ["webpack", "webpack-cli"] }, "styled-components": { System: ["OS", "CPU"], Binaries: ["Node", "Yarn", "npm", "pnpm", "bun", "Deno"], Browsers: ["Chrome", "Firefox", "Safari"], npmPackages: "*styled-components*" }, "create-react-app": { System: ["OS", "CPU"], Binaries: ["Node", "npm", "Yarn", "pnpm", "bun"], Browsers: ["Chrome", "Edge", "Internet Explorer", "Firefox", "Safari"], npmPackages: ["react", "react-dom", "react-scripts"], npmGlobalPackages: ["create-react-app"], options: { duplicates: !0, showNotFound: !0 } }, apollo: { System: ["OS"], Binaries: ["Node", "npm", "Yarn", "pnpm", "bun"], Browsers: ["Chrome", "Edge", "Firefox", "Safari"], npmPackages: "{*apollo*,@apollo/*}", npmGlobalPackages: "{*apollo*,@apollo/*}" }, "react-native-web": { System: ["OS", "CPU"], Binaries: ["Node", "npm", "Yarn", "pnpm", "bun"], Browsers: ["Chrome", "Edge", "Internet Explorer", "Firefox", "Safari"], npmPackages: ["react", "react-native-web"], options: { showNotFound: !0 } }, babel: { System: ["OS"], Binaries: ["Node", "npm", "Yarn", "pnpm", "bun"], Monorepos: ["Yarn Workspaces", "Lerna"], npmPackages: "{*babel*,@babel/*,eslint,webpack,create-react-app,react-native,lerna,jest,next,rollup}" }, playwright: { System: ["OS", "CPU", "Memory", "Container"], Binaries: ["Node", "Yarn", "npm", "pnpm", "bun", "Deno"], Languages: ["Bash"], IDEs: ["VSCode", "Cursor", "Claude Code", "Codex", "opencode"], npmPackages: "{playwright*,@playwright/*}" } };
|
|
991
|
+
}, 224: (e2, t2, n2) => {
|
|
992
|
+
"use strict";
|
|
993
|
+
n2(4880), n2(4260), n2(5584), n2(7276), n2(4228), n2(3708), n2(8412), n2(5308), n2(6568), n2(5888);
|
|
994
|
+
var r = n2(7072), o = n2(2058), i = n2(8558), s = n2(4368), a = n2(8460), c = n2(808), u = n2(6032), l = function(e3) {
|
|
995
|
+
var t3 = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).unify, n3 = t3 !== void 0 && t3;
|
|
996
|
+
return new Promise((function(t4) {
|
|
997
|
+
s.exec(e3, { stdio: [0, "pipe", "ignore"] }, (function(e4, r2, o2) {
|
|
998
|
+
var i2;
|
|
999
|
+
i2 = n3 ? r2.toString() + o2.toString() : r2.toString(), t4((e4 ? "" : i2).trim());
|
|
1000
|
+
}));
|
|
1001
|
+
}));
|
|
1002
|
+
}, f = function(e3) {
|
|
1003
|
+
var t3 = Object.values(Array.prototype.slice.call(arguments).slice(1));
|
|
1004
|
+
(process.env.ENVINFO_DEBUG || "").toLowerCase() === e3 && console.log(e3, JSON.stringify(t3));
|
|
1005
|
+
}, p = function(e3) {
|
|
1006
|
+
return new Promise((function(t3) {
|
|
1007
|
+
o.readFile(e3, "utf8", (function(e4, n3) {
|
|
1008
|
+
return t3(n3 || null);
|
|
1009
|
+
}));
|
|
1010
|
+
}));
|
|
1011
|
+
}, h = function(e3) {
|
|
1012
|
+
return p(e3).then((function(e4) {
|
|
1013
|
+
return e4 ? JSON.parse(e4) : null;
|
|
1014
|
+
}));
|
|
1015
|
+
}, d = /\d+\.[\d+|.]+/g, m = function(e3) {
|
|
1016
|
+
f("trace", "findDarwinApplication", e3);
|
|
1017
|
+
var t3 = `mdfind "kMDItemCFBundleIdentifier=='${e3}'"`;
|
|
1018
|
+
return f("trace", t3), l(t3).then((function(e4) {
|
|
1019
|
+
return e4.replace(/(\s)/g, "\\ ");
|
|
1020
|
+
}));
|
|
1021
|
+
}, g = function(e3, t3) {
|
|
1022
|
+
var n3 = (t3 || ["CFBundleShortVersionString"]).map((function(e4) {
|
|
1023
|
+
return "-c Print:" + e4;
|
|
1024
|
+
}));
|
|
1025
|
+
return ["/usr/libexec/PlistBuddy"].concat(n3).concat([e3]).join(" ");
|
|
1026
|
+
}, v = function(e3, t3) {
|
|
1027
|
+
for (var n3 = [], r2 = null; (r2 = e3.exec(t3)) !== null; ) n3.push(r2);
|
|
1028
|
+
return n3;
|
|
1029
|
+
};
|
|
1030
|
+
e2.exports = { run: l, log: f, fileExists: function(e3) {
|
|
1031
|
+
return new Promise((function(t3) {
|
|
1032
|
+
o.stat(e3, (function(n3) {
|
|
1033
|
+
return t3(n3 ? null : e3);
|
|
1034
|
+
}));
|
|
1035
|
+
}));
|
|
1036
|
+
}, windowsExeExists: function(e3) {
|
|
1037
|
+
return new Promise((function(t3) {
|
|
1038
|
+
var n3;
|
|
1039
|
+
o.access(n3 = r.join(process.env.ProgramFiles, `${e3}`), o.constants.R_OK, (function(i2) {
|
|
1040
|
+
i2 ? o.access(n3 = r.join(process.env["ProgramFiles(x86)"], `${e3}`), o.constants.X_OK, (function(e4) {
|
|
1041
|
+
t3(e4 ? null : n3);
|
|
1042
|
+
})) : t3(n3);
|
|
1043
|
+
}));
|
|
1044
|
+
}));
|
|
1045
|
+
}, readFile: p, requireJson: h, versionRegex: d, findDarwinApplication: m, generatePlistBuddyCommand: g, matchAll: v, parseSDKManagerOutput: function(e3) {
|
|
1046
|
+
var t3 = e3.split("Available")[0];
|
|
1047
|
+
return { apiLevels: v(u.androidAPILevels, t3).map((function(e4) {
|
|
1048
|
+
return e4[1];
|
|
1049
|
+
})), buildTools: v(u.androidBuildTools, t3).map((function(e4) {
|
|
1050
|
+
return e4[1];
|
|
1051
|
+
})), systemImages: v(u.androidSystemImages, t3).map((function(e4) {
|
|
1052
|
+
return e4[1].split("|").map((function(e5) {
|
|
1053
|
+
return e5.trim();
|
|
1054
|
+
}));
|
|
1055
|
+
})).map((function(e4) {
|
|
1056
|
+
return e4[0].split(";")[0] + " | " + e4[2].split(" System Image")[0];
|
|
1057
|
+
})) };
|
|
1058
|
+
}, isLinux: process.platform === "linux", isMacOS: process.platform === "darwin", NA: "N/A", NotFound: "Not Found", isWindows: process.platform.startsWith("win"), isObject: function(e3) {
|
|
1059
|
+
return typeof e3 == "object" && !Array.isArray(e3);
|
|
1060
|
+
}, noop: function(e3) {
|
|
1061
|
+
return e3;
|
|
1062
|
+
}, pipe: function(e3) {
|
|
1063
|
+
return function(t3) {
|
|
1064
|
+
return e3.reduce((function(e4, t4) {
|
|
1065
|
+
return t4(e4);
|
|
1066
|
+
}), t3);
|
|
1067
|
+
};
|
|
1068
|
+
}, browserBundleIdentifiers: { "Brave Browser": "com.brave.Browser", Chrome: "com.google.Chrome", "Chrome Canary": "com.google.Chrome.canary", Firefox: "org.mozilla.firefox", "Firefox Developer Edition": "org.mozilla.firefoxdeveloperedition", "Firefox Nightly": "org.mozilla.nightly", "Microsoft Edge": "com.microsoft.edgemac", Safari: "com.apple.Safari", "Safari Technology Preview": "com.apple.SafariTechnologyPreview" }, ideBundleIdentifiers: { Atom: "com.github.atom", IntelliJ: "com.jetbrains.intellij", PhpStorm: "com.jetbrains.PhpStorm", "Sublime Text": "com.sublimetext.3", WebStorm: "com.jetbrains.WebStorm" }, runSync: function(e3) {
|
|
1069
|
+
return (s.execSync(e3, { stdio: [0, "pipe", "ignore"] }).toString() || "").trim();
|
|
1070
|
+
}, which: function(e3) {
|
|
1071
|
+
return new Promise((function(t3) {
|
|
1072
|
+
return a(e3, (function(e4, n3) {
|
|
1073
|
+
return t3(n3);
|
|
1074
|
+
}));
|
|
1075
|
+
}));
|
|
1076
|
+
}, getDarwinApplicationVersion: function(e3) {
|
|
1077
|
+
var t3;
|
|
1078
|
+
return f("trace", "getDarwinApplicationVersion", e3), t3 = process.platform !== "darwin" ? "N/A" : m(e3).then((function(e4) {
|
|
1079
|
+
return l(g(r.join(e4, "Contents", "Info.plist"), ["CFBundleShortVersionString"]));
|
|
1080
|
+
})), Promise.resolve(t3);
|
|
1081
|
+
}, uniq: function(e3) {
|
|
1082
|
+
return Array.from(new Set(e3));
|
|
1083
|
+
}, toReadableBytes: function(e3) {
|
|
1084
|
+
var t3 = Math.floor(Math.log(e3) / Math.log(1024));
|
|
1085
|
+
return e3 ? (e3 / Math.pow(1024, t3)).toFixed(2) + " " + ["B", "KB", "MB", "GB", "TB", "PB"][t3] : "0 Bytes";
|
|
1086
|
+
}, omit: function(e3, t3) {
|
|
1087
|
+
return Object.keys(e3).filter((function(e4) {
|
|
1088
|
+
return t3.indexOf(e4) < 0;
|
|
1089
|
+
})).reduce((function(t4, n3) {
|
|
1090
|
+
return Object.assign(t4, { [n3]: e3[n3] });
|
|
1091
|
+
}), {});
|
|
1092
|
+
}, pick: function(e3, t3) {
|
|
1093
|
+
return Object.keys(e3).filter((function(e4) {
|
|
1094
|
+
return t3.indexOf(e4) >= 0;
|
|
1095
|
+
})).reduce((function(t4, n3) {
|
|
1096
|
+
return Object.assign(t4, { [n3]: e3[n3] });
|
|
1097
|
+
}), {});
|
|
1098
|
+
}, getPackageJsonByName: function(e3) {
|
|
1099
|
+
return h(r.join(process.cwd(), "node_modules", e3, "package.json"));
|
|
1100
|
+
}, getPackageJsonByPath: function(e3) {
|
|
1101
|
+
return h(r.join(process.cwd(), e3));
|
|
1102
|
+
}, getPackageJsonByFullPath: function(e3) {
|
|
1103
|
+
return f("trace", "getPackageJsonByFullPath", e3), h(e3);
|
|
1104
|
+
}, getAllPackageJsonPaths: function(e3) {
|
|
1105
|
+
return f("trace", "getAllPackageJsonPaths", e3), new Promise((function(t3) {
|
|
1106
|
+
return c(e3 ? r.join("node_modules", e3, "package.json") : r.join("node_modules", "**", "package.json"), (function(e4, n3) {
|
|
1107
|
+
return t3(n3.map(r.normalize) || []);
|
|
1108
|
+
}));
|
|
1109
|
+
}));
|
|
1110
|
+
}, sortObject: function(e3) {
|
|
1111
|
+
return Object.keys(e3).sort().reduce((function(t3, n3) {
|
|
1112
|
+
return t3[n3] = e3[n3], t3;
|
|
1113
|
+
}), {});
|
|
1114
|
+
}, findVersion: function(e3, t3, n3) {
|
|
1115
|
+
f("trace", "findVersion", e3, t3, n3);
|
|
1116
|
+
var r2 = n3 || 0, o2 = t3 || d, i2 = e3.match(o2);
|
|
1117
|
+
return i2 ? i2[r2] : e3;
|
|
1118
|
+
}, condensePath: function(e3) {
|
|
1119
|
+
return (e3 || "").replace(i.homedir(), "~");
|
|
1120
|
+
}, determineFound: function(e3, t3, n3) {
|
|
1121
|
+
return f("trace", "determineFound", e3, t3, n3), t3 === "N/A" ? Promise.resolve([e3, "N/A"]) : t3 && Object.keys(t3).length !== 0 ? n3 ? Promise.resolve([e3, t3, n3]) : Promise.resolve([e3, t3]) : Promise.resolve([e3, "Not Found"]);
|
|
1122
|
+
} };
|
|
1123
|
+
}, 9016: (e2) => {
|
|
1124
|
+
"use strict";
|
|
1125
|
+
function t2(e3, t3, o) {
|
|
1126
|
+
e3 instanceof RegExp && (e3 = n2(e3, o)), t3 instanceof RegExp && (t3 = n2(t3, o));
|
|
1127
|
+
var i = r(e3, t3, o);
|
|
1128
|
+
return i && { start: i[0], end: i[1], pre: o.slice(0, i[0]), body: o.slice(i[0] + e3.length, i[1]), post: o.slice(i[1] + t3.length) };
|
|
1129
|
+
}
|
|
1130
|
+
function n2(e3, t3) {
|
|
1131
|
+
var n3 = t3.match(e3);
|
|
1132
|
+
return n3 ? n3[0] : null;
|
|
1133
|
+
}
|
|
1134
|
+
function r(e3, t3, n3) {
|
|
1135
|
+
var r2, o, i, s, a, c = n3.indexOf(e3), u = n3.indexOf(t3, c + 1), l = c;
|
|
1136
|
+
if (c >= 0 && u > 0) {
|
|
1137
|
+
for (r2 = [], i = n3.length; l >= 0 && !a; ) l == c ? (r2.push(l), c = n3.indexOf(e3, l + 1)) : r2.length == 1 ? a = [r2.pop(), u] : ((o = r2.pop()) < i && (i = o, s = u), u = n3.indexOf(t3, l + 1)), l = c < u && c >= 0 ? c : u;
|
|
1138
|
+
r2.length && (a = [i, s]);
|
|
1139
|
+
}
|
|
1140
|
+
return a;
|
|
1141
|
+
}
|
|
1142
|
+
e2.exports = t2, t2.range = r;
|
|
1143
|
+
}, 1620: (e2, t2, n2) => {
|
|
1144
|
+
var r = n2(6596), o = n2(9016);
|
|
1145
|
+
e2.exports = function(e3) {
|
|
1146
|
+
return e3 ? (e3.substr(0, 2) === "{}" && (e3 = "\\{\\}" + e3.substr(2)), v((function(e4) {
|
|
1147
|
+
return e4.split("\\\\").join(i).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u);
|
|
1148
|
+
})(e3), !0).map(f)) : [];
|
|
1149
|
+
};
|
|
1150
|
+
var i = "\0SLASH" + Math.random() + "\0", s = "\0OPEN" + Math.random() + "\0", a = "\0CLOSE" + Math.random() + "\0", c = "\0COMMA" + Math.random() + "\0", u = "\0PERIOD" + Math.random() + "\0";
|
|
1151
|
+
function l(e3) {
|
|
1152
|
+
return parseInt(e3, 10) == e3 ? parseInt(e3, 10) : e3.charCodeAt(0);
|
|
1153
|
+
}
|
|
1154
|
+
function f(e3) {
|
|
1155
|
+
return e3.split(i).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(u).join(".");
|
|
1156
|
+
}
|
|
1157
|
+
function p(e3) {
|
|
1158
|
+
if (!e3) return [""];
|
|
1159
|
+
var t3 = [], n3 = o("{", "}", e3);
|
|
1160
|
+
if (!n3) return e3.split(",");
|
|
1161
|
+
var r2 = n3.pre, i2 = n3.body, s2 = n3.post, a2 = r2.split(",");
|
|
1162
|
+
a2[a2.length - 1] += "{" + i2 + "}";
|
|
1163
|
+
var c2 = p(s2);
|
|
1164
|
+
return s2.length && (a2[a2.length - 1] += c2.shift(), a2.push.apply(a2, c2)), t3.push.apply(t3, a2), t3;
|
|
1165
|
+
}
|
|
1166
|
+
function h(e3) {
|
|
1167
|
+
return "{" + e3 + "}";
|
|
1168
|
+
}
|
|
1169
|
+
function d(e3) {
|
|
1170
|
+
return /^-?0\d/.test(e3);
|
|
1171
|
+
}
|
|
1172
|
+
function m(e3, t3) {
|
|
1173
|
+
return e3 <= t3;
|
|
1174
|
+
}
|
|
1175
|
+
function g(e3, t3) {
|
|
1176
|
+
return e3 >= t3;
|
|
1177
|
+
}
|
|
1178
|
+
function v(e3, t3) {
|
|
1179
|
+
var n3 = [], i2 = o("{", "}", e3);
|
|
1180
|
+
if (!i2 || /\$$/.test(i2.pre)) return [e3];
|
|
1181
|
+
var s2, c2 = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i2.body), u2 = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i2.body), f2 = c2 || u2, y = i2.body.indexOf(",") >= 0;
|
|
1182
|
+
if (!f2 && !y) return i2.post.match(/,.*\}/) ? v(e3 = i2.pre + "{" + i2.body + a + i2.post) : [e3];
|
|
1183
|
+
if (f2) s2 = i2.body.split(/\.\./);
|
|
1184
|
+
else if ((s2 = p(i2.body)).length === 1 && (s2 = v(s2[0], !1).map(h)).length === 1) return (x = i2.post.length ? v(i2.post, !1) : [""]).map((function(e4) {
|
|
1185
|
+
return i2.pre + s2[0] + e4;
|
|
1186
|
+
}));
|
|
1187
|
+
var b, w = i2.pre, x = i2.post.length ? v(i2.post, !1) : [""];
|
|
1188
|
+
if (f2) {
|
|
1189
|
+
var S = l(s2[0]), P = l(s2[1]), I = Math.max(s2[0].length, s2[1].length), O = s2.length == 3 ? Math.abs(l(s2[2])) : 1, E = m;
|
|
1190
|
+
P < S && (O *= -1, E = g);
|
|
1191
|
+
var j = s2.some(d);
|
|
1192
|
+
b = [];
|
|
1193
|
+
for (var _ = S; E(_, P); _ += O) {
|
|
1194
|
+
var A;
|
|
1195
|
+
if (u2) (A = String.fromCharCode(_)) === "\\" && (A = "");
|
|
1196
|
+
else if (A = String(_), j) {
|
|
1197
|
+
var k = I - A.length;
|
|
1198
|
+
if (k > 0) {
|
|
1199
|
+
var F = new Array(k + 1).join("0");
|
|
1200
|
+
A = _ < 0 ? "-" + F + A.slice(1) : F + A;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
b.push(A);
|
|
1204
|
+
}
|
|
1205
|
+
} else b = r(s2, (function(e4) {
|
|
1206
|
+
return v(e4, !1);
|
|
1207
|
+
}));
|
|
1208
|
+
for (var N = 0; N < b.length; N++) for (var C = 0; C < x.length; C++) {
|
|
1209
|
+
var M = w + b[N] + x[C];
|
|
1210
|
+
(!t3 || f2 || M) && n3.push(M);
|
|
1211
|
+
}
|
|
1212
|
+
return n3;
|
|
1213
|
+
}
|
|
1214
|
+
}, 6596: (e2) => {
|
|
1215
|
+
e2.exports = function(e3, n2) {
|
|
1216
|
+
for (var r = [], o = 0; o < e3.length; o++) {
|
|
1217
|
+
var i = n2(e3[o], o);
|
|
1218
|
+
t2(i) ? r.push.apply(r, i) : r.push(i);
|
|
1219
|
+
}
|
|
1220
|
+
return r;
|
|
1221
|
+
};
|
|
1222
|
+
var t2 = Array.isArray || function(e3) {
|
|
1223
|
+
return Object.prototype.toString.call(e3) === "[object Array]";
|
|
1224
|
+
};
|
|
1225
|
+
}, 2016: (e2) => {
|
|
1226
|
+
e2.exports = function(e3) {
|
|
1227
|
+
if (typeof e3 != "function") throw TypeError(e3 + " is not a function!");
|
|
1228
|
+
return e3;
|
|
1229
|
+
};
|
|
1230
|
+
}, 7384: (e2, t2, n2) => {
|
|
1231
|
+
var r = n2(7096)("unscopables"), o = Array.prototype;
|
|
1232
|
+
o[r] == null && n2(2336)(o, r, {}), e2.exports = function(e3) {
|
|
1233
|
+
o[r][e3] = !0;
|
|
1234
|
+
};
|
|
1235
|
+
}, 2388: (e2) => {
|
|
1236
|
+
e2.exports = function(e3, t2, n2, r) {
|
|
1237
|
+
if (!(e3 instanceof t2) || r !== void 0 && r in e3) throw TypeError(n2 + ": incorrect invocation!");
|
|
1238
|
+
return e3;
|
|
1239
|
+
};
|
|
1240
|
+
}, 3504: (e2, t2, n2) => {
|
|
1241
|
+
var r = n2(3888);
|
|
1242
|
+
e2.exports = function(e3) {
|
|
1243
|
+
if (!r(e3)) throw TypeError(e3 + " is not an object!");
|
|
1244
|
+
return e3;
|
|
1245
|
+
};
|
|
1246
|
+
}, 7504: (e2, t2, n2) => {
|
|
1247
|
+
var r = n2(2780), o = n2(3528), i = n2(8508);
|
|
1248
|
+
e2.exports = function(e3) {
|
|
1249
|
+
return function(t3, n3, s) {
|
|
1250
|
+
var a, c = r(t3), u = o(c.length), l = i(s, u);
|
|
1251
|
+
if (e3 && n3 != n3) {
|
|
1252
|
+
for (; u > l; ) if ((a = c[l++]) != a) return !0;
|
|
1253
|
+
} else for (; u > l; l++) if ((e3 || l in c) && c[l] === n3) return e3 || l || 0;
|
|
1254
|
+
return !e3 && -1;
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
}, 5848: (e2, t2, n2) => {
|
|
1258
|
+
var r = n2(6924), o = n2(7096)("toStringTag"), i = r(/* @__PURE__ */ (function() {
|
|
1259
|
+
return arguments;
|
|
1260
|
+
})()) == "Arguments";
|
|
1261
|
+
e2.exports = function(e3) {
|
|
1262
|
+
var t3, n3, s;
|
|
1263
|
+
return e3 === void 0 ? "Undefined" : e3 === null ? "Null" : typeof (n3 = (function(e4, t4) {
|
|
1264
|
+
try {
|
|
1265
|
+
return e4[t4];
|
|
1266
|
+
} catch {
|
|
1267
|
+
}
|
|
1268
|
+
})(t3 = Object(e3), o)) == "string" ? n3 : i ? r(t3) : (s = r(t3)) == "Object" && typeof t3.callee == "function" ? "Arguments" : s;
|
|
1269
|
+
};
|
|
1270
|
+
}, 6924: (e2) => {
|
|
1271
|
+
var t2 = {}.toString;
|
|
1272
|
+
e2.exports = function(e3) {
|
|
1273
|
+
return t2.call(e3).slice(8, -1);
|
|
1274
|
+
};
|
|
1275
|
+
}, 148: (e2, t2, n2) => {
|
|
1276
|
+
"use strict";
|
|
1277
|
+
var r = n2(8520).f, o = n2(3472), i = n2(7704), s = n2(800), a = n2(2388), c = n2(7228), u = n2(6952), l = n2(172), f = n2(3384), p = n2(1668), h = n2(2020).fastKey, d = n2(2772), m = p ? "_s" : "size", g = function(e3, t3) {
|
|
1278
|
+
var n3, r2 = h(t3);
|
|
1279
|
+
if (r2 !== "F") return e3._i[r2];
|
|
1280
|
+
for (n3 = e3._f; n3; n3 = n3.n) if (n3.k == t3) return n3;
|
|
1281
|
+
};
|
|
1282
|
+
e2.exports = { getConstructor: function(e3, t3, n3, u2) {
|
|
1283
|
+
var l2 = e3((function(e4, r2) {
|
|
1284
|
+
a(e4, l2, t3, "_i"), e4._t = t3, e4._i = o(null), e4._f = void 0, e4._l = void 0, e4[m] = 0, r2 != null && c(r2, n3, e4[u2], e4);
|
|
1285
|
+
}));
|
|
1286
|
+
return i(l2.prototype, { clear: function() {
|
|
1287
|
+
for (var e4 = d(this, t3), n4 = e4._i, r2 = e4._f; r2; r2 = r2.n) r2.r = !0, r2.p && (r2.p = r2.p.n = void 0), delete n4[r2.i];
|
|
1288
|
+
e4._f = e4._l = void 0, e4[m] = 0;
|
|
1289
|
+
}, delete: function(e4) {
|
|
1290
|
+
var n4 = d(this, t3), r2 = g(n4, e4);
|
|
1291
|
+
if (r2) {
|
|
1292
|
+
var o2 = r2.n, i2 = r2.p;
|
|
1293
|
+
delete n4._i[r2.i], r2.r = !0, i2 && (i2.n = o2), o2 && (o2.p = i2), n4._f == r2 && (n4._f = o2), n4._l == r2 && (n4._l = i2), n4[m]--;
|
|
1294
|
+
}
|
|
1295
|
+
return !!r2;
|
|
1296
|
+
}, forEach: function(e4) {
|
|
1297
|
+
d(this, t3);
|
|
1298
|
+
for (var n4, r2 = s(e4, arguments.length > 1 ? arguments[1] : void 0, 3); n4 = n4 ? n4.n : this._f; ) for (r2(n4.v, n4.k, this); n4 && n4.r; ) n4 = n4.p;
|
|
1299
|
+
}, has: function(e4) {
|
|
1300
|
+
return !!g(d(this, t3), e4);
|
|
1301
|
+
} }), p && r(l2.prototype, "size", { get: function() {
|
|
1302
|
+
return d(this, t3)[m];
|
|
1303
|
+
} }), l2;
|
|
1304
|
+
}, def: function(e3, t3, n3) {
|
|
1305
|
+
var r2, o2, i2 = g(e3, t3);
|
|
1306
|
+
return i2 ? i2.v = n3 : (e3._l = i2 = { i: o2 = h(t3, !0), k: t3, v: n3, p: r2 = e3._l, n: void 0, r: !1 }, e3._f || (e3._f = i2), r2 && (r2.n = i2), e3[m]++, o2 !== "F" && (e3._i[o2] = i2)), e3;
|
|
1307
|
+
}, getEntry: g, setStrong: function(e3, t3, n3) {
|
|
1308
|
+
u(e3, t3, (function(e4, n4) {
|
|
1309
|
+
this._t = d(e4, t3), this._k = n4, this._l = void 0;
|
|
1310
|
+
}), (function() {
|
|
1311
|
+
for (var e4 = this, t4 = e4._k, n4 = e4._l; n4 && n4.r; ) n4 = n4.p;
|
|
1312
|
+
return e4._t && (e4._l = n4 = n4 ? n4.n : e4._t._f) ? l(0, t4 == "keys" ? n4.k : t4 == "values" ? n4.v : [n4.k, n4.v]) : (e4._t = void 0, l(1));
|
|
1313
|
+
}), n3 ? "entries" : "values", !n3, !0), f(t3);
|
|
1314
|
+
} };
|
|
1315
|
+
}, 9412: (e2, t2, n2) => {
|
|
1316
|
+
"use strict";
|
|
1317
|
+
var r = n2(2804), o = n2(7076), i = n2(8868), s = n2(7704), a = n2(2020), c = n2(7228), u = n2(2388), l = n2(3888), f = n2(9316), p = n2(8380), h = n2(6256), d = n2(2672);
|
|
1318
|
+
e2.exports = function(e3, t3, n3, m, g, v) {
|
|
1319
|
+
var y = r[e3], b = y, w = g ? "set" : "add", x = b && b.prototype, S = {}, P = function(e4) {
|
|
1320
|
+
var t4 = x[e4];
|
|
1321
|
+
i(x, e4, e4 == "delete" || e4 == "has" ? function(e5) {
|
|
1322
|
+
return !(v && !l(e5)) && t4.call(this, e5 === 0 ? 0 : e5);
|
|
1323
|
+
} : e4 == "get" ? function(e5) {
|
|
1324
|
+
return v && !l(e5) ? void 0 : t4.call(this, e5 === 0 ? 0 : e5);
|
|
1325
|
+
} : e4 == "add" ? function(e5) {
|
|
1326
|
+
return t4.call(this, e5 === 0 ? 0 : e5), this;
|
|
1327
|
+
} : function(e5, n4) {
|
|
1328
|
+
return t4.call(this, e5 === 0 ? 0 : e5, n4), this;
|
|
1329
|
+
});
|
|
1330
|
+
};
|
|
1331
|
+
if (typeof b == "function" && (v || x.forEach && !f((function() {
|
|
1332
|
+
new b().entries().next();
|
|
1333
|
+
})))) {
|
|
1334
|
+
var I = new b(), O = I[w](v ? {} : -0, 1) != I, E = f((function() {
|
|
1335
|
+
I.has(1);
|
|
1336
|
+
})), j = p((function(e4) {
|
|
1337
|
+
new b(e4);
|
|
1338
|
+
})), _ = !v && f((function() {
|
|
1339
|
+
for (var e4 = new b(), t4 = 5; t4--; ) e4[w](t4, t4);
|
|
1340
|
+
return !e4.has(-0);
|
|
1341
|
+
}));
|
|
1342
|
+
j || ((b = t3((function(t4, n4) {
|
|
1343
|
+
u(t4, b, e3);
|
|
1344
|
+
var r2 = d(new y(), t4, b);
|
|
1345
|
+
return n4 != null && c(n4, g, r2[w], r2), r2;
|
|
1346
|
+
}))).prototype = x, x.constructor = b), (E || _) && (P("delete"), P("has"), g && P("get")), (_ || O) && P(w), v && x.clear && delete x.clear;
|
|
1347
|
+
} else b = m.getConstructor(t3, e3, g, w), s(b.prototype, n3), a.NEED = !0;
|
|
1348
|
+
return h(b, e3), S[e3] = b, o(o.G + o.W + o.F * (b != y), S), v || m.setStrong(b, e3, g), b;
|
|
1349
|
+
};
|
|
1350
|
+
}, 8432: (e2) => {
|
|
1351
|
+
var t2 = e2.exports = { version: "2.5.7" };
|
|
1352
|
+
typeof __e == "number" && (__e = t2);
|
|
1353
|
+
}, 2340: (e2, t2, n2) => {
|
|
1354
|
+
"use strict";
|
|
1355
|
+
var r = n2(8520), o = n2(8164);
|
|
1356
|
+
e2.exports = function(e3, t3, n3) {
|
|
1357
|
+
t3 in e3 ? r.f(e3, t3, o(0, n3)) : e3[t3] = n3;
|
|
1358
|
+
};
|
|
1359
|
+
}, 800: (e2, t2, n2) => {
|
|
1360
|
+
var r = n2(2016);
|
|
1361
|
+
e2.exports = function(e3, t3, n3) {
|
|
1362
|
+
if (r(e3), t3 === void 0) return e3;
|
|
1363
|
+
switch (n3) {
|
|
1364
|
+
case 1:
|
|
1365
|
+
return function(n4) {
|
|
1366
|
+
return e3.call(t3, n4);
|
|
1367
|
+
};
|
|
1368
|
+
case 2:
|
|
1369
|
+
return function(n4, r2) {
|
|
1370
|
+
return e3.call(t3, n4, r2);
|
|
1371
|
+
};
|
|
1372
|
+
case 3:
|
|
1373
|
+
return function(n4, r2, o) {
|
|
1374
|
+
return e3.call(t3, n4, r2, o);
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
return function() {
|
|
1378
|
+
return e3.apply(t3, arguments);
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
}, 24: (e2) => {
|
|
1382
|
+
e2.exports = function(e3) {
|
|
1383
|
+
if (e3 == null) throw TypeError("Can't call method on " + e3);
|
|
1384
|
+
return e3;
|
|
1385
|
+
};
|
|
1386
|
+
}, 1668: (e2, t2, n2) => {
|
|
1387
|
+
e2.exports = !n2(9316)((function() {
|
|
1388
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
1389
|
+
return 7;
|
|
1390
|
+
} }).a != 7;
|
|
1391
|
+
}));
|
|
1392
|
+
}, 1300: (e2, t2, n2) => {
|
|
1393
|
+
var r = n2(3888), o = n2(2804).document, i = r(o) && r(o.createElement);
|
|
1394
|
+
e2.exports = function(e3) {
|
|
1395
|
+
return i ? o.createElement(e3) : {};
|
|
1396
|
+
};
|
|
1397
|
+
}, 444: (e2) => {
|
|
1398
|
+
e2.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
1399
|
+
}, 7076: (e2, t2, n2) => {
|
|
1400
|
+
var r = n2(2804), o = n2(8432), i = n2(2336), s = n2(8868), a = n2(800), c = "prototype", u = function(e3, t3, n3) {
|
|
1401
|
+
var l, f, p, h, d = e3 & u.F, m = e3 & u.G, g = e3 & u.S, v = e3 & u.P, y = e3 & u.B, b = m ? r : g ? r[t3] || (r[t3] = {}) : (r[t3] || {})[c], w = m ? o : o[t3] || (o[t3] = {}), x = w[c] || (w[c] = {});
|
|
1402
|
+
for (l in m && (n3 = t3), n3) p = ((f = !d && b && b[l] !== void 0) ? b : n3)[l], h = y && f ? a(p, r) : v && typeof p == "function" ? a(Function.call, p) : p, b && s(b, l, p, e3 & u.U), w[l] != p && i(w, l, h), v && x[l] != p && (x[l] = p);
|
|
1403
|
+
};
|
|
1404
|
+
r.core = o, u.F = 1, u.G = 2, u.S = 4, u.P = 8, u.B = 16, u.W = 32, u.U = 64, u.R = 128, e2.exports = u;
|
|
1405
|
+
}, 9316: (e2) => {
|
|
1406
|
+
e2.exports = function(e3) {
|
|
1407
|
+
try {
|
|
1408
|
+
return !!e3();
|
|
1409
|
+
} catch {
|
|
1410
|
+
return !0;
|
|
1411
|
+
}
|
|
1412
|
+
};
|
|
1413
|
+
}, 4448: (e2, t2, n2) => {
|
|
1414
|
+
"use strict";
|
|
1415
|
+
var r = n2(2336), o = n2(8868), i = n2(9316), s = n2(24), a = n2(7096);
|
|
1416
|
+
e2.exports = function(e3, t3, n3) {
|
|
1417
|
+
var c = a(e3), u = n3(s, c, ""[e3]), l = u[0], f = u[1];
|
|
1418
|
+
i((function() {
|
|
1419
|
+
var t4 = {};
|
|
1420
|
+
return t4[c] = function() {
|
|
1421
|
+
return 7;
|
|
1422
|
+
}, ""[e3](t4) != 7;
|
|
1423
|
+
})) && (o(String.prototype, e3, l), r(RegExp.prototype, c, t3 == 2 ? function(e4, t4) {
|
|
1424
|
+
return f.call(e4, this, t4);
|
|
1425
|
+
} : function(e4) {
|
|
1426
|
+
return f.call(e4, this);
|
|
1427
|
+
}));
|
|
1428
|
+
};
|
|
1429
|
+
}, 8068: (e2, t2, n2) => {
|
|
1430
|
+
"use strict";
|
|
1431
|
+
var r = n2(3504);
|
|
1432
|
+
e2.exports = function() {
|
|
1433
|
+
var e3 = r(this), t3 = "";
|
|
1434
|
+
return e3.global && (t3 += "g"), e3.ignoreCase && (t3 += "i"), e3.multiline && (t3 += "m"), e3.unicode && (t3 += "u"), e3.sticky && (t3 += "y"), t3;
|
|
1435
|
+
};
|
|
1436
|
+
}, 7228: (e2, t2, n2) => {
|
|
1437
|
+
var r = n2(800), o = n2(2372), i = n2(3164), s = n2(3504), a = n2(3528), c = n2(2800), u = {}, l = {}, f = e2.exports = function(e3, t3, n3, f2, p) {
|
|
1438
|
+
var h, d, m, g, v = p ? function() {
|
|
1439
|
+
return e3;
|
|
1440
|
+
} : c(e3), y = r(n3, f2, t3 ? 2 : 1), b = 0;
|
|
1441
|
+
if (typeof v != "function") throw TypeError(e3 + " is not iterable!");
|
|
1442
|
+
if (i(v)) {
|
|
1443
|
+
for (h = a(e3.length); h > b; b++) if ((g = t3 ? y(s(d = e3[b])[0], d[1]) : y(e3[b])) === u || g === l) return g;
|
|
1444
|
+
} else for (m = v.call(e3); !(d = m.next()).done; ) if ((g = o(m, y, d.value, t3)) === u || g === l) return g;
|
|
1445
|
+
};
|
|
1446
|
+
f.BREAK = u, f.RETURN = l;
|
|
1447
|
+
}, 2804: (e2) => {
|
|
1448
|
+
var t2 = e2.exports = typeof window < "u" && window.Math == Math ? window : typeof self < "u" && self.Math == Math ? self : Function("return this")();
|
|
1449
|
+
typeof __g == "number" && (__g = t2);
|
|
1450
|
+
}, 9080: (e2) => {
|
|
1451
|
+
var t2 = {}.hasOwnProperty;
|
|
1452
|
+
e2.exports = function(e3, n2) {
|
|
1453
|
+
return t2.call(e3, n2);
|
|
1454
|
+
};
|
|
1455
|
+
}, 2336: (e2, t2, n2) => {
|
|
1456
|
+
var r = n2(8520), o = n2(8164);
|
|
1457
|
+
e2.exports = n2(1668) ? function(e3, t3, n3) {
|
|
1458
|
+
return r.f(e3, t3, o(1, n3));
|
|
1459
|
+
} : function(e3, t3, n3) {
|
|
1460
|
+
return e3[t3] = n3, e3;
|
|
1461
|
+
};
|
|
1462
|
+
}, 4016: (e2, t2, n2) => {
|
|
1463
|
+
var r = n2(2804).document;
|
|
1464
|
+
e2.exports = r && r.documentElement;
|
|
1465
|
+
}, 5516: (e2, t2, n2) => {
|
|
1466
|
+
e2.exports = !n2(1668) && !n2(9316)((function() {
|
|
1467
|
+
return Object.defineProperty(n2(1300)("div"), "a", { get: function() {
|
|
1468
|
+
return 7;
|
|
1469
|
+
} }).a != 7;
|
|
1470
|
+
}));
|
|
1471
|
+
}, 2672: (e2, t2, n2) => {
|
|
1472
|
+
var r = n2(3888), o = n2(5076).set;
|
|
1473
|
+
e2.exports = function(e3, t3, n3) {
|
|
1474
|
+
var i, s = t3.constructor;
|
|
1475
|
+
return s !== n3 && typeof s == "function" && (i = s.prototype) !== n3.prototype && r(i) && o && o(e3, i), e3;
|
|
1476
|
+
};
|
|
1477
|
+
}, 5628: (e2) => {
|
|
1478
|
+
e2.exports = function(e3, t2, n2) {
|
|
1479
|
+
var r = n2 === void 0;
|
|
1480
|
+
switch (t2.length) {
|
|
1481
|
+
case 0:
|
|
1482
|
+
return r ? e3() : e3.call(n2);
|
|
1483
|
+
case 1:
|
|
1484
|
+
return r ? e3(t2[0]) : e3.call(n2, t2[0]);
|
|
1485
|
+
case 2:
|
|
1486
|
+
return r ? e3(t2[0], t2[1]) : e3.call(n2, t2[0], t2[1]);
|
|
1487
|
+
case 3:
|
|
1488
|
+
return r ? e3(t2[0], t2[1], t2[2]) : e3.call(n2, t2[0], t2[1], t2[2]);
|
|
1489
|
+
case 4:
|
|
1490
|
+
return r ? e3(t2[0], t2[1], t2[2], t2[3]) : e3.call(n2, t2[0], t2[1], t2[2], t2[3]);
|
|
1491
|
+
}
|
|
1492
|
+
return e3.apply(n2, t2);
|
|
1493
|
+
};
|
|
1494
|
+
}, 2936: (e2, t2, n2) => {
|
|
1495
|
+
var r = n2(6924);
|
|
1496
|
+
e2.exports = Object("z").propertyIsEnumerable(0) ? Object : function(e3) {
|
|
1497
|
+
return r(e3) == "String" ? e3.split("") : Object(e3);
|
|
1498
|
+
};
|
|
1499
|
+
}, 3164: (e2, t2, n2) => {
|
|
1500
|
+
var r = n2(2488), o = n2(7096)("iterator"), i = Array.prototype;
|
|
1501
|
+
e2.exports = function(e3) {
|
|
1502
|
+
return e3 !== void 0 && (r.Array === e3 || i[o] === e3);
|
|
1503
|
+
};
|
|
1504
|
+
}, 3888: (e2) => {
|
|
1505
|
+
e2.exports = function(e3) {
|
|
1506
|
+
return typeof e3 == "object" ? e3 !== null : typeof e3 == "function";
|
|
1507
|
+
};
|
|
1508
|
+
}, 7760: (e2, t2, n2) => {
|
|
1509
|
+
var r = n2(3888), o = n2(6924), i = n2(7096)("match");
|
|
1510
|
+
e2.exports = function(e3) {
|
|
1511
|
+
var t3;
|
|
1512
|
+
return r(e3) && ((t3 = e3[i]) !== void 0 ? !!t3 : o(e3) == "RegExp");
|
|
1513
|
+
};
|
|
1514
|
+
}, 2372: (e2, t2, n2) => {
|
|
1515
|
+
var r = n2(3504);
|
|
1516
|
+
e2.exports = function(e3, t3, n3, o) {
|
|
1517
|
+
try {
|
|
1518
|
+
return o ? t3(r(n3)[0], n3[1]) : t3(n3);
|
|
1519
|
+
} catch (t4) {
|
|
1520
|
+
var i = e3.return;
|
|
1521
|
+
throw i !== void 0 && r(i.call(e3)), t4;
|
|
1522
|
+
}
|
|
1523
|
+
};
|
|
1524
|
+
}, 128: (e2, t2, n2) => {
|
|
1525
|
+
"use strict";
|
|
1526
|
+
var r = n2(3472), o = n2(8164), i = n2(6256), s = {};
|
|
1527
|
+
n2(2336)(s, n2(7096)("iterator"), (function() {
|
|
1528
|
+
return this;
|
|
1529
|
+
})), e2.exports = function(e3, t3, n3) {
|
|
1530
|
+
e3.prototype = r(s, { next: o(1, n3) }), i(e3, t3 + " Iterator");
|
|
1531
|
+
};
|
|
1532
|
+
}, 6952: (e2, t2, n2) => {
|
|
1533
|
+
"use strict";
|
|
1534
|
+
var r = n2(4440), o = n2(7076), i = n2(8868), s = n2(2336), a = n2(2488), c = n2(128), u = n2(6256), l = n2(9556), f = n2(7096)("iterator"), p = !([].keys && "next" in [].keys()), h = "keys", d = "values", m = function() {
|
|
1535
|
+
return this;
|
|
1536
|
+
};
|
|
1537
|
+
e2.exports = function(e3, t3, n3, g, v, y, b) {
|
|
1538
|
+
c(n3, t3, g);
|
|
1539
|
+
var w, x, S, P = function(e4) {
|
|
1540
|
+
if (!p && e4 in j) return j[e4];
|
|
1541
|
+
switch (e4) {
|
|
1542
|
+
case h:
|
|
1543
|
+
case d:
|
|
1544
|
+
return function() {
|
|
1545
|
+
return new n3(this, e4);
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
return function() {
|
|
1549
|
+
return new n3(this, e4);
|
|
1550
|
+
};
|
|
1551
|
+
}, I = t3 + " Iterator", O = v == d, E = !1, j = e3.prototype, _ = j[f] || j["@@iterator"] || v && j[v], A = _ || P(v), k = v ? O ? P("entries") : A : void 0, F = t3 == "Array" && j.entries || _;
|
|
1552
|
+
if (F && (S = l(F.call(new e3()))) !== Object.prototype && S.next && (u(S, I, !0), r || typeof S[f] == "function" || s(S, f, m)), O && _ && _.name !== d && (E = !0, A = function() {
|
|
1553
|
+
return _.call(this);
|
|
1554
|
+
}), r && !b || !p && !E && j[f] || s(j, f, A), a[t3] = A, a[I] = m, v) if (w = { values: O ? A : P(d), keys: y ? A : P(h), entries: k }, b) for (x in w) x in j || i(j, x, w[x]);
|
|
1555
|
+
else o(o.P + o.F * (p || E), t3, w);
|
|
1556
|
+
return w;
|
|
1557
|
+
};
|
|
1558
|
+
}, 8380: (e2, t2, n2) => {
|
|
1559
|
+
var r = n2(7096)("iterator"), o = !1;
|
|
1560
|
+
try {
|
|
1561
|
+
var i = [7][r]();
|
|
1562
|
+
i.return = function() {
|
|
1563
|
+
o = !0;
|
|
1564
|
+
}, Array.from(i, (function() {
|
|
1565
|
+
throw 2;
|
|
1566
|
+
}));
|
|
1567
|
+
} catch {
|
|
1568
|
+
}
|
|
1569
|
+
e2.exports = function(e3, t3) {
|
|
1570
|
+
if (!t3 && !o) return !1;
|
|
1571
|
+
var n3 = !1;
|
|
1572
|
+
try {
|
|
1573
|
+
var i2 = [7], s = i2[r]();
|
|
1574
|
+
s.next = function() {
|
|
1575
|
+
return { done: n3 = !0 };
|
|
1576
|
+
}, i2[r] = function() {
|
|
1577
|
+
return s;
|
|
1578
|
+
}, e3(i2);
|
|
1579
|
+
} catch {
|
|
1580
|
+
}
|
|
1581
|
+
return n3;
|
|
1582
|
+
};
|
|
1583
|
+
}, 172: (e2) => {
|
|
1584
|
+
e2.exports = function(e3, t2) {
|
|
1585
|
+
return { value: t2, done: !!e3 };
|
|
1586
|
+
};
|
|
1587
|
+
}, 2488: (e2) => {
|
|
1588
|
+
e2.exports = {};
|
|
1589
|
+
}, 4440: (e2) => {
|
|
1590
|
+
e2.exports = !1;
|
|
1591
|
+
}, 2020: (e2, t2, n2) => {
|
|
1592
|
+
var r = n2(9664)("meta"), o = n2(3888), i = n2(9080), s = n2(8520).f, a = 0, c = Object.isExtensible || function() {
|
|
1593
|
+
return !0;
|
|
1594
|
+
}, u = !n2(9316)((function() {
|
|
1595
|
+
return c(Object.preventExtensions({}));
|
|
1596
|
+
})), l = function(e3) {
|
|
1597
|
+
s(e3, r, { value: { i: "O" + ++a, w: {} } });
|
|
1598
|
+
}, f = e2.exports = { KEY: r, NEED: !1, fastKey: function(e3, t3) {
|
|
1599
|
+
if (!o(e3)) return typeof e3 == "symbol" ? e3 : (typeof e3 == "string" ? "S" : "P") + e3;
|
|
1600
|
+
if (!i(e3, r)) {
|
|
1601
|
+
if (!c(e3)) return "F";
|
|
1602
|
+
if (!t3) return "E";
|
|
1603
|
+
l(e3);
|
|
1604
|
+
}
|
|
1605
|
+
return e3[r].i;
|
|
1606
|
+
}, getWeak: function(e3, t3) {
|
|
1607
|
+
if (!i(e3, r)) {
|
|
1608
|
+
if (!c(e3)) return !0;
|
|
1609
|
+
if (!t3) return !1;
|
|
1610
|
+
l(e3);
|
|
1611
|
+
}
|
|
1612
|
+
return e3[r].w;
|
|
1613
|
+
}, onFreeze: function(e3) {
|
|
1614
|
+
return u && f.NEED && c(e3) && !i(e3, r) && l(e3), e3;
|
|
1615
|
+
} };
|
|
1616
|
+
}, 448: (e2, t2, n2) => {
|
|
1617
|
+
var r = n2(2804), o = n2(2280).set, i = r.MutationObserver || r.WebKitMutationObserver, s = r.process, a = r.Promise, c = n2(6924)(s) == "process";
|
|
1618
|
+
e2.exports = function() {
|
|
1619
|
+
var e3, t3, n3, u = function() {
|
|
1620
|
+
var r2, o2;
|
|
1621
|
+
for (c && (r2 = s.domain) && r2.exit(); e3; ) {
|
|
1622
|
+
o2 = e3.fn, e3 = e3.next;
|
|
1623
|
+
try {
|
|
1624
|
+
o2();
|
|
1625
|
+
} catch (r3) {
|
|
1626
|
+
throw e3 ? n3() : t3 = void 0, r3;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
t3 = void 0, r2 && r2.enter();
|
|
1630
|
+
};
|
|
1631
|
+
if (c) n3 = function() {
|
|
1632
|
+
s.nextTick(u);
|
|
1633
|
+
};
|
|
1634
|
+
else if (!i || r.navigator && r.navigator.standalone) if (a && a.resolve) {
|
|
1635
|
+
var l = a.resolve(void 0);
|
|
1636
|
+
n3 = function() {
|
|
1637
|
+
l.then(u);
|
|
1638
|
+
};
|
|
1639
|
+
} else n3 = function() {
|
|
1640
|
+
o.call(r, u);
|
|
1641
|
+
};
|
|
1642
|
+
else {
|
|
1643
|
+
var f = !0, p = document.createTextNode("");
|
|
1644
|
+
new i(u).observe(p, { characterData: !0 }), n3 = function() {
|
|
1645
|
+
p.data = f = !f;
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
return function(r2) {
|
|
1649
|
+
var o2 = { fn: r2, next: void 0 };
|
|
1650
|
+
t3 && (t3.next = o2), e3 || (e3 = o2, n3()), t3 = o2;
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
}, 8024: (e2, t2, n2) => {
|
|
1654
|
+
"use strict";
|
|
1655
|
+
var r = n2(2016);
|
|
1656
|
+
function o(e3) {
|
|
1657
|
+
var t3, n3;
|
|
1658
|
+
this.promise = new e3((function(e4, r2) {
|
|
1659
|
+
if (t3 !== void 0 || n3 !== void 0) throw TypeError("Bad Promise constructor");
|
|
1660
|
+
t3 = e4, n3 = r2;
|
|
1661
|
+
})), this.resolve = r(t3), this.reject = r(n3);
|
|
1662
|
+
}
|
|
1663
|
+
e2.exports.f = function(e3) {
|
|
1664
|
+
return new o(e3);
|
|
1665
|
+
};
|
|
1666
|
+
}, 6472: (e2, t2, n2) => {
|
|
1667
|
+
"use strict";
|
|
1668
|
+
var r = n2(5444), o = n2(5364), i = n2(3875), s = n2(1164), a = n2(2936), c = Object.assign;
|
|
1669
|
+
e2.exports = !c || n2(9316)((function() {
|
|
1670
|
+
var e3 = {}, t3 = {}, n3 = /* @__PURE__ */ Symbol(), r2 = "abcdefghijklmnopqrst";
|
|
1671
|
+
return e3[n3] = 7, r2.split("").forEach((function(e4) {
|
|
1672
|
+
t3[e4] = e4;
|
|
1673
|
+
})), c({}, e3)[n3] != 7 || Object.keys(c({}, t3)).join("") != r2;
|
|
1674
|
+
})) ? function(e3, t3) {
|
|
1675
|
+
for (var n3 = s(e3), c2 = arguments.length, u = 1, l = o.f, f = i.f; c2 > u; ) for (var p, h = a(arguments[u++]), d = l ? r(h).concat(l(h)) : r(h), m = d.length, g = 0; m > g; ) f.call(h, p = d[g++]) && (n3[p] = h[p]);
|
|
1676
|
+
return n3;
|
|
1677
|
+
} : c;
|
|
1678
|
+
}, 3472: (e2, t2, n2) => {
|
|
1679
|
+
var r = n2(3504), o = n2(1176), i = n2(444), s = n2(4588)("IE_PROTO"), a = function() {
|
|
1680
|
+
}, c = "prototype", u = function() {
|
|
1681
|
+
var e3, t3 = n2(1300)("iframe"), r2 = i.length;
|
|
1682
|
+
for (t3.style.display = "none", n2(4016).appendChild(t3), t3.src = "javascript:", (e3 = t3.contentWindow.document).open(), e3.write("<script>document.F=Object</script>"), e3.close(), u = e3.F; r2--; ) delete u[c][i[r2]];
|
|
1683
|
+
return u();
|
|
1684
|
+
};
|
|
1685
|
+
e2.exports = Object.create || function(e3, t3) {
|
|
1686
|
+
var n3;
|
|
1687
|
+
return e3 !== null ? (a[c] = r(e3), n3 = new a(), a[c] = null, n3[s] = e3) : n3 = u(), t3 === void 0 ? n3 : o(n3, t3);
|
|
1688
|
+
};
|
|
1689
|
+
}, 8520: (e2, t2, n2) => {
|
|
1690
|
+
var r = n2(3504), o = n2(5516), i = n2(1896), s = Object.defineProperty;
|
|
1691
|
+
t2.f = n2(1668) ? Object.defineProperty : function(e3, t3, n3) {
|
|
1692
|
+
if (r(e3), t3 = i(t3, !0), r(n3), o) try {
|
|
1693
|
+
return s(e3, t3, n3);
|
|
1694
|
+
} catch {
|
|
1695
|
+
}
|
|
1696
|
+
if ("get" in n3 || "set" in n3) throw TypeError("Accessors not supported!");
|
|
1697
|
+
return "value" in n3 && (e3[t3] = n3.value), e3;
|
|
1698
|
+
};
|
|
1699
|
+
}, 1176: (e2, t2, n2) => {
|
|
1700
|
+
var r = n2(8520), o = n2(3504), i = n2(5444);
|
|
1701
|
+
e2.exports = n2(1668) ? Object.defineProperties : function(e3, t3) {
|
|
1702
|
+
o(e3);
|
|
1703
|
+
for (var n3, s = i(t3), a = s.length, c = 0; a > c; ) r.f(e3, n3 = s[c++], t3[n3]);
|
|
1704
|
+
return e3;
|
|
1705
|
+
};
|
|
1706
|
+
}, 6524: (e2, t2, n2) => {
|
|
1707
|
+
var r = n2(3875), o = n2(8164), i = n2(2780), s = n2(1896), a = n2(9080), c = n2(5516), u = Object.getOwnPropertyDescriptor;
|
|
1708
|
+
t2.f = n2(1668) ? u : function(e3, t3) {
|
|
1709
|
+
if (e3 = i(e3), t3 = s(t3, !0), c) try {
|
|
1710
|
+
return u(e3, t3);
|
|
1711
|
+
} catch {
|
|
1712
|
+
}
|
|
1713
|
+
if (a(e3, t3)) return o(!r.f.call(e3, t3), e3[t3]);
|
|
1714
|
+
};
|
|
1715
|
+
}, 7732: (e2, t2, n2) => {
|
|
1716
|
+
var r = n2(3816), o = n2(444).concat("length", "prototype");
|
|
1717
|
+
t2.f = Object.getOwnPropertyNames || function(e3) {
|
|
1718
|
+
return r(e3, o);
|
|
1719
|
+
};
|
|
1720
|
+
}, 5364: (e2, t2) => {
|
|
1721
|
+
t2.f = Object.getOwnPropertySymbols;
|
|
1722
|
+
}, 9556: (e2, t2, n2) => {
|
|
1723
|
+
var r = n2(9080), o = n2(1164), i = n2(4588)("IE_PROTO"), s = Object.prototype;
|
|
1724
|
+
e2.exports = Object.getPrototypeOf || function(e3) {
|
|
1725
|
+
return e3 = o(e3), r(e3, i) ? e3[i] : typeof e3.constructor == "function" && e3 instanceof e3.constructor ? e3.constructor.prototype : e3 instanceof Object ? s : null;
|
|
1726
|
+
};
|
|
1727
|
+
}, 3816: (e2, t2, n2) => {
|
|
1728
|
+
var r = n2(9080), o = n2(2780), i = n2(7504)(!1), s = n2(4588)("IE_PROTO");
|
|
1729
|
+
e2.exports = function(e3, t3) {
|
|
1730
|
+
var n3, a = o(e3), c = 0, u = [];
|
|
1731
|
+
for (n3 in a) n3 != s && r(a, n3) && u.push(n3);
|
|
1732
|
+
for (; t3.length > c; ) r(a, n3 = t3[c++]) && (~i(u, n3) || u.push(n3));
|
|
1733
|
+
return u;
|
|
1734
|
+
};
|
|
1735
|
+
}, 5444: (e2, t2, n2) => {
|
|
1736
|
+
var r = n2(3816), o = n2(444);
|
|
1737
|
+
e2.exports = Object.keys || function(e3) {
|
|
1738
|
+
return r(e3, o);
|
|
1739
|
+
};
|
|
1740
|
+
}, 3875: (e2, t2) => {
|
|
1741
|
+
t2.f = {}.propertyIsEnumerable;
|
|
1742
|
+
}, 2504: (e2, t2, n2) => {
|
|
1743
|
+
var r = n2(5444), o = n2(2780), i = n2(3875).f;
|
|
1744
|
+
e2.exports = function(e3) {
|
|
1745
|
+
return function(t3) {
|
|
1746
|
+
for (var n3, s = o(t3), a = r(s), c = a.length, u = 0, l = []; c > u; ) i.call(s, n3 = a[u++]) && l.push(e3 ? [n3, s[n3]] : s[n3]);
|
|
1747
|
+
return l;
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1750
|
+
}, 7904: (e2) => {
|
|
1751
|
+
e2.exports = function(e3) {
|
|
1752
|
+
try {
|
|
1753
|
+
return { e: !1, v: e3() };
|
|
1754
|
+
} catch (e4) {
|
|
1755
|
+
return { e: !0, v: e4 };
|
|
1756
|
+
}
|
|
1757
|
+
};
|
|
1758
|
+
}, 0: (e2, t2, n2) => {
|
|
1759
|
+
var r = n2(3504), o = n2(3888), i = n2(8024);
|
|
1760
|
+
e2.exports = function(e3, t3) {
|
|
1761
|
+
if (r(e3), o(t3) && t3.constructor === e3) return t3;
|
|
1762
|
+
var n3 = i.f(e3);
|
|
1763
|
+
return (0, n3.resolve)(t3), n3.promise;
|
|
1764
|
+
};
|
|
1765
|
+
}, 8164: (e2) => {
|
|
1766
|
+
e2.exports = function(e3, t2) {
|
|
1767
|
+
return { enumerable: !(1 & e3), configurable: !(2 & e3), writable: !(4 & e3), value: t2 };
|
|
1768
|
+
};
|
|
1769
|
+
}, 7704: (e2, t2, n2) => {
|
|
1770
|
+
var r = n2(8868);
|
|
1771
|
+
e2.exports = function(e3, t3, n3) {
|
|
1772
|
+
for (var o in t3) r(e3, o, t3[o], n3);
|
|
1773
|
+
return e3;
|
|
1774
|
+
};
|
|
1775
|
+
}, 8868: (e2, t2, n2) => {
|
|
1776
|
+
var r = n2(2804), o = n2(2336), i = n2(9080), s = n2(9664)("src"), a = "toString", c = Function[a], u = ("" + c).split(a);
|
|
1777
|
+
n2(8432).inspectSource = function(e3) {
|
|
1778
|
+
return c.call(e3);
|
|
1779
|
+
}, (e2.exports = function(e3, t3, n3, a2) {
|
|
1780
|
+
var c2 = typeof n3 == "function";
|
|
1781
|
+
c2 && (i(n3, "name") || o(n3, "name", t3)), e3[t3] !== n3 && (c2 && (i(n3, s) || o(n3, s, e3[t3] ? "" + e3[t3] : u.join(String(t3)))), e3 === r ? e3[t3] = n3 : a2 ? e3[t3] ? e3[t3] = n3 : o(e3, t3, n3) : (delete e3[t3], o(e3, t3, n3)));
|
|
1782
|
+
})(Function.prototype, a, (function() {
|
|
1783
|
+
return typeof this == "function" && this[s] || c.call(this);
|
|
1784
|
+
}));
|
|
1785
|
+
}, 5076: (e2, t2, n2) => {
|
|
1786
|
+
var r = n2(3888), o = n2(3504), i = function(e3, t3) {
|
|
1787
|
+
if (o(e3), !r(t3) && t3 !== null) throw TypeError(t3 + ": can't set as prototype!");
|
|
1788
|
+
};
|
|
1789
|
+
e2.exports = { set: Object.setPrototypeOf || ("__proto__" in {} ? (function(e3, t3, r2) {
|
|
1790
|
+
try {
|
|
1791
|
+
(r2 = n2(800)(Function.call, n2(6524).f(Object.prototype, "__proto__").set, 2))(e3, []), t3 = !(e3 instanceof Array);
|
|
1792
|
+
} catch {
|
|
1793
|
+
t3 = !0;
|
|
1794
|
+
}
|
|
1795
|
+
return function(e4, n3) {
|
|
1796
|
+
return i(e4, n3), t3 ? e4.__proto__ = n3 : r2(e4, n3), e4;
|
|
1797
|
+
};
|
|
1798
|
+
})({}, !1) : void 0), check: i };
|
|
1799
|
+
}, 3384: (e2, t2, n2) => {
|
|
1800
|
+
"use strict";
|
|
1801
|
+
var r = n2(2804), o = n2(8520), i = n2(1668), s = n2(7096)("species");
|
|
1802
|
+
e2.exports = function(e3) {
|
|
1803
|
+
var t3 = r[e3];
|
|
1804
|
+
i && t3 && !t3[s] && o.f(t3, s, { configurable: !0, get: function() {
|
|
1805
|
+
return this;
|
|
1806
|
+
} });
|
|
1807
|
+
};
|
|
1808
|
+
}, 6256: (e2, t2, n2) => {
|
|
1809
|
+
var r = n2(8520).f, o = n2(9080), i = n2(7096)("toStringTag");
|
|
1810
|
+
e2.exports = function(e3, t3, n3) {
|
|
1811
|
+
e3 && !o(e3 = n3 ? e3 : e3.prototype, i) && r(e3, i, { configurable: !0, value: t3 });
|
|
1812
|
+
};
|
|
1813
|
+
}, 4588: (e2, t2, n2) => {
|
|
1814
|
+
var r = n2(5432)("keys"), o = n2(9664);
|
|
1815
|
+
e2.exports = function(e3) {
|
|
1816
|
+
return r[e3] || (r[e3] = o(e3));
|
|
1817
|
+
};
|
|
1818
|
+
}, 5432: (e2, t2, n2) => {
|
|
1819
|
+
var r = n2(8432), o = n2(2804), i = "__core-js_shared__", s = o[i] || (o[i] = {});
|
|
1820
|
+
(e2.exports = function(e3, t3) {
|
|
1821
|
+
return s[e3] || (s[e3] = t3 !== void 0 ? t3 : {});
|
|
1822
|
+
})("versions", []).push({ version: r.version, mode: n2(4440) ? "pure" : "global", copyright: "\xA9 2018 Denis Pushkarev (zloirock.ru)" });
|
|
1823
|
+
}, 6776: (e2, t2, n2) => {
|
|
1824
|
+
var r = n2(3504), o = n2(2016), i = n2(7096)("species");
|
|
1825
|
+
e2.exports = function(e3, t3) {
|
|
1826
|
+
var n3, s = r(e3).constructor;
|
|
1827
|
+
return s === void 0 || (n3 = r(s)[i]) == null ? t3 : o(n3);
|
|
1828
|
+
};
|
|
1829
|
+
}, 6712: (e2, t2, n2) => {
|
|
1830
|
+
"use strict";
|
|
1831
|
+
var r = n2(9316);
|
|
1832
|
+
e2.exports = function(e3, t3) {
|
|
1833
|
+
return !!e3 && r((function() {
|
|
1834
|
+
t3 ? e3.call(null, (function() {
|
|
1835
|
+
}), 1) : e3.call(null);
|
|
1836
|
+
}));
|
|
1837
|
+
};
|
|
1838
|
+
}, 2280: (e2, t2, n2) => {
|
|
1839
|
+
var r, o, i, s = n2(800), a = n2(5628), c = n2(4016), u = n2(1300), l = n2(2804), f = l.process, p = l.setImmediate, h = l.clearImmediate, d = l.MessageChannel, m = l.Dispatch, g = 0, v = {}, y = "onreadystatechange", b = function() {
|
|
1840
|
+
var e3 = +this;
|
|
1841
|
+
if (v.hasOwnProperty(e3)) {
|
|
1842
|
+
var t3 = v[e3];
|
|
1843
|
+
delete v[e3], t3();
|
|
1844
|
+
}
|
|
1845
|
+
}, w = function(e3) {
|
|
1846
|
+
b.call(e3.data);
|
|
1847
|
+
};
|
|
1848
|
+
p && h || (p = function(e3) {
|
|
1849
|
+
for (var t3 = [], n3 = 1; arguments.length > n3; ) t3.push(arguments[n3++]);
|
|
1850
|
+
return v[++g] = function() {
|
|
1851
|
+
a(typeof e3 == "function" ? e3 : Function(e3), t3);
|
|
1852
|
+
}, r(g), g;
|
|
1853
|
+
}, h = function(e3) {
|
|
1854
|
+
delete v[e3];
|
|
1855
|
+
}, n2(6924)(f) == "process" ? r = function(e3) {
|
|
1856
|
+
f.nextTick(s(b, e3, 1));
|
|
1857
|
+
} : m && m.now ? r = function(e3) {
|
|
1858
|
+
m.now(s(b, e3, 1));
|
|
1859
|
+
} : d ? (i = (o = new d()).port2, o.port1.onmessage = w, r = s(i.postMessage, i, 1)) : l.addEventListener && typeof postMessage == "function" && !l.importScripts ? (r = function(e3) {
|
|
1860
|
+
l.postMessage(e3 + "", "*");
|
|
1861
|
+
}, l.addEventListener("message", w, !1)) : r = y in u("script") ? function(e3) {
|
|
1862
|
+
c.appendChild(u("script"))[y] = function() {
|
|
1863
|
+
c.removeChild(this), b.call(e3);
|
|
1864
|
+
};
|
|
1865
|
+
} : function(e3) {
|
|
1866
|
+
setTimeout(s(b, e3, 1), 0);
|
|
1867
|
+
}), e2.exports = { set: p, clear: h };
|
|
1868
|
+
}, 8508: (e2, t2, n2) => {
|
|
1869
|
+
var r = n2(8236), o = Math.max, i = Math.min;
|
|
1870
|
+
e2.exports = function(e3, t3) {
|
|
1871
|
+
return (e3 = r(e3)) < 0 ? o(e3 + t3, 0) : i(e3, t3);
|
|
1872
|
+
};
|
|
1873
|
+
}, 8236: (e2) => {
|
|
1874
|
+
var t2 = Math.ceil, n2 = Math.floor;
|
|
1875
|
+
e2.exports = function(e3) {
|
|
1876
|
+
return isNaN(e3 = +e3) ? 0 : (e3 > 0 ? n2 : t2)(e3);
|
|
1877
|
+
};
|
|
1878
|
+
}, 2780: (e2, t2, n2) => {
|
|
1879
|
+
var r = n2(2936), o = n2(24);
|
|
1880
|
+
e2.exports = function(e3) {
|
|
1881
|
+
return r(o(e3));
|
|
1882
|
+
};
|
|
1883
|
+
}, 3528: (e2, t2, n2) => {
|
|
1884
|
+
var r = n2(8236), o = Math.min;
|
|
1885
|
+
e2.exports = function(e3) {
|
|
1886
|
+
return e3 > 0 ? o(r(e3), 9007199254740991) : 0;
|
|
1887
|
+
};
|
|
1888
|
+
}, 1164: (e2, t2, n2) => {
|
|
1889
|
+
var r = n2(24);
|
|
1890
|
+
e2.exports = function(e3) {
|
|
1891
|
+
return Object(r(e3));
|
|
1892
|
+
};
|
|
1893
|
+
}, 1896: (e2, t2, n2) => {
|
|
1894
|
+
var r = n2(3888);
|
|
1895
|
+
e2.exports = function(e3, t3) {
|
|
1896
|
+
if (!r(e3)) return e3;
|
|
1897
|
+
var n3, o;
|
|
1898
|
+
if (t3 && typeof (n3 = e3.toString) == "function" && !r(o = n3.call(e3)) || typeof (n3 = e3.valueOf) == "function" && !r(o = n3.call(e3)) || !t3 && typeof (n3 = e3.toString) == "function" && !r(o = n3.call(e3))) return o;
|
|
1899
|
+
throw TypeError("Can't convert object to primitive value");
|
|
1900
|
+
};
|
|
1901
|
+
}, 9664: (e2) => {
|
|
1902
|
+
var t2 = 0, n2 = Math.random();
|
|
1903
|
+
e2.exports = function(e3) {
|
|
1904
|
+
return "Symbol(".concat(e3 === void 0 ? "" : e3, ")_", (++t2 + n2).toString(36));
|
|
1905
|
+
};
|
|
1906
|
+
}, 1168: (e2, t2, n2) => {
|
|
1907
|
+
var r = n2(2804).navigator;
|
|
1908
|
+
e2.exports = r && r.userAgent || "";
|
|
1909
|
+
}, 2772: (e2, t2, n2) => {
|
|
1910
|
+
var r = n2(3888);
|
|
1911
|
+
e2.exports = function(e3, t3) {
|
|
1912
|
+
if (!r(e3) || e3._t !== t3) throw TypeError("Incompatible receiver, " + t3 + " required!");
|
|
1913
|
+
return e3;
|
|
1914
|
+
};
|
|
1915
|
+
}, 7096: (e2, t2, n2) => {
|
|
1916
|
+
var r = n2(5432)("wks"), o = n2(9664), i = n2(2804).Symbol, s = typeof i == "function";
|
|
1917
|
+
(e2.exports = function(e3) {
|
|
1918
|
+
return r[e3] || (r[e3] = s && i[e3] || (s ? i : o)("Symbol." + e3));
|
|
1919
|
+
}).store = r;
|
|
1920
|
+
}, 2800: (e2, t2, n2) => {
|
|
1921
|
+
var r = n2(5848), o = n2(7096)("iterator"), i = n2(2488);
|
|
1922
|
+
e2.exports = n2(8432).getIteratorMethod = function(e3) {
|
|
1923
|
+
if (e3 != null) return e3[o] || e3["@@iterator"] || i[r(e3)];
|
|
1924
|
+
};
|
|
1925
|
+
}, 4228: (e2, t2, n2) => {
|
|
1926
|
+
"use strict";
|
|
1927
|
+
var r = n2(800), o = n2(7076), i = n2(1164), s = n2(2372), a = n2(3164), c = n2(3528), u = n2(2340), l = n2(2800);
|
|
1928
|
+
o(o.S + o.F * !n2(8380)((function(e3) {
|
|
1929
|
+
Array.from(e3);
|
|
1930
|
+
})), "Array", { from: function(e3) {
|
|
1931
|
+
var t3, n3, o2, f, p = i(e3), h = typeof this == "function" ? this : Array, d = arguments.length, m = d > 1 ? arguments[1] : void 0, g = m !== void 0, v = 0, y = l(p);
|
|
1932
|
+
if (g && (m = r(m, d > 2 ? arguments[2] : void 0, 2)), y == null || h == Array && a(y)) for (n3 = new h(t3 = c(p.length)); t3 > v; v++) u(n3, v, g ? m(p[v], v) : p[v]);
|
|
1933
|
+
else for (f = y.call(p), n3 = new h(); !(o2 = f.next()).done; v++) u(n3, v, g ? s(f, m, [o2.value, v], !0) : o2.value);
|
|
1934
|
+
return n3.length = v, n3;
|
|
1935
|
+
} });
|
|
1936
|
+
}, 4260: (e2, t2, n2) => {
|
|
1937
|
+
"use strict";
|
|
1938
|
+
var r = n2(7076), o = n2(2016), i = n2(1164), s = n2(9316), a = [].sort, c = [1, 2, 3];
|
|
1939
|
+
r(r.P + r.F * (s((function() {
|
|
1940
|
+
c.sort(void 0);
|
|
1941
|
+
})) || !s((function() {
|
|
1942
|
+
c.sort(null);
|
|
1943
|
+
})) || !n2(6712)(a)), "Array", { sort: function(e3) {
|
|
1944
|
+
return e3 === void 0 ? a.call(i(this)) : a.call(i(this), o(e3));
|
|
1945
|
+
} });
|
|
1946
|
+
}, 5584: (e2, t2, n2) => {
|
|
1947
|
+
var r = n2(7076);
|
|
1948
|
+
r(r.S + r.F, "Object", { assign: n2(6472) });
|
|
1949
|
+
}, 5888: (e2, t2, n2) => {
|
|
1950
|
+
"use strict";
|
|
1951
|
+
var r, o, i, s, a = n2(4440), c = n2(2804), u = n2(800), l = n2(5848), f = n2(7076), p = n2(3888), h = n2(2016), d = n2(2388), m = n2(7228), g = n2(6776), v = n2(2280).set, y = n2(448)(), b = n2(8024), w = n2(7904), x = n2(1168), S = n2(0), P = "Promise", I = c.TypeError, O = c.process, E = O && O.versions, j = E && E.v8 || "", _ = c[P], A = l(O) == "process", k = function() {
|
|
1952
|
+
}, F = o = b.f, N = !!(function() {
|
|
1953
|
+
try {
|
|
1954
|
+
var e3 = _.resolve(1), t3 = (e3.constructor = {})[n2(7096)("species")] = function(e4) {
|
|
1955
|
+
e4(k, k);
|
|
1956
|
+
};
|
|
1957
|
+
return (A || typeof PromiseRejectionEvent == "function") && e3.then(k) instanceof t3 && j.indexOf("6.6") !== 0 && x.indexOf("Chrome/66") === -1;
|
|
1958
|
+
} catch {
|
|
1959
|
+
}
|
|
1960
|
+
})(), C = function(e3) {
|
|
1961
|
+
var t3;
|
|
1962
|
+
return !(!p(e3) || typeof (t3 = e3.then) != "function") && t3;
|
|
1963
|
+
}, M = function(e3, t3) {
|
|
1964
|
+
if (!e3._n) {
|
|
1965
|
+
e3._n = !0;
|
|
1966
|
+
var n3 = e3._c;
|
|
1967
|
+
y((function() {
|
|
1968
|
+
for (var r2 = e3._v, o2 = e3._s == 1, i2 = 0, s2 = function(t4) {
|
|
1969
|
+
var n4, i3, s3, a2 = o2 ? t4.ok : t4.fail, c2 = t4.resolve, u2 = t4.reject, l2 = t4.domain;
|
|
1970
|
+
try {
|
|
1971
|
+
a2 ? (o2 || (e3._h == 2 && $(e3), e3._h = 1), a2 === !0 ? n4 = r2 : (l2 && l2.enter(), n4 = a2(r2), l2 && (l2.exit(), s3 = !0)), n4 === t4.promise ? u2(I("Promise-chain cycle")) : (i3 = C(n4)) ? i3.call(n4, c2, u2) : c2(n4)) : u2(r2);
|
|
1972
|
+
} catch (e4) {
|
|
1973
|
+
l2 && !s3 && l2.exit(), u2(e4);
|
|
1974
|
+
}
|
|
1975
|
+
}; n3.length > i2; ) s2(n3[i2++]);
|
|
1976
|
+
e3._c = [], e3._n = !1, t3 && !e3._h && V(e3);
|
|
1977
|
+
}));
|
|
1978
|
+
}
|
|
1979
|
+
}, V = function(e3) {
|
|
1980
|
+
v.call(c, (function() {
|
|
1981
|
+
var t3, n3, r2, o2 = e3._v, i2 = D(e3);
|
|
1982
|
+
if (i2 && (t3 = w((function() {
|
|
1983
|
+
A ? O.emit("unhandledRejection", o2, e3) : (n3 = c.onunhandledrejection) ? n3({ promise: e3, reason: o2 }) : (r2 = c.console) && r2.error && r2.error("Unhandled promise rejection", o2);
|
|
1984
|
+
})), e3._h = A || D(e3) ? 2 : 1), e3._a = void 0, i2 && t3.e) throw t3.v;
|
|
1985
|
+
}));
|
|
1986
|
+
}, D = function(e3) {
|
|
1987
|
+
return e3._h !== 1 && (e3._a || e3._c).length === 0;
|
|
1988
|
+
}, $ = function(e3) {
|
|
1989
|
+
v.call(c, (function() {
|
|
1990
|
+
var t3;
|
|
1991
|
+
A ? O.emit("rejectionHandled", e3) : (t3 = c.onrejectionhandled) && t3({ promise: e3, reason: e3._v });
|
|
1992
|
+
}));
|
|
1993
|
+
}, L = function(e3) {
|
|
1994
|
+
var t3 = this;
|
|
1995
|
+
t3._d || (t3._d = !0, (t3 = t3._w || t3)._v = e3, t3._s = 2, t3._a || (t3._a = t3._c.slice()), M(t3, !0));
|
|
1996
|
+
}, T = function(e3) {
|
|
1997
|
+
var t3, n3 = this;
|
|
1998
|
+
if (!n3._d) {
|
|
1999
|
+
n3._d = !0, n3 = n3._w || n3;
|
|
2000
|
+
try {
|
|
2001
|
+
if (n3 === e3) throw I("Promise can't be resolved itself");
|
|
2002
|
+
(t3 = C(e3)) ? y((function() {
|
|
2003
|
+
var r2 = { _w: n3, _d: !1 };
|
|
2004
|
+
try {
|
|
2005
|
+
t3.call(e3, u(T, r2, 1), u(L, r2, 1));
|
|
2006
|
+
} catch (e4) {
|
|
2007
|
+
L.call(r2, e4);
|
|
2008
|
+
}
|
|
2009
|
+
})) : (n3._v = e3, n3._s = 1, M(n3, !1));
|
|
2010
|
+
} catch (e4) {
|
|
2011
|
+
L.call({ _w: n3, _d: !1 }, e4);
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
};
|
|
2015
|
+
N || (_ = function(e3) {
|
|
2016
|
+
d(this, _, P, "_h"), h(e3), r.call(this);
|
|
2017
|
+
try {
|
|
2018
|
+
e3(u(T, this, 1), u(L, this, 1));
|
|
2019
|
+
} catch (e4) {
|
|
2020
|
+
L.call(this, e4);
|
|
2021
|
+
}
|
|
2022
|
+
}, (r = function(e3) {
|
|
2023
|
+
this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1;
|
|
2024
|
+
}).prototype = n2(7704)(_.prototype, { then: function(e3, t3) {
|
|
2025
|
+
var n3 = F(g(this, _));
|
|
2026
|
+
return n3.ok = typeof e3 != "function" || e3, n3.fail = typeof t3 == "function" && t3, n3.domain = A ? O.domain : void 0, this._c.push(n3), this._a && this._a.push(n3), this._s && M(this, !1), n3.promise;
|
|
2027
|
+
}, catch: function(e3) {
|
|
2028
|
+
return this.then(void 0, e3);
|
|
2029
|
+
} }), i = function() {
|
|
2030
|
+
var e3 = new r();
|
|
2031
|
+
this.promise = e3, this.resolve = u(T, e3, 1), this.reject = u(L, e3, 1);
|
|
2032
|
+
}, b.f = F = function(e3) {
|
|
2033
|
+
return e3 === _ || e3 === s ? new i(e3) : o(e3);
|
|
2034
|
+
}), f(f.G + f.W + f.F * !N, { Promise: _ }), n2(6256)(_, P), n2(3384)(P), s = n2(8432)[P], f(f.S + f.F * !N, P, { reject: function(e3) {
|
|
2035
|
+
var t3 = F(this);
|
|
2036
|
+
return (0, t3.reject)(e3), t3.promise;
|
|
2037
|
+
} }), f(f.S + f.F * (a || !N), P, { resolve: function(e3) {
|
|
2038
|
+
return S(a && this === s ? _ : this, e3);
|
|
2039
|
+
} }), f(f.S + f.F * !(N && n2(8380)((function(e3) {
|
|
2040
|
+
_.all(e3).catch(k);
|
|
2041
|
+
}))), P, { all: function(e3) {
|
|
2042
|
+
var t3 = this, n3 = F(t3), r2 = n3.resolve, o2 = n3.reject, i2 = w((function() {
|
|
2043
|
+
var n4 = [], i3 = 0, s2 = 1;
|
|
2044
|
+
m(e3, !1, (function(e4) {
|
|
2045
|
+
var a2 = i3++, c2 = !1;
|
|
2046
|
+
n4.push(void 0), s2++, t3.resolve(e4).then((function(e5) {
|
|
2047
|
+
c2 || (c2 = !0, n4[a2] = e5, --s2 || r2(n4));
|
|
2048
|
+
}), o2);
|
|
2049
|
+
})), --s2 || r2(n4);
|
|
2050
|
+
}));
|
|
2051
|
+
return i2.e && o2(i2.v), n3.promise;
|
|
2052
|
+
}, race: function(e3) {
|
|
2053
|
+
var t3 = this, n3 = F(t3), r2 = n3.reject, o2 = w((function() {
|
|
2054
|
+
m(e3, !1, (function(e4) {
|
|
2055
|
+
t3.resolve(e4).then(n3.resolve, r2);
|
|
2056
|
+
}));
|
|
2057
|
+
}));
|
|
2058
|
+
return o2.e && r2(o2.v), n3.promise;
|
|
2059
|
+
} });
|
|
2060
|
+
}, 9224: (e2, t2, n2) => {
|
|
2061
|
+
var r = n2(2804), o = n2(2672), i = n2(8520).f, s = n2(7732).f, a = n2(7760), c = n2(8068), u = r.RegExp, l = u, f = u.prototype, p = /a/g, h = /a/g, d = new u(p) !== p;
|
|
2062
|
+
if (n2(1668) && (!d || n2(9316)((function() {
|
|
2063
|
+
return h[n2(7096)("match")] = !1, u(p) != p || u(h) == h || u(p, "i") != "/a/i";
|
|
2064
|
+
})))) {
|
|
2065
|
+
u = function(e3, t3) {
|
|
2066
|
+
var n3 = this instanceof u, r2 = a(e3), i2 = t3 === void 0;
|
|
2067
|
+
return !n3 && r2 && e3.constructor === u && i2 ? e3 : o(d ? new l(r2 && !i2 ? e3.source : e3, t3) : l((r2 = e3 instanceof u) ? e3.source : e3, r2 && i2 ? c.call(e3) : t3), n3 ? this : f, u);
|
|
2068
|
+
};
|
|
2069
|
+
for (var m = function(e3) {
|
|
2070
|
+
e3 in u || i(u, e3, { configurable: !0, get: function() {
|
|
2071
|
+
return l[e3];
|
|
2072
|
+
}, set: function(t3) {
|
|
2073
|
+
l[e3] = t3;
|
|
2074
|
+
} });
|
|
2075
|
+
}, g = s(l), v = 0; g.length > v; ) m(g[v++]);
|
|
2076
|
+
f.constructor = u, u.prototype = f, n2(8868)(r, "RegExp", u);
|
|
2077
|
+
}
|
|
2078
|
+
n2(3384)("RegExp");
|
|
2079
|
+
}, 7320: (e2, t2, n2) => {
|
|
2080
|
+
n2(1668) && /./g.flags != "g" && n2(8520).f(RegExp.prototype, "flags", { configurable: !0, get: n2(8068) });
|
|
2081
|
+
}, 4880: (e2, t2, n2) => {
|
|
2082
|
+
n2(4448)("match", 1, (function(e3, t3, n3) {
|
|
2083
|
+
return [function(n4) {
|
|
2084
|
+
"use strict";
|
|
2085
|
+
var r = e3(this), o = n4?.[t3];
|
|
2086
|
+
return o !== void 0 ? o.call(n4, r) : new RegExp(n4)[t3](String(r));
|
|
2087
|
+
}, n3];
|
|
2088
|
+
}));
|
|
2089
|
+
}, 8412: (e2, t2, n2) => {
|
|
2090
|
+
n2(4448)("replace", 2, (function(e3, t3, n3) {
|
|
2091
|
+
return [function(r, o) {
|
|
2092
|
+
"use strict";
|
|
2093
|
+
var i = e3(this), s = r?.[t3];
|
|
2094
|
+
return s !== void 0 ? s.call(r, i, o) : n3.call(String(i), r, o);
|
|
2095
|
+
}, n3];
|
|
2096
|
+
}));
|
|
2097
|
+
}, 223: (e2, t2, n2) => {
|
|
2098
|
+
n2(4448)("search", 1, (function(e3, t3, n3) {
|
|
2099
|
+
return [function(n4) {
|
|
2100
|
+
"use strict";
|
|
2101
|
+
var r = e3(this), o = n4?.[t3];
|
|
2102
|
+
return o !== void 0 ? o.call(n4, r) : new RegExp(n4)[t3](String(r));
|
|
2103
|
+
}, n3];
|
|
2104
|
+
}));
|
|
2105
|
+
}, 3708: (e2, t2, n2) => {
|
|
2106
|
+
n2(4448)("split", 2, (function(e3, t3, r) {
|
|
2107
|
+
"use strict";
|
|
2108
|
+
var o = n2(7760), i = r, s = [].push, a = "split", c = "length", u = "lastIndex";
|
|
2109
|
+
if ("abbc"[a](/(b)*/)[1] == "c" || "test"[a](/(?:)/, -1)[c] != 4 || "ab"[a](/(?:ab)*/)[c] != 2 || "."[a](/(.?)(.?)/)[c] != 4 || "."[a](/()()/)[c] > 1 || ""[a](/.?/)[c]) {
|
|
2110
|
+
var l = /()??/.exec("")[1] === void 0;
|
|
2111
|
+
r = function(e4, t4) {
|
|
2112
|
+
var n3 = String(this);
|
|
2113
|
+
if (e4 === void 0 && t4 === 0) return [];
|
|
2114
|
+
if (!o(e4)) return i.call(n3, e4, t4);
|
|
2115
|
+
var r2, a2, f, p, h, d = [], m = (e4.ignoreCase ? "i" : "") + (e4.multiline ? "m" : "") + (e4.unicode ? "u" : "") + (e4.sticky ? "y" : ""), g = 0, v = t4 === void 0 ? 4294967295 : t4 >>> 0, y = new RegExp(e4.source, m + "g");
|
|
2116
|
+
for (l || (r2 = new RegExp("^" + y.source + "$(?!\\s)", m)); (a2 = y.exec(n3)) && !((f = a2.index + a2[0][c]) > g && (d.push(n3.slice(g, a2.index)), !l && a2[c] > 1 && a2[0].replace(r2, (function() {
|
|
2117
|
+
for (h = 1; h < arguments[c] - 2; h++) arguments[h] === void 0 && (a2[h] = void 0);
|
|
2118
|
+
})), a2[c] > 1 && a2.index < n3[c] && s.apply(d, a2.slice(1)), p = a2[0][c], g = f, d[c] >= v)); ) y[u] === a2.index && y[u]++;
|
|
2119
|
+
return g === n3[c] ? !p && y.test("") || d.push("") : d.push(n3.slice(g)), d[c] > v ? d.slice(0, v) : d;
|
|
2120
|
+
};
|
|
2121
|
+
} else "0"[a](void 0, 0)[c] && (r = function(e4, t4) {
|
|
2122
|
+
return e4 === void 0 && t4 === 0 ? [] : i.call(this, e4, t4);
|
|
2123
|
+
});
|
|
2124
|
+
return [function(n3, o2) {
|
|
2125
|
+
var i2 = e3(this), s2 = n3?.[t3];
|
|
2126
|
+
return s2 !== void 0 ? s2.call(n3, i2, o2) : r.call(String(i2), n3, o2);
|
|
2127
|
+
}, r];
|
|
2128
|
+
}));
|
|
2129
|
+
}, 6568: (e2, t2, n2) => {
|
|
2130
|
+
"use strict";
|
|
2131
|
+
n2(7320);
|
|
2132
|
+
var r = n2(3504), o = n2(8068), i = n2(1668), s = "toString", a = /./[s], c = function(e3) {
|
|
2133
|
+
n2(8868)(RegExp.prototype, s, e3, !0);
|
|
2134
|
+
};
|
|
2135
|
+
n2(9316)((function() {
|
|
2136
|
+
return a.call({ source: "a", flags: "b" }) != "/a/b";
|
|
2137
|
+
})) ? c((function() {
|
|
2138
|
+
var e3 = r(this);
|
|
2139
|
+
return "/".concat(e3.source, "/", "flags" in e3 ? e3.flags : !i && e3 instanceof RegExp ? o.call(e3) : void 0);
|
|
2140
|
+
})) : a.name != s && c((function() {
|
|
2141
|
+
return a.call(this);
|
|
2142
|
+
}));
|
|
2143
|
+
}, 7276: (e2, t2, n2) => {
|
|
2144
|
+
"use strict";
|
|
2145
|
+
var r = n2(148), o = n2(2772);
|
|
2146
|
+
e2.exports = n2(9412)("Set", (function(e3) {
|
|
2147
|
+
return function() {
|
|
2148
|
+
return e3(this, arguments.length > 0 ? arguments[0] : void 0);
|
|
2149
|
+
};
|
|
2150
|
+
}), { add: function(e3) {
|
|
2151
|
+
return r.def(o(this, "Set"), e3 = e3 === 0 ? 0 : e3, e3);
|
|
2152
|
+
} }, r);
|
|
2153
|
+
}, 7360: (e2, t2, n2) => {
|
|
2154
|
+
"use strict";
|
|
2155
|
+
var r = n2(7076), o = n2(7504)(!0);
|
|
2156
|
+
r(r.P, "Array", { includes: function(e3) {
|
|
2157
|
+
return o(this, e3, arguments.length > 1 ? arguments[1] : void 0);
|
|
2158
|
+
} }), n2(7384)("includes");
|
|
2159
|
+
}, 3852: (e2, t2, n2) => {
|
|
2160
|
+
var r = n2(7076), o = n2(2504)(!0);
|
|
2161
|
+
r(r.S, "Object", { entries: function(e3) {
|
|
2162
|
+
return o(e3);
|
|
2163
|
+
} });
|
|
2164
|
+
}, 5308: (e2, t2, n2) => {
|
|
2165
|
+
var r = n2(7076), o = n2(2504)(!1);
|
|
2166
|
+
r(r.S, "Object", { values: function(e3) {
|
|
2167
|
+
return o(e3);
|
|
2168
|
+
} });
|
|
2169
|
+
}, 7468: (e2, t2, n2) => {
|
|
2170
|
+
"use strict";
|
|
2171
|
+
let r = n2(4368), o = n2(9624), i = n2(1846);
|
|
2172
|
+
function s(e3, t3, n3) {
|
|
2173
|
+
let s2 = o(e3, t3, n3), a = r.spawn(s2.command, s2.args, s2.options);
|
|
2174
|
+
return i.hookChildProcess(a, s2), a;
|
|
2175
|
+
}
|
|
2176
|
+
e2.exports = s, e2.exports.spawn = s, e2.exports.sync = function(e3, t3, n3) {
|
|
2177
|
+
let s2 = o(e3, t3, n3), a = r.spawnSync(s2.command, s2.args, s2.options);
|
|
2178
|
+
return a.error = a.error || i.verifyENOENTSync(a.status, s2), a;
|
|
2179
|
+
}, e2.exports._parse = o, e2.exports._enoent = i;
|
|
2180
|
+
}, 1846: (e2) => {
|
|
2181
|
+
"use strict";
|
|
2182
|
+
let t2 = process.platform === "win32";
|
|
2183
|
+
function n2(e3, t3) {
|
|
2184
|
+
return Object.assign(new Error(`${t3} ${e3.command} ENOENT`), { code: "ENOENT", errno: "ENOENT", syscall: `${t3} ${e3.command}`, path: e3.command, spawnargs: e3.args });
|
|
2185
|
+
}
|
|
2186
|
+
function r(e3, r2) {
|
|
2187
|
+
return t2 && e3 === 1 && !r2.file ? n2(r2.original, "spawn") : null;
|
|
2188
|
+
}
|
|
2189
|
+
e2.exports = { hookChildProcess: function(e3, n3) {
|
|
2190
|
+
if (!t2) return;
|
|
2191
|
+
let o = e3.emit;
|
|
2192
|
+
e3.emit = function(t3, i) {
|
|
2193
|
+
if (t3 === "exit") {
|
|
2194
|
+
let t4 = r(i, n3);
|
|
2195
|
+
if (t4) return o.call(e3, "error", t4);
|
|
2196
|
+
}
|
|
2197
|
+
return o.apply(e3, arguments);
|
|
2198
|
+
};
|
|
2199
|
+
}, verifyENOENT: r, verifyENOENTSync: function(e3, r2) {
|
|
2200
|
+
return t2 && e3 === 1 && !r2.file ? n2(r2.original, "spawnSync") : null;
|
|
2201
|
+
}, notFoundError: n2 };
|
|
2202
|
+
}, 9624: (e2, t2, n2) => {
|
|
2203
|
+
"use strict";
|
|
2204
|
+
let r = n2(7072), o = n2(9480), i = n2(8372), s = n2(824), a = n2(7780), c = n2(1716), u = process.platform === "win32", l = /\.(?:com|exe)$/i, f = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i, p = o((() => c.satisfies(process.version, "^4.8.0 || ^5.7.0 || >= 6.0.0", !0))) || !1;
|
|
2205
|
+
e2.exports = function(e3, t3, n3) {
|
|
2206
|
+
t3 && !Array.isArray(t3) && (n3 = t3, t3 = null);
|
|
2207
|
+
let o2 = { command: e3, args: t3 = t3 ? t3.slice(0) : [], options: n3 = Object.assign({}, n3), file: void 0, original: { command: e3, args: t3 } };
|
|
2208
|
+
return n3.shell ? (function(e4) {
|
|
2209
|
+
if (p) return e4;
|
|
2210
|
+
let t4 = [e4.command].concat(e4.args).join(" ");
|
|
2211
|
+
return u ? (e4.command = typeof e4.options.shell == "string" ? e4.options.shell : process.env.comspec || "cmd.exe", e4.args = ["/d", "/s", "/c", `"${t4}"`], e4.options.windowsVerbatimArguments = !0) : (typeof e4.options.shell == "string" ? e4.command = e4.options.shell : process.platform === "android" ? e4.command = "/system/bin/sh" : e4.command = "/bin/sh", e4.args = ["-c", t4]), e4;
|
|
2212
|
+
})(o2) : (function(e4) {
|
|
2213
|
+
if (!u) return e4;
|
|
2214
|
+
let t4 = (function(e5) {
|
|
2215
|
+
e5.file = i(e5);
|
|
2216
|
+
let t5 = e5.file && a(e5.file);
|
|
2217
|
+
return t5 ? (e5.args.unshift(e5.file), e5.command = t5, i(e5)) : e5.file;
|
|
2218
|
+
})(e4), n4 = !l.test(t4);
|
|
2219
|
+
if (e4.options.forceShell || n4) {
|
|
2220
|
+
let n5 = f.test(t4);
|
|
2221
|
+
e4.command = r.normalize(e4.command), e4.command = s.command(e4.command), e4.args = e4.args.map(((e5) => s.argument(e5, n5)));
|
|
2222
|
+
let o3 = [e4.command].concat(e4.args).join(" ");
|
|
2223
|
+
e4.args = ["/d", "/s", "/c", `"${o3}"`], e4.command = process.env.comspec || "cmd.exe", e4.options.windowsVerbatimArguments = !0;
|
|
2224
|
+
}
|
|
2225
|
+
return e4;
|
|
2226
|
+
})(o2);
|
|
2227
|
+
};
|
|
2228
|
+
}, 824: (e2) => {
|
|
2229
|
+
"use strict";
|
|
2230
|
+
let t2 = /([()\][%!^"`<>&|;, *?])/g;
|
|
2231
|
+
e2.exports.command = function(e3) {
|
|
2232
|
+
return e3.replace(t2, "^$1");
|
|
2233
|
+
}, e2.exports.argument = function(e3, n2) {
|
|
2234
|
+
return e3 = (e3 = `"${e3 = (e3 = (e3 = `${e3}`).replace(/(\\*)"/g, '$1$1\\"')).replace(/(\\*)$/, "$1$1")}"`).replace(t2, "^$1"), n2 && (e3 = e3.replace(t2, "^$1")), e3;
|
|
2235
|
+
};
|
|
2236
|
+
}, 7780: (e2, t2, n2) => {
|
|
2237
|
+
"use strict";
|
|
2238
|
+
let r = n2(2058), o = n2(6176);
|
|
2239
|
+
e2.exports = function(e3) {
|
|
2240
|
+
let t3, n3;
|
|
2241
|
+
Buffer.alloc ? t3 = Buffer.alloc(150) : (t3 = new Buffer(150), t3.fill(0));
|
|
2242
|
+
try {
|
|
2243
|
+
n3 = r.openSync(e3, "r"), r.readSync(n3, t3, 0, 150, 0), r.closeSync(n3);
|
|
2244
|
+
} catch {
|
|
2245
|
+
}
|
|
2246
|
+
return o(t3.toString());
|
|
2247
|
+
};
|
|
2248
|
+
}, 8372: (e2, t2, n2) => {
|
|
2249
|
+
"use strict";
|
|
2250
|
+
let r = n2(7072), o = n2(8460), i = n2(3032)();
|
|
2251
|
+
function s(e3, t3) {
|
|
2252
|
+
let n3 = process.cwd(), s2 = e3.options.cwd != null;
|
|
2253
|
+
if (s2) try {
|
|
2254
|
+
process.chdir(e3.options.cwd);
|
|
2255
|
+
} catch {
|
|
2256
|
+
}
|
|
2257
|
+
let a;
|
|
2258
|
+
try {
|
|
2259
|
+
a = o.sync(e3.command, { path: (e3.options.env || process.env)[i], pathExt: t3 ? r.delimiter : void 0 });
|
|
2260
|
+
} catch {
|
|
2261
|
+
} finally {
|
|
2262
|
+
process.chdir(n3);
|
|
2263
|
+
}
|
|
2264
|
+
return a && (a = r.resolve(s2 ? e3.options.cwd : "", a)), a;
|
|
2265
|
+
}
|
|
2266
|
+
e2.exports = function(e3) {
|
|
2267
|
+
return s(e3) || s(e3, !0);
|
|
2268
|
+
};
|
|
2269
|
+
}, 9988: (e2, t2, n2) => {
|
|
2270
|
+
var r = n2(4640), o = function() {
|
|
2271
|
+
}, i = function(e3, t3, n3) {
|
|
2272
|
+
if (typeof t3 == "function") return i(e3, null, t3);
|
|
2273
|
+
t3 || (t3 = {}), n3 = r(n3 || o);
|
|
2274
|
+
var s = e3._writableState, a = e3._readableState, c = t3.readable || t3.readable !== !1 && e3.readable, u = t3.writable || t3.writable !== !1 && e3.writable, l = function() {
|
|
2275
|
+
e3.writable || f();
|
|
2276
|
+
}, f = function() {
|
|
2277
|
+
u = !1, c || n3.call(e3);
|
|
2278
|
+
}, p = function() {
|
|
2279
|
+
c = !1, u || n3.call(e3);
|
|
2280
|
+
}, h = function(t4) {
|
|
2281
|
+
n3.call(e3, t4 ? new Error("exited with error code: " + t4) : null);
|
|
2282
|
+
}, d = function(t4) {
|
|
2283
|
+
n3.call(e3, t4);
|
|
2284
|
+
}, m = function() {
|
|
2285
|
+
return (!c || a && a.ended) && (!u || s && s.ended) ? void 0 : n3.call(e3, new Error("premature close"));
|
|
2286
|
+
}, g = function() {
|
|
2287
|
+
e3.req.on("finish", f);
|
|
2288
|
+
};
|
|
2289
|
+
return (function(e4) {
|
|
2290
|
+
return e4.setHeader && typeof e4.abort == "function";
|
|
2291
|
+
})(e3) ? (e3.on("complete", f), e3.on("abort", m), e3.req ? g() : e3.on("request", g)) : u && !s && (e3.on("end", l), e3.on("close", l)), (function(e4) {
|
|
2292
|
+
return e4.stdio && Array.isArray(e4.stdio) && e4.stdio.length === 3;
|
|
2293
|
+
})(e3) && e3.on("exit", h), e3.on("end", p), e3.on("finish", f), t3.error !== !1 && e3.on("error", d), e3.on("close", m), function() {
|
|
2294
|
+
e3.removeListener("complete", f), e3.removeListener("abort", m), e3.removeListener("request", g), e3.req && e3.req.removeListener("finish", f), e3.removeListener("end", l), e3.removeListener("close", l), e3.removeListener("finish", f), e3.removeListener("exit", h), e3.removeListener("end", p), e3.removeListener("error", d), e3.removeListener("close", m);
|
|
2295
|
+
};
|
|
2296
|
+
};
|
|
2297
|
+
e2.exports = i;
|
|
2298
|
+
}, 84: (e2, t2, n2) => {
|
|
2299
|
+
e2.exports = l, l.realpath = l, l.sync = f, l.realpathSync = f, l.monkeypatch = function() {
|
|
2300
|
+
r.realpath = l, r.realpathSync = f;
|
|
2301
|
+
}, l.unmonkeypatch = function() {
|
|
2302
|
+
r.realpath = o, r.realpathSync = i;
|
|
2303
|
+
};
|
|
2304
|
+
var r = n2(2058), o = r.realpath, i = r.realpathSync, s = process.version, a = /^v[0-5]\./.test(s), c = n2(7192);
|
|
2305
|
+
function u(e3) {
|
|
2306
|
+
return e3 && e3.syscall === "realpath" && (e3.code === "ELOOP" || e3.code === "ENOMEM" || e3.code === "ENAMETOOLONG");
|
|
2307
|
+
}
|
|
2308
|
+
function l(e3, t3, n3) {
|
|
2309
|
+
if (a) return o(e3, t3, n3);
|
|
2310
|
+
typeof t3 == "function" && (n3 = t3, t3 = null), o(e3, t3, (function(r2, o2) {
|
|
2311
|
+
u(r2) ? c.realpath(e3, t3, n3) : n3(r2, o2);
|
|
2312
|
+
}));
|
|
2313
|
+
}
|
|
2314
|
+
function f(e3, t3) {
|
|
2315
|
+
if (a) return i(e3, t3);
|
|
2316
|
+
try {
|
|
2317
|
+
return i(e3, t3);
|
|
2318
|
+
} catch (n3) {
|
|
2319
|
+
if (u(n3)) return c.realpathSync(e3, t3);
|
|
2320
|
+
throw n3;
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
}, 7192: (e2, t2, n2) => {
|
|
2324
|
+
var r = n2(7072), o = process.platform === "win32", i = n2(2058), s = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
2325
|
+
if (r.normalize, o) var a = /(.*?)(?:[\/\\]+|$)/g;
|
|
2326
|
+
else a = /(.*?)(?:[\/]+|$)/g;
|
|
2327
|
+
if (o) var c = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
|
2328
|
+
else c = /^[\/]*/;
|
|
2329
|
+
t2.realpathSync = function(e3, t3) {
|
|
2330
|
+
if (e3 = r.resolve(e3), t3 && Object.prototype.hasOwnProperty.call(t3, e3)) return t3[e3];
|
|
2331
|
+
var n3, s2, u, l, f = e3, p = {}, h = {};
|
|
2332
|
+
function d() {
|
|
2333
|
+
var t4 = c.exec(e3);
|
|
2334
|
+
n3 = t4[0].length, s2 = t4[0], u = t4[0], l = "", o && !h[u] && (i.lstatSync(u), h[u] = !0);
|
|
2335
|
+
}
|
|
2336
|
+
for (d(); n3 < e3.length; ) {
|
|
2337
|
+
a.lastIndex = n3;
|
|
2338
|
+
var m = a.exec(e3);
|
|
2339
|
+
if (l = s2, s2 += m[0], u = l + m[1], n3 = a.lastIndex, !(h[u] || t3 && t3[u] === u)) {
|
|
2340
|
+
var g;
|
|
2341
|
+
if (t3 && Object.prototype.hasOwnProperty.call(t3, u)) g = t3[u];
|
|
2342
|
+
else {
|
|
2343
|
+
var v = i.lstatSync(u);
|
|
2344
|
+
if (!v.isSymbolicLink()) {
|
|
2345
|
+
h[u] = !0, t3 && (t3[u] = u);
|
|
2346
|
+
continue;
|
|
2347
|
+
}
|
|
2348
|
+
var y = null;
|
|
2349
|
+
if (!o) {
|
|
2350
|
+
var b = v.dev.toString(32) + ":" + v.ino.toString(32);
|
|
2351
|
+
p.hasOwnProperty(b) && (y = p[b]);
|
|
2352
|
+
}
|
|
2353
|
+
y === null && (i.statSync(u), y = i.readlinkSync(u)), g = r.resolve(l, y), t3 && (t3[u] = g), o || (p[b] = y);
|
|
2354
|
+
}
|
|
2355
|
+
e3 = r.resolve(g, e3.slice(n3)), d();
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
return t3 && (t3[f] = e3), e3;
|
|
2359
|
+
}, t2.realpath = function(e3, t3, n3) {
|
|
2360
|
+
if (typeof n3 != "function" && (n3 = (function(e4) {
|
|
2361
|
+
return typeof e4 == "function" ? e4 : (function() {
|
|
2362
|
+
var e5;
|
|
2363
|
+
if (s) {
|
|
2364
|
+
var t4 = new Error();
|
|
2365
|
+
e5 = function(e6) {
|
|
2366
|
+
e6 && (t4.message = e6.message, n4(e6 = t4));
|
|
2367
|
+
};
|
|
2368
|
+
} else e5 = n4;
|
|
2369
|
+
return e5;
|
|
2370
|
+
function n4(e6) {
|
|
2371
|
+
if (e6) {
|
|
2372
|
+
if (process.throwDeprecation) throw e6;
|
|
2373
|
+
if (!process.noDeprecation) {
|
|
2374
|
+
var t5 = "fs: missing callback " + (e6.stack || e6.message);
|
|
2375
|
+
process.traceDeprecation ? console.trace(t5) : console.error(t5);
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
})();
|
|
2380
|
+
})(t3), t3 = null), e3 = r.resolve(e3), t3 && Object.prototype.hasOwnProperty.call(t3, e3)) return process.nextTick(n3.bind(null, null, t3[e3]));
|
|
2381
|
+
var u, l, f, p, h = e3, d = {}, m = {};
|
|
2382
|
+
function g() {
|
|
2383
|
+
var t4 = c.exec(e3);
|
|
2384
|
+
u = t4[0].length, l = t4[0], f = t4[0], p = "", o && !m[f] ? i.lstat(f, (function(e4) {
|
|
2385
|
+
if (e4) return n3(e4);
|
|
2386
|
+
m[f] = !0, v();
|
|
2387
|
+
})) : process.nextTick(v);
|
|
2388
|
+
}
|
|
2389
|
+
function v() {
|
|
2390
|
+
if (u >= e3.length) return t3 && (t3[h] = e3), n3(null, e3);
|
|
2391
|
+
a.lastIndex = u;
|
|
2392
|
+
var r2 = a.exec(e3);
|
|
2393
|
+
return p = l, l += r2[0], f = p + r2[1], u = a.lastIndex, m[f] || t3 && t3[f] === f ? process.nextTick(v) : t3 && Object.prototype.hasOwnProperty.call(t3, f) ? w(t3[f]) : i.lstat(f, y);
|
|
2394
|
+
}
|
|
2395
|
+
function y(e4, r2) {
|
|
2396
|
+
if (e4) return n3(e4);
|
|
2397
|
+
if (!r2.isSymbolicLink()) return m[f] = !0, t3 && (t3[f] = f), process.nextTick(v);
|
|
2398
|
+
if (!o) {
|
|
2399
|
+
var s2 = r2.dev.toString(32) + ":" + r2.ino.toString(32);
|
|
2400
|
+
if (d.hasOwnProperty(s2)) return b(null, d[s2], f);
|
|
2401
|
+
}
|
|
2402
|
+
i.stat(f, (function(e5) {
|
|
2403
|
+
if (e5) return n3(e5);
|
|
2404
|
+
i.readlink(f, (function(e6, t4) {
|
|
2405
|
+
o || (d[s2] = t4), b(e6, t4);
|
|
2406
|
+
}));
|
|
2407
|
+
}));
|
|
2408
|
+
}
|
|
2409
|
+
function b(e4, o2, i2) {
|
|
2410
|
+
if (e4) return n3(e4);
|
|
2411
|
+
var s2 = r.resolve(p, o2);
|
|
2412
|
+
t3 && (t3[i2] = s2), w(s2);
|
|
2413
|
+
}
|
|
2414
|
+
function w(t4) {
|
|
2415
|
+
e3 = r.resolve(t4, e3.slice(u)), g();
|
|
2416
|
+
}
|
|
2417
|
+
g();
|
|
2418
|
+
};
|
|
2419
|
+
}, 9712: (e2, t2, n2) => {
|
|
2420
|
+
function r(e3, t3) {
|
|
2421
|
+
return Object.prototype.hasOwnProperty.call(e3, t3);
|
|
2422
|
+
}
|
|
2423
|
+
t2.alphasort = u, t2.alphasorti = c, t2.setopts = function(e3, t3, n3) {
|
|
2424
|
+
if (n3 || (n3 = {}), n3.matchBase && t3.indexOf("/") === -1) {
|
|
2425
|
+
if (n3.noglobstar) throw new Error("base matching requires globstar");
|
|
2426
|
+
t3 = "**/" + t3;
|
|
2427
|
+
}
|
|
2428
|
+
e3.silent = !!n3.silent, e3.pattern = t3, e3.strict = n3.strict !== !1, e3.realpath = !!n3.realpath, e3.realpathCache = n3.realpathCache || /* @__PURE__ */ Object.create(null), e3.follow = !!n3.follow, e3.dot = !!n3.dot, e3.mark = !!n3.mark, e3.nodir = !!n3.nodir, e3.nodir && (e3.mark = !0), e3.sync = !!n3.sync, e3.nounique = !!n3.nounique, e3.nonull = !!n3.nonull, e3.nosort = !!n3.nosort, e3.nocase = !!n3.nocase, e3.stat = !!n3.stat, e3.noprocess = !!n3.noprocess, e3.absolute = !!n3.absolute, e3.maxLength = n3.maxLength || 1 / 0, e3.cache = n3.cache || /* @__PURE__ */ Object.create(null), e3.statCache = n3.statCache || /* @__PURE__ */ Object.create(null), e3.symlinks = n3.symlinks || /* @__PURE__ */ Object.create(null), (function(e4, t4) {
|
|
2429
|
+
e4.ignore = t4.ignore || [], Array.isArray(e4.ignore) || (e4.ignore = [e4.ignore]), e4.ignore.length && (e4.ignore = e4.ignore.map(l));
|
|
2430
|
+
})(e3, n3), e3.changedCwd = !1;
|
|
2431
|
+
var i2 = process.cwd();
|
|
2432
|
+
r(n3, "cwd") ? (e3.cwd = o.resolve(n3.cwd), e3.changedCwd = e3.cwd !== i2) : e3.cwd = i2, e3.root = n3.root || o.resolve(e3.cwd, "/"), e3.root = o.resolve(e3.root), process.platform === "win32" && (e3.root = e3.root.replace(/\\/g, "/")), e3.cwdAbs = s(e3.cwd) ? e3.cwd : f(e3, e3.cwd), process.platform === "win32" && (e3.cwdAbs = e3.cwdAbs.replace(/\\/g, "/")), e3.nomount = !!n3.nomount, n3.nonegate = !0, n3.nocomment = !0, e3.minimatch = new a(t3, n3), e3.options = e3.minimatch.options;
|
|
2433
|
+
}, t2.ownProp = r, t2.makeAbs = f, t2.finish = function(e3) {
|
|
2434
|
+
for (var t3 = e3.nounique, n3 = t3 ? [] : /* @__PURE__ */ Object.create(null), r2 = 0, o2 = e3.matches.length; r2 < o2; r2++) {
|
|
2435
|
+
var i2 = e3.matches[r2];
|
|
2436
|
+
if (i2 && Object.keys(i2).length !== 0) {
|
|
2437
|
+
var s2 = Object.keys(i2);
|
|
2438
|
+
t3 ? n3.push.apply(n3, s2) : s2.forEach((function(e4) {
|
|
2439
|
+
n3[e4] = !0;
|
|
2440
|
+
}));
|
|
2441
|
+
} else if (e3.nonull) {
|
|
2442
|
+
var a2 = e3.minimatch.globSet[r2];
|
|
2443
|
+
t3 ? n3.push(a2) : n3[a2] = !0;
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
if (t3 || (n3 = Object.keys(n3)), e3.nosort || (n3 = n3.sort(e3.nocase ? c : u)), e3.mark) {
|
|
2447
|
+
for (r2 = 0; r2 < n3.length; r2++) n3[r2] = e3._mark(n3[r2]);
|
|
2448
|
+
e3.nodir && (n3 = n3.filter((function(t4) {
|
|
2449
|
+
var n4 = !/\/$/.test(t4), r3 = e3.cache[t4] || e3.cache[f(e3, t4)];
|
|
2450
|
+
return n4 && r3 && (n4 = r3 !== "DIR" && !Array.isArray(r3)), n4;
|
|
2451
|
+
})));
|
|
2452
|
+
}
|
|
2453
|
+
e3.ignore.length && (n3 = n3.filter((function(t4) {
|
|
2454
|
+
return !p(e3, t4);
|
|
2455
|
+
}))), e3.found = n3;
|
|
2456
|
+
}, t2.mark = function(e3, t3) {
|
|
2457
|
+
var n3 = f(e3, t3), r2 = e3.cache[n3], o2 = t3;
|
|
2458
|
+
if (r2) {
|
|
2459
|
+
var i2 = r2 === "DIR" || Array.isArray(r2), s2 = t3.slice(-1) === "/";
|
|
2460
|
+
if (i2 && !s2 ? o2 += "/" : !i2 && s2 && (o2 = o2.slice(0, -1)), o2 !== t3) {
|
|
2461
|
+
var a2 = f(e3, o2);
|
|
2462
|
+
e3.statCache[a2] = e3.statCache[n3], e3.cache[a2] = e3.cache[n3];
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
return o2;
|
|
2466
|
+
}, t2.isIgnored = p, t2.childrenIgnored = function(e3, t3) {
|
|
2467
|
+
return !!e3.ignore.length && e3.ignore.some((function(e4) {
|
|
2468
|
+
return !(!e4.gmatcher || !e4.gmatcher.match(t3));
|
|
2469
|
+
}));
|
|
2470
|
+
};
|
|
2471
|
+
var o = n2(7072), i = n2(836), s = n2(4832), a = i.Minimatch;
|
|
2472
|
+
function c(e3, t3) {
|
|
2473
|
+
return e3.toLowerCase().localeCompare(t3.toLowerCase());
|
|
2474
|
+
}
|
|
2475
|
+
function u(e3, t3) {
|
|
2476
|
+
return e3.localeCompare(t3);
|
|
2477
|
+
}
|
|
2478
|
+
function l(e3) {
|
|
2479
|
+
var t3 = null;
|
|
2480
|
+
if (e3.slice(-3) === "/**") {
|
|
2481
|
+
var n3 = e3.replace(/(\/\*\*)+$/, "");
|
|
2482
|
+
t3 = new a(n3, { dot: !0 });
|
|
2483
|
+
}
|
|
2484
|
+
return { matcher: new a(e3, { dot: !0 }), gmatcher: t3 };
|
|
2485
|
+
}
|
|
2486
|
+
function f(e3, t3) {
|
|
2487
|
+
var n3 = t3;
|
|
2488
|
+
return n3 = t3.charAt(0) === "/" ? o.join(e3.root, t3) : s(t3) || t3 === "" ? t3 : e3.changedCwd ? o.resolve(e3.cwd, t3) : o.resolve(t3), process.platform === "win32" && (n3 = n3.replace(/\\/g, "/")), n3;
|
|
2489
|
+
}
|
|
2490
|
+
function p(e3, t3) {
|
|
2491
|
+
return !!e3.ignore.length && e3.ignore.some((function(e4) {
|
|
2492
|
+
return e4.matcher.match(t3) || !(!e4.gmatcher || !e4.gmatcher.match(t3));
|
|
2493
|
+
}));
|
|
2494
|
+
}
|
|
2495
|
+
}, 808: (e2, t2, n2) => {
|
|
2496
|
+
e2.exports = b;
|
|
2497
|
+
var r = n2(2058), o = n2(84), i = n2(836), s = (i.Minimatch, n2(3352)), a = n2(467).EventEmitter, c = n2(7072), u = n2(6608), l = n2(4832), f = n2(4548), p = n2(9712), h = (p.alphasort, p.alphasorti, p.setopts), d = p.ownProp, m = n2(363), g = (n2(970), p.childrenIgnored), v = p.isIgnored, y = n2(4640);
|
|
2498
|
+
function b(e3, t3, n3) {
|
|
2499
|
+
if (typeof t3 == "function" && (n3 = t3, t3 = {}), t3 || (t3 = {}), t3.sync) {
|
|
2500
|
+
if (n3) throw new TypeError("callback provided to sync glob");
|
|
2501
|
+
return f(e3, t3);
|
|
2502
|
+
}
|
|
2503
|
+
return new x(e3, t3, n3);
|
|
2504
|
+
}
|
|
2505
|
+
b.sync = f;
|
|
2506
|
+
var w = b.GlobSync = f.GlobSync;
|
|
2507
|
+
function x(e3, t3, n3) {
|
|
2508
|
+
if (typeof t3 == "function" && (n3 = t3, t3 = null), t3 && t3.sync) {
|
|
2509
|
+
if (n3) throw new TypeError("callback provided to sync glob");
|
|
2510
|
+
return new w(e3, t3);
|
|
2511
|
+
}
|
|
2512
|
+
if (!(this instanceof x)) return new x(e3, t3, n3);
|
|
2513
|
+
h(this, e3, t3), this._didRealPath = !1;
|
|
2514
|
+
var r2 = this.minimatch.set.length;
|
|
2515
|
+
this.matches = new Array(r2), typeof n3 == "function" && (n3 = y(n3), this.on("error", n3), this.on("end", (function(e4) {
|
|
2516
|
+
n3(null, e4);
|
|
2517
|
+
})));
|
|
2518
|
+
var o2 = this;
|
|
2519
|
+
if (this._processing = 0, this._emitQueue = [], this._processQueue = [], this.paused = !1, this.noprocess) return this;
|
|
2520
|
+
if (r2 === 0) return a2();
|
|
2521
|
+
for (var i2 = !0, s2 = 0; s2 < r2; s2++) this._process(this.minimatch.set[s2], s2, !1, a2);
|
|
2522
|
+
function a2() {
|
|
2523
|
+
--o2._processing, o2._processing <= 0 && (i2 ? process.nextTick((function() {
|
|
2524
|
+
o2._finish();
|
|
2525
|
+
})) : o2._finish());
|
|
2526
|
+
}
|
|
2527
|
+
i2 = !1;
|
|
2528
|
+
}
|
|
2529
|
+
b.glob = b, b.hasMagic = function(e3, t3) {
|
|
2530
|
+
var n3 = (function(e4, t4) {
|
|
2531
|
+
if (t4 === null || typeof t4 != "object") return e4;
|
|
2532
|
+
for (var n4 = Object.keys(t4), r3 = n4.length; r3--; ) e4[n4[r3]] = t4[n4[r3]];
|
|
2533
|
+
return e4;
|
|
2534
|
+
})({}, t3);
|
|
2535
|
+
n3.noprocess = !0;
|
|
2536
|
+
var r2 = new x(e3, n3).minimatch.set;
|
|
2537
|
+
if (!e3) return !1;
|
|
2538
|
+
if (r2.length > 1) return !0;
|
|
2539
|
+
for (var o2 = 0; o2 < r2[0].length; o2++) if (typeof r2[0][o2] != "string") return !0;
|
|
2540
|
+
return !1;
|
|
2541
|
+
}, b.Glob = x, s(x, a), x.prototype._finish = function() {
|
|
2542
|
+
if (u(this instanceof x), !this.aborted) {
|
|
2543
|
+
if (this.realpath && !this._didRealpath) return this._realpath();
|
|
2544
|
+
p.finish(this), this.emit("end", this.found);
|
|
2545
|
+
}
|
|
2546
|
+
}, x.prototype._realpath = function() {
|
|
2547
|
+
if (!this._didRealpath) {
|
|
2548
|
+
this._didRealpath = !0;
|
|
2549
|
+
var e3 = this.matches.length;
|
|
2550
|
+
if (e3 === 0) return this._finish();
|
|
2551
|
+
for (var t3 = this, n3 = 0; n3 < this.matches.length; n3++) this._realpathSet(n3, r2);
|
|
2552
|
+
}
|
|
2553
|
+
function r2() {
|
|
2554
|
+
--e3 == 0 && t3._finish();
|
|
2555
|
+
}
|
|
2556
|
+
}, x.prototype._realpathSet = function(e3, t3) {
|
|
2557
|
+
var n3 = this.matches[e3];
|
|
2558
|
+
if (!n3) return t3();
|
|
2559
|
+
var r2 = Object.keys(n3), i2 = this, s2 = r2.length;
|
|
2560
|
+
if (s2 === 0) return t3();
|
|
2561
|
+
var a2 = this.matches[e3] = /* @__PURE__ */ Object.create(null);
|
|
2562
|
+
r2.forEach((function(n4, r3) {
|
|
2563
|
+
n4 = i2._makeAbs(n4), o.realpath(n4, i2.realpathCache, (function(r4, o2) {
|
|
2564
|
+
r4 ? r4.syscall === "stat" ? a2[n4] = !0 : i2.emit("error", r4) : a2[o2] = !0, --s2 == 0 && (i2.matches[e3] = a2, t3());
|
|
2565
|
+
}));
|
|
2566
|
+
}));
|
|
2567
|
+
}, x.prototype._mark = function(e3) {
|
|
2568
|
+
return p.mark(this, e3);
|
|
2569
|
+
}, x.prototype._makeAbs = function(e3) {
|
|
2570
|
+
return p.makeAbs(this, e3);
|
|
2571
|
+
}, x.prototype.abort = function() {
|
|
2572
|
+
this.aborted = !0, this.emit("abort");
|
|
2573
|
+
}, x.prototype.pause = function() {
|
|
2574
|
+
this.paused || (this.paused = !0, this.emit("pause"));
|
|
2575
|
+
}, x.prototype.resume = function() {
|
|
2576
|
+
if (this.paused) {
|
|
2577
|
+
if (this.emit("resume"), this.paused = !1, this._emitQueue.length) {
|
|
2578
|
+
var e3 = this._emitQueue.slice(0);
|
|
2579
|
+
this._emitQueue.length = 0;
|
|
2580
|
+
for (var t3 = 0; t3 < e3.length; t3++) {
|
|
2581
|
+
var n3 = e3[t3];
|
|
2582
|
+
this._emitMatch(n3[0], n3[1]);
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
if (this._processQueue.length) {
|
|
2586
|
+
var r2 = this._processQueue.slice(0);
|
|
2587
|
+
for (this._processQueue.length = 0, t3 = 0; t3 < r2.length; t3++) {
|
|
2588
|
+
var o2 = r2[t3];
|
|
2589
|
+
this._processing--, this._process(o2[0], o2[1], o2[2], o2[3]);
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
}, x.prototype._process = function(e3, t3, n3, r2) {
|
|
2594
|
+
if (u(this instanceof x), u(typeof r2 == "function"), !this.aborted) if (this._processing++, this.paused) this._processQueue.push([e3, t3, n3, r2]);
|
|
2595
|
+
else {
|
|
2596
|
+
for (var o2, s2 = 0; typeof e3[s2] == "string"; ) s2++;
|
|
2597
|
+
switch (s2) {
|
|
2598
|
+
case e3.length:
|
|
2599
|
+
return void this._processSimple(e3.join("/"), t3, r2);
|
|
2600
|
+
case 0:
|
|
2601
|
+
o2 = null;
|
|
2602
|
+
break;
|
|
2603
|
+
default:
|
|
2604
|
+
o2 = e3.slice(0, s2).join("/");
|
|
2605
|
+
}
|
|
2606
|
+
var a2, c2 = e3.slice(s2);
|
|
2607
|
+
o2 === null ? a2 = "." : ((l(o2) || l(e3.join("/"))) && (o2 && l(o2) || (o2 = "/" + o2)), a2 = o2);
|
|
2608
|
+
var f2 = this._makeAbs(a2);
|
|
2609
|
+
if (g(this, a2)) return r2();
|
|
2610
|
+
c2[0] === i.GLOBSTAR ? this._processGlobStar(o2, a2, f2, c2, t3, n3, r2) : this._processReaddir(o2, a2, f2, c2, t3, n3, r2);
|
|
2611
|
+
}
|
|
2612
|
+
}, x.prototype._processReaddir = function(e3, t3, n3, r2, o2, i2, s2) {
|
|
2613
|
+
var a2 = this;
|
|
2614
|
+
this._readdir(n3, i2, (function(c2, u2) {
|
|
2615
|
+
return a2._processReaddir2(e3, t3, n3, r2, o2, i2, u2, s2);
|
|
2616
|
+
}));
|
|
2617
|
+
}, x.prototype._processReaddir2 = function(e3, t3, n3, r2, o2, i2, s2, a2) {
|
|
2618
|
+
if (!s2) return a2();
|
|
2619
|
+
for (var u2 = r2[0], l2 = !!this.minimatch.negate, f2 = u2._glob, p2 = this.dot || f2.charAt(0) === ".", h2 = [], d2 = 0; d2 < s2.length; d2++) ((g2 = s2[d2]).charAt(0) !== "." || p2) && (l2 && !e3 ? !g2.match(u2) : g2.match(u2)) && h2.push(g2);
|
|
2620
|
+
var m2 = h2.length;
|
|
2621
|
+
if (m2 === 0) return a2();
|
|
2622
|
+
if (r2.length === 1 && !this.mark && !this.stat) {
|
|
2623
|
+
for (this.matches[o2] || (this.matches[o2] = /* @__PURE__ */ Object.create(null)), d2 = 0; d2 < m2; d2++) {
|
|
2624
|
+
var g2 = h2[d2];
|
|
2625
|
+
e3 && (g2 = e3 !== "/" ? e3 + "/" + g2 : e3 + g2), g2.charAt(0) !== "/" || this.nomount || (g2 = c.join(this.root, g2)), this._emitMatch(o2, g2);
|
|
2626
|
+
}
|
|
2627
|
+
return a2();
|
|
2628
|
+
}
|
|
2629
|
+
for (r2.shift(), d2 = 0; d2 < m2; d2++) g2 = h2[d2], e3 && (g2 = e3 !== "/" ? e3 + "/" + g2 : e3 + g2), this._process([g2].concat(r2), o2, i2, a2);
|
|
2630
|
+
a2();
|
|
2631
|
+
}, x.prototype._emitMatch = function(e3, t3) {
|
|
2632
|
+
if (!this.aborted && !v(this, t3)) if (this.paused) this._emitQueue.push([e3, t3]);
|
|
2633
|
+
else {
|
|
2634
|
+
var n3 = l(t3) ? t3 : this._makeAbs(t3);
|
|
2635
|
+
if (this.mark && (t3 = this._mark(t3)), this.absolute && (t3 = n3), !this.matches[e3][t3]) {
|
|
2636
|
+
if (this.nodir) {
|
|
2637
|
+
var r2 = this.cache[n3];
|
|
2638
|
+
if (r2 === "DIR" || Array.isArray(r2)) return;
|
|
2639
|
+
}
|
|
2640
|
+
this.matches[e3][t3] = !0;
|
|
2641
|
+
var o2 = this.statCache[n3];
|
|
2642
|
+
o2 && this.emit("stat", t3, o2), this.emit("match", t3);
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
}, x.prototype._readdirInGlobStar = function(e3, t3) {
|
|
2646
|
+
if (!this.aborted) {
|
|
2647
|
+
if (this.follow) return this._readdir(e3, !1, t3);
|
|
2648
|
+
var n3 = this, o2 = m("lstat\0" + e3, (function(r2, o3) {
|
|
2649
|
+
if (r2 && r2.code === "ENOENT") return t3();
|
|
2650
|
+
var i2 = o3 && o3.isSymbolicLink();
|
|
2651
|
+
n3.symlinks[e3] = i2, i2 || !o3 || o3.isDirectory() ? n3._readdir(e3, !1, t3) : (n3.cache[e3] = "FILE", t3());
|
|
2652
|
+
}));
|
|
2653
|
+
o2 && r.lstat(e3, o2);
|
|
2654
|
+
}
|
|
2655
|
+
}, x.prototype._readdir = function(e3, t3, n3) {
|
|
2656
|
+
if (!this.aborted && (n3 = m("readdir\0" + e3 + "\0" + t3, n3))) {
|
|
2657
|
+
if (t3 && !d(this.symlinks, e3)) return this._readdirInGlobStar(e3, n3);
|
|
2658
|
+
if (d(this.cache, e3)) {
|
|
2659
|
+
var o2 = this.cache[e3];
|
|
2660
|
+
if (!o2 || o2 === "FILE") return n3();
|
|
2661
|
+
if (Array.isArray(o2)) return n3(null, o2);
|
|
2662
|
+
}
|
|
2663
|
+
r.readdir(e3, /* @__PURE__ */ (function(e4, t4, n4) {
|
|
2664
|
+
return function(r2, o3) {
|
|
2665
|
+
r2 ? e4._readdirError(t4, r2, n4) : e4._readdirEntries(t4, o3, n4);
|
|
2666
|
+
};
|
|
2667
|
+
})(this, e3, n3));
|
|
2668
|
+
}
|
|
2669
|
+
}, x.prototype._readdirEntries = function(e3, t3, n3) {
|
|
2670
|
+
if (!this.aborted) {
|
|
2671
|
+
if (!this.mark && !this.stat) for (var r2 = 0; r2 < t3.length; r2++) {
|
|
2672
|
+
var o2 = t3[r2];
|
|
2673
|
+
o2 = e3 === "/" ? e3 + o2 : e3 + "/" + o2, this.cache[o2] = !0;
|
|
2674
|
+
}
|
|
2675
|
+
return this.cache[e3] = t3, n3(null, t3);
|
|
2676
|
+
}
|
|
2677
|
+
}, x.prototype._readdirError = function(e3, t3, n3) {
|
|
2678
|
+
if (!this.aborted) {
|
|
2679
|
+
switch (t3.code) {
|
|
2680
|
+
case "ENOTSUP":
|
|
2681
|
+
case "ENOTDIR":
|
|
2682
|
+
var r2 = this._makeAbs(e3);
|
|
2683
|
+
if (this.cache[r2] = "FILE", r2 === this.cwdAbs) {
|
|
2684
|
+
var o2 = new Error(t3.code + " invalid cwd " + this.cwd);
|
|
2685
|
+
o2.path = this.cwd, o2.code = t3.code, this.emit("error", o2), this.abort();
|
|
2686
|
+
}
|
|
2687
|
+
break;
|
|
2688
|
+
case "ENOENT":
|
|
2689
|
+
case "ELOOP":
|
|
2690
|
+
case "ENAMETOOLONG":
|
|
2691
|
+
case "UNKNOWN":
|
|
2692
|
+
this.cache[this._makeAbs(e3)] = !1;
|
|
2693
|
+
break;
|
|
2694
|
+
default:
|
|
2695
|
+
this.cache[this._makeAbs(e3)] = !1, this.strict && (this.emit("error", t3), this.abort()), this.silent || console.error("glob error", t3);
|
|
2696
|
+
}
|
|
2697
|
+
return n3();
|
|
2698
|
+
}
|
|
2699
|
+
}, x.prototype._processGlobStar = function(e3, t3, n3, r2, o2, i2, s2) {
|
|
2700
|
+
var a2 = this;
|
|
2701
|
+
this._readdir(n3, i2, (function(c2, u2) {
|
|
2702
|
+
a2._processGlobStar2(e3, t3, n3, r2, o2, i2, u2, s2);
|
|
2703
|
+
}));
|
|
2704
|
+
}, x.prototype._processGlobStar2 = function(e3, t3, n3, r2, o2, i2, s2, a2) {
|
|
2705
|
+
if (!s2) return a2();
|
|
2706
|
+
var c2 = r2.slice(1), u2 = e3 ? [e3] : [], l2 = u2.concat(c2);
|
|
2707
|
+
this._process(l2, o2, !1, a2);
|
|
2708
|
+
var f2 = this.symlinks[n3], p2 = s2.length;
|
|
2709
|
+
if (f2 && i2) return a2();
|
|
2710
|
+
for (var h2 = 0; h2 < p2; h2++) if (s2[h2].charAt(0) !== "." || this.dot) {
|
|
2711
|
+
var d2 = u2.concat(s2[h2], c2);
|
|
2712
|
+
this._process(d2, o2, !0, a2);
|
|
2713
|
+
var m2 = u2.concat(s2[h2], r2);
|
|
2714
|
+
this._process(m2, o2, !0, a2);
|
|
2715
|
+
}
|
|
2716
|
+
a2();
|
|
2717
|
+
}, x.prototype._processSimple = function(e3, t3, n3) {
|
|
2718
|
+
var r2 = this;
|
|
2719
|
+
this._stat(e3, (function(o2, i2) {
|
|
2720
|
+
r2._processSimple2(e3, t3, o2, i2, n3);
|
|
2721
|
+
}));
|
|
2722
|
+
}, x.prototype._processSimple2 = function(e3, t3, n3, r2, o2) {
|
|
2723
|
+
if (this.matches[t3] || (this.matches[t3] = /* @__PURE__ */ Object.create(null)), !r2) return o2();
|
|
2724
|
+
if (e3 && l(e3) && !this.nomount) {
|
|
2725
|
+
var i2 = /[\/\\]$/.test(e3);
|
|
2726
|
+
e3.charAt(0) === "/" ? e3 = c.join(this.root, e3) : (e3 = c.resolve(this.root, e3), i2 && (e3 += "/"));
|
|
2727
|
+
}
|
|
2728
|
+
process.platform === "win32" && (e3 = e3.replace(/\\/g, "/")), this._emitMatch(t3, e3), o2();
|
|
2729
|
+
}, x.prototype._stat = function(e3, t3) {
|
|
2730
|
+
var n3 = this._makeAbs(e3), o2 = e3.slice(-1) === "/";
|
|
2731
|
+
if (e3.length > this.maxLength) return t3();
|
|
2732
|
+
if (!this.stat && d(this.cache, n3)) {
|
|
2733
|
+
var i2 = this.cache[n3];
|
|
2734
|
+
if (Array.isArray(i2) && (i2 = "DIR"), !o2 || i2 === "DIR") return t3(null, i2);
|
|
2735
|
+
if (o2 && i2 === "FILE") return t3();
|
|
2736
|
+
}
|
|
2737
|
+
var s2 = this.statCache[n3];
|
|
2738
|
+
if (s2 !== void 0) {
|
|
2739
|
+
if (s2 === !1) return t3(null, s2);
|
|
2740
|
+
var a2 = s2.isDirectory() ? "DIR" : "FILE";
|
|
2741
|
+
return o2 && a2 === "FILE" ? t3() : t3(null, a2, s2);
|
|
2742
|
+
}
|
|
2743
|
+
var c2 = this, u2 = m("stat\0" + n3, (function(o3, i3) {
|
|
2744
|
+
if (i3 && i3.isSymbolicLink()) return r.stat(n3, (function(r2, o4) {
|
|
2745
|
+
r2 ? c2._stat2(e3, n3, null, i3, t3) : c2._stat2(e3, n3, r2, o4, t3);
|
|
2746
|
+
}));
|
|
2747
|
+
c2._stat2(e3, n3, o3, i3, t3);
|
|
2748
|
+
}));
|
|
2749
|
+
u2 && r.lstat(n3, u2);
|
|
2750
|
+
}, x.prototype._stat2 = function(e3, t3, n3, r2, o2) {
|
|
2751
|
+
if (n3 && (n3.code === "ENOENT" || n3.code === "ENOTDIR")) return this.statCache[t3] = !1, o2();
|
|
2752
|
+
var i2 = e3.slice(-1) === "/";
|
|
2753
|
+
if (this.statCache[t3] = r2, t3.slice(-1) === "/" && r2 && !r2.isDirectory()) return o2(null, !1, r2);
|
|
2754
|
+
var s2 = !0;
|
|
2755
|
+
return r2 && (s2 = r2.isDirectory() ? "DIR" : "FILE"), this.cache[t3] = this.cache[t3] || s2, i2 && s2 === "FILE" ? o2() : o2(null, s2, r2);
|
|
2756
|
+
};
|
|
2757
|
+
}, 4548: (e2, t2, n2) => {
|
|
2758
|
+
e2.exports = d, d.GlobSync = m;
|
|
2759
|
+
var r = n2(2058), o = n2(84), i = n2(836), s = (i.Minimatch, n2(808).Glob, n2(970), n2(7072)), a = n2(6608), c = n2(4832), u = n2(9712), l = (u.alphasort, u.alphasorti, u.setopts), f = u.ownProp, p = u.childrenIgnored, h = u.isIgnored;
|
|
2760
|
+
function d(e3, t3) {
|
|
2761
|
+
if (typeof t3 == "function" || arguments.length === 3) throw new TypeError(`callback provided to sync glob
|
|
2762
|
+
See: https://github.com/isaacs/node-glob/issues/167`);
|
|
2763
|
+
return new m(e3, t3).found;
|
|
2764
|
+
}
|
|
2765
|
+
function m(e3, t3) {
|
|
2766
|
+
if (!e3) throw new Error("must provide pattern");
|
|
2767
|
+
if (typeof t3 == "function" || arguments.length === 3) throw new TypeError(`callback provided to sync glob
|
|
2768
|
+
See: https://github.com/isaacs/node-glob/issues/167`);
|
|
2769
|
+
if (!(this instanceof m)) return new m(e3, t3);
|
|
2770
|
+
if (l(this, e3, t3), this.noprocess) return this;
|
|
2771
|
+
var n3 = this.minimatch.set.length;
|
|
2772
|
+
this.matches = new Array(n3);
|
|
2773
|
+
for (var r2 = 0; r2 < n3; r2++) this._process(this.minimatch.set[r2], r2, !1);
|
|
2774
|
+
this._finish();
|
|
2775
|
+
}
|
|
2776
|
+
m.prototype._finish = function() {
|
|
2777
|
+
if (a(this instanceof m), this.realpath) {
|
|
2778
|
+
var e3 = this;
|
|
2779
|
+
this.matches.forEach((function(t3, n3) {
|
|
2780
|
+
var r2 = e3.matches[n3] = /* @__PURE__ */ Object.create(null);
|
|
2781
|
+
for (var i2 in t3) try {
|
|
2782
|
+
i2 = e3._makeAbs(i2), r2[o.realpathSync(i2, e3.realpathCache)] = !0;
|
|
2783
|
+
} catch (t4) {
|
|
2784
|
+
if (t4.syscall !== "stat") throw t4;
|
|
2785
|
+
r2[e3._makeAbs(i2)] = !0;
|
|
2786
|
+
}
|
|
2787
|
+
}));
|
|
2788
|
+
}
|
|
2789
|
+
u.finish(this);
|
|
2790
|
+
}, m.prototype._process = function(e3, t3, n3) {
|
|
2791
|
+
a(this instanceof m);
|
|
2792
|
+
for (var r2, o2 = 0; typeof e3[o2] == "string"; ) o2++;
|
|
2793
|
+
switch (o2) {
|
|
2794
|
+
case e3.length:
|
|
2795
|
+
return void this._processSimple(e3.join("/"), t3);
|
|
2796
|
+
case 0:
|
|
2797
|
+
r2 = null;
|
|
2798
|
+
break;
|
|
2799
|
+
default:
|
|
2800
|
+
r2 = e3.slice(0, o2).join("/");
|
|
2801
|
+
}
|
|
2802
|
+
var s2, u2 = e3.slice(o2);
|
|
2803
|
+
r2 === null ? s2 = "." : ((c(r2) || c(e3.join("/"))) && (r2 && c(r2) || (r2 = "/" + r2)), s2 = r2);
|
|
2804
|
+
var l2 = this._makeAbs(s2);
|
|
2805
|
+
p(this, s2) || (u2[0] === i.GLOBSTAR ? this._processGlobStar(r2, s2, l2, u2, t3, n3) : this._processReaddir(r2, s2, l2, u2, t3, n3));
|
|
2806
|
+
}, m.prototype._processReaddir = function(e3, t3, n3, r2, o2, i2) {
|
|
2807
|
+
var a2 = this._readdir(n3, i2);
|
|
2808
|
+
if (a2) {
|
|
2809
|
+
for (var c2 = r2[0], u2 = !!this.minimatch.negate, l2 = c2._glob, f2 = this.dot || l2.charAt(0) === ".", p2 = [], h2 = 0; h2 < a2.length; h2++) ((g = a2[h2]).charAt(0) !== "." || f2) && (u2 && !e3 ? !g.match(c2) : g.match(c2)) && p2.push(g);
|
|
2810
|
+
var d2 = p2.length;
|
|
2811
|
+
if (d2 !== 0) if (r2.length !== 1 || this.mark || this.stat) for (r2.shift(), h2 = 0; h2 < d2; h2++) {
|
|
2812
|
+
var m2;
|
|
2813
|
+
g = p2[h2], m2 = e3 ? [e3, g] : [g], this._process(m2.concat(r2), o2, i2);
|
|
2814
|
+
}
|
|
2815
|
+
else
|
|
2816
|
+
for (this.matches[o2] || (this.matches[o2] = /* @__PURE__ */ Object.create(null)), h2 = 0; h2 < d2; h2++) {
|
|
2817
|
+
var g = p2[h2];
|
|
2818
|
+
e3 && (g = e3.slice(-1) !== "/" ? e3 + "/" + g : e3 + g), g.charAt(0) !== "/" || this.nomount || (g = s.join(this.root, g)), this._emitMatch(o2, g);
|
|
2819
|
+
}
|
|
2820
|
+
}
|
|
2821
|
+
}, m.prototype._emitMatch = function(e3, t3) {
|
|
2822
|
+
if (!h(this, t3)) {
|
|
2823
|
+
var n3 = this._makeAbs(t3);
|
|
2824
|
+
if (this.mark && (t3 = this._mark(t3)), this.absolute && (t3 = n3), !this.matches[e3][t3]) {
|
|
2825
|
+
if (this.nodir) {
|
|
2826
|
+
var r2 = this.cache[n3];
|
|
2827
|
+
if (r2 === "DIR" || Array.isArray(r2)) return;
|
|
2828
|
+
}
|
|
2829
|
+
this.matches[e3][t3] = !0, this.stat && this._stat(t3);
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
}, m.prototype._readdirInGlobStar = function(e3) {
|
|
2833
|
+
if (this.follow) return this._readdir(e3, !1);
|
|
2834
|
+
var t3, n3;
|
|
2835
|
+
try {
|
|
2836
|
+
n3 = r.lstatSync(e3);
|
|
2837
|
+
} catch (e4) {
|
|
2838
|
+
if (e4.code === "ENOENT") return null;
|
|
2839
|
+
}
|
|
2840
|
+
var o2 = n3 && n3.isSymbolicLink();
|
|
2841
|
+
return this.symlinks[e3] = o2, o2 || !n3 || n3.isDirectory() ? t3 = this._readdir(e3, !1) : this.cache[e3] = "FILE", t3;
|
|
2842
|
+
}, m.prototype._readdir = function(e3, t3) {
|
|
2843
|
+
if (t3 && !f(this.symlinks, e3)) return this._readdirInGlobStar(e3);
|
|
2844
|
+
if (f(this.cache, e3)) {
|
|
2845
|
+
var n3 = this.cache[e3];
|
|
2846
|
+
if (!n3 || n3 === "FILE") return null;
|
|
2847
|
+
if (Array.isArray(n3)) return n3;
|
|
2848
|
+
}
|
|
2849
|
+
try {
|
|
2850
|
+
return this._readdirEntries(e3, r.readdirSync(e3));
|
|
2851
|
+
} catch (t4) {
|
|
2852
|
+
return this._readdirError(e3, t4), null;
|
|
2853
|
+
}
|
|
2854
|
+
}, m.prototype._readdirEntries = function(e3, t3) {
|
|
2855
|
+
if (!this.mark && !this.stat) for (var n3 = 0; n3 < t3.length; n3++) {
|
|
2856
|
+
var r2 = t3[n3];
|
|
2857
|
+
r2 = e3 === "/" ? e3 + r2 : e3 + "/" + r2, this.cache[r2] = !0;
|
|
2858
|
+
}
|
|
2859
|
+
return this.cache[e3] = t3, t3;
|
|
2860
|
+
}, m.prototype._readdirError = function(e3, t3) {
|
|
2861
|
+
switch (t3.code) {
|
|
2862
|
+
case "ENOTSUP":
|
|
2863
|
+
case "ENOTDIR":
|
|
2864
|
+
var n3 = this._makeAbs(e3);
|
|
2865
|
+
if (this.cache[n3] = "FILE", n3 === this.cwdAbs) {
|
|
2866
|
+
var r2 = new Error(t3.code + " invalid cwd " + this.cwd);
|
|
2867
|
+
throw r2.path = this.cwd, r2.code = t3.code, r2;
|
|
2868
|
+
}
|
|
2869
|
+
break;
|
|
2870
|
+
case "ENOENT":
|
|
2871
|
+
case "ELOOP":
|
|
2872
|
+
case "ENAMETOOLONG":
|
|
2873
|
+
case "UNKNOWN":
|
|
2874
|
+
this.cache[this._makeAbs(e3)] = !1;
|
|
2875
|
+
break;
|
|
2876
|
+
default:
|
|
2877
|
+
if (this.cache[this._makeAbs(e3)] = !1, this.strict) throw t3;
|
|
2878
|
+
this.silent || console.error("glob error", t3);
|
|
2879
|
+
}
|
|
2880
|
+
}, m.prototype._processGlobStar = function(e3, t3, n3, r2, o2, i2) {
|
|
2881
|
+
var s2 = this._readdir(n3, i2);
|
|
2882
|
+
if (s2) {
|
|
2883
|
+
var a2 = r2.slice(1), c2 = e3 ? [e3] : [], u2 = c2.concat(a2);
|
|
2884
|
+
this._process(u2, o2, !1);
|
|
2885
|
+
var l2 = s2.length;
|
|
2886
|
+
if (!this.symlinks[n3] || !i2) {
|
|
2887
|
+
for (var f2 = 0; f2 < l2; f2++) if (s2[f2].charAt(0) !== "." || this.dot) {
|
|
2888
|
+
var p2 = c2.concat(s2[f2], a2);
|
|
2889
|
+
this._process(p2, o2, !0);
|
|
2890
|
+
var h2 = c2.concat(s2[f2], r2);
|
|
2891
|
+
this._process(h2, o2, !0);
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
}, m.prototype._processSimple = function(e3, t3) {
|
|
2896
|
+
var n3 = this._stat(e3);
|
|
2897
|
+
if (this.matches[t3] || (this.matches[t3] = /* @__PURE__ */ Object.create(null)), n3) {
|
|
2898
|
+
if (e3 && c(e3) && !this.nomount) {
|
|
2899
|
+
var r2 = /[\/\\]$/.test(e3);
|
|
2900
|
+
e3.charAt(0) === "/" ? e3 = s.join(this.root, e3) : (e3 = s.resolve(this.root, e3), r2 && (e3 += "/"));
|
|
2901
|
+
}
|
|
2902
|
+
process.platform === "win32" && (e3 = e3.replace(/\\/g, "/")), this._emitMatch(t3, e3);
|
|
2903
|
+
}
|
|
2904
|
+
}, m.prototype._stat = function(e3) {
|
|
2905
|
+
var t3 = this._makeAbs(e3), n3 = e3.slice(-1) === "/";
|
|
2906
|
+
if (e3.length > this.maxLength) return !1;
|
|
2907
|
+
if (!this.stat && f(this.cache, t3)) {
|
|
2908
|
+
var o2 = this.cache[t3];
|
|
2909
|
+
if (Array.isArray(o2) && (o2 = "DIR"), !n3 || o2 === "DIR") return o2;
|
|
2910
|
+
if (n3 && o2 === "FILE") return !1;
|
|
2911
|
+
}
|
|
2912
|
+
var i2 = this.statCache[t3];
|
|
2913
|
+
if (!i2) {
|
|
2914
|
+
var s2;
|
|
2915
|
+
try {
|
|
2916
|
+
s2 = r.lstatSync(t3);
|
|
2917
|
+
} catch (e4) {
|
|
2918
|
+
if (e4 && (e4.code === "ENOENT" || e4.code === "ENOTDIR")) return this.statCache[t3] = !1, !1;
|
|
2919
|
+
}
|
|
2920
|
+
if (s2 && s2.isSymbolicLink()) try {
|
|
2921
|
+
i2 = r.statSync(t3);
|
|
2922
|
+
} catch {
|
|
2923
|
+
i2 = s2;
|
|
2924
|
+
}
|
|
2925
|
+
else i2 = s2;
|
|
2926
|
+
}
|
|
2927
|
+
return this.statCache[t3] = i2, o2 = !0, i2 && (o2 = i2.isDirectory() ? "DIR" : "FILE"), this.cache[t3] = this.cache[t3] || o2, (!n3 || o2 !== "FILE") && o2;
|
|
2928
|
+
}, m.prototype._mark = function(e3) {
|
|
2929
|
+
return u.mark(this, e3);
|
|
2930
|
+
}, m.prototype._makeAbs = function(e3) {
|
|
2931
|
+
return u.makeAbs(this, e3);
|
|
2932
|
+
};
|
|
2933
|
+
}, 363: (e2, t2, n2) => {
|
|
2934
|
+
var r = n2(2680), o = /* @__PURE__ */ Object.create(null), i = n2(4640);
|
|
2935
|
+
e2.exports = r((function(e3, t3) {
|
|
2936
|
+
return o[e3] ? (o[e3].push(t3), null) : (o[e3] = [t3], (function(e4) {
|
|
2937
|
+
return i((function t4() {
|
|
2938
|
+
var n3 = o[e4], r2 = n3.length, i2 = (function(e5) {
|
|
2939
|
+
for (var t5 = e5.length, n4 = [], r3 = 0; r3 < t5; r3++) n4[r3] = e5[r3];
|
|
2940
|
+
return n4;
|
|
2941
|
+
})(arguments);
|
|
2942
|
+
try {
|
|
2943
|
+
for (var s = 0; s < r2; s++) n3[s].apply(null, i2);
|
|
2944
|
+
} finally {
|
|
2945
|
+
n3.length > r2 ? (n3.splice(0, r2), process.nextTick((function() {
|
|
2946
|
+
t4.apply(null, i2);
|
|
2947
|
+
}))) : delete o[e4];
|
|
2948
|
+
}
|
|
2949
|
+
}));
|
|
2950
|
+
})(e3));
|
|
2951
|
+
}));
|
|
2952
|
+
}, 3352: (e2, t2, n2) => {
|
|
2953
|
+
try {
|
|
2954
|
+
var r = n2(970);
|
|
2955
|
+
if (typeof r.inherits != "function") throw "";
|
|
2956
|
+
e2.exports = r.inherits;
|
|
2957
|
+
} catch {
|
|
2958
|
+
e2.exports = n2(8248);
|
|
2959
|
+
}
|
|
2960
|
+
}, 8248: (e2) => {
|
|
2961
|
+
typeof Object.create == "function" ? e2.exports = function(e3, t2) {
|
|
2962
|
+
e3.super_ = t2, e3.prototype = Object.create(t2.prototype, { constructor: { value: e3, enumerable: !1, writable: !0, configurable: !0 } });
|
|
2963
|
+
} : e2.exports = function(e3, t2) {
|
|
2964
|
+
e3.super_ = t2;
|
|
2965
|
+
var n2 = function() {
|
|
2966
|
+
};
|
|
2967
|
+
n2.prototype = t2.prototype, e3.prototype = new n2(), e3.prototype.constructor = e3;
|
|
2968
|
+
};
|
|
2969
|
+
}, 1392: (e2) => {
|
|
2970
|
+
"use strict";
|
|
2971
|
+
var t2 = e2.exports = function(e3) {
|
|
2972
|
+
return e3 !== null && typeof e3 == "object" && typeof e3.pipe == "function";
|
|
2973
|
+
};
|
|
2974
|
+
t2.writable = function(e3) {
|
|
2975
|
+
return t2(e3) && e3.writable !== !1 && typeof e3._write == "function" && typeof e3._writableState == "object";
|
|
2976
|
+
}, t2.readable = function(e3) {
|
|
2977
|
+
return t2(e3) && e3.readable !== !1 && typeof e3._read == "function" && typeof e3._readableState == "object";
|
|
2978
|
+
}, t2.duplex = function(e3) {
|
|
2979
|
+
return t2.writable(e3) && t2.readable(e3);
|
|
2980
|
+
}, t2.transform = function(e3) {
|
|
2981
|
+
return t2.duplex(e3) && typeof e3._transform == "function" && typeof e3._transformState == "object";
|
|
2982
|
+
};
|
|
2983
|
+
}, 9268: (e2, t2, n2) => {
|
|
2984
|
+
var r;
|
|
2985
|
+
function o(e3, t3, n3) {
|
|
2986
|
+
if (typeof t3 == "function" && (n3 = t3, t3 = {}), !n3) {
|
|
2987
|
+
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
2988
|
+
return new Promise((function(n4, r2) {
|
|
2989
|
+
o(e3, t3 || {}, (function(e4, t4) {
|
|
2990
|
+
e4 ? r2(e4) : n4(t4);
|
|
2991
|
+
}));
|
|
2992
|
+
}));
|
|
2993
|
+
}
|
|
2994
|
+
r(e3, t3 || {}, (function(e4, r2) {
|
|
2995
|
+
e4 && (e4.code === "EACCES" || t3 && t3.ignoreErrors) && (e4 = null, r2 = !1), n3(e4, r2);
|
|
2996
|
+
}));
|
|
2997
|
+
}
|
|
2998
|
+
n2(2058), r = process.platform === "win32" || global.TESTING_WINDOWS ? n2(8340) : n2(8692), e2.exports = o, o.sync = function(e3, t3) {
|
|
2999
|
+
try {
|
|
3000
|
+
return r.sync(e3, t3 || {});
|
|
3001
|
+
} catch (e4) {
|
|
3002
|
+
if (t3 && t3.ignoreErrors || e4.code === "EACCES") return !1;
|
|
3003
|
+
throw e4;
|
|
3004
|
+
}
|
|
3005
|
+
};
|
|
3006
|
+
}, 8692: (e2, t2, n2) => {
|
|
3007
|
+
e2.exports = o, o.sync = function(e3, t3) {
|
|
3008
|
+
return i(r.statSync(e3), t3);
|
|
3009
|
+
};
|
|
3010
|
+
var r = n2(2058);
|
|
3011
|
+
function o(e3, t3, n3) {
|
|
3012
|
+
r.stat(e3, (function(e4, r2) {
|
|
3013
|
+
n3(e4, !e4 && i(r2, t3));
|
|
3014
|
+
}));
|
|
3015
|
+
}
|
|
3016
|
+
function i(e3, t3) {
|
|
3017
|
+
return e3.isFile() && (function(e4, t4) {
|
|
3018
|
+
var n3 = e4.mode, r2 = e4.uid, o2 = e4.gid, i2 = t4.uid !== void 0 ? t4.uid : process.getuid && process.getuid(), s = t4.gid !== void 0 ? t4.gid : process.getgid && process.getgid(), a = parseInt("100", 8), c = parseInt("010", 8);
|
|
3019
|
+
return n3 & parseInt("001", 8) || n3 & c && o2 === s || n3 & a && r2 === i2 || n3 & (a | c) && i2 === 0;
|
|
3020
|
+
})(e3, t3);
|
|
3021
|
+
}
|
|
3022
|
+
}, 8340: (e2, t2, n2) => {
|
|
3023
|
+
e2.exports = i, i.sync = function(e3, t3) {
|
|
3024
|
+
return o(r.statSync(e3), e3, t3);
|
|
3025
|
+
};
|
|
3026
|
+
var r = n2(2058);
|
|
3027
|
+
function o(e3, t3, n3) {
|
|
3028
|
+
return !(!e3.isSymbolicLink() && !e3.isFile()) && (function(e4, t4) {
|
|
3029
|
+
var n4 = t4.pathExt !== void 0 ? t4.pathExt : process.env.PATHEXT;
|
|
3030
|
+
if (!n4 || (n4 = n4.split(";")).indexOf("") !== -1) return !0;
|
|
3031
|
+
for (var r2 = 0; r2 < n4.length; r2++) {
|
|
3032
|
+
var o2 = n4[r2].toLowerCase();
|
|
3033
|
+
if (o2 && e4.substr(-o2.length).toLowerCase() === o2) return !0;
|
|
3034
|
+
}
|
|
3035
|
+
return !1;
|
|
3036
|
+
})(t3, n3);
|
|
3037
|
+
}
|
|
3038
|
+
function i(e3, t3, n3) {
|
|
3039
|
+
r.stat(e3, (function(r2, i2) {
|
|
3040
|
+
n3(r2, !r2 && o(i2, e3, t3));
|
|
3041
|
+
}));
|
|
3042
|
+
}
|
|
3043
|
+
}, 2941: (e2, t2, n2) => {
|
|
3044
|
+
"use strict";
|
|
3045
|
+
let r = n2(8558), o = /* @__PURE__ */ new Map([[18, "Mojave"], [17, "High Sierra"], [16, "Sierra"], [15, "El Capitan"], [14, "Yosemite"], [13, "Mavericks"], [12, "Mountain Lion"], [11, "Lion"], [10, "Snow Leopard"], [9, "Leopard"], [8, "Tiger"], [7, "Panther"], [6, "Jaguar"], [5, "Puma"]]), i = (e3) => (e3 = Number((e3 || r.release()).split(".")[0]), { name: o.get(e3), version: "10." + (e3 - 4) });
|
|
3046
|
+
e2.exports = i, e2.exports.default = i;
|
|
3047
|
+
}, 836: (e2, t2, n2) => {
|
|
3048
|
+
e2.exports = p, p.Minimatch = h;
|
|
3049
|
+
var r = { sep: "/" };
|
|
3050
|
+
try {
|
|
3051
|
+
r = n2(7072);
|
|
3052
|
+
} catch {
|
|
3053
|
+
}
|
|
3054
|
+
var o = p.GLOBSTAR = h.GLOBSTAR = {}, i = n2(1620), s = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } }, a = "[^/]", c = a + "*?", u = "().*{}+?[]^$\\!".split("").reduce((function(e3, t3) {
|
|
3055
|
+
return e3[t3] = !0, e3;
|
|
3056
|
+
}), {}), l = /\/+/;
|
|
3057
|
+
function f(e3, t3) {
|
|
3058
|
+
e3 = e3 || {}, t3 = t3 || {};
|
|
3059
|
+
var n3 = {};
|
|
3060
|
+
return Object.keys(t3).forEach((function(e4) {
|
|
3061
|
+
n3[e4] = t3[e4];
|
|
3062
|
+
})), Object.keys(e3).forEach((function(t4) {
|
|
3063
|
+
n3[t4] = e3[t4];
|
|
3064
|
+
})), n3;
|
|
3065
|
+
}
|
|
3066
|
+
function p(e3, t3, n3) {
|
|
3067
|
+
if (typeof t3 != "string") throw new TypeError("glob pattern string required");
|
|
3068
|
+
return n3 || (n3 = {}), !(!n3.nocomment && t3.charAt(0) === "#") && (t3.trim() === "" ? e3 === "" : new h(t3, n3).match(e3));
|
|
3069
|
+
}
|
|
3070
|
+
function h(e3, t3) {
|
|
3071
|
+
if (!(this instanceof h)) return new h(e3, t3);
|
|
3072
|
+
if (typeof e3 != "string") throw new TypeError("glob pattern string required");
|
|
3073
|
+
t3 || (t3 = {}), e3 = e3.trim(), r.sep !== "/" && (e3 = e3.split(r.sep).join("/")), this.options = t3, this.set = [], this.pattern = e3, this.regexp = null, this.negate = !1, this.comment = !1, this.empty = !1, this.make();
|
|
3074
|
+
}
|
|
3075
|
+
function d(e3, t3) {
|
|
3076
|
+
if (t3 || (t3 = this instanceof h ? this.options : {}), (e3 = e3 === void 0 ? this.pattern : e3) === void 0) throw new TypeError("undefined pattern");
|
|
3077
|
+
return t3.nobrace || !e3.match(/\{.*\}/) ? [e3] : i(e3);
|
|
3078
|
+
}
|
|
3079
|
+
p.filter = function(e3, t3) {
|
|
3080
|
+
return t3 = t3 || {}, function(n3, r2, o2) {
|
|
3081
|
+
return p(n3, e3, t3);
|
|
3082
|
+
};
|
|
3083
|
+
}, p.defaults = function(e3) {
|
|
3084
|
+
if (!e3 || !Object.keys(e3).length) return p;
|
|
3085
|
+
var t3 = p, n3 = function(n4, r2, o2) {
|
|
3086
|
+
return t3.minimatch(n4, r2, f(e3, o2));
|
|
3087
|
+
};
|
|
3088
|
+
return n3.Minimatch = function(n4, r2) {
|
|
3089
|
+
return new t3.Minimatch(n4, f(e3, r2));
|
|
3090
|
+
}, n3;
|
|
3091
|
+
}, h.defaults = function(e3) {
|
|
3092
|
+
return e3 && Object.keys(e3).length ? p.defaults(e3).Minimatch : h;
|
|
3093
|
+
}, h.prototype.debug = function() {
|
|
3094
|
+
}, h.prototype.make = function() {
|
|
3095
|
+
if (!this._made) {
|
|
3096
|
+
var e3 = this.pattern, t3 = this.options;
|
|
3097
|
+
if (t3.nocomment || e3.charAt(0) !== "#") if (e3) {
|
|
3098
|
+
this.parseNegate();
|
|
3099
|
+
var n3 = this.globSet = this.braceExpand();
|
|
3100
|
+
t3.debug && (this.debug = console.error), this.debug(this.pattern, n3), n3 = this.globParts = n3.map((function(e4) {
|
|
3101
|
+
return e4.split(l);
|
|
3102
|
+
})), this.debug(this.pattern, n3), n3 = n3.map((function(e4, t4, n4) {
|
|
3103
|
+
return e4.map(this.parse, this);
|
|
3104
|
+
}), this), this.debug(this.pattern, n3), n3 = n3.filter((function(e4) {
|
|
3105
|
+
return e4.indexOf(!1) === -1;
|
|
3106
|
+
})), this.debug(this.pattern, n3), this.set = n3;
|
|
3107
|
+
} else this.empty = !0;
|
|
3108
|
+
else this.comment = !0;
|
|
3109
|
+
}
|
|
3110
|
+
}, h.prototype.parseNegate = function() {
|
|
3111
|
+
var e3 = this.pattern, t3 = !1, n3 = 0;
|
|
3112
|
+
if (!this.options.nonegate) {
|
|
3113
|
+
for (var r2 = 0, o2 = e3.length; r2 < o2 && e3.charAt(r2) === "!"; r2++) t3 = !t3, n3++;
|
|
3114
|
+
n3 && (this.pattern = e3.substr(n3)), this.negate = t3;
|
|
3115
|
+
}
|
|
3116
|
+
}, p.braceExpand = function(e3, t3) {
|
|
3117
|
+
return d(e3, t3);
|
|
3118
|
+
}, h.prototype.braceExpand = d, h.prototype.parse = function(e3, t3) {
|
|
3119
|
+
if (e3.length > 65536) throw new TypeError("pattern is too long");
|
|
3120
|
+
var n3 = this.options;
|
|
3121
|
+
if (!n3.noglobstar && e3 === "**") return o;
|
|
3122
|
+
if (e3 === "") return "";
|
|
3123
|
+
var r2, i2 = "", l2 = !!n3.nocase, f2 = !1, p2 = [], h2 = [], d2 = !1, g = -1, v = -1, y = e3.charAt(0) === "." ? "" : n3.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)", b = this;
|
|
3124
|
+
function w() {
|
|
3125
|
+
if (r2) {
|
|
3126
|
+
switch (r2) {
|
|
3127
|
+
case "*":
|
|
3128
|
+
i2 += c, l2 = !0;
|
|
3129
|
+
break;
|
|
3130
|
+
case "?":
|
|
3131
|
+
i2 += a, l2 = !0;
|
|
3132
|
+
break;
|
|
3133
|
+
default:
|
|
3134
|
+
i2 += "\\" + r2;
|
|
3135
|
+
}
|
|
3136
|
+
b.debug("clearStateChar %j %j", r2, i2), r2 = !1;
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
for (var x, S = 0, P = e3.length; S < P && (x = e3.charAt(S)); S++) if (this.debug("%s %s %s %j", e3, S, i2, x), f2 && u[x]) i2 += "\\" + x, f2 = !1;
|
|
3140
|
+
else switch (x) {
|
|
3141
|
+
case "/":
|
|
3142
|
+
return !1;
|
|
3143
|
+
case "\\":
|
|
3144
|
+
w(), f2 = !0;
|
|
3145
|
+
continue;
|
|
3146
|
+
case "?":
|
|
3147
|
+
case "*":
|
|
3148
|
+
case "+":
|
|
3149
|
+
case "@":
|
|
3150
|
+
case "!":
|
|
3151
|
+
if (this.debug("%s %s %s %j <-- stateChar", e3, S, i2, x), d2) {
|
|
3152
|
+
this.debug(" in class"), x === "!" && S === v + 1 && (x = "^"), i2 += x;
|
|
3153
|
+
continue;
|
|
3154
|
+
}
|
|
3155
|
+
b.debug("call clearStateChar %j", r2), w(), r2 = x, n3.noext && w();
|
|
3156
|
+
continue;
|
|
3157
|
+
case "(":
|
|
3158
|
+
if (d2) {
|
|
3159
|
+
i2 += "(";
|
|
3160
|
+
continue;
|
|
3161
|
+
}
|
|
3162
|
+
if (!r2) {
|
|
3163
|
+
i2 += "\\(";
|
|
3164
|
+
continue;
|
|
3165
|
+
}
|
|
3166
|
+
p2.push({ type: r2, start: S - 1, reStart: i2.length, open: s[r2].open, close: s[r2].close }), i2 += r2 === "!" ? "(?:(?!(?:" : "(?:", this.debug("plType %j %j", r2, i2), r2 = !1;
|
|
3167
|
+
continue;
|
|
3168
|
+
case ")":
|
|
3169
|
+
if (d2 || !p2.length) {
|
|
3170
|
+
i2 += "\\)";
|
|
3171
|
+
continue;
|
|
3172
|
+
}
|
|
3173
|
+
w(), l2 = !0;
|
|
3174
|
+
var I = p2.pop();
|
|
3175
|
+
i2 += I.close, I.type === "!" && h2.push(I), I.reEnd = i2.length;
|
|
3176
|
+
continue;
|
|
3177
|
+
case "|":
|
|
3178
|
+
if (d2 || !p2.length || f2) {
|
|
3179
|
+
i2 += "\\|", f2 = !1;
|
|
3180
|
+
continue;
|
|
3181
|
+
}
|
|
3182
|
+
w(), i2 += "|";
|
|
3183
|
+
continue;
|
|
3184
|
+
case "[":
|
|
3185
|
+
if (w(), d2) {
|
|
3186
|
+
i2 += "\\" + x;
|
|
3187
|
+
continue;
|
|
3188
|
+
}
|
|
3189
|
+
d2 = !0, v = S, g = i2.length, i2 += x;
|
|
3190
|
+
continue;
|
|
3191
|
+
case "]":
|
|
3192
|
+
if (S === v + 1 || !d2) {
|
|
3193
|
+
i2 += "\\" + x, f2 = !1;
|
|
3194
|
+
continue;
|
|
3195
|
+
}
|
|
3196
|
+
if (d2) {
|
|
3197
|
+
var O = e3.substring(v + 1, S);
|
|
3198
|
+
try {
|
|
3199
|
+
RegExp("[" + O + "]");
|
|
3200
|
+
} catch {
|
|
3201
|
+
var E = this.parse(O, m);
|
|
3202
|
+
i2 = i2.substr(0, g) + "\\[" + E[0] + "\\]", l2 = l2 || E[1], d2 = !1;
|
|
3203
|
+
continue;
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
l2 = !0, d2 = !1, i2 += x;
|
|
3207
|
+
continue;
|
|
3208
|
+
default:
|
|
3209
|
+
w(), f2 ? f2 = !1 : !u[x] || x === "^" && d2 || (i2 += "\\"), i2 += x;
|
|
3210
|
+
}
|
|
3211
|
+
for (d2 && (O = e3.substr(v + 1), E = this.parse(O, m), i2 = i2.substr(0, g) + "\\[" + E[0], l2 = l2 || E[1]), I = p2.pop(); I; I = p2.pop()) {
|
|
3212
|
+
var j = i2.slice(I.reStart + I.open.length);
|
|
3213
|
+
this.debug("setting tail", i2, I), j = j.replace(/((?:\\{2}){0,64})(\\?)\|/g, (function(e4, t4, n4) {
|
|
3214
|
+
return n4 || (n4 = "\\"), t4 + t4 + n4 + "|";
|
|
3215
|
+
})), this.debug(`tail=%j
|
|
3216
|
+
%s`, j, j, I, i2);
|
|
3217
|
+
var _ = I.type === "*" ? c : I.type === "?" ? a : "\\" + I.type;
|
|
3218
|
+
l2 = !0, i2 = i2.slice(0, I.reStart) + _ + "\\(" + j;
|
|
3219
|
+
}
|
|
3220
|
+
w(), f2 && (i2 += "\\\\");
|
|
3221
|
+
var A = !1;
|
|
3222
|
+
switch (i2.charAt(0)) {
|
|
3223
|
+
case ".":
|
|
3224
|
+
case "[":
|
|
3225
|
+
case "(":
|
|
3226
|
+
A = !0;
|
|
3227
|
+
}
|
|
3228
|
+
for (var k = h2.length - 1; k > -1; k--) {
|
|
3229
|
+
var F = h2[k], N = i2.slice(0, F.reStart), C = i2.slice(F.reStart, F.reEnd - 8), M = i2.slice(F.reEnd - 8, F.reEnd), V = i2.slice(F.reEnd);
|
|
3230
|
+
M += V;
|
|
3231
|
+
var D = N.split("(").length - 1, $ = V;
|
|
3232
|
+
for (S = 0; S < D; S++) $ = $.replace(/\)[+*?]?/, "");
|
|
3233
|
+
var L = "";
|
|
3234
|
+
(V = $) === "" && t3 !== m && (L = "$"), i2 = N + C + V + L + M;
|
|
3235
|
+
}
|
|
3236
|
+
if (i2 !== "" && l2 && (i2 = "(?=.)" + i2), A && (i2 = y + i2), t3 === m) return [i2, l2];
|
|
3237
|
+
if (!l2) return e3.replace(/\\(.)/g, "$1");
|
|
3238
|
+
var T = n3.nocase ? "i" : "";
|
|
3239
|
+
try {
|
|
3240
|
+
var B = new RegExp("^" + i2 + "$", T);
|
|
3241
|
+
} catch {
|
|
3242
|
+
return new RegExp("$.");
|
|
3243
|
+
}
|
|
3244
|
+
return B._glob = e3, B._src = i2, B;
|
|
3245
|
+
};
|
|
3246
|
+
var m = {};
|
|
3247
|
+
p.makeRe = function(e3, t3) {
|
|
3248
|
+
return new h(e3, t3 || {}).makeRe();
|
|
3249
|
+
}, h.prototype.makeRe = function() {
|
|
3250
|
+
if (this.regexp || this.regexp === !1) return this.regexp;
|
|
3251
|
+
var e3 = this.set;
|
|
3252
|
+
if (!e3.length) return this.regexp = !1, this.regexp;
|
|
3253
|
+
var t3 = this.options, n3 = t3.noglobstar ? c : t3.dot ? "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?" : "(?:(?!(?:\\/|^)\\.).)*?", r2 = t3.nocase ? "i" : "", i2 = e3.map((function(e4) {
|
|
3254
|
+
return e4.map((function(e5) {
|
|
3255
|
+
return e5 === o ? n3 : typeof e5 == "string" ? e5.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : e5._src;
|
|
3256
|
+
})).join("\\/");
|
|
3257
|
+
})).join("|");
|
|
3258
|
+
i2 = "^(?:" + i2 + ")$", this.negate && (i2 = "^(?!" + i2 + ").*$");
|
|
3259
|
+
try {
|
|
3260
|
+
this.regexp = new RegExp(i2, r2);
|
|
3261
|
+
} catch {
|
|
3262
|
+
this.regexp = !1;
|
|
3263
|
+
}
|
|
3264
|
+
return this.regexp;
|
|
3265
|
+
}, p.match = function(e3, t3, n3) {
|
|
3266
|
+
var r2 = new h(t3, n3 = n3 || {});
|
|
3267
|
+
return e3 = e3.filter((function(e4) {
|
|
3268
|
+
return r2.match(e4);
|
|
3269
|
+
})), r2.options.nonull && !e3.length && e3.push(t3), e3;
|
|
3270
|
+
}, h.prototype.match = function(e3, t3) {
|
|
3271
|
+
if (this.debug("match", e3, this.pattern), this.comment) return !1;
|
|
3272
|
+
if (this.empty) return e3 === "";
|
|
3273
|
+
if (e3 === "/" && t3) return !0;
|
|
3274
|
+
var n3 = this.options;
|
|
3275
|
+
r.sep !== "/" && (e3 = e3.split(r.sep).join("/")), e3 = e3.split(l), this.debug(this.pattern, "split", e3);
|
|
3276
|
+
var o2, i2, s2 = this.set;
|
|
3277
|
+
for (this.debug(this.pattern, "set", s2), i2 = e3.length - 1; i2 >= 0 && !(o2 = e3[i2]); i2--) ;
|
|
3278
|
+
for (i2 = 0; i2 < s2.length; i2++) {
|
|
3279
|
+
var a2 = s2[i2], c2 = e3;
|
|
3280
|
+
if (n3.matchBase && a2.length === 1 && (c2 = [o2]), this.matchOne(c2, a2, t3)) return !!n3.flipNegate || !this.negate;
|
|
3281
|
+
}
|
|
3282
|
+
return !n3.flipNegate && this.negate;
|
|
3283
|
+
}, h.prototype.matchOne = function(e3, t3, n3) {
|
|
3284
|
+
var r2 = this.options;
|
|
3285
|
+
this.debug("matchOne", { this: this, file: e3, pattern: t3 }), this.debug("matchOne", e3.length, t3.length);
|
|
3286
|
+
for (var i2 = 0, s2 = 0, a2 = e3.length, c2 = t3.length; i2 < a2 && s2 < c2; i2++, s2++) {
|
|
3287
|
+
this.debug("matchOne loop");
|
|
3288
|
+
var u2, l2 = t3[s2], f2 = e3[i2];
|
|
3289
|
+
if (this.debug(t3, l2, f2), l2 === !1) return !1;
|
|
3290
|
+
if (l2 === o) {
|
|
3291
|
+
this.debug("GLOBSTAR", [t3, l2, f2]);
|
|
3292
|
+
var p2 = i2, h2 = s2 + 1;
|
|
3293
|
+
if (h2 === c2) {
|
|
3294
|
+
for (this.debug("** at the end"); i2 < a2; i2++) if (e3[i2] === "." || e3[i2] === ".." || !r2.dot && e3[i2].charAt(0) === ".") return !1;
|
|
3295
|
+
return !0;
|
|
3296
|
+
}
|
|
3297
|
+
for (; p2 < a2; ) {
|
|
3298
|
+
var d2 = e3[p2];
|
|
3299
|
+
if (this.debug(`
|
|
3300
|
+
globstar while`, e3, p2, t3, h2, d2), this.matchOne(e3.slice(p2), t3.slice(h2), n3)) return this.debug("globstar found match!", p2, a2, d2), !0;
|
|
3301
|
+
if (d2 === "." || d2 === ".." || !r2.dot && d2.charAt(0) === ".") {
|
|
3302
|
+
this.debug("dot detected!", e3, p2, t3, h2);
|
|
3303
|
+
break;
|
|
3304
|
+
}
|
|
3305
|
+
this.debug("globstar swallow a segment, and continue"), p2++;
|
|
3306
|
+
}
|
|
3307
|
+
return !(!n3 || (this.debug(`
|
|
3308
|
+
>>> no match, partial?`, e3, p2, t3, h2), p2 !== a2));
|
|
3309
|
+
}
|
|
3310
|
+
if (typeof l2 == "string" ? (u2 = r2.nocase ? f2.toLowerCase() === l2.toLowerCase() : f2 === l2, this.debug("string match", l2, f2, u2)) : (u2 = f2.match(l2), this.debug("pattern match", l2, f2, u2)), !u2) return !1;
|
|
3311
|
+
}
|
|
3312
|
+
if (i2 === a2 && s2 === c2) return !0;
|
|
3313
|
+
if (i2 === a2) return n3;
|
|
3314
|
+
if (s2 === c2) return i2 === a2 - 1 && e3[i2] === "";
|
|
3315
|
+
throw new Error("wtf?");
|
|
3316
|
+
};
|
|
3317
|
+
}, 9480: (e2) => {
|
|
3318
|
+
"use strict";
|
|
3319
|
+
e2.exports = function(e3) {
|
|
3320
|
+
try {
|
|
3321
|
+
return e3();
|
|
3322
|
+
} catch {
|
|
3323
|
+
}
|
|
3324
|
+
};
|
|
3325
|
+
}, 9584: (e2, t2, n2) => {
|
|
3326
|
+
"use strict";
|
|
3327
|
+
let r = n2(7072), o = n2(3032);
|
|
3328
|
+
e2.exports = (e3) => {
|
|
3329
|
+
let t3;
|
|
3330
|
+
e3 = Object.assign({ cwd: process.cwd(), path: process.env[o()] }, e3);
|
|
3331
|
+
let n3 = r.resolve(e3.cwd), i = [];
|
|
3332
|
+
for (; t3 !== n3; ) i.push(r.join(n3, "node_modules/.bin")), t3 = n3, n3 = r.resolve(n3, "..");
|
|
3333
|
+
return i.push(r.dirname(process.execPath)), i.concat(e3.path).join(r.delimiter);
|
|
3334
|
+
}, e2.exports.env = (t3) => {
|
|
3335
|
+
t3 = Object.assign({ env: process.env }, t3);
|
|
3336
|
+
let n3 = Object.assign({}, t3.env), r2 = o({ env: n3 });
|
|
3337
|
+
return t3.path = n3[r2], n3[r2] = e2.exports(t3), n3;
|
|
3338
|
+
};
|
|
3339
|
+
}, 4640: (e2, t2, n2) => {
|
|
3340
|
+
var r = n2(2680);
|
|
3341
|
+
function o(e3) {
|
|
3342
|
+
var t3 = function() {
|
|
3343
|
+
return t3.called ? t3.value : (t3.called = !0, t3.value = e3.apply(this, arguments));
|
|
3344
|
+
};
|
|
3345
|
+
return t3.called = !1, t3;
|
|
3346
|
+
}
|
|
3347
|
+
function i(e3) {
|
|
3348
|
+
var t3 = function() {
|
|
3349
|
+
if (t3.called) throw new Error(t3.onceError);
|
|
3350
|
+
return t3.called = !0, t3.value = e3.apply(this, arguments);
|
|
3351
|
+
}, n3 = e3.name || "Function wrapped with `once`";
|
|
3352
|
+
return t3.onceError = n3 + " shouldn't be called more than once", t3.called = !1, t3;
|
|
3353
|
+
}
|
|
3354
|
+
e2.exports = r(o), e2.exports.strict = r(i), o.proto = o((function() {
|
|
3355
|
+
Object.defineProperty(Function.prototype, "once", { value: function() {
|
|
3356
|
+
return o(this);
|
|
3357
|
+
}, configurable: !0 }), Object.defineProperty(Function.prototype, "onceStrict", { value: function() {
|
|
3358
|
+
return i(this);
|
|
3359
|
+
}, configurable: !0 });
|
|
3360
|
+
}));
|
|
3361
|
+
}, 2288: (e2, t2, n2) => {
|
|
3362
|
+
"use strict";
|
|
3363
|
+
let r = n2(8558), o = n2(2941), i = n2(6468);
|
|
3364
|
+
e2.exports = (e3, t3) => {
|
|
3365
|
+
if (!e3 && t3) throw new Error("You can't specify a `release` without specifying `platform`");
|
|
3366
|
+
let n3;
|
|
3367
|
+
if ((e3 = e3 || r.platform()) === "darwin") {
|
|
3368
|
+
t3 || r.platform() !== "darwin" || (t3 = r.release());
|
|
3369
|
+
let e4 = t3 ? Number(t3.split(".")[0]) > 15 ? "macOS" : "OS X" : "macOS";
|
|
3370
|
+
return n3 = t3 ? o(t3).name : "", e4 + (n3 ? " " + n3 : "");
|
|
3371
|
+
}
|
|
3372
|
+
return e3 === "linux" ? (t3 || r.platform() !== "linux" || (t3 = r.release()), n3 = t3 ? t3.replace(/^(\d+\.\d+).*/, "$1") : "", "Linux" + (n3 ? " " + n3 : "")) : e3 === "win32" ? (t3 || r.platform() !== "win32" || (t3 = r.release()), n3 = t3 ? i(t3) : "", "Windows" + (n3 ? " " + n3 : "")) : e3;
|
|
3373
|
+
};
|
|
3374
|
+
}, 1548: (e2) => {
|
|
3375
|
+
"use strict";
|
|
3376
|
+
e2.exports = (e3, t2) => (t2 = t2 || (() => {
|
|
3377
|
+
}), e3.then(((e4) => new Promise(((e5) => {
|
|
3378
|
+
e5(t2());
|
|
3379
|
+
})).then((() => e4))), ((e4) => new Promise(((e5) => {
|
|
3380
|
+
e5(t2());
|
|
3381
|
+
})).then((() => {
|
|
3382
|
+
throw e4;
|
|
3383
|
+
})))));
|
|
3384
|
+
}, 4832: (e2) => {
|
|
3385
|
+
"use strict";
|
|
3386
|
+
function t2(e3) {
|
|
3387
|
+
return e3.charAt(0) === "/";
|
|
3388
|
+
}
|
|
3389
|
+
function n2(e3) {
|
|
3390
|
+
var t3 = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e3), n3 = t3[1] || "", r = !!(n3 && n3.charAt(1) !== ":");
|
|
3391
|
+
return !!(t3[2] || r);
|
|
3392
|
+
}
|
|
3393
|
+
e2.exports = process.platform === "win32" ? n2 : t2, e2.exports.posix = t2, e2.exports.win32 = n2;
|
|
3394
|
+
}, 3032: (e2) => {
|
|
3395
|
+
"use strict";
|
|
3396
|
+
e2.exports = (e3) => {
|
|
3397
|
+
let t2 = (e3 = e3 || {}).env || process.env;
|
|
3398
|
+
return (e3.platform || process.platform) !== "win32" ? "PATH" : Object.keys(t2).find(((e4) => e4.toUpperCase() === "PATH")) || "Path";
|
|
3399
|
+
};
|
|
3400
|
+
}, 8984: (e2, t2, n2) => {
|
|
3401
|
+
var r = n2(4640), o = n2(9988), i = n2(2058), s = function() {
|
|
3402
|
+
}, a = /^v?\.0/.test(process.version), c = function(e3) {
|
|
3403
|
+
return typeof e3 == "function";
|
|
3404
|
+
}, u = function(e3) {
|
|
3405
|
+
e3();
|
|
3406
|
+
}, l = function(e3, t3) {
|
|
3407
|
+
return e3.pipe(t3);
|
|
3408
|
+
};
|
|
3409
|
+
e2.exports = function() {
|
|
3410
|
+
var e3, t3 = Array.prototype.slice.call(arguments), n3 = c(t3[t3.length - 1] || s) && t3.pop() || s;
|
|
3411
|
+
if (Array.isArray(t3[0]) && (t3 = t3[0]), t3.length < 2) throw new Error("pump requires two streams per minimum");
|
|
3412
|
+
var f = t3.map((function(l2, p) {
|
|
3413
|
+
var h = p < t3.length - 1;
|
|
3414
|
+
return (function(e4, t4, n4, u2) {
|
|
3415
|
+
u2 = r(u2);
|
|
3416
|
+
var l3 = !1;
|
|
3417
|
+
e4.on("close", (function() {
|
|
3418
|
+
l3 = !0;
|
|
3419
|
+
})), o(e4, { readable: t4, writable: n4 }, (function(e5) {
|
|
3420
|
+
if (e5) return u2(e5);
|
|
3421
|
+
l3 = !0, u2();
|
|
3422
|
+
}));
|
|
3423
|
+
var f2 = !1;
|
|
3424
|
+
return function(t5) {
|
|
3425
|
+
if (!l3 && !f2) return f2 = !0, (function(e5) {
|
|
3426
|
+
return !!a && !!i && (e5 instanceof (i.ReadStream || s) || e5 instanceof (i.WriteStream || s)) && c(e5.close);
|
|
3427
|
+
})(e4) ? e4.close(s) : (function(e5) {
|
|
3428
|
+
return e5.setHeader && c(e5.abort);
|
|
3429
|
+
})(e4) ? e4.abort() : c(e4.destroy) ? e4.destroy() : void u2(t5 || new Error("stream was destroyed"));
|
|
3430
|
+
};
|
|
3431
|
+
})(l2, h, p > 0, (function(t4) {
|
|
3432
|
+
e3 || (e3 = t4), t4 && f.forEach(u), h || (f.forEach(u), n3(e3));
|
|
3433
|
+
}));
|
|
3434
|
+
}));
|
|
3435
|
+
return t3.reduce(l);
|
|
3436
|
+
};
|
|
3437
|
+
}, 1716: (e2, t2) => {
|
|
3438
|
+
var n2;
|
|
3439
|
+
t2 = e2.exports = q, n2 = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function() {
|
|
3440
|
+
var e3 = Array.prototype.slice.call(arguments, 0);
|
|
3441
|
+
e3.unshift("SEMVER"), console.log.apply(console, e3);
|
|
3442
|
+
} : function() {
|
|
3443
|
+
}, t2.SEMVER_SPEC_VERSION = "2.0.0";
|
|
3444
|
+
var r = 256, o = Number.MAX_SAFE_INTEGER || 9007199254740991, i = t2.re = [], s = t2.src = [], a = 0, c = a++;
|
|
3445
|
+
s[c] = "0|[1-9]\\d*";
|
|
3446
|
+
var u = a++;
|
|
3447
|
+
s[u] = "[0-9]+";
|
|
3448
|
+
var l = a++;
|
|
3449
|
+
s[l] = "\\d*[a-zA-Z-][a-zA-Z0-9-]*";
|
|
3450
|
+
var f = a++;
|
|
3451
|
+
s[f] = "(" + s[c] + ")\\.(" + s[c] + ")\\.(" + s[c] + ")";
|
|
3452
|
+
var p = a++;
|
|
3453
|
+
s[p] = "(" + s[u] + ")\\.(" + s[u] + ")\\.(" + s[u] + ")";
|
|
3454
|
+
var h = a++;
|
|
3455
|
+
s[h] = "(?:" + s[c] + "|" + s[l] + ")";
|
|
3456
|
+
var d = a++;
|
|
3457
|
+
s[d] = "(?:" + s[u] + "|" + s[l] + ")";
|
|
3458
|
+
var m = a++;
|
|
3459
|
+
s[m] = "(?:-(" + s[h] + "(?:\\." + s[h] + ")*))";
|
|
3460
|
+
var g = a++;
|
|
3461
|
+
s[g] = "(?:-?(" + s[d] + "(?:\\." + s[d] + ")*))";
|
|
3462
|
+
var v = a++;
|
|
3463
|
+
s[v] = "[0-9A-Za-z-]+";
|
|
3464
|
+
var y = a++;
|
|
3465
|
+
s[y] = "(?:\\+(" + s[v] + "(?:\\." + s[v] + ")*))";
|
|
3466
|
+
var b = a++, w = "v?" + s[f] + s[m] + "?" + s[y] + "?";
|
|
3467
|
+
s[b] = "^" + w + "$";
|
|
3468
|
+
var x = "[v=\\s]*" + s[p] + s[g] + "?" + s[y] + "?", S = a++;
|
|
3469
|
+
s[S] = "^" + x + "$";
|
|
3470
|
+
var P = a++;
|
|
3471
|
+
s[P] = "((?:<|>)?=?)";
|
|
3472
|
+
var I = a++;
|
|
3473
|
+
s[I] = s[u] + "|x|X|\\*";
|
|
3474
|
+
var O = a++;
|
|
3475
|
+
s[O] = s[c] + "|x|X|\\*";
|
|
3476
|
+
var E = a++;
|
|
3477
|
+
s[E] = "[v=\\s]*(" + s[O] + ")(?:\\.(" + s[O] + ")(?:\\.(" + s[O] + ")(?:" + s[m] + ")?" + s[y] + "?)?)?";
|
|
3478
|
+
var j = a++;
|
|
3479
|
+
s[j] = "[v=\\s]*(" + s[I] + ")(?:\\.(" + s[I] + ")(?:\\.(" + s[I] + ")(?:" + s[g] + ")?" + s[y] + "?)?)?";
|
|
3480
|
+
var _ = a++;
|
|
3481
|
+
s[_] = "^" + s[P] + "\\s*" + s[E] + "$";
|
|
3482
|
+
var A = a++;
|
|
3483
|
+
s[A] = "^" + s[P] + "\\s*" + s[j] + "$";
|
|
3484
|
+
var k = a++;
|
|
3485
|
+
s[k] = "(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";
|
|
3486
|
+
var F = a++;
|
|
3487
|
+
s[F] = "(?:~>?)";
|
|
3488
|
+
var N = a++;
|
|
3489
|
+
s[N] = "(\\s*)" + s[F] + "\\s+", i[N] = new RegExp(s[N], "g");
|
|
3490
|
+
var C = a++;
|
|
3491
|
+
s[C] = "^" + s[F] + s[E] + "$";
|
|
3492
|
+
var M = a++;
|
|
3493
|
+
s[M] = "^" + s[F] + s[j] + "$";
|
|
3494
|
+
var V = a++;
|
|
3495
|
+
s[V] = "(?:\\^)";
|
|
3496
|
+
var D = a++;
|
|
3497
|
+
s[D] = "(\\s*)" + s[V] + "\\s+", i[D] = new RegExp(s[D], "g");
|
|
3498
|
+
var $ = a++;
|
|
3499
|
+
s[$] = "^" + s[V] + s[E] + "$";
|
|
3500
|
+
var L = a++;
|
|
3501
|
+
s[L] = "^" + s[V] + s[j] + "$";
|
|
3502
|
+
var T = a++;
|
|
3503
|
+
s[T] = "^" + s[P] + "\\s*(" + x + ")$|^$";
|
|
3504
|
+
var B = a++;
|
|
3505
|
+
s[B] = "^" + s[P] + "\\s*(" + w + ")$|^$";
|
|
3506
|
+
var R = a++;
|
|
3507
|
+
s[R] = "(\\s*)" + s[P] + "\\s*(" + x + "|" + s[E] + ")", i[R] = new RegExp(s[R], "g");
|
|
3508
|
+
var G = a++;
|
|
3509
|
+
s[G] = "^\\s*(" + s[E] + ")\\s+-\\s+(" + s[E] + ")\\s*$";
|
|
3510
|
+
var W = a++;
|
|
3511
|
+
s[W] = "^\\s*(" + s[j] + ")\\s+-\\s+(" + s[j] + ")\\s*$";
|
|
3512
|
+
var z = a++;
|
|
3513
|
+
s[z] = "(<|>)?=?\\s*\\*";
|
|
3514
|
+
for (var U = 0; U < 35; U++) n2(U, s[U]), i[U] || (i[U] = new RegExp(s[U]));
|
|
3515
|
+
function K(e3, t3) {
|
|
3516
|
+
if (t3 && typeof t3 == "object" || (t3 = { loose: !!t3, includePrerelease: !1 }), e3 instanceof q) return e3;
|
|
3517
|
+
if (typeof e3 != "string" || e3.length > r || !(t3.loose ? i[S] : i[b]).test(e3)) return null;
|
|
3518
|
+
try {
|
|
3519
|
+
return new q(e3, t3);
|
|
3520
|
+
} catch {
|
|
3521
|
+
return null;
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
function q(e3, t3) {
|
|
3525
|
+
if (t3 && typeof t3 == "object" || (t3 = { loose: !!t3, includePrerelease: !1 }), e3 instanceof q) {
|
|
3526
|
+
if (e3.loose === t3.loose) return e3;
|
|
3527
|
+
e3 = e3.version;
|
|
3528
|
+
} else if (typeof e3 != "string") throw new TypeError("Invalid Version: " + e3);
|
|
3529
|
+
if (e3.length > r) throw new TypeError("version is longer than " + r + " characters");
|
|
3530
|
+
if (!(this instanceof q)) return new q(e3, t3);
|
|
3531
|
+
n2("SemVer", e3, t3), this.options = t3, this.loose = !!t3.loose;
|
|
3532
|
+
var s2 = e3.trim().match(t3.loose ? i[S] : i[b]);
|
|
3533
|
+
if (!s2) throw new TypeError("Invalid Version: " + e3);
|
|
3534
|
+
if (this.raw = e3, this.major = +s2[1], this.minor = +s2[2], this.patch = +s2[3], this.major > o || this.major < 0) throw new TypeError("Invalid major version");
|
|
3535
|
+
if (this.minor > o || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
3536
|
+
if (this.patch > o || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
3537
|
+
s2[4] ? this.prerelease = s2[4].split(".").map((function(e4) {
|
|
3538
|
+
if (/^[0-9]+$/.test(e4)) {
|
|
3539
|
+
var t4 = +e4;
|
|
3540
|
+
if (t4 >= 0 && t4 < o) return t4;
|
|
3541
|
+
}
|
|
3542
|
+
return e4;
|
|
3543
|
+
})) : this.prerelease = [], this.build = s2[5] ? s2[5].split(".") : [], this.format();
|
|
3544
|
+
}
|
|
3545
|
+
t2.parse = K, t2.valid = function(e3, t3) {
|
|
3546
|
+
var n3 = K(e3, t3);
|
|
3547
|
+
return n3 ? n3.version : null;
|
|
3548
|
+
}, t2.clean = function(e3, t3) {
|
|
3549
|
+
var n3 = K(e3.trim().replace(/^[=v]+/, ""), t3);
|
|
3550
|
+
return n3 ? n3.version : null;
|
|
3551
|
+
}, t2.SemVer = q, q.prototype.format = function() {
|
|
3552
|
+
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
3553
|
+
}, q.prototype.toString = function() {
|
|
3554
|
+
return this.version;
|
|
3555
|
+
}, q.prototype.compare = function(e3) {
|
|
3556
|
+
return n2("SemVer.compare", this.version, this.options, e3), e3 instanceof q || (e3 = new q(e3, this.options)), this.compareMain(e3) || this.comparePre(e3);
|
|
3557
|
+
}, q.prototype.compareMain = function(e3) {
|
|
3558
|
+
return e3 instanceof q || (e3 = new q(e3, this.options)), H(this.major, e3.major) || H(this.minor, e3.minor) || H(this.patch, e3.patch);
|
|
3559
|
+
}, q.prototype.comparePre = function(e3) {
|
|
3560
|
+
if (e3 instanceof q || (e3 = new q(e3, this.options)), this.prerelease.length && !e3.prerelease.length) return -1;
|
|
3561
|
+
if (!this.prerelease.length && e3.prerelease.length) return 1;
|
|
3562
|
+
if (!this.prerelease.length && !e3.prerelease.length) return 0;
|
|
3563
|
+
var t3 = 0;
|
|
3564
|
+
do {
|
|
3565
|
+
var r2 = this.prerelease[t3], o2 = e3.prerelease[t3];
|
|
3566
|
+
if (n2("prerelease compare", t3, r2, o2), r2 === void 0 && o2 === void 0) return 0;
|
|
3567
|
+
if (o2 === void 0) return 1;
|
|
3568
|
+
if (r2 === void 0) return -1;
|
|
3569
|
+
if (r2 !== o2) return H(r2, o2);
|
|
3570
|
+
} while (++t3);
|
|
3571
|
+
}, q.prototype.inc = function(e3, t3) {
|
|
3572
|
+
switch (e3) {
|
|
3573
|
+
case "premajor":
|
|
3574
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", t3);
|
|
3575
|
+
break;
|
|
3576
|
+
case "preminor":
|
|
3577
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", t3);
|
|
3578
|
+
break;
|
|
3579
|
+
case "prepatch":
|
|
3580
|
+
this.prerelease.length = 0, this.inc("patch", t3), this.inc("pre", t3);
|
|
3581
|
+
break;
|
|
3582
|
+
case "prerelease":
|
|
3583
|
+
this.prerelease.length === 0 && this.inc("patch", t3), this.inc("pre", t3);
|
|
3584
|
+
break;
|
|
3585
|
+
case "major":
|
|
3586
|
+
this.minor === 0 && this.patch === 0 && this.prerelease.length !== 0 || this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
3587
|
+
break;
|
|
3588
|
+
case "minor":
|
|
3589
|
+
this.patch === 0 && this.prerelease.length !== 0 || this.minor++, this.patch = 0, this.prerelease = [];
|
|
3590
|
+
break;
|
|
3591
|
+
case "patch":
|
|
3592
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
3593
|
+
break;
|
|
3594
|
+
case "pre":
|
|
3595
|
+
if (this.prerelease.length === 0) this.prerelease = [0];
|
|
3596
|
+
else {
|
|
3597
|
+
for (var n3 = this.prerelease.length; --n3 >= 0; ) typeof this.prerelease[n3] == "number" && (this.prerelease[n3]++, n3 = -2);
|
|
3598
|
+
n3 === -1 && this.prerelease.push(0);
|
|
3599
|
+
}
|
|
3600
|
+
t3 && (this.prerelease[0] === t3 ? isNaN(this.prerelease[1]) && (this.prerelease = [t3, 0]) : this.prerelease = [t3, 0]);
|
|
3601
|
+
break;
|
|
3602
|
+
default:
|
|
3603
|
+
throw new Error("invalid increment argument: " + e3);
|
|
3604
|
+
}
|
|
3605
|
+
return this.format(), this.raw = this.version, this;
|
|
3606
|
+
}, t2.inc = function(e3, t3, n3, r2) {
|
|
3607
|
+
typeof n3 == "string" && (r2 = n3, n3 = void 0);
|
|
3608
|
+
try {
|
|
3609
|
+
return new q(e3, n3).inc(t3, r2).version;
|
|
3610
|
+
} catch {
|
|
3611
|
+
return null;
|
|
3612
|
+
}
|
|
3613
|
+
}, t2.diff = function(e3, t3) {
|
|
3614
|
+
if (Z(e3, t3)) return null;
|
|
3615
|
+
var n3 = K(e3), r2 = K(t3);
|
|
3616
|
+
if (n3.prerelease.length || r2.prerelease.length) {
|
|
3617
|
+
for (var o2 in n3) if ((o2 === "major" || o2 === "minor" || o2 === "patch") && n3[o2] !== r2[o2]) return "pre" + o2;
|
|
3618
|
+
return "prerelease";
|
|
3619
|
+
}
|
|
3620
|
+
for (var o2 in n3) if ((o2 === "major" || o2 === "minor" || o2 === "patch") && n3[o2] !== r2[o2]) return o2;
|
|
3621
|
+
}, t2.compareIdentifiers = H;
|
|
3622
|
+
var Y = /^[0-9]+$/;
|
|
3623
|
+
function H(e3, t3) {
|
|
3624
|
+
var n3 = Y.test(e3), r2 = Y.test(t3);
|
|
3625
|
+
return n3 && r2 && (e3 = +e3, t3 = +t3), n3 && !r2 ? -1 : r2 && !n3 ? 1 : e3 < t3 ? -1 : e3 > t3 ? 1 : 0;
|
|
3626
|
+
}
|
|
3627
|
+
function J(e3, t3, n3) {
|
|
3628
|
+
return new q(e3, n3).compare(new q(t3, n3));
|
|
3629
|
+
}
|
|
3630
|
+
function Q(e3, t3, n3) {
|
|
3631
|
+
return J(e3, t3, n3) > 0;
|
|
3632
|
+
}
|
|
3633
|
+
function X(e3, t3, n3) {
|
|
3634
|
+
return J(e3, t3, n3) < 0;
|
|
3635
|
+
}
|
|
3636
|
+
function Z(e3, t3, n3) {
|
|
3637
|
+
return J(e3, t3, n3) === 0;
|
|
3638
|
+
}
|
|
3639
|
+
function ee(e3, t3, n3) {
|
|
3640
|
+
return J(e3, t3, n3) !== 0;
|
|
3641
|
+
}
|
|
3642
|
+
function te(e3, t3, n3) {
|
|
3643
|
+
return J(e3, t3, n3) >= 0;
|
|
3644
|
+
}
|
|
3645
|
+
function ne(e3, t3, n3) {
|
|
3646
|
+
return J(e3, t3, n3) <= 0;
|
|
3647
|
+
}
|
|
3648
|
+
function re(e3, t3, n3, r2) {
|
|
3649
|
+
var o2;
|
|
3650
|
+
switch (t3) {
|
|
3651
|
+
case "===":
|
|
3652
|
+
typeof e3 == "object" && (e3 = e3.version), typeof n3 == "object" && (n3 = n3.version), o2 = e3 === n3;
|
|
3653
|
+
break;
|
|
3654
|
+
case "!==":
|
|
3655
|
+
typeof e3 == "object" && (e3 = e3.version), typeof n3 == "object" && (n3 = n3.version), o2 = e3 !== n3;
|
|
3656
|
+
break;
|
|
3657
|
+
case "":
|
|
3658
|
+
case "=":
|
|
3659
|
+
case "==":
|
|
3660
|
+
o2 = Z(e3, n3, r2);
|
|
3661
|
+
break;
|
|
3662
|
+
case "!=":
|
|
3663
|
+
o2 = ee(e3, n3, r2);
|
|
3664
|
+
break;
|
|
3665
|
+
case ">":
|
|
3666
|
+
o2 = Q(e3, n3, r2);
|
|
3667
|
+
break;
|
|
3668
|
+
case ">=":
|
|
3669
|
+
o2 = te(e3, n3, r2);
|
|
3670
|
+
break;
|
|
3671
|
+
case "<":
|
|
3672
|
+
o2 = X(e3, n3, r2);
|
|
3673
|
+
break;
|
|
3674
|
+
case "<=":
|
|
3675
|
+
o2 = ne(e3, n3, r2);
|
|
3676
|
+
break;
|
|
3677
|
+
default:
|
|
3678
|
+
throw new TypeError("Invalid operator: " + t3);
|
|
3679
|
+
}
|
|
3680
|
+
return o2;
|
|
3681
|
+
}
|
|
3682
|
+
function oe(e3, t3) {
|
|
3683
|
+
if (t3 && typeof t3 == "object" || (t3 = { loose: !!t3, includePrerelease: !1 }), e3 instanceof oe) {
|
|
3684
|
+
if (e3.loose === !!t3.loose) return e3;
|
|
3685
|
+
e3 = e3.value;
|
|
3686
|
+
}
|
|
3687
|
+
if (!(this instanceof oe)) return new oe(e3, t3);
|
|
3688
|
+
n2("comparator", e3, t3), this.options = t3, this.loose = !!t3.loose, this.parse(e3), this.semver === ie ? this.value = "" : this.value = this.operator + this.semver.version, n2("comp", this);
|
|
3689
|
+
}
|
|
3690
|
+
t2.rcompareIdentifiers = function(e3, t3) {
|
|
3691
|
+
return H(t3, e3);
|
|
3692
|
+
}, t2.major = function(e3, t3) {
|
|
3693
|
+
return new q(e3, t3).major;
|
|
3694
|
+
}, t2.minor = function(e3, t3) {
|
|
3695
|
+
return new q(e3, t3).minor;
|
|
3696
|
+
}, t2.patch = function(e3, t3) {
|
|
3697
|
+
return new q(e3, t3).patch;
|
|
3698
|
+
}, t2.compare = J, t2.compareLoose = function(e3, t3) {
|
|
3699
|
+
return J(e3, t3, !0);
|
|
3700
|
+
}, t2.rcompare = function(e3, t3, n3) {
|
|
3701
|
+
return J(t3, e3, n3);
|
|
3702
|
+
}, t2.sort = function(e3, n3) {
|
|
3703
|
+
return e3.sort((function(e4, r2) {
|
|
3704
|
+
return t2.compare(e4, r2, n3);
|
|
3705
|
+
}));
|
|
3706
|
+
}, t2.rsort = function(e3, n3) {
|
|
3707
|
+
return e3.sort((function(e4, r2) {
|
|
3708
|
+
return t2.rcompare(e4, r2, n3);
|
|
3709
|
+
}));
|
|
3710
|
+
}, t2.gt = Q, t2.lt = X, t2.eq = Z, t2.neq = ee, t2.gte = te, t2.lte = ne, t2.cmp = re, t2.Comparator = oe;
|
|
3711
|
+
var ie = {};
|
|
3712
|
+
function se(e3, t3) {
|
|
3713
|
+
if (t3 && typeof t3 == "object" || (t3 = { loose: !!t3, includePrerelease: !1 }), e3 instanceof se) return e3.loose === !!t3.loose && e3.includePrerelease === !!t3.includePrerelease ? e3 : new se(e3.raw, t3);
|
|
3714
|
+
if (e3 instanceof oe) return new se(e3.value, t3);
|
|
3715
|
+
if (!(this instanceof se)) return new se(e3, t3);
|
|
3716
|
+
if (this.options = t3, this.loose = !!t3.loose, this.includePrerelease = !!t3.includePrerelease, this.raw = e3, this.set = e3.split(/\s*\|\|\s*/).map((function(e4) {
|
|
3717
|
+
return this.parseRange(e4.trim());
|
|
3718
|
+
}), this).filter((function(e4) {
|
|
3719
|
+
return e4.length;
|
|
3720
|
+
})), !this.set.length) throw new TypeError("Invalid SemVer Range: " + e3);
|
|
3721
|
+
this.format();
|
|
3722
|
+
}
|
|
3723
|
+
function ae(e3) {
|
|
3724
|
+
return !e3 || e3.toLowerCase() === "x" || e3 === "*";
|
|
3725
|
+
}
|
|
3726
|
+
function ce(e3, t3, n3, r2, o2, i2, s2, a2, c2, u2, l2, f2, p2) {
|
|
3727
|
+
return ((t3 = ae(n3) ? "" : ae(r2) ? ">=" + n3 + ".0.0" : ae(o2) ? ">=" + n3 + "." + r2 + ".0" : ">=" + t3) + " " + (a2 = ae(c2) ? "" : ae(u2) ? "<" + (+c2 + 1) + ".0.0" : ae(l2) ? "<" + c2 + "." + (+u2 + 1) + ".0" : f2 ? "<=" + c2 + "." + u2 + "." + l2 + "-" + f2 : "<=" + a2)).trim();
|
|
3728
|
+
}
|
|
3729
|
+
function ue(e3, t3, r2) {
|
|
3730
|
+
for (var o2 = 0; o2 < e3.length; o2++) if (!e3[o2].test(t3)) return !1;
|
|
3731
|
+
if (r2 || (r2 = {}), t3.prerelease.length && !r2.includePrerelease) {
|
|
3732
|
+
for (o2 = 0; o2 < e3.length; o2++) if (n2(e3[o2].semver), e3[o2].semver !== ie && e3[o2].semver.prerelease.length > 0) {
|
|
3733
|
+
var i2 = e3[o2].semver;
|
|
3734
|
+
if (i2.major === t3.major && i2.minor === t3.minor && i2.patch === t3.patch) return !0;
|
|
3735
|
+
}
|
|
3736
|
+
return !1;
|
|
3737
|
+
}
|
|
3738
|
+
return !0;
|
|
3739
|
+
}
|
|
3740
|
+
function le(e3, t3, n3) {
|
|
3741
|
+
try {
|
|
3742
|
+
t3 = new se(t3, n3);
|
|
3743
|
+
} catch {
|
|
3744
|
+
return !1;
|
|
3745
|
+
}
|
|
3746
|
+
return t3.test(e3);
|
|
3747
|
+
}
|
|
3748
|
+
function fe(e3, t3, n3, r2) {
|
|
3749
|
+
var o2, i2, s2, a2, c2;
|
|
3750
|
+
switch (e3 = new q(e3, r2), t3 = new se(t3, r2), n3) {
|
|
3751
|
+
case ">":
|
|
3752
|
+
o2 = Q, i2 = ne, s2 = X, a2 = ">", c2 = ">=";
|
|
3753
|
+
break;
|
|
3754
|
+
case "<":
|
|
3755
|
+
o2 = X, i2 = te, s2 = Q, a2 = "<", c2 = "<=";
|
|
3756
|
+
break;
|
|
3757
|
+
default:
|
|
3758
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
3759
|
+
}
|
|
3760
|
+
if (le(e3, t3, r2)) return !1;
|
|
3761
|
+
for (var u2 = 0; u2 < t3.set.length; ++u2) {
|
|
3762
|
+
var l2 = t3.set[u2], f2 = null, p2 = null;
|
|
3763
|
+
if (l2.forEach((function(e4) {
|
|
3764
|
+
e4.semver === ie && (e4 = new oe(">=0.0.0")), f2 = f2 || e4, p2 = p2 || e4, o2(e4.semver, f2.semver, r2) ? f2 = e4 : s2(e4.semver, p2.semver, r2) && (p2 = e4);
|
|
3765
|
+
})), f2.operator === a2 || f2.operator === c2 || (!p2.operator || p2.operator === a2) && i2(e3, p2.semver) || p2.operator === c2 && s2(e3, p2.semver)) return !1;
|
|
3766
|
+
}
|
|
3767
|
+
return !0;
|
|
3768
|
+
}
|
|
3769
|
+
oe.prototype.parse = function(e3) {
|
|
3770
|
+
var t3 = this.options.loose ? i[T] : i[B], n3 = e3.match(t3);
|
|
3771
|
+
if (!n3) throw new TypeError("Invalid comparator: " + e3);
|
|
3772
|
+
this.operator = n3[1], this.operator === "=" && (this.operator = ""), n3[2] ? this.semver = new q(n3[2], this.options.loose) : this.semver = ie;
|
|
3773
|
+
}, oe.prototype.toString = function() {
|
|
3774
|
+
return this.value;
|
|
3775
|
+
}, oe.prototype.test = function(e3) {
|
|
3776
|
+
return n2("Comparator.test", e3, this.options.loose), this.semver === ie || (typeof e3 == "string" && (e3 = new q(e3, this.options)), re(e3, this.operator, this.semver, this.options));
|
|
3777
|
+
}, oe.prototype.intersects = function(e3, t3) {
|
|
3778
|
+
if (!(e3 instanceof oe)) throw new TypeError("a Comparator is required");
|
|
3779
|
+
var n3;
|
|
3780
|
+
if (t3 && typeof t3 == "object" || (t3 = { loose: !!t3, includePrerelease: !1 }), this.operator === "") return n3 = new se(e3.value, t3), le(this.value, n3, t3);
|
|
3781
|
+
if (e3.operator === "") return n3 = new se(this.value, t3), le(e3.semver, n3, t3);
|
|
3782
|
+
var r2 = !(this.operator !== ">=" && this.operator !== ">" || e3.operator !== ">=" && e3.operator !== ">"), o2 = !(this.operator !== "<=" && this.operator !== "<" || e3.operator !== "<=" && e3.operator !== "<"), i2 = this.semver.version === e3.semver.version, s2 = !(this.operator !== ">=" && this.operator !== "<=" || e3.operator !== ">=" && e3.operator !== "<="), a2 = re(this.semver, "<", e3.semver, t3) && (this.operator === ">=" || this.operator === ">") && (e3.operator === "<=" || e3.operator === "<"), c2 = re(this.semver, ">", e3.semver, t3) && (this.operator === "<=" || this.operator === "<") && (e3.operator === ">=" || e3.operator === ">");
|
|
3783
|
+
return r2 || o2 || i2 && s2 || a2 || c2;
|
|
3784
|
+
}, t2.Range = se, se.prototype.format = function() {
|
|
3785
|
+
return this.range = this.set.map((function(e3) {
|
|
3786
|
+
return e3.join(" ").trim();
|
|
3787
|
+
})).join("||").trim(), this.range;
|
|
3788
|
+
}, se.prototype.toString = function() {
|
|
3789
|
+
return this.range;
|
|
3790
|
+
}, se.prototype.parseRange = function(e3) {
|
|
3791
|
+
var t3 = this.options.loose;
|
|
3792
|
+
e3 = e3.trim();
|
|
3793
|
+
var r2 = t3 ? i[W] : i[G];
|
|
3794
|
+
e3 = e3.replace(r2, ce), n2("hyphen replace", e3), e3 = e3.replace(i[R], "$1$2$3"), n2("comparator trim", e3, i[R]), e3 = (e3 = (e3 = e3.replace(i[N], "$1~")).replace(i[D], "$1^")).split(/\s+/).join(" ");
|
|
3795
|
+
var o2 = t3 ? i[T] : i[B], s2 = e3.split(" ").map((function(e4) {
|
|
3796
|
+
return (function(e5, t4) {
|
|
3797
|
+
return n2("comp", e5, t4), e5 = (function(e6, t5) {
|
|
3798
|
+
return e6.trim().split(/\s+/).map((function(e7) {
|
|
3799
|
+
return (function(e8, t6) {
|
|
3800
|
+
n2("caret", e8, t6), t6 && typeof t6 == "object" || (t6 = { loose: !!t6, includePrerelease: !1 });
|
|
3801
|
+
var r3 = t6.loose ? i[L] : i[$];
|
|
3802
|
+
return e8.replace(r3, (function(t7, r4, o3, i2, s3) {
|
|
3803
|
+
var a2;
|
|
3804
|
+
return n2("caret", e8, t7, r4, o3, i2, s3), ae(r4) ? a2 = "" : ae(o3) ? a2 = ">=" + r4 + ".0.0 <" + (+r4 + 1) + ".0.0" : ae(i2) ? a2 = r4 === "0" ? ">=" + r4 + "." + o3 + ".0 <" + r4 + "." + (+o3 + 1) + ".0" : ">=" + r4 + "." + o3 + ".0 <" + (+r4 + 1) + ".0.0" : s3 ? (n2("replaceCaret pr", s3), s3.charAt(0) !== "-" && (s3 = "-" + s3), a2 = r4 === "0" ? o3 === "0" ? ">=" + r4 + "." + o3 + "." + i2 + s3 + " <" + r4 + "." + o3 + "." + (+i2 + 1) : ">=" + r4 + "." + o3 + "." + i2 + s3 + " <" + r4 + "." + (+o3 + 1) + ".0" : ">=" + r4 + "." + o3 + "." + i2 + s3 + " <" + (+r4 + 1) + ".0.0") : (n2("no pr"), a2 = r4 === "0" ? o3 === "0" ? ">=" + r4 + "." + o3 + "." + i2 + " <" + r4 + "." + o3 + "." + (+i2 + 1) : ">=" + r4 + "." + o3 + "." + i2 + " <" + r4 + "." + (+o3 + 1) + ".0" : ">=" + r4 + "." + o3 + "." + i2 + " <" + (+r4 + 1) + ".0.0"), n2("caret return", a2), a2;
|
|
3805
|
+
}));
|
|
3806
|
+
})(e7, t5);
|
|
3807
|
+
})).join(" ");
|
|
3808
|
+
})(e5, t4), n2("caret", e5), e5 = (function(e6, t5) {
|
|
3809
|
+
return e6.trim().split(/\s+/).map((function(e7) {
|
|
3810
|
+
return (function(e8, t6) {
|
|
3811
|
+
t6 && typeof t6 == "object" || (t6 = { loose: !!t6, includePrerelease: !1 });
|
|
3812
|
+
var r3 = t6.loose ? i[M] : i[C];
|
|
3813
|
+
return e8.replace(r3, (function(t7, r4, o3, i2, s3) {
|
|
3814
|
+
var a2;
|
|
3815
|
+
return n2("tilde", e8, t7, r4, o3, i2, s3), ae(r4) ? a2 = "" : ae(o3) ? a2 = ">=" + r4 + ".0.0 <" + (+r4 + 1) + ".0.0" : ae(i2) ? a2 = ">=" + r4 + "." + o3 + ".0 <" + r4 + "." + (+o3 + 1) + ".0" : s3 ? (n2("replaceTilde pr", s3), s3.charAt(0) !== "-" && (s3 = "-" + s3), a2 = ">=" + r4 + "." + o3 + "." + i2 + s3 + " <" + r4 + "." + (+o3 + 1) + ".0") : a2 = ">=" + r4 + "." + o3 + "." + i2 + " <" + r4 + "." + (+o3 + 1) + ".0", n2("tilde return", a2), a2;
|
|
3816
|
+
}));
|
|
3817
|
+
})(e7, t5);
|
|
3818
|
+
})).join(" ");
|
|
3819
|
+
})(e5, t4), n2("tildes", e5), e5 = (function(e6, t5) {
|
|
3820
|
+
return n2("replaceXRanges", e6, t5), e6.split(/\s+/).map((function(e7) {
|
|
3821
|
+
return (function(e8, t6) {
|
|
3822
|
+
e8 = e8.trim(), t6 && typeof t6 == "object" || (t6 = { loose: !!t6, includePrerelease: !1 });
|
|
3823
|
+
var r3 = t6.loose ? i[A] : i[_];
|
|
3824
|
+
return e8.replace(r3, (function(t7, r4, o3, i2, s3, a2) {
|
|
3825
|
+
n2("xRange", e8, t7, r4, o3, i2, s3, a2);
|
|
3826
|
+
var c2 = ae(o3), u2 = c2 || ae(i2), l2 = u2 || ae(s3);
|
|
3827
|
+
return r4 === "=" && l2 && (r4 = ""), c2 ? t7 = r4 === ">" || r4 === "<" ? "<0.0.0" : "*" : r4 && l2 ? (u2 && (i2 = 0), l2 && (s3 = 0), r4 === ">" ? (r4 = ">=", u2 ? (o3 = +o3 + 1, i2 = 0, s3 = 0) : l2 && (i2 = +i2 + 1, s3 = 0)) : r4 === "<=" && (r4 = "<", u2 ? o3 = +o3 + 1 : i2 = +i2 + 1), t7 = r4 + o3 + "." + i2 + "." + s3) : u2 ? t7 = ">=" + o3 + ".0.0 <" + (+o3 + 1) + ".0.0" : l2 && (t7 = ">=" + o3 + "." + i2 + ".0 <" + o3 + "." + (+i2 + 1) + ".0"), n2("xRange return", t7), t7;
|
|
3828
|
+
}));
|
|
3829
|
+
})(e7, t5);
|
|
3830
|
+
})).join(" ");
|
|
3831
|
+
})(e5, t4), n2("xrange", e5), e5 = (function(e6, t5) {
|
|
3832
|
+
return n2("replaceStars", e6, t5), e6.trim().replace(i[z], "");
|
|
3833
|
+
})(e5, t4), n2("stars", e5), e5;
|
|
3834
|
+
})(e4, this.options);
|
|
3835
|
+
}), this).join(" ").split(/\s+/);
|
|
3836
|
+
return this.options.loose && (s2 = s2.filter((function(e4) {
|
|
3837
|
+
return !!e4.match(o2);
|
|
3838
|
+
}))), s2.map((function(e4) {
|
|
3839
|
+
return new oe(e4, this.options);
|
|
3840
|
+
}), this);
|
|
3841
|
+
}, se.prototype.intersects = function(e3, t3) {
|
|
3842
|
+
if (!(e3 instanceof se)) throw new TypeError("a Range is required");
|
|
3843
|
+
return this.set.some((function(n3) {
|
|
3844
|
+
return n3.every((function(n4) {
|
|
3845
|
+
return e3.set.some((function(e4) {
|
|
3846
|
+
return e4.every((function(e5) {
|
|
3847
|
+
return n4.intersects(e5, t3);
|
|
3848
|
+
}));
|
|
3849
|
+
}));
|
|
3850
|
+
}));
|
|
3851
|
+
}));
|
|
3852
|
+
}, t2.toComparators = function(e3, t3) {
|
|
3853
|
+
return new se(e3, t3).set.map((function(e4) {
|
|
3854
|
+
return e4.map((function(e5) {
|
|
3855
|
+
return e5.value;
|
|
3856
|
+
})).join(" ").trim().split(" ");
|
|
3857
|
+
}));
|
|
3858
|
+
}, se.prototype.test = function(e3) {
|
|
3859
|
+
if (!e3) return !1;
|
|
3860
|
+
typeof e3 == "string" && (e3 = new q(e3, this.options));
|
|
3861
|
+
for (var t3 = 0; t3 < this.set.length; t3++) if (ue(this.set[t3], e3, this.options)) return !0;
|
|
3862
|
+
return !1;
|
|
3863
|
+
}, t2.satisfies = le, t2.maxSatisfying = function(e3, t3, n3) {
|
|
3864
|
+
var r2 = null, o2 = null;
|
|
3865
|
+
try {
|
|
3866
|
+
var i2 = new se(t3, n3);
|
|
3867
|
+
} catch {
|
|
3868
|
+
return null;
|
|
3869
|
+
}
|
|
3870
|
+
return e3.forEach((function(e4) {
|
|
3871
|
+
i2.test(e4) && (r2 && o2.compare(e4) !== -1 || (o2 = new q(r2 = e4, n3)));
|
|
3872
|
+
})), r2;
|
|
3873
|
+
}, t2.minSatisfying = function(e3, t3, n3) {
|
|
3874
|
+
var r2 = null, o2 = null;
|
|
3875
|
+
try {
|
|
3876
|
+
var i2 = new se(t3, n3);
|
|
3877
|
+
} catch {
|
|
3878
|
+
return null;
|
|
3879
|
+
}
|
|
3880
|
+
return e3.forEach((function(e4) {
|
|
3881
|
+
i2.test(e4) && (r2 && o2.compare(e4) !== 1 || (o2 = new q(r2 = e4, n3)));
|
|
3882
|
+
})), r2;
|
|
3883
|
+
}, t2.validRange = function(e3, t3) {
|
|
3884
|
+
try {
|
|
3885
|
+
return new se(e3, t3).range || "*";
|
|
3886
|
+
} catch {
|
|
3887
|
+
return null;
|
|
3888
|
+
}
|
|
3889
|
+
}, t2.ltr = function(e3, t3, n3) {
|
|
3890
|
+
return fe(e3, t3, "<", n3);
|
|
3891
|
+
}, t2.gtr = function(e3, t3, n3) {
|
|
3892
|
+
return fe(e3, t3, ">", n3);
|
|
3893
|
+
}, t2.outside = fe, t2.prerelease = function(e3, t3) {
|
|
3894
|
+
var n3 = K(e3, t3);
|
|
3895
|
+
return n3 && n3.prerelease.length ? n3.prerelease : null;
|
|
3896
|
+
}, t2.intersects = function(e3, t3, n3) {
|
|
3897
|
+
return e3 = new se(e3, n3), t3 = new se(t3, n3), e3.intersects(t3);
|
|
3898
|
+
}, t2.coerce = function(e3) {
|
|
3899
|
+
if (e3 instanceof q) return e3;
|
|
3900
|
+
if (typeof e3 != "string") return null;
|
|
3901
|
+
var t3 = e3.match(i[k]);
|
|
3902
|
+
return t3 == null ? null : K((t3[1] || "0") + "." + (t3[2] || "0") + "." + (t3[3] || "0"));
|
|
3903
|
+
};
|
|
3904
|
+
}, 6176: (e2, t2, n2) => {
|
|
3905
|
+
"use strict";
|
|
3906
|
+
var r = n2(184);
|
|
3907
|
+
e2.exports = function(e3) {
|
|
3908
|
+
var t3 = e3.match(r);
|
|
3909
|
+
if (!t3) return null;
|
|
3910
|
+
var n3 = t3[0].replace(/#! ?/, "").split(" "), o = n3[0].split("/").pop(), i = n3[1];
|
|
3911
|
+
return o === "env" ? i : o + (i ? " " + i : "");
|
|
3912
|
+
};
|
|
3913
|
+
}, 184: (e2) => {
|
|
3914
|
+
"use strict";
|
|
3915
|
+
e2.exports = /^#!.*/;
|
|
3916
|
+
}, 200: (e2, t2, n2) => {
|
|
3917
|
+
var r, o = n2(6608), i = n2(6132), s = n2(467);
|
|
3918
|
+
function a() {
|
|
3919
|
+
l && (l = !1, i.forEach((function(e3) {
|
|
3920
|
+
try {
|
|
3921
|
+
process.removeListener(e3, u[e3]);
|
|
3922
|
+
} catch {
|
|
3923
|
+
}
|
|
3924
|
+
})), process.emit = d, process.reallyExit = p, r.count -= 1);
|
|
3925
|
+
}
|
|
3926
|
+
function c(e3, t3, n3) {
|
|
3927
|
+
r.emitted[e3] || (r.emitted[e3] = !0, r.emit(e3, t3, n3));
|
|
3928
|
+
}
|
|
3929
|
+
typeof s != "function" && (s = s.EventEmitter), process.__signal_exit_emitter__ ? r = process.__signal_exit_emitter__ : ((r = process.__signal_exit_emitter__ = new s()).count = 0, r.emitted = {}), r.infinite || (r.setMaxListeners(1 / 0), r.infinite = !0), e2.exports = function(e3, t3) {
|
|
3930
|
+
o.equal(typeof e3, "function", "a callback must be provided for exit handler"), l === !1 && f();
|
|
3931
|
+
var n3 = "exit";
|
|
3932
|
+
return t3 && t3.alwaysLast && (n3 = "afterexit"), r.on(n3, e3), function() {
|
|
3933
|
+
r.removeListener(n3, e3), r.listeners("exit").length === 0 && r.listeners("afterexit").length === 0 && a();
|
|
3934
|
+
};
|
|
3935
|
+
}, e2.exports.unload = a;
|
|
3936
|
+
var u = {};
|
|
3937
|
+
i.forEach((function(e3) {
|
|
3938
|
+
u[e3] = function() {
|
|
3939
|
+
process.listeners(e3).length === r.count && (a(), c("exit", null, e3), c("afterexit", null, e3), process.kill(process.pid, e3));
|
|
3940
|
+
};
|
|
3941
|
+
})), e2.exports.signals = function() {
|
|
3942
|
+
return i;
|
|
3943
|
+
}, e2.exports.load = f;
|
|
3944
|
+
var l = !1;
|
|
3945
|
+
function f() {
|
|
3946
|
+
l || (l = !0, r.count += 1, i = i.filter((function(e3) {
|
|
3947
|
+
try {
|
|
3948
|
+
return process.on(e3, u[e3]), !0;
|
|
3949
|
+
} catch {
|
|
3950
|
+
return !1;
|
|
3951
|
+
}
|
|
3952
|
+
})), process.emit = m, process.reallyExit = h);
|
|
3953
|
+
}
|
|
3954
|
+
var p = process.reallyExit;
|
|
3955
|
+
function h(e3) {
|
|
3956
|
+
process.exitCode = e3 || 0, c("exit", process.exitCode, null), c("afterexit", process.exitCode, null), p.call(process, process.exitCode);
|
|
3957
|
+
}
|
|
3958
|
+
var d = process.emit;
|
|
3959
|
+
function m(e3, t3) {
|
|
3960
|
+
if (e3 === "exit") {
|
|
3961
|
+
t3 !== void 0 && (process.exitCode = t3);
|
|
3962
|
+
var n3 = d.apply(this, arguments);
|
|
3963
|
+
return c("exit", process.exitCode, null), c("afterexit", process.exitCode, null), n3;
|
|
3964
|
+
}
|
|
3965
|
+
return d.apply(this, arguments);
|
|
3966
|
+
}
|
|
3967
|
+
}, 6132: (e2) => {
|
|
3968
|
+
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"], process.platform !== "win32" && e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && e2.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
|
|
3969
|
+
}, 9860: (e2) => {
|
|
3970
|
+
"use strict";
|
|
3971
|
+
e2.exports = function(e3) {
|
|
3972
|
+
var t2 = typeof e3 == "string" ? `
|
|
3973
|
+
` : 10, n2 = typeof e3 == "string" ? "\r" : 13;
|
|
3974
|
+
return e3[e3.length - 1] === t2 && (e3 = e3.slice(0, e3.length - 1)), e3[e3.length - 1] === n2 && (e3 = e3.slice(0, e3.length - 1)), e3;
|
|
3975
|
+
};
|
|
3976
|
+
}, 8460: (e2, t2, n2) => {
|
|
3977
|
+
e2.exports = u, u.sync = function(e3, t3) {
|
|
3978
|
+
for (var n3 = c(e3, t3 = t3 || {}), r2 = n3.env, i2 = n3.ext, u2 = n3.extExe, l = [], f = 0, p = r2.length; f < p; f++) {
|
|
3979
|
+
var h = r2[f];
|
|
3980
|
+
h.charAt(0) === '"' && h.slice(-1) === '"' && (h = h.slice(1, -1));
|
|
3981
|
+
var d = o.join(h, e3);
|
|
3982
|
+
!h && /^\.[\\\/]/.test(e3) && (d = e3.slice(0, 2) + d);
|
|
3983
|
+
for (var m = 0, g = i2.length; m < g; m++) {
|
|
3984
|
+
var v = d + i2[m];
|
|
3985
|
+
try {
|
|
3986
|
+
if (s.sync(v, { pathExt: u2 })) {
|
|
3987
|
+
if (!t3.all) return v;
|
|
3988
|
+
l.push(v);
|
|
3989
|
+
}
|
|
3990
|
+
} catch {
|
|
3991
|
+
}
|
|
3992
|
+
}
|
|
3993
|
+
}
|
|
3994
|
+
if (t3.all && l.length) return l;
|
|
3995
|
+
if (t3.nothrow) return null;
|
|
3996
|
+
throw a(e3);
|
|
3997
|
+
};
|
|
3998
|
+
var r = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", o = n2(7072), i = r ? ";" : ":", s = n2(9268);
|
|
3999
|
+
function a(e3) {
|
|
4000
|
+
var t3 = new Error("not found: " + e3);
|
|
4001
|
+
return t3.code = "ENOENT", t3;
|
|
4002
|
+
}
|
|
4003
|
+
function c(e3, t3) {
|
|
4004
|
+
var n3 = t3.colon || i, o2 = t3.path || process.env.PATH || "", s2 = [""];
|
|
4005
|
+
o2 = o2.split(n3);
|
|
4006
|
+
var a2 = "";
|
|
4007
|
+
return r && (o2.unshift(process.cwd()), s2 = (a2 = t3.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM").split(n3), e3.indexOf(".") !== -1 && s2[0] !== "" && s2.unshift("")), (e3.match(/\//) || r && e3.match(/\\/)) && (o2 = [""]), { env: o2, ext: s2, extExe: a2 };
|
|
4008
|
+
}
|
|
4009
|
+
function u(e3, t3, n3) {
|
|
4010
|
+
typeof t3 == "function" && (n3 = t3, t3 = {});
|
|
4011
|
+
var r2 = c(e3, t3), i2 = r2.env, u2 = r2.ext, l = r2.extExe, f = [];
|
|
4012
|
+
(function r3(c2, p) {
|
|
4013
|
+
if (c2 === p) return t3.all && f.length ? n3(null, f) : n3(a(e3));
|
|
4014
|
+
var h = i2[c2];
|
|
4015
|
+
h.charAt(0) === '"' && h.slice(-1) === '"' && (h = h.slice(1, -1));
|
|
4016
|
+
var d = o.join(h, e3);
|
|
4017
|
+
!h && /^\.[\\\/]/.test(e3) && (d = e3.slice(0, 2) + d), (function e4(o2, i3) {
|
|
4018
|
+
if (o2 === i3) return r3(c2 + 1, p);
|
|
4019
|
+
var a2 = u2[o2];
|
|
4020
|
+
s(d + a2, { pathExt: l }, (function(r4, s2) {
|
|
4021
|
+
if (!r4 && s2) {
|
|
4022
|
+
if (!t3.all) return n3(null, d + a2);
|
|
4023
|
+
f.push(d + a2);
|
|
4024
|
+
}
|
|
4025
|
+
return e4(o2 + 1, i3);
|
|
4026
|
+
}));
|
|
4027
|
+
})(0, u2.length);
|
|
4028
|
+
})(0, i2.length);
|
|
4029
|
+
}
|
|
4030
|
+
}, 6468: (e2, t2, n2) => {
|
|
4031
|
+
"use strict";
|
|
4032
|
+
let r = n2(8558), o = n2(8636), i = /* @__PURE__ */ new Map([["10.0", "10"], ["6.3", "8.1"], ["6.2", "8"], ["6.1", "7"], ["6.0", "Vista"], ["5.2", "Server 2003"], ["5.1", "XP"], ["5.0", "2000"], ["4.9", "ME"], ["4.1", "98"], ["4.0", "95"]]);
|
|
4033
|
+
e2.exports = (e3) => {
|
|
4034
|
+
let t3 = /\d+\.\d/.exec(e3 || r.release());
|
|
4035
|
+
if (e3 && !t3) throw new Error("`release` argument doesn't match `n.n`");
|
|
4036
|
+
let n3 = (t3 || [])[0];
|
|
4037
|
+
if ((!e3 || e3 === r.release()) && ["6.1", "6.2", "6.3", "10.0"].includes(n3)) {
|
|
4038
|
+
let e4 = ((o.sync("wmic", ["os", "get", "Caption"]).stdout || "").match(/2008|2012|2016/) || [])[0];
|
|
4039
|
+
if (e4) return `Server ${e4}`;
|
|
4040
|
+
}
|
|
4041
|
+
return i.get(n3);
|
|
4042
|
+
};
|
|
4043
|
+
}, 8636: (e2, t2, n2) => {
|
|
4044
|
+
"use strict";
|
|
4045
|
+
let r = n2(7072), o = n2(4368), i = n2(7468), s = n2(9860), a = n2(9584), c = n2(1392), u = n2(9068), l = n2(1548), f = n2(200), p = n2(7688), h = n2(6174);
|
|
4046
|
+
function d(e3, t3, n3) {
|
|
4047
|
+
let o2;
|
|
4048
|
+
return (n3 = Object.assign({ extendEnv: !0, env: {} }, n3)).extendEnv && (n3.env = Object.assign({}, process.env, n3.env)), n3.__winShell === !0 ? (delete n3.__winShell, o2 = { command: e3, args: t3, options: n3, file: e3, original: { cmd: e3, args: t3 } }) : o2 = i._parse(e3, t3, n3), (n3 = Object.assign({ maxBuffer: 1e7, buffer: !0, stripEof: !0, preferLocal: !0, localDir: o2.options.cwd || process.cwd(), encoding: "utf8", reject: !0, cleanup: !0 }, o2.options)).stdio = h(n3), n3.preferLocal && (n3.env = a.env(Object.assign({}, n3, { cwd: n3.localDir }))), n3.detached && (n3.cleanup = !1), process.platform === "win32" && r.basename(o2.command) === "cmd.exe" && o2.args.unshift("/q"), { cmd: o2.command, args: o2.args, opts: n3, parsed: o2 };
|
|
4049
|
+
}
|
|
4050
|
+
function m(e3, t3) {
|
|
4051
|
+
return t3 && e3.stripEof && (t3 = s(t3)), t3;
|
|
4052
|
+
}
|
|
4053
|
+
function g(e3, t3, n3) {
|
|
4054
|
+
let r2 = "/bin/sh", o2 = ["-c", t3];
|
|
4055
|
+
return n3 = Object.assign({}, n3), process.platform === "win32" && (n3.__winShell = !0, r2 = process.env.comspec || "cmd.exe", o2 = ["/s", "/c", `"${t3}"`], n3.windowsVerbatimArguments = !0), n3.shell && (r2 = n3.shell, delete n3.shell), e3(r2, o2, n3);
|
|
4056
|
+
}
|
|
4057
|
+
function v(e3, t3, { encoding: n3, buffer: r2, maxBuffer: o2 }) {
|
|
4058
|
+
if (!e3[t3]) return null;
|
|
4059
|
+
let i2;
|
|
4060
|
+
return i2 = r2 ? n3 ? u(e3[t3], { encoding: n3, maxBuffer: o2 }) : u.buffer(e3[t3], { maxBuffer: o2 }) : new Promise(((n4, r3) => {
|
|
4061
|
+
e3[t3].once("end", n4).once("error", r3);
|
|
4062
|
+
})), i2.catch(((e4) => {
|
|
4063
|
+
throw e4.stream = t3, e4.message = `${t3} ${e4.message}`, e4;
|
|
4064
|
+
}));
|
|
4065
|
+
}
|
|
4066
|
+
function y(e3, t3) {
|
|
4067
|
+
let { stdout: n3, stderr: r2 } = e3, o2 = e3.error, { code: i2, signal: s2 } = e3, { parsed: a2, joinedCmd: c2 } = t3, u2 = t3.timedOut || !1;
|
|
4068
|
+
if (!o2) {
|
|
4069
|
+
let e4 = "";
|
|
4070
|
+
Array.isArray(a2.opts.stdio) ? (a2.opts.stdio[2] !== "inherit" && (e4 += e4.length > 0 ? r2 : `
|
|
4071
|
+
${r2}`), a2.opts.stdio[1] !== "inherit" && (e4 += `
|
|
4072
|
+
${n3}`)) : a2.opts.stdio !== "inherit" && (e4 = `
|
|
4073
|
+
${r2}${n3}`), o2 = new Error(`Command failed: ${c2}${e4}`), o2.code = i2 < 0 ? p(i2) : i2;
|
|
4074
|
+
}
|
|
4075
|
+
return o2.stdout = n3, o2.stderr = r2, o2.failed = !0, o2.signal = s2 || null, o2.cmd = c2, o2.timedOut = u2, o2;
|
|
4076
|
+
}
|
|
4077
|
+
function b(e3, t3) {
|
|
4078
|
+
let n3 = e3;
|
|
4079
|
+
return Array.isArray(t3) && t3.length > 0 && (n3 += " " + t3.join(" ")), n3;
|
|
4080
|
+
}
|
|
4081
|
+
e2.exports = (e3, t3, n3) => {
|
|
4082
|
+
let r2 = d(e3, t3, n3), { encoding: s2, buffer: a2, maxBuffer: u2 } = r2.opts, p2 = b(e3, t3), h2, g2;
|
|
4083
|
+
try {
|
|
4084
|
+
h2 = o.spawn(r2.cmd, r2.args, r2.opts);
|
|
4085
|
+
} catch (e4) {
|
|
4086
|
+
return Promise.reject(e4);
|
|
4087
|
+
}
|
|
4088
|
+
r2.opts.cleanup && (g2 = f((() => {
|
|
4089
|
+
h2.kill();
|
|
4090
|
+
})));
|
|
4091
|
+
let w = null, x = !1, S = () => {
|
|
4092
|
+
w && (clearTimeout(w), w = null), g2 && g2();
|
|
4093
|
+
};
|
|
4094
|
+
r2.opts.timeout > 0 && (w = setTimeout((() => {
|
|
4095
|
+
w = null, x = !0, h2.kill(r2.opts.killSignal);
|
|
4096
|
+
}), r2.opts.timeout));
|
|
4097
|
+
let P = new Promise(((e4) => {
|
|
4098
|
+
h2.on("exit", ((t4, n4) => {
|
|
4099
|
+
S(), e4({ code: t4, signal: n4 });
|
|
4100
|
+
})), h2.on("error", ((t4) => {
|
|
4101
|
+
S(), e4({ error: t4 });
|
|
4102
|
+
})), h2.stdin && h2.stdin.on("error", ((t4) => {
|
|
4103
|
+
S(), e4({ error: t4 });
|
|
4104
|
+
}));
|
|
4105
|
+
}));
|
|
4106
|
+
function I() {
|
|
4107
|
+
h2.stdout && h2.stdout.destroy(), h2.stderr && h2.stderr.destroy();
|
|
4108
|
+
}
|
|
4109
|
+
let O = () => l(Promise.all([P, v(h2, "stdout", { encoding: s2, buffer: a2, maxBuffer: u2 }), v(h2, "stderr", { encoding: s2, buffer: a2, maxBuffer: u2 })]).then(((e4) => {
|
|
4110
|
+
let t4 = e4[0];
|
|
4111
|
+
if (t4.stdout = e4[1], t4.stderr = e4[2], t4.error || t4.code !== 0 || t4.signal !== null) {
|
|
4112
|
+
let e5 = y(t4, { joinedCmd: p2, parsed: r2, timedOut: x });
|
|
4113
|
+
if (e5.killed = e5.killed || h2.killed, !r2.opts.reject) return e5;
|
|
4114
|
+
throw e5;
|
|
4115
|
+
}
|
|
4116
|
+
return { stdout: m(r2.opts, t4.stdout), stderr: m(r2.opts, t4.stderr), code: 0, failed: !1, killed: !1, signal: null, cmd: p2, timedOut: !1 };
|
|
4117
|
+
})), I);
|
|
4118
|
+
return i._enoent.hookChildProcess(h2, r2.parsed), (function(e4, t4) {
|
|
4119
|
+
t4 != null && (c(t4) ? t4.pipe(e4.stdin) : e4.stdin.end(t4));
|
|
4120
|
+
})(h2, r2.opts.input), h2.then = (e4, t4) => O().then(e4, t4), h2.catch = (e4) => O().catch(e4), h2;
|
|
4121
|
+
}, e2.exports.stdout = (...t3) => e2.exports(...t3).then(((e3) => e3.stdout)), e2.exports.stderr = (...t3) => e2.exports(...t3).then(((e3) => e3.stderr)), e2.exports.shell = (t3, n3) => g(e2.exports, t3, n3), e2.exports.sync = (e3, t3, n3) => {
|
|
4122
|
+
let r2 = d(e3, t3, n3), i2 = b(e3, t3);
|
|
4123
|
+
if (c(r2.opts.input)) throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
4124
|
+
let s2 = o.spawnSync(r2.cmd, r2.args, r2.opts);
|
|
4125
|
+
if (s2.code = s2.status, s2.error || s2.status !== 0 || s2.signal !== null) {
|
|
4126
|
+
let e4 = y(s2, { joinedCmd: i2, parsed: r2 });
|
|
4127
|
+
if (!r2.opts.reject) return e4;
|
|
4128
|
+
throw e4;
|
|
4129
|
+
}
|
|
4130
|
+
return { stdout: m(r2.opts, s2.stdout), stderr: m(r2.opts, s2.stderr), code: 0, failed: !1, signal: null, cmd: i2, timedOut: !1 };
|
|
4131
|
+
}, e2.exports.shellSync = (t3, n3) => g(e2.exports.sync, t3, n3);
|
|
4132
|
+
}, 7688: (e2, t2, n2) => {
|
|
4133
|
+
"use strict";
|
|
4134
|
+
let r = n2(970), o;
|
|
4135
|
+
if (typeof r.getSystemErrorName == "function") e2.exports = r.getSystemErrorName;
|
|
4136
|
+
else {
|
|
4137
|
+
try {
|
|
4138
|
+
if (o = process.binding("uv"), typeof o.errname != "function") throw new TypeError("uv.errname is not a function");
|
|
4139
|
+
} catch (e3) {
|
|
4140
|
+
console.error("execa/lib/errname: unable to establish process.binding('uv')", e3), o = null;
|
|
4141
|
+
}
|
|
4142
|
+
e2.exports = (e3) => i(o, e3);
|
|
4143
|
+
}
|
|
4144
|
+
function i(e3, t3) {
|
|
4145
|
+
if (e3) return e3.errname(t3);
|
|
4146
|
+
if (!(t3 < 0)) throw new Error("err >= 0");
|
|
4147
|
+
return `Unknown system error ${t3}`;
|
|
4148
|
+
}
|
|
4149
|
+
e2.exports.__test__ = i;
|
|
4150
|
+
}, 6174: (e2) => {
|
|
4151
|
+
"use strict";
|
|
4152
|
+
let t2 = ["stdin", "stdout", "stderr"];
|
|
4153
|
+
e2.exports = (e3) => {
|
|
4154
|
+
if (!e3) return null;
|
|
4155
|
+
if (e3.stdio && ((e4) => t2.some(((t3) => !!e4[t3])))(e3)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t2.map(((e4) => `\`${e4}\``)).join(", ")}`);
|
|
4156
|
+
if (typeof e3.stdio == "string") return e3.stdio;
|
|
4157
|
+
let n2 = e3.stdio || [];
|
|
4158
|
+
if (!Array.isArray(n2)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n2}\``);
|
|
4159
|
+
let r = [], o = Math.max(n2.length, t2.length);
|
|
4160
|
+
for (let i = 0; i < o; i++) {
|
|
4161
|
+
let o2 = null;
|
|
4162
|
+
n2[i] !== void 0 ? o2 = n2[i] : e3[t2[i]] !== void 0 && (o2 = e3[t2[i]]), r[i] = o2;
|
|
4163
|
+
}
|
|
4164
|
+
return r;
|
|
4165
|
+
};
|
|
4166
|
+
}, 656: (e2, t2, n2) => {
|
|
4167
|
+
"use strict";
|
|
4168
|
+
let { PassThrough: r } = n2(8378);
|
|
4169
|
+
e2.exports = (e3) => {
|
|
4170
|
+
e3 = Object.assign({}, e3);
|
|
4171
|
+
let { array: t3 } = e3, { encoding: n3 } = e3, o = n3 === "buffer", i = !1;
|
|
4172
|
+
t3 ? i = !(n3 || o) : n3 = n3 || "utf8", o && (n3 = null);
|
|
4173
|
+
let s = 0, a = [], c = new r({ objectMode: i });
|
|
4174
|
+
return n3 && c.setEncoding(n3), c.on("data", ((e4) => {
|
|
4175
|
+
a.push(e4), i ? s = a.length : s += e4.length;
|
|
4176
|
+
})), c.getBufferedValue = () => t3 ? a : o ? Buffer.concat(a, s) : a.join(""), c.getBufferedLength = () => s, c;
|
|
4177
|
+
};
|
|
4178
|
+
}, 9068: (e2, t2, n2) => {
|
|
4179
|
+
"use strict";
|
|
4180
|
+
let r = n2(8984), o = n2(656);
|
|
4181
|
+
class i extends Error {
|
|
4182
|
+
constructor() {
|
|
4183
|
+
super("maxBuffer exceeded"), this.name = "MaxBufferError";
|
|
4184
|
+
}
|
|
4185
|
+
}
|
|
4186
|
+
function s(e3, t3) {
|
|
4187
|
+
if (!e3) return Promise.reject(new Error("Expected a stream"));
|
|
4188
|
+
t3 = Object.assign({ maxBuffer: 1 / 0 }, t3);
|
|
4189
|
+
let { maxBuffer: n3 } = t3, s2;
|
|
4190
|
+
return new Promise(((a, c) => {
|
|
4191
|
+
let u = (e4) => {
|
|
4192
|
+
e4 && (e4.bufferedData = s2.getBufferedValue()), c(e4);
|
|
4193
|
+
};
|
|
4194
|
+
s2 = r(e3, o(t3), ((e4) => {
|
|
4195
|
+
e4 ? u(e4) : a();
|
|
4196
|
+
})), s2.on("data", (() => {
|
|
4197
|
+
s2.getBufferedLength() > n3 && u(new i());
|
|
4198
|
+
}));
|
|
4199
|
+
})).then((() => s2.getBufferedValue()));
|
|
4200
|
+
}
|
|
4201
|
+
e2.exports = s, e2.exports.buffer = (e3, t3) => s(e3, Object.assign({}, t3, { encoding: "buffer" })), e2.exports.array = (e3, t3) => s(e3, Object.assign({}, t3, { array: !0 })), e2.exports.MaxBufferError = i;
|
|
4202
|
+
}, 2680: (e2) => {
|
|
4203
|
+
e2.exports = function e3(t2, n2) {
|
|
4204
|
+
if (t2 && n2) return e3(t2)(n2);
|
|
4205
|
+
if (typeof t2 != "function") throw new TypeError("need wrapper function");
|
|
4206
|
+
return Object.keys(t2).forEach((function(e4) {
|
|
4207
|
+
r[e4] = t2[e4];
|
|
4208
|
+
})), r;
|
|
4209
|
+
function r() {
|
|
4210
|
+
for (var e4 = new Array(arguments.length), n3 = 0; n3 < e4.length; n3++) e4[n3] = arguments[n3];
|
|
4211
|
+
var r2 = t2.apply(this, e4), o = e4[e4.length - 1];
|
|
4212
|
+
return typeof r2 == "function" && r2 !== o && Object.keys(o).forEach((function(e5) {
|
|
4213
|
+
r2[e5] = o[e5];
|
|
4214
|
+
})), r2;
|
|
4215
|
+
}
|
|
4216
|
+
};
|
|
4217
|
+
}, 4824: (e2) => {
|
|
4218
|
+
"use strict";
|
|
4219
|
+
function t2(e3) {
|
|
4220
|
+
return e3;
|
|
4221
|
+
}
|
|
4222
|
+
e2.exports = { date: t2, error: t2, symbol: t2, string: t2, number: t2, boolean: t2, null: t2, undefined: t2 };
|
|
4223
|
+
}, 324: (e2, t2, n2) => {
|
|
4224
|
+
"use strict";
|
|
4225
|
+
var r = n2(3648), o = n2(4616), i = n2(4824);
|
|
4226
|
+
function s(e3, t3) {
|
|
4227
|
+
return e3 === void 0 ? t3 : e3;
|
|
4228
|
+
}
|
|
4229
|
+
e2.exports = function() {
|
|
4230
|
+
var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4231
|
+
return { indent: s(e3.indent, " "), prefix: s(e3.prefix, `
|
|
4232
|
+
`), postfix: s(e3.postfix, ""), errorToString: e3.errorToString || r, dateToString: e3.dateToString || o, colors: Object.assign({}, i, e3.colors) };
|
|
4233
|
+
};
|
|
4234
|
+
}, 4616: (e2) => {
|
|
4235
|
+
"use strict";
|
|
4236
|
+
e2.exports = function(e3) {
|
|
4237
|
+
return `new Date(${Date.prototype.toISOString.call(e3)})`;
|
|
4238
|
+
};
|
|
4239
|
+
}, 3648: (e2) => {
|
|
4240
|
+
"use strict";
|
|
4241
|
+
e2.exports = function(e3) {
|
|
4242
|
+
return Error.prototype.toString.call(e3);
|
|
4243
|
+
};
|
|
4244
|
+
}, 9411: (e2) => {
|
|
4245
|
+
"use strict";
|
|
4246
|
+
e2.exports = function() {
|
|
4247
|
+
for (var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1, t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : " ", n2 = "", r = 0; r < e3; r += 1) n2 += t2;
|
|
4248
|
+
return n2;
|
|
4249
|
+
};
|
|
4250
|
+
}, 6232: (e2, t2, n2) => {
|
|
4251
|
+
"use strict";
|
|
4252
|
+
var r = n2(7344), o = n2(324), i = n2(9411), s = ["object", "array"];
|
|
4253
|
+
e2.exports = function(e3, t3) {
|
|
4254
|
+
var n3 = o(t3), a = n3.colors, c = n3.prefix, u = n3.postfix, l = n3.dateToString, f = n3.errorToString, p = n3.indent, h = /* @__PURE__ */ new Map();
|
|
4255
|
+
function d(e4) {
|
|
4256
|
+
var t4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
4257
|
+
if (Object.keys(e4).length === 0) return " {}";
|
|
4258
|
+
var o2 = `
|
|
4259
|
+
`, a2 = i(t4, p);
|
|
4260
|
+
return Object.keys(e4).forEach((function(c2) {
|
|
4261
|
+
var u2 = e4[c2], l2 = r(u2), f2 = i(n4, " "), p2 = s.indexOf(l2) !== -1 ? "" : " ", h2 = v(u2) ? " [Circular]" : g(l2, u2, t4 + 1, n4);
|
|
4262
|
+
o2 += `${f2}${a2}${c2}:${p2}${h2}
|
|
4263
|
+
`;
|
|
4264
|
+
})), o2.substring(0, o2.length - 1);
|
|
4265
|
+
}
|
|
4266
|
+
function m(e4) {
|
|
4267
|
+
var t4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
4268
|
+
if (e4.length === 0) return " []";
|
|
4269
|
+
var o2 = `
|
|
4270
|
+
`, s2 = i(t4, p);
|
|
4271
|
+
return e4.forEach((function(e5) {
|
|
4272
|
+
var a2 = r(e5), c2 = i(n4, " "), u2 = v(e5) ? "[Circular]" : g(a2, e5, t4, n4 + 1).toString().trimLeft();
|
|
4273
|
+
o2 += `${c2}${s2}- ${u2}
|
|
4274
|
+
`;
|
|
4275
|
+
})), o2.substring(0, o2.length - 1);
|
|
4276
|
+
}
|
|
4277
|
+
function g(e4, t4, n4, r2) {
|
|
4278
|
+
switch (e4) {
|
|
4279
|
+
case "array":
|
|
4280
|
+
return m(t4, n4, r2);
|
|
4281
|
+
case "object":
|
|
4282
|
+
return d(t4, n4, r2);
|
|
4283
|
+
case "string":
|
|
4284
|
+
return a.string(t4);
|
|
4285
|
+
case "symbol":
|
|
4286
|
+
return a.symbol(t4.toString());
|
|
4287
|
+
case "number":
|
|
4288
|
+
return a.number(t4);
|
|
4289
|
+
case "boolean":
|
|
4290
|
+
return a.boolean(t4);
|
|
4291
|
+
case "null":
|
|
4292
|
+
return a.null("null");
|
|
4293
|
+
case "undefined":
|
|
4294
|
+
return a.undefined("undefined");
|
|
4295
|
+
case "date":
|
|
4296
|
+
return a.date(l(t4));
|
|
4297
|
+
case "error":
|
|
4298
|
+
return a.error(f(t4));
|
|
4299
|
+
default:
|
|
4300
|
+
return t4 && t4.toString ? t4.toString() : Object.prototype.toString.call(t4);
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
function v(e4) {
|
|
4304
|
+
return !(["object", "array"].indexOf(r(e4)) === -1 || !h.has(e4) && (h.set(e4), 1));
|
|
4305
|
+
}
|
|
4306
|
+
var y = "";
|
|
4307
|
+
return h.set(e3), r(e3) === "object" && Object.keys(e3).length > 0 ? y = d(e3) : r(e3) === "array" && e3.length > 0 && (y = m(e3)), y.length === 0 ? "" : `${c}${y.slice(1)}${u}`;
|
|
4308
|
+
};
|
|
4309
|
+
}, 7344: (e2) => {
|
|
4310
|
+
"use strict";
|
|
4311
|
+
e2.exports = function(e3) {
|
|
4312
|
+
return Array.isArray(e3) ? "array" : e3 instanceof Date ? "date" : e3 instanceof Error ? "error" : e3 === null ? "null" : typeof e3 == "object" && Object.prototype.toString.call(e3) === "[object Object]" ? "object" : typeof e3;
|
|
4313
|
+
};
|
|
4314
|
+
}, 6608: (e2) => {
|
|
4315
|
+
"use strict";
|
|
4316
|
+
e2.exports = __require("assert");
|
|
4317
|
+
}, 4368: (e2) => {
|
|
4318
|
+
"use strict";
|
|
4319
|
+
e2.exports = __require("child_process");
|
|
4320
|
+
}, 467: (e2) => {
|
|
4321
|
+
"use strict";
|
|
4322
|
+
e2.exports = __require("events");
|
|
4323
|
+
}, 2058: (e2) => {
|
|
4324
|
+
"use strict";
|
|
4325
|
+
e2.exports = __require("fs");
|
|
4326
|
+
}, 8558: (e2) => {
|
|
4327
|
+
"use strict";
|
|
4328
|
+
e2.exports = __require("os");
|
|
4329
|
+
}, 7072: (e2) => {
|
|
4330
|
+
"use strict";
|
|
4331
|
+
e2.exports = __require("path");
|
|
4332
|
+
}, 8378: (e2) => {
|
|
4333
|
+
"use strict";
|
|
4334
|
+
e2.exports = __require("stream");
|
|
4335
|
+
}, 970: (e2) => {
|
|
4336
|
+
"use strict";
|
|
4337
|
+
e2.exports = __require("util");
|
|
4338
|
+
} }, t = {}, n = (function n2(r) {
|
|
4339
|
+
var o = t[r];
|
|
4340
|
+
if (o !== void 0) return o.exports;
|
|
4341
|
+
var i = t[r] = { exports: {} };
|
|
4342
|
+
return e[r](i, i.exports, n2), i.exports;
|
|
4343
|
+
})(2980);
|
|
4344
|
+
module.exports = n;
|
|
4345
|
+
})();
|
|
4346
|
+
}
|
|
4347
|
+
});
|
|
4348
|
+
|
|
4349
|
+
// src/cli-commands/bin/run.ts
|
|
4350
|
+
var import_envinfo = __toESM(require_envinfo(), 1);
|
|
4351
|
+
import { globalSettings } from "@aussieljk/forkbook/internal/cli";
|
|
4352
|
+
import {
|
|
4353
|
+
HandledError,
|
|
4354
|
+
JsPackageManagerFactory as JsPackageManagerFactory2,
|
|
4355
|
+
PackageManagerName,
|
|
4356
|
+
optionalEnvToBoolean,
|
|
4357
|
+
removeAddon as remove,
|
|
4358
|
+
versions
|
|
4359
|
+
} from "@aussieljk/forkbook/internal/common";
|
|
4360
|
+
import { withTelemetry } from "@aussieljk/forkbook/internal/core-server";
|
|
4361
|
+
import { CLI_COLORS, logTracker, logger } from "@aussieljk/forkbook/internal/node-logger";
|
|
4362
|
+
import { addToGlobalContext, telemetry } from "@aussieljk/forkbook/internal/telemetry";
|
|
4363
|
+
import { Option, program } from "commander";
|
|
4364
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
4365
|
+
|
|
4366
|
+
// src/cli-commands/add.ts
|
|
4367
|
+
import { relative } from "node:path";
|
|
4368
|
+
import {
|
|
4369
|
+
JsPackageManagerFactory,
|
|
4370
|
+
getStorybookInfo,
|
|
4371
|
+
setupAddonInConfig,
|
|
4372
|
+
isCorePackage
|
|
4373
|
+
} from "@aussieljk/forkbook/internal/common";
|
|
4374
|
+
import { readConfig } from "@aussieljk/forkbook/internal/csf-tools";
|
|
4375
|
+
import { logger as nodeLogger, prompt } from "@aussieljk/forkbook/internal/node-logger";
|
|
4376
|
+
import SemVer from "semver";
|
|
4377
|
+
import { dedent } from "ts-dedent";
|
|
4378
|
+
var getVersionSpecifier = (addon) => {
|
|
4379
|
+
let groups = /^(@{0,1}[^@]+)(?:@(.+))?$/.exec(addon);
|
|
4380
|
+
return groups ? [groups[1], groups[2]] : [addon, void 0];
|
|
4381
|
+
}, checkInstalled = (addonName, main) => !!main.addons?.find((entry) => (typeof entry == "string" ? entry : entry.name)?.endsWith(addonName));
|
|
4382
|
+
async function add(addon, {
|
|
4383
|
+
packageManager: pkgMgr,
|
|
4384
|
+
skipPostinstall,
|
|
4385
|
+
configDir: userSpecifiedConfigDir,
|
|
4386
|
+
yes,
|
|
4387
|
+
skipInstall
|
|
4388
|
+
}, logger2 = nodeLogger) {
|
|
4389
|
+
let [addonName, inputVersion] = getVersionSpecifier(addon), { mainConfig, mainConfigPath, configDir, previewConfigPath } = await getStorybookInfo(
|
|
4390
|
+
userSpecifiedConfigDir,
|
|
4391
|
+
void 0,
|
|
4392
|
+
{ skipCache: !0 }
|
|
4393
|
+
), packageManager = JsPackageManagerFactory.getPackageManager({ force: pkgMgr, configDir });
|
|
4394
|
+
if (typeof configDir > "u")
|
|
4395
|
+
throw new Error(dedent`
|
|
4396
|
+
Unable to find storybook config directory. Please specify your Forkbook config directory with the --config-dir flag.
|
|
4397
|
+
`);
|
|
4398
|
+
if (!mainConfigPath) {
|
|
4399
|
+
logger2.error("Unable to find Forkbook main.js config");
|
|
4400
|
+
return;
|
|
4401
|
+
}
|
|
4402
|
+
let shouldAddToMain = !0;
|
|
4403
|
+
if (checkInstalled(addonName, mainConfig) && (shouldAddToMain = !1, !yes && (logger2.log(`The Forkbook addon "${addonName}" is already present in ${mainConfigPath}.`), !await prompt.confirm({
|
|
4404
|
+
message: "Do you wish to install it again?"
|
|
4405
|
+
}))))
|
|
4406
|
+
return;
|
|
4407
|
+
let main = await readConfig(mainConfigPath);
|
|
4408
|
+
if (logger2.log(`Verifying ${addonName}`), !isCorePackage(addonName)) {
|
|
4409
|
+
let version2 = inputVersion ?? await packageManager.latestVersion(addonName);
|
|
4410
|
+
if (!version2)
|
|
4411
|
+
throw new Error(`No version found for ${addonName}`);
|
|
4412
|
+
let addonWithVersion = isValidVersion(version2) && !version2.includes("-pr-") ? `${addonName}@^${version2}` : `${addonName}@${version2}`;
|
|
4413
|
+
logger2.log(`Installing ${addonWithVersion}`), await packageManager.addDependencies(
|
|
4414
|
+
{ type: "devDependencies", writeOutputToFile: !1, skipInstall },
|
|
4415
|
+
[addonWithVersion]
|
|
4416
|
+
);
|
|
4417
|
+
}
|
|
4418
|
+
shouldAddToMain && (logger2.log(
|
|
4419
|
+
`Adding '${addon}' to the "addons" field in ${relative(process.cwd(), mainConfigPath)}`
|
|
4420
|
+
), await setupAddonInConfig({
|
|
4421
|
+
addonName,
|
|
4422
|
+
mainConfigCSFFile: main,
|
|
4423
|
+
previewConfigPath,
|
|
4424
|
+
configDir
|
|
4425
|
+
})), !skipPostinstall && isCorePackage(addonName) && await postinstallAddon(addonName, {
|
|
4426
|
+
packageManager: packageManager.type,
|
|
4427
|
+
configDir,
|
|
4428
|
+
yes,
|
|
4429
|
+
logger: logger2,
|
|
4430
|
+
prompt,
|
|
4431
|
+
skipInstall
|
|
4432
|
+
});
|
|
4433
|
+
}
|
|
4434
|
+
function isValidVersion(version2) {
|
|
4435
|
+
return SemVer.valid(version2) || version2.match(/^\d+$/);
|
|
4436
|
+
}
|
|
4437
|
+
|
|
4438
|
+
// src/cli-commands/bin/run.ts
|
|
4439
|
+
addToGlobalContext("cliVersion", versions["@aussieljk/forkbook"]);
|
|
4440
|
+
var handleCommandFailure = (logFilePath) => async (error) => {
|
|
4441
|
+
error instanceof HandledError || logger.error(String(error));
|
|
4442
|
+
try {
|
|
4443
|
+
let logFile = await logTracker.writeToFile(logFilePath);
|
|
4444
|
+
logger.log(`Debug logs are written to: ${logFile}`);
|
|
4445
|
+
} catch {
|
|
4446
|
+
}
|
|
4447
|
+
logger.outro(""), process.exit(1);
|
|
4448
|
+
}, command = (name) => program.command(name).option(
|
|
4449
|
+
"--disable-telemetry",
|
|
4450
|
+
"Disable sending telemetry data",
|
|
4451
|
+
optionalEnvToBoolean(process.env.FORKBOOK_DISABLE_TELEMETRY)
|
|
4452
|
+
).option("--debug", "Get more logs in debug mode", !1).option("--enable-crash-reports", "Enable sending crash reports to telemetry data").option(
|
|
4453
|
+
"--logfile [path]",
|
|
4454
|
+
"Write all debug logs to the specified file at the end of the run. Defaults to debug-storybook.log when [path] is not provided"
|
|
4455
|
+
).option("--loglevel <trace | debug | info | warn | error | silent>", "Define log level", "info").hook("preAction", async (self2) => {
|
|
4456
|
+
let options = self2.opts();
|
|
4457
|
+
options.debug && logger.setLogLevel("debug"), options.loglevel && logger.setLogLevel(options.loglevel), options.logfile && logTracker.enableLogWriting();
|
|
4458
|
+
try {
|
|
4459
|
+
await globalSettings();
|
|
4460
|
+
} catch (e) {
|
|
4461
|
+
logger.error(`Error loading global settings:
|
|
4462
|
+
` + String(e));
|
|
4463
|
+
}
|
|
4464
|
+
}).hook("postAction", async (command2) => {
|
|
4465
|
+
if (logTracker.shouldWriteLogsToFile) {
|
|
4466
|
+
try {
|
|
4467
|
+
let logFile = await logTracker.writeToFile(command2.getOptionValue("logfile"));
|
|
4468
|
+
logger.log(`Debug logs are written to: ${logFile}`);
|
|
4469
|
+
} catch {
|
|
4470
|
+
}
|
|
4471
|
+
logger.outro(CLI_COLORS.success("Done!"));
|
|
4472
|
+
}
|
|
4473
|
+
});
|
|
4474
|
+
command("init").description("Initialize Forkbook into your project").option("-f --force", "Force add Forkbook").option("-s --skip-install", "Skip installing deps").addOption(
|
|
4475
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
4476
|
+
Object.values(PackageManagerName)
|
|
4477
|
+
)
|
|
4478
|
+
).option("-t --type <type>", "Add Forkbook for a specific project type").option("-y --yes", "Answer yes to all prompts").option("--dev", "Launch the development server after completing initialization").option(
|
|
4479
|
+
"--no-dev",
|
|
4480
|
+
"Do not launch the Forkbook development server after completing initialization (default)"
|
|
4481
|
+
);
|
|
4482
|
+
command("add <addon>").description("Add an addon to your Forkbook").addOption(
|
|
4483
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
4484
|
+
Object.values(PackageManagerName)
|
|
4485
|
+
)
|
|
4486
|
+
).option("-c, --config-dir <dir-name>", "Directory where to load Forkbook configurations from").option("--skip-install", "Skip installing deps").option("-s --skip-postinstall", "Skip package specific postinstall config modifications").option("-y --yes", "Skip prompting the user").action((addonName, options) => {
|
|
4487
|
+
withTelemetry("add", { cliOptions: options }, async () => {
|
|
4488
|
+
logger.intro(`Setting up your project for ${addonName}`), await add(addonName, options), await telemetry("add", { addon: addonName, source: "cli" }), logger.outro("Done!");
|
|
4489
|
+
}).catch(handleCommandFailure);
|
|
4490
|
+
});
|
|
4491
|
+
command("remove <addon>").description("Remove an addon from your Forkbook").addOption(
|
|
4492
|
+
new Option("--package-manager <type>", "Force package manager for installing deps").choices(
|
|
4493
|
+
Object.values(PackageManagerName)
|
|
4494
|
+
)
|
|
4495
|
+
).option("-c, --config-dir <dir-name>", "Directory where to load Forkbook configurations from").option("-s --skip-install", "Skip installing deps").action(
|
|
4496
|
+
(addonName, options) => withTelemetry("remove", { cliOptions: options }, async () => {
|
|
4497
|
+
logger.intro(`Removing ${addonName} from your Forkbook`);
|
|
4498
|
+
let packageManager = JsPackageManagerFactory2.getPackageManager({
|
|
4499
|
+
configDir: options.configDir,
|
|
4500
|
+
force: options.packageManager
|
|
4501
|
+
});
|
|
4502
|
+
await remove(addonName, {
|
|
4503
|
+
configDir: options.configDir,
|
|
4504
|
+
packageManager,
|
|
4505
|
+
skipInstall: options.skipInstall
|
|
4506
|
+
}), await telemetry("remove", { addon: addonName, source: "cli" }), logger.outro("Done!");
|
|
4507
|
+
}).catch(handleCommandFailure(options.logfile))
|
|
4508
|
+
);
|
|
4509
|
+
command("info").description("Prints debugging information about the local environment").action(async () => {
|
|
4510
|
+
logger.log(import_picocolors.default.bold(`
|
|
4511
|
+
Storybook Environment Info:`));
|
|
4512
|
+
let activePackageManager = JsPackageManagerFactory2.getPackageManager().type.replace(/\d/, ""), output = await import_envinfo.default.run({
|
|
4513
|
+
System: ["OS", "CPU", "Shell"],
|
|
4514
|
+
Binaries: ["Node", "Bun", "Yarn", "npm", "pnpm"],
|
|
4515
|
+
Browsers: ["Chrome", "Edge", "Firefox", "Safari"],
|
|
4516
|
+
npmPackages: "{@storybook/*,*storybook*,sb,chromatic}",
|
|
4517
|
+
npmGlobalPackages: "{@storybook/*,*storybook*,sb,chromatic}"
|
|
4518
|
+
}), activePackageManagerLine = output.match(new RegExp(`${activePackageManager}:.*`, "i"));
|
|
4519
|
+
logger.log(
|
|
4520
|
+
output.replace(
|
|
4521
|
+
activePackageManagerLine,
|
|
4522
|
+
import_picocolors.default.bold(`${activePackageManagerLine} <----- active`)
|
|
4523
|
+
)
|
|
4524
|
+
);
|
|
4525
|
+
});
|
|
4526
|
+
program.on("command:*", ([invalidCmd]) => {
|
|
4527
|
+
let errorMessage = ` Invalid command: ${import_picocolors.default.bold(invalidCmd)}.
|
|
4528
|
+
See --help for a list of available commands.`, suggestion = program.commands.map((cmd) => cmd.name()).find((cmd) => leven(cmd, invalidCmd) < 3);
|
|
4529
|
+
suggestion && (errorMessage += `
|
|
4530
|
+
Did you mean ${import_picocolors.default.yellow(suggestion)}?`), logger.error(errorMessage), process.exit(1);
|
|
4531
|
+
});
|
|
4532
|
+
program.usage("<command> [options]").version(String(version)).parse(process.argv);
|