@corellium/corellium-cli 1.3.8 → 1.5.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/.eslintrc.js +12 -16
- package/.gitlab-ci.yml +13 -13
- package/.nvmrc +1 -1
- package/.nycrc +14 -14
- package/.prettierrc.js +8 -7
- package/README.md +13 -6
- package/docs/OVERVIEW.md +57 -27
- package/index.js +8 -8
- package/lint-staged.config.js +3 -6
- package/node_modules/@babel/cli/README.md +1 -1
- package/node_modules/@babel/cli/bin/babel-external-helpers.mjs +3 -0
- package/node_modules/@babel/cli/bin/babel.mjs +3 -0
- package/node_modules/@babel/cli/lib/babel/dir.js +23 -73
- package/node_modules/@babel/cli/lib/babel/dir.js.map +1 -0
- package/node_modules/@babel/cli/lib/babel/file.js +27 -72
- package/node_modules/@babel/cli/lib/babel/file.js.map +1 -0
- package/node_modules/@babel/cli/lib/babel/index.js +6 -8
- package/node_modules/@babel/cli/lib/babel/index.js.map +1 -0
- package/node_modules/@babel/cli/lib/babel/options.js +70 -143
- package/node_modules/@babel/cli/lib/babel/options.js.map +1 -0
- package/node_modules/@babel/cli/lib/babel/util.js +39 -59
- package/node_modules/@babel/cli/lib/babel/util.js.map +1 -0
- package/node_modules/@babel/cli/lib/babel/watcher.js +19 -52
- package/node_modules/@babel/cli/lib/babel/watcher.js.map +1 -0
- package/node_modules/@babel/cli/lib/babel-external-helpers.js +14 -21
- package/node_modules/@babel/cli/lib/babel-external-helpers.js.map +1 -0
- package/node_modules/@babel/cli/package.json +11 -9
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +19 -29
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -1
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +19 -29
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -1
- package/node_modules/@jridgewell/resolve-uri/package.json +2 -2
- package/node_modules/@jridgewell/sourcemap-codec/README.md +147 -83
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +351 -91
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +354 -90
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +2 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
- package/node_modules/@jridgewell/sourcemap-codec/package.json +7 -7
- package/node_modules/@jridgewell/trace-mapping/README.md +5 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +202 -174
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -1
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +216 -182
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -1
- package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +1 -1
- package/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +1 -1
- package/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +1 -1
- package/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +8 -8
- package/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +33 -28
- package/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +23 -16
- package/node_modules/@jridgewell/trace-mapping/package.json +20 -18
- package/node_modules/anymatch/index.d.ts +1 -0
- package/node_modules/anymatch/index.js +1 -1
- package/node_modules/anymatch/package.json +1 -1
- package/node_modules/{form-data/README.md.bak → axios/node_modules/form-data/Readme.md} +4 -4
- package/node_modules/{superagent → axios}/node_modules/form-data/lib/form_data.js +8 -5
- package/node_modules/{superagent → axios}/node_modules/form-data/package.json +9 -6
- package/node_modules/binary-extensions/binary-extensions.json +3 -0
- package/node_modules/binary-extensions/license +2 -1
- package/node_modules/binary-extensions/package.json +4 -2
- package/node_modules/binary-extensions/readme.md +2 -18
- package/node_modules/braces/LICENSE +1 -1
- package/node_modules/braces/README.md +91 -98
- package/node_modules/braces/index.js +3 -3
- package/node_modules/braces/lib/compile.js +14 -11
- package/node_modules/braces/lib/constants.js +1 -1
- package/node_modules/braces/lib/expand.js +9 -9
- package/node_modules/braces/lib/parse.js +14 -16
- package/node_modules/braces/lib/stringify.js +4 -4
- package/node_modules/braces/lib/utils.js +13 -3
- package/node_modules/braces/package.json +2 -2
- package/node_modules/{call-bind → call-bind-apply-helpers}/.eslintrc +0 -1
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +23 -0
- package/node_modules/{call-bind → call-bind-apply-helpers}/LICENSE +1 -1
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +46 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +34 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +13 -0
- package/node_modules/call-bound/index.js +18 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/{call-bind/test/callBound.js → call-bound/test/index.js} +1 -2
- package/node_modules/call-bound/tsconfig.json +9 -0
- package/node_modules/chokidar/README.md +1 -1
- package/node_modules/chokidar/index.js +1 -1
- package/node_modules/chokidar/lib/constants.js +1 -0
- package/node_modules/chokidar/lib/fsevents-handler.js +2 -0
- package/node_modules/chokidar/package.json +5 -20
- package/node_modules/chokidar/types/index.d.ts +4 -0
- package/node_modules/cliui/CHANGELOG.md +18 -0
- package/node_modules/cliui/build/index.d.cts +43 -0
- package/node_modules/cliui/package.json +6 -6
- package/node_modules/commander/CHANGELOG.md +361 -0
- package/node_modules/{@babel/cli/node_modules/commander → commander}/Readme.md +243 -165
- package/node_modules/commander/index.js +1881 -0
- package/node_modules/{@babel/cli/node_modules/commander → commander}/package.json +19 -9
- package/node_modules/commander/typings/index.d.ts +410 -0
- package/node_modules/component-emitter/LICENSE +24 -24
- package/node_modules/component-emitter/Readme.md +74 -74
- package/node_modules/component-emitter/index.js +175 -175
- package/node_modules/component-emitter/package.json +3 -2
- package/node_modules/convert-source-map/README.md +97 -11
- package/node_modules/convert-source-map/index.js +127 -30
- package/node_modules/convert-source-map/package.json +3 -9
- package/node_modules/cookiejar/cookiejar.js +5 -0
- package/node_modules/cookiejar/package.json +1 -1
- package/node_modules/debug/README.md +1 -1
- package/node_modules/debug/package.json +10 -4
- package/node_modules/debug/src/browser.js +4 -1
- package/node_modules/debug/src/common.js +57 -39
- package/node_modules/debug/src/node.js +2 -2
- package/node_modules/dotenv/CHANGELOG.md +133 -1
- package/node_modules/dotenv/README-es.md +448 -0
- package/node_modules/dotenv/README.md +309 -66
- package/node_modules/dotenv/lib/cli-options.js +1 -1
- package/node_modules/dotenv/lib/env-options.js +4 -0
- package/node_modules/dotenv/lib/main.d.ts +85 -5
- package/node_modules/dotenv/lib/main.js +287 -35
- package/node_modules/dotenv/package.json +19 -14
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/escalade/index.d.mts +11 -0
- package/node_modules/escalade/index.d.ts +14 -2
- package/node_modules/escalade/package.json +18 -5
- package/node_modules/escalade/readme.md +1 -1
- package/node_modules/escalade/sync/index.d.mts +9 -0
- package/node_modules/escalade/sync/index.d.ts +13 -2
- package/node_modules/fill-range/index.js +4 -5
- package/node_modules/fill-range/package.json +8 -3
- package/node_modules/follow-redirects/index.js +186 -98
- package/node_modules/follow-redirects/package.json +3 -4
- package/node_modules/form-data/Readme.md +5 -7
- package/node_modules/form-data/lib/form_data.js +5 -8
- package/node_modules/form-data/package.json +9 -6
- package/node_modules/function-bind/.eslintrc +11 -5
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/README.md +25 -27
- package/node_modules/function-bind/implementation.js +44 -12
- package/node_modules/function-bind/package.json +38 -14
- package/node_modules/get-intrinsic/.eslintrc +1 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +87 -0
- package/node_modules/get-intrinsic/index.js +75 -32
- package/node_modules/get-intrinsic/package.json +31 -22
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +3 -3
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/{call-bind → get-proto}/.github/FUNDING.yml +1 -1
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +16 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +1 -0
- package/node_modules/has-symbols/package.json +19 -9
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +5 -2
- package/node_modules/has-symbols/test/shams/core-js.js +1 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +1 -0
- package/node_modules/has-symbols/test/tests.js +4 -2
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/make-dir/node_modules/semver/package.json +38 -0
- package/node_modules/{@babel/cli → make-dir}/node_modules/semver/semver.js +68 -26
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/ms/index.js +1 -1
- package/node_modules/ms/license.md +1 -1
- package/node_modules/ms/package.json +5 -4
- package/node_modules/ms/readme.md +1 -2
- package/node_modules/object-inspect/CHANGELOG.md +56 -0
- package/node_modules/object-inspect/index.js +38 -9
- package/node_modules/object-inspect/package.json +23 -13
- package/node_modules/object-inspect/readme.markdown +9 -11
- package/node_modules/object-inspect/test/global.js +17 -0
- package/node_modules/object-inspect/test/quoteStyle.js +9 -0
- package/node_modules/qs/.editorconfig +3 -0
- package/node_modules/qs/.eslintrc +3 -2
- package/node_modules/qs/CHANGELOG.md +81 -5
- package/node_modules/qs/README.md +158 -50
- package/node_modules/qs/dist/qs.js +90 -2003
- package/node_modules/qs/lib/parse.js +89 -24
- package/node_modules/qs/lib/stringify.js +61 -31
- package/node_modules/qs/lib/utils.js +54 -38
- package/node_modules/qs/package.json +29 -13
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +468 -47
- package/node_modules/qs/test/stringify.js +454 -57
- package/node_modules/qs/test/utils.js +126 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +2 -1
- package/node_modules/side-channel/CHANGELOG.md +45 -0
- package/node_modules/side-channel/README.md +60 -1
- package/node_modules/side-channel/index.d.ts +14 -0
- package/node_modules/side-channel/index.js +21 -102
- package/node_modules/side-channel/package.json +40 -22
- package/node_modules/side-channel/test/index.js +78 -52
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/{function-bind → side-channel-list}/.editorconfig +3 -14
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +113 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +104 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/superagent/node_modules/readable-stream/README.md +1 -1
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_duplex.js +12 -25
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_passthrough.js +2 -4
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_readable.js +176 -273
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_transform.js +26 -37
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_writable.js +118 -174
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/async_iterator.js +10 -37
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/buffer_list.js +20 -47
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/destroy.js +8 -17
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -19
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from.js +12 -24
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/pipeline.js +5 -16
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/state.js +2 -7
- package/node_modules/superagent/node_modules/readable-stream/package.json +1 -1
- package/node_modules/{semver → superagent/node_modules/semver}/README.md +132 -36
- package/node_modules/{semver → superagent/node_modules/semver}/bin/semver.js +22 -16
- package/node_modules/{semver → superagent/node_modules/semver}/classes/comparator.js +39 -34
- package/node_modules/{semver → superagent/node_modules/semver}/classes/range.js +72 -37
- package/node_modules/{semver → superagent/node_modules/semver}/classes/semver.js +49 -19
- package/node_modules/{semver → superagent/node_modules/semver}/functions/coerce.js +14 -6
- package/node_modules/superagent/node_modules/semver/functions/diff.js +58 -0
- package/node_modules/{semver → superagent/node_modules/semver}/functions/inc.js +3 -2
- package/node_modules/superagent/node_modules/semver/functions/parse.js +16 -0
- package/node_modules/superagent/node_modules/semver/index.js +89 -0
- package/node_modules/{semver → superagent/node_modules/semver}/internal/constants.js +20 -2
- package/node_modules/superagent/node_modules/semver/internal/lrucache.js +40 -0
- package/node_modules/superagent/node_modules/semver/internal/parse-options.js +15 -0
- package/node_modules/{semver → superagent/node_modules/semver}/internal/re.js +41 -6
- package/node_modules/{semver → superagent/node_modules/semver}/package.json +29 -26
- package/node_modules/{semver → superagent/node_modules/semver}/ranges/intersects.js +1 -1
- package/node_modules/{semver → superagent/node_modules/semver}/ranges/subset.js +6 -3
- package/node_modules/yargs/browser.d.ts +5 -0
- package/node_modules/yargs/build/index.cjs +1 -1
- package/node_modules/yargs/build/lib/command.js +2 -0
- package/node_modules/yargs/build/lib/completion.js +19 -12
- package/node_modules/yargs/build/lib/usage.js +9 -4
- package/node_modules/yargs/build/lib/yargs-factory.js +18 -3
- package/node_modules/yargs/locales/cs.json +51 -0
- package/node_modules/yargs/locales/en.json +4 -0
- package/node_modules/yargs/locales/fi.json +1 -1
- package/node_modules/yargs/package.json +4 -4
- package/node_modules/yargs-parser/CHANGELOG.md +21 -0
- package/node_modules/yargs-parser/build/index.cjs +6 -4
- package/node_modules/yargs-parser/build/lib/index.js +4 -2
- package/node_modules/yargs-parser/build/lib/yargs-parser.js +2 -2
- package/node_modules/yargs-parser/package.json +10 -6
- package/output/e3e8277b426d4bc636a8ed30e66dd056e6cc9691-corellium-cli-build.tar.gz +0 -0
- package/package.json +1 -1
- package/renovate.json +11 -58
- package/src/clients/Agent.js +40 -37
- package/src/clients/Client.js +42 -40
- package/src/clients/Instance.js +24 -24
- package/src/clients/Webplayer.js +23 -24
- package/src/commands/extensions/delete.js +26 -26
- package/src/commands/extensions/index.js +6 -11
- package/src/commands/extensions/list.js +25 -25
- package/src/commands/extensions/load.js +51 -50
- package/src/commands/extensions/validate.js +33 -38
- package/src/commands/firmware/index.js +6 -9
- package/src/commands/firmware/list.js +49 -38
- package/src/commands/firmware/load.js +45 -42
- package/src/commands/images/create.js +30 -29
- package/src/commands/images/delete.js +21 -21
- package/src/commands/images/index.js +6 -10
- package/src/commands/images/list.js +21 -20
- package/src/commands/index.js +2 -2
- package/src/commands/instances/apps/index.js +26 -23
- package/src/commands/instances/apps/install.js +14 -14
- package/src/commands/instances/apps/open.js +17 -17
- package/src/commands/instances/create.js +65 -26
- package/src/commands/instances/delete.js +24 -25
- package/src/commands/instances/file.js +36 -32
- package/src/commands/instances/get.js +23 -16
- package/src/commands/instances/index.js +8 -8
- package/src/commands/instances/input.js +16 -17
- package/src/commands/instances/list.js +38 -28
- package/src/commands/instances/netmon/disable.js +17 -15
- package/src/commands/instances/netmon/download.js +18 -16
- package/src/commands/instances/netmon/enable.js +30 -23
- package/src/commands/instances/netmon/index.js +6 -11
- package/src/commands/instances/netmon/stream.js +18 -16
- package/src/commands/instances/ready.js +30 -27
- package/src/commands/instances/restoreBackup.js +39 -36
- package/src/commands/instances/rotate.js +20 -21
- package/src/commands/instances/start.js +23 -24
- package/src/commands/instances/stop.js +20 -21
- package/src/commands/instances/unlock.js +17 -19
- package/src/commands/instances/upgrade.js +38 -34
- package/src/commands/login.js +67 -67
- package/src/commands/logout.js +10 -12
- package/src/commands/mast/constants.js +2 -2
- package/src/commands/mast/create-assessment.js +16 -16
- package/src/commands/mast/delete-assessment.js +15 -15
- package/src/commands/mast/download-report.js +18 -15
- package/src/commands/mast/get-assessment.js +14 -14
- package/src/commands/mast/get-assessments.js +13 -13
- package/src/commands/mast/index.js +7 -7
- package/src/commands/mast/start-monitor.js +15 -15
- package/src/commands/mast/stop-monitor.js +15 -15
- package/src/commands/mast/test.js +19 -16
- package/src/commands/projects/create.js +33 -32
- package/src/commands/projects/delete.js +26 -26
- package/src/commands/projects/index.js +6 -10
- package/src/commands/projects/list.js +21 -19
- package/src/commands/projects/vpnConfig.js +43 -0
- package/src/commands/webplayer/create.js +57 -50
- package/src/commands/webplayer/destroy.js +31 -28
- package/src/commands/webplayer/index.js +6 -11
- package/src/commands/webplayer/list.js +41 -42
- package/src/commands/webplayer/login.js +31 -28
- package/src/corellium-api.js +11 -11
- package/src/error.js +20 -18
- package/src/logging.js +15 -15
- package/src/profile.js +22 -22
- package/src/progress.js +6 -6
- package/src/resumable.js +606 -664
- package/src/table.js +20 -22
- package/src/upload.js +38 -38
- package/src/utils.js +63 -64
- package/test/test.js +53 -38
- package/coverage/cobertura-coverage.xml +0 -9
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -101
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -0
- package/node_modules/@babel/cli/node_modules/commander/CHANGELOG.md +0 -436
- package/node_modules/@babel/cli/node_modules/commander/index.js +0 -1649
- package/node_modules/@babel/cli/node_modules/commander/typings/index.d.ts +0 -311
- package/node_modules/@babel/cli/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/@babel/cli/node_modules/semver/package.json +0 -28
- package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +0 -198
- package/node_modules/braces/CHANGELOG.md +0 -184
- package/node_modules/call-bind/.eslintignore +0 -1
- package/node_modules/call-bind/CHANGELOG.md +0 -42
- package/node_modules/call-bind/README.md +0 -2
- package/node_modules/call-bind/callBound.js +0 -15
- package/node_modules/call-bind/index.js +0 -47
- package/node_modules/call-bind/package.json +0 -80
- package/node_modules/call-bind/test/index.js +0 -66
- package/node_modules/component-emitter/History.md +0 -75
- package/node_modules/function-bind/.jscs.json +0 -176
- package/node_modules/function-bind/.npmignore +0 -22
- package/node_modules/function-bind/.travis.yml +0 -168
- package/node_modules/has/LICENSE-MIT +0 -22
- package/node_modules/has/README.md +0 -18
- package/node_modules/has/package.json +0 -48
- package/node_modules/has/src/index.js +0 -5
- package/node_modules/has/test/index.js +0 -10
- package/node_modules/lru-cache/README.md +0 -166
- package/node_modules/lru-cache/index.js +0 -334
- package/node_modules/lru-cache/package.json +0 -34
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/functions/diff.js +0 -23
- package/node_modules/semver/functions/parse.js +0 -33
- package/node_modules/semver/index.js +0 -48
- package/node_modules/semver/internal/parse-options.js +0 -11
- package/node_modules/side-channel/.eslintignore +0 -1
- package/node_modules/superagent/node_modules/form-data/README.md.bak +0 -356
- package/node_modules/superagent/node_modules/form-data/Readme.md +0 -356
- package/node_modules/yallist/LICENSE +0 -15
- package/node_modules/yallist/README.md +0 -204
- package/node_modules/yallist/iterator.js +0 -8
- package/node_modules/yallist/package.json +0 -29
- package/node_modules/yallist/yallist.js +0 -426
- /package/node_modules/{superagent → axios}/node_modules/form-data/License +0 -0
- /package/node_modules/{superagent → axios}/node_modules/form-data/index.d.ts +0 -0
- /package/node_modules/{superagent → axios}/node_modules/form-data/lib/browser.js +0 -0
- /package/node_modules/{superagent → axios}/node_modules/form-data/lib/populate.js +0 -0
- /package/node_modules/{@babel/cli/node_modules/commander → commander}/LICENSE +0 -0
- /package/node_modules/{call-bind → dunder-proto}/.nycrc +0 -0
- /package/node_modules/{@babel/cli/node_modules/make-dir → make-dir}/index.d.ts +0 -0
- /package/node_modules/{@babel/cli/node_modules/make-dir → make-dir}/index.js +0 -0
- /package/node_modules/{@babel/cli/node_modules/make-dir → make-dir}/license +0 -0
- /package/node_modules/{@babel/cli → make-dir}/node_modules/semver/LICENSE +0 -0
- /package/node_modules/{@babel/cli → make-dir}/node_modules/semver/README.md +0 -0
- /package/node_modules/{@babel/cli → make-dir}/node_modules/semver/bin/semver +0 -0
- /package/node_modules/{@babel/cli → make-dir}/node_modules/semver/range.bnf +0 -0
- /package/node_modules/{@babel/cli/node_modules/make-dir → make-dir}/package.json +0 -0
- /package/node_modules/{@babel/cli/node_modules/make-dir → make-dir}/readme.md +0 -0
- /package/node_modules/{@babel/cli/node_modules/pify → pify}/index.js +0 -0
- /package/node_modules/{@babel/cli/node_modules/pify → pify}/license +0 -0
- /package/node_modules/{@babel/cli/node_modules/pify → pify}/package.json +0 -0
- /package/node_modules/{@babel/cli/node_modules/pify → pify}/readme.md +0 -0
- /package/node_modules/{@babel/cli/node_modules/slash → slash}/index.js +0 -0
- /package/node_modules/{@babel/cli/node_modules/slash → slash}/license +0 -0
- /package/node_modules/{@babel/cli/node_modules/slash → slash}/package.json +0 -0
- /package/node_modules/{@babel/cli/node_modules/slash → slash}/readme.md +0 -0
- /package/node_modules/{lru-cache → superagent/node_modules/semver}/LICENSE +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/classes/index.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/clean.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/cmp.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/compare-build.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/compare-loose.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/compare.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/eq.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/gt.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/gte.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/lt.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/lte.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/major.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/minor.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/neq.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/patch.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/prerelease.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/rcompare.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/rsort.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/satisfies.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/sort.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/functions/valid.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/internal/debug.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/internal/identifiers.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/preload.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/range.bnf +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/gtr.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/ltr.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/max-satisfying.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/min-satisfying.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/min-version.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/outside.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/simplify.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/to-comparators.js +0 -0
- /package/node_modules/{semver → superagent/node_modules/semver}/ranges/valid.js +0 -0
@@ -8,6 +8,42 @@ for (let i = 0; i < chars.length; i++) {
|
|
8
8
|
intToChar[i] = c;
|
9
9
|
charToInt[c] = i;
|
10
10
|
}
|
11
|
+
function decodeInteger(reader, relative) {
|
12
|
+
let value = 0;
|
13
|
+
let shift = 0;
|
14
|
+
let integer = 0;
|
15
|
+
do {
|
16
|
+
const c = reader.next();
|
17
|
+
integer = charToInt[c];
|
18
|
+
value |= (integer & 31) << shift;
|
19
|
+
shift += 5;
|
20
|
+
} while (integer & 32);
|
21
|
+
const shouldNegate = value & 1;
|
22
|
+
value >>>= 1;
|
23
|
+
if (shouldNegate) {
|
24
|
+
value = -0x80000000 | -value;
|
25
|
+
}
|
26
|
+
return relative + value;
|
27
|
+
}
|
28
|
+
function encodeInteger(builder, num, relative) {
|
29
|
+
let delta = num - relative;
|
30
|
+
delta = delta < 0 ? (-delta << 1) | 1 : delta << 1;
|
31
|
+
do {
|
32
|
+
let clamped = delta & 0b011111;
|
33
|
+
delta >>>= 5;
|
34
|
+
if (delta > 0)
|
35
|
+
clamped |= 0b100000;
|
36
|
+
builder.write(intToChar[clamped]);
|
37
|
+
} while (delta > 0);
|
38
|
+
return num;
|
39
|
+
}
|
40
|
+
function hasMoreVlq(reader, max) {
|
41
|
+
if (reader.pos >= max)
|
42
|
+
return false;
|
43
|
+
return reader.peek() !== comma;
|
44
|
+
}
|
45
|
+
|
46
|
+
const bufLength = 1024 * 16;
|
11
47
|
// Provide a fallback for older environments.
|
12
48
|
const td = typeof TextDecoder !== 'undefined'
|
13
49
|
? /* #__PURE__ */ new TextDecoder()
|
@@ -27,74 +63,326 @@ const td = typeof TextDecoder !== 'undefined'
|
|
27
63
|
return out;
|
28
64
|
},
|
29
65
|
};
|
66
|
+
class StringWriter {
|
67
|
+
constructor() {
|
68
|
+
this.pos = 0;
|
69
|
+
this.out = '';
|
70
|
+
this.buffer = new Uint8Array(bufLength);
|
71
|
+
}
|
72
|
+
write(v) {
|
73
|
+
const { buffer } = this;
|
74
|
+
buffer[this.pos++] = v;
|
75
|
+
if (this.pos === bufLength) {
|
76
|
+
this.out += td.decode(buffer);
|
77
|
+
this.pos = 0;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
flush() {
|
81
|
+
const { buffer, out, pos } = this;
|
82
|
+
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
class StringReader {
|
86
|
+
constructor(buffer) {
|
87
|
+
this.pos = 0;
|
88
|
+
this.buffer = buffer;
|
89
|
+
}
|
90
|
+
next() {
|
91
|
+
return this.buffer.charCodeAt(this.pos++);
|
92
|
+
}
|
93
|
+
peek() {
|
94
|
+
return this.buffer.charCodeAt(this.pos);
|
95
|
+
}
|
96
|
+
indexOf(char) {
|
97
|
+
const { buffer, pos } = this;
|
98
|
+
const idx = buffer.indexOf(char, pos);
|
99
|
+
return idx === -1 ? buffer.length : idx;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
const EMPTY = [];
|
104
|
+
function decodeOriginalScopes(input) {
|
105
|
+
const { length } = input;
|
106
|
+
const reader = new StringReader(input);
|
107
|
+
const scopes = [];
|
108
|
+
const stack = [];
|
109
|
+
let line = 0;
|
110
|
+
for (; reader.pos < length; reader.pos++) {
|
111
|
+
line = decodeInteger(reader, line);
|
112
|
+
const column = decodeInteger(reader, 0);
|
113
|
+
if (!hasMoreVlq(reader, length)) {
|
114
|
+
const last = stack.pop();
|
115
|
+
last[2] = line;
|
116
|
+
last[3] = column;
|
117
|
+
continue;
|
118
|
+
}
|
119
|
+
const kind = decodeInteger(reader, 0);
|
120
|
+
const fields = decodeInteger(reader, 0);
|
121
|
+
const hasName = fields & 0b0001;
|
122
|
+
const scope = (hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]);
|
123
|
+
let vars = EMPTY;
|
124
|
+
if (hasMoreVlq(reader, length)) {
|
125
|
+
vars = [];
|
126
|
+
do {
|
127
|
+
const varsIndex = decodeInteger(reader, 0);
|
128
|
+
vars.push(varsIndex);
|
129
|
+
} while (hasMoreVlq(reader, length));
|
130
|
+
}
|
131
|
+
scope.vars = vars;
|
132
|
+
scopes.push(scope);
|
133
|
+
stack.push(scope);
|
134
|
+
}
|
135
|
+
return scopes;
|
136
|
+
}
|
137
|
+
function encodeOriginalScopes(scopes) {
|
138
|
+
const writer = new StringWriter();
|
139
|
+
for (let i = 0; i < scopes.length;) {
|
140
|
+
i = _encodeOriginalScopes(scopes, i, writer, [0]);
|
141
|
+
}
|
142
|
+
return writer.flush();
|
143
|
+
}
|
144
|
+
function _encodeOriginalScopes(scopes, index, writer, state) {
|
145
|
+
const scope = scopes[index];
|
146
|
+
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
|
147
|
+
if (index > 0)
|
148
|
+
writer.write(comma);
|
149
|
+
state[0] = encodeInteger(writer, startLine, state[0]);
|
150
|
+
encodeInteger(writer, startColumn, 0);
|
151
|
+
encodeInteger(writer, kind, 0);
|
152
|
+
const fields = scope.length === 6 ? 0b0001 : 0;
|
153
|
+
encodeInteger(writer, fields, 0);
|
154
|
+
if (scope.length === 6)
|
155
|
+
encodeInteger(writer, scope[5], 0);
|
156
|
+
for (const v of vars) {
|
157
|
+
encodeInteger(writer, v, 0);
|
158
|
+
}
|
159
|
+
for (index++; index < scopes.length;) {
|
160
|
+
const next = scopes[index];
|
161
|
+
const { 0: l, 1: c } = next;
|
162
|
+
if (l > endLine || (l === endLine && c >= endColumn)) {
|
163
|
+
break;
|
164
|
+
}
|
165
|
+
index = _encodeOriginalScopes(scopes, index, writer, state);
|
166
|
+
}
|
167
|
+
writer.write(comma);
|
168
|
+
state[0] = encodeInteger(writer, endLine, state[0]);
|
169
|
+
encodeInteger(writer, endColumn, 0);
|
170
|
+
return index;
|
171
|
+
}
|
172
|
+
function decodeGeneratedRanges(input) {
|
173
|
+
const { length } = input;
|
174
|
+
const reader = new StringReader(input);
|
175
|
+
const ranges = [];
|
176
|
+
const stack = [];
|
177
|
+
let genLine = 0;
|
178
|
+
let definitionSourcesIndex = 0;
|
179
|
+
let definitionScopeIndex = 0;
|
180
|
+
let callsiteSourcesIndex = 0;
|
181
|
+
let callsiteLine = 0;
|
182
|
+
let callsiteColumn = 0;
|
183
|
+
let bindingLine = 0;
|
184
|
+
let bindingColumn = 0;
|
185
|
+
do {
|
186
|
+
const semi = reader.indexOf(';');
|
187
|
+
let genColumn = 0;
|
188
|
+
for (; reader.pos < semi; reader.pos++) {
|
189
|
+
genColumn = decodeInteger(reader, genColumn);
|
190
|
+
if (!hasMoreVlq(reader, semi)) {
|
191
|
+
const last = stack.pop();
|
192
|
+
last[2] = genLine;
|
193
|
+
last[3] = genColumn;
|
194
|
+
continue;
|
195
|
+
}
|
196
|
+
const fields = decodeInteger(reader, 0);
|
197
|
+
const hasDefinition = fields & 0b0001;
|
198
|
+
const hasCallsite = fields & 0b0010;
|
199
|
+
const hasScope = fields & 0b0100;
|
200
|
+
let callsite = null;
|
201
|
+
let bindings = EMPTY;
|
202
|
+
let range;
|
203
|
+
if (hasDefinition) {
|
204
|
+
const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);
|
205
|
+
definitionScopeIndex = decodeInteger(reader, definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);
|
206
|
+
definitionSourcesIndex = defSourcesIndex;
|
207
|
+
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
|
208
|
+
}
|
209
|
+
else {
|
210
|
+
range = [genLine, genColumn, 0, 0];
|
211
|
+
}
|
212
|
+
range.isScope = !!hasScope;
|
213
|
+
if (hasCallsite) {
|
214
|
+
const prevCsi = callsiteSourcesIndex;
|
215
|
+
const prevLine = callsiteLine;
|
216
|
+
callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);
|
217
|
+
const sameSource = prevCsi === callsiteSourcesIndex;
|
218
|
+
callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);
|
219
|
+
callsiteColumn = decodeInteger(reader, sameSource && prevLine === callsiteLine ? callsiteColumn : 0);
|
220
|
+
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
221
|
+
}
|
222
|
+
range.callsite = callsite;
|
223
|
+
if (hasMoreVlq(reader, semi)) {
|
224
|
+
bindings = [];
|
225
|
+
do {
|
226
|
+
bindingLine = genLine;
|
227
|
+
bindingColumn = genColumn;
|
228
|
+
const expressionsCount = decodeInteger(reader, 0);
|
229
|
+
let expressionRanges;
|
230
|
+
if (expressionsCount < -1) {
|
231
|
+
expressionRanges = [[decodeInteger(reader, 0)]];
|
232
|
+
for (let i = -1; i > expressionsCount; i--) {
|
233
|
+
const prevBl = bindingLine;
|
234
|
+
bindingLine = decodeInteger(reader, bindingLine);
|
235
|
+
bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);
|
236
|
+
const expression = decodeInteger(reader, 0);
|
237
|
+
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
238
|
+
}
|
239
|
+
}
|
240
|
+
else {
|
241
|
+
expressionRanges = [[expressionsCount]];
|
242
|
+
}
|
243
|
+
bindings.push(expressionRanges);
|
244
|
+
} while (hasMoreVlq(reader, semi));
|
245
|
+
}
|
246
|
+
range.bindings = bindings;
|
247
|
+
ranges.push(range);
|
248
|
+
stack.push(range);
|
249
|
+
}
|
250
|
+
genLine++;
|
251
|
+
reader.pos = semi + 1;
|
252
|
+
} while (reader.pos < length);
|
253
|
+
return ranges;
|
254
|
+
}
|
255
|
+
function encodeGeneratedRanges(ranges) {
|
256
|
+
if (ranges.length === 0)
|
257
|
+
return '';
|
258
|
+
const writer = new StringWriter();
|
259
|
+
for (let i = 0; i < ranges.length;) {
|
260
|
+
i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);
|
261
|
+
}
|
262
|
+
return writer.flush();
|
263
|
+
}
|
264
|
+
function _encodeGeneratedRanges(ranges, index, writer, state) {
|
265
|
+
const range = ranges[index];
|
266
|
+
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, isScope, callsite, bindings, } = range;
|
267
|
+
if (state[0] < startLine) {
|
268
|
+
catchupLine(writer, state[0], startLine);
|
269
|
+
state[0] = startLine;
|
270
|
+
state[1] = 0;
|
271
|
+
}
|
272
|
+
else if (index > 0) {
|
273
|
+
writer.write(comma);
|
274
|
+
}
|
275
|
+
state[1] = encodeInteger(writer, range[1], state[1]);
|
276
|
+
const fields = (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0);
|
277
|
+
encodeInteger(writer, fields, 0);
|
278
|
+
if (range.length === 6) {
|
279
|
+
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
280
|
+
if (sourcesIndex !== state[2]) {
|
281
|
+
state[3] = 0;
|
282
|
+
}
|
283
|
+
state[2] = encodeInteger(writer, sourcesIndex, state[2]);
|
284
|
+
state[3] = encodeInteger(writer, scopesIndex, state[3]);
|
285
|
+
}
|
286
|
+
if (callsite) {
|
287
|
+
const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
|
288
|
+
if (sourcesIndex !== state[4]) {
|
289
|
+
state[5] = 0;
|
290
|
+
state[6] = 0;
|
291
|
+
}
|
292
|
+
else if (callLine !== state[5]) {
|
293
|
+
state[6] = 0;
|
294
|
+
}
|
295
|
+
state[4] = encodeInteger(writer, sourcesIndex, state[4]);
|
296
|
+
state[5] = encodeInteger(writer, callLine, state[5]);
|
297
|
+
state[6] = encodeInteger(writer, callColumn, state[6]);
|
298
|
+
}
|
299
|
+
if (bindings) {
|
300
|
+
for (const binding of bindings) {
|
301
|
+
if (binding.length > 1)
|
302
|
+
encodeInteger(writer, -binding.length, 0);
|
303
|
+
const expression = binding[0][0];
|
304
|
+
encodeInteger(writer, expression, 0);
|
305
|
+
let bindingStartLine = startLine;
|
306
|
+
let bindingStartColumn = startColumn;
|
307
|
+
for (let i = 1; i < binding.length; i++) {
|
308
|
+
const expRange = binding[i];
|
309
|
+
bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine);
|
310
|
+
bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn);
|
311
|
+
encodeInteger(writer, expRange[0], 0);
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
315
|
+
for (index++; index < ranges.length;) {
|
316
|
+
const next = ranges[index];
|
317
|
+
const { 0: l, 1: c } = next;
|
318
|
+
if (l > endLine || (l === endLine && c >= endColumn)) {
|
319
|
+
break;
|
320
|
+
}
|
321
|
+
index = _encodeGeneratedRanges(ranges, index, writer, state);
|
322
|
+
}
|
323
|
+
if (state[0] < endLine) {
|
324
|
+
catchupLine(writer, state[0], endLine);
|
325
|
+
state[0] = endLine;
|
326
|
+
state[1] = 0;
|
327
|
+
}
|
328
|
+
else {
|
329
|
+
writer.write(comma);
|
330
|
+
}
|
331
|
+
state[1] = encodeInteger(writer, endColumn, state[1]);
|
332
|
+
return index;
|
333
|
+
}
|
334
|
+
function catchupLine(writer, lastLine, line) {
|
335
|
+
do {
|
336
|
+
writer.write(semicolon);
|
337
|
+
} while (++lastLine < line);
|
338
|
+
}
|
339
|
+
|
30
340
|
function decode(mappings) {
|
31
|
-
const
|
341
|
+
const { length } = mappings;
|
342
|
+
const reader = new StringReader(mappings);
|
32
343
|
const decoded = [];
|
33
|
-
let
|
344
|
+
let genColumn = 0;
|
345
|
+
let sourcesIndex = 0;
|
346
|
+
let sourceLine = 0;
|
347
|
+
let sourceColumn = 0;
|
348
|
+
let namesIndex = 0;
|
34
349
|
do {
|
35
|
-
const semi = indexOf(
|
350
|
+
const semi = reader.indexOf(';');
|
36
351
|
const line = [];
|
37
352
|
let sorted = true;
|
38
353
|
let lastCol = 0;
|
39
|
-
|
40
|
-
|
354
|
+
genColumn = 0;
|
355
|
+
while (reader.pos < semi) {
|
41
356
|
let seg;
|
42
|
-
|
43
|
-
|
44
|
-
if (col < lastCol)
|
357
|
+
genColumn = decodeInteger(reader, genColumn);
|
358
|
+
if (genColumn < lastCol)
|
45
359
|
sorted = false;
|
46
|
-
lastCol =
|
47
|
-
if (hasMoreVlq(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
if (hasMoreVlq(
|
52
|
-
|
53
|
-
seg = [
|
360
|
+
lastCol = genColumn;
|
361
|
+
if (hasMoreVlq(reader, semi)) {
|
362
|
+
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
363
|
+
sourceLine = decodeInteger(reader, sourceLine);
|
364
|
+
sourceColumn = decodeInteger(reader, sourceColumn);
|
365
|
+
if (hasMoreVlq(reader, semi)) {
|
366
|
+
namesIndex = decodeInteger(reader, namesIndex);
|
367
|
+
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
54
368
|
}
|
55
369
|
else {
|
56
|
-
seg = [
|
370
|
+
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
57
371
|
}
|
58
372
|
}
|
59
373
|
else {
|
60
|
-
seg = [
|
374
|
+
seg = [genColumn];
|
61
375
|
}
|
62
376
|
line.push(seg);
|
377
|
+
reader.pos++;
|
63
378
|
}
|
64
379
|
if (!sorted)
|
65
380
|
sort(line);
|
66
381
|
decoded.push(line);
|
67
|
-
|
68
|
-
} while (
|
382
|
+
reader.pos = semi + 1;
|
383
|
+
} while (reader.pos <= length);
|
69
384
|
return decoded;
|
70
385
|
}
|
71
|
-
function indexOf(mappings, index) {
|
72
|
-
const idx = mappings.indexOf(';', index);
|
73
|
-
return idx === -1 ? mappings.length : idx;
|
74
|
-
}
|
75
|
-
function decodeInteger(mappings, pos, state, j) {
|
76
|
-
let value = 0;
|
77
|
-
let shift = 0;
|
78
|
-
let integer = 0;
|
79
|
-
do {
|
80
|
-
const c = mappings.charCodeAt(pos++);
|
81
|
-
integer = charToInt[c];
|
82
|
-
value |= (integer & 31) << shift;
|
83
|
-
shift += 5;
|
84
|
-
} while (integer & 32);
|
85
|
-
const shouldNegate = value & 1;
|
86
|
-
value >>>= 1;
|
87
|
-
if (shouldNegate) {
|
88
|
-
value = -0x80000000 | -value;
|
89
|
-
}
|
90
|
-
state[j] += value;
|
91
|
-
return pos;
|
92
|
-
}
|
93
|
-
function hasMoreVlq(mappings, i, length) {
|
94
|
-
if (i >= length)
|
95
|
-
return false;
|
96
|
-
return mappings.charCodeAt(i) !== comma;
|
97
|
-
}
|
98
386
|
function sort(line) {
|
99
387
|
line.sort(sortComparator);
|
100
388
|
}
|
@@ -102,63 +390,35 @@ function sortComparator(a, b) {
|
|
102
390
|
return a[0] - b[0];
|
103
391
|
}
|
104
392
|
function encode(decoded) {
|
105
|
-
const
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
let pos = 0;
|
111
|
-
let out = '';
|
393
|
+
const writer = new StringWriter();
|
394
|
+
let sourcesIndex = 0;
|
395
|
+
let sourceLine = 0;
|
396
|
+
let sourceColumn = 0;
|
397
|
+
let namesIndex = 0;
|
112
398
|
for (let i = 0; i < decoded.length; i++) {
|
113
399
|
const line = decoded[i];
|
114
|
-
if (i > 0)
|
115
|
-
|
116
|
-
out += td.decode(buf);
|
117
|
-
pos = 0;
|
118
|
-
}
|
119
|
-
buf[pos++] = semicolon;
|
120
|
-
}
|
400
|
+
if (i > 0)
|
401
|
+
writer.write(semicolon);
|
121
402
|
if (line.length === 0)
|
122
403
|
continue;
|
123
|
-
|
404
|
+
let genColumn = 0;
|
124
405
|
for (let j = 0; j < line.length; j++) {
|
125
406
|
const segment = line[j];
|
126
|
-
// We can push up to 5 ints, each int can take at most 7 chars, and we
|
127
|
-
// may push a comma.
|
128
|
-
if (pos > subLength) {
|
129
|
-
out += td.decode(sub);
|
130
|
-
buf.copyWithin(0, subLength, pos);
|
131
|
-
pos -= subLength;
|
132
|
-
}
|
133
407
|
if (j > 0)
|
134
|
-
|
135
|
-
|
408
|
+
writer.write(comma);
|
409
|
+
genColumn = encodeInteger(writer, segment[0], genColumn);
|
136
410
|
if (segment.length === 1)
|
137
411
|
continue;
|
138
|
-
|
139
|
-
|
140
|
-
|
412
|
+
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
413
|
+
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
414
|
+
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
141
415
|
if (segment.length === 4)
|
142
416
|
continue;
|
143
|
-
|
417
|
+
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
144
418
|
}
|
145
419
|
}
|
146
|
-
return
|
147
|
-
}
|
148
|
-
function encodeInteger(buf, pos, state, segment, j) {
|
149
|
-
const next = segment[j];
|
150
|
-
let num = next - state[j];
|
151
|
-
state[j] = next;
|
152
|
-
num = num < 0 ? (-num << 1) | 1 : num << 1;
|
153
|
-
do {
|
154
|
-
let clamped = num & 0b011111;
|
155
|
-
num >>>= 5;
|
156
|
-
if (num > 0)
|
157
|
-
clamped |= 0b100000;
|
158
|
-
buf[pos++] = intToChar[clamped];
|
159
|
-
} while (num > 0);
|
160
|
-
return pos;
|
420
|
+
return writer.flush();
|
161
421
|
}
|
162
422
|
|
163
|
-
export { decode, encode };
|
423
|
+
export { decode, decodeGeneratedRanges, decodeOriginalScopes, encode, encodeGeneratedRanges, encodeOriginalScopes };
|
164
424
|
//# sourceMappingURL=sourcemap-codec.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sourcemap-codec.mjs","sources":["../src/sourcemap-codec.ts"],"sourcesContent":[null],"names":[],"mappings":"AAOA,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,SAAS,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACpC,MAAM,KAAK,GAAG,kEAAkE,CAAC;AACjF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AACrC,MAAM,SAAS,GAAG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AC;AAED,SAAS,aAAa,CACpB,GAAe,EACf,GAAW,EACX,KAAuB,EACvB,OAAyB,EACzB,CAAS;IAET,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACxB,IAAI,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAEhB,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC;IAC3C,GAAG;QACD,IAAI,OAAO,GAAG,GAAG,GAAG,QAAQ,CAAC;QAC7B,GAAG,MAAM,CAAC,CAAC;QACX,IAAI,GAAG,GAAG,CAAC;YAAE,OAAO,IAAI,QAAQ,CAAC;QACjC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;KACjC,QAAQ,GAAG,GAAG,CAAC,EAAE;IAElB,OAAO,GAAG,CAAC;AACb;;;;"}
|
1
|
+
{"version":3,"file":"sourcemap-codec.mjs","sources":["../src/vlq.ts","../src/strings.ts","../src/scopes.ts","../src/sourcemap-codec.ts"],"sourcesContent":["import type { StringReader, StringWriter } from './strings';\n\nexport const comma = ','.charCodeAt(0);\nexport const semicolon = ';'.charCodeAt(0);\n\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\n\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\n\nexport function decodeInteger(reader: StringReader, relative: number): number {\n let value = 0;\n let shift = 0;\n let integer = 0;\n\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n\n const shouldNegate = value & 1;\n value >>>= 1;\n\n if (shouldNegate) {\n value = -0x80000000 | -value;\n }\n\n return relative + value;\n}\n\nexport function encodeInteger(builder: StringWriter, num: number, relative: number): number {\n let delta = num - relative;\n\n delta = delta < 0 ? (-delta << 1) | 1 : delta << 1;\n do {\n let clamped = delta & 0b011111;\n delta >>>= 5;\n if (delta > 0) clamped |= 0b100000;\n builder.write(intToChar[clamped]);\n } while (delta > 0);\n\n return num;\n}\n\nexport function hasMoreVlq(reader: StringReader, max: number) {\n if (reader.pos >= max) return false;\n return reader.peek() !== comma;\n}\n","const bufLength = 1024 * 16;\n\n// Provide a fallback for older environments.\nconst td =\n typeof TextDecoder !== 'undefined'\n ? /* #__PURE__ */ new TextDecoder()\n : typeof Buffer !== 'undefined'\n ? {\n decode(buf: Uint8Array): string {\n const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);\n return out.toString();\n },\n }\n : {\n decode(buf: Uint8Array): string {\n let out = '';\n for (let i = 0; i < buf.length; i++) {\n out += String.fromCharCode(buf[i]);\n }\n return out;\n },\n };\n\nexport class StringWriter {\n pos = 0;\n private out = '';\n private buffer = new Uint8Array(bufLength);\n\n write(v: number): void {\n const { buffer } = this;\n buffer[this.pos++] = v;\n if (this.pos === bufLength) {\n this.out += td.decode(buffer);\n this.pos = 0;\n }\n }\n\n flush(): string {\n const { buffer, out, pos } = this;\n return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;\n }\n}\n\nexport class StringReader {\n pos = 0;\n private declare buffer: string;\n\n constructor(buffer: string) {\n this.buffer = buffer;\n }\n\n next(): number {\n return this.buffer.charCodeAt(this.pos++);\n }\n\n peek(): number {\n return this.buffer.charCodeAt(this.pos);\n }\n\n indexOf(char: string): number {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n}\n","import { StringReader, StringWriter } from './strings';\nimport { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq';\n\nconst EMPTY: any[] = [];\n\ntype Line = number;\ntype Column = number;\ntype Kind = number;\ntype Name = number;\ntype Var = number;\ntype SourcesIndex = number;\ntype ScopesIndex = number;\n\ntype Mix<A, B, O> = (A & O) | (B & O);\n\nexport type OriginalScope = Mix<\n [Line, Column, Line, Column, Kind],\n [Line, Column, Line, Column, Kind, Name],\n { vars: Var[] }\n>;\n\nexport type GeneratedRange = Mix<\n [Line, Column, Line, Column],\n [Line, Column, Line, Column, SourcesIndex, ScopesIndex],\n {\n callsite: CallSite | null;\n bindings: Binding[];\n isScope: boolean;\n }\n>;\nexport type CallSite = [SourcesIndex, Line, Column];\ntype Binding = BindingExpressionRange[];\nexport type BindingExpressionRange = [Name] | [Name, Line, Column];\n\nexport function decodeOriginalScopes(input: string): OriginalScope[] {\n const { length } = input;\n const reader = new StringReader(input);\n const scopes: OriginalScope[] = [];\n const stack: OriginalScope[] = [];\n let line = 0;\n\n for (; reader.pos < length; reader.pos++) {\n line = decodeInteger(reader, line);\n const column = decodeInteger(reader, 0);\n\n if (!hasMoreVlq(reader, length)) {\n const last = stack.pop()!;\n last[2] = line;\n last[3] = column;\n continue;\n }\n\n const kind = decodeInteger(reader, 0);\n const fields = decodeInteger(reader, 0);\n const hasName = fields & 0b0001;\n\n const scope: OriginalScope = (\n hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]\n ) as OriginalScope;\n\n let vars: Var[] = EMPTY;\n if (hasMoreVlq(reader, length)) {\n vars = [];\n do {\n const varsIndex = decodeInteger(reader, 0);\n vars.push(varsIndex);\n } while (hasMoreVlq(reader, length));\n }\n scope.vars = vars;\n\n scopes.push(scope);\n stack.push(scope);\n }\n\n return scopes;\n}\n\nexport function encodeOriginalScopes(scopes: OriginalScope[]): string {\n const writer = new StringWriter();\n\n for (let i = 0; i < scopes.length; ) {\n i = _encodeOriginalScopes(scopes, i, writer, [0]);\n }\n\n return writer.flush();\n}\n\nfunction _encodeOriginalScopes(\n scopes: OriginalScope[],\n index: number,\n writer: StringWriter,\n state: [\n number, // GenColumn\n ],\n): number {\n const scope = scopes[index];\n const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;\n\n if (index > 0) writer.write(comma);\n\n state[0] = encodeInteger(writer, startLine, state[0]);\n encodeInteger(writer, startColumn, 0);\n encodeInteger(writer, kind, 0);\n\n const fields = scope.length === 6 ? 0b0001 : 0;\n encodeInteger(writer, fields, 0);\n if (scope.length === 6) encodeInteger(writer, scope[5], 0);\n\n for (const v of vars) {\n encodeInteger(writer, v, 0);\n }\n\n for (index++; index < scopes.length; ) {\n const next = scopes[index];\n const { 0: l, 1: c } = next;\n if (l > endLine || (l === endLine && c >= endColumn)) {\n break;\n }\n index = _encodeOriginalScopes(scopes, index, writer, state);\n }\n\n writer.write(comma);\n state[0] = encodeInteger(writer, endLine, state[0]);\n encodeInteger(writer, endColumn, 0);\n\n return index;\n}\n\nexport function decodeGeneratedRanges(input: string): GeneratedRange[] {\n const { length } = input;\n const reader = new StringReader(input);\n const ranges: GeneratedRange[] = [];\n const stack: GeneratedRange[] = [];\n\n let genLine = 0;\n let definitionSourcesIndex = 0;\n let definitionScopeIndex = 0;\n let callsiteSourcesIndex = 0;\n let callsiteLine = 0;\n let callsiteColumn = 0;\n let bindingLine = 0;\n let bindingColumn = 0;\n\n do {\n const semi = reader.indexOf(';');\n let genColumn = 0;\n\n for (; reader.pos < semi; reader.pos++) {\n genColumn = decodeInteger(reader, genColumn);\n\n if (!hasMoreVlq(reader, semi)) {\n const last = stack.pop()!;\n last[2] = genLine;\n last[3] = genColumn;\n continue;\n }\n\n const fields = decodeInteger(reader, 0);\n const hasDefinition = fields & 0b0001;\n const hasCallsite = fields & 0b0010;\n const hasScope = fields & 0b0100;\n\n let callsite: CallSite | null = null;\n let bindings: Binding[] = EMPTY;\n let range: GeneratedRange;\n if (hasDefinition) {\n const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);\n definitionScopeIndex = decodeInteger(\n reader,\n definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0,\n );\n\n definitionSourcesIndex = defSourcesIndex;\n range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex] as GeneratedRange;\n } else {\n range = [genLine, genColumn, 0, 0] as GeneratedRange;\n }\n\n range.isScope = !!hasScope;\n\n if (hasCallsite) {\n const prevCsi = callsiteSourcesIndex;\n const prevLine = callsiteLine;\n callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);\n const sameSource = prevCsi === callsiteSourcesIndex;\n callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);\n callsiteColumn = decodeInteger(\n reader,\n sameSource && prevLine === callsiteLine ? callsiteColumn : 0,\n );\n\n callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];\n }\n range.callsite = callsite;\n\n if (hasMoreVlq(reader, semi)) {\n bindings = [];\n do {\n bindingLine = genLine;\n bindingColumn = genColumn;\n const expressionsCount = decodeInteger(reader, 0);\n let expressionRanges: BindingExpressionRange[];\n if (expressionsCount < -1) {\n expressionRanges = [[decodeInteger(reader, 0)]];\n for (let i = -1; i > expressionsCount; i--) {\n const prevBl = bindingLine;\n bindingLine = decodeInteger(reader, bindingLine);\n bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);\n const expression = decodeInteger(reader, 0);\n expressionRanges.push([expression, bindingLine, bindingColumn]);\n }\n } else {\n expressionRanges = [[expressionsCount]];\n }\n bindings.push(expressionRanges);\n } while (hasMoreVlq(reader, semi));\n }\n range.bindings = bindings;\n\n ranges.push(range);\n stack.push(range);\n }\n\n genLine++;\n reader.pos = semi + 1;\n } while (reader.pos < length);\n\n return ranges;\n}\n\nexport function encodeGeneratedRanges(ranges: GeneratedRange[]): string {\n if (ranges.length === 0) return '';\n\n const writer = new StringWriter();\n\n for (let i = 0; i < ranges.length; ) {\n i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);\n }\n\n return writer.flush();\n}\n\nfunction _encodeGeneratedRanges(\n ranges: GeneratedRange[],\n index: number,\n writer: StringWriter,\n state: [\n number, // GenLine\n number, // GenColumn\n number, // DefSourcesIndex\n number, // DefScopesIndex\n number, // CallSourcesIndex\n number, // CallLine\n number, // CallColumn\n ],\n): number {\n const range = ranges[index];\n const {\n 0: startLine,\n 1: startColumn,\n 2: endLine,\n 3: endColumn,\n isScope,\n callsite,\n bindings,\n } = range;\n\n if (state[0] < startLine) {\n catchupLine(writer, state[0], startLine);\n state[0] = startLine;\n state[1] = 0;\n } else if (index > 0) {\n writer.write(comma);\n }\n\n state[1] = encodeInteger(writer, range[1], state[1]);\n\n const fields =\n (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0);\n encodeInteger(writer, fields, 0);\n\n if (range.length === 6) {\n const { 4: sourcesIndex, 5: scopesIndex } = range;\n if (sourcesIndex !== state[2]) {\n state[3] = 0;\n }\n state[2] = encodeInteger(writer, sourcesIndex, state[2]);\n state[3] = encodeInteger(writer, scopesIndex, state[3]);\n }\n\n if (callsite) {\n const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite!;\n if (sourcesIndex !== state[4]) {\n state[5] = 0;\n state[6] = 0;\n } else if (callLine !== state[5]) {\n state[6] = 0;\n }\n state[4] = encodeInteger(writer, sourcesIndex, state[4]);\n state[5] = encodeInteger(writer, callLine, state[5]);\n state[6] = encodeInteger(writer, callColumn, state[6]);\n }\n\n if (bindings) {\n for (const binding of bindings) {\n if (binding.length > 1) encodeInteger(writer, -binding.length, 0);\n const expression = binding[0][0];\n encodeInteger(writer, expression, 0);\n let bindingStartLine = startLine;\n let bindingStartColumn = startColumn;\n for (let i = 1; i < binding.length; i++) {\n const expRange = binding[i];\n bindingStartLine = encodeInteger(writer, expRange[1]!, bindingStartLine);\n bindingStartColumn = encodeInteger(writer, expRange[2]!, bindingStartColumn);\n encodeInteger(writer, expRange[0]!, 0);\n }\n }\n }\n\n for (index++; index < ranges.length; ) {\n const next = ranges[index];\n const { 0: l, 1: c } = next;\n if (l > endLine || (l === endLine && c >= endColumn)) {\n break;\n }\n index = _encodeGeneratedRanges(ranges, index, writer, state);\n }\n\n if (state[0] < endLine) {\n catchupLine(writer, state[0], endLine);\n state[0] = endLine;\n state[1] = 0;\n } else {\n writer.write(comma);\n }\n state[1] = encodeInteger(writer, endColumn, state[1]);\n\n return index;\n}\n\nfunction catchupLine(writer: StringWriter, lastLine: number, line: number) {\n do {\n writer.write(semicolon);\n } while (++lastLine < line);\n}\n","import { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq';\nimport { StringWriter, StringReader } from './strings';\n\nexport {\n decodeOriginalScopes,\n encodeOriginalScopes,\n decodeGeneratedRanges,\n encodeGeneratedRanges,\n} from './scopes';\nexport type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes';\n\nexport type SourceMapSegment =\n | [number]\n | [number, number, number, number]\n | [number, number, number, number, number];\nexport type SourceMapLine = SourceMapSegment[];\nexport type SourceMapMappings = SourceMapLine[];\n\nexport function decode(mappings: string): SourceMapMappings {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded: SourceMapMappings = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n\n do {\n const semi = reader.indexOf(';');\n const line: SourceMapLine = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n\n while (reader.pos < semi) {\n let seg: SourceMapSegment;\n\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol) sorted = false;\n lastCol = genColumn;\n\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n } else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n } else {\n seg = [genColumn];\n }\n\n line.push(seg);\n reader.pos++;\n }\n\n if (!sorted) sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n\n return decoded;\n}\n\nfunction sort(line: SourceMapSegment[]) {\n line.sort(sortComparator);\n}\n\nfunction sortComparator(a: SourceMapSegment, b: SourceMapSegment): number {\n return a[0] - b[0];\n}\n\nexport function encode(decoded: SourceMapMappings): string;\nexport function encode(decoded: Readonly<SourceMapMappings>): string;\nexport function encode(decoded: Readonly<SourceMapMappings>): string {\n const writer = new StringWriter();\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n if (i > 0) writer.write(semicolon);\n if (line.length === 0) continue;\n\n let genColumn = 0;\n\n for (let j = 0; j < line.length; j++) {\n const segment = line[j];\n if (j > 0) writer.write(comma);\n\n genColumn = encodeInteger(writer, segment[0], genColumn);\n\n if (segment.length === 1) continue;\n sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);\n sourceLine = encodeInteger(writer, segment[2], sourceLine);\n sourceColumn = encodeInteger(writer, segment[3], sourceColumn);\n\n if (segment.length === 4) continue;\n namesIndex = encodeInteger(writer, segment[4], namesIndex);\n }\n }\n\n return writer.flush();\n}\n"],"names":[],"mappings":"AAEO,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,SAAS,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAE3C,MAAM,KAAK,GAAG,kEAAkE,CAAC;AACjF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AACrC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;AAEtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM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