@mjhls/mjh-framework 1.0.683 → 1.0.684-beta.1
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 +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSkyscraper.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +4 -4
- package/dist/cjs/Auth.js +256 -507
- package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-091a991f.js} +1 -1
- package/dist/cjs/BrowseVideosListing.js +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +7 -7
- package/dist/cjs/DeckQueue.js +6 -6
- package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-f6a18ed2.js} +1 -1
- package/dist/cjs/EventsDeck.js +4 -4
- package/dist/cjs/ExternalResources.js +7 -7
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +4 -4
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +8 -7
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +7 -7
- package/dist/cjs/NavMagazine.js +4 -4
- package/dist/cjs/NavNative.js +3 -3
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +1213 -15
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +256 -18
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/{SocialSearchComponent-6b5e5b47.js → SocialSearchComponent-9cd24578.js} +5 -5
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +2 -2
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +532 -137
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +354 -5
- package/dist/cjs/getSerializers.js +6 -6
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-9af0ef69.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-8c9e8ca7.js → index-c49c3b5e.js} +450 -462
- package/dist/cjs/{index-2d0a4911.js → index-fa8ed292.js} +27 -34
- package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
- package/dist/cjs/index.js +16 -16
- package/dist/cjs/{main-b6c96c8d.js → main-a4cb15bb.js} +36 -67
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +41 -0
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSkyscraper.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +4 -4
- package/dist/esm/Auth.js +248 -499
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/BrowseVideosListing.js +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +7 -7
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-8a8fca18.js → Dfp-96b49def.js} +1 -1
- package/dist/esm/EventsDeck.js +4 -4
- package/dist/esm/ExternalResources.js +7 -7
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +10 -10
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +4 -4
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +8 -7
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +7 -7
- package/dist/esm/NavMagazine.js +4 -4
- package/dist/esm/NavNative.js +3 -3
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +1210 -13
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +256 -18
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/{SocialSearchComponent-7f14e0f3.js → SocialSearchComponent-93233334.js} +5 -5
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesCard.js +2 -2
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/View.js +512 -117
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +354 -5
- package/dist/esm/getSerializers.js +6 -6
- package/dist/esm/{index-93ec3c59.js → index-0e45a0b2.js} +27 -34
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-5505d4f9.js → index-85783f24.js} +450 -462
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
- package/dist/esm/index.js +14 -14
- package/dist/esm/{main-0465b2a0.js → main-5d1e4bd3.js} +34 -65
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +39 -0
- package/dist/esm/urlFor.js +1 -1
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-c676389b.js → ADInfeed-f27bc4b5.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-57d63c87.js → ADlgInfeed-8decfd9e.js} +0 -0
- /package/dist/esm/{ADInfeed-97b8cea7.js → ADInfeed-1e0ca5e0.js} +0 -0
- /package/dist/esm/{ADlgInfeed-3ab91c75.js → ADlgInfeed-979cf0d5.js} +0 -0
package/dist/esm/Auth.js
CHANGED
|
@@ -15,6 +15,7 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c6
|
|
|
15
15
|
import './_set-species-cede29f8.js';
|
|
16
16
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
17
17
|
import { u as util } from './util-7700fc59.js';
|
|
18
|
+
import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
|
|
18
19
|
import useSWR from 'swr';
|
|
19
20
|
import Local from 'passport-local';
|
|
20
21
|
import mysql from 'mysql';
|
|
@@ -1202,207 +1203,6 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1202
1203
|
);
|
|
1203
1204
|
};
|
|
1204
1205
|
|
|
1205
|
-
/*!
|
|
1206
|
-
* cookie
|
|
1207
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1208
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1209
|
-
* MIT Licensed
|
|
1210
|
-
*/
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* Module exports.
|
|
1214
|
-
* @public
|
|
1215
|
-
*/
|
|
1216
|
-
|
|
1217
|
-
var parse_1 = parse;
|
|
1218
|
-
var serialize_1 = serialize;
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* Module variables.
|
|
1222
|
-
* @private
|
|
1223
|
-
*/
|
|
1224
|
-
|
|
1225
|
-
var decode = decodeURIComponent;
|
|
1226
|
-
var encode = encodeURIComponent;
|
|
1227
|
-
var pairSplitRegExp = /; */;
|
|
1228
|
-
|
|
1229
|
-
/**
|
|
1230
|
-
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1231
|
-
*
|
|
1232
|
-
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1233
|
-
* field-vchar = VCHAR / obs-text
|
|
1234
|
-
* obs-text = %x80-FF
|
|
1235
|
-
*/
|
|
1236
|
-
|
|
1237
|
-
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Parse a cookie header.
|
|
1241
|
-
*
|
|
1242
|
-
* Parse the given cookie header string into an object
|
|
1243
|
-
* The object has the various cookies as keys(names) => values
|
|
1244
|
-
*
|
|
1245
|
-
* @param {string} str
|
|
1246
|
-
* @param {object} [options]
|
|
1247
|
-
* @return {object}
|
|
1248
|
-
* @public
|
|
1249
|
-
*/
|
|
1250
|
-
|
|
1251
|
-
function parse(str, options) {
|
|
1252
|
-
if (typeof str !== 'string') {
|
|
1253
|
-
throw new TypeError('argument str must be a string');
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
var obj = {};
|
|
1257
|
-
var opt = options || {};
|
|
1258
|
-
var pairs = str.split(pairSplitRegExp);
|
|
1259
|
-
var dec = opt.decode || decode;
|
|
1260
|
-
|
|
1261
|
-
for (var i = 0; i < pairs.length; i++) {
|
|
1262
|
-
var pair = pairs[i];
|
|
1263
|
-
var eq_idx = pair.indexOf('=');
|
|
1264
|
-
|
|
1265
|
-
// skip things that don't look like key=value
|
|
1266
|
-
if (eq_idx < 0) {
|
|
1267
|
-
continue;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
var key = pair.substr(0, eq_idx).trim();
|
|
1271
|
-
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1272
|
-
|
|
1273
|
-
// quoted values
|
|
1274
|
-
if ('"' == val[0]) {
|
|
1275
|
-
val = val.slice(1, -1);
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
// only assign once
|
|
1279
|
-
if (undefined == obj[key]) {
|
|
1280
|
-
obj[key] = tryDecode(val, dec);
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
return obj;
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
/**
|
|
1288
|
-
* Serialize data into a cookie header.
|
|
1289
|
-
*
|
|
1290
|
-
* Serialize the a name value pair into a cookie string suitable for
|
|
1291
|
-
* http headers. An optional options object specified cookie parameters.
|
|
1292
|
-
*
|
|
1293
|
-
* serialize('foo', 'bar', { httpOnly: true })
|
|
1294
|
-
* => "foo=bar; httpOnly"
|
|
1295
|
-
*
|
|
1296
|
-
* @param {string} name
|
|
1297
|
-
* @param {string} val
|
|
1298
|
-
* @param {object} [options]
|
|
1299
|
-
* @return {string}
|
|
1300
|
-
* @public
|
|
1301
|
-
*/
|
|
1302
|
-
|
|
1303
|
-
function serialize(name, val, options) {
|
|
1304
|
-
var opt = options || {};
|
|
1305
|
-
var enc = opt.encode || encode;
|
|
1306
|
-
|
|
1307
|
-
if (typeof enc !== 'function') {
|
|
1308
|
-
throw new TypeError('option encode is invalid');
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
if (!fieldContentRegExp.test(name)) {
|
|
1312
|
-
throw new TypeError('argument name is invalid');
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
var value = enc(val);
|
|
1316
|
-
|
|
1317
|
-
if (value && !fieldContentRegExp.test(value)) {
|
|
1318
|
-
throw new TypeError('argument val is invalid');
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
var str = name + '=' + value;
|
|
1322
|
-
|
|
1323
|
-
if (null != opt.maxAge) {
|
|
1324
|
-
var maxAge = opt.maxAge - 0;
|
|
1325
|
-
|
|
1326
|
-
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1327
|
-
throw new TypeError('option maxAge is invalid')
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
if (opt.domain) {
|
|
1334
|
-
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1335
|
-
throw new TypeError('option domain is invalid');
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
str += '; Domain=' + opt.domain;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
if (opt.path) {
|
|
1342
|
-
if (!fieldContentRegExp.test(opt.path)) {
|
|
1343
|
-
throw new TypeError('option path is invalid');
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
str += '; Path=' + opt.path;
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
if (opt.expires) {
|
|
1350
|
-
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1351
|
-
throw new TypeError('option expires is invalid');
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
str += '; Expires=' + opt.expires.toUTCString();
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
if (opt.httpOnly) {
|
|
1358
|
-
str += '; HttpOnly';
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
if (opt.secure) {
|
|
1362
|
-
str += '; Secure';
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
if (opt.sameSite) {
|
|
1366
|
-
var sameSite = typeof opt.sameSite === 'string'
|
|
1367
|
-
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1368
|
-
|
|
1369
|
-
switch (sameSite) {
|
|
1370
|
-
case true:
|
|
1371
|
-
str += '; SameSite=Strict';
|
|
1372
|
-
break;
|
|
1373
|
-
case 'lax':
|
|
1374
|
-
str += '; SameSite=Lax';
|
|
1375
|
-
break;
|
|
1376
|
-
case 'strict':
|
|
1377
|
-
str += '; SameSite=Strict';
|
|
1378
|
-
break;
|
|
1379
|
-
case 'none':
|
|
1380
|
-
str += '; SameSite=None';
|
|
1381
|
-
break;
|
|
1382
|
-
default:
|
|
1383
|
-
throw new TypeError('option sameSite is invalid');
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
return str;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
/**
|
|
1391
|
-
* Try decoding a string using a decoding function.
|
|
1392
|
-
*
|
|
1393
|
-
* @param {string} str
|
|
1394
|
-
* @param {function} decode
|
|
1395
|
-
* @private
|
|
1396
|
-
*/
|
|
1397
|
-
|
|
1398
|
-
function tryDecode(str, decode) {
|
|
1399
|
-
try {
|
|
1400
|
-
return decode(str);
|
|
1401
|
-
} catch (e) {
|
|
1402
|
-
return str;
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
1206
|
var TOKEN_NAME = 'token';
|
|
1407
1207
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1408
1208
|
|
|
@@ -2043,6 +1843,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
2043
1843
|
if (value != null) {
|
|
2044
1844
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
2045
1845
|
var desc = $gOPD(value, parts[i]);
|
|
1846
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
1847
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1848
|
+
}
|
|
2046
1849
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2047
1850
|
} else {
|
|
2048
1851
|
value = value[parts[i]];
|
|
@@ -2075,7 +1878,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
2075
1878
|
return intrinsic;
|
|
2076
1879
|
};
|
|
2077
1880
|
|
|
2078
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1881
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
1882
|
+
|
|
1883
|
+
if ($defineProperty) {
|
|
1884
|
+
try {
|
|
1885
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
1886
|
+
} catch (e) {
|
|
1887
|
+
// IE 8 has a broken defineProperty
|
|
1888
|
+
$defineProperty = null;
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
2079
1891
|
|
|
2080
1892
|
|
|
2081
1893
|
|
|
@@ -2218,6 +2030,224 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2218
2030
|
return obj;
|
|
2219
2031
|
};
|
|
2220
2032
|
|
|
2033
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2034
|
+
if ($gOPD$1) {
|
|
2035
|
+
try {
|
|
2036
|
+
$gOPD$1([], 'length');
|
|
2037
|
+
} catch (e) {
|
|
2038
|
+
// IE 8 has a broken gOPD
|
|
2039
|
+
$gOPD$1 = null;
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2044
|
+
|
|
2045
|
+
var $Array = GetIntrinsic('%Array%');
|
|
2046
|
+
|
|
2047
|
+
// eslint-disable-next-line global-require
|
|
2048
|
+
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2049
|
+
|
|
2050
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2051
|
+
|
|
2052
|
+
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2053
|
+
return toStr$4(argument) === '[object Array]';
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2057
|
+
|
|
2058
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2059
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
var regexExec = RegExp.prototype.exec;
|
|
2063
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2064
|
+
|
|
2065
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
2066
|
+
try {
|
|
2067
|
+
var lastIndex = value.lastIndex;
|
|
2068
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
2069
|
+
|
|
2070
|
+
regexExec.call(value);
|
|
2071
|
+
return true;
|
|
2072
|
+
} catch (e) {
|
|
2073
|
+
return false;
|
|
2074
|
+
} finally {
|
|
2075
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
2076
|
+
}
|
|
2077
|
+
};
|
|
2078
|
+
var toStr$5 = Object.prototype.toString;
|
|
2079
|
+
var regexClass = '[object RegExp]';
|
|
2080
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2081
|
+
|
|
2082
|
+
var isRegex = function isRegex(value) {
|
|
2083
|
+
if (!value || typeof value !== 'object') {
|
|
2084
|
+
return false;
|
|
2085
|
+
}
|
|
2086
|
+
if (!hasToStringTag) {
|
|
2087
|
+
return toStr$5.call(value) === regexClass;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
2091
|
+
var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
|
|
2092
|
+
if (!hasLastIndexDataProperty) {
|
|
2093
|
+
return false;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
return tryRegexExecCall(value);
|
|
2097
|
+
};
|
|
2098
|
+
|
|
2099
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2100
|
+
|
|
2101
|
+
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2102
|
+
|
|
2103
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2110
|
+
|
|
2111
|
+
var IsRegExp = function IsRegExp(argument) {
|
|
2112
|
+
if (!argument || typeof argument !== 'object') {
|
|
2113
|
+
return false;
|
|
2114
|
+
}
|
|
2115
|
+
if ($match) {
|
|
2116
|
+
var isRegExp = argument[$match];
|
|
2117
|
+
if (typeof isRegExp !== 'undefined') {
|
|
2118
|
+
return ToBoolean(isRegExp);
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
return isRegex(argument);
|
|
2122
|
+
};
|
|
2123
|
+
|
|
2124
|
+
var fnToStr = Function.prototype.toString;
|
|
2125
|
+
|
|
2126
|
+
var constructorRegex = /^\s*class\b/;
|
|
2127
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2128
|
+
try {
|
|
2129
|
+
var fnStr = fnToStr.call(value);
|
|
2130
|
+
return constructorRegex.test(fnStr);
|
|
2131
|
+
} catch (e) {
|
|
2132
|
+
return false; // not a function
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
|
|
2136
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2137
|
+
try {
|
|
2138
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2139
|
+
fnToStr.call(value);
|
|
2140
|
+
return true;
|
|
2141
|
+
} catch (e) {
|
|
2142
|
+
return false;
|
|
2143
|
+
}
|
|
2144
|
+
};
|
|
2145
|
+
var toStr$6 = Object.prototype.toString;
|
|
2146
|
+
var fnClass = '[object Function]';
|
|
2147
|
+
var genClass = '[object GeneratorFunction]';
|
|
2148
|
+
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2149
|
+
|
|
2150
|
+
var isCallable = function isCallable(value) {
|
|
2151
|
+
if (!value) { return false; }
|
|
2152
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2153
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2154
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2155
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2156
|
+
var strClass = toStr$6.call(value);
|
|
2157
|
+
return strClass === fnClass || strClass === genClass;
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2160
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2161
|
+
|
|
2162
|
+
var IsCallable = isCallable;
|
|
2163
|
+
|
|
2164
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2171
|
+
|
|
2172
|
+
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2173
|
+
if (Type$1(Obj) !== 'Object') {
|
|
2174
|
+
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
var desc = {};
|
|
2178
|
+
if (src(Obj, 'enumerable')) {
|
|
2179
|
+
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2180
|
+
}
|
|
2181
|
+
if (src(Obj, 'configurable')) {
|
|
2182
|
+
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2183
|
+
}
|
|
2184
|
+
if (src(Obj, 'value')) {
|
|
2185
|
+
desc['[[Value]]'] = Obj.value;
|
|
2186
|
+
}
|
|
2187
|
+
if (src(Obj, 'writable')) {
|
|
2188
|
+
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2189
|
+
}
|
|
2190
|
+
if (src(Obj, 'get')) {
|
|
2191
|
+
var getter = Obj.get;
|
|
2192
|
+
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2193
|
+
throw new TypeError('getter must be a function');
|
|
2194
|
+
}
|
|
2195
|
+
desc['[[Get]]'] = getter;
|
|
2196
|
+
}
|
|
2197
|
+
if (src(Obj, 'set')) {
|
|
2198
|
+
var setter = Obj.set;
|
|
2199
|
+
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2200
|
+
throw new $TypeError$2('setter must be a function');
|
|
2201
|
+
}
|
|
2202
|
+
desc['[[Set]]'] = setter;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2206
|
+
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2207
|
+
}
|
|
2208
|
+
return desc;
|
|
2209
|
+
};
|
|
2210
|
+
|
|
2211
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2226
|
+
|
|
2227
|
+
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2228
|
+
if (Type$1(O) !== 'Object') {
|
|
2229
|
+
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2230
|
+
}
|
|
2231
|
+
if (!IsPropertyKey(P)) {
|
|
2232
|
+
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2233
|
+
}
|
|
2234
|
+
if (!src(O, P)) {
|
|
2235
|
+
return void 0;
|
|
2236
|
+
}
|
|
2237
|
+
if (!getOwnPropertyDescriptor) {
|
|
2238
|
+
// ES3 / IE 8 fallback
|
|
2239
|
+
var arrayLength = IsArray(O) && P === 'length';
|
|
2240
|
+
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2241
|
+
return {
|
|
2242
|
+
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2243
|
+
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2244
|
+
'[[Value]]': O[P],
|
|
2245
|
+
'[[Writable]]': true
|
|
2246
|
+
};
|
|
2247
|
+
}
|
|
2248
|
+
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2221
2251
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2222
2252
|
|
|
2223
2253
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2251,16 +2281,10 @@ var IsExtensible = $preventExtensions
|
|
|
2251
2281
|
? function IsExtensible(obj) {
|
|
2252
2282
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2253
2283
|
}
|
|
2254
|
-
: function IsExtensible(obj) {
|
|
2255
|
-
return
|
|
2284
|
+
: function IsExtensible(obj) {
|
|
2285
|
+
return !isPrimitive(obj);
|
|
2256
2286
|
};
|
|
2257
2287
|
|
|
2258
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2259
|
-
|
|
2260
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2261
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2262
|
-
};
|
|
2263
|
-
|
|
2264
2288
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2265
2289
|
return a !== a;
|
|
2266
2290
|
};
|
|
@@ -2275,8 +2299,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2275
2299
|
return _isNaN(x) && _isNaN(y);
|
|
2276
2300
|
};
|
|
2277
2301
|
|
|
2278
|
-
var $
|
|
2279
|
-
|
|
2302
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
2303
|
+
|
|
2280
2304
|
|
|
2281
2305
|
|
|
2282
2306
|
|
|
@@ -2291,12 +2315,12 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
|
2291
2315
|
|
|
2292
2316
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2293
2317
|
if (Type$1(O) !== 'Object') {
|
|
2294
|
-
throw new $TypeError$
|
|
2318
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
2295
2319
|
}
|
|
2296
2320
|
if (!IsPropertyKey(P)) {
|
|
2297
|
-
throw new $TypeError$
|
|
2321
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2298
2322
|
}
|
|
2299
|
-
var oldDesc =
|
|
2323
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2300
2324
|
var extensible = oldDesc || IsExtensible(O);
|
|
2301
2325
|
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2302
2326
|
if (immutable || !extensible) {
|
|
@@ -2317,53 +2341,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2317
2341
|
);
|
|
2318
2342
|
};
|
|
2319
2343
|
|
|
2320
|
-
var
|
|
2321
|
-
|
|
2322
|
-
var constructorRegex = /^\s*class\b/;
|
|
2323
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2324
|
-
try {
|
|
2325
|
-
var fnStr = fnToStr.call(value);
|
|
2326
|
-
return constructorRegex.test(fnStr);
|
|
2327
|
-
} catch (e) {
|
|
2328
|
-
return false; // not a function
|
|
2329
|
-
}
|
|
2330
|
-
};
|
|
2331
|
-
|
|
2332
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2333
|
-
try {
|
|
2334
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2335
|
-
fnToStr.call(value);
|
|
2336
|
-
return true;
|
|
2337
|
-
} catch (e) {
|
|
2338
|
-
return false;
|
|
2339
|
-
}
|
|
2340
|
-
};
|
|
2341
|
-
var toStr$4 = Object.prototype.toString;
|
|
2342
|
-
var fnClass = '[object Function]';
|
|
2343
|
-
var genClass = '[object GeneratorFunction]';
|
|
2344
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2345
|
-
|
|
2346
|
-
var isCallable = function isCallable(value) {
|
|
2347
|
-
if (!value) { return false; }
|
|
2348
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2349
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2350
|
-
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2351
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2352
|
-
var strClass = toStr$4.call(value);
|
|
2353
|
-
return strClass === fnClass || strClass === genClass;
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2357
|
-
|
|
2358
|
-
var IsCallable = isCallable;
|
|
2359
|
-
|
|
2360
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2344
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
2361
2345
|
|
|
2362
2346
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2363
2347
|
|
|
2364
2348
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2365
2349
|
if (value == null) {
|
|
2366
|
-
throw new $TypeError$
|
|
2350
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
2367
2351
|
}
|
|
2368
2352
|
return value;
|
|
2369
2353
|
};
|
|
@@ -2434,241 +2418,6 @@ defineProperties_1(implementation$2, {
|
|
|
2434
2418
|
|
|
2435
2419
|
var object_getownpropertydescriptors = implementation$2;
|
|
2436
2420
|
|
|
2437
|
-
/* globals
|
|
2438
|
-
Atomics,
|
|
2439
|
-
SharedArrayBuffer,
|
|
2440
|
-
*/
|
|
2441
|
-
|
|
2442
|
-
var undefined$2;
|
|
2443
|
-
|
|
2444
|
-
var $TypeError$4 = TypeError;
|
|
2445
|
-
|
|
2446
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2447
|
-
if ($gOPD$3) {
|
|
2448
|
-
try {
|
|
2449
|
-
$gOPD$3({}, '');
|
|
2450
|
-
} catch (e) {
|
|
2451
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2452
|
-
}
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
2456
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
2457
|
-
? (function () {
|
|
2458
|
-
try {
|
|
2459
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2460
|
-
arguments.callee; // IE 8 does not throw here
|
|
2461
|
-
return throwTypeError$1;
|
|
2462
|
-
} catch (calleeThrows) {
|
|
2463
|
-
try {
|
|
2464
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2465
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
2466
|
-
} catch (gOPDthrows) {
|
|
2467
|
-
return throwTypeError$1;
|
|
2468
|
-
}
|
|
2469
|
-
}
|
|
2470
|
-
}())
|
|
2471
|
-
: throwTypeError$1;
|
|
2472
|
-
|
|
2473
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
2474
|
-
|
|
2475
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2476
|
-
var generatorFunction$1 = undefined$2;
|
|
2477
|
-
var asyncFunction$1 = undefined$2;
|
|
2478
|
-
var asyncGenFunction$1 = undefined$2;
|
|
2479
|
-
|
|
2480
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2481
|
-
|
|
2482
|
-
var INTRINSICS$1 = {
|
|
2483
|
-
'%Array%': Array,
|
|
2484
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2485
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2486
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2487
|
-
'%ArrayPrototype%': Array.prototype,
|
|
2488
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2489
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2490
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2491
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
2492
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2493
|
-
'%AsyncFunction%': asyncFunction$1,
|
|
2494
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
2495
|
-
'%AsyncGenerator%': undefined$2,
|
|
2496
|
-
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
2497
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2498
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
2499
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2500
|
-
'%Boolean%': Boolean,
|
|
2501
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
2502
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2503
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2504
|
-
'%Date%': Date,
|
|
2505
|
-
'%DatePrototype%': Date.prototype,
|
|
2506
|
-
'%decodeURI%': decodeURI,
|
|
2507
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
2508
|
-
'%encodeURI%': encodeURI,
|
|
2509
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
2510
|
-
'%Error%': Error,
|
|
2511
|
-
'%ErrorPrototype%': Error.prototype,
|
|
2512
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
2513
|
-
'%EvalError%': EvalError,
|
|
2514
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2515
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2516
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2517
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2518
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2519
|
-
'%Function%': Function,
|
|
2520
|
-
'%FunctionPrototype%': Function.prototype,
|
|
2521
|
-
'%Generator%': undefined$2,
|
|
2522
|
-
'%GeneratorFunction%': generatorFunction$1,
|
|
2523
|
-
'%GeneratorPrototype%': undefined$2,
|
|
2524
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2525
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2526
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2527
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2528
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2529
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2530
|
-
'%isFinite%': isFinite,
|
|
2531
|
-
'%isNaN%': isNaN,
|
|
2532
|
-
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2533
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2534
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2535
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2536
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2537
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2538
|
-
'%Math%': Math,
|
|
2539
|
-
'%Number%': Number,
|
|
2540
|
-
'%NumberPrototype%': Number.prototype,
|
|
2541
|
-
'%Object%': Object,
|
|
2542
|
-
'%ObjectPrototype%': Object.prototype,
|
|
2543
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
2544
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2545
|
-
'%parseFloat%': parseFloat,
|
|
2546
|
-
'%parseInt%': parseInt,
|
|
2547
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2548
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2549
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2550
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2551
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2552
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2553
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2554
|
-
'%RangeError%': RangeError,
|
|
2555
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2556
|
-
'%ReferenceError%': ReferenceError,
|
|
2557
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2558
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2559
|
-
'%RegExp%': RegExp,
|
|
2560
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
2561
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2562
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2563
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2564
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2565
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2566
|
-
'%String%': String,
|
|
2567
|
-
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2568
|
-
'%StringPrototype%': String.prototype,
|
|
2569
|
-
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
2570
|
-
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
2571
|
-
'%SyntaxError%': SyntaxError,
|
|
2572
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2573
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2574
|
-
'%TypedArray%': TypedArray$1,
|
|
2575
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2576
|
-
'%TypeError%': $TypeError$4,
|
|
2577
|
-
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
2578
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2579
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2580
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2581
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2582
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2583
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2584
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2585
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2586
|
-
'%URIError%': URIError,
|
|
2587
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
2588
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2589
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2590
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2591
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2592
|
-
};
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2596
|
-
|
|
2597
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2598
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2599
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2600
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
2601
|
-
var result = [];
|
|
2602
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2603
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2604
|
-
});
|
|
2605
|
-
return result;
|
|
2606
|
-
};
|
|
2607
|
-
/* end adaptation */
|
|
2608
|
-
|
|
2609
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2610
|
-
if (!(name in INTRINSICS$1)) {
|
|
2611
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2615
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2616
|
-
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
|
-
return INTRINSICS$1[name];
|
|
2620
|
-
};
|
|
2621
|
-
|
|
2622
|
-
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
2623
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
2624
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2625
|
-
}
|
|
2626
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2627
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
var parts = stringToPath$1(name);
|
|
2631
|
-
|
|
2632
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2633
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
2634
|
-
if (value != null) {
|
|
2635
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2636
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
2637
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
2638
|
-
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2639
|
-
}
|
|
2640
|
-
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2641
|
-
} else {
|
|
2642
|
-
value = value[parts[i]];
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2645
|
-
}
|
|
2646
|
-
return value;
|
|
2647
|
-
};
|
|
2648
|
-
|
|
2649
|
-
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
2650
|
-
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
2651
|
-
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
2652
|
-
|
|
2653
|
-
var callBind$1 = function callBind() {
|
|
2654
|
-
return $reflectApply(functionBind, $call$1, arguments);
|
|
2655
|
-
};
|
|
2656
|
-
|
|
2657
|
-
var apply$1 = function applyBind() {
|
|
2658
|
-
return $reflectApply(functionBind, $apply$1, arguments);
|
|
2659
|
-
};
|
|
2660
|
-
callBind$1.apply = apply$1;
|
|
2661
|
-
|
|
2662
|
-
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
2663
|
-
|
|
2664
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2665
|
-
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
2666
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2667
|
-
return callBind$1(intrinsic);
|
|
2668
|
-
}
|
|
2669
|
-
return intrinsic;
|
|
2670
|
-
};
|
|
2671
|
-
|
|
2672
2421
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2673
2422
|
&& typeof Object.defineProperties === 'function';
|
|
2674
2423
|
|
|
@@ -2686,14 +2435,14 @@ if (typeof Promise !== 'function') {
|
|
|
2686
2435
|
|
|
2687
2436
|
|
|
2688
2437
|
|
|
2689
|
-
var $slice = callBound
|
|
2690
|
-
var $concat$1 = callBound
|
|
2691
|
-
var $forEach = callBound
|
|
2438
|
+
var $slice = callBound('Array.prototype.slice');
|
|
2439
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2440
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
2692
2441
|
|
|
2693
|
-
var hasSymbols$
|
|
2442
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2694
2443
|
|
|
2695
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2696
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2444
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
2445
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
2697
2446
|
|
|
2698
2447
|
var implementation$3 = function promisify(orig) {
|
|
2699
2448
|
if (typeof orig !== 'function') {
|
|
@@ -2703,7 +2452,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2703
2452
|
throw error;
|
|
2704
2453
|
}
|
|
2705
2454
|
|
|
2706
|
-
if (hasSymbols$
|
|
2455
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
2707
2456
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2708
2457
|
if (typeof customFunction !== 'function') {
|
|
2709
2458
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|