@mjhls/mjh-framework 1.0.711-cors-proxy-v2 → 1.0.712

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +17 -17
  4. package/dist/cjs/AD300x250x600.js +17 -17
  5. package/dist/cjs/AD728x90.js +19 -19
  6. package/dist/cjs/ADFloatingFooter.js +17 -17
  7. package/dist/cjs/ADFooter.js +6 -6
  8. package/dist/cjs/ADGutter.js +17 -17
  9. package/dist/cjs/{ADInfeed-71e2533d.js → ADInfeed-2c7a6dd8.js} +2 -2
  10. package/dist/cjs/ADSkyscraper.js +17 -17
  11. package/dist/cjs/ADSponsoredResources.js +17 -17
  12. package/dist/cjs/ADWebcast.js +17 -17
  13. package/dist/cjs/ADWelcome.js +17 -17
  14. package/dist/cjs/{ADlgInfeed-2c6a814f.js → ADlgInfeed-fb101797.js} +2 -2
  15. package/dist/cjs/AccordionPanel.js +8 -8
  16. package/dist/cjs/AdSlot.js +20 -20
  17. package/dist/cjs/AdSlotsProvider.js +3 -3
  18. package/dist/cjs/AlphabeticList.js +9 -9
  19. package/dist/cjs/ArticleCarousel.js +16 -16
  20. package/dist/cjs/ArticleSeriesListing.js +28 -28
  21. package/dist/cjs/Auth.js +611 -213
  22. package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-5fa89df5.js} +1 -1
  23. package/dist/cjs/Beam.js +9 -9
  24. package/dist/cjs/{BlockContent-8b494587.js → BlockContent-eca358e4.js} +1 -1
  25. package/dist/cjs/Breadcrumbs.js +8 -8
  26. package/dist/cjs/BrowseVideosListing.js +18 -18
  27. package/dist/cjs/CMEDeck.js +24 -27
  28. package/dist/cjs/Column2.js +16 -16
  29. package/dist/cjs/Column3.js +29 -29
  30. package/dist/cjs/ConferenceArticleCard.js +7 -7
  31. package/dist/cjs/DeckContent.js +31 -31
  32. package/dist/cjs/DeckQueue.js +25 -25
  33. package/dist/cjs/{Dfp-234d2d8e.js → Dfp-a863cf48.js} +12 -12
  34. package/dist/cjs/EventsDeck.js +22 -22
  35. package/dist/cjs/ExternalResources.js +42 -42
  36. package/dist/cjs/Feature.js +3 -3
  37. package/dist/cjs/ForbesHero.js +11 -11
  38. package/dist/cjs/GridContent.js +40 -40
  39. package/dist/cjs/GridHero.js +12 -12
  40. package/dist/cjs/GroupDeck.js +12 -12
  41. package/dist/cjs/HamMagazine.js +24 -24
  42. package/dist/cjs/Hero.js +3 -3
  43. package/dist/cjs/HighlightenVideo.js +2 -2
  44. package/dist/cjs/HorizontalHero.js +4 -4
  45. package/dist/cjs/IssueContentDeck.js +12 -12
  46. package/dist/cjs/IssueDeck.js +15 -15
  47. package/dist/cjs/IssueLanding.js +33 -33
  48. package/dist/cjs/LeftNav.js +19 -19
  49. package/dist/cjs/MasterDeck.js +31 -31
  50. package/dist/cjs/NavDvm.js +14 -14
  51. package/dist/cjs/NavMagazine.js +29 -29
  52. package/dist/cjs/NavNative.js +24 -24
  53. package/dist/cjs/NavNormal.js +15 -15
  54. package/dist/cjs/OncliveHero.js +4 -4
  55. package/dist/cjs/OncliveLargeHero.js +12 -12
  56. package/dist/cjs/PageFilter.js +6 -6
  57. package/dist/cjs/PartnerDetailListing.js +53 -53
  58. package/dist/cjs/PdfDownload.js +1 -1
  59. package/dist/cjs/PopUpModal.js +6 -6
  60. package/dist/cjs/PublicationDeck.js +7 -7
  61. package/dist/cjs/PublicationLanding.js +17 -17
  62. package/dist/cjs/QueueDeckExpanded.js +33 -33
  63. package/dist/cjs/RecentNews.js +5 -5
  64. package/dist/cjs/RelatedContent.js +6 -6
  65. package/dist/cjs/Search.js +8 -8
  66. package/dist/cjs/Segment.js +7 -7
  67. package/dist/cjs/SetCookie.js +1 -1
  68. package/dist/cjs/SideFooter.js +14 -14
  69. package/dist/cjs/{SocialSearchComponent-87578cd1.js → SocialSearchComponent-45c54bed.js} +6 -6
  70. package/dist/cjs/TaxonomyCard.js +9 -9
  71. package/dist/cjs/TaxonomyDescription.js +41 -41
  72. package/dist/cjs/TemplateNormal.js +44 -44
  73. package/dist/cjs/ThumbnailCard.js +6 -6
  74. package/dist/cjs/Ustream.js +8 -8
  75. package/dist/cjs/VerticalHero.js +3 -3
  76. package/dist/cjs/VideoSeriesCard.js +12 -12
  77. package/dist/cjs/VideoSeriesFilter.js +10 -10
  78. package/dist/cjs/VideoSeriesListing.js +28 -28
  79. package/dist/cjs/View.js +69 -70
  80. package/dist/cjs/YahooHero.js +14 -14
  81. package/dist/cjs/YoutubeGroup.js +15 -15
  82. package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
  83. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
  84. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
  85. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
  86. package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
  87. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
  88. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
  89. package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
  90. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
  91. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  92. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
  93. package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
  94. package/dist/cjs/getRelatedArticle.js +133 -71
  95. package/dist/cjs/getSerializers.js +41 -41
  96. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-497b581d.js} +2 -2
  97. package/dist/cjs/getTargeting.js +7 -7
  98. package/dist/cjs/{index-6367b7bf.js → index-4d74ffd6.js} +31 -31
  99. package/dist/cjs/{index-e08f00ce.js → index-5ad2b070.js} +21 -40
  100. package/dist/cjs/{index-8a3fb0bc.js → index-80f57cff.js} +7 -7
  101. package/dist/cjs/{index-ad961307.js → index-bb09dc7c.js} +83 -83
  102. package/dist/cjs/{index-b5eb3ff8.js → index-d48b231c.js} +11 -6
  103. package/dist/cjs/{index.esm-3ffa049c.js → index.esm-8123cf40.js} +1 -1
  104. package/dist/cjs/index.js +124 -124
  105. package/dist/cjs/{inherits-87492b40.js → inherits-2eb23889.js} +5 -5
  106. package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
  107. package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
  108. package/dist/cjs/{main-7b5e57b0.js → main-dc082238.js} +51 -51
  109. package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
  110. package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
  111. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
  112. package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
  113. package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
  114. package/dist/cjs/timeDifferenceCalc.js +1 -1
  115. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
  116. package/dist/cjs/{typeof-9d7f610f.js → typeof-97065d40.js} +6 -6
  117. package/dist/cjs/urlFor.js +1 -1
  118. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  119. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
  120. package/dist/esm/AD.js +1 -1
  121. package/dist/esm/AD300x250.js +17 -17
  122. package/dist/esm/AD300x250x600.js +17 -17
  123. package/dist/esm/AD728x90.js +19 -19
  124. package/dist/esm/ADFloatingFooter.js +17 -17
  125. package/dist/esm/ADFooter.js +6 -6
  126. package/dist/esm/ADGutter.js +17 -17
  127. package/dist/esm/{ADInfeed-73a22dad.js → ADInfeed-a9a35a5c.js} +2 -2
  128. package/dist/esm/ADSkyscraper.js +17 -17
  129. package/dist/esm/ADSponsoredResources.js +17 -17
  130. package/dist/esm/ADWebcast.js +17 -17
  131. package/dist/esm/ADWelcome.js +17 -17
  132. package/dist/esm/{ADlgInfeed-e5c107b7.js → ADlgInfeed-ce2e0e3a.js} +2 -2
  133. package/dist/esm/AccordionPanel.js +8 -8
  134. package/dist/esm/AdSlot.js +20 -20
  135. package/dist/esm/AdSlotsProvider.js +3 -3
  136. package/dist/esm/AlphabeticList.js +9 -9
  137. package/dist/esm/ArticleCarousel.js +16 -16
  138. package/dist/esm/ArticleSeriesListing.js +28 -28
  139. package/dist/esm/Auth.js +611 -213
  140. package/dist/esm/{AuthorComponent-23afa074.js → AuthorComponent-c29a0075.js} +1 -1
  141. package/dist/esm/Beam.js +9 -9
  142. package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-d8cd739c.js} +1 -1
  143. package/dist/esm/Breadcrumbs.js +7 -7
  144. package/dist/esm/BrowseVideosListing.js +18 -18
  145. package/dist/esm/CMEDeck.js +24 -27
  146. package/dist/esm/Column2.js +16 -16
  147. package/dist/esm/Column3.js +29 -29
  148. package/dist/esm/ConferenceArticleCard.js +7 -7
  149. package/dist/esm/DeckContent.js +31 -31
  150. package/dist/esm/DeckQueue.js +25 -25
  151. package/dist/esm/{Dfp-f9463b48.js → Dfp-db06d7dc.js} +12 -12
  152. package/dist/esm/EventsDeck.js +20 -20
  153. package/dist/esm/ExternalResources.js +42 -42
  154. package/dist/esm/Feature.js +3 -3
  155. package/dist/esm/ForbesHero.js +11 -11
  156. package/dist/esm/GridContent.js +40 -40
  157. package/dist/esm/GridHero.js +12 -12
  158. package/dist/esm/GroupDeck.js +12 -12
  159. package/dist/esm/HamMagazine.js +24 -24
  160. package/dist/esm/Hero.js +3 -3
  161. package/dist/esm/HighlightenVideo.js +2 -2
  162. package/dist/esm/HorizontalHero.js +4 -4
  163. package/dist/esm/IssueContentDeck.js +12 -12
  164. package/dist/esm/IssueDeck.js +14 -14
  165. package/dist/esm/IssueLanding.js +33 -33
  166. package/dist/esm/LeftNav.js +19 -19
  167. package/dist/esm/MasterDeck.js +31 -31
  168. package/dist/esm/NavDvm.js +14 -14
  169. package/dist/esm/NavMagazine.js +29 -29
  170. package/dist/esm/NavNative.js +22 -22
  171. package/dist/esm/NavNormal.js +15 -15
  172. package/dist/esm/OncliveHero.js +4 -4
  173. package/dist/esm/OncliveLargeHero.js +12 -12
  174. package/dist/esm/PageFilter.js +6 -6
  175. package/dist/esm/PartnerDetailListing.js +53 -53
  176. package/dist/esm/PdfDownload.js +1 -1
  177. package/dist/esm/PopUpModal.js +6 -6
  178. package/dist/esm/PublicationDeck.js +6 -6
  179. package/dist/esm/PublicationLanding.js +16 -16
  180. package/dist/esm/QueueDeckExpanded.js +33 -33
  181. package/dist/esm/RecentNews.js +5 -5
  182. package/dist/esm/RelatedContent.js +6 -6
  183. package/dist/esm/Search.js +7 -7
  184. package/dist/esm/Segment.js +7 -7
  185. package/dist/esm/SetCookie.js +1 -1
  186. package/dist/esm/SideFooter.js +14 -14
  187. package/dist/esm/{SocialSearchComponent-91c19daa.js → SocialSearchComponent-fab3e851.js} +5 -5
  188. package/dist/esm/TaxonomyCard.js +9 -9
  189. package/dist/esm/TaxonomyDescription.js +41 -41
  190. package/dist/esm/TemplateNormal.js +44 -44
  191. package/dist/esm/ThumbnailCard.js +6 -6
  192. package/dist/esm/Ustream.js +8 -8
  193. package/dist/esm/VerticalHero.js +3 -3
  194. package/dist/esm/VideoSeriesCard.js +12 -12
  195. package/dist/esm/VideoSeriesFilter.js +10 -10
  196. package/dist/esm/VideoSeriesListing.js +28 -28
  197. package/dist/esm/View.js +67 -68
  198. package/dist/esm/YahooHero.js +14 -14
  199. package/dist/esm/YoutubeGroup.js +15 -15
  200. package/dist/esm/{_is-array-49698029.js → _is-array-9383b394.js} +6 -6
  201. package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-d4d262ee.js} +2 -2
  202. package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-6a003379.js} +1 -1
  203. package/dist/esm/{_set-species-cede29f8.js → _set-species-0b056cff.js} +4 -4
  204. package/dist/esm/{_to-object-ded78eb9.js → _to-object-9bef3b62.js} +5 -5
  205. package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-acd1cc47.js} +8 -8
  206. package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-1b116089.js} +2 -2
  207. package/dist/esm/{define-property-de3fc946.js → define-property-9a008401.js} +1 -1
  208. package/dist/esm/{defineProperty-b798470d.js → defineProperty-ddd52c29.js} +1 -1
  209. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  210. package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-b24a54f2.js} +3 -3
  211. package/dist/esm/{extends-cc5da797.js → extends-c2b1c9d7.js} +1 -1
  212. package/dist/esm/getRelatedArticle.js +133 -71
  213. package/dist/esm/getSerializers.js +41 -41
  214. package/dist/esm/{getTargeting-2acdec91.js → getTargeting-b1a7be54.js} +2 -2
  215. package/dist/esm/getTargeting.js +7 -7
  216. package/dist/esm/{index-51a80699.js → index-3f5c03b2.js} +11 -6
  217. package/dist/esm/{index-1a7c57c9.js → index-48a08226.js} +80 -80
  218. package/dist/esm/{index-acfb8079.js → index-669ff425.js} +21 -40
  219. package/dist/esm/{index-c5fd0af5.js → index-752d1dae.js} +6 -6
  220. package/dist/esm/{index-c00b0bbb.js → index-ccb770c7.js} +31 -31
  221. package/dist/esm/{index.esm-8ee5ff72.js → index.esm-8016b507.js} +1 -1
  222. package/dist/esm/index.js +105 -105
  223. package/dist/esm/{inherits-596840e8.js → inherits-18d4a779.js} +5 -5
  224. package/dist/esm/{keys-fc2d4c34.js → keys-9bb7939c.js} +2 -2
  225. package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
  226. package/dist/esm/{main-747e7d25.js → main-1450d277.js} +51 -51
  227. package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
  228. package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-91f9716f.js} +16 -16
  229. package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-34468155.js} +4 -4
  230. package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
  231. package/dist/esm/{stringify-008c8802.js → stringify-8a4f19f7.js} +1 -1
  232. package/dist/esm/timeDifferenceCalc.js +1 -1
  233. package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-5212fee7.js} +4 -4
  234. package/dist/esm/{typeof-ee095d0c.js → typeof-64422756.js} +6 -6
  235. package/dist/esm/urlFor.js +1 -1
  236. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  237. package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-ca37144a.js} +3 -3
  238. package/package.json +1 -1
  239. package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
  240. package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-b43c695a.js} +1 -1
