@mjhls/mjh-framework 1.0.326 → 1.0.328
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 +171 -171
- package/dist/cjs/{ADInfeed-b042a194.js → ADInfeed-d58f7a88.js} +1 -1
- package/dist/cjs/{AdSlot-c5bff604.js → AdSlot-c8f07bcf.js} +3 -3
- package/dist/cjs/DeckContent.js +18 -18
- package/dist/cjs/DeckQueue.js +8 -8
- package/dist/cjs/{Dfp-9ede68c7.js → Dfp-fc16f64b.js} +2 -2
- package/dist/cjs/{Figure-a47ec3a7.js → Figure-6805ef02.js} +1 -1
- package/dist/cjs/{GridContent-9f212ec5.js → GridContent-70d80f27.js} +12 -12
- package/dist/cjs/GridContent.js +11 -11
- package/dist/cjs/GroupDeck.js +4 -4
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +16 -16
- package/dist/cjs/{Normal-c85aee96.js → Normal-cc2f9b2f.js} +39 -39
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +11 -11
- package/dist/cjs/{TaxonomyCard-e36602e8.js → TaxonomyCard-0b6bc8db.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +6 -6
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/{debounce-528ad412.js → debounce-ba3eaee2.js} +6 -4
- package/dist/cjs/{get-3b23d857.js → get-de2660c3.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/index.js +858 -1213
- package/dist/cjs/{inherits-7548e3e8.js → inherits-d1613ef1.js} +1 -1
- package/dist/cjs/{main-987c23c6.js → main-6a82a5d2.js} +35 -66
- package/dist/cjs/{promise-3b44b2a3.js → promise-60431c75.js} +2 -2
- package/dist/cjs/{toConsumableArray-34b5e9a7.js → toConsumableArray-82ec1016.js} +1 -1
- package/dist/cjs/{visibility-sensor-c2ccc22d.js → visibility-sensor-b72d9527.js} +2 -4
- package/dist/esm/{ADInfeed-aadcfc25.js → ADInfeed-c42432d8.js} +1 -1
- package/dist/esm/{AdSlot-8946358f.js → AdSlot-4a85e252.js} +3 -3
- package/dist/esm/DeckContent.js +18 -18
- package/dist/esm/DeckQueue.js +8 -8
- package/dist/esm/{Dfp-9293acfb.js → Dfp-1cde9792.js} +2 -2
- package/dist/esm/{Figure-584ac0c8.js → Figure-ddfa279d.js} +1 -1
- package/dist/esm/{GridContent-13be42a1.js → GridContent-55e6512a.js} +12 -12
- package/dist/esm/GridContent.js +11 -11
- package/dist/esm/GroupDeck.js +4 -4
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +16 -16
- package/dist/esm/{Normal-cbddc3c0.js → Normal-63478e2d.js} +39 -39
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +11 -11
- package/dist/esm/{TaxonomyCard-89325080.js → TaxonomyCard-c036f1c3.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +6 -6
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{debounce-702eb224.js → debounce-93ab8f80.js} +6 -4
- package/dist/esm/{get-36d03764.js → get-9c285a85.js} +1 -1
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/index.js +861 -1216
- package/dist/esm/{inherits-4b85034c.js → inherits-424c89e9.js} +1 -1
- package/dist/esm/{main-cb86f95d.js → main-9ae8991d.js} +34 -65
- package/dist/esm/{promise-86cb8313.js → promise-e4a5eb9f.js} +2 -2
- package/dist/esm/{toConsumableArray-2718dc16.js → toConsumableArray-ec38f5fe.js} +1 -1
- package/dist/esm/{visibility-sensor-3cea5efb.js → visibility-sensor-336093e1.js} +2 -4
- package/package.json +104 -104
package/dist/esm/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { _ as _objectKeys, a as _toObject, b as _core } from './_to-object-b9b796ec.js';
|
|
3
3
|
import './web.dom.iterable-7e9bebf9.js';
|
|
4
|
-
import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-
|
|
5
|
-
import { m as
|
|
6
|
-
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-
|
|
4
|
+
import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-93ab8f80.js';
|
|
5
|
+
import { m as main_36, a as main_16, b as main_35 } from './main-9ae8991d.js';
|
|
6
|
+
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-ec38f5fe.js';
|
|
7
7
|
import { _ as _extends$2, a as _Object$assign } from './extends-26d3b609.js';
|
|
8
|
-
import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-
|
|
8
|
+
import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-424c89e9.js';
|
|
9
9
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import Container from 'react-bootstrap/Container';
|
|
12
12
|
import Row from 'react-bootstrap/Row';
|
|
13
13
|
import Col from 'react-bootstrap/Col';
|
|
14
14
|
import 'react-bootstrap/Card';
|
|
15
|
-
import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-
|
|
15
|
+
import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-336093e1.js';
|
|
16
16
|
import Link from 'next/link';
|
|
17
17
|
import Router, { useRouter } from 'next/router';
|
|
18
18
|
import 'react-dom';
|
|
19
|
-
import { i as imageUrlBuilder } from './index-
|
|
19
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
20
20
|
import './index-5f9f807a.js';
|
|
21
21
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
22
22
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-a47a84a4.js';
|
|
23
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
24
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
25
|
-
import './promise-
|
|
26
|
-
import './ADInfeed-
|
|
23
|
+
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-4a85e252.js';
|
|
24
|
+
export { D as AdSlot, B as Beam } from './AdSlot-4a85e252.js';
|
|
25
|
+
import './promise-e4a5eb9f.js';
|
|
26
|
+
import './ADInfeed-c42432d8.js';
|
|
27
27
|
export { default as DeckContent } from './DeckContent.js';
|
|
28
|
-
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-
|
|
29
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
28
|
+
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-9c285a85.js';
|
|
29
|
+
export { A as AD, G as GridContent } from './GridContent-55e6512a.js';
|
|
30
30
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
31
31
|
import 'react-bootstrap/Media';
|
|
32
32
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
33
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
34
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
33
|
+
import { B as BlockContent } from './TaxonomyCard-c036f1c3.js';
|
|
34
|
+
export { T as TaxonomyCard } from './TaxonomyCard-c036f1c3.js';
|
|
35
35
|
import './react-social-icons-a7d5c5c7.js';
|
|
36
36
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
37
37
|
import GroupDeck from './GroupDeck.js';
|
|
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
48
48
|
import 'react-bootstrap/Badge';
|
|
49
49
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
50
50
|
import Spinner from 'react-bootstrap/Spinner';
|
|
51
|
-
import { M as MdPictureAsPdf } from './Normal-
|
|
52
|
-
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-
|
|
51
|
+
import { M as MdPictureAsPdf } from './Normal-63478e2d.js';
|
|
52
|
+
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-63478e2d.js';
|
|
53
53
|
import 'react-bootstrap/ListGroup';
|
|
54
54
|
import Head from 'next/head';
|
|
55
55
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -71,6 +71,7 @@ export { U as Ustream } from './Ustream-d8cc3cbd.js';
|
|
|
71
71
|
import useSWR from 'swr';
|
|
72
72
|
import Local from 'passport-local';
|
|
73
73
|
import mysql from 'mysql';
|
|
74
|
+
import md5 from 'md5';
|
|
74
75
|
|
|
75
76
|
var momentTimezone = createCommonjsModule(function (module) {
|
|
76
77
|
//! moment-timezone.js
|
|
@@ -2150,7 +2151,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2150
2151
|
)
|
|
2151
2152
|
)
|
|
2152
2153
|
),
|
|
2153
|
-
|
|
2154
|
+
main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2154
2155
|
'div',
|
|
2155
2156
|
{ style: { margin: '0 auto' } },
|
|
2156
2157
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2541,7 +2542,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2541
2542
|
)
|
|
2542
2543
|
)
|
|
2543
2544
|
),
|
|
2544
|
-
|
|
2545
|
+
main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2545
2546
|
'div',
|
|
2546
2547
|
{ style: { margin: '0 auto' } },
|
|
2547
2548
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2830,7 +2831,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2830
2831
|
pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
|
|
2831
2832
|
|
|
2832
2833
|
var mobileView = false;
|
|
2833
|
-
if (
|
|
2834
|
+
if (main_36) {
|
|
2834
2835
|
pos = 'rect1-mobile';
|
|
2835
2836
|
mobileView = true;
|
|
2836
2837
|
}
|
|
@@ -2862,7 +2863,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2862
2863
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
2863
2864
|
|
|
2864
2865
|
var mobileView = false;
|
|
2865
|
-
if (
|
|
2866
|
+
if (main_36) {
|
|
2866
2867
|
pos = 'rect2-mobile';
|
|
2867
2868
|
mobileView = true;
|
|
2868
2869
|
}
|
|
@@ -2960,14 +2961,14 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2960
2961
|
publication_url: targeting.publication_url
|
|
2961
2962
|
};
|
|
2962
2963
|
|
|
2963
|
-
var _useState = useState(
|
|
2964
|
+
var _useState = useState(false),
|
|
2964
2965
|
_useState2 = _slicedToArray(_useState, 2),
|
|
2965
2966
|
widthFlag = _useState2[0],
|
|
2966
2967
|
setWidthFlag = _useState2[1];
|
|
2967
2968
|
|
|
2968
2969
|
useEffect(function () {
|
|
2969
|
-
if (window && window.innerWidth
|
|
2970
|
-
setWidthFlag(
|
|
2970
|
+
if (window && window.innerWidth > minScreenWidth) {
|
|
2971
|
+
setWidthFlag(true);
|
|
2971
2972
|
}
|
|
2972
2973
|
}, [minScreenWidth]);
|
|
2973
2974
|
|
|
@@ -3216,16 +3217,41 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
3216
3217
|
publication_url: targeting.publication_url
|
|
3217
3218
|
};
|
|
3218
3219
|
|
|
3220
|
+
var collapseAd = function collapseAd() {
|
|
3221
|
+
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
3222
|
+
parent.style.height = '0%';
|
|
3223
|
+
parent.style.width = '0%';
|
|
3224
|
+
parent.style.display = 'none';
|
|
3225
|
+
};
|
|
3226
|
+
|
|
3227
|
+
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
3228
|
+
if (isFound) {
|
|
3229
|
+
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
3230
|
+
parent.style.display = 'block';
|
|
3231
|
+
} else {
|
|
3232
|
+
collapseAd();
|
|
3233
|
+
}
|
|
3234
|
+
};
|
|
3235
|
+
|
|
3219
3236
|
return React__default.createElement(
|
|
3220
3237
|
React__default.Fragment,
|
|
3221
3238
|
null,
|
|
3222
3239
|
React__default.createElement(
|
|
3223
3240
|
'div',
|
|
3224
|
-
{ className: 'sponsored-ad-wrapper' },
|
|
3241
|
+
{ id: 'sponsored-ad-wrapper', className: 'sponsored-ad-wrapper' },
|
|
3225
3242
|
React__default.createElement(
|
|
3226
3243
|
'div',
|
|
3227
3244
|
{ className: 'sponsored-ad' },
|
|
3228
|
-
React__default.createElement(DFPAdSlot, {
|
|
3245
|
+
React__default.createElement(DFPAdSlot, {
|
|
3246
|
+
className: className,
|
|
3247
|
+
slotId: slotId,
|
|
3248
|
+
networkID: networkID,
|
|
3249
|
+
sizes: sizes,
|
|
3250
|
+
adUnit: adUnit,
|
|
3251
|
+
targeting: adTargeting,
|
|
3252
|
+
refreshFlag: false,
|
|
3253
|
+
checkIsAdFound: checkIsAdFound
|
|
3254
|
+
})
|
|
3229
3255
|
)
|
|
3230
3256
|
)
|
|
3231
3257
|
);
|
|
@@ -3294,18 +3320,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3294
3320
|
);
|
|
3295
3321
|
};
|
|
3296
3322
|
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3323
|
+
var isArray = Array.isArray;
|
|
3324
|
+
var keyList = Object.keys;
|
|
3325
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3300
3326
|
|
|
3301
3327
|
var fastDeepEqual = function equal(a, b) {
|
|
3302
3328
|
if (a === b) return true;
|
|
3303
3329
|
|
|
3304
3330
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3305
|
-
|
|
3331
|
+
var arrA = isArray(a)
|
|
3332
|
+
, arrB = isArray(b)
|
|
3333
|
+
, i
|
|
3334
|
+
, length
|
|
3335
|
+
, key;
|
|
3306
3336
|
|
|
3307
|
-
|
|
3308
|
-
if (Array.isArray(a)) {
|
|
3337
|
+
if (arrA && arrB) {
|
|
3309
3338
|
length = a.length;
|
|
3310
3339
|
if (length != b.length) return false;
|
|
3311
3340
|
for (i = length; i-- !== 0;)
|
|
@@ -3313,29 +3342,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3313
3342
|
return true;
|
|
3314
3343
|
}
|
|
3315
3344
|
|
|
3345
|
+
if (arrA != arrB) return false;
|
|
3316
3346
|
|
|
3347
|
+
var dateA = a instanceof Date
|
|
3348
|
+
, dateB = b instanceof Date;
|
|
3349
|
+
if (dateA != dateB) return false;
|
|
3350
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3317
3351
|
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
if (
|
|
3352
|
+
var regexpA = a instanceof RegExp
|
|
3353
|
+
, regexpB = b instanceof RegExp;
|
|
3354
|
+
if (regexpA != regexpB) return false;
|
|
3355
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3321
3356
|
|
|
3322
|
-
keys =
|
|
3357
|
+
var keys = keyList(a);
|
|
3323
3358
|
length = keys.length;
|
|
3324
|
-
|
|
3359
|
+
|
|
3360
|
+
if (length !== keyList(b).length)
|
|
3361
|
+
return false;
|
|
3325
3362
|
|
|
3326
3363
|
for (i = length; i-- !== 0;)
|
|
3327
|
-
if (!
|
|
3364
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3328
3365
|
|
|
3329
3366
|
for (i = length; i-- !== 0;) {
|
|
3330
|
-
|
|
3331
|
-
|
|
3367
|
+
key = keys[i];
|
|
3332
3368
|
if (!equal(a[key], b[key])) return false;
|
|
3333
3369
|
}
|
|
3334
3370
|
|
|
3335
3371
|
return true;
|
|
3336
3372
|
}
|
|
3337
3373
|
|
|
3338
|
-
// true if both NaN, false otherwise
|
|
3339
3374
|
return a!==a && b!==b;
|
|
3340
3375
|
};
|
|
3341
3376
|
|
|
@@ -4358,7 +4393,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4358
4393
|
var base = '', array = false, braces = ['{', '}'];
|
|
4359
4394
|
|
|
4360
4395
|
// Make Array say that they are Array
|
|
4361
|
-
if (isArray(value)) {
|
|
4396
|
+
if (isArray$1(value)) {
|
|
4362
4397
|
array = true;
|
|
4363
4398
|
braces = ['[', ']'];
|
|
4364
4399
|
}
|
|
@@ -4537,7 +4572,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4537
4572
|
|
|
4538
4573
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4539
4574
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4540
|
-
function isArray(ar) {
|
|
4575
|
+
function isArray$1(ar) {
|
|
4541
4576
|
return Array.isArray(ar);
|
|
4542
4577
|
}
|
|
4543
4578
|
|
|
@@ -4664,7 +4699,7 @@ var util = {
|
|
|
4664
4699
|
isNullOrUndefined: isNullOrUndefined,
|
|
4665
4700
|
isNull: isNull,
|
|
4666
4701
|
isBoolean: isBoolean,
|
|
4667
|
-
isArray: isArray,
|
|
4702
|
+
isArray: isArray$1,
|
|
4668
4703
|
inspect: inspect,
|
|
4669
4704
|
deprecate: deprecate,
|
|
4670
4705
|
format: format,
|
|
@@ -5331,235 +5366,199 @@ module.exports = exports['default'];
|
|
|
5331
5366
|
|
|
5332
5367
|
var youTubePlayer = unwrapExports(dist);
|
|
5333
5368
|
|
|
5334
|
-
function
|
|
5335
|
-
|
|
5336
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5337
|
-
|
|
5338
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5339
|
-
|
|
5340
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5341
|
-
|
|
5342
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5343
|
-
|
|
5344
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5345
|
-
|
|
5346
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5347
|
-
|
|
5348
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5369
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
5349
5370
|
|
|
5350
|
-
function
|
|
5351
|
-
|
|
5352
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5371
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
5353
5372
|
|
|
5354
|
-
function
|
|
5373
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5355
5374
|
|
|
5356
|
-
function
|
|
5375
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
5357
5376
|
|
|
5358
|
-
function
|
|
5377
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
5359
5378
|
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
*
|
|
5363
|
-
*
|
|
5364
|
-
* @param {Object}
|
|
5365
|
-
* @param {Object} props
|
|
5379
|
+
/**
|
|
5380
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5381
|
+
*
|
|
5382
|
+
* @param {Object} prevProps
|
|
5383
|
+
* @param {Object} props
|
|
5366
5384
|
*/
|
|
5367
|
-
|
|
5368
5385
|
function shouldUpdateVideo(prevProps, props) {
|
|
5369
5386
|
// A changing video should always trigger an update
|
|
5370
5387
|
if (prevProps.videoId !== props.videoId) {
|
|
5371
5388
|
return true;
|
|
5372
|
-
}
|
|
5373
|
-
// update.
|
|
5374
|
-
|
|
5389
|
+
}
|
|
5375
5390
|
|
|
5391
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5392
|
+
// update.
|
|
5376
5393
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5377
5394
|
var vars = props.opts.playerVars || {};
|
|
5395
|
+
|
|
5378
5396
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5379
5397
|
}
|
|
5380
|
-
/**
|
|
5381
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5382
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5383
|
-
* player reset is necessary.
|
|
5384
|
-
*
|
|
5385
|
-
* @param {Object} opts
|
|
5386
|
-
*/
|
|
5387
|
-
|
|
5388
5398
|
|
|
5399
|
+
/**
|
|
5400
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5401
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5402
|
+
* player reset is necessary.
|
|
5403
|
+
*
|
|
5404
|
+
* @param {Object} opts
|
|
5405
|
+
*/
|
|
5389
5406
|
function filterResetOptions(opts) {
|
|
5390
|
-
return
|
|
5391
|
-
playerVars:
|
|
5407
|
+
return _extends({}, opts, {
|
|
5408
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5392
5409
|
autoplay: 0,
|
|
5393
5410
|
start: 0,
|
|
5394
5411
|
end: 0
|
|
5395
5412
|
})
|
|
5396
5413
|
});
|
|
5397
5414
|
}
|
|
5398
|
-
/**
|
|
5399
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5400
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5401
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5402
|
-
* those.
|
|
5403
|
-
*
|
|
5404
|
-
* @param {Object} prevProps
|
|
5405
|
-
* @param {Object} props
|
|
5406
|
-
*/
|
|
5407
|
-
|
|
5408
5415
|
|
|
5416
|
+
/**
|
|
5417
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5418
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5419
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5420
|
+
* those.
|
|
5421
|
+
*
|
|
5422
|
+
* @param {Object} prevProps
|
|
5423
|
+
* @param {Object} props
|
|
5424
|
+
*/
|
|
5409
5425
|
function shouldResetPlayer(prevProps, props) {
|
|
5410
5426
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5411
5427
|
}
|
|
5412
|
-
/**
|
|
5413
|
-
* Check whether a props change should result in an id or className update.
|
|
5414
|
-
*
|
|
5415
|
-
* @param {Object} prevProps
|
|
5416
|
-
* @param {Object} props
|
|
5417
|
-
*/
|
|
5418
|
-
|
|
5419
5428
|
|
|
5429
|
+
/**
|
|
5430
|
+
* Check whether a props change should result in an id or className update.
|
|
5431
|
+
*
|
|
5432
|
+
* @param {Object} prevProps
|
|
5433
|
+
* @param {Object} props
|
|
5434
|
+
*/
|
|
5420
5435
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5421
5436
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5422
5437
|
}
|
|
5423
5438
|
|
|
5424
|
-
var YouTube =
|
|
5439
|
+
var YouTube = function (_React$Component) {
|
|
5425
5440
|
_inherits(YouTube, _React$Component);
|
|
5426
5441
|
|
|
5427
|
-
var _super = _createSuper(YouTube);
|
|
5428
|
-
|
|
5429
|
-
/**
|
|
5430
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5431
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5432
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5433
|
-
*/
|
|
5434
5442
|
function YouTube(props) {
|
|
5435
|
-
var _this;
|
|
5436
|
-
|
|
5437
5443
|
_classCallCheck(this, YouTube);
|
|
5438
5444
|
|
|
5439
|
-
_this =
|
|
5445
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5440
5446
|
|
|
5441
|
-
|
|
5447
|
+
_this.onPlayerReady = function (event) {
|
|
5442
5448
|
return _this.props.onReady(event);
|
|
5443
|
-
}
|
|
5449
|
+
};
|
|
5444
5450
|
|
|
5445
|
-
|
|
5451
|
+
_this.onPlayerError = function (event) {
|
|
5446
5452
|
return _this.props.onError(event);
|
|
5447
|
-
}
|
|
5453
|
+
};
|
|
5448
5454
|
|
|
5449
|
-
|
|
5455
|
+
_this.onPlayerStateChange = function (event) {
|
|
5450
5456
|
_this.props.onStateChange(event);
|
|
5451
|
-
|
|
5452
5457
|
switch (event.data) {
|
|
5458
|
+
|
|
5453
5459
|
case YouTube.PlayerState.ENDED:
|
|
5454
5460
|
_this.props.onEnd(event);
|
|
5455
|
-
|
|
5456
5461
|
break;
|
|
5457
5462
|
|
|
5458
5463
|
case YouTube.PlayerState.PLAYING:
|
|
5459
5464
|
_this.props.onPlay(event);
|
|
5460
|
-
|
|
5461
5465
|
break;
|
|
5462
5466
|
|
|
5463
5467
|
case YouTube.PlayerState.PAUSED:
|
|
5464
5468
|
_this.props.onPause(event);
|
|
5465
|
-
|
|
5466
5469
|
break;
|
|
5467
5470
|
}
|
|
5468
|
-
}
|
|
5471
|
+
};
|
|
5469
5472
|
|
|
5470
|
-
|
|
5473
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5471
5474
|
return _this.props.onPlaybackRateChange(event);
|
|
5472
|
-
}
|
|
5475
|
+
};
|
|
5473
5476
|
|
|
5474
|
-
|
|
5477
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5475
5478
|
return _this.props.onPlaybackQualityChange(event);
|
|
5476
|
-
}
|
|
5479
|
+
};
|
|
5477
5480
|
|
|
5478
|
-
|
|
5481
|
+
_this.createPlayer = function () {
|
|
5479
5482
|
// do not attempt to create a player server-side, it won't work
|
|
5480
|
-
if (typeof document === 'undefined') return;
|
|
5481
|
-
|
|
5482
|
-
var playerOpts =
|
|
5483
|
+
if (typeof document === 'undefined') return;
|
|
5484
|
+
// create player
|
|
5485
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5483
5486
|
// preload the `videoId` video if one is already given
|
|
5484
5487
|
videoId: _this.props.videoId
|
|
5485
5488
|
});
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5490
|
+
// attach event handlers
|
|
5489
5491
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5490
|
-
|
|
5491
5492
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5492
|
-
|
|
5493
5493
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5494
|
-
|
|
5495
5494
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5496
|
-
|
|
5497
5495
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5498
|
-
}
|
|
5496
|
+
};
|
|
5499
5497
|
|
|
5500
|
-
|
|
5498
|
+
_this.resetPlayer = function () {
|
|
5501
5499
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5502
|
-
}
|
|
5500
|
+
};
|
|
5503
5501
|
|
|
5504
|
-
|
|
5502
|
+
_this.updatePlayer = function () {
|
|
5505
5503
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5506
5504
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5507
5505
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5508
5506
|
});
|
|
5509
|
-
}
|
|
5507
|
+
};
|
|
5510
5508
|
|
|
5511
|
-
|
|
5509
|
+
_this.updateVideo = function () {
|
|
5512
5510
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5513
5511
|
_this.internalPlayer.stopVideo();
|
|
5514
|
-
|
|
5515
5512
|
return;
|
|
5516
|
-
}
|
|
5517
|
-
|
|
5513
|
+
}
|
|
5518
5514
|
|
|
5515
|
+
// set queueing options
|
|
5519
5516
|
var autoplay = false;
|
|
5520
5517
|
var opts = {
|
|
5521
5518
|
videoId: _this.props.videoId
|
|
5522
5519
|
};
|
|
5523
|
-
|
|
5524
5520
|
if ('playerVars' in _this.props.opts) {
|
|
5525
5521
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5526
|
-
|
|
5527
5522
|
if ('start' in _this.props.opts.playerVars) {
|
|
5528
5523
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5529
5524
|
}
|
|
5530
|
-
|
|
5531
5525
|
if ('end' in _this.props.opts.playerVars) {
|
|
5532
5526
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5533
5527
|
}
|
|
5534
|
-
}
|
|
5535
|
-
|
|
5528
|
+
}
|
|
5536
5529
|
|
|
5530
|
+
// if autoplay is enabled loadVideoById
|
|
5537
5531
|
if (autoplay) {
|
|
5538
5532
|
_this.internalPlayer.loadVideoById(opts);
|
|
5539
|
-
|
|
5540
5533
|
return;
|
|
5541
|
-
}
|
|
5542
|
-
|
|
5543
|
-
|
|
5534
|
+
}
|
|
5535
|
+
// default behaviour just cues the video
|
|
5544
5536
|
_this.internalPlayer.cueVideoById(opts);
|
|
5545
|
-
}
|
|
5537
|
+
};
|
|
5546
5538
|
|
|
5547
|
-
|
|
5539
|
+
_this.refContainer = function (container) {
|
|
5548
5540
|
_this.container = container;
|
|
5549
|
-
}
|
|
5541
|
+
};
|
|
5550
5542
|
|
|
5551
5543
|
_this.container = null;
|
|
5552
5544
|
_this.internalPlayer = null;
|
|
5553
5545
|
return _this;
|
|
5554
5546
|
}
|
|
5555
5547
|
|
|
5548
|
+
/**
|
|
5549
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5550
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5551
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5552
|
+
*/
|
|
5553
|
+
|
|
5554
|
+
|
|
5556
5555
|
_createClass(YouTube, [{
|
|
5557
|
-
key:
|
|
5556
|
+
key: 'componentDidMount',
|
|
5558
5557
|
value: function componentDidMount() {
|
|
5559
5558
|
this.createPlayer();
|
|
5560
5559
|
}
|
|
5561
5560
|
}, {
|
|
5562
|
-
key:
|
|
5561
|
+
key: 'componentDidUpdate',
|
|
5563
5562
|
value: function componentDidUpdate(prevProps) {
|
|
5564
5563
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5565
5564
|
this.updatePlayer();
|
|
@@ -5574,58 +5573,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5574
5573
|
}
|
|
5575
5574
|
}
|
|
5576
5575
|
}, {
|
|
5577
|
-
key:
|
|
5576
|
+
key: 'componentWillUnmount',
|
|
5578
5577
|
value: function componentWillUnmount() {
|
|
5579
|
-
/**
|
|
5580
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5581
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5582
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5583
|
-
* this method isn't quick enough to reset the container element.
|
|
5578
|
+
/**
|
|
5579
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5580
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5581
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5582
|
+
* this method isn't quick enough to reset the container element.
|
|
5584
5583
|
*/
|
|
5585
5584
|
this.internalPlayer.destroy();
|
|
5586
5585
|
}
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
*
|
|
5590
|
-
*
|
|
5591
|
-
*
|
|
5586
|
+
|
|
5587
|
+
/**
|
|
5588
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5589
|
+
*
|
|
5590
|
+
* @param {Object} event
|
|
5591
|
+
* @param {Object} target - player object
|
|
5592
|
+
*/
|
|
5593
|
+
|
|
5594
|
+
|
|
5595
|
+
/**
|
|
5596
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5597
|
+
*
|
|
5598
|
+
* @param {Object} event
|
|
5599
|
+
* @param {Integer} data - error type
|
|
5600
|
+
* @param {Object} target - player object
|
|
5601
|
+
*/
|
|
5602
|
+
|
|
5603
|
+
|
|
5604
|
+
/**
|
|
5605
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5606
|
+
*
|
|
5607
|
+
* @param {Object} event
|
|
5608
|
+
* @param {Integer} data - status change type
|
|
5609
|
+
* @param {Object} target - actual YT player
|
|
5610
|
+
*/
|
|
5611
|
+
|
|
5612
|
+
|
|
5613
|
+
/**
|
|
5614
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5615
|
+
*
|
|
5616
|
+
* @param {Object} event
|
|
5617
|
+
* @param {Float} data - playback rate
|
|
5618
|
+
* @param {Object} target - actual YT player
|
|
5619
|
+
*/
|
|
5620
|
+
|
|
5621
|
+
|
|
5622
|
+
/**
|
|
5623
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5624
|
+
*
|
|
5625
|
+
* @param {Object} event
|
|
5626
|
+
* @param {String} data - playback quality
|
|
5627
|
+
* @param {Object} target - actual YT player
|
|
5628
|
+
*/
|
|
5629
|
+
|
|
5630
|
+
|
|
5631
|
+
/**
|
|
5632
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5633
|
+
*/
|
|
5634
|
+
|
|
5635
|
+
|
|
5636
|
+
/**
|
|
5637
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5638
|
+
*/
|
|
5639
|
+
|
|
5640
|
+
|
|
5641
|
+
/**
|
|
5642
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5643
|
+
* React should update this automatically but since the Youtube Player API
|
|
5644
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5645
|
+
*/
|
|
5646
|
+
|
|
5647
|
+
|
|
5648
|
+
/**
|
|
5649
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5650
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5651
|
+
* Youtube Player API methods to update the video.
|
|
5592
5652
|
*/
|
|
5593
5653
|
|
|
5594
5654
|
}, {
|
|
5595
|
-
key:
|
|
5655
|
+
key: 'render',
|
|
5596
5656
|
value: function render() {
|
|
5597
|
-
return
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
id: this.props.id,
|
|
5601
|
-
|
|
5602
|
-
ref: this.refContainer
|
|
5603
|
-
}));
|
|
5657
|
+
return React__default.createElement(
|
|
5658
|
+
'div',
|
|
5659
|
+
{ className: this.props.containerClassName },
|
|
5660
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5661
|
+
);
|
|
5604
5662
|
}
|
|
5605
5663
|
}]);
|
|
5606
5664
|
|
|
5607
5665
|
return YouTube;
|
|
5608
5666
|
}(React__default.Component);
|
|
5609
5667
|
|
|
5610
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5611
|
-
UNSTARTED: -1,
|
|
5612
|
-
ENDED: 0,
|
|
5613
|
-
PLAYING: 1,
|
|
5614
|
-
PAUSED: 2,
|
|
5615
|
-
BUFFERING: 3,
|
|
5616
|
-
CUED: 5
|
|
5617
|
-
});
|
|
5618
|
-
|
|
5619
5668
|
YouTube.propTypes = {
|
|
5620
5669
|
videoId: PropTypes.string,
|
|
5670
|
+
|
|
5621
5671
|
// custom ID for player element
|
|
5622
5672
|
id: PropTypes.string,
|
|
5673
|
+
|
|
5623
5674
|
// custom class name for player element
|
|
5624
5675
|
className: PropTypes.string,
|
|
5625
5676
|
// custom class name for player container element
|
|
5626
5677
|
containerClassName: PropTypes.string,
|
|
5678
|
+
|
|
5627
5679
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5628
5680
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5681
|
+
|
|
5629
5682
|
// event subscriptions
|
|
5630
5683
|
onReady: PropTypes.func,
|
|
5631
5684
|
onError: PropTypes.func,
|
|
@@ -5637,7 +5690,6 @@ YouTube.propTypes = {
|
|
|
5637
5690
|
onPlaybackQualityChange: PropTypes.func
|
|
5638
5691
|
};
|
|
5639
5692
|
YouTube.defaultProps = {
|
|
5640
|
-
videoId: null,
|
|
5641
5693
|
id: null,
|
|
5642
5694
|
className: null,
|
|
5643
5695
|
opts: {},
|
|
@@ -5651,6 +5703,14 @@ YouTube.defaultProps = {
|
|
|
5651
5703
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5652
5704
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5653
5705
|
};
|
|
5706
|
+
YouTube.PlayerState = {
|
|
5707
|
+
UNSTARTED: -1,
|
|
5708
|
+
ENDED: 0,
|
|
5709
|
+
PLAYING: 1,
|
|
5710
|
+
PAUSED: 2,
|
|
5711
|
+
BUFFERING: 3,
|
|
5712
|
+
CUED: 5
|
|
5713
|
+
};
|
|
5654
5714
|
|
|
5655
5715
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5656
5716
|
var url = _ref.url;
|
|
@@ -6674,8 +6734,8 @@ var window_1 = win;
|
|
|
6674
6734
|
|
|
6675
6735
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6676
6736
|
|
|
6677
|
-
function _extends() {
|
|
6678
|
-
_extends = Object.assign || function (target) {
|
|
6737
|
+
function _extends$1() {
|
|
6738
|
+
_extends$1 = Object.assign || function (target) {
|
|
6679
6739
|
for (var i = 1; i < arguments.length; i++) {
|
|
6680
6740
|
var source = arguments[i];
|
|
6681
6741
|
|
|
@@ -6689,7 +6749,7 @@ function _extends() {
|
|
|
6689
6749
|
return target;
|
|
6690
6750
|
};
|
|
6691
6751
|
|
|
6692
|
-
return _extends.apply(this, arguments);
|
|
6752
|
+
return _extends$1.apply(this, arguments);
|
|
6693
6753
|
}
|
|
6694
6754
|
|
|
6695
6755
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6698,7 +6758,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6698
6758
|
subClass.__proto__ = superClass;
|
|
6699
6759
|
}
|
|
6700
6760
|
|
|
6701
|
-
function _assertThisInitialized
|
|
6761
|
+
function _assertThisInitialized(self) {
|
|
6702
6762
|
if (self === void 0) {
|
|
6703
6763
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6704
6764
|
}
|
|
@@ -6708,8 +6768,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6708
6768
|
|
|
6709
6769
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6710
6770
|
|
|
6711
|
-
function _extends$1() {
|
|
6712
|
-
_extends$1 = Object.assign || function (target) {
|
|
6771
|
+
function _extends$1$1() {
|
|
6772
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6713
6773
|
for (var i = 1; i < arguments.length; i++) {
|
|
6714
6774
|
var source = arguments[i];
|
|
6715
6775
|
|
|
@@ -6723,7 +6783,7 @@ function _extends$1() {
|
|
|
6723
6783
|
return target;
|
|
6724
6784
|
};
|
|
6725
6785
|
|
|
6726
|
-
return _extends$1.apply(this, arguments);
|
|
6786
|
+
return _extends$1$1.apply(this, arguments);
|
|
6727
6787
|
}
|
|
6728
6788
|
|
|
6729
6789
|
var version$1 = "1.7.1";
|
|
@@ -6731,7 +6791,7 @@ var version$1 = "1.7.1";
|
|
|
6731
6791
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6732
6792
|
var version$1$1 = "1.2.0";
|
|
6733
6793
|
|
|
6734
|
-
var _typeof
|
|
6794
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6735
6795
|
return typeof obj;
|
|
6736
6796
|
} : function (obj) {
|
|
6737
6797
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6866,7 +6926,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6866
6926
|
|
|
6867
6927
|
var qs = '';
|
|
6868
6928
|
|
|
6869
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6929
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6870
6930
|
qs = getQueryString(queryParams);
|
|
6871
6931
|
}
|
|
6872
6932
|
|
|
@@ -7100,7 +7160,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
7100
7160
|
el.style.width = '100%';
|
|
7101
7161
|
el.style.height = '100%';
|
|
7102
7162
|
|
|
7103
|
-
var responsive = _extends$1({
|
|
7163
|
+
var responsive = _extends$1$1({
|
|
7104
7164
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
7105
7165
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
7106
7166
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7785,7 +7845,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7785
7845
|
|
|
7786
7846
|
|
|
7787
7847
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7788
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7848
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7789
7849
|
|
|
7790
7850
|
var Promise = params.Promise,
|
|
7791
7851
|
onSuccess = params.onSuccess,
|
|
@@ -7927,7 +7987,7 @@ function (_React$Component) {
|
|
|
7927
7987
|
_this.refNode = ref;
|
|
7928
7988
|
};
|
|
7929
7989
|
|
|
7930
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7990
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7931
7991
|
return _this;
|
|
7932
7992
|
}
|
|
7933
7993
|
/**
|
|
@@ -7948,7 +8008,7 @@ function (_React$Component) {
|
|
|
7948
8008
|
var userSuccess = this.props.onSuccess;
|
|
7949
8009
|
var userFailure = this.props.onFailure;
|
|
7950
8010
|
|
|
7951
|
-
var options = _extends({}, this.props, {
|
|
8011
|
+
var options = _extends$1({}, this.props, {
|
|
7952
8012
|
refNode: this.refNode,
|
|
7953
8013
|
refNodeInsert: 'append',
|
|
7954
8014
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8257,7 +8317,7 @@ function (_React$Component) {
|
|
|
8257
8317
|
;
|
|
8258
8318
|
|
|
8259
8319
|
_proto.render = function render() {
|
|
8260
|
-
var props = _extends({
|
|
8320
|
+
var props = _extends$1({
|
|
8261
8321
|
className: 'brightcove-react-player-loader'
|
|
8262
8322
|
}, this.props.attrs, {
|
|
8263
8323
|
ref: this.setRefNode
|
|
@@ -8673,17 +8733,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8673
8733
|
|
|
8674
8734
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8675
8735
|
|
|
8676
|
-
function
|
|
8736
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8677
8737
|
|
|
8678
|
-
function
|
|
8738
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8679
8739
|
|
|
8680
|
-
function
|
|
8681
|
-
|
|
8682
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8683
|
-
|
|
8684
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8685
|
-
|
|
8686
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8740
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8687
8741
|
|
|
8688
8742
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8689
8743
|
|
|
@@ -8813,12 +8867,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8813
8867
|
|
|
8814
8868
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8815
8869
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8816
|
-
|
|
8817
|
-
var
|
|
8818
|
-
|
|
8870
|
+
var _iteratorNormalCompletion = true;
|
|
8871
|
+
var _didIteratorError = false;
|
|
8872
|
+
var _iteratorError = undefined;
|
|
8819
8873
|
|
|
8820
8874
|
try {
|
|
8821
|
-
for (_iterator.
|
|
8875
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8822
8876
|
var p = _step.value;
|
|
8823
8877
|
|
|
8824
8878
|
if (props$1[p]) {
|
|
@@ -8833,9 +8887,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8833
8887
|
}
|
|
8834
8888
|
}
|
|
8835
8889
|
} catch (err) {
|
|
8836
|
-
|
|
8890
|
+
_didIteratorError = true;
|
|
8891
|
+
_iteratorError = err;
|
|
8837
8892
|
} finally {
|
|
8838
|
-
|
|
8893
|
+
try {
|
|
8894
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8895
|
+
_iterator["return"]();
|
|
8896
|
+
}
|
|
8897
|
+
} finally {
|
|
8898
|
+
if (_didIteratorError) {
|
|
8899
|
+
throw _iteratorError;
|
|
8900
|
+
}
|
|
8901
|
+
}
|
|
8839
8902
|
}
|
|
8840
8903
|
|
|
8841
8904
|
return config;
|
|
@@ -8982,16 +9045,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8982
9045
|
|
|
8983
9046
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8984
9047
|
|
|
8985
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8986
|
-
|
|
8987
9048
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8988
9049
|
|
|
8989
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8990
|
-
|
|
8991
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
8992
|
-
|
|
8993
9050
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8994
9051
|
|
|
9052
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9053
|
+
|
|
8995
9054
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8996
9055
|
|
|
8997
9056
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9000,12 +9059,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9000
9059
|
|
|
9001
9060
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
9002
9061
|
|
|
9003
|
-
var Player =
|
|
9062
|
+
var Player =
|
|
9063
|
+
/*#__PURE__*/
|
|
9064
|
+
function (_Component) {
|
|
9004
9065
|
_inherits(Player, _Component);
|
|
9005
9066
|
|
|
9006
|
-
var _super = _createSuper(Player);
|
|
9007
|
-
|
|
9008
9067
|
function Player() {
|
|
9068
|
+
var _getPrototypeOf2;
|
|
9069
|
+
|
|
9009
9070
|
var _this;
|
|
9010
9071
|
|
|
9011
9072
|
_classCallCheck(this, Player);
|
|
@@ -9014,7 +9075,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9014
9075
|
_args[_key] = arguments[_key];
|
|
9015
9076
|
}
|
|
9016
9077
|
|
|
9017
|
-
_this =
|
|
9078
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
9018
9079
|
|
|
9019
9080
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
9020
9081
|
|
|
@@ -9339,7 +9400,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9339
9400
|
return null;
|
|
9340
9401
|
}
|
|
9341
9402
|
|
|
9342
|
-
return
|
|
9403
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9343
9404
|
ref: this.ref,
|
|
9344
9405
|
onReady: this.handleReady,
|
|
9345
9406
|
onPlay: this.handlePlay,
|
|
@@ -9400,16 +9461,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9400
9461
|
|
|
9401
9462
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9402
9463
|
|
|
9403
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9404
|
-
|
|
9405
9464
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9406
9465
|
|
|
9407
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9408
|
-
|
|
9409
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9410
|
-
|
|
9411
9466
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9412
9467
|
|
|
9468
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9469
|
+
|
|
9413
9470
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9414
9471
|
|
|
9415
9472
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9421,12 +9478,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9421
9478
|
function createSinglePlayer(activePlayer) {
|
|
9422
9479
|
var _class, _temp;
|
|
9423
9480
|
|
|
9424
|
-
return _temp = _class =
|
|
9481
|
+
return _temp = _class =
|
|
9482
|
+
/*#__PURE__*/
|
|
9483
|
+
function (_Component) {
|
|
9425
9484
|
_inherits(SinglePlayer, _Component);
|
|
9426
9485
|
|
|
9427
|
-
var _super = _createSuper(SinglePlayer);
|
|
9428
|
-
|
|
9429
9486
|
function SinglePlayer() {
|
|
9487
|
+
var _getPrototypeOf2;
|
|
9488
|
+
|
|
9430
9489
|
var _this;
|
|
9431
9490
|
|
|
9432
9491
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9435,7 +9494,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9435
9494
|
args[_key] = arguments[_key];
|
|
9436
9495
|
}
|
|
9437
9496
|
|
|
9438
|
-
_this =
|
|
9497
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9439
9498
|
|
|
9440
9499
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9441
9500
|
|
|
@@ -9503,12 +9562,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9503
9562
|
height = _this$props.height,
|
|
9504
9563
|
Wrapper = _this$props.wrapper;
|
|
9505
9564
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9506
|
-
return
|
|
9565
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9507
9566
|
style: _objectSpread({}, style, {
|
|
9508
9567
|
width: width,
|
|
9509
9568
|
height: height
|
|
9510
9569
|
})
|
|
9511
|
-
}, otherProps),
|
|
9570
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9512
9571
|
ref: this.ref,
|
|
9513
9572
|
activePlayer: activePlayer,
|
|
9514
9573
|
config: this.config
|
|
@@ -9554,31 +9613,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9554
9613
|
|
|
9555
9614
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9556
9615
|
|
|
9557
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9558
|
-
|
|
9559
9616
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9560
9617
|
|
|
9561
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9562
|
-
|
|
9563
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9564
|
-
|
|
9565
9618
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9566
9619
|
|
|
9620
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9621
|
+
|
|
9567
9622
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9568
9623
|
|
|
9569
9624
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9570
9625
|
|
|
9571
9626
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9572
9627
|
|
|
9573
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9574
|
-
|
|
9575
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9628
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9576
9629
|
|
|
9577
|
-
function
|
|
9630
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9578
9631
|
|
|
9579
|
-
function
|
|
9580
|
-
|
|
9581
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9632
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9582
9633
|
|
|
9583
9634
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9584
9635
|
|
|
@@ -9603,12 +9654,14 @@ function parsePlaylist(url) {
|
|
|
9603
9654
|
return {};
|
|
9604
9655
|
}
|
|
9605
9656
|
|
|
9606
|
-
var YouTube =
|
|
9657
|
+
var YouTube =
|
|
9658
|
+
/*#__PURE__*/
|
|
9659
|
+
function (_Component) {
|
|
9607
9660
|
_inherits(YouTube, _Component);
|
|
9608
9661
|
|
|
9609
|
-
var _super = _createSuper(YouTube);
|
|
9610
|
-
|
|
9611
9662
|
function YouTube() {
|
|
9663
|
+
var _getPrototypeOf2;
|
|
9664
|
+
|
|
9612
9665
|
var _this;
|
|
9613
9666
|
|
|
9614
9667
|
_classCallCheck(this, YouTube);
|
|
@@ -9617,7 +9670,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9617
9670
|
args[_key] = arguments[_key];
|
|
9618
9671
|
}
|
|
9619
9672
|
|
|
9620
|
-
_this =
|
|
9673
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9621
9674
|
|
|
9622
9675
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9623
9676
|
|
|
@@ -9805,9 +9858,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9805
9858
|
height: '100%',
|
|
9806
9859
|
display: display
|
|
9807
9860
|
};
|
|
9808
|
-
return
|
|
9861
|
+
return _react["default"].createElement("div", {
|
|
9809
9862
|
style: style
|
|
9810
|
-
},
|
|
9863
|
+
}, _react["default"].createElement("div", {
|
|
9811
9864
|
ref: this.ref
|
|
9812
9865
|
}));
|
|
9813
9866
|
}
|
|
@@ -9863,16 +9916,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9863
9916
|
|
|
9864
9917
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9865
9918
|
|
|
9866
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9867
|
-
|
|
9868
9919
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9869
9920
|
|
|
9870
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9871
|
-
|
|
9872
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
9873
|
-
|
|
9874
9921
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9875
9922
|
|
|
9923
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9924
|
+
|
|
9876
9925
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9877
9926
|
|
|
9878
9927
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9881,14 +9930,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9881
9930
|
|
|
9882
9931
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9883
9932
|
var SDK_GLOBAL = 'SC';
|
|
9884
|
-
var MATCH_URL = /(
|
|
9933
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9885
9934
|
|
|
9886
|
-
var SoundCloud =
|
|
9935
|
+
var SoundCloud =
|
|
9936
|
+
/*#__PURE__*/
|
|
9937
|
+
function (_Component) {
|
|
9887
9938
|
_inherits(SoundCloud, _Component);
|
|
9888
9939
|
|
|
9889
|
-
var _super = _createSuper(SoundCloud);
|
|
9890
|
-
|
|
9891
9940
|
function SoundCloud() {
|
|
9941
|
+
var _getPrototypeOf2;
|
|
9942
|
+
|
|
9892
9943
|
var _this;
|
|
9893
9944
|
|
|
9894
9945
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9897,7 +9948,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9897
9948
|
args[_key] = arguments[_key];
|
|
9898
9949
|
}
|
|
9899
9950
|
|
|
9900
|
-
_this =
|
|
9951
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9901
9952
|
|
|
9902
9953
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9903
9954
|
|
|
@@ -10018,7 +10069,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
10018
10069
|
height: '100%',
|
|
10019
10070
|
display: display
|
|
10020
10071
|
};
|
|
10021
|
-
return
|
|
10072
|
+
return _react["default"].createElement("iframe", {
|
|
10022
10073
|
ref: this.ref,
|
|
10023
10074
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
10024
10075
|
style: style,
|
|
@@ -10080,16 +10131,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10080
10131
|
|
|
10081
10132
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10082
10133
|
|
|
10083
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10084
|
-
|
|
10085
10134
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10086
10135
|
|
|
10087
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10088
|
-
|
|
10089
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10090
|
-
|
|
10091
10136
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10092
10137
|
|
|
10138
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10139
|
+
|
|
10093
10140
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10094
10141
|
|
|
10095
10142
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10101,12 +10148,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10101
10148
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10102
10149
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10103
10150
|
|
|
10104
|
-
var Vimeo =
|
|
10151
|
+
var Vimeo =
|
|
10152
|
+
/*#__PURE__*/
|
|
10153
|
+
function (_Component) {
|
|
10105
10154
|
_inherits(Vimeo, _Component);
|
|
10106
10155
|
|
|
10107
|
-
var _super = _createSuper(Vimeo);
|
|
10108
|
-
|
|
10109
10156
|
function Vimeo() {
|
|
10157
|
+
var _getPrototypeOf2;
|
|
10158
|
+
|
|
10110
10159
|
var _this;
|
|
10111
10160
|
|
|
10112
10161
|
_classCallCheck(this, Vimeo);
|
|
@@ -10115,7 +10164,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10115
10164
|
args[_key] = arguments[_key];
|
|
10116
10165
|
}
|
|
10117
10166
|
|
|
10118
|
-
_this =
|
|
10167
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10119
10168
|
|
|
10120
10169
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10121
10170
|
|
|
@@ -10272,7 +10321,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10272
10321
|
overflow: 'hidden',
|
|
10273
10322
|
display: display
|
|
10274
10323
|
};
|
|
10275
|
-
return
|
|
10324
|
+
return _react["default"].createElement("div", {
|
|
10276
10325
|
key: this.props.url,
|
|
10277
10326
|
ref: this.ref,
|
|
10278
10327
|
style: style
|
|
@@ -10332,16 +10381,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10332
10381
|
|
|
10333
10382
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10334
10383
|
|
|
10335
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10336
|
-
|
|
10337
10384
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10338
10385
|
|
|
10339
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10340
|
-
|
|
10341
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10342
|
-
|
|
10343
10386
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10344
10387
|
|
|
10388
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10389
|
+
|
|
10345
10390
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10346
10391
|
|
|
10347
10392
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10354,12 +10399,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10354
10399
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10355
10400
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10356
10401
|
|
|
10357
|
-
var Facebook =
|
|
10402
|
+
var Facebook =
|
|
10403
|
+
/*#__PURE__*/
|
|
10404
|
+
function (_Component) {
|
|
10358
10405
|
_inherits(Facebook, _Component);
|
|
10359
10406
|
|
|
10360
|
-
var _super = _createSuper(Facebook);
|
|
10361
|
-
|
|
10362
10407
|
function Facebook() {
|
|
10408
|
+
var _getPrototypeOf2;
|
|
10409
|
+
|
|
10363
10410
|
var _this;
|
|
10364
10411
|
|
|
10365
10412
|
_classCallCheck(this, Facebook);
|
|
@@ -10368,7 +10415,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10368
10415
|
args[_key] = arguments[_key];
|
|
10369
10416
|
}
|
|
10370
10417
|
|
|
10371
|
-
_this =
|
|
10418
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10372
10419
|
|
|
10373
10420
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10374
10421
|
|
|
@@ -10484,7 +10531,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10484
10531
|
width: '100%',
|
|
10485
10532
|
height: '100%'
|
|
10486
10533
|
};
|
|
10487
|
-
return
|
|
10534
|
+
return _react["default"].createElement("div", {
|
|
10488
10535
|
style: style,
|
|
10489
10536
|
id: this.playerID,
|
|
10490
10537
|
className: "fb-video",
|
|
@@ -10544,17 +10591,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10544
10591
|
|
|
10545
10592
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10546
10593
|
|
|
10547
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10548
|
-
|
|
10549
10594
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10550
10595
|
|
|
10596
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10597
|
+
|
|
10551
10598
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10552
10599
|
|
|
10553
|
-
function
|
|
10554
|
-
|
|
10555
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10556
|
-
|
|
10557
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10600
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10558
10601
|
|
|
10559
10602
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10560
10603
|
|
|
@@ -10564,12 +10607,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10564
10607
|
var SDK_GLOBAL = 'playerjs';
|
|
10565
10608
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10566
10609
|
|
|
10567
|
-
var Streamable =
|
|
10610
|
+
var Streamable =
|
|
10611
|
+
/*#__PURE__*/
|
|
10612
|
+
function (_Component) {
|
|
10568
10613
|
_inherits(Streamable, _Component);
|
|
10569
10614
|
|
|
10570
|
-
var _super = _createSuper(Streamable);
|
|
10571
|
-
|
|
10572
10615
|
function Streamable() {
|
|
10616
|
+
var _getPrototypeOf2;
|
|
10617
|
+
|
|
10573
10618
|
var _this;
|
|
10574
10619
|
|
|
10575
10620
|
_classCallCheck(this, Streamable);
|
|
@@ -10578,7 +10623,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10578
10623
|
args[_key] = arguments[_key];
|
|
10579
10624
|
}
|
|
10580
10625
|
|
|
10581
|
-
_this =
|
|
10626
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10582
10627
|
|
|
10583
10628
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10584
10629
|
|
|
@@ -10698,7 +10743,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10698
10743
|
width: '100%',
|
|
10699
10744
|
height: '100%'
|
|
10700
10745
|
};
|
|
10701
|
-
return
|
|
10746
|
+
return _react["default"].createElement("iframe", {
|
|
10702
10747
|
ref: this.ref,
|
|
10703
10748
|
src: "https://streamable.com/o/".concat(id),
|
|
10704
10749
|
frameBorder: "0",
|
|
@@ -10759,16 +10804,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10759
10804
|
|
|
10760
10805
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10761
10806
|
|
|
10762
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10763
|
-
|
|
10764
10807
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10765
10808
|
|
|
10766
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10767
|
-
|
|
10768
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
10769
|
-
|
|
10770
10809
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10771
10810
|
|
|
10811
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10812
|
+
|
|
10772
10813
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10773
10814
|
|
|
10774
10815
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10779,48 +10820,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10779
10820
|
var SDK_GLOBAL = 'Wistia';
|
|
10780
10821
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10781
10822
|
|
|
10782
|
-
var Wistia =
|
|
10823
|
+
var Wistia =
|
|
10824
|
+
/*#__PURE__*/
|
|
10825
|
+
function (_Component) {
|
|
10783
10826
|
_inherits(Wistia, _Component);
|
|
10784
10827
|
|
|
10785
|
-
var _super = _createSuper(Wistia);
|
|
10786
|
-
|
|
10787
10828
|
function Wistia() {
|
|
10829
|
+
var _getPrototypeOf2;
|
|
10830
|
+
|
|
10788
10831
|
var _this;
|
|
10789
10832
|
|
|
10790
10833
|
_classCallCheck(this, Wistia);
|
|
10791
10834
|
|
|
10792
|
-
for (var _len = arguments.length,
|
|
10793
|
-
|
|
10835
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10836
|
+
args[_key] = arguments[_key];
|
|
10794
10837
|
}
|
|
10795
10838
|
|
|
10796
|
-
_this =
|
|
10839
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10797
10840
|
|
|
10798
10841
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10799
10842
|
|
|
10800
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10801
|
-
var _this$props;
|
|
10802
|
-
|
|
10803
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10804
|
-
});
|
|
10805
|
-
|
|
10806
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10807
|
-
var _this$props2;
|
|
10808
|
-
|
|
10809
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10810
|
-
});
|
|
10811
|
-
|
|
10812
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10813
|
-
var _this$props3;
|
|
10814
|
-
|
|
10815
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10816
|
-
});
|
|
10817
|
-
|
|
10818
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10819
|
-
var _this$props4;
|
|
10820
|
-
|
|
10821
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10822
|
-
});
|
|
10823
|
-
|
|
10824
10843
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10825
10844
|
_this.callPlayer('mute');
|
|
10826
10845
|
});
|
|
@@ -10842,13 +10861,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10842
10861
|
value: function load(url) {
|
|
10843
10862
|
var _this2 = this;
|
|
10844
10863
|
|
|
10845
|
-
var _this$
|
|
10846
|
-
playing = _this$
|
|
10847
|
-
muted = _this$
|
|
10848
|
-
controls = _this$
|
|
10849
|
-
_onReady = _this$
|
|
10850
|
-
|
|
10851
|
-
|
|
10864
|
+
var _this$props = this.props,
|
|
10865
|
+
playing = _this$props.playing,
|
|
10866
|
+
muted = _this$props.muted,
|
|
10867
|
+
controls = _this$props.controls,
|
|
10868
|
+
_onReady = _this$props.onReady,
|
|
10869
|
+
onPlay = _this$props.onPlay,
|
|
10870
|
+
onPause = _this$props.onPause,
|
|
10871
|
+
onSeek = _this$props.onSeek,
|
|
10872
|
+
onEnded = _this$props.onEnded,
|
|
10873
|
+
config = _this$props.config,
|
|
10874
|
+
onError = _this$props.onError;
|
|
10852
10875
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10853
10876
|
window._wq = window._wq || [];
|
|
10854
10877
|
|
|
@@ -10865,28 +10888,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10865
10888
|
|
|
10866
10889
|
_this2.unbind();
|
|
10867
10890
|
|
|
10868
|
-
_this2.player.bind('play',
|
|
10891
|
+
_this2.player.bind('play', onPlay);
|
|
10869
10892
|
|
|
10870
|
-
_this2.player.bind('pause',
|
|
10893
|
+
_this2.player.bind('pause', onPause);
|
|
10871
10894
|
|
|
10872
|
-
_this2.player.bind('seek',
|
|
10895
|
+
_this2.player.bind('seek', onSeek);
|
|
10873
10896
|
|
|
10874
|
-
_this2.player.bind('end',
|
|
10897
|
+
_this2.player.bind('end', onEnded);
|
|
10875
10898
|
|
|
10876
10899
|
_onReady();
|
|
10877
10900
|
}
|
|
10878
10901
|
});
|
|
10879
10902
|
}, onError);
|
|
10880
10903
|
}
|
|
10881
|
-
}, {
|
|
10882
|
-
key: "unbind",
|
|
10883
|
-
value: function unbind() {
|
|
10884
|
-
this.player.unbind('play', this.onPlay);
|
|
10885
|
-
this.player.unbind('pause', this.onPause);
|
|
10886
|
-
this.player.unbind('seek', this.onSeek);
|
|
10887
|
-
this.player.unbind('end', this.onEnded);
|
|
10888
|
-
} // Proxy methods to prevent listener leaks
|
|
10889
|
-
|
|
10890
10904
|
}, {
|
|
10891
10905
|
key: "play",
|
|
10892
10906
|
value: function play() {
|
|
@@ -10897,6 +10911,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10897
10911
|
value: function pause() {
|
|
10898
10912
|
this.callPlayer('pause');
|
|
10899
10913
|
}
|
|
10914
|
+
}, {
|
|
10915
|
+
key: "unbind",
|
|
10916
|
+
value: function unbind() {
|
|
10917
|
+
var _this$props2 = this.props,
|
|
10918
|
+
onPlay = _this$props2.onPlay,
|
|
10919
|
+
onPause = _this$props2.onPause,
|
|
10920
|
+
onSeek = _this$props2.onSeek,
|
|
10921
|
+
onEnded = _this$props2.onEnded;
|
|
10922
|
+
this.player.unbind('play', onPlay);
|
|
10923
|
+
this.player.unbind('pause', onPause);
|
|
10924
|
+
this.player.unbind('seek', onSeek);
|
|
10925
|
+
this.player.unbind('end', onEnded);
|
|
10926
|
+
}
|
|
10900
10927
|
}, {
|
|
10901
10928
|
key: "stop",
|
|
10902
10929
|
value: function stop() {
|
|
@@ -10942,7 +10969,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10942
10969
|
width: '100%',
|
|
10943
10970
|
height: '100%'
|
|
10944
10971
|
};
|
|
10945
|
-
return
|
|
10972
|
+
return _react["default"].createElement("div", {
|
|
10946
10973
|
key: id,
|
|
10947
10974
|
className: className,
|
|
10948
10975
|
style: style
|
|
@@ -11002,16 +11029,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11002
11029
|
|
|
11003
11030
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11004
11031
|
|
|
11005
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11006
|
-
|
|
11007
11032
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11008
11033
|
|
|
11009
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11010
|
-
|
|
11011
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11012
|
-
|
|
11013
11034
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11014
11035
|
|
|
11036
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11037
|
+
|
|
11015
11038
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11016
11039
|
|
|
11017
11040
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11024,12 +11047,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
11024
11047
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
11025
11048
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
11026
11049
|
|
|
11027
|
-
var Twitch =
|
|
11050
|
+
var Twitch =
|
|
11051
|
+
/*#__PURE__*/
|
|
11052
|
+
function (_Component) {
|
|
11028
11053
|
_inherits(Twitch, _Component);
|
|
11029
11054
|
|
|
11030
|
-
var _super = _createSuper(Twitch);
|
|
11031
|
-
|
|
11032
11055
|
function Twitch() {
|
|
11056
|
+
var _getPrototypeOf2;
|
|
11057
|
+
|
|
11033
11058
|
var _this;
|
|
11034
11059
|
|
|
11035
11060
|
_classCallCheck(this, Twitch);
|
|
@@ -11038,7 +11063,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11038
11063
|
args[_key] = arguments[_key];
|
|
11039
11064
|
}
|
|
11040
11065
|
|
|
11041
|
-
_this =
|
|
11066
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11042
11067
|
|
|
11043
11068
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11044
11069
|
|
|
@@ -11159,7 +11184,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11159
11184
|
width: '100%',
|
|
11160
11185
|
height: '100%'
|
|
11161
11186
|
};
|
|
11162
|
-
return
|
|
11187
|
+
return _react["default"].createElement("div", {
|
|
11163
11188
|
style: style,
|
|
11164
11189
|
id: this.playerID
|
|
11165
11190
|
});
|
|
@@ -11212,15 +11237,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11212
11237
|
|
|
11213
11238
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
11214
11239
|
|
|
11215
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
11240
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11216
11241
|
|
|
11217
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
11242
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11218
11243
|
|
|
11219
|
-
function
|
|
11220
|
-
|
|
11221
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11222
|
-
|
|
11223
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11244
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11224
11245
|
|
|
11225
11246
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11226
11247
|
|
|
@@ -11230,16 +11251,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11230
11251
|
|
|
11231
11252
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11232
11253
|
|
|
11233
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11234
|
-
|
|
11235
11254
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11236
11255
|
|
|
11237
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11238
|
-
|
|
11239
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11240
|
-
|
|
11241
11256
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11242
11257
|
|
|
11258
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11259
|
+
|
|
11243
11260
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11244
11261
|
|
|
11245
11262
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11251,12 +11268,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11251
11268
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11252
11269
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11253
11270
|
|
|
11254
|
-
var DailyMotion =
|
|
11271
|
+
var DailyMotion =
|
|
11272
|
+
/*#__PURE__*/
|
|
11273
|
+
function (_Component) {
|
|
11255
11274
|
_inherits(DailyMotion, _Component);
|
|
11256
11275
|
|
|
11257
|
-
var _super = _createSuper(DailyMotion);
|
|
11258
|
-
|
|
11259
11276
|
function DailyMotion() {
|
|
11277
|
+
var _getPrototypeOf2;
|
|
11278
|
+
|
|
11260
11279
|
var _this;
|
|
11261
11280
|
|
|
11262
11281
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11265,7 +11284,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11265
11284
|
args[_key] = arguments[_key];
|
|
11266
11285
|
}
|
|
11267
11286
|
|
|
11268
|
-
_this =
|
|
11287
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11269
11288
|
|
|
11270
11289
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11271
11290
|
|
|
@@ -11394,9 +11413,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11394
11413
|
height: '100%',
|
|
11395
11414
|
display: display
|
|
11396
11415
|
};
|
|
11397
|
-
return
|
|
11416
|
+
return _react["default"].createElement("div", {
|
|
11398
11417
|
style: style
|
|
11399
|
-
},
|
|
11418
|
+
}, _react["default"].createElement("div", {
|
|
11400
11419
|
ref: this.ref
|
|
11401
11420
|
}));
|
|
11402
11421
|
}
|
|
@@ -11454,16 +11473,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11454
11473
|
|
|
11455
11474
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11456
11475
|
|
|
11457
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11458
|
-
|
|
11459
11476
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11460
11477
|
|
|
11461
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11462
|
-
|
|
11463
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11464
|
-
|
|
11465
11478
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11466
11479
|
|
|
11480
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11481
|
+
|
|
11467
11482
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11468
11483
|
|
|
11469
11484
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11474,12 +11489,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11474
11489
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11475
11490
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11476
11491
|
|
|
11477
|
-
var Mixcloud =
|
|
11492
|
+
var Mixcloud =
|
|
11493
|
+
/*#__PURE__*/
|
|
11494
|
+
function (_Component) {
|
|
11478
11495
|
_inherits(Mixcloud, _Component);
|
|
11479
11496
|
|
|
11480
|
-
var _super = _createSuper(Mixcloud);
|
|
11481
|
-
|
|
11482
11497
|
function Mixcloud() {
|
|
11498
|
+
var _getPrototypeOf2;
|
|
11499
|
+
|
|
11483
11500
|
var _this;
|
|
11484
11501
|
|
|
11485
11502
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11488,7 +11505,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11488
11505
|
args[_key] = arguments[_key];
|
|
11489
11506
|
}
|
|
11490
11507
|
|
|
11491
|
-
_this =
|
|
11508
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11492
11509
|
|
|
11493
11510
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11494
11511
|
|
|
@@ -11591,7 +11608,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11591
11608
|
})); // We have to give the iframe a key here to prevent a
|
|
11592
11609
|
// weird dialog appearing when loading a new track
|
|
11593
11610
|
|
|
11594
|
-
return
|
|
11611
|
+
return _react["default"].createElement("iframe", {
|
|
11595
11612
|
key: id,
|
|
11596
11613
|
ref: this.ref,
|
|
11597
11614
|
style: style,
|
|
@@ -11651,33 +11668,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11651
11668
|
|
|
11652
11669
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11653
11670
|
|
|
11654
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11655
|
-
|
|
11656
11671
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11657
11672
|
|
|
11658
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11659
|
-
|
|
11660
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
11661
|
-
|
|
11662
11673
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11663
11674
|
|
|
11675
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11676
|
+
|
|
11664
11677
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11665
11678
|
|
|
11666
11679
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11667
11680
|
|
|
11668
11681
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11669
11682
|
|
|
11670
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
11671
|
-
|
|
11672
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11673
|
-
|
|
11674
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
11675
|
-
|
|
11676
11683
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11677
11684
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11678
11685
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11679
11686
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11680
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11687
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11681
11688
|
var HLS_GLOBAL = 'Hls';
|
|
11682
11689
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11683
11690
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11686,11 +11693,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11686
11693
|
|
|
11687
11694
|
function canPlay(url) {
|
|
11688
11695
|
if (url instanceof Array) {
|
|
11689
|
-
var
|
|
11690
|
-
|
|
11696
|
+
var _iteratorNormalCompletion = true;
|
|
11697
|
+
var _didIteratorError = false;
|
|
11698
|
+
var _iteratorError = undefined;
|
|
11691
11699
|
|
|
11692
11700
|
try {
|
|
11693
|
-
for (_iterator.
|
|
11701
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11694
11702
|
var item = _step.value;
|
|
11695
11703
|
|
|
11696
11704
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11702,9 +11710,18 @@ function canPlay(url) {
|
|
|
11702
11710
|
}
|
|
11703
11711
|
}
|
|
11704
11712
|
} catch (err) {
|
|
11705
|
-
|
|
11713
|
+
_didIteratorError = true;
|
|
11714
|
+
_iteratorError = err;
|
|
11706
11715
|
} finally {
|
|
11707
|
-
|
|
11716
|
+
try {
|
|
11717
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11718
|
+
_iterator["return"]();
|
|
11719
|
+
}
|
|
11720
|
+
} finally {
|
|
11721
|
+
if (_didIteratorError) {
|
|
11722
|
+
throw _iteratorError;
|
|
11723
|
+
}
|
|
11724
|
+
}
|
|
11708
11725
|
}
|
|
11709
11726
|
|
|
11710
11727
|
return false;
|
|
@@ -11728,12 +11745,14 @@ function canEnablePIP(url) {
|
|
|
11728
11745
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11729
11746
|
}
|
|
11730
11747
|
|
|
11731
|
-
var FilePlayer =
|
|
11748
|
+
var FilePlayer =
|
|
11749
|
+
/*#__PURE__*/
|
|
11750
|
+
function (_Component) {
|
|
11732
11751
|
_inherits(FilePlayer, _Component);
|
|
11733
11752
|
|
|
11734
|
-
var _super = _createSuper(FilePlayer);
|
|
11735
|
-
|
|
11736
11753
|
function FilePlayer() {
|
|
11754
|
+
var _getPrototypeOf2;
|
|
11755
|
+
|
|
11737
11756
|
var _this;
|
|
11738
11757
|
|
|
11739
11758
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11742,7 +11761,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11742
11761
|
_args[_key] = arguments[_key];
|
|
11743
11762
|
}
|
|
11744
11763
|
|
|
11745
|
-
_this =
|
|
11764
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11746
11765
|
|
|
11747
11766
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11748
11767
|
var _this$props;
|
|
@@ -11829,19 +11848,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11829
11848
|
|
|
11830
11849
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11831
11850
|
if (typeof source === 'string') {
|
|
11832
|
-
return
|
|
11851
|
+
return _react["default"].createElement("source", {
|
|
11833
11852
|
key: index,
|
|
11834
11853
|
src: source
|
|
11835
11854
|
});
|
|
11836
11855
|
}
|
|
11837
11856
|
|
|
11838
|
-
return
|
|
11857
|
+
return _react["default"].createElement("source", _extends({
|
|
11839
11858
|
key: index
|
|
11840
11859
|
}, source));
|
|
11841
11860
|
});
|
|
11842
11861
|
|
|
11843
11862
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11844
|
-
return
|
|
11863
|
+
return _react["default"].createElement("track", _extends({
|
|
11845
11864
|
key: index
|
|
11846
11865
|
}, track));
|
|
11847
11866
|
});
|
|
@@ -11879,10 +11898,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11879
11898
|
key: "componentWillUnmount",
|
|
11880
11899
|
value: function componentWillUnmount() {
|
|
11881
11900
|
this.removeListeners(this.player);
|
|
11882
|
-
|
|
11883
|
-
if (this.hls) {
|
|
11884
|
-
this.hls.destroy();
|
|
11885
|
-
}
|
|
11886
11901
|
}
|
|
11887
11902
|
}, {
|
|
11888
11903
|
key: "addListeners",
|
|
@@ -12013,6 +12028,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12013
12028
|
value: function stop() {
|
|
12014
12029
|
this.player.removeAttribute('src');
|
|
12015
12030
|
|
|
12031
|
+
if (this.hls) {
|
|
12032
|
+
this.hls.destroy();
|
|
12033
|
+
}
|
|
12034
|
+
|
|
12016
12035
|
if (this.dash) {
|
|
12017
12036
|
this.dash.reset();
|
|
12018
12037
|
}
|
|
@@ -12124,7 +12143,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12124
12143
|
width: width === 'auto' ? width : '100%',
|
|
12125
12144
|
height: height === 'auto' ? height : '100%'
|
|
12126
12145
|
};
|
|
12127
|
-
return
|
|
12146
|
+
return _react["default"].createElement(Element, _extends({
|
|
12128
12147
|
ref: this.ref,
|
|
12129
12148
|
src: this.getSource(url),
|
|
12130
12149
|
style: style,
|
|
@@ -12214,16 +12233,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12214
12233
|
|
|
12215
12234
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12216
12235
|
|
|
12217
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12218
|
-
|
|
12219
12236
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12220
12237
|
|
|
12221
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12222
|
-
|
|
12223
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
12224
|
-
|
|
12225
12238
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12226
12239
|
|
|
12240
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12241
|
+
|
|
12227
12242
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12228
12243
|
|
|
12229
12244
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12232,12 +12247,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12232
12247
|
|
|
12233
12248
|
var ICON_SIZE = '64px';
|
|
12234
12249
|
|
|
12235
|
-
var Preview =
|
|
12250
|
+
var Preview =
|
|
12251
|
+
/*#__PURE__*/
|
|
12252
|
+
function (_Component) {
|
|
12236
12253
|
_inherits(Preview, _Component);
|
|
12237
12254
|
|
|
12238
|
-
var _super = _createSuper(Preview);
|
|
12239
|
-
|
|
12240
12255
|
function Preview() {
|
|
12256
|
+
var _getPrototypeOf2;
|
|
12257
|
+
|
|
12241
12258
|
var _this;
|
|
12242
12259
|
|
|
12243
12260
|
_classCallCheck(this, Preview);
|
|
@@ -12246,7 +12263,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12246
12263
|
args[_key] = arguments[_key];
|
|
12247
12264
|
}
|
|
12248
12265
|
|
|
12249
|
-
_this =
|
|
12266
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12250
12267
|
|
|
12251
12268
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12252
12269
|
|
|
@@ -12344,15 +12361,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12344
12361
|
}
|
|
12345
12362
|
};
|
|
12346
12363
|
|
|
12347
|
-
var defaultPlayIcon =
|
|
12364
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12348
12365
|
style: styles.shadow,
|
|
12349
12366
|
className: "react-player__shadow"
|
|
12350
|
-
},
|
|
12367
|
+
}, _react["default"].createElement("div", {
|
|
12351
12368
|
style: styles.playIcon,
|
|
12352
12369
|
className: "react-player__play-icon"
|
|
12353
12370
|
}));
|
|
12354
12371
|
|
|
12355
|
-
return
|
|
12372
|
+
return _react["default"].createElement("div", {
|
|
12356
12373
|
style: styles.preview,
|
|
12357
12374
|
className: "react-player__preview",
|
|
12358
12375
|
onClick: onClick
|
|
@@ -12389,12 +12406,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12389
12406
|
|
|
12390
12407
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12391
12408
|
|
|
12392
|
-
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12393
|
-
|
|
12394
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12395
|
-
|
|
12396
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12397
|
-
|
|
12398
12409
|
var PRELOAD_PLAYERS = [{
|
|
12399
12410
|
Player: YouTube_1.YouTube,
|
|
12400
12411
|
configKey: 'youtube',
|
|
@@ -12415,16 +12426,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12415
12426
|
|
|
12416
12427
|
function renderPreloadPlayers(url, controls, config) {
|
|
12417
12428
|
var players = [];
|
|
12418
|
-
|
|
12419
|
-
var
|
|
12420
|
-
|
|
12429
|
+
var _iteratorNormalCompletion = true;
|
|
12430
|
+
var _didIteratorError = false;
|
|
12431
|
+
var _iteratorError = undefined;
|
|
12421
12432
|
|
|
12422
12433
|
try {
|
|
12423
|
-
for (_iterator.
|
|
12434
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12424
12435
|
var player = _step.value;
|
|
12425
12436
|
|
|
12426
12437
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12427
|
-
players.push(
|
|
12438
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12428
12439
|
key: player.Player.displayName,
|
|
12429
12440
|
activePlayer: player.Player,
|
|
12430
12441
|
url: player.url,
|
|
@@ -12436,9 +12447,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12436
12447
|
}
|
|
12437
12448
|
}
|
|
12438
12449
|
} catch (err) {
|
|
12439
|
-
|
|
12450
|
+
_didIteratorError = true;
|
|
12451
|
+
_iteratorError = err;
|
|
12440
12452
|
} finally {
|
|
12441
|
-
|
|
12453
|
+
try {
|
|
12454
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12455
|
+
_iterator["return"]();
|
|
12456
|
+
}
|
|
12457
|
+
} finally {
|
|
12458
|
+
if (_didIteratorError) {
|
|
12459
|
+
throw _iteratorError;
|
|
12460
|
+
}
|
|
12461
|
+
}
|
|
12442
12462
|
}
|
|
12443
12463
|
|
|
12444
12464
|
return players;
|
|
@@ -12562,17 +12582,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12562
12582
|
|
|
12563
12583
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
12564
12584
|
|
|
12565
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12566
|
-
|
|
12567
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12568
|
-
|
|
12569
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12585
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12570
12586
|
|
|
12571
|
-
function
|
|
12587
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12572
12588
|
|
|
12573
|
-
function
|
|
12589
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12574
12590
|
|
|
12575
|
-
function
|
|
12591
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
12576
12592
|
|
|
12577
12593
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12578
12594
|
|
|
@@ -12580,16 +12596,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12580
12596
|
|
|
12581
12597
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12582
12598
|
|
|
12583
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12584
|
-
|
|
12585
12599
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12586
12600
|
|
|
12587
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12588
|
-
|
|
12589
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
12590
|
-
|
|
12591
12601
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12592
12602
|
|
|
12603
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12604
|
+
|
|
12593
12605
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12594
12606
|
|
|
12595
12607
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12599,12 +12611,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12599
12611
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12600
12612
|
var customPlayers = [];
|
|
12601
12613
|
|
|
12602
|
-
var ReactPlayer =
|
|
12614
|
+
var ReactPlayer =
|
|
12615
|
+
/*#__PURE__*/
|
|
12616
|
+
function (_Component) {
|
|
12603
12617
|
_inherits(ReactPlayer, _Component);
|
|
12604
12618
|
|
|
12605
|
-
var _super = _createSuper(ReactPlayer);
|
|
12606
|
-
|
|
12607
12619
|
function ReactPlayer() {
|
|
12620
|
+
var _getPrototypeOf2;
|
|
12621
|
+
|
|
12608
12622
|
var _this;
|
|
12609
12623
|
|
|
12610
12624
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12613,7 +12627,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12613
12627
|
args[_key] = arguments[_key];
|
|
12614
12628
|
}
|
|
12615
12629
|
|
|
12616
|
-
_this =
|
|
12630
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12617
12631
|
|
|
12618
12632
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12619
12633
|
|
|
@@ -12724,7 +12738,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12724
12738
|
key: "renderActivePlayer",
|
|
12725
12739
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12726
12740
|
if (!url) return null;
|
|
12727
|
-
return
|
|
12741
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12728
12742
|
key: activePlayer.displayName,
|
|
12729
12743
|
ref: this.activePlayerRef,
|
|
12730
12744
|
config: this.config,
|
|
@@ -12761,14 +12775,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12761
12775
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12762
12776
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12763
12777
|
|
|
12764
|
-
var preview =
|
|
12778
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12765
12779
|
url: url,
|
|
12766
12780
|
light: light,
|
|
12767
12781
|
playIcon: playIcon,
|
|
12768
12782
|
onClick: this.handleClickPreview
|
|
12769
12783
|
});
|
|
12770
12784
|
|
|
12771
|
-
return
|
|
12785
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12772
12786
|
ref: this.wrapperRef,
|
|
12773
12787
|
style: _objectSpread({}, style, {
|
|
12774
12788
|
width: width,
|
|
@@ -13373,7 +13387,7 @@ var Poll = function Poll(_ref) {
|
|
|
13373
13387
|
);
|
|
13374
13388
|
};
|
|
13375
13389
|
|
|
13376
|
-
var numberOfPaginations =
|
|
13390
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
13377
13391
|
|
|
13378
13392
|
var Quiz = function Quiz(_ref) {
|
|
13379
13393
|
var quizzes = _ref.quizzes,
|
|
@@ -13463,7 +13477,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
13463
13477
|
var renderPagination = function renderPagination() {
|
|
13464
13478
|
return React__default.createElement(
|
|
13465
13479
|
Pagination,
|
|
13466
|
-
{ className: 'p-0 m-0', size:
|
|
13480
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
13467
13481
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
13468
13482
|
return changePage('first');
|
|
13469
13483
|
}, disabled: currentPage === 1 }),
|
|
@@ -13627,7 +13641,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13627
13641
|
};
|
|
13628
13642
|
|
|
13629
13643
|
var Figure = dynamic(function () {
|
|
13630
|
-
return import('./Figure-
|
|
13644
|
+
return import('./Figure-ddfa279d.js');
|
|
13631
13645
|
}, { ssr: false });
|
|
13632
13646
|
|
|
13633
13647
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -13849,7 +13863,7 @@ var Feature = function Feature(props) {
|
|
|
13849
13863
|
};
|
|
13850
13864
|
//image width
|
|
13851
13865
|
var imageWidth = 900;
|
|
13852
|
-
if (
|
|
13866
|
+
if (main_36) {
|
|
13853
13867
|
imageWidth = 450;
|
|
13854
13868
|
}
|
|
13855
13869
|
|
|
@@ -14201,16 +14215,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14201
14215
|
_ref$className = _ref.className,
|
|
14202
14216
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14203
14217
|
|
|
14204
|
-
/*
|
|
14205
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14206
|
-
example:
|
|
14207
|
-
<RelatedTopicDropdown
|
|
14208
|
-
page='/clinical'
|
|
14209
|
-
exclude="clinical"
|
|
14210
|
-
className='mb-3'
|
|
14211
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14212
|
-
subTaxonomies={props.subTaxonomies}
|
|
14213
|
-
/>
|
|
14218
|
+
/*
|
|
14219
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14220
|
+
example:
|
|
14221
|
+
<RelatedTopicDropdown
|
|
14222
|
+
page='/clinical'
|
|
14223
|
+
exclude="clinical"
|
|
14224
|
+
className='mb-3'
|
|
14225
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14226
|
+
subTaxonomies={props.subTaxonomies}
|
|
14227
|
+
/>
|
|
14214
14228
|
*/
|
|
14215
14229
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14216
14230
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14248,25 +14262,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14248
14262
|
}
|
|
14249
14263
|
};
|
|
14250
14264
|
|
|
14251
|
-
/*
|
|
14252
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14253
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14254
|
-
|
|
14255
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14256
|
-
|
|
14257
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14258
|
-
|
|
14259
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14260
|
-
...,
|
|
14261
|
-
'ancestor': parent->parent->identifier,
|
|
14262
|
-
'parent': parent->identifier,
|
|
14263
|
-
'path': identifier
|
|
14264
|
-
},
|
|
14265
|
-
'document_group': documentGroup-> {
|
|
14266
|
-
name,
|
|
14267
|
-
'parent': parent->identifier,
|
|
14268
|
-
'path': identifier.current
|
|
14269
|
-
}
|
|
14265
|
+
/*
|
|
14266
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14267
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14268
|
+
|
|
14269
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14270
|
+
|
|
14271
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14272
|
+
|
|
14273
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14274
|
+
...,
|
|
14275
|
+
'ancestor': parent->parent->identifier,
|
|
14276
|
+
'parent': parent->identifier,
|
|
14277
|
+
'path': identifier
|
|
14278
|
+
},
|
|
14279
|
+
'document_group': documentGroup-> {
|
|
14280
|
+
name,
|
|
14281
|
+
'parent': parent->identifier,
|
|
14282
|
+
'path': identifier.current
|
|
14283
|
+
}
|
|
14270
14284
|
*/
|
|
14271
14285
|
|
|
14272
14286
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15174,34 +15188,34 @@ var GridHero = function GridHero(props) {
|
|
|
15174
15188
|
);
|
|
15175
15189
|
};
|
|
15176
15190
|
|
|
15177
|
-
/*
|
|
15178
|
-
Sample query
|
|
15179
|
-
let references = ''
|
|
15180
|
-
if(article.taxonomyMapping.length > 0){
|
|
15181
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15182
|
-
references = references + `references('${ref._ref}') `
|
|
15183
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15184
|
-
references = references + ` && `
|
|
15185
|
-
}
|
|
15186
|
-
})
|
|
15187
|
-
}
|
|
15188
|
-
|
|
15189
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15190
|
-
...,
|
|
15191
|
-
title,
|
|
15192
|
-
summary,
|
|
15193
|
-
thumbnail,
|
|
15194
|
-
url,
|
|
15195
|
-
published,
|
|
15196
|
-
authorMapping[]->,
|
|
15197
|
-
contentCategory->
|
|
15198
|
-
}`
|
|
15199
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15200
|
-
|
|
15201
|
-
Sample usage
|
|
15202
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15203
|
-
|
|
15204
|
-
|
|
15191
|
+
/*
|
|
15192
|
+
Sample query
|
|
15193
|
+
let references = ''
|
|
15194
|
+
if(article.taxonomyMapping.length > 0){
|
|
15195
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15196
|
+
references = references + `references('${ref._ref}') `
|
|
15197
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15198
|
+
references = references + ` && `
|
|
15199
|
+
}
|
|
15200
|
+
})
|
|
15201
|
+
}
|
|
15202
|
+
|
|
15203
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15204
|
+
...,
|
|
15205
|
+
title,
|
|
15206
|
+
summary,
|
|
15207
|
+
thumbnail,
|
|
15208
|
+
url,
|
|
15209
|
+
published,
|
|
15210
|
+
authorMapping[]->,
|
|
15211
|
+
contentCategory->
|
|
15212
|
+
}`
|
|
15213
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15214
|
+
|
|
15215
|
+
Sample usage
|
|
15216
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15217
|
+
|
|
15218
|
+
|
|
15205
15219
|
*/
|
|
15206
15220
|
var RelatedContent = function RelatedContent(props) {
|
|
15207
15221
|
var client = props.client,
|
|
@@ -15268,21 +15282,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15268
15282
|
);
|
|
15269
15283
|
};
|
|
15270
15284
|
|
|
15271
|
-
/*
|
|
15272
|
-
Example usage - targetedonc.com/latest-conference
|
|
15273
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15274
|
-
...,
|
|
15275
|
-
title,
|
|
15276
|
-
summary,
|
|
15277
|
-
thumbnail,
|
|
15278
|
-
url,
|
|
15279
|
-
published,
|
|
15280
|
-
documentGroup->,
|
|
15281
|
-
contentCategory->,
|
|
15282
|
-
'pageNumber': ${currentPage}
|
|
15283
|
-
}`
|
|
15284
|
-
|
|
15285
|
-
const posts = await client.fetch(query, params)
|
|
15285
|
+
/*
|
|
15286
|
+
Example usage - targetedonc.com/latest-conference
|
|
15287
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15288
|
+
...,
|
|
15289
|
+
title,
|
|
15290
|
+
summary,
|
|
15291
|
+
thumbnail,
|
|
15292
|
+
url,
|
|
15293
|
+
published,
|
|
15294
|
+
documentGroup->,
|
|
15295
|
+
contentCategory->,
|
|
15296
|
+
'pageNumber': ${currentPage}
|
|
15297
|
+
}`
|
|
15298
|
+
|
|
15299
|
+
const posts = await client.fetch(query, params)
|
|
15286
15300
|
*/
|
|
15287
15301
|
|
|
15288
15302
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16548,7 +16562,7 @@ var Article = function Article(props) {
|
|
|
16548
16562
|
React__default.createElement('br', null),
|
|
16549
16563
|
React__default.createElement('br', null)
|
|
16550
16564
|
),
|
|
16551
|
-
|
|
16565
|
+
main_36 && props.article.Ads.map(function (ad, index) {
|
|
16552
16566
|
if (index === 0) {
|
|
16553
16567
|
return React__default.createElement(
|
|
16554
16568
|
'div',
|
|
@@ -16573,7 +16587,7 @@ var Article = function Article(props) {
|
|
|
16573
16587
|
renderIsiContent(props.article)
|
|
16574
16588
|
)
|
|
16575
16589
|
),
|
|
16576
|
-
|
|
16590
|
+
main_36 && props.article.Ads.map(function (ad, index) {
|
|
16577
16591
|
if (index > 0) {
|
|
16578
16592
|
return React__default.createElement(
|
|
16579
16593
|
'div',
|
|
@@ -16680,7 +16694,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16680
16694
|
setQueueData = _useState2[1];
|
|
16681
16695
|
|
|
16682
16696
|
var refreshAD = function refreshAD(path) {
|
|
16683
|
-
if (!
|
|
16697
|
+
if (!main_36) {
|
|
16684
16698
|
var activeArticle = queueData.find(function (item) {
|
|
16685
16699
|
return item.url.current === path;
|
|
16686
16700
|
});
|
|
@@ -16790,27 +16804,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16790
16804
|
};
|
|
16791
16805
|
|
|
16792
16806
|
var KMTracker = function KMTracker(props) {
|
|
16793
|
-
|
|
16807
|
+
var id = props.id;
|
|
16794
16808
|
|
|
16795
|
-
|
|
16809
|
+
if (document && id) {
|
|
16796
16810
|
(function () {
|
|
16797
|
-
|
|
16811
|
+
var ecnJquery = document.createElement('script');
|
|
16798
16812
|
|
|
16799
|
-
|
|
16800
|
-
|
|
16801
|
-
|
|
16813
|
+
ecnJquery.type = 'text/javascript';
|
|
16814
|
+
ecnJquery.async = true;
|
|
16815
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16802
16816
|
|
|
16803
|
-
|
|
16817
|
+
var ecnScript = document.createElement('script');
|
|
16804
16818
|
|
|
16805
|
-
|
|
16806
|
-
|
|
16807
|
-
|
|
16808
|
-
|
|
16819
|
+
ecnScript.type = 'text/javascript';
|
|
16820
|
+
ecnScript.async = true;
|
|
16821
|
+
ecnScript.id = 'km-tracker';
|
|
16822
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16809
16823
|
|
|
16810
|
-
|
|
16811
|
-
|
|
16812
|
-
|
|
16813
|
-
|
|
16824
|
+
document.head.appendChild(ecnJquery);
|
|
16825
|
+
document.head.appendChild(ecnScript);
|
|
16826
|
+
})();
|
|
16827
|
+
}
|
|
16814
16828
|
};
|
|
16815
16829
|
|
|
16816
16830
|
var returnFormField = function returnFormField(_ref) {
|
|
@@ -18837,6 +18851,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
18837
18851
|
if (value != null) {
|
|
18838
18852
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
18839
18853
|
var desc = $gOPD(value, parts[i]);
|
|
18854
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
18855
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
18856
|
+
}
|
|
18840
18857
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
18841
18858
|
} else {
|
|
18842
18859
|
value = value[parts[i]];
|
|
@@ -18869,7 +18886,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
18869
18886
|
return intrinsic;
|
|
18870
18887
|
};
|
|
18871
18888
|
|
|
18872
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
18889
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
18890
|
+
|
|
18891
|
+
if ($defineProperty) {
|
|
18892
|
+
try {
|
|
18893
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
18894
|
+
} catch (e) {
|
|
18895
|
+
// IE 8 has a broken defineProperty
|
|
18896
|
+
$defineProperty = null;
|
|
18897
|
+
}
|
|
18898
|
+
}
|
|
18873
18899
|
|
|
18874
18900
|
|
|
18875
18901
|
|
|
@@ -19012,42 +19038,28 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
19012
19038
|
return obj;
|
|
19013
19039
|
};
|
|
19014
19040
|
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
19023
|
-
|
|
19024
|
-
if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
|
|
19025
|
-
return false;
|
|
19041
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
19042
|
+
if ($gOPD$1) {
|
|
19043
|
+
try {
|
|
19044
|
+
$gOPD$1([], 'length');
|
|
19045
|
+
} catch (e) {
|
|
19046
|
+
// IE 8 has a broken gOPD
|
|
19047
|
+
$gOPD$1 = null;
|
|
19026
19048
|
}
|
|
19049
|
+
}
|
|
19027
19050
|
|
|
19028
|
-
|
|
19029
|
-
};
|
|
19030
|
-
|
|
19031
|
-
var isPrimitive$1 = function isPrimitive(value) {
|
|
19032
|
-
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
19033
|
-
};
|
|
19034
|
-
|
|
19035
|
-
var $Object = GetIntrinsic('%Object%');
|
|
19036
|
-
|
|
19051
|
+
var getOwnPropertyDescriptor = $gOPD$1;
|
|
19037
19052
|
|
|
19053
|
+
var $Array = GetIntrinsic('%Array%');
|
|
19038
19054
|
|
|
19039
|
-
|
|
19040
|
-
var $
|
|
19055
|
+
// eslint-disable-next-line global-require
|
|
19056
|
+
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
19041
19057
|
|
|
19042
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-
|
|
19058
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
19043
19059
|
|
|
19044
|
-
var
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
}
|
|
19048
|
-
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
19049
|
-
return true;
|
|
19050
|
-
};
|
|
19060
|
+
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
19061
|
+
return toStr$4(argument) === '[object Array]';
|
|
19062
|
+
};
|
|
19051
19063
|
|
|
19052
19064
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19053
19065
|
|
|
@@ -19055,60 +19067,66 @@ var IsPropertyKey = function IsPropertyKey(argument) {
|
|
|
19055
19067
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19056
19068
|
};
|
|
19057
19069
|
|
|
19058
|
-
var
|
|
19059
|
-
|
|
19060
|
-
};
|
|
19070
|
+
var regexExec = RegExp.prototype.exec;
|
|
19071
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
19061
19072
|
|
|
19062
|
-
|
|
19073
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
19074
|
+
try {
|
|
19075
|
+
var lastIndex = value.lastIndex;
|
|
19076
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
19063
19077
|
|
|
19064
|
-
|
|
19065
|
-
if (x === y) { // 0 === -0, but they are not identical.
|
|
19066
|
-
if (x === 0) { return 1 / x === 1 / y; }
|
|
19078
|
+
regexExec.call(value);
|
|
19067
19079
|
return true;
|
|
19080
|
+
} catch (e) {
|
|
19081
|
+
return false;
|
|
19082
|
+
} finally {
|
|
19083
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
19068
19084
|
}
|
|
19069
|
-
return _isNaN(x) && _isNaN(y);
|
|
19070
19085
|
};
|
|
19086
|
+
var toStr$5 = Object.prototype.toString;
|
|
19087
|
+
var regexClass = '[object RegExp]';
|
|
19088
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19071
19089
|
|
|
19072
|
-
var
|
|
19073
|
-
|
|
19090
|
+
var isRegex = function isRegex(value) {
|
|
19091
|
+
if (!value || typeof value !== 'object') {
|
|
19092
|
+
return false;
|
|
19093
|
+
}
|
|
19094
|
+
if (!hasToStringTag) {
|
|
19095
|
+
return toStr$5.call(value) === regexClass;
|
|
19096
|
+
}
|
|
19074
19097
|
|
|
19098
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
19099
|
+
var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
|
|
19100
|
+
if (!hasLastIndexDataProperty) {
|
|
19101
|
+
return false;
|
|
19102
|
+
}
|
|
19075
19103
|
|
|
19104
|
+
return tryRegexExecCall(value);
|
|
19105
|
+
};
|
|
19076
19106
|
|
|
19107
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
19077
19108
|
|
|
19109
|
+
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
19078
19110
|
|
|
19111
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
19079
19112
|
|
|
19080
19113
|
|
|
19081
19114
|
|
|
19082
19115
|
|
|
19083
19116
|
|
|
19084
|
-
// https://
|
|
19117
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
19085
19118
|
|
|
19086
|
-
var
|
|
19087
|
-
if (
|
|
19088
|
-
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
19089
|
-
}
|
|
19090
|
-
if (!IsPropertyKey(P)) {
|
|
19091
|
-
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
19092
|
-
}
|
|
19093
|
-
var oldDesc = $gOPD$1(O, P);
|
|
19094
|
-
var extensible = oldDesc || IsExtensible(O);
|
|
19095
|
-
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19096
|
-
if (immutable || !extensible) {
|
|
19119
|
+
var IsRegExp = function IsRegExp(argument) {
|
|
19120
|
+
if (!argument || typeof argument !== 'object') {
|
|
19097
19121
|
return false;
|
|
19098
19122
|
}
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
O,
|
|
19104
|
-
P,
|
|
19105
|
-
{
|
|
19106
|
-
'[[Configurable]]': true,
|
|
19107
|
-
'[[Enumerable]]': true,
|
|
19108
|
-
'[[Value]]': V,
|
|
19109
|
-
'[[Writable]]': true
|
|
19123
|
+
if ($match) {
|
|
19124
|
+
var isRegExp = argument[$match];
|
|
19125
|
+
if (typeof isRegExp !== 'undefined') {
|
|
19126
|
+
return ToBoolean(isRegExp);
|
|
19110
19127
|
}
|
|
19111
|
-
|
|
19128
|
+
}
|
|
19129
|
+
return isRegex(argument);
|
|
19112
19130
|
};
|
|
19113
19131
|
|
|
19114
19132
|
var fnToStr = Function.prototype.toString;
|
|
@@ -19132,18 +19150,18 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
19132
19150
|
return false;
|
|
19133
19151
|
}
|
|
19134
19152
|
};
|
|
19135
|
-
var toStr$
|
|
19153
|
+
var toStr$6 = Object.prototype.toString;
|
|
19136
19154
|
var fnClass = '[object Function]';
|
|
19137
19155
|
var genClass = '[object GeneratorFunction]';
|
|
19138
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19156
|
+
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19139
19157
|
|
|
19140
19158
|
var isCallable = function isCallable(value) {
|
|
19141
19159
|
if (!value) { return false; }
|
|
19142
19160
|
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
19143
19161
|
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
19144
|
-
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
19162
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
19145
19163
|
if (isES6ClassFn(value)) { return false; }
|
|
19146
|
-
var strClass = toStr$
|
|
19164
|
+
var strClass = toStr$6.call(value);
|
|
19147
19165
|
return strClass === fnClass || strClass === genClass;
|
|
19148
19166
|
};
|
|
19149
19167
|
|
|
@@ -19151,24 +19169,204 @@ var isCallable = function isCallable(value) {
|
|
|
19151
19169
|
|
|
19152
19170
|
var IsCallable = isCallable;
|
|
19153
19171
|
|
|
19154
|
-
var $TypeError$
|
|
19155
|
-
|
|
19156
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19172
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
19157
19173
|
|
|
19158
|
-
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19159
|
-
if (value == null) {
|
|
19160
|
-
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
19161
|
-
}
|
|
19162
|
-
return value;
|
|
19163
|
-
};
|
|
19164
19174
|
|
|
19165
|
-
var RequireObjectCoercible = CheckObjectCoercible;
|
|
19166
19175
|
|
|
19167
|
-
var $Object$1 = GetIntrinsic('%Object%');
|
|
19168
19176
|
|
|
19169
19177
|
|
|
19178
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
19170
19179
|
|
|
19171
|
-
|
|
19180
|
+
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
19181
|
+
if (Type$1(Obj) !== 'Object') {
|
|
19182
|
+
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
19183
|
+
}
|
|
19184
|
+
|
|
19185
|
+
var desc = {};
|
|
19186
|
+
if (src$1(Obj, 'enumerable')) {
|
|
19187
|
+
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
19188
|
+
}
|
|
19189
|
+
if (src$1(Obj, 'configurable')) {
|
|
19190
|
+
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
19191
|
+
}
|
|
19192
|
+
if (src$1(Obj, 'value')) {
|
|
19193
|
+
desc['[[Value]]'] = Obj.value;
|
|
19194
|
+
}
|
|
19195
|
+
if (src$1(Obj, 'writable')) {
|
|
19196
|
+
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
19197
|
+
}
|
|
19198
|
+
if (src$1(Obj, 'get')) {
|
|
19199
|
+
var getter = Obj.get;
|
|
19200
|
+
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
19201
|
+
throw new TypeError('getter must be a function');
|
|
19202
|
+
}
|
|
19203
|
+
desc['[[Get]]'] = getter;
|
|
19204
|
+
}
|
|
19205
|
+
if (src$1(Obj, 'set')) {
|
|
19206
|
+
var setter = Obj.set;
|
|
19207
|
+
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
19208
|
+
throw new $TypeError$2('setter must be a function');
|
|
19209
|
+
}
|
|
19210
|
+
desc['[[Set]]'] = setter;
|
|
19211
|
+
}
|
|
19212
|
+
|
|
19213
|
+
if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
|
|
19214
|
+
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
19215
|
+
}
|
|
19216
|
+
return desc;
|
|
19217
|
+
};
|
|
19218
|
+
|
|
19219
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
19220
|
+
|
|
19221
|
+
|
|
19222
|
+
|
|
19223
|
+
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
19224
|
+
|
|
19225
|
+
|
|
19226
|
+
|
|
19227
|
+
|
|
19228
|
+
|
|
19229
|
+
|
|
19230
|
+
|
|
19231
|
+
|
|
19232
|
+
|
|
19233
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
19234
|
+
|
|
19235
|
+
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
19236
|
+
if (Type$1(O) !== 'Object') {
|
|
19237
|
+
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
19238
|
+
}
|
|
19239
|
+
if (!IsPropertyKey(P)) {
|
|
19240
|
+
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
19241
|
+
}
|
|
19242
|
+
if (!src$1(O, P)) {
|
|
19243
|
+
return void 0;
|
|
19244
|
+
}
|
|
19245
|
+
if (!getOwnPropertyDescriptor) {
|
|
19246
|
+
// ES3 / IE 8 fallback
|
|
19247
|
+
var arrayLength = IsArray(O) && P === 'length';
|
|
19248
|
+
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
19249
|
+
return {
|
|
19250
|
+
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
19251
|
+
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
19252
|
+
'[[Value]]': O[P],
|
|
19253
|
+
'[[Writable]]': true
|
|
19254
|
+
};
|
|
19255
|
+
}
|
|
19256
|
+
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
19257
|
+
};
|
|
19258
|
+
|
|
19259
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
19260
|
+
|
|
19261
|
+
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
19262
|
+
if (typeof Desc === 'undefined') {
|
|
19263
|
+
return false;
|
|
19264
|
+
}
|
|
19265
|
+
|
|
19266
|
+
assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
|
|
19267
|
+
|
|
19268
|
+
if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
|
|
19269
|
+
return false;
|
|
19270
|
+
}
|
|
19271
|
+
|
|
19272
|
+
return true;
|
|
19273
|
+
};
|
|
19274
|
+
|
|
19275
|
+
var isPrimitive$1 = function isPrimitive(value) {
|
|
19276
|
+
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
19277
|
+
};
|
|
19278
|
+
|
|
19279
|
+
var $Object = GetIntrinsic('%Object%');
|
|
19280
|
+
|
|
19281
|
+
|
|
19282
|
+
|
|
19283
|
+
var $preventExtensions = $Object.preventExtensions;
|
|
19284
|
+
var $isExtensible = $Object.isExtensible;
|
|
19285
|
+
|
|
19286
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
19287
|
+
|
|
19288
|
+
var IsExtensible = $preventExtensions
|
|
19289
|
+
? function IsExtensible(obj) {
|
|
19290
|
+
return !isPrimitive$1(obj) && $isExtensible(obj);
|
|
19291
|
+
}
|
|
19292
|
+
: function IsExtensible(obj) {
|
|
19293
|
+
return !isPrimitive$1(obj);
|
|
19294
|
+
};
|
|
19295
|
+
|
|
19296
|
+
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
19297
|
+
return a !== a;
|
|
19298
|
+
};
|
|
19299
|
+
|
|
19300
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
19301
|
+
|
|
19302
|
+
var SameValue = function SameValue(x, y) {
|
|
19303
|
+
if (x === y) { // 0 === -0, but they are not identical.
|
|
19304
|
+
if (x === 0) { return 1 / x === 1 / y; }
|
|
19305
|
+
return true;
|
|
19306
|
+
}
|
|
19307
|
+
return _isNaN(x) && _isNaN(y);
|
|
19308
|
+
};
|
|
19309
|
+
|
|
19310
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
19311
|
+
|
|
19312
|
+
|
|
19313
|
+
|
|
19314
|
+
|
|
19315
|
+
|
|
19316
|
+
|
|
19317
|
+
|
|
19318
|
+
|
|
19319
|
+
|
|
19320
|
+
|
|
19321
|
+
|
|
19322
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
19323
|
+
|
|
19324
|
+
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
19325
|
+
if (Type$1(O) !== 'Object') {
|
|
19326
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
19327
|
+
}
|
|
19328
|
+
if (!IsPropertyKey(P)) {
|
|
19329
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
19330
|
+
}
|
|
19331
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
19332
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
19333
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19334
|
+
if (immutable || !extensible) {
|
|
19335
|
+
return false;
|
|
19336
|
+
}
|
|
19337
|
+
return DefineOwnProperty(
|
|
19338
|
+
IsDataDescriptor,
|
|
19339
|
+
SameValue,
|
|
19340
|
+
FromPropertyDescriptor,
|
|
19341
|
+
O,
|
|
19342
|
+
P,
|
|
19343
|
+
{
|
|
19344
|
+
'[[Configurable]]': true,
|
|
19345
|
+
'[[Enumerable]]': true,
|
|
19346
|
+
'[[Value]]': V,
|
|
19347
|
+
'[[Writable]]': true
|
|
19348
|
+
}
|
|
19349
|
+
);
|
|
19350
|
+
};
|
|
19351
|
+
|
|
19352
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
19353
|
+
|
|
19354
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19355
|
+
|
|
19356
|
+
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19357
|
+
if (value == null) {
|
|
19358
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
19359
|
+
}
|
|
19360
|
+
return value;
|
|
19361
|
+
};
|
|
19362
|
+
|
|
19363
|
+
var RequireObjectCoercible = CheckObjectCoercible;
|
|
19364
|
+
|
|
19365
|
+
var $Object$1 = GetIntrinsic('%Object%');
|
|
19366
|
+
|
|
19367
|
+
|
|
19368
|
+
|
|
19369
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
19172
19370
|
|
|
19173
19371
|
var ToObject = function ToObject(value) {
|
|
19174
19372
|
RequireObjectCoercible(value);
|
|
@@ -19228,241 +19426,6 @@ defineProperties_1(implementation$2, {
|
|
|
19228
19426
|
|
|
19229
19427
|
var object_getownpropertydescriptors = implementation$2;
|
|
19230
19428
|
|
|
19231
|
-
/* globals
|
|
19232
|
-
Atomics,
|
|
19233
|
-
SharedArrayBuffer,
|
|
19234
|
-
*/
|
|
19235
|
-
|
|
19236
|
-
var undefined$2;
|
|
19237
|
-
|
|
19238
|
-
var $TypeError$4 = TypeError;
|
|
19239
|
-
|
|
19240
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
19241
|
-
if ($gOPD$3) {
|
|
19242
|
-
try {
|
|
19243
|
-
$gOPD$3({}, '');
|
|
19244
|
-
} catch (e) {
|
|
19245
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
19246
|
-
}
|
|
19247
|
-
}
|
|
19248
|
-
|
|
19249
|
-
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
19250
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
19251
|
-
? (function () {
|
|
19252
|
-
try {
|
|
19253
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
19254
|
-
arguments.callee; // IE 8 does not throw here
|
|
19255
|
-
return throwTypeError$1;
|
|
19256
|
-
} catch (calleeThrows) {
|
|
19257
|
-
try {
|
|
19258
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
19259
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
19260
|
-
} catch (gOPDthrows) {
|
|
19261
|
-
return throwTypeError$1;
|
|
19262
|
-
}
|
|
19263
|
-
}
|
|
19264
|
-
}())
|
|
19265
|
-
: throwTypeError$1;
|
|
19266
|
-
|
|
19267
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
19268
|
-
|
|
19269
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
19270
|
-
var generatorFunction$1 = undefined$2;
|
|
19271
|
-
var asyncFunction$1 = undefined$2;
|
|
19272
|
-
var asyncGenFunction$1 = undefined$2;
|
|
19273
|
-
|
|
19274
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
19275
|
-
|
|
19276
|
-
var INTRINSICS$1 = {
|
|
19277
|
-
'%Array%': Array,
|
|
19278
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
19279
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
19280
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
19281
|
-
'%ArrayPrototype%': Array.prototype,
|
|
19282
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
19283
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
19284
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
19285
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
19286
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
19287
|
-
'%AsyncFunction%': asyncFunction$1,
|
|
19288
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
19289
|
-
'%AsyncGenerator%': undefined$2,
|
|
19290
|
-
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
19291
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
19292
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
19293
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
19294
|
-
'%Boolean%': Boolean,
|
|
19295
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
19296
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
19297
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
19298
|
-
'%Date%': Date,
|
|
19299
|
-
'%DatePrototype%': Date.prototype,
|
|
19300
|
-
'%decodeURI%': decodeURI,
|
|
19301
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
19302
|
-
'%encodeURI%': encodeURI,
|
|
19303
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
19304
|
-
'%Error%': Error,
|
|
19305
|
-
'%ErrorPrototype%': Error.prototype,
|
|
19306
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
19307
|
-
'%EvalError%': EvalError,
|
|
19308
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
19309
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
19310
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
19311
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
19312
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
19313
|
-
'%Function%': Function,
|
|
19314
|
-
'%FunctionPrototype%': Function.prototype,
|
|
19315
|
-
'%Generator%': undefined$2,
|
|
19316
|
-
'%GeneratorFunction%': generatorFunction$1,
|
|
19317
|
-
'%GeneratorPrototype%': undefined$2,
|
|
19318
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
19319
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19320
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
19321
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
19322
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
19323
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
19324
|
-
'%isFinite%': isFinite,
|
|
19325
|
-
'%isNaN%': isNaN,
|
|
19326
|
-
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
19327
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
19328
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
19329
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
19330
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
19331
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
19332
|
-
'%Math%': Math,
|
|
19333
|
-
'%Number%': Number,
|
|
19334
|
-
'%NumberPrototype%': Number.prototype,
|
|
19335
|
-
'%Object%': Object,
|
|
19336
|
-
'%ObjectPrototype%': Object.prototype,
|
|
19337
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
19338
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
19339
|
-
'%parseFloat%': parseFloat,
|
|
19340
|
-
'%parseInt%': parseInt,
|
|
19341
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
19342
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
19343
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
19344
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
19345
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
19346
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
19347
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
19348
|
-
'%RangeError%': RangeError,
|
|
19349
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
19350
|
-
'%ReferenceError%': ReferenceError,
|
|
19351
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
19352
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
19353
|
-
'%RegExp%': RegExp,
|
|
19354
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
19355
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
19356
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
19357
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
19358
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
19359
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
19360
|
-
'%String%': String,
|
|
19361
|
-
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
19362
|
-
'%StringPrototype%': String.prototype,
|
|
19363
|
-
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
19364
|
-
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
19365
|
-
'%SyntaxError%': SyntaxError,
|
|
19366
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
19367
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
19368
|
-
'%TypedArray%': TypedArray$1,
|
|
19369
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
19370
|
-
'%TypeError%': $TypeError$4,
|
|
19371
|
-
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
19372
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
19373
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
19374
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
19375
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
19376
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
19377
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
19378
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
19379
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
19380
|
-
'%URIError%': URIError,
|
|
19381
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
19382
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
19383
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
19384
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
19385
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
19386
|
-
};
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
19390
|
-
|
|
19391
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
19392
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
19393
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
19394
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
19395
|
-
var result = [];
|
|
19396
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
19397
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
19398
|
-
});
|
|
19399
|
-
return result;
|
|
19400
|
-
};
|
|
19401
|
-
/* end adaptation */
|
|
19402
|
-
|
|
19403
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
19404
|
-
if (!(name in INTRINSICS$1)) {
|
|
19405
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
19406
|
-
}
|
|
19407
|
-
|
|
19408
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
19409
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
19410
|
-
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
19411
|
-
}
|
|
19412
|
-
|
|
19413
|
-
return INTRINSICS$1[name];
|
|
19414
|
-
};
|
|
19415
|
-
|
|
19416
|
-
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
19417
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
19418
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
19419
|
-
}
|
|
19420
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
19421
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
19422
|
-
}
|
|
19423
|
-
|
|
19424
|
-
var parts = stringToPath$1(name);
|
|
19425
|
-
|
|
19426
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
19427
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
19428
|
-
if (value != null) {
|
|
19429
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
19430
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
19431
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
19432
|
-
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
19433
|
-
}
|
|
19434
|
-
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
19435
|
-
} else {
|
|
19436
|
-
value = value[parts[i]];
|
|
19437
|
-
}
|
|
19438
|
-
}
|
|
19439
|
-
}
|
|
19440
|
-
return value;
|
|
19441
|
-
};
|
|
19442
|
-
|
|
19443
|
-
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
19444
|
-
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
19445
|
-
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
19446
|
-
|
|
19447
|
-
var callBind$1 = function callBind() {
|
|
19448
|
-
return $reflectApply(functionBind, $call$1, arguments);
|
|
19449
|
-
};
|
|
19450
|
-
|
|
19451
|
-
var apply$1 = function applyBind() {
|
|
19452
|
-
return $reflectApply(functionBind, $apply$1, arguments);
|
|
19453
|
-
};
|
|
19454
|
-
callBind$1.apply = apply$1;
|
|
19455
|
-
|
|
19456
|
-
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
19457
|
-
|
|
19458
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
19459
|
-
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
19460
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
19461
|
-
return callBind$1(intrinsic);
|
|
19462
|
-
}
|
|
19463
|
-
return intrinsic;
|
|
19464
|
-
};
|
|
19465
|
-
|
|
19466
19429
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
19467
19430
|
&& typeof Object.defineProperties === 'function';
|
|
19468
19431
|
|
|
@@ -19480,14 +19443,14 @@ if (typeof Promise !== 'function') {
|
|
|
19480
19443
|
|
|
19481
19444
|
|
|
19482
19445
|
|
|
19483
|
-
var $slice = callBound
|
|
19484
|
-
var $concat$1 = callBound
|
|
19485
|
-
var $forEach = callBound
|
|
19446
|
+
var $slice = callBound('Array.prototype.slice');
|
|
19447
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
19448
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
19486
19449
|
|
|
19487
|
-
var hasSymbols$
|
|
19450
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
19488
19451
|
|
|
19489
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
19490
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
19452
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
19453
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
19491
19454
|
|
|
19492
19455
|
var implementation$3 = function promisify(orig) {
|
|
19493
19456
|
if (typeof orig !== 'function') {
|
|
@@ -19497,7 +19460,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
19497
19460
|
throw error;
|
|
19498
19461
|
}
|
|
19499
19462
|
|
|
19500
|
-
if (hasSymbols$
|
|
19463
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
19501
19464
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
19502
19465
|
if (typeof customFunction !== 'function') {
|
|
19503
19466
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -19626,324 +19589,6 @@ function connect() {
|
|
|
19626
19589
|
|
|
19627
19590
|
var db = connect;
|
|
19628
19591
|
|
|
19629
|
-
var crypt = createCommonjsModule(function (module) {
|
|
19630
|
-
(function() {
|
|
19631
|
-
var base64map
|
|
19632
|
-
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
19633
|
-
|
|
19634
|
-
crypt = {
|
|
19635
|
-
// Bit-wise rotation left
|
|
19636
|
-
rotl: function(n, b) {
|
|
19637
|
-
return (n << b) | (n >>> (32 - b));
|
|
19638
|
-
},
|
|
19639
|
-
|
|
19640
|
-
// Bit-wise rotation right
|
|
19641
|
-
rotr: function(n, b) {
|
|
19642
|
-
return (n << (32 - b)) | (n >>> b);
|
|
19643
|
-
},
|
|
19644
|
-
|
|
19645
|
-
// Swap big-endian to little-endian and vice versa
|
|
19646
|
-
endian: function(n) {
|
|
19647
|
-
// If number given, swap endian
|
|
19648
|
-
if (n.constructor == Number) {
|
|
19649
|
-
return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
|
|
19650
|
-
}
|
|
19651
|
-
|
|
19652
|
-
// Else, assume array and swap all items
|
|
19653
|
-
for (var i = 0; i < n.length; i++)
|
|
19654
|
-
n[i] = crypt.endian(n[i]);
|
|
19655
|
-
return n;
|
|
19656
|
-
},
|
|
19657
|
-
|
|
19658
|
-
// Generate an array of any length of random bytes
|
|
19659
|
-
randomBytes: function(n) {
|
|
19660
|
-
for (var bytes = []; n > 0; n--)
|
|
19661
|
-
bytes.push(Math.floor(Math.random() * 256));
|
|
19662
|
-
return bytes;
|
|
19663
|
-
},
|
|
19664
|
-
|
|
19665
|
-
// Convert a byte array to big-endian 32-bit words
|
|
19666
|
-
bytesToWords: function(bytes) {
|
|
19667
|
-
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
19668
|
-
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
19669
|
-
return words;
|
|
19670
|
-
},
|
|
19671
|
-
|
|
19672
|
-
// Convert big-endian 32-bit words to a byte array
|
|
19673
|
-
wordsToBytes: function(words) {
|
|
19674
|
-
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
19675
|
-
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
19676
|
-
return bytes;
|
|
19677
|
-
},
|
|
19678
|
-
|
|
19679
|
-
// Convert a byte array to a hex string
|
|
19680
|
-
bytesToHex: function(bytes) {
|
|
19681
|
-
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
19682
|
-
hex.push((bytes[i] >>> 4).toString(16));
|
|
19683
|
-
hex.push((bytes[i] & 0xF).toString(16));
|
|
19684
|
-
}
|
|
19685
|
-
return hex.join('');
|
|
19686
|
-
},
|
|
19687
|
-
|
|
19688
|
-
// Convert a hex string to a byte array
|
|
19689
|
-
hexToBytes: function(hex) {
|
|
19690
|
-
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
19691
|
-
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
19692
|
-
return bytes;
|
|
19693
|
-
},
|
|
19694
|
-
|
|
19695
|
-
// Convert a byte array to a base-64 string
|
|
19696
|
-
bytesToBase64: function(bytes) {
|
|
19697
|
-
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
19698
|
-
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
19699
|
-
for (var j = 0; j < 4; j++)
|
|
19700
|
-
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
19701
|
-
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
19702
|
-
else
|
|
19703
|
-
base64.push('=');
|
|
19704
|
-
}
|
|
19705
|
-
return base64.join('');
|
|
19706
|
-
},
|
|
19707
|
-
|
|
19708
|
-
// Convert a base-64 string to a byte array
|
|
19709
|
-
base64ToBytes: function(base64) {
|
|
19710
|
-
// Remove non-base-64 characters
|
|
19711
|
-
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
19712
|
-
|
|
19713
|
-
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
19714
|
-
imod4 = ++i % 4) {
|
|
19715
|
-
if (imod4 == 0) continue;
|
|
19716
|
-
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
19717
|
-
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
19718
|
-
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
19719
|
-
}
|
|
19720
|
-
return bytes;
|
|
19721
|
-
}
|
|
19722
|
-
};
|
|
19723
|
-
|
|
19724
|
-
module.exports = crypt;
|
|
19725
|
-
})();
|
|
19726
|
-
});
|
|
19727
|
-
|
|
19728
|
-
var charenc = {
|
|
19729
|
-
// UTF-8 encoding
|
|
19730
|
-
utf8: {
|
|
19731
|
-
// Convert a string to a byte array
|
|
19732
|
-
stringToBytes: function(str) {
|
|
19733
|
-
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
19734
|
-
},
|
|
19735
|
-
|
|
19736
|
-
// Convert a byte array to a string
|
|
19737
|
-
bytesToString: function(bytes) {
|
|
19738
|
-
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
19739
|
-
}
|
|
19740
|
-
},
|
|
19741
|
-
|
|
19742
|
-
// Binary encoding
|
|
19743
|
-
bin: {
|
|
19744
|
-
// Convert a string to a byte array
|
|
19745
|
-
stringToBytes: function(str) {
|
|
19746
|
-
for (var bytes = [], i = 0; i < str.length; i++)
|
|
19747
|
-
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
19748
|
-
return bytes;
|
|
19749
|
-
},
|
|
19750
|
-
|
|
19751
|
-
// Convert a byte array to a string
|
|
19752
|
-
bytesToString: function(bytes) {
|
|
19753
|
-
for (var str = [], i = 0; i < bytes.length; i++)
|
|
19754
|
-
str.push(String.fromCharCode(bytes[i]));
|
|
19755
|
-
return str.join('');
|
|
19756
|
-
}
|
|
19757
|
-
}
|
|
19758
|
-
};
|
|
19759
|
-
|
|
19760
|
-
var charenc_1 = charenc;
|
|
19761
|
-
|
|
19762
|
-
/*!
|
|
19763
|
-
* Determine if an object is a Buffer
|
|
19764
|
-
*
|
|
19765
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
19766
|
-
* @license MIT
|
|
19767
|
-
*/
|
|
19768
|
-
|
|
19769
|
-
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
19770
|
-
// Object.prototype.constructor. Remove this eventually
|
|
19771
|
-
var isBuffer_1$1 = function (obj) {
|
|
19772
|
-
return obj != null && (isBuffer$1(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
19773
|
-
};
|
|
19774
|
-
|
|
19775
|
-
function isBuffer$1 (obj) {
|
|
19776
|
-
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
19777
|
-
}
|
|
19778
|
-
|
|
19779
|
-
// For Node v0.10 support. Remove this eventually.
|
|
19780
|
-
function isSlowBuffer (obj) {
|
|
19781
|
-
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer$1(obj.slice(0, 0))
|
|
19782
|
-
}
|
|
19783
|
-
|
|
19784
|
-
var md5 = createCommonjsModule(function (module) {
|
|
19785
|
-
(function(){
|
|
19786
|
-
var crypt$1 = crypt,
|
|
19787
|
-
utf8 = charenc_1.utf8,
|
|
19788
|
-
isBuffer = isBuffer_1$1,
|
|
19789
|
-
bin = charenc_1.bin,
|
|
19790
|
-
|
|
19791
|
-
// The core
|
|
19792
|
-
md5 = function (message, options) {
|
|
19793
|
-
// Convert to byte array
|
|
19794
|
-
if (message.constructor == String)
|
|
19795
|
-
if (options && options.encoding === 'binary')
|
|
19796
|
-
message = bin.stringToBytes(message);
|
|
19797
|
-
else
|
|
19798
|
-
message = utf8.stringToBytes(message);
|
|
19799
|
-
else if (isBuffer(message))
|
|
19800
|
-
message = Array.prototype.slice.call(message, 0);
|
|
19801
|
-
else if (!Array.isArray(message))
|
|
19802
|
-
message = message.toString();
|
|
19803
|
-
// else, assume byte array already
|
|
19804
|
-
|
|
19805
|
-
var m = crypt$1.bytesToWords(message),
|
|
19806
|
-
l = message.length * 8,
|
|
19807
|
-
a = 1732584193,
|
|
19808
|
-
b = -271733879,
|
|
19809
|
-
c = -1732584194,
|
|
19810
|
-
d = 271733878;
|
|
19811
|
-
|
|
19812
|
-
// Swap endian
|
|
19813
|
-
for (var i = 0; i < m.length; i++) {
|
|
19814
|
-
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
|
19815
|
-
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
|
19816
|
-
}
|
|
19817
|
-
|
|
19818
|
-
// Padding
|
|
19819
|
-
m[l >>> 5] |= 0x80 << (l % 32);
|
|
19820
|
-
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
|
19821
|
-
|
|
19822
|
-
// Method shortcuts
|
|
19823
|
-
var FF = md5._ff,
|
|
19824
|
-
GG = md5._gg,
|
|
19825
|
-
HH = md5._hh,
|
|
19826
|
-
II = md5._ii;
|
|
19827
|
-
|
|
19828
|
-
for (var i = 0; i < m.length; i += 16) {
|
|
19829
|
-
|
|
19830
|
-
var aa = a,
|
|
19831
|
-
bb = b,
|
|
19832
|
-
cc = c,
|
|
19833
|
-
dd = d;
|
|
19834
|
-
|
|
19835
|
-
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
|
19836
|
-
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
|
19837
|
-
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
|
19838
|
-
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
|
19839
|
-
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
|
19840
|
-
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
|
19841
|
-
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
|
19842
|
-
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
|
19843
|
-
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
|
19844
|
-
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
|
19845
|
-
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
|
19846
|
-
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
|
19847
|
-
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
|
19848
|
-
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
|
19849
|
-
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
|
19850
|
-
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
|
19851
|
-
|
|
19852
|
-
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
|
19853
|
-
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
|
19854
|
-
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
|
19855
|
-
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
|
19856
|
-
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
|
19857
|
-
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
|
19858
|
-
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
|
19859
|
-
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
|
19860
|
-
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
|
19861
|
-
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
|
19862
|
-
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
|
19863
|
-
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
|
19864
|
-
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
|
19865
|
-
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
|
19866
|
-
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
|
19867
|
-
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
|
19868
|
-
|
|
19869
|
-
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
|
19870
|
-
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
|
19871
|
-
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
|
19872
|
-
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
|
19873
|
-
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
|
19874
|
-
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
|
19875
|
-
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
|
19876
|
-
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
|
19877
|
-
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
|
19878
|
-
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
|
19879
|
-
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
|
19880
|
-
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
|
19881
|
-
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
|
19882
|
-
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
|
19883
|
-
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
|
19884
|
-
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
|
19885
|
-
|
|
19886
|
-
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
|
19887
|
-
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
|
19888
|
-
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
|
19889
|
-
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
|
19890
|
-
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
|
19891
|
-
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
|
19892
|
-
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
|
19893
|
-
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
|
19894
|
-
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
|
19895
|
-
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
|
19896
|
-
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
|
19897
|
-
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
|
19898
|
-
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
|
19899
|
-
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
|
19900
|
-
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
|
19901
|
-
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
|
19902
|
-
|
|
19903
|
-
a = (a + aa) >>> 0;
|
|
19904
|
-
b = (b + bb) >>> 0;
|
|
19905
|
-
c = (c + cc) >>> 0;
|
|
19906
|
-
d = (d + dd) >>> 0;
|
|
19907
|
-
}
|
|
19908
|
-
|
|
19909
|
-
return crypt$1.endian([a, b, c, d]);
|
|
19910
|
-
};
|
|
19911
|
-
|
|
19912
|
-
// Auxiliary functions
|
|
19913
|
-
md5._ff = function (a, b, c, d, x, s, t) {
|
|
19914
|
-
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
|
19915
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19916
|
-
};
|
|
19917
|
-
md5._gg = function (a, b, c, d, x, s, t) {
|
|
19918
|
-
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
|
19919
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19920
|
-
};
|
|
19921
|
-
md5._hh = function (a, b, c, d, x, s, t) {
|
|
19922
|
-
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
|
19923
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19924
|
-
};
|
|
19925
|
-
md5._ii = function (a, b, c, d, x, s, t) {
|
|
19926
|
-
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
|
19927
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
|
19928
|
-
};
|
|
19929
|
-
|
|
19930
|
-
// Package private blocksize
|
|
19931
|
-
md5._blocksize = 16;
|
|
19932
|
-
md5._digestsize = 16;
|
|
19933
|
-
|
|
19934
|
-
module.exports = function (message, options) {
|
|
19935
|
-
if (message === undefined || message === null)
|
|
19936
|
-
throw new Error('Illegal argument ' + message);
|
|
19937
|
-
|
|
19938
|
-
var digestbytes = crypt$1.wordsToBytes(md5(message, options));
|
|
19939
|
-
return options && options.asBytes ? digestbytes :
|
|
19940
|
-
options && options.asString ? bin.bytesToString(digestbytes) :
|
|
19941
|
-
crypt$1.bytesToHex(digestbytes);
|
|
19942
|
-
};
|
|
19943
|
-
|
|
19944
|
-
})();
|
|
19945
|
-
});
|
|
19946
|
-
|
|
19947
19592
|
var _this$3 = undefined;
|
|
19948
19593
|
|
|
19949
19594
|
var config = {
|