immosquare-cleaner 0.1.39 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2800) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/linters/rubocop-3.3.3.yml +88 -0
  4. data/node_modules/.bin/babylon +1 -0
  5. data/node_modules/.bin/loose-envify +1 -0
  6. data/node_modules/@babel/code-frame/lib/index.js +1 -1
  7. data/node_modules/@babel/code-frame/lib/index.js.map +1 -1
  8. data/node_modules/@babel/code-frame/package.json +3 -3
  9. data/node_modules/@babel/compat-data/data/corejs2-built-ins.json +9 -0
  10. data/node_modules/@babel/compat-data/data/plugins.json +6 -1
  11. data/node_modules/@babel/compat-data/package.json +1 -1
  12. data/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
  13. data/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -1
  14. data/node_modules/@babel/core/lib/index.js +1 -1
  15. data/node_modules/@babel/core/lib/index.js.map +1 -1
  16. data/node_modules/@babel/core/lib/parser/index.js.map +1 -1
  17. data/node_modules/@babel/core/lib/tools/build-external-helpers.js +4 -3
  18. data/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -1
  19. data/node_modules/@babel/core/lib/transformation/file/file.js +2 -2
  20. data/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
  21. data/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +82 -72
  22. data/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +1 -1
  23. data/node_modules/@babel/core/package.json +16 -16
  24. data/node_modules/@babel/generator/lib/buffer.js.map +1 -1
  25. data/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  26. data/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
  27. data/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
  28. data/node_modules/@babel/generator/lib/generators/template-literals.js +7 -6
  29. data/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
  30. data/node_modules/@babel/generator/lib/generators/types.js +20 -16
  31. data/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  32. data/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
  33. data/node_modules/@babel/generator/lib/index.js +2 -2
  34. data/node_modules/@babel/generator/lib/index.js.map +1 -1
  35. data/node_modules/@babel/generator/lib/node/whitespace.js.map +1 -1
  36. data/node_modules/@babel/generator/lib/printer.js.map +1 -1
  37. data/node_modules/@babel/generator/package.json +4 -4
  38. data/node_modules/@babel/helper-annotate-as-pure/README.md +1 -1
  39. data/node_modules/@babel/helper-annotate-as-pure/lib/index.js.map +1 -1
  40. data/node_modules/@babel/helper-annotate-as-pure/package.json +5 -2
  41. data/node_modules/@babel/helper-annotate-as-pure/tsconfig.json +17 -0
  42. data/node_modules/@babel/helper-annotate-as-pure/tsconfig.tsbuildinfo +1 -0
  43. data/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +1 -1
  44. data/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -1
  45. data/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
  46. data/node_modules/@babel/helper-compilation-targets/lib/options.js.map +1 -1
  47. data/node_modules/@babel/helper-compilation-targets/lib/pretty.js.map +1 -1
  48. data/node_modules/@babel/helper-compilation-targets/lib/targets.js.map +1 -1
  49. data/node_modules/@babel/helper-compilation-targets/lib/utils.js.map +1 -1
  50. data/node_modules/@babel/helper-compilation-targets/package.json +8 -5
  51. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -1
  52. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +32 -18
  53. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -1
  54. data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -1
  55. data/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js +51 -34
  56. data/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js.map +1 -1
  57. data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +5 -5
  58. data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -1
  59. data/node_modules/@babel/helper-create-class-features-plugin/lib/misc.js.map +1 -1
  60. data/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js.map +1 -1
  61. data/node_modules/@babel/helper-create-class-features-plugin/package.json +12 -12
  62. data/node_modules/@babel/helper-create-class-features-plugin/tsconfig.tsbuildinfo +1 -1
  63. data/node_modules/@babel/helper-environment-visitor/lib/index.js +1 -2
  64. data/node_modules/@babel/helper-environment-visitor/lib/index.js.map +1 -1
  65. data/node_modules/@babel/helper-environment-visitor/package.json +9 -4
  66. data/node_modules/@babel/helper-function-name/lib/index.js.map +1 -1
  67. data/node_modules/@babel/helper-function-name/package.json +6 -3
  68. data/node_modules/@babel/helper-hoist-variables/README.md +1 -1
  69. data/node_modules/@babel/helper-hoist-variables/lib/index.js.map +1 -1
  70. data/node_modules/@babel/helper-hoist-variables/package.json +3 -4
  71. data/node_modules/@babel/helper-member-expression-to-functions/package.json +3 -5
  72. data/node_modules/@babel/helper-member-expression-to-functions/tsconfig.tsbuildinfo +1 -1
  73. data/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -1
  74. data/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -1
  75. data/node_modules/@babel/helper-module-imports/package.json +4 -4
  76. data/node_modules/@babel/helper-module-transforms/lib/get-module-name.js.map +1 -1
  77. data/node_modules/@babel/helper-module-transforms/lib/index.js.map +1 -1
  78. data/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js.map +1 -1
  79. data/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js.map +1 -1
  80. data/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js.map +1 -1
  81. data/node_modules/@babel/helper-module-transforms/package.json +7 -8
  82. data/node_modules/@babel/helper-optimise-call-expression/README.md +1 -1
  83. data/node_modules/@babel/helper-optimise-call-expression/lib/index.js.map +1 -1
  84. data/node_modules/@babel/helper-optimise-call-expression/package.json +4 -4
  85. data/node_modules/@babel/helper-optimise-call-expression/tsconfig.json +17 -0
  86. data/node_modules/@babel/helper-optimise-call-expression/tsconfig.tsbuildinfo +1 -0
  87. data/node_modules/@babel/helper-plugin-utils/package.json +2 -2
  88. data/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -1
  89. data/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -1
  90. data/node_modules/@babel/helper-replace-supers/package.json +5 -5
  91. data/node_modules/@babel/helper-replace-supers/tsconfig.json +23 -0
  92. data/node_modules/@babel/helper-replace-supers/tsconfig.tsbuildinfo +1 -0
  93. data/node_modules/@babel/helper-simple-access/package.json +4 -4
  94. data/node_modules/@babel/helper-skip-transparent-expression-wrappers/README.md +1 -1
  95. data/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js.map +1 -1
  96. data/node_modules/@babel/helper-skip-transparent-expression-wrappers/package.json +7 -6
  97. data/node_modules/@babel/helper-skip-transparent-expression-wrappers/tsconfig.json +17 -0
  98. data/node_modules/@babel/helper-skip-transparent-expression-wrappers/tsconfig.tsbuildinfo +1 -0
  99. data/node_modules/@babel/helper-split-export-declaration/lib/index.js.map +1 -1
  100. data/node_modules/@babel/helper-split-export-declaration/package.json +5 -2
  101. data/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -1
  102. data/node_modules/@babel/helper-string-parser/package.json +5 -2
  103. data/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -1
  104. data/node_modules/@babel/helper-validator-identifier/package.json +5 -2
  105. data/node_modules/@babel/helper-validator-option/lib/find-suggestion.js.map +1 -1
  106. data/node_modules/@babel/helper-validator-option/lib/index.js.map +1 -1
  107. data/node_modules/@babel/helper-validator-option/lib/validator.js.map +1 -1
  108. data/node_modules/@babel/helper-validator-option/package.json +5 -2
  109. data/node_modules/@babel/helpers/lib/helpers/AwaitValue.js +11 -0
  110. data/node_modules/@babel/helpers/lib/helpers/AwaitValue.js.map +1 -0
  111. data/node_modules/@babel/helpers/lib/helpers/OverloadYield.js.map +1 -1
  112. data/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js +31 -0
  113. data/node_modules/@babel/helpers/lib/helpers/applyDecoratedDescriptor.js.map +1 -0
  114. data/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js +1 -1
  115. data/node_modules/@babel/helpers/lib/helpers/applyDecs2311.js.map +1 -1
  116. data/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js +13 -0
  117. data/node_modules/@babel/helpers/lib/helpers/arrayLikeToArray.js.map +1 -0
  118. data/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js +11 -0
  119. data/node_modules/@babel/helpers/lib/helpers/arrayWithHoles.js.map +1 -0
  120. data/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js +12 -0
  121. data/node_modules/@babel/helpers/lib/helpers/arrayWithoutHoles.js.map +1 -0
  122. data/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js +14 -0
  123. data/node_modules/@babel/helpers/lib/helpers/assertThisInitialized.js.map +1 -0
  124. data/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js +2 -2
  125. data/node_modules/@babel/helpers/lib/helpers/asyncGeneratorDelegate.js.map +1 -1
  126. data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js +2 -2
  127. data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -1
  128. data/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js +38 -0
  129. data/node_modules/@babel/helpers/lib/helpers/asyncToGenerator.js.map +1 -0
  130. data/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js +2 -2
  131. data/node_modules/@babel/helpers/lib/helpers/awaitAsyncGenerator.js.map +1 -1
  132. data/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js +13 -0
  133. data/node_modules/@babel/helpers/lib/helpers/checkPrivateRedeclaration.js.map +1 -0
  134. data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js +25 -0
  135. data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorDestructureSet.js.map +1 -0
  136. data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js +14 -0
  137. data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorGet.js.map +1 -0
  138. data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js +18 -0
  139. data/node_modules/@babel/helpers/lib/helpers/classApplyDescriptorSet.js.map +1 -0
  140. data/node_modules/@babel/helpers/lib/helpers/classCallCheck.js +13 -0
  141. data/node_modules/@babel/helpers/lib/helpers/classCallCheck.js.map +1 -0
  142. data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js +12 -0
  143. data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticAccess.js.map +1 -0
  144. data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js +13 -0
  145. data/node_modules/@babel/helpers/lib/helpers/classCheckPrivateStaticFieldDescriptor.js.map +1 -0
  146. data/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js +12 -0
  147. data/node_modules/@babel/helpers/lib/helpers/classExtractFieldDescriptor.js.map +1 -0
  148. data/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js +11 -0
  149. data/node_modules/@babel/helpers/lib/helpers/classNameTDZError.js.map +1 -0
  150. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js +14 -0
  151. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldDestructureSet.js.map +1 -0
  152. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js +14 -0
  153. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldGet.js.map +1 -0
  154. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js +13 -0
  155. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldInitSpec.js.map +1 -0
  156. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js +14 -0
  157. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseBase.js.map +1 -0
  158. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js +12 -0
  159. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldLooseKey.js.map +1 -0
  160. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js +15 -0
  161. data/node_modules/@babel/helpers/lib/helpers/classPrivateFieldSet.js.map +1 -0
  162. data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js +13 -0
  163. data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodGet.js.map +1 -0
  164. data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js +13 -0
  165. data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodInitSpec.js.map +1 -0
  166. data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js +11 -0
  167. data/node_modules/@babel/helpers/lib/helpers/classPrivateMethodSet.js.map +1 -0
  168. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js +16 -0
  169. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldDestructureSet.js.map +1 -0
  170. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js +16 -0
  171. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecGet.js.map +1 -0
  172. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js +17 -0
  173. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateFieldSpecSet.js.map +1 -0
  174. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js +13 -0
  175. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodGet.js.map +1 -0
  176. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js +11 -0
  177. data/node_modules/@babel/helpers/lib/helpers/classStaticPrivateMethodSet.js.map +1 -0
  178. data/node_modules/@babel/helpers/lib/helpers/construct.js +2 -2
  179. data/node_modules/@babel/helpers/lib/helpers/construct.js.map +1 -1
  180. data/node_modules/@babel/helpers/lib/helpers/createClass.js +26 -0
  181. data/node_modules/@babel/helpers/lib/helpers/createClass.js.map +1 -0
  182. data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js +60 -0
  183. data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelper.js.map +1 -0
  184. data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js +27 -0
  185. data/node_modules/@babel/helpers/lib/helpers/createForOfIteratorHelperLoose.js.map +1 -0
  186. data/node_modules/@babel/helpers/lib/helpers/createSuper.js +25 -0
  187. data/node_modules/@babel/helpers/lib/helpers/createSuper.js.map +1 -0
  188. data/node_modules/@babel/helpers/lib/helpers/decorate.js +350 -0
  189. data/node_modules/@babel/helpers/lib/helpers/decorate.js.map +1 -0
  190. data/node_modules/@babel/helpers/lib/helpers/defaults.js +18 -0
  191. data/node_modules/@babel/helpers/lib/helpers/defaults.js.map +1 -0
  192. data/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js +27 -0
  193. data/node_modules/@babel/helpers/lib/helpers/defineEnumerableProperties.js.map +1 -0
  194. data/node_modules/@babel/helpers/lib/helpers/defineProperty.js +23 -0
  195. data/node_modules/@babel/helpers/lib/helpers/defineProperty.js.map +1 -0
  196. data/node_modules/@babel/helpers/lib/helpers/extends.js +22 -0
  197. data/node_modules/@babel/helpers/lib/helpers/extends.js.map +1 -0
  198. data/node_modules/@babel/helpers/lib/helpers/get.js +25 -0
  199. data/node_modules/@babel/helpers/lib/helpers/get.js.map +1 -0
  200. data/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js +14 -0
  201. data/node_modules/@babel/helpers/lib/helpers/getPrototypeOf.js.map +1 -0
  202. data/node_modules/@babel/helpers/lib/helpers/identity.js +11 -0
  203. data/node_modules/@babel/helpers/lib/helpers/identity.js.map +1 -0
  204. data/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js +2 -2
  205. data/node_modules/@babel/helpers/lib/helpers/importDeferProxy.js.map +1 -1
  206. data/node_modules/@babel/helpers/lib/helpers/inherits.js +25 -0
  207. data/node_modules/@babel/helpers/lib/helpers/inherits.js.map +1 -0
  208. data/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js +14 -0
  209. data/node_modules/@babel/helpers/lib/helpers/inheritsLoose.js.map +1 -0
  210. data/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js +17 -0
  211. data/node_modules/@babel/helpers/lib/helpers/initializerDefineProperty.js.map +1 -0
  212. data/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js +11 -0
  213. data/node_modules/@babel/helpers/lib/helpers/initializerWarningHelper.js.map +1 -0
  214. data/node_modules/@babel/helpers/lib/helpers/instanceof.js +15 -0
  215. data/node_modules/@babel/helpers/lib/helpers/instanceof.js.map +1 -0
  216. data/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js +13 -0
  217. data/node_modules/@babel/helpers/lib/helpers/interopRequireDefault.js.map +1 -0
  218. data/node_modules/@babel/helpers/lib/helpers/interopRequireWildcard.js.map +1 -1
  219. data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js +15 -0
  220. data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +1 -0
  221. data/node_modules/@babel/helpers/lib/helpers/iterableToArray.js +13 -0
  222. data/node_modules/@babel/helpers/lib/helpers/iterableToArray.js.map +1 -0
  223. data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js +16 -16
  224. data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimit.js.map +1 -1
  225. data/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js +16 -0
  226. data/node_modules/@babel/helpers/lib/helpers/maybeArrayLike.js.map +1 -0
  227. data/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js +13 -0
  228. data/node_modules/@babel/helpers/lib/helpers/newArrowCheck.js.map +1 -0
  229. data/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js +11 -0
  230. data/node_modules/@babel/helpers/lib/helpers/nonIterableRest.js.map +1 -0
  231. data/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js +11 -0
  232. data/node_modules/@babel/helpers/lib/helpers/nonIterableSpread.js.map +1 -0
  233. data/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js +11 -0
  234. data/node_modules/@babel/helpers/lib/helpers/nullishReceiverError.js.map +1 -0
  235. data/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js +11 -0
  236. data/node_modules/@babel/helpers/lib/helpers/objectDestructuringEmpty.js.map +1 -0
  237. data/node_modules/@babel/helpers/lib/helpers/objectSpread.js +24 -0
  238. data/node_modules/@babel/helpers/lib/helpers/objectSpread.js.map +1 -0
  239. data/node_modules/@babel/helpers/lib/helpers/objectSpread2.js +2 -2
  240. data/node_modules/@babel/helpers/lib/helpers/objectSpread2.js.map +1 -1
  241. data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js +24 -0
  242. data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +1 -0
  243. data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +19 -0
  244. data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -0
  245. data/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js +17 -0
  246. data/node_modules/@babel/helpers/lib/helpers/possibleConstructorReturn.js.map +1 -0
  247. data/node_modules/@babel/helpers/lib/helpers/readOnlyError.js +11 -0
  248. data/node_modules/@babel/helpers/lib/helpers/readOnlyError.js.map +1 -0
  249. data/node_modules/@babel/helpers/lib/helpers/set.js +48 -0
  250. data/node_modules/@babel/helpers/lib/helpers/set.js.map +1 -0
  251. data/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js +15 -0
  252. data/node_modules/@babel/helpers/lib/helpers/setPrototypeOf.js.map +1 -0
  253. data/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js +15 -0
  254. data/node_modules/@babel/helpers/lib/helpers/skipFirstGeneratorNext.js.map +1 -0
  255. data/node_modules/@babel/helpers/lib/helpers/slicedToArray.js +15 -0
  256. data/node_modules/@babel/helpers/lib/helpers/slicedToArray.js.map +1 -0
  257. data/node_modules/@babel/helpers/lib/helpers/superPropBase.js +16 -0
  258. data/node_modules/@babel/helpers/lib/helpers/superPropBase.js.map +1 -0
  259. data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js +18 -0
  260. data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteral.js.map +1 -0
  261. data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js +15 -0
  262. data/node_modules/@babel/helpers/lib/helpers/taggedTemplateLiteralLoose.js.map +1 -0
  263. data/node_modules/@babel/helpers/lib/helpers/tdz.js +11 -0
  264. data/node_modules/@babel/helpers/lib/helpers/tdz.js.map +1 -0
  265. data/node_modules/@babel/helpers/lib/helpers/temporalRef.js +13 -0
  266. data/node_modules/@babel/helpers/lib/helpers/temporalRef.js.map +1 -0
  267. data/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js +9 -0
  268. data/node_modules/@babel/helpers/lib/helpers/temporalUndefined.js.map +1 -0
  269. data/node_modules/@babel/helpers/lib/helpers/toArray.js +15 -0
  270. data/node_modules/@babel/helpers/lib/helpers/toArray.js.map +1 -0
  271. data/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js +15 -0
  272. data/node_modules/@babel/helpers/lib/helpers/toConsumableArray.js.map +1 -0
  273. data/node_modules/@babel/helpers/lib/helpers/typeof.js.map +1 -1
  274. data/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js +19 -0
  275. data/node_modules/@babel/helpers/lib/helpers/unsupportedIterableToArray.js.map +1 -0
  276. data/node_modules/@babel/helpers/lib/helpers/usingCtx.js.map +1 -1
  277. data/node_modules/@babel/helpers/lib/helpers/{AsyncGenerator.js → wrapAsyncGenerator.js} +9 -4
  278. data/node_modules/@babel/helpers/lib/helpers/wrapAsyncGenerator.js.map +1 -0
  279. data/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js +38 -0
  280. data/node_modules/@babel/helpers/lib/helpers/wrapNativeSuper.js.map +1 -0
  281. data/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js +11 -0
  282. data/node_modules/@babel/helpers/lib/helpers/writeOnlyError.js.map +1 -0
  283. data/node_modules/@babel/helpers/lib/helpers-generated.js +1191 -40
  284. data/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
  285. data/node_modules/@babel/helpers/lib/index.js +62 -184
  286. data/node_modules/@babel/helpers/lib/index.js.map +1 -1
  287. data/node_modules/@babel/helpers/package.json +6 -7
  288. data/node_modules/@babel/helpers/scripts/build-helper-metadata.js +209 -0
  289. data/node_modules/@babel/helpers/scripts/generate-helpers.js +93 -15
  290. data/node_modules/@babel/highlight/node_modules/js-tokens/CHANGELOG.md +151 -0
  291. data/node_modules/@babel/highlight/node_modules/js-tokens/LICENSE +21 -0
  292. data/node_modules/@babel/highlight/node_modules/js-tokens/README.md +240 -0
  293. data/node_modules/@babel/highlight/node_modules/js-tokens/index.js +23 -0
  294. data/node_modules/@babel/highlight/node_modules/js-tokens/package.json +30 -0
  295. data/node_modules/@babel/highlight/package.json +2 -2
  296. data/node_modules/@babel/parser/lib/index.js +44 -81
  297. data/node_modules/@babel/parser/lib/index.js.map +1 -1
  298. data/node_modules/@babel/parser/package.json +7 -6
  299. data/node_modules/@babel/parser/typings/babel-parser.d.ts +1 -1
  300. data/node_modules/@babel/plugin-syntax-flow/lib/index.js.map +1 -1
  301. data/node_modules/@babel/plugin-syntax-flow/package.json +3 -3
  302. data/node_modules/@babel/plugin-syntax-flow/tsconfig.json +17 -0
  303. data/node_modules/@babel/plugin-syntax-flow/tsconfig.tsbuildinfo +1 -0
  304. data/node_modules/@babel/plugin-syntax-jsx/package.json +3 -3
  305. data/node_modules/@babel/plugin-syntax-jsx/tsconfig.json +17 -0
  306. data/node_modules/@babel/plugin-syntax-jsx/tsconfig.tsbuildinfo +1 -0
  307. data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/LICENSE +22 -0
  308. data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/README.md +19 -0
  309. data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/lib/index.js +77 -0
  310. data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -0
  311. data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/package.json +24 -0
  312. data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/tsconfig.json +39 -0
  313. data/node_modules/@babel/plugin-syntax-nullish-coalescing-operator/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -0
  314. data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/LICENSE +22 -0
  315. data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/README.md +19 -0
  316. data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/lib/index.js +77 -0
  317. data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -0
  318. data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/package.json +24 -0
  319. data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/tsconfig.json +39 -0
  320. data/node_modules/@babel/plugin-syntax-optional-chaining/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo +1 -0
  321. data/node_modules/@babel/plugin-syntax-typescript/package.json +4 -4
  322. data/node_modules/@babel/plugin-syntax-typescript/tsconfig.json +17 -0
  323. data/node_modules/@babel/plugin-syntax-typescript/tsconfig.tsbuildinfo +1 -0
  324. data/node_modules/@babel/plugin-transform-class-properties/package.json +5 -5
  325. data/node_modules/@babel/plugin-transform-class-properties/tsconfig.json +20 -0
  326. data/node_modules/@babel/plugin-transform-class-properties/tsconfig.tsbuildinfo +1 -0
  327. data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js.map +1 -1
  328. data/node_modules/@babel/plugin-transform-flow-strip-types/package.json +5 -5
  329. data/node_modules/@babel/plugin-transform-flow-strip-types/tsconfig.json +20 -0
  330. data/node_modules/@babel/plugin-transform-flow-strip-types/tsconfig.tsbuildinfo +1 -0
  331. data/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js.map +1 -1
  332. data/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js.map +1 -1
  333. data/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js +1 -1
  334. data/node_modules/@babel/plugin-transform-modules-commonjs/package.json +7 -7
  335. data/node_modules/@babel/plugin-transform-modules-commonjs/tsconfig.json +17 -0
  336. data/node_modules/@babel/plugin-transform-modules-commonjs/tsconfig.tsbuildinfo +1 -0
  337. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js +1 -1
  338. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map +1 -1
  339. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json +4 -4
  340. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/tsconfig.json +17 -0
  341. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/tsconfig.tsbuildinfo +1 -0
  342. data/node_modules/@babel/plugin-transform-optional-chaining/lib/index.js.map +1 -1
  343. data/node_modules/@babel/plugin-transform-optional-chaining/package.json +7 -7
  344. data/node_modules/@babel/plugin-transform-optional-chaining/tsconfig.tsbuildinfo +1 -1
  345. data/node_modules/@babel/plugin-transform-private-methods/lib/index.js +1 -1
  346. data/node_modules/@babel/plugin-transform-private-methods/lib/index.js.map +1 -1
  347. data/node_modules/@babel/plugin-transform-private-methods/package.json +5 -5
  348. data/node_modules/@babel/plugin-transform-private-methods/tsconfig.json +20 -0
  349. data/node_modules/@babel/plugin-transform-private-methods/tsconfig.tsbuildinfo +1 -0
  350. data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js.map +1 -1
  351. data/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -1
  352. data/node_modules/@babel/plugin-transform-typescript/lib/global-types.js.map +1 -1
  353. data/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -1
  354. data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -1
  355. data/node_modules/@babel/plugin-transform-typescript/package.json +9 -9
  356. data/node_modules/@babel/plugin-transform-typescript/tsconfig.tsbuildinfo +1 -1
  357. data/node_modules/@babel/preset-flow/package.json +6 -6
  358. data/node_modules/@babel/preset-flow/tsconfig.json +20 -0
  359. data/node_modules/@babel/preset-flow/tsconfig.tsbuildinfo +1 -0
  360. data/node_modules/@babel/preset-typescript/lib/index.js.map +1 -1
  361. data/node_modules/@babel/preset-typescript/package.json +8 -8
  362. data/node_modules/@babel/preset-typescript/tsconfig.json +26 -0
  363. data/node_modules/@babel/preset-typescript/tsconfig.tsbuildinfo +1 -0
  364. data/node_modules/@babel/register/lib/browser.js.map +1 -1
  365. data/node_modules/@babel/register/lib/cache.js.map +1 -1
  366. data/node_modules/@babel/register/lib/experimental-worker.js.map +1 -1
  367. data/node_modules/@babel/register/lib/hook.js.map +1 -1
  368. data/node_modules/@babel/register/lib/index.js.map +1 -1
  369. data/node_modules/@babel/register/lib/is-in-register-worker.js.map +1 -1
  370. data/node_modules/@babel/register/lib/node.js.map +1 -1
  371. data/node_modules/@babel/register/lib/nodeWrapper.js.map +1 -1
  372. data/node_modules/@babel/register/lib/worker/babel-core.js.map +1 -1
  373. data/node_modules/@babel/register/lib/worker/cache.js.map +1 -1
  374. data/node_modules/@babel/register/lib/worker/handle-message.js.map +1 -1
  375. data/node_modules/@babel/register/lib/worker/index.js.map +1 -1
  376. data/node_modules/@babel/register/lib/worker/transform.js.map +1 -1
  377. data/node_modules/@babel/register/lib/worker-client.js +33 -57
  378. data/node_modules/@babel/register/lib/worker-client.js.map +1 -1
  379. data/node_modules/@babel/register/package.json +4 -4
  380. data/node_modules/@babel/register/tsconfig.json +17 -0
  381. data/node_modules/@babel/register/tsconfig.tsbuildinfo +1 -0
  382. data/node_modules/@babel/template/lib/builder.js.map +1 -1
  383. data/node_modules/@babel/template/lib/formatters.js.map +1 -1
  384. data/node_modules/@babel/template/lib/index.js.map +1 -1
  385. data/node_modules/@babel/template/lib/literal.js.map +1 -1
  386. data/node_modules/@babel/template/lib/options.js.map +1 -1
  387. data/node_modules/@babel/template/lib/parse.js.map +1 -1
  388. data/node_modules/@babel/template/lib/populate.js.map +1 -1
  389. data/node_modules/@babel/template/lib/string.js.map +1 -1
  390. data/node_modules/@babel/template/package.json +4 -4
  391. data/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
  392. data/node_modules/@babel/traverse/lib/path/index.js +125 -31
  393. data/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
  394. data/node_modules/@babel/traverse/lib/scope/index.js +4 -3
  395. data/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  396. data/node_modules/@babel/traverse/lib/scope/lib/renamer.js +4 -2
  397. data/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -1
  398. data/node_modules/@babel/traverse/lib/visitors.js +6 -6
  399. data/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  400. data/node_modules/@babel/traverse/package.json +11 -11
  401. data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +6 -5
  402. data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
  403. data/node_modules/@babel/types/lib/converters/toSequenceExpression.js +1 -1
  404. data/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
  405. data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +2 -2
  406. data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
  407. data/node_modules/@babel/types/package.json +5 -5
  408. data/node_modules/@eslint/config-array/README.md +14 -1
  409. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +12 -56
  410. data/node_modules/@eslint/config-array/dist/cjs/index.d.cts +0 -9
  411. data/node_modules/@eslint/config-array/dist/esm/index.d.ts +0 -9
  412. data/node_modules/@eslint/config-array/dist/esm/index.js +12 -56
  413. data/node_modules/@eslint/config-array/package.json +7 -3
  414. data/node_modules/@eslint/js/package.json +1 -1
  415. data/node_modules/@eslint/object-schema/README.md +13 -0
  416. data/node_modules/@eslint/object-schema/dist/cjs/index.cjs +9 -9
  417. data/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +2 -2
  418. data/node_modules/@eslint/object-schema/dist/cjs/types.ts +1 -1
  419. data/node_modules/@eslint/object-schema/dist/esm/index.d.ts +2 -2
  420. data/node_modules/@eslint/object-schema/dist/esm/index.js +9 -9
  421. data/node_modules/@eslint/object-schema/dist/esm/types.d.ts +1 -1
  422. data/node_modules/@eslint/object-schema/dist/esm/types.ts +1 -1
  423. data/node_modules/@eslint/object-schema/package.json +8 -4
  424. data/node_modules/@npmcli/move-file/node_modules/mkdirp/LICENSE +21 -0
  425. data/node_modules/@npmcli/move-file/node_modules/mkdirp/bin/cmd.js +68 -0
  426. data/node_modules/@npmcli/move-file/node_modules/mkdirp/index.js +31 -0
  427. data/node_modules/@npmcli/move-file/node_modules/mkdirp/package.json +44 -0
  428. data/node_modules/@npmcli/move-file/node_modules/mkdirp/readme.markdown +266 -0
  429. data/node_modules/babel-code-frame/README.md +60 -0
  430. data/node_modules/babel-code-frame/lib/index.js +141 -0
  431. data/node_modules/babel-code-frame/node_modules/chalk/index.js +116 -0
  432. data/node_modules/babel-code-frame/node_modules/chalk/license +21 -0
  433. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/index.js +65 -0
  434. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/license +21 -0
  435. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/package.json +50 -0
  436. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/ansi-styles/readme.md +86 -0
  437. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/index.js +11 -0
  438. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/license +21 -0
  439. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/package.json +41 -0
  440. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/escape-string-regexp/readme.md +27 -0
  441. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/index.js +6 -0
  442. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/license +21 -0
  443. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/index.js +4 -0
  444. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/license +21 -0
  445. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json +64 -0
  446. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +39 -0
  447. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/package.json +57 -0
  448. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/strip-ansi/readme.md +33 -0
  449. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/index.js +50 -0
  450. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/license +21 -0
  451. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/package.json +49 -0
  452. data/node_modules/babel-code-frame/node_modules/chalk/node_modules/supports-color/readme.md +36 -0
  453. data/node_modules/babel-code-frame/node_modules/chalk/package.json +70 -0
  454. data/node_modules/babel-code-frame/node_modules/chalk/readme.md +213 -0
  455. data/node_modules/babel-code-frame/package-lock.json +66 -0
  456. data/node_modules/babel-code-frame/package.json +15 -0
  457. data/node_modules/babel-core/README.md +94 -27
  458. data/node_modules/babel-core/index.js +1 -2
  459. data/node_modules/babel-core/lib/api/browser.js +190 -0
  460. data/node_modules/babel-core/lib/api/node.js +153 -0
  461. data/node_modules/babel-core/lib/helpers/get-possible-plugin-names.js +8 -0
  462. data/node_modules/babel-core/lib/helpers/get-possible-preset-names.js +18 -0
  463. data/node_modules/babel-core/lib/helpers/merge.js +46 -0
  464. data/node_modules/babel-core/lib/helpers/normalize-ast.js +23 -0
  465. data/node_modules/babel-core/lib/helpers/resolve-from-possible-names.js +17 -0
  466. data/node_modules/babel-core/lib/helpers/resolve-plugin.js +21 -0
  467. data/node_modules/babel-core/lib/helpers/resolve-preset.js +21 -0
  468. data/node_modules/babel-core/lib/helpers/resolve.js +46 -0
  469. data/node_modules/babel-core/lib/store.js +55 -0
  470. data/node_modules/babel-core/lib/tools/build-external-helpers.js +101 -0
  471. data/node_modules/babel-core/lib/transformation/file/index.js +705 -0
  472. data/node_modules/babel-core/lib/transformation/file/logger.js +72 -0
  473. data/node_modules/babel-core/lib/transformation/file/merge-map.js +354 -0
  474. data/node_modules/babel-core/lib/transformation/file/metadata.js +178 -0
  475. data/node_modules/babel-core/lib/transformation/file/options/build-config-chain.js +215 -0
  476. data/node_modules/babel-core/lib/transformation/file/options/config.js +211 -0
  477. data/node_modules/babel-core/lib/transformation/file/options/index.js +38 -0
  478. data/node_modules/babel-core/lib/transformation/file/options/option-manager.js +383 -0
  479. data/node_modules/babel-core/lib/transformation/file/options/parsers.js +33 -0
  480. data/node_modules/babel-core/lib/transformation/file/options/removed.js +50 -0
  481. data/node_modules/babel-core/lib/transformation/internal-plugins/block-hoist.js +45 -0
  482. data/node_modules/babel-core/lib/transformation/internal-plugins/shadow-functions.js +136 -0
  483. data/node_modules/babel-core/lib/transformation/pipeline.js +81 -0
  484. data/node_modules/babel-core/lib/transformation/plugin-pass.js +71 -0
  485. data/node_modules/babel-core/lib/transformation/plugin.js +163 -0
  486. data/node_modules/babel-core/lib/util.js +184 -0
  487. data/node_modules/babel-core/node_modules/convert-source-map/LICENSE +23 -0
  488. data/node_modules/babel-core/node_modules/convert-source-map/README.md +123 -0
  489. data/node_modules/babel-core/node_modules/convert-source-map/index.js +179 -0
  490. data/node_modules/babel-core/node_modules/convert-source-map/package.json +41 -0
  491. data/node_modules/babel-core/node_modules/debug/CHANGELOG.md +362 -0
  492. data/node_modules/babel-core/node_modules/debug/LICENSE +19 -0
  493. data/node_modules/babel-core/node_modules/debug/Makefile +50 -0
  494. data/node_modules/babel-core/node_modules/debug/README.md +312 -0
  495. data/node_modules/babel-core/node_modules/debug/component.json +19 -0
  496. data/node_modules/babel-core/node_modules/debug/karma.conf.js +70 -0
  497. data/node_modules/babel-core/node_modules/debug/node.js +1 -0
  498. data/node_modules/babel-core/node_modules/debug/node_modules/ms/index.js +152 -0
  499. data/node_modules/babel-core/node_modules/debug/node_modules/ms/license.md +21 -0
  500. data/node_modules/babel-core/node_modules/debug/node_modules/ms/package.json +37 -0
  501. data/node_modules/babel-core/node_modules/debug/node_modules/ms/readme.md +51 -0
  502. data/node_modules/babel-core/node_modules/debug/package.json +49 -0
  503. data/node_modules/babel-core/node_modules/debug/src/browser.js +185 -0
  504. data/node_modules/babel-core/node_modules/debug/src/debug.js +202 -0
  505. data/node_modules/babel-core/node_modules/debug/src/index.js +10 -0
  506. data/node_modules/babel-core/node_modules/debug/src/inspector-log.js +15 -0
  507. data/node_modules/babel-core/node_modules/debug/src/node.js +248 -0
  508. data/node_modules/babel-core/node_modules/json5/CHANGELOG.md +169 -0
  509. data/node_modules/babel-core/node_modules/json5/LICENSE.md +21 -0
  510. data/node_modules/babel-core/node_modules/json5/README.md +286 -0
  511. data/node_modules/babel-core/node_modules/json5/lib/cli.js +41 -0
  512. data/node_modules/babel-core/node_modules/json5/lib/json5.js +770 -0
  513. data/node_modules/babel-core/node_modules/json5/lib/require.js +18 -0
  514. data/node_modules/babel-core/node_modules/json5/package.json +38 -0
  515. data/node_modules/babel-core/node_modules/minimatch/LICENSE +15 -0
  516. data/node_modules/babel-core/node_modules/minimatch/README.md +230 -0
  517. data/node_modules/babel-core/node_modules/minimatch/minimatch.js +947 -0
  518. data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
  519. data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
  520. data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
  521. data/node_modules/babel-core/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
  522. data/node_modules/babel-core/node_modules/minimatch/package.json +33 -0
  523. data/node_modules/babel-core/node_modules/slash/index.js +11 -0
  524. data/node_modules/babel-core/node_modules/slash/package.json +33 -0
  525. data/node_modules/babel-core/node_modules/slash/readme.md +44 -0
  526. data/node_modules/babel-core/node_modules/source-map/CHANGELOG.md +301 -0
  527. data/node_modules/babel-core/node_modules/source-map/LICENSE +28 -0
  528. data/node_modules/babel-core/node_modules/source-map/README.md +729 -0
  529. data/node_modules/babel-core/node_modules/source-map/dist/source-map.debug.js +3091 -0
  530. data/node_modules/babel-core/node_modules/source-map/dist/source-map.js +3090 -0
  531. data/node_modules/babel-core/node_modules/source-map/dist/source-map.min.js +2 -0
  532. data/node_modules/babel-core/node_modules/source-map/dist/source-map.min.js.map +1 -0
  533. data/node_modules/babel-core/node_modules/source-map/lib/array-set.js +121 -0
  534. data/node_modules/babel-core/node_modules/source-map/lib/base64-vlq.js +140 -0
  535. data/node_modules/babel-core/node_modules/source-map/lib/base64.js +67 -0
  536. data/node_modules/babel-core/node_modules/source-map/lib/binary-search.js +111 -0
  537. data/node_modules/babel-core/node_modules/source-map/lib/mapping-list.js +79 -0
  538. data/node_modules/babel-core/node_modules/source-map/lib/quick-sort.js +114 -0
  539. data/node_modules/babel-core/node_modules/source-map/lib/source-map-consumer.js +1082 -0
  540. data/node_modules/babel-core/node_modules/source-map/lib/source-map-generator.js +416 -0
  541. data/node_modules/babel-core/node_modules/source-map/lib/source-node.js +413 -0
  542. data/node_modules/babel-core/node_modules/source-map/lib/util.js +417 -0
  543. data/node_modules/babel-core/node_modules/source-map/package.json +72 -0
  544. data/node_modules/babel-core/node_modules/source-map/source-map.js +8 -0
  545. data/node_modules/babel-core/package.json +46 -10
  546. data/node_modules/babel-core/register.js +3 -0
  547. data/node_modules/babel-generator/README.md +81 -0
  548. data/node_modules/babel-generator/lib/buffer.js +202 -0
  549. data/node_modules/babel-generator/lib/generators/base.js +62 -0
  550. data/node_modules/babel-generator/lib/generators/classes.js +96 -0
  551. data/node_modules/babel-generator/lib/generators/expressions.js +241 -0
  552. data/node_modules/babel-generator/lib/generators/flow.js +504 -0
  553. data/node_modules/babel-generator/lib/generators/jsx.js +124 -0
  554. data/node_modules/babel-generator/lib/generators/methods.js +111 -0
  555. data/node_modules/babel-generator/lib/generators/modules.js +183 -0
  556. data/node_modules/babel-generator/lib/generators/statements.js +316 -0
  557. data/node_modules/babel-generator/lib/generators/template-literals.js +31 -0
  558. data/node_modules/babel-generator/lib/generators/types.js +158 -0
  559. data/node_modules/babel-generator/lib/index.js +168 -0
  560. data/node_modules/babel-generator/lib/node/index.js +146 -0
  561. data/node_modules/babel-generator/lib/node/parentheses.js +170 -0
  562. data/node_modules/babel-generator/lib/node/whitespace.js +151 -0
  563. data/node_modules/babel-generator/lib/printer.js +555 -0
  564. data/node_modules/babel-generator/lib/source-map.js +89 -0
  565. data/node_modules/babel-generator/lib/whitespace.js +95 -0
  566. data/node_modules/babel-generator/node_modules/jsesc/LICENSE-MIT.txt +20 -0
  567. data/node_modules/babel-generator/node_modules/jsesc/bin/jsesc +148 -0
  568. data/node_modules/babel-generator/node_modules/jsesc/jsesc.js +345 -0
  569. data/node_modules/babel-generator/node_modules/jsesc/man/jsesc.1 +94 -0
  570. data/node_modules/babel-generator/node_modules/jsesc/package.json +46 -0
  571. data/node_modules/babel-generator/node_modules/source-map/CHANGELOG.md +301 -0
  572. data/node_modules/babel-generator/node_modules/source-map/LICENSE +28 -0
  573. data/node_modules/babel-generator/node_modules/source-map/README.md +729 -0
  574. data/node_modules/babel-generator/node_modules/source-map/dist/source-map.debug.js +3091 -0
  575. data/node_modules/babel-generator/node_modules/source-map/dist/source-map.js +3090 -0
  576. data/node_modules/babel-generator/node_modules/source-map/dist/source-map.min.js +2 -0
  577. data/node_modules/babel-generator/node_modules/source-map/dist/source-map.min.js.map +1 -0
  578. data/node_modules/babel-generator/node_modules/source-map/lib/array-set.js +121 -0
  579. data/node_modules/babel-generator/node_modules/source-map/lib/base64-vlq.js +140 -0
  580. data/node_modules/babel-generator/node_modules/source-map/lib/base64.js +67 -0
  581. data/node_modules/babel-generator/node_modules/source-map/lib/binary-search.js +111 -0
  582. data/node_modules/babel-generator/node_modules/source-map/lib/mapping-list.js +79 -0
  583. data/node_modules/babel-generator/node_modules/source-map/lib/quick-sort.js +114 -0
  584. data/node_modules/babel-generator/node_modules/source-map/lib/source-map-consumer.js +1082 -0
  585. data/node_modules/babel-generator/node_modules/source-map/lib/source-map-generator.js +416 -0
  586. data/node_modules/babel-generator/node_modules/source-map/lib/source-node.js +413 -0
  587. data/node_modules/babel-generator/node_modules/source-map/lib/util.js +417 -0
  588. data/node_modules/babel-generator/node_modules/source-map/package.json +72 -0
  589. data/node_modules/babel-generator/node_modules/source-map/source-map.js +8 -0
  590. data/node_modules/babel-generator/package.json +27 -0
  591. data/node_modules/babel-helpers/README.md +21 -0
  592. data/node_modules/babel-helpers/lib/helpers.js +76 -0
  593. data/node_modules/babel-helpers/lib/index.js +31 -0
  594. data/node_modules/babel-helpers/package.json +14 -0
  595. data/node_modules/babel-messages/README.md +18 -0
  596. data/node_modules/babel-messages/lib/index.js +84 -0
  597. data/node_modules/babel-messages/package.json +13 -0
  598. data/node_modules/babel-register/README.md +103 -0
  599. data/node_modules/babel-register/lib/browser.js +7 -0
  600. data/node_modules/babel-register/lib/cache.js +68 -0
  601. data/node_modules/babel-register/lib/node.js +179 -0
  602. data/node_modules/babel-register/node_modules/source-map-support/LICENSE.md +21 -0
  603. data/node_modules/babel-register/node_modules/source-map-support/README.md +251 -0
  604. data/node_modules/babel-register/node_modules/source-map-support/browser-source-map-support.js +110 -0
  605. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +301 -0
  606. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/LICENSE +28 -0
  607. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/README.md +729 -0
  608. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.debug.js +3091 -0
  609. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.js +3090 -0
  610. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.min.js +2 -0
  611. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/dist/source-map.min.js.map +1 -0
  612. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/array-set.js +121 -0
  613. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js +140 -0
  614. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/base64.js +67 -0
  615. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/binary-search.js +111 -0
  616. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js +79 -0
  617. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js +114 -0
  618. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js +1082 -0
  619. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js +416 -0
  620. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/source-node.js +413 -0
  621. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/lib/util.js +417 -0
  622. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/package.json +72 -0
  623. data/node_modules/babel-register/node_modules/source-map-support/node_modules/source-map/source-map.js +8 -0
  624. data/node_modules/babel-register/node_modules/source-map-support/package.json +30 -0
  625. data/node_modules/babel-register/node_modules/source-map-support/register.js +1 -0
  626. data/node_modules/babel-register/node_modules/source-map-support/source-map-support.js +527 -0
  627. data/node_modules/babel-register/package-lock.json +78 -0
  628. data/node_modules/babel-register/package.json +22 -0
  629. data/node_modules/babel-runtime/README.md +2 -0
  630. data/node_modules/babel-runtime/core-js/array/concat.js +1 -0
  631. data/node_modules/babel-runtime/core-js/array/copy-within.js +1 -0
  632. data/node_modules/babel-runtime/core-js/array/entries.js +1 -0
  633. data/node_modules/babel-runtime/core-js/array/every.js +1 -0
  634. data/node_modules/babel-runtime/core-js/array/fill.js +1 -0
  635. data/node_modules/babel-runtime/core-js/array/filter.js +1 -0
  636. data/node_modules/babel-runtime/core-js/array/find-index.js +1 -0
  637. data/node_modules/babel-runtime/core-js/array/find.js +1 -0
  638. data/node_modules/babel-runtime/core-js/array/for-each.js +1 -0
  639. data/node_modules/babel-runtime/core-js/array/from.js +1 -0
  640. data/node_modules/babel-runtime/core-js/array/includes.js +1 -0
  641. data/node_modules/babel-runtime/core-js/array/index-of.js +1 -0
  642. data/node_modules/babel-runtime/core-js/array/join.js +1 -0
  643. data/node_modules/babel-runtime/core-js/array/keys.js +1 -0
  644. data/node_modules/babel-runtime/core-js/array/last-index-of.js +1 -0
  645. data/node_modules/babel-runtime/core-js/array/map.js +1 -0
  646. data/node_modules/babel-runtime/core-js/array/of.js +1 -0
  647. data/node_modules/babel-runtime/core-js/array/pop.js +1 -0
  648. data/node_modules/babel-runtime/core-js/array/push.js +1 -0
  649. data/node_modules/babel-runtime/core-js/array/reduce-right.js +1 -0
  650. data/node_modules/babel-runtime/core-js/array/reduce.js +1 -0
  651. data/node_modules/babel-runtime/core-js/array/reverse.js +1 -0
  652. data/node_modules/babel-runtime/core-js/array/shift.js +1 -0
  653. data/node_modules/babel-runtime/core-js/array/slice.js +1 -0
  654. data/node_modules/babel-runtime/core-js/array/some.js +1 -0
  655. data/node_modules/babel-runtime/core-js/array/sort.js +1 -0
  656. data/node_modules/babel-runtime/core-js/array/splice.js +1 -0
  657. data/node_modules/babel-runtime/core-js/array/unshift.js +1 -0
  658. data/node_modules/babel-runtime/core-js/array/values.js +1 -0
  659. data/node_modules/babel-runtime/core-js/asap.js +1 -0
  660. data/node_modules/babel-runtime/core-js/clear-immediate.js +1 -0
  661. data/node_modules/babel-runtime/core-js/error/is-error.js +1 -0
  662. data/node_modules/babel-runtime/core-js/get-iterator.js +1 -0
  663. data/node_modules/babel-runtime/core-js/is-iterable.js +1 -0
  664. data/node_modules/babel-runtime/core-js/json/stringify.js +1 -0
  665. data/node_modules/babel-runtime/core-js/map.js +1 -0
  666. data/node_modules/babel-runtime/core-js/math/acosh.js +1 -0
  667. data/node_modules/babel-runtime/core-js/math/asinh.js +1 -0
  668. data/node_modules/babel-runtime/core-js/math/atanh.js +1 -0
  669. data/node_modules/babel-runtime/core-js/math/cbrt.js +1 -0
  670. data/node_modules/babel-runtime/core-js/math/clz32.js +1 -0
  671. data/node_modules/babel-runtime/core-js/math/cosh.js +1 -0
  672. data/node_modules/babel-runtime/core-js/math/expm1.js +1 -0
  673. data/node_modules/babel-runtime/core-js/math/fround.js +1 -0
  674. data/node_modules/babel-runtime/core-js/math/hypot.js +1 -0
  675. data/node_modules/babel-runtime/core-js/math/iaddh.js +1 -0
  676. data/node_modules/babel-runtime/core-js/math/imul.js +1 -0
  677. data/node_modules/babel-runtime/core-js/math/imulh.js +1 -0
  678. data/node_modules/babel-runtime/core-js/math/isubh.js +1 -0
  679. data/node_modules/babel-runtime/core-js/math/log10.js +1 -0
  680. data/node_modules/babel-runtime/core-js/math/log1p.js +1 -0
  681. data/node_modules/babel-runtime/core-js/math/log2.js +1 -0
  682. data/node_modules/babel-runtime/core-js/math/sign.js +1 -0
  683. data/node_modules/babel-runtime/core-js/math/sinh.js +1 -0
  684. data/node_modules/babel-runtime/core-js/math/tanh.js +1 -0
  685. data/node_modules/babel-runtime/core-js/math/trunc.js +1 -0
  686. data/node_modules/babel-runtime/core-js/math/umulh.js +1 -0
  687. data/node_modules/babel-runtime/core-js/number/epsilon.js +1 -0
  688. data/node_modules/babel-runtime/core-js/number/is-finite.js +1 -0
  689. data/node_modules/babel-runtime/core-js/number/is-integer.js +1 -0
  690. data/node_modules/babel-runtime/core-js/number/is-nan.js +1 -0
  691. data/node_modules/babel-runtime/core-js/number/is-safe-integer.js +1 -0
  692. data/node_modules/babel-runtime/core-js/number/max-safe-integer.js +1 -0
  693. data/node_modules/babel-runtime/core-js/number/min-safe-integer.js +1 -0
  694. data/node_modules/babel-runtime/core-js/number/parse-float.js +1 -0
  695. data/node_modules/babel-runtime/core-js/number/parse-int.js +1 -0
  696. data/node_modules/babel-runtime/core-js/object/assign.js +1 -0
  697. data/node_modules/babel-runtime/core-js/object/create.js +1 -0
  698. data/node_modules/babel-runtime/core-js/object/define-properties.js +1 -0
  699. data/node_modules/babel-runtime/core-js/object/define-property.js +1 -0
  700. data/node_modules/babel-runtime/core-js/object/entries.js +1 -0
  701. data/node_modules/babel-runtime/core-js/object/freeze.js +1 -0
  702. data/node_modules/babel-runtime/core-js/object/get-own-property-descriptor.js +1 -0
  703. data/node_modules/babel-runtime/core-js/object/get-own-property-descriptors.js +1 -0
  704. data/node_modules/babel-runtime/core-js/object/get-own-property-names.js +1 -0
  705. data/node_modules/babel-runtime/core-js/object/get-own-property-symbols.js +1 -0
  706. data/node_modules/babel-runtime/core-js/object/get-prototype-of.js +1 -0
  707. data/node_modules/babel-runtime/core-js/object/is-extensible.js +1 -0
  708. data/node_modules/babel-runtime/core-js/object/is-frozen.js +1 -0
  709. data/node_modules/babel-runtime/core-js/object/is-sealed.js +1 -0
  710. data/node_modules/babel-runtime/core-js/object/is.js +1 -0
  711. data/node_modules/babel-runtime/core-js/object/keys.js +1 -0
  712. data/node_modules/babel-runtime/core-js/object/prevent-extensions.js +1 -0
  713. data/node_modules/babel-runtime/core-js/object/seal.js +1 -0
  714. data/node_modules/babel-runtime/core-js/object/set-prototype-of.js +1 -0
  715. data/node_modules/babel-runtime/core-js/object/values.js +1 -0
  716. data/node_modules/babel-runtime/core-js/observable.js +1 -0
  717. data/node_modules/babel-runtime/core-js/promise.js +1 -0
  718. data/node_modules/babel-runtime/core-js/reflect/apply.js +1 -0
  719. data/node_modules/babel-runtime/core-js/reflect/construct.js +1 -0
  720. data/node_modules/babel-runtime/core-js/reflect/define-metadata.js +1 -0
  721. data/node_modules/babel-runtime/core-js/reflect/define-property.js +1 -0
  722. data/node_modules/babel-runtime/core-js/reflect/delete-metadata.js +1 -0
  723. data/node_modules/babel-runtime/core-js/reflect/delete-property.js +1 -0
  724. data/node_modules/babel-runtime/core-js/reflect/enumerate.js +1 -0
  725. data/node_modules/babel-runtime/core-js/reflect/get-metadata-keys.js +1 -0
  726. data/node_modules/babel-runtime/core-js/reflect/get-metadata.js +1 -0
  727. data/node_modules/babel-runtime/core-js/reflect/get-own-metadata-keys.js +1 -0
  728. data/node_modules/babel-runtime/core-js/reflect/get-own-metadata.js +1 -0
  729. data/node_modules/babel-runtime/core-js/reflect/get-own-property-descriptor.js +1 -0
  730. data/node_modules/babel-runtime/core-js/reflect/get-prototype-of.js +1 -0
  731. data/node_modules/babel-runtime/core-js/reflect/get.js +1 -0
  732. data/node_modules/babel-runtime/core-js/reflect/has-metadata.js +1 -0
  733. data/node_modules/babel-runtime/core-js/reflect/has-own-metadata.js +1 -0
  734. data/node_modules/babel-runtime/core-js/reflect/has.js +1 -0
  735. data/node_modules/babel-runtime/core-js/reflect/is-extensible.js +1 -0
  736. data/node_modules/babel-runtime/core-js/reflect/metadata.js +1 -0
  737. data/node_modules/babel-runtime/core-js/reflect/own-keys.js +1 -0
  738. data/node_modules/babel-runtime/core-js/reflect/prevent-extensions.js +1 -0
  739. data/node_modules/babel-runtime/core-js/reflect/set-prototype-of.js +1 -0
  740. data/node_modules/babel-runtime/core-js/reflect/set.js +1 -0
  741. data/node_modules/babel-runtime/core-js/regexp/escape.js +1 -0
  742. data/node_modules/babel-runtime/core-js/set-immediate.js +1 -0
  743. data/node_modules/babel-runtime/core-js/set.js +1 -0
  744. data/node_modules/babel-runtime/core-js/string/at.js +1 -0
  745. data/node_modules/babel-runtime/core-js/string/code-point-at.js +1 -0
  746. data/node_modules/babel-runtime/core-js/string/ends-with.js +1 -0
  747. data/node_modules/babel-runtime/core-js/string/from-code-point.js +1 -0
  748. data/node_modules/babel-runtime/core-js/string/includes.js +1 -0
  749. data/node_modules/babel-runtime/core-js/string/match-all.js +1 -0
  750. data/node_modules/babel-runtime/core-js/string/pad-end.js +1 -0
  751. data/node_modules/babel-runtime/core-js/string/pad-left.js +1 -0
  752. data/node_modules/babel-runtime/core-js/string/pad-right.js +1 -0
  753. data/node_modules/babel-runtime/core-js/string/pad-start.js +1 -0
  754. data/node_modules/babel-runtime/core-js/string/raw.js +1 -0
  755. data/node_modules/babel-runtime/core-js/string/repeat.js +1 -0
  756. data/node_modules/babel-runtime/core-js/string/starts-with.js +1 -0
  757. data/node_modules/babel-runtime/core-js/string/trim-end.js +1 -0
  758. data/node_modules/babel-runtime/core-js/string/trim-left.js +1 -0
  759. data/node_modules/babel-runtime/core-js/string/trim-right.js +1 -0
  760. data/node_modules/babel-runtime/core-js/string/trim-start.js +1 -0
  761. data/node_modules/babel-runtime/core-js/string/trim.js +1 -0
  762. data/node_modules/babel-runtime/core-js/symbol/async-iterator.js +1 -0
  763. data/node_modules/babel-runtime/core-js/symbol/for.js +1 -0
  764. data/node_modules/babel-runtime/core-js/symbol/has-instance.js +1 -0
  765. data/node_modules/babel-runtime/core-js/symbol/is-concat-spreadable.js +1 -0
  766. data/node_modules/babel-runtime/core-js/symbol/iterator.js +1 -0
  767. data/node_modules/babel-runtime/core-js/symbol/key-for.js +1 -0
  768. data/node_modules/babel-runtime/core-js/symbol/match.js +1 -0
  769. data/node_modules/babel-runtime/core-js/symbol/observable.js +1 -0
  770. data/node_modules/babel-runtime/core-js/symbol/replace.js +1 -0
  771. data/node_modules/babel-runtime/core-js/symbol/search.js +1 -0
  772. data/node_modules/babel-runtime/core-js/symbol/species.js +1 -0
  773. data/node_modules/babel-runtime/core-js/symbol/split.js +1 -0
  774. data/node_modules/babel-runtime/core-js/symbol/to-primitive.js +1 -0
  775. data/node_modules/babel-runtime/core-js/symbol/to-string-tag.js +1 -0
  776. data/node_modules/babel-runtime/core-js/symbol/unscopables.js +1 -0
  777. data/node_modules/babel-runtime/core-js/symbol.js +1 -0
  778. data/node_modules/babel-runtime/core-js/system/global.js +1 -0
  779. data/node_modules/babel-runtime/core-js/weak-map.js +1 -0
  780. data/node_modules/babel-runtime/core-js/weak-set.js +1 -0
  781. data/node_modules/babel-runtime/core-js.js +4 -0
  782. data/node_modules/babel-runtime/helpers/_async-generator-delegate.js +1 -0
  783. data/node_modules/babel-runtime/helpers/_async-generator.js +1 -0
  784. data/node_modules/babel-runtime/helpers/_async-iterator.js +1 -0
  785. data/node_modules/babel-runtime/helpers/_async-to-generator.js +1 -0
  786. data/node_modules/babel-runtime/helpers/_class-call-check.js +1 -0
  787. data/node_modules/babel-runtime/helpers/_create-class.js +1 -0
  788. data/node_modules/babel-runtime/helpers/_defaults.js +1 -0
  789. data/node_modules/babel-runtime/helpers/_define-enumerable-properties.js +1 -0
  790. data/node_modules/babel-runtime/helpers/_define-property.js +1 -0
  791. data/node_modules/babel-runtime/helpers/_extends.js +1 -0
  792. data/node_modules/babel-runtime/helpers/_get.js +1 -0
  793. data/node_modules/babel-runtime/helpers/_inherits.js +1 -0
  794. data/node_modules/babel-runtime/helpers/_instanceof.js +1 -0
  795. data/node_modules/babel-runtime/helpers/_interop-require-default.js +1 -0
  796. data/node_modules/babel-runtime/helpers/_interop-require-wildcard.js +1 -0
  797. data/node_modules/babel-runtime/helpers/_jsx.js +1 -0
  798. data/node_modules/babel-runtime/helpers/_new-arrow-check.js +1 -0
  799. data/node_modules/babel-runtime/helpers/_object-destructuring-empty.js +1 -0
  800. data/node_modules/babel-runtime/helpers/_object-without-properties.js +1 -0
  801. data/node_modules/babel-runtime/helpers/_possible-constructor-return.js +1 -0
  802. data/node_modules/babel-runtime/helpers/_self-global.js +1 -0
  803. data/node_modules/babel-runtime/helpers/_set.js +1 -0
  804. data/node_modules/babel-runtime/helpers/_sliced-to-array-loose.js +1 -0
  805. data/node_modules/babel-runtime/helpers/_sliced-to-array.js +1 -0
  806. data/node_modules/babel-runtime/helpers/_tagged-template-literal-loose.js +1 -0
  807. data/node_modules/babel-runtime/helpers/_tagged-template-literal.js +1 -0
  808. data/node_modules/babel-runtime/helpers/_temporal-ref.js +1 -0
  809. data/node_modules/babel-runtime/helpers/_temporal-undefined.js +1 -0
  810. data/node_modules/babel-runtime/helpers/_to-array.js +1 -0
  811. data/node_modules/babel-runtime/helpers/_to-consumable-array.js +1 -0
  812. data/node_modules/babel-runtime/helpers/_typeof.js +1 -0
  813. data/node_modules/babel-runtime/helpers/async-generator-delegate.js +1 -0
  814. data/node_modules/babel-runtime/helpers/async-generator.js +1 -0
  815. data/node_modules/babel-runtime/helpers/async-iterator.js +1 -0
  816. data/node_modules/babel-runtime/helpers/async-to-generator.js +1 -0
  817. data/node_modules/babel-runtime/helpers/asyncGenerator.js +126 -0
  818. data/node_modules/babel-runtime/helpers/asyncGeneratorDelegate.js +69 -0
  819. data/node_modules/babel-runtime/helpers/asyncIterator.js +32 -0
  820. data/node_modules/babel-runtime/helpers/asyncToGenerator.js +38 -0
  821. data/node_modules/babel-runtime/helpers/class-call-check.js +1 -0
  822. data/node_modules/babel-runtime/helpers/classCallCheck.js +9 -0
  823. data/node_modules/babel-runtime/helpers/create-class.js +1 -0
  824. data/node_modules/babel-runtime/helpers/createClass.js +27 -0
  825. data/node_modules/babel-runtime/helpers/defaults.js +32 -0
  826. data/node_modules/babel-runtime/helpers/define-enumerable-properties.js +1 -0
  827. data/node_modules/babel-runtime/helpers/define-property.js +1 -0
  828. data/node_modules/babel-runtime/helpers/defineEnumerableProperties.js +20 -0
  829. data/node_modules/babel-runtime/helpers/defineProperty.js +24 -0
  830. data/node_modules/babel-runtime/helpers/extends.js +23 -0
  831. data/node_modules/babel-runtime/helpers/get.js +38 -0
  832. data/node_modules/babel-runtime/helpers/inherits.js +33 -0
  833. data/node_modules/babel-runtime/helpers/instanceof.js +21 -0
  834. data/node_modules/babel-runtime/helpers/interop-require-default.js +1 -0
  835. data/node_modules/babel-runtime/helpers/interop-require-wildcard.js +1 -0
  836. data/node_modules/babel-runtime/helpers/interopRequireDefault.js +9 -0
  837. data/node_modules/babel-runtime/helpers/interopRequireWildcard.js +20 -0
  838. data/node_modules/babel-runtime/helpers/jsx.js +56 -0
  839. data/node_modules/babel-runtime/helpers/new-arrow-check.js +1 -0
  840. data/node_modules/babel-runtime/helpers/newArrowCheck.js +9 -0
  841. data/node_modules/babel-runtime/helpers/object-destructuring-empty.js +1 -0
  842. data/node_modules/babel-runtime/helpers/object-without-properties.js +1 -0
  843. data/node_modules/babel-runtime/helpers/objectDestructuringEmpty.js +7 -0
  844. data/node_modules/babel-runtime/helpers/objectWithoutProperties.js +15 -0
  845. data/node_modules/babel-runtime/helpers/possible-constructor-return.js +1 -0
  846. data/node_modules/babel-runtime/helpers/possibleConstructorReturn.js +17 -0
  847. data/node_modules/babel-runtime/helpers/self-global.js +1 -0
  848. data/node_modules/babel-runtime/helpers/selfGlobal.js +4 -0
  849. data/node_modules/babel-runtime/helpers/set.js +35 -0
  850. data/node_modules/babel-runtime/helpers/sliced-to-array-loose.js +1 -0
  851. data/node_modules/babel-runtime/helpers/sliced-to-array.js +1 -0
  852. data/node_modules/babel-runtime/helpers/slicedToArray.js +51 -0
  853. data/node_modules/babel-runtime/helpers/slicedToArrayLoose.js +31 -0
  854. data/node_modules/babel-runtime/helpers/tagged-template-literal-loose.js +1 -0
  855. data/node_modules/babel-runtime/helpers/tagged-template-literal.js +1 -0
  856. data/node_modules/babel-runtime/helpers/taggedTemplateLiteral.js +21 -0
  857. data/node_modules/babel-runtime/helpers/taggedTemplateLiteralLoose.js +8 -0
  858. data/node_modules/babel-runtime/helpers/temporal-ref.js +1 -0
  859. data/node_modules/babel-runtime/helpers/temporal-undefined.js +1 -0
  860. data/node_modules/babel-runtime/helpers/temporalRef.js +11 -0
  861. data/node_modules/babel-runtime/helpers/temporalUndefined.js +4 -0
  862. data/node_modules/babel-runtime/helpers/to-array.js +1 -0
  863. data/node_modules/babel-runtime/helpers/to-consumable-array.js +1 -0
  864. data/node_modules/babel-runtime/helpers/toArray.js +13 -0
  865. data/node_modules/babel-runtime/helpers/toConsumableArray.js +21 -0
  866. data/node_modules/babel-runtime/helpers/typeof.js +21 -0
  867. data/node_modules/babel-runtime/package-lock.json +232 -0
  868. data/node_modules/babel-runtime/package.json +16 -0
  869. data/node_modules/babel-runtime/regenerator/index.js +1 -0
  870. data/node_modules/babel-template/README.md +64 -0
  871. data/node_modules/babel-template/lib/index.js +143 -0
  872. data/node_modules/babel-template/package-lock.json +18 -0
  873. data/node_modules/babel-template/package.json +17 -0
  874. data/node_modules/babel-traverse/README.md +33 -0
  875. data/node_modules/babel-traverse/lib/cache.js +30 -0
  876. data/node_modules/babel-traverse/lib/context.js +200 -0
  877. data/node_modules/babel-traverse/lib/hub.js +19 -0
  878. data/node_modules/babel-traverse/lib/index.js +165 -0
  879. data/node_modules/babel-traverse/lib/path/ancestry.js +238 -0
  880. data/node_modules/babel-traverse/lib/path/comments.js +47 -0
  881. data/node_modules/babel-traverse/lib/path/context.js +281 -0
  882. data/node_modules/babel-traverse/lib/path/conversion.js +47 -0
  883. data/node_modules/babel-traverse/lib/path/evaluation.js +398 -0
  884. data/node_modules/babel-traverse/lib/path/family.js +266 -0
  885. data/node_modules/babel-traverse/lib/path/index.js +242 -0
  886. data/node_modules/babel-traverse/lib/path/inference/index.js +142 -0
  887. data/node_modules/babel-traverse/lib/path/inference/inferer-reference.js +185 -0
  888. data/node_modules/babel-traverse/lib/path/inference/inferers.js +195 -0
  889. data/node_modules/babel-traverse/lib/path/introspection.js +386 -0
  890. data/node_modules/babel-traverse/lib/path/lib/hoister.js +211 -0
  891. data/node_modules/babel-traverse/lib/path/lib/removal-hooks.js +33 -0
  892. data/node_modules/babel-traverse/lib/path/lib/virtual-types.js +141 -0
  893. data/node_modules/babel-traverse/lib/path/modification.js +264 -0
  894. data/node_modules/babel-traverse/lib/path/removal.js +72 -0
  895. data/node_modules/babel-traverse/lib/path/replacement.js +268 -0
  896. data/node_modules/babel-traverse/lib/scope/binding.js +82 -0
  897. data/node_modules/babel-traverse/lib/scope/index.js +1094 -0
  898. data/node_modules/babel-traverse/lib/scope/lib/renamer.js +113 -0
  899. data/node_modules/babel-traverse/lib/visitors.js +341 -0
  900. data/node_modules/babel-traverse/node_modules/debug/CHANGELOG.md +362 -0
  901. data/node_modules/babel-traverse/node_modules/debug/LICENSE +19 -0
  902. data/node_modules/babel-traverse/node_modules/debug/Makefile +50 -0
  903. data/node_modules/babel-traverse/node_modules/debug/README.md +312 -0
  904. data/node_modules/babel-traverse/node_modules/debug/component.json +19 -0
  905. data/node_modules/babel-traverse/node_modules/debug/karma.conf.js +70 -0
  906. data/node_modules/babel-traverse/node_modules/debug/node.js +1 -0
  907. data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/index.js +152 -0
  908. data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/license.md +21 -0
  909. data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/package.json +37 -0
  910. data/node_modules/babel-traverse/node_modules/debug/node_modules/ms/readme.md +51 -0
  911. data/node_modules/babel-traverse/node_modules/debug/package.json +49 -0
  912. data/node_modules/babel-traverse/node_modules/debug/src/browser.js +185 -0
  913. data/node_modules/babel-traverse/node_modules/debug/src/debug.js +202 -0
  914. data/node_modules/babel-traverse/node_modules/debug/src/index.js +10 -0
  915. data/node_modules/babel-traverse/node_modules/debug/src/inspector-log.js +15 -0
  916. data/node_modules/babel-traverse/node_modules/debug/src/node.js +248 -0
  917. data/node_modules/babel-traverse/node_modules/globals/globals.json +1294 -0
  918. data/node_modules/babel-traverse/node_modules/globals/index.js +1 -0
  919. data/node_modules/babel-traverse/node_modules/globals/license +21 -0
  920. data/node_modules/babel-traverse/node_modules/globals/package.json +35 -0
  921. data/node_modules/babel-traverse/node_modules/globals/readme.md +41 -0
  922. data/node_modules/babel-traverse/package-lock.json +57 -0
  923. data/node_modules/babel-traverse/package.json +24 -0
  924. data/node_modules/babel-types/README.md +2029 -0
  925. data/node_modules/babel-types/lib/constants.js +38 -0
  926. data/node_modules/babel-types/lib/converters.js +350 -0
  927. data/node_modules/babel-types/lib/definitions/core.js +701 -0
  928. data/node_modules/babel-types/lib/definitions/es2015.js +354 -0
  929. data/node_modules/babel-types/lib/definitions/experimental.js +103 -0
  930. data/node_modules/babel-types/lib/definitions/flow.js +285 -0
  931. data/node_modules/babel-types/lib/definitions/index.js +249 -0
  932. data/node_modules/babel-types/lib/definitions/init.js +15 -0
  933. data/node_modules/babel-types/lib/definitions/jsx.js +147 -0
  934. data/node_modules/babel-types/lib/definitions/misc.js +21 -0
  935. data/node_modules/babel-types/lib/flow.js +108 -0
  936. data/node_modules/babel-types/lib/index.js +835 -0
  937. data/node_modules/babel-types/lib/react.js +80 -0
  938. data/node_modules/babel-types/lib/retrievers.js +116 -0
  939. data/node_modules/babel-types/lib/validators.js +265 -0
  940. data/node_modules/babel-types/node_modules/to-fast-properties/index.js +11 -0
  941. data/node_modules/babel-types/node_modules/to-fast-properties/license +22 -0
  942. data/node_modules/babel-types/node_modules/to-fast-properties/package.json +35 -0
  943. data/node_modules/babel-types/node_modules/to-fast-properties/readme.md +37 -0
  944. data/node_modules/babel-types/package-lock.json +29 -0
  945. data/node_modules/babel-types/package.json +20 -0
  946. data/node_modules/babylon/CHANGELOG.md +979 -0
  947. data/node_modules/babylon/LICENSE +19 -0
  948. data/node_modules/babylon/README.md +134 -0
  949. data/node_modules/babylon/bin/babylon.js +16 -0
  950. data/node_modules/babylon/bin/generate-identifier-regex.js +62 -0
  951. data/node_modules/babylon/lib/index.js +7318 -0
  952. data/node_modules/babylon/package.json +84 -0
  953. data/node_modules/braces/LICENSE +1 -1
  954. data/node_modules/braces/README.md +91 -98
  955. data/node_modules/braces/index.js +3 -3
  956. data/node_modules/braces/lib/compile.js +14 -11
  957. data/node_modules/braces/lib/constants.js +1 -1
  958. data/node_modules/braces/lib/expand.js +9 -9
  959. data/node_modules/braces/lib/parse.js +14 -16
  960. data/node_modules/braces/lib/stringify.js +4 -4
  961. data/node_modules/braces/lib/utils.js +13 -3
  962. data/node_modules/braces/package.json +2 -2
  963. data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/LICENSE.txt +16 -0
  964. data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/README.md +39 -0
  965. data/node_modules/configstore/node_modules/write-file-atomic/node_modules/signal-exit/package.json +38 -0
  966. data/node_modules/core-js/CHANGELOG.md +711 -0
  967. data/node_modules/core-js/Gruntfile.js +3 -0
  968. data/node_modules/core-js/LICENSE +19 -0
  969. data/node_modules/core-js/README.md +2307 -0
  970. data/node_modules/core-js/bower.json +49 -0
  971. data/node_modules/core-js/build/Gruntfile.ls +86 -0
  972. data/node_modules/core-js/build/build.ls +62 -0
  973. data/node_modules/core-js/build/config.js +275 -0
  974. data/node_modules/core-js/build/index.js +104 -0
  975. data/node_modules/core-js/client/core.js +9100 -0
  976. data/node_modules/core-js/client/core.min.js +10 -0
  977. data/node_modules/core-js/client/core.min.js.map +1 -0
  978. data/node_modules/core-js/client/library.js +8168 -0
  979. data/node_modules/core-js/client/library.min.js +10 -0
  980. data/node_modules/core-js/client/library.min.js.map +1 -0
  981. data/node_modules/core-js/client/shim.js +8663 -0
  982. data/node_modules/core-js/client/shim.min.js +10 -0
  983. data/node_modules/core-js/client/shim.min.js.map +1 -0
  984. data/node_modules/core-js/core/_.js +2 -0
  985. data/node_modules/core-js/core/delay.js +2 -0
  986. data/node_modules/core-js/core/dict.js +2 -0
  987. data/node_modules/core-js/core/function.js +2 -0
  988. data/node_modules/core-js/core/index.js +15 -0
  989. data/node_modules/core-js/core/number.js +2 -0
  990. data/node_modules/core-js/core/object.js +5 -0
  991. data/node_modules/core-js/core/regexp.js +2 -0
  992. data/node_modules/core-js/core/string.js +3 -0
  993. data/node_modules/core-js/es5/index.js +37 -0
  994. data/node_modules/core-js/es6/array.js +23 -0
  995. data/node_modules/core-js/es6/date.js +6 -0
  996. data/node_modules/core-js/es6/function.js +4 -0
  997. data/node_modules/core-js/es6/index.js +139 -0
  998. data/node_modules/core-js/es6/map.js +5 -0
  999. data/node_modules/core-js/es6/math.js +18 -0
  1000. data/node_modules/core-js/es6/number.js +13 -0
  1001. data/node_modules/core-js/es6/object.js +20 -0
  1002. data/node_modules/core-js/es6/parse-float.js +2 -0
  1003. data/node_modules/core-js/es6/parse-int.js +2 -0
  1004. data/node_modules/core-js/es6/promise.js +5 -0
  1005. data/node_modules/core-js/es6/reflect.js +15 -0
  1006. data/node_modules/core-js/es6/regexp.js +9 -0
  1007. data/node_modules/core-js/es6/set.js +5 -0
  1008. data/node_modules/core-js/es6/string.js +27 -0
  1009. data/node_modules/core-js/es6/symbol.js +3 -0
  1010. data/node_modules/core-js/es6/typed.js +13 -0
  1011. data/node_modules/core-js/es6/weak-map.js +4 -0
  1012. data/node_modules/core-js/es6/weak-set.js +4 -0
  1013. data/node_modules/core-js/es7/array.js +4 -0
  1014. data/node_modules/core-js/es7/asap.js +2 -0
  1015. data/node_modules/core-js/es7/error.js +2 -0
  1016. data/node_modules/core-js/es7/global.js +2 -0
  1017. data/node_modules/core-js/es7/index.js +56 -0
  1018. data/node_modules/core-js/es7/map.js +4 -0
  1019. data/node_modules/core-js/es7/math.js +13 -0
  1020. data/node_modules/core-js/es7/object.js +8 -0
  1021. data/node_modules/core-js/es7/observable.js +7 -0
  1022. data/node_modules/core-js/es7/promise.js +3 -0
  1023. data/node_modules/core-js/es7/reflect.js +10 -0
  1024. data/node_modules/core-js/es7/set.js +4 -0
  1025. data/node_modules/core-js/es7/string.js +7 -0
  1026. data/node_modules/core-js/es7/symbol.js +3 -0
  1027. data/node_modules/core-js/es7/system.js +2 -0
  1028. data/node_modules/core-js/es7/weak-map.js +3 -0
  1029. data/node_modules/core-js/es7/weak-set.js +3 -0
  1030. data/node_modules/core-js/fn/_.js +2 -0
  1031. data/node_modules/core-js/fn/array/concat.js +4 -0
  1032. data/node_modules/core-js/fn/array/copy-within.js +2 -0
  1033. data/node_modules/core-js/fn/array/entries.js +2 -0
  1034. data/node_modules/core-js/fn/array/every.js +2 -0
  1035. data/node_modules/core-js/fn/array/fill.js +2 -0
  1036. data/node_modules/core-js/fn/array/filter.js +2 -0
  1037. data/node_modules/core-js/fn/array/find-index.js +2 -0
  1038. data/node_modules/core-js/fn/array/find.js +2 -0
  1039. data/node_modules/core-js/fn/array/flat-map.js +2 -0
  1040. data/node_modules/core-js/fn/array/flatten.js +2 -0
  1041. data/node_modules/core-js/fn/array/for-each.js +2 -0
  1042. data/node_modules/core-js/fn/array/from.js +3 -0
  1043. data/node_modules/core-js/fn/array/includes.js +2 -0
  1044. data/node_modules/core-js/fn/array/index-of.js +2 -0
  1045. data/node_modules/core-js/fn/array/index.js +26 -0
  1046. data/node_modules/core-js/fn/array/is-array.js +2 -0
  1047. data/node_modules/core-js/fn/array/iterator.js +2 -0
  1048. data/node_modules/core-js/fn/array/join.js +2 -0
  1049. data/node_modules/core-js/fn/array/keys.js +2 -0
  1050. data/node_modules/core-js/fn/array/last-index-of.js +2 -0
  1051. data/node_modules/core-js/fn/array/map.js +2 -0
  1052. data/node_modules/core-js/fn/array/of.js +2 -0
  1053. data/node_modules/core-js/fn/array/pop.js +4 -0
  1054. data/node_modules/core-js/fn/array/push.js +4 -0
  1055. data/node_modules/core-js/fn/array/reduce-right.js +2 -0
  1056. data/node_modules/core-js/fn/array/reduce.js +2 -0
  1057. data/node_modules/core-js/fn/array/reverse.js +4 -0
  1058. data/node_modules/core-js/fn/array/shift.js +4 -0
  1059. data/node_modules/core-js/fn/array/slice.js +2 -0
  1060. data/node_modules/core-js/fn/array/some.js +2 -0
  1061. data/node_modules/core-js/fn/array/sort.js +2 -0
  1062. data/node_modules/core-js/fn/array/splice.js +4 -0
  1063. data/node_modules/core-js/fn/array/unshift.js +4 -0
  1064. data/node_modules/core-js/fn/array/values.js +2 -0
  1065. data/node_modules/core-js/fn/array/virtual/copy-within.js +2 -0
  1066. data/node_modules/core-js/fn/array/virtual/entries.js +2 -0
  1067. data/node_modules/core-js/fn/array/virtual/every.js +2 -0
  1068. data/node_modules/core-js/fn/array/virtual/fill.js +2 -0
  1069. data/node_modules/core-js/fn/array/virtual/filter.js +2 -0
  1070. data/node_modules/core-js/fn/array/virtual/find-index.js +2 -0
  1071. data/node_modules/core-js/fn/array/virtual/find.js +2 -0
  1072. data/node_modules/core-js/fn/array/virtual/flat-map.js +2 -0
  1073. data/node_modules/core-js/fn/array/virtual/flatten.js +2 -0
  1074. data/node_modules/core-js/fn/array/virtual/for-each.js +2 -0
  1075. data/node_modules/core-js/fn/array/virtual/includes.js +2 -0
  1076. data/node_modules/core-js/fn/array/virtual/index-of.js +2 -0
  1077. data/node_modules/core-js/fn/array/virtual/index.js +20 -0
  1078. data/node_modules/core-js/fn/array/virtual/iterator.js +2 -0
  1079. data/node_modules/core-js/fn/array/virtual/join.js +2 -0
  1080. data/node_modules/core-js/fn/array/virtual/keys.js +2 -0
  1081. data/node_modules/core-js/fn/array/virtual/last-index-of.js +2 -0
  1082. data/node_modules/core-js/fn/array/virtual/map.js +2 -0
  1083. data/node_modules/core-js/fn/array/virtual/reduce-right.js +2 -0
  1084. data/node_modules/core-js/fn/array/virtual/reduce.js +2 -0
  1085. data/node_modules/core-js/fn/array/virtual/slice.js +2 -0
  1086. data/node_modules/core-js/fn/array/virtual/some.js +2 -0
  1087. data/node_modules/core-js/fn/array/virtual/sort.js +2 -0
  1088. data/node_modules/core-js/fn/array/virtual/values.js +2 -0
  1089. data/node_modules/core-js/fn/asap.js +2 -0
  1090. data/node_modules/core-js/fn/clear-immediate.js +2 -0
  1091. data/node_modules/core-js/fn/date/index.js +6 -0
  1092. data/node_modules/core-js/fn/date/now.js +2 -0
  1093. data/node_modules/core-js/fn/date/to-iso-string.js +3 -0
  1094. data/node_modules/core-js/fn/date/to-json.js +2 -0
  1095. data/node_modules/core-js/fn/date/to-primitive.js +5 -0
  1096. data/node_modules/core-js/fn/date/to-string.js +5 -0
  1097. data/node_modules/core-js/fn/delay.js +2 -0
  1098. data/node_modules/core-js/fn/dict.js +2 -0
  1099. data/node_modules/core-js/fn/dom-collections/index.js +8 -0
  1100. data/node_modules/core-js/fn/dom-collections/iterator.js +2 -0
  1101. data/node_modules/core-js/fn/error/index.js +2 -0
  1102. data/node_modules/core-js/fn/error/is-error.js +2 -0
  1103. data/node_modules/core-js/fn/function/bind.js +2 -0
  1104. data/node_modules/core-js/fn/function/has-instance.js +2 -0
  1105. data/node_modules/core-js/fn/function/index.js +5 -0
  1106. data/node_modules/core-js/fn/function/name.js +1 -0
  1107. data/node_modules/core-js/fn/function/part.js +2 -0
  1108. data/node_modules/core-js/fn/function/virtual/bind.js +2 -0
  1109. data/node_modules/core-js/fn/function/virtual/index.js +3 -0
  1110. data/node_modules/core-js/fn/function/virtual/part.js +2 -0
  1111. data/node_modules/core-js/fn/get-iterator-method.js +3 -0
  1112. data/node_modules/core-js/fn/get-iterator.js +3 -0
  1113. data/node_modules/core-js/fn/global.js +2 -0
  1114. data/node_modules/core-js/fn/is-iterable.js +3 -0
  1115. data/node_modules/core-js/fn/json/index.js +2 -0
  1116. data/node_modules/core-js/fn/json/stringify.js +5 -0
  1117. data/node_modules/core-js/fn/map/from.js +8 -0
  1118. data/node_modules/core-js/fn/map/index.js +8 -0
  1119. data/node_modules/core-js/fn/map/of.js +8 -0
  1120. data/node_modules/core-js/fn/map.js +8 -0
  1121. data/node_modules/core-js/fn/math/acosh.js +2 -0
  1122. data/node_modules/core-js/fn/math/asinh.js +2 -0
  1123. data/node_modules/core-js/fn/math/atanh.js +2 -0
  1124. data/node_modules/core-js/fn/math/cbrt.js +2 -0
  1125. data/node_modules/core-js/fn/math/clamp.js +2 -0
  1126. data/node_modules/core-js/fn/math/clz32.js +2 -0
  1127. data/node_modules/core-js/fn/math/cosh.js +2 -0
  1128. data/node_modules/core-js/fn/math/deg-per-rad.js +2 -0
  1129. data/node_modules/core-js/fn/math/degrees.js +2 -0
  1130. data/node_modules/core-js/fn/math/expm1.js +2 -0
  1131. data/node_modules/core-js/fn/math/fround.js +2 -0
  1132. data/node_modules/core-js/fn/math/fscale.js +2 -0
  1133. data/node_modules/core-js/fn/math/hypot.js +2 -0
  1134. data/node_modules/core-js/fn/math/iaddh.js +2 -0
  1135. data/node_modules/core-js/fn/math/imul.js +2 -0
  1136. data/node_modules/core-js/fn/math/imulh.js +2 -0
  1137. data/node_modules/core-js/fn/math/index.js +30 -0
  1138. data/node_modules/core-js/fn/math/isubh.js +2 -0
  1139. data/node_modules/core-js/fn/math/log10.js +2 -0
  1140. data/node_modules/core-js/fn/math/log1p.js +2 -0
  1141. data/node_modules/core-js/fn/math/log2.js +2 -0
  1142. data/node_modules/core-js/fn/math/rad-per-deg.js +2 -0
  1143. data/node_modules/core-js/fn/math/radians.js +2 -0
  1144. data/node_modules/core-js/fn/math/scale.js +2 -0
  1145. data/node_modules/core-js/fn/math/sign.js +2 -0
  1146. data/node_modules/core-js/fn/math/signbit.js +3 -0
  1147. data/node_modules/core-js/fn/math/sinh.js +2 -0
  1148. data/node_modules/core-js/fn/math/tanh.js +2 -0
  1149. data/node_modules/core-js/fn/math/trunc.js +2 -0
  1150. data/node_modules/core-js/fn/math/umulh.js +2 -0
  1151. data/node_modules/core-js/fn/number/constructor.js +2 -0
  1152. data/node_modules/core-js/fn/number/epsilon.js +2 -0
  1153. data/node_modules/core-js/fn/number/index.js +14 -0
  1154. data/node_modules/core-js/fn/number/is-finite.js +2 -0
  1155. data/node_modules/core-js/fn/number/is-integer.js +2 -0
  1156. data/node_modules/core-js/fn/number/is-nan.js +2 -0
  1157. data/node_modules/core-js/fn/number/is-safe-integer.js +2 -0
  1158. data/node_modules/core-js/fn/number/iterator.js +5 -0
  1159. data/node_modules/core-js/fn/number/max-safe-integer.js +2 -0
  1160. data/node_modules/core-js/fn/number/min-safe-integer.js +2 -0
  1161. data/node_modules/core-js/fn/number/parse-float.js +2 -0
  1162. data/node_modules/core-js/fn/number/parse-int.js +2 -0
  1163. data/node_modules/core-js/fn/number/to-fixed.js +2 -0
  1164. data/node_modules/core-js/fn/number/to-precision.js +2 -0
  1165. data/node_modules/core-js/fn/number/virtual/index.js +4 -0
  1166. data/node_modules/core-js/fn/number/virtual/iterator.js +2 -0
  1167. data/node_modules/core-js/fn/number/virtual/to-fixed.js +2 -0
  1168. data/node_modules/core-js/fn/number/virtual/to-precision.js +2 -0
  1169. data/node_modules/core-js/fn/object/assign.js +2 -0
  1170. data/node_modules/core-js/fn/object/classof.js +2 -0
  1171. data/node_modules/core-js/fn/object/create.js +5 -0
  1172. data/node_modules/core-js/fn/object/define-getter.js +2 -0
  1173. data/node_modules/core-js/fn/object/define-properties.js +5 -0
  1174. data/node_modules/core-js/fn/object/define-property.js +5 -0
  1175. data/node_modules/core-js/fn/object/define-setter.js +2 -0
  1176. data/node_modules/core-js/fn/object/define.js +2 -0
  1177. data/node_modules/core-js/fn/object/entries.js +2 -0
  1178. data/node_modules/core-js/fn/object/freeze.js +2 -0
  1179. data/node_modules/core-js/fn/object/get-own-property-descriptor.js +5 -0
  1180. data/node_modules/core-js/fn/object/get-own-property-descriptors.js +2 -0
  1181. data/node_modules/core-js/fn/object/get-own-property-names.js +5 -0
  1182. data/node_modules/core-js/fn/object/get-own-property-symbols.js +2 -0
  1183. data/node_modules/core-js/fn/object/get-prototype-of.js +2 -0
  1184. data/node_modules/core-js/fn/object/index.js +30 -0
  1185. data/node_modules/core-js/fn/object/is-extensible.js +2 -0
  1186. data/node_modules/core-js/fn/object/is-frozen.js +2 -0
  1187. data/node_modules/core-js/fn/object/is-object.js +2 -0
  1188. data/node_modules/core-js/fn/object/is-sealed.js +2 -0
  1189. data/node_modules/core-js/fn/object/is.js +2 -0
  1190. data/node_modules/core-js/fn/object/keys.js +2 -0
  1191. data/node_modules/core-js/fn/object/lookup-getter.js +2 -0
  1192. data/node_modules/core-js/fn/object/lookup-setter.js +2 -0
  1193. data/node_modules/core-js/fn/object/make.js +2 -0
  1194. data/node_modules/core-js/fn/object/prevent-extensions.js +2 -0
  1195. data/node_modules/core-js/fn/object/seal.js +2 -0
  1196. data/node_modules/core-js/fn/object/set-prototype-of.js +2 -0
  1197. data/node_modules/core-js/fn/object/values.js +2 -0
  1198. data/node_modules/core-js/fn/observable.js +7 -0
  1199. data/node_modules/core-js/fn/parse-float.js +2 -0
  1200. data/node_modules/core-js/fn/parse-int.js +2 -0
  1201. data/node_modules/core-js/fn/promise/finally.js +4 -0
  1202. data/node_modules/core-js/fn/promise/index.js +7 -0
  1203. data/node_modules/core-js/fn/promise/try.js +8 -0
  1204. data/node_modules/core-js/fn/promise.js +7 -0
  1205. data/node_modules/core-js/fn/reflect/apply.js +2 -0
  1206. data/node_modules/core-js/fn/reflect/construct.js +2 -0
  1207. data/node_modules/core-js/fn/reflect/define-metadata.js +2 -0
  1208. data/node_modules/core-js/fn/reflect/define-property.js +2 -0
  1209. data/node_modules/core-js/fn/reflect/delete-metadata.js +2 -0
  1210. data/node_modules/core-js/fn/reflect/delete-property.js +2 -0
  1211. data/node_modules/core-js/fn/reflect/enumerate.js +2 -0
  1212. data/node_modules/core-js/fn/reflect/get-metadata-keys.js +2 -0
  1213. data/node_modules/core-js/fn/reflect/get-metadata.js +2 -0
  1214. data/node_modules/core-js/fn/reflect/get-own-metadata-keys.js +2 -0
  1215. data/node_modules/core-js/fn/reflect/get-own-metadata.js +2 -0
  1216. data/node_modules/core-js/fn/reflect/get-own-property-descriptor.js +2 -0
  1217. data/node_modules/core-js/fn/reflect/get-prototype-of.js +2 -0
  1218. data/node_modules/core-js/fn/reflect/get.js +2 -0
  1219. data/node_modules/core-js/fn/reflect/has-metadata.js +2 -0
  1220. data/node_modules/core-js/fn/reflect/has-own-metadata.js +2 -0
  1221. data/node_modules/core-js/fn/reflect/has.js +2 -0
  1222. data/node_modules/core-js/fn/reflect/index.js +24 -0
  1223. data/node_modules/core-js/fn/reflect/is-extensible.js +2 -0
  1224. data/node_modules/core-js/fn/reflect/metadata.js +2 -0
  1225. data/node_modules/core-js/fn/reflect/own-keys.js +2 -0
  1226. data/node_modules/core-js/fn/reflect/prevent-extensions.js +2 -0
  1227. data/node_modules/core-js/fn/reflect/set-prototype-of.js +2 -0
  1228. data/node_modules/core-js/fn/reflect/set.js +2 -0
  1229. data/node_modules/core-js/fn/regexp/constructor.js +2 -0
  1230. data/node_modules/core-js/fn/regexp/escape.js +2 -0
  1231. data/node_modules/core-js/fn/regexp/flags.js +5 -0
  1232. data/node_modules/core-js/fn/regexp/index.js +10 -0
  1233. data/node_modules/core-js/fn/regexp/match.js +5 -0
  1234. data/node_modules/core-js/fn/regexp/replace.js +5 -0
  1235. data/node_modules/core-js/fn/regexp/search.js +5 -0
  1236. data/node_modules/core-js/fn/regexp/split.js +5 -0
  1237. data/node_modules/core-js/fn/regexp/to-string.js +5 -0
  1238. data/node_modules/core-js/fn/set/from.js +8 -0
  1239. data/node_modules/core-js/fn/set/index.js +8 -0
  1240. data/node_modules/core-js/fn/set/of.js +8 -0
  1241. data/node_modules/core-js/fn/set-immediate.js +2 -0
  1242. data/node_modules/core-js/fn/set-interval.js +2 -0
  1243. data/node_modules/core-js/fn/set-timeout.js +2 -0
  1244. data/node_modules/core-js/fn/set.js +8 -0
  1245. data/node_modules/core-js/fn/string/anchor.js +2 -0
  1246. data/node_modules/core-js/fn/string/at.js +2 -0
  1247. data/node_modules/core-js/fn/string/big.js +2 -0
  1248. data/node_modules/core-js/fn/string/blink.js +2 -0
  1249. data/node_modules/core-js/fn/string/bold.js +2 -0
  1250. data/node_modules/core-js/fn/string/code-point-at.js +2 -0
  1251. data/node_modules/core-js/fn/string/ends-with.js +2 -0
  1252. data/node_modules/core-js/fn/string/escape-html.js +2 -0
  1253. data/node_modules/core-js/fn/string/fixed.js +2 -0
  1254. data/node_modules/core-js/fn/string/fontcolor.js +2 -0
  1255. data/node_modules/core-js/fn/string/fontsize.js +2 -0
  1256. data/node_modules/core-js/fn/string/from-code-point.js +2 -0
  1257. data/node_modules/core-js/fn/string/includes.js +2 -0
  1258. data/node_modules/core-js/fn/string/index.js +35 -0
  1259. data/node_modules/core-js/fn/string/italics.js +2 -0
  1260. data/node_modules/core-js/fn/string/iterator.js +5 -0
  1261. data/node_modules/core-js/fn/string/link.js +2 -0
  1262. data/node_modules/core-js/fn/string/match-all.js +2 -0
  1263. data/node_modules/core-js/fn/string/pad-end.js +2 -0
  1264. data/node_modules/core-js/fn/string/pad-start.js +2 -0
  1265. data/node_modules/core-js/fn/string/raw.js +2 -0
  1266. data/node_modules/core-js/fn/string/repeat.js +2 -0
  1267. data/node_modules/core-js/fn/string/small.js +2 -0
  1268. data/node_modules/core-js/fn/string/starts-with.js +2 -0
  1269. data/node_modules/core-js/fn/string/strike.js +2 -0
  1270. data/node_modules/core-js/fn/string/sub.js +2 -0
  1271. data/node_modules/core-js/fn/string/sup.js +2 -0
  1272. data/node_modules/core-js/fn/string/trim-end.js +2 -0
  1273. data/node_modules/core-js/fn/string/trim-left.js +2 -0
  1274. data/node_modules/core-js/fn/string/trim-right.js +2 -0
  1275. data/node_modules/core-js/fn/string/trim-start.js +2 -0
  1276. data/node_modules/core-js/fn/string/trim.js +2 -0
  1277. data/node_modules/core-js/fn/string/unescape-html.js +2 -0
  1278. data/node_modules/core-js/fn/string/virtual/anchor.js +2 -0
  1279. data/node_modules/core-js/fn/string/virtual/at.js +2 -0
  1280. data/node_modules/core-js/fn/string/virtual/big.js +2 -0
  1281. data/node_modules/core-js/fn/string/virtual/blink.js +2 -0
  1282. data/node_modules/core-js/fn/string/virtual/bold.js +2 -0
  1283. data/node_modules/core-js/fn/string/virtual/code-point-at.js +2 -0
  1284. data/node_modules/core-js/fn/string/virtual/ends-with.js +2 -0
  1285. data/node_modules/core-js/fn/string/virtual/escape-html.js +2 -0
  1286. data/node_modules/core-js/fn/string/virtual/fixed.js +2 -0
  1287. data/node_modules/core-js/fn/string/virtual/fontcolor.js +2 -0
  1288. data/node_modules/core-js/fn/string/virtual/fontsize.js +2 -0
  1289. data/node_modules/core-js/fn/string/virtual/includes.js +2 -0
  1290. data/node_modules/core-js/fn/string/virtual/index.js +33 -0
  1291. data/node_modules/core-js/fn/string/virtual/italics.js +2 -0
  1292. data/node_modules/core-js/fn/string/virtual/iterator.js +2 -0
  1293. data/node_modules/core-js/fn/string/virtual/link.js +2 -0
  1294. data/node_modules/core-js/fn/string/virtual/match-all.js +2 -0
  1295. data/node_modules/core-js/fn/string/virtual/pad-end.js +2 -0
  1296. data/node_modules/core-js/fn/string/virtual/pad-start.js +2 -0
  1297. data/node_modules/core-js/fn/string/virtual/repeat.js +2 -0
  1298. data/node_modules/core-js/fn/string/virtual/small.js +2 -0
  1299. data/node_modules/core-js/fn/string/virtual/starts-with.js +2 -0
  1300. data/node_modules/core-js/fn/string/virtual/strike.js +2 -0
  1301. data/node_modules/core-js/fn/string/virtual/sub.js +2 -0
  1302. data/node_modules/core-js/fn/string/virtual/sup.js +2 -0
  1303. data/node_modules/core-js/fn/string/virtual/trim-end.js +2 -0
  1304. data/node_modules/core-js/fn/string/virtual/trim-left.js +2 -0
  1305. data/node_modules/core-js/fn/string/virtual/trim-right.js +2 -0
  1306. data/node_modules/core-js/fn/string/virtual/trim-start.js +2 -0
  1307. data/node_modules/core-js/fn/string/virtual/trim.js +2 -0
  1308. data/node_modules/core-js/fn/string/virtual/unescape-html.js +2 -0
  1309. data/node_modules/core-js/fn/symbol/async-iterator.js +2 -0
  1310. data/node_modules/core-js/fn/symbol/for.js +2 -0
  1311. data/node_modules/core-js/fn/symbol/has-instance.js +2 -0
  1312. data/node_modules/core-js/fn/symbol/index.js +5 -0
  1313. data/node_modules/core-js/fn/symbol/is-concat-spreadable.js +1 -0
  1314. data/node_modules/core-js/fn/symbol/iterator.js +3 -0
  1315. data/node_modules/core-js/fn/symbol/key-for.js +2 -0
  1316. data/node_modules/core-js/fn/symbol/match.js +2 -0
  1317. data/node_modules/core-js/fn/symbol/observable.js +2 -0
  1318. data/node_modules/core-js/fn/symbol/replace.js +2 -0
  1319. data/node_modules/core-js/fn/symbol/search.js +2 -0
  1320. data/node_modules/core-js/fn/symbol/species.js +1 -0
  1321. data/node_modules/core-js/fn/symbol/split.js +2 -0
  1322. data/node_modules/core-js/fn/symbol/to-primitive.js +1 -0
  1323. data/node_modules/core-js/fn/symbol/to-string-tag.js +2 -0
  1324. data/node_modules/core-js/fn/symbol/unscopables.js +1 -0
  1325. data/node_modules/core-js/fn/system/global.js +2 -0
  1326. data/node_modules/core-js/fn/system/index.js +2 -0
  1327. data/node_modules/core-js/fn/typed/array-buffer.js +3 -0
  1328. data/node_modules/core-js/fn/typed/data-view.js +3 -0
  1329. data/node_modules/core-js/fn/typed/float32-array.js +2 -0
  1330. data/node_modules/core-js/fn/typed/float64-array.js +2 -0
  1331. data/node_modules/core-js/fn/typed/index.js +13 -0
  1332. data/node_modules/core-js/fn/typed/int16-array.js +2 -0
  1333. data/node_modules/core-js/fn/typed/int32-array.js +2 -0
  1334. data/node_modules/core-js/fn/typed/int8-array.js +2 -0
  1335. data/node_modules/core-js/fn/typed/uint16-array.js +2 -0
  1336. data/node_modules/core-js/fn/typed/uint32-array.js +2 -0
  1337. data/node_modules/core-js/fn/typed/uint8-array.js +2 -0
  1338. data/node_modules/core-js/fn/typed/uint8-clamped-array.js +2 -0
  1339. data/node_modules/core-js/fn/weak-map/from.js +8 -0
  1340. data/node_modules/core-js/fn/weak-map/index.js +6 -0
  1341. data/node_modules/core-js/fn/weak-map/of.js +8 -0
  1342. data/node_modules/core-js/fn/weak-map.js +6 -0
  1343. data/node_modules/core-js/fn/weak-set/from.js +8 -0
  1344. data/node_modules/core-js/fn/weak-set/index.js +6 -0
  1345. data/node_modules/core-js/fn/weak-set/of.js +8 -0
  1346. data/node_modules/core-js/fn/weak-set.js +6 -0
  1347. data/node_modules/core-js/index.js +16 -0
  1348. data/node_modules/core-js/library/core/_.js +2 -0
  1349. data/node_modules/core-js/library/core/delay.js +2 -0
  1350. data/node_modules/core-js/library/core/dict.js +2 -0
  1351. data/node_modules/core-js/library/core/function.js +2 -0
  1352. data/node_modules/core-js/library/core/index.js +15 -0
  1353. data/node_modules/core-js/library/core/number.js +2 -0
  1354. data/node_modules/core-js/library/core/object.js +5 -0
  1355. data/node_modules/core-js/library/core/regexp.js +2 -0
  1356. data/node_modules/core-js/library/core/string.js +3 -0
  1357. data/node_modules/core-js/library/es5/index.js +37 -0
  1358. data/node_modules/core-js/library/es6/array.js +23 -0
  1359. data/node_modules/core-js/library/es6/date.js +6 -0
  1360. data/node_modules/core-js/library/es6/function.js +4 -0
  1361. data/node_modules/core-js/library/es6/index.js +139 -0
  1362. data/node_modules/core-js/library/es6/map.js +5 -0
  1363. data/node_modules/core-js/library/es6/math.js +18 -0
  1364. data/node_modules/core-js/library/es6/number.js +13 -0
  1365. data/node_modules/core-js/library/es6/object.js +20 -0
  1366. data/node_modules/core-js/library/es6/parse-float.js +2 -0
  1367. data/node_modules/core-js/library/es6/parse-int.js +2 -0
  1368. data/node_modules/core-js/library/es6/promise.js +5 -0
  1369. data/node_modules/core-js/library/es6/reflect.js +15 -0
  1370. data/node_modules/core-js/library/es6/regexp.js +9 -0
  1371. data/node_modules/core-js/library/es6/set.js +5 -0
  1372. data/node_modules/core-js/library/es6/string.js +27 -0
  1373. data/node_modules/core-js/library/es6/symbol.js +3 -0
  1374. data/node_modules/core-js/library/es6/typed.js +13 -0
  1375. data/node_modules/core-js/library/es6/weak-map.js +4 -0
  1376. data/node_modules/core-js/library/es6/weak-set.js +4 -0
  1377. data/node_modules/core-js/library/es7/array.js +4 -0
  1378. data/node_modules/core-js/library/es7/asap.js +2 -0
  1379. data/node_modules/core-js/library/es7/error.js +2 -0
  1380. data/node_modules/core-js/library/es7/global.js +2 -0
  1381. data/node_modules/core-js/library/es7/index.js +56 -0
  1382. data/node_modules/core-js/library/es7/map.js +4 -0
  1383. data/node_modules/core-js/library/es7/math.js +13 -0
  1384. data/node_modules/core-js/library/es7/object.js +8 -0
  1385. data/node_modules/core-js/library/es7/observable.js +7 -0
  1386. data/node_modules/core-js/library/es7/promise.js +3 -0
  1387. data/node_modules/core-js/library/es7/reflect.js +10 -0
  1388. data/node_modules/core-js/library/es7/set.js +4 -0
  1389. data/node_modules/core-js/library/es7/string.js +7 -0
  1390. data/node_modules/core-js/library/es7/symbol.js +3 -0
  1391. data/node_modules/core-js/library/es7/system.js +2 -0
  1392. data/node_modules/core-js/library/es7/weak-map.js +3 -0
  1393. data/node_modules/core-js/library/es7/weak-set.js +3 -0
  1394. data/node_modules/core-js/library/fn/_.js +2 -0
  1395. data/node_modules/core-js/library/fn/array/concat.js +4 -0
  1396. data/node_modules/core-js/library/fn/array/copy-within.js +2 -0
  1397. data/node_modules/core-js/library/fn/array/entries.js +2 -0
  1398. data/node_modules/core-js/library/fn/array/every.js +2 -0
  1399. data/node_modules/core-js/library/fn/array/fill.js +2 -0
  1400. data/node_modules/core-js/library/fn/array/filter.js +2 -0
  1401. data/node_modules/core-js/library/fn/array/find-index.js +2 -0
  1402. data/node_modules/core-js/library/fn/array/find.js +2 -0
  1403. data/node_modules/core-js/library/fn/array/flat-map.js +2 -0
  1404. data/node_modules/core-js/library/fn/array/flatten.js +2 -0
  1405. data/node_modules/core-js/library/fn/array/for-each.js +2 -0
  1406. data/node_modules/core-js/library/fn/array/from.js +3 -0
  1407. data/node_modules/core-js/library/fn/array/includes.js +2 -0
  1408. data/node_modules/core-js/library/fn/array/index-of.js +2 -0
  1409. data/node_modules/core-js/library/fn/array/index.js +26 -0
  1410. data/node_modules/core-js/library/fn/array/is-array.js +2 -0
  1411. data/node_modules/core-js/library/fn/array/iterator.js +2 -0
  1412. data/node_modules/core-js/library/fn/array/join.js +2 -0
  1413. data/node_modules/core-js/library/fn/array/keys.js +2 -0
  1414. data/node_modules/core-js/library/fn/array/last-index-of.js +2 -0
  1415. data/node_modules/core-js/library/fn/array/map.js +2 -0
  1416. data/node_modules/core-js/library/fn/array/of.js +2 -0
  1417. data/node_modules/core-js/library/fn/array/pop.js +4 -0
  1418. data/node_modules/core-js/library/fn/array/push.js +4 -0
  1419. data/node_modules/core-js/library/fn/array/reduce-right.js +2 -0
  1420. data/node_modules/core-js/library/fn/array/reduce.js +2 -0
  1421. data/node_modules/core-js/library/fn/array/reverse.js +4 -0
  1422. data/node_modules/core-js/library/fn/array/shift.js +4 -0
  1423. data/node_modules/core-js/library/fn/array/slice.js +2 -0
  1424. data/node_modules/core-js/library/fn/array/some.js +2 -0
  1425. data/node_modules/core-js/library/fn/array/sort.js +2 -0
  1426. data/node_modules/core-js/library/fn/array/splice.js +4 -0
  1427. data/node_modules/core-js/library/fn/array/unshift.js +4 -0
  1428. data/node_modules/core-js/library/fn/array/values.js +2 -0
  1429. data/node_modules/core-js/library/fn/array/virtual/copy-within.js +2 -0
  1430. data/node_modules/core-js/library/fn/array/virtual/entries.js +2 -0
  1431. data/node_modules/core-js/library/fn/array/virtual/every.js +2 -0
  1432. data/node_modules/core-js/library/fn/array/virtual/fill.js +2 -0
  1433. data/node_modules/core-js/library/fn/array/virtual/filter.js +2 -0
  1434. data/node_modules/core-js/library/fn/array/virtual/find-index.js +2 -0
  1435. data/node_modules/core-js/library/fn/array/virtual/find.js +2 -0
  1436. data/node_modules/core-js/library/fn/array/virtual/flat-map.js +2 -0
  1437. data/node_modules/core-js/library/fn/array/virtual/flatten.js +2 -0
  1438. data/node_modules/core-js/library/fn/array/virtual/for-each.js +2 -0
  1439. data/node_modules/core-js/library/fn/array/virtual/includes.js +2 -0
  1440. data/node_modules/core-js/library/fn/array/virtual/index-of.js +2 -0
  1441. data/node_modules/core-js/library/fn/array/virtual/index.js +20 -0
  1442. data/node_modules/core-js/library/fn/array/virtual/iterator.js +2 -0
  1443. data/node_modules/core-js/library/fn/array/virtual/join.js +2 -0
  1444. data/node_modules/core-js/library/fn/array/virtual/keys.js +2 -0
  1445. data/node_modules/core-js/library/fn/array/virtual/last-index-of.js +2 -0
  1446. data/node_modules/core-js/library/fn/array/virtual/map.js +2 -0
  1447. data/node_modules/core-js/library/fn/array/virtual/reduce-right.js +2 -0
  1448. data/node_modules/core-js/library/fn/array/virtual/reduce.js +2 -0
  1449. data/node_modules/core-js/library/fn/array/virtual/slice.js +2 -0
  1450. data/node_modules/core-js/library/fn/array/virtual/some.js +2 -0
  1451. data/node_modules/core-js/library/fn/array/virtual/sort.js +2 -0
  1452. data/node_modules/core-js/library/fn/array/virtual/values.js +2 -0
  1453. data/node_modules/core-js/library/fn/asap.js +2 -0
  1454. data/node_modules/core-js/library/fn/clear-immediate.js +2 -0
  1455. data/node_modules/core-js/library/fn/date/index.js +6 -0
  1456. data/node_modules/core-js/library/fn/date/now.js +2 -0
  1457. data/node_modules/core-js/library/fn/date/to-iso-string.js +3 -0
  1458. data/node_modules/core-js/library/fn/date/to-json.js +2 -0
  1459. data/node_modules/core-js/library/fn/date/to-primitive.js +5 -0
  1460. data/node_modules/core-js/library/fn/date/to-string.js +5 -0
  1461. data/node_modules/core-js/library/fn/delay.js +2 -0
  1462. data/node_modules/core-js/library/fn/dict.js +2 -0
  1463. data/node_modules/core-js/library/fn/dom-collections/index.js +8 -0
  1464. data/node_modules/core-js/library/fn/dom-collections/iterator.js +2 -0
  1465. data/node_modules/core-js/library/fn/error/index.js +2 -0
  1466. data/node_modules/core-js/library/fn/error/is-error.js +2 -0
  1467. data/node_modules/core-js/library/fn/function/bind.js +2 -0
  1468. data/node_modules/core-js/library/fn/function/has-instance.js +2 -0
  1469. data/node_modules/core-js/library/fn/function/index.js +5 -0
  1470. data/node_modules/core-js/library/fn/function/name.js +1 -0
  1471. data/node_modules/core-js/library/fn/function/part.js +2 -0
  1472. data/node_modules/core-js/library/fn/function/virtual/bind.js +2 -0
  1473. data/node_modules/core-js/library/fn/function/virtual/index.js +3 -0
  1474. data/node_modules/core-js/library/fn/function/virtual/part.js +2 -0
  1475. data/node_modules/core-js/library/fn/get-iterator-method.js +3 -0
  1476. data/node_modules/core-js/library/fn/get-iterator.js +3 -0
  1477. data/node_modules/core-js/library/fn/global.js +2 -0
  1478. data/node_modules/core-js/library/fn/is-iterable.js +3 -0
  1479. data/node_modules/core-js/library/fn/json/index.js +2 -0
  1480. data/node_modules/core-js/library/fn/json/stringify.js +5 -0
  1481. data/node_modules/core-js/library/fn/map/from.js +8 -0
  1482. data/node_modules/core-js/library/fn/map/index.js +8 -0
  1483. data/node_modules/core-js/library/fn/map/of.js +8 -0
  1484. data/node_modules/core-js/library/fn/map.js +8 -0
  1485. data/node_modules/core-js/library/fn/math/acosh.js +2 -0
  1486. data/node_modules/core-js/library/fn/math/asinh.js +2 -0
  1487. data/node_modules/core-js/library/fn/math/atanh.js +2 -0
  1488. data/node_modules/core-js/library/fn/math/cbrt.js +2 -0
  1489. data/node_modules/core-js/library/fn/math/clamp.js +2 -0
  1490. data/node_modules/core-js/library/fn/math/clz32.js +2 -0
  1491. data/node_modules/core-js/library/fn/math/cosh.js +2 -0
  1492. data/node_modules/core-js/library/fn/math/deg-per-rad.js +2 -0
  1493. data/node_modules/core-js/library/fn/math/degrees.js +2 -0
  1494. data/node_modules/core-js/library/fn/math/expm1.js +2 -0
  1495. data/node_modules/core-js/library/fn/math/fround.js +2 -0
  1496. data/node_modules/core-js/library/fn/math/fscale.js +2 -0
  1497. data/node_modules/core-js/library/fn/math/hypot.js +2 -0
  1498. data/node_modules/core-js/library/fn/math/iaddh.js +2 -0
  1499. data/node_modules/core-js/library/fn/math/imul.js +2 -0
  1500. data/node_modules/core-js/library/fn/math/imulh.js +2 -0
  1501. data/node_modules/core-js/library/fn/math/index.js +30 -0
  1502. data/node_modules/core-js/library/fn/math/isubh.js +2 -0
  1503. data/node_modules/core-js/library/fn/math/log10.js +2 -0
  1504. data/node_modules/core-js/library/fn/math/log1p.js +2 -0
  1505. data/node_modules/core-js/library/fn/math/log2.js +2 -0
  1506. data/node_modules/core-js/library/fn/math/rad-per-deg.js +2 -0
  1507. data/node_modules/core-js/library/fn/math/radians.js +2 -0
  1508. data/node_modules/core-js/library/fn/math/scale.js +2 -0
  1509. data/node_modules/core-js/library/fn/math/sign.js +2 -0
  1510. data/node_modules/core-js/library/fn/math/signbit.js +3 -0
  1511. data/node_modules/core-js/library/fn/math/sinh.js +2 -0
  1512. data/node_modules/core-js/library/fn/math/tanh.js +2 -0
  1513. data/node_modules/core-js/library/fn/math/trunc.js +2 -0
  1514. data/node_modules/core-js/library/fn/math/umulh.js +2 -0
  1515. data/node_modules/core-js/library/fn/number/constructor.js +2 -0
  1516. data/node_modules/core-js/library/fn/number/epsilon.js +2 -0
  1517. data/node_modules/core-js/library/fn/number/index.js +14 -0
  1518. data/node_modules/core-js/library/fn/number/is-finite.js +2 -0
  1519. data/node_modules/core-js/library/fn/number/is-integer.js +2 -0
  1520. data/node_modules/core-js/library/fn/number/is-nan.js +2 -0
  1521. data/node_modules/core-js/library/fn/number/is-safe-integer.js +2 -0
  1522. data/node_modules/core-js/library/fn/number/iterator.js +5 -0
  1523. data/node_modules/core-js/library/fn/number/max-safe-integer.js +2 -0
  1524. data/node_modules/core-js/library/fn/number/min-safe-integer.js +2 -0
  1525. data/node_modules/core-js/library/fn/number/parse-float.js +2 -0
  1526. data/node_modules/core-js/library/fn/number/parse-int.js +2 -0
  1527. data/node_modules/core-js/library/fn/number/to-fixed.js +2 -0
  1528. data/node_modules/core-js/library/fn/number/to-precision.js +2 -0
  1529. data/node_modules/core-js/library/fn/number/virtual/index.js +4 -0
  1530. data/node_modules/core-js/library/fn/number/virtual/iterator.js +2 -0
  1531. data/node_modules/core-js/library/fn/number/virtual/to-fixed.js +2 -0
  1532. data/node_modules/core-js/library/fn/number/virtual/to-precision.js +2 -0
  1533. data/node_modules/core-js/library/fn/object/assign.js +2 -0
  1534. data/node_modules/core-js/library/fn/object/classof.js +2 -0
  1535. data/node_modules/core-js/library/fn/object/create.js +5 -0
  1536. data/node_modules/core-js/library/fn/object/define-getter.js +2 -0
  1537. data/node_modules/core-js/library/fn/object/define-properties.js +5 -0
  1538. data/node_modules/core-js/library/fn/object/define-property.js +5 -0
  1539. data/node_modules/core-js/library/fn/object/define-setter.js +2 -0
  1540. data/node_modules/core-js/library/fn/object/define.js +2 -0
  1541. data/node_modules/core-js/library/fn/object/entries.js +2 -0
  1542. data/node_modules/core-js/library/fn/object/freeze.js +2 -0
  1543. data/node_modules/core-js/library/fn/object/get-own-property-descriptor.js +5 -0
  1544. data/node_modules/core-js/library/fn/object/get-own-property-descriptors.js +2 -0
  1545. data/node_modules/core-js/library/fn/object/get-own-property-names.js +5 -0
  1546. data/node_modules/core-js/library/fn/object/get-own-property-symbols.js +2 -0
  1547. data/node_modules/core-js/library/fn/object/get-prototype-of.js +2 -0
  1548. data/node_modules/core-js/library/fn/object/index.js +30 -0
  1549. data/node_modules/core-js/library/fn/object/is-extensible.js +2 -0
  1550. data/node_modules/core-js/library/fn/object/is-frozen.js +2 -0
  1551. data/node_modules/core-js/library/fn/object/is-object.js +2 -0
  1552. data/node_modules/core-js/library/fn/object/is-sealed.js +2 -0
  1553. data/node_modules/core-js/library/fn/object/is.js +2 -0
  1554. data/node_modules/core-js/library/fn/object/keys.js +2 -0
  1555. data/node_modules/core-js/library/fn/object/lookup-getter.js +2 -0
  1556. data/node_modules/core-js/library/fn/object/lookup-setter.js +2 -0
  1557. data/node_modules/core-js/library/fn/object/make.js +2 -0
  1558. data/node_modules/core-js/library/fn/object/prevent-extensions.js +2 -0
  1559. data/node_modules/core-js/library/fn/object/seal.js +2 -0
  1560. data/node_modules/core-js/library/fn/object/set-prototype-of.js +2 -0
  1561. data/node_modules/core-js/library/fn/object/values.js +2 -0
  1562. data/node_modules/core-js/library/fn/observable.js +7 -0
  1563. data/node_modules/core-js/library/fn/parse-float.js +2 -0
  1564. data/node_modules/core-js/library/fn/parse-int.js +2 -0
  1565. data/node_modules/core-js/library/fn/promise/finally.js +4 -0
  1566. data/node_modules/core-js/library/fn/promise/index.js +7 -0
  1567. data/node_modules/core-js/library/fn/promise/try.js +8 -0
  1568. data/node_modules/core-js/library/fn/promise.js +7 -0
  1569. data/node_modules/core-js/library/fn/reflect/apply.js +2 -0
  1570. data/node_modules/core-js/library/fn/reflect/construct.js +2 -0
  1571. data/node_modules/core-js/library/fn/reflect/define-metadata.js +2 -0
  1572. data/node_modules/core-js/library/fn/reflect/define-property.js +2 -0
  1573. data/node_modules/core-js/library/fn/reflect/delete-metadata.js +2 -0
  1574. data/node_modules/core-js/library/fn/reflect/delete-property.js +2 -0
  1575. data/node_modules/core-js/library/fn/reflect/enumerate.js +2 -0
  1576. data/node_modules/core-js/library/fn/reflect/get-metadata-keys.js +2 -0
  1577. data/node_modules/core-js/library/fn/reflect/get-metadata.js +2 -0
  1578. data/node_modules/core-js/library/fn/reflect/get-own-metadata-keys.js +2 -0
  1579. data/node_modules/core-js/library/fn/reflect/get-own-metadata.js +2 -0
  1580. data/node_modules/core-js/library/fn/reflect/get-own-property-descriptor.js +2 -0
  1581. data/node_modules/core-js/library/fn/reflect/get-prototype-of.js +2 -0
  1582. data/node_modules/core-js/library/fn/reflect/get.js +2 -0
  1583. data/node_modules/core-js/library/fn/reflect/has-metadata.js +2 -0
  1584. data/node_modules/core-js/library/fn/reflect/has-own-metadata.js +2 -0
  1585. data/node_modules/core-js/library/fn/reflect/has.js +2 -0
  1586. data/node_modules/core-js/library/fn/reflect/index.js +24 -0
  1587. data/node_modules/core-js/library/fn/reflect/is-extensible.js +2 -0
  1588. data/node_modules/core-js/library/fn/reflect/metadata.js +2 -0
  1589. data/node_modules/core-js/library/fn/reflect/own-keys.js +2 -0
  1590. data/node_modules/core-js/library/fn/reflect/prevent-extensions.js +2 -0
  1591. data/node_modules/core-js/library/fn/reflect/set-prototype-of.js +2 -0
  1592. data/node_modules/core-js/library/fn/reflect/set.js +2 -0
  1593. data/node_modules/core-js/library/fn/regexp/constructor.js +2 -0
  1594. data/node_modules/core-js/library/fn/regexp/escape.js +2 -0
  1595. data/node_modules/core-js/library/fn/regexp/flags.js +5 -0
  1596. data/node_modules/core-js/library/fn/regexp/index.js +10 -0
  1597. data/node_modules/core-js/library/fn/regexp/match.js +5 -0
  1598. data/node_modules/core-js/library/fn/regexp/replace.js +5 -0
  1599. data/node_modules/core-js/library/fn/regexp/search.js +5 -0
  1600. data/node_modules/core-js/library/fn/regexp/split.js +5 -0
  1601. data/node_modules/core-js/library/fn/regexp/to-string.js +5 -0
  1602. data/node_modules/core-js/library/fn/set/from.js +8 -0
  1603. data/node_modules/core-js/library/fn/set/index.js +8 -0
  1604. data/node_modules/core-js/library/fn/set/of.js +8 -0
  1605. data/node_modules/core-js/library/fn/set-immediate.js +2 -0
  1606. data/node_modules/core-js/library/fn/set-interval.js +2 -0
  1607. data/node_modules/core-js/library/fn/set-timeout.js +2 -0
  1608. data/node_modules/core-js/library/fn/set.js +8 -0
  1609. data/node_modules/core-js/library/fn/string/anchor.js +2 -0
  1610. data/node_modules/core-js/library/fn/string/at.js +2 -0
  1611. data/node_modules/core-js/library/fn/string/big.js +2 -0
  1612. data/node_modules/core-js/library/fn/string/blink.js +2 -0
  1613. data/node_modules/core-js/library/fn/string/bold.js +2 -0
  1614. data/node_modules/core-js/library/fn/string/code-point-at.js +2 -0
  1615. data/node_modules/core-js/library/fn/string/ends-with.js +2 -0
  1616. data/node_modules/core-js/library/fn/string/escape-html.js +2 -0
  1617. data/node_modules/core-js/library/fn/string/fixed.js +2 -0
  1618. data/node_modules/core-js/library/fn/string/fontcolor.js +2 -0
  1619. data/node_modules/core-js/library/fn/string/fontsize.js +2 -0
  1620. data/node_modules/core-js/library/fn/string/from-code-point.js +2 -0
  1621. data/node_modules/core-js/library/fn/string/includes.js +2 -0
  1622. data/node_modules/core-js/library/fn/string/index.js +35 -0
  1623. data/node_modules/core-js/library/fn/string/italics.js +2 -0
  1624. data/node_modules/core-js/library/fn/string/iterator.js +5 -0
  1625. data/node_modules/core-js/library/fn/string/link.js +2 -0
  1626. data/node_modules/core-js/library/fn/string/match-all.js +2 -0
  1627. data/node_modules/core-js/library/fn/string/pad-end.js +2 -0
  1628. data/node_modules/core-js/library/fn/string/pad-start.js +2 -0
  1629. data/node_modules/core-js/library/fn/string/raw.js +2 -0
  1630. data/node_modules/core-js/library/fn/string/repeat.js +2 -0
  1631. data/node_modules/core-js/library/fn/string/small.js +2 -0
  1632. data/node_modules/core-js/library/fn/string/starts-with.js +2 -0
  1633. data/node_modules/core-js/library/fn/string/strike.js +2 -0
  1634. data/node_modules/core-js/library/fn/string/sub.js +2 -0
  1635. data/node_modules/core-js/library/fn/string/sup.js +2 -0
  1636. data/node_modules/core-js/library/fn/string/trim-end.js +2 -0
  1637. data/node_modules/core-js/library/fn/string/trim-left.js +2 -0
  1638. data/node_modules/core-js/library/fn/string/trim-right.js +2 -0
  1639. data/node_modules/core-js/library/fn/string/trim-start.js +2 -0
  1640. data/node_modules/core-js/library/fn/string/trim.js +2 -0
  1641. data/node_modules/core-js/library/fn/string/unescape-html.js +2 -0
  1642. data/node_modules/core-js/library/fn/string/virtual/anchor.js +2 -0
  1643. data/node_modules/core-js/library/fn/string/virtual/at.js +2 -0
  1644. data/node_modules/core-js/library/fn/string/virtual/big.js +2 -0
  1645. data/node_modules/core-js/library/fn/string/virtual/blink.js +2 -0
  1646. data/node_modules/core-js/library/fn/string/virtual/bold.js +2 -0
  1647. data/node_modules/core-js/library/fn/string/virtual/code-point-at.js +2 -0
  1648. data/node_modules/core-js/library/fn/string/virtual/ends-with.js +2 -0
  1649. data/node_modules/core-js/library/fn/string/virtual/escape-html.js +2 -0
  1650. data/node_modules/core-js/library/fn/string/virtual/fixed.js +2 -0
  1651. data/node_modules/core-js/library/fn/string/virtual/fontcolor.js +2 -0
  1652. data/node_modules/core-js/library/fn/string/virtual/fontsize.js +2 -0
  1653. data/node_modules/core-js/library/fn/string/virtual/includes.js +2 -0
  1654. data/node_modules/core-js/library/fn/string/virtual/index.js +33 -0
  1655. data/node_modules/core-js/library/fn/string/virtual/italics.js +2 -0
  1656. data/node_modules/core-js/library/fn/string/virtual/iterator.js +2 -0
  1657. data/node_modules/core-js/library/fn/string/virtual/link.js +2 -0
  1658. data/node_modules/core-js/library/fn/string/virtual/match-all.js +2 -0
  1659. data/node_modules/core-js/library/fn/string/virtual/pad-end.js +2 -0
  1660. data/node_modules/core-js/library/fn/string/virtual/pad-start.js +2 -0
  1661. data/node_modules/core-js/library/fn/string/virtual/repeat.js +2 -0
  1662. data/node_modules/core-js/library/fn/string/virtual/small.js +2 -0
  1663. data/node_modules/core-js/library/fn/string/virtual/starts-with.js +2 -0
  1664. data/node_modules/core-js/library/fn/string/virtual/strike.js +2 -0
  1665. data/node_modules/core-js/library/fn/string/virtual/sub.js +2 -0
  1666. data/node_modules/core-js/library/fn/string/virtual/sup.js +2 -0
  1667. data/node_modules/core-js/library/fn/string/virtual/trim-end.js +2 -0
  1668. data/node_modules/core-js/library/fn/string/virtual/trim-left.js +2 -0
  1669. data/node_modules/core-js/library/fn/string/virtual/trim-right.js +2 -0
  1670. data/node_modules/core-js/library/fn/string/virtual/trim-start.js +2 -0
  1671. data/node_modules/core-js/library/fn/string/virtual/trim.js +2 -0
  1672. data/node_modules/core-js/library/fn/string/virtual/unescape-html.js +2 -0
  1673. data/node_modules/core-js/library/fn/symbol/async-iterator.js +2 -0
  1674. data/node_modules/core-js/library/fn/symbol/for.js +2 -0
  1675. data/node_modules/core-js/library/fn/symbol/has-instance.js +2 -0
  1676. data/node_modules/core-js/library/fn/symbol/index.js +5 -0
  1677. data/node_modules/core-js/library/fn/symbol/is-concat-spreadable.js +1 -0
  1678. data/node_modules/core-js/library/fn/symbol/iterator.js +3 -0
  1679. data/node_modules/core-js/library/fn/symbol/key-for.js +2 -0
  1680. data/node_modules/core-js/library/fn/symbol/match.js +2 -0
  1681. data/node_modules/core-js/library/fn/symbol/observable.js +2 -0
  1682. data/node_modules/core-js/library/fn/symbol/replace.js +2 -0
  1683. data/node_modules/core-js/library/fn/symbol/search.js +2 -0
  1684. data/node_modules/core-js/library/fn/symbol/species.js +1 -0
  1685. data/node_modules/core-js/library/fn/symbol/split.js +2 -0
  1686. data/node_modules/core-js/library/fn/symbol/to-primitive.js +1 -0
  1687. data/node_modules/core-js/library/fn/symbol/to-string-tag.js +2 -0
  1688. data/node_modules/core-js/library/fn/symbol/unscopables.js +1 -0
  1689. data/node_modules/core-js/library/fn/system/global.js +2 -0
  1690. data/node_modules/core-js/library/fn/system/index.js +2 -0
  1691. data/node_modules/core-js/library/fn/typed/array-buffer.js +3 -0
  1692. data/node_modules/core-js/library/fn/typed/data-view.js +3 -0
  1693. data/node_modules/core-js/library/fn/typed/float32-array.js +2 -0
  1694. data/node_modules/core-js/library/fn/typed/float64-array.js +2 -0
  1695. data/node_modules/core-js/library/fn/typed/index.js +13 -0
  1696. data/node_modules/core-js/library/fn/typed/int16-array.js +2 -0
  1697. data/node_modules/core-js/library/fn/typed/int32-array.js +2 -0
  1698. data/node_modules/core-js/library/fn/typed/int8-array.js +2 -0
  1699. data/node_modules/core-js/library/fn/typed/uint16-array.js +2 -0
  1700. data/node_modules/core-js/library/fn/typed/uint32-array.js +2 -0
  1701. data/node_modules/core-js/library/fn/typed/uint8-array.js +2 -0
  1702. data/node_modules/core-js/library/fn/typed/uint8-clamped-array.js +2 -0
  1703. data/node_modules/core-js/library/fn/weak-map/from.js +8 -0
  1704. data/node_modules/core-js/library/fn/weak-map/index.js +6 -0
  1705. data/node_modules/core-js/library/fn/weak-map/of.js +8 -0
  1706. data/node_modules/core-js/library/fn/weak-map.js +6 -0
  1707. data/node_modules/core-js/library/fn/weak-set/from.js +8 -0
  1708. data/node_modules/core-js/library/fn/weak-set/index.js +6 -0
  1709. data/node_modules/core-js/library/fn/weak-set/of.js +8 -0
  1710. data/node_modules/core-js/library/fn/weak-set.js +6 -0
  1711. data/node_modules/core-js/library/index.js +16 -0
  1712. data/node_modules/core-js/library/modules/_a-function.js +4 -0
  1713. data/node_modules/core-js/library/modules/_a-number-value.js +5 -0
  1714. data/node_modules/core-js/library/modules/_add-to-unscopables.js +1 -0
  1715. data/node_modules/core-js/library/modules/_advance-string-index.js +8 -0
  1716. data/node_modules/core-js/library/modules/_an-instance.js +5 -0
  1717. data/node_modules/core-js/library/modules/_an-object.js +5 -0
  1718. data/node_modules/core-js/library/modules/_array-copy-within.js +26 -0
  1719. data/node_modules/core-js/library/modules/_array-fill.js +15 -0
  1720. data/node_modules/core-js/library/modules/_array-from-iterable.js +7 -0
  1721. data/node_modules/core-js/library/modules/_array-includes.js +23 -0
  1722. data/node_modules/core-js/library/modules/_array-methods.js +44 -0
  1723. data/node_modules/core-js/library/modules/_array-reduce.js +28 -0
  1724. data/node_modules/core-js/library/modules/_array-species-constructor.js +16 -0
  1725. data/node_modules/core-js/library/modules/_array-species-create.js +6 -0
  1726. data/node_modules/core-js/library/modules/_bind.js +25 -0
  1727. data/node_modules/core-js/library/modules/_classof.js +23 -0
  1728. data/node_modules/core-js/library/modules/_cof.js +5 -0
  1729. data/node_modules/core-js/library/modules/_collection-strong.js +144 -0
  1730. data/node_modules/core-js/library/modules/_collection-to-json.js +9 -0
  1731. data/node_modules/core-js/library/modules/_collection-weak.js +85 -0
  1732. data/node_modules/core-js/library/modules/_collection.js +59 -0
  1733. data/node_modules/core-js/library/modules/_core.js +2 -0
  1734. data/node_modules/core-js/library/modules/_create-property.js +8 -0
  1735. data/node_modules/core-js/library/modules/_ctx.js +20 -0
  1736. data/node_modules/core-js/library/modules/_date-to-iso-string.js +26 -0
  1737. data/node_modules/core-js/library/modules/_date-to-primitive.js +9 -0
  1738. data/node_modules/core-js/library/modules/_defined.js +5 -0
  1739. data/node_modules/core-js/library/modules/_descriptors.js +4 -0
  1740. data/node_modules/core-js/library/modules/_dom-create.js +7 -0
  1741. data/node_modules/core-js/library/modules/_entry-virtual.js +5 -0
  1742. data/node_modules/core-js/library/modules/_enum-bug-keys.js +4 -0
  1743. data/node_modules/core-js/library/modules/_enum-keys.js +15 -0
  1744. data/node_modules/core-js/library/modules/_export.js +62 -0
  1745. data/node_modules/core-js/library/modules/_fails-is-regexp.js +12 -0
  1746. data/node_modules/core-js/library/modules/_fails.js +7 -0
  1747. data/node_modules/core-js/library/modules/_fix-re-wks.js +96 -0
  1748. data/node_modules/core-js/library/modules/_flags.js +13 -0
  1749. data/node_modules/core-js/library/modules/_flatten-into-array.js +39 -0
  1750. data/node_modules/core-js/library/modules/_for-of.js +25 -0
  1751. data/node_modules/core-js/library/modules/_function-to-string.js +1 -0
  1752. data/node_modules/core-js/library/modules/_global.js +6 -0
  1753. data/node_modules/core-js/library/modules/_has.js +4 -0
  1754. data/node_modules/core-js/library/modules/_hide.js +8 -0
  1755. data/node_modules/core-js/library/modules/_html.js +2 -0
  1756. data/node_modules/core-js/library/modules/_ie8-dom-define.js +3 -0
  1757. data/node_modules/core-js/library/modules/_inherit-if-required.js +9 -0
  1758. data/node_modules/core-js/library/modules/_invoke.js +16 -0
  1759. data/node_modules/core-js/library/modules/_iobject.js +6 -0
  1760. data/node_modules/core-js/library/modules/_is-array-iter.js +8 -0
  1761. data/node_modules/core-js/library/modules/_is-array.js +5 -0
  1762. data/node_modules/core-js/library/modules/_is-integer.js +6 -0
  1763. data/node_modules/core-js/library/modules/_is-object.js +3 -0
  1764. data/node_modules/core-js/library/modules/_is-regexp.js +8 -0
  1765. data/node_modules/core-js/library/modules/_iter-call.js +12 -0
  1766. data/node_modules/core-js/library/modules/_iter-create.js +13 -0
  1767. data/node_modules/core-js/library/modules/_iter-define.js +69 -0
  1768. data/node_modules/core-js/library/modules/_iter-detect.js +22 -0
  1769. data/node_modules/core-js/library/modules/_iter-step.js +3 -0
  1770. data/node_modules/core-js/library/modules/_iterators.js +1 -0
  1771. data/node_modules/core-js/library/modules/_keyof.js +10 -0
  1772. data/node_modules/core-js/library/modules/_library.js +1 -0
  1773. data/node_modules/core-js/library/modules/_math-expm1.js +10 -0
  1774. data/node_modules/core-js/library/modules/_math-fround.js +23 -0
  1775. data/node_modules/core-js/library/modules/_math-log1p.js +4 -0
  1776. data/node_modules/core-js/library/modules/_math-scale.js +18 -0
  1777. data/node_modules/core-js/library/modules/_math-sign.js +5 -0
  1778. data/node_modules/core-js/library/modules/_meta.js +53 -0
  1779. data/node_modules/core-js/library/modules/_metadata.js +51 -0
  1780. data/node_modules/core-js/library/modules/_microtask.js +69 -0
  1781. data/node_modules/core-js/library/modules/_native-weak-map.js +4 -0
  1782. data/node_modules/core-js/library/modules/_new-promise-capability.js +18 -0
  1783. data/node_modules/core-js/library/modules/_object-assign.js +38 -0
  1784. data/node_modules/core-js/library/modules/_object-create.js +41 -0
  1785. data/node_modules/core-js/library/modules/_object-define.js +13 -0
  1786. data/node_modules/core-js/library/modules/_object-dp.js +16 -0
  1787. data/node_modules/core-js/library/modules/_object-dps.js +13 -0
  1788. data/node_modules/core-js/library/modules/_object-forced-pam.js +9 -0
  1789. data/node_modules/core-js/library/modules/_object-gopd.js +16 -0
  1790. data/node_modules/core-js/library/modules/_object-gopn-ext.js +19 -0
  1791. data/node_modules/core-js/library/modules/_object-gopn.js +7 -0
  1792. data/node_modules/core-js/library/modules/_object-gops.js +1 -0
  1793. data/node_modules/core-js/library/modules/_object-gpo.js +13 -0
  1794. data/node_modules/core-js/library/modules/_object-keys-internal.js +17 -0
  1795. data/node_modules/core-js/library/modules/_object-keys.js +7 -0
  1796. data/node_modules/core-js/library/modules/_object-pie.js +1 -0
  1797. data/node_modules/core-js/library/modules/_object-sap.js +10 -0
  1798. data/node_modules/core-js/library/modules/_object-to-array.js +21 -0
  1799. data/node_modules/core-js/library/modules/_own-keys.js +10 -0
  1800. data/node_modules/core-js/library/modules/_parse-float.js +8 -0
  1801. data/node_modules/core-js/library/modules/_parse-int.js +9 -0
  1802. data/node_modules/core-js/library/modules/_partial.js +25 -0
  1803. data/node_modules/core-js/library/modules/_path.js +1 -0
  1804. data/node_modules/core-js/library/modules/_perform.js +7 -0
  1805. data/node_modules/core-js/library/modules/_promise-resolve.js +12 -0
  1806. data/node_modules/core-js/library/modules/_property-desc.js +8 -0
  1807. data/node_modules/core-js/library/modules/_redefine-all.js +7 -0
  1808. data/node_modules/core-js/library/modules/_redefine.js +1 -0
  1809. data/node_modules/core-js/library/modules/_regexp-exec-abstract.js +1 -0
  1810. data/node_modules/core-js/library/modules/_regexp-exec.js +1 -0
  1811. data/node_modules/core-js/library/modules/_replacer.js +8 -0
  1812. data/node_modules/core-js/library/modules/_same-value.js +5 -0
  1813. data/node_modules/core-js/library/modules/_set-collection-from.js +28 -0
  1814. data/node_modules/core-js/library/modules/_set-collection-of.js +12 -0
  1815. data/node_modules/core-js/library/modules/_set-proto.js +25 -0
  1816. data/node_modules/core-js/library/modules/_set-species.js +14 -0
  1817. data/node_modules/core-js/library/modules/_set-to-string-tag.js +7 -0
  1818. data/node_modules/core-js/library/modules/_shared-key.js +5 -0
  1819. data/node_modules/core-js/library/modules/_shared.js +12 -0
  1820. data/node_modules/core-js/library/modules/_species-constructor.js +9 -0
  1821. data/node_modules/core-js/library/modules/_strict-method.js +9 -0
  1822. data/node_modules/core-js/library/modules/_string-at.js +17 -0
  1823. data/node_modules/core-js/library/modules/_string-context.js +8 -0
  1824. data/node_modules/core-js/library/modules/_string-html.js +19 -0
  1825. data/node_modules/core-js/library/modules/_string-pad.js +16 -0
  1826. data/node_modules/core-js/library/modules/_string-repeat.js +12 -0
  1827. data/node_modules/core-js/library/modules/_string-trim.js +30 -0
  1828. data/node_modules/core-js/library/modules/_string-ws.js +2 -0
  1829. data/node_modules/core-js/library/modules/_task.js +84 -0
  1830. data/node_modules/core-js/library/modules/_to-absolute-index.js +7 -0
  1831. data/node_modules/core-js/library/modules/_to-index.js +10 -0
  1832. data/node_modules/core-js/library/modules/_to-integer.js +6 -0
  1833. data/node_modules/core-js/library/modules/_to-iobject.js +6 -0
  1834. data/node_modules/core-js/library/modules/_to-length.js +6 -0
  1835. data/node_modules/core-js/library/modules/_to-object.js +5 -0
  1836. data/node_modules/core-js/library/modules/_to-primitive.js +12 -0
  1837. data/node_modules/core-js/library/modules/_typed-array.js +480 -0
  1838. data/node_modules/core-js/library/modules/_typed-buffer.js +276 -0
  1839. data/node_modules/core-js/library/modules/_typed.js +28 -0
  1840. data/node_modules/core-js/library/modules/_uid.js +5 -0
  1841. data/node_modules/core-js/library/modules/_user-agent.js +4 -0
  1842. data/node_modules/core-js/library/modules/_validate-collection.js +5 -0
  1843. data/node_modules/core-js/library/modules/_wks-define.js +9 -0
  1844. data/node_modules/core-js/library/modules/_wks-ext.js +1 -0
  1845. data/node_modules/core-js/library/modules/_wks.js +11 -0
  1846. data/node_modules/core-js/library/modules/core.delay.js +12 -0
  1847. data/node_modules/core-js/library/modules/core.dict.js +157 -0
  1848. data/node_modules/core-js/library/modules/core.function.part.js +7 -0
  1849. data/node_modules/core-js/library/modules/core.get-iterator-method.js +8 -0
  1850. data/node_modules/core-js/library/modules/core.get-iterator.js +7 -0
  1851. data/node_modules/core-js/library/modules/core.is-iterable.js +10 -0
  1852. data/node_modules/core-js/library/modules/core.number.iterator.js +9 -0
  1853. data/node_modules/core-js/library/modules/core.object.classof.js +3 -0
  1854. data/node_modules/core-js/library/modules/core.object.define.js +4 -0
  1855. data/node_modules/core-js/library/modules/core.object.is-object.js +3 -0
  1856. data/node_modules/core-js/library/modules/core.object.make.js +9 -0
  1857. data/node_modules/core-js/library/modules/core.regexp.escape.js +5 -0
  1858. data/node_modules/core-js/library/modules/core.string.escape-html.js +11 -0
  1859. data/node_modules/core-js/library/modules/core.string.unescape-html.js +11 -0
  1860. data/node_modules/core-js/library/modules/es5.js +35 -0
  1861. data/node_modules/core-js/library/modules/es6.array.copy-within.js +6 -0
  1862. data/node_modules/core-js/library/modules/es6.array.every.js +10 -0
  1863. data/node_modules/core-js/library/modules/es6.array.fill.js +6 -0
  1864. data/node_modules/core-js/library/modules/es6.array.filter.js +10 -0
  1865. data/node_modules/core-js/library/modules/es6.array.find-index.js +14 -0
  1866. data/node_modules/core-js/library/modules/es6.array.find.js +14 -0
  1867. data/node_modules/core-js/library/modules/es6.array.for-each.js +11 -0
  1868. data/node_modules/core-js/library/modules/es6.array.from.js +37 -0
  1869. data/node_modules/core-js/library/modules/es6.array.index-of.js +15 -0
  1870. data/node_modules/core-js/library/modules/es6.array.is-array.js +4 -0
  1871. data/node_modules/core-js/library/modules/es6.array.iterator.js +34 -0
  1872. data/node_modules/core-js/library/modules/es6.array.join.js +12 -0
  1873. data/node_modules/core-js/library/modules/es6.array.last-index-of.js +22 -0
  1874. data/node_modules/core-js/library/modules/es6.array.map.js +10 -0
  1875. data/node_modules/core-js/library/modules/es6.array.of.js +19 -0
  1876. data/node_modules/core-js/library/modules/es6.array.reduce-right.js +10 -0
  1877. data/node_modules/core-js/library/modules/es6.array.reduce.js +10 -0
  1878. data/node_modules/core-js/library/modules/es6.array.slice.js +28 -0
  1879. data/node_modules/core-js/library/modules/es6.array.some.js +10 -0
  1880. data/node_modules/core-js/library/modules/es6.array.sort.js +23 -0
  1881. data/node_modules/core-js/library/modules/es6.array.species.js +1 -0
  1882. data/node_modules/core-js/library/modules/es6.date.now.js +4 -0
  1883. data/node_modules/core-js/library/modules/es6.date.to-iso-string.js +8 -0
  1884. data/node_modules/core-js/library/modules/es6.date.to-json.js +19 -0
  1885. data/node_modules/core-js/library/modules/es6.date.to-primitive.js +0 -0
  1886. data/node_modules/core-js/library/modules/es6.date.to-string.js +0 -0
  1887. data/node_modules/core-js/library/modules/es6.function.bind.js +4 -0
  1888. data/node_modules/core-js/library/modules/es6.function.has-instance.js +13 -0
  1889. data/node_modules/core-js/library/modules/es6.function.name.js +0 -0
  1890. data/node_modules/core-js/library/modules/es6.map.js +19 -0
  1891. data/node_modules/core-js/library/modules/es6.math.acosh.js +18 -0
  1892. data/node_modules/core-js/library/modules/es6.math.asinh.js +10 -0
  1893. data/node_modules/core-js/library/modules/es6.math.atanh.js +10 -0
  1894. data/node_modules/core-js/library/modules/es6.math.cbrt.js +9 -0
  1895. data/node_modules/core-js/library/modules/es6.math.clz32.js +8 -0
  1896. data/node_modules/core-js/library/modules/es6.math.cosh.js +9 -0
  1897. data/node_modules/core-js/library/modules/es6.math.expm1.js +5 -0
  1898. data/node_modules/core-js/library/modules/es6.math.fround.js +4 -0
  1899. data/node_modules/core-js/library/modules/es6.math.hypot.js +25 -0
  1900. data/node_modules/core-js/library/modules/es6.math.imul.js +17 -0
  1901. data/node_modules/core-js/library/modules/es6.math.log10.js +8 -0
  1902. data/node_modules/core-js/library/modules/es6.math.log1p.js +4 -0
  1903. data/node_modules/core-js/library/modules/es6.math.log2.js +8 -0
  1904. data/node_modules/core-js/library/modules/es6.math.sign.js +4 -0
  1905. data/node_modules/core-js/library/modules/es6.math.sinh.js +15 -0
  1906. data/node_modules/core-js/library/modules/es6.math.tanh.js +12 -0
  1907. data/node_modules/core-js/library/modules/es6.math.trunc.js +8 -0
  1908. data/node_modules/core-js/library/modules/es6.number.constructor.js +0 -0
  1909. data/node_modules/core-js/library/modules/es6.number.epsilon.js +4 -0
  1910. data/node_modules/core-js/library/modules/es6.number.is-finite.js +9 -0
  1911. data/node_modules/core-js/library/modules/es6.number.is-integer.js +4 -0
  1912. data/node_modules/core-js/library/modules/es6.number.is-nan.js +9 -0
  1913. data/node_modules/core-js/library/modules/es6.number.is-safe-integer.js +10 -0
  1914. data/node_modules/core-js/library/modules/es6.number.max-safe-integer.js +4 -0
  1915. data/node_modules/core-js/library/modules/es6.number.min-safe-integer.js +4 -0
  1916. data/node_modules/core-js/library/modules/es6.number.parse-float.js +4 -0
  1917. data/node_modules/core-js/library/modules/es6.number.parse-int.js +4 -0
  1918. data/node_modules/core-js/library/modules/es6.number.to-fixed.js +114 -0
  1919. data/node_modules/core-js/library/modules/es6.number.to-precision.js +18 -0
  1920. data/node_modules/core-js/library/modules/es6.object.assign.js +4 -0
  1921. data/node_modules/core-js/library/modules/es6.object.create.js +3 -0
  1922. data/node_modules/core-js/library/modules/es6.object.define-properties.js +3 -0
  1923. data/node_modules/core-js/library/modules/es6.object.define-property.js +3 -0
  1924. data/node_modules/core-js/library/modules/es6.object.freeze.js +9 -0
  1925. data/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js +9 -0
  1926. data/node_modules/core-js/library/modules/es6.object.get-own-property-names.js +4 -0
  1927. data/node_modules/core-js/library/modules/es6.object.get-prototype-of.js +9 -0
  1928. data/node_modules/core-js/library/modules/es6.object.is-extensible.js +8 -0
  1929. data/node_modules/core-js/library/modules/es6.object.is-frozen.js +8 -0
  1930. data/node_modules/core-js/library/modules/es6.object.is-sealed.js +8 -0
  1931. data/node_modules/core-js/library/modules/es6.object.is.js +3 -0
  1932. data/node_modules/core-js/library/modules/es6.object.keys.js +9 -0
  1933. data/node_modules/core-js/library/modules/es6.object.prevent-extensions.js +9 -0
  1934. data/node_modules/core-js/library/modules/es6.object.seal.js +9 -0
  1935. data/node_modules/core-js/library/modules/es6.object.set-prototype-of.js +3 -0
  1936. data/node_modules/core-js/library/modules/es6.object.to-string.js +0 -0
  1937. data/node_modules/core-js/library/modules/es6.parse-float.js +4 -0
  1938. data/node_modules/core-js/library/modules/es6.parse-int.js +4 -0
  1939. data/node_modules/core-js/library/modules/es6.promise.js +286 -0
  1940. data/node_modules/core-js/library/modules/es6.reflect.apply.js +16 -0
  1941. data/node_modules/core-js/library/modules/es6.reflect.construct.js +47 -0
  1942. data/node_modules/core-js/library/modules/es6.reflect.define-property.js +23 -0
  1943. data/node_modules/core-js/library/modules/es6.reflect.delete-property.js +11 -0
  1944. data/node_modules/core-js/library/modules/es6.reflect.enumerate.js +26 -0
  1945. data/node_modules/core-js/library/modules/es6.reflect.get-own-property-descriptor.js +10 -0
  1946. data/node_modules/core-js/library/modules/es6.reflect.get-prototype-of.js +10 -0
  1947. data/node_modules/core-js/library/modules/es6.reflect.get.js +21 -0
  1948. data/node_modules/core-js/library/modules/es6.reflect.has.js +8 -0
  1949. data/node_modules/core-js/library/modules/es6.reflect.is-extensible.js +11 -0
  1950. data/node_modules/core-js/library/modules/es6.reflect.own-keys.js +4 -0
  1951. data/node_modules/core-js/library/modules/es6.reflect.prevent-extensions.js +16 -0
  1952. data/node_modules/core-js/library/modules/es6.reflect.set-prototype-of.js +15 -0
  1953. data/node_modules/core-js/library/modules/es6.reflect.set.js +33 -0
  1954. data/node_modules/core-js/library/modules/es6.regexp.constructor.js +1 -0
  1955. data/node_modules/core-js/library/modules/es6.regexp.exec.js +1 -0
  1956. data/node_modules/core-js/library/modules/es6.regexp.flags.js +0 -0
  1957. data/node_modules/core-js/library/modules/es6.regexp.match.js +0 -0
  1958. data/node_modules/core-js/library/modules/es6.regexp.replace.js +0 -0
  1959. data/node_modules/core-js/library/modules/es6.regexp.search.js +0 -0
  1960. data/node_modules/core-js/library/modules/es6.regexp.split.js +0 -0
  1961. data/node_modules/core-js/library/modules/es6.regexp.to-string.js +0 -0
  1962. data/node_modules/core-js/library/modules/es6.set.js +14 -0
  1963. data/node_modules/core-js/library/modules/es6.string.anchor.js +7 -0
  1964. data/node_modules/core-js/library/modules/es6.string.big.js +7 -0
  1965. data/node_modules/core-js/library/modules/es6.string.blink.js +7 -0
  1966. data/node_modules/core-js/library/modules/es6.string.bold.js +7 -0
  1967. data/node_modules/core-js/library/modules/es6.string.code-point-at.js +9 -0
  1968. data/node_modules/core-js/library/modules/es6.string.ends-with.js +20 -0
  1969. data/node_modules/core-js/library/modules/es6.string.fixed.js +7 -0
  1970. data/node_modules/core-js/library/modules/es6.string.fontcolor.js +7 -0
  1971. data/node_modules/core-js/library/modules/es6.string.fontsize.js +7 -0
  1972. data/node_modules/core-js/library/modules/es6.string.from-code-point.js +23 -0
  1973. data/node_modules/core-js/library/modules/es6.string.includes.js +12 -0
  1974. data/node_modules/core-js/library/modules/es6.string.italics.js +7 -0
  1975. data/node_modules/core-js/library/modules/es6.string.iterator.js +17 -0
  1976. data/node_modules/core-js/library/modules/es6.string.link.js +7 -0
  1977. data/node_modules/core-js/library/modules/es6.string.raw.js +18 -0
  1978. data/node_modules/core-js/library/modules/es6.string.repeat.js +6 -0
  1979. data/node_modules/core-js/library/modules/es6.string.small.js +7 -0
  1980. data/node_modules/core-js/library/modules/es6.string.starts-with.js +18 -0
  1981. data/node_modules/core-js/library/modules/es6.string.strike.js +7 -0
  1982. data/node_modules/core-js/library/modules/es6.string.sub.js +7 -0
  1983. data/node_modules/core-js/library/modules/es6.string.sup.js +7 -0
  1984. data/node_modules/core-js/library/modules/es6.string.trim.js +7 -0
  1985. data/node_modules/core-js/library/modules/es6.symbol.js +246 -0
  1986. data/node_modules/core-js/library/modules/es6.typed.array-buffer.js +46 -0
  1987. data/node_modules/core-js/library/modules/es6.typed.data-view.js +4 -0
  1988. data/node_modules/core-js/library/modules/es6.typed.float32-array.js +5 -0
  1989. data/node_modules/core-js/library/modules/es6.typed.float64-array.js +5 -0
  1990. data/node_modules/core-js/library/modules/es6.typed.int16-array.js +5 -0
  1991. data/node_modules/core-js/library/modules/es6.typed.int32-array.js +5 -0
  1992. data/node_modules/core-js/library/modules/es6.typed.int8-array.js +5 -0
  1993. data/node_modules/core-js/library/modules/es6.typed.uint16-array.js +5 -0
  1994. data/node_modules/core-js/library/modules/es6.typed.uint32-array.js +5 -0
  1995. data/node_modules/core-js/library/modules/es6.typed.uint8-array.js +5 -0
  1996. data/node_modules/core-js/library/modules/es6.typed.uint8-clamped-array.js +5 -0
  1997. data/node_modules/core-js/library/modules/es6.weak-map.js +60 -0
  1998. data/node_modules/core-js/library/modules/es6.weak-set.js +14 -0
  1999. data/node_modules/core-js/library/modules/es7.array.flat-map.js +22 -0
  2000. data/node_modules/core-js/library/modules/es7.array.flatten.js +21 -0
  2001. data/node_modules/core-js/library/modules/es7.array.includes.js +12 -0
  2002. data/node_modules/core-js/library/modules/es7.asap.js +12 -0
  2003. data/node_modules/core-js/library/modules/es7.error.is-error.js +9 -0
  2004. data/node_modules/core-js/library/modules/es7.global.js +4 -0
  2005. data/node_modules/core-js/library/modules/es7.map.from.js +2 -0
  2006. data/node_modules/core-js/library/modules/es7.map.of.js +2 -0
  2007. data/node_modules/core-js/library/modules/es7.map.to-json.js +4 -0
  2008. data/node_modules/core-js/library/modules/es7.math.clamp.js +8 -0
  2009. data/node_modules/core-js/library/modules/es7.math.deg-per-rad.js +4 -0
  2010. data/node_modules/core-js/library/modules/es7.math.degrees.js +9 -0
  2011. data/node_modules/core-js/library/modules/es7.math.fscale.js +10 -0
  2012. data/node_modules/core-js/library/modules/es7.math.iaddh.js +11 -0
  2013. data/node_modules/core-js/library/modules/es7.math.imulh.js +16 -0
  2014. data/node_modules/core-js/library/modules/es7.math.isubh.js +11 -0
  2015. data/node_modules/core-js/library/modules/es7.math.rad-per-deg.js +4 -0
  2016. data/node_modules/core-js/library/modules/es7.math.radians.js +9 -0
  2017. data/node_modules/core-js/library/modules/es7.math.scale.js +4 -0
  2018. data/node_modules/core-js/library/modules/es7.math.signbit.js +7 -0
  2019. data/node_modules/core-js/library/modules/es7.math.umulh.js +16 -0
  2020. data/node_modules/core-js/library/modules/es7.object.define-getter.js +12 -0
  2021. data/node_modules/core-js/library/modules/es7.object.define-setter.js +12 -0
  2022. data/node_modules/core-js/library/modules/es7.object.entries.js +9 -0
  2023. data/node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js +22 -0
  2024. data/node_modules/core-js/library/modules/es7.object.lookup-getter.js +18 -0
  2025. data/node_modules/core-js/library/modules/es7.object.lookup-setter.js +18 -0
  2026. data/node_modules/core-js/library/modules/es7.object.values.js +9 -0
  2027. data/node_modules/core-js/library/modules/es7.observable.js +199 -0
  2028. data/node_modules/core-js/library/modules/es7.promise.finally.js +20 -0
  2029. data/node_modules/core-js/library/modules/es7.promise.try.js +12 -0
  2030. data/node_modules/core-js/library/modules/es7.reflect.define-metadata.js +8 -0
  2031. data/node_modules/core-js/library/modules/es7.reflect.delete-metadata.js +15 -0
  2032. data/node_modules/core-js/library/modules/es7.reflect.get-metadata-keys.js +19 -0
  2033. data/node_modules/core-js/library/modules/es7.reflect.get-metadata.js +17 -0
  2034. data/node_modules/core-js/library/modules/es7.reflect.get-own-metadata-keys.js +8 -0
  2035. data/node_modules/core-js/library/modules/es7.reflect.get-own-metadata.js +9 -0
  2036. data/node_modules/core-js/library/modules/es7.reflect.has-metadata.js +16 -0
  2037. data/node_modules/core-js/library/modules/es7.reflect.has-own-metadata.js +9 -0
  2038. data/node_modules/core-js/library/modules/es7.reflect.metadata.js +15 -0
  2039. data/node_modules/core-js/library/modules/es7.set.from.js +2 -0
  2040. data/node_modules/core-js/library/modules/es7.set.of.js +2 -0
  2041. data/node_modules/core-js/library/modules/es7.set.to-json.js +4 -0
  2042. data/node_modules/core-js/library/modules/es7.string.at.js +15 -0
  2043. data/node_modules/core-js/library/modules/es7.string.match-all.js +30 -0
  2044. data/node_modules/core-js/library/modules/es7.string.pad-end.js +14 -0
  2045. data/node_modules/core-js/library/modules/es7.string.pad-start.js +14 -0
  2046. data/node_modules/core-js/library/modules/es7.string.trim-left.js +7 -0
  2047. data/node_modules/core-js/library/modules/es7.string.trim-right.js +7 -0
  2048. data/node_modules/core-js/library/modules/es7.symbol.async-iterator.js +1 -0
  2049. data/node_modules/core-js/library/modules/es7.symbol.observable.js +1 -0
  2050. data/node_modules/core-js/library/modules/es7.system.global.js +4 -0
  2051. data/node_modules/core-js/library/modules/es7.weak-map.from.js +2 -0
  2052. data/node_modules/core-js/library/modules/es7.weak-map.of.js +2 -0
  2053. data/node_modules/core-js/library/modules/es7.weak-set.from.js +2 -0
  2054. data/node_modules/core-js/library/modules/es7.weak-set.of.js +2 -0
  2055. data/node_modules/core-js/library/modules/web.dom.iterable.js +19 -0
  2056. data/node_modules/core-js/library/modules/web.immediate.js +6 -0
  2057. data/node_modules/core-js/library/modules/web.timers.js +20 -0
  2058. data/node_modules/core-js/library/shim.js +198 -0
  2059. data/node_modules/core-js/library/stage/0.js +10 -0
  2060. data/node_modules/core-js/library/stage/1.js +23 -0
  2061. data/node_modules/core-js/library/stage/2.js +4 -0
  2062. data/node_modules/core-js/library/stage/3.js +4 -0
  2063. data/node_modules/core-js/library/stage/4.js +11 -0
  2064. data/node_modules/core-js/library/stage/index.js +1 -0
  2065. data/node_modules/core-js/library/stage/pre.js +10 -0
  2066. data/node_modules/core-js/library/web/dom-collections.js +2 -0
  2067. data/node_modules/core-js/library/web/immediate.js +2 -0
  2068. data/node_modules/core-js/library/web/index.js +4 -0
  2069. data/node_modules/core-js/library/web/timers.js +2 -0
  2070. data/node_modules/core-js/modules/_a-function.js +4 -0
  2071. data/node_modules/core-js/modules/_a-number-value.js +5 -0
  2072. data/node_modules/core-js/modules/_add-to-unscopables.js +7 -0
  2073. data/node_modules/core-js/modules/_advance-string-index.js +8 -0
  2074. data/node_modules/core-js/modules/_an-instance.js +5 -0
  2075. data/node_modules/core-js/modules/_an-object.js +5 -0
  2076. data/node_modules/core-js/modules/_array-copy-within.js +26 -0
  2077. data/node_modules/core-js/modules/_array-fill.js +15 -0
  2078. data/node_modules/core-js/modules/_array-from-iterable.js +7 -0
  2079. data/node_modules/core-js/modules/_array-includes.js +23 -0
  2080. data/node_modules/core-js/modules/_array-methods.js +44 -0
  2081. data/node_modules/core-js/modules/_array-reduce.js +28 -0
  2082. data/node_modules/core-js/modules/_array-species-constructor.js +16 -0
  2083. data/node_modules/core-js/modules/_array-species-create.js +6 -0
  2084. data/node_modules/core-js/modules/_bind.js +25 -0
  2085. data/node_modules/core-js/modules/_classof.js +23 -0
  2086. data/node_modules/core-js/modules/_cof.js +5 -0
  2087. data/node_modules/core-js/modules/_collection-strong.js +144 -0
  2088. data/node_modules/core-js/modules/_collection-to-json.js +9 -0
  2089. data/node_modules/core-js/modules/_collection-weak.js +85 -0
  2090. data/node_modules/core-js/modules/_collection.js +85 -0
  2091. data/node_modules/core-js/modules/_core.js +2 -0
  2092. data/node_modules/core-js/modules/_create-property.js +8 -0
  2093. data/node_modules/core-js/modules/_ctx.js +20 -0
  2094. data/node_modules/core-js/modules/_date-to-iso-string.js +26 -0
  2095. data/node_modules/core-js/modules/_date-to-primitive.js +9 -0
  2096. data/node_modules/core-js/modules/_defined.js +5 -0
  2097. data/node_modules/core-js/modules/_descriptors.js +4 -0
  2098. data/node_modules/core-js/modules/_dom-create.js +7 -0
  2099. data/node_modules/core-js/modules/_entry-virtual.js +5 -0
  2100. data/node_modules/core-js/modules/_enum-bug-keys.js +4 -0
  2101. data/node_modules/core-js/modules/_enum-keys.js +15 -0
  2102. data/node_modules/core-js/modules/_export.js +43 -0
  2103. data/node_modules/core-js/modules/_fails-is-regexp.js +12 -0
  2104. data/node_modules/core-js/modules/_fails.js +7 -0
  2105. data/node_modules/core-js/modules/_fix-re-wks.js +96 -0
  2106. data/node_modules/core-js/modules/_flags.js +13 -0
  2107. data/node_modules/core-js/modules/_flatten-into-array.js +39 -0
  2108. data/node_modules/core-js/modules/_for-of.js +25 -0
  2109. data/node_modules/core-js/modules/_function-to-string.js +1 -0
  2110. data/node_modules/core-js/modules/_global.js +6 -0
  2111. data/node_modules/core-js/modules/_has.js +4 -0
  2112. data/node_modules/core-js/modules/_hide.js +8 -0
  2113. data/node_modules/core-js/modules/_html.js +2 -0
  2114. data/node_modules/core-js/modules/_ie8-dom-define.js +3 -0
  2115. data/node_modules/core-js/modules/_inherit-if-required.js +9 -0
  2116. data/node_modules/core-js/modules/_invoke.js +16 -0
  2117. data/node_modules/core-js/modules/_iobject.js +6 -0
  2118. data/node_modules/core-js/modules/_is-array-iter.js +8 -0
  2119. data/node_modules/core-js/modules/_is-array.js +5 -0
  2120. data/node_modules/core-js/modules/_is-integer.js +6 -0
  2121. data/node_modules/core-js/modules/_is-object.js +3 -0
  2122. data/node_modules/core-js/modules/_is-regexp.js +8 -0
  2123. data/node_modules/core-js/modules/_iter-call.js +12 -0
  2124. data/node_modules/core-js/modules/_iter-create.js +13 -0
  2125. data/node_modules/core-js/modules/_iter-define.js +69 -0
  2126. data/node_modules/core-js/modules/_iter-detect.js +22 -0
  2127. data/node_modules/core-js/modules/_iter-step.js +3 -0
  2128. data/node_modules/core-js/modules/_iterators.js +1 -0
  2129. data/node_modules/core-js/modules/_keyof.js +10 -0
  2130. data/node_modules/core-js/modules/_library.js +1 -0
  2131. data/node_modules/core-js/modules/_math-expm1.js +10 -0
  2132. data/node_modules/core-js/modules/_math-fround.js +23 -0
  2133. data/node_modules/core-js/modules/_math-log1p.js +4 -0
  2134. data/node_modules/core-js/modules/_math-scale.js +18 -0
  2135. data/node_modules/core-js/modules/_math-sign.js +5 -0
  2136. data/node_modules/core-js/modules/_meta.js +53 -0
  2137. data/node_modules/core-js/modules/_metadata.js +51 -0
  2138. data/node_modules/core-js/modules/_microtask.js +69 -0
  2139. data/node_modules/core-js/modules/_native-weak-map.js +4 -0
  2140. data/node_modules/core-js/modules/_new-promise-capability.js +18 -0
  2141. data/node_modules/core-js/modules/_object-assign.js +38 -0
  2142. data/node_modules/core-js/modules/_object-create.js +41 -0
  2143. data/node_modules/core-js/modules/_object-define.js +13 -0
  2144. data/node_modules/core-js/modules/_object-dp.js +16 -0
  2145. data/node_modules/core-js/modules/_object-dps.js +13 -0
  2146. data/node_modules/core-js/modules/_object-forced-pam.js +9 -0
  2147. data/node_modules/core-js/modules/_object-gopd.js +16 -0
  2148. data/node_modules/core-js/modules/_object-gopn-ext.js +19 -0
  2149. data/node_modules/core-js/modules/_object-gopn.js +7 -0
  2150. data/node_modules/core-js/modules/_object-gops.js +1 -0
  2151. data/node_modules/core-js/modules/_object-gpo.js +13 -0
  2152. data/node_modules/core-js/modules/_object-keys-internal.js +17 -0
  2153. data/node_modules/core-js/modules/_object-keys.js +7 -0
  2154. data/node_modules/core-js/modules/_object-pie.js +1 -0
  2155. data/node_modules/core-js/modules/_object-sap.js +10 -0
  2156. data/node_modules/core-js/modules/_object-to-array.js +21 -0
  2157. data/node_modules/core-js/modules/_own-keys.js +10 -0
  2158. data/node_modules/core-js/modules/_parse-float.js +8 -0
  2159. data/node_modules/core-js/modules/_parse-int.js +9 -0
  2160. data/node_modules/core-js/modules/_partial.js +25 -0
  2161. data/node_modules/core-js/modules/_path.js +1 -0
  2162. data/node_modules/core-js/modules/_perform.js +7 -0
  2163. data/node_modules/core-js/modules/_promise-resolve.js +12 -0
  2164. data/node_modules/core-js/modules/_property-desc.js +8 -0
  2165. data/node_modules/core-js/modules/_redefine-all.js +5 -0
  2166. data/node_modules/core-js/modules/_redefine.js +31 -0
  2167. data/node_modules/core-js/modules/_regexp-exec-abstract.js +21 -0
  2168. data/node_modules/core-js/modules/_regexp-exec.js +58 -0
  2169. data/node_modules/core-js/modules/_replacer.js +8 -0
  2170. data/node_modules/core-js/modules/_same-value.js +5 -0
  2171. data/node_modules/core-js/modules/_set-collection-from.js +28 -0
  2172. data/node_modules/core-js/modules/_set-collection-of.js +12 -0
  2173. data/node_modules/core-js/modules/_set-proto.js +25 -0
  2174. data/node_modules/core-js/modules/_set-species.js +13 -0
  2175. data/node_modules/core-js/modules/_set-to-string-tag.js +7 -0
  2176. data/node_modules/core-js/modules/_shared-key.js +5 -0
  2177. data/node_modules/core-js/modules/_shared.js +12 -0
  2178. data/node_modules/core-js/modules/_species-constructor.js +9 -0
  2179. data/node_modules/core-js/modules/_strict-method.js +9 -0
  2180. data/node_modules/core-js/modules/_string-at.js +17 -0
  2181. data/node_modules/core-js/modules/_string-context.js +8 -0
  2182. data/node_modules/core-js/modules/_string-html.js +19 -0
  2183. data/node_modules/core-js/modules/_string-pad.js +16 -0
  2184. data/node_modules/core-js/modules/_string-repeat.js +12 -0
  2185. data/node_modules/core-js/modules/_string-trim.js +30 -0
  2186. data/node_modules/core-js/modules/_string-ws.js +2 -0
  2187. data/node_modules/core-js/modules/_task.js +84 -0
  2188. data/node_modules/core-js/modules/_to-absolute-index.js +7 -0
  2189. data/node_modules/core-js/modules/_to-index.js +10 -0
  2190. data/node_modules/core-js/modules/_to-integer.js +6 -0
  2191. data/node_modules/core-js/modules/_to-iobject.js +6 -0
  2192. data/node_modules/core-js/modules/_to-length.js +6 -0
  2193. data/node_modules/core-js/modules/_to-object.js +5 -0
  2194. data/node_modules/core-js/modules/_to-primitive.js +12 -0
  2195. data/node_modules/core-js/modules/_typed-array.js +480 -0
  2196. data/node_modules/core-js/modules/_typed-buffer.js +276 -0
  2197. data/node_modules/core-js/modules/_typed.js +28 -0
  2198. data/node_modules/core-js/modules/_uid.js +5 -0
  2199. data/node_modules/core-js/modules/_user-agent.js +4 -0
  2200. data/node_modules/core-js/modules/_validate-collection.js +5 -0
  2201. data/node_modules/core-js/modules/_wks-define.js +9 -0
  2202. data/node_modules/core-js/modules/_wks-ext.js +1 -0
  2203. data/node_modules/core-js/modules/_wks.js +11 -0
  2204. data/node_modules/core-js/modules/core.delay.js +12 -0
  2205. data/node_modules/core-js/modules/core.dict.js +157 -0
  2206. data/node_modules/core-js/modules/core.function.part.js +7 -0
  2207. data/node_modules/core-js/modules/core.get-iterator-method.js +8 -0
  2208. data/node_modules/core-js/modules/core.get-iterator.js +7 -0
  2209. data/node_modules/core-js/modules/core.is-iterable.js +10 -0
  2210. data/node_modules/core-js/modules/core.number.iterator.js +9 -0
  2211. data/node_modules/core-js/modules/core.object.classof.js +3 -0
  2212. data/node_modules/core-js/modules/core.object.define.js +4 -0
  2213. data/node_modules/core-js/modules/core.object.is-object.js +3 -0
  2214. data/node_modules/core-js/modules/core.object.make.js +9 -0
  2215. data/node_modules/core-js/modules/core.regexp.escape.js +5 -0
  2216. data/node_modules/core-js/modules/core.string.escape-html.js +11 -0
  2217. data/node_modules/core-js/modules/core.string.unescape-html.js +11 -0
  2218. data/node_modules/core-js/modules/es5.js +35 -0
  2219. data/node_modules/core-js/modules/es6.array.copy-within.js +6 -0
  2220. data/node_modules/core-js/modules/es6.array.every.js +10 -0
  2221. data/node_modules/core-js/modules/es6.array.fill.js +6 -0
  2222. data/node_modules/core-js/modules/es6.array.filter.js +10 -0
  2223. data/node_modules/core-js/modules/es6.array.find-index.js +14 -0
  2224. data/node_modules/core-js/modules/es6.array.find.js +14 -0
  2225. data/node_modules/core-js/modules/es6.array.for-each.js +11 -0
  2226. data/node_modules/core-js/modules/es6.array.from.js +37 -0
  2227. data/node_modules/core-js/modules/es6.array.index-of.js +15 -0
  2228. data/node_modules/core-js/modules/es6.array.is-array.js +4 -0
  2229. data/node_modules/core-js/modules/es6.array.iterator.js +34 -0
  2230. data/node_modules/core-js/modules/es6.array.join.js +12 -0
  2231. data/node_modules/core-js/modules/es6.array.last-index-of.js +22 -0
  2232. data/node_modules/core-js/modules/es6.array.map.js +10 -0
  2233. data/node_modules/core-js/modules/es6.array.of.js +19 -0
  2234. data/node_modules/core-js/modules/es6.array.reduce-right.js +10 -0
  2235. data/node_modules/core-js/modules/es6.array.reduce.js +10 -0
  2236. data/node_modules/core-js/modules/es6.array.slice.js +28 -0
  2237. data/node_modules/core-js/modules/es6.array.some.js +10 -0
  2238. data/node_modules/core-js/modules/es6.array.sort.js +23 -0
  2239. data/node_modules/core-js/modules/es6.array.species.js +1 -0
  2240. data/node_modules/core-js/modules/es6.date.now.js +4 -0
  2241. data/node_modules/core-js/modules/es6.date.to-iso-string.js +8 -0
  2242. data/node_modules/core-js/modules/es6.date.to-json.js +16 -0
  2243. data/node_modules/core-js/modules/es6.date.to-primitive.js +4 -0
  2244. data/node_modules/core-js/modules/es6.date.to-string.js +12 -0
  2245. data/node_modules/core-js/modules/es6.function.bind.js +4 -0
  2246. data/node_modules/core-js/modules/es6.function.has-instance.js +13 -0
  2247. data/node_modules/core-js/modules/es6.function.name.js +16 -0
  2248. data/node_modules/core-js/modules/es6.map.js +19 -0
  2249. data/node_modules/core-js/modules/es6.math.acosh.js +18 -0
  2250. data/node_modules/core-js/modules/es6.math.asinh.js +10 -0
  2251. data/node_modules/core-js/modules/es6.math.atanh.js +10 -0
  2252. data/node_modules/core-js/modules/es6.math.cbrt.js +9 -0
  2253. data/node_modules/core-js/modules/es6.math.clz32.js +8 -0
  2254. data/node_modules/core-js/modules/es6.math.cosh.js +9 -0
  2255. data/node_modules/core-js/modules/es6.math.expm1.js +5 -0
  2256. data/node_modules/core-js/modules/es6.math.fround.js +4 -0
  2257. data/node_modules/core-js/modules/es6.math.hypot.js +25 -0
  2258. data/node_modules/core-js/modules/es6.math.imul.js +17 -0
  2259. data/node_modules/core-js/modules/es6.math.log10.js +8 -0
  2260. data/node_modules/core-js/modules/es6.math.log1p.js +4 -0
  2261. data/node_modules/core-js/modules/es6.math.log2.js +8 -0
  2262. data/node_modules/core-js/modules/es6.math.sign.js +4 -0
  2263. data/node_modules/core-js/modules/es6.math.sinh.js +15 -0
  2264. data/node_modules/core-js/modules/es6.math.tanh.js +12 -0
  2265. data/node_modules/core-js/modules/es6.math.trunc.js +8 -0
  2266. data/node_modules/core-js/modules/es6.number.constructor.js +69 -0
  2267. data/node_modules/core-js/modules/es6.number.epsilon.js +4 -0
  2268. data/node_modules/core-js/modules/es6.number.is-finite.js +9 -0
  2269. data/node_modules/core-js/modules/es6.number.is-integer.js +4 -0
  2270. data/node_modules/core-js/modules/es6.number.is-nan.js +9 -0
  2271. data/node_modules/core-js/modules/es6.number.is-safe-integer.js +10 -0
  2272. data/node_modules/core-js/modules/es6.number.max-safe-integer.js +4 -0
  2273. data/node_modules/core-js/modules/es6.number.min-safe-integer.js +4 -0
  2274. data/node_modules/core-js/modules/es6.number.parse-float.js +4 -0
  2275. data/node_modules/core-js/modules/es6.number.parse-int.js +4 -0
  2276. data/node_modules/core-js/modules/es6.number.to-fixed.js +114 -0
  2277. data/node_modules/core-js/modules/es6.number.to-precision.js +18 -0
  2278. data/node_modules/core-js/modules/es6.object.assign.js +4 -0
  2279. data/node_modules/core-js/modules/es6.object.create.js +3 -0
  2280. data/node_modules/core-js/modules/es6.object.define-properties.js +3 -0
  2281. data/node_modules/core-js/modules/es6.object.define-property.js +3 -0
  2282. data/node_modules/core-js/modules/es6.object.freeze.js +9 -0
  2283. data/node_modules/core-js/modules/es6.object.get-own-property-descriptor.js +9 -0
  2284. data/node_modules/core-js/modules/es6.object.get-own-property-names.js +4 -0
  2285. data/node_modules/core-js/modules/es6.object.get-prototype-of.js +9 -0
  2286. data/node_modules/core-js/modules/es6.object.is-extensible.js +8 -0
  2287. data/node_modules/core-js/modules/es6.object.is-frozen.js +8 -0
  2288. data/node_modules/core-js/modules/es6.object.is-sealed.js +8 -0
  2289. data/node_modules/core-js/modules/es6.object.is.js +3 -0
  2290. data/node_modules/core-js/modules/es6.object.keys.js +9 -0
  2291. data/node_modules/core-js/modules/es6.object.prevent-extensions.js +9 -0
  2292. data/node_modules/core-js/modules/es6.object.seal.js +9 -0
  2293. data/node_modules/core-js/modules/es6.object.set-prototype-of.js +3 -0
  2294. data/node_modules/core-js/modules/es6.object.to-string.js +10 -0
  2295. data/node_modules/core-js/modules/es6.parse-float.js +4 -0
  2296. data/node_modules/core-js/modules/es6.parse-int.js +4 -0
  2297. data/node_modules/core-js/modules/es6.promise.js +286 -0
  2298. data/node_modules/core-js/modules/es6.reflect.apply.js +16 -0
  2299. data/node_modules/core-js/modules/es6.reflect.construct.js +47 -0
  2300. data/node_modules/core-js/modules/es6.reflect.define-property.js +23 -0
  2301. data/node_modules/core-js/modules/es6.reflect.delete-property.js +11 -0
  2302. data/node_modules/core-js/modules/es6.reflect.enumerate.js +26 -0
  2303. data/node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js +10 -0
  2304. data/node_modules/core-js/modules/es6.reflect.get-prototype-of.js +10 -0
  2305. data/node_modules/core-js/modules/es6.reflect.get.js +21 -0
  2306. data/node_modules/core-js/modules/es6.reflect.has.js +8 -0
  2307. data/node_modules/core-js/modules/es6.reflect.is-extensible.js +11 -0
  2308. data/node_modules/core-js/modules/es6.reflect.own-keys.js +4 -0
  2309. data/node_modules/core-js/modules/es6.reflect.prevent-extensions.js +16 -0
  2310. data/node_modules/core-js/modules/es6.reflect.set-prototype-of.js +15 -0
  2311. data/node_modules/core-js/modules/es6.reflect.set.js +33 -0
  2312. data/node_modules/core-js/modules/es6.regexp.constructor.js +43 -0
  2313. data/node_modules/core-js/modules/es6.regexp.exec.js +9 -0
  2314. data/node_modules/core-js/modules/es6.regexp.flags.js +5 -0
  2315. data/node_modules/core-js/modules/es6.regexp.match.js +40 -0
  2316. data/node_modules/core-js/modules/es6.regexp.replace.js +118 -0
  2317. data/node_modules/core-js/modules/es6.regexp.search.js +31 -0
  2318. data/node_modules/core-js/modules/es6.regexp.split.js +134 -0
  2319. data/node_modules/core-js/modules/es6.regexp.to-string.js +25 -0
  2320. data/node_modules/core-js/modules/es6.set.js +14 -0
  2321. data/node_modules/core-js/modules/es6.string.anchor.js +7 -0
  2322. data/node_modules/core-js/modules/es6.string.big.js +7 -0
  2323. data/node_modules/core-js/modules/es6.string.blink.js +7 -0
  2324. data/node_modules/core-js/modules/es6.string.bold.js +7 -0
  2325. data/node_modules/core-js/modules/es6.string.code-point-at.js +9 -0
  2326. data/node_modules/core-js/modules/es6.string.ends-with.js +20 -0
  2327. data/node_modules/core-js/modules/es6.string.fixed.js +7 -0
  2328. data/node_modules/core-js/modules/es6.string.fontcolor.js +7 -0
  2329. data/node_modules/core-js/modules/es6.string.fontsize.js +7 -0
  2330. data/node_modules/core-js/modules/es6.string.from-code-point.js +23 -0
  2331. data/node_modules/core-js/modules/es6.string.includes.js +12 -0
  2332. data/node_modules/core-js/modules/es6.string.italics.js +7 -0
  2333. data/node_modules/core-js/modules/es6.string.iterator.js +17 -0
  2334. data/node_modules/core-js/modules/es6.string.link.js +7 -0
  2335. data/node_modules/core-js/modules/es6.string.raw.js +18 -0
  2336. data/node_modules/core-js/modules/es6.string.repeat.js +6 -0
  2337. data/node_modules/core-js/modules/es6.string.small.js +7 -0
  2338. data/node_modules/core-js/modules/es6.string.starts-with.js +18 -0
  2339. data/node_modules/core-js/modules/es6.string.strike.js +7 -0
  2340. data/node_modules/core-js/modules/es6.string.sub.js +7 -0
  2341. data/node_modules/core-js/modules/es6.string.sup.js +7 -0
  2342. data/node_modules/core-js/modules/es6.string.trim.js +7 -0
  2343. data/node_modules/core-js/modules/es6.symbol.js +246 -0
  2344. data/node_modules/core-js/modules/es6.typed.array-buffer.js +46 -0
  2345. data/node_modules/core-js/modules/es6.typed.data-view.js +4 -0
  2346. data/node_modules/core-js/modules/es6.typed.float32-array.js +5 -0
  2347. data/node_modules/core-js/modules/es6.typed.float64-array.js +5 -0
  2348. data/node_modules/core-js/modules/es6.typed.int16-array.js +5 -0
  2349. data/node_modules/core-js/modules/es6.typed.int32-array.js +5 -0
  2350. data/node_modules/core-js/modules/es6.typed.int8-array.js +5 -0
  2351. data/node_modules/core-js/modules/es6.typed.uint16-array.js +5 -0
  2352. data/node_modules/core-js/modules/es6.typed.uint32-array.js +5 -0
  2353. data/node_modules/core-js/modules/es6.typed.uint8-array.js +5 -0
  2354. data/node_modules/core-js/modules/es6.typed.uint8-clamped-array.js +5 -0
  2355. data/node_modules/core-js/modules/es6.weak-map.js +60 -0
  2356. data/node_modules/core-js/modules/es6.weak-set.js +14 -0
  2357. data/node_modules/core-js/modules/es7.array.flat-map.js +22 -0
  2358. data/node_modules/core-js/modules/es7.array.flatten.js +21 -0
  2359. data/node_modules/core-js/modules/es7.array.includes.js +12 -0
  2360. data/node_modules/core-js/modules/es7.asap.js +12 -0
  2361. data/node_modules/core-js/modules/es7.error.is-error.js +9 -0
  2362. data/node_modules/core-js/modules/es7.global.js +4 -0
  2363. data/node_modules/core-js/modules/es7.map.from.js +2 -0
  2364. data/node_modules/core-js/modules/es7.map.of.js +2 -0
  2365. data/node_modules/core-js/modules/es7.map.to-json.js +4 -0
  2366. data/node_modules/core-js/modules/es7.math.clamp.js +8 -0
  2367. data/node_modules/core-js/modules/es7.math.deg-per-rad.js +4 -0
  2368. data/node_modules/core-js/modules/es7.math.degrees.js +9 -0
  2369. data/node_modules/core-js/modules/es7.math.fscale.js +10 -0
  2370. data/node_modules/core-js/modules/es7.math.iaddh.js +11 -0
  2371. data/node_modules/core-js/modules/es7.math.imulh.js +16 -0
  2372. data/node_modules/core-js/modules/es7.math.isubh.js +11 -0
  2373. data/node_modules/core-js/modules/es7.math.rad-per-deg.js +4 -0
  2374. data/node_modules/core-js/modules/es7.math.radians.js +9 -0
  2375. data/node_modules/core-js/modules/es7.math.scale.js +4 -0
  2376. data/node_modules/core-js/modules/es7.math.signbit.js +7 -0
  2377. data/node_modules/core-js/modules/es7.math.umulh.js +16 -0
  2378. data/node_modules/core-js/modules/es7.object.define-getter.js +12 -0
  2379. data/node_modules/core-js/modules/es7.object.define-setter.js +12 -0
  2380. data/node_modules/core-js/modules/es7.object.entries.js +9 -0
  2381. data/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js +22 -0
  2382. data/node_modules/core-js/modules/es7.object.lookup-getter.js +18 -0
  2383. data/node_modules/core-js/modules/es7.object.lookup-setter.js +18 -0
  2384. data/node_modules/core-js/modules/es7.object.values.js +9 -0
  2385. data/node_modules/core-js/modules/es7.observable.js +199 -0
  2386. data/node_modules/core-js/modules/es7.promise.finally.js +20 -0
  2387. data/node_modules/core-js/modules/es7.promise.try.js +12 -0
  2388. data/node_modules/core-js/modules/es7.reflect.define-metadata.js +8 -0
  2389. data/node_modules/core-js/modules/es7.reflect.delete-metadata.js +15 -0
  2390. data/node_modules/core-js/modules/es7.reflect.get-metadata-keys.js +19 -0
  2391. data/node_modules/core-js/modules/es7.reflect.get-metadata.js +17 -0
  2392. data/node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js +8 -0
  2393. data/node_modules/core-js/modules/es7.reflect.get-own-metadata.js +9 -0
  2394. data/node_modules/core-js/modules/es7.reflect.has-metadata.js +16 -0
  2395. data/node_modules/core-js/modules/es7.reflect.has-own-metadata.js +9 -0
  2396. data/node_modules/core-js/modules/es7.reflect.metadata.js +15 -0
  2397. data/node_modules/core-js/modules/es7.set.from.js +2 -0
  2398. data/node_modules/core-js/modules/es7.set.of.js +2 -0
  2399. data/node_modules/core-js/modules/es7.set.to-json.js +4 -0
  2400. data/node_modules/core-js/modules/es7.string.at.js +15 -0
  2401. data/node_modules/core-js/modules/es7.string.match-all.js +30 -0
  2402. data/node_modules/core-js/modules/es7.string.pad-end.js +14 -0
  2403. data/node_modules/core-js/modules/es7.string.pad-start.js +14 -0
  2404. data/node_modules/core-js/modules/es7.string.trim-left.js +7 -0
  2405. data/node_modules/core-js/modules/es7.string.trim-right.js +7 -0
  2406. data/node_modules/core-js/modules/es7.symbol.async-iterator.js +1 -0
  2407. data/node_modules/core-js/modules/es7.symbol.observable.js +1 -0
  2408. data/node_modules/core-js/modules/es7.system.global.js +4 -0
  2409. data/node_modules/core-js/modules/es7.weak-map.from.js +2 -0
  2410. data/node_modules/core-js/modules/es7.weak-map.of.js +2 -0
  2411. data/node_modules/core-js/modules/es7.weak-set.from.js +2 -0
  2412. data/node_modules/core-js/modules/es7.weak-set.of.js +2 -0
  2413. data/node_modules/core-js/modules/library/_add-to-unscopables.js +1 -0
  2414. data/node_modules/core-js/modules/library/_collection.js +59 -0
  2415. data/node_modules/core-js/modules/library/_export.js +62 -0
  2416. data/node_modules/core-js/modules/library/_library.js +1 -0
  2417. data/node_modules/core-js/modules/library/_path.js +1 -0
  2418. data/node_modules/core-js/modules/library/_redefine-all.js +7 -0
  2419. data/node_modules/core-js/modules/library/_redefine.js +1 -0
  2420. data/node_modules/core-js/modules/library/_regexp-exec-abstract.js +1 -0
  2421. data/node_modules/core-js/modules/library/_regexp-exec.js +1 -0
  2422. data/node_modules/core-js/modules/library/_set-species.js +14 -0
  2423. data/node_modules/core-js/modules/library/es6.date.to-json.js +19 -0
  2424. data/node_modules/core-js/modules/library/es6.date.to-primitive.js +0 -0
  2425. data/node_modules/core-js/modules/library/es6.date.to-string.js +0 -0
  2426. data/node_modules/core-js/modules/library/es6.function.name.js +0 -0
  2427. data/node_modules/core-js/modules/library/es6.number.constructor.js +0 -0
  2428. data/node_modules/core-js/modules/library/es6.object.to-string.js +0 -0
  2429. data/node_modules/core-js/modules/library/es6.regexp.constructor.js +1 -0
  2430. data/node_modules/core-js/modules/library/es6.regexp.exec.js +1 -0
  2431. data/node_modules/core-js/modules/library/es6.regexp.flags.js +0 -0
  2432. data/node_modules/core-js/modules/library/es6.regexp.match.js +0 -0
  2433. data/node_modules/core-js/modules/library/es6.regexp.replace.js +0 -0
  2434. data/node_modules/core-js/modules/library/es6.regexp.search.js +0 -0
  2435. data/node_modules/core-js/modules/library/es6.regexp.split.js +0 -0
  2436. data/node_modules/core-js/modules/library/es6.regexp.to-string.js +0 -0
  2437. data/node_modules/core-js/modules/library/web.dom.iterable.js +19 -0
  2438. data/node_modules/core-js/modules/web.dom.iterable.js +58 -0
  2439. data/node_modules/core-js/modules/web.immediate.js +6 -0
  2440. data/node_modules/core-js/modules/web.timers.js +20 -0
  2441. data/node_modules/core-js/package.json +73 -0
  2442. data/node_modules/core-js/postinstall.js +58 -0
  2443. data/node_modules/core-js/shim.js +198 -0
  2444. data/node_modules/core-js/stage/0.js +10 -0
  2445. data/node_modules/core-js/stage/1.js +23 -0
  2446. data/node_modules/core-js/stage/2.js +4 -0
  2447. data/node_modules/core-js/stage/3.js +4 -0
  2448. data/node_modules/core-js/stage/4.js +11 -0
  2449. data/node_modules/core-js/stage/index.js +1 -0
  2450. data/node_modules/core-js/stage/pre.js +10 -0
  2451. data/node_modules/core-js/web/dom-collections.js +2 -0
  2452. data/node_modules/core-js/web/immediate.js +2 -0
  2453. data/node_modules/core-js/web/index.js +4 -0
  2454. data/node_modules/core-js/web/timers.js +2 -0
  2455. data/node_modules/detect-indent/index.js +120 -0
  2456. data/node_modules/detect-indent/license +21 -0
  2457. data/node_modules/detect-indent/package.json +46 -0
  2458. data/node_modules/detect-indent/readme.md +110 -0
  2459. data/node_modules/eslint/README.md +2 -2
  2460. data/node_modules/eslint/lib/api.js +1 -1
  2461. data/node_modules/eslint/lib/config/default-config.js +5 -0
  2462. data/node_modules/eslint/lib/config/flat-config-array.js +71 -8
  2463. data/node_modules/eslint/lib/config/flat-config-schema.js +46 -62
  2464. data/node_modules/eslint/lib/eslint/eslint-helpers.js +27 -17
  2465. data/node_modules/eslint/lib/eslint/eslint.js +14 -10
  2466. data/node_modules/eslint/lib/languages/js/index.js +247 -0
  2467. data/node_modules/eslint/lib/{source-code → languages/js/source-code}/source-code.js +38 -18
  2468. data/node_modules/eslint/lib/languages/js/validate-language-options.js +181 -0
  2469. data/node_modules/eslint/lib/linter/apply-disable-directives.js +8 -3
  2470. data/node_modules/eslint/lib/linter/linter.js +122 -121
  2471. data/node_modules/eslint/lib/linter/report-translator.js +14 -7
  2472. data/node_modules/eslint/lib/linter/vfile.js +104 -0
  2473. data/node_modules/eslint/lib/rule-tester/rule-tester.js +5 -2
  2474. data/node_modules/eslint/lib/rules/no-sparse-arrays.js +26 -3
  2475. data/node_modules/eslint/messages/all-matched-files-ignored.js +21 -0
  2476. data/node_modules/eslint/package.json +11 -11
  2477. data/node_modules/fast-glob/node_modules/micromatch/LICENSE +21 -0
  2478. data/node_modules/fast-glob/node_modules/micromatch/README.md +1011 -0
  2479. data/node_modules/fast-glob/node_modules/micromatch/index.js +467 -0
  2480. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/LICENSE +21 -0
  2481. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/README.md +593 -0
  2482. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/index.js +170 -0
  2483. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/compile.js +57 -0
  2484. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/constants.js +57 -0
  2485. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/expand.js +113 -0
  2486. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/parse.js +333 -0
  2487. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/stringify.js +32 -0
  2488. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/lib/utils.js +112 -0
  2489. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/LICENSE +21 -0
  2490. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/README.md +237 -0
  2491. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/index.js +249 -0
  2492. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/node_modules/fill-range/package.json +69 -0
  2493. data/node_modules/fast-glob/node_modules/micromatch/node_modules/braces/package.json +77 -0
  2494. data/node_modules/fast-glob/node_modules/micromatch/package.json +119 -0
  2495. data/node_modules/fill-range/index.js +4 -5
  2496. data/node_modules/fill-range/package.json +8 -3
  2497. data/node_modules/has-ansi/index.js +4 -0
  2498. data/node_modules/has-ansi/license +21 -0
  2499. data/node_modules/has-ansi/node_modules/ansi-regex/index.js +4 -0
  2500. data/node_modules/has-ansi/node_modules/ansi-regex/license +21 -0
  2501. data/node_modules/has-ansi/node_modules/ansi-regex/package.json +64 -0
  2502. data/node_modules/has-ansi/node_modules/ansi-regex/readme.md +39 -0
  2503. data/node_modules/has-ansi/package.json +55 -0
  2504. data/node_modules/has-ansi/readme.md +36 -0
  2505. data/node_modules/home-or-tmp/index.js +5 -0
  2506. data/node_modules/home-or-tmp/license +21 -0
  2507. data/node_modules/home-or-tmp/package.json +43 -0
  2508. data/node_modules/home-or-tmp/readme.md +32 -0
  2509. data/node_modules/invariant/CHANGELOG.md +69 -0
  2510. data/node_modules/invariant/LICENSE +21 -0
  2511. data/node_modules/invariant/README.md +37 -0
  2512. data/node_modules/invariant/browser.js +49 -0
  2513. data/node_modules/invariant/invariant.js +51 -0
  2514. data/node_modules/invariant/invariant.js.flow +7 -0
  2515. data/node_modules/invariant/package.json +35 -0
  2516. data/node_modules/is-finite/index.js +5 -0
  2517. data/node_modules/is-finite/license +9 -0
  2518. data/node_modules/is-finite/package.json +34 -0
  2519. data/node_modules/is-finite/readme.md +33 -0
  2520. data/node_modules/js-tokens/CHANGELOG.md +0 -17
  2521. data/node_modules/js-tokens/LICENSE +1 -1
  2522. data/node_modules/js-tokens/README.md +7 -25
  2523. data/node_modules/js-tokens/index.js +3 -3
  2524. data/node_modules/js-tokens/package.json +5 -5
  2525. data/node_modules/jscodeshift/CHANGELOG.md +8 -0
  2526. data/node_modules/jscodeshift/CODE_OF_CONDUCT.md +0 -0
  2527. data/node_modules/jscodeshift/CONTRIBUTING.md +0 -0
  2528. data/node_modules/jscodeshift/LICENSE +0 -0
  2529. data/node_modules/jscodeshift/README.md +42 -6
  2530. data/node_modules/jscodeshift/dist/Collection.js +0 -0
  2531. data/node_modules/jscodeshift/dist/Runner.js +7 -0
  2532. data/node_modules/jscodeshift/dist/Worker.js +0 -0
  2533. data/node_modules/jscodeshift/dist/argsParser.js +0 -0
  2534. data/node_modules/jscodeshift/dist/collections/JSXElement.js +0 -0
  2535. data/node_modules/jscodeshift/dist/collections/Node.js +0 -0
  2536. data/node_modules/jscodeshift/dist/collections/VariableDeclarator.js +0 -0
  2537. data/node_modules/jscodeshift/dist/collections/index.js +0 -0
  2538. data/node_modules/jscodeshift/dist/core.js +0 -0
  2539. data/node_modules/jscodeshift/dist/getParser.js +0 -0
  2540. data/node_modules/jscodeshift/dist/ignoreFiles.js +0 -0
  2541. data/node_modules/jscodeshift/dist/matchNode.js +0 -0
  2542. data/node_modules/jscodeshift/dist/src/Collection.js +0 -0
  2543. data/node_modules/jscodeshift/dist/src/Runner.js +7 -0
  2544. data/node_modules/jscodeshift/dist/src/Worker.js +0 -0
  2545. data/node_modules/jscodeshift/dist/src/argsParser.js +0 -0
  2546. data/node_modules/jscodeshift/dist/src/collections/JSXElement.js +0 -0
  2547. data/node_modules/jscodeshift/dist/src/collections/Node.js +0 -0
  2548. data/node_modules/jscodeshift/dist/src/collections/VariableDeclarator.js +0 -0
  2549. data/node_modules/jscodeshift/dist/src/collections/index.js +0 -0
  2550. data/node_modules/jscodeshift/dist/src/core.js +0 -0
  2551. data/node_modules/jscodeshift/dist/src/getParser.js +0 -0
  2552. data/node_modules/jscodeshift/dist/src/ignoreFiles.js +0 -0
  2553. data/node_modules/jscodeshift/dist/src/matchNode.js +0 -0
  2554. data/node_modules/jscodeshift/dist/src/template.js +0 -0
  2555. data/node_modules/jscodeshift/dist/src/testUtils.js +0 -0
  2556. data/node_modules/jscodeshift/dist/src/utils/intersection.js +0 -0
  2557. data/node_modules/jscodeshift/dist/src/utils/once.js +0 -0
  2558. data/node_modules/jscodeshift/dist/src/utils/union.js +0 -0
  2559. data/node_modules/jscodeshift/dist/template.js +0 -0
  2560. data/node_modules/jscodeshift/dist/testUtils.js +0 -0
  2561. data/node_modules/jscodeshift/dist/utils/intersection.js +0 -0
  2562. data/node_modules/jscodeshift/dist/utils/once.js +0 -0
  2563. data/node_modules/jscodeshift/dist/utils/union.js +0 -0
  2564. data/node_modules/jscodeshift/index.js +0 -0
  2565. data/node_modules/jscodeshift/package.json +20 -20
  2566. data/node_modules/jscodeshift/parser/babel5Compat.js +0 -0
  2567. data/node_modules/jscodeshift/parser/babylon.js +0 -0
  2568. data/node_modules/jscodeshift/parser/flow.js +0 -0
  2569. data/node_modules/jscodeshift/parser/ts.js +0 -0
  2570. data/node_modules/jscodeshift/parser/tsOptions.js +0 -0
  2571. data/node_modules/jscodeshift/parser/tsx.js +0 -0
  2572. data/node_modules/jscodeshift/src/Collection.js +0 -0
  2573. data/node_modules/jscodeshift/src/Runner.js +7 -0
  2574. data/node_modules/jscodeshift/src/Worker.js +0 -0
  2575. data/node_modules/jscodeshift/src/argsParser.js +0 -0
  2576. data/node_modules/jscodeshift/src/collections/JSXElement.js +0 -0
  2577. data/node_modules/jscodeshift/src/collections/Node.js +0 -0
  2578. data/node_modules/jscodeshift/src/collections/VariableDeclarator.js +0 -0
  2579. data/node_modules/jscodeshift/src/collections/index.js +0 -0
  2580. data/node_modules/jscodeshift/src/core.js +0 -0
  2581. data/node_modules/jscodeshift/src/getParser.js +0 -0
  2582. data/node_modules/jscodeshift/src/ignoreFiles.js +0 -0
  2583. data/node_modules/jscodeshift/src/matchNode.js +0 -0
  2584. data/node_modules/jscodeshift/src/template.js +0 -0
  2585. data/node_modules/jscodeshift/src/testUtils.js +0 -0
  2586. data/node_modules/jscodeshift/src/utils/intersection.js +0 -0
  2587. data/node_modules/jscodeshift/src/utils/once.js +0 -0
  2588. data/node_modules/jscodeshift/src/utils/union.js +0 -0
  2589. data/node_modules/jscodeshift/utils/requirePackage.js +0 -0
  2590. data/node_modules/jscodeshift/utils/testUtils.js +0 -0
  2591. data/node_modules/loose-envify/LICENSE +21 -0
  2592. data/node_modules/loose-envify/README.md +45 -0
  2593. data/node_modules/loose-envify/cli.js +16 -0
  2594. data/node_modules/loose-envify/custom.js +4 -0
  2595. data/node_modules/loose-envify/index.js +3 -0
  2596. data/node_modules/loose-envify/loose-envify.js +36 -0
  2597. data/node_modules/loose-envify/node_modules/js-tokens/CHANGELOG.md +151 -0
  2598. data/node_modules/loose-envify/node_modules/js-tokens/LICENSE +21 -0
  2599. data/node_modules/loose-envify/node_modules/js-tokens/README.md +240 -0
  2600. data/node_modules/loose-envify/node_modules/js-tokens/index.js +23 -0
  2601. data/node_modules/loose-envify/node_modules/js-tokens/package.json +30 -0
  2602. data/node_modules/loose-envify/package.json +36 -0
  2603. data/node_modules/loose-envify/replace.js +65 -0
  2604. data/node_modules/micromatch/README.md +135 -129
  2605. data/node_modules/micromatch/package.json +7 -25
  2606. data/node_modules/mkdirp/LICENSE +2 -2
  2607. data/node_modules/mkdirp/bin/cmd.js +29 -64
  2608. data/node_modules/mkdirp/bin/usage.txt +12 -0
  2609. data/node_modules/mkdirp/index.js +95 -24
  2610. data/node_modules/mkdirp/package.json +11 -22
  2611. data/node_modules/mkdirp/readme.markdown +35 -201
  2612. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/CHANGELOG.md +15 -0
  2613. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/LICENSE +21 -0
  2614. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/bin/cmd.js +68 -0
  2615. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/index.js +31 -0
  2616. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/find-made.js +29 -0
  2617. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
  2618. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
  2619. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/opts-arg.js +23 -0
  2620. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/path-arg.js +29 -0
  2621. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js +10 -0
  2622. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/package.json +44 -0
  2623. data/node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/readme.markdown +266 -0
  2624. data/node_modules/os-homedir/index.js +24 -0
  2625. data/node_modules/os-homedir/license +21 -0
  2626. data/node_modules/os-homedir/package.json +41 -0
  2627. data/node_modules/os-homedir/readme.md +31 -0
  2628. data/node_modules/os-tmpdir/index.js +25 -0
  2629. data/node_modules/os-tmpdir/license +21 -0
  2630. data/node_modules/os-tmpdir/package.json +41 -0
  2631. data/node_modules/os-tmpdir/readme.md +32 -0
  2632. data/node_modules/prettier/LICENSE +10 -10
  2633. data/node_modules/prettier/doc.js +10 -10
  2634. data/node_modules/prettier/doc.mjs +10 -10
  2635. data/node_modules/prettier/index.cjs +2 -2
  2636. data/node_modules/prettier/index.mjs +70 -62
  2637. data/node_modules/prettier/internal/cli.mjs +13 -13
  2638. data/node_modules/prettier/package.json +1 -1
  2639. data/node_modules/prettier/plugins/babel.js +1 -1
  2640. data/node_modules/prettier/plugins/babel.mjs +1 -1
  2641. data/node_modules/prettier/plugins/estree.js +3 -3
  2642. data/node_modules/prettier/plugins/estree.mjs +3 -3
  2643. data/node_modules/prettier/plugins/glimmer.js +3 -3
  2644. data/node_modules/prettier/plugins/glimmer.mjs +3 -3
  2645. data/node_modules/prettier/plugins/graphql.js +4 -4
  2646. data/node_modules/prettier/plugins/graphql.mjs +4 -4
  2647. data/node_modules/prettier/plugins/html.js +18 -15
  2648. data/node_modules/prettier/plugins/html.mjs +18 -15
  2649. data/node_modules/prettier/plugins/markdown.js +43 -40
  2650. data/node_modules/prettier/plugins/markdown.mjs +43 -40
  2651. data/node_modules/prettier/plugins/meriyah.js +3 -3
  2652. data/node_modules/prettier/plugins/meriyah.mjs +4 -4
  2653. data/node_modules/prettier/plugins/postcss.js +27 -24
  2654. data/node_modules/prettier/plugins/postcss.mjs +27 -24
  2655. data/node_modules/prettier/plugins/typescript.js +12 -12
  2656. data/node_modules/prettier/plugins/typescript.mjs +12 -12
  2657. data/node_modules/prettier/plugins/yaml.js +1 -1
  2658. data/node_modules/prettier/plugins/yaml.mjs +1 -1
  2659. data/node_modules/prettier/standalone.js +2 -2
  2660. data/node_modules/prettier/standalone.mjs +2 -2
  2661. data/node_modules/private/LICENSE +20 -0
  2662. data/node_modules/private/README.md +245 -0
  2663. data/node_modules/private/package.json +39 -0
  2664. data/node_modules/private/private.js +129 -0
  2665. data/node_modules/recast/lib/printer.js +7 -1
  2666. data/node_modules/recast/package.json +1 -1
  2667. data/node_modules/regenerator-runtime/README.md +31 -0
  2668. data/node_modules/regenerator-runtime/package.json +18 -0
  2669. data/node_modules/regenerator-runtime/path.js +11 -0
  2670. data/node_modules/regenerator-runtime/runtime-module.js +35 -0
  2671. data/node_modules/regenerator-runtime/runtime.js +727 -0
  2672. data/node_modules/repeating/index.js +24 -0
  2673. data/node_modules/repeating/license +21 -0
  2674. data/node_modules/repeating/package.json +37 -0
  2675. data/node_modules/repeating/readme.md +30 -0
  2676. data/node_modules/signal-exit/LICENSE.txt +1 -1
  2677. data/node_modules/signal-exit/README.md +56 -21
  2678. data/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  2679. data/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  2680. data/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  2681. data/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  2682. data/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  2683. data/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  2684. data/node_modules/signal-exit/dist/cjs/index.js +279 -0
  2685. data/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  2686. data/node_modules/signal-exit/dist/cjs/package.json +3 -0
  2687. data/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  2688. data/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  2689. data/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  2690. data/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  2691. data/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  2692. data/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  2693. data/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  2694. data/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  2695. data/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  2696. data/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  2697. data/node_modules/signal-exit/dist/mjs/index.js +275 -0
  2698. data/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  2699. data/node_modules/signal-exit/dist/mjs/package.json +3 -0
  2700. data/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  2701. data/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  2702. data/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  2703. data/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  2704. data/node_modules/signal-exit/package.json +87 -19
  2705. data/node_modules/string-width-cjs/index.d.ts +29 -0
  2706. data/node_modules/string-width-cjs/index.js +47 -0
  2707. data/node_modules/string-width-cjs/license +9 -0
  2708. data/node_modules/string-width-cjs/node_modules/strip-ansi/index.d.ts +17 -0
  2709. data/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
  2710. data/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
  2711. data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +37 -0
  2712. data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.js +10 -0
  2713. data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
  2714. data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/package.json +55 -0
  2715. data/node_modules/string-width-cjs/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +78 -0
  2716. data/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
  2717. data/node_modules/string-width-cjs/node_modules/strip-ansi/readme.md +46 -0
  2718. data/node_modules/string-width-cjs/package.json +56 -0
  2719. data/node_modules/string-width-cjs/readme.md +50 -0
  2720. data/node_modules/strip-ansi-cjs/index.d.ts +17 -0
  2721. data/node_modules/strip-ansi-cjs/index.js +4 -0
  2722. data/node_modules/strip-ansi-cjs/license +9 -0
  2723. data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.d.ts +37 -0
  2724. data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
  2725. data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
  2726. data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
  2727. data/node_modules/strip-ansi-cjs/node_modules/ansi-regex/readme.md +78 -0
  2728. data/node_modules/strip-ansi-cjs/package.json +54 -0
  2729. data/node_modules/strip-ansi-cjs/readme.md +46 -0
  2730. data/node_modules/tar/node_modules/mkdirp/CHANGELOG.md +15 -0
  2731. data/node_modules/tar/node_modules/mkdirp/LICENSE +21 -0
  2732. data/node_modules/tar/node_modules/mkdirp/bin/cmd.js +68 -0
  2733. data/node_modules/tar/node_modules/mkdirp/index.js +31 -0
  2734. data/node_modules/tar/node_modules/mkdirp/lib/find-made.js +29 -0
  2735. data/node_modules/tar/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
  2736. data/node_modules/tar/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
  2737. data/node_modules/tar/node_modules/mkdirp/lib/opts-arg.js +23 -0
  2738. data/node_modules/tar/node_modules/mkdirp/lib/path-arg.js +29 -0
  2739. data/node_modules/tar/node_modules/mkdirp/lib/use-native.js +10 -0
  2740. data/node_modules/tar/node_modules/mkdirp/package.json +44 -0
  2741. data/node_modules/tar/node_modules/mkdirp/readme.markdown +266 -0
  2742. data/node_modules/temp/README.md +8 -32
  2743. data/node_modules/temp/lib/temp.js +67 -55
  2744. data/node_modules/temp/package.json +4 -3
  2745. data/node_modules/trim-right/index.js +10 -0
  2746. data/node_modules/trim-right/license +21 -0
  2747. data/node_modules/trim-right/package.json +37 -0
  2748. data/node_modules/trim-right/readme.md +30 -0
  2749. data/node_modules/wrap-ansi-cjs/index.js +216 -0
  2750. data/node_modules/wrap-ansi-cjs/license +9 -0
  2751. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.d.ts +17 -0
  2752. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
  2753. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
  2754. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +37 -0
  2755. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/index.js +10 -0
  2756. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
  2757. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/package.json +55 -0
  2758. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +78 -0
  2759. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
  2760. data/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/readme.md +46 -0
  2761. data/node_modules/wrap-ansi-cjs/package.json +62 -0
  2762. data/node_modules/wrap-ansi-cjs/readme.md +91 -0
  2763. data/node_modules/write-file-atomic/README.md +41 -6
  2764. data/node_modules/write-file-atomic/lib/index.js +267 -0
  2765. data/node_modules/write-file-atomic/package.json +35 -19
  2766. data/package.json +4 -4
  2767. metadata +2432 -38
  2768. data/node_modules/@babel/helpers/lib/helpers/AsyncGenerator.js.map +0 -1
  2769. data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimitLoose.js +0 -18
  2770. data/node_modules/@babel/helpers/lib/helpers/iterableToArrayLimitLoose.js.map +0 -1
  2771. data/node_modules/@babel/helpers/lib/helpers.js +0 -1673
  2772. data/node_modules/@babel/helpers/lib/helpers.js.map +0 -1
  2773. data/node_modules/@babel/helpers/scripts/package.json +0 -1
  2774. data/node_modules/write-file-atomic/CHANGELOG.md +0 -25
  2775. data/node_modules/write-file-atomic/index.js +0 -238
  2776. /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/CHANGELOG.md +0 -0
  2777. /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/find-made.js +0 -0
  2778. /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/mkdirp-manual.js +0 -0
  2779. /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/mkdirp-native.js +0 -0
  2780. /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/opts-arg.js +0 -0
  2781. /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/path-arg.js +0 -0
  2782. /data/node_modules/{mkdirp → @npmcli/move-file/node_modules/mkdirp}/lib/use-native.js +0 -0
  2783. /data/node_modules/{signal-exit → configstore/node_modules/write-file-atomic/node_modules/signal-exit}/index.js +0 -0
  2784. /data/node_modules/{signal-exit → configstore/node_modules/write-file-atomic/node_modules/signal-exit}/signals.js +0 -0
  2785. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/index.js +0 -0
  2786. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/backward-token-comment-cursor.js +0 -0
  2787. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/backward-token-cursor.js +0 -0
  2788. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/cursor.js +0 -0
  2789. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/cursors.js +0 -0
  2790. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/decorative-cursor.js +0 -0
  2791. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/filter-cursor.js +0 -0
  2792. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/forward-token-comment-cursor.js +0 -0
  2793. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/forward-token-cursor.js +0 -0
  2794. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/index.js +0 -0
  2795. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/limit-cursor.js +0 -0
  2796. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/padded-token-cursor.js +0 -0
  2797. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/skip-cursor.js +0 -0
  2798. /data/node_modules/eslint/lib/{source-code → languages/js/source-code}/token-store/utils.js +0 -0
  2799. /data/node_modules/{braces → fast-glob/node_modules/micromatch/node_modules/braces}/CHANGELOG.md +0 -0
  2800. /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,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;IACtC,IAAI,CAACC,IAAI,GAAGP,WAAW,CAACQ,GAAkB;IAE1C,IAAI,CAACf,YAAY,GAAG,IAAI,CAACgB,cAAc,CAAClB,cAAc,EAAEC,IAAI,EAAE,IAAI,CAAC;EACrE;EAEAkB,UAAUA,CAACC,gBAAwB,EAAEnB,IAA4B,EAAE;IACjE,OAAO,IAAI,CAACoB,QAAQ,CAAC,SAAS,EAAED,gBAAgB,EAAEnB,IAAI,CAAC;EACzD;EAEAoB,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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
