@mjhls/mjh-framework 1.0.588 → 1.0.590
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/cjs/Auth.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
5
7
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
8
|
require('./_to-object-329a650b.js');
|
|
7
9
|
require('./core.get-iterator-method-41e87ec1.js');
|
|
@@ -11,25 +13,18 @@ require('./_object-pie-68c5bcbc.js');
|
|
|
11
13
|
var _extends = require('./extends-60837c34.js');
|
|
12
14
|
require('./web.dom.iterable-43c3e277.js');
|
|
13
15
|
var React = require('react');
|
|
16
|
+
var React__default = _interopDefault(React);
|
|
14
17
|
var Router = require('next/router');
|
|
18
|
+
var Router__default = _interopDefault(Router);
|
|
15
19
|
var slicedToArray = require('./slicedToArray-8063ee51.js');
|
|
16
20
|
var stringify = require('./stringify-7c5aff47.js');
|
|
17
21
|
var asyncToGenerator = require('./asyncToGenerator-8e707718.js');
|
|
18
22
|
require('./_set-species-4458e975.js');
|
|
19
23
|
var reactBootstrap = require('react-bootstrap');
|
|
20
24
|
var util = require('./util-f2c1b65b.js');
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var mysql = require('mysql');
|
|
25
|
-
|
|
26
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
27
|
-
|
|
28
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
29
|
-
var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
|
|
30
|
-
var useSWR__default = /*#__PURE__*/_interopDefaultLegacy(useSWR);
|
|
31
|
-
var Local__default = /*#__PURE__*/_interopDefaultLegacy(Local);
|
|
32
|
-
var mysql__default = /*#__PURE__*/_interopDefaultLegacy(mysql);
|
|
25
|
+
var useSWR = _interopDefault(require('swr'));
|
|
26
|
+
var Local = _interopDefault(require('passport-local'));
|
|
27
|
+
var mysql = _interopDefault(require('mysql'));
|
|
33
28
|
|
|
34
29
|
var returnFormField = function returnFormField(_ref) {
|
|
35
30
|
var name = _ref.name,
|
|
@@ -68,21 +63,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
68
63
|
}
|
|
69
64
|
|
|
70
65
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
71
|
-
return React__default
|
|
66
|
+
return React__default.createElement(
|
|
72
67
|
reactBootstrap.Form.Group,
|
|
73
68
|
_extends._extends({}, opts, { controlId: name }),
|
|
74
|
-
React__default
|
|
69
|
+
React__default.createElement(
|
|
75
70
|
reactBootstrap.Form.Label,
|
|
76
71
|
{ kye: name + '_label' },
|
|
77
72
|
label,
|
|
78
|
-
required && React__default
|
|
73
|
+
required && React__default.createElement(
|
|
79
74
|
'span',
|
|
80
75
|
{ style: { color: 'red' } },
|
|
81
76
|
'*'
|
|
82
77
|
)
|
|
83
78
|
),
|
|
84
|
-
React__default
|
|
85
|
-
React__default
|
|
79
|
+
React__default.createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
80
|
+
React__default.createElement(
|
|
86
81
|
reactBootstrap.Form.Control.Feedback,
|
|
87
82
|
{ key: name + '_feedback', type: 'invalid' },
|
|
88
83
|
errors[name]
|
|
@@ -90,28 +85,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
90
85
|
);
|
|
91
86
|
}
|
|
92
87
|
if (type == 'select') {
|
|
93
|
-
return React__default
|
|
88
|
+
return React__default.createElement(
|
|
94
89
|
reactBootstrap.Form.Group,
|
|
95
90
|
_extends._extends({}, opts, { key: name, controlId: name }),
|
|
96
|
-
React__default
|
|
91
|
+
React__default.createElement(
|
|
97
92
|
reactBootstrap.Form.Label,
|
|
98
93
|
{ key: name + '_' + label },
|
|
99
94
|
label,
|
|
100
|
-
required && React__default
|
|
95
|
+
required && React__default.createElement(
|
|
101
96
|
'span',
|
|
102
97
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
103
98
|
'*'
|
|
104
99
|
)
|
|
105
100
|
),
|
|
106
|
-
React__default
|
|
101
|
+
React__default.createElement(
|
|
107
102
|
reactBootstrap.Form.Control,
|
|
108
103
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
109
|
-
React__default
|
|
104
|
+
React__default.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
110
105
|
options.map(function (option, index) {
|
|
111
106
|
var value = option.value ? option.value : option;
|
|
112
107
|
var label = option.label ? option.label : option;
|
|
113
108
|
var key = name + '_options_' + index;
|
|
114
|
-
return React__default
|
|
109
|
+
return React__default.createElement(
|
|
115
110
|
'option',
|
|
116
111
|
{ key: key, value: value },
|
|
117
112
|
label
|
|
@@ -122,25 +117,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
122
117
|
}
|
|
123
118
|
|
|
124
119
|
if (type == 'radio' || type == 'checkbox') {
|
|
125
|
-
return React__default
|
|
120
|
+
return React__default.createElement(
|
|
126
121
|
reactBootstrap.Form.Group,
|
|
127
122
|
opts,
|
|
128
|
-
React__default
|
|
123
|
+
React__default.createElement(
|
|
129
124
|
reactBootstrap.Form.Label,
|
|
130
125
|
null,
|
|
131
126
|
label,
|
|
132
|
-
required && React__default
|
|
127
|
+
required && React__default.createElement(
|
|
133
128
|
'span',
|
|
134
129
|
{ style: { color: 'red' } },
|
|
135
130
|
'*'
|
|
136
131
|
)
|
|
137
132
|
),
|
|
138
133
|
options.map(function (option, index) {
|
|
139
|
-
return React__default
|
|
134
|
+
return React__default.createElement(
|
|
140
135
|
reactBootstrap.Form.Check,
|
|
141
136
|
{ type: type, key: index, required: required },
|
|
142
|
-
React__default
|
|
143
|
-
React__default
|
|
137
|
+
React__default.createElement(reactBootstrap.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 }),
|
|
138
|
+
React__default.createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
144
139
|
);
|
|
145
140
|
})
|
|
146
141
|
);
|
|
@@ -226,7 +221,7 @@ function useUser() {
|
|
|
226
221
|
redirectTo = _ref.redirectTo,
|
|
227
222
|
redirectIfFound = _ref.redirectIfFound;
|
|
228
223
|
|
|
229
|
-
var _useSWR =
|
|
224
|
+
var _useSWR = useSWR('/api/auth/user', dataHandler),
|
|
230
225
|
data = _useSWR.data,
|
|
231
226
|
error = _useSWR.error;
|
|
232
227
|
|
|
@@ -241,7 +236,7 @@ function useUser() {
|
|
|
241
236
|
redirectTo && !redirectIfFound && !hasUser ||
|
|
242
237
|
// If redirectIfFound is also set, redirect if the user was found
|
|
243
238
|
redirectIfFound && hasUser) {
|
|
244
|
-
Router__default
|
|
239
|
+
Router__default.push(redirectTo);
|
|
245
240
|
}
|
|
246
241
|
}, [redirectTo, redirectIfFound, finished, hasUser]);
|
|
247
242
|
|
|
@@ -347,43 +342,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
347
342
|
loading = _useState4[0],
|
|
348
343
|
setLoading = _useState4[1];
|
|
349
344
|
|
|
350
|
-
return React__default
|
|
345
|
+
return React__default.createElement(
|
|
351
346
|
reactBootstrap.Form,
|
|
352
347
|
{ className: 'login', onSubmit: handleSubmit },
|
|
353
|
-
React__default
|
|
348
|
+
React__default.createElement(
|
|
354
349
|
'h1',
|
|
355
350
|
null,
|
|
356
351
|
'Login'
|
|
357
352
|
),
|
|
358
|
-
React__default
|
|
353
|
+
React__default.createElement('hr', null),
|
|
359
354
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
360
355
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
361
|
-
React__default
|
|
362
|
-
React__default
|
|
356
|
+
React__default.createElement('hr', null),
|
|
357
|
+
React__default.createElement(
|
|
363
358
|
reactBootstrap.Form.Row,
|
|
364
359
|
null,
|
|
365
|
-
React__default
|
|
360
|
+
React__default.createElement(
|
|
366
361
|
reactBootstrap.Form.Group,
|
|
367
362
|
{ as: reactBootstrap.Col },
|
|
368
|
-
React__default
|
|
363
|
+
React__default.createElement(
|
|
369
364
|
'a',
|
|
370
365
|
{ href: '/auth/signup' },
|
|
371
366
|
'I don\'t have an account'
|
|
372
367
|
)
|
|
373
368
|
),
|
|
374
|
-
React__default
|
|
369
|
+
React__default.createElement(
|
|
375
370
|
reactBootstrap.Form.Group,
|
|
376
371
|
{ as: reactBootstrap.Col, className: 'text-right' },
|
|
377
|
-
!loading && React__default
|
|
372
|
+
!loading && React__default.createElement(
|
|
378
373
|
reactBootstrap.Button,
|
|
379
374
|
{ type: 'submit' },
|
|
380
375
|
'Login'
|
|
381
376
|
),
|
|
382
|
-
loading && React__default
|
|
377
|
+
loading && React__default.createElement(
|
|
383
378
|
reactBootstrap.Button,
|
|
384
379
|
{ variant: 'primary', disabled: true },
|
|
385
|
-
React__default
|
|
386
|
-
React__default
|
|
380
|
+
React__default.createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
381
|
+
React__default.createElement(
|
|
387
382
|
'span',
|
|
388
383
|
{ className: 'sr-only' },
|
|
389
384
|
'Loading...'
|
|
@@ -391,12 +386,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
391
386
|
)
|
|
392
387
|
)
|
|
393
388
|
),
|
|
394
|
-
errorMsg && React__default
|
|
389
|
+
errorMsg && React__default.createElement(
|
|
395
390
|
'p',
|
|
396
391
|
{ className: 'error' },
|
|
397
392
|
errorMsg
|
|
398
393
|
),
|
|
399
|
-
React__default
|
|
394
|
+
React__default.createElement(
|
|
400
395
|
'style',
|
|
401
396
|
{ jsx: 'true'.toString() },
|
|
402
397
|
'\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 '
|
|
@@ -652,29 +647,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
652
647
|
loading = _useState14[0],
|
|
653
648
|
setLoading = _useState14[1];
|
|
654
649
|
|
|
655
|
-
return React__default
|
|
650
|
+
return React__default.createElement(
|
|
656
651
|
reactBootstrap.Form,
|
|
657
652
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
658
|
-
React__default
|
|
653
|
+
React__default.createElement(
|
|
659
654
|
'h1',
|
|
660
655
|
null,
|
|
661
656
|
'Sign Up'
|
|
662
657
|
),
|
|
663
|
-
React__default
|
|
658
|
+
React__default.createElement('hr', null),
|
|
664
659
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
665
|
-
React__default
|
|
660
|
+
React__default.createElement(
|
|
666
661
|
reactBootstrap.Form.Row,
|
|
667
662
|
null,
|
|
668
663
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: true }),
|
|
669
664
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: true })
|
|
670
665
|
),
|
|
671
|
-
React__default
|
|
666
|
+
React__default.createElement(
|
|
672
667
|
reactBootstrap.Form.Row,
|
|
673
668
|
null,
|
|
674
669
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true }),
|
|
675
670
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true })
|
|
676
671
|
),
|
|
677
|
-
React__default
|
|
672
|
+
React__default.createElement(
|
|
678
673
|
reactBootstrap.Form.Row,
|
|
679
674
|
null,
|
|
680
675
|
returnFormField({
|
|
@@ -688,7 +683,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
688
683
|
}),
|
|
689
684
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states })
|
|
690
685
|
),
|
|
691
|
-
React__default
|
|
686
|
+
React__default.createElement(
|
|
692
687
|
reactBootstrap.Form.Row,
|
|
693
688
|
null,
|
|
694
689
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col }),
|
|
@@ -735,38 +730,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
735
730
|
required: true,
|
|
736
731
|
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' }]
|
|
737
732
|
}),
|
|
738
|
-
React__default
|
|
739
|
-
React__default
|
|
733
|
+
React__default.createElement('hr', null),
|
|
734
|
+
React__default.createElement(
|
|
740
735
|
reactBootstrap.Form.Row,
|
|
741
736
|
null,
|
|
742
|
-
React__default
|
|
737
|
+
React__default.createElement(
|
|
743
738
|
reactBootstrap.Form.Group,
|
|
744
739
|
{ as: reactBootstrap.Col },
|
|
745
|
-
React__default
|
|
740
|
+
React__default.createElement(
|
|
746
741
|
'a',
|
|
747
742
|
{ href: '/auth/login' },
|
|
748
743
|
'I already have an account'
|
|
749
744
|
)
|
|
750
745
|
),
|
|
751
|
-
React__default
|
|
746
|
+
React__default.createElement(
|
|
752
747
|
reactBootstrap.Form.Group,
|
|
753
748
|
{ as: reactBootstrap.Col, className: 'text-right' },
|
|
754
|
-
!loading && React__default
|
|
749
|
+
!loading && React__default.createElement(
|
|
755
750
|
reactBootstrap.Button,
|
|
756
751
|
{ type: 'submit' },
|
|
757
752
|
'Sign Up'
|
|
758
753
|
),
|
|
759
|
-
loading && React__default
|
|
754
|
+
loading && React__default.createElement(
|
|
760
755
|
reactBootstrap.Button,
|
|
761
756
|
{ variant: 'primary', disabled: true },
|
|
762
|
-
React__default
|
|
757
|
+
React__default.createElement(reactBootstrap.Spinner, {
|
|
763
758
|
as: 'span',
|
|
764
759
|
animation: 'border',
|
|
765
760
|
role: 'status',
|
|
766
761
|
'aria-hidden': 'true',
|
|
767
762
|
size: 'sm'
|
|
768
763
|
}),
|
|
769
|
-
React__default
|
|
764
|
+
React__default.createElement(
|
|
770
765
|
'span',
|
|
771
766
|
{ className: 'sr-only' },
|
|
772
767
|
'Loading...'
|
|
@@ -774,12 +769,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
774
769
|
)
|
|
775
770
|
)
|
|
776
771
|
),
|
|
777
|
-
errorMsg && React__default
|
|
772
|
+
errorMsg && React__default.createElement(
|
|
778
773
|
'p',
|
|
779
774
|
{ className: 'error' },
|
|
780
775
|
errorMsg
|
|
781
776
|
),
|
|
782
|
-
React__default
|
|
777
|
+
React__default.createElement(
|
|
783
778
|
'style',
|
|
784
779
|
{ jsx: 'true'.toString() },
|
|
785
780
|
' \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 '
|
|
@@ -1069,32 +1064,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1069
1064
|
loading = _useState18[0],
|
|
1070
1065
|
setLoading = _useState18[1];
|
|
1071
1066
|
|
|
1072
|
-
return React__default
|
|
1067
|
+
return React__default.createElement(
|
|
1073
1068
|
reactBootstrap.Form,
|
|
1074
1069
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1075
|
-
React__default
|
|
1070
|
+
React__default.createElement(
|
|
1076
1071
|
'h1',
|
|
1077
1072
|
null,
|
|
1078
1073
|
'Profile'
|
|
1079
1074
|
),
|
|
1080
|
-
React__default
|
|
1081
|
-
userData ? React__default
|
|
1082
|
-
React__default
|
|
1075
|
+
React__default.createElement('hr', null),
|
|
1076
|
+
userData ? React__default.createElement(
|
|
1077
|
+
React__default.Fragment,
|
|
1083
1078
|
null,
|
|
1084
1079
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1085
|
-
React__default
|
|
1080
|
+
React__default.createElement(
|
|
1086
1081
|
reactBootstrap.Form.Row,
|
|
1087
1082
|
null,
|
|
1088
1083
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: false }),
|
|
1089
1084
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: false })
|
|
1090
1085
|
),
|
|
1091
|
-
React__default
|
|
1086
|
+
React__default.createElement(
|
|
1092
1087
|
reactBootstrap.Form.Row,
|
|
1093
1088
|
null,
|
|
1094
1089
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.first_name }),
|
|
1095
1090
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.last_name })
|
|
1096
1091
|
),
|
|
1097
|
-
React__default
|
|
1092
|
+
React__default.createElement(
|
|
1098
1093
|
reactBootstrap.Form.Row,
|
|
1099
1094
|
null,
|
|
1100
1095
|
returnFormField({
|
|
@@ -1109,7 +1104,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1109
1104
|
}),
|
|
1110
1105
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states, default_value: userData.shared.state })
|
|
1111
1106
|
),
|
|
1112
|
-
React__default
|
|
1107
|
+
React__default.createElement(
|
|
1113
1108
|
reactBootstrap.Form.Row,
|
|
1114
1109
|
null,
|
|
1115
1110
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col, default_value: userData.shared.zip }),
|
|
@@ -1159,29 +1154,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1159
1154
|
required: true,
|
|
1160
1155
|
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' }]
|
|
1161
1156
|
}),
|
|
1162
|
-
React__default
|
|
1163
|
-
React__default
|
|
1157
|
+
React__default.createElement('hr', null),
|
|
1158
|
+
React__default.createElement(
|
|
1164
1159
|
reactBootstrap.Form.Row,
|
|
1165
1160
|
null,
|
|
1166
|
-
React__default
|
|
1161
|
+
React__default.createElement(
|
|
1167
1162
|
reactBootstrap.Form.Group,
|
|
1168
1163
|
{ as: reactBootstrap.Col },
|
|
1169
|
-
!loading && React__default
|
|
1164
|
+
!loading && React__default.createElement(
|
|
1170
1165
|
reactBootstrap.Button,
|
|
1171
1166
|
{ type: 'submit' },
|
|
1172
1167
|
'Update'
|
|
1173
1168
|
),
|
|
1174
|
-
loading && React__default
|
|
1169
|
+
loading && React__default.createElement(
|
|
1175
1170
|
reactBootstrap.Button,
|
|
1176
1171
|
{ variant: 'primary', disabled: true },
|
|
1177
|
-
React__default
|
|
1172
|
+
React__default.createElement(reactBootstrap.Spinner, {
|
|
1178
1173
|
as: 'span',
|
|
1179
1174
|
animation: 'border',
|
|
1180
1175
|
role: 'status',
|
|
1181
1176
|
'aria-hidden': 'true',
|
|
1182
1177
|
size: 'sm'
|
|
1183
1178
|
}),
|
|
1184
|
-
React__default
|
|
1179
|
+
React__default.createElement(
|
|
1185
1180
|
'span',
|
|
1186
1181
|
{ className: 'sr-only' },
|
|
1187
1182
|
'Loading...'
|
|
@@ -1189,24 +1184,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1189
1184
|
)
|
|
1190
1185
|
)
|
|
1191
1186
|
)
|
|
1192
|
-
) : React__default
|
|
1187
|
+
) : React__default.createElement(reactBootstrap.Spinner, {
|
|
1193
1188
|
as: 'span',
|
|
1194
1189
|
animation: 'border',
|
|
1195
1190
|
role: 'status',
|
|
1196
1191
|
'aria-hidden': 'true',
|
|
1197
1192
|
size: 'sm'
|
|
1198
1193
|
}),
|
|
1199
|
-
errorMsg && React__default
|
|
1194
|
+
errorMsg && React__default.createElement(
|
|
1200
1195
|
'p',
|
|
1201
1196
|
{ className: 'error' },
|
|
1202
1197
|
errorMsg
|
|
1203
1198
|
),
|
|
1204
|
-
successMsg && React__default
|
|
1199
|
+
successMsg && React__default.createElement(
|
|
1205
1200
|
'p',
|
|
1206
1201
|
{ className: 'success' },
|
|
1207
1202
|
successMsg
|
|
1208
1203
|
),
|
|
1209
|
-
React__default
|
|
1204
|
+
React__default.createElement(
|
|
1210
1205
|
'style',
|
|
1211
1206
|
{ jsx: 'true'.toString() },
|
|
1212
1207
|
' \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 '
|
|
@@ -1214,12 +1209,213 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1214
1209
|
);
|
|
1215
1210
|
};
|
|
1216
1211
|
|
|
1212
|
+
/*!
|
|
1213
|
+
* cookie
|
|
1214
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1215
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1216
|
+
* MIT Licensed
|
|
1217
|
+
*/
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Module exports.
|
|
1221
|
+
* @public
|
|
1222
|
+
*/
|
|
1223
|
+
|
|
1224
|
+
var parse_1 = parse;
|
|
1225
|
+
var serialize_1 = serialize;
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Module variables.
|
|
1229
|
+
* @private
|
|
1230
|
+
*/
|
|
1231
|
+
|
|
1232
|
+
var decode = decodeURIComponent;
|
|
1233
|
+
var encode = encodeURIComponent;
|
|
1234
|
+
var pairSplitRegExp = /; */;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1238
|
+
*
|
|
1239
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1240
|
+
* field-vchar = VCHAR / obs-text
|
|
1241
|
+
* obs-text = %x80-FF
|
|
1242
|
+
*/
|
|
1243
|
+
|
|
1244
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Parse a cookie header.
|
|
1248
|
+
*
|
|
1249
|
+
* Parse the given cookie header string into an object
|
|
1250
|
+
* The object has the various cookies as keys(names) => values
|
|
1251
|
+
*
|
|
1252
|
+
* @param {string} str
|
|
1253
|
+
* @param {object} [options]
|
|
1254
|
+
* @return {object}
|
|
1255
|
+
* @public
|
|
1256
|
+
*/
|
|
1257
|
+
|
|
1258
|
+
function parse(str, options) {
|
|
1259
|
+
if (typeof str !== 'string') {
|
|
1260
|
+
throw new TypeError('argument str must be a string');
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
var obj = {};
|
|
1264
|
+
var opt = options || {};
|
|
1265
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1266
|
+
var dec = opt.decode || decode;
|
|
1267
|
+
|
|
1268
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1269
|
+
var pair = pairs[i];
|
|
1270
|
+
var eq_idx = pair.indexOf('=');
|
|
1271
|
+
|
|
1272
|
+
// skip things that don't look like key=value
|
|
1273
|
+
if (eq_idx < 0) {
|
|
1274
|
+
continue;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1278
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1279
|
+
|
|
1280
|
+
// quoted values
|
|
1281
|
+
if ('"' == val[0]) {
|
|
1282
|
+
val = val.slice(1, -1);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
// only assign once
|
|
1286
|
+
if (undefined == obj[key]) {
|
|
1287
|
+
obj[key] = tryDecode(val, dec);
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
return obj;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Serialize data into a cookie header.
|
|
1296
|
+
*
|
|
1297
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1298
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1299
|
+
*
|
|
1300
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1301
|
+
* => "foo=bar; httpOnly"
|
|
1302
|
+
*
|
|
1303
|
+
* @param {string} name
|
|
1304
|
+
* @param {string} val
|
|
1305
|
+
* @param {object} [options]
|
|
1306
|
+
* @return {string}
|
|
1307
|
+
* @public
|
|
1308
|
+
*/
|
|
1309
|
+
|
|
1310
|
+
function serialize(name, val, options) {
|
|
1311
|
+
var opt = options || {};
|
|
1312
|
+
var enc = opt.encode || encode;
|
|
1313
|
+
|
|
1314
|
+
if (typeof enc !== 'function') {
|
|
1315
|
+
throw new TypeError('option encode is invalid');
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1319
|
+
throw new TypeError('argument name is invalid');
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
var value = enc(val);
|
|
1323
|
+
|
|
1324
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1325
|
+
throw new TypeError('argument val is invalid');
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
var str = name + '=' + value;
|
|
1329
|
+
|
|
1330
|
+
if (null != opt.maxAge) {
|
|
1331
|
+
var maxAge = opt.maxAge - 0;
|
|
1332
|
+
|
|
1333
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1334
|
+
throw new TypeError('option maxAge is invalid')
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
if (opt.domain) {
|
|
1341
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1342
|
+
throw new TypeError('option domain is invalid');
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
str += '; Domain=' + opt.domain;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
if (opt.path) {
|
|
1349
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1350
|
+
throw new TypeError('option path is invalid');
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
str += '; Path=' + opt.path;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
if (opt.expires) {
|
|
1357
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1358
|
+
throw new TypeError('option expires is invalid');
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
if (opt.httpOnly) {
|
|
1365
|
+
str += '; HttpOnly';
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
if (opt.secure) {
|
|
1369
|
+
str += '; Secure';
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
if (opt.sameSite) {
|
|
1373
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1374
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1375
|
+
|
|
1376
|
+
switch (sameSite) {
|
|
1377
|
+
case true:
|
|
1378
|
+
str += '; SameSite=Strict';
|
|
1379
|
+
break;
|
|
1380
|
+
case 'lax':
|
|
1381
|
+
str += '; SameSite=Lax';
|
|
1382
|
+
break;
|
|
1383
|
+
case 'strict':
|
|
1384
|
+
str += '; SameSite=Strict';
|
|
1385
|
+
break;
|
|
1386
|
+
case 'none':
|
|
1387
|
+
str += '; SameSite=None';
|
|
1388
|
+
break;
|
|
1389
|
+
default:
|
|
1390
|
+
throw new TypeError('option sameSite is invalid');
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
return str;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Try decoding a string using a decoding function.
|
|
1399
|
+
*
|
|
1400
|
+
* @param {string} str
|
|
1401
|
+
* @param {function} decode
|
|
1402
|
+
* @private
|
|
1403
|
+
*/
|
|
1404
|
+
|
|
1405
|
+
function tryDecode(str, decode) {
|
|
1406
|
+
try {
|
|
1407
|
+
return decode(str);
|
|
1408
|
+
} catch (e) {
|
|
1409
|
+
return str;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1217
1413
|
var TOKEN_NAME = 'token';
|
|
1218
1414
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1219
1415
|
|
|
1220
1416
|
function setTokenCookie(res, token, eKey) {
|
|
1221
1417
|
var cookies_serailized = [];
|
|
1222
|
-
cookies_serailized.push(
|
|
1418
|
+
cookies_serailized.push(serialize_1(TOKEN_NAME, token, {
|
|
1223
1419
|
//maxAge: MAX_AGE, // we want login cookie to expire when browser
|
|
1224
1420
|
//expires: new Date(Date.now() + MAX_AGE * 1000),
|
|
1225
1421
|
//httpOnly: true,
|
|
@@ -1228,7 +1424,7 @@ function setTokenCookie(res, token, eKey) {
|
|
|
1228
1424
|
//sameSite: 'lax',
|
|
1229
1425
|
}));
|
|
1230
1426
|
|
|
1231
|
-
cookies_serailized.push(
|
|
1427
|
+
cookies_serailized.push(serialize_1('eKey', eKey, {
|
|
1232
1428
|
//maxAge: MAX_AGE, // we want login cookie to expire when browser
|
|
1233
1429
|
//expires: new Date(Date.now() + MAX_AGE * 1000),
|
|
1234
1430
|
//httpOnly: true,
|
|
@@ -1242,12 +1438,12 @@ function setTokenCookie(res, token, eKey) {
|
|
|
1242
1438
|
|
|
1243
1439
|
function removeTokenCookie(res) {
|
|
1244
1440
|
var cookies_serailized = [];
|
|
1245
|
-
cookies_serailized.push(
|
|
1441
|
+
cookies_serailized.push(serialize_1(TOKEN_NAME, '', {
|
|
1246
1442
|
maxAge: -1,
|
|
1247
1443
|
expires: new Date(Date.now() - MAX_AGE * 1000),
|
|
1248
1444
|
path: '/'
|
|
1249
1445
|
}));
|
|
1250
|
-
cookies_serailized.push(
|
|
1446
|
+
cookies_serailized.push(serialize_1('eKey', '', {
|
|
1251
1447
|
maxAge: -1,
|
|
1252
1448
|
expires: new Date(Date.now() - MAX_AGE * 1000),
|
|
1253
1449
|
path: '/'
|
|
@@ -1262,7 +1458,7 @@ function parseCookies(req) {
|
|
|
1262
1458
|
|
|
1263
1459
|
// For pages we do need to parse the cookies.
|
|
1264
1460
|
var cookie = req.headers ? req.headers.cookie : null;
|
|
1265
|
-
return
|
|
1461
|
+
return parse_1(cookie || '');
|
|
1266
1462
|
}
|
|
1267
1463
|
|
|
1268
1464
|
function getTokenCookie(req) {
|
|
@@ -1854,17 +2050,7 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1854
2050
|
if (value != null) {
|
|
1855
2051
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1856
2052
|
var desc = $gOPD(value, parts[i]);
|
|
1857
|
-
|
|
1858
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1859
|
-
}
|
|
1860
|
-
// By convention, when a data property is converted to an accessor
|
|
1861
|
-
// property to emulate a data property that does not suffer from
|
|
1862
|
-
// the override mistake, that accessor's getter is marked with
|
|
1863
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1864
|
-
// uphold the illusion by pretending to see that original data
|
|
1865
|
-
// property, i.e., returning the value rather than the getter
|
|
1866
|
-
// itself.
|
|
1867
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2053
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1868
2054
|
} else {
|
|
1869
2055
|
value = value[parts[i]];
|
|
1870
2056
|
}
|
|
@@ -1873,42 +2059,18 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1873
2059
|
return value;
|
|
1874
2060
|
};
|
|
1875
2061
|
|
|
1876
|
-
var
|
|
1877
|
-
|
|
2062
|
+
var $Function = GetIntrinsic('%Function%');
|
|
2063
|
+
var $apply = $Function.apply;
|
|
2064
|
+
var $call = $Function.call;
|
|
1878
2065
|
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1883
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1884
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1885
|
-
|
|
1886
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
1887
|
-
|
|
1888
|
-
if ($defineProperty) {
|
|
1889
|
-
try {
|
|
1890
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1891
|
-
} catch (e) {
|
|
1892
|
-
// IE 8 has a broken defineProperty
|
|
1893
|
-
$defineProperty = null;
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
module.exports = function callBind() {
|
|
1898
|
-
return $reflectApply(functionBind, $call, arguments);
|
|
2066
|
+
var callBind = function callBind() {
|
|
2067
|
+
return functionBind.apply($call, arguments);
|
|
1899
2068
|
};
|
|
1900
2069
|
|
|
1901
|
-
var
|
|
1902
|
-
return
|
|
2070
|
+
var apply = function applyBind() {
|
|
2071
|
+
return functionBind.apply($apply, arguments);
|
|
1903
2072
|
};
|
|
1904
|
-
|
|
1905
|
-
if ($defineProperty) {
|
|
1906
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1907
|
-
} else {
|
|
1908
|
-
module.exports.apply = applyBind;
|
|
1909
|
-
}
|
|
1910
|
-
});
|
|
1911
|
-
var callBind_1 = callBind.apply;
|
|
2073
|
+
callBind.apply = apply;
|
|
1912
2074
|
|
|
1913
2075
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
1914
2076
|
|
|
@@ -1920,16 +2082,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1920
2082
|
return intrinsic;
|
|
1921
2083
|
};
|
|
1922
2084
|
|
|
1923
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
1924
|
-
|
|
1925
|
-
if ($defineProperty) {
|
|
1926
|
-
try {
|
|
1927
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1928
|
-
} catch (e) {
|
|
1929
|
-
// IE 8 has a broken defineProperty
|
|
1930
|
-
$defineProperty = null;
|
|
1931
|
-
}
|
|
1932
|
-
}
|
|
2085
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1933
2086
|
|
|
1934
2087
|
|
|
1935
2088
|
|
|
@@ -2032,7 +2185,7 @@ var Type = function Type(x) {
|
|
|
2032
2185
|
}
|
|
2033
2186
|
};
|
|
2034
2187
|
|
|
2035
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-
|
|
2188
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
|
|
2036
2189
|
|
|
2037
2190
|
var Type$1 = function Type$1(x) {
|
|
2038
2191
|
if (typeof x === 'symbol') {
|
|
@@ -2072,277 +2225,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2072
2225
|
return obj;
|
|
2073
2226
|
};
|
|
2074
2227
|
|
|
2075
|
-
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2076
|
-
if ($gOPD$1) {
|
|
2077
|
-
try {
|
|
2078
|
-
$gOPD$1([], 'length');
|
|
2079
|
-
} catch (e) {
|
|
2080
|
-
// IE 8 has a broken gOPD
|
|
2081
|
-
$gOPD$1 = null;
|
|
2082
|
-
}
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2086
|
-
|
|
2087
|
-
var $Array = GetIntrinsic('%Array%');
|
|
2088
|
-
|
|
2089
|
-
// eslint-disable-next-line global-require
|
|
2090
|
-
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2091
|
-
|
|
2092
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2093
|
-
|
|
2094
|
-
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2095
|
-
return toStr$4(argument) === '[object Array]';
|
|
2096
|
-
};
|
|
2097
|
-
|
|
2098
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2099
|
-
|
|
2100
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2101
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2102
|
-
};
|
|
2103
|
-
|
|
2104
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
2105
|
-
var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
|
|
2106
|
-
var hasOwnProperty;
|
|
2107
|
-
var regexExec;
|
|
2108
|
-
var isRegexMarker;
|
|
2109
|
-
var badStringifier;
|
|
2110
|
-
|
|
2111
|
-
if (hasToStringTag) {
|
|
2112
|
-
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2113
|
-
regexExec = Function.call.bind(RegExp.prototype.exec);
|
|
2114
|
-
isRegexMarker = {};
|
|
2115
|
-
|
|
2116
|
-
var throwRegexMarker = function () {
|
|
2117
|
-
throw isRegexMarker;
|
|
2118
|
-
};
|
|
2119
|
-
badStringifier = {
|
|
2120
|
-
toString: throwRegexMarker,
|
|
2121
|
-
valueOf: throwRegexMarker
|
|
2122
|
-
};
|
|
2123
|
-
|
|
2124
|
-
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
2125
|
-
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
var toStr$5 = Object.prototype.toString;
|
|
2130
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2131
|
-
var regexClass = '[object RegExp]';
|
|
2132
|
-
|
|
2133
|
-
var isRegex = hasToStringTag
|
|
2134
|
-
// eslint-disable-next-line consistent-return
|
|
2135
|
-
? function isRegex(value) {
|
|
2136
|
-
if (!value || typeof value !== 'object') {
|
|
2137
|
-
return false;
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2141
|
-
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
|
2142
|
-
if (!hasLastIndexDataProperty) {
|
|
2143
|
-
return false;
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
try {
|
|
2147
|
-
regexExec(value, badStringifier);
|
|
2148
|
-
} catch (e) {
|
|
2149
|
-
return e === isRegexMarker;
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
: function isRegex(value) {
|
|
2153
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2154
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2155
|
-
return false;
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
return toStr$5.call(value) === regexClass;
|
|
2159
|
-
};
|
|
2160
|
-
|
|
2161
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2162
|
-
|
|
2163
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2164
|
-
|
|
2165
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2172
|
-
|
|
2173
|
-
var IsRegExp = function IsRegExp(argument) {
|
|
2174
|
-
if (!argument || typeof argument !== 'object') {
|
|
2175
|
-
return false;
|
|
2176
|
-
}
|
|
2177
|
-
if ($match) {
|
|
2178
|
-
var isRegExp = argument[$match];
|
|
2179
|
-
if (typeof isRegExp !== 'undefined') {
|
|
2180
|
-
return ToBoolean(isRegExp);
|
|
2181
|
-
}
|
|
2182
|
-
}
|
|
2183
|
-
return isRegex(argument);
|
|
2184
|
-
};
|
|
2185
|
-
|
|
2186
|
-
var fnToStr = Function.prototype.toString;
|
|
2187
|
-
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2188
|
-
var badArrayLike;
|
|
2189
|
-
var isCallableMarker;
|
|
2190
|
-
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2191
|
-
try {
|
|
2192
|
-
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2193
|
-
get: function () {
|
|
2194
|
-
throw isCallableMarker;
|
|
2195
|
-
}
|
|
2196
|
-
});
|
|
2197
|
-
isCallableMarker = {};
|
|
2198
|
-
// eslint-disable-next-line no-throw-literal
|
|
2199
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2200
|
-
} catch (_) {
|
|
2201
|
-
if (_ !== isCallableMarker) {
|
|
2202
|
-
reflectApply = null;
|
|
2203
|
-
}
|
|
2204
|
-
}
|
|
2205
|
-
} else {
|
|
2206
|
-
reflectApply = null;
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
var constructorRegex = /^\s*class\b/;
|
|
2210
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2211
|
-
try {
|
|
2212
|
-
var fnStr = fnToStr.call(value);
|
|
2213
|
-
return constructorRegex.test(fnStr);
|
|
2214
|
-
} catch (e) {
|
|
2215
|
-
return false; // not a function
|
|
2216
|
-
}
|
|
2217
|
-
};
|
|
2218
|
-
|
|
2219
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2220
|
-
try {
|
|
2221
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2222
|
-
fnToStr.call(value);
|
|
2223
|
-
return true;
|
|
2224
|
-
} catch (e) {
|
|
2225
|
-
return false;
|
|
2226
|
-
}
|
|
2227
|
-
};
|
|
2228
|
-
var toStr$6 = Object.prototype.toString;
|
|
2229
|
-
var fnClass = '[object Function]';
|
|
2230
|
-
var genClass = '[object GeneratorFunction]';
|
|
2231
|
-
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2232
|
-
|
|
2233
|
-
var isCallable = reflectApply
|
|
2234
|
-
? function isCallable(value) {
|
|
2235
|
-
if (!value) { return false; }
|
|
2236
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2237
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2238
|
-
try {
|
|
2239
|
-
reflectApply(value, null, badArrayLike);
|
|
2240
|
-
} catch (e) {
|
|
2241
|
-
if (e !== isCallableMarker) { return false; }
|
|
2242
|
-
}
|
|
2243
|
-
return !isES6ClassFn(value);
|
|
2244
|
-
}
|
|
2245
|
-
: function isCallable(value) {
|
|
2246
|
-
if (!value) { return false; }
|
|
2247
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2248
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2249
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2250
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2251
|
-
var strClass = toStr$6.call(value);
|
|
2252
|
-
return strClass === fnClass || strClass === genClass;
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2256
|
-
|
|
2257
|
-
var IsCallable = isCallable;
|
|
2258
|
-
|
|
2259
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2266
|
-
|
|
2267
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2268
|
-
if (Type$1(Obj) !== 'Object') {
|
|
2269
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
var desc = {};
|
|
2273
|
-
if (src(Obj, 'enumerable')) {
|
|
2274
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2275
|
-
}
|
|
2276
|
-
if (src(Obj, 'configurable')) {
|
|
2277
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2278
|
-
}
|
|
2279
|
-
if (src(Obj, 'value')) {
|
|
2280
|
-
desc['[[Value]]'] = Obj.value;
|
|
2281
|
-
}
|
|
2282
|
-
if (src(Obj, 'writable')) {
|
|
2283
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2284
|
-
}
|
|
2285
|
-
if (src(Obj, 'get')) {
|
|
2286
|
-
var getter = Obj.get;
|
|
2287
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2288
|
-
throw new $TypeError$2('getter must be a function');
|
|
2289
|
-
}
|
|
2290
|
-
desc['[[Get]]'] = getter;
|
|
2291
|
-
}
|
|
2292
|
-
if (src(Obj, 'set')) {
|
|
2293
|
-
var setter = Obj.set;
|
|
2294
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2295
|
-
throw new $TypeError$2('setter must be a function');
|
|
2296
|
-
}
|
|
2297
|
-
desc['[[Set]]'] = setter;
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2301
|
-
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2302
|
-
}
|
|
2303
|
-
return desc;
|
|
2304
|
-
};
|
|
2305
|
-
|
|
2306
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2321
|
-
|
|
2322
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2323
|
-
if (Type$1(O) !== 'Object') {
|
|
2324
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2325
|
-
}
|
|
2326
|
-
if (!IsPropertyKey(P)) {
|
|
2327
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2328
|
-
}
|
|
2329
|
-
if (!src(O, P)) {
|
|
2330
|
-
return void 0;
|
|
2331
|
-
}
|
|
2332
|
-
if (!getOwnPropertyDescriptor) {
|
|
2333
|
-
// ES3 / IE 8 fallback
|
|
2334
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
2335
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2336
|
-
return {
|
|
2337
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2338
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2339
|
-
'[[Value]]': O[P],
|
|
2340
|
-
'[[Writable]]': true
|
|
2341
|
-
};
|
|
2342
|
-
}
|
|
2343
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2344
|
-
};
|
|
2345
|
-
|
|
2346
2228
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2347
2229
|
|
|
2348
2230
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2376,10 +2258,16 @@ var IsExtensible = $preventExtensions
|
|
|
2376
2258
|
? function IsExtensible(obj) {
|
|
2377
2259
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2378
2260
|
}
|
|
2379
|
-
: function IsExtensible(obj) {
|
|
2380
|
-
return
|
|
2261
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
2262
|
+
return true;
|
|
2381
2263
|
};
|
|
2382
2264
|
|
|
2265
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2266
|
+
|
|
2267
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2268
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2383
2271
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2384
2272
|
return a !== a;
|
|
2385
2273
|
};
|
|
@@ -2394,8 +2282,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2394
2282
|
return _isNaN(x) && _isNaN(y);
|
|
2395
2283
|
};
|
|
2396
2284
|
|
|
2397
|
-
var $
|
|
2398
|
-
|
|
2285
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2286
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2399
2287
|
|
|
2400
2288
|
|
|
2401
2289
|
|
|
@@ -2410,14 +2298,14 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
2410
2298
|
|
|
2411
2299
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2412
2300
|
if (Type$1(O) !== 'Object') {
|
|
2413
|
-
throw new $TypeError$
|
|
2301
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
2414
2302
|
}
|
|
2415
2303
|
if (!IsPropertyKey(P)) {
|
|
2416
|
-
throw new $TypeError$
|
|
2304
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
2417
2305
|
}
|
|
2418
|
-
var oldDesc =
|
|
2419
|
-
var extensible =
|
|
2420
|
-
var immutable = oldDesc && (!oldDesc
|
|
2306
|
+
var oldDesc = $gOPD$1(O, P);
|
|
2307
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2308
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2421
2309
|
if (immutable || !extensible) {
|
|
2422
2310
|
return false;
|
|
2423
2311
|
}
|
|
@@ -2436,13 +2324,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2436
2324
|
);
|
|
2437
2325
|
};
|
|
2438
2326
|
|
|
2439
|
-
var
|
|
2327
|
+
var fnToStr = Function.prototype.toString;
|
|
2328
|
+
|
|
2329
|
+
var constructorRegex = /^\s*class\b/;
|
|
2330
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2331
|
+
try {
|
|
2332
|
+
var fnStr = fnToStr.call(value);
|
|
2333
|
+
return constructorRegex.test(fnStr);
|
|
2334
|
+
} catch (e) {
|
|
2335
|
+
return false; // not a function
|
|
2336
|
+
}
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2339
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2340
|
+
try {
|
|
2341
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2342
|
+
fnToStr.call(value);
|
|
2343
|
+
return true;
|
|
2344
|
+
} catch (e) {
|
|
2345
|
+
return false;
|
|
2346
|
+
}
|
|
2347
|
+
};
|
|
2348
|
+
var toStr$4 = Object.prototype.toString;
|
|
2349
|
+
var fnClass = '[object Function]';
|
|
2350
|
+
var genClass = '[object GeneratorFunction]';
|
|
2351
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2352
|
+
|
|
2353
|
+
var isCallable = function isCallable(value) {
|
|
2354
|
+
if (!value) { return false; }
|
|
2355
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2356
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2357
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2358
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2359
|
+
var strClass = toStr$4.call(value);
|
|
2360
|
+
return strClass === fnClass || strClass === genClass;
|
|
2361
|
+
};
|
|
2362
|
+
|
|
2363
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2364
|
+
|
|
2365
|
+
var IsCallable = isCallable;
|
|
2366
|
+
|
|
2367
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2440
2368
|
|
|
2441
2369
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2442
2370
|
|
|
2443
2371
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2444
2372
|
if (value == null) {
|
|
2445
|
-
throw new $TypeError$
|
|
2373
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
2446
2374
|
}
|
|
2447
2375
|
return value;
|
|
2448
2376
|
};
|
|
@@ -2513,6 +2441,241 @@ defineProperties_1(implementation$2, {
|
|
|
2513
2441
|
|
|
2514
2442
|
var object_getownpropertydescriptors = implementation$2;
|
|
2515
2443
|
|
|
2444
|
+
/* globals
|
|
2445
|
+
Atomics,
|
|
2446
|
+
SharedArrayBuffer,
|
|
2447
|
+
*/
|
|
2448
|
+
|
|
2449
|
+
var undefined$2;
|
|
2450
|
+
|
|
2451
|
+
var $TypeError$4 = TypeError;
|
|
2452
|
+
|
|
2453
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2454
|
+
if ($gOPD$3) {
|
|
2455
|
+
try {
|
|
2456
|
+
$gOPD$3({}, '');
|
|
2457
|
+
} catch (e) {
|
|
2458
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
2463
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
2464
|
+
? (function () {
|
|
2465
|
+
try {
|
|
2466
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2467
|
+
arguments.callee; // IE 8 does not throw here
|
|
2468
|
+
return throwTypeError$1;
|
|
2469
|
+
} catch (calleeThrows) {
|
|
2470
|
+
try {
|
|
2471
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2472
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
2473
|
+
} catch (gOPDthrows) {
|
|
2474
|
+
return throwTypeError$1;
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
}())
|
|
2478
|
+
: throwTypeError$1;
|
|
2479
|
+
|
|
2480
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2481
|
+
|
|
2482
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2483
|
+
var generatorFunction$1 = undefined$2;
|
|
2484
|
+
var asyncFunction$1 = undefined$2;
|
|
2485
|
+
var asyncGenFunction$1 = undefined$2;
|
|
2486
|
+
|
|
2487
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2488
|
+
|
|
2489
|
+
var INTRINSICS$1 = {
|
|
2490
|
+
'%Array%': Array,
|
|
2491
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2492
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2493
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2494
|
+
'%ArrayPrototype%': Array.prototype,
|
|
2495
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2496
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2497
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2498
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
2499
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2500
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
2501
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
2502
|
+
'%AsyncGenerator%': undefined$2,
|
|
2503
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
2504
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2505
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
2506
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2507
|
+
'%Boolean%': Boolean,
|
|
2508
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
2509
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2510
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2511
|
+
'%Date%': Date,
|
|
2512
|
+
'%DatePrototype%': Date.prototype,
|
|
2513
|
+
'%decodeURI%': decodeURI,
|
|
2514
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
2515
|
+
'%encodeURI%': encodeURI,
|
|
2516
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
2517
|
+
'%Error%': Error,
|
|
2518
|
+
'%ErrorPrototype%': Error.prototype,
|
|
2519
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
2520
|
+
'%EvalError%': EvalError,
|
|
2521
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2522
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2523
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2524
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2525
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2526
|
+
'%Function%': Function,
|
|
2527
|
+
'%FunctionPrototype%': Function.prototype,
|
|
2528
|
+
'%Generator%': undefined$2,
|
|
2529
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
2530
|
+
'%GeneratorPrototype%': undefined$2,
|
|
2531
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2532
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2533
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2534
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2535
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2536
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2537
|
+
'%isFinite%': isFinite,
|
|
2538
|
+
'%isNaN%': isNaN,
|
|
2539
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2540
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2541
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2542
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2543
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2544
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2545
|
+
'%Math%': Math,
|
|
2546
|
+
'%Number%': Number,
|
|
2547
|
+
'%NumberPrototype%': Number.prototype,
|
|
2548
|
+
'%Object%': Object,
|
|
2549
|
+
'%ObjectPrototype%': Object.prototype,
|
|
2550
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
2551
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2552
|
+
'%parseFloat%': parseFloat,
|
|
2553
|
+
'%parseInt%': parseInt,
|
|
2554
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2555
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2556
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2557
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2558
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2559
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2560
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2561
|
+
'%RangeError%': RangeError,
|
|
2562
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2563
|
+
'%ReferenceError%': ReferenceError,
|
|
2564
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2565
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2566
|
+
'%RegExp%': RegExp,
|
|
2567
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
2568
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2569
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2570
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2571
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2572
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2573
|
+
'%String%': String,
|
|
2574
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2575
|
+
'%StringPrototype%': String.prototype,
|
|
2576
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
2577
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
2578
|
+
'%SyntaxError%': SyntaxError,
|
|
2579
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2580
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2581
|
+
'%TypedArray%': TypedArray$1,
|
|
2582
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2583
|
+
'%TypeError%': $TypeError$4,
|
|
2584
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
2585
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2586
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2587
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2588
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2589
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2590
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2591
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2592
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2593
|
+
'%URIError%': URIError,
|
|
2594
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
2595
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2596
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2597
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2598
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2599
|
+
};
|
|
2600
|
+
|
|
2601
|
+
|
|
2602
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2603
|
+
|
|
2604
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2605
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2606
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2607
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
2608
|
+
var result = [];
|
|
2609
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2610
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2611
|
+
});
|
|
2612
|
+
return result;
|
|
2613
|
+
};
|
|
2614
|
+
/* end adaptation */
|
|
2615
|
+
|
|
2616
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2617
|
+
if (!(name in INTRINSICS$1)) {
|
|
2618
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2622
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2623
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
return INTRINSICS$1[name];
|
|
2627
|
+
};
|
|
2628
|
+
|
|
2629
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
2630
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
2631
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2632
|
+
}
|
|
2633
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2634
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
var parts = stringToPath$1(name);
|
|
2638
|
+
|
|
2639
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2640
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
2641
|
+
if (value != null) {
|
|
2642
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2643
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
2644
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
2645
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2646
|
+
}
|
|
2647
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2648
|
+
} else {
|
|
2649
|
+
value = value[parts[i]];
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
return value;
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
2657
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
2658
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
2659
|
+
|
|
2660
|
+
var callBind$1 = function callBind() {
|
|
2661
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
2662
|
+
};
|
|
2663
|
+
|
|
2664
|
+
var apply$1 = function applyBind() {
|
|
2665
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
2666
|
+
};
|
|
2667
|
+
callBind$1.apply = apply$1;
|
|
2668
|
+
|
|
2669
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
2670
|
+
|
|
2671
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2672
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
2673
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2674
|
+
return callBind$1(intrinsic);
|
|
2675
|
+
}
|
|
2676
|
+
return intrinsic;
|
|
2677
|
+
};
|
|
2678
|
+
|
|
2516
2679
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2517
2680
|
&& typeof Object.defineProperties === 'function';
|
|
2518
2681
|
|
|
@@ -2530,9 +2693,9 @@ if (typeof Promise !== 'function') {
|
|
|
2530
2693
|
|
|
2531
2694
|
|
|
2532
2695
|
|
|
2533
|
-
var $slice = callBound('Array.prototype.slice');
|
|
2534
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
2535
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
2696
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
2697
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
2698
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2536
2699
|
|
|
2537
2700
|
var hasSymbols$4 = hasSymbols$1();
|
|
2538
2701
|
|
|
@@ -2654,7 +2817,7 @@ function connect() {
|
|
|
2654
2817
|
};
|
|
2655
2818
|
}
|
|
2656
2819
|
|
|
2657
|
-
var connection =
|
|
2820
|
+
var connection = mysql.createConnection(config);
|
|
2658
2821
|
return {
|
|
2659
2822
|
query: function query(sql, args) {
|
|
2660
2823
|
return util.util.promisify(connection.query).call(connection, sql, args);
|
|
@@ -2848,7 +3011,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
2848
3011
|
message = utf8.stringToBytes(message);
|
|
2849
3012
|
else if (isBuffer(message))
|
|
2850
3013
|
message = Array.prototype.slice.call(message, 0);
|
|
2851
|
-
else if (!Array.isArray(message)
|
|
3014
|
+
else if (!Array.isArray(message))
|
|
2852
3015
|
message = message.toString();
|
|
2853
3016
|
// else, assume byte array already
|
|
2854
3017
|
|
|
@@ -3615,7 +3778,7 @@ var user = /*#__PURE__*/Object.freeze({
|
|
|
3615
3778
|
findUser: findUser$1
|
|
3616
3779
|
});
|
|
3617
3780
|
|
|
3618
|
-
var localStrategy = new
|
|
3781
|
+
var localStrategy = new Local.Strategy({
|
|
3619
3782
|
usernameField: 'email',
|
|
3620
3783
|
passwordField: 'password'
|
|
3621
3784
|
}, function (email, password, done) {
|