@bleedingdev/modern-js-utils 3.2.0-ultramodern.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/cjs/cli/alias.js +82 -0
- package/dist/cjs/cli/applyOptionsChain.js +50 -0
- package/dist/cjs/cli/commands.js +69 -0
- package/dist/cjs/cli/common.js +59 -0
- package/dist/cjs/cli/config.js +39 -0
- package/dist/cjs/cli/constants.js +136 -0
- package/dist/cjs/cli/ensure.js +56 -0
- package/dist/cjs/cli/fs.js +46 -0
- package/dist/cjs/cli/get/config.js +48 -0
- package/dist/cjs/cli/get/data.js +106 -0
- package/dist/cjs/cli/get/index.js +112 -0
- package/dist/cjs/cli/index.js +212 -0
- package/dist/cjs/cli/is/config.js +86 -0
- package/dist/cjs/cli/is/env.js +52 -0
- package/dist/cjs/cli/is/index.js +79 -0
- package/dist/cjs/cli/is/project.js +147 -0
- package/dist/cjs/cli/is/type.js +84 -0
- package/dist/cjs/cli/logger.js +39 -0
- package/dist/cjs/cli/modulePath.js +87 -0
- package/dist/cjs/cli/monorepo.js +110 -0
- package/dist/cjs/cli/package.js +97 -0
- package/dist/cjs/cli/path.js +111 -0
- package/dist/cjs/cli/port.js +79 -0
- package/dist/cjs/cli/prettyInstructions.js +117 -0
- package/dist/cjs/cli/require.js +127 -0
- package/dist/cjs/cli/route.js +76 -0
- package/dist/cjs/cli/runtimeExports.js +86 -0
- package/dist/cjs/cli/tsconfig.js +51 -0
- package/dist/cjs/cli/version.js +67 -0
- package/dist/cjs/cli/watch.js +87 -0
- package/dist/cjs/compiled.js +209 -0
- package/dist/cjs/import.js +56 -0
- package/dist/cjs/index.js +72 -0
- package/dist/cjs/universal/constants.js +84 -0
- package/dist/cjs/universal/index.js +36 -0
- package/dist/cjs/universal/path.js +36 -0
- package/dist/cjs/universal/pluginDagSort.js +75 -0
- package/dist/compiled/address/index.js +171 -0
- package/dist/compiled/address/lib/address.d.ts +28 -0
- package/dist/compiled/address/package.json +1 -0
- package/dist/compiled/browserslist/index.d.ts +178 -0
- package/dist/compiled/browserslist/index.js +1329 -0
- package/dist/compiled/browserslist/license +20 -0
- package/dist/compiled/browserslist/package.json +1 -0
- package/dist/compiled/chalk/index.d.ts +415 -0
- package/dist/compiled/chalk/index.js +2368 -0
- package/dist/compiled/chalk/license +9 -0
- package/dist/compiled/chalk/package.json +1 -0
- package/dist/compiled/chokidar/anymatch/index.d.ts +19 -0
- package/dist/compiled/chokidar/fsevents.node +0 -0
- package/dist/compiled/chokidar/index.js +4162 -0
- package/dist/compiled/chokidar/index.js.LICENSE.txt +41 -0
- package/dist/compiled/chokidar/license +21 -0
- package/dist/compiled/chokidar/package.json +1 -0
- package/dist/compiled/chokidar/types/index.d.ts +188 -0
- package/dist/compiled/commander/index.js +1540 -0
- package/dist/compiled/commander/index.mjs +2 -0
- package/dist/compiled/commander/license +22 -0
- package/dist/compiled/commander/package.json +1 -0
- package/dist/compiled/commander/typings/index.d.ts +890 -0
- package/dist/compiled/debug/index.d.ts +54 -0
- package/dist/compiled/debug/index.js +621 -0
- package/dist/compiled/debug/license +20 -0
- package/dist/compiled/debug/ms/index.d.ts +25 -0
- package/dist/compiled/debug/package.json +1 -0
- package/dist/compiled/dotenv/index.js +101 -0
- package/dist/compiled/dotenv/license +23 -0
- package/dist/compiled/dotenv/package.json +1 -0
- package/dist/compiled/dotenv/types/index.d.ts +59 -0
- package/dist/compiled/dotenv-expand/index.d.ts +15 -0
- package/dist/compiled/dotenv-expand/index.js +54 -0
- package/dist/compiled/dotenv-expand/license +24 -0
- package/dist/compiled/dotenv-expand/package.json +1 -0
- package/dist/compiled/execa/index.d.ts +564 -0
- package/dist/compiled/execa/index.js +1738 -0
- package/dist/compiled/execa/license +9 -0
- package/dist/compiled/execa/package.json +1 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/dist/compiled/fast-glob/index.js +4665 -0
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +38 -0
- package/dist/compiled/fast-glob/license +21 -0
- package/dist/compiled/fast-glob/out/index.d.ts +27 -0
- package/dist/compiled/fast-glob/out/managers/tasks.d.ts +22 -0
- package/dist/compiled/fast-glob/out/settings.d.ts +164 -0
- package/dist/compiled/fast-glob/out/types/index.d.ts +31 -0
- package/dist/compiled/fast-glob/package.json +1 -0
- package/dist/compiled/filesize/filesize.d.ts +131 -0
- package/dist/compiled/filesize/index.js +198 -0
- package/dist/compiled/filesize/index.js.LICENSE.txt +7 -0
- package/dist/compiled/filesize/license +28 -0
- package/dist/compiled/filesize/package.json +1 -0
- package/dist/compiled/fs-extra/index.d.ts +563 -0
- package/dist/compiled/fs-extra/index.js +2222 -0
- package/dist/compiled/fs-extra/license +15 -0
- package/dist/compiled/fs-extra/package.json +1 -0
- package/dist/compiled/glob/index.d.ts +91 -0
- package/dist/compiled/glob/index.js +2011 -0
- package/dist/compiled/glob/license +21 -0
- package/dist/compiled/glob/minimatch/index.d.ts +204 -0
- package/dist/compiled/glob/package.json +1 -0
- package/dist/compiled/globby/index.d.ts +186 -0
- package/dist/compiled/globby/index.js +690 -0
- package/dist/compiled/globby/license +9 -0
- package/dist/compiled/globby/package.json +1 -0
- package/dist/compiled/gzip-size/index.d.ts +96 -0
- package/dist/compiled/gzip-size/index.js +157 -0
- package/dist/compiled/gzip-size/license +9 -0
- package/dist/compiled/gzip-size/package.json +1 -0
- package/dist/compiled/import-lazy/index.d.ts +26 -0
- package/dist/compiled/import-lazy/index.js +45 -0
- package/dist/compiled/import-lazy/license +9 -0
- package/dist/compiled/import-lazy/package.json +1 -0
- package/dist/compiled/inquirer/index.d.ts +997 -0
- package/dist/compiled/inquirer/index.js +20167 -0
- package/dist/compiled/inquirer/index.js.LICENSE.txt +7 -0
- package/dist/compiled/inquirer/lib/objects/choice.d.ts +65 -0
- package/dist/compiled/inquirer/lib/objects/choices.d.ts +206 -0
- package/dist/compiled/inquirer/lib/objects/separator.d.ts +37 -0
- package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +37 -0
- package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +65 -0
- package/dist/compiled/inquirer/lib/ui/prompt.d.ts +104 -0
- package/dist/compiled/inquirer/license +22 -0
- package/dist/compiled/inquirer/package.json +1 -0
- package/dist/compiled/inquirer/through/index.d.ts +25 -0
- package/dist/compiled/js-yaml/index.d.ts +154 -0
- package/dist/compiled/js-yaml/index.js +2191 -0
- package/dist/compiled/js-yaml/index.mjs +2167 -0
- package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -0
- package/dist/compiled/js-yaml/license +21 -0
- package/dist/compiled/js-yaml/package.json +1 -0
- package/dist/compiled/json5/index.js +983 -0
- package/dist/compiled/json5/lib/index.d.ts +4 -0
- package/dist/compiled/json5/lib/parse.d.ts +15 -0
- package/dist/compiled/json5/lib/stringify.d.ts +89 -0
- package/dist/compiled/json5/package.json +1 -0
- package/dist/compiled/lodash/common/array.d.ts +2126 -0
- package/dist/compiled/lodash/common/collection.d.ts +1930 -0
- package/dist/compiled/lodash/common/common.d.ts +280 -0
- package/dist/compiled/lodash/common/date.d.ts +23 -0
- package/dist/compiled/lodash/common/function.d.ts +1446 -0
- package/dist/compiled/lodash/common/lang.d.ts +1693 -0
- package/dist/compiled/lodash/common/math.d.ts +405 -0
- package/dist/compiled/lodash/common/number.d.ts +131 -0
- package/dist/compiled/lodash/common/object.d.ts +2519 -0
- package/dist/compiled/lodash/common/seq.d.ts +210 -0
- package/dist/compiled/lodash/common/string.d.ts +788 -0
- package/dist/compiled/lodash/common/util.d.ts +1220 -0
- package/dist/compiled/lodash/index.d.ts +46 -0
- package/dist/compiled/lodash/index.js +1 -0
- package/dist/compiled/lodash/index.mjs +1 -0
- package/dist/compiled/lodash/license +47 -0
- package/dist/compiled/lodash/package.json +1 -0
- package/dist/compiled/mime-types/index.d.ts +14 -0
- package/dist/compiled/mime-types/index.js +116 -0
- package/dist/compiled/mime-types/index.js.LICENSE.txt +13 -0
- package/dist/compiled/mime-types/license +23 -0
- package/dist/compiled/mime-types/package.json +1 -0
- package/dist/compiled/minimist/index.d.ts +95 -0
- package/dist/compiled/minimist/index.js +202 -0
- package/dist/compiled/minimist/license +18 -0
- package/dist/compiled/minimist/package.json +1 -0
- package/dist/compiled/nanoid/index.d.ts +91 -0
- package/dist/compiled/nanoid/index.js +83 -0
- package/dist/compiled/nanoid/index.mjs +69 -0
- package/dist/compiled/nanoid/license +20 -0
- package/dist/compiled/nanoid/package.json +1 -0
- package/dist/compiled/ora/cli-spinners/index.d.ts +125 -0
- package/dist/compiled/ora/index.d.ts +277 -0
- package/dist/compiled/ora/index.js +3936 -0
- package/dist/compiled/ora/index.js.LICENSE.txt +1 -0
- package/dist/compiled/ora/license +9 -0
- package/dist/compiled/ora/package.json +1 -0
- package/dist/compiled/pkg-up/index.d.ts +48 -0
- package/dist/compiled/pkg-up/index.js +15 -0
- package/dist/compiled/pkg-up/license +9 -0
- package/dist/compiled/pkg-up/package.json +1 -0
- package/dist/compiled/semver/classes/comparator.d.ts +17 -0
- package/dist/compiled/semver/classes/range.d.ts +21 -0
- package/dist/compiled/semver/classes/semver.d.ts +62 -0
- package/dist/compiled/semver/functions/clean.d.ts +8 -0
- package/dist/compiled/semver/functions/cmp.d.ts +16 -0
- package/dist/compiled/semver/functions/coerce.d.ts +12 -0
- package/dist/compiled/semver/functions/compare-build.d.ts +16 -0
- package/dist/compiled/semver/functions/compare-loose.d.ts +5 -0
- package/dist/compiled/semver/functions/compare.d.ts +20 -0
- package/dist/compiled/semver/functions/diff.d.ts +13 -0
- package/dist/compiled/semver/functions/eq.d.ts +9 -0
- package/dist/compiled/semver/functions/gt.d.ts +9 -0
- package/dist/compiled/semver/functions/gte.d.ts +9 -0
- package/dist/compiled/semver/functions/inc.d.ts +15 -0
- package/dist/compiled/semver/functions/lt.d.ts +9 -0
- package/dist/compiled/semver/functions/lte.d.ts +8 -0
- package/dist/compiled/semver/functions/major.d.ts +9 -0
- package/dist/compiled/semver/functions/minor.d.ts +9 -0
- package/dist/compiled/semver/functions/neq.d.ts +9 -0
- package/dist/compiled/semver/functions/parse.d.ts +12 -0
- package/dist/compiled/semver/functions/patch.d.ts +9 -0
- package/dist/compiled/semver/functions/prerelease.d.ts +12 -0
- package/dist/compiled/semver/functions/rcompare.d.ts +15 -0
- package/dist/compiled/semver/functions/rsort.d.ts +9 -0
- package/dist/compiled/semver/functions/satisfies.d.ts +14 -0
- package/dist/compiled/semver/functions/sort.d.ts +9 -0
- package/dist/compiled/semver/functions/valid.d.ts +11 -0
- package/dist/compiled/semver/index.d.ts +133 -0
- package/dist/compiled/semver/index.js +1779 -0
- package/dist/compiled/semver/internals/identifiers.d.ts +13 -0
- package/dist/compiled/semver/license +15 -0
- package/dist/compiled/semver/package.json +1 -0
- package/dist/compiled/semver/ranges/gtr.d.ts +14 -0
- package/dist/compiled/semver/ranges/intersects.d.ts +13 -0
- package/dist/compiled/semver/ranges/ltr.d.ts +14 -0
- package/dist/compiled/semver/ranges/max-satisfying.d.ts +14 -0
- package/dist/compiled/semver/ranges/min-satisfying.d.ts +14 -0
- package/dist/compiled/semver/ranges/min-version.d.ts +10 -0
- package/dist/compiled/semver/ranges/outside.d.ts +15 -0
- package/dist/compiled/semver/ranges/simplify.d.ts +14 -0
- package/dist/compiled/semver/ranges/subset.d.ts +13 -0
- package/dist/compiled/semver/ranges/to-comparators.d.ts +9 -0
- package/dist/compiled/semver/ranges/valid.d.ts +12 -0
- package/dist/compiled/signale/index.d.ts +162 -0
- package/dist/compiled/signale/index.js +1704 -0
- package/dist/compiled/signale/package.json +1 -0
- package/dist/compiled/slash/index.d.ts +25 -0
- package/dist/compiled/slash/index.js +32 -0
- package/dist/compiled/slash/license +9 -0
- package/dist/compiled/slash/package.json +1 -0
- package/dist/compiled/strip-ansi/index.d.ts +17 -0
- package/dist/compiled/strip-ansi/index.js +34 -0
- package/dist/compiled/strip-ansi/license +9 -0
- package/dist/compiled/strip-ansi/package.json +1 -0
- package/dist/compiled/tsconfig-paths/index.js +629 -0
- package/dist/compiled/tsconfig-paths/index.mjs +2 -0
- package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +33 -0
- package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +34 -0
- package/dist/compiled/tsconfig-paths/lib/index.d.ts +5 -0
- package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
- package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +21 -0
- package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
- package/dist/compiled/tsconfig-paths/lib/register.d.ts +12 -0
- package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +15 -0
- package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
- package/dist/compiled/tsconfig-paths/license +21 -0
- package/dist/compiled/tsconfig-paths/package.json +1 -0
- package/dist/compiled/upath/index.js +135 -0
- package/dist/compiled/upath/license +22 -0
- package/dist/compiled/upath/package.json +1 -0
- package/dist/compiled/upath/upath.d.ts +241 -0
- package/dist/compiled/url-join/index.d.ts +17 -0
- package/dist/compiled/url-join/index.js +61 -0
- package/dist/compiled/url-join/license +21 -0
- package/dist/compiled/url-join/package.json +1 -0
- package/dist/compiled/webpack-chain/index.js +1475 -0
- package/dist/compiled/webpack-chain/license +373 -0
- package/dist/compiled/webpack-chain/package.json +1 -0
- package/dist/compiled/webpack-chain/types/index.d.ts +599 -0
- package/dist/esm/cli/alias.mjs +31 -0
- package/dist/esm/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm/cli/commands.mjs +23 -0
- package/dist/esm/cli/common.mjs +9 -0
- package/dist/esm/cli/config.mjs +5 -0
- package/dist/esm/cli/constants.mjs +30 -0
- package/dist/esm/cli/ensure.mjs +9 -0
- package/dist/esm/cli/fs.mjs +9 -0
- package/dist/esm/cli/get/config.mjs +14 -0
- package/dist/esm/cli/get/data.mjs +49 -0
- package/dist/esm/cli/get/index.mjs +18 -0
- package/dist/esm/cli/index.mjs +23 -0
- package/dist/esm/cli/is/config.mjs +37 -0
- package/dist/esm/cli/is/env.mjs +6 -0
- package/dist/esm/cli/is/index.mjs +4 -0
- package/dist/esm/cli/is/project.mjs +75 -0
- package/dist/esm/cli/is/type.mjs +26 -0
- package/dist/esm/cli/logger.mjs +1 -0
- package/dist/esm/cli/modulePath.mjs +33 -0
- package/dist/esm/cli/monorepo.mjs +50 -0
- package/dist/esm/cli/package.mjs +51 -0
- package/dist/esm/cli/path.mjs +35 -0
- package/dist/esm/cli/port.mjs +35 -0
- package/dist/esm/cli/prettyInstructions.mjs +70 -0
- package/dist/esm/cli/require.mjs +79 -0
- package/dist/esm/cli/route.mjs +36 -0
- package/dist/esm/cli/runtimeExports.mjs +42 -0
- package/dist/esm/cli/tsconfig.mjs +7 -0
- package/dist/esm/cli/version.mjs +24 -0
- package/dist/esm/cli/watch.mjs +40 -0
- package/dist/esm/compiled.mjs +45 -0
- package/dist/esm/import.mjs +9 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/rslib-runtime.mjs +12 -0
- package/dist/esm/universal/constants.mjs +14 -0
- package/dist/esm/universal/index.mjs +1 -0
- package/dist/esm/universal/path.mjs +2 -0
- package/dist/esm/universal/pluginDagSort.mjs +41 -0
- package/dist/esm-node/cli/alias.mjs +32 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +17 -0
- package/dist/esm-node/cli/commands.mjs +24 -0
- package/dist/esm-node/cli/common.mjs +10 -0
- package/dist/esm-node/cli/config.mjs +6 -0
- package/dist/esm-node/cli/constants.mjs +31 -0
- package/dist/esm-node/cli/ensure.mjs +10 -0
- package/dist/esm-node/cli/fs.mjs +10 -0
- package/dist/esm-node/cli/get/config.mjs +15 -0
- package/dist/esm-node/cli/get/data.mjs +50 -0
- package/dist/esm-node/cli/get/index.mjs +19 -0
- package/dist/esm-node/cli/index.mjs +24 -0
- package/dist/esm-node/cli/is/config.mjs +38 -0
- package/dist/esm-node/cli/is/env.mjs +7 -0
- package/dist/esm-node/cli/is/index.mjs +5 -0
- package/dist/esm-node/cli/is/project.mjs +76 -0
- package/dist/esm-node/cli/is/type.mjs +27 -0
- package/dist/esm-node/cli/logger.mjs +2 -0
- package/dist/esm-node/cli/modulePath.mjs +34 -0
- package/dist/esm-node/cli/monorepo.mjs +51 -0
- package/dist/esm-node/cli/package.mjs +52 -0
- package/dist/esm-node/cli/path.mjs +36 -0
- package/dist/esm-node/cli/port.mjs +36 -0
- package/dist/esm-node/cli/prettyInstructions.mjs +71 -0
- package/dist/esm-node/cli/require.mjs +80 -0
- package/dist/esm-node/cli/route.mjs +37 -0
- package/dist/esm-node/cli/runtimeExports.mjs +43 -0
- package/dist/esm-node/cli/tsconfig.mjs +8 -0
- package/dist/esm-node/cli/version.mjs +25 -0
- package/dist/esm-node/cli/watch.mjs +41 -0
- package/dist/esm-node/compiled.mjs +45 -0
- package/dist/esm-node/import.mjs +10 -0
- package/dist/esm-node/index.mjs +4 -0
- package/dist/esm-node/universal/constants.mjs +15 -0
- package/dist/esm-node/universal/index.mjs +2 -0
- package/dist/esm-node/universal/path.mjs +3 -0
- package/dist/esm-node/universal/pluginDagSort.mjs +42 -0
- package/dist/types/cli/alias.d.ts +20 -0
- package/dist/types/cli/applyOptionsChain.d.ts +3 -0
- package/dist/types/cli/commands.d.ts +8 -0
- package/dist/types/cli/common.d.ts +9 -0
- package/dist/types/cli/config.d.ts +4 -0
- package/dist/types/cli/constants.d.ts +55 -0
- package/dist/types/cli/ensure.d.ts +8 -0
- package/dist/types/cli/fs.d.ts +7 -0
- package/dist/types/cli/get/config.d.ts +1 -0
- package/dist/types/cli/get/data.d.ts +6 -0
- package/dist/types/cli/get/index.d.ts +11 -0
- package/dist/types/cli/index.d.ts +23 -0
- package/dist/types/cli/is/config.d.ts +22 -0
- package/dist/types/cli/is/env.d.ts +8 -0
- package/dist/types/cli/is/index.d.ts +4 -0
- package/dist/types/cli/is/project.d.ts +39 -0
- package/dist/types/cli/is/type.d.ts +15 -0
- package/dist/types/cli/logger.d.ts +1 -0
- package/dist/types/cli/modulePath.d.ts +5 -0
- package/dist/types/cli/monorepo.d.ts +9 -0
- package/dist/types/cli/package.d.ts +5 -0
- package/dist/types/cli/path.d.ts +11 -0
- package/dist/types/cli/port.d.ts +12 -0
- package/dist/types/cli/prettyInstructions.d.ts +9 -0
- package/dist/types/cli/require.d.ts +9 -0
- package/dist/types/cli/route.d.ts +4 -0
- package/dist/types/cli/runtimeExports.d.ts +5 -0
- package/dist/types/cli/tsconfig.d.ts +1 -0
- package/dist/types/cli/version.d.ts +4 -0
- package/dist/types/cli/watch.d.ts +8 -0
- package/dist/types/compiled.d.ts +37 -0
- package/dist/types/import.d.ts +5 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/universal/constants.d.ts +47 -0
- package/dist/types/universal/index.d.ts +1 -0
- package/dist/types/universal/path.d.ts +1 -0
- package/dist/types/universal/pluginDagSort.d.ts +1 -0
- package/package.json +174 -0
- package/rslib.config.mts +162 -0
- package/rstest.config.mts +8 -0
|
@@ -0,0 +1,2011 @@
|
|
|
1
|
+
(()=>{
|
|
2
|
+
var t = {
|
|
3
|
+
155: (t)=>{
|
|
4
|
+
"use strict";
|
|
5
|
+
t.exports = balanced;
|
|
6
|
+
function balanced(t, e, r) {
|
|
7
|
+
if (t instanceof RegExp) t = maybeMatch(t, r);
|
|
8
|
+
if (e instanceof RegExp) e = maybeMatch(e, r);
|
|
9
|
+
var i = range(t, e, r);
|
|
10
|
+
return i && {
|
|
11
|
+
start: i[0],
|
|
12
|
+
end: i[1],
|
|
13
|
+
pre: r.slice(0, i[0]),
|
|
14
|
+
body: r.slice(i[0] + t.length, i[1]),
|
|
15
|
+
post: r.slice(i[1] + e.length)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function maybeMatch(t, e) {
|
|
19
|
+
var r = e.match(t);
|
|
20
|
+
return r ? r[0] : null;
|
|
21
|
+
}
|
|
22
|
+
balanced.range = range;
|
|
23
|
+
function range(t, e, r) {
|
|
24
|
+
var i, a, n, s, o;
|
|
25
|
+
var c = r.indexOf(t);
|
|
26
|
+
var h = r.indexOf(e, c + 1);
|
|
27
|
+
var l = c;
|
|
28
|
+
if (c >= 0 && h > 0) {
|
|
29
|
+
if (t === e) return [
|
|
30
|
+
c,
|
|
31
|
+
h
|
|
32
|
+
];
|
|
33
|
+
i = [];
|
|
34
|
+
n = r.length;
|
|
35
|
+
while(l >= 0 && !o){
|
|
36
|
+
if (l == c) {
|
|
37
|
+
i.push(l);
|
|
38
|
+
c = r.indexOf(t, l + 1);
|
|
39
|
+
} else if (1 == i.length) o = [
|
|
40
|
+
i.pop(),
|
|
41
|
+
h
|
|
42
|
+
];
|
|
43
|
+
else {
|
|
44
|
+
a = i.pop();
|
|
45
|
+
if (a < n) {
|
|
46
|
+
n = a;
|
|
47
|
+
s = h;
|
|
48
|
+
}
|
|
49
|
+
h = r.indexOf(e, l + 1);
|
|
50
|
+
}
|
|
51
|
+
l = c < h && c >= 0 ? c : h;
|
|
52
|
+
}
|
|
53
|
+
if (i.length) o = [
|
|
54
|
+
n,
|
|
55
|
+
s
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
return o;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
847: (t, e, r)=>{
|
|
62
|
+
var i = r(62);
|
|
63
|
+
var a = r(155);
|
|
64
|
+
t.exports = expandTop;
|
|
65
|
+
var n = "\0SLASH" + Math.random() + "\0";
|
|
66
|
+
var s = "\0OPEN" + Math.random() + "\0";
|
|
67
|
+
var o = "\0CLOSE" + Math.random() + "\0";
|
|
68
|
+
var c = "\0COMMA" + Math.random() + "\0";
|
|
69
|
+
var h = "\0PERIOD" + Math.random() + "\0";
|
|
70
|
+
function numeric(t) {
|
|
71
|
+
return parseInt(t, 10) == t ? parseInt(t, 10) : t.charCodeAt(0);
|
|
72
|
+
}
|
|
73
|
+
function escapeBraces(t) {
|
|
74
|
+
return t.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(h);
|
|
75
|
+
}
|
|
76
|
+
function unescapeBraces(t) {
|
|
77
|
+
return t.split(n).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(h).join(".");
|
|
78
|
+
}
|
|
79
|
+
function parseCommaParts(t) {
|
|
80
|
+
if (!t) return [
|
|
81
|
+
""
|
|
82
|
+
];
|
|
83
|
+
var e = [];
|
|
84
|
+
var r = a("{", "}", t);
|
|
85
|
+
if (!r) return t.split(",");
|
|
86
|
+
var i = r.pre;
|
|
87
|
+
var n = r.body;
|
|
88
|
+
var s = r.post;
|
|
89
|
+
var o = i.split(",");
|
|
90
|
+
o[o.length - 1] += "{" + n + "}";
|
|
91
|
+
var c = parseCommaParts(s);
|
|
92
|
+
if (s.length) {
|
|
93
|
+
o[o.length - 1] += c.shift();
|
|
94
|
+
o.push.apply(o, c);
|
|
95
|
+
}
|
|
96
|
+
e.push.apply(e, o);
|
|
97
|
+
return e;
|
|
98
|
+
}
|
|
99
|
+
function expandTop(t) {
|
|
100
|
+
if (!t) return [];
|
|
101
|
+
if ("{}" === t.substr(0, 2)) t = "\\{\\}" + t.substr(2);
|
|
102
|
+
return expand(escapeBraces(t), true).map(unescapeBraces);
|
|
103
|
+
}
|
|
104
|
+
function embrace(t) {
|
|
105
|
+
return "{" + t + "}";
|
|
106
|
+
}
|
|
107
|
+
function isPadded(t) {
|
|
108
|
+
return /^-?0\d/.test(t);
|
|
109
|
+
}
|
|
110
|
+
function lte(t, e) {
|
|
111
|
+
return t <= e;
|
|
112
|
+
}
|
|
113
|
+
function gte(t, e) {
|
|
114
|
+
return t >= e;
|
|
115
|
+
}
|
|
116
|
+
function expand(t, e) {
|
|
117
|
+
var r = [];
|
|
118
|
+
var n = a("{", "}", t);
|
|
119
|
+
if (!n || /\$$/.test(n.pre)) return [
|
|
120
|
+
t
|
|
121
|
+
];
|
|
122
|
+
var s = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);
|
|
123
|
+
var c = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);
|
|
124
|
+
var h = s || c;
|
|
125
|
+
var l = n.body.indexOf(",") >= 0;
|
|
126
|
+
if (!h && !l) {
|
|
127
|
+
if (n.post.match(/,.*\}/)) {
|
|
128
|
+
t = n.pre + "{" + n.body + o + n.post;
|
|
129
|
+
return expand(t);
|
|
130
|
+
}
|
|
131
|
+
return [
|
|
132
|
+
t
|
|
133
|
+
];
|
|
134
|
+
}
|
|
135
|
+
var u;
|
|
136
|
+
if (h) u = n.body.split(/\.\./);
|
|
137
|
+
else {
|
|
138
|
+
u = parseCommaParts(n.body);
|
|
139
|
+
if (1 === u.length) {
|
|
140
|
+
u = expand(u[0], false).map(embrace);
|
|
141
|
+
if (1 === u.length) {
|
|
142
|
+
var p = n.post.length ? expand(n.post, false) : [
|
|
143
|
+
""
|
|
144
|
+
];
|
|
145
|
+
return p.map(function(t) {
|
|
146
|
+
return n.pre + u[0] + t;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
var v = n.pre;
|
|
152
|
+
var p = n.post.length ? expand(n.post, false) : [
|
|
153
|
+
""
|
|
154
|
+
];
|
|
155
|
+
var d;
|
|
156
|
+
if (h) {
|
|
157
|
+
var m = numeric(u[0]);
|
|
158
|
+
var b = numeric(u[1]);
|
|
159
|
+
var g = Math.max(u[0].length, u[1].length);
|
|
160
|
+
var y = 3 == u.length ? Math.abs(numeric(u[2])) : 1;
|
|
161
|
+
var _ = lte;
|
|
162
|
+
var w = b < m;
|
|
163
|
+
if (w) {
|
|
164
|
+
y *= -1;
|
|
165
|
+
_ = gte;
|
|
166
|
+
}
|
|
167
|
+
var k = u.some(isPadded);
|
|
168
|
+
d = [];
|
|
169
|
+
for(var S = m; _(S, b); S += y){
|
|
170
|
+
var E;
|
|
171
|
+
if (c) {
|
|
172
|
+
E = String.fromCharCode(S);
|
|
173
|
+
if ("\\" === E) E = "";
|
|
174
|
+
} else {
|
|
175
|
+
E = String(S);
|
|
176
|
+
if (k) {
|
|
177
|
+
var x = g - E.length;
|
|
178
|
+
if (x > 0) {
|
|
179
|
+
var O = new Array(x + 1).join("0");
|
|
180
|
+
E = S < 0 ? "-" + O + E.slice(1) : O + E;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
d.push(E);
|
|
185
|
+
}
|
|
186
|
+
} else d = i(u, function(t) {
|
|
187
|
+
return expand(t, false);
|
|
188
|
+
});
|
|
189
|
+
for(var A = 0; A < d.length; A++)for(var G = 0; G < p.length; G++){
|
|
190
|
+
var j = v + d[A] + p[G];
|
|
191
|
+
if (!e || h || j) r.push(j);
|
|
192
|
+
}
|
|
193
|
+
return r;
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
62: (t)=>{
|
|
197
|
+
t.exports = function(t, r) {
|
|
198
|
+
var i = [];
|
|
199
|
+
for(var a = 0; a < t.length; a++){
|
|
200
|
+
var n = r(t[a], a);
|
|
201
|
+
if (e(n)) i.push.apply(i, n);
|
|
202
|
+
else i.push(n);
|
|
203
|
+
}
|
|
204
|
+
return i;
|
|
205
|
+
};
|
|
206
|
+
var e = Array.isArray || function(t) {
|
|
207
|
+
return "[object Array]" === Object.prototype.toString.call(t);
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
737: (t, e, r)=>{
|
|
211
|
+
t.exports = realpath;
|
|
212
|
+
realpath.realpath = realpath;
|
|
213
|
+
realpath.sync = realpathSync;
|
|
214
|
+
realpath.realpathSync = realpathSync;
|
|
215
|
+
realpath.monkeypatch = monkeypatch;
|
|
216
|
+
realpath.unmonkeypatch = unmonkeypatch;
|
|
217
|
+
var i = r(147);
|
|
218
|
+
var a = i.realpath;
|
|
219
|
+
var n = i.realpathSync;
|
|
220
|
+
var s = process.version;
|
|
221
|
+
var o = /^v[0-5]\./.test(s);
|
|
222
|
+
var c = r(613);
|
|
223
|
+
function newError(t) {
|
|
224
|
+
return t && "realpath" === t.syscall && ("ELOOP" === t.code || "ENOMEM" === t.code || "ENAMETOOLONG" === t.code);
|
|
225
|
+
}
|
|
226
|
+
function realpath(t, e, r) {
|
|
227
|
+
if (o) return a(t, e, r);
|
|
228
|
+
if ("function" == typeof e) {
|
|
229
|
+
r = e;
|
|
230
|
+
e = null;
|
|
231
|
+
}
|
|
232
|
+
a(t, e, function(i, a) {
|
|
233
|
+
if (newError(i)) c.realpath(t, e, r);
|
|
234
|
+
else r(i, a);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
function realpathSync(t, e) {
|
|
238
|
+
if (o) return n(t, e);
|
|
239
|
+
try {
|
|
240
|
+
return n(t, e);
|
|
241
|
+
} catch (r) {
|
|
242
|
+
if (newError(r)) return c.realpathSync(t, e);
|
|
243
|
+
throw r;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function monkeypatch() {
|
|
247
|
+
i.realpath = realpath;
|
|
248
|
+
i.realpathSync = realpathSync;
|
|
249
|
+
}
|
|
250
|
+
function unmonkeypatch() {
|
|
251
|
+
i.realpath = a;
|
|
252
|
+
i.realpathSync = n;
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
613: (t, e, r)=>{
|
|
256
|
+
var i = r(17);
|
|
257
|
+
var a = "win32" === process.platform;
|
|
258
|
+
var n = r(147);
|
|
259
|
+
var s = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
260
|
+
function rethrow() {
|
|
261
|
+
var t;
|
|
262
|
+
if (s) {
|
|
263
|
+
var e = new Error;
|
|
264
|
+
t = debugCallback;
|
|
265
|
+
} else t = missingCallback;
|
|
266
|
+
return t;
|
|
267
|
+
function debugCallback(t) {
|
|
268
|
+
if (t) {
|
|
269
|
+
e.message = t.message;
|
|
270
|
+
t = e;
|
|
271
|
+
missingCallback(t);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
function missingCallback(t) {
|
|
275
|
+
if (t) {
|
|
276
|
+
if (process.throwDeprecation) throw t;
|
|
277
|
+
else if (!process.noDeprecation) {
|
|
278
|
+
var e = "fs: missing callback " + (t.stack || t.message);
|
|
279
|
+
if (process.traceDeprecation) console.trace(e);
|
|
280
|
+
else console.error(e);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function maybeCallback(t) {
|
|
286
|
+
return "function" == typeof t ? t : rethrow();
|
|
287
|
+
}
|
|
288
|
+
i.normalize;
|
|
289
|
+
if (a) var c = /(.*?)(?:[\/\\]+|$)/g;
|
|
290
|
+
else var c = /(.*?)(?:[\/]+|$)/g;
|
|
291
|
+
if (a) var h = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
|
292
|
+
else var h = /^[\/]*/;
|
|
293
|
+
e.realpathSync = function(t, e) {
|
|
294
|
+
t = i.resolve(t);
|
|
295
|
+
if (e && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
|
|
296
|
+
var r = t, s = {}, o = {};
|
|
297
|
+
var l;
|
|
298
|
+
var u;
|
|
299
|
+
var p;
|
|
300
|
+
var v;
|
|
301
|
+
start();
|
|
302
|
+
function start() {
|
|
303
|
+
var e = h.exec(t);
|
|
304
|
+
l = e[0].length;
|
|
305
|
+
u = e[0];
|
|
306
|
+
p = e[0];
|
|
307
|
+
v = "";
|
|
308
|
+
if (a && !o[p]) {
|
|
309
|
+
n.lstatSync(p);
|
|
310
|
+
o[p] = true;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
while(l < t.length){
|
|
314
|
+
c.lastIndex = l;
|
|
315
|
+
var d = c.exec(t);
|
|
316
|
+
v = u;
|
|
317
|
+
u += d[0];
|
|
318
|
+
p = v + d[1];
|
|
319
|
+
l = c.lastIndex;
|
|
320
|
+
if (o[p] || e && e[p] === p) continue;
|
|
321
|
+
var m;
|
|
322
|
+
if (e && Object.prototype.hasOwnProperty.call(e, p)) m = e[p];
|
|
323
|
+
else {
|
|
324
|
+
var b = n.lstatSync(p);
|
|
325
|
+
if (!b.isSymbolicLink()) {
|
|
326
|
+
o[p] = true;
|
|
327
|
+
if (e) e[p] = p;
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
var g = null;
|
|
331
|
+
if (!a) {
|
|
332
|
+
var y = b.dev.toString(32) + ":" + b.ino.toString(32);
|
|
333
|
+
if (s.hasOwnProperty(y)) g = s[y];
|
|
334
|
+
}
|
|
335
|
+
if (null === g) {
|
|
336
|
+
n.statSync(p);
|
|
337
|
+
g = n.readlinkSync(p);
|
|
338
|
+
}
|
|
339
|
+
m = i.resolve(v, g);
|
|
340
|
+
if (e) e[p] = m;
|
|
341
|
+
if (!a) s[y] = g;
|
|
342
|
+
}
|
|
343
|
+
t = i.resolve(m, t.slice(l));
|
|
344
|
+
start();
|
|
345
|
+
}
|
|
346
|
+
if (e) e[r] = t;
|
|
347
|
+
return t;
|
|
348
|
+
};
|
|
349
|
+
e.realpath = function(t, e, r) {
|
|
350
|
+
if ("function" != typeof r) {
|
|
351
|
+
r = maybeCallback(e);
|
|
352
|
+
e = null;
|
|
353
|
+
}
|
|
354
|
+
t = i.resolve(t);
|
|
355
|
+
if (e && Object.prototype.hasOwnProperty.call(e, t)) return process.nextTick(r.bind(null, null, e[t]));
|
|
356
|
+
var s = t, o = {}, l = {};
|
|
357
|
+
var u;
|
|
358
|
+
var p;
|
|
359
|
+
var v;
|
|
360
|
+
var d;
|
|
361
|
+
start();
|
|
362
|
+
function start() {
|
|
363
|
+
var e = h.exec(t);
|
|
364
|
+
u = e[0].length;
|
|
365
|
+
p = e[0];
|
|
366
|
+
v = e[0];
|
|
367
|
+
d = "";
|
|
368
|
+
if (a && !l[v]) n.lstat(v, function(t) {
|
|
369
|
+
if (t) return r(t);
|
|
370
|
+
l[v] = true;
|
|
371
|
+
LOOP();
|
|
372
|
+
});
|
|
373
|
+
else process.nextTick(LOOP);
|
|
374
|
+
}
|
|
375
|
+
function LOOP() {
|
|
376
|
+
if (u >= t.length) {
|
|
377
|
+
if (e) e[s] = t;
|
|
378
|
+
return r(null, t);
|
|
379
|
+
}
|
|
380
|
+
c.lastIndex = u;
|
|
381
|
+
var i = c.exec(t);
|
|
382
|
+
d = p;
|
|
383
|
+
p += i[0];
|
|
384
|
+
v = d + i[1];
|
|
385
|
+
u = c.lastIndex;
|
|
386
|
+
if (l[v] || e && e[v] === v) return process.nextTick(LOOP);
|
|
387
|
+
if (e && Object.prototype.hasOwnProperty.call(e, v)) return gotResolvedLink(e[v]);
|
|
388
|
+
return n.lstat(v, gotStat);
|
|
389
|
+
}
|
|
390
|
+
function gotStat(t, i) {
|
|
391
|
+
if (t) return r(t);
|
|
392
|
+
if (!i.isSymbolicLink()) {
|
|
393
|
+
l[v] = true;
|
|
394
|
+
if (e) e[v] = v;
|
|
395
|
+
return process.nextTick(LOOP);
|
|
396
|
+
}
|
|
397
|
+
if (!a) {
|
|
398
|
+
var s = i.dev.toString(32) + ":" + i.ino.toString(32);
|
|
399
|
+
if (o.hasOwnProperty(s)) return gotTarget(null, o[s], v);
|
|
400
|
+
}
|
|
401
|
+
n.stat(v, function(t) {
|
|
402
|
+
if (t) return r(t);
|
|
403
|
+
n.readlink(v, function(t, e) {
|
|
404
|
+
if (!a) o[s] = e;
|
|
405
|
+
gotTarget(t, e);
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
function gotTarget(t, a, n) {
|
|
410
|
+
if (t) return r(t);
|
|
411
|
+
var s = i.resolve(d, a);
|
|
412
|
+
if (e) e[n] = s;
|
|
413
|
+
gotResolvedLink(s);
|
|
414
|
+
}
|
|
415
|
+
function gotResolvedLink(e) {
|
|
416
|
+
t = i.resolve(e, t.slice(u));
|
|
417
|
+
start();
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
},
|
|
421
|
+
875: (t, e, r)=>{
|
|
422
|
+
e.setopts = setopts;
|
|
423
|
+
e.ownProp = ownProp;
|
|
424
|
+
e.makeAbs = makeAbs;
|
|
425
|
+
e.finish = finish;
|
|
426
|
+
e.mark = mark;
|
|
427
|
+
e.isIgnored = isIgnored;
|
|
428
|
+
e.childrenIgnored = childrenIgnored;
|
|
429
|
+
function ownProp(t, e) {
|
|
430
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
|
431
|
+
}
|
|
432
|
+
var i = r(147);
|
|
433
|
+
var a = r(17);
|
|
434
|
+
var n = r(235);
|
|
435
|
+
var s = r(249);
|
|
436
|
+
var o = n.Minimatch;
|
|
437
|
+
function alphasort(t, e) {
|
|
438
|
+
return t.localeCompare(e, "en");
|
|
439
|
+
}
|
|
440
|
+
function setupIgnores(t, e) {
|
|
441
|
+
t.ignore = e.ignore || [];
|
|
442
|
+
if (!Array.isArray(t.ignore)) t.ignore = [
|
|
443
|
+
t.ignore
|
|
444
|
+
];
|
|
445
|
+
if (t.ignore.length) t.ignore = t.ignore.map(ignoreMap);
|
|
446
|
+
}
|
|
447
|
+
function ignoreMap(t) {
|
|
448
|
+
var e = null;
|
|
449
|
+
if ("/**" === t.slice(-3)) {
|
|
450
|
+
var r = t.replace(/(\/\*\*)+$/, "");
|
|
451
|
+
e = new o(r, {
|
|
452
|
+
dot: true
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
return {
|
|
456
|
+
matcher: new o(t, {
|
|
457
|
+
dot: true
|
|
458
|
+
}),
|
|
459
|
+
gmatcher: e
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
function setopts(t, e, r) {
|
|
463
|
+
if (!r) r = {};
|
|
464
|
+
if (r.matchBase && -1 === e.indexOf("/")) {
|
|
465
|
+
if (r.noglobstar) throw new Error("base matching requires globstar");
|
|
466
|
+
e = "**/" + e;
|
|
467
|
+
}
|
|
468
|
+
t.silent = !!r.silent;
|
|
469
|
+
t.pattern = e;
|
|
470
|
+
t.strict = false !== r.strict;
|
|
471
|
+
t.realpath = !!r.realpath;
|
|
472
|
+
t.realpathCache = r.realpathCache || Object.create(null);
|
|
473
|
+
t.follow = !!r.follow;
|
|
474
|
+
t.dot = !!r.dot;
|
|
475
|
+
t.mark = !!r.mark;
|
|
476
|
+
t.nodir = !!r.nodir;
|
|
477
|
+
if (t.nodir) t.mark = true;
|
|
478
|
+
t.sync = !!r.sync;
|
|
479
|
+
t.nounique = !!r.nounique;
|
|
480
|
+
t.nonull = !!r.nonull;
|
|
481
|
+
t.nosort = !!r.nosort;
|
|
482
|
+
t.nocase = !!r.nocase;
|
|
483
|
+
t.stat = !!r.stat;
|
|
484
|
+
t.noprocess = !!r.noprocess;
|
|
485
|
+
t.absolute = !!r.absolute;
|
|
486
|
+
t.fs = r.fs || i;
|
|
487
|
+
t.maxLength = r.maxLength || 1 / 0;
|
|
488
|
+
t.cache = r.cache || Object.create(null);
|
|
489
|
+
t.statCache = r.statCache || Object.create(null);
|
|
490
|
+
t.symlinks = r.symlinks || Object.create(null);
|
|
491
|
+
setupIgnores(t, r);
|
|
492
|
+
t.changedCwd = false;
|
|
493
|
+
var n = process.cwd();
|
|
494
|
+
if (ownProp(r, "cwd")) {
|
|
495
|
+
t.cwd = a.resolve(r.cwd);
|
|
496
|
+
t.changedCwd = t.cwd !== n;
|
|
497
|
+
} else t.cwd = n;
|
|
498
|
+
t.root = r.root || a.resolve(t.cwd, "/");
|
|
499
|
+
t.root = a.resolve(t.root);
|
|
500
|
+
if ("win32" === process.platform) t.root = t.root.replace(/\\/g, "/");
|
|
501
|
+
t.cwdAbs = s(t.cwd) ? t.cwd : makeAbs(t, t.cwd);
|
|
502
|
+
if ("win32" === process.platform) t.cwdAbs = t.cwdAbs.replace(/\\/g, "/");
|
|
503
|
+
t.nomount = !!r.nomount;
|
|
504
|
+
r.nonegate = true;
|
|
505
|
+
r.nocomment = true;
|
|
506
|
+
t.minimatch = new o(e, r);
|
|
507
|
+
t.options = t.minimatch.options;
|
|
508
|
+
}
|
|
509
|
+
function finish(t) {
|
|
510
|
+
var e = t.nounique;
|
|
511
|
+
var r = e ? [] : Object.create(null);
|
|
512
|
+
for(var i = 0, a = t.matches.length; i < a; i++){
|
|
513
|
+
var n = t.matches[i];
|
|
514
|
+
if (n && 0 !== Object.keys(n).length) {
|
|
515
|
+
var o = Object.keys(n);
|
|
516
|
+
if (e) r.push.apply(r, o);
|
|
517
|
+
else o.forEach(function(t) {
|
|
518
|
+
r[t] = true;
|
|
519
|
+
});
|
|
520
|
+
} else if (t.nonull) {
|
|
521
|
+
var s = t.minimatch.globSet[i];
|
|
522
|
+
if (e) r.push(s);
|
|
523
|
+
else r[s] = true;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
if (!e) r = Object.keys(r);
|
|
527
|
+
if (!t.nosort) r = r.sort(alphasort);
|
|
528
|
+
if (t.mark) {
|
|
529
|
+
for(var i = 0; i < r.length; i++)r[i] = t._mark(r[i]);
|
|
530
|
+
if (t.nodir) r = r.filter(function(e) {
|
|
531
|
+
var r = !/\/$/.test(e);
|
|
532
|
+
var i = t.cache[e] || t.cache[makeAbs(t, e)];
|
|
533
|
+
if (r && i) r = "DIR" !== i && !Array.isArray(i);
|
|
534
|
+
return r;
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
if (t.ignore.length) r = r.filter(function(e) {
|
|
538
|
+
return !isIgnored(t, e);
|
|
539
|
+
});
|
|
540
|
+
t.found = r;
|
|
541
|
+
}
|
|
542
|
+
function mark(t, e) {
|
|
543
|
+
var r = makeAbs(t, e);
|
|
544
|
+
var i = t.cache[r];
|
|
545
|
+
var a = e;
|
|
546
|
+
if (i) {
|
|
547
|
+
var n = "DIR" === i || Array.isArray(i);
|
|
548
|
+
var s = "/" === e.slice(-1);
|
|
549
|
+
if (n && !s) a += "/";
|
|
550
|
+
else if (!n && s) a = a.slice(0, -1);
|
|
551
|
+
if (a !== e) {
|
|
552
|
+
var o = makeAbs(t, a);
|
|
553
|
+
t.statCache[o] = t.statCache[r];
|
|
554
|
+
t.cache[o] = t.cache[r];
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return a;
|
|
558
|
+
}
|
|
559
|
+
function makeAbs(t, e) {
|
|
560
|
+
var r = e;
|
|
561
|
+
r = "/" === e.charAt(0) ? a.join(t.root, e) : s(e) || "" === e ? e : t.changedCwd ? a.resolve(t.cwd, e) : a.resolve(e);
|
|
562
|
+
if ("win32" === process.platform) r = r.replace(/\\/g, "/");
|
|
563
|
+
return r;
|
|
564
|
+
}
|
|
565
|
+
function isIgnored(t, e) {
|
|
566
|
+
if (!t.ignore.length) return false;
|
|
567
|
+
return t.ignore.some(function(t) {
|
|
568
|
+
return t.matcher.match(e) || !!(t.gmatcher && t.gmatcher.match(e));
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
function childrenIgnored(t, e) {
|
|
572
|
+
if (!t.ignore.length) return false;
|
|
573
|
+
return t.ignore.some(function(t) {
|
|
574
|
+
return !!(t.gmatcher && t.gmatcher.match(e));
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
978: (t, e, r)=>{
|
|
579
|
+
t.exports = glob;
|
|
580
|
+
var i = r(737);
|
|
581
|
+
var a = r(235);
|
|
582
|
+
a.Minimatch;
|
|
583
|
+
var s = r(315);
|
|
584
|
+
var o = r(361).EventEmitter;
|
|
585
|
+
var c = r(17);
|
|
586
|
+
var h = r(491);
|
|
587
|
+
var l = r(249);
|
|
588
|
+
var u = r(19);
|
|
589
|
+
var p = r(875);
|
|
590
|
+
var v = p.setopts;
|
|
591
|
+
var d = p.ownProp;
|
|
592
|
+
var m = r(900);
|
|
593
|
+
r(837);
|
|
594
|
+
var g = p.childrenIgnored;
|
|
595
|
+
var y = p.isIgnored;
|
|
596
|
+
var _ = r(556);
|
|
597
|
+
function glob(t, e, r) {
|
|
598
|
+
if ("function" == typeof e) r = e, e = {};
|
|
599
|
+
if (!e) e = {};
|
|
600
|
+
if (e.sync) {
|
|
601
|
+
if (r) throw new TypeError("callback provided to sync glob");
|
|
602
|
+
return u(t, e);
|
|
603
|
+
}
|
|
604
|
+
return new Glob(t, e, r);
|
|
605
|
+
}
|
|
606
|
+
glob.sync = u;
|
|
607
|
+
var w = glob.GlobSync = u.GlobSync;
|
|
608
|
+
glob.glob = glob;
|
|
609
|
+
function extend(t, e) {
|
|
610
|
+
if (null === e || "object" != typeof e) return t;
|
|
611
|
+
var r = Object.keys(e);
|
|
612
|
+
var i = r.length;
|
|
613
|
+
while(i--)t[r[i]] = e[r[i]];
|
|
614
|
+
return t;
|
|
615
|
+
}
|
|
616
|
+
glob.hasMagic = function(t, e) {
|
|
617
|
+
var r = extend({}, e);
|
|
618
|
+
r.noprocess = true;
|
|
619
|
+
var i = new Glob(t, r);
|
|
620
|
+
var a = i.minimatch.set;
|
|
621
|
+
if (!t) return false;
|
|
622
|
+
if (a.length > 1) return true;
|
|
623
|
+
for(var n = 0; n < a[0].length; n++)if ("string" != typeof a[0][n]) return true;
|
|
624
|
+
return false;
|
|
625
|
+
};
|
|
626
|
+
glob.Glob = Glob;
|
|
627
|
+
s(Glob, o);
|
|
628
|
+
function Glob(t, e, r) {
|
|
629
|
+
if ("function" == typeof e) {
|
|
630
|
+
r = e;
|
|
631
|
+
e = null;
|
|
632
|
+
}
|
|
633
|
+
if (e && e.sync) {
|
|
634
|
+
if (r) throw new TypeError("callback provided to sync glob");
|
|
635
|
+
return new w(t, e);
|
|
636
|
+
}
|
|
637
|
+
if (!(this instanceof Glob)) return new Glob(t, e, r);
|
|
638
|
+
v(this, t, e);
|
|
639
|
+
this._didRealPath = false;
|
|
640
|
+
var i = this.minimatch.set.length;
|
|
641
|
+
this.matches = new Array(i);
|
|
642
|
+
if ("function" == typeof r) {
|
|
643
|
+
r = _(r);
|
|
644
|
+
this.on("error", r);
|
|
645
|
+
this.on("end", function(t) {
|
|
646
|
+
r(null, t);
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
var a = this;
|
|
650
|
+
this._processing = 0;
|
|
651
|
+
this._emitQueue = [];
|
|
652
|
+
this._processQueue = [];
|
|
653
|
+
this.paused = false;
|
|
654
|
+
if (this.noprocess) return this;
|
|
655
|
+
if (0 === i) return done();
|
|
656
|
+
var n = true;
|
|
657
|
+
for(var s = 0; s < i; s++)this._process(this.minimatch.set[s], s, false, done);
|
|
658
|
+
n = false;
|
|
659
|
+
function done() {
|
|
660
|
+
--a._processing;
|
|
661
|
+
if (a._processing <= 0) if (n) process.nextTick(function() {
|
|
662
|
+
a._finish();
|
|
663
|
+
});
|
|
664
|
+
else a._finish();
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
Glob.prototype._finish = function() {
|
|
668
|
+
h(this instanceof Glob);
|
|
669
|
+
if (this.aborted) return;
|
|
670
|
+
if (this.realpath && !this._didRealpath) return this._realpath();
|
|
671
|
+
p.finish(this);
|
|
672
|
+
this.emit("end", this.found);
|
|
673
|
+
};
|
|
674
|
+
Glob.prototype._realpath = function() {
|
|
675
|
+
if (this._didRealpath) return;
|
|
676
|
+
this._didRealpath = true;
|
|
677
|
+
var t = this.matches.length;
|
|
678
|
+
if (0 === t) return this._finish();
|
|
679
|
+
var e = this;
|
|
680
|
+
for(var r = 0; r < this.matches.length; r++)this._realpathSet(r, next);
|
|
681
|
+
function next() {
|
|
682
|
+
if (0 === --t) e._finish();
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
Glob.prototype._realpathSet = function(t, e) {
|
|
686
|
+
var r = this.matches[t];
|
|
687
|
+
if (!r) return e();
|
|
688
|
+
var a = Object.keys(r);
|
|
689
|
+
var n = this;
|
|
690
|
+
var s = a.length;
|
|
691
|
+
if (0 === s) return e();
|
|
692
|
+
var o = this.matches[t] = Object.create(null);
|
|
693
|
+
a.forEach(function(r, a) {
|
|
694
|
+
r = n._makeAbs(r);
|
|
695
|
+
i.realpath(r, n.realpathCache, function(i, a) {
|
|
696
|
+
if (i) if ("stat" === i.syscall) o[r] = true;
|
|
697
|
+
else n.emit("error", i);
|
|
698
|
+
else o[a] = true;
|
|
699
|
+
if (0 === --s) {
|
|
700
|
+
n.matches[t] = o;
|
|
701
|
+
e();
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
});
|
|
705
|
+
};
|
|
706
|
+
Glob.prototype._mark = function(t) {
|
|
707
|
+
return p.mark(this, t);
|
|
708
|
+
};
|
|
709
|
+
Glob.prototype._makeAbs = function(t) {
|
|
710
|
+
return p.makeAbs(this, t);
|
|
711
|
+
};
|
|
712
|
+
Glob.prototype.abort = function() {
|
|
713
|
+
this.aborted = true;
|
|
714
|
+
this.emit("abort");
|
|
715
|
+
};
|
|
716
|
+
Glob.prototype.pause = function() {
|
|
717
|
+
if (!this.paused) {
|
|
718
|
+
this.paused = true;
|
|
719
|
+
this.emit("pause");
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
Glob.prototype.resume = function() {
|
|
723
|
+
if (this.paused) {
|
|
724
|
+
this.emit("resume");
|
|
725
|
+
this.paused = false;
|
|
726
|
+
if (this._emitQueue.length) {
|
|
727
|
+
var t = this._emitQueue.slice(0);
|
|
728
|
+
this._emitQueue.length = 0;
|
|
729
|
+
for(var e = 0; e < t.length; e++){
|
|
730
|
+
var r = t[e];
|
|
731
|
+
this._emitMatch(r[0], r[1]);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
if (this._processQueue.length) {
|
|
735
|
+
var i = this._processQueue.slice(0);
|
|
736
|
+
this._processQueue.length = 0;
|
|
737
|
+
for(var e = 0; e < i.length; e++){
|
|
738
|
+
var a = i[e];
|
|
739
|
+
this._processing--;
|
|
740
|
+
this._process(a[0], a[1], a[2], a[3]);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
Glob.prototype._process = function(t, e, r, i) {
|
|
746
|
+
h(this instanceof Glob);
|
|
747
|
+
h("function" == typeof i);
|
|
748
|
+
if (this.aborted) return;
|
|
749
|
+
this._processing++;
|
|
750
|
+
if (this.paused) return void this._processQueue.push([
|
|
751
|
+
t,
|
|
752
|
+
e,
|
|
753
|
+
r,
|
|
754
|
+
i
|
|
755
|
+
]);
|
|
756
|
+
var n = 0;
|
|
757
|
+
while("string" == typeof t[n])n++;
|
|
758
|
+
var s;
|
|
759
|
+
switch(n){
|
|
760
|
+
case t.length:
|
|
761
|
+
this._processSimple(t.join("/"), e, i);
|
|
762
|
+
return;
|
|
763
|
+
case 0:
|
|
764
|
+
s = null;
|
|
765
|
+
break;
|
|
766
|
+
default:
|
|
767
|
+
s = t.slice(0, n).join("/");
|
|
768
|
+
break;
|
|
769
|
+
}
|
|
770
|
+
var o = t.slice(n);
|
|
771
|
+
var c;
|
|
772
|
+
if (null === s) c = ".";
|
|
773
|
+
else if (l(s) || l(t.join("/"))) {
|
|
774
|
+
if (!s || !l(s)) s = "/" + s;
|
|
775
|
+
c = s;
|
|
776
|
+
} else c = s;
|
|
777
|
+
var u = this._makeAbs(c);
|
|
778
|
+
if (g(this, c)) return i();
|
|
779
|
+
var p = o[0] === a.GLOBSTAR;
|
|
780
|
+
if (p) this._processGlobStar(s, c, u, o, e, r, i);
|
|
781
|
+
else this._processReaddir(s, c, u, o, e, r, i);
|
|
782
|
+
};
|
|
783
|
+
Glob.prototype._processReaddir = function(t, e, r, i, a, n, s) {
|
|
784
|
+
var o = this;
|
|
785
|
+
this._readdir(r, n, function(c, h) {
|
|
786
|
+
return o._processReaddir2(t, e, r, i, a, n, h, s);
|
|
787
|
+
});
|
|
788
|
+
};
|
|
789
|
+
Glob.prototype._processReaddir2 = function(t, e, r, i, a, n, s, o) {
|
|
790
|
+
if (!s) return o();
|
|
791
|
+
var h = i[0];
|
|
792
|
+
var l = !!this.minimatch.negate;
|
|
793
|
+
var u = h._glob;
|
|
794
|
+
var p = this.dot || "." === u.charAt(0);
|
|
795
|
+
var v = [];
|
|
796
|
+
for(var d = 0; d < s.length; d++){
|
|
797
|
+
var m = s[d];
|
|
798
|
+
if ("." !== m.charAt(0) || p) {
|
|
799
|
+
var b;
|
|
800
|
+
b = l && !t ? !m.match(h) : m.match(h);
|
|
801
|
+
if (b) v.push(m);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
var g = v.length;
|
|
805
|
+
if (0 === g) return o();
|
|
806
|
+
if (1 === i.length && !this.mark && !this.stat) {
|
|
807
|
+
if (!this.matches[a]) this.matches[a] = Object.create(null);
|
|
808
|
+
for(var d = 0; d < g; d++){
|
|
809
|
+
var m = v[d];
|
|
810
|
+
if (t) m = "/" !== t ? t + "/" + m : t + m;
|
|
811
|
+
if ("/" === m.charAt(0) && !this.nomount) m = c.join(this.root, m);
|
|
812
|
+
this._emitMatch(a, m);
|
|
813
|
+
}
|
|
814
|
+
return o();
|
|
815
|
+
}
|
|
816
|
+
i.shift();
|
|
817
|
+
for(var d = 0; d < g; d++){
|
|
818
|
+
var m = v[d];
|
|
819
|
+
if (t) m = "/" !== t ? t + "/" + m : t + m;
|
|
820
|
+
this._process([
|
|
821
|
+
m
|
|
822
|
+
].concat(i), a, n, o);
|
|
823
|
+
}
|
|
824
|
+
o();
|
|
825
|
+
};
|
|
826
|
+
Glob.prototype._emitMatch = function(t, e) {
|
|
827
|
+
if (this.aborted) return;
|
|
828
|
+
if (y(this, e)) return;
|
|
829
|
+
if (this.paused) return void this._emitQueue.push([
|
|
830
|
+
t,
|
|
831
|
+
e
|
|
832
|
+
]);
|
|
833
|
+
var r = l(e) ? e : this._makeAbs(e);
|
|
834
|
+
if (this.mark) e = this._mark(e);
|
|
835
|
+
if (this.absolute) e = r;
|
|
836
|
+
if (this.matches[t][e]) return;
|
|
837
|
+
if (this.nodir) {
|
|
838
|
+
var i = this.cache[r];
|
|
839
|
+
if ("DIR" === i || Array.isArray(i)) return;
|
|
840
|
+
}
|
|
841
|
+
this.matches[t][e] = true;
|
|
842
|
+
var a = this.statCache[r];
|
|
843
|
+
if (a) this.emit("stat", e, a);
|
|
844
|
+
this.emit("match", e);
|
|
845
|
+
};
|
|
846
|
+
Glob.prototype._readdirInGlobStar = function(t, e) {
|
|
847
|
+
if (this.aborted) return;
|
|
848
|
+
if (this.follow) return this._readdir(t, false, e);
|
|
849
|
+
var r = "lstat\0" + t;
|
|
850
|
+
var i = this;
|
|
851
|
+
var a = m(r, lstatcb_);
|
|
852
|
+
if (a) i.fs.lstat(t, a);
|
|
853
|
+
function lstatcb_(r, a) {
|
|
854
|
+
if (r && "ENOENT" === r.code) return e();
|
|
855
|
+
var n = a && a.isSymbolicLink();
|
|
856
|
+
i.symlinks[t] = n;
|
|
857
|
+
if (n || !a || a.isDirectory()) i._readdir(t, false, e);
|
|
858
|
+
else {
|
|
859
|
+
i.cache[t] = "FILE";
|
|
860
|
+
e();
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
Glob.prototype._readdir = function(t, e, r) {
|
|
865
|
+
if (this.aborted) return;
|
|
866
|
+
r = m("readdir\0" + t + "\0" + e, r);
|
|
867
|
+
if (!r) return;
|
|
868
|
+
if (e && !d(this.symlinks, t)) return this._readdirInGlobStar(t, r);
|
|
869
|
+
if (d(this.cache, t)) {
|
|
870
|
+
var i = this.cache[t];
|
|
871
|
+
if (!i || "FILE" === i) return r();
|
|
872
|
+
if (Array.isArray(i)) return r(null, i);
|
|
873
|
+
}
|
|
874
|
+
var a = this;
|
|
875
|
+
a.fs.readdir(t, readdirCb(this, t, r));
|
|
876
|
+
};
|
|
877
|
+
function readdirCb(t, e, r) {
|
|
878
|
+
return function(i, a) {
|
|
879
|
+
if (i) t._readdirError(e, i, r);
|
|
880
|
+
else t._readdirEntries(e, a, r);
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
Glob.prototype._readdirEntries = function(t, e, r) {
|
|
884
|
+
if (this.aborted) return;
|
|
885
|
+
if (!this.mark && !this.stat) for(var i = 0; i < e.length; i++){
|
|
886
|
+
var a = e[i];
|
|
887
|
+
a = "/" === t ? t + a : t + "/" + a;
|
|
888
|
+
this.cache[a] = true;
|
|
889
|
+
}
|
|
890
|
+
this.cache[t] = e;
|
|
891
|
+
return r(null, e);
|
|
892
|
+
};
|
|
893
|
+
Glob.prototype._readdirError = function(t, e, r) {
|
|
894
|
+
if (this.aborted) return;
|
|
895
|
+
switch(e.code){
|
|
896
|
+
case "ENOTSUP":
|
|
897
|
+
case "ENOTDIR":
|
|
898
|
+
var i = this._makeAbs(t);
|
|
899
|
+
this.cache[i] = "FILE";
|
|
900
|
+
if (i === this.cwdAbs) {
|
|
901
|
+
var a = new Error(e.code + " invalid cwd " + this.cwd);
|
|
902
|
+
a.path = this.cwd;
|
|
903
|
+
a.code = e.code;
|
|
904
|
+
this.emit("error", a);
|
|
905
|
+
this.abort();
|
|
906
|
+
}
|
|
907
|
+
break;
|
|
908
|
+
case "ENOENT":
|
|
909
|
+
case "ELOOP":
|
|
910
|
+
case "ENAMETOOLONG":
|
|
911
|
+
case "UNKNOWN":
|
|
912
|
+
this.cache[this._makeAbs(t)] = false;
|
|
913
|
+
break;
|
|
914
|
+
default:
|
|
915
|
+
this.cache[this._makeAbs(t)] = false;
|
|
916
|
+
if (this.strict) {
|
|
917
|
+
this.emit("error", e);
|
|
918
|
+
this.abort();
|
|
919
|
+
}
|
|
920
|
+
if (!this.silent) console.error("glob error", e);
|
|
921
|
+
break;
|
|
922
|
+
}
|
|
923
|
+
return r();
|
|
924
|
+
};
|
|
925
|
+
Glob.prototype._processGlobStar = function(t, e, r, i, a, n, s) {
|
|
926
|
+
var o = this;
|
|
927
|
+
this._readdir(r, n, function(c, h) {
|
|
928
|
+
o._processGlobStar2(t, e, r, i, a, n, h, s);
|
|
929
|
+
});
|
|
930
|
+
};
|
|
931
|
+
Glob.prototype._processGlobStar2 = function(t, e, r, i, a, n, s, o) {
|
|
932
|
+
if (!s) return o();
|
|
933
|
+
var c = i.slice(1);
|
|
934
|
+
var h = t ? [
|
|
935
|
+
t
|
|
936
|
+
] : [];
|
|
937
|
+
var l = h.concat(c);
|
|
938
|
+
this._process(l, a, false, o);
|
|
939
|
+
var u = this.symlinks[r];
|
|
940
|
+
var p = s.length;
|
|
941
|
+
if (u && n) return o();
|
|
942
|
+
for(var v = 0; v < p; v++){
|
|
943
|
+
var d = s[v];
|
|
944
|
+
if ("." !== d.charAt(0) || this.dot) {
|
|
945
|
+
var m = h.concat(s[v], c);
|
|
946
|
+
this._process(m, a, true, o);
|
|
947
|
+
var b = h.concat(s[v], i);
|
|
948
|
+
this._process(b, a, true, o);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
o();
|
|
952
|
+
};
|
|
953
|
+
Glob.prototype._processSimple = function(t, e, r) {
|
|
954
|
+
var i = this;
|
|
955
|
+
this._stat(t, function(a, n) {
|
|
956
|
+
i._processSimple2(t, e, a, n, r);
|
|
957
|
+
});
|
|
958
|
+
};
|
|
959
|
+
Glob.prototype._processSimple2 = function(t, e, r, i, a) {
|
|
960
|
+
if (!this.matches[e]) this.matches[e] = Object.create(null);
|
|
961
|
+
if (!i) return a();
|
|
962
|
+
if (t && l(t) && !this.nomount) {
|
|
963
|
+
var n = /[\/\\]$/.test(t);
|
|
964
|
+
if ("/" === t.charAt(0)) t = c.join(this.root, t);
|
|
965
|
+
else {
|
|
966
|
+
t = c.resolve(this.root, t);
|
|
967
|
+
if (n) t += "/";
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
if ("win32" === process.platform) t = t.replace(/\\/g, "/");
|
|
971
|
+
this._emitMatch(e, t);
|
|
972
|
+
a();
|
|
973
|
+
};
|
|
974
|
+
Glob.prototype._stat = function(t, e) {
|
|
975
|
+
var r = this._makeAbs(t);
|
|
976
|
+
var i = "/" === t.slice(-1);
|
|
977
|
+
if (t.length > this.maxLength) return e();
|
|
978
|
+
if (!this.stat && d(this.cache, r)) {
|
|
979
|
+
var a = this.cache[r];
|
|
980
|
+
if (Array.isArray(a)) a = "DIR";
|
|
981
|
+
if (!i || "DIR" === a) return e(null, a);
|
|
982
|
+
if (i && "FILE" === a) return e();
|
|
983
|
+
}
|
|
984
|
+
var s = this.statCache[r];
|
|
985
|
+
if (void 0 !== s) if (false === s) return e(null, s);
|
|
986
|
+
else {
|
|
987
|
+
var o = s.isDirectory() ? "DIR" : "FILE";
|
|
988
|
+
if (i && "FILE" === o) return e();
|
|
989
|
+
return e(null, o, s);
|
|
990
|
+
}
|
|
991
|
+
var c = this;
|
|
992
|
+
var h = m("stat\0" + r, lstatcb_);
|
|
993
|
+
if (h) c.fs.lstat(r, h);
|
|
994
|
+
function lstatcb_(i, a) {
|
|
995
|
+
if (a && a.isSymbolicLink()) return c.fs.stat(r, function(i, n) {
|
|
996
|
+
if (i) c._stat2(t, r, null, a, e);
|
|
997
|
+
else c._stat2(t, r, i, n, e);
|
|
998
|
+
});
|
|
999
|
+
c._stat2(t, r, i, a, e);
|
|
1000
|
+
}
|
|
1001
|
+
};
|
|
1002
|
+
Glob.prototype._stat2 = function(t, e, r, i, a) {
|
|
1003
|
+
if (r && ("ENOENT" === r.code || "ENOTDIR" === r.code)) {
|
|
1004
|
+
this.statCache[e] = false;
|
|
1005
|
+
return a();
|
|
1006
|
+
}
|
|
1007
|
+
var n = "/" === t.slice(-1);
|
|
1008
|
+
this.statCache[e] = i;
|
|
1009
|
+
if ("/" === e.slice(-1) && i && !i.isDirectory()) return a(null, false, i);
|
|
1010
|
+
var s = true;
|
|
1011
|
+
if (i) s = i.isDirectory() ? "DIR" : "FILE";
|
|
1012
|
+
this.cache[e] = this.cache[e] || s;
|
|
1013
|
+
if (n && "FILE" === s) return a();
|
|
1014
|
+
return a(null, s, i);
|
|
1015
|
+
};
|
|
1016
|
+
},
|
|
1017
|
+
19: (t, e, r)=>{
|
|
1018
|
+
t.exports = globSync;
|
|
1019
|
+
globSync.GlobSync = GlobSync;
|
|
1020
|
+
var i = r(737);
|
|
1021
|
+
var a = r(235);
|
|
1022
|
+
a.Minimatch;
|
|
1023
|
+
r(978).Glob;
|
|
1024
|
+
r(837);
|
|
1025
|
+
var c = r(17);
|
|
1026
|
+
var h = r(491);
|
|
1027
|
+
var l = r(249);
|
|
1028
|
+
var u = r(875);
|
|
1029
|
+
var p = u.setopts;
|
|
1030
|
+
var v = u.ownProp;
|
|
1031
|
+
var d = u.childrenIgnored;
|
|
1032
|
+
var m = u.isIgnored;
|
|
1033
|
+
function globSync(t, e) {
|
|
1034
|
+
if ("function" == typeof e || 3 === arguments.length) throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");
|
|
1035
|
+
return new GlobSync(t, e).found;
|
|
1036
|
+
}
|
|
1037
|
+
function GlobSync(t, e) {
|
|
1038
|
+
if (!t) throw new Error("must provide pattern");
|
|
1039
|
+
if ("function" == typeof e || 3 === arguments.length) throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");
|
|
1040
|
+
if (!(this instanceof GlobSync)) return new GlobSync(t, e);
|
|
1041
|
+
p(this, t, e);
|
|
1042
|
+
if (this.noprocess) return this;
|
|
1043
|
+
var r = this.minimatch.set.length;
|
|
1044
|
+
this.matches = new Array(r);
|
|
1045
|
+
for(var i = 0; i < r; i++)this._process(this.minimatch.set[i], i, false);
|
|
1046
|
+
this._finish();
|
|
1047
|
+
}
|
|
1048
|
+
GlobSync.prototype._finish = function() {
|
|
1049
|
+
h(this instanceof GlobSync);
|
|
1050
|
+
if (this.realpath) {
|
|
1051
|
+
var t = this;
|
|
1052
|
+
this.matches.forEach(function(e, r) {
|
|
1053
|
+
var a = t.matches[r] = Object.create(null);
|
|
1054
|
+
for(var n in e)try {
|
|
1055
|
+
n = t._makeAbs(n);
|
|
1056
|
+
var s = i.realpathSync(n, t.realpathCache);
|
|
1057
|
+
a[s] = true;
|
|
1058
|
+
} catch (e) {
|
|
1059
|
+
if ("stat" === e.syscall) a[t._makeAbs(n)] = true;
|
|
1060
|
+
else throw e;
|
|
1061
|
+
}
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
u.finish(this);
|
|
1065
|
+
};
|
|
1066
|
+
GlobSync.prototype._process = function(t, e, r) {
|
|
1067
|
+
h(this instanceof GlobSync);
|
|
1068
|
+
var i = 0;
|
|
1069
|
+
while("string" == typeof t[i])i++;
|
|
1070
|
+
var n;
|
|
1071
|
+
switch(i){
|
|
1072
|
+
case t.length:
|
|
1073
|
+
this._processSimple(t.join("/"), e);
|
|
1074
|
+
return;
|
|
1075
|
+
case 0:
|
|
1076
|
+
n = null;
|
|
1077
|
+
break;
|
|
1078
|
+
default:
|
|
1079
|
+
n = t.slice(0, i).join("/");
|
|
1080
|
+
break;
|
|
1081
|
+
}
|
|
1082
|
+
var s = t.slice(i);
|
|
1083
|
+
var o;
|
|
1084
|
+
if (null === n) o = ".";
|
|
1085
|
+
else if (l(n) || l(t.join("/"))) {
|
|
1086
|
+
if (!n || !l(n)) n = "/" + n;
|
|
1087
|
+
o = n;
|
|
1088
|
+
} else o = n;
|
|
1089
|
+
var c = this._makeAbs(o);
|
|
1090
|
+
if (d(this, o)) return;
|
|
1091
|
+
var u = s[0] === a.GLOBSTAR;
|
|
1092
|
+
if (u) this._processGlobStar(n, o, c, s, e, r);
|
|
1093
|
+
else this._processReaddir(n, o, c, s, e, r);
|
|
1094
|
+
};
|
|
1095
|
+
GlobSync.prototype._processReaddir = function(t, e, r, i, a, n) {
|
|
1096
|
+
var s = this._readdir(r, n);
|
|
1097
|
+
if (!s) return;
|
|
1098
|
+
var o = i[0];
|
|
1099
|
+
var h = !!this.minimatch.negate;
|
|
1100
|
+
var l = o._glob;
|
|
1101
|
+
var u = this.dot || "." === l.charAt(0);
|
|
1102
|
+
var p = [];
|
|
1103
|
+
for(var v = 0; v < s.length; v++){
|
|
1104
|
+
var d = s[v];
|
|
1105
|
+
if ("." !== d.charAt(0) || u) {
|
|
1106
|
+
var m;
|
|
1107
|
+
m = h && !t ? !d.match(o) : d.match(o);
|
|
1108
|
+
if (m) p.push(d);
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
var b = p.length;
|
|
1112
|
+
if (0 === b) return;
|
|
1113
|
+
if (1 === i.length && !this.mark && !this.stat) {
|
|
1114
|
+
if (!this.matches[a]) this.matches[a] = Object.create(null);
|
|
1115
|
+
for(var v = 0; v < b; v++){
|
|
1116
|
+
var d = p[v];
|
|
1117
|
+
if (t) d = "/" !== t.slice(-1) ? t + "/" + d : t + d;
|
|
1118
|
+
if ("/" === d.charAt(0) && !this.nomount) d = c.join(this.root, d);
|
|
1119
|
+
this._emitMatch(a, d);
|
|
1120
|
+
}
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
i.shift();
|
|
1124
|
+
for(var v = 0; v < b; v++){
|
|
1125
|
+
var d = p[v];
|
|
1126
|
+
var g;
|
|
1127
|
+
g = t ? [
|
|
1128
|
+
t,
|
|
1129
|
+
d
|
|
1130
|
+
] : [
|
|
1131
|
+
d
|
|
1132
|
+
];
|
|
1133
|
+
this._process(g.concat(i), a, n);
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
GlobSync.prototype._emitMatch = function(t, e) {
|
|
1137
|
+
if (m(this, e)) return;
|
|
1138
|
+
var r = this._makeAbs(e);
|
|
1139
|
+
if (this.mark) e = this._mark(e);
|
|
1140
|
+
if (this.absolute) e = r;
|
|
1141
|
+
if (this.matches[t][e]) return;
|
|
1142
|
+
if (this.nodir) {
|
|
1143
|
+
var i = this.cache[r];
|
|
1144
|
+
if ("DIR" === i || Array.isArray(i)) return;
|
|
1145
|
+
}
|
|
1146
|
+
this.matches[t][e] = true;
|
|
1147
|
+
if (this.stat) this._stat(e);
|
|
1148
|
+
};
|
|
1149
|
+
GlobSync.prototype._readdirInGlobStar = function(t) {
|
|
1150
|
+
if (this.follow) return this._readdir(t, false);
|
|
1151
|
+
var e;
|
|
1152
|
+
var r;
|
|
1153
|
+
try {
|
|
1154
|
+
r = this.fs.lstatSync(t);
|
|
1155
|
+
} catch (t) {
|
|
1156
|
+
if ("ENOENT" === t.code) return null;
|
|
1157
|
+
}
|
|
1158
|
+
var a = r && r.isSymbolicLink();
|
|
1159
|
+
this.symlinks[t] = a;
|
|
1160
|
+
if (a || !r || r.isDirectory()) e = this._readdir(t, false);
|
|
1161
|
+
else this.cache[t] = "FILE";
|
|
1162
|
+
return e;
|
|
1163
|
+
};
|
|
1164
|
+
GlobSync.prototype._readdir = function(t, e) {
|
|
1165
|
+
if (e && !v(this.symlinks, t)) return this._readdirInGlobStar(t);
|
|
1166
|
+
if (v(this.cache, t)) {
|
|
1167
|
+
var i = this.cache[t];
|
|
1168
|
+
if (!i || "FILE" === i) return null;
|
|
1169
|
+
if (Array.isArray(i)) return i;
|
|
1170
|
+
}
|
|
1171
|
+
try {
|
|
1172
|
+
return this._readdirEntries(t, this.fs.readdirSync(t));
|
|
1173
|
+
} catch (e) {
|
|
1174
|
+
this._readdirError(t, e);
|
|
1175
|
+
return null;
|
|
1176
|
+
}
|
|
1177
|
+
};
|
|
1178
|
+
GlobSync.prototype._readdirEntries = function(t, e) {
|
|
1179
|
+
if (!this.mark && !this.stat) for(var r = 0; r < e.length; r++){
|
|
1180
|
+
var i = e[r];
|
|
1181
|
+
i = "/" === t ? t + i : t + "/" + i;
|
|
1182
|
+
this.cache[i] = true;
|
|
1183
|
+
}
|
|
1184
|
+
this.cache[t] = e;
|
|
1185
|
+
return e;
|
|
1186
|
+
};
|
|
1187
|
+
GlobSync.prototype._readdirError = function(t, e) {
|
|
1188
|
+
switch(e.code){
|
|
1189
|
+
case "ENOTSUP":
|
|
1190
|
+
case "ENOTDIR":
|
|
1191
|
+
var r = this._makeAbs(t);
|
|
1192
|
+
this.cache[r] = "FILE";
|
|
1193
|
+
if (r === this.cwdAbs) {
|
|
1194
|
+
var i = new Error(e.code + " invalid cwd " + this.cwd);
|
|
1195
|
+
i.path = this.cwd;
|
|
1196
|
+
i.code = e.code;
|
|
1197
|
+
throw i;
|
|
1198
|
+
}
|
|
1199
|
+
break;
|
|
1200
|
+
case "ENOENT":
|
|
1201
|
+
case "ELOOP":
|
|
1202
|
+
case "ENAMETOOLONG":
|
|
1203
|
+
case "UNKNOWN":
|
|
1204
|
+
this.cache[this._makeAbs(t)] = false;
|
|
1205
|
+
break;
|
|
1206
|
+
default:
|
|
1207
|
+
this.cache[this._makeAbs(t)] = false;
|
|
1208
|
+
if (this.strict) throw e;
|
|
1209
|
+
if (!this.silent) console.error("glob error", e);
|
|
1210
|
+
break;
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
GlobSync.prototype._processGlobStar = function(t, e, r, i, a, n) {
|
|
1214
|
+
var s = this._readdir(r, n);
|
|
1215
|
+
if (!s) return;
|
|
1216
|
+
var o = i.slice(1);
|
|
1217
|
+
var c = t ? [
|
|
1218
|
+
t
|
|
1219
|
+
] : [];
|
|
1220
|
+
var h = c.concat(o);
|
|
1221
|
+
this._process(h, a, false);
|
|
1222
|
+
var l = s.length;
|
|
1223
|
+
var u = this.symlinks[r];
|
|
1224
|
+
if (u && n) return;
|
|
1225
|
+
for(var p = 0; p < l; p++){
|
|
1226
|
+
var v = s[p];
|
|
1227
|
+
if ("." !== v.charAt(0) || this.dot) {
|
|
1228
|
+
var d = c.concat(s[p], o);
|
|
1229
|
+
this._process(d, a, true);
|
|
1230
|
+
var m = c.concat(s[p], i);
|
|
1231
|
+
this._process(m, a, true);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
};
|
|
1235
|
+
GlobSync.prototype._processSimple = function(t, e) {
|
|
1236
|
+
var r = this._stat(t);
|
|
1237
|
+
if (!this.matches[e]) this.matches[e] = Object.create(null);
|
|
1238
|
+
if (!r) return;
|
|
1239
|
+
if (t && l(t) && !this.nomount) {
|
|
1240
|
+
var i = /[\/\\]$/.test(t);
|
|
1241
|
+
if ("/" === t.charAt(0)) t = c.join(this.root, t);
|
|
1242
|
+
else {
|
|
1243
|
+
t = c.resolve(this.root, t);
|
|
1244
|
+
if (i) t += "/";
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
if ("win32" === process.platform) t = t.replace(/\\/g, "/");
|
|
1248
|
+
this._emitMatch(e, t);
|
|
1249
|
+
};
|
|
1250
|
+
GlobSync.prototype._stat = function(t) {
|
|
1251
|
+
var e = this._makeAbs(t);
|
|
1252
|
+
var r = "/" === t.slice(-1);
|
|
1253
|
+
if (t.length > this.maxLength) return false;
|
|
1254
|
+
if (!this.stat && v(this.cache, e)) {
|
|
1255
|
+
var i = this.cache[e];
|
|
1256
|
+
if (Array.isArray(i)) i = "DIR";
|
|
1257
|
+
if (!r || "DIR" === i) return i;
|
|
1258
|
+
if (r && "FILE" === i) return false;
|
|
1259
|
+
}
|
|
1260
|
+
var n = this.statCache[e];
|
|
1261
|
+
if (!n) {
|
|
1262
|
+
var s;
|
|
1263
|
+
try {
|
|
1264
|
+
s = this.fs.lstatSync(e);
|
|
1265
|
+
} catch (t) {
|
|
1266
|
+
if (t && ("ENOENT" === t.code || "ENOTDIR" === t.code)) {
|
|
1267
|
+
this.statCache[e] = false;
|
|
1268
|
+
return false;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
if (s && s.isSymbolicLink()) try {
|
|
1272
|
+
n = this.fs.statSync(e);
|
|
1273
|
+
} catch (t) {
|
|
1274
|
+
n = s;
|
|
1275
|
+
}
|
|
1276
|
+
else n = s;
|
|
1277
|
+
}
|
|
1278
|
+
this.statCache[e] = n;
|
|
1279
|
+
var i = true;
|
|
1280
|
+
if (n) i = n.isDirectory() ? "DIR" : "FILE";
|
|
1281
|
+
this.cache[e] = this.cache[e] || i;
|
|
1282
|
+
if (r && "FILE" === i) return false;
|
|
1283
|
+
return i;
|
|
1284
|
+
};
|
|
1285
|
+
GlobSync.prototype._mark = function(t) {
|
|
1286
|
+
return u.mark(this, t);
|
|
1287
|
+
};
|
|
1288
|
+
GlobSync.prototype._makeAbs = function(t) {
|
|
1289
|
+
return u.makeAbs(this, t);
|
|
1290
|
+
};
|
|
1291
|
+
},
|
|
1292
|
+
900: (t, e, r)=>{
|
|
1293
|
+
var i = r(928);
|
|
1294
|
+
var a = Object.create(null);
|
|
1295
|
+
var n = r(556);
|
|
1296
|
+
t.exports = i(inflight);
|
|
1297
|
+
function inflight(t, e) {
|
|
1298
|
+
if (a[t]) {
|
|
1299
|
+
a[t].push(e);
|
|
1300
|
+
return null;
|
|
1301
|
+
}
|
|
1302
|
+
a[t] = [
|
|
1303
|
+
e
|
|
1304
|
+
];
|
|
1305
|
+
return makeres(t);
|
|
1306
|
+
}
|
|
1307
|
+
function makeres(t) {
|
|
1308
|
+
return n(function RES() {
|
|
1309
|
+
var e = a[t];
|
|
1310
|
+
var r = e.length;
|
|
1311
|
+
var i = slice(arguments);
|
|
1312
|
+
try {
|
|
1313
|
+
for(var n = 0; n < r; n++)e[n].apply(null, i);
|
|
1314
|
+
} finally{
|
|
1315
|
+
if (e.length > r) {
|
|
1316
|
+
e.splice(0, r);
|
|
1317
|
+
process.nextTick(function() {
|
|
1318
|
+
RES.apply(null, i);
|
|
1319
|
+
});
|
|
1320
|
+
} else delete a[t];
|
|
1321
|
+
}
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1324
|
+
function slice(t) {
|
|
1325
|
+
var e = t.length;
|
|
1326
|
+
var r = [];
|
|
1327
|
+
for(var i = 0; i < e; i++)r[i] = t[i];
|
|
1328
|
+
return r;
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
315: (t, e, r)=>{
|
|
1332
|
+
try {
|
|
1333
|
+
var i = r(837);
|
|
1334
|
+
if ("function" != typeof i.inherits) throw "";
|
|
1335
|
+
t.exports = i.inherits;
|
|
1336
|
+
} catch (e) {
|
|
1337
|
+
t.exports = r(959);
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
959: (t)=>{
|
|
1341
|
+
if ("function" == typeof Object.create) t.exports = function(t, e) {
|
|
1342
|
+
if (e) {
|
|
1343
|
+
t.super_ = e;
|
|
1344
|
+
t.prototype = Object.create(e.prototype, {
|
|
1345
|
+
constructor: {
|
|
1346
|
+
value: t,
|
|
1347
|
+
enumerable: false,
|
|
1348
|
+
writable: true,
|
|
1349
|
+
configurable: true
|
|
1350
|
+
}
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
};
|
|
1354
|
+
else t.exports = function(t, e) {
|
|
1355
|
+
if (e) {
|
|
1356
|
+
t.super_ = e;
|
|
1357
|
+
var TempCtor = function() {};
|
|
1358
|
+
TempCtor.prototype = e.prototype;
|
|
1359
|
+
t.prototype = new TempCtor;
|
|
1360
|
+
t.prototype.constructor = t;
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1363
|
+
},
|
|
1364
|
+
235: (t, e, r)=>{
|
|
1365
|
+
t.exports = minimatch;
|
|
1366
|
+
minimatch.Minimatch = Minimatch;
|
|
1367
|
+
var i = function() {
|
|
1368
|
+
try {
|
|
1369
|
+
return r(17);
|
|
1370
|
+
} catch (t) {}
|
|
1371
|
+
}() || {
|
|
1372
|
+
sep: "/"
|
|
1373
|
+
};
|
|
1374
|
+
minimatch.sep = i.sep;
|
|
1375
|
+
var a = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
1376
|
+
var n = r(847);
|
|
1377
|
+
var s = {
|
|
1378
|
+
"!": {
|
|
1379
|
+
open: "(?:(?!(?:",
|
|
1380
|
+
close: "))[^/]*?)"
|
|
1381
|
+
},
|
|
1382
|
+
"?": {
|
|
1383
|
+
open: "(?:",
|
|
1384
|
+
close: ")?"
|
|
1385
|
+
},
|
|
1386
|
+
"+": {
|
|
1387
|
+
open: "(?:",
|
|
1388
|
+
close: ")+"
|
|
1389
|
+
},
|
|
1390
|
+
"*": {
|
|
1391
|
+
open: "(?:",
|
|
1392
|
+
close: ")*"
|
|
1393
|
+
},
|
|
1394
|
+
"@": {
|
|
1395
|
+
open: "(?:",
|
|
1396
|
+
close: ")"
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
var o = "[^/]";
|
|
1400
|
+
var c = o + "*?";
|
|
1401
|
+
var h = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1402
|
+
var l = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1403
|
+
var u = charSet("().*{}+?[]^$\\!");
|
|
1404
|
+
function charSet(t) {
|
|
1405
|
+
return t.split("").reduce(function(t, e) {
|
|
1406
|
+
t[e] = true;
|
|
1407
|
+
return t;
|
|
1408
|
+
}, {});
|
|
1409
|
+
}
|
|
1410
|
+
var p = /\/+/;
|
|
1411
|
+
minimatch.filter = filter;
|
|
1412
|
+
function filter(t, e) {
|
|
1413
|
+
e = e || {};
|
|
1414
|
+
return function(r, i, a) {
|
|
1415
|
+
return minimatch(r, t, e);
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
function ext(t, e) {
|
|
1419
|
+
e = e || {};
|
|
1420
|
+
var r = {};
|
|
1421
|
+
Object.keys(t).forEach(function(e) {
|
|
1422
|
+
r[e] = t[e];
|
|
1423
|
+
});
|
|
1424
|
+
Object.keys(e).forEach(function(t) {
|
|
1425
|
+
r[t] = e[t];
|
|
1426
|
+
});
|
|
1427
|
+
return r;
|
|
1428
|
+
}
|
|
1429
|
+
minimatch.defaults = function(t) {
|
|
1430
|
+
if (!t || "object" != typeof t || !Object.keys(t).length) return minimatch;
|
|
1431
|
+
var e = minimatch;
|
|
1432
|
+
var r = function(r, i, a) {
|
|
1433
|
+
return e(r, i, ext(t, a));
|
|
1434
|
+
};
|
|
1435
|
+
r.Minimatch = function(r, i) {
|
|
1436
|
+
return new e.Minimatch(r, ext(t, i));
|
|
1437
|
+
};
|
|
1438
|
+
r.Minimatch.defaults = function(r) {
|
|
1439
|
+
return e.defaults(ext(t, r)).Minimatch;
|
|
1440
|
+
};
|
|
1441
|
+
r.filter = function(r, i) {
|
|
1442
|
+
return e.filter(r, ext(t, i));
|
|
1443
|
+
};
|
|
1444
|
+
r.defaults = function(r) {
|
|
1445
|
+
return e.defaults(ext(t, r));
|
|
1446
|
+
};
|
|
1447
|
+
r.makeRe = function(r, i) {
|
|
1448
|
+
return e.makeRe(r, ext(t, i));
|
|
1449
|
+
};
|
|
1450
|
+
r.braceExpand = function(r, i) {
|
|
1451
|
+
return e.braceExpand(r, ext(t, i));
|
|
1452
|
+
};
|
|
1453
|
+
r.match = function(r, i, a) {
|
|
1454
|
+
return e.match(r, i, ext(t, a));
|
|
1455
|
+
};
|
|
1456
|
+
return r;
|
|
1457
|
+
};
|
|
1458
|
+
Minimatch.defaults = function(t) {
|
|
1459
|
+
return minimatch.defaults(t).Minimatch;
|
|
1460
|
+
};
|
|
1461
|
+
function minimatch(t, e, r) {
|
|
1462
|
+
assertValidPattern(e);
|
|
1463
|
+
if (!r) r = {};
|
|
1464
|
+
if (!r.nocomment && "#" === e.charAt(0)) return false;
|
|
1465
|
+
return new Minimatch(e, r).match(t);
|
|
1466
|
+
}
|
|
1467
|
+
function Minimatch(t, e) {
|
|
1468
|
+
if (!(this instanceof Minimatch)) return new Minimatch(t, e);
|
|
1469
|
+
assertValidPattern(t);
|
|
1470
|
+
if (!e) e = {};
|
|
1471
|
+
t = t.trim();
|
|
1472
|
+
if (!e.allowWindowsEscape && "/" !== i.sep) t = t.split(i.sep).join("/");
|
|
1473
|
+
this.options = e;
|
|
1474
|
+
this.set = [];
|
|
1475
|
+
this.pattern = t;
|
|
1476
|
+
this.regexp = null;
|
|
1477
|
+
this.negate = false;
|
|
1478
|
+
this.comment = false;
|
|
1479
|
+
this.empty = false;
|
|
1480
|
+
this.partial = !!e.partial;
|
|
1481
|
+
this.make();
|
|
1482
|
+
}
|
|
1483
|
+
Minimatch.prototype.debug = function() {};
|
|
1484
|
+
Minimatch.prototype.make = make;
|
|
1485
|
+
function make() {
|
|
1486
|
+
var t = this.pattern;
|
|
1487
|
+
var e = this.options;
|
|
1488
|
+
if (!e.nocomment && "#" === t.charAt(0)) {
|
|
1489
|
+
this.comment = true;
|
|
1490
|
+
return;
|
|
1491
|
+
}
|
|
1492
|
+
if (!t) {
|
|
1493
|
+
this.empty = true;
|
|
1494
|
+
return;
|
|
1495
|
+
}
|
|
1496
|
+
this.parseNegate();
|
|
1497
|
+
var r = this.globSet = this.braceExpand();
|
|
1498
|
+
if (e.debug) this.debug = function() {
|
|
1499
|
+
console.error.apply(console, arguments);
|
|
1500
|
+
};
|
|
1501
|
+
this.debug(this.pattern, r);
|
|
1502
|
+
r = this.globParts = r.map(function(t) {
|
|
1503
|
+
return t.split(p);
|
|
1504
|
+
});
|
|
1505
|
+
this.debug(this.pattern, r);
|
|
1506
|
+
r = r.map(function(t, e, r) {
|
|
1507
|
+
return t.map(this.parse, this);
|
|
1508
|
+
}, this);
|
|
1509
|
+
this.debug(this.pattern, r);
|
|
1510
|
+
r = r.filter(function(t) {
|
|
1511
|
+
return -1 === t.indexOf(false);
|
|
1512
|
+
});
|
|
1513
|
+
this.debug(this.pattern, r);
|
|
1514
|
+
this.set = r;
|
|
1515
|
+
}
|
|
1516
|
+
Minimatch.prototype.parseNegate = parseNegate;
|
|
1517
|
+
function parseNegate() {
|
|
1518
|
+
var t = this.pattern;
|
|
1519
|
+
var e = false;
|
|
1520
|
+
var r = this.options;
|
|
1521
|
+
var i = 0;
|
|
1522
|
+
if (r.nonegate) return;
|
|
1523
|
+
for(var a = 0, n = t.length; a < n && "!" === t.charAt(a); a++){
|
|
1524
|
+
e = !e;
|
|
1525
|
+
i++;
|
|
1526
|
+
}
|
|
1527
|
+
if (i) this.pattern = t.substr(i);
|
|
1528
|
+
this.negate = e;
|
|
1529
|
+
}
|
|
1530
|
+
minimatch.braceExpand = function(t, e) {
|
|
1531
|
+
return braceExpand(t, e);
|
|
1532
|
+
};
|
|
1533
|
+
Minimatch.prototype.braceExpand = braceExpand;
|
|
1534
|
+
function braceExpand(t, e) {
|
|
1535
|
+
if (!e) e = this instanceof Minimatch ? this.options : {};
|
|
1536
|
+
t = void 0 === t ? this.pattern : t;
|
|
1537
|
+
assertValidPattern(t);
|
|
1538
|
+
if (e.nobrace || !/\{(?:(?!\{).)*\}/.test(t)) return [
|
|
1539
|
+
t
|
|
1540
|
+
];
|
|
1541
|
+
return n(t);
|
|
1542
|
+
}
|
|
1543
|
+
var v = 65536;
|
|
1544
|
+
var assertValidPattern = function(t) {
|
|
1545
|
+
if ("string" != typeof t) throw new TypeError("invalid pattern");
|
|
1546
|
+
if (t.length > v) throw new TypeError("pattern is too long");
|
|
1547
|
+
};
|
|
1548
|
+
Minimatch.prototype.parse = parse;
|
|
1549
|
+
var d = {};
|
|
1550
|
+
function parse(t, e) {
|
|
1551
|
+
assertValidPattern(t);
|
|
1552
|
+
var r = this.options;
|
|
1553
|
+
if ("**" === t) if (!r.noglobstar) return a;
|
|
1554
|
+
else t = "*";
|
|
1555
|
+
if ("" === t) return "";
|
|
1556
|
+
var i = "";
|
|
1557
|
+
var n = !!r.nocase;
|
|
1558
|
+
var h = false;
|
|
1559
|
+
var l = [];
|
|
1560
|
+
var p = [];
|
|
1561
|
+
var v;
|
|
1562
|
+
var m = false;
|
|
1563
|
+
var b = -1;
|
|
1564
|
+
var g = -1;
|
|
1565
|
+
var y = "." === t.charAt(0) ? "" : r.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
1566
|
+
var _ = this;
|
|
1567
|
+
function clearStateChar() {
|
|
1568
|
+
if (v) {
|
|
1569
|
+
switch(v){
|
|
1570
|
+
case "*":
|
|
1571
|
+
i += c;
|
|
1572
|
+
n = true;
|
|
1573
|
+
break;
|
|
1574
|
+
case "?":
|
|
1575
|
+
i += o;
|
|
1576
|
+
n = true;
|
|
1577
|
+
break;
|
|
1578
|
+
default:
|
|
1579
|
+
i += "\\" + v;
|
|
1580
|
+
break;
|
|
1581
|
+
}
|
|
1582
|
+
_.debug("clearStateChar %j %j", v, i);
|
|
1583
|
+
v = false;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
for(var w = 0, k = t.length, S; w < k && (S = t.charAt(w)); w++){
|
|
1587
|
+
this.debug("%s\t%s %s %j", t, w, i, S);
|
|
1588
|
+
if (h && u[S]) {
|
|
1589
|
+
i += "\\" + S;
|
|
1590
|
+
h = false;
|
|
1591
|
+
continue;
|
|
1592
|
+
}
|
|
1593
|
+
switch(S){
|
|
1594
|
+
case "/":
|
|
1595
|
+
return false;
|
|
1596
|
+
case "\\":
|
|
1597
|
+
clearStateChar();
|
|
1598
|
+
h = true;
|
|
1599
|
+
continue;
|
|
1600
|
+
case "?":
|
|
1601
|
+
case "*":
|
|
1602
|
+
case "+":
|
|
1603
|
+
case "@":
|
|
1604
|
+
case "!":
|
|
1605
|
+
this.debug("%s\t%s %s %j <-- stateChar", t, w, i, S);
|
|
1606
|
+
if (m) {
|
|
1607
|
+
this.debug(" in class");
|
|
1608
|
+
if ("!" === S && w === g + 1) S = "^";
|
|
1609
|
+
i += S;
|
|
1610
|
+
continue;
|
|
1611
|
+
}
|
|
1612
|
+
_.debug("call clearStateChar %j", v);
|
|
1613
|
+
clearStateChar();
|
|
1614
|
+
v = S;
|
|
1615
|
+
if (r.noext) clearStateChar();
|
|
1616
|
+
continue;
|
|
1617
|
+
case "(":
|
|
1618
|
+
if (m) {
|
|
1619
|
+
i += "(";
|
|
1620
|
+
continue;
|
|
1621
|
+
}
|
|
1622
|
+
if (!v) {
|
|
1623
|
+
i += "\\(";
|
|
1624
|
+
continue;
|
|
1625
|
+
}
|
|
1626
|
+
l.push({
|
|
1627
|
+
type: v,
|
|
1628
|
+
start: w - 1,
|
|
1629
|
+
reStart: i.length,
|
|
1630
|
+
open: s[v].open,
|
|
1631
|
+
close: s[v].close
|
|
1632
|
+
});
|
|
1633
|
+
i += "!" === v ? "(?:(?!(?:" : "(?:";
|
|
1634
|
+
this.debug("plType %j %j", v, i);
|
|
1635
|
+
v = false;
|
|
1636
|
+
continue;
|
|
1637
|
+
case ")":
|
|
1638
|
+
if (m || !l.length) {
|
|
1639
|
+
i += "\\)";
|
|
1640
|
+
continue;
|
|
1641
|
+
}
|
|
1642
|
+
clearStateChar();
|
|
1643
|
+
n = true;
|
|
1644
|
+
var E = l.pop();
|
|
1645
|
+
i += E.close;
|
|
1646
|
+
if ("!" === E.type) p.push(E);
|
|
1647
|
+
E.reEnd = i.length;
|
|
1648
|
+
continue;
|
|
1649
|
+
case "|":
|
|
1650
|
+
if (m || !l.length || h) {
|
|
1651
|
+
i += "\\|";
|
|
1652
|
+
h = false;
|
|
1653
|
+
continue;
|
|
1654
|
+
}
|
|
1655
|
+
clearStateChar();
|
|
1656
|
+
i += "|";
|
|
1657
|
+
continue;
|
|
1658
|
+
case "[":
|
|
1659
|
+
clearStateChar();
|
|
1660
|
+
if (m) {
|
|
1661
|
+
i += "\\" + S;
|
|
1662
|
+
continue;
|
|
1663
|
+
}
|
|
1664
|
+
m = true;
|
|
1665
|
+
g = w;
|
|
1666
|
+
b = i.length;
|
|
1667
|
+
i += S;
|
|
1668
|
+
continue;
|
|
1669
|
+
case "]":
|
|
1670
|
+
if (w === g + 1 || !m) {
|
|
1671
|
+
i += "\\" + S;
|
|
1672
|
+
h = false;
|
|
1673
|
+
continue;
|
|
1674
|
+
}
|
|
1675
|
+
var x = t.substring(g + 1, w);
|
|
1676
|
+
try {
|
|
1677
|
+
RegExp("[" + x + "]");
|
|
1678
|
+
} catch (t) {
|
|
1679
|
+
var O = this.parse(x, d);
|
|
1680
|
+
i = i.substr(0, b) + "\\[" + O[0] + "\\]";
|
|
1681
|
+
n = n || O[1];
|
|
1682
|
+
m = false;
|
|
1683
|
+
continue;
|
|
1684
|
+
}
|
|
1685
|
+
n = true;
|
|
1686
|
+
m = false;
|
|
1687
|
+
i += S;
|
|
1688
|
+
continue;
|
|
1689
|
+
default:
|
|
1690
|
+
clearStateChar();
|
|
1691
|
+
if (h) h = false;
|
|
1692
|
+
else if (u[S] && !("^" === S && m)) i += "\\";
|
|
1693
|
+
i += S;
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
if (m) {
|
|
1697
|
+
x = t.substr(g + 1);
|
|
1698
|
+
O = this.parse(x, d);
|
|
1699
|
+
i = i.substr(0, b) + "\\[" + O[0];
|
|
1700
|
+
n = n || O[1];
|
|
1701
|
+
}
|
|
1702
|
+
for(E = l.pop(); E; E = l.pop()){
|
|
1703
|
+
var A = i.slice(E.reStart + E.open.length);
|
|
1704
|
+
this.debug("setting tail", i, E);
|
|
1705
|
+
A = A.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(t, e, r) {
|
|
1706
|
+
if (!r) r = "\\";
|
|
1707
|
+
return e + e + r + "|";
|
|
1708
|
+
});
|
|
1709
|
+
this.debug("tail=%j\n %s", A, A, E, i);
|
|
1710
|
+
var G = "*" === E.type ? c : "?" === E.type ? o : "\\" + E.type;
|
|
1711
|
+
n = true;
|
|
1712
|
+
i = i.slice(0, E.reStart) + G + "\\(" + A;
|
|
1713
|
+
}
|
|
1714
|
+
clearStateChar();
|
|
1715
|
+
if (h) i += "\\\\";
|
|
1716
|
+
var j = false;
|
|
1717
|
+
switch(i.charAt(0)){
|
|
1718
|
+
case "[":
|
|
1719
|
+
case ".":
|
|
1720
|
+
case "(":
|
|
1721
|
+
j = true;
|
|
1722
|
+
}
|
|
1723
|
+
for(var M = p.length - 1; M > -1; M--){
|
|
1724
|
+
var I = p[M];
|
|
1725
|
+
var R = i.slice(0, I.reStart);
|
|
1726
|
+
var C = i.slice(I.reStart, I.reEnd - 8);
|
|
1727
|
+
var L = i.slice(I.reEnd - 8, I.reEnd);
|
|
1728
|
+
var N = i.slice(I.reEnd);
|
|
1729
|
+
L += N;
|
|
1730
|
+
var T = R.split("(").length - 1;
|
|
1731
|
+
var P = N;
|
|
1732
|
+
for(w = 0; w < T; w++)P = P.replace(/\)[+*?]?/, "");
|
|
1733
|
+
N = P;
|
|
1734
|
+
var D = "";
|
|
1735
|
+
if ("" === N && e !== d) D = "$";
|
|
1736
|
+
var $ = R + C + N + D + L;
|
|
1737
|
+
i = $;
|
|
1738
|
+
}
|
|
1739
|
+
if ("" !== i && n) i = "(?=.)" + i;
|
|
1740
|
+
if (j) i = y + i;
|
|
1741
|
+
if (e === d) return [
|
|
1742
|
+
i,
|
|
1743
|
+
n
|
|
1744
|
+
];
|
|
1745
|
+
if (!n) return globUnescape(t);
|
|
1746
|
+
var F = r.nocase ? "i" : "";
|
|
1747
|
+
try {
|
|
1748
|
+
var B = new RegExp("^" + i + "$", F);
|
|
1749
|
+
} catch (t) {
|
|
1750
|
+
return new RegExp("$.");
|
|
1751
|
+
}
|
|
1752
|
+
B._glob = t;
|
|
1753
|
+
B._src = i;
|
|
1754
|
+
return B;
|
|
1755
|
+
}
|
|
1756
|
+
minimatch.makeRe = function(t, e) {
|
|
1757
|
+
return new Minimatch(t, e || {}).makeRe();
|
|
1758
|
+
};
|
|
1759
|
+
Minimatch.prototype.makeRe = makeRe;
|
|
1760
|
+
function makeRe() {
|
|
1761
|
+
if (this.regexp || false === this.regexp) return this.regexp;
|
|
1762
|
+
var t = this.set;
|
|
1763
|
+
if (!t.length) {
|
|
1764
|
+
this.regexp = false;
|
|
1765
|
+
return this.regexp;
|
|
1766
|
+
}
|
|
1767
|
+
var e = this.options;
|
|
1768
|
+
var r = e.noglobstar ? c : e.dot ? h : l;
|
|
1769
|
+
var i = e.nocase ? "i" : "";
|
|
1770
|
+
var n = t.map(function(t) {
|
|
1771
|
+
return t.map(function(t) {
|
|
1772
|
+
return t === a ? r : "string" == typeof t ? regExpEscape(t) : t._src;
|
|
1773
|
+
}).join("\\/");
|
|
1774
|
+
}).join("|");
|
|
1775
|
+
n = "^(?:" + n + ")$";
|
|
1776
|
+
if (this.negate) n = "^(?!" + n + ").*$";
|
|
1777
|
+
try {
|
|
1778
|
+
this.regexp = new RegExp(n, i);
|
|
1779
|
+
} catch (t) {
|
|
1780
|
+
this.regexp = false;
|
|
1781
|
+
}
|
|
1782
|
+
return this.regexp;
|
|
1783
|
+
}
|
|
1784
|
+
minimatch.match = function(t, e, r) {
|
|
1785
|
+
r = r || {};
|
|
1786
|
+
var i = new Minimatch(e, r);
|
|
1787
|
+
t = t.filter(function(t) {
|
|
1788
|
+
return i.match(t);
|
|
1789
|
+
});
|
|
1790
|
+
if (i.options.nonull && !t.length) t.push(e);
|
|
1791
|
+
return t;
|
|
1792
|
+
};
|
|
1793
|
+
Minimatch.prototype.match = function(t, e) {
|
|
1794
|
+
if (void 0 === e) e = this.partial;
|
|
1795
|
+
this.debug("match", t, this.pattern);
|
|
1796
|
+
if (this.comment) return false;
|
|
1797
|
+
if (this.empty) return "" === t;
|
|
1798
|
+
if ("/" === t && e) return true;
|
|
1799
|
+
var r = this.options;
|
|
1800
|
+
if ("/" !== i.sep) t = t.split(i.sep).join("/");
|
|
1801
|
+
t = t.split(p);
|
|
1802
|
+
this.debug(this.pattern, "split", t);
|
|
1803
|
+
var a = this.set;
|
|
1804
|
+
this.debug(this.pattern, "set", a);
|
|
1805
|
+
var n;
|
|
1806
|
+
var s;
|
|
1807
|
+
for(s = t.length - 1; s >= 0; s--){
|
|
1808
|
+
n = t[s];
|
|
1809
|
+
if (n) break;
|
|
1810
|
+
}
|
|
1811
|
+
for(s = 0; s < a.length; s++){
|
|
1812
|
+
var o = a[s];
|
|
1813
|
+
var c = t;
|
|
1814
|
+
if (r.matchBase && 1 === o.length) c = [
|
|
1815
|
+
n
|
|
1816
|
+
];
|
|
1817
|
+
var h = this.matchOne(c, o, e);
|
|
1818
|
+
if (h) {
|
|
1819
|
+
if (r.flipNegate) return true;
|
|
1820
|
+
return !this.negate;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
if (r.flipNegate) return false;
|
|
1824
|
+
return this.negate;
|
|
1825
|
+
};
|
|
1826
|
+
Minimatch.prototype.matchOne = function(t, e, r) {
|
|
1827
|
+
var i = this.options;
|
|
1828
|
+
this.debug("matchOne", {
|
|
1829
|
+
this: this,
|
|
1830
|
+
file: t,
|
|
1831
|
+
pattern: e
|
|
1832
|
+
});
|
|
1833
|
+
this.debug("matchOne", t.length, e.length);
|
|
1834
|
+
for(var n = 0, s = 0, o = t.length, c = e.length; n < o && s < c; n++, s++){
|
|
1835
|
+
this.debug("matchOne loop");
|
|
1836
|
+
var h = e[s];
|
|
1837
|
+
var l = t[n];
|
|
1838
|
+
this.debug(e, h, l);
|
|
1839
|
+
if (false === h) return false;
|
|
1840
|
+
if (h === a) {
|
|
1841
|
+
this.debug("GLOBSTAR", [
|
|
1842
|
+
e,
|
|
1843
|
+
h,
|
|
1844
|
+
l
|
|
1845
|
+
]);
|
|
1846
|
+
var u = n;
|
|
1847
|
+
var p = s + 1;
|
|
1848
|
+
if (p === c) {
|
|
1849
|
+
this.debug("** at the end");
|
|
1850
|
+
for(; n < o; n++)if ("." === t[n] || ".." === t[n] || !i.dot && "." === t[n].charAt(0)) return false;
|
|
1851
|
+
return true;
|
|
1852
|
+
}
|
|
1853
|
+
while(u < o){
|
|
1854
|
+
var v = t[u];
|
|
1855
|
+
this.debug("\nglobstar while", t, u, e, p, v);
|
|
1856
|
+
if (this.matchOne(t.slice(u), e.slice(p), r)) {
|
|
1857
|
+
this.debug("globstar found match!", u, o, v);
|
|
1858
|
+
return true;
|
|
1859
|
+
}
|
|
1860
|
+
if ("." === v || ".." === v || !i.dot && "." === v.charAt(0)) {
|
|
1861
|
+
this.debug("dot detected!", t, u, e, p);
|
|
1862
|
+
break;
|
|
1863
|
+
}
|
|
1864
|
+
this.debug("globstar swallow a segment, and continue");
|
|
1865
|
+
u++;
|
|
1866
|
+
}
|
|
1867
|
+
if (r) {
|
|
1868
|
+
this.debug("\n>>> no match, partial?", t, u, e, p);
|
|
1869
|
+
if (u === o) return true;
|
|
1870
|
+
}
|
|
1871
|
+
return false;
|
|
1872
|
+
}
|
|
1873
|
+
var d;
|
|
1874
|
+
if ("string" == typeof h) {
|
|
1875
|
+
d = l === h;
|
|
1876
|
+
this.debug("string match", h, l, d);
|
|
1877
|
+
} else {
|
|
1878
|
+
d = l.match(h);
|
|
1879
|
+
this.debug("pattern match", h, l, d);
|
|
1880
|
+
}
|
|
1881
|
+
if (!d) return false;
|
|
1882
|
+
}
|
|
1883
|
+
if (n === o && s === c) return true;
|
|
1884
|
+
if (n === o) return r;
|
|
1885
|
+
if (s === c) return n === o - 1 && "" === t[n];
|
|
1886
|
+
throw new Error("wtf?");
|
|
1887
|
+
};
|
|
1888
|
+
function globUnescape(t) {
|
|
1889
|
+
return t.replace(/\\(.)/g, "$1");
|
|
1890
|
+
}
|
|
1891
|
+
function regExpEscape(t) {
|
|
1892
|
+
return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
556: (t, e, r)=>{
|
|
1896
|
+
var i = r(928);
|
|
1897
|
+
t.exports = i(once);
|
|
1898
|
+
t.exports.strict = i(onceStrict);
|
|
1899
|
+
once.proto = once(function() {
|
|
1900
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
1901
|
+
value: function() {
|
|
1902
|
+
return once(this);
|
|
1903
|
+
},
|
|
1904
|
+
configurable: true
|
|
1905
|
+
});
|
|
1906
|
+
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
1907
|
+
value: function() {
|
|
1908
|
+
return onceStrict(this);
|
|
1909
|
+
},
|
|
1910
|
+
configurable: true
|
|
1911
|
+
});
|
|
1912
|
+
});
|
|
1913
|
+
function once(t) {
|
|
1914
|
+
var f = function() {
|
|
1915
|
+
if (f.called) return f.value;
|
|
1916
|
+
f.called = true;
|
|
1917
|
+
return f.value = t.apply(this, arguments);
|
|
1918
|
+
};
|
|
1919
|
+
f.called = false;
|
|
1920
|
+
return f;
|
|
1921
|
+
}
|
|
1922
|
+
function onceStrict(t) {
|
|
1923
|
+
var f = function() {
|
|
1924
|
+
if (f.called) throw new Error(f.onceError);
|
|
1925
|
+
f.called = true;
|
|
1926
|
+
return f.value = t.apply(this, arguments);
|
|
1927
|
+
};
|
|
1928
|
+
var e = t.name || "Function wrapped with `once`";
|
|
1929
|
+
f.onceError = e + " shouldn't be called more than once";
|
|
1930
|
+
f.called = false;
|
|
1931
|
+
return f;
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
249: (t)=>{
|
|
1935
|
+
"use strict";
|
|
1936
|
+
function posix(t) {
|
|
1937
|
+
return "/" === t.charAt(0);
|
|
1938
|
+
}
|
|
1939
|
+
function win32(t) {
|
|
1940
|
+
var e = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
1941
|
+
var r = e.exec(t);
|
|
1942
|
+
var i = r[1] || "";
|
|
1943
|
+
var a = Boolean(i && ":" !== i.charAt(1));
|
|
1944
|
+
return Boolean(r[2] || a);
|
|
1945
|
+
}
|
|
1946
|
+
t.exports = "win32" === process.platform ? win32 : posix;
|
|
1947
|
+
t.exports.posix = posix;
|
|
1948
|
+
t.exports.win32 = win32;
|
|
1949
|
+
},
|
|
1950
|
+
928: (t)=>{
|
|
1951
|
+
t.exports = wrappy;
|
|
1952
|
+
function wrappy(t, e) {
|
|
1953
|
+
if (t && e) return wrappy(t)(e);
|
|
1954
|
+
if ("function" != typeof t) throw new TypeError("need wrapper function");
|
|
1955
|
+
Object.keys(t).forEach(function(e) {
|
|
1956
|
+
wrapper[e] = t[e];
|
|
1957
|
+
});
|
|
1958
|
+
return wrapper;
|
|
1959
|
+
function wrapper() {
|
|
1960
|
+
var e = new Array(arguments.length);
|
|
1961
|
+
for(var r = 0; r < e.length; r++)e[r] = arguments[r];
|
|
1962
|
+
var i = t.apply(this, e);
|
|
1963
|
+
var a = e[e.length - 1];
|
|
1964
|
+
if ("function" == typeof i && i !== a) Object.keys(a).forEach(function(t) {
|
|
1965
|
+
i[t] = a[t];
|
|
1966
|
+
});
|
|
1967
|
+
return i;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
},
|
|
1971
|
+
491: (t)=>{
|
|
1972
|
+
"use strict";
|
|
1973
|
+
t.exports = require("assert");
|
|
1974
|
+
},
|
|
1975
|
+
361: (t)=>{
|
|
1976
|
+
"use strict";
|
|
1977
|
+
t.exports = require("events");
|
|
1978
|
+
},
|
|
1979
|
+
147: (t)=>{
|
|
1980
|
+
"use strict";
|
|
1981
|
+
t.exports = require("fs");
|
|
1982
|
+
},
|
|
1983
|
+
17: (t)=>{
|
|
1984
|
+
"use strict";
|
|
1985
|
+
t.exports = require("path");
|
|
1986
|
+
},
|
|
1987
|
+
837: (t)=>{
|
|
1988
|
+
"use strict";
|
|
1989
|
+
t.exports = require("util");
|
|
1990
|
+
}
|
|
1991
|
+
};
|
|
1992
|
+
var e = {};
|
|
1993
|
+
function __nccwpck_require__(r) {
|
|
1994
|
+
var i = e[r];
|
|
1995
|
+
if (void 0 !== i) return i.exports;
|
|
1996
|
+
var a = e[r] = {
|
|
1997
|
+
exports: {}
|
|
1998
|
+
};
|
|
1999
|
+
var n = true;
|
|
2000
|
+
try {
|
|
2001
|
+
t[r](a, a.exports, __nccwpck_require__);
|
|
2002
|
+
n = false;
|
|
2003
|
+
} finally{
|
|
2004
|
+
if (n) delete e[r];
|
|
2005
|
+
}
|
|
2006
|
+
return a.exports;
|
|
2007
|
+
}
|
|
2008
|
+
if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
|
|
2009
|
+
var r = __nccwpck_require__(978);
|
|
2010
|
+
module.exports = r;
|
|
2011
|
+
})();
|