immosquare-cleaner 0.1.38 → 0.1.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/linters/rubocop-3.3.3.yml +88 -0
- data/node_modules/.bin/babylon +1 -0
- data/node_modules/.bin/loose-envify +1 -0
- data/node_modules/@babel/code-frame/lib/index.js +1 -1
- data/node_modules/@babel/code-frame/lib/index.js.map +1 -1
- data/node_modules/@babel/code-frame/package.json +3 -3
- data/node_modules/@babel/compat-data/data/corejs2-built-ins.json +9 -0
- data/node_modules/@babel/compat-data/data/plugins.json +6 -1
- data/node_modules/@babel/compat-data/package.json +1 -1
- data/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
- data/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -1
- data/node_modules/@babel/core/lib/index.js +1 -1
- data/node_modules/@babel/core/lib/index.js.map +1 -1
- data/node_modules/@babel/core/lib/parser/index.js.map +1 -1
- data/node_modules/@babel/core/lib/tools/build-external-helpers.js +4 -3
- data/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -1
- data/node_modules/@babel/core/lib/transformation/file/file.js +2 -2
- data/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
- data/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +82 -72
- data/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +1 -1
- data/node_modules/@babel/core/package.json +16 -16
- data/node_modules/@babel/generator/lib/buffer.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/template-literals.js +7 -6
- data/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/types.js +20 -16
- data/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
- data/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
- data/node_modules/@babel/generator/lib/index.js +2 -2
- data/node_modules/@babel/generator/lib/index.js.map +1 -1
- data/node_modules/@babel/generator/lib/node/whitespace.js.map +1 -1
- data/node_modules/@babel/generator/lib/printer.js.map +1 -1
- data/node_modules/@babel/generator/package.json +4 -4
- data/node_modules/@babel/helper-annotate-as-pure/README.md +1 -1
- data/node_modules/@babel/helper-annotate-as-pure/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-annotate-as-pure/package.json +5 -2
- data/node_modules/@babel/helper-annotate-as-pure/tsconfig.json +17 -0
- data/node_modules/@babel/helper-annotate-as-pure/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/options.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/pretty.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/targets.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/lib/utils.js.map +1 -1
- data/node_modules/@babel/helper-compilation-targets/package.json +8 -5
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +32 -18
- data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js +51 -34
- data/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +5 -5
- data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map +1 -1
- data/node_modules/@babel/helper-create-class-features-plugin/package.json +12 -12
- data/node_modules/@babel/helper-create-class-features-plugin/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/helper-environment-visitor/lib/index.js +1 -2
- data/node_modules/@babel/helper-environment-visitor/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-environment-visitor/package.json +9 -4
- data/node_modules/@babel/helper-function-name/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-function-name/package.json +6 -3
- data/node_modules/@babel/helper-hoist-variables/README.md +1 -1
- data/node_modules/@babel/helper-hoist-variables/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-hoist-variables/package.json +3 -4
- data/node_modules/@babel/helper-member-expression-to-functions/package.json +3 -5
- data/node_modules/@babel/helper-member-expression-to-functions/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -1
- data/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -1
- data/node_modules/@babel/helper-module-imports/package.json +4 -4
- data/node_modules/@babel/helper-module-transforms/lib/get-module-name.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map +1 -1
- data/node_modules/@babel/helper-module-transforms/package.json +7 -8
- data/node_modules/@babel/helper-optimise-call-expression/README.md +1 -1
- data/node_modules/@babel/helper-optimise-call-expression/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-optimise-call-expression/package.json +4 -4
- data/node_modules/@babel/helper-optimise-call-expression/tsconfig.json +17 -0
- data/node_modules/@babel/helper-optimise-call-expression/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/helper-plugin-utils/package.json +2 -2
- data/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-replace-supers/package.json +5 -5
- data/node_modules/@babel/helper-replace-supers/tsconfig.json +23 -0
- data/node_modules/@babel/helper-replace-supers/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/helper-simple-access/package.json +4 -4
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/README.md +1 -1
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/package.json +7 -6
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/tsconfig.json +17 -0
- data/node_modules/@babel/helper-skip-transparent-expression-wrappers/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/helper-split-export-declaration/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-split-export-declaration/package.json +5 -2
- data/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-string-parser/package.json +5 -2
- data/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -1
- data/node_modules/@babel/helper-validator-identifier/package.json +5 -2
- data/node_modules/@babel/helper-validator-option/lib/find-suggestion.js.map +1 -1
- data/node_modules/@babel/helper-validator-option/lib/index.js.map +1 -1
- data/node_modules/@babel/helper-validator-option/lib/validator.js.map +1 -1
- data/node_modules/@babel/helper-validator-option/package.json +5 -2
- data/node_modules/@babel/helpers/lib/helpers/AwaitValue.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/AwaitValue.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/OverloadYield.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js +31 -0
- data/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js +1 -1
- data/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js +12 -0
- data/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js +38 -0
- data/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js +25 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js +18 -0
- data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classCallCheck.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classCallCheck.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js +12 -0
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js +12 -0
- data/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js +12 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js +16 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js +16 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js +17 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/construct.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/construct.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/createClass.js +26 -0
- data/node_modules/@babel/helpers/lib/helpers/createClass.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js +60 -0
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js +27 -0
- data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/createSuper.js +25 -0
- data/node_modules/@babel/helpers/lib/helpers/createSuper.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/decorate.js +350 -0
- data/node_modules/@babel/helpers/lib/helpers/decorate.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/defaults.js +18 -0
- data/node_modules/@babel/helpers/lib/helpers/defaults.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js +27 -0
- data/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/defineProperty.js +23 -0
- data/node_modules/@babel/helpers/lib/helpers/defineProperty.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/extends.js +22 -0
- data/node_modules/@babel/helpers/lib/helpers/extends.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/get.js +25 -0
- data/node_modules/@babel/helpers/lib/helpers/get.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/identity.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/identity.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/inherits.js +25 -0
- data/node_modules/@babel/helpers/lib/helpers/inherits.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js +14 -0
- data/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js +17 -0
- data/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/instanceof.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/instanceof.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/interopRequireWildcard.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/iterableToArray.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/iterableToArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js +16 -16
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js +16 -0
- data/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/objectSpread.js +24 -0
- data/node_modules/@babel/helpers/lib/helpers/objectSpread.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/objectSpread2.js +2 -2
- data/node_modules/@babel/helpers/lib/helpers/objectSpread2.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js +24 -0
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +19 -0
- data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js +17 -0
- data/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/readOnlyError.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/readOnlyError.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/set.js +48 -0
- data/node_modules/@babel/helpers/lib/helpers/set.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/slicedToArray.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/slicedToArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/superPropBase.js +16 -0
- data/node_modules/@babel/helpers/lib/helpers/superPropBase.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js +18 -0
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/tdz.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/tdz.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/temporalRef.js +13 -0
- data/node_modules/@babel/helpers/lib/helpers/temporalRef.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js +9 -0
- data/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/toArray.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/toArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js +15 -0
- data/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/typeof.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js +19 -0
- data/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/usingCtx.js.map +1 -1
- data/node_modules/@babel/helpers/lib/helpers/{AsyncGenerator.js → wrapAsyncGenerator.js} +9 -4
- data/node_modules/@babel/helpers/lib/helpers/wrapAsyncGenerator.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js +38 -0
- data/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js +11 -0
- data/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js.map +1 -0
- data/node_modules/@babel/helpers/lib/helpers-generated.js +1191 -40
- data/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
- data/node_modules/@babel/helpers/lib/index.js +62 -184
- data/node_modules/@babel/helpers/lib/index.js.map +1 -1
- data/node_modules/@babel/helpers/package.json +6 -7
- data/node_modules/@babel/helpers/scripts/build-helper-metadata.js +209 -0
- data/node_modules/@babel/helpers/scripts/generate-helpers.js +93 -15
- data/node_modules/@babel/highlight/node_modules/js-tokens/CHANGELOG.md +151 -0
- data/node_modules/@babel/highlight/node_modules/js-tokens/LICENSE +21 -0
- data/node_modules/@babel/highlight/node_modules/js-tokens/README.md +240 -0
- data/node_modules/@babel/highlight/node_modules/js-tokens/index.js +23 -0
- data/node_modules/@babel/highlight/node_modules/js-tokens/package.json +30 -0
- data/node_modules/@babel/highlight/package.json +2 -2
- data/node_modules/@babel/parser/lib/index.js +44 -81
- data/node_modules/@babel/parser/lib/index.js.map +1 -1
- data/node_modules/@babel/parser/package.json +7 -6
- data/node_modules/@babel/parser/typings/babel-parser.d.ts +1 -1
- data/node_modules/@babel/plugin-syntax-flow/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-syntax-flow/package.json +3 -3
- data/node_modules/@babel/plugin-syntax-flow/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-syntax-flow/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-syntax-jsx/package.json +3 -3
- data/node_modules/@babel/plugin-syntax-jsx/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-syntax-jsx/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/LICENSE +22 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/README.md +19 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/lib/index.js +77 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/package.json +24 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/tsconfig.json +39 -0
- data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/LICENSE +22 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/README.md +19 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/lib/index.js +77 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/package.json +24 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/tsconfig.json +39 -0
- data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-syntax-typescript/package.json +4 -4
- data/node_modules/@babel/plugin-syntax-typescript/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-syntax-typescript/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-class-properties/package.json +5 -5
- data/node_modules/@babel/plugin-transform-class-properties/tsconfig.json +20 -0
- data/node_modules/@babel/plugin-transform-class-properties/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-flow-strip-types/package.json +5 -5
- data/node_modules/@babel/plugin-transform-flow-strip-types/tsconfig.json +20 -0
- data/node_modules/@babel/plugin-transform-flow-strip-types/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js.map +1 -1
- data/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js +1 -1
- data/node_modules/@babel/plugin-transform-modules-commonjs/package.json +7 -7
- data/node_modules/@babel/plugin-transform-modules-commonjs/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-transform-modules-commonjs/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js +1 -1
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json +4 -4
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/tsconfig.json +17 -0
- data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-optional-chaining/package.json +7 -7
- data/node_modules/@babel/plugin-transform-optional-chaining/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/plugin-transform-private-methods/lib/index.js +1 -1
- data/node_modules/@babel/plugin-transform-private-methods/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-private-methods/package.json +5 -5
- data/node_modules/@babel/plugin-transform-private-methods/tsconfig.json +20 -0
- data/node_modules/@babel/plugin-transform-private-methods/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/global-types.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -1
- data/node_modules/@babel/plugin-transform-typescript/package.json +9 -9
- data/node_modules/@babel/plugin-transform-typescript/tsconfig.tsbuildinfo +1 -1
- data/node_modules/@babel/preset-flow/package.json +6 -6
- data/node_modules/@babel/preset-flow/tsconfig.json +20 -0
- data/node_modules/@babel/preset-flow/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/preset-typescript/lib/index.js.map +1 -1
- data/node_modules/@babel/preset-typescript/package.json +8 -8
- data/node_modules/@babel/preset-typescript/tsconfig.json +26 -0
- data/node_modules/@babel/preset-typescript/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/register/lib/browser.js.map +1 -1
- data/node_modules/@babel/register/lib/cache.js.map +1 -1
- data/node_modules/@babel/register/lib/experimental-worker.js.map +1 -1
- data/node_modules/@babel/register/lib/hook.js.map +1 -1
- data/node_modules/@babel/register/lib/index.js.map +1 -1
- data/node_modules/@babel/register/lib/is-in-register-worker.js.map +1 -1
- data/node_modules/@babel/register/lib/node.js.map +1 -1
- data/node_modules/@babel/register/lib/nodeWrapper.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/babel-core.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/cache.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/handle-message.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/index.js.map +1 -1
- data/node_modules/@babel/register/lib/worker/transform.js.map +1 -1
- data/node_modules/@babel/register/lib/worker-client.js +33 -57
- data/node_modules/@babel/register/lib/worker-client.js.map +1 -1
- data/node_modules/@babel/register/package.json +4 -4
- data/node_modules/@babel/register/tsconfig.json +17 -0
- data/node_modules/@babel/register/tsconfig.tsbuildinfo +1 -0
- data/node_modules/@babel/template/lib/builder.js.map +1 -1
- data/node_modules/@babel/template/lib/formatters.js.map +1 -1
- data/node_modules/@babel/template/lib/index.js.map +1 -1
- data/node_modules/@babel/template/lib/literal.js.map +1 -1
- data/node_modules/@babel/template/lib/options.js.map +1 -1
- data/node_modules/@babel/template/lib/parse.js.map +1 -1
- data/node_modules/@babel/template/lib/populate.js.map +1 -1
- data/node_modules/@babel/template/lib/string.js.map +1 -1
- data/node_modules/@babel/template/package.json +4 -4
- data/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
- data/node_modules/@babel/traverse/lib/path/index.js +125 -31
- data/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
- data/node_modules/@babel/traverse/lib/scope/index.js +4 -3
- data/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
- data/node_modules/@babel/traverse/lib/scope/lib/renamer.js +4 -2
- data/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -1
- data/node_modules/@babel/traverse/lib/visitors.js +6 -6
- data/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
- data/node_modules/@babel/traverse/package.json +11 -11
- data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +6 -5
- data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
- data/node_modules/@babel/types/lib/converters/toSequenceExpression.js +1 -1
- data/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +2 -2
- data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
- data/node_modules/@babel/types/package.json +5 -5
- data/node_modules/@eslint/config-array/LICENSE +201 -0
- data/node_modules/@eslint/config-array/README.md +353 -0
- data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1216 -0
- data/node_modules/@eslint/config-array/dist/cjs/index.d.cts +137 -0
- data/node_modules/@eslint/config-array/dist/cjs/types.ts +24 -0
- data/node_modules/@eslint/config-array/dist/esm/index.d.ts +137 -0
- data/node_modules/@eslint/config-array/dist/esm/index.js +1214 -0
- data/node_modules/@eslint/config-array/dist/esm/types.d.ts +19 -0
- data/node_modules/@eslint/config-array/dist/esm/types.ts +24 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE +15 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/README.md +230 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js +947 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
- data/node_modules/@eslint/config-array/node_modules/minimatch/package.json +33 -0
- data/node_modules/@eslint/config-array/package.json +64 -0
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/@eslint/object-schema/LICENSE +201 -0
- data/node_modules/@eslint/object-schema/README.md +237 -0
- data/node_modules/@eslint/object-schema/dist/cjs/index.cjs +455 -0
- data/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +123 -0
- data/node_modules/@eslint/object-schema/dist/cjs/types.ts +55 -0
- data/node_modules/@eslint/object-schema/dist/esm/index.d.ts +123 -0
- data/node_modules/@eslint/object-schema/dist/esm/index.js +452 -0
- data/node_modules/@eslint/object-schema/dist/esm/types.d.ts +40 -0
- data/node_modules/@eslint/object-schema/dist/esm/types.ts +55 -0
- data/node_modules/@eslint/object-schema/package.json +60 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/bin/cmd.js +68 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/index.js +31 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/package.json +44 -0
- data/node_modules/@npmcli/move-file/node_modules/mkdirp/readme.markdown +266 -0
- data/node_modules/babel-code-frame/README.md +60 -0
- data/node_modules/babel-code-frame/lib/index.js +141 -0
- data/node_modules/babel-code-frame/node_modules/chalk/index.js +116 -0
- data/node_modules/babel-code-frame/node_modules/chalk/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/index.js +65 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/package.json +50 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/readme.md +86 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/index.js +11 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/package.json +41 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/readme.md +27 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/index.js +6 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json +64 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +39 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/package.json +57 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/readme.md +33 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/index.js +50 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/license +21 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/package.json +49 -0
- data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md +36 -0
- data/node_modules/babel-code-frame/node_modules/chalk/package.json +70 -0
- data/node_modules/babel-code-frame/node_modules/chalk/readme.md +213 -0
- data/node_modules/babel-code-frame/package-lock.json +66 -0
- data/node_modules/babel-code-frame/package.json +15 -0
- data/node_modules/babel-core/README.md +94 -27
- data/node_modules/babel-core/index.js +1 -2
- data/node_modules/babel-core/lib/api/browser.js +190 -0
- data/node_modules/babel-core/lib/api/node.js +153 -0
- data/node_modules/babel-core/lib/helpers/get-possible-plugin-names.js +8 -0
- data/node_modules/babel-core/lib/helpers/get-possible-preset-names.js +18 -0
- data/node_modules/babel-core/lib/helpers/merge.js +46 -0
- data/node_modules/babel-core/lib/helpers/normalize-ast.js +23 -0
- data/node_modules/babel-core/lib/helpers/resolve-from-possible-names.js +17 -0
- data/node_modules/babel-core/lib/helpers/resolve-plugin.js +21 -0
- data/node_modules/babel-core/lib/helpers/resolve-preset.js +21 -0
- data/node_modules/babel-core/lib/helpers/resolve.js +46 -0
- data/node_modules/babel-core/lib/store.js +55 -0
- data/node_modules/babel-core/lib/tools/build-external-helpers.js +101 -0
- data/node_modules/babel-core/lib/transformation/file/index.js +705 -0
- data/node_modules/babel-core/lib/transformation/file/logger.js +72 -0
- data/node_modules/babel-core/lib/transformation/file/merge-map.js +354 -0
- data/node_modules/babel-core/lib/transformation/file/metadata.js +178 -0
- data/node_modules/babel-core/lib/transformation/file/options/build-config-chain.js +215 -0
- data/node_modules/babel-core/lib/transformation/file/options/config.js +211 -0
- data/node_modules/babel-core/lib/transformation/file/options/index.js +38 -0
- data/node_modules/babel-core/lib/transformation/file/options/option-manager.js +383 -0
- data/node_modules/babel-core/lib/transformation/file/options/parsers.js +33 -0
- data/node_modules/babel-core/lib/transformation/file/options/removed.js +50 -0
- data/node_modules/babel-core/lib/transformation/internal-plugins/block-hoist.js +45 -0
- data/node_modules/babel-core/lib/transformation/internal-plugins/shadow-functions.js +136 -0
- data/node_modules/babel-core/lib/transformation/pipeline.js +81 -0
- data/node_modules/babel-core/lib/transformation/plugin-pass.js +71 -0
- data/node_modules/babel-core/lib/transformation/plugin.js +163 -0
- data/node_modules/babel-core/lib/util.js +184 -0
- data/node_modules/babel-core/node_modules/convert-source-map/LICENSE +23 -0
- data/node_modules/babel-core/node_modules/convert-source-map/README.md +123 -0
- data/node_modules/babel-core/node_modules/convert-source-map/index.js +179 -0
- data/node_modules/babel-core/node_modules/convert-source-map/package.json +41 -0
- data/node_modules/babel-core/node_modules/debug/CHANGELOG.md +362 -0
- data/node_modules/babel-core/node_modules/debug/LICENSE +19 -0
- data/node_modules/babel-core/node_modules/debug/Makefile +50 -0
- data/node_modules/babel-core/node_modules/debug/README.md +312 -0
- data/node_modules/babel-core/node_modules/debug/component.json +19 -0
- data/node_modules/babel-core/node_modules/debug/karma.conf.js +70 -0
- data/node_modules/babel-core/node_modules/debug/node.js +1 -0
- data/node_modules/babel-core/node_modules/debug/node_modules/ms/index.js +152 -0
- data/node_modules/babel-core/node_modules/debug/node_modules/ms/license.md +21 -0
- data/node_modules/babel-core/node_modules/debug/node_modules/ms/package.json +37 -0
- data/node_modules/babel-core/node_modules/debug/node_modules/ms/readme.md +51 -0
- data/node_modules/babel-core/node_modules/debug/package.json +49 -0
- data/node_modules/babel-core/node_modules/debug/src/browser.js +185 -0
- data/node_modules/babel-core/node_modules/debug/src/debug.js +202 -0
- data/node_modules/babel-core/node_modules/debug/src/index.js +10 -0
- data/node_modules/babel-core/node_modules/debug/src/inspector-log.js +15 -0
- data/node_modules/babel-core/node_modules/debug/src/node.js +248 -0
- data/node_modules/babel-core/node_modules/json5/CHANGELOG.md +169 -0
- data/node_modules/babel-core/node_modules/json5/LICENSE.md +21 -0
- data/node_modules/babel-core/node_modules/json5/README.md +286 -0
- data/node_modules/babel-core/node_modules/json5/lib/cli.js +41 -0
- data/node_modules/babel-core/node_modules/json5/lib/json5.js +770 -0
- data/node_modules/babel-core/node_modules/json5/lib/require.js +18 -0
- data/node_modules/babel-core/node_modules/json5/package.json +38 -0
- data/node_modules/babel-core/node_modules/minimatch/LICENSE +15 -0
- data/node_modules/babel-core/node_modules/minimatch/README.md +230 -0
- data/node_modules/babel-core/node_modules/minimatch/minimatch.js +947 -0
- data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
- data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
- data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
- data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
- data/node_modules/babel-core/node_modules/minimatch/package.json +33 -0
- data/node_modules/babel-core/node_modules/slash/index.js +11 -0
- data/node_modules/babel-core/node_modules/slash/package.json +33 -0
- data/node_modules/babel-core/node_modules/slash/readme.md +44 -0
- data/node_modules/babel-core/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/babel-core/node_modules/source-map/LICENSE +28 -0
- data/node_modules/babel-core/node_modules/source-map/README.md +729 -0
- data/node_modules/babel-core/node_modules/source-map/dist/source-map.debug.js +3091 -0
- data/node_modules/babel-core/node_modules/source-map/dist/source-map.js +3090 -0
- data/node_modules/babel-core/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/babel-core/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/babel-core/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/babel-core/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/babel-core/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/babel-core/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/babel-core/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/babel-core/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/babel-core/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/babel-core/node_modules/source-map/lib/source-map-generator.js +416 -0
- data/node_modules/babel-core/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/babel-core/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/babel-core/node_modules/source-map/package.json +72 -0
- data/node_modules/babel-core/node_modules/source-map/source-map.js +8 -0
- data/node_modules/babel-core/package.json +46 -10
- data/node_modules/babel-core/register.js +3 -0
- data/node_modules/babel-generator/README.md +81 -0
- data/node_modules/babel-generator/lib/buffer.js +202 -0
- data/node_modules/babel-generator/lib/generators/base.js +62 -0
- data/node_modules/babel-generator/lib/generators/classes.js +96 -0
- data/node_modules/babel-generator/lib/generators/expressions.js +241 -0
- data/node_modules/babel-generator/lib/generators/flow.js +504 -0
- data/node_modules/babel-generator/lib/generators/jsx.js +124 -0
- data/node_modules/babel-generator/lib/generators/methods.js +111 -0
- data/node_modules/babel-generator/lib/generators/modules.js +183 -0
- data/node_modules/babel-generator/lib/generators/statements.js +316 -0
- data/node_modules/babel-generator/lib/generators/template-literals.js +31 -0
- data/node_modules/babel-generator/lib/generators/types.js +158 -0
- data/node_modules/babel-generator/lib/index.js +168 -0
- data/node_modules/babel-generator/lib/node/index.js +146 -0
- data/node_modules/babel-generator/lib/node/parentheses.js +170 -0
- data/node_modules/babel-generator/lib/node/whitespace.js +151 -0
- data/node_modules/babel-generator/lib/printer.js +555 -0
- data/node_modules/babel-generator/lib/source-map.js +89 -0
- data/node_modules/babel-generator/lib/whitespace.js +95 -0
- data/node_modules/babel-generator/node_modules/jsesc/LICENSE-MIT.txt +20 -0
- data/node_modules/babel-generator/node_modules/jsesc/bin/jsesc +148 -0
- data/node_modules/babel-generator/node_modules/jsesc/jsesc.js +345 -0
- data/node_modules/babel-generator/node_modules/jsesc/man/jsesc.1 +94 -0
- data/node_modules/babel-generator/node_modules/jsesc/package.json +46 -0
- data/node_modules/babel-generator/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/babel-generator/node_modules/source-map/LICENSE +28 -0
- data/node_modules/babel-generator/node_modules/source-map/README.md +729 -0
- data/node_modules/babel-generator/node_modules/source-map/dist/source-map.debug.js +3091 -0
- data/node_modules/babel-generator/node_modules/source-map/dist/source-map.js +3090 -0
- data/node_modules/babel-generator/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/babel-generator/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/source-map-generator.js +416 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/babel-generator/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/babel-generator/node_modules/source-map/package.json +72 -0
- data/node_modules/babel-generator/node_modules/source-map/source-map.js +8 -0
- data/node_modules/babel-generator/package.json +27 -0
- data/node_modules/babel-helpers/README.md +21 -0
- data/node_modules/babel-helpers/lib/helpers.js +76 -0
- data/node_modules/babel-helpers/lib/index.js +31 -0
- data/node_modules/babel-helpers/package.json +14 -0
- data/node_modules/babel-messages/README.md +18 -0
- data/node_modules/babel-messages/lib/index.js +84 -0
- data/node_modules/babel-messages/package.json +13 -0
- data/node_modules/babel-register/README.md +103 -0
- data/node_modules/babel-register/lib/browser.js +7 -0
- data/node_modules/babel-register/lib/cache.js +68 -0
- data/node_modules/babel-register/lib/node.js +179 -0
- data/node_modules/babel-register/node_modules/source-map-support/LICENSE.md +21 -0
- data/node_modules/babel-register/node_modules/source-map-support/README.md +251 -0
- data/node_modules/babel-register/node_modules/source-map-support/browser-source-map-support.js +110 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/LICENSE +28 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/README.md +729 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.debug.js +3091 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.js +3090 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js +416 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/package.json +72 -0
- data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/source-map.js +8 -0
- data/node_modules/babel-register/node_modules/source-map-support/package.json +30 -0
- data/node_modules/babel-register/node_modules/source-map-support/register.js +1 -0
- data/node_modules/babel-register/node_modules/source-map-support/source-map-support.js +527 -0
- data/node_modules/babel-register/package-lock.json +78 -0
- data/node_modules/babel-register/package.json +22 -0
- data/node_modules/babel-runtime/README.md +2 -0
- data/node_modules/babel-runtime/core-js/array/concat.js +1 -0
- data/node_modules/babel-runtime/core-js/array/copy-within.js +1 -0
- data/node_modules/babel-runtime/core-js/array/entries.js +1 -0
- data/node_modules/babel-runtime/core-js/array/every.js +1 -0
- data/node_modules/babel-runtime/core-js/array/fill.js +1 -0
- data/node_modules/babel-runtime/core-js/array/filter.js +1 -0
- data/node_modules/babel-runtime/core-js/array/find-index.js +1 -0
- data/node_modules/babel-runtime/core-js/array/find.js +1 -0
- data/node_modules/babel-runtime/core-js/array/for-each.js +1 -0
- data/node_modules/babel-runtime/core-js/array/from.js +1 -0
- data/node_modules/babel-runtime/core-js/array/includes.js +1 -0
- data/node_modules/babel-runtime/core-js/array/index-of.js +1 -0
- data/node_modules/babel-runtime/core-js/array/join.js +1 -0
- data/node_modules/babel-runtime/core-js/array/keys.js +1 -0
- data/node_modules/babel-runtime/core-js/array/last-index-of.js +1 -0
- data/node_modules/babel-runtime/core-js/array/map.js +1 -0
- data/node_modules/babel-runtime/core-js/array/of.js +1 -0
- data/node_modules/babel-runtime/core-js/array/pop.js +1 -0
- data/node_modules/babel-runtime/core-js/array/push.js +1 -0
- data/node_modules/babel-runtime/core-js/array/reduce-right.js +1 -0
- data/node_modules/babel-runtime/core-js/array/reduce.js +1 -0
- data/node_modules/babel-runtime/core-js/array/reverse.js +1 -0
- data/node_modules/babel-runtime/core-js/array/shift.js +1 -0
- data/node_modules/babel-runtime/core-js/array/slice.js +1 -0
- data/node_modules/babel-runtime/core-js/array/some.js +1 -0
- data/node_modules/babel-runtime/core-js/array/sort.js +1 -0
- data/node_modules/babel-runtime/core-js/array/splice.js +1 -0
- data/node_modules/babel-runtime/core-js/array/unshift.js +1 -0
- data/node_modules/babel-runtime/core-js/array/values.js +1 -0
- data/node_modules/babel-runtime/core-js/asap.js +1 -0
- data/node_modules/babel-runtime/core-js/clear-immediate.js +1 -0
- data/node_modules/babel-runtime/core-js/error/is-error.js +1 -0
- data/node_modules/babel-runtime/core-js/get-iterator.js +1 -0
- data/node_modules/babel-runtime/core-js/is-iterable.js +1 -0
- data/node_modules/babel-runtime/core-js/json/stringify.js +1 -0
- data/node_modules/babel-runtime/core-js/map.js +1 -0
- data/node_modules/babel-runtime/core-js/math/acosh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/asinh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/atanh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/cbrt.js +1 -0
- data/node_modules/babel-runtime/core-js/math/clz32.js +1 -0
- data/node_modules/babel-runtime/core-js/math/cosh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/expm1.js +1 -0
- data/node_modules/babel-runtime/core-js/math/fround.js +1 -0
- data/node_modules/babel-runtime/core-js/math/hypot.js +1 -0
- data/node_modules/babel-runtime/core-js/math/iaddh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/imul.js +1 -0
- data/node_modules/babel-runtime/core-js/math/imulh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/isubh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/log10.js +1 -0
- data/node_modules/babel-runtime/core-js/math/log1p.js +1 -0
- data/node_modules/babel-runtime/core-js/math/log2.js +1 -0
- data/node_modules/babel-runtime/core-js/math/sign.js +1 -0
- data/node_modules/babel-runtime/core-js/math/sinh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/tanh.js +1 -0
- data/node_modules/babel-runtime/core-js/math/trunc.js +1 -0
- data/node_modules/babel-runtime/core-js/math/umulh.js +1 -0
- data/node_modules/babel-runtime/core-js/number/epsilon.js +1 -0
- data/node_modules/babel-runtime/core-js/number/is-finite.js +1 -0
- data/node_modules/babel-runtime/core-js/number/is-integer.js +1 -0
- data/node_modules/babel-runtime/core-js/number/is-nan.js +1 -0
- data/node_modules/babel-runtime/core-js/number/is-safe-integer.js +1 -0
- data/node_modules/babel-runtime/core-js/number/max-safe-integer.js +1 -0
- data/node_modules/babel-runtime/core-js/number/min-safe-integer.js +1 -0
- data/node_modules/babel-runtime/core-js/number/parse-float.js +1 -0
- data/node_modules/babel-runtime/core-js/number/parse-int.js +1 -0
- data/node_modules/babel-runtime/core-js/object/assign.js +1 -0
- data/node_modules/babel-runtime/core-js/object/create.js +1 -0
- data/node_modules/babel-runtime/core-js/object/define-properties.js +1 -0
- data/node_modules/babel-runtime/core-js/object/define-property.js +1 -0
- data/node_modules/babel-runtime/core-js/object/entries.js +1 -0
- data/node_modules/babel-runtime/core-js/object/freeze.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-own-property-descriptors.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-own-property-names.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-own-property-symbols.js +1 -0
- data/node_modules/babel-runtime/core-js/object/get-prototype-of.js +1 -0
- data/node_modules/babel-runtime/core-js/object/is-extensible.js +1 -0
- data/node_modules/babel-runtime/core-js/object/is-frozen.js +1 -0
- data/node_modules/babel-runtime/core-js/object/is-sealed.js +1 -0
- data/node_modules/babel-runtime/core-js/object/is.js +1 -0
- data/node_modules/babel-runtime/core-js/object/keys.js +1 -0
- data/node_modules/babel-runtime/core-js/object/prevent-extensions.js +1 -0
- data/node_modules/babel-runtime/core-js/object/seal.js +1 -0
- data/node_modules/babel-runtime/core-js/object/set-prototype-of.js +1 -0
- data/node_modules/babel-runtime/core-js/object/values.js +1 -0
- data/node_modules/babel-runtime/core-js/observable.js +1 -0
- data/node_modules/babel-runtime/core-js/promise.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/apply.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/construct.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/define-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/define-property.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/delete-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/delete-property.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/enumerate.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-metadata-keys.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-own-metadata-keys.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-own-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-own-property-descriptor.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get-prototype-of.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/get.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/has-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/has-own-metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/has.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/is-extensible.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/metadata.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/own-keys.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/prevent-extensions.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/set-prototype-of.js +1 -0
- data/node_modules/babel-runtime/core-js/reflect/set.js +1 -0
- data/node_modules/babel-runtime/core-js/regexp/escape.js +1 -0
- data/node_modules/babel-runtime/core-js/set-immediate.js +1 -0
- data/node_modules/babel-runtime/core-js/set.js +1 -0
- data/node_modules/babel-runtime/core-js/string/at.js +1 -0
- data/node_modules/babel-runtime/core-js/string/code-point-at.js +1 -0
- data/node_modules/babel-runtime/core-js/string/ends-with.js +1 -0
- data/node_modules/babel-runtime/core-js/string/from-code-point.js +1 -0
- data/node_modules/babel-runtime/core-js/string/includes.js +1 -0
- data/node_modules/babel-runtime/core-js/string/match-all.js +1 -0
- data/node_modules/babel-runtime/core-js/string/pad-end.js +1 -0
- data/node_modules/babel-runtime/core-js/string/pad-left.js +1 -0
- data/node_modules/babel-runtime/core-js/string/pad-right.js +1 -0
- data/node_modules/babel-runtime/core-js/string/pad-start.js +1 -0
- data/node_modules/babel-runtime/core-js/string/raw.js +1 -0
- data/node_modules/babel-runtime/core-js/string/repeat.js +1 -0
- data/node_modules/babel-runtime/core-js/string/starts-with.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim-end.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim-left.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim-right.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim-start.js +1 -0
- data/node_modules/babel-runtime/core-js/string/trim.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/async-iterator.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/for.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/has-instance.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/is-concat-spreadable.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/iterator.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/key-for.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/match.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/observable.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/replace.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/search.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/species.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/split.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/to-primitive.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/to-string-tag.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol/unscopables.js +1 -0
- data/node_modules/babel-runtime/core-js/symbol.js +1 -0
- data/node_modules/babel-runtime/core-js/system/global.js +1 -0
- data/node_modules/babel-runtime/core-js/weak-map.js +1 -0
- data/node_modules/babel-runtime/core-js/weak-set.js +1 -0
- data/node_modules/babel-runtime/core-js.js +4 -0
- data/node_modules/babel-runtime/helpers/_async-generator-delegate.js +1 -0
- data/node_modules/babel-runtime/helpers/_async-generator.js +1 -0
- data/node_modules/babel-runtime/helpers/_async-iterator.js +1 -0
- data/node_modules/babel-runtime/helpers/_async-to-generator.js +1 -0
- data/node_modules/babel-runtime/helpers/_class-call-check.js +1 -0
- data/node_modules/babel-runtime/helpers/_create-class.js +1 -0
- data/node_modules/babel-runtime/helpers/_defaults.js +1 -0
- data/node_modules/babel-runtime/helpers/_define-enumerable-properties.js +1 -0
- data/node_modules/babel-runtime/helpers/_define-property.js +1 -0
- data/node_modules/babel-runtime/helpers/_extends.js +1 -0
- data/node_modules/babel-runtime/helpers/_get.js +1 -0
- data/node_modules/babel-runtime/helpers/_inherits.js +1 -0
- data/node_modules/babel-runtime/helpers/_instanceof.js +1 -0
- data/node_modules/babel-runtime/helpers/_interop-require-default.js +1 -0
- data/node_modules/babel-runtime/helpers/_interop-require-wildcard.js +1 -0
- data/node_modules/babel-runtime/helpers/_jsx.js +1 -0
- data/node_modules/babel-runtime/helpers/_new-arrow-check.js +1 -0
- data/node_modules/babel-runtime/helpers/_object-destructuring-empty.js +1 -0
- data/node_modules/babel-runtime/helpers/_object-without-properties.js +1 -0
- data/node_modules/babel-runtime/helpers/_possible-constructor-return.js +1 -0
- data/node_modules/babel-runtime/helpers/_self-global.js +1 -0
- data/node_modules/babel-runtime/helpers/_set.js +1 -0
- data/node_modules/babel-runtime/helpers/_sliced-to-array-loose.js +1 -0
- data/node_modules/babel-runtime/helpers/_sliced-to-array.js +1 -0
- data/node_modules/babel-runtime/helpers/_tagged-template-literal-loose.js +1 -0
- data/node_modules/babel-runtime/helpers/_tagged-template-literal.js +1 -0
- data/node_modules/babel-runtime/helpers/_temporal-ref.js +1 -0
- data/node_modules/babel-runtime/helpers/_temporal-undefined.js +1 -0
- data/node_modules/babel-runtime/helpers/_to-array.js +1 -0
- data/node_modules/babel-runtime/helpers/_to-consumable-array.js +1 -0
- data/node_modules/babel-runtime/helpers/_typeof.js +1 -0
- data/node_modules/babel-runtime/helpers/async-generator-delegate.js +1 -0
- data/node_modules/babel-runtime/helpers/async-generator.js +1 -0
- data/node_modules/babel-runtime/helpers/async-iterator.js +1 -0
- data/node_modules/babel-runtime/helpers/async-to-generator.js +1 -0
- data/node_modules/babel-runtime/helpers/asyncGenerator.js +126 -0
- data/node_modules/babel-runtime/helpers/asyncGeneratorDelegate.js +69 -0
- data/node_modules/babel-runtime/helpers/asyncIterator.js +32 -0
- data/node_modules/babel-runtime/helpers/asyncToGenerator.js +38 -0
- data/node_modules/babel-runtime/helpers/class-call-check.js +1 -0
- data/node_modules/babel-runtime/helpers/classCallCheck.js +9 -0
- data/node_modules/babel-runtime/helpers/create-class.js +1 -0
- data/node_modules/babel-runtime/helpers/createClass.js +27 -0
- data/node_modules/babel-runtime/helpers/defaults.js +32 -0
- data/node_modules/babel-runtime/helpers/define-enumerable-properties.js +1 -0
- data/node_modules/babel-runtime/helpers/define-property.js +1 -0
- data/node_modules/babel-runtime/helpers/defineEnumerableProperties.js +20 -0
- data/node_modules/babel-runtime/helpers/defineProperty.js +24 -0
- data/node_modules/babel-runtime/helpers/extends.js +23 -0
- data/node_modules/babel-runtime/helpers/get.js +38 -0
- data/node_modules/babel-runtime/helpers/inherits.js +33 -0
- data/node_modules/babel-runtime/helpers/instanceof.js +21 -0
- data/node_modules/babel-runtime/helpers/interop-require-default.js +1 -0
- data/node_modules/babel-runtime/helpers/interop-require-wildcard.js +1 -0
- data/node_modules/babel-runtime/helpers/interopRequireDefault.js +9 -0
- data/node_modules/babel-runtime/helpers/interopRequireWildcard.js +20 -0
- data/node_modules/babel-runtime/helpers/jsx.js +56 -0
- data/node_modules/babel-runtime/helpers/new-arrow-check.js +1 -0
- data/node_modules/babel-runtime/helpers/newArrowCheck.js +9 -0
- data/node_modules/babel-runtime/helpers/object-destructuring-empty.js +1 -0
- data/node_modules/babel-runtime/helpers/object-without-properties.js +1 -0
- data/node_modules/babel-runtime/helpers/objectDestructuringEmpty.js +7 -0
- data/node_modules/babel-runtime/helpers/objectWithoutProperties.js +15 -0
- data/node_modules/babel-runtime/helpers/possible-constructor-return.js +1 -0
- data/node_modules/babel-runtime/helpers/possibleConstructorReturn.js +17 -0
- data/node_modules/babel-runtime/helpers/self-global.js +1 -0
- data/node_modules/babel-runtime/helpers/selfGlobal.js +4 -0
- data/node_modules/babel-runtime/helpers/set.js +35 -0
- data/node_modules/babel-runtime/helpers/sliced-to-array-loose.js +1 -0
- data/node_modules/babel-runtime/helpers/sliced-to-array.js +1 -0
- data/node_modules/babel-runtime/helpers/slicedToArray.js +51 -0
- data/node_modules/babel-runtime/helpers/slicedToArrayLoose.js +31 -0
- data/node_modules/babel-runtime/helpers/tagged-template-literal-loose.js +1 -0
- data/node_modules/babel-runtime/helpers/tagged-template-literal.js +1 -0
- data/node_modules/babel-runtime/helpers/taggedTemplateLiteral.js +21 -0
- data/node_modules/babel-runtime/helpers/taggedTemplateLiteralLoose.js +8 -0
- data/node_modules/babel-runtime/helpers/temporal-ref.js +1 -0
- data/node_modules/babel-runtime/helpers/temporal-undefined.js +1 -0
- data/node_modules/babel-runtime/helpers/temporalRef.js +11 -0
- data/node_modules/babel-runtime/helpers/temporalUndefined.js +4 -0
- data/node_modules/babel-runtime/helpers/to-array.js +1 -0
- data/node_modules/babel-runtime/helpers/to-consumable-array.js +1 -0
- data/node_modules/babel-runtime/helpers/toArray.js +13 -0
- data/node_modules/babel-runtime/helpers/toConsumableArray.js +21 -0
- data/node_modules/babel-runtime/helpers/typeof.js +21 -0
- data/node_modules/babel-runtime/package-lock.json +232 -0
- data/node_modules/babel-runtime/package.json +16 -0
- data/node_modules/babel-runtime/regenerator/index.js +1 -0
- data/node_modules/babel-template/README.md +64 -0
- data/node_modules/babel-template/lib/index.js +143 -0
- data/node_modules/babel-template/package-lock.json +18 -0
- data/node_modules/babel-template/package.json +17 -0
- data/node_modules/babel-traverse/README.md +33 -0
- data/node_modules/babel-traverse/lib/cache.js +30 -0
- data/node_modules/babel-traverse/lib/context.js +200 -0
- data/node_modules/babel-traverse/lib/hub.js +19 -0
- data/node_modules/babel-traverse/lib/index.js +165 -0
- data/node_modules/babel-traverse/lib/path/ancestry.js +238 -0
- data/node_modules/babel-traverse/lib/path/comments.js +47 -0
- data/node_modules/babel-traverse/lib/path/context.js +281 -0
- data/node_modules/babel-traverse/lib/path/conversion.js +47 -0
- data/node_modules/babel-traverse/lib/path/evaluation.js +398 -0
- data/node_modules/babel-traverse/lib/path/family.js +266 -0
- data/node_modules/babel-traverse/lib/path/index.js +242 -0
- data/node_modules/babel-traverse/lib/path/inference/index.js +142 -0
- data/node_modules/babel-traverse/lib/path/inference/inferer-reference.js +185 -0
- data/node_modules/babel-traverse/lib/path/inference/inferers.js +195 -0
- data/node_modules/babel-traverse/lib/path/introspection.js +386 -0
- data/node_modules/babel-traverse/lib/path/lib/hoister.js +211 -0
- data/node_modules/babel-traverse/lib/path/lib/removal-hooks.js +33 -0
- data/node_modules/babel-traverse/lib/path/lib/virtual-types.js +141 -0
- data/node_modules/babel-traverse/lib/path/modification.js +264 -0
- data/node_modules/babel-traverse/lib/path/removal.js +72 -0
- data/node_modules/babel-traverse/lib/path/replacement.js +268 -0
- data/node_modules/babel-traverse/lib/scope/binding.js +82 -0
- data/node_modules/babel-traverse/lib/scope/index.js +1094 -0
- data/node_modules/babel-traverse/lib/scope/lib/renamer.js +113 -0
- data/node_modules/babel-traverse/lib/visitors.js +341 -0
- data/node_modules/babel-traverse/node_modules/debug/CHANGELOG.md +362 -0
- data/node_modules/babel-traverse/node_modules/debug/LICENSE +19 -0
- data/node_modules/babel-traverse/node_modules/debug/Makefile +50 -0
- data/node_modules/babel-traverse/node_modules/debug/README.md +312 -0
- data/node_modules/babel-traverse/node_modules/debug/component.json +19 -0
- data/node_modules/babel-traverse/node_modules/debug/karma.conf.js +70 -0
- data/node_modules/babel-traverse/node_modules/debug/node.js +1 -0
- data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/index.js +152 -0
- data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/license.md +21 -0
- data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/package.json +37 -0
- data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/readme.md +51 -0
- data/node_modules/babel-traverse/node_modules/debug/package.json +49 -0
- data/node_modules/babel-traverse/node_modules/debug/src/browser.js +185 -0
- data/node_modules/babel-traverse/node_modules/debug/src/debug.js +202 -0
- data/node_modules/babel-traverse/node_modules/debug/src/index.js +10 -0
- data/node_modules/babel-traverse/node_modules/debug/src/inspector-log.js +15 -0
- data/node_modules/babel-traverse/node_modules/debug/src/node.js +248 -0
- data/node_modules/babel-traverse/node_modules/globals/globals.json +1294 -0
- data/node_modules/babel-traverse/node_modules/globals/index.js +1 -0
- data/node_modules/babel-traverse/node_modules/globals/license +21 -0
- data/node_modules/babel-traverse/node_modules/globals/package.json +35 -0
- data/node_modules/babel-traverse/node_modules/globals/readme.md +41 -0
- data/node_modules/babel-traverse/package-lock.json +57 -0
- data/node_modules/babel-traverse/package.json +24 -0
- data/node_modules/babel-types/README.md +2029 -0
- data/node_modules/babel-types/lib/constants.js +38 -0
- data/node_modules/babel-types/lib/converters.js +350 -0
- data/node_modules/babel-types/lib/definitions/core.js +701 -0
- data/node_modules/babel-types/lib/definitions/es2015.js +354 -0
- data/node_modules/babel-types/lib/definitions/experimental.js +103 -0
- data/node_modules/babel-types/lib/definitions/flow.js +285 -0
- data/node_modules/babel-types/lib/definitions/index.js +249 -0
- data/node_modules/babel-types/lib/definitions/init.js +15 -0
- data/node_modules/babel-types/lib/definitions/jsx.js +147 -0
- data/node_modules/babel-types/lib/definitions/misc.js +21 -0
- data/node_modules/babel-types/lib/flow.js +108 -0
- data/node_modules/babel-types/lib/index.js +835 -0
- data/node_modules/babel-types/lib/react.js +80 -0
- data/node_modules/babel-types/lib/retrievers.js +116 -0
- data/node_modules/babel-types/lib/validators.js +265 -0
- data/node_modules/babel-types/node_modules/to-fast-properties/index.js +11 -0
- data/node_modules/babel-types/node_modules/to-fast-properties/license +22 -0
- data/node_modules/babel-types/node_modules/to-fast-properties/package.json +35 -0
- data/node_modules/babel-types/node_modules/to-fast-properties/readme.md +37 -0
- data/node_modules/babel-types/package-lock.json +29 -0
- data/node_modules/babel-types/package.json +20 -0
- data/node_modules/babylon/CHANGELOG.md +979 -0
- data/node_modules/babylon/LICENSE +19 -0
- data/node_modules/babylon/README.md +134 -0
- data/node_modules/babylon/bin/babylon.js +16 -0
- data/node_modules/babylon/bin/generate-identifier-regex.js +62 -0
- data/node_modules/babylon/lib/index.js +7318 -0
- data/node_modules/babylon/package.json +84 -0
- data/node_modules/braces/LICENSE +1 -1
- data/node_modules/braces/README.md +91 -98
- data/node_modules/braces/index.js +3 -3
- data/node_modules/braces/lib/compile.js +14 -11
- data/node_modules/braces/lib/constants.js +1 -1
- data/node_modules/braces/lib/expand.js +9 -9
- data/node_modules/braces/lib/parse.js +14 -16
- data/node_modules/braces/lib/stringify.js +4 -4
- data/node_modules/braces/lib/utils.js +13 -3
- data/node_modules/braces/package.json +2 -2
- data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/LICENSE.txt +16 -0
- data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/README.md +39 -0
- data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/package.json +38 -0
- data/node_modules/core-js/CHANGELOG.md +711 -0
- data/node_modules/core-js/Gruntfile.js +3 -0
- data/node_modules/core-js/LICENSE +19 -0
- data/node_modules/core-js/README.md +2307 -0
- data/node_modules/core-js/bower.json +49 -0
- data/node_modules/core-js/build/Gruntfile.ls +86 -0
- data/node_modules/core-js/build/build.ls +62 -0
- data/node_modules/core-js/build/config.js +275 -0
- data/node_modules/core-js/build/index.js +104 -0
- data/node_modules/core-js/client/core.js +9100 -0
- data/node_modules/core-js/client/core.min.js +10 -0
- data/node_modules/core-js/client/core.min.js.map +1 -0
- data/node_modules/core-js/client/library.js +8168 -0
- data/node_modules/core-js/client/library.min.js +10 -0
- data/node_modules/core-js/client/library.min.js.map +1 -0
- data/node_modules/core-js/client/shim.js +8663 -0
- data/node_modules/core-js/client/shim.min.js +10 -0
- data/node_modules/core-js/client/shim.min.js.map +1 -0
- data/node_modules/core-js/core/_.js +2 -0
- data/node_modules/core-js/core/delay.js +2 -0
- data/node_modules/core-js/core/dict.js +2 -0
- data/node_modules/core-js/core/function.js +2 -0
- data/node_modules/core-js/core/index.js +15 -0
- data/node_modules/core-js/core/number.js +2 -0
- data/node_modules/core-js/core/object.js +5 -0
- data/node_modules/core-js/core/regexp.js +2 -0
- data/node_modules/core-js/core/string.js +3 -0
- data/node_modules/core-js/es5/index.js +37 -0
- data/node_modules/core-js/es6/array.js +23 -0
- data/node_modules/core-js/es6/date.js +6 -0
- data/node_modules/core-js/es6/function.js +4 -0
- data/node_modules/core-js/es6/index.js +139 -0
- data/node_modules/core-js/es6/map.js +5 -0
- data/node_modules/core-js/es6/math.js +18 -0
- data/node_modules/core-js/es6/number.js +13 -0
- data/node_modules/core-js/es6/object.js +20 -0
- data/node_modules/core-js/es6/parse-float.js +2 -0
- data/node_modules/core-js/es6/parse-int.js +2 -0
- data/node_modules/core-js/es6/promise.js +5 -0
- data/node_modules/core-js/es6/reflect.js +15 -0
- data/node_modules/core-js/es6/regexp.js +9 -0
- data/node_modules/core-js/es6/set.js +5 -0
- data/node_modules/core-js/es6/string.js +27 -0
- data/node_modules/core-js/es6/symbol.js +3 -0
- data/node_modules/core-js/es6/typed.js +13 -0
- data/node_modules/core-js/es6/weak-map.js +4 -0
- data/node_modules/core-js/es6/weak-set.js +4 -0
- data/node_modules/core-js/es7/array.js +4 -0
- data/node_modules/core-js/es7/asap.js +2 -0
- data/node_modules/core-js/es7/error.js +2 -0
- data/node_modules/core-js/es7/global.js +2 -0
- data/node_modules/core-js/es7/index.js +56 -0
- data/node_modules/core-js/es7/map.js +4 -0
- data/node_modules/core-js/es7/math.js +13 -0
- data/node_modules/core-js/es7/object.js +8 -0
- data/node_modules/core-js/es7/observable.js +7 -0
- data/node_modules/core-js/es7/promise.js +3 -0
- data/node_modules/core-js/es7/reflect.js +10 -0
- data/node_modules/core-js/es7/set.js +4 -0
- data/node_modules/core-js/es7/string.js +7 -0
- data/node_modules/core-js/es7/symbol.js +3 -0
- data/node_modules/core-js/es7/system.js +2 -0
- data/node_modules/core-js/es7/weak-map.js +3 -0
- data/node_modules/core-js/es7/weak-set.js +3 -0
- data/node_modules/core-js/fn/_.js +2 -0
- data/node_modules/core-js/fn/array/concat.js +4 -0
- data/node_modules/core-js/fn/array/copy-within.js +2 -0
- data/node_modules/core-js/fn/array/entries.js +2 -0
- data/node_modules/core-js/fn/array/every.js +2 -0
- data/node_modules/core-js/fn/array/fill.js +2 -0
- data/node_modules/core-js/fn/array/filter.js +2 -0
- data/node_modules/core-js/fn/array/find-index.js +2 -0
- data/node_modules/core-js/fn/array/find.js +2 -0
- data/node_modules/core-js/fn/array/flat-map.js +2 -0
- data/node_modules/core-js/fn/array/flatten.js +2 -0
- data/node_modules/core-js/fn/array/for-each.js +2 -0
- data/node_modules/core-js/fn/array/from.js +3 -0
- data/node_modules/core-js/fn/array/includes.js +2 -0
- data/node_modules/core-js/fn/array/index-of.js +2 -0
- data/node_modules/core-js/fn/array/index.js +26 -0
- data/node_modules/core-js/fn/array/is-array.js +2 -0
- data/node_modules/core-js/fn/array/iterator.js +2 -0
- data/node_modules/core-js/fn/array/join.js +2 -0
- data/node_modules/core-js/fn/array/keys.js +2 -0
- data/node_modules/core-js/fn/array/last-index-of.js +2 -0
- data/node_modules/core-js/fn/array/map.js +2 -0
- data/node_modules/core-js/fn/array/of.js +2 -0
- data/node_modules/core-js/fn/array/pop.js +4 -0
- data/node_modules/core-js/fn/array/push.js +4 -0
- data/node_modules/core-js/fn/array/reduce-right.js +2 -0
- data/node_modules/core-js/fn/array/reduce.js +2 -0
- data/node_modules/core-js/fn/array/reverse.js +4 -0
- data/node_modules/core-js/fn/array/shift.js +4 -0
- data/node_modules/core-js/fn/array/slice.js +2 -0
- data/node_modules/core-js/fn/array/some.js +2 -0
- data/node_modules/core-js/fn/array/sort.js +2 -0
- data/node_modules/core-js/fn/array/splice.js +4 -0
- data/node_modules/core-js/fn/array/unshift.js +4 -0
- data/node_modules/core-js/fn/array/values.js +2 -0
- data/node_modules/core-js/fn/array/virtual/copy-within.js +2 -0
- data/node_modules/core-js/fn/array/virtual/entries.js +2 -0
- data/node_modules/core-js/fn/array/virtual/every.js +2 -0
- data/node_modules/core-js/fn/array/virtual/fill.js +2 -0
- data/node_modules/core-js/fn/array/virtual/filter.js +2 -0
- data/node_modules/core-js/fn/array/virtual/find-index.js +2 -0
- data/node_modules/core-js/fn/array/virtual/find.js +2 -0
- data/node_modules/core-js/fn/array/virtual/flat-map.js +2 -0
- data/node_modules/core-js/fn/array/virtual/flatten.js +2 -0
- data/node_modules/core-js/fn/array/virtual/for-each.js +2 -0
- data/node_modules/core-js/fn/array/virtual/includes.js +2 -0
- data/node_modules/core-js/fn/array/virtual/index-of.js +2 -0
- data/node_modules/core-js/fn/array/virtual/index.js +20 -0
- data/node_modules/core-js/fn/array/virtual/iterator.js +2 -0
- data/node_modules/core-js/fn/array/virtual/join.js +2 -0
- data/node_modules/core-js/fn/array/virtual/keys.js +2 -0
- data/node_modules/core-js/fn/array/virtual/last-index-of.js +2 -0
- data/node_modules/core-js/fn/array/virtual/map.js +2 -0
- data/node_modules/core-js/fn/array/virtual/reduce-right.js +2 -0
- data/node_modules/core-js/fn/array/virtual/reduce.js +2 -0
- data/node_modules/core-js/fn/array/virtual/slice.js +2 -0
- data/node_modules/core-js/fn/array/virtual/some.js +2 -0
- data/node_modules/core-js/fn/array/virtual/sort.js +2 -0
- data/node_modules/core-js/fn/array/virtual/values.js +2 -0
- data/node_modules/core-js/fn/asap.js +2 -0
- data/node_modules/core-js/fn/clear-immediate.js +2 -0
- data/node_modules/core-js/fn/date/index.js +6 -0
- data/node_modules/core-js/fn/date/now.js +2 -0
- data/node_modules/core-js/fn/date/to-iso-string.js +3 -0
- data/node_modules/core-js/fn/date/to-json.js +2 -0
- data/node_modules/core-js/fn/date/to-primitive.js +5 -0
- data/node_modules/core-js/fn/date/to-string.js +5 -0
- data/node_modules/core-js/fn/delay.js +2 -0
- data/node_modules/core-js/fn/dict.js +2 -0
- data/node_modules/core-js/fn/dom-collections/index.js +8 -0
- data/node_modules/core-js/fn/dom-collections/iterator.js +2 -0
- data/node_modules/core-js/fn/error/index.js +2 -0
- data/node_modules/core-js/fn/error/is-error.js +2 -0
- data/node_modules/core-js/fn/function/bind.js +2 -0
- data/node_modules/core-js/fn/function/has-instance.js +2 -0
- data/node_modules/core-js/fn/function/index.js +5 -0
- data/node_modules/core-js/fn/function/name.js +1 -0
- data/node_modules/core-js/fn/function/part.js +2 -0
- data/node_modules/core-js/fn/function/virtual/bind.js +2 -0
- data/node_modules/core-js/fn/function/virtual/index.js +3 -0
- data/node_modules/core-js/fn/function/virtual/part.js +2 -0
- data/node_modules/core-js/fn/get-iterator-method.js +3 -0
- data/node_modules/core-js/fn/get-iterator.js +3 -0
- data/node_modules/core-js/fn/global.js +2 -0
- data/node_modules/core-js/fn/is-iterable.js +3 -0
- data/node_modules/core-js/fn/json/index.js +2 -0
- data/node_modules/core-js/fn/json/stringify.js +5 -0
- data/node_modules/core-js/fn/map/from.js +8 -0
- data/node_modules/core-js/fn/map/index.js +8 -0
- data/node_modules/core-js/fn/map/of.js +8 -0
- data/node_modules/core-js/fn/map.js +8 -0
- data/node_modules/core-js/fn/math/acosh.js +2 -0
- data/node_modules/core-js/fn/math/asinh.js +2 -0
- data/node_modules/core-js/fn/math/atanh.js +2 -0
- data/node_modules/core-js/fn/math/cbrt.js +2 -0
- data/node_modules/core-js/fn/math/clamp.js +2 -0
- data/node_modules/core-js/fn/math/clz32.js +2 -0
- data/node_modules/core-js/fn/math/cosh.js +2 -0
- data/node_modules/core-js/fn/math/deg-per-rad.js +2 -0
- data/node_modules/core-js/fn/math/degrees.js +2 -0
- data/node_modules/core-js/fn/math/expm1.js +2 -0
- data/node_modules/core-js/fn/math/fround.js +2 -0
- data/node_modules/core-js/fn/math/fscale.js +2 -0
- data/node_modules/core-js/fn/math/hypot.js +2 -0
- data/node_modules/core-js/fn/math/iaddh.js +2 -0
- data/node_modules/core-js/fn/math/imul.js +2 -0
- data/node_modules/core-js/fn/math/imulh.js +2 -0
- data/node_modules/core-js/fn/math/index.js +30 -0
- data/node_modules/core-js/fn/math/isubh.js +2 -0
- data/node_modules/core-js/fn/math/log10.js +2 -0
- data/node_modules/core-js/fn/math/log1p.js +2 -0
- data/node_modules/core-js/fn/math/log2.js +2 -0
- data/node_modules/core-js/fn/math/rad-per-deg.js +2 -0
- data/node_modules/core-js/fn/math/radians.js +2 -0
- data/node_modules/core-js/fn/math/scale.js +2 -0
- data/node_modules/core-js/fn/math/sign.js +2 -0
- data/node_modules/core-js/fn/math/signbit.js +3 -0
- data/node_modules/core-js/fn/math/sinh.js +2 -0
- data/node_modules/core-js/fn/math/tanh.js +2 -0
- data/node_modules/core-js/fn/math/trunc.js +2 -0
- data/node_modules/core-js/fn/math/umulh.js +2 -0
- data/node_modules/core-js/fn/number/constructor.js +2 -0
- data/node_modules/core-js/fn/number/epsilon.js +2 -0
- data/node_modules/core-js/fn/number/index.js +14 -0
- data/node_modules/core-js/fn/number/is-finite.js +2 -0
- data/node_modules/core-js/fn/number/is-integer.js +2 -0
- data/node_modules/core-js/fn/number/is-nan.js +2 -0
- data/node_modules/core-js/fn/number/is-safe-integer.js +2 -0
- data/node_modules/core-js/fn/number/iterator.js +5 -0
- data/node_modules/core-js/fn/number/max-safe-integer.js +2 -0
- data/node_modules/core-js/fn/number/min-safe-integer.js +2 -0
- data/node_modules/core-js/fn/number/parse-float.js +2 -0
- data/node_modules/core-js/fn/number/parse-int.js +2 -0
- data/node_modules/core-js/fn/number/to-fixed.js +2 -0
- data/node_modules/core-js/fn/number/to-precision.js +2 -0
- data/node_modules/core-js/fn/number/virtual/index.js +4 -0
- data/node_modules/core-js/fn/number/virtual/iterator.js +2 -0
- data/node_modules/core-js/fn/number/virtual/to-fixed.js +2 -0
- data/node_modules/core-js/fn/number/virtual/to-precision.js +2 -0
- data/node_modules/core-js/fn/object/assign.js +2 -0
- data/node_modules/core-js/fn/object/classof.js +2 -0
- data/node_modules/core-js/fn/object/create.js +5 -0
- data/node_modules/core-js/fn/object/define-getter.js +2 -0
- data/node_modules/core-js/fn/object/define-properties.js +5 -0
- data/node_modules/core-js/fn/object/define-property.js +5 -0
- data/node_modules/core-js/fn/object/define-setter.js +2 -0
- data/node_modules/core-js/fn/object/define.js +2 -0
- data/node_modules/core-js/fn/object/entries.js +2 -0
- data/node_modules/core-js/fn/object/freeze.js +2 -0
- data/node_modules/core-js/fn/object/get-own-property-descriptor.js +5 -0
- data/node_modules/core-js/fn/object/get-own-property-descriptors.js +2 -0
- data/node_modules/core-js/fn/object/get-own-property-names.js +5 -0
- data/node_modules/core-js/fn/object/get-own-property-symbols.js +2 -0
- data/node_modules/core-js/fn/object/get-prototype-of.js +2 -0
- data/node_modules/core-js/fn/object/index.js +30 -0
- data/node_modules/core-js/fn/object/is-extensible.js +2 -0
- data/node_modules/core-js/fn/object/is-frozen.js +2 -0
- data/node_modules/core-js/fn/object/is-object.js +2 -0
- data/node_modules/core-js/fn/object/is-sealed.js +2 -0
- data/node_modules/core-js/fn/object/is.js +2 -0
- data/node_modules/core-js/fn/object/keys.js +2 -0
- data/node_modules/core-js/fn/object/lookup-getter.js +2 -0
- data/node_modules/core-js/fn/object/lookup-setter.js +2 -0
- data/node_modules/core-js/fn/object/make.js +2 -0
- data/node_modules/core-js/fn/object/prevent-extensions.js +2 -0
- data/node_modules/core-js/fn/object/seal.js +2 -0
- data/node_modules/core-js/fn/object/set-prototype-of.js +2 -0
- data/node_modules/core-js/fn/object/values.js +2 -0
- data/node_modules/core-js/fn/observable.js +7 -0
- data/node_modules/core-js/fn/parse-float.js +2 -0
- data/node_modules/core-js/fn/parse-int.js +2 -0
- data/node_modules/core-js/fn/promise/finally.js +4 -0
- data/node_modules/core-js/fn/promise/index.js +7 -0
- data/node_modules/core-js/fn/promise/try.js +8 -0
- data/node_modules/core-js/fn/promise.js +7 -0
- data/node_modules/core-js/fn/reflect/apply.js +2 -0
- data/node_modules/core-js/fn/reflect/construct.js +2 -0
- data/node_modules/core-js/fn/reflect/define-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/define-property.js +2 -0
- data/node_modules/core-js/fn/reflect/delete-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/delete-property.js +2 -0
- data/node_modules/core-js/fn/reflect/enumerate.js +2 -0
- data/node_modules/core-js/fn/reflect/get-metadata-keys.js +2 -0
- data/node_modules/core-js/fn/reflect/get-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/get-own-metadata-keys.js +2 -0
- data/node_modules/core-js/fn/reflect/get-own-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/get-own-property-descriptor.js +2 -0
- data/node_modules/core-js/fn/reflect/get-prototype-of.js +2 -0
- data/node_modules/core-js/fn/reflect/get.js +2 -0
- data/node_modules/core-js/fn/reflect/has-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/has-own-metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/has.js +2 -0
- data/node_modules/core-js/fn/reflect/index.js +24 -0
- data/node_modules/core-js/fn/reflect/is-extensible.js +2 -0
- data/node_modules/core-js/fn/reflect/metadata.js +2 -0
- data/node_modules/core-js/fn/reflect/own-keys.js +2 -0
- data/node_modules/core-js/fn/reflect/prevent-extensions.js +2 -0
- data/node_modules/core-js/fn/reflect/set-prototype-of.js +2 -0
- data/node_modules/core-js/fn/reflect/set.js +2 -0
- data/node_modules/core-js/fn/regexp/constructor.js +2 -0
- data/node_modules/core-js/fn/regexp/escape.js +2 -0
- data/node_modules/core-js/fn/regexp/flags.js +5 -0
- data/node_modules/core-js/fn/regexp/index.js +10 -0
- data/node_modules/core-js/fn/regexp/match.js +5 -0
- data/node_modules/core-js/fn/regexp/replace.js +5 -0
- data/node_modules/core-js/fn/regexp/search.js +5 -0
- data/node_modules/core-js/fn/regexp/split.js +5 -0
- data/node_modules/core-js/fn/regexp/to-string.js +5 -0
- data/node_modules/core-js/fn/set/from.js +8 -0
- data/node_modules/core-js/fn/set/index.js +8 -0
- data/node_modules/core-js/fn/set/of.js +8 -0
- data/node_modules/core-js/fn/set-immediate.js +2 -0
- data/node_modules/core-js/fn/set-interval.js +2 -0
- data/node_modules/core-js/fn/set-timeout.js +2 -0
- data/node_modules/core-js/fn/set.js +8 -0
- data/node_modules/core-js/fn/string/anchor.js +2 -0
- data/node_modules/core-js/fn/string/at.js +2 -0
- data/node_modules/core-js/fn/string/big.js +2 -0
- data/node_modules/core-js/fn/string/blink.js +2 -0
- data/node_modules/core-js/fn/string/bold.js +2 -0
- data/node_modules/core-js/fn/string/code-point-at.js +2 -0
- data/node_modules/core-js/fn/string/ends-with.js +2 -0
- data/node_modules/core-js/fn/string/escape-html.js +2 -0
- data/node_modules/core-js/fn/string/fixed.js +2 -0
- data/node_modules/core-js/fn/string/fontcolor.js +2 -0
- data/node_modules/core-js/fn/string/fontsize.js +2 -0
- data/node_modules/core-js/fn/string/from-code-point.js +2 -0
- data/node_modules/core-js/fn/string/includes.js +2 -0
- data/node_modules/core-js/fn/string/index.js +35 -0
- data/node_modules/core-js/fn/string/italics.js +2 -0
- data/node_modules/core-js/fn/string/iterator.js +5 -0
- data/node_modules/core-js/fn/string/link.js +2 -0
- data/node_modules/core-js/fn/string/match-all.js +2 -0
- data/node_modules/core-js/fn/string/pad-end.js +2 -0
- data/node_modules/core-js/fn/string/pad-start.js +2 -0
- data/node_modules/core-js/fn/string/raw.js +2 -0
- data/node_modules/core-js/fn/string/repeat.js +2 -0
- data/node_modules/core-js/fn/string/small.js +2 -0
- data/node_modules/core-js/fn/string/starts-with.js +2 -0
- data/node_modules/core-js/fn/string/strike.js +2 -0
- data/node_modules/core-js/fn/string/sub.js +2 -0
- data/node_modules/core-js/fn/string/sup.js +2 -0
- data/node_modules/core-js/fn/string/trim-end.js +2 -0
- data/node_modules/core-js/fn/string/trim-left.js +2 -0
- data/node_modules/core-js/fn/string/trim-right.js +2 -0
- data/node_modules/core-js/fn/string/trim-start.js +2 -0
- data/node_modules/core-js/fn/string/trim.js +2 -0
- data/node_modules/core-js/fn/string/unescape-html.js +2 -0
- data/node_modules/core-js/fn/string/virtual/anchor.js +2 -0
- data/node_modules/core-js/fn/string/virtual/at.js +2 -0
- data/node_modules/core-js/fn/string/virtual/big.js +2 -0
- data/node_modules/core-js/fn/string/virtual/blink.js +2 -0
- data/node_modules/core-js/fn/string/virtual/bold.js +2 -0
- data/node_modules/core-js/fn/string/virtual/code-point-at.js +2 -0
- data/node_modules/core-js/fn/string/virtual/ends-with.js +2 -0
- data/node_modules/core-js/fn/string/virtual/escape-html.js +2 -0
- data/node_modules/core-js/fn/string/virtual/fixed.js +2 -0
- data/node_modules/core-js/fn/string/virtual/fontcolor.js +2 -0
- data/node_modules/core-js/fn/string/virtual/fontsize.js +2 -0
- data/node_modules/core-js/fn/string/virtual/includes.js +2 -0
- data/node_modules/core-js/fn/string/virtual/index.js +33 -0
- data/node_modules/core-js/fn/string/virtual/italics.js +2 -0
- data/node_modules/core-js/fn/string/virtual/iterator.js +2 -0
- data/node_modules/core-js/fn/string/virtual/link.js +2 -0
- data/node_modules/core-js/fn/string/virtual/match-all.js +2 -0
- data/node_modules/core-js/fn/string/virtual/pad-end.js +2 -0
- data/node_modules/core-js/fn/string/virtual/pad-start.js +2 -0
- data/node_modules/core-js/fn/string/virtual/repeat.js +2 -0
- data/node_modules/core-js/fn/string/virtual/small.js +2 -0
- data/node_modules/core-js/fn/string/virtual/starts-with.js +2 -0
- data/node_modules/core-js/fn/string/virtual/strike.js +2 -0
- data/node_modules/core-js/fn/string/virtual/sub.js +2 -0
- data/node_modules/core-js/fn/string/virtual/sup.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim-end.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim-left.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim-right.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim-start.js +2 -0
- data/node_modules/core-js/fn/string/virtual/trim.js +2 -0
- data/node_modules/core-js/fn/string/virtual/unescape-html.js +2 -0
- data/node_modules/core-js/fn/symbol/async-iterator.js +2 -0
- data/node_modules/core-js/fn/symbol/for.js +2 -0
- data/node_modules/core-js/fn/symbol/has-instance.js +2 -0
- data/node_modules/core-js/fn/symbol/index.js +5 -0
- data/node_modules/core-js/fn/symbol/is-concat-spreadable.js +1 -0
- data/node_modules/core-js/fn/symbol/iterator.js +3 -0
- data/node_modules/core-js/fn/symbol/key-for.js +2 -0
- data/node_modules/core-js/fn/symbol/match.js +2 -0
- data/node_modules/core-js/fn/symbol/observable.js +2 -0
- data/node_modules/core-js/fn/symbol/replace.js +2 -0
- data/node_modules/core-js/fn/symbol/search.js +2 -0
- data/node_modules/core-js/fn/symbol/species.js +1 -0
- data/node_modules/core-js/fn/symbol/split.js +2 -0
- data/node_modules/core-js/fn/symbol/to-primitive.js +1 -0
- data/node_modules/core-js/fn/symbol/to-string-tag.js +2 -0
- data/node_modules/core-js/fn/symbol/unscopables.js +1 -0
- data/node_modules/core-js/fn/system/global.js +2 -0
- data/node_modules/core-js/fn/system/index.js +2 -0
- data/node_modules/core-js/fn/typed/array-buffer.js +3 -0
- data/node_modules/core-js/fn/typed/data-view.js +3 -0
- data/node_modules/core-js/fn/typed/float32-array.js +2 -0
- data/node_modules/core-js/fn/typed/float64-array.js +2 -0
- data/node_modules/core-js/fn/typed/index.js +13 -0
- data/node_modules/core-js/fn/typed/int16-array.js +2 -0
- data/node_modules/core-js/fn/typed/int32-array.js +2 -0
- data/node_modules/core-js/fn/typed/int8-array.js +2 -0
- data/node_modules/core-js/fn/typed/uint16-array.js +2 -0
- data/node_modules/core-js/fn/typed/uint32-array.js +2 -0
- data/node_modules/core-js/fn/typed/uint8-array.js +2 -0
- data/node_modules/core-js/fn/typed/uint8-clamped-array.js +2 -0
- data/node_modules/core-js/fn/weak-map/from.js +8 -0
- data/node_modules/core-js/fn/weak-map/index.js +6 -0
- data/node_modules/core-js/fn/weak-map/of.js +8 -0
- data/node_modules/core-js/fn/weak-map.js +6 -0
- data/node_modules/core-js/fn/weak-set/from.js +8 -0
- data/node_modules/core-js/fn/weak-set/index.js +6 -0
- data/node_modules/core-js/fn/weak-set/of.js +8 -0
- data/node_modules/core-js/fn/weak-set.js +6 -0
- data/node_modules/core-js/index.js +16 -0
- data/node_modules/core-js/library/core/_.js +2 -0
- data/node_modules/core-js/library/core/delay.js +2 -0
- data/node_modules/core-js/library/core/dict.js +2 -0
- data/node_modules/core-js/library/core/function.js +2 -0
- data/node_modules/core-js/library/core/index.js +15 -0
- data/node_modules/core-js/library/core/number.js +2 -0
- data/node_modules/core-js/library/core/object.js +5 -0
- data/node_modules/core-js/library/core/regexp.js +2 -0
- data/node_modules/core-js/library/core/string.js +3 -0
- data/node_modules/core-js/library/es5/index.js +37 -0
- data/node_modules/core-js/library/es6/array.js +23 -0
- data/node_modules/core-js/library/es6/date.js +6 -0
- data/node_modules/core-js/library/es6/function.js +4 -0
- data/node_modules/core-js/library/es6/index.js +139 -0
- data/node_modules/core-js/library/es6/map.js +5 -0
- data/node_modules/core-js/library/es6/math.js +18 -0
- data/node_modules/core-js/library/es6/number.js +13 -0
- data/node_modules/core-js/library/es6/object.js +20 -0
- data/node_modules/core-js/library/es6/parse-float.js +2 -0
- data/node_modules/core-js/library/es6/parse-int.js +2 -0
- data/node_modules/core-js/library/es6/promise.js +5 -0
- data/node_modules/core-js/library/es6/reflect.js +15 -0
- data/node_modules/core-js/library/es6/regexp.js +9 -0
- data/node_modules/core-js/library/es6/set.js +5 -0
- data/node_modules/core-js/library/es6/string.js +27 -0
- data/node_modules/core-js/library/es6/symbol.js +3 -0
- data/node_modules/core-js/library/es6/typed.js +13 -0
- data/node_modules/core-js/library/es6/weak-map.js +4 -0
- data/node_modules/core-js/library/es6/weak-set.js +4 -0
- data/node_modules/core-js/library/es7/array.js +4 -0
- data/node_modules/core-js/library/es7/asap.js +2 -0
- data/node_modules/core-js/library/es7/error.js +2 -0
- data/node_modules/core-js/library/es7/global.js +2 -0
- data/node_modules/core-js/library/es7/index.js +56 -0
- data/node_modules/core-js/library/es7/map.js +4 -0
- data/node_modules/core-js/library/es7/math.js +13 -0
- data/node_modules/core-js/library/es7/object.js +8 -0
- data/node_modules/core-js/library/es7/observable.js +7 -0
- data/node_modules/core-js/library/es7/promise.js +3 -0
- data/node_modules/core-js/library/es7/reflect.js +10 -0
- data/node_modules/core-js/library/es7/set.js +4 -0
- data/node_modules/core-js/library/es7/string.js +7 -0
- data/node_modules/core-js/library/es7/symbol.js +3 -0
- data/node_modules/core-js/library/es7/system.js +2 -0
- data/node_modules/core-js/library/es7/weak-map.js +3 -0
- data/node_modules/core-js/library/es7/weak-set.js +3 -0
- data/node_modules/core-js/library/fn/_.js +2 -0
- data/node_modules/core-js/library/fn/array/concat.js +4 -0
- data/node_modules/core-js/library/fn/array/copy-within.js +2 -0
- data/node_modules/core-js/library/fn/array/entries.js +2 -0
- data/node_modules/core-js/library/fn/array/every.js +2 -0
- data/node_modules/core-js/library/fn/array/fill.js +2 -0
- data/node_modules/core-js/library/fn/array/filter.js +2 -0
- data/node_modules/core-js/library/fn/array/find-index.js +2 -0
- data/node_modules/core-js/library/fn/array/find.js +2 -0
- data/node_modules/core-js/library/fn/array/flat-map.js +2 -0
- data/node_modules/core-js/library/fn/array/flatten.js +2 -0
- data/node_modules/core-js/library/fn/array/for-each.js +2 -0
- data/node_modules/core-js/library/fn/array/from.js +3 -0
- data/node_modules/core-js/library/fn/array/includes.js +2 -0
- data/node_modules/core-js/library/fn/array/index-of.js +2 -0
- data/node_modules/core-js/library/fn/array/index.js +26 -0
- data/node_modules/core-js/library/fn/array/is-array.js +2 -0
- data/node_modules/core-js/library/fn/array/iterator.js +2 -0
- data/node_modules/core-js/library/fn/array/join.js +2 -0
- data/node_modules/core-js/library/fn/array/keys.js +2 -0
- data/node_modules/core-js/library/fn/array/last-index-of.js +2 -0
- data/node_modules/core-js/library/fn/array/map.js +2 -0
- data/node_modules/core-js/library/fn/array/of.js +2 -0
- data/node_modules/core-js/library/fn/array/pop.js +4 -0
- data/node_modules/core-js/library/fn/array/push.js +4 -0
- data/node_modules/core-js/library/fn/array/reduce-right.js +2 -0
- data/node_modules/core-js/library/fn/array/reduce.js +2 -0
- data/node_modules/core-js/library/fn/array/reverse.js +4 -0
- data/node_modules/core-js/library/fn/array/shift.js +4 -0
- data/node_modules/core-js/library/fn/array/slice.js +2 -0
- data/node_modules/core-js/library/fn/array/some.js +2 -0
- data/node_modules/core-js/library/fn/array/sort.js +2 -0
- data/node_modules/core-js/library/fn/array/splice.js +4 -0
- data/node_modules/core-js/library/fn/array/unshift.js +4 -0
- data/node_modules/core-js/library/fn/array/values.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/copy-within.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/entries.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/every.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/fill.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/filter.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/find-index.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/find.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/flat-map.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/flatten.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/for-each.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/includes.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/index-of.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/index.js +20 -0
- data/node_modules/core-js/library/fn/array/virtual/iterator.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/join.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/keys.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/last-index-of.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/map.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/reduce-right.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/reduce.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/slice.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/some.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/sort.js +2 -0
- data/node_modules/core-js/library/fn/array/virtual/values.js +2 -0
- data/node_modules/core-js/library/fn/asap.js +2 -0
- data/node_modules/core-js/library/fn/clear-immediate.js +2 -0
- data/node_modules/core-js/library/fn/date/index.js +6 -0
- data/node_modules/core-js/library/fn/date/now.js +2 -0
- data/node_modules/core-js/library/fn/date/to-iso-string.js +3 -0
- data/node_modules/core-js/library/fn/date/to-json.js +2 -0
- data/node_modules/core-js/library/fn/date/to-primitive.js +5 -0
- data/node_modules/core-js/library/fn/date/to-string.js +5 -0
- data/node_modules/core-js/library/fn/delay.js +2 -0
- data/node_modules/core-js/library/fn/dict.js +2 -0
- data/node_modules/core-js/library/fn/dom-collections/index.js +8 -0
- data/node_modules/core-js/library/fn/dom-collections/iterator.js +2 -0
- data/node_modules/core-js/library/fn/error/index.js +2 -0
- data/node_modules/core-js/library/fn/error/is-error.js +2 -0
- data/node_modules/core-js/library/fn/function/bind.js +2 -0
- data/node_modules/core-js/library/fn/function/has-instance.js +2 -0
- data/node_modules/core-js/library/fn/function/index.js +5 -0
- data/node_modules/core-js/library/fn/function/name.js +1 -0
- data/node_modules/core-js/library/fn/function/part.js +2 -0
- data/node_modules/core-js/library/fn/function/virtual/bind.js +2 -0
- data/node_modules/core-js/library/fn/function/virtual/index.js +3 -0
- data/node_modules/core-js/library/fn/function/virtual/part.js +2 -0
- data/node_modules/core-js/library/fn/get-iterator-method.js +3 -0
- data/node_modules/core-js/library/fn/get-iterator.js +3 -0
- data/node_modules/core-js/library/fn/global.js +2 -0
- data/node_modules/core-js/library/fn/is-iterable.js +3 -0
- data/node_modules/core-js/library/fn/json/index.js +2 -0
- data/node_modules/core-js/library/fn/json/stringify.js +5 -0
- data/node_modules/core-js/library/fn/map/from.js +8 -0
- data/node_modules/core-js/library/fn/map/index.js +8 -0
- data/node_modules/core-js/library/fn/map/of.js +8 -0
- data/node_modules/core-js/library/fn/map.js +8 -0
- data/node_modules/core-js/library/fn/math/acosh.js +2 -0
- data/node_modules/core-js/library/fn/math/asinh.js +2 -0
- data/node_modules/core-js/library/fn/math/atanh.js +2 -0
- data/node_modules/core-js/library/fn/math/cbrt.js +2 -0
- data/node_modules/core-js/library/fn/math/clamp.js +2 -0
- data/node_modules/core-js/library/fn/math/clz32.js +2 -0
- data/node_modules/core-js/library/fn/math/cosh.js +2 -0
- data/node_modules/core-js/library/fn/math/deg-per-rad.js +2 -0
- data/node_modules/core-js/library/fn/math/degrees.js +2 -0
- data/node_modules/core-js/library/fn/math/expm1.js +2 -0
- data/node_modules/core-js/library/fn/math/fround.js +2 -0
- data/node_modules/core-js/library/fn/math/fscale.js +2 -0
- data/node_modules/core-js/library/fn/math/hypot.js +2 -0
- data/node_modules/core-js/library/fn/math/iaddh.js +2 -0
- data/node_modules/core-js/library/fn/math/imul.js +2 -0
- data/node_modules/core-js/library/fn/math/imulh.js +2 -0
- data/node_modules/core-js/library/fn/math/index.js +30 -0
- data/node_modules/core-js/library/fn/math/isubh.js +2 -0
- data/node_modules/core-js/library/fn/math/log10.js +2 -0
- data/node_modules/core-js/library/fn/math/log1p.js +2 -0
- data/node_modules/core-js/library/fn/math/log2.js +2 -0
- data/node_modules/core-js/library/fn/math/rad-per-deg.js +2 -0
- data/node_modules/core-js/library/fn/math/radians.js +2 -0
- data/node_modules/core-js/library/fn/math/scale.js +2 -0
- data/node_modules/core-js/library/fn/math/sign.js +2 -0
- data/node_modules/core-js/library/fn/math/signbit.js +3 -0
- data/node_modules/core-js/library/fn/math/sinh.js +2 -0
- data/node_modules/core-js/library/fn/math/tanh.js +2 -0
- data/node_modules/core-js/library/fn/math/trunc.js +2 -0
- data/node_modules/core-js/library/fn/math/umulh.js +2 -0
- data/node_modules/core-js/library/fn/number/constructor.js +2 -0
- data/node_modules/core-js/library/fn/number/epsilon.js +2 -0
- data/node_modules/core-js/library/fn/number/index.js +14 -0
- data/node_modules/core-js/library/fn/number/is-finite.js +2 -0
- data/node_modules/core-js/library/fn/number/is-integer.js +2 -0
- data/node_modules/core-js/library/fn/number/is-nan.js +2 -0
- data/node_modules/core-js/library/fn/number/is-safe-integer.js +2 -0
- data/node_modules/core-js/library/fn/number/iterator.js +5 -0
- data/node_modules/core-js/library/fn/number/max-safe-integer.js +2 -0
- data/node_modules/core-js/library/fn/number/min-safe-integer.js +2 -0
- data/node_modules/core-js/library/fn/number/parse-float.js +2 -0
- data/node_modules/core-js/library/fn/number/parse-int.js +2 -0
- data/node_modules/core-js/library/fn/number/to-fixed.js +2 -0
- data/node_modules/core-js/library/fn/number/to-precision.js +2 -0
- data/node_modules/core-js/library/fn/number/virtual/index.js +4 -0
- data/node_modules/core-js/library/fn/number/virtual/iterator.js +2 -0
- data/node_modules/core-js/library/fn/number/virtual/to-fixed.js +2 -0
- data/node_modules/core-js/library/fn/number/virtual/to-precision.js +2 -0
- data/node_modules/core-js/library/fn/object/assign.js +2 -0
- data/node_modules/core-js/library/fn/object/classof.js +2 -0
- data/node_modules/core-js/library/fn/object/create.js +5 -0
- data/node_modules/core-js/library/fn/object/define-getter.js +2 -0
- data/node_modules/core-js/library/fn/object/define-properties.js +5 -0
- data/node_modules/core-js/library/fn/object/define-property.js +5 -0
- data/node_modules/core-js/library/fn/object/define-setter.js +2 -0
- data/node_modules/core-js/library/fn/object/define.js +2 -0
- data/node_modules/core-js/library/fn/object/entries.js +2 -0
- data/node_modules/core-js/library/fn/object/freeze.js +2 -0
- data/node_modules/core-js/library/fn/object/get-own-property-descriptor.js +5 -0
- data/node_modules/core-js/library/fn/object/get-own-property-descriptors.js +2 -0
- data/node_modules/core-js/library/fn/object/get-own-property-names.js +5 -0
- data/node_modules/core-js/library/fn/object/get-own-property-symbols.js +2 -0
- data/node_modules/core-js/library/fn/object/get-prototype-of.js +2 -0
- data/node_modules/core-js/library/fn/object/index.js +30 -0
- data/node_modules/core-js/library/fn/object/is-extensible.js +2 -0
- data/node_modules/core-js/library/fn/object/is-frozen.js +2 -0
- data/node_modules/core-js/library/fn/object/is-object.js +2 -0
- data/node_modules/core-js/library/fn/object/is-sealed.js +2 -0
- data/node_modules/core-js/library/fn/object/is.js +2 -0
- data/node_modules/core-js/library/fn/object/keys.js +2 -0
- data/node_modules/core-js/library/fn/object/lookup-getter.js +2 -0
- data/node_modules/core-js/library/fn/object/lookup-setter.js +2 -0
- data/node_modules/core-js/library/fn/object/make.js +2 -0
- data/node_modules/core-js/library/fn/object/prevent-extensions.js +2 -0
- data/node_modules/core-js/library/fn/object/seal.js +2 -0
- data/node_modules/core-js/library/fn/object/set-prototype-of.js +2 -0
- data/node_modules/core-js/library/fn/object/values.js +2 -0
- data/node_modules/core-js/library/fn/observable.js +7 -0
- data/node_modules/core-js/library/fn/parse-float.js +2 -0
- data/node_modules/core-js/library/fn/parse-int.js +2 -0
- data/node_modules/core-js/library/fn/promise/finally.js +4 -0
- data/node_modules/core-js/library/fn/promise/index.js +7 -0
- data/node_modules/core-js/library/fn/promise/try.js +8 -0
- data/node_modules/core-js/library/fn/promise.js +7 -0
- data/node_modules/core-js/library/fn/reflect/apply.js +2 -0
- data/node_modules/core-js/library/fn/reflect/construct.js +2 -0
- data/node_modules/core-js/library/fn/reflect/define-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/define-property.js +2 -0
- data/node_modules/core-js/library/fn/reflect/delete-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/delete-property.js +2 -0
- data/node_modules/core-js/library/fn/reflect/enumerate.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-metadata-keys.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-own-metadata-keys.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-own-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-own-property-descriptor.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get-prototype-of.js +2 -0
- data/node_modules/core-js/library/fn/reflect/get.js +2 -0
- data/node_modules/core-js/library/fn/reflect/has-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/has-own-metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/has.js +2 -0
- data/node_modules/core-js/library/fn/reflect/index.js +24 -0
- data/node_modules/core-js/library/fn/reflect/is-extensible.js +2 -0
- data/node_modules/core-js/library/fn/reflect/metadata.js +2 -0
- data/node_modules/core-js/library/fn/reflect/own-keys.js +2 -0
- data/node_modules/core-js/library/fn/reflect/prevent-extensions.js +2 -0
- data/node_modules/core-js/library/fn/reflect/set-prototype-of.js +2 -0
- data/node_modules/core-js/library/fn/reflect/set.js +2 -0
- data/node_modules/core-js/library/fn/regexp/constructor.js +2 -0
- data/node_modules/core-js/library/fn/regexp/escape.js +2 -0
- data/node_modules/core-js/library/fn/regexp/flags.js +5 -0
- data/node_modules/core-js/library/fn/regexp/index.js +10 -0
- data/node_modules/core-js/library/fn/regexp/match.js +5 -0
- data/node_modules/core-js/library/fn/regexp/replace.js +5 -0
- data/node_modules/core-js/library/fn/regexp/search.js +5 -0
- data/node_modules/core-js/library/fn/regexp/split.js +5 -0
- data/node_modules/core-js/library/fn/regexp/to-string.js +5 -0
- data/node_modules/core-js/library/fn/set/from.js +8 -0
- data/node_modules/core-js/library/fn/set/index.js +8 -0
- data/node_modules/core-js/library/fn/set/of.js +8 -0
- data/node_modules/core-js/library/fn/set-immediate.js +2 -0
- data/node_modules/core-js/library/fn/set-interval.js +2 -0
- data/node_modules/core-js/library/fn/set-timeout.js +2 -0
- data/node_modules/core-js/library/fn/set.js +8 -0
- data/node_modules/core-js/library/fn/string/anchor.js +2 -0
- data/node_modules/core-js/library/fn/string/at.js +2 -0
- data/node_modules/core-js/library/fn/string/big.js +2 -0
- data/node_modules/core-js/library/fn/string/blink.js +2 -0
- data/node_modules/core-js/library/fn/string/bold.js +2 -0
- data/node_modules/core-js/library/fn/string/code-point-at.js +2 -0
- data/node_modules/core-js/library/fn/string/ends-with.js +2 -0
- data/node_modules/core-js/library/fn/string/escape-html.js +2 -0
- data/node_modules/core-js/library/fn/string/fixed.js +2 -0
- data/node_modules/core-js/library/fn/string/fontcolor.js +2 -0
- data/node_modules/core-js/library/fn/string/fontsize.js +2 -0
- data/node_modules/core-js/library/fn/string/from-code-point.js +2 -0
- data/node_modules/core-js/library/fn/string/includes.js +2 -0
- data/node_modules/core-js/library/fn/string/index.js +35 -0
- data/node_modules/core-js/library/fn/string/italics.js +2 -0
- data/node_modules/core-js/library/fn/string/iterator.js +5 -0
- data/node_modules/core-js/library/fn/string/link.js +2 -0
- data/node_modules/core-js/library/fn/string/match-all.js +2 -0
- data/node_modules/core-js/library/fn/string/pad-end.js +2 -0
- data/node_modules/core-js/library/fn/string/pad-start.js +2 -0
- data/node_modules/core-js/library/fn/string/raw.js +2 -0
- data/node_modules/core-js/library/fn/string/repeat.js +2 -0
- data/node_modules/core-js/library/fn/string/small.js +2 -0
- data/node_modules/core-js/library/fn/string/starts-with.js +2 -0
- data/node_modules/core-js/library/fn/string/strike.js +2 -0
- data/node_modules/core-js/library/fn/string/sub.js +2 -0
- data/node_modules/core-js/library/fn/string/sup.js +2 -0
- data/node_modules/core-js/library/fn/string/trim-end.js +2 -0
- data/node_modules/core-js/library/fn/string/trim-left.js +2 -0
- data/node_modules/core-js/library/fn/string/trim-right.js +2 -0
- data/node_modules/core-js/library/fn/string/trim-start.js +2 -0
- data/node_modules/core-js/library/fn/string/trim.js +2 -0
- data/node_modules/core-js/library/fn/string/unescape-html.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/anchor.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/at.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/big.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/blink.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/bold.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/code-point-at.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/ends-with.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/escape-html.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/fixed.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/fontcolor.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/fontsize.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/includes.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/index.js +33 -0
- data/node_modules/core-js/library/fn/string/virtual/italics.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/iterator.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/link.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/match-all.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/pad-end.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/pad-start.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/repeat.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/small.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/starts-with.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/strike.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/sub.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/sup.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim-end.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim-left.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim-right.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim-start.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/trim.js +2 -0
- data/node_modules/core-js/library/fn/string/virtual/unescape-html.js +2 -0
- data/node_modules/core-js/library/fn/symbol/async-iterator.js +2 -0
- data/node_modules/core-js/library/fn/symbol/for.js +2 -0
- data/node_modules/core-js/library/fn/symbol/has-instance.js +2 -0
- data/node_modules/core-js/library/fn/symbol/index.js +5 -0
- data/node_modules/core-js/library/fn/symbol/is-concat-spreadable.js +1 -0
- data/node_modules/core-js/library/fn/symbol/iterator.js +3 -0
- data/node_modules/core-js/library/fn/symbol/key-for.js +2 -0
- data/node_modules/core-js/library/fn/symbol/match.js +2 -0
- data/node_modules/core-js/library/fn/symbol/observable.js +2 -0
- data/node_modules/core-js/library/fn/symbol/replace.js +2 -0
- data/node_modules/core-js/library/fn/symbol/search.js +2 -0
- data/node_modules/core-js/library/fn/symbol/species.js +1 -0
- data/node_modules/core-js/library/fn/symbol/split.js +2 -0
- data/node_modules/core-js/library/fn/symbol/to-primitive.js +1 -0
- data/node_modules/core-js/library/fn/symbol/to-string-tag.js +2 -0
- data/node_modules/core-js/library/fn/symbol/unscopables.js +1 -0
- data/node_modules/core-js/library/fn/system/global.js +2 -0
- data/node_modules/core-js/library/fn/system/index.js +2 -0
- data/node_modules/core-js/library/fn/typed/array-buffer.js +3 -0
- data/node_modules/core-js/library/fn/typed/data-view.js +3 -0
- data/node_modules/core-js/library/fn/typed/float32-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/float64-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/index.js +13 -0
- data/node_modules/core-js/library/fn/typed/int16-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/int32-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/int8-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/uint16-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/uint32-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/uint8-array.js +2 -0
- data/node_modules/core-js/library/fn/typed/uint8-clamped-array.js +2 -0
- data/node_modules/core-js/library/fn/weak-map/from.js +8 -0
- data/node_modules/core-js/library/fn/weak-map/index.js +6 -0
- data/node_modules/core-js/library/fn/weak-map/of.js +8 -0
- data/node_modules/core-js/library/fn/weak-map.js +6 -0
- data/node_modules/core-js/library/fn/weak-set/from.js +8 -0
- data/node_modules/core-js/library/fn/weak-set/index.js +6 -0
- data/node_modules/core-js/library/fn/weak-set/of.js +8 -0
- data/node_modules/core-js/library/fn/weak-set.js +6 -0
- data/node_modules/core-js/library/index.js +16 -0
- data/node_modules/core-js/library/modules/_a-function.js +4 -0
- data/node_modules/core-js/library/modules/_a-number-value.js +5 -0
- data/node_modules/core-js/library/modules/_add-to-unscopables.js +1 -0
- data/node_modules/core-js/library/modules/_advance-string-index.js +8 -0
- data/node_modules/core-js/library/modules/_an-instance.js +5 -0
- data/node_modules/core-js/library/modules/_an-object.js +5 -0
- data/node_modules/core-js/library/modules/_array-copy-within.js +26 -0
- data/node_modules/core-js/library/modules/_array-fill.js +15 -0
- data/node_modules/core-js/library/modules/_array-from-iterable.js +7 -0
- data/node_modules/core-js/library/modules/_array-includes.js +23 -0
- data/node_modules/core-js/library/modules/_array-methods.js +44 -0
- data/node_modules/core-js/library/modules/_array-reduce.js +28 -0
- data/node_modules/core-js/library/modules/_array-species-constructor.js +16 -0
- data/node_modules/core-js/library/modules/_array-species-create.js +6 -0
- data/node_modules/core-js/library/modules/_bind.js +25 -0
- data/node_modules/core-js/library/modules/_classof.js +23 -0
- data/node_modules/core-js/library/modules/_cof.js +5 -0
- data/node_modules/core-js/library/modules/_collection-strong.js +144 -0
- data/node_modules/core-js/library/modules/_collection-to-json.js +9 -0
- data/node_modules/core-js/library/modules/_collection-weak.js +85 -0
- data/node_modules/core-js/library/modules/_collection.js +59 -0
- data/node_modules/core-js/library/modules/_core.js +2 -0
- data/node_modules/core-js/library/modules/_create-property.js +8 -0
- data/node_modules/core-js/library/modules/_ctx.js +20 -0
- data/node_modules/core-js/library/modules/_date-to-iso-string.js +26 -0
- data/node_modules/core-js/library/modules/_date-to-primitive.js +9 -0
- data/node_modules/core-js/library/modules/_defined.js +5 -0
- data/node_modules/core-js/library/modules/_descriptors.js +4 -0
- data/node_modules/core-js/library/modules/_dom-create.js +7 -0
- data/node_modules/core-js/library/modules/_entry-virtual.js +5 -0
- data/node_modules/core-js/library/modules/_enum-bug-keys.js +4 -0
- data/node_modules/core-js/library/modules/_enum-keys.js +15 -0
- data/node_modules/core-js/library/modules/_export.js +62 -0
- data/node_modules/core-js/library/modules/_fails-is-regexp.js +12 -0
- data/node_modules/core-js/library/modules/_fails.js +7 -0
- data/node_modules/core-js/library/modules/_fix-re-wks.js +96 -0
- data/node_modules/core-js/library/modules/_flags.js +13 -0
- data/node_modules/core-js/library/modules/_flatten-into-array.js +39 -0
- data/node_modules/core-js/library/modules/_for-of.js +25 -0
- data/node_modules/core-js/library/modules/_function-to-string.js +1 -0
- data/node_modules/core-js/library/modules/_global.js +6 -0
- data/node_modules/core-js/library/modules/_has.js +4 -0
- data/node_modules/core-js/library/modules/_hide.js +8 -0
- data/node_modules/core-js/library/modules/_html.js +2 -0
- data/node_modules/core-js/library/modules/_ie8-dom-define.js +3 -0
- data/node_modules/core-js/library/modules/_inherit-if-required.js +9 -0
- data/node_modules/core-js/library/modules/_invoke.js +16 -0
- data/node_modules/core-js/library/modules/_iobject.js +6 -0
- data/node_modules/core-js/library/modules/_is-array-iter.js +8 -0
- data/node_modules/core-js/library/modules/_is-array.js +5 -0
- data/node_modules/core-js/library/modules/_is-integer.js +6 -0
- data/node_modules/core-js/library/modules/_is-object.js +3 -0
- data/node_modules/core-js/library/modules/_is-regexp.js +8 -0
- data/node_modules/core-js/library/modules/_iter-call.js +12 -0
- data/node_modules/core-js/library/modules/_iter-create.js +13 -0
- data/node_modules/core-js/library/modules/_iter-define.js +69 -0
- data/node_modules/core-js/library/modules/_iter-detect.js +22 -0
- data/node_modules/core-js/library/modules/_iter-step.js +3 -0
- data/node_modules/core-js/library/modules/_iterators.js +1 -0
- data/node_modules/core-js/library/modules/_keyof.js +10 -0
- data/node_modules/core-js/library/modules/_library.js +1 -0
- data/node_modules/core-js/library/modules/_math-expm1.js +10 -0
- data/node_modules/core-js/library/modules/_math-fround.js +23 -0
- data/node_modules/core-js/library/modules/_math-log1p.js +4 -0
- data/node_modules/core-js/library/modules/_math-scale.js +18 -0
- data/node_modules/core-js/library/modules/_math-sign.js +5 -0
- data/node_modules/core-js/library/modules/_meta.js +53 -0
- data/node_modules/core-js/library/modules/_metadata.js +51 -0
- data/node_modules/core-js/library/modules/_microtask.js +69 -0
- data/node_modules/core-js/library/modules/_native-weak-map.js +4 -0
- data/node_modules/core-js/library/modules/_new-promise-capability.js +18 -0
- data/node_modules/core-js/library/modules/_object-assign.js +38 -0
- data/node_modules/core-js/library/modules/_object-create.js +41 -0
- data/node_modules/core-js/library/modules/_object-define.js +13 -0
- data/node_modules/core-js/library/modules/_object-dp.js +16 -0
- data/node_modules/core-js/library/modules/_object-dps.js +13 -0
- data/node_modules/core-js/library/modules/_object-forced-pam.js +9 -0
- data/node_modules/core-js/library/modules/_object-gopd.js +16 -0
- data/node_modules/core-js/library/modules/_object-gopn-ext.js +19 -0
- data/node_modules/core-js/library/modules/_object-gopn.js +7 -0
- data/node_modules/core-js/library/modules/_object-gops.js +1 -0
- data/node_modules/core-js/library/modules/_object-gpo.js +13 -0
- data/node_modules/core-js/library/modules/_object-keys-internal.js +17 -0
- data/node_modules/core-js/library/modules/_object-keys.js +7 -0
- data/node_modules/core-js/library/modules/_object-pie.js +1 -0
- data/node_modules/core-js/library/modules/_object-sap.js +10 -0
- data/node_modules/core-js/library/modules/_object-to-array.js +21 -0
- data/node_modules/core-js/library/modules/_own-keys.js +10 -0
- data/node_modules/core-js/library/modules/_parse-float.js +8 -0
- data/node_modules/core-js/library/modules/_parse-int.js +9 -0
- data/node_modules/core-js/library/modules/_partial.js +25 -0
- data/node_modules/core-js/library/modules/_path.js +1 -0
- data/node_modules/core-js/library/modules/_perform.js +7 -0
- data/node_modules/core-js/library/modules/_promise-resolve.js +12 -0
- data/node_modules/core-js/library/modules/_property-desc.js +8 -0
- data/node_modules/core-js/library/modules/_redefine-all.js +7 -0
- data/node_modules/core-js/library/modules/_redefine.js +1 -0
- data/node_modules/core-js/library/modules/_regexp-exec-abstract.js +1 -0
- data/node_modules/core-js/library/modules/_regexp-exec.js +1 -0
- data/node_modules/core-js/library/modules/_replacer.js +8 -0
- data/node_modules/core-js/library/modules/_same-value.js +5 -0
- data/node_modules/core-js/library/modules/_set-collection-from.js +28 -0
- data/node_modules/core-js/library/modules/_set-collection-of.js +12 -0
- data/node_modules/core-js/library/modules/_set-proto.js +25 -0
- data/node_modules/core-js/library/modules/_set-species.js +14 -0
- data/node_modules/core-js/library/modules/_set-to-string-tag.js +7 -0
- data/node_modules/core-js/library/modules/_shared-key.js +5 -0
- data/node_modules/core-js/library/modules/_shared.js +12 -0
- data/node_modules/core-js/library/modules/_species-constructor.js +9 -0
- data/node_modules/core-js/library/modules/_strict-method.js +9 -0
- data/node_modules/core-js/library/modules/_string-at.js +17 -0
- data/node_modules/core-js/library/modules/_string-context.js +8 -0
- data/node_modules/core-js/library/modules/_string-html.js +19 -0
- data/node_modules/core-js/library/modules/_string-pad.js +16 -0
- data/node_modules/core-js/library/modules/_string-repeat.js +12 -0
- data/node_modules/core-js/library/modules/_string-trim.js +30 -0
- data/node_modules/core-js/library/modules/_string-ws.js +2 -0
- data/node_modules/core-js/library/modules/_task.js +84 -0
- data/node_modules/core-js/library/modules/_to-absolute-index.js +7 -0
- data/node_modules/core-js/library/modules/_to-index.js +10 -0
- data/node_modules/core-js/library/modules/_to-integer.js +6 -0
- data/node_modules/core-js/library/modules/_to-iobject.js +6 -0
- data/node_modules/core-js/library/modules/_to-length.js +6 -0
- data/node_modules/core-js/library/modules/_to-object.js +5 -0
- data/node_modules/core-js/library/modules/_to-primitive.js +12 -0
- data/node_modules/core-js/library/modules/_typed-array.js +480 -0
- data/node_modules/core-js/library/modules/_typed-buffer.js +276 -0
- data/node_modules/core-js/library/modules/_typed.js +28 -0
- data/node_modules/core-js/library/modules/_uid.js +5 -0
- data/node_modules/core-js/library/modules/_user-agent.js +4 -0
- data/node_modules/core-js/library/modules/_validate-collection.js +5 -0
- data/node_modules/core-js/library/modules/_wks-define.js +9 -0
- data/node_modules/core-js/library/modules/_wks-ext.js +1 -0
- data/node_modules/core-js/library/modules/_wks.js +11 -0
- data/node_modules/core-js/library/modules/core.delay.js +12 -0
- data/node_modules/core-js/library/modules/core.dict.js +157 -0
- data/node_modules/core-js/library/modules/core.function.part.js +7 -0
- data/node_modules/core-js/library/modules/core.get-iterator-method.js +8 -0
- data/node_modules/core-js/library/modules/core.get-iterator.js +7 -0
- data/node_modules/core-js/library/modules/core.is-iterable.js +10 -0
- data/node_modules/core-js/library/modules/core.number.iterator.js +9 -0
- data/node_modules/core-js/library/modules/core.object.classof.js +3 -0
- data/node_modules/core-js/library/modules/core.object.define.js +4 -0
- data/node_modules/core-js/library/modules/core.object.is-object.js +3 -0
- data/node_modules/core-js/library/modules/core.object.make.js +9 -0
- data/node_modules/core-js/library/modules/core.regexp.escape.js +5 -0
- data/node_modules/core-js/library/modules/core.string.escape-html.js +11 -0
- data/node_modules/core-js/library/modules/core.string.unescape-html.js +11 -0
- data/node_modules/core-js/library/modules/es5.js +35 -0
- data/node_modules/core-js/library/modules/es6.array.copy-within.js +6 -0
- data/node_modules/core-js/library/modules/es6.array.every.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.fill.js +6 -0
- data/node_modules/core-js/library/modules/es6.array.filter.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.find-index.js +14 -0
- data/node_modules/core-js/library/modules/es6.array.find.js +14 -0
- data/node_modules/core-js/library/modules/es6.array.for-each.js +11 -0
- data/node_modules/core-js/library/modules/es6.array.from.js +37 -0
- data/node_modules/core-js/library/modules/es6.array.index-of.js +15 -0
- data/node_modules/core-js/library/modules/es6.array.is-array.js +4 -0
- data/node_modules/core-js/library/modules/es6.array.iterator.js +34 -0
- data/node_modules/core-js/library/modules/es6.array.join.js +12 -0
- data/node_modules/core-js/library/modules/es6.array.last-index-of.js +22 -0
- data/node_modules/core-js/library/modules/es6.array.map.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.of.js +19 -0
- data/node_modules/core-js/library/modules/es6.array.reduce-right.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.reduce.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.slice.js +28 -0
- data/node_modules/core-js/library/modules/es6.array.some.js +10 -0
- data/node_modules/core-js/library/modules/es6.array.sort.js +23 -0
- data/node_modules/core-js/library/modules/es6.array.species.js +1 -0
- data/node_modules/core-js/library/modules/es6.date.now.js +4 -0
- data/node_modules/core-js/library/modules/es6.date.to-iso-string.js +8 -0
- data/node_modules/core-js/library/modules/es6.date.to-json.js +19 -0
- data/node_modules/core-js/library/modules/es6.date.to-primitive.js +0 -0
- data/node_modules/core-js/library/modules/es6.date.to-string.js +0 -0
- data/node_modules/core-js/library/modules/es6.function.bind.js +4 -0
- data/node_modules/core-js/library/modules/es6.function.has-instance.js +13 -0
- data/node_modules/core-js/library/modules/es6.function.name.js +0 -0
- data/node_modules/core-js/library/modules/es6.map.js +19 -0
- data/node_modules/core-js/library/modules/es6.math.acosh.js +18 -0
- data/node_modules/core-js/library/modules/es6.math.asinh.js +10 -0
- data/node_modules/core-js/library/modules/es6.math.atanh.js +10 -0
- data/node_modules/core-js/library/modules/es6.math.cbrt.js +9 -0
- data/node_modules/core-js/library/modules/es6.math.clz32.js +8 -0
- data/node_modules/core-js/library/modules/es6.math.cosh.js +9 -0
- data/node_modules/core-js/library/modules/es6.math.expm1.js +5 -0
- data/node_modules/core-js/library/modules/es6.math.fround.js +4 -0
- data/node_modules/core-js/library/modules/es6.math.hypot.js +25 -0
- data/node_modules/core-js/library/modules/es6.math.imul.js +17 -0
- data/node_modules/core-js/library/modules/es6.math.log10.js +8 -0
- data/node_modules/core-js/library/modules/es6.math.log1p.js +4 -0
- data/node_modules/core-js/library/modules/es6.math.log2.js +8 -0
- data/node_modules/core-js/library/modules/es6.math.sign.js +4 -0
- data/node_modules/core-js/library/modules/es6.math.sinh.js +15 -0
- data/node_modules/core-js/library/modules/es6.math.tanh.js +12 -0
- data/node_modules/core-js/library/modules/es6.math.trunc.js +8 -0
- data/node_modules/core-js/library/modules/es6.number.constructor.js +0 -0
- data/node_modules/core-js/library/modules/es6.number.epsilon.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.is-finite.js +9 -0
- data/node_modules/core-js/library/modules/es6.number.is-integer.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.is-nan.js +9 -0
- data/node_modules/core-js/library/modules/es6.number.is-safe-integer.js +10 -0
- data/node_modules/core-js/library/modules/es6.number.max-safe-integer.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.min-safe-integer.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.parse-float.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.parse-int.js +4 -0
- data/node_modules/core-js/library/modules/es6.number.to-fixed.js +114 -0
- data/node_modules/core-js/library/modules/es6.number.to-precision.js +18 -0
- data/node_modules/core-js/library/modules/es6.object.assign.js +4 -0
- data/node_modules/core-js/library/modules/es6.object.create.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.define-properties.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.define-property.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.freeze.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.get-own-property-names.js +4 -0
- data/node_modules/core-js/library/modules/es6.object.get-prototype-of.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.is-extensible.js +8 -0
- data/node_modules/core-js/library/modules/es6.object.is-frozen.js +8 -0
- data/node_modules/core-js/library/modules/es6.object.is-sealed.js +8 -0
- data/node_modules/core-js/library/modules/es6.object.is.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.keys.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.prevent-extensions.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.seal.js +9 -0
- data/node_modules/core-js/library/modules/es6.object.set-prototype-of.js +3 -0
- data/node_modules/core-js/library/modules/es6.object.to-string.js +0 -0
- data/node_modules/core-js/library/modules/es6.parse-float.js +4 -0
- data/node_modules/core-js/library/modules/es6.parse-int.js +4 -0
- data/node_modules/core-js/library/modules/es6.promise.js +286 -0
- data/node_modules/core-js/library/modules/es6.reflect.apply.js +16 -0
- data/node_modules/core-js/library/modules/es6.reflect.construct.js +47 -0
- data/node_modules/core-js/library/modules/es6.reflect.define-property.js +23 -0
- data/node_modules/core-js/library/modules/es6.reflect.delete-property.js +11 -0
- data/node_modules/core-js/library/modules/es6.reflect.enumerate.js +26 -0
- data/node_modules/core-js/library/modules/es6.reflect.get-own-property-descriptor.js +10 -0
- data/node_modules/core-js/library/modules/es6.reflect.get-prototype-of.js +10 -0
- data/node_modules/core-js/library/modules/es6.reflect.get.js +21 -0
- data/node_modules/core-js/library/modules/es6.reflect.has.js +8 -0
- data/node_modules/core-js/library/modules/es6.reflect.is-extensible.js +11 -0
- data/node_modules/core-js/library/modules/es6.reflect.own-keys.js +4 -0
- data/node_modules/core-js/library/modules/es6.reflect.prevent-extensions.js +16 -0
- data/node_modules/core-js/library/modules/es6.reflect.set-prototype-of.js +15 -0
- data/node_modules/core-js/library/modules/es6.reflect.set.js +33 -0
- data/node_modules/core-js/library/modules/es6.regexp.constructor.js +1 -0
- data/node_modules/core-js/library/modules/es6.regexp.exec.js +1 -0
- data/node_modules/core-js/library/modules/es6.regexp.flags.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.match.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.replace.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.search.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.split.js +0 -0
- data/node_modules/core-js/library/modules/es6.regexp.to-string.js +0 -0
- data/node_modules/core-js/library/modules/es6.set.js +14 -0
- data/node_modules/core-js/library/modules/es6.string.anchor.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.big.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.blink.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.bold.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.code-point-at.js +9 -0
- data/node_modules/core-js/library/modules/es6.string.ends-with.js +20 -0
- data/node_modules/core-js/library/modules/es6.string.fixed.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.fontcolor.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.fontsize.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.from-code-point.js +23 -0
- data/node_modules/core-js/library/modules/es6.string.includes.js +12 -0
- data/node_modules/core-js/library/modules/es6.string.italics.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.iterator.js +17 -0
- data/node_modules/core-js/library/modules/es6.string.link.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.raw.js +18 -0
- data/node_modules/core-js/library/modules/es6.string.repeat.js +6 -0
- data/node_modules/core-js/library/modules/es6.string.small.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.starts-with.js +18 -0
- data/node_modules/core-js/library/modules/es6.string.strike.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.sub.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.sup.js +7 -0
- data/node_modules/core-js/library/modules/es6.string.trim.js +7 -0
- data/node_modules/core-js/library/modules/es6.symbol.js +246 -0
- data/node_modules/core-js/library/modules/es6.typed.array-buffer.js +46 -0
- data/node_modules/core-js/library/modules/es6.typed.data-view.js +4 -0
- data/node_modules/core-js/library/modules/es6.typed.float32-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.float64-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.int16-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.int32-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.int8-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.uint16-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.uint32-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.uint8-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.typed.uint8-clamped-array.js +5 -0
- data/node_modules/core-js/library/modules/es6.weak-map.js +60 -0
- data/node_modules/core-js/library/modules/es6.weak-set.js +14 -0
- data/node_modules/core-js/library/modules/es7.array.flat-map.js +22 -0
- data/node_modules/core-js/library/modules/es7.array.flatten.js +21 -0
- data/node_modules/core-js/library/modules/es7.array.includes.js +12 -0
- data/node_modules/core-js/library/modules/es7.asap.js +12 -0
- data/node_modules/core-js/library/modules/es7.error.is-error.js +9 -0
- data/node_modules/core-js/library/modules/es7.global.js +4 -0
- data/node_modules/core-js/library/modules/es7.map.from.js +2 -0
- data/node_modules/core-js/library/modules/es7.map.of.js +2 -0
- data/node_modules/core-js/library/modules/es7.map.to-json.js +4 -0
- data/node_modules/core-js/library/modules/es7.math.clamp.js +8 -0
- data/node_modules/core-js/library/modules/es7.math.deg-per-rad.js +4 -0
- data/node_modules/core-js/library/modules/es7.math.degrees.js +9 -0
- data/node_modules/core-js/library/modules/es7.math.fscale.js +10 -0
- data/node_modules/core-js/library/modules/es7.math.iaddh.js +11 -0
- data/node_modules/core-js/library/modules/es7.math.imulh.js +16 -0
- data/node_modules/core-js/library/modules/es7.math.isubh.js +11 -0
- data/node_modules/core-js/library/modules/es7.math.rad-per-deg.js +4 -0
- data/node_modules/core-js/library/modules/es7.math.radians.js +9 -0
- data/node_modules/core-js/library/modules/es7.math.scale.js +4 -0
- data/node_modules/core-js/library/modules/es7.math.signbit.js +7 -0
- data/node_modules/core-js/library/modules/es7.math.umulh.js +16 -0
- data/node_modules/core-js/library/modules/es7.object.define-getter.js +12 -0
- data/node_modules/core-js/library/modules/es7.object.define-setter.js +12 -0
- data/node_modules/core-js/library/modules/es7.object.entries.js +9 -0
- data/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js +22 -0
- data/node_modules/core-js/library/modules/es7.object.lookup-getter.js +18 -0
- data/node_modules/core-js/library/modules/es7.object.lookup-setter.js +18 -0
- data/node_modules/core-js/library/modules/es7.object.values.js +9 -0
- data/node_modules/core-js/library/modules/es7.observable.js +199 -0
- data/node_modules/core-js/library/modules/es7.promise.finally.js +20 -0
- data/node_modules/core-js/library/modules/es7.promise.try.js +12 -0
- data/node_modules/core-js/library/modules/es7.reflect.define-metadata.js +8 -0
- data/node_modules/core-js/library/modules/es7.reflect.delete-metadata.js +15 -0
- data/node_modules/core-js/library/modules/es7.reflect.get-metadata-keys.js +19 -0
- data/node_modules/core-js/library/modules/es7.reflect.get-metadata.js +17 -0
- data/node_modules/core-js/library/modules/es7.reflect.get-own-metadata-keys.js +8 -0
- data/node_modules/core-js/library/modules/es7.reflect.get-own-metadata.js +9 -0
- data/node_modules/core-js/library/modules/es7.reflect.has-metadata.js +16 -0
- data/node_modules/core-js/library/modules/es7.reflect.has-own-metadata.js +9 -0
- data/node_modules/core-js/library/modules/es7.reflect.metadata.js +15 -0
- data/node_modules/core-js/library/modules/es7.set.from.js +2 -0
- data/node_modules/core-js/library/modules/es7.set.of.js +2 -0
- data/node_modules/core-js/library/modules/es7.set.to-json.js +4 -0
- data/node_modules/core-js/library/modules/es7.string.at.js +15 -0
- data/node_modules/core-js/library/modules/es7.string.match-all.js +30 -0
- data/node_modules/core-js/library/modules/es7.string.pad-end.js +14 -0
- data/node_modules/core-js/library/modules/es7.string.pad-start.js +14 -0
- data/node_modules/core-js/library/modules/es7.string.trim-left.js +7 -0
- data/node_modules/core-js/library/modules/es7.string.trim-right.js +7 -0
- data/node_modules/core-js/library/modules/es7.symbol.async-iterator.js +1 -0
- data/node_modules/core-js/library/modules/es7.symbol.observable.js +1 -0
- data/node_modules/core-js/library/modules/es7.system.global.js +4 -0
- data/node_modules/core-js/library/modules/es7.weak-map.from.js +2 -0
- data/node_modules/core-js/library/modules/es7.weak-map.of.js +2 -0
- data/node_modules/core-js/library/modules/es7.weak-set.from.js +2 -0
- data/node_modules/core-js/library/modules/es7.weak-set.of.js +2 -0
- data/node_modules/core-js/library/modules/web.dom.iterable.js +19 -0
- data/node_modules/core-js/library/modules/web.immediate.js +6 -0
- data/node_modules/core-js/library/modules/web.timers.js +20 -0
- data/node_modules/core-js/library/shim.js +198 -0
- data/node_modules/core-js/library/stage/0.js +10 -0
- data/node_modules/core-js/library/stage/1.js +23 -0
- data/node_modules/core-js/library/stage/2.js +4 -0
- data/node_modules/core-js/library/stage/3.js +4 -0
- data/node_modules/core-js/library/stage/4.js +11 -0
- data/node_modules/core-js/library/stage/index.js +1 -0
- data/node_modules/core-js/library/stage/pre.js +10 -0
- data/node_modules/core-js/library/web/dom-collections.js +2 -0
- data/node_modules/core-js/library/web/immediate.js +2 -0
- data/node_modules/core-js/library/web/index.js +4 -0
- data/node_modules/core-js/library/web/timers.js +2 -0
- data/node_modules/core-js/modules/_a-function.js +4 -0
- data/node_modules/core-js/modules/_a-number-value.js +5 -0
- data/node_modules/core-js/modules/_add-to-unscopables.js +7 -0
- data/node_modules/core-js/modules/_advance-string-index.js +8 -0
- data/node_modules/core-js/modules/_an-instance.js +5 -0
- data/node_modules/core-js/modules/_an-object.js +5 -0
- data/node_modules/core-js/modules/_array-copy-within.js +26 -0
- data/node_modules/core-js/modules/_array-fill.js +15 -0
- data/node_modules/core-js/modules/_array-from-iterable.js +7 -0
- data/node_modules/core-js/modules/_array-includes.js +23 -0
- data/node_modules/core-js/modules/_array-methods.js +44 -0
- data/node_modules/core-js/modules/_array-reduce.js +28 -0
- data/node_modules/core-js/modules/_array-species-constructor.js +16 -0
- data/node_modules/core-js/modules/_array-species-create.js +6 -0
- data/node_modules/core-js/modules/_bind.js +25 -0
- data/node_modules/core-js/modules/_classof.js +23 -0
- data/node_modules/core-js/modules/_cof.js +5 -0
- data/node_modules/core-js/modules/_collection-strong.js +144 -0
- data/node_modules/core-js/modules/_collection-to-json.js +9 -0
- data/node_modules/core-js/modules/_collection-weak.js +85 -0
- data/node_modules/core-js/modules/_collection.js +85 -0
- data/node_modules/core-js/modules/_core.js +2 -0
- data/node_modules/core-js/modules/_create-property.js +8 -0
- data/node_modules/core-js/modules/_ctx.js +20 -0
- data/node_modules/core-js/modules/_date-to-iso-string.js +26 -0
- data/node_modules/core-js/modules/_date-to-primitive.js +9 -0
- data/node_modules/core-js/modules/_defined.js +5 -0
- data/node_modules/core-js/modules/_descriptors.js +4 -0
- data/node_modules/core-js/modules/_dom-create.js +7 -0
- data/node_modules/core-js/modules/_entry-virtual.js +5 -0
- data/node_modules/core-js/modules/_enum-bug-keys.js +4 -0
- data/node_modules/core-js/modules/_enum-keys.js +15 -0
- data/node_modules/core-js/modules/_export.js +43 -0
- data/node_modules/core-js/modules/_fails-is-regexp.js +12 -0
- data/node_modules/core-js/modules/_fails.js +7 -0
- data/node_modules/core-js/modules/_fix-re-wks.js +96 -0
- data/node_modules/core-js/modules/_flags.js +13 -0
- data/node_modules/core-js/modules/_flatten-into-array.js +39 -0
- data/node_modules/core-js/modules/_for-of.js +25 -0
- data/node_modules/core-js/modules/_function-to-string.js +1 -0
- data/node_modules/core-js/modules/_global.js +6 -0
- data/node_modules/core-js/modules/_has.js +4 -0
- data/node_modules/core-js/modules/_hide.js +8 -0
- data/node_modules/core-js/modules/_html.js +2 -0
- data/node_modules/core-js/modules/_ie8-dom-define.js +3 -0
- data/node_modules/core-js/modules/_inherit-if-required.js +9 -0
- data/node_modules/core-js/modules/_invoke.js +16 -0
- data/node_modules/core-js/modules/_iobject.js +6 -0
- data/node_modules/core-js/modules/_is-array-iter.js +8 -0
- data/node_modules/core-js/modules/_is-array.js +5 -0
- data/node_modules/core-js/modules/_is-integer.js +6 -0
- data/node_modules/core-js/modules/_is-object.js +3 -0
- data/node_modules/core-js/modules/_is-regexp.js +8 -0
- data/node_modules/core-js/modules/_iter-call.js +12 -0
- data/node_modules/core-js/modules/_iter-create.js +13 -0
- data/node_modules/core-js/modules/_iter-define.js +69 -0
- data/node_modules/core-js/modules/_iter-detect.js +22 -0
- data/node_modules/core-js/modules/_iter-step.js +3 -0
- data/node_modules/core-js/modules/_iterators.js +1 -0
- data/node_modules/core-js/modules/_keyof.js +10 -0
- data/node_modules/core-js/modules/_library.js +1 -0
- data/node_modules/core-js/modules/_math-expm1.js +10 -0
- data/node_modules/core-js/modules/_math-fround.js +23 -0
- data/node_modules/core-js/modules/_math-log1p.js +4 -0
- data/node_modules/core-js/modules/_math-scale.js +18 -0
- data/node_modules/core-js/modules/_math-sign.js +5 -0
- data/node_modules/core-js/modules/_meta.js +53 -0
- data/node_modules/core-js/modules/_metadata.js +51 -0
- data/node_modules/core-js/modules/_microtask.js +69 -0
- data/node_modules/core-js/modules/_native-weak-map.js +4 -0
- data/node_modules/core-js/modules/_new-promise-capability.js +18 -0
- data/node_modules/core-js/modules/_object-assign.js +38 -0
- data/node_modules/core-js/modules/_object-create.js +41 -0
- data/node_modules/core-js/modules/_object-define.js +13 -0
- data/node_modules/core-js/modules/_object-dp.js +16 -0
- data/node_modules/core-js/modules/_object-dps.js +13 -0
- data/node_modules/core-js/modules/_object-forced-pam.js +9 -0
- data/node_modules/core-js/modules/_object-gopd.js +16 -0
- data/node_modules/core-js/modules/_object-gopn-ext.js +19 -0
- data/node_modules/core-js/modules/_object-gopn.js +7 -0
- data/node_modules/core-js/modules/_object-gops.js +1 -0
- data/node_modules/core-js/modules/_object-gpo.js +13 -0
- data/node_modules/core-js/modules/_object-keys-internal.js +17 -0
- data/node_modules/core-js/modules/_object-keys.js +7 -0
- data/node_modules/core-js/modules/_object-pie.js +1 -0
- data/node_modules/core-js/modules/_object-sap.js +10 -0
- data/node_modules/core-js/modules/_object-to-array.js +21 -0
- data/node_modules/core-js/modules/_own-keys.js +10 -0
- data/node_modules/core-js/modules/_parse-float.js +8 -0
- data/node_modules/core-js/modules/_parse-int.js +9 -0
- data/node_modules/core-js/modules/_partial.js +25 -0
- data/node_modules/core-js/modules/_path.js +1 -0
- data/node_modules/core-js/modules/_perform.js +7 -0
- data/node_modules/core-js/modules/_promise-resolve.js +12 -0
- data/node_modules/core-js/modules/_property-desc.js +8 -0
- data/node_modules/core-js/modules/_redefine-all.js +5 -0
- data/node_modules/core-js/modules/_redefine.js +31 -0
- data/node_modules/core-js/modules/_regexp-exec-abstract.js +21 -0
- data/node_modules/core-js/modules/_regexp-exec.js +58 -0
- data/node_modules/core-js/modules/_replacer.js +8 -0
- data/node_modules/core-js/modules/_same-value.js +5 -0
- data/node_modules/core-js/modules/_set-collection-from.js +28 -0
- data/node_modules/core-js/modules/_set-collection-of.js +12 -0
- data/node_modules/core-js/modules/_set-proto.js +25 -0
- data/node_modules/core-js/modules/_set-species.js +13 -0
- data/node_modules/core-js/modules/_set-to-string-tag.js +7 -0
- data/node_modules/core-js/modules/_shared-key.js +5 -0
- data/node_modules/core-js/modules/_shared.js +12 -0
- data/node_modules/core-js/modules/_species-constructor.js +9 -0
- data/node_modules/core-js/modules/_strict-method.js +9 -0
- data/node_modules/core-js/modules/_string-at.js +17 -0
- data/node_modules/core-js/modules/_string-context.js +8 -0
- data/node_modules/core-js/modules/_string-html.js +19 -0
- data/node_modules/core-js/modules/_string-pad.js +16 -0
- data/node_modules/core-js/modules/_string-repeat.js +12 -0
- data/node_modules/core-js/modules/_string-trim.js +30 -0
- data/node_modules/core-js/modules/_string-ws.js +2 -0
- data/node_modules/core-js/modules/_task.js +84 -0
- data/node_modules/core-js/modules/_to-absolute-index.js +7 -0
- data/node_modules/core-js/modules/_to-index.js +10 -0
- data/node_modules/core-js/modules/_to-integer.js +6 -0
- data/node_modules/core-js/modules/_to-iobject.js +6 -0
- data/node_modules/core-js/modules/_to-length.js +6 -0
- data/node_modules/core-js/modules/_to-object.js +5 -0
- data/node_modules/core-js/modules/_to-primitive.js +12 -0
- data/node_modules/core-js/modules/_typed-array.js +480 -0
- data/node_modules/core-js/modules/_typed-buffer.js +276 -0
- data/node_modules/core-js/modules/_typed.js +28 -0
- data/node_modules/core-js/modules/_uid.js +5 -0
- data/node_modules/core-js/modules/_user-agent.js +4 -0
- data/node_modules/core-js/modules/_validate-collection.js +5 -0
- data/node_modules/core-js/modules/_wks-define.js +9 -0
- data/node_modules/core-js/modules/_wks-ext.js +1 -0
- data/node_modules/core-js/modules/_wks.js +11 -0
- data/node_modules/core-js/modules/core.delay.js +12 -0
- data/node_modules/core-js/modules/core.dict.js +157 -0
- data/node_modules/core-js/modules/core.function.part.js +7 -0
- data/node_modules/core-js/modules/core.get-iterator-method.js +8 -0
- data/node_modules/core-js/modules/core.get-iterator.js +7 -0
- data/node_modules/core-js/modules/core.is-iterable.js +10 -0
- data/node_modules/core-js/modules/core.number.iterator.js +9 -0
- data/node_modules/core-js/modules/core.object.classof.js +3 -0
- data/node_modules/core-js/modules/core.object.define.js +4 -0
- data/node_modules/core-js/modules/core.object.is-object.js +3 -0
- data/node_modules/core-js/modules/core.object.make.js +9 -0
- data/node_modules/core-js/modules/core.regexp.escape.js +5 -0
- data/node_modules/core-js/modules/core.string.escape-html.js +11 -0
- data/node_modules/core-js/modules/core.string.unescape-html.js +11 -0
- data/node_modules/core-js/modules/es5.js +35 -0
- data/node_modules/core-js/modules/es6.array.copy-within.js +6 -0
- data/node_modules/core-js/modules/es6.array.every.js +10 -0
- data/node_modules/core-js/modules/es6.array.fill.js +6 -0
- data/node_modules/core-js/modules/es6.array.filter.js +10 -0
- data/node_modules/core-js/modules/es6.array.find-index.js +14 -0
- data/node_modules/core-js/modules/es6.array.find.js +14 -0
- data/node_modules/core-js/modules/es6.array.for-each.js +11 -0
- data/node_modules/core-js/modules/es6.array.from.js +37 -0
- data/node_modules/core-js/modules/es6.array.index-of.js +15 -0
- data/node_modules/core-js/modules/es6.array.is-array.js +4 -0
- data/node_modules/core-js/modules/es6.array.iterator.js +34 -0
- data/node_modules/core-js/modules/es6.array.join.js +12 -0
- data/node_modules/core-js/modules/es6.array.last-index-of.js +22 -0
- data/node_modules/core-js/modules/es6.array.map.js +10 -0
- data/node_modules/core-js/modules/es6.array.of.js +19 -0
- data/node_modules/core-js/modules/es6.array.reduce-right.js +10 -0
- data/node_modules/core-js/modules/es6.array.reduce.js +10 -0
- data/node_modules/core-js/modules/es6.array.slice.js +28 -0
- data/node_modules/core-js/modules/es6.array.some.js +10 -0
- data/node_modules/core-js/modules/es6.array.sort.js +23 -0
- data/node_modules/core-js/modules/es6.array.species.js +1 -0
- data/node_modules/core-js/modules/es6.date.now.js +4 -0
- data/node_modules/core-js/modules/es6.date.to-iso-string.js +8 -0
- data/node_modules/core-js/modules/es6.date.to-json.js +16 -0
- data/node_modules/core-js/modules/es6.date.to-primitive.js +4 -0
- data/node_modules/core-js/modules/es6.date.to-string.js +12 -0
- data/node_modules/core-js/modules/es6.function.bind.js +4 -0
- data/node_modules/core-js/modules/es6.function.has-instance.js +13 -0
- data/node_modules/core-js/modules/es6.function.name.js +16 -0
- data/node_modules/core-js/modules/es6.map.js +19 -0
- data/node_modules/core-js/modules/es6.math.acosh.js +18 -0
- data/node_modules/core-js/modules/es6.math.asinh.js +10 -0
- data/node_modules/core-js/modules/es6.math.atanh.js +10 -0
- data/node_modules/core-js/modules/es6.math.cbrt.js +9 -0
- data/node_modules/core-js/modules/es6.math.clz32.js +8 -0
- data/node_modules/core-js/modules/es6.math.cosh.js +9 -0
- data/node_modules/core-js/modules/es6.math.expm1.js +5 -0
- data/node_modules/core-js/modules/es6.math.fround.js +4 -0
- data/node_modules/core-js/modules/es6.math.hypot.js +25 -0
- data/node_modules/core-js/modules/es6.math.imul.js +17 -0
- data/node_modules/core-js/modules/es6.math.log10.js +8 -0
- data/node_modules/core-js/modules/es6.math.log1p.js +4 -0
- data/node_modules/core-js/modules/es6.math.log2.js +8 -0
- data/node_modules/core-js/modules/es6.math.sign.js +4 -0
- data/node_modules/core-js/modules/es6.math.sinh.js +15 -0
- data/node_modules/core-js/modules/es6.math.tanh.js +12 -0
- data/node_modules/core-js/modules/es6.math.trunc.js +8 -0
- data/node_modules/core-js/modules/es6.number.constructor.js +69 -0
- data/node_modules/core-js/modules/es6.number.epsilon.js +4 -0
- data/node_modules/core-js/modules/es6.number.is-finite.js +9 -0
- data/node_modules/core-js/modules/es6.number.is-integer.js +4 -0
- data/node_modules/core-js/modules/es6.number.is-nan.js +9 -0
- data/node_modules/core-js/modules/es6.number.is-safe-integer.js +10 -0
- data/node_modules/core-js/modules/es6.number.max-safe-integer.js +4 -0
- data/node_modules/core-js/modules/es6.number.min-safe-integer.js +4 -0
- data/node_modules/core-js/modules/es6.number.parse-float.js +4 -0
- data/node_modules/core-js/modules/es6.number.parse-int.js +4 -0
- data/node_modules/core-js/modules/es6.number.to-fixed.js +114 -0
- data/node_modules/core-js/modules/es6.number.to-precision.js +18 -0
- data/node_modules/core-js/modules/es6.object.assign.js +4 -0
- data/node_modules/core-js/modules/es6.object.create.js +3 -0
- data/node_modules/core-js/modules/es6.object.define-properties.js +3 -0
- data/node_modules/core-js/modules/es6.object.define-property.js +3 -0
- data/node_modules/core-js/modules/es6.object.freeze.js +9 -0
- data/node_modules/core-js/modules/es6.object.get-own-property-descriptor.js +9 -0
- data/node_modules/core-js/modules/es6.object.get-own-property-names.js +4 -0
- data/node_modules/core-js/modules/es6.object.get-prototype-of.js +9 -0
- data/node_modules/core-js/modules/es6.object.is-extensible.js +8 -0
- data/node_modules/core-js/modules/es6.object.is-frozen.js +8 -0
- data/node_modules/core-js/modules/es6.object.is-sealed.js +8 -0
- data/node_modules/core-js/modules/es6.object.is.js +3 -0
- data/node_modules/core-js/modules/es6.object.keys.js +9 -0
- data/node_modules/core-js/modules/es6.object.prevent-extensions.js +9 -0
- data/node_modules/core-js/modules/es6.object.seal.js +9 -0
- data/node_modules/core-js/modules/es6.object.set-prototype-of.js +3 -0
- data/node_modules/core-js/modules/es6.object.to-string.js +10 -0
- data/node_modules/core-js/modules/es6.parse-float.js +4 -0
- data/node_modules/core-js/modules/es6.parse-int.js +4 -0
- data/node_modules/core-js/modules/es6.promise.js +286 -0
- data/node_modules/core-js/modules/es6.reflect.apply.js +16 -0
- data/node_modules/core-js/modules/es6.reflect.construct.js +47 -0
- data/node_modules/core-js/modules/es6.reflect.define-property.js +23 -0
- data/node_modules/core-js/modules/es6.reflect.delete-property.js +11 -0
- data/node_modules/core-js/modules/es6.reflect.enumerate.js +26 -0
- data/node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js +10 -0
- data/node_modules/core-js/modules/es6.reflect.get-prototype-of.js +10 -0
- data/node_modules/core-js/modules/es6.reflect.get.js +21 -0
- data/node_modules/core-js/modules/es6.reflect.has.js +8 -0
- data/node_modules/core-js/modules/es6.reflect.is-extensible.js +11 -0
- data/node_modules/core-js/modules/es6.reflect.own-keys.js +4 -0
- data/node_modules/core-js/modules/es6.reflect.prevent-extensions.js +16 -0
- data/node_modules/core-js/modules/es6.reflect.set-prototype-of.js +15 -0
- data/node_modules/core-js/modules/es6.reflect.set.js +33 -0
- data/node_modules/core-js/modules/es6.regexp.constructor.js +43 -0
- data/node_modules/core-js/modules/es6.regexp.exec.js +9 -0
- data/node_modules/core-js/modules/es6.regexp.flags.js +5 -0
- data/node_modules/core-js/modules/es6.regexp.match.js +40 -0
- data/node_modules/core-js/modules/es6.regexp.replace.js +118 -0
- data/node_modules/core-js/modules/es6.regexp.search.js +31 -0
- data/node_modules/core-js/modules/es6.regexp.split.js +134 -0
- data/node_modules/core-js/modules/es6.regexp.to-string.js +25 -0
- data/node_modules/core-js/modules/es6.set.js +14 -0
- data/node_modules/core-js/modules/es6.string.anchor.js +7 -0
- data/node_modules/core-js/modules/es6.string.big.js +7 -0
- data/node_modules/core-js/modules/es6.string.blink.js +7 -0
- data/node_modules/core-js/modules/es6.string.bold.js +7 -0
- data/node_modules/core-js/modules/es6.string.code-point-at.js +9 -0
- data/node_modules/core-js/modules/es6.string.ends-with.js +20 -0
- data/node_modules/core-js/modules/es6.string.fixed.js +7 -0
- data/node_modules/core-js/modules/es6.string.fontcolor.js +7 -0
- data/node_modules/core-js/modules/es6.string.fontsize.js +7 -0
- data/node_modules/core-js/modules/es6.string.from-code-point.js +23 -0
- data/node_modules/core-js/modules/es6.string.includes.js +12 -0
- data/node_modules/core-js/modules/es6.string.italics.js +7 -0
- data/node_modules/core-js/modules/es6.string.iterator.js +17 -0
- data/node_modules/core-js/modules/es6.string.link.js +7 -0
- data/node_modules/core-js/modules/es6.string.raw.js +18 -0
- data/node_modules/core-js/modules/es6.string.repeat.js +6 -0
- data/node_modules/core-js/modules/es6.string.small.js +7 -0
- data/node_modules/core-js/modules/es6.string.starts-with.js +18 -0
- data/node_modules/core-js/modules/es6.string.strike.js +7 -0
- data/node_modules/core-js/modules/es6.string.sub.js +7 -0
- data/node_modules/core-js/modules/es6.string.sup.js +7 -0
- data/node_modules/core-js/modules/es6.string.trim.js +7 -0
- data/node_modules/core-js/modules/es6.symbol.js +246 -0
- data/node_modules/core-js/modules/es6.typed.array-buffer.js +46 -0
- data/node_modules/core-js/modules/es6.typed.data-view.js +4 -0
- data/node_modules/core-js/modules/es6.typed.float32-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.float64-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.int16-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.int32-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.int8-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.uint16-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.uint32-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.uint8-array.js +5 -0
- data/node_modules/core-js/modules/es6.typed.uint8-clamped-array.js +5 -0
- data/node_modules/core-js/modules/es6.weak-map.js +60 -0
- data/node_modules/core-js/modules/es6.weak-set.js +14 -0
- data/node_modules/core-js/modules/es7.array.flat-map.js +22 -0
- data/node_modules/core-js/modules/es7.array.flatten.js +21 -0
- data/node_modules/core-js/modules/es7.array.includes.js +12 -0
- data/node_modules/core-js/modules/es7.asap.js +12 -0
- data/node_modules/core-js/modules/es7.error.is-error.js +9 -0
- data/node_modules/core-js/modules/es7.global.js +4 -0
- data/node_modules/core-js/modules/es7.map.from.js +2 -0
- data/node_modules/core-js/modules/es7.map.of.js +2 -0
- data/node_modules/core-js/modules/es7.map.to-json.js +4 -0
- data/node_modules/core-js/modules/es7.math.clamp.js +8 -0
- data/node_modules/core-js/modules/es7.math.deg-per-rad.js +4 -0
- data/node_modules/core-js/modules/es7.math.degrees.js +9 -0
- data/node_modules/core-js/modules/es7.math.fscale.js +10 -0
- data/node_modules/core-js/modules/es7.math.iaddh.js +11 -0
- data/node_modules/core-js/modules/es7.math.imulh.js +16 -0
- data/node_modules/core-js/modules/es7.math.isubh.js +11 -0
- data/node_modules/core-js/modules/es7.math.rad-per-deg.js +4 -0
- data/node_modules/core-js/modules/es7.math.radians.js +9 -0
- data/node_modules/core-js/modules/es7.math.scale.js +4 -0
- data/node_modules/core-js/modules/es7.math.signbit.js +7 -0
- data/node_modules/core-js/modules/es7.math.umulh.js +16 -0
- data/node_modules/core-js/modules/es7.object.define-getter.js +12 -0
- data/node_modules/core-js/modules/es7.object.define-setter.js +12 -0
- data/node_modules/core-js/modules/es7.object.entries.js +9 -0
- data/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js +22 -0
- data/node_modules/core-js/modules/es7.object.lookup-getter.js +18 -0
- data/node_modules/core-js/modules/es7.object.lookup-setter.js +18 -0
- data/node_modules/core-js/modules/es7.object.values.js +9 -0
- data/node_modules/core-js/modules/es7.observable.js +199 -0
- data/node_modules/core-js/modules/es7.promise.finally.js +20 -0
- data/node_modules/core-js/modules/es7.promise.try.js +12 -0
- data/node_modules/core-js/modules/es7.reflect.define-metadata.js +8 -0
- data/node_modules/core-js/modules/es7.reflect.delete-metadata.js +15 -0
- data/node_modules/core-js/modules/es7.reflect.get-metadata-keys.js +19 -0
- data/node_modules/core-js/modules/es7.reflect.get-metadata.js +17 -0
- data/node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js +8 -0
- data/node_modules/core-js/modules/es7.reflect.get-own-metadata.js +9 -0
- data/node_modules/core-js/modules/es7.reflect.has-metadata.js +16 -0
- data/node_modules/core-js/modules/es7.reflect.has-own-metadata.js +9 -0
- data/node_modules/core-js/modules/es7.reflect.metadata.js +15 -0
- data/node_modules/core-js/modules/es7.set.from.js +2 -0
- data/node_modules/core-js/modules/es7.set.of.js +2 -0
- data/node_modules/core-js/modules/es7.set.to-json.js +4 -0
- data/node_modules/core-js/modules/es7.string.at.js +15 -0
- data/node_modules/core-js/modules/es7.string.match-all.js +30 -0
- data/node_modules/core-js/modules/es7.string.pad-end.js +14 -0
- data/node_modules/core-js/modules/es7.string.pad-start.js +14 -0
- data/node_modules/core-js/modules/es7.string.trim-left.js +7 -0
- data/node_modules/core-js/modules/es7.string.trim-right.js +7 -0
- data/node_modules/core-js/modules/es7.symbol.async-iterator.js +1 -0
- data/node_modules/core-js/modules/es7.symbol.observable.js +1 -0
- data/node_modules/core-js/modules/es7.system.global.js +4 -0
- data/node_modules/core-js/modules/es7.weak-map.from.js +2 -0
- data/node_modules/core-js/modules/es7.weak-map.of.js +2 -0
- data/node_modules/core-js/modules/es7.weak-set.from.js +2 -0
- data/node_modules/core-js/modules/es7.weak-set.of.js +2 -0
- data/node_modules/core-js/modules/library/_add-to-unscopables.js +1 -0
- data/node_modules/core-js/modules/library/_collection.js +59 -0
- data/node_modules/core-js/modules/library/_export.js +62 -0
- data/node_modules/core-js/modules/library/_library.js +1 -0
- data/node_modules/core-js/modules/library/_path.js +1 -0
- data/node_modules/core-js/modules/library/_redefine-all.js +7 -0
- data/node_modules/core-js/modules/library/_redefine.js +1 -0
- data/node_modules/core-js/modules/library/_regexp-exec-abstract.js +1 -0
- data/node_modules/core-js/modules/library/_regexp-exec.js +1 -0
- data/node_modules/core-js/modules/library/_set-species.js +14 -0
- data/node_modules/core-js/modules/library/es6.date.to-json.js +19 -0
- data/node_modules/core-js/modules/library/es6.date.to-primitive.js +0 -0
- data/node_modules/core-js/modules/library/es6.date.to-string.js +0 -0
- data/node_modules/core-js/modules/library/es6.function.name.js +0 -0
- data/node_modules/core-js/modules/library/es6.number.constructor.js +0 -0
- data/node_modules/core-js/modules/library/es6.object.to-string.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.constructor.js +1 -0
- data/node_modules/core-js/modules/library/es6.regexp.exec.js +1 -0
- data/node_modules/core-js/modules/library/es6.regexp.flags.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.match.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.replace.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.search.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.split.js +0 -0
- data/node_modules/core-js/modules/library/es6.regexp.to-string.js +0 -0
- data/node_modules/core-js/modules/library/web.dom.iterable.js +19 -0
- data/node_modules/core-js/modules/web.dom.iterable.js +58 -0
- data/node_modules/core-js/modules/web.immediate.js +6 -0
- data/node_modules/core-js/modules/web.timers.js +20 -0
- data/node_modules/core-js/package.json +73 -0
- data/node_modules/core-js/postinstall.js +58 -0
- data/node_modules/core-js/shim.js +198 -0
- data/node_modules/core-js/stage/0.js +10 -0
- data/node_modules/core-js/stage/1.js +23 -0
- data/node_modules/core-js/stage/2.js +4 -0
- data/node_modules/core-js/stage/3.js +4 -0
- data/node_modules/core-js/stage/4.js +11 -0
- data/node_modules/core-js/stage/index.js +1 -0
- data/node_modules/core-js/stage/pre.js +10 -0
- data/node_modules/core-js/web/dom-collections.js +2 -0
- data/node_modules/core-js/web/immediate.js +2 -0
- data/node_modules/core-js/web/index.js +4 -0
- data/node_modules/core-js/web/timers.js +2 -0
- data/node_modules/detect-indent/index.js +120 -0
- data/node_modules/detect-indent/license +21 -0
- data/node_modules/detect-indent/package.json +46 -0
- data/node_modules/detect-indent/readme.md +110 -0
- data/node_modules/eslint/README.md +2 -2
- data/node_modules/eslint/lib/api.js +1 -1
- data/node_modules/eslint/lib/cli.js +2 -2
- data/node_modules/eslint/lib/config/default-config.js +5 -0
- data/node_modules/eslint/lib/config/flat-config-array.js +72 -9
- data/node_modules/eslint/lib/config/flat-config-schema.js +46 -62
- data/node_modules/eslint/lib/eslint/eslint-helpers.js +33 -23
- data/node_modules/eslint/lib/eslint/eslint.js +15 -20
- data/node_modules/eslint/lib/languages/js/index.js +247 -0
- data/node_modules/eslint/lib/{source-code → languages/js/source-code}/source-code.js +38 -18
- data/node_modules/eslint/lib/languages/js/validate-language-options.js +181 -0
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +8 -3
- data/node_modules/eslint/lib/linter/linter.js +122 -121
- data/node_modules/eslint/lib/linter/report-translator.js +14 -7
- data/node_modules/eslint/lib/linter/vfile.js +104 -0
- data/node_modules/eslint/lib/rule-tester/rule-tester.js +6 -3
- data/node_modules/eslint/lib/rules/func-style.js +4 -4
- data/node_modules/eslint/lib/rules/no-constructor-return.js +1 -1
- data/node_modules/eslint/lib/rules/no-loop-func.js +161 -129
- data/node_modules/eslint/lib/rules/no-sparse-arrays.js +26 -3
- data/node_modules/eslint/messages/all-matched-files-ignored.js +21 -0
- data/node_modules/eslint/package.json +11 -11
- data/node_modules/fast-glob/node_modules/micromatch/LICENSE +21 -0
- data/node_modules/fast-glob/node_modules/micromatch/README.md +1011 -0
- data/node_modules/fast-glob/node_modules/micromatch/index.js +467 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/LICENSE +21 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/README.md +593 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/index.js +170 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/compile.js +57 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/constants.js +57 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/expand.js +113 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/parse.js +333 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/stringify.js +32 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/utils.js +112 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/LICENSE +21 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/README.md +237 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/index.js +249 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/package.json +69 -0
- data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/package.json +77 -0
- data/node_modules/fast-glob/node_modules/micromatch/package.json +119 -0
- data/node_modules/fill-range/index.js +4 -5
- data/node_modules/fill-range/package.json +8 -3
- data/node_modules/has-ansi/index.js +4 -0
- data/node_modules/has-ansi/license +21 -0
- data/node_modules/has-ansi/node_modules/ansi-regex/index.js +4 -0
- data/node_modules/has-ansi/node_modules/ansi-regex/license +21 -0
- data/node_modules/has-ansi/node_modules/ansi-regex/package.json +64 -0
- data/node_modules/has-ansi/node_modules/ansi-regex/readme.md +39 -0
- data/node_modules/has-ansi/package.json +55 -0
- data/node_modules/has-ansi/readme.md +36 -0
- data/node_modules/home-or-tmp/index.js +5 -0
- data/node_modules/home-or-tmp/license +21 -0
- data/node_modules/home-or-tmp/package.json +43 -0
- data/node_modules/home-or-tmp/readme.md +32 -0
- data/node_modules/invariant/CHANGELOG.md +69 -0
- data/node_modules/invariant/LICENSE +21 -0
- data/node_modules/invariant/README.md +37 -0
- data/node_modules/invariant/browser.js +49 -0
- data/node_modules/invariant/invariant.js +51 -0
- data/node_modules/invariant/invariant.js.flow +7 -0
- data/node_modules/invariant/package.json +35 -0
- data/node_modules/is-finite/index.js +5 -0
- data/node_modules/is-finite/license +9 -0
- data/node_modules/is-finite/package.json +34 -0
- data/node_modules/is-finite/readme.md +33 -0
- data/node_modules/js-tokens/CHANGELOG.md +0 -17
- data/node_modules/js-tokens/LICENSE +1 -1
- data/node_modules/js-tokens/README.md +7 -25
- data/node_modules/js-tokens/index.js +3 -3
- data/node_modules/js-tokens/package.json +5 -5
- data/node_modules/jscodeshift/CHANGELOG.md +8 -0
- data/node_modules/jscodeshift/CODE_OF_CONDUCT.md +0 -0
- data/node_modules/jscodeshift/CONTRIBUTING.md +0 -0
- data/node_modules/jscodeshift/LICENSE +0 -0
- data/node_modules/jscodeshift/README.md +42 -6
- data/node_modules/jscodeshift/dist/Collection.js +0 -0
- data/node_modules/jscodeshift/dist/Runner.js +7 -0
- data/node_modules/jscodeshift/dist/Worker.js +0 -0
- data/node_modules/jscodeshift/dist/argsParser.js +0 -0
- data/node_modules/jscodeshift/dist/collections/JSXElement.js +0 -0
- data/node_modules/jscodeshift/dist/collections/Node.js +0 -0
- data/node_modules/jscodeshift/dist/collections/VariableDeclarator.js +0 -0
- data/node_modules/jscodeshift/dist/collections/index.js +0 -0
- data/node_modules/jscodeshift/dist/core.js +0 -0
- data/node_modules/jscodeshift/dist/getParser.js +0 -0
- data/node_modules/jscodeshift/dist/ignoreFiles.js +0 -0
- data/node_modules/jscodeshift/dist/matchNode.js +0 -0
- data/node_modules/jscodeshift/dist/src/Collection.js +0 -0
- data/node_modules/jscodeshift/dist/src/Runner.js +7 -0
- data/node_modules/jscodeshift/dist/src/Worker.js +0 -0
- data/node_modules/jscodeshift/dist/src/argsParser.js +0 -0
- data/node_modules/jscodeshift/dist/src/collections/JSXElement.js +0 -0
- data/node_modules/jscodeshift/dist/src/collections/Node.js +0 -0
- data/node_modules/jscodeshift/dist/src/collections/VariableDeclarator.js +0 -0
- data/node_modules/jscodeshift/dist/src/collections/index.js +0 -0
- data/node_modules/jscodeshift/dist/src/core.js +0 -0
- data/node_modules/jscodeshift/dist/src/getParser.js +0 -0
- data/node_modules/jscodeshift/dist/src/ignoreFiles.js +0 -0
- data/node_modules/jscodeshift/dist/src/matchNode.js +0 -0
- data/node_modules/jscodeshift/dist/src/template.js +0 -0
- data/node_modules/jscodeshift/dist/src/testUtils.js +0 -0
- data/node_modules/jscodeshift/dist/src/utils/intersection.js +0 -0
- data/node_modules/jscodeshift/dist/src/utils/once.js +0 -0
- data/node_modules/jscodeshift/dist/src/utils/union.js +0 -0
- data/node_modules/jscodeshift/dist/template.js +0 -0
- data/node_modules/jscodeshift/dist/testUtils.js +0 -0
- data/node_modules/jscodeshift/dist/utils/intersection.js +0 -0
- data/node_modules/jscodeshift/dist/utils/once.js +0 -0
- data/node_modules/jscodeshift/dist/utils/union.js +0 -0
- data/node_modules/jscodeshift/index.js +0 -0
- data/node_modules/jscodeshift/package.json +20 -20
- data/node_modules/jscodeshift/parser/babel5Compat.js +0 -0
- data/node_modules/jscodeshift/parser/babylon.js +0 -0
- data/node_modules/jscodeshift/parser/flow.js +0 -0
- data/node_modules/jscodeshift/parser/ts.js +0 -0
- data/node_modules/jscodeshift/parser/tsOptions.js +0 -0
- data/node_modules/jscodeshift/parser/tsx.js +0 -0
- data/node_modules/jscodeshift/src/Collection.js +0 -0
- data/node_modules/jscodeshift/src/Runner.js +7 -0
- data/node_modules/jscodeshift/src/Worker.js +0 -0
- data/node_modules/jscodeshift/src/argsParser.js +0 -0
- data/node_modules/jscodeshift/src/collections/JSXElement.js +0 -0
- data/node_modules/jscodeshift/src/collections/Node.js +0 -0
- data/node_modules/jscodeshift/src/collections/VariableDeclarator.js +0 -0
- data/node_modules/jscodeshift/src/collections/index.js +0 -0
- data/node_modules/jscodeshift/src/core.js +0 -0
- data/node_modules/jscodeshift/src/getParser.js +0 -0
- data/node_modules/jscodeshift/src/ignoreFiles.js +0 -0
- data/node_modules/jscodeshift/src/matchNode.js +0 -0
- data/node_modules/jscodeshift/src/template.js +0 -0
- data/node_modules/jscodeshift/src/testUtils.js +0 -0
- data/node_modules/jscodeshift/src/utils/intersection.js +0 -0
- data/node_modules/jscodeshift/src/utils/once.js +0 -0
- data/node_modules/jscodeshift/src/utils/union.js +0 -0
- data/node_modules/jscodeshift/utils/requirePackage.js +0 -0
- data/node_modules/jscodeshift/utils/testUtils.js +0 -0
- data/node_modules/loose-envify/LICENSE +21 -0
- data/node_modules/loose-envify/README.md +45 -0
- data/node_modules/loose-envify/cli.js +16 -0
- data/node_modules/loose-envify/custom.js +4 -0
- data/node_modules/loose-envify/index.js +3 -0
- data/node_modules/loose-envify/loose-envify.js +36 -0
- data/node_modules/loose-envify/node_modules/js-tokens/CHANGELOG.md +151 -0
- data/node_modules/loose-envify/node_modules/js-tokens/LICENSE +21 -0
- data/node_modules/loose-envify/node_modules/js-tokens/README.md +240 -0
- data/node_modules/loose-envify/node_modules/js-tokens/index.js +23 -0
- data/node_modules/loose-envify/node_modules/js-tokens/package.json +30 -0
- data/node_modules/loose-envify/package.json +36 -0
- data/node_modules/loose-envify/replace.js +65 -0
- data/node_modules/micromatch/README.md +135 -129
- data/node_modules/micromatch/package.json +7 -25
- data/node_modules/mkdirp/LICENSE +2 -2
- data/node_modules/mkdirp/bin/cmd.js +29 -64
- data/node_modules/mkdirp/bin/usage.txt +12 -0
- data/node_modules/mkdirp/index.js +95 -24
- data/node_modules/mkdirp/package.json +11 -22
- data/node_modules/mkdirp/readme.markdown +35 -201
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/CHANGELOG.md +15 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/bin/cmd.js +68 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/index.js +31 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/find-made.js +29 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/opts-arg.js +23 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/path-arg.js +29 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js +10 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/package.json +44 -0
- data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/readme.markdown +266 -0
- data/node_modules/os-homedir/index.js +24 -0
- data/node_modules/os-homedir/license +21 -0
- data/node_modules/os-homedir/package.json +41 -0
- data/node_modules/os-homedir/readme.md +31 -0
- data/node_modules/os-tmpdir/index.js +25 -0
- data/node_modules/os-tmpdir/license +21 -0
- data/node_modules/os-tmpdir/package.json +41 -0
- data/node_modules/os-tmpdir/readme.md +32 -0
- data/node_modules/prettier/LICENSE +57 -536
- data/node_modules/prettier/bin/prettier.cjs +4 -8
- data/node_modules/prettier/doc.js +30 -39
- data/node_modules/prettier/doc.mjs +30 -39
- data/node_modules/prettier/index.cjs +2 -2
- data/node_modules/prettier/index.d.ts +4 -2
- data/node_modules/prettier/index.mjs +3238 -4630
- data/node_modules/prettier/internal/cli.mjs +352 -3557
- data/node_modules/prettier/package.json +1 -1
- data/node_modules/prettier/plugins/acorn.js +11 -11
- data/node_modules/prettier/plugins/acorn.mjs +11 -11
- data/node_modules/prettier/plugins/angular.js +1 -1
- data/node_modules/prettier/plugins/angular.mjs +1 -1
- data/node_modules/prettier/plugins/babel.js +11 -11
- data/node_modules/prettier/plugins/babel.mjs +11 -11
- data/node_modules/prettier/plugins/estree.js +28 -28
- data/node_modules/prettier/plugins/estree.mjs +28 -28
- data/node_modules/prettier/plugins/flow.js +16 -17
- data/node_modules/prettier/plugins/flow.mjs +16 -17
- data/node_modules/prettier/plugins/glimmer.js +22 -22
- data/node_modules/prettier/plugins/glimmer.mjs +22 -22
- data/node_modules/prettier/plugins/graphql.js +4 -4
- data/node_modules/prettier/plugins/graphql.mjs +4 -4
- data/node_modules/prettier/plugins/html.js +18 -15
- data/node_modules/prettier/plugins/html.mjs +18 -15
- data/node_modules/prettier/plugins/markdown.js +47 -44
- data/node_modules/prettier/plugins/markdown.mjs +47 -44
- data/node_modules/prettier/plugins/meriyah.js +5 -5
- data/node_modules/prettier/plugins/meriyah.mjs +5 -5
- data/node_modules/prettier/plugins/postcss.js +29 -26
- data/node_modules/prettier/plugins/postcss.mjs +29 -26
- data/node_modules/prettier/plugins/typescript.js +20 -20
- data/node_modules/prettier/plugins/typescript.mjs +20 -20
- data/node_modules/prettier/plugins/yaml.js +32 -32
- data/node_modules/prettier/plugins/yaml.mjs +32 -32
- data/node_modules/prettier/standalone.js +26 -26
- data/node_modules/prettier/standalone.mjs +26 -26
- data/node_modules/private/LICENSE +20 -0
- data/node_modules/private/README.md +245 -0
- data/node_modules/private/package.json +39 -0
- data/node_modules/private/private.js +129 -0
- data/node_modules/recast/lib/printer.js +7 -1
- data/node_modules/recast/package.json +1 -1
- data/node_modules/regenerator-runtime/README.md +31 -0
- data/node_modules/regenerator-runtime/package.json +18 -0
- data/node_modules/regenerator-runtime/path.js +11 -0
- data/node_modules/regenerator-runtime/runtime-module.js +35 -0
- data/node_modules/regenerator-runtime/runtime.js +727 -0
- data/node_modules/repeating/index.js +24 -0
- data/node_modules/repeating/license +21 -0
- data/node_modules/repeating/package.json +37 -0
- data/node_modules/repeating/readme.md +30 -0
- data/node_modules/signal-exit/LICENSE.txt +1 -1
- data/node_modules/signal-exit/README.md +56 -21
- data/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- data/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- data/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- data/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- data/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/cjs/index.js +279 -0
- data/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- data/node_modules/signal-exit/dist/cjs/package.json +3 -0
- data/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- data/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- data/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- data/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- data/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- data/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- data/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- data/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/mjs/index.js +275 -0
- data/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- data/node_modules/signal-exit/dist/mjs/package.json +3 -0
- data/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- data/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- data/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- data/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- data/node_modules/signal-exit/package.json +87 -19
- data/node_modules/string-width-cjs/index.d.ts +29 -0
- data/node_modules/string-width-cjs/index.js +47 -0
- data/node_modules/string-width-cjs/license +9 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +17 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +37 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.js +10 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/package.json +55 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +78 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
- data/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +46 -0
- data/node_modules/string-width-cjs/package.json +56 -0
- data/node_modules/string-width-cjs/readme.md +50 -0
- data/node_modules/strip-ansi-cjs/index.d.ts +17 -0
- data/node_modules/strip-ansi-cjs/index.js +4 -0
- data/node_modules/strip-ansi-cjs/license +9 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +37 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +78 -0
- data/node_modules/strip-ansi-cjs/package.json +54 -0
- data/node_modules/strip-ansi-cjs/readme.md +46 -0
- data/node_modules/tar/node_modules/mkdirp/CHANGELOG.md +15 -0
- data/node_modules/tar/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/tar/node_modules/mkdirp/bin/cmd.js +68 -0
- data/node_modules/tar/node_modules/mkdirp/index.js +31 -0
- data/node_modules/tar/node_modules/mkdirp/lib/find-made.js +29 -0
- data/node_modules/tar/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- data/node_modules/tar/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- data/node_modules/tar/node_modules/mkdirp/lib/opts-arg.js +23 -0
- data/node_modules/tar/node_modules/mkdirp/lib/path-arg.js +29 -0
- data/node_modules/tar/node_modules/mkdirp/lib/use-native.js +10 -0
- data/node_modules/tar/node_modules/mkdirp/package.json +44 -0
- data/node_modules/tar/node_modules/mkdirp/readme.markdown +266 -0
- data/node_modules/temp/README.md +8 -32
- data/node_modules/temp/lib/temp.js +67 -55
- data/node_modules/temp/package.json +4 -3
- data/node_modules/trim-right/index.js +10 -0
- data/node_modules/trim-right/license +21 -0
- data/node_modules/trim-right/package.json +37 -0
- data/node_modules/trim-right/readme.md +30 -0
- data/node_modules/wrap-ansi-cjs/index.js +216 -0
- data/node_modules/wrap-ansi-cjs/license +9 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +17 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +37 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.js +10 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/package.json +55 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +78 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
- data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +46 -0
- data/node_modules/wrap-ansi-cjs/package.json +62 -0
- data/node_modules/wrap-ansi-cjs/readme.md +91 -0
- data/node_modules/write-file-atomic/README.md +41 -6
- data/node_modules/write-file-atomic/lib/index.js +267 -0
- data/node_modules/write-file-atomic/package.json +35 -19
- data/package.json +4 -4
- metadata +2460 -38
- data/node_modules/@babel/helpers/lib/helpers/AsyncGenerator.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimitLoose.js +0 -18
- data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimitLoose.js.map +0 -1
- data/node_modules/@babel/helpers/lib/helpers.js +0 -1673
- data/node_modules/@babel/helpers/lib/helpers.js.map +0 -1
- data/node_modules/@babel/helpers/scripts/package.json +0 -1
- data/node_modules/write-file-atomic/CHANGELOG.md +0 -25
- data/node_modules/write-file-atomic/index.js +0 -238
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/CHANGELOG.md +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/find-made.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/mkdirp-manual.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/mkdirp-native.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/opts-arg.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/path-arg.js +0 -0
- /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/use-native.js +0 -0
- /data/node_modules/{signal-exit → configstore/node_modules/write-file-atomic/node_modules/signal-exit}/index.js +0 -0
- /data/node_modules/{signal-exit → configstore/node_modules/write-file-atomic/node_modules/signal-exit}/signals.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/index.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/backward-token-comment-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/backward-token-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/cursors.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/decorative-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/filter-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/forward-token-comment-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/forward-token-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/index.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/limit-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/padded-token-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/skip-cursor.js +0 -0
- /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/utils.js +0 -0
- /data/node_modules/{braces → fast-glob/node_modules/micromatch/node_modules/braces}/CHANGELOG.md +0 -0
- /data/node_modules/write-file-atomic/{LICENSE → LICENSE.md} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_assert","require","_t","_importBuilder","_isModule","identifier","importSpecifier","numericLiteral","sequenceExpression","isImportDeclaration","ImportInjector","constructor","path","importedSource","opts","_defaultOpts","importedType","importedInterop","importingInterop","ensureLiveReference","ensureNoContext","importPosition","programPath","find","p","isProgram","_programPath","_programScope","scope","_hub","hub","_applyDefaults","addDefault","importedSourceIn","addNamed","importName","assert","_generateImport","addNamespace","addSideEffect","isInit","newOpts","Object","assign","nameHint","undefined","blockHoist","isDefault","isNamed","isNamespace","name","isMod","isModule","isModuleForNode","isModuleForBabel","Error","builder","ImportBuilder","import","namespace","named","es6Default","default","var","wildcardInterop","defaultInterop","read","prop","statements","resultName","done","_insertStatements","type","_insertStatementsAfter","_insertStatementsBefore","unshiftContainer","length","isValueImport","firstImportDecl","get","node","source","value","maybeAppendImportSpecifiers","forEach","_blockHoist","targetPath","val","Number","isFinite","insertBefore","statementsSet","Set","importDeclarations","Map","statement","has","set","push","lastImportPath","bodyStmt","newImports","decl","delete","size","insertAfter","Array","from","exports","importKind","hasNamespaceImport","specifiers","hasDefaultImport","target","local","unshift","shift"],"sources":["../src/import-injector.ts"],"sourcesContent":["import assert from \"assert\";\nimport {\n identifier,\n importSpecifier,\n numericLiteral,\n sequenceExpression,\n isImportDeclaration,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { NodePath, Scope } from \"@babel/traverse\";\nimport type { File } from \"@babel/core\";\n\nimport ImportBuilder from \"./import-builder.ts\";\nimport isModule from \"./is-module.ts\";\n\nexport type ImportOptions = {\n /**\n * The module being referenced.\n */\n importedSource: string | null;\n /**\n * The type of module being imported:\n *\n * * 'es6' - An ES6 module.\n * * 'commonjs' - A CommonJS module. (Default)\n */\n importedType: \"es6\" | \"commonjs\";\n /**\n * The type of interop behavior for namespace/default/named when loading\n * CommonJS modules.\n *\n * ## 'babel' (Default)\n *\n * Load using Babel's interop.\n *\n * If '.__esModule' is true, treat as 'compiled', else:\n *\n * * Namespace: A copy of the module.exports with .default\n * populated by the module.exports object.\n * * Default: The module.exports value.\n * * Named: The .named property of module.exports.\n *\n * The 'ensureLiveReference' has no effect on the liveness of these.\n *\n * ## 'compiled'\n *\n * Assume the module is ES6 compiled to CommonJS. Useful to avoid injecting\n * interop logic if you are confident that the module is a certain format.\n *\n * * Namespace: The root module.exports object.\n * * Default: The .default property of the namespace.\n * * Named: The .named property of the namespace.\n *\n * Will return erroneous results if the imported module is _not_ compiled\n * from ES6 with Babel.\n *\n * ## 'uncompiled'\n *\n * Assume the module is _not_ ES6 compiled to CommonJS. Used a simplified\n * access pattern that doesn't require additional function calls.\n *\n * Will return erroneous results if the imported module _is_ compiled\n * from ES6 with Babel.\n *\n * * Namespace: The module.exports object.\n * * Default: The module.exports object.\n * * Named: The .named property of module.exports.\n */\n importedInterop: \"babel\" | \"node\" | \"compiled\" | \"uncompiled\";\n /**\n * The type of CommonJS interop included in the environment that will be\n * loading the output code.\n *\n * * 'babel' - CommonJS modules load with Babel's interop. (Default)\n * * 'node' - CommonJS modules load with Node's interop.\n *\n * See descriptions in 'importedInterop' for more details.\n */\n importingInterop: \"babel\" | \"node\";\n /**\n * Define whether we explicitly care that the import be a live reference.\n * Only applies when importing default and named imports, not the namespace.\n *\n * * true - Force imported values to be live references.\n * * false - No particular requirements. Keeps the code simplest. (Default)\n */\n ensureLiveReference: boolean;\n /**\n * Define if we explicitly care that the result not be a property reference.\n *\n * * true - Force calls to exclude context. Useful if the value is going to\n * be used as function callee.\n * * false - No particular requirements for context of the access. (Default)\n */\n ensureNoContext: boolean;\n /**\n * Define whether the import should be loaded before or after the existing imports.\n * \"after\" is only allowed inside ECMAScript modules, since it's not possible to\n * reliably pick the location _after_ require() calls but _before_ other code in CJS.\n */\n importPosition: \"before\" | \"after\";\n\n nameHint?: string;\n blockHoist?: number;\n};\n\n/**\n * A general helper classes add imports via transforms. See README for usage.\n */\nexport default class ImportInjector {\n /**\n * The path used for manipulation.\n */\n declare _programPath: NodePath<t.Program>;\n\n /**\n * The scope used to generate unique variable names.\n */\n declare _programScope: Scope;\n\n /**\n * The file used to inject helpers and resolve paths.\n */\n declare _hub: File[\"hub\"];\n\n /**\n * The default options to use with this instance when imports are added.\n */\n _defaultOpts: ImportOptions = {\n importedSource: null,\n importedType: \"commonjs\",\n importedInterop: \"babel\",\n importingInterop: \"babel\",\n ensureLiveReference: false,\n ensureNoContext: false,\n importPosition: \"before\",\n };\n\n constructor(\n path: NodePath,\n importedSource?: string,\n opts?: Partial<ImportOptions>,\n ) {\n const programPath = path.find(p => p.isProgram()) as NodePath<t.Program>;\n\n this._programPath = programPath;\n this._programScope = programPath.scope;\n this._hub = programPath.hub as File[\"hub\"];\n\n this._defaultOpts = this._applyDefaults(importedSource, opts, true);\n }\n\n addDefault(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this.addNamed(\"default\", importedSourceIn, opts);\n }\n\n addNamed(\n importName: string,\n importedSourceIn: string,\n opts: Partial<ImportOptions>,\n ) {\n assert(typeof importName === \"string\");\n\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n importName,\n );\n }\n\n addNamespace(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n null,\n );\n }\n\n addSideEffect(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n void 0,\n );\n }\n\n _applyDefaults(\n importedSource: string | Partial<ImportOptions>,\n opts: Partial<ImportOptions> | undefined,\n isInit = false,\n ) {\n let newOpts: ImportOptions;\n if (typeof importedSource === \"string\") {\n newOpts = { ...this._defaultOpts, importedSource, ...opts };\n } else {\n assert(!opts, \"Unexpected secondary arguments.\");\n newOpts = { ...this._defaultOpts, ...importedSource };\n }\n\n if (!isInit && opts) {\n if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint;\n if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist;\n }\n return newOpts;\n }\n\n _generateImport(\n opts: Partial<ImportOptions>,\n importName: string | null | undefined,\n ) {\n const isDefault = importName === \"default\";\n const isNamed = !!importName && !isDefault;\n const isNamespace = importName === null;\n\n const {\n importedSource,\n importedType,\n importedInterop,\n importingInterop,\n ensureLiveReference,\n ensureNoContext,\n nameHint,\n importPosition,\n\n // Not meant for public usage. Allows code that absolutely must control\n // ordering to set a specific hoist value on the import nodes.\n // This is ignored when \"importPosition\" is \"after\".\n blockHoist,\n } = opts;\n\n // Provide a hint for generateUidIdentifier for the local variable name\n // to use for the import, if the code will generate a simple assignment\n // to a variable.\n let name = nameHint || importName;\n\n const isMod = isModule(this._programPath);\n const isModuleForNode = isMod && importingInterop === \"node\";\n const isModuleForBabel = isMod && importingInterop === \"babel\";\n\n if (importPosition === \"after\" && !isMod) {\n throw new Error(`\"importPosition\": \"after\" is only supported in modules`);\n }\n\n const builder = new ImportBuilder(\n importedSource,\n this._programScope,\n this._hub,\n );\n\n if (importedType === \"es6\") {\n if (!isModuleForNode && !isModuleForBabel) {\n throw new Error(\"Cannot import an ES6 module from CommonJS\");\n }\n\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(nameHint || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else if (importedType !== \"commonjs\") {\n throw new Error(`Unexpected interopType \"${importedType}\"`);\n } else if (importedInterop === \"babel\") {\n if (isModuleForNode) {\n // import _tmp from ''; var namespace = interopRequireWildcard(_tmp); namespace\n // import _tmp from ''; var def = interopRequireDefault(_tmp).default; def\n // import _tmp from ''; _tmp.named\n name = name !== \"default\" ? name : importedSource;\n const es6Default = `${importedSource}$es6Default`;\n\n builder.import();\n if (isNamespace) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .wildcardInterop();\n } else if (isDefault) {\n if (ensureLiveReference) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .defaultInterop()\n .read(\"default\");\n } else {\n builder\n .default(es6Default)\n .var(name)\n .defaultInterop()\n .prop(importName);\n }\n } else if (isNamed) {\n builder.default(es6Default).read(importName);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = interopRequireWildcard(require(''));\n // var def = interopRequireDefault(require('')).default; def\n // var named = require('').named; named\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource).wildcardInterop();\n } else if ((isDefault || isNamed) && ensureLiveReference) {\n if (isDefault) {\n name = name !== \"default\" ? name : importedSource;\n builder.var(name).read(importName);\n builder.defaultInterop();\n } else {\n builder.var(importedSource).read(importName);\n }\n } else if (isDefault) {\n builder.var(name).defaultInterop().prop(importName);\n } else if (isNamed) {\n builder.var(name).prop(importName);\n }\n }\n } else if (importedInterop === \"compiled\") {\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import namespace from ''; namespace.default\n // import namespace from ''; namespace.named\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n // Note: These lookups will break if the module has no __esModule set,\n // hence the warning that 'compiled' will not work on standard CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var namespace = require(''); namespace.default\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault || isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.prop(importName).var(name);\n }\n }\n }\n } else if (importedInterop === \"uncompiled\") {\n if (isDefault && ensureLiveReference) {\n throw new Error(\"No live reference for commonjs default\");\n }\n\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import def from ''; def;\n // import namespace from ''; namespace.named\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import namespace from '';\n // import def from '';\n // import { named } from ''; named;\n // Note: These lookups will break if the module has __esModule set,\n // hence the warning that 'uncompiled' will not work on ES6 transpiled\n // to CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var def = require(''); def\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault) {\n builder.var(name);\n } else if (isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.var(name).prop(importName);\n }\n }\n }\n } else {\n throw new Error(`Unknown importedInterop \"${importedInterop}\".`);\n }\n\n const { statements, resultName } = builder.done();\n\n this._insertStatements(statements, importPosition, blockHoist);\n\n if (\n (isDefault || isNamed) &&\n ensureNoContext &&\n resultName.type !== \"Identifier\"\n ) {\n return sequenceExpression([numericLiteral(0), resultName]);\n }\n return resultName;\n }\n\n _insertStatements(\n statements: t.Statement[],\n importPosition = \"before\",\n blockHoist = 3,\n ) {\n if (importPosition === \"after\") {\n if (this._insertStatementsAfter(statements)) return;\n } else {\n if (this._insertStatementsBefore(statements, blockHoist)) return;\n }\n\n this._programPath.unshiftContainer(\"body\", statements);\n }\n\n _insertStatementsBefore(statements: t.Statement[], blockHoist: number) {\n if (\n statements.length === 1 &&\n isImportDeclaration(statements[0]) &&\n isValueImport(statements[0])\n ) {\n const firstImportDecl = this._programPath\n .get(\"body\")\n .find((p): p is NodePath<t.ImportDeclaration> => {\n return p.isImportDeclaration() && isValueImport(p.node);\n });\n\n if (\n firstImportDecl?.node.source.value === statements[0].source.value &&\n maybeAppendImportSpecifiers(firstImportDecl.node, statements[0])\n ) {\n return true;\n }\n }\n\n statements.forEach(node => {\n // @ts-expect-error handle _blockHoist\n node._blockHoist = blockHoist;\n });\n\n const targetPath = this._programPath.get(\"body\").find(p => {\n // @ts-expect-error todo(flow->ts): avoid mutations\n const val = p.node._blockHoist;\n return Number.isFinite(val) && val < 4;\n });\n\n if (targetPath) {\n targetPath.insertBefore(statements);\n return true;\n }\n\n return false;\n }\n\n _insertStatementsAfter(statements: t.Statement[]): boolean {\n const statementsSet = new Set(statements);\n const importDeclarations: Map<string, t.ImportDeclaration[]> = new Map();\n\n for (const statement of statements) {\n if (isImportDeclaration(statement) && isValueImport(statement)) {\n const source = statement.source.value;\n if (!importDeclarations.has(source)) importDeclarations.set(source, []);\n importDeclarations.get(source).push(statement);\n }\n }\n\n let lastImportPath = null;\n for (const bodyStmt of this._programPath.get(\"body\")) {\n if (bodyStmt.isImportDeclaration() && isValueImport(bodyStmt.node)) {\n lastImportPath = bodyStmt;\n\n const source = bodyStmt.node.source.value;\n const newImports = importDeclarations.get(source);\n if (!newImports) continue;\n\n for (const decl of newImports) {\n if (!statementsSet.has(decl)) continue;\n if (maybeAppendImportSpecifiers(bodyStmt.node, decl)) {\n statementsSet.delete(decl);\n }\n }\n }\n }\n\n if (statementsSet.size === 0) return true;\n\n if (lastImportPath) lastImportPath.insertAfter(Array.from(statementsSet));\n\n return !!lastImportPath;\n }\n}\n\nfunction isValueImport(node: t.ImportDeclaration) {\n return node.importKind !== \"type\" && node.importKind !== \"typeof\";\n}\n\nfunction hasNamespaceImport(node: t.ImportDeclaration) {\n return (\n (node.specifiers.length === 1 &&\n node.specifiers[0].type === \"ImportNamespaceSpecifier\") ||\n (node.specifiers.length === 2 &&\n node.specifiers[1].type === \"ImportNamespaceSpecifier\")\n );\n}\n\nfunction hasDefaultImport(node: t.ImportDeclaration) {\n return (\n node.specifiers.length > 0 &&\n node.specifiers[0].type === \"ImportDefaultSpecifier\"\n );\n}\n\nfunction maybeAppendImportSpecifiers(\n target: t.ImportDeclaration,\n source: t.ImportDeclaration,\n): boolean {\n if (!target.specifiers.length) {\n target.specifiers = source.specifiers;\n return true;\n }\n if (!source.specifiers.length) return true;\n\n if (hasNamespaceImport(target) || hasNamespaceImport(source)) return false;\n\n if (hasDefaultImport(source)) {\n if (hasDefaultImport(target)) {\n source.specifiers[0] = importSpecifier(\n source.specifiers[0].local,\n identifier(\"default\"),\n );\n } else {\n target.specifiers.unshift(source.specifiers.shift());\n }\n }\n\n target.specifiers.push(...source.specifiers);\n\n return true;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAWA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAAsC;EAXpCI,UAAU;EACVC,eAAe;EACfC,cAAc;EACdC,kBAAkB;EAClBC;AAAmB,IAAAP,EAAA;AAuGN,MAAMQ,cAAc,CAAC;EA6BlCC,WAAWA,CACTC,IAAc,EACdC,cAAuB,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CAAC8B,UAAU,CAACK,KAAK,CAAC,CAAC,CAAC;IACtD;EACF;EAEAH,MAAM,CAACF,UAAU,CAACb,IAAI,CAAC,GAAGjB,MAAM,CAAC8B,UAAU,CAAC;EAE5C,OAAO,IAAI;AACb","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_assert","require","_t","_importBuilder","_isModule","identifier","importSpecifier","numericLiteral","sequenceExpression","isImportDeclaration","ImportInjector","constructor","path","importedSource","opts","_defaultOpts","importedType","importedInterop","importingInterop","ensureLiveReference","ensureNoContext","importPosition","programPath","find","p","isProgram","_programPath","_programScope","scope","_hub","hub","_applyDefaults","addDefault","importedSourceIn","addNamed","importName","assert","_generateImport","addNamespace","addSideEffect","isInit","newOpts","Object","assign","nameHint","undefined","blockHoist","isDefault","isNamed","isNamespace","name","isMod","isModule","isModuleForNode","isModuleForBabel","Error","builder","ImportBuilder","import","namespace","named","es6Default","default","var","wildcardInterop","defaultInterop","read","prop","statements","resultName","done","_insertStatements","type","_insertStatementsAfter","_insertStatementsBefore","unshiftContainer","length","isValueImport","firstImportDecl","get","node","source","value","maybeAppendImportSpecifiers","forEach","_blockHoist","targetPath","val","Number","isFinite","insertBefore","statementsSet","Set","importDeclarations","Map","statement","has","set","push","lastImportPath","bodyStmt","newImports","decl","delete","size","insertAfter","Array","from","exports","importKind","hasNamespaceImport","specifiers","hasDefaultImport","target","local","unshift","shift"],"sources":["../src/import-injector.ts"],"sourcesContent":["import assert from \"assert\";\nimport {\n identifier,\n importSpecifier,\n numericLiteral,\n sequenceExpression,\n isImportDeclaration,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { NodePath, Scope, HubInterface } from \"@babel/traverse\";\n\nimport ImportBuilder from \"./import-builder.ts\";\nimport isModule from \"./is-module.ts\";\n\nexport type ImportOptions = {\n /**\n * The module being referenced.\n */\n importedSource: string | null;\n /**\n * The type of module being imported:\n *\n * * 'es6' - An ES6 module.\n * * 'commonjs' - A CommonJS module. (Default)\n */\n importedType: \"es6\" | \"commonjs\";\n /**\n * The type of interop behavior for namespace/default/named when loading\n * CommonJS modules.\n *\n * ## 'babel' (Default)\n *\n * Load using Babel's interop.\n *\n * If '.__esModule' is true, treat as 'compiled', else:\n *\n * * Namespace: A copy of the module.exports with .default\n * populated by the module.exports object.\n * * Default: The module.exports value.\n * * Named: The .named property of module.exports.\n *\n * The 'ensureLiveReference' has no effect on the liveness of these.\n *\n * ## 'compiled'\n *\n * Assume the module is ES6 compiled to CommonJS. Useful to avoid injecting\n * interop logic if you are confident that the module is a certain format.\n *\n * * Namespace: The root module.exports object.\n * * Default: The .default property of the namespace.\n * * Named: The .named property of the namespace.\n *\n * Will return erroneous results if the imported module is _not_ compiled\n * from ES6 with Babel.\n *\n * ## 'uncompiled'\n *\n * Assume the module is _not_ ES6 compiled to CommonJS. Used a simplified\n * access pattern that doesn't require additional function calls.\n *\n * Will return erroneous results if the imported module _is_ compiled\n * from ES6 with Babel.\n *\n * * Namespace: The module.exports object.\n * * Default: The module.exports object.\n * * Named: The .named property of module.exports.\n */\n importedInterop: \"babel\" | \"node\" | \"compiled\" | \"uncompiled\";\n /**\n * The type of CommonJS interop included in the environment that will be\n * loading the output code.\n *\n * * 'babel' - CommonJS modules load with Babel's interop. (Default)\n * * 'node' - CommonJS modules load with Node's interop.\n *\n * See descriptions in 'importedInterop' for more details.\n */\n importingInterop: \"babel\" | \"node\";\n /**\n * Define whether we explicitly care that the import be a live reference.\n * Only applies when importing default and named imports, not the namespace.\n *\n * * true - Force imported values to be live references.\n * * false - No particular requirements. Keeps the code simplest. (Default)\n */\n ensureLiveReference: boolean;\n /**\n * Define if we explicitly care that the result not be a property reference.\n *\n * * true - Force calls to exclude context. Useful if the value is going to\n * be used as function callee.\n * * false - No particular requirements for context of the access. (Default)\n */\n ensureNoContext: boolean;\n /**\n * Define whether the import should be loaded before or after the existing imports.\n * \"after\" is only allowed inside ECMAScript modules, since it's not possible to\n * reliably pick the location _after_ require() calls but _before_ other code in CJS.\n */\n importPosition: \"before\" | \"after\";\n\n nameHint?: string;\n blockHoist?: number;\n};\n\n/**\n * A general helper classes add imports via transforms. See README for usage.\n */\nexport default class ImportInjector {\n /**\n * The path used for manipulation.\n */\n declare _programPath: NodePath<t.Program>;\n\n /**\n * The scope used to generate unique variable names.\n */\n declare _programScope: Scope;\n\n /**\n * The file used to inject helpers and resolve paths.\n */\n declare _hub: HubInterface;\n\n /**\n * The default options to use with this instance when imports are added.\n */\n _defaultOpts: ImportOptions = {\n importedSource: null,\n importedType: \"commonjs\",\n importedInterop: \"babel\",\n importingInterop: \"babel\",\n ensureLiveReference: false,\n ensureNoContext: false,\n importPosition: \"before\",\n };\n\n constructor(\n path: NodePath,\n importedSource?: string,\n opts?: Partial<ImportOptions>,\n ) {\n const programPath = path.find(p => p.isProgram()) as NodePath<t.Program>;\n\n this._programPath = programPath;\n this._programScope = programPath.scope;\n this._hub = programPath.hub;\n\n this._defaultOpts = this._applyDefaults(importedSource, opts, true);\n }\n\n addDefault(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this.addNamed(\"default\", importedSourceIn, opts);\n }\n\n addNamed(\n importName: string,\n importedSourceIn: string,\n opts: Partial<ImportOptions>,\n ) {\n assert(typeof importName === \"string\");\n\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n importName,\n );\n }\n\n addNamespace(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n null,\n );\n }\n\n addSideEffect(importedSourceIn: string, opts: Partial<ImportOptions>) {\n return this._generateImport(\n this._applyDefaults(importedSourceIn, opts),\n void 0,\n );\n }\n\n _applyDefaults(\n importedSource: string | Partial<ImportOptions>,\n opts: Partial<ImportOptions> | undefined,\n isInit = false,\n ) {\n let newOpts: ImportOptions;\n if (typeof importedSource === \"string\") {\n newOpts = { ...this._defaultOpts, importedSource, ...opts };\n } else {\n assert(!opts, \"Unexpected secondary arguments.\");\n newOpts = { ...this._defaultOpts, ...importedSource };\n }\n\n if (!isInit && opts) {\n if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint;\n if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist;\n }\n return newOpts;\n }\n\n _generateImport(\n opts: Partial<ImportOptions>,\n importName: string | null | undefined,\n ) {\n const isDefault = importName === \"default\";\n const isNamed = !!importName && !isDefault;\n const isNamespace = importName === null;\n\n const {\n importedSource,\n importedType,\n importedInterop,\n importingInterop,\n ensureLiveReference,\n ensureNoContext,\n nameHint,\n importPosition,\n\n // Not meant for public usage. Allows code that absolutely must control\n // ordering to set a specific hoist value on the import nodes.\n // This is ignored when \"importPosition\" is \"after\".\n blockHoist,\n } = opts;\n\n // Provide a hint for generateUidIdentifier for the local variable name\n // to use for the import, if the code will generate a simple assignment\n // to a variable.\n let name = nameHint || importName;\n\n const isMod = isModule(this._programPath);\n const isModuleForNode = isMod && importingInterop === \"node\";\n const isModuleForBabel = isMod && importingInterop === \"babel\";\n\n if (importPosition === \"after\" && !isMod) {\n throw new Error(`\"importPosition\": \"after\" is only supported in modules`);\n }\n\n const builder = new ImportBuilder(\n importedSource,\n this._programScope,\n this._hub,\n );\n\n if (importedType === \"es6\") {\n if (!isModuleForNode && !isModuleForBabel) {\n throw new Error(\"Cannot import an ES6 module from CommonJS\");\n }\n\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(nameHint || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else if (importedType !== \"commonjs\") {\n throw new Error(`Unexpected interopType \"${importedType}\"`);\n } else if (importedInterop === \"babel\") {\n if (isModuleForNode) {\n // import _tmp from ''; var namespace = interopRequireWildcard(_tmp); namespace\n // import _tmp from ''; var def = interopRequireDefault(_tmp).default; def\n // import _tmp from ''; _tmp.named\n name = name !== \"default\" ? name : importedSource;\n const es6Default = `${importedSource}$es6Default`;\n\n builder.import();\n if (isNamespace) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .wildcardInterop();\n } else if (isDefault) {\n if (ensureLiveReference) {\n builder\n .default(es6Default)\n .var(name || importedSource)\n .defaultInterop()\n .read(\"default\");\n } else {\n builder\n .default(es6Default)\n .var(name)\n .defaultInterop()\n .prop(importName);\n }\n } else if (isNamed) {\n builder.default(es6Default).read(importName);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = interopRequireWildcard(require(''));\n // var def = interopRequireDefault(require('')).default; def\n // var named = require('').named; named\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource).wildcardInterop();\n } else if ((isDefault || isNamed) && ensureLiveReference) {\n if (isDefault) {\n name = name !== \"default\" ? name : importedSource;\n builder.var(name).read(importName);\n builder.defaultInterop();\n } else {\n builder.var(importedSource).read(importName);\n }\n } else if (isDefault) {\n builder.var(name).defaultInterop().prop(importName);\n } else if (isNamed) {\n builder.var(name).prop(importName);\n }\n }\n } else if (importedInterop === \"compiled\") {\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import namespace from ''; namespace.default\n // import namespace from ''; namespace.named\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import * as namespace from ''; namespace\n // import def from ''; def\n // import { named } from ''; named\n // Note: These lookups will break if the module has no __esModule set,\n // hence the warning that 'compiled' will not work on standard CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.namespace(name || importedSource);\n } else if (isDefault || isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var namespace = require(''); namespace.default\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault || isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.prop(importName).var(name);\n }\n }\n }\n } else if (importedInterop === \"uncompiled\") {\n if (isDefault && ensureLiveReference) {\n throw new Error(\"No live reference for commonjs default\");\n }\n\n if (isModuleForNode) {\n // import namespace from ''; namespace\n // import def from ''; def;\n // import namespace from ''; namespace.named\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.default(importedSource).read(name);\n }\n } else if (isModuleForBabel) {\n // import namespace from '';\n // import def from '';\n // import { named } from ''; named;\n // Note: These lookups will break if the module has __esModule set,\n // hence the warning that 'uncompiled' will not work on ES6 transpiled\n // to CommonJS.\n\n builder.import();\n if (isNamespace) {\n builder.default(name || importedSource);\n } else if (isDefault) {\n builder.default(name);\n } else if (isNamed) {\n builder.named(name, importName);\n }\n } else {\n // var namespace = require(''); namespace\n // var def = require(''); def\n // var namespace = require(''); namespace.named\n // var named = require('').named;\n builder.require();\n if (isNamespace) {\n builder.var(name || importedSource);\n } else if (isDefault) {\n builder.var(name);\n } else if (isNamed) {\n if (ensureLiveReference) {\n builder.var(importedSource).read(name);\n } else {\n builder.var(name).prop(importName);\n }\n }\n }\n } else {\n throw new Error(`Unknown importedInterop \"${importedInterop}\".`);\n }\n\n const { statements, resultName } = builder.done();\n\n this._insertStatements(statements, importPosition, blockHoist);\n\n if (\n (isDefault || isNamed) &&\n ensureNoContext &&\n resultName.type !== \"Identifier\"\n ) {\n return sequenceExpression([numericLiteral(0), resultName]);\n }\n return resultName;\n }\n\n _insertStatements(\n statements: t.Statement[],\n importPosition = \"before\",\n blockHoist = 3,\n ) {\n if (importPosition === \"after\") {\n if (this._insertStatementsAfter(statements)) return;\n } else {\n if (this._insertStatementsBefore(statements, blockHoist)) return;\n }\n\n this._programPath.unshiftContainer(\"body\", statements);\n }\n\n _insertStatementsBefore(statements: t.Statement[], blockHoist: number) {\n if (\n statements.length === 1 &&\n isImportDeclaration(statements[0]) &&\n isValueImport(statements[0])\n ) {\n const firstImportDecl = this._programPath\n .get(\"body\")\n .find((p): p is NodePath<t.ImportDeclaration> => {\n return p.isImportDeclaration() && isValueImport(p.node);\n });\n\n if (\n firstImportDecl?.node.source.value === statements[0].source.value &&\n maybeAppendImportSpecifiers(firstImportDecl.node, statements[0])\n ) {\n return true;\n }\n }\n\n statements.forEach(node => {\n // @ts-expect-error handle _blockHoist\n node._blockHoist = blockHoist;\n });\n\n const targetPath = this._programPath.get(\"body\").find(p => {\n // @ts-expect-error todo(flow->ts): avoid mutations\n const val = p.node._blockHoist;\n return Number.isFinite(val) && val < 4;\n });\n\n if (targetPath) {\n targetPath.insertBefore(statements);\n return true;\n }\n\n return false;\n }\n\n _insertStatementsAfter(statements: t.Statement[]): boolean {\n const statementsSet = new Set(statements);\n const importDeclarations: Map<string, t.ImportDeclaration[]> = new Map();\n\n for (const statement of statements) {\n if (isImportDeclaration(statement) && isValueImport(statement)) {\n const source = statement.source.value;\n if (!importDeclarations.has(source)) importDeclarations.set(source, []);\n importDeclarations.get(source).push(statement);\n }\n }\n\n let lastImportPath = null;\n for (const bodyStmt of this._programPath.get(\"body\")) {\n if (bodyStmt.isImportDeclaration() && isValueImport(bodyStmt.node)) {\n lastImportPath = bodyStmt;\n\n const source = bodyStmt.node.source.value;\n const newImports = importDeclarations.get(source);\n if (!newImports) continue;\n\n for (const decl of newImports) {\n if (!statementsSet.has(decl)) continue;\n if (maybeAppendImportSpecifiers(bodyStmt.node, decl)) {\n statementsSet.delete(decl);\n }\n }\n }\n }\n\n if (statementsSet.size === 0) return true;\n\n if (lastImportPath) lastImportPath.insertAfter(Array.from(statementsSet));\n\n return !!lastImportPath;\n }\n}\n\nfunction isValueImport(node: t.ImportDeclaration) {\n return node.importKind !== \"type\" && node.importKind !== \"typeof\";\n}\n\nfunction hasNamespaceImport(node: t.ImportDeclaration) {\n return (\n (node.specifiers.length === 1 &&\n node.specifiers[0].type === \"ImportNamespaceSpecifier\") ||\n (node.specifiers.length === 2 &&\n node.specifiers[1].type === \"ImportNamespaceSpecifier\")\n );\n}\n\nfunction hasDefaultImport(node: t.ImportDeclaration) {\n return (\n node.specifiers.length > 0 &&\n node.specifiers[0].type === \"ImportDefaultSpecifier\"\n );\n}\n\nfunction maybeAppendImportSpecifiers(\n target: t.ImportDeclaration,\n source: t.ImportDeclaration,\n): boolean {\n if (!target.specifiers.length) {\n target.specifiers = source.specifiers;\n return true;\n }\n if (!source.specifiers.length) return true;\n\n if (hasNamespaceImport(target) || hasNamespaceImport(source)) return false;\n\n if (hasDefaultImport(source)) {\n if (hasDefaultImport(target)) {\n source.specifiers[0] = importSpecifier(\n source.specifiers[0].local,\n identifier(\"default\"),\n );\n } else {\n target.specifiers.unshift(source.specifiers.shift());\n }\n }\n\n target.specifiers.push(...source.specifiers);\n\n return true;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,EAAA,GAAAD,OAAA;AAUA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAAsC;EAVpCI,UAAU;EACVC,eAAe;EACfC,cAAc;EACdC,kBAAkB;EAClBC;AAAmB,IAAAP,EAAA;AAsGN,MAAMQ,cAAc,CAAC;EA6BlCC,WAAWA,CACTC,IAAc,EACdC,cAAuB,EACvBC,IAA6B,EAC7B;IAAA,KAdFC,YAAY,GAAkB;MAC5BF,cAAc,EAAE,IAAI;MACpBG,YAAY,EAAE,UAAU;MACxBC,eAAe,EAAE,OAAO;MACxBC,gBAAgB,EAAE,OAAO;MACzBC,mBAAmB,EAAE,KAAK;MAC1BC,eAAe,EAAE,KAAK;MACtBC,cAAc,EAAE;IAClB,CAAC;IAOC,MAAMC,WAAW,GAAGV,IAAI,CAACW,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACC,SAAS,CAAC,CAAC,CAAwB;IAExE,IAAI,CAACC,YAAY,GAAGJ,WAAW;IAC/B,IAAI,CAACK,aAAa,GAAGL,WAAW,CAACM,KAAK;I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UAAU,CAACnC,MAAM,GAAG,CAAC,IAC1BI,IAAI,CAAC+B,UAAU,CAAC,CAAC,CAAC,CAACvC,IAAI,KAAK,wBAAwB;AAExD;AAEA,SAASW,2BAA2BA,CAClC8B,MAA2B,EAC3BhC,MAA2B,EAClB;EACT,IAAI,CAACgC,MAAM,CAACF,UAAU,CAACnC,MAAM,EAAE;IAC7BqC,MAAM,CAACF,UAAU,GAAG9B,MAAM,CAAC8B,UAAU;IACrC,OAAO,IAAI;EACb;EACA,IAAI,CAAC9B,MAAM,CAAC8B,UAAU,CAACnC,MAAM,EAAE,OAAO,IAAI;EAE1C,IAAIkC,kBAAkB,CAACG,MAAM,CAAC,IAAIH,kBAAkB,CAAC7B,MAAM,CAAC,EAAE,OAAO,KAAK;EAE1E,IAAI+B,gBAAgB,CAAC/B,MAAM,CAAC,EAAE;IAC5B,IAAI+B,gBAAgB,CAACC,MAAM,CAAC,EAAE;MAC5BhC,MAAM,CAAC8B,UAAU,CAAC,CAAC,CAAC,GAAGzG,eAAe,CACpC2E,MAAM,CAAC8B,UAAU,CAAC,CAAC,CAAC,CAACG,KAAK,EAC1B7G,UAAU,CAAC,SAAS,CACtB,CAAC;IACH,CAAC,MAAM;MACL4G,MAAM,CAACF,UAAU,CAACI,OAAO,CAAClC,MAAM,CAAC8B,UAAU,CAACK,KAAK,CAAC,CAAC,CAAC;IACtD;EACF;EAEAH,MAAM,CAACF,UAAU,CAACb,IAAI,CAAC,GAAGjB,MAAM,CAAC8B,UAAU,CAAC;EAE5C,OAAO,IAAI;AACb","ignoreList":[]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babel/helper-module-imports",
|
3
|
-
"version": "7.24.
|
3
|
+
"version": "7.24.7",
|
4
4
|
"description": "Babel helper functions for inserting module loads",
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-helper-module-imports",
|
@@ -15,11 +15,11 @@
|
|
15
15
|
},
|
16
16
|
"main": "./lib/index.js",
|
17
17
|
"dependencies": {
|
18
|
-
"@babel/
|
18
|
+
"@babel/traverse": "^7.24.7",
|
19
|
+
"@babel/types": "^7.24.7"
|
19
20
|
},
|
20
21
|
"devDependencies": {
|
21
|
-
"@babel/core": "^7.24.
|
22
|
-
"@babel/traverse": "^7.24.1"
|
22
|
+
"@babel/core": "^7.24.7"
|
23
23
|
},
|
24
24
|
"engines": {
|
25
25
|
"node": ">=6.9.0"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["originalGetModuleName","getModuleName","exports","default","rootOpts","pluginOpts","_pluginOpts$moduleId","_pluginOpts$moduleIds","_pluginOpts$getModule","_pluginOpts$moduleRoo","moduleId","moduleIds","getModuleId","moduleRoot","filename","filenameRelative","sourceRoot","moduleName","sourceRootReplacer","RegExp","replace"],"sources":["../src/get-module-name.ts"],"sourcesContent":["type RootOptions = {\n filename?: string;\n filenameRelative?: string;\n sourceRoot?: string;\n};\n\nexport type PluginOptions = {\n moduleId?: string;\n moduleIds?: boolean;\n getModuleId?: (moduleName: string) => string | null | undefined;\n moduleRoot?: string;\n};\n\nif (!process.env.BABEL_8_BREAKING) {\n const originalGetModuleName = getModuleName;\n\n // @ts-expect-error TS doesn't like reassigning a function.\n
|
1
|
+
{"version":3,"names":["originalGetModuleName","getModuleName","exports","default","rootOpts","pluginOpts","_pluginOpts$moduleId","_pluginOpts$moduleIds","_pluginOpts$getModule","_pluginOpts$moduleRoo","moduleId","moduleIds","getModuleId","moduleRoot","filename","filenameRelative","sourceRoot","moduleName","sourceRootReplacer","RegExp","replace"],"sources":["../src/get-module-name.ts"],"sourcesContent":["type RootOptions = {\n filename?: string;\n filenameRelative?: string;\n sourceRoot?: string;\n};\n\nexport type PluginOptions = {\n moduleId?: string;\n moduleIds?: boolean;\n getModuleId?: (moduleName: string) => string | null | undefined;\n moduleRoot?: string;\n};\n\nif (!process.env.BABEL_8_BREAKING) {\n const originalGetModuleName = getModuleName;\n\n // @ts-expect-error TS doesn't like reassigning a function.\n getModuleName = function getModuleName(\n rootOpts: RootOptions & PluginOptions,\n pluginOpts: PluginOptions,\n ): string | null {\n return originalGetModuleName(rootOpts, {\n moduleId: pluginOpts.moduleId ?? rootOpts.moduleId,\n moduleIds: pluginOpts.moduleIds ?? rootOpts.moduleIds,\n getModuleId: pluginOpts.getModuleId ?? rootOpts.getModuleId,\n moduleRoot: pluginOpts.moduleRoot ?? rootOpts.moduleRoot,\n });\n };\n}\n\nexport default function getModuleName(\n rootOpts: RootOptions,\n pluginOpts: PluginOptions,\n): string | null {\n const {\n filename,\n filenameRelative = filename,\n sourceRoot = pluginOpts.moduleRoot,\n } = rootOpts;\n\n const {\n moduleId,\n moduleIds = !!moduleId,\n\n getModuleId,\n\n moduleRoot = sourceRoot,\n } = pluginOpts;\n\n if (!moduleIds) return null;\n\n // moduleId is n/a if a `getModuleId()` is provided\n if (moduleId != null && !getModuleId) {\n return moduleId;\n }\n\n let moduleName = moduleRoot != null ? moduleRoot + \"/\" : \"\";\n\n if (filenameRelative) {\n const sourceRootReplacer =\n sourceRoot != null ? new RegExp(\"^\" + sourceRoot + \"/?\") : \"\";\n\n moduleName += filenameRelative\n // remove sourceRoot from filename\n .replace(sourceRootReplacer, \"\")\n // remove extension\n .replace(/\\.(\\w*?)$/, \"\");\n }\n\n // normalize path separators\n moduleName = moduleName.replace(/\\\\/g, \"/\");\n\n if (getModuleId) {\n // If return is falsy, assume they want us to use our generated default name\n return getModuleId(moduleName) || moduleName;\n } else {\n return moduleName;\n }\n}\n"],"mappings":";;;;;;AAamC;EACjC,MAAMA,qBAAqB,GAAGC,aAAa;EAG3CC,OAAA,CAAAC,OAAA,GAAAF,aAAa,GAAG,SAASA,aAAaA,CACpCG,QAAqC,EACrCC,UAAyB,EACV;IAAA,IAAAC,oBAAA,EAAAC,qBAAA,EAAAC,qBAAA,EAAAC,qBAAA;IACf,OAAOT,qBAAqB,CAACI,QAAQ,EAAE;MACrCM,QAAQ,GAA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K,EAAE,GAAG,CAAC;EAE3C,IAAIR,WAAW,EAAE;IAEf,OAAOA,WAAW,CAACK,UAAU,CAAC,IAAIA,UAAU;EAC9C,CAAC,MAAM;IACL,OAAOA,UAAU;EACnB;AACF","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_assert","require","_core","_helperModuleImports","_rewriteThis","_rewriteLiveReferences","_normalizeAndLoadMetadata","Lazy","_dynamicImport","_getModuleName","booleanLiteral","callExpression","cloneNode","directive","directiveLiteral","expressionStatement","identifier","isIdentifier","memberExpression","stringLiteral","valueToNode","variableDeclaration","variableDeclarator","t","exports","getDynamicImportSource","rewriteModuleStatementsAndPrepareHeader","path","exportName","strict","allowTopLevelThis","strictMode","noInterop","importInterop","lazy","getWrapperPayload","toGetWrapperPayload","wrapReference","esNamespaceOnly","filename","constantReexports","arguments","loose","enumerableModuleMeta","noIncompleteNsImportDetection","validateImportInteropOption","assert","isModule","node","sourceType","meta","normalizeModuleAndLoadMetadata","initializeReexports","rewriteThis","rewriteLiveReferences","hasStrict","directives","some","value","unshiftContainer","headers","hasExports","push","buildESModuleHeader","nameList","buildExportNameListDeclaration","exportNameListName","name","statement","buildExportInitializationStatements","ensureStatementsHoisted","statements","forEach","header","_blockHoist","wrapInterop","programPath","expr","type","hub","addHelper","helper","Error","buildNamespaceInitStatements","metadata","sourceMetadata","_wrapReference","srcNamespaceId","localName","importsNamespace","template","NAME","SOURCE","srcNamespace","wrap","buildReexportsFromMeta","reexportNamespace","EXPORTS","NAMESPACE","reexportAll","buildNamespaceReexport","loc","ReexportTemplate","constant","constantComputed","spec","_wrapReference2","namespace","stringSpecifiers","Array","from","reexports","importName","NAMESPACE_IMPORT","interop","has","astNodes","EXPORT_NAME","VERIFY_NAME_LIST","EXPORTS_LIST","exportedVars","Object","create","data","local","values","names","hasReexport","source","keys","length","scope","generateUidIdentifier","default","initStatements","kind","buildInitStatement","reexportsStatements","i","sort","a","b","results","initStatement","chunkSize","uninitializedExportNames","j","buildUndefinedNode","InitTemplate","computed","expression","define","exportNames","initExpr","reduce","acc","params","VALUE"],"sources":["../src/index.ts"],"sourcesContent":["import assert from \"assert\";\nimport { template, types as t } from \"@babel/core\";\n\nimport { isModule } from \"@babel/helper-module-imports\";\n\nimport rewriteThis from \"./rewrite-this.ts\";\nimport rewriteLiveReferences from \"./rewrite-live-references.ts\";\nimport normalizeModuleAndLoadMetadata, {\n hasExports,\n isSideEffectImport,\n validateImportInteropOption,\n} from \"./normalize-and-load-metadata.ts\";\nimport type {\n ImportInterop,\n InteropType,\n ModuleMetadata,\n SourceModuleMetadata,\n} from \"./normalize-and-load-metadata.ts\";\nimport * as Lazy from \"./lazy-modules.ts\";\nimport type { NodePath } from \"@babel/traverse\";\n\nconst {\n booleanLiteral,\n callExpression,\n cloneNode,\n directive,\n directiveLiteral,\n expressionStatement,\n identifier,\n isIdentifier,\n memberExpression,\n stringLiteral,\n valueToNode,\n variableDeclaration,\n variableDeclarator,\n} = t;\n\nexport { buildDynamicImport } from \"./dynamic-import.ts\";\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM && !IS_STANDALONE) {\n // eslint-disable-next-line no-restricted-globals\n exports.getDynamicImportSource =\n // eslint-disable-next-line no-restricted-globals, import/extensions\n require(\"./dynamic-import\").getDynamicImportSource;\n}\n\nexport { default as getModuleName } from \"./get-module-name.ts\";\nexport type { PluginOptions } from \"./get-module-name.ts\";\n\nexport { hasExports, isSideEffectImport, isModule, rewriteThis };\n\nexport interface RewriteModuleStatementsAndPrepareHeaderOptions {\n exportName?: string;\n strict: boolean;\n allowTopLevelThis?: boolean;\n strictMode: boolean;\n loose?: boolean;\n importInterop?: ImportInterop;\n noInterop?: boolean;\n lazy?: Lazy.Lazy;\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n wrapReference?: (ref: t.Expression, payload: unknown) => t.Expression | null;\n esNamespaceOnly?: boolean;\n filename: string | undefined;\n constantReexports?: boolean | void;\n enumerableModuleMeta?: boolean | void;\n noIncompleteNsImportDetection?: boolean | void;\n}\n\n/**\n * Perform all of the generic ES6 module rewriting needed to handle initial\n * module processing. This function will rewrite the majority of the given\n * program to reference the modules described by the returned metadata,\n * and returns a list of statements for use when initializing the module.\n */\nexport function rewriteModuleStatementsAndPrepareHeader(\n path: NodePath<t.Program>,\n {\n exportName,\n strict,\n allowTopLevelThis,\n strictMode,\n noInterop,\n importInterop = noInterop ? \"none\" : \"babel\",\n // TODO(Babel 8): After that `lazy` implementation is moved to the CJS\n // transform, remove this parameter.\n lazy,\n getWrapperPayload = Lazy.toGetWrapperPayload(lazy ?? false),\n wrapReference = Lazy.wrapReference,\n esNamespaceOnly,\n filename,\n\n constantReexports = process.env.BABEL_8_BREAKING\n ? undefined\n : arguments[1].loose,\n enumerableModuleMeta = process.env.BABEL_8_BREAKING\n ? undefined\n : arguments[1].loose,\n noIncompleteNsImportDetection,\n }: RewriteModuleStatementsAndPrepareHeaderOptions,\n) {\n validateImportInteropOption(importInterop);\n assert(isModule(path), \"Cannot process module statements in a script\");\n path.node.sourceType = \"script\";\n\n const meta = normalizeModuleAndLoadMetadata(path, exportName, {\n importInterop,\n initializeReexports: constantReexports,\n getWrapperPayload,\n esNamespaceOnly,\n filename,\n });\n\n if (!allowTopLevelThis) {\n rewriteThis(path);\n }\n\n rewriteLiveReferences(path, meta, wrapReference);\n\n if (strictMode !== false) {\n const hasStrict = path.node.directives.some(directive => {\n return directive.value.value === \"use strict\";\n });\n if (!hasStrict) {\n path.unshiftContainer(\n \"directives\",\n directive(directiveLiteral(\"use strict\")),\n );\n }\n }\n\n const headers = [];\n if (hasExports(meta) && !strict) {\n headers.push(buildESModuleHeader(meta, enumerableModuleMeta));\n }\n\n const nameList = buildExportNameListDeclaration(path, meta);\n\n if (nameList) {\n meta.exportNameListName = nameList.name;\n headers.push(nameList.statement);\n }\n\n // Create all of the statically known named exports.\n headers.push(\n ...buildExportInitializationStatements(\n path,\n meta,\n wrapReference,\n constantReexports,\n noIncompleteNsImportDetection,\n ),\n );\n\n return { meta, headers };\n}\n\n/**\n * Flag a set of statements as hoisted above all else so that module init\n * statements all run before user code.\n */\nexport function ensureStatementsHoisted(statements: t.Statement[]) {\n // Force all of the header fields to be at the top of the file.\n statements.forEach(header => {\n // @ts-expect-error Fixme: handle _blockHoist property\n header._blockHoist = 3;\n });\n}\n\n/**\n * Given an expression for a standard import object, like \"require('foo')\",\n * wrap it in a call to the interop helpers based on the type.\n */\nexport function wrapInterop(\n programPath: NodePath<t.Program>,\n expr: t.Expression,\n type: InteropType,\n): t.CallExpression {\n if (type === \"none\") {\n return null;\n }\n\n if (type === \"node-namespace\") {\n return callExpression(programPath.hub.addHelper(\"interopRequireWildcard\"), [\n expr,\n booleanLiteral(true),\n ]);\n } else if (type === \"node-default\") {\n return null;\n }\n\n let helper;\n if (type === \"default\") {\n helper = \"interopRequireDefault\";\n } else if (type === \"namespace\") {\n helper = \"interopRequireWildcard\";\n } else {\n throw new Error(`Unknown interop: ${type}`);\n }\n\n return callExpression(programPath.hub.addHelper(helper), [expr]);\n}\n\n/**\n * Create the runtime initialization statements for a given requested source.\n * These will initialize all of the runtime import/export logic that\n * can't be handled statically by the statements created by\n * buildExportInitializationStatements().\n */\nexport function buildNamespaceInitStatements(\n metadata: ModuleMetadata,\n sourceMetadata: SourceModuleMetadata,\n constantReexports: boolean | void = false,\n wrapReference: (\n ref: t.Identifier,\n payload: unknown,\n ) => t.Expression | null = Lazy.wrapReference,\n) {\n const statements = [];\n\n const srcNamespaceId = identifier(sourceMetadata.name);\n\n for (const localName of sourceMetadata.importsNamespace) {\n if (localName === sourceMetadata.name) continue;\n\n // Create and assign binding to namespace object\n statements.push(\n template.statement`var NAME = SOURCE;`({\n NAME: localName,\n SOURCE: cloneNode(srcNamespaceId),\n }),\n );\n }\n\n const srcNamespace =\n wrapReference(srcNamespaceId, sourceMetadata.wrap) ?? srcNamespaceId;\n\n if (constantReexports) {\n statements.push(\n ...buildReexportsFromMeta(metadata, sourceMetadata, true, wrapReference),\n );\n }\n for (const exportName of sourceMetadata.reexportNamespace) {\n // Assign export to namespace object.\n statements.push(\n (!t.isIdentifier(srcNamespace)\n ? template.statement`\n Object.defineProperty(EXPORTS, \"NAME\", {\n enumerable: true,\n get: function() {\n return NAMESPACE;\n }\n });\n `\n : template.statement`EXPORTS.NAME = NAMESPACE;`)({\n EXPORTS: metadata.exportName,\n NAME: exportName,\n NAMESPACE: cloneNode(srcNamespace),\n }),\n );\n }\n if (sourceMetadata.reexportAll) {\n const statement = buildNamespaceReexport(\n metadata,\n cloneNode(srcNamespace),\n constantReexports,\n );\n statement.loc = sourceMetadata.reexportAll.loc;\n\n // Iterate props creating getter for each prop.\n statements.push(statement);\n }\n return statements;\n}\n\nconst ReexportTemplate = {\n constant: template.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,\n constantComputed: template.statement`EXPORTS[\"EXPORT_NAME\"] = NAMESPACE_IMPORT;`,\n spec: template.statement`\n Object.defineProperty(EXPORTS, \"EXPORT_NAME\", {\n enumerable: true,\n get: function() {\n return NAMESPACE_IMPORT;\n },\n });\n `,\n};\n\nfunction buildReexportsFromMeta(\n meta: ModuleMetadata,\n metadata: SourceModuleMetadata,\n constantReexports: boolean,\n wrapReference: (ref: t.Expression, payload: unknown) => t.Expression | null,\n) {\n let namespace: t.Expression = identifier(metadata.name);\n namespace = wrapReference(namespace, metadata.wrap) ?? namespace;\n\n const { stringSpecifiers } = meta;\n return Array.from(metadata.reexports, ([exportName, importName]) => {\n let NAMESPACE_IMPORT: t.Expression = cloneNode(namespace);\n if (importName === \"default\" && metadata.interop === \"node-default\") {\n // Nothing, it's ok as-is\n } else if (stringSpecifiers.has(importName)) {\n NAMESPACE_IMPORT = memberExpression(\n NAMESPACE_IMPORT,\n stringLiteral(importName),\n true,\n );\n } else {\n NAMESPACE_IMPORT = memberExpression(\n NAMESPACE_IMPORT,\n identifier(importName),\n );\n }\n const astNodes = {\n EXPORTS: meta.exportName,\n EXPORT_NAME: exportName,\n NAMESPACE_IMPORT,\n };\n if (constantReexports || isIdentifier(NAMESPACE_IMPORT)) {\n if (stringSpecifiers.has(exportName)) {\n return ReexportTemplate.constantComputed(astNodes);\n } else {\n return ReexportTemplate.constant(astNodes);\n }\n } else {\n return ReexportTemplate.spec(astNodes);\n }\n });\n}\n\n/**\n * Build an \"__esModule\" header statement setting the property on a given object.\n */\nfunction buildESModuleHeader(\n metadata: ModuleMetadata,\n enumerableModuleMeta: boolean | void = false,\n) {\n return (\n enumerableModuleMeta\n ? template.statement`\n EXPORTS.__esModule = true;\n `\n : template.statement`\n Object.defineProperty(EXPORTS, \"__esModule\", {\n value: true,\n });\n `\n )({ EXPORTS: metadata.exportName });\n}\n\n/**\n * Create a re-export initialization loop for a specific imported namespace.\n */\nfunction buildNamespaceReexport(\n metadata: ModuleMetadata,\n namespace: t.Expression,\n constantReexports: boolean | void,\n) {\n return (\n constantReexports\n ? template.statement`\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === \"default\" || key === \"__esModule\") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n EXPORTS[key] = NAMESPACE[key];\n });\n `\n : // Also skip already assigned bindings if they are strictly equal\n // to be somewhat more spec-compliant when a file has multiple\n // namespace re-exports that would cause a binding to be exported\n // multiple times. However, multiple bindings of the same name that\n // export the same primitive value are silently skipped\n // (the spec requires an \"ambiguous bindings\" early error here).\n template.statement`\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === \"default\" || key === \"__esModule\") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n Object.defineProperty(EXPORTS, key, {\n enumerable: true,\n get: function() {\n return NAMESPACE[key];\n },\n });\n });\n `\n )({\n NAMESPACE: namespace,\n EXPORTS: metadata.exportName,\n VERIFY_NAME_LIST: metadata.exportNameListName\n ? template`\n if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;\n `({ EXPORTS_LIST: metadata.exportNameListName })\n : null,\n });\n}\n\n/**\n * Build a statement declaring a variable that contains all of the exported\n * variable names in an object so they can easily be referenced from an\n * export * from statement to check for conflicts.\n */\nfunction buildExportNameListDeclaration(\n programPath: NodePath,\n metadata: ModuleMetadata,\n) {\n const exportedVars = Object.create(null);\n for (const data of metadata.local.values()) {\n for (const name of data.names) {\n exportedVars[name] = true;\n }\n }\n\n let hasReexport = false;\n for (const data of metadata.source.values()) {\n for (const exportName of data.reexports.keys()) {\n exportedVars[exportName] = true;\n }\n for (const exportName of data.reexportNamespace) {\n exportedVars[exportName] = true;\n }\n\n hasReexport = hasReexport || !!data.reexportAll;\n }\n\n if (!hasReexport || Object.keys(exportedVars).length === 0) return null;\n\n const name = programPath.scope.generateUidIdentifier(\"exportNames\");\n\n delete exportedVars.default;\n\n return {\n name: name.name,\n statement: variableDeclaration(\"var\", [\n variableDeclarator(name, valueToNode(exportedVars)),\n ]),\n };\n}\n\n/**\n * Create a set of statements that will initialize all of the statically-known\n * export names with their expected values.\n */\nfunction buildExportInitializationStatements(\n programPath: NodePath,\n metadata: ModuleMetadata,\n wrapReference: (ref: t.Expression, payload: unknown) => t.Expression | null,\n constantReexports: boolean | void = false,\n noIncompleteNsImportDetection: boolean | void = false,\n) {\n const initStatements: Array<[string, t.Statement | null]> = [];\n\n for (const [localName, data] of metadata.local) {\n if (data.kind === \"import\") {\n // No-open since these are explicitly set with the \"reexports\" block.\n } else if (data.kind === \"hoisted\") {\n initStatements.push([\n // data.names is always of length 1 because a hoisted export\n // name must be id of a function declaration\n data.names[0],\n buildInitStatement(metadata, data.names, identifier(localName)),\n ]);\n } else if (!noIncompleteNsImportDetection) {\n for (const exportName of data.names) {\n initStatements.push([exportName, null]);\n }\n }\n }\n\n for (const data of metadata.source.values()) {\n if (!constantReexports) {\n const reexportsStatements = buildReexportsFromMeta(\n metadata,\n data,\n false,\n wrapReference,\n );\n const reexports = [...data.reexports.keys()];\n for (let i = 0; i < reexportsStatements.length; i++) {\n initStatements.push([reexports[i], reexportsStatements[i]]);\n }\n }\n if (!noIncompleteNsImportDetection) {\n for (const exportName of data.reexportNamespace) {\n initStatements.push([exportName, null]);\n }\n }\n }\n\n // https://tc39.es/ecma262/#sec-module-namespace-exotic-objects\n // The [Exports] list is ordered as if an Array of those String values\n // had been sorted using %Array.prototype.sort% using undefined as comparefn\n initStatements.sort(([a], [b]) => {\n if (a < b) return -1;\n if (b < a) return 1;\n return 0;\n });\n\n const results = [];\n if (noIncompleteNsImportDetection) {\n for (const [, initStatement] of initStatements) {\n results.push(initStatement);\n }\n } else {\n // We generate init statements (`exports.a = exports.b = ... = void 0`)\n // for every 100 exported names to avoid deeply-nested AST structures.\n const chunkSize = 100;\n for (let i = 0; i < initStatements.length; i += chunkSize) {\n let uninitializedExportNames = [];\n for (let j = 0; j < chunkSize && i + j < initStatements.length; j++) {\n const [exportName, initStatement] = initStatements[i + j];\n if (initStatement !== null) {\n if (uninitializedExportNames.length > 0) {\n results.push(\n buildInitStatement(\n metadata,\n uninitializedExportNames,\n programPath.scope.buildUndefinedNode(),\n ),\n );\n // reset after uninitializedExportNames has been transformed\n // to init statements\n uninitializedExportNames = [];\n }\n results.push(initStatement);\n } else {\n uninitializedExportNames.push(exportName);\n }\n }\n if (uninitializedExportNames.length > 0) {\n results.push(\n buildInitStatement(\n metadata,\n uninitializedExportNames,\n programPath.scope.buildUndefinedNode(),\n ),\n );\n }\n }\n }\n\n return results;\n}\n\n/**\n * Given a set of export names, create a set of nested assignments to\n * initialize them all to a given expression.\n */\nconst InitTemplate = {\n computed: template.expression`EXPORTS[\"NAME\"] = VALUE`,\n default: template.expression`EXPORTS.NAME = VALUE`,\n define: template.expression`Object.defineProperty(EXPORTS, \"NAME\", { enumerable:true, value: void 0, writable: true })[\"NAME\"] = VALUE`,\n};\n\nfunction buildInitStatement(\n metadata: ModuleMetadata,\n exportNames: string[],\n initExpr: t.Expression,\n) {\n const { stringSpecifiers, exportName: EXPORTS } = metadata;\n return expressionStatement(\n exportNames.reduce((acc, exportName) => {\n const params = {\n EXPORTS,\n NAME: exportName,\n VALUE: acc,\n };\n\n if (exportName === \"__proto__\") {\n return InitTemplate.define(params);\n }\n\n if (stringSpecifiers.has(exportName)) {\n return InitTemplate.computed(params);\n }\n\n return InitTemplate.default(params);\n }, initExpr),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,yBAAA,GAAAL,OAAA;AAWA,IAAAM,IAAA,GAAAN,OAAA;AAmBA,IAAAO,cAAA,GAAAP,OAAA;AASA,IAAAQ,cAAA,GAAAR,OAAA;AAzBA,MAAM;EACJS,cAAc;EACdC,cAAc;EACdC,SAAS;EACTC,SAAS;EACTC,gBAAgB;EAChBC,mBAAmB;EACnBC,UAAU;EACVC,YAAY;EACZC,gBAAgB;EAChBC,aAAa;EACbC,WAAW;EACXC,mBAAmB;EACnBC;AACF,CAAC,GAAGC,WAAC;AAI4D;EAE/DC,OAAO,CAACC,sBAAsB,GAE5BxB,OAAO,CAAC,kBAAkB,CAAC,CAACwB,sBAAsB;AACtD;AAmCO,SAASC,uCAAuCA,CACrDC,IAAyB,EACzB;EACEC,UAAU;EACVC,MAAM;EACNC,iBAAiB;EACjBC,UAAU;EACVC,SAAS;EACTC,aAAa,GAAGD,SAAS,GAAG,MAAM,GAAG,OAAO;EAG5CE,IAAI;EACJC,iBAAiB,GAAG5B,IAAI,CAAC6B,mBAAmB,CAACF,IAAI,WAAJA,IAAI,GAAI,KAAK,CAAC;EAC3DG,aAAa,GAAG9B,IAAI,CAAC8B,aAAa;EAClCC,eAAe;EACfC,QAAQ;EAERC,iBAA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,YAAY,CAACC,QAAQ,CAACO,MAAM,CAAC;IACtC;IAEA,OAAOR,YAAY,CAACf,OAAO,CAACuB,MAAM,CAAC;EACrC,CAAC,EAAEH,QAAQ,CACb,CAAC;AACH","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_assert","require","_core","_helperModuleImports","_rewriteThis","_rewriteLiveReferences","_normalizeAndLoadMetadata","Lazy","_dynamicImport","_getModuleName","booleanLiteral","callExpression","cloneNode","directive","directiveLiteral","expressionStatement","identifier","isIdentifier","memberExpression","stringLiteral","valueToNode","variableDeclaration","variableDeclarator","t","exports","getDynamicImportSource","rewriteModuleStatementsAndPrepareHeader","path","exportName","strict","allowTopLevelThis","strictMode","noInterop","importInterop","lazy","getWrapperPayload","toGetWrapperPayload","wrapReference","esNamespaceOnly","filename","constantReexports","arguments","loose","enumerableModuleMeta","noIncompleteNsImportDetection","validateImportInteropOption","assert","isModule","node","sourceType","meta","normalizeModuleAndLoadMetadata","initializeReexports","rewriteThis","rewriteLiveReferences","hasStrict","directives","some","value","unshiftContainer","headers","hasExports","push","buildESModuleHeader","nameList","buildExportNameListDeclaration","exportNameListName","name","statement","buildExportInitializationStatements","ensureStatementsHoisted","statements","forEach","header","_blockHoist","wrapInterop","programPath","expr","type","hub","addHelper","helper","Error","buildNamespaceInitStatements","metadata","sourceMetadata","_wrapReference","srcNamespaceId","localName","importsNamespace","template","NAME","SOURCE","srcNamespace","wrap","buildReexportsFromMeta","reexportNamespace","EXPORTS","NAMESPACE","reexportAll","buildNamespaceReexport","loc","ReexportTemplate","constant","constantComputed","spec","_wrapReference2","namespace","stringSpecifiers","Array","from","reexports","importName","NAMESPACE_IMPORT","interop","has","astNodes","EXPORT_NAME","VERIFY_NAME_LIST","EXPORTS_LIST","exportedVars","Object","create","data","local","values","names","hasReexport","source","keys","length","scope","generateUidIdentifier","default","initStatements","kind","buildInitStatement","reexportsStatements","i","sort","a","b","results","initStatement","chunkSize","uninitializedExportNames","j","buildUndefinedNode","InitTemplate","computed","expression","define","exportNames","initExpr","reduce","acc","params","VALUE"],"sources":["../src/index.ts"],"sourcesContent":["import assert from \"assert\";\nimport { template, types as t } from \"@babel/core\";\n\nimport { isModule } from \"@babel/helper-module-imports\";\n\nimport rewriteThis from \"./rewrite-this.ts\";\nimport rewriteLiveReferences from \"./rewrite-live-references.ts\";\nimport normalizeModuleAndLoadMetadata, {\n hasExports,\n isSideEffectImport,\n validateImportInteropOption,\n} from \"./normalize-and-load-metadata.ts\";\nimport type {\n ImportInterop,\n InteropType,\n ModuleMetadata,\n SourceModuleMetadata,\n} from \"./normalize-and-load-metadata.ts\";\nimport * as Lazy from \"./lazy-modules.ts\";\nimport type { NodePath } from \"@babel/core\";\n\nconst {\n booleanLiteral,\n callExpression,\n cloneNode,\n directive,\n directiveLiteral,\n expressionStatement,\n identifier,\n isIdentifier,\n memberExpression,\n stringLiteral,\n valueToNode,\n variableDeclaration,\n variableDeclarator,\n} = t;\n\nexport { buildDynamicImport } from \"./dynamic-import.ts\";\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM && !IS_STANDALONE) {\n // eslint-disable-next-line no-restricted-globals\n exports.getDynamicImportSource =\n // eslint-disable-next-line no-restricted-globals, import/extensions\n require(\"./dynamic-import\").getDynamicImportSource;\n}\n\nexport { default as getModuleName } from \"./get-module-name.ts\";\nexport type { PluginOptions } from \"./get-module-name.ts\";\n\nexport { hasExports, isSideEffectImport, isModule, rewriteThis };\n\nexport interface RewriteModuleStatementsAndPrepareHeaderOptions {\n exportName?: string;\n strict: boolean;\n allowTopLevelThis?: boolean;\n strictMode: boolean;\n loose?: boolean;\n importInterop?: ImportInterop;\n noInterop?: boolean;\n lazy?: Lazy.Lazy;\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n wrapReference?: (ref: t.Expression, payload: unknown) => t.Expression | null;\n esNamespaceOnly?: boolean;\n filename: string | undefined;\n constantReexports?: boolean | void;\n enumerableModuleMeta?: boolean | void;\n noIncompleteNsImportDetection?: boolean | void;\n}\n\n/**\n * Perform all of the generic ES6 module rewriting needed to handle initial\n * module processing. This function will rewrite the majority of the given\n * program to reference the modules described by the returned metadata,\n * and returns a list of statements for use when initializing the module.\n */\nexport function rewriteModuleStatementsAndPrepareHeader(\n path: NodePath<t.Program>,\n {\n exportName,\n strict,\n allowTopLevelThis,\n strictMode,\n noInterop,\n importInterop = noInterop ? \"none\" : \"babel\",\n // TODO(Babel 8): After that `lazy` implementation is moved to the CJS\n // transform, remove this parameter.\n lazy,\n getWrapperPayload = Lazy.toGetWrapperPayload(lazy ?? false),\n wrapReference = Lazy.wrapReference,\n esNamespaceOnly,\n filename,\n\n constantReexports = process.env.BABEL_8_BREAKING\n ? undefined\n : arguments[1].loose,\n enumerableModuleMeta = process.env.BABEL_8_BREAKING\n ? undefined\n : arguments[1].loose,\n noIncompleteNsImportDetection,\n }: RewriteModuleStatementsAndPrepareHeaderOptions,\n) {\n validateImportInteropOption(importInterop);\n assert(isModule(path), \"Cannot process module statements in a script\");\n path.node.sourceType = \"script\";\n\n const meta = normalizeModuleAndLoadMetadata(path, exportName, {\n importInterop,\n initializeReexports: constantReexports,\n getWrapperPayload,\n esNamespaceOnly,\n filename,\n });\n\n if (!allowTopLevelThis) {\n rewriteThis(path);\n }\n\n rewriteLiveReferences(path, meta, wrapReference);\n\n if (strictMode !== false) {\n const hasStrict = path.node.directives.some(directive => {\n return directive.value.value === \"use strict\";\n });\n if (!hasStrict) {\n path.unshiftContainer(\n \"directives\",\n directive(directiveLiteral(\"use strict\")),\n );\n }\n }\n\n const headers = [];\n if (hasExports(meta) && !strict) {\n headers.push(buildESModuleHeader(meta, enumerableModuleMeta));\n }\n\n const nameList = buildExportNameListDeclaration(path, meta);\n\n if (nameList) {\n meta.exportNameListName = nameList.name;\n headers.push(nameList.statement);\n }\n\n // Create all of the statically known named exports.\n headers.push(\n ...buildExportInitializationStatements(\n path,\n meta,\n wrapReference,\n constantReexports,\n noIncompleteNsImportDetection,\n ),\n );\n\n return { meta, headers };\n}\n\n/**\n * Flag a set of statements as hoisted above all else so that module init\n * statements all run before user code.\n */\nexport function ensureStatementsHoisted(statements: t.Statement[]) {\n // Force all of the header fields to be at the top of the file.\n statements.forEach(header => {\n // @ts-expect-error Fixme: handle _blockHoist property\n header._blockHoist = 3;\n });\n}\n\n/**\n * Given an expression for a standard import object, like \"require('foo')\",\n * wrap it in a call to the interop helpers based on the type.\n */\nexport function wrapInterop(\n programPath: NodePath<t.Program>,\n expr: t.Expression,\n type: InteropType,\n): t.CallExpression {\n if (type === \"none\") {\n return null;\n }\n\n if (type === \"node-namespace\") {\n return callExpression(programPath.hub.addHelper(\"interopRequireWildcard\"), [\n expr,\n booleanLiteral(true),\n ]);\n } else if (type === \"node-default\") {\n return null;\n }\n\n let helper;\n if (type === \"default\") {\n helper = \"interopRequireDefault\";\n } else if (type === \"namespace\") {\n helper = \"interopRequireWildcard\";\n } else {\n throw new Error(`Unknown interop: ${type}`);\n }\n\n return callExpression(programPath.hub.addHelper(helper), [expr]);\n}\n\n/**\n * Create the runtime initialization statements for a given requested source.\n * These will initialize all of the runtime import/export logic that\n * can't be handled statically by the statements created by\n * buildExportInitializationStatements().\n */\nexport function buildNamespaceInitStatements(\n metadata: ModuleMetadata,\n sourceMetadata: SourceModuleMetadata,\n constantReexports: boolean | void = false,\n wrapReference: (\n ref: t.Identifier,\n payload: unknown,\n ) => t.Expression | null = Lazy.wrapReference,\n) {\n const statements = [];\n\n const srcNamespaceId = identifier(sourceMetadata.name);\n\n for (const localName of sourceMetadata.importsNamespace) {\n if (localName === sourceMetadata.name) continue;\n\n // Create and assign binding to namespace object\n statements.push(\n template.statement`var NAME = SOURCE;`({\n NAME: localName,\n SOURCE: cloneNode(srcNamespaceId),\n }),\n );\n }\n\n const srcNamespace =\n wrapReference(srcNamespaceId, sourceMetadata.wrap) ?? srcNamespaceId;\n\n if (constantReexports) {\n statements.push(\n ...buildReexportsFromMeta(metadata, sourceMetadata, true, wrapReference),\n );\n }\n for (const exportName of sourceMetadata.reexportNamespace) {\n // Assign export to namespace object.\n statements.push(\n (!t.isIdentifier(srcNamespace)\n ? template.statement`\n Object.defineProperty(EXPORTS, \"NAME\", {\n enumerable: true,\n get: function() {\n return NAMESPACE;\n }\n });\n `\n : template.statement`EXPORTS.NAME = NAMESPACE;`)({\n EXPORTS: metadata.exportName,\n NAME: exportName,\n NAMESPACE: cloneNode(srcNamespace),\n }),\n );\n }\n if (sourceMetadata.reexportAll) {\n const statement = buildNamespaceReexport(\n metadata,\n cloneNode(srcNamespace),\n constantReexports,\n );\n statement.loc = sourceMetadata.reexportAll.loc;\n\n // Iterate props creating getter for each prop.\n statements.push(statement);\n }\n return statements;\n}\n\nconst ReexportTemplate = {\n constant: template.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,\n constantComputed: template.statement`EXPORTS[\"EXPORT_NAME\"] = NAMESPACE_IMPORT;`,\n spec: template.statement`\n Object.defineProperty(EXPORTS, \"EXPORT_NAME\", {\n enumerable: true,\n get: function() {\n return NAMESPACE_IMPORT;\n },\n });\n `,\n};\n\nfunction buildReexportsFromMeta(\n meta: ModuleMetadata,\n metadata: SourceModuleMetadata,\n constantReexports: boolean,\n wrapReference: (ref: t.Expression, payload: unknown) => t.Expression | null,\n) {\n let namespace: t.Expression = identifier(metadata.name);\n namespace = wrapReference(namespace, metadata.wrap) ?? namespace;\n\n const { stringSpecifiers } = meta;\n return Array.from(metadata.reexports, ([exportName, importName]) => {\n let NAMESPACE_IMPORT: t.Expression = cloneNode(namespace);\n if (importName === \"default\" && metadata.interop === \"node-default\") {\n // Nothing, it's ok as-is\n } else if (stringSpecifiers.has(importName)) {\n NAMESPACE_IMPORT = memberExpression(\n NAMESPACE_IMPORT,\n stringLiteral(importName),\n true,\n );\n } else {\n NAMESPACE_IMPORT = memberExpression(\n NAMESPACE_IMPORT,\n identifier(importName),\n );\n }\n const astNodes = {\n EXPORTS: meta.exportName,\n EXPORT_NAME: exportName,\n NAMESPACE_IMPORT,\n };\n if (constantReexports || isIdentifier(NAMESPACE_IMPORT)) {\n if (stringSpecifiers.has(exportName)) {\n return ReexportTemplate.constantComputed(astNodes);\n } else {\n return ReexportTemplate.constant(astNodes);\n }\n } else {\n return ReexportTemplate.spec(astNodes);\n }\n });\n}\n\n/**\n * Build an \"__esModule\" header statement setting the property on a given object.\n */\nfunction buildESModuleHeader(\n metadata: ModuleMetadata,\n enumerableModuleMeta: boolean | void = false,\n) {\n return (\n enumerableModuleMeta\n ? template.statement`\n EXPORTS.__esModule = true;\n `\n : template.statement`\n Object.defineProperty(EXPORTS, \"__esModule\", {\n value: true,\n });\n `\n )({ EXPORTS: metadata.exportName });\n}\n\n/**\n * Create a re-export initialization loop for a specific imported namespace.\n */\nfunction buildNamespaceReexport(\n metadata: ModuleMetadata,\n namespace: t.Expression,\n constantReexports: boolean | void,\n) {\n return (\n constantReexports\n ? template.statement`\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === \"default\" || key === \"__esModule\") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n EXPORTS[key] = NAMESPACE[key];\n });\n `\n : // Also skip already assigned bindings if they are strictly equal\n // to be somewhat more spec-compliant when a file has multiple\n // namespace re-exports that would cause a binding to be exported\n // multiple times. However, multiple bindings of the same name that\n // export the same primitive value are silently skipped\n // (the spec requires an \"ambiguous bindings\" early error here).\n template.statement`\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === \"default\" || key === \"__esModule\") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n Object.defineProperty(EXPORTS, key, {\n enumerable: true,\n get: function() {\n return NAMESPACE[key];\n },\n });\n });\n `\n )({\n NAMESPACE: namespace,\n EXPORTS: metadata.exportName,\n VERIFY_NAME_LIST: metadata.exportNameListName\n ? template`\n if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;\n `({ EXPORTS_LIST: metadata.exportNameListName })\n : null,\n });\n}\n\n/**\n * Build a statement declaring a variable that contains all of the exported\n * variable names in an object so they can easily be referenced from an\n * export * from statement to check for conflicts.\n */\nfunction buildExportNameListDeclaration(\n programPath: NodePath,\n metadata: ModuleMetadata,\n) {\n const exportedVars = Object.create(null);\n for (const data of metadata.local.values()) {\n for (const name of data.names) {\n exportedVars[name] = true;\n }\n }\n\n let hasReexport = false;\n for (const data of metadata.source.values()) {\n for (const exportName of data.reexports.keys()) {\n exportedVars[exportName] = true;\n }\n for (const exportName of data.reexportNamespace) {\n exportedVars[exportName] = true;\n }\n\n hasReexport = hasReexport || !!data.reexportAll;\n }\n\n if (!hasReexport || Object.keys(exportedVars).length === 0) return null;\n\n const name = programPath.scope.generateUidIdentifier(\"exportNames\");\n\n delete exportedVars.default;\n\n return {\n name: name.name,\n statement: variableDeclaration(\"var\", [\n variableDeclarator(name, valueToNode(exportedVars)),\n ]),\n };\n}\n\n/**\n * Create a set of statements that will initialize all of the statically-known\n * export names with their expected values.\n */\nfunction buildExportInitializationStatements(\n programPath: NodePath,\n metadata: ModuleMetadata,\n wrapReference: (ref: t.Expression, payload: unknown) => t.Expression | null,\n constantReexports: boolean | void = false,\n noIncompleteNsImportDetection: boolean | void = false,\n) {\n const initStatements: Array<[string, t.Statement | null]> = [];\n\n for (const [localName, data] of metadata.local) {\n if (data.kind === \"import\") {\n // No-open since these are explicitly set with the \"reexports\" block.\n } else if (data.kind === \"hoisted\") {\n initStatements.push([\n // data.names is always of length 1 because a hoisted export\n // name must be id of a function declaration\n data.names[0],\n buildInitStatement(metadata, data.names, identifier(localName)),\n ]);\n } else if (!noIncompleteNsImportDetection) {\n for (const exportName of data.names) {\n initStatements.push([exportName, null]);\n }\n }\n }\n\n for (const data of metadata.source.values()) {\n if (!constantReexports) {\n const reexportsStatements = buildReexportsFromMeta(\n metadata,\n data,\n false,\n wrapReference,\n );\n const reexports = [...data.reexports.keys()];\n for (let i = 0; i < reexportsStatements.length; i++) {\n initStatements.push([reexports[i], reexportsStatements[i]]);\n }\n }\n if (!noIncompleteNsImportDetection) {\n for (const exportName of data.reexportNamespace) {\n initStatements.push([exportName, null]);\n }\n }\n }\n\n // https://tc39.es/ecma262/#sec-module-namespace-exotic-objects\n // The [Exports] list is ordered as if an Array of those String values\n // had been sorted using %Array.prototype.sort% using undefined as comparefn\n initStatements.sort(([a], [b]) => {\n if (a < b) return -1;\n if (b < a) return 1;\n return 0;\n });\n\n const results = [];\n if (noIncompleteNsImportDetection) {\n for (const [, initStatement] of initStatements) {\n results.push(initStatement);\n }\n } else {\n // We generate init statements (`exports.a = exports.b = ... = void 0`)\n // for every 100 exported names to avoid deeply-nested AST structures.\n const chunkSize = 100;\n for (let i = 0; i < initStatements.length; i += chunkSize) {\n let uninitializedExportNames = [];\n for (let j = 0; j < chunkSize && i + j < initStatements.length; j++) {\n const [exportName, initStatement] = initStatements[i + j];\n if (initStatement !== null) {\n if (uninitializedExportNames.length > 0) {\n results.push(\n buildInitStatement(\n metadata,\n uninitializedExportNames,\n programPath.scope.buildUndefinedNode(),\n ),\n );\n // reset after uninitializedExportNames has been transformed\n // to init statements\n uninitializedExportNames = [];\n }\n results.push(initStatement);\n } else {\n uninitializedExportNames.push(exportName);\n }\n }\n if (uninitializedExportNames.length > 0) {\n results.push(\n buildInitStatement(\n metadata,\n uninitializedExportNames,\n programPath.scope.buildUndefinedNode(),\n ),\n );\n }\n }\n }\n\n return results;\n}\n\n/**\n * Given a set of export names, create a set of nested assignments to\n * initialize them all to a given expression.\n */\nconst InitTemplate = {\n computed: template.expression`EXPORTS[\"NAME\"] = VALUE`,\n default: template.expression`EXPORTS.NAME = VALUE`,\n define: template.expression`Object.defineProperty(EXPORTS, \"NAME\", { enumerable:true, value: void 0, writable: true })[\"NAME\"] = VALUE`,\n};\n\nfunction buildInitStatement(\n metadata: ModuleMetadata,\n exportNames: string[],\n initExpr: t.Expression,\n) {\n const { stringSpecifiers, exportName: EXPORTS } = metadata;\n return expressionStatement(\n exportNames.reduce((acc, exportName) => {\n const params = {\n EXPORTS,\n NAME: exportName,\n VALUE: acc,\n };\n\n if (exportName === \"__proto__\") {\n return InitTemplate.define(params);\n }\n\n if (stringSpecifiers.has(exportName)) {\n return InitTemplate.computed(params);\n }\n\n return InitTemplate.default(params);\n }, initExpr),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,yBAAA,GAAAL,OAAA;AAWA,IAAAM,IAAA,GAAAN,OAAA;AAmBA,IAAAO,cAAA,GAAAP,OAAA;AASA,IAAAQ,cAAA,GAAAR,OAAA;AAzBA,MAAM;EACJS,cAAc;EACdC,cAAc;EACdC,SAAS;EACTC,SAAS;EACTC,gBAAgB;EAChBC,mBAAmB;EACnBC,UAAU;EACVC,YAAY;EACZC,gBAAgB;EAChBC,aAAa;EACbC,WAAW;EACXC,mBAAmB;EACnBC;AACF,CAAC,GAAGC,WAAC;AAI4D;EAE/DC,OAAO,CAACC,sBAAsB,GAE5BxB,OAAO,CAAC,kBAAkB,CAAC,CAACwB,sBAAsB;AACtD;AAmCO,SAASC,uCAAuCA,CACrDC,IAAyB,EACzB;EACEC,UAAU;EACVC,MAAM;EACNC,iBAAiB;EACjBC,UAAU;EACVC,SAAS;EACTC,aAAa,GAAGD,SAAS,GAAG,MAAM,GAAG,OAAO;EAG5CE,IAAI;EACJC,iBAAiB,GAAG5B,IAAI,CAAC6B,mBAAmB,CAACF,IAAI,WAAJA,IAAI,GAAI,KAAK,CAAC;EAC3DG,aAAa,GAAG9B,IAAI,CAAC8B,aAAa;EAClCC,eAAe;EACfC,QAAQ;EAERC,iBAAiB,GAEbC,SAAS,CAAC,CAAC,C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M,CAAC;IACtC;IAEA,OAAOR,YAAY,CAACf,OAAO,CAACuB,MAAM,CAAC;EACrC,CAAC,EAAEH,QAAQ,CACb,CAAC;AACH","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_path","require","_helperValidatorIdentifier","_helperSplitExportDeclaration","hasExports","metadata","isSideEffectImport","source","imports","size","importsNamespace","reexports","reexportNamespace","reexportAll","validateImportInteropOption","importInterop","Error","resolveImportInterop","filename","normalizeModuleAndLoadMetadata","programPath","exportName","initializeReexports","getWrapperPayload","esNamespaceOnly","scope","generateUidIdentifier","name","stringSpecifiers","Set","nameAnonymousExports","local","sources","getModuleMetadata","removeImportExportDeclarations","nameOfnamespace","resolvedInterop","interop","exportNameListName","getExportSpecifierName","path","isIdentifier","node","isStringLiteral","stringValue","value","isIdentifierName","add","type","assertExportSpecifier","isExportSpecifier","isExportNamespaceSpecifier","buildCodeFrameError","localData","getLocalExportMetadata","importNodes","Map","sourceData","getData","sourceNode","data","get","basename","extname","loc","wrap","lazy","referenced","set","push","forEach","child","isImportDeclaration","spec","isImportDefaultSpecifier","localName","reexport","delete","names","isImportNamespaceSpecifier","isImportSpecifier","importName","isExportAllDeclaration","isExportNamedDeclaration","isExportDefaultDeclaration","values","needsDefault","needsNamed","bindingKindLookup","kind","declaration","isFunctionDeclaration","isClassDeclaration","isVariableDeclaration","Object","keys","getOuterBindingIdentifiers","localMetadata","getLocalMetadata","idPath","undefined","ids","getOuterBindingIdentifierPaths","exported","splitExportDeclaration","remove","_blockHoist","replaceWith"],"sources":["../src/normalize-and-load-metadata.ts"],"sourcesContent":["import { basename, extname } from \"path\";\nimport type * as t from \"@babel/types\";\n\nimport { isIdentifierName } from \"@babel/helper-validator-identifier\";\nimport splitExportDeclaration from \"@babel/helper-split-export-declaration\";\nimport type { NodePath } from \"@babel/traverse\";\n\nexport interface ModuleMetadata {\n exportName: string;\n // The name of the variable that will reference an object containing export names.\n exportNameListName: null | string;\n hasExports: boolean;\n // Lookup from local binding to export information.\n local: Map<string, LocalExportMetadata>;\n // Lookup of source file to source file metadata.\n source: Map<string, SourceModuleMetadata>;\n // List of names that should only be printed as string literals.\n // i.e. `import { \"any unicode\" as foo } from \"some-module\"`\n // `stringSpecifiers` is Set(1) [\"any unicode\"]\n // In most cases `stringSpecifiers` is an empty Set\n stringSpecifiers: Set<string>;\n}\n\nexport type InteropType =\n | \"default\" // Babel interop for default-only imports\n | \"namespace\" // Babel interop for namespace or default+named imports\n | \"node-default\" // Node.js interop for default-only imports\n | \"node-namespace\" // Node.js interop for namespace or default+named imports\n | \"none\"; // No interop, or named-only imports\n\nexport type ImportInterop =\n | \"none\"\n | \"babel\"\n | \"node\"\n | ((source: string, filename?: string) => \"none\" | \"babel\" | \"node\");\n\nexport interface SourceModuleMetadata {\n // A unique variable name to use for this namespace object. Centralized for simplicity.\n name: string;\n loc: t.SourceLocation | undefined | null;\n interop: InteropType;\n // Local binding to reference from this source namespace. Key: Local name, value: Import name\n imports: Map<string, string>;\n // Local names that reference namespace object.\n importsNamespace: Set<string>;\n // Reexports to create for namespace. Key: Export name, value: Import name\n reexports: Map<string, string>;\n // List of names to re-export namespace as.\n reexportNamespace: Set<string>;\n // Tracks if the source should be re-exported.\n reexportAll: null | {\n loc: t.SourceLocation | undefined | null;\n };\n wrap?: unknown;\n referenced: boolean;\n}\n\nexport interface LocalExportMetadata {\n names: Array<string>; // names of exports,\n kind: \"import\" | \"hoisted\" | \"block\" | \"var\";\n}\n\n/**\n * Check if the module has any exports that need handling.\n */\nexport function hasExports(metadata: ModuleMetadata) {\n return metadata.hasExports;\n}\n\n/**\n * Check if a given source is an anonymous import, e.g. \"import 'foo';\"\n */\nexport function isSideEffectImport(source: SourceModuleMetadata) {\n return (\n source.imports.size === 0 &&\n source.importsNamespace.size === 0 &&\n source.reexports.size === 0 &&\n source.reexportNamespace.size === 0 &&\n !source.reexportAll\n );\n}\n\nexport function validateImportInteropOption(\n importInterop: any,\n): importInterop is ImportInterop {\n if (\n typeof importInterop !== \"function\" &&\n importInterop !== \"none\" &&\n importInterop !== \"babel\" &&\n importInterop !== \"node\"\n ) {\n throw new Error(\n `.importInterop must be one of \"none\", \"babel\", \"node\", or a function returning one of those values (received ${importInterop}).`,\n );\n }\n return importInterop;\n}\n\nfunction resolveImportInterop(\n importInterop: ImportInterop,\n source: string,\n filename: string | undefined,\n) {\n if (typeof importInterop === \"function\") {\n return validateImportInteropOption(importInterop(source, filename));\n }\n return importInterop;\n}\n\n/**\n * Remove all imports and exports from the file, and return all metadata\n * needed to reconstruct the module's behavior.\n */\nexport default function normalizeModuleAndLoadMetadata(\n programPath: NodePath<t.Program>,\n exportName: string,\n {\n importInterop,\n initializeReexports = false,\n getWrapperPayload,\n esNamespaceOnly = false,\n filename,\n }: {\n importInterop: ImportInterop;\n initializeReexports: boolean | void;\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n esNamespaceOnly: boolean;\n filename: string;\n },\n): ModuleMetadata {\n if (!exportName) {\n exportName = programPath.scope.generateUidIdentifier(\"exports\").name;\n }\n const stringSpecifiers = new Set<string>();\n\n nameAnonymousExports(programPath);\n\n const { local, sources, hasExports } = getModuleMetadata(\n programPath,\n { initializeReexports, getWrapperPayload },\n stringSpecifiers,\n );\n\n removeImportExportDeclarations(programPath);\n\n // Reuse the imported namespace name if there is one.\n for (const [source, metadata] of sources) {\n const { importsNamespace, imports } = metadata;\n // If there is at least one namespace import and other imports, it may collipse with local ident, can be seen in issue 15879.\n if (importsNamespace.size > 0 && imports.size === 0) {\n const [nameOfnamespace] = importsNamespace;\n metadata.name = nameOfnamespace;\n }\n\n const resolvedInterop = resolveImportInterop(\n importInterop,\n source,\n filename,\n );\n\n if (resolvedInterop === \"none\") {\n metadata.interop = \"none\";\n } else if (resolvedInterop === \"node\" && metadata.interop === \"namespace\") {\n metadata.interop = \"node-namespace\";\n } else if (resolvedInterop === \"node\" && metadata.interop === \"default\") {\n metadata.interop = \"node-default\";\n } else if (esNamespaceOnly && metadata.interop === \"namespace\") {\n // Both the default and namespace interops pass through __esModule\n // objects, but the namespace interop is used to enable Babel's\n // destructuring-like interop behavior for normal CommonJS.\n // Since some tooling has started to remove that behavior, we expose\n // it as the `esNamespace` option.\n metadata.interop = \"default\";\n }\n }\n\n return {\n exportName,\n exportNameListName: null,\n hasExports,\n local,\n source: sources,\n stringSpecifiers,\n };\n}\n\nfunction getExportSpecifierName(\n path: NodePath,\n stringSpecifiers: Set<string>,\n): string {\n if (path.isIdentifier()) {\n return path.node.name;\n } else if (path.isStringLiteral()) {\n const stringValue = path.node.value;\n // add specifier value to `stringSpecifiers` only when it can not be converted to an identifier name\n // i.e In `import { \"foo\" as bar }`\n // we do not consider `\"foo\"` to be a `stringSpecifier` because we can treat it as\n // `import { foo as bar }`\n // This helps minimize the size of `stringSpecifiers` and reduce overhead of checking valid identifier names\n // when building transpiled code from metadata\n if (!isIdentifierName(stringValue)) {\n stringSpecifiers.add(stringValue);\n }\n return stringValue;\n } else {\n throw new Error(\n `Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`,\n );\n }\n}\n\nfunction assertExportSpecifier(\n path: NodePath,\n): asserts path is NodePath<t.ExportSpecifier> {\n if (path.isExportSpecifier()) {\n return;\n } else if (path.isExportNamespaceSpecifier()) {\n throw path.buildCodeFrameError(\n \"Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`.\",\n );\n } else {\n throw path.buildCodeFrameError(\"Unexpected export specifier type\");\n }\n}\n\n/**\n * Get metadata about the imports and exports present in this module.\n */\nfunction getModuleMetadata(\n programPath: NodePath<t.Program>,\n {\n getWrapperPayload,\n initializeReexports,\n }: {\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n initializeReexports: boolean | void;\n },\n stringSpecifiers: Set<string>,\n) {\n const localData = getLocalExportMetadata(\n programPath,\n initializeReexports,\n stringSpecifiers,\n );\n\n const importNodes = new Map<string, t.Node[]>();\n const sourceData = new Map<string, SourceModuleMetadata>();\n const getData = (sourceNode: t.StringLiteral, node: t.Node) => {\n const source = sourceNode.value;\n\n let data = sourceData.get(source);\n if (!data) {\n data = {\n name: programPath.scope.generateUidIdentifier(\n basename(source, extname(source)),\n ).name,\n\n interop: \"none\",\n\n loc: null,\n\n // Data about the requested sources and names.\n imports: new Map(),\n importsNamespace: new Set(),\n\n // Metadata about data that is passed directly from source to export.\n reexports: new Map(),\n reexportNamespace: new Set(),\n reexportAll: null,\n\n wrap: null,\n\n // @ts-expect-error lazy is not listed in the type.\n // This is needed for compatibility with older version of the commonjs\n // plusing.\n // TODO(Babel 8): Remove this\n get lazy() {\n return this.wrap === \"lazy\";\n },\n\n referenced: false,\n };\n sourceData.set(source, data);\n importNodes.set(source, [node]);\n } else {\n importNodes.get(source).push(node);\n }\n return data;\n };\n let hasExports = false;\n programPath.get(\"body\").forEach(child => {\n if (child.isImportDeclaration()) {\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n child.get(\"specifiers\").forEach(spec => {\n if (spec.isImportDefaultSpecifier()) {\n const localName = spec.get(\"local\").node.name;\n\n data.imports.set(localName, \"default\");\n\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexports.set(name, \"default\");\n });\n data.referenced = true;\n }\n } else if (spec.isImportNamespaceSpecifier()) {\n const localName = spec.get(\"local\").node.name;\n\n data.importsNamespace.add(localName);\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexportNamespace.add(name);\n });\n data.referenced = true;\n }\n } else if (spec.isImportSpecifier()) {\n const importName = getExportSpecifierName(\n spec.get(\"imported\"),\n stringSpecifiers,\n );\n const localName = spec.get(\"local\").node.name;\n\n data.imports.set(localName, importName);\n\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexports.set(name, importName);\n });\n data.referenced = true;\n }\n }\n });\n } else if (child.isExportAllDeclaration()) {\n hasExports = true;\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n data.reexportAll = {\n loc: child.node.loc,\n };\n data.referenced = true;\n } else if (child.isExportNamedDeclaration() && child.node.source) {\n hasExports = true;\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n child.get(\"specifiers\").forEach(spec => {\n assertExportSpecifier(spec);\n const importName = getExportSpecifierName(\n spec.get(\"local\"),\n stringSpecifiers,\n );\n const exportName = getExportSpecifierName(\n spec.get(\"exported\"),\n stringSpecifiers,\n );\n\n data.reexports.set(exportName, importName);\n data.referenced = true;\n\n if (exportName === \"__esModule\") {\n throw spec\n .get(\"exported\")\n .buildCodeFrameError('Illegal export \"__esModule\".');\n }\n });\n } else if (\n child.isExportNamedDeclaration() ||\n child.isExportDefaultDeclaration()\n ) {\n hasExports = true;\n }\n });\n\n for (const metadata of sourceData.values()) {\n let needsDefault = false;\n let needsNamed = false;\n\n if (metadata.importsNamespace.size > 0) {\n needsDefault = true;\n needsNamed = true;\n }\n\n if (metadata.reexportAll) {\n needsNamed = true;\n }\n\n for (const importName of metadata.imports.values()) {\n if (importName === \"default\") needsDefault = true;\n else needsNamed = true;\n }\n for (const importName of metadata.reexports.values()) {\n if (importName === \"default\") needsDefault = true;\n else needsNamed = true;\n }\n\n if (needsDefault && needsNamed) {\n // TODO(logan): Using the namespace interop here is unfortunate. Revisit.\n metadata.interop = \"namespace\";\n } else if (needsDefault) {\n metadata.interop = \"default\";\n }\n }\n\n if (getWrapperPayload) {\n for (const [source, metadata] of sourceData) {\n metadata.wrap = getWrapperPayload(\n source,\n metadata,\n importNodes.get(source),\n );\n }\n }\n\n return {\n hasExports,\n local: localData,\n sources: sourceData,\n };\n}\n\ntype ModuleBindingKind = \"import\" | \"hoisted\" | \"block\" | \"var\";\n/**\n * Get metadata about local variables that are exported.\n */\nfunction getLocalExportMetadata(\n programPath: NodePath<t.Program>,\n initializeReexports: boolean | void,\n stringSpecifiers: Set<string>,\n): Map<string, LocalExportMetadata> {\n const bindingKindLookup = new Map();\n\n programPath.get(\"body\").forEach((child: NodePath) => {\n let kind: ModuleBindingKind;\n if (child.isImportDeclaration()) {\n kind = \"import\";\n } else {\n if (child.isExportDefaultDeclaration()) {\n child = child.get(\"declaration\");\n }\n if (child.isExportNamedDeclaration()) {\n if (child.node.declaration) {\n child = child.get(\"declaration\");\n } else if (\n initializeReexports &&\n child.node.source &&\n child.get(\"source\").isStringLiteral()\n ) {\n child.get(\"specifiers\").forEach(spec => {\n assertExportSpecifier(spec);\n bindingKindLookup.set(spec.get(\"local\").node.name, \"block\");\n });\n return;\n }\n }\n\n if (child.isFunctionDeclaration()) {\n kind = \"hoisted\";\n } else if (child.isClassDeclaration()) {\n kind = \"block\";\n } else if (child.isVariableDeclaration({ kind: \"var\" })) {\n kind = \"var\";\n } else if (child.isVariableDeclaration()) {\n kind = \"block\";\n } else {\n return;\n }\n }\n\n Object.keys(child.getOuterBindingIdentifiers()).forEach(name => {\n bindingKindLookup.set(name, kind);\n });\n });\n\n const localMetadata = new Map();\n const getLocalMetadata = (idPath: NodePath<t.Identifier>) => {\n const localName = idPath.node.name;\n let metadata = localMetadata.get(localName);\n\n if (!metadata) {\n const kind = bindingKindLookup.get(localName);\n\n if (kind === undefined) {\n throw idPath.buildCodeFrameError(\n `Exporting local \"${localName}\", which is not declared.`,\n );\n }\n\n metadata = {\n names: [],\n kind,\n };\n localMetadata.set(localName, metadata);\n }\n return metadata;\n };\n\n programPath.get(\"body\").forEach(child => {\n if (\n child.isExportNamedDeclaration() &&\n (initializeReexports || !child.node.source)\n ) {\n if (child.node.declaration) {\n const declaration = child.get(\"declaration\");\n const ids = declaration.getOuterBindingIdentifierPaths();\n Object.keys(ids).forEach(name => {\n if (name === \"__esModule\") {\n throw declaration.buildCodeFrameError(\n 'Illegal export \"__esModule\".',\n );\n }\n getLocalMetadata(ids[name]).names.push(name);\n });\n } else {\n child.get(\"specifiers\").forEach(spec => {\n const local = spec.get(\"local\");\n const exported = spec.get(\"exported\");\n const localMetadata = getLocalMetadata(local);\n const exportName = getExportSpecifierName(exported, stringSpecifiers);\n\n if (exportName === \"__esModule\") {\n throw exported.buildCodeFrameError('Illegal export \"__esModule\".');\n }\n localMetadata.names.push(exportName);\n });\n }\n } else if (child.isExportDefaultDeclaration()) {\n const declaration = child.get(\"declaration\");\n if (\n declaration.isFunctionDeclaration() ||\n declaration.isClassDeclaration()\n ) {\n getLocalMetadata(declaration.get(\"id\")).names.push(\"default\");\n } else {\n // These should have been removed by the nameAnonymousExports() call.\n throw declaration.buildCodeFrameError(\n \"Unexpected default expression export.\",\n );\n }\n }\n });\n return localMetadata;\n}\n\n/**\n * Ensure that all exported values have local binding names.\n */\nfunction nameAnonymousExports(programPath: NodePath<t.Program>) {\n // Name anonymous exported locals.\n programPath.get(\"body\").forEach(child => {\n if (!child.isExportDefaultDeclaration()) return;\n splitExportDeclaration(child);\n });\n}\n\nfunction removeImportExportDeclarations(programPath: NodePath<t.Program>) {\n programPath.get(\"body\").forEach(child => {\n if (child.isImportDeclaration()) {\n child.remove();\n } else if (child.isExportNamedDeclaration()) {\n if (child.node.declaration) {\n // @ts-expect-error todo(flow->ts): avoid mutations\n child.node.declaration._blockHoist = child.node._blockHoist;\n child.replaceWith(child.node.declaration);\n } else {\n child.remove();\n }\n } else if (child.isExportDefaultDeclaration()) {\n // export default foo;\n const declaration = child.get(\"declaration\");\n if (\n declaration.isFunctionDeclaration() ||\n declaration.isClassDeclaration()\n ) {\n // @ts-expect-error todo(flow->ts): avoid mutations\n declaration._blockHoist = child.node._blockHoist;\n child.replaceWith(declaration);\n } else {\n // These should have been removed by the nameAnonymousExports() call.\n throw declaration.buildCodeFrameError(\n \"Unexpected default expression export.\",\n );\n }\n } else if (child.isExportAllDeclaration()) {\n child.remove();\n }\n });\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,O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B;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_path","require","_helperValidatorIdentifier","_helperSplitExportDeclaration","hasExports","metadata","isSideEffectImport","source","imports","size","importsNamespace","reexports","reexportNamespace","reexportAll","validateImportInteropOption","importInterop","Error","resolveImportInterop","filename","normalizeModuleAndLoadMetadata","programPath","exportName","initializeReexports","getWrapperPayload","esNamespaceOnly","scope","generateUidIdentifier","name","stringSpecifiers","Set","nameAnonymousExports","local","sources","getModuleMetadata","removeImportExportDeclarations","nameOfnamespace","resolvedInterop","interop","exportNameListName","getExportSpecifierName","path","isIdentifier","node","isStringLiteral","stringValue","value","isIdentifierName","add","type","assertExportSpecifier","isExportSpecifier","isExportNamespaceSpecifier","buildCodeFrameError","localData","getLocalExportMetadata","importNodes","Map","sourceData","getData","sourceNode","data","get","basename","extname","loc","wrap","lazy","referenced","set","push","forEach","child","isImportDeclaration","spec","isImportDefaultSpecifier","localName","reexport","delete","names","isImportNamespaceSpecifier","isImportSpecifier","importName","isExportAllDeclaration","isExportNamedDeclaration","isExportDefaultDeclaration","values","needsDefault","needsNamed","bindingKindLookup","kind","declaration","isFunctionDeclaration","isClassDeclaration","isVariableDeclaration","Object","keys","getOuterBindingIdentifiers","localMetadata","getLocalMetadata","idPath","undefined","ids","getOuterBindingIdentifierPaths","exported","splitExportDeclaration","remove","_blockHoist","replaceWith"],"sources":["../src/normalize-and-load-metadata.ts"],"sourcesContent":["import { basename, extname } from \"path\";\nimport type { types as t, NodePath } from \"@babel/core\";\n\nimport { isIdentifierName } from \"@babel/helper-validator-identifier\";\nimport splitExportDeclaration from \"@babel/helper-split-export-declaration\";\n\nexport interface ModuleMetadata {\n exportName: string;\n // The name of the variable that will reference an object containing export names.\n exportNameListName: null | string;\n hasExports: boolean;\n // Lookup from local binding to export information.\n local: Map<string, LocalExportMetadata>;\n // Lookup of source file to source file metadata.\n source: Map<string, SourceModuleMetadata>;\n // List of names that should only be printed as string literals.\n // i.e. `import { \"any unicode\" as foo } from \"some-module\"`\n // `stringSpecifiers` is Set(1) [\"any unicode\"]\n // In most cases `stringSpecifiers` is an empty Set\n stringSpecifiers: Set<string>;\n}\n\nexport type InteropType =\n | \"default\" // Babel interop for default-only imports\n | \"namespace\" // Babel interop for namespace or default+named imports\n | \"node-default\" // Node.js interop for default-only imports\n | \"node-namespace\" // Node.js interop for namespace or default+named imports\n | \"none\"; // No interop, or named-only imports\n\nexport type ImportInterop =\n | \"none\"\n | \"babel\"\n | \"node\"\n | ((source: string, filename?: string) => \"none\" | \"babel\" | \"node\");\n\nexport interface SourceModuleMetadata {\n // A unique variable name to use for this namespace object. Centralized for simplicity.\n name: string;\n loc: t.SourceLocation | undefined | null;\n interop: InteropType;\n // Local binding to reference from this source namespace. Key: Local name, value: Import name\n imports: Map<string, string>;\n // Local names that reference namespace object.\n importsNamespace: Set<string>;\n // Reexports to create for namespace. Key: Export name, value: Import name\n reexports: Map<string, string>;\n // List of names to re-export namespace as.\n reexportNamespace: Set<string>;\n // Tracks if the source should be re-exported.\n reexportAll: null | {\n loc: t.SourceLocation | undefined | null;\n };\n wrap?: unknown;\n referenced: boolean;\n}\n\nexport interface LocalExportMetadata {\n names: Array<string>; // names of exports,\n kind: \"import\" | \"hoisted\" | \"block\" | \"var\";\n}\n\n/**\n * Check if the module has any exports that need handling.\n */\nexport function hasExports(metadata: ModuleMetadata) {\n return metadata.hasExports;\n}\n\n/**\n * Check if a given source is an anonymous import, e.g. \"import 'foo';\"\n */\nexport function isSideEffectImport(source: SourceModuleMetadata) {\n return (\n source.imports.size === 0 &&\n source.importsNamespace.size === 0 &&\n source.reexports.size === 0 &&\n source.reexportNamespace.size === 0 &&\n !source.reexportAll\n );\n}\n\nexport function validateImportInteropOption(\n importInterop: any,\n): importInterop is ImportInterop {\n if (\n typeof importInterop !== \"function\" &&\n importInterop !== \"none\" &&\n importInterop !== \"babel\" &&\n importInterop !== \"node\"\n ) {\n throw new Error(\n `.importInterop must be one of \"none\", \"babel\", \"node\", or a function returning one of those values (received ${importInterop}).`,\n );\n }\n return importInterop;\n}\n\nfunction resolveImportInterop(\n importInterop: ImportInterop,\n source: string,\n filename: string | undefined,\n) {\n if (typeof importInterop === \"function\") {\n return validateImportInteropOption(importInterop(source, filename));\n }\n return importInterop;\n}\n\n/**\n * Remove all imports and exports from the file, and return all metadata\n * needed to reconstruct the module's behavior.\n */\nexport default function normalizeModuleAndLoadMetadata(\n programPath: NodePath<t.Program>,\n exportName: string,\n {\n importInterop,\n initializeReexports = false,\n getWrapperPayload,\n esNamespaceOnly = false,\n filename,\n }: {\n importInterop: ImportInterop;\n initializeReexports: boolean | void;\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n esNamespaceOnly: boolean;\n filename: string;\n },\n): ModuleMetadata {\n if (!exportName) {\n exportName = programPath.scope.generateUidIdentifier(\"exports\").name;\n }\n const stringSpecifiers = new Set<string>();\n\n nameAnonymousExports(programPath);\n\n const { local, sources, hasExports } = getModuleMetadata(\n programPath,\n { initializeReexports, getWrapperPayload },\n stringSpecifiers,\n );\n\n removeImportExportDeclarations(programPath);\n\n // Reuse the imported namespace name if there is one.\n for (const [source, metadata] of sources) {\n const { importsNamespace, imports } = metadata;\n // If there is at least one namespace import and other imports, it may collipse with local ident, can be seen in issue 15879.\n if (importsNamespace.size > 0 && imports.size === 0) {\n const [nameOfnamespace] = importsNamespace;\n metadata.name = nameOfnamespace;\n }\n\n const resolvedInterop = resolveImportInterop(\n importInterop,\n source,\n filename,\n );\n\n if (resolvedInterop === \"none\") {\n metadata.interop = \"none\";\n } else if (resolvedInterop === \"node\" && metadata.interop === \"namespace\") {\n metadata.interop = \"node-namespace\";\n } else if (resolvedInterop === \"node\" && metadata.interop === \"default\") {\n metadata.interop = \"node-default\";\n } else if (esNamespaceOnly && metadata.interop === \"namespace\") {\n // Both the default and namespace interops pass through __esModule\n // objects, but the namespace interop is used to enable Babel's\n // destructuring-like interop behavior for normal CommonJS.\n // Since some tooling has started to remove that behavior, we expose\n // it as the `esNamespace` option.\n metadata.interop = \"default\";\n }\n }\n\n return {\n exportName,\n exportNameListName: null,\n hasExports,\n local,\n source: sources,\n stringSpecifiers,\n };\n}\n\nfunction getExportSpecifierName(\n path: NodePath,\n stringSpecifiers: Set<string>,\n): string {\n if (path.isIdentifier()) {\n return path.node.name;\n } else if (path.isStringLiteral()) {\n const stringValue = path.node.value;\n // add specifier value to `stringSpecifiers` only when it can not be converted to an identifier name\n // i.e In `import { \"foo\" as bar }`\n // we do not consider `\"foo\"` to be a `stringSpecifier` because we can treat it as\n // `import { foo as bar }`\n // This helps minimize the size of `stringSpecifiers` and reduce overhead of checking valid identifier names\n // when building transpiled code from metadata\n if (!isIdentifierName(stringValue)) {\n stringSpecifiers.add(stringValue);\n }\n return stringValue;\n } else {\n throw new Error(\n `Expected export specifier to be either Identifier or StringLiteral, got ${path.node.type}`,\n );\n }\n}\n\nfunction assertExportSpecifier(\n path: NodePath,\n): asserts path is NodePath<t.ExportSpecifier> {\n if (path.isExportSpecifier()) {\n return;\n } else if (path.isExportNamespaceSpecifier()) {\n throw path.buildCodeFrameError(\n \"Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`.\",\n );\n } else {\n throw path.buildCodeFrameError(\"Unexpected export specifier type\");\n }\n}\n\n/**\n * Get metadata about the imports and exports present in this module.\n */\nfunction getModuleMetadata(\n programPath: NodePath<t.Program>,\n {\n getWrapperPayload,\n initializeReexports,\n }: {\n getWrapperPayload?: (\n source: string,\n metadata: SourceModuleMetadata,\n importNodes: t.Node[],\n ) => unknown;\n initializeReexports: boolean | void;\n },\n stringSpecifiers: Set<string>,\n) {\n const localData = getLocalExportMetadata(\n programPath,\n initializeReexports,\n stringSpecifiers,\n );\n\n const importNodes = new Map<string, t.Node[]>();\n const sourceData = new Map<string, SourceModuleMetadata>();\n const getData = (sourceNode: t.StringLiteral, node: t.Node) => {\n const source = sourceNode.value;\n\n let data = sourceData.get(source);\n if (!data) {\n data = {\n name: programPath.scope.generateUidIdentifier(\n basename(source, extname(source)),\n ).name,\n\n interop: \"none\",\n\n loc: null,\n\n // Data about the requested sources and names.\n imports: new Map(),\n importsNamespace: new Set(),\n\n // Metadata about data that is passed directly from source to export.\n reexports: new Map(),\n reexportNamespace: new Set(),\n reexportAll: null,\n\n wrap: null,\n\n // @ts-expect-error lazy is not listed in the type.\n // This is needed for compatibility with older version of the commonjs\n // plusing.\n // TODO(Babel 8): Remove this\n get lazy() {\n return this.wrap === \"lazy\";\n },\n\n referenced: false,\n };\n sourceData.set(source, data);\n importNodes.set(source, [node]);\n } else {\n importNodes.get(source).push(node);\n }\n return data;\n };\n let hasExports = false;\n programPath.get(\"body\").forEach(child => {\n if (child.isImportDeclaration()) {\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n child.get(\"specifiers\").forEach(spec => {\n if (spec.isImportDefaultSpecifier()) {\n const localName = spec.get(\"local\").node.name;\n\n data.imports.set(localName, \"default\");\n\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexports.set(name, \"default\");\n });\n data.referenced = true;\n }\n } else if (spec.isImportNamespaceSpecifier()) {\n const localName = spec.get(\"local\").node.name;\n\n data.importsNamespace.add(localName);\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexportNamespace.add(name);\n });\n data.referenced = true;\n }\n } else if (spec.isImportSpecifier()) {\n const importName = getExportSpecifierName(\n spec.get(\"imported\"),\n stringSpecifiers,\n );\n const localName = spec.get(\"local\").node.name;\n\n data.imports.set(localName, importName);\n\n const reexport = localData.get(localName);\n if (reexport) {\n localData.delete(localName);\n\n reexport.names.forEach(name => {\n data.reexports.set(name, importName);\n });\n data.referenced = true;\n }\n }\n });\n } else if (child.isExportAllDeclaration()) {\n hasExports = true;\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n data.reexportAll = {\n loc: child.node.loc,\n };\n data.referenced = true;\n } else if (child.isExportNamedDeclaration() && child.node.source) {\n hasExports = true;\n const data = getData(child.node.source, child.node);\n if (!data.loc) data.loc = child.node.loc;\n\n child.get(\"specifiers\").forEach(spec => {\n assertExportSpecifier(spec);\n const importName = getExportSpecifierName(\n spec.get(\"local\"),\n stringSpecifiers,\n );\n const exportName = getExportSpecifierName(\n spec.get(\"exported\"),\n stringSpecifiers,\n );\n\n data.reexports.set(exportName, importName);\n data.referenced = true;\n\n if (exportName === \"__esModule\") {\n throw spec\n .get(\"exported\")\n .buildCodeFrameError('Illegal export \"__esModule\".');\n }\n });\n } else if (\n child.isExportNamedDeclaration() ||\n child.isExportDefaultDeclaration()\n ) {\n hasExports = true;\n }\n });\n\n for (const metadata of sourceData.values()) {\n let needsDefault = false;\n let needsNamed = false;\n\n if (metadata.importsNamespace.size > 0) {\n needsDefault = true;\n needsNamed = true;\n }\n\n if (metadata.reexportAll) {\n needsNamed = true;\n }\n\n for (const importName of metadata.imports.values()) {\n if (importName === \"default\") needsDefault = true;\n else needsNamed = true;\n }\n for (const importName of metadata.reexports.values()) {\n if (importName === \"default\") needsDefault = true;\n else needsNamed = true;\n }\n\n if (needsDefault && needsNamed) {\n // TODO(logan): Using the namespace interop here is unfortunate. Revisit.\n metadata.interop = \"namespace\";\n } else if (needsDefault) {\n metadata.interop = \"default\";\n }\n }\n\n if (getWrapperPayload) {\n for (const [source, metadata] of sourceData) {\n metadata.wrap = getWrapperPayload(\n source,\n metadata,\n importNodes.get(source),\n );\n }\n }\n\n return {\n hasExports,\n local: localData,\n sources: sourceData,\n };\n}\n\ntype ModuleBindingKind = \"import\" | \"hoisted\" | \"block\" | \"var\";\n/**\n * Get metadata about local variables that are exported.\n */\nfunction getLocalExportMetadata(\n programPath: NodePath<t.Program>,\n initializeReexports: boolean | void,\n stringSpecifiers: Set<string>,\n): Map<string, LocalExportMetadata> {\n const bindingKindLookup = new Map();\n\n programPath.get(\"body\").forEach((child: NodePath) => {\n let kind: ModuleBindingKind;\n if (child.isImportDeclaration()) {\n kind = \"import\";\n } else {\n if (child.isExportDefaultDeclaration()) {\n child = child.get(\"declaration\");\n }\n if (child.isExportNamedDeclaration()) {\n if (child.node.declaration) {\n child = child.get(\"declaration\");\n } else if (\n initializeReexports &&\n child.node.source &&\n child.get(\"source\").isStringLiteral()\n ) {\n child.get(\"specifiers\").forEach(spec => {\n assertExportSpecifier(spec);\n bindingKindLookup.set(spec.get(\"local\").node.name, \"block\");\n });\n return;\n }\n }\n\n if (child.isFunctionDeclaration()) {\n kind = \"hoisted\";\n } else if (child.isClassDeclaration()) {\n kind = \"block\";\n } else if (child.isVariableDeclaration({ kind: \"var\" })) {\n kind = \"var\";\n } else if (child.isVariableDeclaration()) {\n kind = \"block\";\n } else {\n return;\n }\n }\n\n Object.keys(child.getOuterBindingIdentifiers()).forEach(name => {\n bindingKindLookup.set(name, kind);\n });\n });\n\n const localMetadata = new Map();\n const getLocalMetadata = (idPath: NodePath<t.Identifier>) => {\n const localName = idPath.node.name;\n let metadata = localMetadata.get(localName);\n\n if (!metadata) {\n const kind = bindingKindLookup.get(localName);\n\n if (kind === undefined) {\n throw idPath.buildCodeFrameError(\n `Exporting local \"${localName}\", which is not declared.`,\n );\n }\n\n metadata = {\n names: [],\n kind,\n };\n localMetadata.set(localName, metadata);\n }\n return metadata;\n };\n\n programPath.get(\"body\").forEach(child => {\n if (\n child.isExportNamedDeclaration() &&\n (initializeReexports || !child.node.source)\n ) {\n if (child.node.declaration) {\n const declaration = child.get(\"declaration\");\n const ids = declaration.getOuterBindingIdentifierPaths();\n Object.keys(ids).forEach(name => {\n if (name === \"__esModule\") {\n throw declaration.buildCodeFrameError(\n 'Illegal export \"__esModule\".',\n );\n }\n getLocalMetadata(ids[name]).names.push(name);\n });\n } else {\n child.get(\"specifiers\").forEach(spec => {\n const local = spec.get(\"local\");\n const exported = spec.get(\"exported\");\n const localMetadata = getLocalMetadata(local);\n const exportName = getExportSpecifierName(exported, stringSpecifiers);\n\n if (exportName === \"__esModule\") {\n throw exported.buildCodeFrameError('Illegal export \"__esModule\".');\n }\n localMetadata.names.push(exportName);\n });\n }\n } else if (child.isExportDefaultDeclaration()) {\n const declaration = child.get(\"declaration\");\n if (\n declaration.isFunctionDeclaration() ||\n declaration.isClassDeclaration()\n ) {\n getLocalMetadata(declaration.get(\"id\")).names.push(\"default\");\n } else {\n // These should have been removed by the nameAnonymousExports() call.\n throw declaration.buildCodeFrameError(\n \"Unexpected default expression export.\",\n );\n }\n }\n });\n return localMetadata;\n}\n\n/**\n * Ensure that all exported values have local binding names.\n */\nfunction nameAnonymousExports(programPath: NodePath<t.Program>) {\n // Name anonymous exported locals.\n programPath.get(\"body\").forEach(child => {\n if (!child.isExportDefaultDeclaration()) return;\n splitExportDeclaration(child);\n });\n}\n\nfunction removeImportExportDeclarations(programPath: NodePath<t.Program>) {\n programPath.get(\"body\").forEach(child => {\n if (child.isImportDeclaration()) {\n child.remove();\n } else if (child.isExportNamedDeclaration()) {\n if (child.node.declaration) {\n // @ts-expect-error todo(flow->ts): avoid mutations\n child.node.declaration._blockHoist = child.node._blockHoist;\n child.replaceWith(child.node.declaration);\n } else {\n child.remove();\n }\n } else if (child.isExportDefaultDeclaration()) {\n // export default foo;\n const declaration = child.get(\"declaration\");\n if (\n declaration.isFunctionDeclaration() ||\n declaration.isClassDeclaration()\n ) {\n // @ts-expect-error todo(flow->ts): avoid mutations\n declaration._blockHoist = child.node._blockHoist;\n child.replaceWith(declaration);\n } else {\n // These should have been removed by the nameAnonymousExports() call.\n throw declaration.buildCodeFrameError(\n \"Unexpected default expression export.\",\n );\n }\n } else if (child.isExportAllDeclaration()) {\n child.remove();\n }\n });\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,6BAAA,GAAAF,OAAA;AA4DO,SAASG,UAAUA,CAACC,QAAwB,EAAE;EACnD,OAA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