@mjhls/mjh-framework 1.0.588 → 1.0.589
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 +172 -172
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +7 -8
- package/dist/cjs/AD300x250x600.js +7 -8
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +14 -15
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-fdbd80ea.js → ADInfeed-17a378db.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +10 -11
- package/dist/cjs/ADWebcast.js +10 -11
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-ecd2642c.js → ADlgInfeed-070d911c.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -15
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleQueue.js +112 -115
- package/dist/cjs/Auth.js +593 -430
- package/dist/cjs/{AuthorComponent-5bb8f868.js → AuthorComponent-cb8b8128.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-f942392e.js} +24 -26
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +33 -34
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +81 -85
- package/dist/cjs/DeckQueue.js +69 -73
- package/dist/cjs/{Dfp-a06d722a.js → Dfp-fbe32b96.js} +20 -22
- package/dist/cjs/EventsDeck.js +106 -113
- package/dist/cjs/ExternalResources.js +41 -42
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +33 -34
- package/dist/cjs/GridContent.js +145 -149
- package/dist/cjs/GridHero.js +34 -35
- package/dist/cjs/GroupDeck.js +37 -38
- package/dist/cjs/HamMagazine.js +113 -118
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +10 -11
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/{InscreenSensor-1f9f7db4.js → InscreenSensor-3aec8492.js} +7 -8
- package/dist/cjs/IssueContentDeck.js +64 -69
- package/dist/cjs/IssueDeck.js +59 -64
- package/dist/cjs/IssueLanding.js +46 -47
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +59 -60
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +147 -155
- package/dist/cjs/NavNative.js +103 -111
- package/dist/cjs/NavNormal.js +36 -41
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +58 -59
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +69 -1267
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PublicationDeck.js +58 -63
- package/dist/cjs/PublicationLanding.js +81 -85
- package/dist/cjs/QueueDeckExpanded.js +217 -217
- package/dist/cjs/RelatedContent.js +46 -47
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialNavFooter-d9ab4d17.js → SocialNavFooter-9a07520f.js} +17 -18
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TemplateNormal.js +35 -36
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +20 -21
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +37 -38
- package/dist/cjs/View.js +161 -166
- package/dist/cjs/YahooHero.js +29 -30
- package/dist/cjs/YoutubeGroup.js +45 -46
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -355
- package/dist/cjs/getSerializers.js +271 -270
- package/dist/cjs/{getTargeting-86e68d62.js → getTargeting-b15993cb.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-44481153.js → index-f7ee1612.js} +8 -10
- package/dist/cjs/{index-8a3fb0bc.js → index-fa0fb52c.js} +10 -13
- package/dist/cjs/{index.es-f3e47207.js → index.es-ab3f2690.js} +11 -28
- package/dist/cjs/{index.esm-d02b6c3d.js → index.esm-0e5c6a9e.js} +3 -2
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-55da9104.js → index.esm-89fabc47.js} +6 -3
- package/dist/cjs/{index.esm-99553d28.js → index.esm-fbd1f7e9.js} +15 -6
- package/dist/cjs/index.js +33 -32
- package/dist/cjs/{inherits-4a2f1cc3.js → inherits-14962339.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-c50facd7.js → main-bc4db521.js} +43 -48
- package/dist/cjs/{moment-ca3bd9fb.js → moment-66a6a284.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-cd0d9d3b.js} +11 -13
- package/dist/cjs/{typeof-583cdc4b.js → typeof-1869832c.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +5 -5
- package/dist/esm/AD300x250x600.js +5 -5
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +12 -12
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-ed104a2b.js → ADInfeed-c7dba95f.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +8 -8
- package/dist/esm/ADWebcast.js +8 -8
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-dfde985e.js → ADlgInfeed-8bfd6d58.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleQueue.js +97 -97
- package/dist/esm/Auth.js +578 -411
- package/dist/esm/{AuthorComponent-f67cb027.js → AuthorComponent-158226c9.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-a614acdf.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +61 -61
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-0557840a.js → Dfp-ae9336e2.js} +10 -10
- package/dist/esm/EventsDeck.js +64 -64
- package/dist/esm/ExternalResources.js +35 -35
- package/dist/esm/Feature.js +16 -16
- package/dist/esm/ForbesHero.js +27 -27
- package/dist/esm/GridContent.js +106 -106
- package/dist/esm/GridHero.js +28 -28
- package/dist/esm/GroupDeck.js +33 -33
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/{InscreenSensor-3e1fe82a.js → InscreenSensor-280b2b10.js} +5 -5
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +44 -44
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +53 -53
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +78 -78
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +14 -13
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +65 -1261
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +34 -34
- package/dist/esm/PublicationLanding.js +61 -61
- package/dist/esm/QueueDeckExpanded.js +197 -197
- package/dist/esm/RelatedContent.js +42 -42
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialNavFooter-1a531144.js → SocialNavFooter-4fb16720.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TemplateNormal.js +29 -29
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +32 -32
- package/dist/esm/View.js +140 -140
- package/dist/esm/YahooHero.js +24 -24
- package/dist/esm/YoutubeGroup.js +36 -36
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +6 -355
- package/dist/esm/getSerializers.js +228 -221
- package/dist/esm/{getTargeting-1f2c61e3.js → getTargeting-1a0bd08d.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-c5fd0af5.js → index-5f9f807a.js} +4 -4
- package/dist/esm/{index-1819118a.js → index-93ec3c59.js} +3 -3
- package/dist/esm/{index-fa2ffe86.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-c6222053.js → index.es-938a3a58.js} +9 -25
- package/dist/esm/{index.esm-cc28490f.js → index.esm-16536e81.js} +3 -2
- package/dist/esm/{index.esm-116f3274.js → index.esm-4b1d94b7.js} +15 -6
- package/dist/esm/{index.esm-16e9450c.js → index.esm-9a4c8813.js} +6 -3
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/index.js +28 -27
- package/dist/esm/{inherits-2758cc14.js → inherits-b8e4c697.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-b722e2e2.js → main-7255814e.js} +44 -48
- package/dist/esm/{moment-b6f49411.js → moment-12415288.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{typeof-7e72fee0.js → typeof-5f046efd.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
package/dist/esm/Auth.js
CHANGED
|
@@ -6,7 +6,7 @@ import './_iter-detect-6e099a34.js';
|
|
|
6
6
|
import './_object-pie-33c40e79.js';
|
|
7
7
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
8
8
|
import './web.dom.iterable-46c95e52.js';
|
|
9
|
-
import
|
|
9
|
+
import React__default, { useEffect, useState } from 'react';
|
|
10
10
|
import Router from 'next/router';
|
|
11
11
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-f1e40361.js';
|
|
12
12
|
import { _ as _JSON$stringify } from './stringify-e30bc114.js';
|
|
@@ -14,7 +14,6 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-037
|
|
|
14
14
|
import './_set-species-6f64f1c1.js';
|
|
15
15
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
16
16
|
import { u as util } from './util-7700fc59.js';
|
|
17
|
-
import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
|
|
18
17
|
import useSWR from 'swr';
|
|
19
18
|
import Local from 'passport-local';
|
|
20
19
|
import mysql from 'mysql';
|
|
@@ -56,21 +55,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
59
|
-
return
|
|
58
|
+
return React__default.createElement(
|
|
60
59
|
Form.Group,
|
|
61
60
|
_extends({}, opts, { controlId: name }),
|
|
62
|
-
|
|
61
|
+
React__default.createElement(
|
|
63
62
|
Form.Label,
|
|
64
63
|
{ kye: name + '_label' },
|
|
65
64
|
label,
|
|
66
|
-
required &&
|
|
65
|
+
required && React__default.createElement(
|
|
67
66
|
'span',
|
|
68
67
|
{ style: { color: 'red' } },
|
|
69
68
|
'*'
|
|
70
69
|
)
|
|
71
70
|
),
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
React__default.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
72
|
+
React__default.createElement(
|
|
74
73
|
Form.Control.Feedback,
|
|
75
74
|
{ key: name + '_feedback', type: 'invalid' },
|
|
76
75
|
errors[name]
|
|
@@ -78,28 +77,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
78
77
|
);
|
|
79
78
|
}
|
|
80
79
|
if (type == 'select') {
|
|
81
|
-
return
|
|
80
|
+
return React__default.createElement(
|
|
82
81
|
Form.Group,
|
|
83
82
|
_extends({}, opts, { key: name, controlId: name }),
|
|
84
|
-
|
|
83
|
+
React__default.createElement(
|
|
85
84
|
Form.Label,
|
|
86
85
|
{ key: name + '_' + label },
|
|
87
86
|
label,
|
|
88
|
-
required &&
|
|
87
|
+
required && React__default.createElement(
|
|
89
88
|
'span',
|
|
90
89
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
91
90
|
'*'
|
|
92
91
|
)
|
|
93
92
|
),
|
|
94
|
-
|
|
93
|
+
React__default.createElement(
|
|
95
94
|
Form.Control,
|
|
96
95
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
97
|
-
|
|
96
|
+
React__default.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
98
97
|
options.map(function (option, index) {
|
|
99
98
|
var value = option.value ? option.value : option;
|
|
100
99
|
var label = option.label ? option.label : option;
|
|
101
100
|
var key = name + '_options_' + index;
|
|
102
|
-
return
|
|
101
|
+
return React__default.createElement(
|
|
103
102
|
'option',
|
|
104
103
|
{ key: key, value: value },
|
|
105
104
|
label
|
|
@@ -110,25 +109,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
if (type == 'radio' || type == 'checkbox') {
|
|
113
|
-
return
|
|
112
|
+
return React__default.createElement(
|
|
114
113
|
Form.Group,
|
|
115
114
|
opts,
|
|
116
|
-
|
|
115
|
+
React__default.createElement(
|
|
117
116
|
Form.Label,
|
|
118
117
|
null,
|
|
119
118
|
label,
|
|
120
|
-
required &&
|
|
119
|
+
required && React__default.createElement(
|
|
121
120
|
'span',
|
|
122
121
|
{ style: { color: 'red' } },
|
|
123
122
|
'*'
|
|
124
123
|
)
|
|
125
124
|
),
|
|
126
125
|
options.map(function (option, index) {
|
|
127
|
-
return
|
|
126
|
+
return React__default.createElement(
|
|
128
127
|
Form.Check,
|
|
129
128
|
{ type: type, key: index, required: required },
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
React__default.createElement(Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
|
|
130
|
+
React__default.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
132
131
|
);
|
|
133
132
|
})
|
|
134
133
|
);
|
|
@@ -335,43 +334,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
335
334
|
loading = _useState4[0],
|
|
336
335
|
setLoading = _useState4[1];
|
|
337
336
|
|
|
338
|
-
return
|
|
337
|
+
return React__default.createElement(
|
|
339
338
|
Form,
|
|
340
339
|
{ className: 'login', onSubmit: handleSubmit },
|
|
341
|
-
|
|
340
|
+
React__default.createElement(
|
|
342
341
|
'h1',
|
|
343
342
|
null,
|
|
344
343
|
'Login'
|
|
345
344
|
),
|
|
346
|
-
|
|
345
|
+
React__default.createElement('hr', null),
|
|
347
346
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
348
347
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
React__default.createElement('hr', null),
|
|
349
|
+
React__default.createElement(
|
|
351
350
|
Form.Row,
|
|
352
351
|
null,
|
|
353
|
-
|
|
352
|
+
React__default.createElement(
|
|
354
353
|
Form.Group,
|
|
355
354
|
{ as: Col },
|
|
356
|
-
|
|
355
|
+
React__default.createElement(
|
|
357
356
|
'a',
|
|
358
357
|
{ href: '/auth/signup' },
|
|
359
358
|
'I don\'t have an account'
|
|
360
359
|
)
|
|
361
360
|
),
|
|
362
|
-
|
|
361
|
+
React__default.createElement(
|
|
363
362
|
Form.Group,
|
|
364
363
|
{ as: Col, className: 'text-right' },
|
|
365
|
-
!loading &&
|
|
364
|
+
!loading && React__default.createElement(
|
|
366
365
|
Button,
|
|
367
366
|
{ type: 'submit' },
|
|
368
367
|
'Login'
|
|
369
368
|
),
|
|
370
|
-
loading &&
|
|
369
|
+
loading && React__default.createElement(
|
|
371
370
|
Button,
|
|
372
371
|
{ variant: 'primary', disabled: true },
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
React__default.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
373
|
+
React__default.createElement(
|
|
375
374
|
'span',
|
|
376
375
|
{ className: 'sr-only' },
|
|
377
376
|
'Loading...'
|
|
@@ -379,12 +378,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
379
378
|
)
|
|
380
379
|
)
|
|
381
380
|
),
|
|
382
|
-
errorMsg &&
|
|
381
|
+
errorMsg && React__default.createElement(
|
|
383
382
|
'p',
|
|
384
383
|
{ className: 'error' },
|
|
385
384
|
errorMsg
|
|
386
385
|
),
|
|
387
|
-
|
|
386
|
+
React__default.createElement(
|
|
388
387
|
'style',
|
|
389
388
|
{ jsx: 'true'.toString() },
|
|
390
389
|
'\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -640,29 +639,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
640
639
|
loading = _useState14[0],
|
|
641
640
|
setLoading = _useState14[1];
|
|
642
641
|
|
|
643
|
-
return
|
|
642
|
+
return React__default.createElement(
|
|
644
643
|
Form,
|
|
645
644
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
646
|
-
|
|
645
|
+
React__default.createElement(
|
|
647
646
|
'h1',
|
|
648
647
|
null,
|
|
649
648
|
'Sign Up'
|
|
650
649
|
),
|
|
651
|
-
|
|
650
|
+
React__default.createElement('hr', null),
|
|
652
651
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
653
|
-
|
|
652
|
+
React__default.createElement(
|
|
654
653
|
Form.Row,
|
|
655
654
|
null,
|
|
656
655
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
|
|
657
656
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
|
|
658
657
|
),
|
|
659
|
-
|
|
658
|
+
React__default.createElement(
|
|
660
659
|
Form.Row,
|
|
661
660
|
null,
|
|
662
661
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
|
|
663
662
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
|
|
664
663
|
),
|
|
665
|
-
|
|
664
|
+
React__default.createElement(
|
|
666
665
|
Form.Row,
|
|
667
666
|
null,
|
|
668
667
|
returnFormField({
|
|
@@ -676,7 +675,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
676
675
|
}),
|
|
677
676
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
|
|
678
677
|
),
|
|
679
|
-
|
|
678
|
+
React__default.createElement(
|
|
680
679
|
Form.Row,
|
|
681
680
|
null,
|
|
682
681
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
|
|
@@ -723,38 +722,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
723
722
|
required: true,
|
|
724
723
|
options: [{ label: 'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
725
724
|
}),
|
|
726
|
-
|
|
727
|
-
|
|
725
|
+
React__default.createElement('hr', null),
|
|
726
|
+
React__default.createElement(
|
|
728
727
|
Form.Row,
|
|
729
728
|
null,
|
|
730
|
-
|
|
729
|
+
React__default.createElement(
|
|
731
730
|
Form.Group,
|
|
732
731
|
{ as: Col },
|
|
733
|
-
|
|
732
|
+
React__default.createElement(
|
|
734
733
|
'a',
|
|
735
734
|
{ href: '/auth/login' },
|
|
736
735
|
'I already have an account'
|
|
737
736
|
)
|
|
738
737
|
),
|
|
739
|
-
|
|
738
|
+
React__default.createElement(
|
|
740
739
|
Form.Group,
|
|
741
740
|
{ as: Col, className: 'text-right' },
|
|
742
|
-
!loading &&
|
|
741
|
+
!loading && React__default.createElement(
|
|
743
742
|
Button,
|
|
744
743
|
{ type: 'submit' },
|
|
745
744
|
'Sign Up'
|
|
746
745
|
),
|
|
747
|
-
loading &&
|
|
746
|
+
loading && React__default.createElement(
|
|
748
747
|
Button,
|
|
749
748
|
{ variant: 'primary', disabled: true },
|
|
750
|
-
|
|
749
|
+
React__default.createElement(Spinner, {
|
|
751
750
|
as: 'span',
|
|
752
751
|
animation: 'border',
|
|
753
752
|
role: 'status',
|
|
754
753
|
'aria-hidden': 'true',
|
|
755
754
|
size: 'sm'
|
|
756
755
|
}),
|
|
757
|
-
|
|
756
|
+
React__default.createElement(
|
|
758
757
|
'span',
|
|
759
758
|
{ className: 'sr-only' },
|
|
760
759
|
'Loading...'
|
|
@@ -762,12 +761,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
762
761
|
)
|
|
763
762
|
)
|
|
764
763
|
),
|
|
765
|
-
errorMsg &&
|
|
764
|
+
errorMsg && React__default.createElement(
|
|
766
765
|
'p',
|
|
767
766
|
{ className: 'error' },
|
|
768
767
|
errorMsg
|
|
769
768
|
),
|
|
770
|
-
|
|
769
|
+
React__default.createElement(
|
|
771
770
|
'style',
|
|
772
771
|
{ jsx: 'true'.toString() },
|
|
773
772
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1057,32 +1056,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1057
1056
|
loading = _useState18[0],
|
|
1058
1057
|
setLoading = _useState18[1];
|
|
1059
1058
|
|
|
1060
|
-
return
|
|
1059
|
+
return React__default.createElement(
|
|
1061
1060
|
Form,
|
|
1062
1061
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1063
|
-
|
|
1062
|
+
React__default.createElement(
|
|
1064
1063
|
'h1',
|
|
1065
1064
|
null,
|
|
1066
1065
|
'Profile'
|
|
1067
1066
|
),
|
|
1068
|
-
|
|
1069
|
-
userData ?
|
|
1070
|
-
|
|
1067
|
+
React__default.createElement('hr', null),
|
|
1068
|
+
userData ? React__default.createElement(
|
|
1069
|
+
React__default.Fragment,
|
|
1071
1070
|
null,
|
|
1072
1071
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1073
|
-
|
|
1072
|
+
React__default.createElement(
|
|
1074
1073
|
Form.Row,
|
|
1075
1074
|
null,
|
|
1076
1075
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
|
|
1077
1076
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
|
|
1078
1077
|
),
|
|
1079
|
-
|
|
1078
|
+
React__default.createElement(
|
|
1080
1079
|
Form.Row,
|
|
1081
1080
|
null,
|
|
1082
1081
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
|
|
1083
1082
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
|
|
1084
1083
|
),
|
|
1085
|
-
|
|
1084
|
+
React__default.createElement(
|
|
1086
1085
|
Form.Row,
|
|
1087
1086
|
null,
|
|
1088
1087
|
returnFormField({
|
|
@@ -1097,7 +1096,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1097
1096
|
}),
|
|
1098
1097
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
|
|
1099
1098
|
),
|
|
1100
|
-
|
|
1099
|
+
React__default.createElement(
|
|
1101
1100
|
Form.Row,
|
|
1102
1101
|
null,
|
|
1103
1102
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
|
|
@@ -1147,29 +1146,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1147
1146
|
required: true,
|
|
1148
1147
|
options: [{ label: 'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
1149
1148
|
}),
|
|
1150
|
-
|
|
1151
|
-
|
|
1149
|
+
React__default.createElement('hr', null),
|
|
1150
|
+
React__default.createElement(
|
|
1152
1151
|
Form.Row,
|
|
1153
1152
|
null,
|
|
1154
|
-
|
|
1153
|
+
React__default.createElement(
|
|
1155
1154
|
Form.Group,
|
|
1156
1155
|
{ as: Col },
|
|
1157
|
-
!loading &&
|
|
1156
|
+
!loading && React__default.createElement(
|
|
1158
1157
|
Button,
|
|
1159
1158
|
{ type: 'submit' },
|
|
1160
1159
|
'Update'
|
|
1161
1160
|
),
|
|
1162
|
-
loading &&
|
|
1161
|
+
loading && React__default.createElement(
|
|
1163
1162
|
Button,
|
|
1164
1163
|
{ variant: 'primary', disabled: true },
|
|
1165
|
-
|
|
1164
|
+
React__default.createElement(Spinner, {
|
|
1166
1165
|
as: 'span',
|
|
1167
1166
|
animation: 'border',
|
|
1168
1167
|
role: 'status',
|
|
1169
1168
|
'aria-hidden': 'true',
|
|
1170
1169
|
size: 'sm'
|
|
1171
1170
|
}),
|
|
1172
|
-
|
|
1171
|
+
React__default.createElement(
|
|
1173
1172
|
'span',
|
|
1174
1173
|
{ className: 'sr-only' },
|
|
1175
1174
|
'Loading...'
|
|
@@ -1177,24 +1176,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1177
1176
|
)
|
|
1178
1177
|
)
|
|
1179
1178
|
)
|
|
1180
|
-
) :
|
|
1179
|
+
) : React__default.createElement(Spinner, {
|
|
1181
1180
|
as: 'span',
|
|
1182
1181
|
animation: 'border',
|
|
1183
1182
|
role: 'status',
|
|
1184
1183
|
'aria-hidden': 'true',
|
|
1185
1184
|
size: 'sm'
|
|
1186
1185
|
}),
|
|
1187
|
-
errorMsg &&
|
|
1186
|
+
errorMsg && React__default.createElement(
|
|
1188
1187
|
'p',
|
|
1189
1188
|
{ className: 'error' },
|
|
1190
1189
|
errorMsg
|
|
1191
1190
|
),
|
|
1192
|
-
successMsg &&
|
|
1191
|
+
successMsg && React__default.createElement(
|
|
1193
1192
|
'p',
|
|
1194
1193
|
{ className: 'success' },
|
|
1195
1194
|
successMsg
|
|
1196
1195
|
),
|
|
1197
|
-
|
|
1196
|
+
React__default.createElement(
|
|
1198
1197
|
'style',
|
|
1199
1198
|
{ jsx: 'true'.toString() },
|
|
1200
1199
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1202,6 +1201,207 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1202
1201
|
);
|
|
1203
1202
|
};
|
|
1204
1203
|
|
|
1204
|
+
/*!
|
|
1205
|
+
* cookie
|
|
1206
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1207
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1208
|
+
* MIT Licensed
|
|
1209
|
+
*/
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Module exports.
|
|
1213
|
+
* @public
|
|
1214
|
+
*/
|
|
1215
|
+
|
|
1216
|
+
var parse_1 = parse;
|
|
1217
|
+
var serialize_1 = serialize;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Module variables.
|
|
1221
|
+
* @private
|
|
1222
|
+
*/
|
|
1223
|
+
|
|
1224
|
+
var decode = decodeURIComponent;
|
|
1225
|
+
var encode = encodeURIComponent;
|
|
1226
|
+
var pairSplitRegExp = /; */;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1230
|
+
*
|
|
1231
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1232
|
+
* field-vchar = VCHAR / obs-text
|
|
1233
|
+
* obs-text = %x80-FF
|
|
1234
|
+
*/
|
|
1235
|
+
|
|
1236
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Parse a cookie header.
|
|
1240
|
+
*
|
|
1241
|
+
* Parse the given cookie header string into an object
|
|
1242
|
+
* The object has the various cookies as keys(names) => values
|
|
1243
|
+
*
|
|
1244
|
+
* @param {string} str
|
|
1245
|
+
* @param {object} [options]
|
|
1246
|
+
* @return {object}
|
|
1247
|
+
* @public
|
|
1248
|
+
*/
|
|
1249
|
+
|
|
1250
|
+
function parse(str, options) {
|
|
1251
|
+
if (typeof str !== 'string') {
|
|
1252
|
+
throw new TypeError('argument str must be a string');
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
var obj = {};
|
|
1256
|
+
var opt = options || {};
|
|
1257
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1258
|
+
var dec = opt.decode || decode;
|
|
1259
|
+
|
|
1260
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1261
|
+
var pair = pairs[i];
|
|
1262
|
+
var eq_idx = pair.indexOf('=');
|
|
1263
|
+
|
|
1264
|
+
// skip things that don't look like key=value
|
|
1265
|
+
if (eq_idx < 0) {
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1270
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1271
|
+
|
|
1272
|
+
// quoted values
|
|
1273
|
+
if ('"' == val[0]) {
|
|
1274
|
+
val = val.slice(1, -1);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
// only assign once
|
|
1278
|
+
if (undefined == obj[key]) {
|
|
1279
|
+
obj[key] = tryDecode(val, dec);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
return obj;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Serialize data into a cookie header.
|
|
1288
|
+
*
|
|
1289
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1290
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1291
|
+
*
|
|
1292
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1293
|
+
* => "foo=bar; httpOnly"
|
|
1294
|
+
*
|
|
1295
|
+
* @param {string} name
|
|
1296
|
+
* @param {string} val
|
|
1297
|
+
* @param {object} [options]
|
|
1298
|
+
* @return {string}
|
|
1299
|
+
* @public
|
|
1300
|
+
*/
|
|
1301
|
+
|
|
1302
|
+
function serialize(name, val, options) {
|
|
1303
|
+
var opt = options || {};
|
|
1304
|
+
var enc = opt.encode || encode;
|
|
1305
|
+
|
|
1306
|
+
if (typeof enc !== 'function') {
|
|
1307
|
+
throw new TypeError('option encode is invalid');
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1311
|
+
throw new TypeError('argument name is invalid');
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
var value = enc(val);
|
|
1315
|
+
|
|
1316
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1317
|
+
throw new TypeError('argument val is invalid');
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
var str = name + '=' + value;
|
|
1321
|
+
|
|
1322
|
+
if (null != opt.maxAge) {
|
|
1323
|
+
var maxAge = opt.maxAge - 0;
|
|
1324
|
+
|
|
1325
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1326
|
+
throw new TypeError('option maxAge is invalid')
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
if (opt.domain) {
|
|
1333
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1334
|
+
throw new TypeError('option domain is invalid');
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
str += '; Domain=' + opt.domain;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
if (opt.path) {
|
|
1341
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1342
|
+
throw new TypeError('option path is invalid');
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
str += '; Path=' + opt.path;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
if (opt.expires) {
|
|
1349
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1350
|
+
throw new TypeError('option expires is invalid');
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
if (opt.httpOnly) {
|
|
1357
|
+
str += '; HttpOnly';
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
if (opt.secure) {
|
|
1361
|
+
str += '; Secure';
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
if (opt.sameSite) {
|
|
1365
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1366
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1367
|
+
|
|
1368
|
+
switch (sameSite) {
|
|
1369
|
+
case true:
|
|
1370
|
+
str += '; SameSite=Strict';
|
|
1371
|
+
break;
|
|
1372
|
+
case 'lax':
|
|
1373
|
+
str += '; SameSite=Lax';
|
|
1374
|
+
break;
|
|
1375
|
+
case 'strict':
|
|
1376
|
+
str += '; SameSite=Strict';
|
|
1377
|
+
break;
|
|
1378
|
+
case 'none':
|
|
1379
|
+
str += '; SameSite=None';
|
|
1380
|
+
break;
|
|
1381
|
+
default:
|
|
1382
|
+
throw new TypeError('option sameSite is invalid');
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
return str;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Try decoding a string using a decoding function.
|
|
1391
|
+
*
|
|
1392
|
+
* @param {string} str
|
|
1393
|
+
* @param {function} decode
|
|
1394
|
+
* @private
|
|
1395
|
+
*/
|
|
1396
|
+
|
|
1397
|
+
function tryDecode(str, decode) {
|
|
1398
|
+
try {
|
|
1399
|
+
return decode(str);
|
|
1400
|
+
} catch (e) {
|
|
1401
|
+
return str;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1205
1405
|
var TOKEN_NAME = 'token';
|
|
1206
1406
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1207
1407
|
|
|
@@ -1842,17 +2042,7 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1842
2042
|
if (value != null) {
|
|
1843
2043
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1844
2044
|
var desc = $gOPD(value, parts[i]);
|
|
1845
|
-
|
|
1846
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1847
|
-
}
|
|
1848
|
-
// By convention, when a data property is converted to an accessor
|
|
1849
|
-
// property to emulate a data property that does not suffer from
|
|
1850
|
-
// the override mistake, that accessor's getter is marked with
|
|
1851
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1852
|
-
// uphold the illusion by pretending to see that original data
|
|
1853
|
-
// property, i.e., returning the value rather than the getter
|
|
1854
|
-
// itself.
|
|
1855
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2045
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1856
2046
|
} else {
|
|
1857
2047
|
value = value[parts[i]];
|
|
1858
2048
|
}
|
|
@@ -1861,42 +2051,18 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1861
2051
|
return value;
|
|
1862
2052
|
};
|
|
1863
2053
|
|
|
1864
|
-
var
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
2054
|
+
var $Function = GetIntrinsic('%Function%');
|
|
2055
|
+
var $apply = $Function.apply;
|
|
2056
|
+
var $call = $Function.call;
|
|
1868
2057
|
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1872
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1873
|
-
|
|
1874
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
1875
|
-
|
|
1876
|
-
if ($defineProperty) {
|
|
1877
|
-
try {
|
|
1878
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1879
|
-
} catch (e) {
|
|
1880
|
-
// IE 8 has a broken defineProperty
|
|
1881
|
-
$defineProperty = null;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
module.exports = function callBind() {
|
|
1886
|
-
return $reflectApply(functionBind, $call, arguments);
|
|
2058
|
+
var callBind = function callBind() {
|
|
2059
|
+
return functionBind.apply($call, arguments);
|
|
1887
2060
|
};
|
|
1888
2061
|
|
|
1889
|
-
var
|
|
1890
|
-
return
|
|
2062
|
+
var apply = function applyBind() {
|
|
2063
|
+
return functionBind.apply($apply, arguments);
|
|
1891
2064
|
};
|
|
1892
|
-
|
|
1893
|
-
if ($defineProperty) {
|
|
1894
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1895
|
-
} else {
|
|
1896
|
-
module.exports.apply = applyBind;
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
1899
|
-
var callBind_1 = callBind.apply;
|
|
2065
|
+
callBind.apply = apply;
|
|
1900
2066
|
|
|
1901
2067
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
1902
2068
|
|
|
@@ -1908,16 +2074,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1908
2074
|
return intrinsic;
|
|
1909
2075
|
};
|
|
1910
2076
|
|
|
1911
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
1912
|
-
|
|
1913
|
-
if ($defineProperty) {
|
|
1914
|
-
try {
|
|
1915
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1916
|
-
} catch (e) {
|
|
1917
|
-
// IE 8 has a broken defineProperty
|
|
1918
|
-
$defineProperty = null;
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
2077
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1921
2078
|
|
|
1922
2079
|
|
|
1923
2080
|
|
|
@@ -2020,7 +2177,7 @@ var Type = function Type(x) {
|
|
|
2020
2177
|
}
|
|
2021
2178
|
};
|
|
2022
2179
|
|
|
2023
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-
|
|
2180
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
|
|
2024
2181
|
|
|
2025
2182
|
var Type$1 = function Type$1(x) {
|
|
2026
2183
|
if (typeof x === 'symbol') {
|
|
@@ -2060,277 +2217,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2060
2217
|
return obj;
|
|
2061
2218
|
};
|
|
2062
2219
|
|
|
2063
|
-
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2064
|
-
if ($gOPD$1) {
|
|
2065
|
-
try {
|
|
2066
|
-
$gOPD$1([], 'length');
|
|
2067
|
-
} catch (e) {
|
|
2068
|
-
// IE 8 has a broken gOPD
|
|
2069
|
-
$gOPD$1 = null;
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2074
|
-
|
|
2075
|
-
var $Array = GetIntrinsic('%Array%');
|
|
2076
|
-
|
|
2077
|
-
// eslint-disable-next-line global-require
|
|
2078
|
-
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2079
|
-
|
|
2080
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2081
|
-
|
|
2082
|
-
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2083
|
-
return toStr$4(argument) === '[object Array]';
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2087
|
-
|
|
2088
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2089
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2090
|
-
};
|
|
2091
|
-
|
|
2092
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
2093
|
-
var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
|
|
2094
|
-
var hasOwnProperty;
|
|
2095
|
-
var regexExec;
|
|
2096
|
-
var isRegexMarker;
|
|
2097
|
-
var badStringifier;
|
|
2098
|
-
|
|
2099
|
-
if (hasToStringTag) {
|
|
2100
|
-
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2101
|
-
regexExec = Function.call.bind(RegExp.prototype.exec);
|
|
2102
|
-
isRegexMarker = {};
|
|
2103
|
-
|
|
2104
|
-
var throwRegexMarker = function () {
|
|
2105
|
-
throw isRegexMarker;
|
|
2106
|
-
};
|
|
2107
|
-
badStringifier = {
|
|
2108
|
-
toString: throwRegexMarker,
|
|
2109
|
-
valueOf: throwRegexMarker
|
|
2110
|
-
};
|
|
2111
|
-
|
|
2112
|
-
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
2113
|
-
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
2114
|
-
}
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
var toStr$5 = Object.prototype.toString;
|
|
2118
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2119
|
-
var regexClass = '[object RegExp]';
|
|
2120
|
-
|
|
2121
|
-
var isRegex = hasToStringTag
|
|
2122
|
-
// eslint-disable-next-line consistent-return
|
|
2123
|
-
? function isRegex(value) {
|
|
2124
|
-
if (!value || typeof value !== 'object') {
|
|
2125
|
-
return false;
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2129
|
-
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
|
2130
|
-
if (!hasLastIndexDataProperty) {
|
|
2131
|
-
return false;
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
try {
|
|
2135
|
-
regexExec(value, badStringifier);
|
|
2136
|
-
} catch (e) {
|
|
2137
|
-
return e === isRegexMarker;
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
: function isRegex(value) {
|
|
2141
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2142
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2143
|
-
return false;
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
return toStr$5.call(value) === regexClass;
|
|
2147
|
-
};
|
|
2148
|
-
|
|
2149
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2150
|
-
|
|
2151
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2152
|
-
|
|
2153
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2160
|
-
|
|
2161
|
-
var IsRegExp = function IsRegExp(argument) {
|
|
2162
|
-
if (!argument || typeof argument !== 'object') {
|
|
2163
|
-
return false;
|
|
2164
|
-
}
|
|
2165
|
-
if ($match) {
|
|
2166
|
-
var isRegExp = argument[$match];
|
|
2167
|
-
if (typeof isRegExp !== 'undefined') {
|
|
2168
|
-
return ToBoolean(isRegExp);
|
|
2169
|
-
}
|
|
2170
|
-
}
|
|
2171
|
-
return isRegex(argument);
|
|
2172
|
-
};
|
|
2173
|
-
|
|
2174
|
-
var fnToStr = Function.prototype.toString;
|
|
2175
|
-
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2176
|
-
var badArrayLike;
|
|
2177
|
-
var isCallableMarker;
|
|
2178
|
-
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2179
|
-
try {
|
|
2180
|
-
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2181
|
-
get: function () {
|
|
2182
|
-
throw isCallableMarker;
|
|
2183
|
-
}
|
|
2184
|
-
});
|
|
2185
|
-
isCallableMarker = {};
|
|
2186
|
-
// eslint-disable-next-line no-throw-literal
|
|
2187
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2188
|
-
} catch (_) {
|
|
2189
|
-
if (_ !== isCallableMarker) {
|
|
2190
|
-
reflectApply = null;
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
|
-
} else {
|
|
2194
|
-
reflectApply = null;
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
var constructorRegex = /^\s*class\b/;
|
|
2198
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2199
|
-
try {
|
|
2200
|
-
var fnStr = fnToStr.call(value);
|
|
2201
|
-
return constructorRegex.test(fnStr);
|
|
2202
|
-
} catch (e) {
|
|
2203
|
-
return false; // not a function
|
|
2204
|
-
}
|
|
2205
|
-
};
|
|
2206
|
-
|
|
2207
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2208
|
-
try {
|
|
2209
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2210
|
-
fnToStr.call(value);
|
|
2211
|
-
return true;
|
|
2212
|
-
} catch (e) {
|
|
2213
|
-
return false;
|
|
2214
|
-
}
|
|
2215
|
-
};
|
|
2216
|
-
var toStr$6 = Object.prototype.toString;
|
|
2217
|
-
var fnClass = '[object Function]';
|
|
2218
|
-
var genClass = '[object GeneratorFunction]';
|
|
2219
|
-
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2220
|
-
|
|
2221
|
-
var isCallable = reflectApply
|
|
2222
|
-
? function isCallable(value) {
|
|
2223
|
-
if (!value) { return false; }
|
|
2224
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2225
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2226
|
-
try {
|
|
2227
|
-
reflectApply(value, null, badArrayLike);
|
|
2228
|
-
} catch (e) {
|
|
2229
|
-
if (e !== isCallableMarker) { return false; }
|
|
2230
|
-
}
|
|
2231
|
-
return !isES6ClassFn(value);
|
|
2232
|
-
}
|
|
2233
|
-
: function isCallable(value) {
|
|
2234
|
-
if (!value) { return false; }
|
|
2235
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2236
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2237
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2238
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2239
|
-
var strClass = toStr$6.call(value);
|
|
2240
|
-
return strClass === fnClass || strClass === genClass;
|
|
2241
|
-
};
|
|
2242
|
-
|
|
2243
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2244
|
-
|
|
2245
|
-
var IsCallable = isCallable;
|
|
2246
|
-
|
|
2247
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2254
|
-
|
|
2255
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2256
|
-
if (Type$1(Obj) !== 'Object') {
|
|
2257
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
|
-
var desc = {};
|
|
2261
|
-
if (src(Obj, 'enumerable')) {
|
|
2262
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2263
|
-
}
|
|
2264
|
-
if (src(Obj, 'configurable')) {
|
|
2265
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2266
|
-
}
|
|
2267
|
-
if (src(Obj, 'value')) {
|
|
2268
|
-
desc['[[Value]]'] = Obj.value;
|
|
2269
|
-
}
|
|
2270
|
-
if (src(Obj, 'writable')) {
|
|
2271
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2272
|
-
}
|
|
2273
|
-
if (src(Obj, 'get')) {
|
|
2274
|
-
var getter = Obj.get;
|
|
2275
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2276
|
-
throw new $TypeError$2('getter must be a function');
|
|
2277
|
-
}
|
|
2278
|
-
desc['[[Get]]'] = getter;
|
|
2279
|
-
}
|
|
2280
|
-
if (src(Obj, 'set')) {
|
|
2281
|
-
var setter = Obj.set;
|
|
2282
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2283
|
-
throw new $TypeError$2('setter must be a function');
|
|
2284
|
-
}
|
|
2285
|
-
desc['[[Set]]'] = setter;
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2289
|
-
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2290
|
-
}
|
|
2291
|
-
return desc;
|
|
2292
|
-
};
|
|
2293
|
-
|
|
2294
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2309
|
-
|
|
2310
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2311
|
-
if (Type$1(O) !== 'Object') {
|
|
2312
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2313
|
-
}
|
|
2314
|
-
if (!IsPropertyKey(P)) {
|
|
2315
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2316
|
-
}
|
|
2317
|
-
if (!src(O, P)) {
|
|
2318
|
-
return void 0;
|
|
2319
|
-
}
|
|
2320
|
-
if (!getOwnPropertyDescriptor) {
|
|
2321
|
-
// ES3 / IE 8 fallback
|
|
2322
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
2323
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2324
|
-
return {
|
|
2325
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2326
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2327
|
-
'[[Value]]': O[P],
|
|
2328
|
-
'[[Writable]]': true
|
|
2329
|
-
};
|
|
2330
|
-
}
|
|
2331
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2332
|
-
};
|
|
2333
|
-
|
|
2334
2220
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2335
2221
|
|
|
2336
2222
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2364,10 +2250,16 @@ var IsExtensible = $preventExtensions
|
|
|
2364
2250
|
? function IsExtensible(obj) {
|
|
2365
2251
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2366
2252
|
}
|
|
2367
|
-
: function IsExtensible(obj) {
|
|
2368
|
-
return
|
|
2253
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
2254
|
+
return true;
|
|
2369
2255
|
};
|
|
2370
2256
|
|
|
2257
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2258
|
+
|
|
2259
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2260
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2371
2263
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2372
2264
|
return a !== a;
|
|
2373
2265
|
};
|
|
@@ -2382,8 +2274,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2382
2274
|
return _isNaN(x) && _isNaN(y);
|
|
2383
2275
|
};
|
|
2384
2276
|
|
|
2385
|
-
var $
|
|
2386
|
-
|
|
2277
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2278
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2387
2279
|
|
|
2388
2280
|
|
|
2389
2281
|
|
|
@@ -2398,14 +2290,14 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
2398
2290
|
|
|
2399
2291
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2400
2292
|
if (Type$1(O) !== 'Object') {
|
|
2401
|
-
throw new $TypeError$
|
|
2293
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
2402
2294
|
}
|
|
2403
2295
|
if (!IsPropertyKey(P)) {
|
|
2404
|
-
throw new $TypeError$
|
|
2296
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
2405
2297
|
}
|
|
2406
|
-
var oldDesc =
|
|
2407
|
-
var extensible =
|
|
2408
|
-
var immutable = oldDesc && (!oldDesc
|
|
2298
|
+
var oldDesc = $gOPD$1(O, P);
|
|
2299
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2300
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2409
2301
|
if (immutable || !extensible) {
|
|
2410
2302
|
return false;
|
|
2411
2303
|
}
|
|
@@ -2424,13 +2316,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2424
2316
|
);
|
|
2425
2317
|
};
|
|
2426
2318
|
|
|
2427
|
-
var
|
|
2319
|
+
var fnToStr = Function.prototype.toString;
|
|
2320
|
+
|
|
2321
|
+
var constructorRegex = /^\s*class\b/;
|
|
2322
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2323
|
+
try {
|
|
2324
|
+
var fnStr = fnToStr.call(value);
|
|
2325
|
+
return constructorRegex.test(fnStr);
|
|
2326
|
+
} catch (e) {
|
|
2327
|
+
return false; // not a function
|
|
2328
|
+
}
|
|
2329
|
+
};
|
|
2330
|
+
|
|
2331
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2332
|
+
try {
|
|
2333
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2334
|
+
fnToStr.call(value);
|
|
2335
|
+
return true;
|
|
2336
|
+
} catch (e) {
|
|
2337
|
+
return false;
|
|
2338
|
+
}
|
|
2339
|
+
};
|
|
2340
|
+
var toStr$4 = Object.prototype.toString;
|
|
2341
|
+
var fnClass = '[object Function]';
|
|
2342
|
+
var genClass = '[object GeneratorFunction]';
|
|
2343
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2344
|
+
|
|
2345
|
+
var isCallable = function isCallable(value) {
|
|
2346
|
+
if (!value) { return false; }
|
|
2347
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2348
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2349
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2350
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2351
|
+
var strClass = toStr$4.call(value);
|
|
2352
|
+
return strClass === fnClass || strClass === genClass;
|
|
2353
|
+
};
|
|
2354
|
+
|
|
2355
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2356
|
+
|
|
2357
|
+
var IsCallable = isCallable;
|
|
2358
|
+
|
|
2359
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2428
2360
|
|
|
2429
2361
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2430
2362
|
|
|
2431
2363
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2432
2364
|
if (value == null) {
|
|
2433
|
-
throw new $TypeError$
|
|
2365
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
2434
2366
|
}
|
|
2435
2367
|
return value;
|
|
2436
2368
|
};
|
|
@@ -2501,6 +2433,241 @@ defineProperties_1(implementation$2, {
|
|
|
2501
2433
|
|
|
2502
2434
|
var object_getownpropertydescriptors = implementation$2;
|
|
2503
2435
|
|
|
2436
|
+
/* globals
|
|
2437
|
+
Atomics,
|
|
2438
|
+
SharedArrayBuffer,
|
|
2439
|
+
*/
|
|
2440
|
+
|
|
2441
|
+
var undefined$2;
|
|
2442
|
+
|
|
2443
|
+
var $TypeError$4 = TypeError;
|
|
2444
|
+
|
|
2445
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2446
|
+
if ($gOPD$3) {
|
|
2447
|
+
try {
|
|
2448
|
+
$gOPD$3({}, '');
|
|
2449
|
+
} catch (e) {
|
|
2450
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
2455
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
2456
|
+
? (function () {
|
|
2457
|
+
try {
|
|
2458
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2459
|
+
arguments.callee; // IE 8 does not throw here
|
|
2460
|
+
return throwTypeError$1;
|
|
2461
|
+
} catch (calleeThrows) {
|
|
2462
|
+
try {
|
|
2463
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2464
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
2465
|
+
} catch (gOPDthrows) {
|
|
2466
|
+
return throwTypeError$1;
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
}())
|
|
2470
|
+
: throwTypeError$1;
|
|
2471
|
+
|
|
2472
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2473
|
+
|
|
2474
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2475
|
+
var generatorFunction$1 = undefined$2;
|
|
2476
|
+
var asyncFunction$1 = undefined$2;
|
|
2477
|
+
var asyncGenFunction$1 = undefined$2;
|
|
2478
|
+
|
|
2479
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2480
|
+
|
|
2481
|
+
var INTRINSICS$1 = {
|
|
2482
|
+
'%Array%': Array,
|
|
2483
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2484
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2485
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2486
|
+
'%ArrayPrototype%': Array.prototype,
|
|
2487
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2488
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2489
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2490
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
2491
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2492
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
2493
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
2494
|
+
'%AsyncGenerator%': undefined$2,
|
|
2495
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
2496
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2497
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
2498
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2499
|
+
'%Boolean%': Boolean,
|
|
2500
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
2501
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2502
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2503
|
+
'%Date%': Date,
|
|
2504
|
+
'%DatePrototype%': Date.prototype,
|
|
2505
|
+
'%decodeURI%': decodeURI,
|
|
2506
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
2507
|
+
'%encodeURI%': encodeURI,
|
|
2508
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
2509
|
+
'%Error%': Error,
|
|
2510
|
+
'%ErrorPrototype%': Error.prototype,
|
|
2511
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
2512
|
+
'%EvalError%': EvalError,
|
|
2513
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2514
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2515
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2516
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2517
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2518
|
+
'%Function%': Function,
|
|
2519
|
+
'%FunctionPrototype%': Function.prototype,
|
|
2520
|
+
'%Generator%': undefined$2,
|
|
2521
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
2522
|
+
'%GeneratorPrototype%': undefined$2,
|
|
2523
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2524
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2525
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2526
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2527
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2528
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2529
|
+
'%isFinite%': isFinite,
|
|
2530
|
+
'%isNaN%': isNaN,
|
|
2531
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2532
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2533
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2534
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2535
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2536
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2537
|
+
'%Math%': Math,
|
|
2538
|
+
'%Number%': Number,
|
|
2539
|
+
'%NumberPrototype%': Number.prototype,
|
|
2540
|
+
'%Object%': Object,
|
|
2541
|
+
'%ObjectPrototype%': Object.prototype,
|
|
2542
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
2543
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2544
|
+
'%parseFloat%': parseFloat,
|
|
2545
|
+
'%parseInt%': parseInt,
|
|
2546
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2547
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2548
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2549
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2550
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2551
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2552
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2553
|
+
'%RangeError%': RangeError,
|
|
2554
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2555
|
+
'%ReferenceError%': ReferenceError,
|
|
2556
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2557
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2558
|
+
'%RegExp%': RegExp,
|
|
2559
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
2560
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2561
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2562
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2563
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2564
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2565
|
+
'%String%': String,
|
|
2566
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2567
|
+
'%StringPrototype%': String.prototype,
|
|
2568
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
2569
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
2570
|
+
'%SyntaxError%': SyntaxError,
|
|
2571
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2572
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2573
|
+
'%TypedArray%': TypedArray$1,
|
|
2574
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2575
|
+
'%TypeError%': $TypeError$4,
|
|
2576
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
2577
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2578
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2579
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2580
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2581
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2582
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2583
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2584
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2585
|
+
'%URIError%': URIError,
|
|
2586
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
2587
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2588
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2589
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2590
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2595
|
+
|
|
2596
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2597
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2598
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2599
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
2600
|
+
var result = [];
|
|
2601
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2602
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2603
|
+
});
|
|
2604
|
+
return result;
|
|
2605
|
+
};
|
|
2606
|
+
/* end adaptation */
|
|
2607
|
+
|
|
2608
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2609
|
+
if (!(name in INTRINSICS$1)) {
|
|
2610
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2614
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2615
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
return INTRINSICS$1[name];
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2621
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
2622
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
2623
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2624
|
+
}
|
|
2625
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2626
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
var parts = stringToPath$1(name);
|
|
2630
|
+
|
|
2631
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2632
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
2633
|
+
if (value != null) {
|
|
2634
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2635
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
2636
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
2637
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2638
|
+
}
|
|
2639
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2640
|
+
} else {
|
|
2641
|
+
value = value[parts[i]];
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
return value;
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2648
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
2649
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
2650
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
2651
|
+
|
|
2652
|
+
var callBind$1 = function callBind() {
|
|
2653
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
var apply$1 = function applyBind() {
|
|
2657
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
2658
|
+
};
|
|
2659
|
+
callBind$1.apply = apply$1;
|
|
2660
|
+
|
|
2661
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
2662
|
+
|
|
2663
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2664
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
2665
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2666
|
+
return callBind$1(intrinsic);
|
|
2667
|
+
}
|
|
2668
|
+
return intrinsic;
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2504
2671
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2505
2672
|
&& typeof Object.defineProperties === 'function';
|
|
2506
2673
|
|
|
@@ -2518,9 +2685,9 @@ if (typeof Promise !== 'function') {
|
|
|
2518
2685
|
|
|
2519
2686
|
|
|
2520
2687
|
|
|
2521
|
-
var $slice = callBound('Array.prototype.slice');
|
|
2522
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
2523
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
2688
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
2689
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
2690
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2524
2691
|
|
|
2525
2692
|
var hasSymbols$4 = hasSymbols$1();
|
|
2526
2693
|
|
|
@@ -2836,7 +3003,7 @@ var md5 = createCommonjsModule(function (module) {
|
|
|
2836
3003
|
message = utf8.stringToBytes(message);
|
|
2837
3004
|
else if (isBuffer(message))
|
|
2838
3005
|
message = Array.prototype.slice.call(message, 0);
|
|
2839
|
-
else if (!Array.isArray(message)
|
|
3006
|
+
else if (!Array.isArray(message))
|
|
2840
3007
|
message = message.toString();
|
|
2841
3008
|
// else, assume byte array already
|
|
2842
3009
|
|