@mjhls/mjh-framework 1.0.790 → 1.0.791-auth-test-v2
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 +15 -15
- package/dist/cjs/AD300x250x600.js +15 -15
- package/dist/cjs/AD728x90.js +16 -16
- package/dist/cjs/ADFloatingFooter.js +14 -14
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +14 -14
- package/dist/cjs/{ADInfeed-1e53d7db.js → ADInfeed-e7aecdf9.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +14 -14
- package/dist/cjs/ADSponsoredResources.js +14 -14
- package/dist/cjs/ADWebcast.js +14 -14
- package/dist/cjs/ADWelcome.js +14 -14
- package/dist/cjs/{ADlgInfeed-2494fd17.js → ADlgInfeed-0941023e.js} +1 -1
- package/dist/cjs/AccordionPanel.js +5 -5
- package/dist/cjs/AdSlot.js +16 -16
- package/dist/cjs/AdSlotsProvider.js +10 -10
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +11 -11
- package/dist/cjs/ArticleProgramLandingPage.js +24 -25
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +17 -17
- package/dist/cjs/Auth.js +210 -789
- package/dist/cjs/AuthWrapper.js +2948 -0
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +7 -7
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +5 -5
- package/dist/cjs/CMEDeck.js +14 -14
- package/dist/cjs/Column2.js +11 -11
- package/dist/cjs/Column3.js +20 -20
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +21 -21
- package/dist/cjs/{Dfp-6d140494.js → Dfp-3f0ed4c8.js} +8 -8
- package/dist/cjs/EventsDeck.js +36 -36
- package/dist/cjs/ExternalResources.js +25 -26
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +7 -7
- package/dist/cjs/GridContent.js +30 -30
- package/dist/cjs/GridHero.js +7 -7
- package/dist/cjs/GroupDeck.js +9 -9
- package/dist/cjs/HamMagazine.js +21 -21
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +24 -25
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +7 -7
- package/dist/cjs/IssueDeck.js +10 -10
- package/dist/cjs/IssueLanding.js +49 -49
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +14 -14
- package/dist/cjs/MasterDeck.js +32 -32
- package/dist/cjs/MediaSeriesLanding.js +408 -400
- package/dist/cjs/NavDvm.js +7 -7
- package/dist/cjs/NavMagazine.js +21 -21
- package/dist/cjs/NavNative.js +26 -26
- package/dist/cjs/NavNormal.js +7 -7
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +7 -7
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/PartnerDetailListing.js +28 -29
- package/dist/cjs/PopUpModal.js +5 -5
- package/dist/cjs/PubSection.js +20 -20
- package/dist/cjs/PubToc.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +49 -49
- package/dist/cjs/QueueDeckExpanded.js +22 -22
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +12 -12
- package/dist/cjs/{SeriesSlider-49577417.js → SeriesSlider-c022ce04.js} +12 -12
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-31afe61f.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +5 -5
- package/dist/cjs/TaxonomyDescription.js +24 -25
- package/dist/cjs/TemplateNormal.js +19 -19
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +7 -7
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +24 -25
- package/dist/cjs/VideoSeriesCard.js +8 -8
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +24 -24
- package/dist/cjs/VideoSeriesListing.js +17 -17
- package/dist/cjs/View.js +39 -40
- package/dist/cjs/YahooHero.js +7 -7
- package/dist/cjs/YoutubeGroup.js +19 -19
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-6128bd56.js} +1 -1
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-821a2927.js → _to-object-6de10e57.js} +4 -4
- package/dist/cjs/{asyncToGenerator-b6a175bf.js → asyncToGenerator-58c289d9.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-c2573ffd.js} +5 -5
- package/dist/cjs/{extends-1e24fc8d.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/faundadb.js +206 -0
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +11 -9
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +24 -25
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-45b91c88.js} +11 -11
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/cjs/{index-d450e2d5.js → index-70cfabd2.js} +338 -88
- package/dist/cjs/{index-d48b231c.js → index-efca863c.js} +5 -5
- package/dist/cjs/{index-4d74ffd6.js → index-f86bb269.js} +4 -4
- package/dist/cjs/index.js +37 -37
- package/dist/cjs/{inherits-2eb23889.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/inheritsLoose-b17eb2a8.js +18 -0
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-f0783643.js} +57 -9
- package/dist/cjs/{main-dc082238.js → main-025fdc78.js} +184 -109
- package/dist/cjs/md5-e1ca5797.js +323 -0
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-97065d40.js → typeof-88a668c5.js} +34 -34
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-46657b5c.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +15 -15
- package/dist/esm/AD300x250x600.js +15 -15
- package/dist/esm/AD728x90.js +16 -16
- package/dist/esm/ADFloatingFooter.js +14 -14
- package/dist/esm/ADFooter.js +5 -5
- package/dist/esm/ADGutter.js +14 -14
- package/dist/esm/{ADInfeed-94817c40.js → ADInfeed-e1e18f87.js} +1 -1
- package/dist/esm/ADSkyscraper.js +14 -14
- package/dist/esm/ADSponsoredResources.js +14 -14
- package/dist/esm/ADWebcast.js +14 -14
- package/dist/esm/ADWelcome.js +14 -14
- package/dist/esm/{ADlgInfeed-6124ee3c.js → ADlgInfeed-c6d2831b.js} +1 -1
- package/dist/esm/AccordionPanel.js +5 -5
- package/dist/esm/AdSlot.js +16 -16
- package/dist/esm/AdSlotsProvider.js +10 -10
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +11 -11
- package/dist/esm/ArticleProgramLandingPage.js +24 -25
- package/dist/esm/ArticleSeriesLandingPage.js +24 -24
- package/dist/esm/ArticleSeriesListing.js +17 -17
- package/dist/esm/Auth.js +208 -787
- package/dist/esm/AuthWrapper.js +2942 -0
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-5ae7409f.js} +1 -1
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-52cf21c5.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +14 -14
- package/dist/esm/Column2.js +11 -11
- package/dist/esm/Column3.js +20 -20
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +21 -21
- package/dist/esm/{Dfp-313e4ebe.js → Dfp-a304d96c.js} +8 -8
- package/dist/esm/EventsDeck.js +36 -36
- package/dist/esm/ExternalResources.js +25 -26
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +7 -7
- package/dist/esm/GridContent.js +30 -30
- package/dist/esm/GridHero.js +7 -7
- package/dist/esm/GroupDeck.js +9 -9
- package/dist/esm/HamMagazine.js +21 -21
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +24 -25
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +7 -7
- package/dist/esm/IssueDeck.js +10 -10
- package/dist/esm/IssueLanding.js +49 -49
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +14 -14
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MediaSeriesLanding.js +404 -396
- package/dist/esm/NavDvm.js +7 -7
- package/dist/esm/NavMagazine.js +21 -21
- package/dist/esm/NavNative.js +26 -26
- package/dist/esm/NavNormal.js +7 -7
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +7 -7
- package/dist/esm/PageFilter.js +5 -5
- package/dist/esm/PartnerDetailListing.js +28 -29
- package/dist/esm/PopUpModal.js +5 -5
- package/dist/esm/PubSection.js +20 -20
- package/dist/esm/PubToc.js +7 -7
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +22 -22
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +12 -12
- package/dist/esm/{SeriesSlider-291e1c9e.js → SeriesSlider-8414085b.js} +12 -12
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-116b1d5d.js} +6 -6
- package/dist/esm/TaxonomyCard.js +5 -5
- package/dist/esm/TaxonomyDescription.js +24 -25
- package/dist/esm/TemplateNormal.js +19 -19
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +7 -7
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +24 -25
- package/dist/esm/VideoSeriesCard.js +8 -8
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +24 -24
- package/dist/esm/VideoSeriesListing.js +17 -17
- package/dist/esm/View.js +39 -40
- package/dist/esm/YahooHero.js +7 -7
- package/dist/esm/YoutubeGroup.js +19 -19
- package/dist/esm/{_is-array-674f71ec.js → _is-array-3e99e06e.js} +1 -1
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-97770c52.js → _to-object-b50e61c3.js} +4 -4
- package/dist/esm/{asyncToGenerator-585841c0.js → asyncToGenerator-7f8f9219.js} +30 -30
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-bc33758b.js} +5 -5
- package/dist/esm/{extends-31d65aba.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/faundadb.js +200 -0
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -9
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +24 -25
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-d0d71a56.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/esm/{index-3f5c03b2.js → index-0dbff1d1.js} +5 -5
- package/dist/esm/{index-f4fe5a50.js → index-613fdebe.js} +337 -86
- package/dist/esm/{index-ccb770c7.js → index-79cfd25c.js} +4 -4
- package/dist/esm/index.js +37 -37
- package/dist/esm/{inherits-5906fbea.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/inheritsLoose-8f901617.js +16 -0
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-a0b0c7a4.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ad27652f.js → lodash-f97fd99a.js} +57 -9
- package/dist/esm/{main-1450d277.js → main-b5c5aac1.js} +178 -103
- package/dist/esm/md5-4e42248e.js +321 -0
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-e9cea9e8.js → typeof-a286cf0c.js} +34 -34
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4109ff68.js} +2 -2
- package/package.json +111 -108
- package/dist/cjs/keys-95c064c9.js +0 -25
- package/dist/cjs/stringify-01cf47f7.js +0 -17
- package/dist/esm/stringify-d4839bab.js +0 -15
package/dist/cjs/Auth.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var asyncToGenerator = require('./asyncToGenerator-
|
|
6
|
-
var stringify = require('./stringify-
|
|
7
|
-
var slicedToArray = require('./slicedToArray-
|
|
5
|
+
var asyncToGenerator = require('./asyncToGenerator-58c289d9.js');
|
|
6
|
+
var stringify = require('./stringify-c9ac1214.js');
|
|
7
|
+
var slicedToArray = require('./slicedToArray-5d1bc3b3.js');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var Router = require('next/router');
|
|
10
|
-
var _extends = require('./extends-
|
|
10
|
+
var _extends = require('./extends-29bdbc6d.js');
|
|
11
11
|
var reactBootstrap = require('react-bootstrap');
|
|
12
12
|
var useSWR = require('swr');
|
|
13
13
|
var index = require('./index-bd6c9f56.js');
|
|
@@ -15,13 +15,14 @@ var Local = require('passport-local');
|
|
|
15
15
|
var mysql = require('mysql');
|
|
16
16
|
var util = require('./util-6f784d85.js');
|
|
17
17
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
18
|
-
require('./
|
|
19
|
-
require('./
|
|
20
|
-
require('./
|
|
18
|
+
var md5 = require('./md5-e1ca5797.js');
|
|
19
|
+
require('./es6.string.iterator-c2573ffd.js');
|
|
20
|
+
require('./_to-object-6de10e57.js');
|
|
21
|
+
require('./web.dom.iterable-46657b5c.js');
|
|
21
22
|
require('./_library-dd23b178.js');
|
|
22
|
-
require('./core.get-iterator-method-
|
|
23
|
-
require('./_iter-detect-
|
|
24
|
-
require('./_object-pie-
|
|
23
|
+
require('./core.get-iterator-method-f474eacc.js');
|
|
24
|
+
require('./_iter-detect-55a5657a.js');
|
|
25
|
+
require('./_object-pie-083f2dd6.js');
|
|
25
26
|
|
|
26
27
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
27
28
|
|
|
@@ -147,7 +148,7 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
147
148
|
}
|
|
148
149
|
};
|
|
149
150
|
|
|
150
|
-
var _this = undefined;
|
|
151
|
+
var _this$4 = undefined;
|
|
151
152
|
|
|
152
153
|
var dataHandler = function () {
|
|
153
154
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(api_url, body) {
|
|
@@ -213,7 +214,7 @@ var dataHandler = function () {
|
|
|
213
214
|
return _context.stop();
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
|
-
}, _callee, _this, [[0, 20]]);
|
|
217
|
+
}, _callee, _this$4, [[0, 20]]);
|
|
217
218
|
}));
|
|
218
219
|
|
|
219
220
|
return function dataHandler(_x, _x2) {
|
|
@@ -409,9 +410,9 @@ var countries = ["United States", "Afghanistan", "Albania", "Algeria", "American
|
|
|
409
410
|
|
|
410
411
|
var states = ['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY'];
|
|
411
412
|
|
|
412
|
-
var _this$
|
|
413
|
+
var _this$3 = undefined;
|
|
413
414
|
|
|
414
|
-
var SignupForm = function SignupForm(props) {
|
|
415
|
+
var SignupForm$1 = function SignupForm(props) {
|
|
415
416
|
var handleSubmit = function () {
|
|
416
417
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(e) {
|
|
417
418
|
var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
|
|
@@ -572,7 +573,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
572
573
|
return _context.stop();
|
|
573
574
|
}
|
|
574
575
|
}
|
|
575
|
-
}, _callee, _this$
|
|
576
|
+
}, _callee, _this$3);
|
|
576
577
|
}));
|
|
577
578
|
|
|
578
579
|
return function loadInitData() {
|
|
@@ -639,7 +640,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
639
640
|
return _context2.stop();
|
|
640
641
|
}
|
|
641
642
|
}
|
|
642
|
-
}, _callee2, _this$
|
|
643
|
+
}, _callee2, _this$3);
|
|
643
644
|
}));
|
|
644
645
|
|
|
645
646
|
return function handleOccupationChanged(_x) {
|
|
@@ -789,7 +790,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
789
790
|
|
|
790
791
|
var _this$2 = undefined;
|
|
791
792
|
|
|
792
|
-
var SignupForm
|
|
793
|
+
var SignupForm = function SignupForm(props) {
|
|
793
794
|
var handleSubmit = function () {
|
|
794
795
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(e) {
|
|
795
796
|
var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
|
|
@@ -1324,10 +1325,10 @@ var iron = /*#__PURE__*/Object.freeze({
|
|
|
1324
1325
|
getSession: getSession
|
|
1325
1326
|
});
|
|
1326
1327
|
|
|
1327
|
-
var toStr = Object.prototype.toString;
|
|
1328
|
+
var toStr$5 = Object.prototype.toString;
|
|
1328
1329
|
|
|
1329
1330
|
var isArguments = function isArguments(value) {
|
|
1330
|
-
var str = toStr.call(value);
|
|
1331
|
+
var str = toStr$5.call(value);
|
|
1331
1332
|
var isArgs = str === '[object Arguments]';
|
|
1332
1333
|
if (!isArgs) {
|
|
1333
1334
|
isArgs = str !== '[object Array]' &&
|
|
@@ -1335,16 +1336,16 @@ var isArguments = function isArguments(value) {
|
|
|
1335
1336
|
typeof value === 'object' &&
|
|
1336
1337
|
typeof value.length === 'number' &&
|
|
1337
1338
|
value.length >= 0 &&
|
|
1338
|
-
toStr.call(value.callee) === '[object Function]';
|
|
1339
|
+
toStr$5.call(value.callee) === '[object Function]';
|
|
1339
1340
|
}
|
|
1340
1341
|
return isArgs;
|
|
1341
1342
|
};
|
|
1342
1343
|
|
|
1343
|
-
var keysShim;
|
|
1344
|
+
var keysShim$1;
|
|
1344
1345
|
if (!Object.keys) {
|
|
1345
1346
|
// modified from https://github.com/es-shims/es5-shim
|
|
1346
|
-
var has = Object.prototype.hasOwnProperty;
|
|
1347
|
-
var toStr$
|
|
1347
|
+
var has$1 = Object.prototype.hasOwnProperty;
|
|
1348
|
+
var toStr$4 = Object.prototype.toString;
|
|
1348
1349
|
var isArgs = isArguments; // eslint-disable-line global-require
|
|
1349
1350
|
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1350
1351
|
var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
|
|
@@ -1392,7 +1393,7 @@ if (!Object.keys) {
|
|
|
1392
1393
|
if (typeof window === 'undefined') { return false; }
|
|
1393
1394
|
for (var k in window) {
|
|
1394
1395
|
try {
|
|
1395
|
-
if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
|
|
1396
|
+
if (!excludedKeys['$' + k] && has$1.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
|
|
1396
1397
|
try {
|
|
1397
1398
|
equalsConstructorPrototype(window[k]);
|
|
1398
1399
|
} catch (e) {
|
|
@@ -1417,11 +1418,11 @@ if (!Object.keys) {
|
|
|
1417
1418
|
}
|
|
1418
1419
|
};
|
|
1419
1420
|
|
|
1420
|
-
keysShim = function keys(object) {
|
|
1421
|
+
keysShim$1 = function keys(object) {
|
|
1421
1422
|
var isObject = object !== null && typeof object === 'object';
|
|
1422
|
-
var isFunction = toStr$
|
|
1423
|
+
var isFunction = toStr$4.call(object) === '[object Function]';
|
|
1423
1424
|
var isArguments = isArgs(object);
|
|
1424
|
-
var isString = isObject && toStr$
|
|
1425
|
+
var isString = isObject && toStr$4.call(object) === '[object String]';
|
|
1425
1426
|
var theKeys = [];
|
|
1426
1427
|
|
|
1427
1428
|
if (!isObject && !isFunction && !isArguments) {
|
|
@@ -1429,7 +1430,7 @@ if (!Object.keys) {
|
|
|
1429
1430
|
}
|
|
1430
1431
|
|
|
1431
1432
|
var skipProto = hasProtoEnumBug && isFunction;
|
|
1432
|
-
if (isString && object.length > 0 && !has.call(object, 0)) {
|
|
1433
|
+
if (isString && object.length > 0 && !has$1.call(object, 0)) {
|
|
1433
1434
|
for (var i = 0; i < object.length; ++i) {
|
|
1434
1435
|
theKeys.push(String(i));
|
|
1435
1436
|
}
|
|
@@ -1441,7 +1442,7 @@ if (!Object.keys) {
|
|
|
1441
1442
|
}
|
|
1442
1443
|
} else {
|
|
1443
1444
|
for (var name in object) {
|
|
1444
|
-
if (!(skipProto && name === 'prototype') && has.call(object, name)) {
|
|
1445
|
+
if (!(skipProto && name === 'prototype') && has$1.call(object, name)) {
|
|
1445
1446
|
theKeys.push(String(name));
|
|
1446
1447
|
}
|
|
1447
1448
|
}
|
|
@@ -1451,7 +1452,7 @@ if (!Object.keys) {
|
|
|
1451
1452
|
var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
|
|
1452
1453
|
|
|
1453
1454
|
for (var k = 0; k < dontEnums.length; ++k) {
|
|
1454
|
-
if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
|
|
1455
|
+
if (!(skipConstructor && dontEnums[k] === 'constructor') && has$1.call(object, dontEnums[k])) {
|
|
1455
1456
|
theKeys.push(dontEnums[k]);
|
|
1456
1457
|
}
|
|
1457
1458
|
}
|
|
@@ -1459,17 +1460,17 @@ if (!Object.keys) {
|
|
|
1459
1460
|
return theKeys;
|
|
1460
1461
|
};
|
|
1461
1462
|
}
|
|
1462
|
-
var implementation = keysShim;
|
|
1463
|
+
var implementation$3 = keysShim$1;
|
|
1463
1464
|
|
|
1464
|
-
var slice = Array.prototype.slice;
|
|
1465
|
+
var slice$1 = Array.prototype.slice;
|
|
1465
1466
|
|
|
1466
1467
|
|
|
1467
1468
|
var origKeys = Object.keys;
|
|
1468
|
-
var keysShim
|
|
1469
|
+
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : implementation$3;
|
|
1469
1470
|
|
|
1470
1471
|
var originalKeys = Object.keys;
|
|
1471
1472
|
|
|
1472
|
-
keysShim
|
|
1473
|
+
keysShim.shim = function shimObjectKeys() {
|
|
1473
1474
|
if (Object.keys) {
|
|
1474
1475
|
var keysWorksWithArguments = (function () {
|
|
1475
1476
|
// Safari 5.0 bug
|
|
@@ -1479,27 +1480,27 @@ keysShim$1.shim = function shimObjectKeys() {
|
|
|
1479
1480
|
if (!keysWorksWithArguments) {
|
|
1480
1481
|
Object.keys = function keys(object) { // eslint-disable-line func-name-matching
|
|
1481
1482
|
if (isArguments(object)) {
|
|
1482
|
-
return originalKeys(slice.call(object));
|
|
1483
|
+
return originalKeys(slice$1.call(object));
|
|
1483
1484
|
}
|
|
1484
1485
|
return originalKeys(object);
|
|
1485
1486
|
};
|
|
1486
1487
|
}
|
|
1487
1488
|
} else {
|
|
1488
|
-
Object.keys = keysShim
|
|
1489
|
+
Object.keys = keysShim;
|
|
1489
1490
|
}
|
|
1490
|
-
return Object.keys || keysShim
|
|
1491
|
+
return Object.keys || keysShim;
|
|
1491
1492
|
};
|
|
1492
1493
|
|
|
1493
|
-
var objectKeys = keysShim
|
|
1494
|
+
var objectKeys = keysShim;
|
|
1494
1495
|
|
|
1495
|
-
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
1496
|
+
var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
1496
1497
|
|
|
1497
|
-
var toStr$
|
|
1498
|
+
var toStr$3 = Object.prototype.toString;
|
|
1498
1499
|
var concat = Array.prototype.concat;
|
|
1499
1500
|
var origDefineProperty = Object.defineProperty;
|
|
1500
1501
|
|
|
1501
1502
|
var isFunction = function (fn) {
|
|
1502
|
-
return typeof fn === 'function' && toStr$
|
|
1503
|
+
return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
|
|
1503
1504
|
};
|
|
1504
1505
|
|
|
1505
1506
|
var arePropertyDescriptorsSupported = function () {
|
|
@@ -1536,7 +1537,7 @@ var defineProperty = function (object, name, value, predicate) {
|
|
|
1536
1537
|
var defineProperties = function (object, map) {
|
|
1537
1538
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
1538
1539
|
var props = objectKeys(map);
|
|
1539
|
-
if (hasSymbols) {
|
|
1540
|
+
if (hasSymbols$4) {
|
|
1540
1541
|
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
1541
1542
|
}
|
|
1542
1543
|
for (var i = 0; i < props.length; i += 1) {
|
|
@@ -1551,23 +1552,23 @@ var defineProperties_1 = defineProperties;
|
|
|
1551
1552
|
/* eslint no-invalid-this: 1 */
|
|
1552
1553
|
|
|
1553
1554
|
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1554
|
-
var slice
|
|
1555
|
-
var toStr$
|
|
1555
|
+
var slice = Array.prototype.slice;
|
|
1556
|
+
var toStr$2 = Object.prototype.toString;
|
|
1556
1557
|
var funcType = '[object Function]';
|
|
1557
1558
|
|
|
1558
|
-
var implementation$
|
|
1559
|
+
var implementation$2 = function bind(that) {
|
|
1559
1560
|
var target = this;
|
|
1560
|
-
if (typeof target !== 'function' || toStr$
|
|
1561
|
+
if (typeof target !== 'function' || toStr$2.call(target) !== funcType) {
|
|
1561
1562
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
1562
1563
|
}
|
|
1563
|
-
var args = slice
|
|
1564
|
+
var args = slice.call(arguments, 1);
|
|
1564
1565
|
|
|
1565
1566
|
var bound;
|
|
1566
1567
|
var binder = function () {
|
|
1567
1568
|
if (this instanceof bound) {
|
|
1568
1569
|
var result = target.apply(
|
|
1569
1570
|
this,
|
|
1570
|
-
args.concat(slice
|
|
1571
|
+
args.concat(slice.call(arguments))
|
|
1571
1572
|
);
|
|
1572
1573
|
if (Object(result) === result) {
|
|
1573
1574
|
return result;
|
|
@@ -1576,7 +1577,7 @@ var implementation$1 = function bind(that) {
|
|
|
1576
1577
|
} else {
|
|
1577
1578
|
return target.apply(
|
|
1578
1579
|
that,
|
|
1579
|
-
args.concat(slice
|
|
1580
|
+
args.concat(slice.call(arguments))
|
|
1580
1581
|
);
|
|
1581
1582
|
}
|
|
1582
1583
|
};
|
|
@@ -1599,7 +1600,7 @@ var implementation$1 = function bind(that) {
|
|
|
1599
1600
|
return bound;
|
|
1600
1601
|
};
|
|
1601
1602
|
|
|
1602
|
-
var functionBind = Function.prototype.bind || implementation$
|
|
1603
|
+
var functionBind = Function.prototype.bind || implementation$2;
|
|
1603
1604
|
|
|
1604
1605
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
1605
1606
|
var shams = function hasSymbols() {
|
|
@@ -1624,7 +1625,7 @@ var shams = function hasSymbols() {
|
|
|
1624
1625
|
|
|
1625
1626
|
var symVal = 42;
|
|
1626
1627
|
obj[sym] = symVal;
|
|
1627
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
|
|
1628
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
1628
1629
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
1629
1630
|
|
|
1630
1631
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -1642,10 +1643,10 @@ var shams = function hasSymbols() {
|
|
|
1642
1643
|
return true;
|
|
1643
1644
|
};
|
|
1644
1645
|
|
|
1645
|
-
var origSymbol =
|
|
1646
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
1646
1647
|
|
|
1647
1648
|
|
|
1648
|
-
var hasSymbols$
|
|
1649
|
+
var hasSymbols$3 = function hasNativeSymbols() {
|
|
1649
1650
|
if (typeof origSymbol !== 'function') { return false; }
|
|
1650
1651
|
if (typeof Symbol !== 'function') { return false; }
|
|
1651
1652
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
@@ -1658,9 +1659,9 @@ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
|
1658
1659
|
|
|
1659
1660
|
var undefined$1;
|
|
1660
1661
|
|
|
1661
|
-
var $SyntaxError = SyntaxError;
|
|
1662
|
+
var $SyntaxError$1 = SyntaxError;
|
|
1662
1663
|
var $Function = Function;
|
|
1663
|
-
var $TypeError = TypeError;
|
|
1664
|
+
var $TypeError$5 = TypeError;
|
|
1664
1665
|
|
|
1665
1666
|
// eslint-disable-next-line consistent-return
|
|
1666
1667
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -1669,19 +1670,19 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
1669
1670
|
} catch (e) {}
|
|
1670
1671
|
};
|
|
1671
1672
|
|
|
1672
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
1673
|
-
if ($gOPD) {
|
|
1673
|
+
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
1674
|
+
if ($gOPD$2) {
|
|
1674
1675
|
try {
|
|
1675
|
-
$gOPD({}, '');
|
|
1676
|
+
$gOPD$2({}, '');
|
|
1676
1677
|
} catch (e) {
|
|
1677
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
1678
|
+
$gOPD$2 = null; // this is IE 8, which has a broken gOPD
|
|
1678
1679
|
}
|
|
1679
1680
|
}
|
|
1680
1681
|
|
|
1681
1682
|
var throwTypeError = function () {
|
|
1682
|
-
throw new $TypeError();
|
|
1683
|
+
throw new $TypeError$5();
|
|
1683
1684
|
};
|
|
1684
|
-
var ThrowTypeError = $gOPD
|
|
1685
|
+
var ThrowTypeError = $gOPD$2
|
|
1685
1686
|
? (function () {
|
|
1686
1687
|
try {
|
|
1687
1688
|
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
@@ -1690,7 +1691,7 @@ var ThrowTypeError = $gOPD
|
|
|
1690
1691
|
} catch (calleeThrows) {
|
|
1691
1692
|
try {
|
|
1692
1693
|
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
1693
|
-
return $gOPD(arguments, 'callee').get;
|
|
1694
|
+
return $gOPD$2(arguments, 'callee').get;
|
|
1694
1695
|
} catch (gOPDthrows) {
|
|
1695
1696
|
return throwTypeError;
|
|
1696
1697
|
}
|
|
@@ -1698,7 +1699,7 @@ var ThrowTypeError = $gOPD
|
|
|
1698
1699
|
}())
|
|
1699
1700
|
: throwTypeError;
|
|
1700
1701
|
|
|
1701
|
-
var hasSymbols$2 = hasSymbols$
|
|
1702
|
+
var hasSymbols$2 = hasSymbols$3();
|
|
1702
1703
|
|
|
1703
1704
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
1704
1705
|
|
|
@@ -1759,10 +1760,10 @@ var INTRINSICS = {
|
|
|
1759
1760
|
'%String%': String,
|
|
1760
1761
|
'%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
1761
1762
|
'%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
|
|
1762
|
-
'%SyntaxError%': $SyntaxError,
|
|
1763
|
+
'%SyntaxError%': $SyntaxError$1,
|
|
1763
1764
|
'%ThrowTypeError%': ThrowTypeError,
|
|
1764
1765
|
'%TypedArray%': TypedArray,
|
|
1765
|
-
'%TypeError%': $TypeError,
|
|
1766
|
+
'%TypeError%': $TypeError$5,
|
|
1766
1767
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
1767
1768
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
1768
1769
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
@@ -1854,7 +1855,7 @@ var LEGACY_ALIASES = {
|
|
|
1854
1855
|
|
|
1855
1856
|
|
|
1856
1857
|
|
|
1857
|
-
var $concat = functionBind.call(Function.call, Array.prototype.concat);
|
|
1858
|
+
var $concat$2 = functionBind.call(Function.call, Array.prototype.concat);
|
|
1858
1859
|
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
|
1859
1860
|
var $replace = functionBind.call(Function.call, String.prototype.replace);
|
|
1860
1861
|
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
|
@@ -1866,9 +1867,9 @@ var stringToPath = function stringToPath(string) {
|
|
|
1866
1867
|
var first = $strSlice(string, 0, 1);
|
|
1867
1868
|
var last = $strSlice(string, -1);
|
|
1868
1869
|
if (first === '%' && last !== '%') {
|
|
1869
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
1870
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
|
|
1870
1871
|
} else if (last === '%' && first !== '%') {
|
|
1871
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
1872
|
+
throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
|
|
1872
1873
|
}
|
|
1873
1874
|
var result = [];
|
|
1874
1875
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
@@ -1892,7 +1893,7 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
1892
1893
|
value = doEval(intrinsicName);
|
|
1893
1894
|
}
|
|
1894
1895
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
1895
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1896
|
+
throw new $TypeError$5('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1896
1897
|
}
|
|
1897
1898
|
|
|
1898
1899
|
return {
|
|
@@ -1902,15 +1903,15 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
1902
1903
|
};
|
|
1903
1904
|
}
|
|
1904
1905
|
|
|
1905
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
1906
|
+
throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
|
|
1906
1907
|
};
|
|
1907
1908
|
|
|
1908
1909
|
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1909
1910
|
if (typeof name !== 'string' || name.length === 0) {
|
|
1910
|
-
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
1911
|
+
throw new $TypeError$5('intrinsic name must be a non-empty string');
|
|
1911
1912
|
}
|
|
1912
1913
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1913
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
1914
|
+
throw new $TypeError$5('"allowMissing" argument must be a boolean');
|
|
1914
1915
|
}
|
|
1915
1916
|
|
|
1916
1917
|
var parts = stringToPath(name);
|
|
@@ -1924,7 +1925,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1924
1925
|
var alias = intrinsic.alias;
|
|
1925
1926
|
if (alias) {
|
|
1926
1927
|
intrinsicBaseName = alias[0];
|
|
1927
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
1928
|
+
$spliceApply(parts, $concat$2([0, 1], alias));
|
|
1928
1929
|
}
|
|
1929
1930
|
|
|
1930
1931
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
@@ -1938,7 +1939,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1938
1939
|
)
|
|
1939
1940
|
&& first !== last
|
|
1940
1941
|
) {
|
|
1941
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
1942
|
+
throw new $SyntaxError$1('property names with quotes must have matching quotes');
|
|
1942
1943
|
}
|
|
1943
1944
|
if (part === 'constructor' || !isOwn) {
|
|
1944
1945
|
skipFurtherCaching = true;
|
|
@@ -1952,12 +1953,12 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1952
1953
|
} else if (value != null) {
|
|
1953
1954
|
if (!(part in value)) {
|
|
1954
1955
|
if (!allowMissing) {
|
|
1955
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1956
|
+
throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1956
1957
|
}
|
|
1957
1958
|
return void undefined$1;
|
|
1958
1959
|
}
|
|
1959
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
1960
|
-
var desc = $gOPD(value, part);
|
|
1960
|
+
if ($gOPD$2 && (i + 1) >= parts.length) {
|
|
1961
|
+
var desc = $gOPD$2(value, part);
|
|
1961
1962
|
isOwn = !!desc;
|
|
1962
1963
|
|
|
1963
1964
|
// By convention, when a data property is converted to an accessor
|
|
@@ -2037,7 +2038,7 @@ callBind.apply;
|
|
|
2037
2038
|
|
|
2038
2039
|
var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
|
|
2039
2040
|
|
|
2040
|
-
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
2041
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2041
2042
|
var intrinsic = getIntrinsic(name, !!allowMissing);
|
|
2042
2043
|
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
2043
2044
|
return callBind(intrinsic);
|
|
@@ -2058,7 +2059,7 @@ if ($defineProperty) {
|
|
|
2058
2059
|
|
|
2059
2060
|
|
|
2060
2061
|
|
|
2061
|
-
var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
|
|
2062
|
+
var $isEnumerable$1 = callBound$1('Object.prototype.propertyIsEnumerable');
|
|
2062
2063
|
|
|
2063
2064
|
// eslint-disable-next-line max-params
|
|
2064
2065
|
var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) {
|
|
@@ -2072,7 +2073,7 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
|
|
|
2072
2073
|
}
|
|
2073
2074
|
|
|
2074
2075
|
// fallback for ES3
|
|
2075
|
-
if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) {
|
|
2076
|
+
if (P in O && $isEnumerable$1(O, P) !== !!desc['[[Enumerable]]']) {
|
|
2076
2077
|
// a non-enumerable existing property
|
|
2077
2078
|
return false;
|
|
2078
2079
|
}
|
|
@@ -2087,13 +2088,13 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
|
|
|
2087
2088
|
return true;
|
|
2088
2089
|
};
|
|
2089
2090
|
|
|
2090
|
-
var $TypeError$
|
|
2091
|
-
var $SyntaxError
|
|
2091
|
+
var $TypeError$4 = getIntrinsic('%TypeError%');
|
|
2092
|
+
var $SyntaxError = getIntrinsic('%SyntaxError%');
|
|
2092
2093
|
|
|
2093
2094
|
|
|
2094
2095
|
|
|
2095
2096
|
var predicates = {
|
|
2096
|
-
// https://ecma-international.org/
|
|
2097
|
+
// https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type
|
|
2097
2098
|
'Property Descriptor': function isPropertyDescriptor(Type, Desc) {
|
|
2098
2099
|
if (Type(Desc) !== 'Object') {
|
|
2099
2100
|
return false;
|
|
@@ -2116,7 +2117,7 @@ var predicates = {
|
|
|
2116
2117
|
var isData = src(Desc, '[[Value]]');
|
|
2117
2118
|
var IsAccessor = src(Desc, '[[Get]]') || src(Desc, '[[Set]]');
|
|
2118
2119
|
if (isData && IsAccessor) {
|
|
2119
|
-
throw new $TypeError$
|
|
2120
|
+
throw new $TypeError$4('Property Descriptors may not be both accessor and data descriptors');
|
|
2120
2121
|
}
|
|
2121
2122
|
return true;
|
|
2122
2123
|
}
|
|
@@ -2125,16 +2126,16 @@ var predicates = {
|
|
|
2125
2126
|
var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
|
|
2126
2127
|
var predicate = predicates[recordType];
|
|
2127
2128
|
if (typeof predicate !== 'function') {
|
|
2128
|
-
throw new $SyntaxError
|
|
2129
|
+
throw new $SyntaxError('unknown record type: ' + recordType);
|
|
2129
2130
|
}
|
|
2130
2131
|
if (!predicate(Type, value)) {
|
|
2131
|
-
throw new $TypeError$
|
|
2132
|
+
throw new $TypeError$4(argumentName + ' must be a ' + recordType);
|
|
2132
2133
|
}
|
|
2133
2134
|
};
|
|
2134
2135
|
|
|
2135
|
-
// https://ecma-international.org/
|
|
2136
|
+
// https://262.ecma-international.org/5.1/#sec-8
|
|
2136
2137
|
|
|
2137
|
-
var Type = function Type(x) {
|
|
2138
|
+
var Type$1 = function Type(x) {
|
|
2138
2139
|
if (x === null) {
|
|
2139
2140
|
return 'Null';
|
|
2140
2141
|
}
|
|
@@ -2155,16 +2156,16 @@ var Type = function Type(x) {
|
|
|
2155
2156
|
}
|
|
2156
2157
|
};
|
|
2157
2158
|
|
|
2158
|
-
// https://ecma-international.org/
|
|
2159
|
+
// https://262.ecma-international.org/11.0/#sec-ecmascript-data-types-and-values
|
|
2159
2160
|
|
|
2160
|
-
var Type
|
|
2161
|
+
var Type = function Type(x) {
|
|
2161
2162
|
if (typeof x === 'symbol') {
|
|
2162
2163
|
return 'Symbol';
|
|
2163
2164
|
}
|
|
2164
2165
|
if (typeof x === 'bigint') {
|
|
2165
2166
|
return 'BigInt';
|
|
2166
2167
|
}
|
|
2167
|
-
return Type(x);
|
|
2168
|
+
return Type$1(x);
|
|
2168
2169
|
};
|
|
2169
2170
|
|
|
2170
2171
|
// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
@@ -2174,7 +2175,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2174
2175
|
return Desc;
|
|
2175
2176
|
}
|
|
2176
2177
|
|
|
2177
|
-
assertRecord(Type
|
|
2178
|
+
assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
|
|
2178
2179
|
|
|
2179
2180
|
var obj = {};
|
|
2180
2181
|
if ('[[Value]]' in Desc) {
|
|
@@ -2213,12 +2214,12 @@ var getOwnPropertyDescriptor = $gOPD$1;
|
|
|
2213
2214
|
var $Array = getIntrinsic('%Array%');
|
|
2214
2215
|
|
|
2215
2216
|
// eslint-disable-next-line global-require
|
|
2216
|
-
var toStr$
|
|
2217
|
+
var toStr$1 = !$Array.isArray && callBound$1('Object.prototype.toString');
|
|
2217
2218
|
|
|
2218
2219
|
// https://ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2219
2220
|
|
|
2220
2221
|
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2221
|
-
return toStr$
|
|
2222
|
+
return toStr$1(argument) === '[object Array]';
|
|
2222
2223
|
};
|
|
2223
2224
|
|
|
2224
2225
|
// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
@@ -2227,16 +2228,16 @@ var IsPropertyKey = function IsPropertyKey(argument) {
|
|
|
2227
2228
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2228
2229
|
};
|
|
2229
2230
|
|
|
2230
|
-
var hasSymbols$
|
|
2231
|
-
var hasToStringTag = hasSymbols$
|
|
2232
|
-
var has
|
|
2231
|
+
var hasSymbols$1 = hasSymbols$3();
|
|
2232
|
+
var hasToStringTag$1 = hasSymbols$1 && typeof Symbol.toStringTag === 'symbol';
|
|
2233
|
+
var has;
|
|
2233
2234
|
var $exec;
|
|
2234
2235
|
var isRegexMarker;
|
|
2235
2236
|
var badStringifier;
|
|
2236
2237
|
|
|
2237
|
-
if (hasToStringTag) {
|
|
2238
|
-
has
|
|
2239
|
-
$exec = callBound('RegExp.prototype.exec');
|
|
2238
|
+
if (hasToStringTag$1) {
|
|
2239
|
+
has = callBound$1('Object.prototype.hasOwnProperty');
|
|
2240
|
+
$exec = callBound$1('RegExp.prototype.exec');
|
|
2240
2241
|
isRegexMarker = {};
|
|
2241
2242
|
|
|
2242
2243
|
var throwRegexMarker = function () {
|
|
@@ -2252,11 +2253,11 @@ if (hasToStringTag) {
|
|
|
2252
2253
|
}
|
|
2253
2254
|
}
|
|
2254
2255
|
|
|
2255
|
-
var $toString = callBound('Object.prototype.toString');
|
|
2256
|
+
var $toString = callBound$1('Object.prototype.toString');
|
|
2256
2257
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2257
2258
|
var regexClass = '[object RegExp]';
|
|
2258
2259
|
|
|
2259
|
-
var isRegex = hasToStringTag
|
|
2260
|
+
var isRegex = hasToStringTag$1
|
|
2260
2261
|
// eslint-disable-next-line consistent-return
|
|
2261
2262
|
? function isRegex(value) {
|
|
2262
2263
|
if (!value || typeof value !== 'object') {
|
|
@@ -2264,7 +2265,7 @@ var isRegex = hasToStringTag
|
|
|
2264
2265
|
}
|
|
2265
2266
|
|
|
2266
2267
|
var descriptor = gOPD(value, 'lastIndex');
|
|
2267
|
-
var hasLastIndexDataProperty = descriptor && has
|
|
2268
|
+
var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
|
|
2268
2269
|
if (!hasLastIndexDataProperty) {
|
|
2269
2270
|
return false;
|
|
2270
2271
|
}
|
|
@@ -2284,7 +2285,7 @@ var isRegex = hasToStringTag
|
|
|
2284
2285
|
return $toString(value) === regexClass;
|
|
2285
2286
|
};
|
|
2286
2287
|
|
|
2287
|
-
// http://ecma-international.org/
|
|
2288
|
+
// http://262.ecma-international.org/5.1/#sec-9.2
|
|
2288
2289
|
|
|
2289
2290
|
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2290
2291
|
|
|
@@ -2351,10 +2352,10 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
2351
2352
|
return false;
|
|
2352
2353
|
}
|
|
2353
2354
|
};
|
|
2354
|
-
var toStr
|
|
2355
|
+
var toStr = Object.prototype.toString;
|
|
2355
2356
|
var fnClass = '[object Function]';
|
|
2356
2357
|
var genClass = '[object GeneratorFunction]';
|
|
2357
|
-
var hasToStringTag
|
|
2358
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2358
2359
|
/* globals document: false */
|
|
2359
2360
|
var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
|
|
2360
2361
|
|
|
@@ -2376,27 +2377,27 @@ var isCallable = reflectApply
|
|
|
2376
2377
|
if (!value) { return false; }
|
|
2377
2378
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2378
2379
|
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2379
|
-
if (hasToStringTag
|
|
2380
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2380
2381
|
if (isES6ClassFn(value)) { return false; }
|
|
2381
|
-
var strClass = toStr
|
|
2382
|
+
var strClass = toStr.call(value);
|
|
2382
2383
|
return strClass === fnClass || strClass === genClass;
|
|
2383
2384
|
};
|
|
2384
2385
|
|
|
2385
|
-
// http://ecma-international.org/
|
|
2386
|
+
// http://262.ecma-international.org/5.1/#sec-9.11
|
|
2386
2387
|
|
|
2387
2388
|
var IsCallable = isCallable;
|
|
2388
2389
|
|
|
2389
|
-
var $TypeError$
|
|
2390
|
+
var $TypeError$3 = getIntrinsic('%TypeError%');
|
|
2390
2391
|
|
|
2391
2392
|
|
|
2392
2393
|
|
|
2393
2394
|
|
|
2394
2395
|
|
|
2395
|
-
// https://ecma-international.org/
|
|
2396
|
+
// https://262.ecma-international.org/5.1/#sec-8.10.5
|
|
2396
2397
|
|
|
2397
2398
|
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2398
|
-
if (Type
|
|
2399
|
-
throw new $TypeError$
|
|
2399
|
+
if (Type(Obj) !== 'Object') {
|
|
2400
|
+
throw new $TypeError$3('ToPropertyDescriptor requires an object');
|
|
2400
2401
|
}
|
|
2401
2402
|
|
|
2402
2403
|
var desc = {};
|
|
@@ -2415,29 +2416,29 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2415
2416
|
if (src(Obj, 'get')) {
|
|
2416
2417
|
var getter = Obj.get;
|
|
2417
2418
|
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2418
|
-
throw new $TypeError$
|
|
2419
|
+
throw new $TypeError$3('getter must be a function');
|
|
2419
2420
|
}
|
|
2420
2421
|
desc['[[Get]]'] = getter;
|
|
2421
2422
|
}
|
|
2422
2423
|
if (src(Obj, 'set')) {
|
|
2423
2424
|
var setter = Obj.set;
|
|
2424
2425
|
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2425
|
-
throw new $TypeError$
|
|
2426
|
+
throw new $TypeError$3('setter must be a function');
|
|
2426
2427
|
}
|
|
2427
2428
|
desc['[[Set]]'] = setter;
|
|
2428
2429
|
}
|
|
2429
2430
|
|
|
2430
2431
|
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2431
|
-
throw new $TypeError$
|
|
2432
|
+
throw new $TypeError$3('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2432
2433
|
}
|
|
2433
2434
|
return desc;
|
|
2434
2435
|
};
|
|
2435
2436
|
|
|
2436
|
-
var $TypeError$
|
|
2437
|
+
var $TypeError$2 = getIntrinsic('%TypeError%');
|
|
2437
2438
|
|
|
2438
2439
|
|
|
2439
2440
|
|
|
2440
|
-
var $isEnumerable
|
|
2441
|
+
var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
|
|
2441
2442
|
|
|
2442
2443
|
|
|
2443
2444
|
|
|
@@ -2450,11 +2451,11 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
|
2450
2451
|
// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2451
2452
|
|
|
2452
2453
|
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2453
|
-
if (Type
|
|
2454
|
-
throw new $TypeError$
|
|
2454
|
+
if (Type(O) !== 'Object') {
|
|
2455
|
+
throw new $TypeError$2('Assertion failed: O must be an Object');
|
|
2455
2456
|
}
|
|
2456
2457
|
if (!IsPropertyKey(P)) {
|
|
2457
|
-
throw new $TypeError$
|
|
2458
|
+
throw new $TypeError$2('Assertion failed: P must be a Property Key');
|
|
2458
2459
|
}
|
|
2459
2460
|
if (!src(O, P)) {
|
|
2460
2461
|
return void 0;
|
|
@@ -2465,7 +2466,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
|
2465
2466
|
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2466
2467
|
return {
|
|
2467
2468
|
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2468
|
-
'[[Enumerable]]': $isEnumerable
|
|
2469
|
+
'[[Enumerable]]': $isEnumerable(O, P),
|
|
2469
2470
|
'[[Value]]': O[P],
|
|
2470
2471
|
'[[Writable]]': true
|
|
2471
2472
|
};
|
|
@@ -2480,7 +2481,7 @@ var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
|
2480
2481
|
return false;
|
|
2481
2482
|
}
|
|
2482
2483
|
|
|
2483
|
-
assertRecord(Type
|
|
2484
|
+
assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
|
|
2484
2485
|
|
|
2485
2486
|
if (!src(Desc, '[[Value]]') && !src(Desc, '[[Writable]]')) {
|
|
2486
2487
|
return false;
|
|
@@ -2493,12 +2494,12 @@ var isPrimitive = function isPrimitive(value) {
|
|
|
2493
2494
|
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
2494
2495
|
};
|
|
2495
2496
|
|
|
2496
|
-
var $Object = getIntrinsic('%Object%');
|
|
2497
|
+
var $Object$1 = getIntrinsic('%Object%');
|
|
2497
2498
|
|
|
2498
2499
|
|
|
2499
2500
|
|
|
2500
|
-
var $preventExtensions = $Object.preventExtensions;
|
|
2501
|
-
var $isExtensible = $Object.isExtensible;
|
|
2501
|
+
var $preventExtensions = $Object$1.preventExtensions;
|
|
2502
|
+
var $isExtensible = $Object$1.isExtensible;
|
|
2502
2503
|
|
|
2503
2504
|
// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2504
2505
|
|
|
@@ -2514,7 +2515,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
|
|
|
2514
2515
|
return a !== a;
|
|
2515
2516
|
};
|
|
2516
2517
|
|
|
2517
|
-
// http://ecma-international.org/
|
|
2518
|
+
// http://262.ecma-international.org/5.1/#sec-9.12
|
|
2518
2519
|
|
|
2519
2520
|
var SameValue = function SameValue(x, y) {
|
|
2520
2521
|
if (x === y) { // 0 === -0, but they are not identical.
|
|
@@ -2524,7 +2525,7 @@ var SameValue = function SameValue(x, y) {
|
|
|
2524
2525
|
return _isNaN(x) && _isNaN(y);
|
|
2525
2526
|
};
|
|
2526
2527
|
|
|
2527
|
-
var $TypeError$
|
|
2528
|
+
var $TypeError$1 = getIntrinsic('%TypeError%');
|
|
2528
2529
|
|
|
2529
2530
|
|
|
2530
2531
|
|
|
@@ -2539,11 +2540,11 @@ var $TypeError$4 = getIntrinsic('%TypeError%');
|
|
|
2539
2540
|
// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2540
2541
|
|
|
2541
2542
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2542
|
-
if (Type
|
|
2543
|
-
throw new $TypeError$
|
|
2543
|
+
if (Type(O) !== 'Object') {
|
|
2544
|
+
throw new $TypeError$1('Assertion failed: Type(O) is not Object');
|
|
2544
2545
|
}
|
|
2545
2546
|
if (!IsPropertyKey(P)) {
|
|
2546
|
-
throw new $TypeError$
|
|
2547
|
+
throw new $TypeError$1('Assertion failed: IsPropertyKey(P) is not true');
|
|
2547
2548
|
}
|
|
2548
2549
|
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2549
2550
|
var extensible = !oldDesc || IsExtensible(O);
|
|
@@ -2566,20 +2567,20 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2566
2567
|
);
|
|
2567
2568
|
};
|
|
2568
2569
|
|
|
2569
|
-
var $TypeError
|
|
2570
|
+
var $TypeError = getIntrinsic('%TypeError%');
|
|
2570
2571
|
|
|
2571
|
-
// http://ecma-international.org/
|
|
2572
|
+
// http://262.ecma-international.org/5.1/#sec-9.10
|
|
2572
2573
|
|
|
2573
2574
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2574
2575
|
if (value == null) {
|
|
2575
|
-
throw new $TypeError
|
|
2576
|
+
throw new $TypeError(optMessage || ('Cannot call method on ' + value));
|
|
2576
2577
|
}
|
|
2577
2578
|
return value;
|
|
2578
2579
|
};
|
|
2579
2580
|
|
|
2580
2581
|
var RequireObjectCoercible = CheckObjectCoercible;
|
|
2581
2582
|
|
|
2582
|
-
var $Object
|
|
2583
|
+
var $Object = getIntrinsic('%Object%');
|
|
2583
2584
|
|
|
2584
2585
|
|
|
2585
2586
|
|
|
@@ -2587,23 +2588,23 @@ var $Object$1 = getIntrinsic('%Object%');
|
|
|
2587
2588
|
|
|
2588
2589
|
var ToObject = function ToObject(value) {
|
|
2589
2590
|
RequireObjectCoercible(value);
|
|
2590
|
-
return $Object
|
|
2591
|
+
return $Object(value);
|
|
2591
2592
|
};
|
|
2592
2593
|
|
|
2593
|
-
var $gOPD
|
|
2594
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
2594
2595
|
var $getOwnNames = Object.getOwnPropertyNames;
|
|
2595
2596
|
var $getSymbols = Object.getOwnPropertySymbols;
|
|
2596
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
2597
|
-
var $reduce = callBound('Array.prototype.reduce');
|
|
2597
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
2598
|
+
var $reduce = callBound$1('Array.prototype.reduce');
|
|
2598
2599
|
var getAll = $getSymbols ? function (obj) {
|
|
2599
2600
|
return $concat$1($getOwnNames(obj), $getSymbols(obj));
|
|
2600
2601
|
} : $getOwnNames;
|
|
2601
2602
|
|
|
2602
|
-
var isES5 = IsCallable($gOPD
|
|
2603
|
+
var isES5$1 = IsCallable($gOPD) && IsCallable($getOwnNames);
|
|
2603
2604
|
|
|
2604
|
-
var implementation$
|
|
2605
|
+
var implementation$1 = function getOwnPropertyDescriptors(value) {
|
|
2605
2606
|
RequireObjectCoercible(value);
|
|
2606
|
-
if (!isES5) {
|
|
2607
|
+
if (!isES5$1) {
|
|
2607
2608
|
throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor');
|
|
2608
2609
|
}
|
|
2609
2610
|
|
|
@@ -2611,7 +2612,7 @@ var implementation$2 = function getOwnPropertyDescriptors(value) {
|
|
|
2611
2612
|
return $reduce(
|
|
2612
2613
|
getAll(O),
|
|
2613
2614
|
function (acc, key) {
|
|
2614
|
-
var descriptor = $gOPD
|
|
2615
|
+
var descriptor = $gOPD(O, key);
|
|
2615
2616
|
if (typeof descriptor !== 'undefined') {
|
|
2616
2617
|
CreateDataProperty(acc, key, descriptor);
|
|
2617
2618
|
}
|
|
@@ -2621,302 +2622,40 @@ var implementation$2 = function getOwnPropertyDescriptors(value) {
|
|
|
2621
2622
|
);
|
|
2622
2623
|
};
|
|
2623
2624
|
|
|
2624
|
-
var polyfill = function getPolyfill() {
|
|
2625
|
-
return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$
|
|
2625
|
+
var polyfill$2 = function getPolyfill() {
|
|
2626
|
+
return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$1;
|
|
2626
2627
|
};
|
|
2627
2628
|
|
|
2628
|
-
var shim = function shimGetOwnPropertyDescriptors() {
|
|
2629
|
-
var polyfill
|
|
2629
|
+
var shim$1 = function shimGetOwnPropertyDescriptors() {
|
|
2630
|
+
var polyfill = polyfill$2();
|
|
2630
2631
|
defineProperties_1(
|
|
2631
2632
|
Object,
|
|
2632
|
-
{ getOwnPropertyDescriptors: polyfill
|
|
2633
|
-
{ getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill
|
|
2633
|
+
{ getOwnPropertyDescriptors: polyfill },
|
|
2634
|
+
{ getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill; } }
|
|
2634
2635
|
);
|
|
2635
|
-
return polyfill
|
|
2636
|
+
return polyfill;
|
|
2636
2637
|
};
|
|
2637
2638
|
|
|
2638
|
-
var bound = callBind(polyfill(), Object);
|
|
2639
|
+
var bound = callBind(polyfill$2(), Object);
|
|
2639
2640
|
|
|
2640
2641
|
defineProperties_1(bound, {
|
|
2641
|
-
getPolyfill: polyfill,
|
|
2642
|
-
implementation: implementation$
|
|
2643
|
-
shim: shim
|
|
2642
|
+
getPolyfill: polyfill$2,
|
|
2643
|
+
implementation: implementation$1,
|
|
2644
|
+
shim: shim$1
|
|
2644
2645
|
});
|
|
2645
2646
|
|
|
2646
2647
|
var object_getownpropertydescriptors = bound;
|
|
2647
2648
|
|
|
2648
|
-
|
|
2649
|
-
Atomics,
|
|
2650
|
-
SharedArrayBuffer,
|
|
2651
|
-
*/
|
|
2649
|
+
// TODO; semver-major: remove
|
|
2652
2650
|
|
|
2653
|
-
var
|
|
2651
|
+
var callBound = callBound$1;
|
|
2654
2652
|
|
|
2655
|
-
var
|
|
2656
|
-
|
|
2657
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2658
|
-
if ($gOPD$3) {
|
|
2659
|
-
try {
|
|
2660
|
-
$gOPD$3({}, '');
|
|
2661
|
-
} catch (e) {
|
|
2662
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2663
|
-
}
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
var throwTypeError$1 = function () { throw new $TypeError$6(); };
|
|
2667
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
2668
|
-
? (function () {
|
|
2669
|
-
try {
|
|
2670
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2671
|
-
arguments.callee; // IE 8 does not throw here
|
|
2672
|
-
return throwTypeError$1;
|
|
2673
|
-
} catch (calleeThrows) {
|
|
2674
|
-
try {
|
|
2675
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2676
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
2677
|
-
} catch (gOPDthrows) {
|
|
2678
|
-
return throwTypeError$1;
|
|
2679
|
-
}
|
|
2680
|
-
}
|
|
2681
|
-
}())
|
|
2682
|
-
: throwTypeError$1;
|
|
2683
|
-
|
|
2684
|
-
var hasSymbols$4 = hasSymbols$1();
|
|
2685
|
-
|
|
2686
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2687
|
-
var generatorFunction = undefined$2;
|
|
2688
|
-
var asyncFunction = undefined$2;
|
|
2689
|
-
var asyncGenFunction = undefined$2;
|
|
2690
|
-
|
|
2691
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2692
|
-
|
|
2693
|
-
var INTRINSICS$1 = {
|
|
2694
|
-
'%Array%': Array,
|
|
2695
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2696
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2697
|
-
'%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2698
|
-
'%ArrayPrototype%': Array.prototype,
|
|
2699
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2700
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2701
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2702
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
2703
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2704
|
-
'%AsyncFunction%': asyncFunction,
|
|
2705
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
2706
|
-
'%AsyncGenerator%': undefined$2,
|
|
2707
|
-
'%AsyncGeneratorFunction%': asyncGenFunction,
|
|
2708
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2709
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
2710
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2711
|
-
'%Boolean%': Boolean,
|
|
2712
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
2713
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2714
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2715
|
-
'%Date%': Date,
|
|
2716
|
-
'%DatePrototype%': Date.prototype,
|
|
2717
|
-
'%decodeURI%': decodeURI,
|
|
2718
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
2719
|
-
'%encodeURI%': encodeURI,
|
|
2720
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
2721
|
-
'%Error%': Error,
|
|
2722
|
-
'%ErrorPrototype%': Error.prototype,
|
|
2723
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
2724
|
-
'%EvalError%': EvalError,
|
|
2725
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2726
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2727
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2728
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2729
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2730
|
-
'%Function%': Function,
|
|
2731
|
-
'%FunctionPrototype%': Function.prototype,
|
|
2732
|
-
'%Generator%': undefined$2,
|
|
2733
|
-
'%GeneratorFunction%': generatorFunction,
|
|
2734
|
-
'%GeneratorPrototype%': undefined$2,
|
|
2735
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2736
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2737
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2738
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2739
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2740
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2741
|
-
'%isFinite%': isFinite,
|
|
2742
|
-
'%isNaN%': isNaN,
|
|
2743
|
-
'%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2744
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2745
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2746
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2747
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2748
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2749
|
-
'%Math%': Math,
|
|
2750
|
-
'%Number%': Number,
|
|
2751
|
-
'%NumberPrototype%': Number.prototype,
|
|
2752
|
-
'%Object%': Object,
|
|
2753
|
-
'%ObjectPrototype%': Object.prototype,
|
|
2754
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
2755
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2756
|
-
'%parseFloat%': parseFloat,
|
|
2757
|
-
'%parseInt%': parseInt,
|
|
2758
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2759
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2760
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2761
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2762
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2763
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2764
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2765
|
-
'%RangeError%': RangeError,
|
|
2766
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2767
|
-
'%ReferenceError%': ReferenceError,
|
|
2768
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2769
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2770
|
-
'%RegExp%': RegExp,
|
|
2771
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
2772
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2773
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2774
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2775
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2776
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2777
|
-
'%String%': String,
|
|
2778
|
-
'%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2779
|
-
'%StringPrototype%': String.prototype,
|
|
2780
|
-
'%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
|
|
2781
|
-
'%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
|
|
2782
|
-
'%SyntaxError%': SyntaxError,
|
|
2783
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2784
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2785
|
-
'%TypedArray%': TypedArray$1,
|
|
2786
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2787
|
-
'%TypeError%': $TypeError$6,
|
|
2788
|
-
'%TypeErrorPrototype%': $TypeError$6.prototype,
|
|
2789
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2790
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2791
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2792
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2793
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2794
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2795
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2796
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2797
|
-
'%URIError%': URIError,
|
|
2798
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
2799
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2800
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2801
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2802
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2803
|
-
};
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2807
|
-
|
|
2808
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2809
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2810
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2811
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
2812
|
-
var result = [];
|
|
2813
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2814
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2815
|
-
});
|
|
2816
|
-
return result;
|
|
2817
|
-
};
|
|
2818
|
-
/* end adaptation */
|
|
2819
|
-
|
|
2820
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2821
|
-
if (!(name in INTRINSICS$1)) {
|
|
2822
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2823
|
-
}
|
|
2824
|
-
|
|
2825
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2826
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2827
|
-
throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2828
|
-
}
|
|
2829
|
-
|
|
2830
|
-
return INTRINSICS$1[name];
|
|
2831
|
-
};
|
|
2832
|
-
|
|
2833
|
-
var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
2834
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
2835
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2836
|
-
}
|
|
2837
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2838
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
var parts = stringToPath$1(name);
|
|
2842
|
-
|
|
2843
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2844
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
2845
|
-
if (value != null) {
|
|
2846
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2847
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
2848
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
2849
|
-
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2850
|
-
}
|
|
2851
|
-
// By convention, when a data property is converted to an accessor
|
|
2852
|
-
// property to emulate a data property that does not suffer from
|
|
2853
|
-
// the override mistake, that accessor's getter is marked with
|
|
2854
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
2855
|
-
// uphold the illusion by pretending to see that original data
|
|
2856
|
-
// property, i.e., returning the value rather than the getter
|
|
2857
|
-
// itself.
|
|
2858
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2859
|
-
} else {
|
|
2860
|
-
value = value[parts[i]];
|
|
2861
|
-
}
|
|
2862
|
-
}
|
|
2863
|
-
}
|
|
2864
|
-
return value;
|
|
2865
|
-
};
|
|
2866
|
-
|
|
2867
|
-
var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
2874
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2875
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
2876
|
-
|
|
2877
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2878
|
-
|
|
2879
|
-
if ($defineProperty) {
|
|
2880
|
-
try {
|
|
2881
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
2882
|
-
} catch (e) {
|
|
2883
|
-
// IE 8 has a broken defineProperty
|
|
2884
|
-
$defineProperty = null;
|
|
2885
|
-
}
|
|
2886
|
-
}
|
|
2887
|
-
|
|
2888
|
-
module.exports = function callBind() {
|
|
2889
|
-
return $reflectApply(functionBind, $call, arguments);
|
|
2890
|
-
};
|
|
2891
|
-
|
|
2892
|
-
var applyBind = function applyBind() {
|
|
2893
|
-
return $reflectApply(functionBind, $apply, arguments);
|
|
2894
|
-
};
|
|
2895
|
-
|
|
2896
|
-
if ($defineProperty) {
|
|
2897
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2898
|
-
} else {
|
|
2899
|
-
module.exports.apply = applyBind;
|
|
2900
|
-
}
|
|
2901
|
-
});
|
|
2902
|
-
callBind$1.apply;
|
|
2903
|
-
|
|
2904
|
-
var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
|
|
2905
|
-
|
|
2906
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2907
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
2908
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2909
|
-
return callBind$1(intrinsic);
|
|
2910
|
-
}
|
|
2911
|
-
return intrinsic;
|
|
2912
|
-
};
|
|
2913
|
-
|
|
2914
|
-
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2653
|
+
var isES5 = typeof Object.defineProperty === 'function'
|
|
2915
2654
|
&& typeof Object.defineProperties === 'function';
|
|
2916
2655
|
|
|
2917
2656
|
var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
|
|
2918
2657
|
|
|
2919
|
-
if (!isES5
|
|
2658
|
+
if (!isES5 || !hasProto) {
|
|
2920
2659
|
throw new TypeError('util.promisify requires a true ES5 environment, that also supports `__proto__`');
|
|
2921
2660
|
}
|
|
2922
2661
|
|
|
@@ -2928,16 +2667,16 @@ if (typeof Promise !== 'function') {
|
|
|
2928
2667
|
|
|
2929
2668
|
|
|
2930
2669
|
|
|
2931
|
-
var $slice = callBound
|
|
2932
|
-
var $concat
|
|
2933
|
-
var $forEach = callBound
|
|
2670
|
+
var $slice = callBound('Array.prototype.slice');
|
|
2671
|
+
var $concat = callBound('Array.prototype.concat');
|
|
2672
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
2934
2673
|
|
|
2935
|
-
var hasSymbols
|
|
2674
|
+
var hasSymbols = hasSymbols$3();
|
|
2936
2675
|
|
|
2937
|
-
var kCustomPromisifiedSymbol = hasSymbols
|
|
2938
|
-
var kCustomPromisifyArgsSymbol = hasSymbols
|
|
2676
|
+
var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
|
|
2677
|
+
var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
|
|
2939
2678
|
|
|
2940
|
-
var implementation
|
|
2679
|
+
var implementation = function promisify(orig) {
|
|
2941
2680
|
if (typeof orig !== 'function') {
|
|
2942
2681
|
var error = new TypeError('The "original" argument must be of type function');
|
|
2943
2682
|
error.name = 'TypeError [ERR_INVALID_ARG_TYPE]';
|
|
@@ -2945,7 +2684,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2945
2684
|
throw error;
|
|
2946
2685
|
}
|
|
2947
2686
|
|
|
2948
|
-
if (hasSymbols
|
|
2687
|
+
if (hasSymbols && orig[kCustomPromisifiedSymbol]) {
|
|
2949
2688
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2950
2689
|
if (typeof customFunction !== 'function') {
|
|
2951
2690
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -2967,7 +2706,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2967
2706
|
var args = $slice(arguments);
|
|
2968
2707
|
var self = this; // eslint-disable-line no-invalid-this
|
|
2969
2708
|
return new Promise(function (resolve, reject) {
|
|
2970
|
-
orig.apply(self, $concat
|
|
2709
|
+
orig.apply(self, $concat(args, function (err) {
|
|
2971
2710
|
var values = arguments.length > 1 ? $slice(arguments, 1) : [];
|
|
2972
2711
|
if (err) {
|
|
2973
2712
|
reject(err);
|
|
@@ -2997,17 +2736,17 @@ var implementation$3 = function promisify(orig) {
|
|
|
2997
2736
|
|
|
2998
2737
|
var custom = kCustomPromisifiedSymbol;
|
|
2999
2738
|
var customPromisifyArgs = kCustomPromisifyArgsSymbol;
|
|
3000
|
-
implementation
|
|
3001
|
-
implementation
|
|
2739
|
+
implementation.custom = custom;
|
|
2740
|
+
implementation.customPromisifyArgs = customPromisifyArgs;
|
|
3002
2741
|
|
|
3003
2742
|
var polyfill$1 = function getPolyfill() {
|
|
3004
2743
|
if (typeof util.util.promisify === 'function') {
|
|
3005
2744
|
return util.util.promisify;
|
|
3006
2745
|
}
|
|
3007
|
-
return implementation
|
|
2746
|
+
return implementation;
|
|
3008
2747
|
};
|
|
3009
2748
|
|
|
3010
|
-
var shim
|
|
2749
|
+
var shim = function shimUtilPromisify() {
|
|
3011
2750
|
var polyfill = polyfill$1();
|
|
3012
2751
|
if (polyfill !== util.util.promisify) {
|
|
3013
2752
|
Object.defineProperty(util.util, 'promisify', {
|
|
@@ -3020,20 +2759,20 @@ var shim$1 = function shimUtilPromisify() {
|
|
|
3020
2759
|
return polyfill;
|
|
3021
2760
|
};
|
|
3022
2761
|
|
|
3023
|
-
var polyfill
|
|
2762
|
+
var polyfill = polyfill$1();
|
|
3024
2763
|
|
|
3025
2764
|
|
|
3026
2765
|
/* eslint-disable no-unused-vars */
|
|
3027
2766
|
var boundPromisify = function promisify(orig) {
|
|
3028
2767
|
/* eslint-enable no-unused-vars */
|
|
3029
|
-
return polyfill
|
|
2768
|
+
return polyfill.apply(util.util, arguments);
|
|
3030
2769
|
};
|
|
3031
2770
|
defineProperties_1(boundPromisify, {
|
|
3032
|
-
custom: polyfill
|
|
3033
|
-
customPromisifyArgs: polyfill
|
|
2771
|
+
custom: polyfill.custom,
|
|
2772
|
+
customPromisifyArgs: polyfill.customPromisifyArgs,
|
|
3034
2773
|
getPolyfill: polyfill$1,
|
|
3035
|
-
implementation: implementation
|
|
3036
|
-
shim: shim
|
|
2774
|
+
implementation: implementation,
|
|
2775
|
+
shim: shim
|
|
3037
2776
|
});
|
|
3038
2777
|
|
|
3039
2778
|
var util_promisify = boundPromisify;
|
|
@@ -3074,334 +2813,16 @@ function connect() {
|
|
|
3074
2813
|
|
|
3075
2814
|
var db = connect;
|
|
3076
2815
|
|
|
3077
|
-
var
|
|
3078
|
-
(function() {
|
|
3079
|
-
var base64map
|
|
3080
|
-
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
3081
|
-
|
|
3082
|
-
crypt = {
|
|
3083
|
-
// Bit-wise rotation left
|
|
3084
|
-
rotl: function(n, b) {
|
|
3085
|
-
return (n << b) | (n >>> (32 - b));
|
|
3086
|
-
},
|
|
3087
|
-
|
|
3088
|
-
// Bit-wise rotation right
|
|
3089
|
-
rotr: function(n, b) {
|
|
3090
|
-
return (n << (32 - b)) | (n >>> b);
|
|
3091
|
-
},
|
|
3092
|
-
|
|
3093
|
-
// Swap big-endian to little-endian and vice versa
|
|
3094
|
-
endian: function(n) {
|
|
3095
|
-
// If number given, swap endian
|
|
3096
|
-
if (n.constructor == Number) {
|
|
3097
|
-
return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
|
|
3098
|
-
}
|
|
3099
|
-
|
|
3100
|
-
// Else, assume array and swap all items
|
|
3101
|
-
for (var i = 0; i < n.length; i++)
|
|
3102
|
-
n[i] = crypt.endian(n[i]);
|
|
3103
|
-
return n;
|
|
3104
|
-
},
|
|
3105
|
-
|
|
3106
|
-
// Generate an array of any length of random bytes
|
|
3107
|
-
randomBytes: function(n) {
|
|
3108
|
-
for (var bytes = []; n > 0; n--)
|
|
3109
|
-
bytes.push(Math.floor(Math.random() * 256));
|
|
3110
|
-
return bytes;
|
|
3111
|
-
},
|
|
3112
|
-
|
|
3113
|
-
// Convert a byte array to big-endian 32-bit words
|
|
3114
|
-
bytesToWords: function(bytes) {
|
|
3115
|
-
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
3116
|
-
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
3117
|
-
return words;
|
|
3118
|
-
},
|
|
3119
|
-
|
|
3120
|
-
// Convert big-endian 32-bit words to a byte array
|
|
3121
|
-
wordsToBytes: function(words) {
|
|
3122
|
-
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
3123
|
-
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
3124
|
-
return bytes;
|
|
3125
|
-
},
|
|
3126
|
-
|
|
3127
|
-
// Convert a byte array to a hex string
|
|
3128
|
-
bytesToHex: function(bytes) {
|
|
3129
|
-
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
3130
|
-
hex.push((bytes[i] >>> 4).toString(16));
|
|
3131
|
-
hex.push((bytes[i] & 0xF).toString(16));
|
|
3132
|
-
}
|
|
3133
|
-
return hex.join('');
|
|
3134
|
-
},
|
|
3135
|
-
|
|
3136
|
-
// Convert a hex string to a byte array
|
|
3137
|
-
hexToBytes: function(hex) {
|
|
3138
|
-
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
3139
|
-
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
3140
|
-
return bytes;
|
|
3141
|
-
},
|
|
3142
|
-
|
|
3143
|
-
// Convert a byte array to a base-64 string
|
|
3144
|
-
bytesToBase64: function(bytes) {
|
|
3145
|
-
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
3146
|
-
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
3147
|
-
for (var j = 0; j < 4; j++)
|
|
3148
|
-
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
3149
|
-
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
3150
|
-
else
|
|
3151
|
-
base64.push('=');
|
|
3152
|
-
}
|
|
3153
|
-
return base64.join('');
|
|
3154
|
-
},
|
|
3155
|
-
|
|
3156
|
-
// Convert a base-64 string to a byte array
|
|
3157
|
-
base64ToBytes: function(base64) {
|
|
3158
|
-
// Remove non-base-64 characters
|
|
3159
|
-
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
3160
|
-
|
|
3161
|
-
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
3162
|
-
imod4 = ++i % 4) {
|
|
3163
|
-
if (imod4 == 0) continue;
|
|
3164
|
-
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
3165
|
-
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
3166
|
-
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
3167
|
-
}
|
|
3168
|
-
return bytes;
|
|
3169
|
-
}
|
|
3170
|
-
};
|
|
3171
|
-
|
|
3172
|
-
module.exports = crypt;
|
|
3173
|
-
})();
|
|
3174
|
-
});
|
|
3175
|
-
|
|
3176
|
-
var charenc = {
|
|
3177
|
-
// UTF-8 encoding
|
|
3178
|
-
utf8: {
|
|
3179
|
-
// Convert a string to a byte array
|
|
3180
|
-
stringToBytes: function(str) {
|
|
3181
|
-
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
3182
|
-
},
|
|
3183
|
-
|
|
3184
|
-
// Convert a byte array to a string
|
|
3185
|
-
bytesToString: function(bytes) {
|
|
3186
|
-
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
3187
|
-
}
|
|
3188
|
-
},
|
|
3189
|
-
|
|
3190
|
-
// Binary encoding
|
|
3191
|
-
bin: {
|
|
3192
|
-
// Convert a string to a byte array
|
|
3193
|
-
stringToBytes: function(str) {
|
|
3194
|
-
for (var bytes = [], i = 0; i < str.length; i++)
|
|
3195
|
-
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
3196
|
-
return bytes;
|
|
3197
|
-
},
|
|
3198
|
-
|
|
3199
|
-
// Convert a byte array to a string
|
|
3200
|
-
bytesToString: function(bytes) {
|
|
3201
|
-
for (var str = [], i = 0; i < bytes.length; i++)
|
|
3202
|
-
str.push(String.fromCharCode(bytes[i]));
|
|
3203
|
-
return str.join('');
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
};
|
|
3207
|
-
|
|
3208
|
-
var charenc_1 = charenc;
|
|
3209
|
-
|
|
3210
|
-
/*!
|
|
3211
|
-
* Determine if an object is a Buffer
|
|
3212
|
-
*
|
|
3213
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
3214
|
-
* @license MIT
|
|
3215
|
-
*/
|
|
3216
|
-
|
|
3217
|
-
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
3218
|
-
// Object.prototype.constructor. Remove this eventually
|
|
3219
|
-
var isBuffer_1 = function (obj) {
|
|
3220
|
-
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
3221
|
-
};
|
|
3222
|
-
|
|
3223
|
-
function isBuffer (obj) {
|
|
3224
|
-
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
// For Node v0.10 support. Remove this eventually.
|
|
3228
|
-
function isSlowBuffer (obj) {
|
|
3229
|
-
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
|
|
3230
|
-
}
|
|
3231
|
-
|
|
3232
|
-
var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
3233
|
-
(function(){
|
|
3234
|
-
var crypt$1 = crypt,
|
|
3235
|
-
utf8 = charenc_1.utf8,
|
|
3236
|
-
isBuffer = isBuffer_1,
|
|
3237
|
-
bin = charenc_1.bin,
|
|
3238
|
-
|
|
3239
|
-
// The core
|
|
3240
|
-
md5 = function (message, options) {
|
|
3241
|
-
// Convert to byte array
|
|
3242
|
-
if (message.constructor == String)
|
|
3243
|
-
if (options && options.encoding === 'binary')
|
|
3244
|
-
message = bin.stringToBytes(message);
|
|
3245
|
-
else
|
|
3246
|
-
message = utf8.stringToBytes(message);
|
|
3247
|
-
else if (isBuffer(message))
|
|
3248
|
-
message = Array.prototype.slice.call(message, 0);
|
|
3249
|
-
else if (!Array.isArray(message) && message.constructor !== Uint8Array)
|
|
3250
|
-
message = message.toString();
|
|
3251
|
-
// else, assume byte array already
|
|
3252
|
-
|
|
3253
|
-
var m = crypt$1.bytesToWords(message),
|
|
3254
|
-
l = message.length * 8,
|
|
3255
|
-
a = 1732584193,
|
|
3256
|
-
b = -271733879,
|
|
3257
|
-
c = -1732584194,
|
|
3258
|
-
d = 271733878;
|
|
3259
|
-
|
|
3260
|
-
// Swap endian
|
|
3261
|
-
for (var i = 0; i < m.length; i++) {
|
|
3262
|
-
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
|
3263
|
-
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
|
3264
|
-
}
|
|
3265
|
-
|
|
3266
|
-
// Padding
|
|
3267
|
-
m[l >>> 5] |= 0x80 << (l % 32);
|
|
3268
|
-
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
|
3269
|
-
|
|
3270
|
-
// Method shortcuts
|
|
3271
|
-
var FF = md5._ff,
|
|
3272
|
-
GG = md5._gg,
|
|
3273
|
-
HH = md5._hh,
|
|
3274
|
-
II = md5._ii;
|
|
3275
|
-
|
|
3276
|
-
for (var i = 0; i < m.length; i += 16) {
|
|
3277
|
-
|
|
3278
|
-
var aa = a,
|
|
3279
|
-
bb = b,
|
|
3280
|
-
cc = c,
|
|
3281
|
-
dd = d;
|
|
3282
|
-
|
|
3283
|
-
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
|
3284
|
-
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
|
3285
|
-
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
|
3286
|
-
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
|
3287
|
-
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
|
3288
|
-
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
|
3289
|
-
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
|
3290
|
-
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
|
3291
|
-
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
|
3292
|
-
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
|
3293
|
-
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
|
3294
|
-
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
|
3295
|
-
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
|
3296
|
-
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
|
3297
|
-
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
|
3298
|
-
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
|
3299
|
-
|
|
3300
|
-
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
|
3301
|
-
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
|
3302
|
-
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
|
3303
|
-
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
|
3304
|
-
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
|
3305
|
-
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
|
3306
|
-
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
|
3307
|
-
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
|
3308
|
-
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
|
3309
|
-
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
|
3310
|
-
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
|
3311
|
-
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
|
3312
|
-
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
|
3313
|
-
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
|
3314
|
-
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
|
3315
|
-
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
|
3316
|
-
|
|
3317
|
-
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
|
3318
|
-
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
|
3319
|
-
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
|
3320
|
-
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
|
3321
|
-
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
|
3322
|
-
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
|
3323
|
-
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
|
3324
|
-
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
|
3325
|
-
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
|
3326
|
-
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
|
3327
|
-
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
|
3328
|
-
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
|
3329
|
-
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
|
3330
|
-
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
|
3331
|
-
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
|
3332
|
-
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
|
3333
|
-
|
|
3334
|
-
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
|
3335
|
-
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
|
3336
|
-
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
|
3337
|
-
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
|
3338
|
-
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
|
3339
|
-
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
|
3340
|
-
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
|
3341
|
-
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
|
3342
|
-
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
|
3343
|
-
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
|
3344
|
-
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
|
3345
|
-
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
|
3346
|
-
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
|
3347
|
-
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
|
3348
|
-
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
|
3349
|
-
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
|
3350
|
-
|
|
3351
|
-
a = (a + aa) >>> 0;
|
|
3352
|
-
b = (b + bb) >>> 0;
|
|
3353
|
-
c = (c + cc) >>> 0;
|
|
3354
|
-
d = (d + dd) >>> 0;
|
|
3355
|
-
}
|
|
3356
|
-
|
|
3357
|
-
return crypt$1.endian([a, b, c, d]);
|
|
3358
|
-
};
|
|
3359
|
-
|
|
3360
|
-
// Auxiliary functions
|
|
3361
|
-
md5._ff = function (a, b, c, d, x, s, t) {
|
|
3362
|
-
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
|
3363
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
3364
|
-
};
|
|
3365
|
-
md5._gg = function (a, b, c, d, x, s, t) {
|
|
3366
|
-
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
|
3367
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
3368
|
-
};
|
|
3369
|
-
md5._hh = function (a, b, c, d, x, s, t) {
|
|
3370
|
-
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
|
3371
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
3372
|
-
};
|
|
3373
|
-
md5._ii = function (a, b, c, d, x, s, t) {
|
|
3374
|
-
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
|
3375
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
3376
|
-
};
|
|
3377
|
-
|
|
3378
|
-
// Package private blocksize
|
|
3379
|
-
md5._blocksize = 16;
|
|
3380
|
-
md5._digestsize = 16;
|
|
3381
|
-
|
|
3382
|
-
module.exports = function (message, options) {
|
|
3383
|
-
if (message === undefined || message === null)
|
|
3384
|
-
throw new Error('Illegal argument ' + message);
|
|
3385
|
-
|
|
3386
|
-
var digestbytes = crypt$1.wordsToBytes(md5(message, options));
|
|
3387
|
-
return options && options.asBytes ? digestbytes :
|
|
3388
|
-
options && options.asString ? bin.bytesToString(digestbytes) :
|
|
3389
|
-
crypt$1.bytesToHex(digestbytes);
|
|
3390
|
-
};
|
|
3391
|
-
|
|
3392
|
-
})();
|
|
3393
|
-
});
|
|
3394
|
-
|
|
3395
|
-
var _this$3 = undefined;
|
|
2816
|
+
var _this$1 = undefined;
|
|
3396
2817
|
|
|
3397
|
-
var config = {
|
|
2818
|
+
var config$1 = {
|
|
3398
2819
|
host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
|
|
3399
2820
|
user: 'nasp',
|
|
3400
2821
|
password: 'uRNkF9SkfXQs6AKK',
|
|
3401
2822
|
database: 'user'
|
|
3402
2823
|
};
|
|
3403
2824
|
|
|
3404
|
-
var findUser = function () {
|
|
2825
|
+
var findUser$1 = function () {
|
|
3405
2826
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(email) {
|
|
3406
2827
|
var password = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
3407
2828
|
var db$1, query, res, user, hash, passwordsMatch, user_shared, occupation_id;
|
|
@@ -3413,7 +2834,7 @@ var findUser = function () {
|
|
|
3413
2834
|
_context.prev = 1;
|
|
3414
2835
|
|
|
3415
2836
|
|
|
3416
|
-
db$1 = db(config);
|
|
2837
|
+
db$1 = db(config$1);
|
|
3417
2838
|
|
|
3418
2839
|
query = '\n select * \n from user \n where trim(lower(email)) = ?\n ';
|
|
3419
2840
|
_context.next = 6;
|
|
@@ -3436,7 +2857,7 @@ var findUser = function () {
|
|
|
3436
2857
|
break;
|
|
3437
2858
|
}
|
|
3438
2859
|
|
|
3439
|
-
hash = md5(password);
|
|
2860
|
+
hash = md5.md5(password);
|
|
3440
2861
|
passwordsMatch = hash === user.password;
|
|
3441
2862
|
|
|
3442
2863
|
if (passwordsMatch) {
|
|
@@ -3509,7 +2930,7 @@ var findUser = function () {
|
|
|
3509
2930
|
};
|
|
3510
2931
|
}();
|
|
3511
2932
|
|
|
3512
|
-
var updateUser = function () {
|
|
2933
|
+
var updateUser$1 = function () {
|
|
3513
2934
|
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(data) {
|
|
3514
2935
|
var db$1, query, res, hash, columns, i, column, occupation_name;
|
|
3515
2936
|
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
@@ -3522,7 +2943,7 @@ var updateUser = function () {
|
|
|
3522
2943
|
|
|
3523
2944
|
validateUserData(data);
|
|
3524
2945
|
|
|
3525
|
-
db$1 = db(config);
|
|
2946
|
+
db$1 = db(config$1);
|
|
3526
2947
|
|
|
3527
2948
|
_context2.next = 6;
|
|
3528
2949
|
return db$1.beginTransaction();
|
|
@@ -3560,7 +2981,7 @@ var updateUser = function () {
|
|
|
3560
2981
|
break;
|
|
3561
2982
|
}
|
|
3562
2983
|
|
|
3563
|
-
hash = md5(data.password);
|
|
2984
|
+
hash = md5.md5(data.password);
|
|
3564
2985
|
|
|
3565
2986
|
query = '\n update user \n set password = ?\n where user_id = ?\n ';
|
|
3566
2987
|
_context2.next = 20;
|
|
@@ -3629,7 +3050,7 @@ var updateUser = function () {
|
|
|
3629
3050
|
|
|
3630
3051
|
return _context2.abrupt('return', {
|
|
3631
3052
|
error: '',
|
|
3632
|
-
user: findUser(data.email)
|
|
3053
|
+
user: findUser$1(data.email)
|
|
3633
3054
|
});
|
|
3634
3055
|
|
|
3635
3056
|
case 45:
|
|
@@ -3741,7 +3162,7 @@ var getOccupationNameById = function () {
|
|
|
3741
3162
|
return _context3.stop();
|
|
3742
3163
|
}
|
|
3743
3164
|
}
|
|
3744
|
-
}, _callee3, _this$
|
|
3165
|
+
}, _callee3, _this$1);
|
|
3745
3166
|
}));
|
|
3746
3167
|
|
|
3747
3168
|
return function getOccupationNameById(_x5, _x6) {
|
|
@@ -3749,7 +3170,7 @@ var getOccupationNameById = function () {
|
|
|
3749
3170
|
};
|
|
3750
3171
|
}();
|
|
3751
3172
|
|
|
3752
|
-
var createUser = function () {
|
|
3173
|
+
var createUser$1 = function () {
|
|
3753
3174
|
var _ref4 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee4(data) {
|
|
3754
3175
|
var db$1, query, res, hash, columns, i, column, user_id, occupation_name;
|
|
3755
3176
|
return asyncToGenerator.regenerator.wrap(function _callee4$(_context4) {
|
|
@@ -3762,7 +3183,7 @@ var createUser = function () {
|
|
|
3762
3183
|
|
|
3763
3184
|
validateUserData(data, true);
|
|
3764
3185
|
|
|
3765
|
-
db$1 = db(config);
|
|
3186
|
+
db$1 = db(config$1);
|
|
3766
3187
|
|
|
3767
3188
|
_context4.next = 6;
|
|
3768
3189
|
return db$1.beginTransaction();
|
|
@@ -3787,7 +3208,7 @@ var createUser = function () {
|
|
|
3787
3208
|
throw new Error('User already exists');
|
|
3788
3209
|
|
|
3789
3210
|
case 13:
|
|
3790
|
-
hash = md5(data.password);
|
|
3211
|
+
hash = md5.md5(data.password);
|
|
3791
3212
|
|
|
3792
3213
|
// basic user info
|
|
3793
3214
|
|
|
@@ -3858,7 +3279,7 @@ var createUser = function () {
|
|
|
3858
3279
|
case 39:
|
|
3859
3280
|
return _context4.abrupt('return', {
|
|
3860
3281
|
error: '',
|
|
3861
|
-
user: findUser(data.email)
|
|
3282
|
+
user: findUser$1(data.email)
|
|
3862
3283
|
});
|
|
3863
3284
|
|
|
3864
3285
|
case 42:
|
|
@@ -3896,7 +3317,7 @@ var createUser = function () {
|
|
|
3896
3317
|
};
|
|
3897
3318
|
}();
|
|
3898
3319
|
|
|
3899
|
-
var createUser
|
|
3320
|
+
var createUser = function () {
|
|
3900
3321
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(data) {
|
|
3901
3322
|
var res;
|
|
3902
3323
|
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
@@ -3904,7 +3325,7 @@ var createUser$1 = function () {
|
|
|
3904
3325
|
switch (_context.prev = _context.next) {
|
|
3905
3326
|
case 0:
|
|
3906
3327
|
_context.next = 2;
|
|
3907
|
-
return createUser(data);
|
|
3328
|
+
return createUser$1(data);
|
|
3908
3329
|
|
|
3909
3330
|
case 2:
|
|
3910
3331
|
res = _context.sent;
|
|
@@ -3932,7 +3353,7 @@ var createUser$1 = function () {
|
|
|
3932
3353
|
};
|
|
3933
3354
|
}();
|
|
3934
3355
|
|
|
3935
|
-
var updateUser
|
|
3356
|
+
var updateUser = function () {
|
|
3936
3357
|
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(data) {
|
|
3937
3358
|
var res;
|
|
3938
3359
|
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
@@ -3940,7 +3361,7 @@ var updateUser$1 = function () {
|
|
|
3940
3361
|
switch (_context2.prev = _context2.next) {
|
|
3941
3362
|
case 0:
|
|
3942
3363
|
_context2.next = 2;
|
|
3943
|
-
return updateUser(data);
|
|
3364
|
+
return updateUser$1(data);
|
|
3944
3365
|
|
|
3945
3366
|
case 2:
|
|
3946
3367
|
res = _context2.sent;
|
|
@@ -3968,7 +3389,7 @@ var updateUser$1 = function () {
|
|
|
3968
3389
|
};
|
|
3969
3390
|
}();
|
|
3970
3391
|
|
|
3971
|
-
var findUser
|
|
3392
|
+
var findUser = function () {
|
|
3972
3393
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(_ref4) {
|
|
3973
3394
|
var email = _ref4.email,
|
|
3974
3395
|
password = _ref4.password;
|
|
@@ -3978,7 +3399,7 @@ var findUser$1 = function () {
|
|
|
3978
3399
|
switch (_context3.prev = _context3.next) {
|
|
3979
3400
|
case 0:
|
|
3980
3401
|
_context3.next = 2;
|
|
3981
|
-
return findUser(email, password);
|
|
3402
|
+
return findUser$1(email, password);
|
|
3982
3403
|
|
|
3983
3404
|
case 2:
|
|
3984
3405
|
res = _context3.sent;
|
|
@@ -4008,9 +3429,9 @@ var findUser$1 = function () {
|
|
|
4008
3429
|
|
|
4009
3430
|
var user = /*#__PURE__*/Object.freeze({
|
|
4010
3431
|
__proto__: null,
|
|
4011
|
-
createUser: createUser
|
|
4012
|
-
updateUser: updateUser
|
|
4013
|
-
findUser: findUser
|
|
3432
|
+
createUser: createUser,
|
|
3433
|
+
updateUser: updateUser,
|
|
3434
|
+
findUser: findUser
|
|
4014
3435
|
});
|
|
4015
3436
|
|
|
4016
3437
|
var localStrategy = new Local__default['default'].Strategy({
|
|
@@ -4018,7 +3439,7 @@ var localStrategy = new Local__default['default'].Strategy({
|
|
|
4018
3439
|
passwordField: 'password'
|
|
4019
3440
|
}, function (email, password, done) {
|
|
4020
3441
|
|
|
4021
|
-
findUser
|
|
3442
|
+
findUser({ email: email, password: password }).then(function (user) {
|
|
4022
3443
|
done(null, user);
|
|
4023
3444
|
}).catch(function (error) {
|
|
4024
3445
|
done(error);
|
|
@@ -4030,9 +3451,9 @@ var passportLocal = /*#__PURE__*/Object.freeze({
|
|
|
4030
3451
|
localStrategy: localStrategy
|
|
4031
3452
|
});
|
|
4032
3453
|
|
|
4033
|
-
var _this
|
|
3454
|
+
var _this = undefined;
|
|
4034
3455
|
|
|
4035
|
-
var config
|
|
3456
|
+
var config = {
|
|
4036
3457
|
host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
|
|
4037
3458
|
user: 'nasp',
|
|
4038
3459
|
password: 'uRNkF9SkfXQs6AKK',
|
|
@@ -4046,7 +3467,7 @@ var getOccupation = function () {
|
|
|
4046
3467
|
while (1) {
|
|
4047
3468
|
switch (_context.prev = _context.next) {
|
|
4048
3469
|
case 0:
|
|
4049
|
-
db$1 = db(config
|
|
3470
|
+
db$1 = db(config);
|
|
4050
3471
|
query = '\n select name as label, id as value\n from occupation\n where type = ?\n ';
|
|
4051
3472
|
_context.next = 4;
|
|
4052
3473
|
return db$1.query(query, [type]);
|
|
@@ -4064,7 +3485,7 @@ var getOccupation = function () {
|
|
|
4064
3485
|
return _context.stop();
|
|
4065
3486
|
}
|
|
4066
3487
|
}
|
|
4067
|
-
}, _callee, _this
|
|
3488
|
+
}, _callee, _this);
|
|
4068
3489
|
}));
|
|
4069
3490
|
|
|
4070
3491
|
return function getOccupation(_x) {
|
|
@@ -4079,7 +3500,7 @@ var getFieldsAndOptions = function () {
|
|
|
4079
3500
|
while (1) {
|
|
4080
3501
|
switch (_context2.prev = _context2.next) {
|
|
4081
3502
|
case 0:
|
|
4082
|
-
db$1 = db(config
|
|
3503
|
+
db$1 = db(config);
|
|
4083
3504
|
query = '\n select * \n from field\n where occupation_id = ?\n order by sorting\n ';
|
|
4084
3505
|
_context2.next = 4;
|
|
4085
3506
|
return db$1.query(query, [occupation]);
|
|
@@ -4127,7 +3548,7 @@ var getFieldsAndOptions = function () {
|
|
|
4127
3548
|
return _context2.stop();
|
|
4128
3549
|
}
|
|
4129
3550
|
}
|
|
4130
|
-
}, _callee2, _this
|
|
3551
|
+
}, _callee2, _this);
|
|
4131
3552
|
}));
|
|
4132
3553
|
|
|
4133
3554
|
return function getFieldsAndOptions(_x2) {
|
|
@@ -4198,8 +3619,8 @@ var ProcessData = (function () {
|
|
|
4198
3619
|
})();
|
|
4199
3620
|
|
|
4200
3621
|
var LoginForm_1 = LoginForm;
|
|
4201
|
-
var SignupForm_1 = SignupForm;
|
|
4202
|
-
var ProfileForm_1 = SignupForm
|
|
3622
|
+
var SignupForm_1 = SignupForm$1;
|
|
3623
|
+
var ProfileForm_1 = SignupForm;
|
|
4203
3624
|
var AuthCookies_1 = authCookies;
|
|
4204
3625
|
var AuthHooks_1 = hooks;
|
|
4205
3626
|
var Iron_1 = iron;
|