package/dist/cjs/Auth.js CHANGED
@@ -2,27 +2,27 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
6
- require('./_to-object-329a650b.js');
7
- require('./es6.string.iterator-cc0bbaa4.js');
8
- require('./_library-dd23b178.js');
9
- require('./_iter-detect-60b2f026.js');
10
- require('./core.get-iterator-method-f62321d4.js');
11
- require('./_object-pie-68c5bcbc.js');
12
- var _extends = require('./extends-60837c34.js');
13
- require('./web.dom.iterable-a0e279c1.js');
5
+ var asyncToGenerator = require('./asyncToGenerator-2edcb6ad.js');
6
+ var stringify = require('./stringify-01cf47f7.js');
7
+ var slicedToArray = require('./slicedToArray-db24842a.js');
14
8
  var React = require('react');
15
9
  var Router = require('next/router');
16
- var stringify = require('./stringify-7c5aff47.js');
17
- var slicedToArray = require('./slicedToArray-8f385299.js');
18
- var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
19
- require('./_set-species-f92c67c5.js');
10
+ var _extends = require('./extends-1e24fc8d.js');
20
11
  var reactBootstrap = require('react-bootstrap');
21
- var util = require('./util-f2c1b65b.js');
22
- var index = require('./index-bd6c9f56.js');
23
12
  var useSWR = require('swr');