+ {"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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C;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",
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/types": "^7.24.0"
18
+ "@babel/traverse": "^7.24.7",
19
+ "@babel/types": "^7.24.7"
19
20
  },
20
21
  "devDependencies": {
21
- "@babel/core": "^7.24.3",
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 // eslint-disable-next-line no-func-assign\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;EAI3CC,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,GAAAJ,oBAAA,GAAED,UAAU,CAACK,QAAQ,YAAA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AAE;IAEf,OAAOA,WAAW,CAACK,UAAU,CAAC,IAAIA,UAAU;EAC9C,CAAC,MAAM;IACL,OAAOA,UAAU;EACnB;AACF","ignoreList":[]}
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,GAAAJ,oBAAA,GAAED,UAAU,CAACK,QAAQ,YAAAJ,oBAAA,GAAIF,QAAQ,CAACM,QAAQ;MAClDC,SAAS,GAAAJ,qBAAA,GAAEF,UAAU,CAACM,SAAS,YAAAJ,qBAAA,GAAIH,QAAQ,CAACO,SAAS;MACrDC,WAAW,GAAAJ,qBAAA,GAAEH,UAAU,CAACO,WAAW,YAAAJ,qBAAA,GAAIJ,QAAQ,CAACQ,WAAW;MAC3DC,UAAU,GAAAJ,qBAAA,GAAEJ,UAAU,CAACQ,UAAU,YAAAJ,qBAAA,GAAIL,QAAQ,CAACS;IAChD,CAAC,CAAC;EACJ,CAAC;AACH;AAEe,SAASZ,aAAaA,CACnCG,QAAqB,EACrBC,UAAyB,EACV;EACf,MAAM;IACJS,QAAQ;IACRC,gBAAgB,GAAGD,QAAQ;IAC3BE,UAAU,GAAGX,UAAU,CAACQ;EAC1B,CAAC,GAAGT,QAAQ;EAEZ,MAAM;IACJM,QAAQ;IACRC,SAAS,GAAG,CAAC,CAACD,QAAQ;IAEtBE,WAAW;IAEXC,UAAU,GAAGG;EACf,CAAC,GAAGX,UAAU;EAEd,IAAI,CAACM,SAAS,EAAE,OAAO,IAAI;EAG3B,IAAID,QAAQ,IAAI,IAAI,IAAI,CAACE,WAAW,EAAE;IACpC,OAAOF,QAAQ;EACjB;EAEA,IAAIO,UAAU,GAAGJ,UAAU,IAAI,IAAI,GAAGA,UAAU,GAAG,GAAG,GAAG,EAAE;EAE3D,IAAIE,gBAAgB,EAAE;IACpB,MAAMG,kBAAkB,GACtBF,UAAU,IAAI,IAAI,GAAG,IAAIG,MAAM,CAAC,GAAG,GAAGH,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE;IAE/DC,UAAU,IAAIF,gBAAgB,CAE3BK,OAAO,CAACF,kBAAkB,EAAE,EAAE,CAAC,CAE/BE,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;EAC7B;EAGAH,UAAU,GAAGA,UAAU,CAACG,OAAO,CAAC,KAAK,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;EACn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,cAAQ,CAAC4D,UAAW;AAC9B,CAAC;AAED,SAASd,kBAAkBA,CACzBpD,QAAwB,EACxBoE,WAAqB,EACrBC,QAAsB,EACtB;EACA,MAAM;IAAE7C,gBAAgB;IAAEhF,UAAU,EAAEqE;EAAQ,CAAC,GAAGb,QAAQ;EAC1D,OAAOrE,mBAAmB,CACxByI,WAAW,CAACE,MAAM,CAAC,CAACC,GAAG,EAAE/H,UAAU,KAAK;IACtC,MAAMgI,MAAM,GAAG;MACb3D,OAAO;MACPN,IAAI,EAAE/D,UAAU;MAChBiI,KAAK,EAAEF;IACT,CAAC;IAED,IAAI/H,UAAU,KAAK,WAAW,EAAE;MAC9B,OAAOwH,YAAY,CAACG,MAAM,CAACK,MAAM,CAAC;IACpC;IAEA,IAAIhD,gBAAgB,CAACO,GAAG,CAACvF,UAAU,CAAC,EAAE;MACpC,OAAOwH,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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;AAED,SAASd,kBAAkBA,CACzBpD,QAAwB,EACxBoE,WAAqB,EACrBC,QAAsB,EACtB;EACA,MAAM;IAAE7C,gBAAgB;IAAEhF,UAAU,EAAEqE;EAAQ,CAAC,GAAGb,QAAQ;EAC1D,OAAOrE,mBAAmB,CACxByI,WAAW,CAACE,MAAM,CAAC,CAACC,GAAG,EAAE/H,UAAU,KAAK;IACtC,MAAMgI,MAAM,GAAG;MACb3D,OAAO;MACPN,IAAI,EAAE/D,UAAU;MAChBiI,KAAK,EAAEF;IACT,CAAC;IAED,IAAI/H,UAAU,KAAK,WAAW,EAAE;MAC9B,OAAOwH,YAAY,CAACG,MAAM,CAACK,MAAM,CAAC;IACpC;IAEA,IAAIhD,gBAAgB,CAACO,GAAG,CAACvF,UAAU,CAAC,EAAE;MACpC,OAAOwH,YAAY,CAACC,QAAQ,CAACO,MAAM,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,OAAA;AAGA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,6BAAA,GAAAF,OAAA;AA6DO,SAASG,UAAUA,CAACC,QAAwB,EAAE;EACnD,OAAOA,QAAQ,CAACD,UAAU;AAC5B;AAKO,SAASE,kBAAkBA,CAACC,MAA4B,EAAE;EAC/D,OACEA,MAAM,CAACC,OAAO,CAACC,IAAI,KAAK,CAAC,IACzBF,MAAM,CAACG,gBAAgB,CAACD,IAAI,KAAK,CAAC,IAClCF,MAAM,CAACI,SAAS,CAACF,IAAI,KAAK,CAAC,IAC3BF,MAAM,CAACK,iBAAiB,CAACH,IAAI,KAAK,CAAC,IACnC,CAACF,MAAM,CAACM,WAAW;AAEvB;AAEO,SAASC,2BAA2BA,CACzCC,aAAkB,EACc;EAChC,IACE,OAAOA,aAAa,KAAK,UAAU,IACnCA,aAAa,KAAK,MAAM,IACxBA,aAAa,KAAK,OAAO,IACzBA,aAAa,KAAK,MAAM,EACxB;IACA,MAAM,IAAIC,KAAK,CACZ,gHAA+GD,aAAc,IAChI,CAAC;EACH;EACA,OAAOA,aAAa;AACtB;AAEA,SAASE,oBAAoBA,C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C;MAChB;IACF,CAAC,MAAM,IAAIlC,KAAK,CAACa,0BAA0B,CAAC,CAAC,EAAE;MAE7C,MAAMM,WAAW,GAAGnB,KAAK,CAACV,GAAG,CAAC,aAAa,CAAC;MAC5C,IACE6B,WAAW,CAACC,qBAAqB,CAAC,CAAC,IACnCD,WAAW,CAACE,kBAAkB,CAAC,CAAC,EAChC;QAEAF,WAAW,CAACgB,WAAW,GAAGnC,KAAK,CAAC7B,IAAI,CAACgE,WAAW;QAChDnC,KAAK,CAACoC,WAAW,CAACjB,WAAW,CAAC;MAChC,CAAC,MAAM;QAEL,MAAMA,WAAW,CAACtC,mBAAmB,CACnC,uCACF,CAAC;MACH;IACF,CAAC,MAAM,IAAImB,KAAK,CAACW,sBAAsB,CAAC,CAAC,EAAE;MACzCX,KAAK,CAACkC,MAAM,CAAC,CAAC;IAChB;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,OAAOA,QAAQ,CAACD,UAAU;AAC5B;AAKO,SAASE,kBAAkBA,CAACC,MAA4B,EAAE;EAC/D,OACEA,MAAM,CAACC,OAAO,CAACC,IAAI,KAAK,CAAC,IACzBF,MAAM,CAACG,gBAAgB,CAACD,IAAI,KAAK,CAAC,IAClCF,MAAM,CAACI,SAAS,CAACF,IAAI,KAAK,CAAC,IAC3BF,MAAM,CAACK,iBAAiB,CAACH,IAAI,KAAK,CAAC,IACnC,CAACF,MAAM,CAACM,WAAW;AAEvB;AAEO,SAASC,2BAA2BA,CACzCC,aAAkB,EACc;EAChC,IACE,OAAOA,aAAa,KAAK,UAAU,IACnCA,aAAa,KAAK,MAAM,IACxBA,aAAa,KAAK,OAAO,IACzBA,aAAa,KAAK,MAAM,EACxB;IACA,MAAM,IAAIC,KAAK,CACZ,gHAA+GD,aAAc,IAChI,CAAC;EACH;EACA,OAAOA,aAAa;AACtB;AAEA,SAASE,oBAAoBA,CAC3BF,aAA4B,EAC5BR,MAAc,EACdW,QAA4B,EAC5B;EACA,IAAI,OAAOH,aAAa,KAAK,UAAU,EAAE;IACvC,OAAOD,2BAA2B,CAACC,aAAa,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