@mjhls/mjh-framework 1.0.567 → 1.0.569
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 +10 -9
- package/dist/cjs/AD300x250.js +8 -7
- package/dist/cjs/AD300x250x600.js +8 -7
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +15 -14
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-17a378db.js → ADInfeed-fdbd80ea.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +11 -10
- package/dist/cjs/ADWebcast.js +11 -10
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-070d911c.js → ADlgInfeed-ecd2642c.js} +7 -6
- package/dist/cjs/AccordionPanel.js +25 -23
- package/dist/cjs/AdSlot.js +15 -13
- package/dist/cjs/AdSlotsProvider.js +6 -5
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleQueue.js +115 -112
- package/dist/cjs/Auth.js +430 -593
- package/dist/cjs/{AuthorComponent-cb8b8128.js → AuthorComponent-5bb8f868.js} +13 -12
- package/dist/cjs/{BlockContent-f942392e.js → BlockContent-8b494587.js} +26 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +34 -33
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +85 -81
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-fbe32b96.js → Dfp-a06d722a.js} +22 -20
- package/dist/cjs/EventsDeck.js +113 -106
- package/dist/cjs/ExternalResources.js +42 -41
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +149 -145
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +38 -37
- package/dist/cjs/HamMagazine.js +119 -114
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/{InscreenSensor-3aec8492.js → InscreenSensor-1f9f7db4.js} +8 -7
- package/dist/cjs/IssueContentDeck.js +69 -64
- package/dist/cjs/IssueDeck.js +64 -59
- package/dist/cjs/IssueLanding.js +47 -46
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +60 -59
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +123 -118
- package/dist/cjs/NavNative.js +306 -104
- package/dist/cjs/NavNormal.js +42 -37
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +59 -58
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +1267 -69
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PublicationDeck.js +63 -58
- package/dist/cjs/PublicationLanding.js +85 -81
- package/dist/cjs/QueueDeckExpanded.js +223 -223
- package/dist/cjs/RelatedContent.js +47 -46
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SideFooter.js +20 -19
- package/dist/cjs/SocialIcons.js +91 -0
- package/dist/cjs/{SocialNavFooter-9a07520f.js → SocialNavFooter-d9ab4d17.js} +18 -17
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TemplateNormal.js +37 -35
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +22 -21
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +39 -38
- package/dist/cjs/View.js +166 -161
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +46 -45
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +355 -6
- package/dist/cjs/getSerializers.js +269 -259
- package/dist/cjs/{getTargeting-b15993cb.js → getTargeting-86e68d62.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{iconBase-637d3f1e.js → iconBase-68959171.js} +1 -3
- package/dist/cjs/{index-f7ee1612.js → index-44481153.js} +10 -8
- package/dist/cjs/{index-fa0fb52c.js → index-8a3fb0bc.js} +13 -10
- package/dist/cjs/{index-5be2866f.js → index-99edf08a.js} +1 -1
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
- package/dist/cjs/{index.esm-c0d8b44b.js → index.esm-3b9b8952.js} +5 -10
- package/dist/cjs/{index.esm-25423c2f.js → index.esm-55da9104.js} +4 -7
- package/dist/cjs/{index.esm-fcdbd2c6.js → index.esm-99553d28.js} +7 -16
- package/dist/cjs/index.js +34 -33
- package/dist/cjs/{inherits-14962339.js → inherits-4a2f1cc3.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-bc4db521.js → main-c50facd7.js} +48 -43
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-cd0d9d3b.js → react-social-icons-07939b41.js} +13 -11
- package/dist/cjs/{typeof-1869832c.js → typeof-583cdc4b.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- 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-c7dba95f.js → ADInfeed-ed104a2b.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-8bfd6d58.js → ADlgInfeed-dfde985e.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- 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 +411 -578
- package/dist/esm/{AuthorComponent-158226c9.js → AuthorComponent-f67cb027.js} +10 -10
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-d05b5b23.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-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +61 -61
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-ae9336e2.js → Dfp-0557840a.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 +87 -87
- 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 +21 -21
- package/dist/esm/{InscreenSensor-280b2b10.js → InscreenSensor-3e1fe82a.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-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +280 -86
- package/dist/esm/NavNormal.js +22 -22
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1261 -65
- package/dist/esm/PdfDownload.js +7 -7
- 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 +203 -203
- 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 +17 -17
- package/dist/esm/SocialIcons.js +85 -0
- package/dist/esm/{SocialNavFooter-4fb16720.js → SocialNavFooter-1a531144.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TemplateNormal.js +30 -29
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +19 -19
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +33 -33
- 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-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +355 -6
- package/dist/esm/getSerializers.js +220 -216
- package/dist/esm/{getTargeting-1a0bd08d.js → getTargeting-1f2c61e3.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{iconBase-6ee2f2fb.js → iconBase-602d52fe.js} +1 -1
- package/dist/esm/{index-93ec3c59.js → index-1819118a.js} +3 -3
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-d2f90501.js → index-fa2ffe86.js} +1 -1
- package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
- package/dist/esm/{index.esm-b97cf389.js → index.esm-116f3274.js} +7 -16
- package/dist/esm/{index.esm-a7ad65ba.js → index.esm-16e9450c.js} +4 -7
- package/dist/esm/{index.esm-9d6faf80.js → index.esm-d6f88d94.js} +5 -10
- package/dist/esm/index.js +28 -28
- package/dist/esm/{inherits-b8e4c697.js → inherits-2758cc14.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-7255814e.js → main-b722e2e2.js} +48 -44
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{typeof-5f046efd.js → typeof-7e72fee0.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
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, { 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,6 +14,7 @@ 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';
|
|
17
18
|
import useSWR from 'swr';
|
|
18
19
|
import Local from 'passport-local';
|
|
19
20
|
import mysql from 'mysql';
|
|
@@ -55,21 +56,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
58
|
-
return
|
|
59
|
+
return React.createElement(
|
|
59
60
|
Form.Group,
|
|
60
61
|
_extends({}, opts, { controlId: name }),
|
|
61
|
-
|
|
62
|
+
React.createElement(
|
|
62
63
|
Form.Label,
|
|
63
64
|
{ kye: name + '_label' },
|
|
64
65
|
label,
|
|
65
|
-
required &&
|
|
66
|
+
required && React.createElement(
|
|
66
67
|
'span',
|
|
67
68
|
{ style: { color: 'red' } },
|
|
68
69
|
'*'
|
|
69
70
|
)
|
|
70
71
|
),
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
React.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
73
|
+
React.createElement(
|
|
73
74
|
Form.Control.Feedback,
|
|
74
75
|
{ key: name + '_feedback', type: 'invalid' },
|
|
75
76
|
errors[name]
|
|
@@ -77,28 +78,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
77
78
|
);
|
|
78
79
|
}
|
|
79
80
|
if (type == 'select') {
|
|
80
|
-
return
|
|
81
|
+
return React.createElement(
|
|
81
82
|
Form.Group,
|
|
82
83
|
_extends({}, opts, { key: name, controlId: name }),
|
|
83
|
-
|
|
84
|
+
React.createElement(
|
|
84
85
|
Form.Label,
|
|
85
86
|
{ key: name + '_' + label },
|
|
86
87
|
label,
|
|
87
|
-
required &&
|
|
88
|
+
required && React.createElement(
|
|
88
89
|
'span',
|
|
89
90
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
90
91
|
'*'
|
|
91
92
|
)
|
|
92
93
|
),
|
|
93
|
-
|
|
94
|
+
React.createElement(
|
|
94
95
|
Form.Control,
|
|
95
96
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
96
|
-
|
|
97
|
+
React.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
97
98
|
options.map(function (option, index) {
|
|
98
99
|
var value = option.value ? option.value : option;
|
|
99
100
|
var label = option.label ? option.label : option;
|
|
100
101
|
var key = name + '_options_' + index;
|
|
101
|
-
return
|
|
102
|
+
return React.createElement(
|
|
102
103
|
'option',
|
|
103
104
|
{ key: key, value: value },
|
|
104
105
|
label
|
|
@@ -109,25 +110,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
if (type == 'radio' || type == 'checkbox') {
|
|
112
|
-
return
|
|
113
|
+
return React.createElement(
|
|
113
114
|
Form.Group,
|
|
114
115
|
opts,
|
|
115
|
-
|
|
116
|
+
React.createElement(
|
|
116
117
|
Form.Label,
|
|
117
118
|
null,
|
|
118
119
|
label,
|
|
119
|
-
required &&
|
|
120
|
+
required && React.createElement(
|
|
120
121
|
'span',
|
|
121
122
|
{ style: { color: 'red' } },
|
|
122
123
|
'*'
|
|
123
124
|
)
|
|
124
125
|
),
|
|
125
126
|
options.map(function (option, index) {
|
|
126
|
-
return
|
|
127
|
+
return React.createElement(
|
|
127
128
|
Form.Check,
|
|
128
129
|
{ type: type, key: index, required: required },
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
React.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 }),
|
|
131
|
+
React.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
131
132
|
);
|
|
132
133
|
})
|
|
133
134
|
);
|
|
@@ -334,43 +335,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
334
335
|
loading = _useState4[0],
|
|
335
336
|
setLoading = _useState4[1];
|
|
336
337
|
|
|
337
|
-
return
|
|
338
|
+
return React.createElement(
|
|
338
339
|
Form,
|
|
339
340
|
{ className: 'login', onSubmit: handleSubmit },
|
|
340
|
-
|
|
341
|
+
React.createElement(
|
|
341
342
|
'h1',
|
|
342
343
|
null,
|
|
343
344
|
'Login'
|
|
344
345
|
),
|
|
345
|
-
|
|
346
|
+
React.createElement('hr', null),
|
|
346
347
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
347
348
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
348
|
-
|
|
349
|
-
|
|
349
|
+
React.createElement('hr', null),
|
|
350
|
+
React.createElement(
|
|
350
351
|
Form.Row,
|
|
351
352
|
null,
|
|
352
|
-
|
|
353
|
+
React.createElement(
|
|
353
354
|
Form.Group,
|
|
354
355
|
{ as: Col },
|
|
355
|
-
|
|
356
|
+
React.createElement(
|
|
356
357
|
'a',
|
|
357
358
|
{ href: '/auth/signup' },
|
|
358
359
|
'I don\'t have an account'
|
|
359
360
|
)
|
|
360
361
|
),
|
|
361
|
-
|
|
362
|
+
React.createElement(
|
|
362
363
|
Form.Group,
|
|
363
364
|
{ as: Col, className: 'text-right' },
|
|
364
|
-
!loading &&
|
|
365
|
+
!loading && React.createElement(
|
|
365
366
|
Button,
|
|
366
367
|
{ type: 'submit' },
|
|
367
368
|
'Login'
|
|
368
369
|
),
|
|
369
|
-
loading &&
|
|
370
|
+
loading && React.createElement(
|
|
370
371
|
Button,
|
|
371
372
|
{ variant: 'primary', disabled: true },
|
|
372
|
-
|
|
373
|
-
|
|
373
|
+
React.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
374
|
+
React.createElement(
|
|
374
375
|
'span',
|
|
375
376
|
{ className: 'sr-only' },
|
|
376
377
|
'Loading...'
|
|
@@ -378,12 +379,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
378
379
|
)
|
|
379
380
|
)
|
|
380
381
|
),
|
|
381
|
-
errorMsg &&
|
|
382
|
+
errorMsg && React.createElement(
|
|
382
383
|
'p',
|
|
383
384
|
{ className: 'error' },
|
|
384
385
|
errorMsg
|
|
385
386
|
),
|
|
386
|
-
|
|
387
|
+
React.createElement(
|
|
387
388
|
'style',
|
|
388
389
|
{ jsx: 'true'.toString() },
|
|
389
390
|
'\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 '
|
|
@@ -639,29 +640,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
639
640
|
loading = _useState14[0],
|
|
640
641
|
setLoading = _useState14[1];
|
|
641
642
|
|
|
642
|
-
return
|
|
643
|
+
return React.createElement(
|
|
643
644
|
Form,
|
|
644
645
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
645
|
-
|
|
646
|
+
React.createElement(
|
|
646
647
|
'h1',
|
|
647
648
|
null,
|
|
648
649
|
'Sign Up'
|
|
649
650
|
),
|
|
650
|
-
|
|
651
|
+
React.createElement('hr', null),
|
|
651
652
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
652
|
-
|
|
653
|
+
React.createElement(
|
|
653
654
|
Form.Row,
|
|
654
655
|
null,
|
|
655
656
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
|
|
656
657
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
|
|
657
658
|
),
|
|
658
|
-
|
|
659
|
+
React.createElement(
|
|
659
660
|
Form.Row,
|
|
660
661
|
null,
|
|
661
662
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
|
|
662
663
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
|
|
663
664
|
),
|
|
664
|
-
|
|
665
|
+
React.createElement(
|
|
665
666
|
Form.Row,
|
|
666
667
|
null,
|
|
667
668
|
returnFormField({
|
|
@@ -675,7 +676,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
675
676
|
}),
|
|
676
677
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
|
|
677
678
|
),
|
|
678
|
-
|
|
679
|
+
React.createElement(
|
|
679
680
|
Form.Row,
|
|
680
681
|
null,
|
|
681
682
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
|
|
@@ -722,38 +723,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
722
723
|
required: true,
|
|
723
724
|
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' }]
|
|
724
725
|
}),
|
|
725
|
-
|
|
726
|
-
|
|
726
|
+
React.createElement('hr', null),
|
|
727
|
+
React.createElement(
|
|
727
728
|
Form.Row,
|
|
728
729
|
null,
|
|
729
|
-
|
|
730
|
+
React.createElement(
|
|
730
731
|
Form.Group,
|
|
731
732
|
{ as: Col },
|
|
732
|
-
|
|
733
|
+
React.createElement(
|
|
733
734
|
'a',
|
|
734
735
|
{ href: '/auth/login' },
|
|
735
736
|
'I already have an account'
|
|
736
737
|
)
|
|
737
738
|
),
|
|
738
|
-
|
|
739
|
+
React.createElement(
|
|
739
740
|
Form.Group,
|
|
740
741
|
{ as: Col, className: 'text-right' },
|
|
741
|
-
!loading &&
|
|
742
|
+
!loading && React.createElement(
|
|
742
743
|
Button,
|
|
743
744
|
{ type: 'submit' },
|
|
744
745
|
'Sign Up'
|
|
745
746
|
),
|
|
746
|
-
loading &&
|
|
747
|
+
loading && React.createElement(
|
|
747
748
|
Button,
|
|
748
749
|
{ variant: 'primary', disabled: true },
|
|
749
|
-
|
|
750
|
+
React.createElement(Spinner, {
|
|
750
751
|
as: 'span',
|
|
751
752
|
animation: 'border',
|
|
752
753
|
role: 'status',
|
|
753
754
|
'aria-hidden': 'true',
|
|
754
755
|
size: 'sm'
|
|
755
756
|
}),
|
|
756
|
-
|
|
757
|
+
React.createElement(
|
|
757
758
|
'span',
|
|
758
759
|
{ className: 'sr-only' },
|
|
759
760
|
'Loading...'
|
|
@@ -761,12 +762,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
761
762
|
)
|
|
762
763
|
)
|
|
763
764
|
),
|
|
764
|
-
errorMsg &&
|
|
765
|
+
errorMsg && React.createElement(
|
|
765
766
|
'p',
|
|
766
767
|
{ className: 'error' },
|
|
767
768
|
errorMsg
|
|
768
769
|
),
|
|
769
|
-
|
|
770
|
+
React.createElement(
|
|
770
771
|
'style',
|
|
771
772
|
{ jsx: 'true'.toString() },
|
|
772
773
|
' \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 '
|
|
@@ -1056,32 +1057,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1056
1057
|
loading = _useState18[0],
|
|
1057
1058
|
setLoading = _useState18[1];
|
|
1058
1059
|
|
|
1059
|
-
return
|
|
1060
|
+
return React.createElement(
|
|
1060
1061
|
Form,
|
|
1061
1062
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1062
|
-
|
|
1063
|
+
React.createElement(
|
|
1063
1064
|
'h1',
|
|
1064
1065
|
null,
|
|
1065
1066
|
'Profile'
|
|
1066
1067
|
),
|
|
1067
|
-
|
|
1068
|
-
userData ?
|
|
1069
|
-
|
|
1068
|
+
React.createElement('hr', null),
|
|
1069
|
+
userData ? React.createElement(
|
|
1070
|
+
React.Fragment,
|
|
1070
1071
|
null,
|
|
1071
1072
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1072
|
-
|
|
1073
|
+
React.createElement(
|
|
1073
1074
|
Form.Row,
|
|
1074
1075
|
null,
|
|
1075
1076
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
|
|
1076
1077
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
|
|
1077
1078
|
),
|
|
1078
|
-
|
|
1079
|
+
React.createElement(
|
|
1079
1080
|
Form.Row,
|
|
1080
1081
|
null,
|
|
1081
1082
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
|
|
1082
1083
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
|
|
1083
1084
|
),
|
|
1084
|
-
|
|
1085
|
+
React.createElement(
|
|
1085
1086
|
Form.Row,
|
|
1086
1087
|
null,
|
|
1087
1088
|
returnFormField({
|
|
@@ -1096,7 +1097,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1096
1097
|
}),
|
|
1097
1098
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
|
|
1098
1099
|
),
|
|
1099
|
-
|
|
1100
|
+
React.createElement(
|
|
1100
1101
|
Form.Row,
|
|
1101
1102
|
null,
|
|
1102
1103
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
|
|
@@ -1146,29 +1147,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1146
1147
|
required: true,
|
|
1147
1148
|
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' }]
|
|
1148
1149
|
}),
|
|
1149
|
-
|
|
1150
|
-
|
|
1150
|
+
React.createElement('hr', null),
|
|
1151
|
+
React.createElement(
|
|
1151
1152
|
Form.Row,
|
|
1152
1153
|
null,
|
|
1153
|
-
|
|
1154
|
+
React.createElement(
|
|
1154
1155
|
Form.Group,
|
|
1155
1156
|
{ as: Col },
|
|
1156
|
-
!loading &&
|
|
1157
|
+
!loading && React.createElement(
|
|
1157
1158
|
Button,
|
|
1158
1159
|
{ type: 'submit' },
|
|
1159
1160
|
'Update'
|
|
1160
1161
|
),
|
|
1161
|
-
loading &&
|
|
1162
|
+
loading && React.createElement(
|
|
1162
1163
|
Button,
|
|
1163
1164
|
{ variant: 'primary', disabled: true },
|
|
1164
|
-
|
|
1165
|
+
React.createElement(Spinner, {
|
|
1165
1166
|
as: 'span',
|
|
1166
1167
|
animation: 'border',
|
|
1167
1168
|
role: 'status',
|
|
1168
1169
|
'aria-hidden': 'true',
|
|
1169
1170
|
size: 'sm'
|
|
1170
1171
|
}),
|
|
1171
|
-
|
|
1172
|
+
React.createElement(
|
|
1172
1173
|
'span',
|
|
1173
1174
|
{ className: 'sr-only' },
|
|
1174
1175
|
'Loading...'
|
|
@@ -1176,24 +1177,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1176
1177
|
)
|
|
1177
1178
|
)
|
|
1178
1179
|
)
|
|
1179
|
-
) :
|
|
1180
|
+
) : React.createElement(Spinner, {
|
|
1180
1181
|
as: 'span',
|
|
1181
1182
|
animation: 'border',
|
|
1182
1183
|
role: 'status',
|
|
1183
1184
|
'aria-hidden': 'true',
|
|
1184
1185
|
size: 'sm'
|
|
1185
1186
|
}),
|
|
1186
|
-
errorMsg &&
|
|
1187
|
+
errorMsg && React.createElement(
|
|
1187
1188
|
'p',
|
|
1188
1189
|
{ className: 'error' },
|
|
1189
1190
|
errorMsg
|
|
1190
1191
|
),
|
|
1191
|
-
successMsg &&
|
|
1192
|
+
successMsg && React.createElement(
|
|
1192
1193
|
'p',
|
|
1193
1194
|
{ className: 'success' },
|
|
1194
1195
|
successMsg
|
|
1195
1196
|
),
|
|
1196
|
-
|
|
1197
|
+
React.createElement(
|
|
1197
1198
|
'style',
|
|
1198
1199
|
{ jsx: 'true'.toString() },
|
|
1199
1200
|
' \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 '
|
|
@@ -1201,207 +1202,6 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1201
1202
|
);
|
|
1202
1203
|
};
|
|
1203
1204
|
|
|
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
|
-
|
|
1405
1205
|
var TOKEN_NAME = 'token';
|
|
1406
1206
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1407
1207
|
|
|
@@ -2042,7 +1842,17 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
2042
1842
|
if (value != null) {
|
|
2043
1843
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
2044
1844
|
var desc = $gOPD(value, parts[i]);
|
|
2045
|
-
|
|
1845
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
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]];
|
|
2046
1856
|
} else {
|
|
2047
1857
|
value = value[parts[i]];
|
|
2048
1858
|
}
|
|
@@ -2051,18 +1861,42 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
2051
1861
|
return value;
|
|
2052
1862
|
};
|
|
2053
1863
|
|
|
2054
|
-
var
|
|
2055
|
-
|
|
2056
|
-
|
|
1864
|
+
var callBind = createCommonjsModule(function (module) {
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
2057
1868
|
|
|
2058
|
-
|
|
2059
|
-
|
|
1869
|
+
|
|
1870
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1871
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1872
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
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);
|
|
2060
1887
|
};
|
|
2061
1888
|
|
|
2062
|
-
var
|
|
2063
|
-
return functionBind
|
|
1889
|
+
var applyBind = function applyBind() {
|
|
1890
|
+
return $reflectApply(functionBind, $apply, arguments);
|
|
2064
1891
|
};
|
|
2065
|
-
|
|
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;
|
|
2066
1900
|
|
|
2067
1901
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
2068
1902
|
|
|
@@ -2074,7 +1908,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
2074
1908
|
return intrinsic;
|
|
2075
1909
|
};
|
|
2076
1910
|
|
|
2077
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1911
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
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
|
+
}
|
|
2078
1921
|
|
|
2079
1922
|
|
|
2080
1923
|
|
|
@@ -2177,7 +2020,7 @@ var Type = function Type(x) {
|
|
|
2177
2020
|
}
|
|
2178
2021
|
};
|
|
2179
2022
|
|
|
2180
|
-
// https://
|
|
2023
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
|
|
2181
2024
|
|
|
2182
2025
|
var Type$1 = function Type$1(x) {
|
|
2183
2026
|
if (typeof x === 'symbol') {
|
|
@@ -2217,6 +2060,277 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2217
2060
|
return obj;
|
|
2218
2061
|
};
|
|
2219
2062
|
|
|
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
|
+
|
|
2220
2334
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2221
2335
|
|
|
2222
2336
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2250,16 +2364,10 @@ var IsExtensible = $preventExtensions
|
|
|
2250
2364
|
? function IsExtensible(obj) {
|
|
2251
2365
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2252
2366
|
}
|
|
2253
|
-
: function IsExtensible(obj) {
|
|
2254
|
-
return
|
|
2367
|
+
: function IsExtensible(obj) {
|
|
2368
|
+
return !isPrimitive(obj);
|
|
2255
2369
|
};
|
|
2256
2370
|
|
|
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
|
-
|
|
2263
2371
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2264
2372
|
return a !== a;
|
|
2265
2373
|
};
|
|
@@ -2274,8 +2382,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2274
2382
|
return _isNaN(x) && _isNaN(y);
|
|
2275
2383
|
};
|
|
2276
2384
|
|
|
2277
|
-
var $
|
|
2278
|
-
|
|
2385
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
2386
|
+
|
|
2279
2387
|
|
|
2280
2388
|
|
|
2281
2389
|
|
|
@@ -2290,14 +2398,14 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
|
2290
2398
|
|
|
2291
2399
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2292
2400
|
if (Type$1(O) !== 'Object') {
|
|
2293
|
-
throw new $TypeError$
|
|
2401
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
2294
2402
|
}
|
|
2295
2403
|
if (!IsPropertyKey(P)) {
|
|
2296
|
-
throw new $TypeError$
|
|
2404
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2297
2405
|
}
|
|
2298
|
-
var oldDesc =
|
|
2299
|
-
var extensible = oldDesc || IsExtensible(O);
|
|
2300
|
-
var immutable = oldDesc && (!oldDesc
|
|
2406
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2407
|
+
var extensible = !oldDesc || IsExtensible(O);
|
|
2408
|
+
var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
|
|
2301
2409
|
if (immutable || !extensible) {
|
|
2302
2410
|
return false;
|
|
2303
2411
|
}
|
|
@@ -2316,53 +2424,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2316
2424
|
);
|
|
2317
2425
|
};
|
|
2318
2426
|
|
|
2319
|
-
var
|
|
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%');
|
|
2427
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
2360
2428
|
|
|
2361
2429
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2362
2430
|
|
|
2363
2431
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2364
2432
|
if (value == null) {
|
|
2365
|
-
throw new $TypeError$
|
|
2433
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
2366
2434
|
}
|
|
2367
2435
|
return value;
|
|
2368
2436
|
};
|
|
@@ -2433,241 +2501,6 @@ defineProperties_1(implementation$2, {
|
|
|
2433
2501
|
|
|
2434
2502
|
var object_getownpropertydescriptors = implementation$2;
|
|
2435
2503
|
|
|
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
|
-
|
|
2671
2504
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2672
2505
|
&& typeof Object.defineProperties === 'function';
|
|
2673
2506
|
|
|
@@ -2685,9 +2518,9 @@ if (typeof Promise !== 'function') {
|
|
|
2685
2518
|
|
|
2686
2519
|
|
|
2687
2520
|
|
|
2688
|
-
var $slice = callBound
|
|
2689
|
-
var $concat$1 = callBound
|
|
2690
|
-
var $forEach = callBound
|
|
2521
|
+
var $slice = callBound('Array.prototype.slice');
|
|
2522
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2523
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
2691
2524
|
|
|
2692
2525
|
var hasSymbols$4 = hasSymbols$1();
|
|
2693
2526
|
|
|
@@ -3003,7 +2836,7 @@ var md5 = createCommonjsModule(function (module) {
|
|
|
3003
2836
|
message = utf8.stringToBytes(message);
|
|
3004
2837
|
else if (isBuffer(message))
|
|
3005
2838
|
message = Array.prototype.slice.call(message, 0);
|
|
3006
|
-
else if (!Array.isArray(message))
|
|
2839
|
+
else if (!Array.isArray(message) && message.constructor !== Uint8Array)
|
|
3007
2840
|
message = message.toString();
|
|
3008
2841
|
// else, assume byte array already
|
|
3009
2842
|
|