13
+ var index = require('./index-bd6c9f56.js');
24
14
  var Local = require('passport-local');
25
15
  var mysql = require('mysql');
16
+ var util = require('./util-6f784d85.js');
17
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
18
+ require('./es6.string.iterator-20d42c53.js');
19
+ require('./_to-object-821a2927.js');
20
+ require('./web.dom.iterable-4480325a.js');
21
+ require('./_library-dd23b178.js');
22
+ require('./core.get-iterator-method-b4615fd3.js');
23
+ require('./_set-species-a8cfdb84.js');
24
+ require('./_iter-detect-2613ffa1.js');
25
+ require('./_object-pie-68c5bcbc.js');
26
26
 
27
27
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
28
28
 
@@ -1549,59 +1549,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1549
1549
 
1550
1550
  var defineProperties_1 = defineProperties;
1551
1551
 
1552
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
1553
- var shams = function hasSymbols() {
1554
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1555
- if (typeof Symbol.iterator === 'symbol') { return true; }
1556
-
1557
- var obj = {};
1558
- var sym = Symbol('test');
1559
- var symObj = Object(sym);
1560
- if (typeof sym === 'string') { return false; }
1561
-
1562
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1563
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1564
-
1565
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
1566
- // if (sym instanceof Symbol) { return false; }
1567
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1568
- // if (!(symObj instanceof Symbol)) { return false; }
1569
-
1570
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1571
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1572
-
1573
- var symVal = 42;
1574
- obj[sym] = symVal;
1575
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1576
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1577
-
1578
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1579
-
1580
- var syms = Object.getOwnPropertySymbols(obj);
1581
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
1582
-
1583
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1584
-
1585
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
1586
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1587
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1588
- }
1589
-
1590
- return true;
1591
- };
1592
-
1593
- var origSymbol = _commonjsHelpers.commonjsGlobal.Symbol;
1594
-
1595
-
1596
- var hasSymbols$1 = function hasNativeSymbols() {
1597
- if (typeof origSymbol !== 'function') { return false; }
1598
- if (typeof Symbol !== 'function') { return false; }
1599
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
1600
- if (typeof Symbol('bar') !== 'symbol') { return false; }
1601
-
1602
- return shams();
1603
- };
1604
-
1605
1552
  /* eslint no-invalid-this: 1 */
1606
1553
 
1607
1554
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
@@ -1655,15 +1602,74 @@ var implementation$1 = function bind(that) {
1655
1602
 
1656
1603
  var functionBind = Function.prototype.bind || implementation$1;
1657
1604
 
1658
- /* globals
1659
- Atomics,
1660
- SharedArrayBuffer,
1661
- */
1605
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1606
+ var shams = function hasSymbols() {
1607
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1608
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1609
+
1610
+ var obj = {};
1611
+ var sym = Symbol('test');
1612
+ var symObj = Object(sym);
1613
+ if (typeof sym === 'string') { return false; }
1614
+
1615
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1616
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1617
+
1618
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1619
+ // if (sym instanceof Symbol) { return false; }
1620
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1621
+ // if (!(symObj instanceof Symbol)) { return false; }
1622
+
1623
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1624
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1625
+
1626
+ var symVal = 42;
1627
+ obj[sym] = symVal;
1628
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1629
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1630
+
1631
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1632
+
1633
+ var syms = Object.getOwnPropertySymbols(obj);
1634
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1635
+
1636
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1637
+
1638
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1639
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1640
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1641
+ }
1642
+
1643
+ return true;
1644
+ };
1645
+
1646
+ var origSymbol = _commonjsHelpers.commonjsGlobal.Symbol;
1647
+
1648
+
1649
+ var hasSymbols$1 = function hasNativeSymbols() {
1650
+ if (typeof origSymbol !== 'function') { return false; }
1651
+ if (typeof Symbol !== 'function') { return false; }
1652
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1653
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1654
+
1655
+ return shams();
1656
+ };
1657
+
1658
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1662
1659
 
1663
1660
  var undefined$1;
1664
1661
 
1662
+ var $SyntaxError = SyntaxError;
1663
+ var $Function = Function;
1665
1664
  var $TypeError = TypeError;
1666
1665
 
1666
+ // eslint-disable-next-line consistent-return
1667
+ var getEvalledConstructor = function (expressionSyntax) {
1668
+ try {
1669
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1670
+ } catch (e) {}
1671
+ };
1672
+
1667
1673
  var $gOPD = Object.getOwnPropertyDescriptor;
