@mjhls/mjh-framework 1.0.781 → 1.0.782-dev4485
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -21
- package/dist/cjs/AD300x250x600.js +21 -21
- package/dist/cjs/AD728x90.js +24 -24
- package/dist/cjs/ADFloatingFooter.js +20 -20
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +20 -20
- package/dist/cjs/{ADInfeed-d1eceaf2.js → ADInfeed-de972407.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -20
- package/dist/cjs/ADSponsoredResources.js +20 -20
- package/dist/cjs/ADWebcast.js +20 -20
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-24c693d8.js → ADlgInfeed-6ab92047.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +21 -21
- package/dist/cjs/AdSlotsProvider.js +12 -12
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +47 -47
- package/dist/cjs/ArticleSeriesLandingPage.js +30 -30
- package/dist/cjs/ArticleSeriesListing.js +31 -31
- package/dist/cjs/Auth.js +214 -647
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-8b494587.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +24 -24
- package/dist/cjs/Column2.js +17 -17
- package/dist/cjs/Column3.js +31 -31
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/DeckContent.js +41 -41
- package/dist/cjs/DeckQueue.js +28 -28
- package/dist/cjs/{Dfp-a17e00fa.js → Dfp-c226037e.js} +13 -13
- package/dist/cjs/EventsDeck.js +41 -41
- package/dist/cjs/ExternalResources.js +55 -49
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +11 -11
- package/dist/cjs/GridContent.js +45 -45
- package/dist/cjs/GridHero.js +12 -12
- package/dist/cjs/GroupDeck.js +13 -13
- package/dist/cjs/HamMagazine.js +36 -36
- package/dist/cjs/Hero.js +3 -3
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +45 -45
- package/dist/cjs/HorizontalHero.js +4 -4
- package/dist/cjs/IssueContentDeck.js +12 -12
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +62 -62
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +19 -19
- package/dist/cjs/MasterDeck.js +40 -40
- package/dist/cjs/MediaSeriesLanding.js +24 -24
- package/dist/cjs/NavDvm.js +14 -14
- package/dist/cjs/NavMagazine.js +41 -41
- package/dist/cjs/NavNative.js +38 -38
- package/dist/cjs/NavNormal.js +15 -15
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +12 -12
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +54 -54
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +31 -31
- package/dist/cjs/PubToc.js +9 -9
- package/dist/cjs/PublicationDeck.js +7 -7
- package/dist/cjs/PublicationLanding.js +50 -50
- package/dist/cjs/QueueDeckExpanded.js +35 -35
- package/dist/cjs/RecentNews.js +5 -5
- package/dist/cjs/RelatedContent.js +34 -34
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SeriesListingDeck.js +19 -19
- package/dist/cjs/{SeriesSlider-193a2958.js → SeriesSlider-5e6108e0.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +16 -16
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-fb784cc3.js} +8 -8
- package/dist/cjs/TaxonomyCard.js +9 -9
- package/dist/cjs/TaxonomyDescription.js +44 -44
- package/dist/cjs/TemplateNormal.js +45 -45
- package/dist/cjs/ThumbnailCard.js +6 -6
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +50 -50
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesLandingPage.js +35 -35
- package/dist/cjs/VideoSeriesListing.js +31 -31
- package/dist/cjs/View.js +105 -110
- package/dist/cjs/YahooHero.js +14 -14
- package/dist/cjs/YoutubeGroup.js +25 -25
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4ba0d3d5.js} +4 -5
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +16 -14
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +44 -44
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-7c425fbf.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-8ef858d4.js → index-2410ec98.js} +101 -101
- package/dist/cjs/{index-4d74ffd6.js → index-5be2866f.js} +41 -40
- package/dist/cjs/{index-80f57cff.js → index-8a3fb0bc.js} +7 -7
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- package/dist/cjs/{index-0e4427c8.js → index-e08f00ce.js} +3 -3
- package/dist/cjs/{index.es-f3e47207.js → index.es-13533f24.js} +4 -20
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-3ffa049c.js} +1 -1
- package/dist/cjs/index.js +135 -135
- package/dist/cjs/{inherits-2eb23889.js → inherits-87492b40.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-7fd85bcf.js} +1 -1
- package/dist/cjs/{main-dc082238.js → main-11ec04d2.js} +63 -67
- package/dist/cjs/{moment-aca40de1.js → moment-66a6a284.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-9d7f610f.js} +6 -6
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +20 -20
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +20 -20
- package/dist/esm/{ADInfeed-c12cd1ce.js → ADInfeed-1cba8312.js} +4 -4
- package/dist/esm/ADSkyscraper.js +20 -20
- package/dist/esm/ADSponsoredResources.js +20 -20
- package/dist/esm/ADWebcast.js +20 -20
- package/dist/esm/ADWelcome.js +17 -17
- package/dist/esm/{ADlgInfeed-246a8787.js → ADlgInfeed-fe7ad144.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +21 -21
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +47 -47
- package/dist/esm/ArticleSeriesLandingPage.js +30 -30
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +214 -647
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-8ffd4679.js} +1 -1
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-d05b5b23.js} +1 -1
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -24
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +41 -41
- package/dist/esm/DeckQueue.js +28 -28
- package/dist/esm/{Dfp-988dbcaa.js → Dfp-c06b41fc.js} +13 -13
- package/dist/esm/EventsDeck.js +39 -39
- package/dist/esm/ExternalResources.js +55 -49
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +11 -11
- package/dist/esm/GridContent.js +45 -45
- package/dist/esm/GridHero.js +12 -12
- package/dist/esm/GroupDeck.js +13 -13
- package/dist/esm/HamMagazine.js +36 -36
- package/dist/esm/Hero.js +3 -3
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +45 -45
- package/dist/esm/HorizontalHero.js +4 -4
- package/dist/esm/IssueContentDeck.js +12 -12
- package/dist/esm/IssueDeck.js +15 -15
- package/dist/esm/IssueLanding.js +62 -62
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +19 -19
- package/dist/esm/MasterDeck.js +40 -40
- package/dist/esm/MediaSeriesLanding.js +24 -24
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +41 -41
- package/dist/esm/NavNative.js +36 -36
- package/dist/esm/NavNormal.js +15 -15
- package/dist/esm/OncliveHero.js +4 -4
- package/dist/esm/OncliveLargeHero.js +12 -12
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +54 -54
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +31 -31
- package/dist/esm/PubToc.js +9 -9
- package/dist/esm/PublicationDeck.js +6 -6
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +35 -35
- package/dist/esm/RecentNews.js +5 -5
- package/dist/esm/RelatedContent.js +34 -34
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SeriesListingDeck.js +19 -19
- package/dist/esm/{SeriesSlider-6a1081ff.js → SeriesSlider-19a24623.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +16 -16
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-2a4a7398.js} +7 -7
- package/dist/esm/TaxonomyCard.js +9 -9
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +45 -45
- package/dist/esm/ThumbnailCard.js +6 -6
- package/dist/esm/Ustream.js +9 -9
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +49 -49
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +10 -10
- package/dist/esm/VideoSeriesLandingPage.js +35 -35
- package/dist/esm/VideoSeriesListing.js +31 -31
- package/dist/esm/View.js +104 -109
- package/dist/esm/YahooHero.js +14 -14
- package/dist/esm/YoutubeGroup.js +25 -25
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-e1c6b0f2.js} +4 -5
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getRelatedArticle.js +16 -14
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +44 -44
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-f22b76f5.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-888f9253.js → index-acfb8079.js} +3 -3
- package/dist/esm/{index-752d1dae.js → index-c5fd0af5.js} +6 -6
- package/dist/esm/{index-ccb770c7.js → index-d2f90501.js} +41 -40
- package/dist/esm/{index-9b2f6ac4.js → index-f41e3fe9.js} +98 -98
- package/dist/esm/{index.es-c6222053.js → index.es-7dda2f0a.js} +4 -20
- package/dist/esm/{index.esm-8016b507.js → index.esm-8ee5ff72.js} +1 -1
- package/dist/esm/index.js +115 -115
- package/dist/esm/{inherits-5906fbea.js → inherits-0d8cda6e.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-ec8c6b48.js} +1 -1
- package/dist/esm/{main-1450d277.js → main-aef58dbc.js} +63 -67
- package/dist/esm/{moment-bc12cb97.js → moment-12415288.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-3822f1ce.js} +16 -16
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-af9c50d8.js} +6 -6
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +107 -107
package/dist/cjs/Auth.js
CHANGED
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
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');
|
|
8
14
|
var React = require('react');
|
|
9
15
|
var Router = require('next/router');
|
|
10
|
-
var
|
|
16
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
17
|
+
var stringify = require('./stringify-7c5aff47.js');
|
|
18
|
+
var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
|
|
19
|
+
require('./_set-species-f92c67c5.js');
|
|
11
20
|
var reactBootstrap = require('react-bootstrap');
|
|
12
|
-
var
|
|
21
|
+
var util = require('./util-f2c1b65b.js');
|
|
13
22
|
var index = require('./index-bd6c9f56.js');
|
|
23
|
+
var useSWR = require('swr');
|
|
14
24
|
var Local = require('passport-local');
|
|
15
25
|
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 no-invalid-this: 1 */
|
|
1553
|
-
|
|
1554
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1555
|
-
var slice$1 = Array.prototype.slice;
|
|
1556
|
-
var toStr$3 = Object.prototype.toString;
|
|
1557
|
-
var funcType = '[object Function]';
|
|
1558
|
-
|
|
1559
|
-
var implementation$1 = function bind(that) {
|
|
1560
|
-
var target = this;
|
|
1561
|
-
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1562
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
1563
|
-
}
|
|
1564
|
-
var args = slice$1.call(arguments, 1);
|
|
1565
|
-
|
|
1566
|
-
var bound;
|
|
1567
|
-
var binder = function () {
|
|
1568
|
-
if (this instanceof bound) {
|
|
1569
|
-
var result = target.apply(
|
|
1570
|
-
this,
|
|
1571
|
-
args.concat(slice$1.call(arguments))
|
|
1572
|
-
);
|
|
1573
|
-
if (Object(result) === result) {
|
|
1574
|
-
return result;
|
|
1575
|
-
}
|
|
1576
|
-
return this;
|
|
1577
|
-
} else {
|
|
1578
|
-
return target.apply(
|
|
1579
|
-
that,
|
|
1580
|
-
args.concat(slice$1.call(arguments))
|
|
1581
|
-
);
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
|
|
1585
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
1586
|
-
var boundArgs = [];
|
|
1587
|
-
for (var i = 0; i < boundLength; i++) {
|
|
1588
|
-
boundArgs.push('$' + i);
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
1592
|
-
|
|
1593
|
-
if (target.prototype) {
|
|
1594
|
-
var Empty = function Empty() {};
|
|
1595
|
-
Empty.prototype = target.prototype;
|
|
1596
|
-
bound.prototype = new Empty();
|
|
1597
|
-
Empty.prototype = null;
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
return bound;
|
|
1601
|
-
};
|
|
1602
|
-
|
|
1603
|
-
var functionBind = Function.prototype.bind || implementation$1;
|
|
1604
|
-
|
|
1605
1552
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
1606
1553
|
var shams = function hasSymbols() {
|
|
1607
1554
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
@@ -1655,21 +1602,68 @@ var hasSymbols$1 = function hasNativeSymbols() {
|
|
|
1655
1602
|
return shams();
|
|
1656
1603
|
};
|
|
1657
1604
|
|
|
1658
|
-
|
|
1605
|
+
/* eslint no-invalid-this: 1 */
|
|
1659
1606
|
|
|
1660
|
-
var
|
|
1607
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1608
|
+
var slice$1 = Array.prototype.slice;
|
|
1609
|
+
var toStr$3 = Object.prototype.toString;
|
|
1610
|
+
var funcType = '[object Function]';
|
|
1661
1611
|
|
|
1662
|
-
var $
|
|
1663
|
-
var
|
|
1664
|
-
|
|
1612
|
+
var implementation$1 = function bind(that) {
|
|
1613
|
+
var target = this;
|
|
1614
|
+
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1615
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
1616
|
+
}
|
|
1617
|
+
var args = slice$1.call(arguments, 1);
|
|
1665
1618
|
|
|
1666
|
-
|
|
1667
|
-
var
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1619
|
+
var bound;
|
|
1620
|
+
var binder = function () {
|
|
1621
|
+
if (this instanceof bound) {
|
|
1622
|
+
var result = target.apply(
|
|
1623
|
+
this,
|
|
1624
|
+
args.concat(slice$1.call(arguments))
|
|
1625
|
+
);
|
|
1626
|
+
if (Object(result) === result) {
|
|
1627
|
+
return result;
|
|
1628
|
+
}
|
|
1629
|
+
return this;
|
|
1630
|
+
} else {
|
|
1631
|
+
return target.apply(
|
|
1632
|
+
that,
|
|
1633
|
+
args.concat(slice$1.call(arguments))
|
|
1634
|
+
);
|
|
1635
|
+
}
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
1639
|
+
var boundArgs = [];
|
|
1640
|
+
for (var i = 0; i < boundLength; i++) {
|
|
1641
|
+
boundArgs.push('$' + i);
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
1645
|
+
|
|
1646
|
+
if (target.prototype) {
|
|
1647
|
+
var Empty = function Empty() {};
|
|
1648
|
+
Empty.prototype = target.prototype;
|
|
1649
|
+
bound.prototype = new Empty();
|
|
1650
|
+
Empty.prototype = null;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
return bound;
|
|
1671
1654
|
};
|
|
1672
1655
|
|
|
1656
|
+
var functionBind = Function.prototype.bind || implementation$1;
|
|
1657
|
+
|
|
1658
|
+
/* globals
|
|
1659
|
+
Atomics,
|
|
1660
|
+
SharedArrayBuffer,
|
|
1661
|
+
*/
|
|
1662
|
+
|
|
1663
|
+
var undefined$1;
|
|
1664
|
+
|
|
1665
|
+
var $TypeError = TypeError;
|
|
1666
|
+
|
|
1673
1667
|
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
1674
1668
|
if ($gOPD) {
|
|
1675
1669
|
try {
|
|
@@ -1679,9 +1673,7 @@ if ($gOPD) {
|
|
|
1679
1673
|
}
|
|
1680
1674
|
}
|
|
1681
1675
|
|
|
1682
|
-
var throwTypeError = function () {
|
|
1683
|
-
throw new $TypeError();
|
|
1684
|
-
};
|
|
1676
|
+
var throwTypeError = function () { throw new $TypeError(); };
|
|
1685
1677
|
var ThrowTypeError = $gOPD
|
|
1686
1678
|
? (function () {
|
|
1687
1679
|
try {
|
|
@@ -1702,351 +1694,203 @@ var ThrowTypeError = $gOPD
|
|
|
1702
1694
|
var hasSymbols$2 = hasSymbols$1();
|
|
1703
1695
|
|
|
1704
1696
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
1705
|
-
|
|
1706
|
-
var
|
|
1697
|
+
var generatorFunction = undefined$1;
|
|
1698
|
+
var asyncFunction = undefined$1;
|
|
1699
|
+
var asyncGenFunction = undefined$1;
|
|
1707
1700
|
|
|
1708
1701
|
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
|
1709
1702
|
|
|
1710
1703
|
var INTRINSICS = {
|
|
1711
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
1712
1704
|
'%Array%': Array,
|
|
1713
1705
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
1706
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
|
|
1714
1707
|
'%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,
|
|
1715
1713
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
1716
|
-
'%AsyncFunction%':
|
|
1717
|
-
'%
|
|
1718
|
-
'%
|
|
1719
|
-
'%
|
|
1714
|
+
'%AsyncFunction%': asyncFunction,
|
|
1715
|
+
'%AsyncFunctionPrototype%': undefined$1,
|
|
1716
|
+
'%AsyncGenerator%': undefined$1,
|
|
1717
|
+
'%AsyncGeneratorFunction%': asyncGenFunction,
|
|
1718
|
+
'%AsyncGeneratorPrototype%': undefined$1,
|
|
1719
|
+
'%AsyncIteratorPrototype%': undefined$1,
|
|
1720
1720
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
1721
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
1722
1721
|
'%Boolean%': Boolean,
|
|
1722
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
1723
1723
|
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
1724
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
|
|
1724
1725
|
'%Date%': Date,
|
|
1726
|
+
'%DatePrototype%': Date.prototype,
|
|
1725
1727
|
'%decodeURI%': decodeURI,
|
|
1726
1728
|
'%decodeURIComponent%': decodeURIComponent,
|
|
1727
1729
|
'%encodeURI%': encodeURI,
|
|
1728
1730
|
'%encodeURIComponent%': encodeURIComponent,
|
|
1729
1731
|
'%Error%': Error,
|
|
1732
|
+
'%ErrorPrototype%': Error.prototype,
|
|
1730
1733
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
1731
1734
|
'%EvalError%': EvalError,
|
|
1735
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
1732
1736
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
1737
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
|
|
1733
1738
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
1734
|
-
'%
|
|
1735
|
-
'%Function%':
|
|
1736
|
-
'%
|
|
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,
|
|
1737
1745
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
1746
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
|
|
1738
1747
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
1748
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
|
|
1739
1749
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
1750
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
|
|
1740
1751
|
'%isFinite%': isFinite,
|
|
1741
1752
|
'%isNaN%': isNaN,
|
|
1742
1753
|
'%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
1743
1754
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
1755
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
|
|
1744
1756
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
1745
1757
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
1758
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
|
|
1746
1759
|
'%Math%': Math,
|
|
1747
1760
|
'%Number%': Number,
|
|
1761
|
+
'%NumberPrototype%': Number.prototype,
|
|
1748
1762
|
'%Object%': Object,
|
|
1763
|
+
'%ObjectPrototype%': Object.prototype,
|
|
1764
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
1765
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
1749
1766
|
'%parseFloat%': parseFloat,
|
|
1750
1767
|
'%parseInt%': parseInt,
|
|
1751
1768
|
'%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,
|
|
1752
1774
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
1753
1775
|
'%RangeError%': RangeError,
|
|
1776
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
1754
1777
|
'%ReferenceError%': ReferenceError,
|
|
1778
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
1755
1779
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
1756
1780
|
'%RegExp%': RegExp,
|
|
1781
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
1757
1782
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
1758
1783
|
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
1784
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
|
|
1759
1785
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
1786
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
|
|
1760
1787
|
'%String%': String,
|
|
1761
1788
|
'%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
1789
|
+
'%StringPrototype%': String.prototype,
|
|
1762
1790
|
'%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
|
|
1763
|
-
'%
|
|
1791
|
+
'%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
|
|
1792
|
+
'%SyntaxError%': SyntaxError,
|
|
1793
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
1764
1794
|
'%ThrowTypeError%': ThrowTypeError,
|
|
1765
1795
|
'%TypedArray%': TypedArray,
|
|
1796
|
+
'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
|
|
1766
1797
|
'%TypeError%': $TypeError,
|
|
1798
|
+
'%TypeErrorPrototype%': $TypeError.prototype,
|
|
1767
1799
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
1800
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
|
|
1768
1801
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
1802
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
|
|
1769
1803
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
1804
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
|
|
1770
1805
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
1806
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
|
|
1771
1807
|
'%URIError%': URIError,
|
|
1808
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
1772
1809
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
1773
|
-
'%
|
|
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;
|
|
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
|
|
1800
1813
|
};
|
|
1801
1814
|
|
|
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']
|
|
1854
|
-
};
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
1815
|
|
|
1858
|
-
var $concat = functionBind.call(Function.call, Array.prototype.concat);
|
|
1859
|
-
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
|
1860
1816
|
var $replace = functionBind.call(Function.call, String.prototype.replace);
|
|
1861
|
-
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
|
1862
1817
|
|
|
1863
1818
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1864
1819
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
1865
1820
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
1866
1821
|
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
|
-
}
|
|
1874
1822
|
var result = [];
|
|
1875
1823
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
1876
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
1824
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
|
|
1877
1825
|
});
|
|
1878
1826
|
return result;
|
|
1879
1827
|
};
|
|
1880
1828
|
/* end adaptation */
|
|
1881
1829
|
|
|
1882
1830
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
if (src(LEGACY_ALIASES, intrinsicName)) {
|
|
1886
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
1887
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
1831
|
+
if (!(name in INTRINSICS)) {
|
|
1832
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
1888
1833
|
}
|
|
1889
1834
|
|
|
1890
|
-
if
|
|
1891
|
-
|
|
1892
|
-
|
|
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
|
-
};
|
|
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!');
|
|
1904
1838
|
}
|
|
1905
1839
|
|
|
1906
|
-
|
|
1840
|
+
return INTRINSICS[name];
|
|
1907
1841
|
};
|
|
1908
1842
|
|
|
1909
|
-
var
|
|
1843
|
+
var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1910
1844
|
if (typeof name !== 'string' || name.length === 0) {
|
|
1911
|
-
throw new
|
|
1845
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
1912
1846
|
}
|
|
1913
1847
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1914
|
-
throw new
|
|
1848
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
1915
1849
|
}
|
|
1916
1850
|
|
|
1917
1851
|
var parts = stringToPath(name);
|
|
1918
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
1919
|
-
|
|
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
1852
|
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
if (!(part in value)) {
|
|
1955
|
-
if (!allowMissing) {
|
|
1956
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1957
|
-
}
|
|
1958
|
-
return void undefined$1;
|
|
1959
|
-
}
|
|
1853
|
+
var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
1854
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
1855
|
+
if (value != null) {
|
|
1960
1856
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1961
|
-
var desc = $gOPD(value,
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
// By convention, when a data property is converted to an accessor
|
|
1965
|
-
// property to emulate a data property that does not suffer from
|
|
1966
|
-
// the override mistake, that accessor's getter is marked with
|
|
1967
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1968
|
-
// uphold the illusion by pretending to see that original data
|
|
1969
|
-
// property, i.e., returning the value rather than the getter
|
|
1970
|
-
// itself.
|
|
1971
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1972
|
-
value = desc.get;
|
|
1973
|
-
} else {
|
|
1974
|
-
value = value[part];
|
|
1857
|
+
var desc = $gOPD(value, parts[i]);
|
|
1858
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
1859
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1975
1860
|
}
|
|
1861
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1976
1862
|
} else {
|
|
1977
|
-
|
|
1978
|
-
value = value[part];
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
if (isOwn && !skipFurtherCaching) {
|
|
1982
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
1863
|
+
value = value[parts[i]];
|
|
1983
1864
|
}
|
|
1984
1865
|
}
|
|
1985
1866
|
}
|
|
1986
1867
|
return value;
|
|
1987
1868
|
};
|
|
1988
1869
|
|
|
1989
|
-
var
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
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);
|
|
1997
|
-
|
|
1998
|
-
var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
1999
|
-
var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
|
|
2000
|
-
var $max = getIntrinsic('%Math.max%');
|
|
2001
|
-
|
|
2002
|
-
if ($defineProperty) {
|
|
2003
|
-
try {
|
|
2004
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
2005
|
-
} catch (e) {
|
|
2006
|
-
// IE 8 has a broken defineProperty
|
|
2007
|
-
$defineProperty = null;
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
1870
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1871
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1872
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
2010
1873
|
|
|
2011
|
-
|
|
2012
|
-
|
|
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;
|
|
1874
|
+
var callBind = function callBind() {
|
|
1875
|
+
return $reflectApply(functionBind, $call, arguments);
|
|
2025
1876
|
};
|
|
2026
1877
|
|
|
2027
|
-
var
|
|
1878
|
+
var apply = function applyBind() {
|
|
2028
1879
|
return $reflectApply(functionBind, $apply, arguments);
|
|
2029
1880
|
};
|
|
1881
|
+
callBind.apply = apply;
|
|
2030
1882
|
|
|
2031
|
-
|
|
2032
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2033
|
-
} else {
|
|
2034
|
-
module.exports.apply = applyBind;
|
|
2035
|
-
}
|
|
2036
|
-
});
|
|
2037
|
-
callBind.apply;
|
|
2038
|
-
|
|
2039
|
-
var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
|
|
1883
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
2040
1884
|
|
|
2041
1885
|
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
2042
|
-
var intrinsic =
|
|
2043
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')
|
|
1886
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
1887
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
|
|
2044
1888
|
return callBind(intrinsic);
|
|
2045
1889
|
}
|
|
2046
1890
|
return intrinsic;
|
|
2047
1891
|
};
|
|
2048
1892
|
|
|
2049
|
-
var $defineProperty =
|
|
1893
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2050
1894
|
|
|
2051
1895
|
if ($defineProperty) {
|
|
2052
1896
|
try {
|
|
@@ -2088,8 +1932,10 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
|
|
|
2088
1932
|
return true;
|
|
2089
1933
|
};
|
|
2090
1934
|
|
|
2091
|
-
var
|
|
2092
|
-
|
|
1935
|
+
var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
1936
|
+
|
|
1937
|
+
var $TypeError$1 = GetIntrinsic('%TypeError%');
|
|
1938
|
+
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
|
2093
1939
|
|
|
2094
1940
|
|
|
2095
1941
|
|
|
@@ -2126,14 +1972,14 @@ var predicates = {
|
|
|
2126
1972
|
var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
|
|
2127
1973
|
var predicate = predicates[recordType];
|
|
2128
1974
|
if (typeof predicate !== 'function') {
|
|
2129
|
-
throw new $SyntaxError
|
|
1975
|
+
throw new $SyntaxError('unknown record type: ' + recordType);
|
|
2130
1976
|
}
|
|
2131
1977
|
if (!predicate(Type, value)) {
|
|
2132
1978
|
throw new $TypeError$1(argumentName + ' must be a ' + recordType);
|
|
2133
1979
|
}
|
|
2134
1980
|
};
|
|
2135
1981
|
|
|
2136
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8
|
|
1982
|
+
// https://www.ecma-international.org/ecma-262/5.1/#sec-8
|
|
2137
1983
|
|
|
2138
1984
|
var Type = function Type(x) {
|
|
2139
1985
|
if (x === null) {
|
|
@@ -2156,19 +2002,16 @@ var Type = function Type(x) {
|
|
|
2156
2002
|
}
|
|
2157
2003
|
};
|
|
2158
2004
|
|
|
2159
|
-
// https://ecma-international.org/ecma-262/
|
|
2005
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
|
|
2160
2006
|
|
|
2161
2007
|
var Type$1 = function Type$1(x) {
|
|
2162
2008
|
if (typeof x === 'symbol') {
|
|
2163
2009
|
return 'Symbol';
|
|
2164
2010
|
}
|
|
2165
|
-
if (typeof x === 'bigint') {
|
|
2166
|
-
return 'BigInt';
|
|
2167
|
-
}
|
|
2168
2011
|
return Type(x);
|
|
2169
2012
|
};
|
|
2170
2013
|
|
|
2171
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
2014
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
2172
2015
|
|
|
2173
2016
|
var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
2174
2017
|
if (typeof Desc === 'undefined') {
|
|
@@ -2199,7 +2042,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2199
2042
|
return obj;
|
|
2200
2043
|
};
|
|
2201
2044
|
|
|
2202
|
-
var $gOPD$1 =
|
|
2045
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2203
2046
|
if ($gOPD$1) {
|
|
2204
2047
|
try {
|
|
2205
2048
|
$gOPD$1([], 'length');
|
|
@@ -2211,18 +2054,18 @@ if ($gOPD$1) {
|
|
|
2211
2054
|
|
|
2212
2055
|
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2213
2056
|
|
|
2214
|
-
var $Array =
|
|
2057
|
+
var $Array = GetIntrinsic('%Array%');
|
|
2215
2058
|
|
|
2216
2059
|
// eslint-disable-next-line global-require
|
|
2217
2060
|
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2218
2061
|
|
|
2219
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2062
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2220
2063
|
|
|
2221
2064
|
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2222
2065
|
return toStr$4(argument) === '[object Array]';
|
|
2223
2066
|
};
|
|
2224
2067
|
|
|
2225
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2068
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2226
2069
|
|
|
2227
2070
|
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2228
2071
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
@@ -2230,14 +2073,14 @@ var IsPropertyKey = function IsPropertyKey(argument) {
|
|
|
2230
2073
|
|
|
2231
2074
|
var hasSymbols$3 = hasSymbols$1();
|
|
2232
2075
|
var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
|
|
2233
|
-
var
|
|
2234
|
-
var
|
|
2076
|
+
var hasOwnProperty;
|
|
2077
|
+
var regexExec;
|
|
2235
2078
|
var isRegexMarker;
|
|
2236
2079
|
var badStringifier;
|
|
2237
2080
|
|
|
2238
2081
|
if (hasToStringTag) {
|
|
2239
|
-
|
|
2240
|
-
|
|
2082
|
+
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2083
|
+
regexExec = Function.call.bind(RegExp.prototype.exec);
|
|
2241
2084
|
isRegexMarker = {};
|
|
2242
2085
|
|
|
2243
2086
|
var throwRegexMarker = function () {
|
|
@@ -2253,7 +2096,7 @@ if (hasToStringTag) {
|
|
|
2253
2096
|
}
|
|
2254
2097
|
}
|
|
2255
2098
|
|
|
2256
|
-
var $
|
|
2099
|
+
var toStr$5 = Object.prototype.toString;
|
|
2257
2100
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2258
2101
|
var regexClass = '[object RegExp]';
|
|
2259
2102
|
|
|
@@ -2265,13 +2108,13 @@ var isRegex = hasToStringTag
|
|
|
2265
2108
|
}
|
|
2266
2109
|
|
|
2267
2110
|
var descriptor = gOPD(value, 'lastIndex');
|
|
2268
|
-
var hasLastIndexDataProperty = descriptor &&
|
|
2111
|
+
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
|
2269
2112
|
if (!hasLastIndexDataProperty) {
|
|
2270
2113
|
return false;
|
|
2271
2114
|
}
|
|
2272
2115
|
|
|
2273
2116
|
try {
|
|
2274
|
-
|
|
2117
|
+
regexExec(value, badStringifier);
|
|
2275
2118
|
} catch (e) {
|
|
2276
2119
|
return e === isRegexMarker;
|
|
2277
2120
|
}
|
|
@@ -2282,14 +2125,14 @@ var isRegex = hasToStringTag
|
|
|
2282
2125
|
return false;
|
|
2283
2126
|
}
|
|
2284
2127
|
|
|
2285
|
-
return $
|
|
2128
|
+
return toStr$5.call(value) === regexClass;
|
|
2286
2129
|
};
|
|
2287
2130
|
|
|
2288
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2131
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2289
2132
|
|
|
2290
2133
|
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2291
2134
|
|
|
2292
|
-
var $match =
|
|
2135
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2293
2136
|
|
|
2294
2137
|
|
|
2295
2138
|
|
|
@@ -2322,12 +2165,8 @@ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'func
|
|
|
2322
2165
|
}
|
|
2323
2166
|
});
|
|
2324
2167
|
isCallableMarker = {};
|
|
2325
|
-
// eslint-disable-next-line no-throw-literal
|
|
2326
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2327
2168
|
} catch (_) {
|
|
2328
|
-
|
|
2329
|
-
reflectApply = null;
|
|
2330
|
-
}
|
|
2169
|
+
reflectApply = null;
|
|
2331
2170
|
}
|
|
2332
2171
|
} else {
|
|
2333
2172
|
reflectApply = null;
|
|
@@ -2352,16 +2191,13 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
2352
2191
|
return false;
|
|
2353
2192
|
}
|
|
2354
2193
|
};
|
|
2355
|
-
var toStr$
|
|
2194
|
+
var toStr$6 = Object.prototype.toString;
|
|
2356
2195
|
var fnClass = '[object Function]';
|
|
2357
2196
|
var genClass = '[object GeneratorFunction]';
|
|
2358
2197
|
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 : {};
|
|
2361
2198
|
|
|
2362
2199
|
var isCallable = reflectApply
|
|
2363
2200
|
? function isCallable(value) {
|
|
2364
|
-
if (value === documentDotAll) { return true; }
|
|
2365
2201
|
if (!value) { return false; }
|
|
2366
2202
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2367
2203
|
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
@@ -2373,21 +2209,20 @@ var isCallable = reflectApply
|
|
|
2373
2209
|
return !isES6ClassFn(value);
|
|
2374
2210
|
}
|
|
2375
2211
|
: function isCallable(value) {
|
|
2376
|
-
if (value === documentDotAll) { return true; }
|
|
2377
2212
|
if (!value) { return false; }
|
|
2378
2213
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2379
2214
|
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2380
2215
|
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2381
2216
|
if (isES6ClassFn(value)) { return false; }
|
|
2382
|
-
var strClass = toStr$
|
|
2217
|
+
var strClass = toStr$6.call(value);
|
|
2383
2218
|
return strClass === fnClass || strClass === genClass;
|
|
2384
2219
|
};
|
|
2385
2220
|
|
|
2386
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2221
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2387
2222
|
|
|
2388
2223
|
var IsCallable = isCallable;
|
|
2389
2224
|
|
|
2390
|
-
var $TypeError$2 =
|
|
2225
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2391
2226
|
|
|
2392
2227
|
|
|
2393
2228
|
|
|
@@ -2416,7 +2251,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2416
2251
|
if (src(Obj, 'get')) {
|
|
2417
2252
|
var getter = Obj.get;
|
|
2418
2253
|
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2419
|
-
throw new
|
|
2254
|
+
throw new TypeError('getter must be a function');
|
|
2420
2255
|
}
|
|
2421
2256
|
desc['[[Get]]'] = getter;
|
|
2422
2257
|
}
|
|
@@ -2434,7 +2269,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2434
2269
|
return desc;
|
|
2435
2270
|
};
|
|
2436
2271
|
|
|
2437
|
-
var $TypeError$3 =
|
|
2272
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2438
2273
|
|
|
2439
2274
|
|
|
2440
2275
|
|
|
@@ -2448,7 +2283,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
|
2448
2283
|
|
|
2449
2284
|
|
|
2450
2285
|
|
|
2451
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2286
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2452
2287
|
|
|
2453
2288
|
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2454
2289
|
if (Type$1(O) !== 'Object') {
|
|
@@ -2474,7 +2309,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
|
2474
2309
|
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2475
2310
|
};
|
|
2476
2311
|
|
|
2477
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2312
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2478
2313
|
|
|
2479
2314
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
2480
2315
|
if (typeof Desc === 'undefined') {
|
|
@@ -2494,14 +2329,14 @@ var isPrimitive = function isPrimitive(value) {
|
|
|
2494
2329
|
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
2495
2330
|
};
|
|
2496
2331
|
|
|
2497
|
-
var $Object =
|
|
2332
|
+
var $Object = GetIntrinsic('%Object%');
|
|
2498
2333
|
|
|
2499
2334
|
|
|
2500
2335
|
|
|
2501
2336
|
var $preventExtensions = $Object.preventExtensions;
|
|
2502
2337
|
var $isExtensible = $Object.isExtensible;
|
|
2503
2338
|
|
|
2504
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2339
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2505
2340
|
|
|
2506
2341
|
var IsExtensible = $preventExtensions
|
|
2507
2342
|
? function IsExtensible(obj) {
|
|
@@ -2515,7 +2350,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
|
|
|
2515
2350
|
return a !== a;
|
|
2516
2351
|
};
|
|
2517
2352
|
|
|
2518
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
2353
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
2519
2354
|
|
|
2520
2355
|
var SameValue = function SameValue(x, y) {
|
|
2521
2356
|
if (x === y) { // 0 === -0, but they are not identical.
|
|
@@ -2525,7 +2360,7 @@ var SameValue = function SameValue(x, y) {
|
|
|
2525
2360
|
return _isNaN(x) && _isNaN(y);
|
|
2526
2361
|
};
|
|
2527
2362
|
|
|
2528
|
-
var $TypeError$4 =
|
|
2363
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
2529
2364
|
|
|
2530
2365
|
|
|
2531
2366
|
|
|
@@ -2537,7 +2372,7 @@ var $TypeError$4 = getIntrinsic('%TypeError%');
|
|
|
2537
2372
|
|
|
2538
2373
|
|
|
2539
2374
|
|
|
2540
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2375
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2541
2376
|
|
|
2542
2377
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2543
2378
|
if (Type$1(O) !== 'Object') {
|
|
@@ -2567,9 +2402,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2567
2402
|
);
|
|
2568
2403
|
};
|
|
2569
2404
|
|
|
2570
|
-
var $TypeError$5 =
|
|
2405
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
2571
2406
|
|
|
2572
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2407
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2573
2408
|
|
|
2574
2409
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2575
2410
|
if (value == null) {
|
|
@@ -2580,11 +2415,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
|
2580
2415
|
|
|
2581
2416
|
var RequireObjectCoercible = CheckObjectCoercible;
|
|
2582
2417
|
|
|
2583
|
-
var $Object$1 =
|
|
2418
|
+
var $Object$1 = GetIntrinsic('%Object%');
|
|
2584
2419
|
|
|
2585
2420
|
|
|
2586
2421
|
|
|
2587
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
2422
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
2588
2423
|
|
|
2589
2424
|
var ToObject = function ToObject(value) {
|
|
2590
2425
|
RequireObjectCoercible(value);
|
|
@@ -2594,10 +2429,10 @@ var ToObject = function ToObject(value) {
|
|
|
2594
2429
|
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
2595
2430
|
var $getOwnNames = Object.getOwnPropertyNames;
|
|
2596
2431
|
var $getSymbols = Object.getOwnPropertySymbols;
|
|
2597
|
-
var $concat
|
|
2432
|
+
var $concat = callBound('Array.prototype.concat');
|
|
2598
2433
|
var $reduce = callBound('Array.prototype.reduce');
|
|
2599
2434
|
var getAll = $getSymbols ? function (obj) {
|
|
2600
|
-
return $concat
|
|
2435
|
+
return $concat($getOwnNames(obj), $getSymbols(obj));
|
|
2601
2436
|
} : $getOwnNames;
|
|
2602
2437
|
|
|
2603
2438
|
var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
|
|
@@ -2636,281 +2471,13 @@ var shim = function shimGetOwnPropertyDescriptors() {
|
|
|
2636
2471
|
return polyfill$1;
|
|
2637
2472
|
};
|
|
2638
2473
|
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
defineProperties_1(bound, {
|
|
2474
|
+
defineProperties_1(implementation$2, {
|
|
2642
2475
|
getPolyfill: polyfill,
|
|
2643
2476
|
implementation: implementation$2,
|
|
2644
2477
|
shim: shim
|
|
2645
2478
|
});
|
|
2646
2479
|
|
|
2647
|
-
var object_getownpropertydescriptors =
|
|
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
|
-
};
|
|
2480
|
+
var object_getownpropertydescriptors = implementation$2;
|
|
2914
2481
|
|
|
2915
2482
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2916
2483
|
&& typeof Object.defineProperties === 'function';
|
|
@@ -2929,14 +2496,14 @@ if (typeof Promise !== 'function') {
|
|
|
2929
2496
|
|
|
2930
2497
|
|
|
2931
2498
|
|
|
2932
|
-
var $slice = callBound
|
|
2933
|
-
var $concat$
|
|
2934
|
-
var $forEach = callBound
|
|
2499
|
+
var $slice = callBound('Array.prototype.slice');
|
|
2500
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2501
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
2935
2502
|
|
|
2936
|
-
var hasSymbols$
|
|
2503
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
2937
2504
|
|
|
2938
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2939
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2505
|
+
var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
|
|
2506
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
|
|
2940
2507
|
|
|
2941
2508
|
var implementation$3 = function promisify(orig) {
|
|
2942
2509
|
if (typeof orig !== 'function') {
|
|
@@ -2946,7 +2513,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2946
2513
|
throw error;
|
|
2947
2514
|
}
|
|
2948
2515
|
|
|
2949
|
-
if (hasSymbols$
|
|
2516
|
+
if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
|
|
2950
2517
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2951
2518
|
if (typeof customFunction !== 'function') {
|
|
2952
2519
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -2968,7 +2535,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2968
2535
|
var args = $slice(arguments);
|
|
2969
2536
|
var self = this; // eslint-disable-line no-invalid-this
|
|
2970
2537
|
return new Promise(function (resolve, reject) {
|
|
2971
|
-
orig.apply(self, $concat$
|
|
2538
|
+
orig.apply(self, $concat$1(args, function (err) {
|
|
2972
2539
|
var values = arguments.length > 1 ? $slice(arguments, 1) : [];
|
|
2973
2540
|
if (err) {
|
|
2974
2541
|
reject(err);
|