1668
1674
  if ($gOPD) {
1669
1675
  try {
@@ -1673,7 +1679,9 @@ if ($gOPD) {
1673
1679
  }
1674
1680
  }
1675
1681
 
1676
- var throwTypeError = function () { throw new $TypeError(); };
1682
+ var throwTypeError = function () {
1683
+ throw new $TypeError();
1684
+ };
1677
1685
  var ThrowTypeError = $gOPD
1678
1686
  ? (function () {
1679
1687
  try {
@@ -1694,170 +1702,265 @@ var ThrowTypeError = $gOPD
1694
1702
  var hasSymbols$2 = hasSymbols$1();
1695
1703
 
1696
1704
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1697
- var generatorFunction = undefined$1;
1698
- var asyncFunction = undefined$1;
1699
- var asyncGenFunction = undefined$1;
1705
+
1706
+ var needsEval = {};
1700
1707
 
1701
1708
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1702
1709
 
1703
1710
  var INTRINSICS = {
1711
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1704
1712
  '%Array%': Array,
1705
1713
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1706
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1707
1714
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1708
- '%ArrayPrototype%': Array.prototype,
1709
- '%ArrayProto_entries%': Array.prototype.entries,
1710
- '%ArrayProto_forEach%': Array.prototype.forEach,
1711
- '%ArrayProto_keys%': Array.prototype.keys,
1712
- '%ArrayProto_values%': Array.prototype.values,
1713
1715
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1714
- '%AsyncFunction%': asyncFunction,
1715
- '%AsyncFunctionPrototype%': undefined$1,
1716
- '%AsyncGenerator%': undefined$1,
1717
- '%AsyncGeneratorFunction%': asyncGenFunction,
1718
- '%AsyncGeneratorPrototype%': undefined$1,
1719
- '%AsyncIteratorPrototype%': undefined$1,
1716
+ '%AsyncFunction%': needsEval,
1717
+ '%AsyncGenerator%': needsEval,
1718
+ '%AsyncGeneratorFunction%': needsEval,
1719
+ '%AsyncIteratorPrototype%': needsEval,
1720
1720
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1721
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1721
1722
  '%Boolean%': Boolean,
1722
- '%BooleanPrototype%': Boolean.prototype,
1723
1723
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1724
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1725
1724
  '%Date%': Date,
1726
- '%DatePrototype%': Date.prototype,
1727
1725
  '%decodeURI%': decodeURI,
1728
1726
  '%decodeURIComponent%': decodeURIComponent,
1729
1727
  '%encodeURI%': encodeURI,
1730
1728
  '%encodeURIComponent%': encodeURIComponent,
1731
1729
  '%Error%': Error,
1732
- '%ErrorPrototype%': Error.prototype,
1733
1730
  '%eval%': eval, // eslint-disable-line no-eval
1734
1731
  '%EvalError%': EvalError,
1735
- '%EvalErrorPrototype%': EvalError.prototype,
1736
1732
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1737
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1738
1733
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1739
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
1740
- '%Function%': Function,
1741
- '%FunctionPrototype%': Function.prototype,
1742
- '%Generator%': undefined$1,
1743
- '%GeneratorFunction%': generatorFunction,
1744
- '%GeneratorPrototype%': undefined$1,
1734
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1735
+ '%Function%': $Function,
1736
+ '%GeneratorFunction%': needsEval,
1745
1737
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1746
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1747
1738
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1748
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1749
1739
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1750
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1751
1740
  '%isFinite%': isFinite,
1752
1741
  '%isNaN%': isNaN,
1753
1742
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1754
1743
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1755
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1756
1744
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1757
1745
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1758
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1759
1746
  '%Math%': Math,
1760
1747
  '%Number%': Number,
1761
- '%NumberPrototype%': Number.prototype,
1762
1748
  '%Object%': Object,
1763
- '%ObjectPrototype%': Object.prototype,
1764
- '%ObjProto_toString%': Object.prototype.toString,
1765
- '%ObjProto_valueOf%': Object.prototype.valueOf,
1766
1749
  '%parseFloat%': parseFloat,
1767
1750
  '%parseInt%': parseInt,
1768
1751
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1769
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
1770
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
1771
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
1772
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
1773
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1774
1752
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1775
1753
  '%RangeError%': RangeError,
1776
- '%RangeErrorPrototype%': RangeError.prototype,
1777
1754
  '%ReferenceError%': ReferenceError,
1778
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
1779
1755
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1780
1756
  '%RegExp%': RegExp,
1781
- '%RegExpPrototype%': RegExp.prototype,
1782
1757
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1783
1758
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1784
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1785
1759
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1786
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1787
1760
  '%String%': String,
1788
1761
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1789
- '%StringPrototype%': String.prototype,
1790
1762
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1791
- '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1792
- '%SyntaxError%': SyntaxError,
1793
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
1763
+ '%SyntaxError%': $SyntaxError,
1794
1764
  '%ThrowTypeError%': ThrowTypeError,
1795
1765
  '%TypedArray%': TypedArray,
1796
- '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1797
1766
  '%TypeError%': $TypeError,
1798
- '%TypeErrorPrototype%': $TypeError.prototype,
1799
1767
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1800
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1801
1768
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1802
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1803
1769
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1804
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1805
1770
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1806
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1807
1771
  '%URIError%': URIError,
1808
- '%URIErrorPrototype%': URIError.prototype,
1809
1772
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1810
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
1811
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
1812
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1773
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1774
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1775
+ };
1776
+
1777
+ var doEval = function doEval(name) {
1778
+ var value;
1779
+ if (name === '%AsyncFunction%') {
1780
+ value = getEvalledConstructor('async function () {}');
1781
+ } else if (name === '%GeneratorFunction%') {
1782
+ value = getEvalledConstructor('function* () {}');
1783
+ } else if (name === '%AsyncGeneratorFunction%') {
1784
+ value = getEvalledConstructor('async function* () {}');
1785
+ } else if (name === '%AsyncGenerator%') {
1786
+ var fn = doEval('%AsyncGeneratorFunction%');
1787
+ if (fn) {
1788
+ value = fn.prototype;
1789
+ }
1790
+ } else if (name === '%AsyncIteratorPrototype%') {
1791
+ var gen = doEval('%AsyncGenerator%');
1792
+ if (gen) {
1793
+ value = getProto(gen.prototype);
1794
+ }
1795
+ }
1796
+
1797
+ INTRINSICS[name] = value;
1798
+
1799
+ return value;
1800
+ };
1801
+
1802
+ var LEGACY_ALIASES = {
1803
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1804
+ '%ArrayPrototype%': ['Array', 'prototype'],
1805
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1806
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1807
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1808
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1809
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1810
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1811
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1812
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1813
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1814
+ '%DatePrototype%': ['Date', 'prototype'],
1815
+ '%ErrorPrototype%': ['Error', 'prototype'],
1816
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1817
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1818
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1819
+ '%FunctionPrototype%': ['Function', 'prototype'],
1820
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1821
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1822
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1823
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1824
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1825
+ '%JSONParse%': ['JSON', 'parse'],
1826
+ '%JSONStringify%': ['JSON', 'stringify'],
1827
+ '%MapPrototype%': ['Map', 'prototype'],
1828
+ '%NumberPrototype%': ['Number', 'prototype'],
1829
+ '%ObjectPrototype%': ['Object', 'prototype'],
1830
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1831
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1832
+ '%PromisePrototype%': ['Promise', 'prototype'],
1833
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1834
+ '%Promise_all%': ['Promise', 'all'],
1835
+ '%Promise_reject%': ['Promise', 'reject'],
1836
+ '%Promise_resolve%': ['Promise', 'resolve'],
1837
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1838
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1839
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1840
+ '%SetPrototype%': ['Set', 'prototype'],
1841
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1842
+ '%StringPrototype%': ['String', 'prototype'],
1843
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1844
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1845
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1846
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1847
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1848
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1849
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1850
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1851
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1852
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1853
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1813
1854
  };
1814
1855
 
1815
1856
 
1857
+
1858
+ var $concat = functionBind.call(Function.call, Array.prototype.concat);
1859
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
1816
1860
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1861
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
1817
1862
 
1818
1863
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1819
1864
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1820
1865
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1821
1866
  var stringToPath = function stringToPath(string) {
1867
+ var first = $strSlice(string, 0, 1);
1868
+ var last = $strSlice(string, -1);
1869
+ if (first === '%' && last !== '%') {
1870
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1871
+ } else if (last === '%' && first !== '%') {
1872
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1873
+ }
1822
1874
  var result = [];
1823
1875
  $replace(string, rePropName, function (match, number, quote, subString) {
1824
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1876
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1825
1877
  });
1826
1878
  return result;
1827
1879
  };
1828
1880
  /* end adaptation */
1829
1881
 
1830
1882
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1831
- if (!(name in INTRINSICS)) {
1832
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1883
+ var intrinsicName = name;
1884
+ var alias;
1885
+ if (src(LEGACY_ALIASES, intrinsicName)) {
1886
+ alias = LEGACY_ALIASES[intrinsicName];
1887
+ intrinsicName = '%' + alias[0] + '%';
1833
1888
  }
1834
1889
 
1835
- // istanbul ignore if // hopefully this is impossible to test :-)
1836
- if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
1837
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1890
+ if (src(INTRINSICS, intrinsicName)) {
1891
+ var value = INTRINSICS[intrinsicName];
1892
+ if (value === needsEval) {
1893
+ value = doEval(intrinsicName);
1894
+ }
1895
+ if (typeof value === 'undefined' && !allowMissing) {
1896
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1897
+ }
1898
+
1899
+ return {
1900
+ alias: alias,
1901
+ name: intrinsicName,
1902
+ value: value
1903
+ };
1838
1904
  }
1839
1905
 
1840
- return INTRINSICS[name];
1906
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
1841
1907
  };
1842
1908
 
1843
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1909
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1844
1910
  if (typeof name !== 'string' || name.length === 0) {
1845
- throw new TypeError('intrinsic name must be a non-empty string');
1911
+ throw new $TypeError('intrinsic name must be a non-empty string');
1846
1912
  }
1847
1913
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1848
- throw new TypeError('"allowMissing" argument must be a boolean');
1914
+ throw new $TypeError('"allowMissing" argument must be a boolean');
1849
1915
  }
1850
1916
 
1851
1917
  var parts = stringToPath(name);
1918
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1852
1919
 
1853
- var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
1854
- for (var i = 1; i < parts.length; i += 1) {
1855
- if (value != null) {
1856
- if ($gOPD && (i + 1) >= parts.length) {
1857
- var desc = $gOPD(value, parts[i]);
1858
- if (!allowMissing && !(parts[i] in value)) {
1920
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1921
+ var intrinsicRealName = intrinsic.name;
1922
+ var value = intrinsic.value;
1923
+ var skipFurtherCaching = false;
1924
+
1925
+ var alias = intrinsic.alias;
1926
+ if (alias) {
1927
+ intrinsicBaseName = alias[0];
1928
+ $spliceApply(parts, $concat([0, 1], alias));
1929
+ }
1930
+
1931
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1932
+ var part = parts[i];
1933
+ var first = $strSlice(part, 0, 1);
1934
+ var last = $strSlice(part, -1);
1935
+ if (
1936
+ (
1937
+ (first === '"' || first === "'" || first === '`')
1938
+ || (last === '"' || last === "'" || last === '`')
1939
+ )
1940
+ && first !== last
1941
+ ) {
1942
+ throw new $SyntaxError('property names with quotes must have matching quotes');
1943
+ }
1944
+ if (part === 'constructor' || !isOwn) {
1945
+ skipFurtherCaching = true;
1946
+ }
1947
+
1948
+ intrinsicBaseName += '.' + part;
1949
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1950
+
1951
+ if (src(INTRINSICS, intrinsicRealName)) {
1952
+ value = INTRINSICS[intrinsicRealName];
1953
+ } else if (value != null) {
1954
+ if (!(part in value)) {
1955
+ if (!allowMissing) {
1859
1956
  throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1860
1957
  }
1958
+ return void undefined$1;
1959
+ }
1960
+ if ($gOPD && (i + 1) >= parts.length) {
1961
+ var desc = $gOPD(value, part);
1962
+ isOwn = !!desc;
1963
+
1861
1964
  // By convention, when a data property is converted to an accessor
1862
1965
  // property to emulate a data property that does not suffer from
1863
1966
  // the override mistake, that accessor's getter is marked with
@@ -1865,9 +1968,18 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1865
1968
  // uphold the illusion by pretending to see that original data
1866
1969
  // property, i.e., returning the value rather than the getter
1867
1970
  // itself.
1868
- value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
1971
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1972
+ value = desc.get;
1973
+ } else {
1974
+ value = value[part];
1975
+ }
1869
1976
  } else {
1870
- value = value[parts[i]];
1977
+ isOwn = src(value, part);
1978
+ value = value[part];
1979
+ }
1980
+
1981
+ if (isOwn && !skipFurtherCaching) {
1982
+ INTRINSICS[intrinsicRealName] = value;
1871
1983
  }
1872
1984
  }
1873
1985
  }
@@ -1879,12 +1991,13 @@ var callBind = _commonjsHelpers.createCommonjsModule(function (module) {
1879
1991
 
1880
1992
 
1881
1993
 
1994
+ var $apply = getIntrinsic('%Function.prototype.apply%');
1995
+ var $call = getIntrinsic('%Function.prototype.call%');
1996
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1882
1997
 
1883
- var $apply = GetIntrinsic('%Function.prototype.apply%');
1884
- var $call = GetIntrinsic('%Function.prototype.call%');
1885
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1886
-
1887
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
1998
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1999
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2000
+ var $max = getIntrinsic('%Math.max%');
1888
2001
 
1889
2002
  if ($defineProperty) {
1890
2003
  try {
@@ -1895,8 +2008,20 @@ if ($defineProperty) {
1895
2008
  }
1896
2009
  }
1897
2010
 
1898
- module.exports = function callBind() {
1899
- return $reflectApply(functionBind, $call, arguments);
2011
+ module.exports = function callBind(originalFunction) {
2012
+ var func = $reflectApply(functionBind, $call, arguments);
2013
+ if ($gOPD && $defineProperty) {
2014
+ var desc = $gOPD(func, 'length');
2015
+ if (desc.configurable) {
2016
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2017
+ $defineProperty(
2018
+ func,
2019
+ 'length',
2020
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2021
+ );
2022
+ }
2023
+ }
2024
+ return func;
1900
2025
  };
1901
2026
 
1902
2027
  var applyBind = function applyBind() {
@@ -1909,19 +2034,19 @@ if ($defineProperty) {
1909
2034
  module.exports.apply = applyBind;
1910
2035
  }
1911
2036
  });
1912
- var callBind_1 = callBind.apply;
2037
+ callBind.apply;
1913
2038
 
1914
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2039
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
1915
2040
 
1916
2041
  var callBound = function callBoundIntrinsic(name, allowMissing) {
1917
- var intrinsic = GetIntrinsic(name, !!allowMissing);
1918
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2042
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2043
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1919
2044
  return callBind(intrinsic);
1920
2045
  }
1921
2046
  return intrinsic;
1922
2047
  };
1923
2048
 
1924
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2049
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1925
2050
 
1926
2051
  if ($defineProperty) {
1927
2052
  try {
@@ -1963,10 +2088,8 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
1963
2088
  return true;
1964
2089
  };
1965
2090
 
1966
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1967
-
1968
- var $TypeError$1 = GetIntrinsic('%TypeError%');
1969
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
2091
+ var $TypeError$1 = getIntrinsic('%TypeError%');
2092
+ var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
1970
2093
 
1971
2094
 
1972
2095
 
@@ -2003,14 +2126,14 @@ var predicates = {
2003
2126
  var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
2004
2127
  var predicate = predicates[recordType];
2005
2128
  if (typeof predicate !== 'function') {
2006
- throw new $SyntaxError('unknown record type: ' + recordType);
2129
+ throw new $SyntaxError$1('unknown record type: ' + recordType);
2007
2130
  }
2008
2131
  if (!predicate(Type, value)) {
2009
2132
  throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2010
2133
  }
2011
2134
  };
2012
2135
 
2013
- // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2136
+ // https://ecma-international.org/ecma-262/5.1/#sec-8
2014
2137
 
2015
2138
  var Type = function Type(x) {
2016
2139
  if (x === null) {
@@ -2033,16 +2156,19 @@ var Type = function Type(x) {
2033
2156
  }
2034
2157
  };
2035
2158
 
2036
- // https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
2159
+ // https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
2037
2160
 
2038
2161
  var Type$1 = function Type$1(x) {
2039
2162
  if (typeof x === 'symbol') {
2040
2163
  return 'Symbol';
2041
2164
  }
2165
+ if (typeof x === 'bigint') {
2166
+ return 'BigInt';
2167
+ }
2042
2168
  return Type(x);
2043
2169
  };
2044
2170
 
2045
- // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2171
+ // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2046
2172
 
2047
2173
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2048
2174
  if (typeof Desc === 'undefined') {
@@ -2073,7 +2199,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2073
2199
  return obj;
2074
2200
  };
2075
2201
 
2076
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2202
+ var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2077
2203
  if ($gOPD$1) {
2078
2204
  try {
2079
2205
  $gOPD$1([], 'length');
@@ -2085,18 +2211,18 @@ if ($gOPD$1) {
2085
2211
 
2086
2212
  var getOwnPropertyDescriptor = $gOPD$1;
2087
2213
 
2088
- var $Array = GetIntrinsic('%Array%');
2214
+ var $Array = getIntrinsic('%Array%');
2089
2215
 
2090
2216
  // eslint-disable-next-line global-require
2091
2217
  var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2092
2218
 
2093
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2219
+ // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2094
2220
 
2095
2221
  var IsArray = $Array.isArray || function IsArray(argument) {
2096
2222
  return toStr$4(argument) === '[object Array]';
2097
2223
  };
2098
2224
 
2099
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2225
+ // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2100
2226
 
2101
2227
  var IsPropertyKey = function IsPropertyKey(argument) {
2102
2228
  return typeof argument === 'string' || typeof argument === 'symbol';
@@ -2104,14 +2230,14 @@ var IsPropertyKey = function IsPropertyKey(argument) {
2104
2230
 
2105
2231
  var hasSymbols$3 = hasSymbols$1();
2106
2232
  var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
2107
- var hasOwnProperty;
2108
- var regexExec;
2233
+ var has$1;
2234
+ var $exec;
2109
2235
  var isRegexMarker;
2110
2236
  var badStringifier;
2111
2237
 
2112
2238
  if (hasToStringTag) {
2113
- hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
2114
- regexExec = Function.call.bind(RegExp.prototype.exec);
2239
+ has$1 = callBound('Object.prototype.hasOwnProperty');
2240
+ $exec = callBound('RegExp.prototype.exec');
2115
2241
  isRegexMarker = {};
2116
2242
 
2117
2243
  var throwRegexMarker = function () {
@@ -2127,7 +2253,7 @@ if (hasToStringTag) {
2127
2253
  }
2128
2254
  }
2129
2255
 
2130
- var toStr$5 = Object.prototype.toString;
2256
+ var $toString = callBound('Object.prototype.toString');
2131
2257
  var gOPD = Object.getOwnPropertyDescriptor;
2132
2258
  var regexClass = '[object RegExp]';
2133
2259
 
@@ -2139,13 +2265,13 @@ var isRegex = hasToStringTag
2139
2265
  }
2140
2266
 
2141
2267
  var descriptor = gOPD(value, 'lastIndex');
2142
- var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
2268
+ var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
2143
2269
  if (!hasLastIndexDataProperty) {
2144
2270
  return false;
2145
2271
  }
2146
2272
 
2147
2273
  try {
2148
- regexExec(value, badStringifier);
2274
+ $exec(value, badStringifier);
2149
2275
  } catch (e) {
2150
2276
  return e === isRegexMarker;
2151
2277
  }
@@ -2156,14 +2282,14 @@ var isRegex = hasToStringTag
2156
2282
  return false;
2157
2283
  }
2158
2284
 
2159
- return toStr$5.call(value) === regexClass;
2285
+ return $toString(value) === regexClass;
2160
2286
  };
2161
2287
 
2162
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2288
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.2
2163
2289
 
2164
2290
  var ToBoolean = function ToBoolean(value) { return !!value; };
2165
2291
 
2166
- var $match = GetIntrinsic('%Symbol.match%', true);
2292
+ var $match = getIntrinsic('%Symbol.match%', true);
2167
2293
 
2168
2294
 
2169
2295
 
@@ -2226,13 +2352,16 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2226
2352
  return false;
2227
2353
  }
2228
2354
  };
2229
- var toStr$6 = Object.prototype.toString;
2355
+ var toStr$5 = Object.prototype.toString;
2230
2356
  var fnClass = '[object Function]';
2231
2357
  var genClass = '[object GeneratorFunction]';
2232
2358
  var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2359
+ /* globals document: false */
2360
+ var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2233
2361
 
2234
2362
  var isCallable = reflectApply
2235
2363
  ? function isCallable(value) {
2364
+ if (value === documentDotAll) { return true; }
2236
2365
  if (!value) { return false; }
2237
2366
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2238
2367
  if (typeof value === 'function' && !value.prototype) { return true; }
@@ -2244,20 +2373,21 @@ var isCallable = reflectApply
2244
2373
  return !isES6ClassFn(value);
2245
2374
  }
2246
2375
  : function isCallable(value) {
2376
+ if (value === documentDotAll) { return true; }
2247
2377
  if (!value) { return false; }
2248
2378
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2249
2379
  if (typeof value === 'function' && !value.prototype) { return true; }
2250
2380
  if (hasToStringTag$1) { return tryFunctionObject(value); }
2251
2381
  if (isES6ClassFn(value)) { return false; }
2252
- var strClass = toStr$6.call(value);
2382
+ var strClass = toStr$5.call(value);
2253
2383
  return strClass === fnClass || strClass === genClass;
2254
2384
  };
2255
2385
 
2256
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2386
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.11
2257
2387
 
2258
2388
  var IsCallable = isCallable;
2259
2389
 
2260
- var $TypeError$2 = GetIntrinsic('%TypeError%');
2390
+ var $TypeError$2 = getIntrinsic('%TypeError%');
2261
2391
 
2262
2392
 
2263
2393
 
@@ -2304,7 +2434,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2304
2434
  return desc;
2305
2435
  };
2306
2436
 
2307
- var $TypeError$3 = GetIntrinsic('%TypeError%');
2437
+ var $TypeError$3 = getIntrinsic('%TypeError%');
2308
2438
 
2309
2439
 
2310
2440
 
@@ -2318,7 +2448,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2318
2448
 
2319
2449
 
2320
2450
 
2321
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2451
+ // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2322
2452
 
2323
2453
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2324
2454
  if (Type$1(O) !== 'Object') {
@@ -2344,7 +2474,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2344
2474
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2345
2475
  };
2346
2476
 
2347
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2477
+ // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2348
2478
 
2349
2479
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2350
2480
  if (typeof Desc === 'undefined') {
@@ -2364,14 +2494,14 @@ var isPrimitive = function isPrimitive(value) {
2364
2494
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2365
2495
  };
2366
2496
 
2367
- var $Object = GetIntrinsic('%Object%');
2497
+ var $Object = getIntrinsic('%Object%');
2368
2498
 
2369
2499
 
2370
2500
 
2371
2501
  var $preventExtensions = $Object.preventExtensions;
2372
2502
  var $isExtensible = $Object.isExtensible;
2373
2503
 
2374
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2504
+ // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2375
2505
 
2376
2506
  var IsExtensible = $preventExtensions
2377
2507
  ? function IsExtensible(obj) {
@@ -2385,7 +2515,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2385
2515
  return a !== a;
2386
2516
  };
2387
2517
 
2388
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2518
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.12
2389
2519
 
2390
2520
  var SameValue = function SameValue(x, y) {
2391
2521
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2395,7 +2525,7 @@ var SameValue = function SameValue(x, y) {
2395
2525
  return _isNaN(x) && _isNaN(y);
2396
2526
  };
2397
2527
 
2398
- var $TypeError$4 = GetIntrinsic('%TypeError%');
2528
+ var $TypeError$4 = getIntrinsic('%TypeError%');
2399
2529
 
2400
2530
 
2401
2531
 
@@ -2407,7 +2537,7 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
2407
2537
 
2408
2538
 
2409
2539
 
2410
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2540
+ // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2411
2541
 
2412
2542
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2413
2543
  if (Type$1(O) !== 'Object') {
@@ -2437,9 +2567,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2437
2567
  );
2438
2568
  };
2439
2569
 
2440
- var $TypeError$5 = GetIntrinsic('%TypeError%');
2570
+ var $TypeError$5 = getIntrinsic('%TypeError%');
2441
2571
 
2442
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2572
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.10
2443
2573
 
2444
2574
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2445
2575
  if (value == null) {
@@ -2450,11 +2580,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2450
2580
 
2451
2581
  var RequireObjectCoercible = CheckObjectCoercible;
2452
2582
 
2453
- var $Object$1 = GetIntrinsic('%Object%');
2583
+ var $Object$1 = getIntrinsic('%Object%');
2454
2584
 
2455
2585
 
2456
2586
 
2457
- // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2587
+ // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2458
2588
 
2459
2589
  var ToObject = function ToObject(value) {
2460
2590
  RequireObjectCoercible(value);
@@ -2464,10 +2594,10 @@ var ToObject = function ToObject(value) {
2464
2594
  var $gOPD$2 = Object.getOwnPropertyDescriptor;
2465
2595
  var $getOwnNames = Object.getOwnPropertyNames;
2466
2596
  var $getSymbols = Object.getOwnPropertySymbols;
2467
- var $concat = callBound('Array.prototype.concat');
2597
+ var $concat$1 = callBound('Array.prototype.concat');
2468
2598
  var $reduce = callBound('Array.prototype.reduce');
2469
2599
  var getAll = $getSymbols ? function (obj) {
2470
- return $concat($getOwnNames(obj), $getSymbols(obj));
2600
+ return $concat$1($getOwnNames(obj), $getSymbols(obj));
2471
2601
  } : $getOwnNames;
2472
2602
 
2473
2603
  var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
@@ -2506,13 +2636,281 @@ var shim = function shimGetOwnPropertyDescriptors() {
2506
2636
  return polyfill$1;
2507
2637
  };
2508
2638
 
2509
- defineProperties_1(implementation$2, {
2639
+ var bound = callBind(polyfill(), Object);
2640
+
2641
+ defineProperties_1(bound, {
2510
2642
  getPolyfill: polyfill,
2511
2643
  implementation: implementation$2,
2512
2644
  shim: shim
2513
2645
  });
2514
2646
 
2515
- var object_getownpropertydescriptors = implementation$2;
2647
+ var object_getownpropertydescriptors = bound;
2648
+
2649
+ /* globals
2650
+ Atomics,
2651
+ SharedArrayBuffer,
2652
+ */
2653
+
2654
+ var undefined$2;
2655
+
2656
+ var $TypeError$6 = TypeError;
2657
+
2658
+ var $gOPD$3 = Object.getOwnPropertyDescriptor;
2659
+ if ($gOPD$3) {
2660
+ try {
2661
+ $gOPD$3({}, '');
2662
+ } catch (e) {
2663
+ $gOPD$3 = null; // this is IE 8, which has a broken gOPD
2664
+ }
2665
+ }
2666
+
2667
+ var throwTypeError$1 = function () { throw new $TypeError$6(); };
2668
+ var ThrowTypeError$1 = $gOPD$3
2669
+ ? (function () {
2670
+ try {
2671
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
2672
+ arguments.callee; // IE 8 does not throw here
2673
+ return throwTypeError$1;
2674
+ } catch (calleeThrows) {
2675
+ try {
2676
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
2677
+ return $gOPD$3(arguments, 'callee').get;
2678
+ } catch (gOPDthrows) {
2679
+ return throwTypeError$1;
2680
+ }
2681
+ }
2682
+ }())
2683
+ : throwTypeError$1;
2684
+
2685
+ var hasSymbols$4 = hasSymbols$1();
2686
+
2687
+ var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
2688
+ var generatorFunction = undefined$2;
2689
+ var asyncFunction = undefined$2;
2690
+ var asyncGenFunction = undefined$2;
2691
+
2692
+ var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
2693
+
2694
+ var INTRINSICS$1 = {
2695
+ '%Array%': Array,
2696
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
2697
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
2698
+ '%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
2699
+ '%ArrayPrototype%': Array.prototype,
2700
+ '%ArrayProto_entries%': Array.prototype.entries,
2701
+ '%ArrayProto_forEach%': Array.prototype.forEach,
2702
+ '%ArrayProto_keys%': Array.prototype.keys,
2703
+ '%ArrayProto_values%': Array.prototype.values,
2704
+ '%AsyncFromSyncIteratorPrototype%': undefined$2,
2705
+ '%AsyncFunction%': asyncFunction,
2706
+ '%AsyncFunctionPrototype%': undefined$2,
2707
+ '%AsyncGenerator%': undefined$2,
2708
+ '%AsyncGeneratorFunction%': asyncGenFunction,
2709
+ '%AsyncGeneratorPrototype%': undefined$2,
2710
+ '%AsyncIteratorPrototype%': undefined$2,
2711
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
2712
+ '%Boolean%': Boolean,
2713
+ '%BooleanPrototype%': Boolean.prototype,
2714
+ '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
2715
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
2716
+ '%Date%': Date,
2717
+ '%DatePrototype%': Date.prototype,
2718
+ '%decodeURI%': decodeURI,
2719
+ '%decodeURIComponent%': decodeURIComponent,
2720
+ '%encodeURI%': encodeURI,
2721
+ '%encodeURIComponent%': encodeURIComponent,
2722
+ '%Error%': Error,
2723
+ '%ErrorPrototype%': Error.prototype,
2724
+ '%eval%': eval, // eslint-disable-line no-eval
2725
+ '%EvalError%': EvalError,
2726
+ '%EvalErrorPrototype%': EvalError.prototype,
2727
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
2728
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
2729
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
2730
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
2731
+ '%Function%': Function,
2732
+ '%FunctionPrototype%': Function.prototype,
2733
+ '%Generator%': undefined$2,
2734
+ '%GeneratorFunction%': generatorFunction,
2735
+ '%GeneratorPrototype%': undefined$2,
2736
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
2737
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2738
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
2739
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2740
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
2741
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
2742
+ '%isFinite%': isFinite,
2743
+ '%isNaN%': isNaN,
2744
+ '%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
2745
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
2746
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
2747
+ '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
2748
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
2749
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
2750
+ '%Math%': Math,
2751
+ '%Number%': Number,
2752
+ '%NumberPrototype%': Number.prototype,
2753
+ '%Object%': Object,
2754
+ '%ObjectPrototype%': Object.prototype,
2755
+ '%ObjProto_toString%': Object.prototype.toString,
2756
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
2757
+ '%parseFloat%': parseFloat,
2758
+ '%parseInt%': parseInt,
2759
+ '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
2760
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
2761
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
2762
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
2763
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
2764
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
2765
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
2766
+ '%RangeError%': RangeError,
2767
+ '%RangeErrorPrototype%': RangeError.prototype,
2768
+ '%ReferenceError%': ReferenceError,
2769
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
2770
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
2771
+ '%RegExp%': RegExp,
2772
+ '%RegExpPrototype%': RegExp.prototype,
2773
+ '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
2774
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
2775
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
2776
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
2777
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
2778
+ '%String%': String,
2779
+ '%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
2780
+ '%StringPrototype%': String.prototype,
2781
+ '%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
2782
+ '%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
2783
+ '%SyntaxError%': SyntaxError,
2784
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
2785
+ '%ThrowTypeError%': ThrowTypeError$1,
2786
+ '%TypedArray%': TypedArray$1,
2787
+ '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
2788
+ '%TypeError%': $TypeError$6,
2789
+ '%TypeErrorPrototype%': $TypeError$6.prototype,
2790
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
2791
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
2792
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
2793
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
2794
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
2795
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
2796
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
2797
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
2798
+ '%URIError%': URIError,
2799
+ '%URIErrorPrototype%': URIError.prototype,
2800
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
2801
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
2802
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
2803
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
2804
+ };
2805
+
2806
+
2807
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
2808
+
2809
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2810
+ var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2811
+ var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2812
+ var stringToPath$1 = function stringToPath(string) {
2813
+ var result = [];
2814
+ $replace$1(string, rePropName$1, function (match, number, quote, subString) {
2815
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
2816
+ });
2817
+ return result;
2818
+ };
2819
+ /* end adaptation */
2820
+
2821
+ var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
2822
+ if (!(name in INTRINSICS$1)) {
2823
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
2824
+ }
2825
+
2826
+ // istanbul ignore if // hopefully this is impossible to test :-)
2827
+ if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
2828
+ throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2829
+ }
2830
+
2831
+ return INTRINSICS$1[name];
2832
+ };
2833
+
2834
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
2835
+ if (typeof name !== 'string' || name.length === 0) {
2836
+ throw new TypeError('intrinsic name must be a non-empty string');
2837
+ }
2838
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2839
+ throw new TypeError('"allowMissing" argument must be a boolean');
2840
+ }
2841
+
2842
+ var parts = stringToPath$1(name);
2843
+
2844
+ var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2845
+ for (var i = 1; i < parts.length; i += 1) {
2846
+ if (value != null) {
2847
+ if ($gOPD$3 && (i + 1) >= parts.length) {
2848
+ var desc = $gOPD$3(value, parts[i]);
2849
+ if (!allowMissing && !(parts[i] in value)) {
2850
+ throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
2851
+ }
2852
+ // By convention, when a data property is converted to an accessor
2853
+ // property to emulate a data property that does not suffer from
2854
+ // the override mistake, that accessor's getter is marked with
2855
+ // an `originalValue` property. Here, when we detect this, we
2856
+ // uphold the illusion by pretending to see that original data
2857
+ // property, i.e., returning the value rather than the getter
2858
+ // itself.
2859
+ value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
2860
+ } else {
2861
+ value = value[parts[i]];
2862
+ }
2863
+ }
2864
+ }
2865
+ return value;
2866
+ };
2867
+
2868
+ var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
2869
+
2870
+
2871
+
2872
+
2873
+
2874
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
2875
+ var $call = GetIntrinsic('%Function.prototype.call%');
2876
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2877
+
2878
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2879
+
2880
+ if ($defineProperty) {
2881
+ try {
2882
+ $defineProperty({}, 'a', { value: 1 });
2883
+ } catch (e) {
2884
+ // IE 8 has a broken defineProperty
2885
+ $defineProperty = null;
2886
+ }
2887
+ }
2888
+
2889
+ module.exports = function callBind() {
2890
+ return $reflectApply(functionBind, $call, arguments);
2891
+ };
2892
+
2893
+ var applyBind = function applyBind() {
2894
+ return $reflectApply(functionBind, $apply, arguments);
2895
+ };
2896
+
2897
+ if ($defineProperty) {
2898
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2899
+ } else {
2900
+ module.exports.apply = applyBind;
2901
+ }
2902
+ });
2903
+ callBind$1.apply;
2904
+
2905
+ var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
2906
+
2907
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2908
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
2909
+ if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
2910
+ return callBind$1(intrinsic);
2911
+ }
2912
+ return intrinsic;
2913
+ };
2516
2914
 
2517
2915
  var isES5$1 = typeof Object.defineProperty === 'function'
2518
2916
  && typeof Object.defineProperties === 'function';
@@ -2531,14 +2929,14 @@ if (typeof Promise !== 'function') {
2531
2929
 
2532
2930
 
2533
2931
 
2534
- var $slice = callBound('Array.prototype.slice');
2535
- var $concat$1 = callBound('Array.prototype.concat');
2536
- var $forEach = callBound('Array.prototype.forEach');
2932
+ var $slice = callBound$1('Array.prototype.slice');
2933
+ var $concat$2 = callBound$1('Array.prototype.concat');
2934
+ var $forEach = callBound$1('Array.prototype.forEach');
2537
2935
 
2538
- var hasSymbols$4 = hasSymbols$1();
2936
+ var hasSymbols$5 = hasSymbols$1();
2539
2937
 
2540
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
2541
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
2938
+ var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
2939
+ var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
2542
2940
 
2543
2941
  var implementation$3 = function promisify(orig) {
2544
2942
  if (typeof orig !== 'function') {
@@ -2548,7 +2946,7 @@ var implementation$3 = function promisify(orig) {
2548
2946
  throw error;
2549
2947
  }
2550
2948
 
2551
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
2949
+ if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
2552
2950
  var customFunction = orig[kCustomPromisifiedSymbol];
2553
2951
  if (typeof customFunction !== 'function') {
2554
2952
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2570,7 +2968,7 @@ var implementation$3 = function promisify(orig) {
2570
2968
  var args = $slice(arguments);
2571
2969
  var self = this; // eslint-disable-line no-invalid-this
2572
2970
  return new Promise(function (resolve, reject) {
2573
- orig.apply(self, $concat$1(args, function (err) {
2971
+ orig.apply(self, $concat$2(args, function (err) {
2574
2972
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2575
2973
  if (err) {
2576
2974
  reject(err);