@mjhls/mjh-framework 1.0.432 → 1.0.434

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.
Files changed (59) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/{ADInfeed-99f812f9.js → ADInfeed-494f5e6b.js} +1 -1
  3. package/dist/cjs/{AdSlot-6b3e5d3d.js → AdSlot-4d22aad4.js} +2 -2
  4. package/dist/cjs/DeckContent.js +17 -17
  5. package/dist/cjs/DeckQueue.js +8 -8
  6. package/dist/cjs/{Dfp-f62806bd.js → Dfp-2399639f.js} +1 -1
  7. package/dist/cjs/{Figure-7277baf0.js → Figure-9e886c5b.js} +1 -1
  8. package/dist/cjs/{GridContent-3acca2d2.js → GridContent-f401c40f.js} +12 -12
  9. package/dist/cjs/GridContent.js +10 -10
  10. package/dist/cjs/GroupDeck.js +8 -8
  11. package/dist/cjs/IssueContentDeck.js +2 -2
  12. package/dist/cjs/IssueDeck.js +2 -2
  13. package/dist/cjs/MasterDeck.js +15 -15
  14. package/dist/cjs/{Normal-4d6a374c.js → Normal-54dd4121.js} +39 -39
  15. package/dist/cjs/PublicationDeck.js +1 -1
  16. package/dist/cjs/QueueDeckExpanded.js +15 -15
  17. package/dist/cjs/{TaxonomyCard-bbf7530c.js → TaxonomyCard-eb928f05.js} +1 -1
  18. package/dist/cjs/TaxonomyCard.js +2 -2
  19. package/dist/cjs/TemplateNormal.js +5 -5
  20. package/dist/cjs/ThumbnailCard.js +1 -1
  21. package/dist/cjs/VideoSeriesListing.js +6 -6
  22. package/dist/cjs/YoutubeGroup.js +7 -7
  23. package/dist/cjs/{debounce-17653c0f.js → debounce-b088070c.js} +4 -6
  24. package/dist/cjs/{get-1f552668.js → get-5aa7468c.js} +1 -1
  25. package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
  26. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  27. package/dist/cjs/index.js +1105 -909
  28. package/dist/cjs/{inherits-be4dfb6b.js → inherits-e793003e.js} +4 -4
  29. package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
  30. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
  31. package/dist/esm/{ADInfeed-f1c1780e.js → ADInfeed-e5cefea5.js} +1 -1
  32. package/dist/esm/{AdSlot-4ca0419a.js → AdSlot-78e48a2c.js} +2 -2
  33. package/dist/esm/DeckContent.js +16 -16
  34. package/dist/esm/DeckQueue.js +7 -7
  35. package/dist/esm/{Dfp-d372854b.js → Dfp-d5fe1252.js} +1 -1
  36. package/dist/esm/{Figure-2d14847b.js → Figure-cc1affbe.js} +1 -1
  37. package/dist/esm/{GridContent-09330066.js → GridContent-e3224519.js} +11 -11
  38. package/dist/esm/GridContent.js +9 -9
  39. package/dist/esm/GroupDeck.js +5 -5
  40. package/dist/esm/IssueContentDeck.js +2 -2
  41. package/dist/esm/IssueDeck.js +2 -2
  42. package/dist/esm/MasterDeck.js +14 -14
  43. package/dist/esm/{Normal-33253684.js → Normal-0095df68.js} +39 -39
  44. package/dist/esm/PublicationDeck.js +1 -1
  45. package/dist/esm/QueueDeckExpanded.js +15 -15
  46. package/dist/esm/{TaxonomyCard-d49aa67a.js → TaxonomyCard-b29aa7ac.js} +1 -1
  47. package/dist/esm/TaxonomyCard.js +2 -2
  48. package/dist/esm/TemplateNormal.js +5 -5
  49. package/dist/esm/ThumbnailCard.js +1 -1
  50. package/dist/esm/VideoSeriesListing.js +5 -5
  51. package/dist/esm/YoutubeGroup.js +5 -5
  52. package/dist/esm/{debounce-53693e2b.js → debounce-df468b0e.js} +4 -6
  53. package/dist/esm/{get-b3f4645d.js → get-53653403.js} +1 -1
  54. package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
  55. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  56. package/dist/esm/index.js +1125 -930
  57. package/dist/esm/{main-273675e1.js → main-7d1b3c98.js} +65 -34
  58. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  59. package/package.json +103 -103
package/dist/cjs/index.js CHANGED
@@ -12,38 +12,38 @@ require('./_iter-detect-234453c3.js');
12
12
  var toConsumableArray = require('./toConsumableArray-25d0e2a3.js');
13
13
  require('./_object-pie-68c5bcbc.js');
14
14
  var _extends$2 = require('./extends-60837c34.js');
15
- var inherits$2 = require('./inherits-be4dfb6b.js');
16
- var _typeof$1 = require('./typeof-2747c582.js');
15
+ var inherits$2 = require('./inherits-e793003e.js');
16
+ var _typeof$2 = require('./typeof-2747c582.js');
17
17
  var React = require('react');
18
18
  var React__default = _interopDefault(React);
19
- var debounce = require('./debounce-17653c0f.js');
19
+ var debounce = require('./debounce-b088070c.js');
20
20
  var PropTypes = _interopDefault(require('prop-types'));
21
21
  var Container = _interopDefault(require('react-bootstrap/Container'));
22
22
  var Row = _interopDefault(require('react-bootstrap/Row'));
23
23
  var Col = _interopDefault(require('react-bootstrap/Col'));
24
24
  var Card = _interopDefault(require('react-bootstrap/Card'));
25
- var moment = require('./moment-575fe24c.js');
25
+ var moment = require('./moment-66a6a284.js');
26
26
  var Router = require('next/router');
27
27
  var Router__default = _interopDefault(Router);
28
- var index_es = require('./index.es-9110add6.js');
28
+ var index_es = require('./index.es-ab3f2690.js');
29
29
  require('react-dom');
30
30
  var visibilitySensor = require('./visibility-sensor-0c45a583.js');
31
- var index = require('./index-be0c82be.js');
31
+ var index = require('./index-b5eb3ff8.js');
32
32
  var index$1 = require('./index-fa0fb52c.js');
33
- var main = require('./main-88348b15.js');
33
+ var main = require('./main-bc4db521.js');
34
34
  var entities = require('./entities-310b46ee.js');
35
35
  var slicedToArray = require('./slicedToArray-419d467a.js');
36
- var AdSlot = require('./AdSlot-6b3e5d3d.js');
36
+ var AdSlot = require('./AdSlot-4d22aad4.js');
37
37
  var promise = require('./promise-0a493c7a.js');
38
- require('./ADInfeed-99f812f9.js');
38
+ require('./ADInfeed-494f5e6b.js');
39
39
  var DeckContent = require('./DeckContent.js');
40
- var get$1 = require('./get-1f552668.js');
41
- var GridContent = require('./GridContent-3acca2d2.js');
40
+ var get$1 = require('./get-5aa7468c.js');
41
+ var GridContent = require('./GridContent-f401c40f.js');
42
42
  var AuthorComponent = require('./AuthorComponent-4706f297.js');
43
43
  var DeckQueue = require('./DeckQueue.js');
44
44
  require('react-bootstrap/Media');
45
45
  var ThumbnailCard = require('./ThumbnailCard.js');
46
- var TaxonomyCard = require('./TaxonomyCard-bbf7530c.js');
46
+ var TaxonomyCard = require('./TaxonomyCard-eb928f05.js');
47
47
  require('./react-social-icons-cd0d9d3b.js');
48
48
  var smoothscroll = require('./smoothscroll-95231a70.js');
49
49
  var GroupDeck = require('./GroupDeck.js');
@@ -59,7 +59,7 @@ var IssueDeck = require('./IssueDeck.js');
59
59
  require('react-bootstrap/Badge');
60
60
  var IssueContentDeck = require('./IssueContentDeck.js');
61
61
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
62
- var TemplateNormal = require('./Normal-4d6a374c.js');
62
+ var TemplateNormal = require('./Normal-54dd4121.js');
63
63
  require('react-bootstrap/ListGroup');
64
64
  var Head = _interopDefault(require('next/head'));
65
65
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -1925,23 +1925,23 @@ var EventsDeck = function EventsDeck(_ref) {
1925
1925
  if (cventAccessToken && cventAccessToken !== 'undefined') {
1926
1926
  setAccessToken(cventAccessToken);
1927
1927
  } else {
1928
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
1929
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
1930
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
1931
- fetch(url, {
1932
- headers: {
1933
- 'Content-Type': 'application/x-www-form-urlencoded',
1934
- Authorization: `Basic ${encodedData}`
1935
- },
1936
- method: 'POST',
1937
- body: `grant_type=client_credentials&client_id=${clientId}`
1938
- })
1939
- .then((response) => response.json())
1940
- .then((json) => {
1941
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
1942
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
1943
- setAccessToken(json.access_token)
1944
- })
1928
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
1929
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
1930
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
1931
+ fetch(url, {
1932
+ headers: {
1933
+ 'Content-Type': 'application/x-www-form-urlencoded',
1934
+ Authorization: `Basic ${encodedData}`
1935
+ },
1936
+ method: 'POST',
1937
+ body: `grant_type=client_credentials&client_id=${clientId}`
1938
+ })
1939
+ .then((response) => response.json())
1940
+ .then((json) => {
1941
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
1942
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
1943
+ setAccessToken(json.access_token)
1944
+ })
1945
1945
  .catch((e) => console.log(e))*/
1946
1946
  // hello
1947
1947
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -2135,7 +2135,7 @@ var EventsDeck = function EventsDeck(_ref) {
2135
2135
  )
2136
2136
  )
2137
2137
  ),
2138
- main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2138
+ main.main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2139
2139
  'div',
2140
2140
  { style: { margin: '0 auto' } },
2141
2141
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2470,7 +2470,7 @@ var CMEDeck = function CMEDeck(_ref) {
2470
2470
  )
2471
2471
  )
2472
2472
  ),
2473
- main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2473
+ main.main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2474
2474
  'div',
2475
2475
  { style: { margin: '0 auto' } },
2476
2476
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2751,6 +2751,117 @@ var SocialShare = function SocialShare(props) {
2751
2751
 
2752
2752
  var SocialShare$1 = React__default.memo(SocialShare);
2753
2753
 
2754
+ var _this = undefined;
2755
+
2756
+ var VideoSeriesFilter = function VideoSeriesFilter(props) {
2757
+ var filterData = props.filterData,
2758
+ queryProps = props.queryProps,
2759
+ filteredList = props.filteredList,
2760
+ loadingStatus = props.loadingStatus,
2761
+ _props$exclude = props.exclude,
2762
+ exclude = _props$exclude === undefined ? null : _props$exclude,
2763
+ router = props.router;
2764
+ var taxonomyID = queryProps.taxonomyID,
2765
+ currentPage = queryProps.currentPage,
2766
+ client = queryProps.client,
2767
+ params = queryProps.params;
2768
+
2769
+ var _useState = React.useState({ name: 'All Topics', id: '' }),
2770
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
2771
+ filter = _useState2[0],
2772
+ setFilter = _useState2[1];
2773
+
2774
+ var filterList = function () {
2775
+ var _ref = AdSlot._asyncToGenerator( /*#__PURE__*/AdSlot.regenerator.mark(function _callee() {
2776
+ var today, query;
2777
+ return AdSlot.regenerator.wrap(function _callee$(_context) {
2778
+ while (1) {
2779
+ switch (_context.prev = _context.next) {
2780
+ case 0:
2781
+ loadingStatus && loadingStatus(true);
2782
+ filteredList(null);
2783
+ today = moment.moment().utc().format();
2784
+ query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && dateTime(published) <= dateTime(\'' + today + '\')\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"],\n \'pageNumber\': ' + currentPage + '\n }';
2785
+ _context.next = 6;
2786
+ return client.fetch(query, params).then(function (res) {
2787
+ filteredList({ posts: res, query: query });
2788
+ });
2789
+
2790
+ case 6:
2791
+ loadingStatus && loadingStatus(false);
2792
+
2793
+ case 7:
2794
+ case 'end':
2795
+ return _context.stop();
2796
+ }
2797
+ }
2798
+ }, _callee, _this);
2799
+ }));
2800
+
2801
+ return function filterList() {
2802
+ return _ref.apply(this, arguments);
2803
+ };
2804
+ }();
2805
+ React.useEffect(function () {
2806
+ if (router && router.query && router.query.filter && filterData && filterData.length > 0) {
2807
+ filterData.map(function (filterItem) {
2808
+ if (filterItem.name === router.query.filter) {
2809
+ setFilter({ name: filterItem.name, id: filterItem._id });
2810
+ }
2811
+ });
2812
+ }
2813
+ }, []);
2814
+ React.useEffect(function () {
2815
+ filterList();
2816
+ var qString = '';
2817
+ router.asPath.includes('?') && router.asPath.slice(router.asPath.indexOf('?') + 1).split('&').forEach(function (item) {
2818
+ if (item.includes('=') && item.split('=')[0] !== 'filter') {
2819
+ if (qString === '') {
2820
+ qString += item.split('=')[0] + '=' + item.split('=')[1];
2821
+ } else {
2822
+ qString += '&' + item.split('=')[0] + '=' + item.split('=')[1];
2823
+ }
2824
+ }
2825
+ });
2826
+ if (filter.id !== '') {
2827
+ router.push(router.pathname, router.pathname + '?filter=' + filter.name + (qString !== '' ? '&' + qString : ''), {
2828
+ shallow: true
2829
+ });
2830
+ } else {
2831
+ router.push(router.pathname, '' + router.pathname + (qString !== '' ? '?' + qString : ''), {
2832
+ shallow: true
2833
+ });
2834
+ }
2835
+ }, [filter]);
2836
+ return React__default.createElement(
2837
+ React__default.Fragment,
2838
+ null,
2839
+ React__default.createElement(
2840
+ reactBootstrap.DropdownButton,
2841
+ { className: 'filter_dropdown', variant: 'primary', title: filter.name },
2842
+ React__default.createElement(
2843
+ reactBootstrap.Dropdown.Item,
2844
+ { key: 'all', onClick: function onClick() {
2845
+ return setFilter({ name: 'All Topics', id: '' });
2846
+ } },
2847
+ 'All Topics'
2848
+ ),
2849
+ filterData && filterData.map(function (filterItem) {
2850
+ if (filterItem.identifier !== exclude) {
2851
+ return React__default.createElement(
2852
+ reactBootstrap.Dropdown.Item,
2853
+ { key: filterItem._id, onClick: function onClick() {
2854
+ return setFilter({ name: filterItem.name, id: filterItem._id });
2855
+ }, value: filterItem._id, selected: true },
2856
+ filterItem.name
2857
+ );
2858
+ }
2859
+ })
2860
+ )
2861
+ );
2862
+ };
2863
+ var VideoSeriesFilter$1 = Router.withRouter(VideoSeriesFilter);
2864
+
2754
2865
  var AD300x250 = function AD300x250(_ref) {
2755
2866
  var networkID = _ref.networkID,
2756
2867
  adUnit = _ref.adUnit,
@@ -2761,7 +2872,7 @@ var AD300x250 = function AD300x250(_ref) {
2761
2872
  pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
2762
2873
 
2763
2874
  var mobileView = false;
2764
- if (main.main_36) {
2875
+ if (main.main_39) {
2765
2876
  pos = 'rec1-mobile';
2766
2877
  mobileView = true;
2767
2878
  }
@@ -2793,7 +2904,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2793
2904
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
2794
2905
 
2795
2906
  var mobileView = false;
2796
- if (main.main_36) {
2907
+ if (main.main_39) {
2797
2908
  pos = 'rec2-mobile';
2798
2909
  mobileView = true;
2799
2910
  }
@@ -2924,9 +3035,20 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2924
3035
  var parent = document.getElementById('floating-ad-wrapper');
2925
3036
  parent.classList.remove('hide-floating');
2926
3037
  parent.classList.add('display-floating');
3038
+ var adSizes = [[1, 1]];
2927
3039
  if (adData && adData.event && adData.event.size) {
2928
- parent.style.width = adData.event.size[0] + 'px';
2929
- parent.style.height = adData.event.size[1] + 'px';
3040
+ var checkAdSize = function checkAdSize(size) {
3041
+ return AdSlot._JSON$stringify(size) === AdSlot._JSON$stringify(adData.event.size);
3042
+ };
3043
+
3044
+ if (adSizes.some(checkAdSize)) {
3045
+ collapseAd();
3046
+ parent.classList.add('hide-floating');
3047
+ parent.classList.remove('display-floating');
3048
+ } else {
3049
+ parent.style.width = adData.event.size[0] + 'px';
3050
+ parent.style.height = adData.event.size[1] + 'px';
3051
+ }
2930
3052
  }
2931
3053
  } else {
2932
3054
  collapseAd();
@@ -3210,21 +3332,18 @@ var Slideshow = function Slideshow(_ref) {
3210
3332
  );
3211
3333
  };
3212
3334
 
3213
- var isArray = Array.isArray;
3214
- var keyList = Object.keys;
3215
- var hasProp = Object.prototype.hasOwnProperty;
3335
+ // do not edit .js files directly - edit src/index.jst
3336
+
3337
+
3216
3338
 
3217
3339
  var fastDeepEqual = function equal(a, b) {
3218
3340
  if (a === b) return true;
3219
3341
 
3220
3342
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3221
- var arrA = isArray(a)
3222
- , arrB = isArray(b)
3223
- , i
3224
- , length
3225
- , key;
3343
+ if (a.constructor !== b.constructor) return false;
3226
3344
 
3227
- if (arrA && arrB) {
3345
+ var length, i, keys;
3346
+ if (Array.isArray(a)) {
3228
3347
  length = a.length;
3229
3348
  if (length != b.length) return false;
3230
3349
  for (i = length; i-- !== 0;)
@@ -3232,35 +3351,29 @@ var fastDeepEqual = function equal(a, b) {
3232
3351
  return true;
3233
3352
  }
3234
3353
 
3235
- if (arrA != arrB) return false;
3236
3354
 
3237
- var dateA = a instanceof Date
3238
- , dateB = b instanceof Date;
3239
- if (dateA != dateB) return false;
3240
- if (dateA && dateB) return a.getTime() == b.getTime();
3241
3355
 
3242
- var regexpA = a instanceof RegExp
3243
- , regexpB = b instanceof RegExp;
3244
- if (regexpA != regexpB) return false;
3245
- if (regexpA && regexpB) return a.toString() == b.toString();
3356
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3357
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3358
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3246
3359
 
3247
- var keys = keyList(a);
3360
+ keys = Object.keys(a);
3248
3361
  length = keys.length;
3249
-
3250
- if (length !== keyList(b).length)
3251
- return false;
3362
+ if (length !== Object.keys(b).length) return false;
3252
3363
 
3253
3364
  for (i = length; i-- !== 0;)
3254
- if (!hasProp.call(b, keys[i])) return false;
3365
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3255
3366
 
3256
3367
  for (i = length; i-- !== 0;) {
3257
- key = keys[i];
3368
+ var key = keys[i];
3369
+
3258
3370
  if (!equal(a[key], b[key])) return false;
3259
3371
  }
3260
3372
 
3261
3373
  return true;
3262
3374
  }
3263
3375
 
3376
+ // true if both NaN, false otherwise
3264
3377
  return a!==a && b!==b;
3265
3378
  };
3266
3379
 
@@ -4283,7 +4396,7 @@ function formatValue(ctx, value, recurseTimes) {
4283
4396
  var base = '', array = false, braces = ['{', '}'];
4284
4397
 
4285
4398
  // Make Array say that they are Array
4286
- if (isArray$1(value)) {
4399
+ if (isArray(value)) {
4287
4400
  array = true;
4288
4401
  braces = ['[', ']'];
4289
4402
  }
@@ -4462,7 +4575,7 @@ function reduceToSingleString(output, base, braces) {
4462
4575
 
4463
4576
  // NOTE: These type checking functions intentionally don't use `instanceof`
4464
4577
  // because it is fragile and can be easily faked with `Object.create()`.
4465
- function isArray$1(ar) {
4578
+ function isArray(ar) {
4466
4579
  return Array.isArray(ar);
4467
4580
  }
4468
4581
 
@@ -4589,7 +4702,7 @@ var util = {
4589
4702
  isNullOrUndefined: isNullOrUndefined,
4590
4703
  isNull: isNull,
4591
4704
  isBoolean: isBoolean,
4592
- isArray: isArray$1,
4705
+ isArray: isArray,
4593
4706
  inspect: inspect,
4594
4707
  deprecate: deprecate,
4595
4708
  format: format,
@@ -5256,199 +5369,235 @@ module.exports = exports['default'];
5256
5369
 
5257
5370
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
5258
5371
 
5259
- 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; }; }();
5260
-
5261
- 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; };
5372
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
5262
5373
 
5263
5374
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5264
5375
 
5265
- 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; }
5376
+ 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); } }
5377
+
5378
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5379
+
5380
+ 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); }; }
5381
+
5382
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5383
+
5384
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5385
+
5386
+ 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; } }
5387
+
5388
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5389
+
5390
+ 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); }
5391
+
5392
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5393
+
5394
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5266
5395
 
5267
- 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; }
5396
+ 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; }
5268
5397
 
5269
- /**
5270
- * Check whether a `props` change should result in the video being updated.
5271
- *
5272
- * @param {Object} prevProps
5273
- * @param {Object} props
5398
+ 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; }
5399
+ /**
5400
+ * Check whether a `props` change should result in the video being updated.
5401
+ *
5402
+ * @param {Object} prevProps
5403
+ * @param {Object} props
5274
5404
  */
5405
+
5275
5406
  function shouldUpdateVideo(prevProps, props) {
5276
5407
  // A changing video should always trigger an update
5277
5408
  if (prevProps.videoId !== props.videoId) {
5278
5409
  return true;
5279
- }
5280
-
5281
- // Otherwise, a change in the start/end time playerVars also requires a player
5410
+ } // Otherwise, a change in the start/end time playerVars also requires a player
5282
5411
  // update.
5412
+
5413
+
5283
5414
  var prevVars = prevProps.opts.playerVars || {};
5284
5415
  var vars = props.opts.playerVars || {};
5285
-
5286
5416
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5287
5417
  }
5288
-
5289
- /**
5290
- * Neutralise API options that only require a video update, leaving only options
5291
- * that require a player reset. The results can then be compared to see if a
5292
- * player reset is necessary.
5293
- *
5294
- * @param {Object} opts
5418
+ /**
5419
+ * Neutralize API options that only require a video update, leaving only options
5420
+ * that require a player reset. The results can then be compared to see if a
5421
+ * player reset is necessary.
5422
+ *
5423
+ * @param {Object} opts
5295
5424
  */
5425
+
5426
+
5296
5427
  function filterResetOptions(opts) {
5297
- return _extends({}, opts, {
5298
- playerVars: _extends({}, opts.playerVars, {
5428
+ return _objectSpread({}, opts, {
5429
+ playerVars: _objectSpread({}, opts.playerVars, {
5299
5430
  autoplay: 0,
5300
5431
  start: 0,
5301
5432
  end: 0
5302
5433
  })
5303
5434
  });
5304
5435
  }
5305
-
5306
- /**
5307
- * Check whether a `props` change should result in the player being reset.
5308
- * The player is reset when the `props.opts` change, except if the only change
5309
- * is in the `start` and `end` playerVars, because a video update can deal with
5310
- * those.
5311
- *
5312
- * @param {Object} prevProps
5313
- * @param {Object} props
5436
+ /**
5437
+ * Check whether a `props` change should result in the player being reset.
5438
+ * The player is reset when the `props.opts` change, except if the only change
5439
+ * is in the `start` and `end` playerVars, because a video update can deal with
5440
+ * those.
5441
+ *
5442
+ * @param {Object} prevProps
5443
+ * @param {Object} props
5314
5444
  */
5445
+
5446
+
5315
5447
  function shouldResetPlayer(prevProps, props) {
5316
5448
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5317
5449
  }
5318
-
5319
- /**
5320
- * Check whether a props change should result in an id or className update.
5321
- *
5322
- * @param {Object} prevProps
5323
- * @param {Object} props
5450
+ /**
5451
+ * Check whether a props change should result in an id or className update.
5452
+ *
5453
+ * @param {Object} prevProps
5454
+ * @param {Object} props
5324
5455
  */
5456
+
5457
+
5325
5458
  function shouldUpdatePlayer(prevProps, props) {
5326
5459
  return prevProps.id !== props.id || prevProps.className !== props.className;
5327
5460
  }
5328
5461
 
5329
- var YouTube = function (_React$Component) {
5462
+ var YouTube = /*#__PURE__*/function (_React$Component) {
5330
5463
  _inherits(YouTube, _React$Component);
5331
5464
 
5465
+ var _super = _createSuper(YouTube);
5466
+
5467
+ /**
5468
+ * Expose PlayerState constants for convenience. These constants can also be
5469
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5470
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5471
+ */
5332
5472
  function YouTube(props) {
5473
+ var _this;
5474
+
5333
5475
  _classCallCheck(this, YouTube);
5334
5476
 
5335
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5477
+ _this = _super.call(this, props);
5336
5478
 
5337
- _this.onPlayerReady = function (event) {
5479
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5338
5480
  return _this.props.onReady(event);
5339
- };
5481
+ });
5340
5482
 
5341
- _this.onPlayerError = function (event) {
5483
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5342
5484
  return _this.props.onError(event);
5343
- };
5485
+ });
5344
5486
 
5345
- _this.onPlayerStateChange = function (event) {
5487
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5346
5488
  _this.props.onStateChange(event);
5347
- switch (event.data) {
5348
5489
 
5490
+ switch (event.data) {
5349
5491
  case YouTube.PlayerState.ENDED:
5350
5492
  _this.props.onEnd(event);
5493
+
5351
5494
  break;
5352
5495
 
5353
5496
  case YouTube.PlayerState.PLAYING:
5354
5497
  _this.props.onPlay(event);
5498
+
5355
5499
  break;
5356
5500
 
5357
5501
  case YouTube.PlayerState.PAUSED:
5358
5502
  _this.props.onPause(event);
5503
+
5359
5504
  break;
5360
5505
  }
5361
- };
5506
+ });
5362
5507
 
5363
- _this.onPlayerPlaybackRateChange = function (event) {
5508
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5364
5509
  return _this.props.onPlaybackRateChange(event);
5365
- };
5510
+ });
5366
5511
 
5367
- _this.onPlayerPlaybackQualityChange = function (event) {
5512
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5368
5513
  return _this.props.onPlaybackQualityChange(event);
5369
- };
5514
+ });
5370
5515
 
5371
- _this.createPlayer = function () {
5516
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5372
5517
  // do not attempt to create a player server-side, it won't work
5373
- if (typeof document === 'undefined') return;
5374
- // create player
5375
- var playerOpts = _extends({}, _this.props.opts, {
5518
+ if (typeof document === 'undefined') return; // create player
5519
+
5520
+ var playerOpts = _objectSpread({}, _this.props.opts, {
5376
5521
  // preload the `videoId` video if one is already given
5377
5522
  videoId: _this.props.videoId
5378
5523
  });
5379
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5380
- // attach event handlers
5524
+
5525
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5526
+
5381
5527
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5528
+
5382
5529
  _this.internalPlayer.on('error', _this.onPlayerError);
5530
+
5383
5531
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5532
+
5384
5533
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5534
+
5385
5535
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5386
- };
5536
+ });
5387
5537
 
5388
- _this.resetPlayer = function () {
5538
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5389
5539
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5390
- };
5540
+ });
5391
5541
 
5392
- _this.updatePlayer = function () {
5542
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5393
5543
  _this.internalPlayer.getIframe().then(function (iframe) {
5394
5544
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5395
5545
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5396
5546
  });
5397
- };
5547
+ });
5398
5548
 
5399
- _this.updateVideo = function () {
5549
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5400
5550
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5401
5551
  _this.internalPlayer.stopVideo();
5552
+
5402
5553
  return;
5403
- }
5554
+ } // set queueing options
5555
+
5404
5556
 
5405
- // set queueing options
5406
5557
  var autoplay = false;
5407
5558
  var opts = {
5408
5559
  videoId: _this.props.videoId
5409
5560
  };
5561
+
5410
5562
  if ('playerVars' in _this.props.opts) {
5411
5563
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5564
+
5412
5565
  if ('start' in _this.props.opts.playerVars) {
5413
5566
  opts.startSeconds = _this.props.opts.playerVars.start;
5414
5567
  }
5568
+
5415
5569
  if ('end' in _this.props.opts.playerVars) {
5416
5570
  opts.endSeconds = _this.props.opts.playerVars.end;
5417
5571
  }
5418
- }
5572
+ } // if autoplay is enabled loadVideoById
5573
+
5419
5574
 
5420
- // if autoplay is enabled loadVideoById
5421
5575
  if (autoplay) {
5422
5576
  _this.internalPlayer.loadVideoById(opts);
5577
+
5423
5578
  return;
5424
- }
5425
- // default behaviour just cues the video
5579
+ } // default behaviour just cues the video
5580
+
5581
+
5426
5582
  _this.internalPlayer.cueVideoById(opts);
5427
- };
5583
+ });
5428
5584
 
5429
- _this.refContainer = function (container) {
5585
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5430
5586
  _this.container = container;
5431
- };
5587
+ });
5432
5588
 
5433
5589
  _this.container = null;
5434
5590
  _this.internalPlayer = null;
5435
5591
  return _this;
5436
5592
  }
5437
5593
 
5438
- /**
5439
- * Expose PlayerState constants for convenience. These constants can also be
5440
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5441
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5442
- */
5443
-
5444
-
5445
5594
  _createClass(YouTube, [{
5446
- key: 'componentDidMount',
5595
+ key: "componentDidMount",
5447
5596
  value: function componentDidMount() {
5448
5597
  this.createPlayer();
5449
5598
  }
5450
5599
  }, {
5451
- key: 'componentDidUpdate',
5600
+ key: "componentDidUpdate",
5452
5601
  value: function componentDidUpdate(prevProps) {
5453
5602
  if (shouldUpdatePlayer(prevProps, this.props)) {
5454
5603
  this.updatePlayer();
@@ -5463,112 +5612,58 @@ var YouTube = function (_React$Component) {
5463
5612
  }
5464
5613
  }
5465
5614
  }, {
5466
- key: 'componentWillUnmount',
5615
+ key: "componentWillUnmount",
5467
5616
  value: function componentWillUnmount() {
5468
- /**
5469
- * Note: The `youtube-player` package that is used promisifies all Youtube
5470
- * Player API calls, which introduces a delay of a tick before it actually
5471
- * gets destroyed. Since React attempts to remove the element instantly
5472
- * this method isn't quick enough to reset the container element.
5617
+ /**
5618
+ * Note: The `youtube-player` package that is used promisifies all YouTube
5619
+ * Player API calls, which introduces a delay of a tick before it actually
5620
+ * gets destroyed. Since React attempts to remove the element instantly
5621
+ * this method isn't quick enough to reset the container element.
5473
5622
  */
5474
5623
  this.internalPlayer.destroy();
5475
5624
  }
5476
-
5477
- /**
5478
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5479
- *
5480
- * @param {Object} event
5481
- * @param {Object} target - player object
5482
- */
5483
-
5484
-
5485
- /**
5486
- * https://developers.google.com/youtube/iframe_api_reference#onError
5487
- *
5488
- * @param {Object} event
5489
- * @param {Integer} data - error type
5490
- * @param {Object} target - player object
5491
- */
5492
-
5493
-
5494
- /**
5495
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5496
- *
5497
- * @param {Object} event
5498
- * @param {Integer} data - status change type
5499
- * @param {Object} target - actual YT player
5500
- */
5501
-
5502
-
5503
- /**
5504
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5505
- *
5506
- * @param {Object} event
5507
- * @param {Float} data - playback rate
5508
- * @param {Object} target - actual YT player
5509
- */
5510
-
5511
-
5512
- /**
5513
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5514
- *
5515
- * @param {Object} event
5516
- * @param {String} data - playback quality
5517
- * @param {Object} target - actual YT player
5518
- */
5519
-
5520
-
5521
- /**
5522
- * Initialize the Youtube Player API on the container and attach event handlers
5523
- */
5524
-
5525
-
5526
- /**
5527
- * Shorthand for destroying and then re-creating the Youtube Player
5528
- */
5529
-
5530
-
5531
- /**
5532
- * Method to update the id and class of the Youtube Player iframe.
5533
- * React should update this automatically but since the Youtube Player API
5534
- * replaced the DIV that is mounted by React we need to do this manually.
5535
- */
5536
-
5537
-
5538
- /**
5539
- * Call Youtube Player API methods to update the currently playing video.
5540
- * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5541
- * Youtube Player API methods to update the video.
5625
+ /**
5626
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5627
+ *
5628
+ * @param {Object} event
5629
+ * @param {Object} target - player object
5542
5630
  */
5543
5631
 
5544
5632
  }, {
5545
- key: 'render',
5633
+ key: "render",
5546
5634
  value: function render() {
5547
- return React__default.createElement(
5548
- 'div',
5549
- { className: this.props.containerClassName },
5550
- React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5551
- );
5635
+ return /*#__PURE__*/React__default.createElement("div", {
5636
+ className: this.props.containerClassName
5637
+ }, /*#__PURE__*/React__default.createElement("div", {
5638
+ id: this.props.id,
5639
+ className: this.props.className,
5640
+ ref: this.refContainer
5641
+ }));
5552
5642
  }
5553
5643
  }]);
5554
5644
 
5555
5645
  return YouTube;
5556
5646
  }(React__default.Component);
5557
5647
 
5648
+ _defineProperty(YouTube, "PlayerState", {
5649
+ UNSTARTED: -1,
5650
+ ENDED: 0,
5651
+ PLAYING: 1,
5652
+ PAUSED: 2,
5653
+ BUFFERING: 3,
5654
+ CUED: 5
5655
+ });
5656
+
5558
5657
  YouTube.propTypes = {
5559
5658
  videoId: PropTypes.string,
5560
-
5561
5659
  // custom ID for player element
5562
5660
  id: PropTypes.string,
5563
-
5564
5661
  // custom class name for player element
5565
5662
  className: PropTypes.string,
5566
5663
  // custom class name for player container element
5567
5664
  containerClassName: PropTypes.string,
5568
-
5569
5665
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5570
5666
  opts: PropTypes.objectOf(PropTypes.any),
5571
-
5572
5667
  // event subscriptions
5573
5668
  onReady: PropTypes.func,
5574
5669
  onError: PropTypes.func,
@@ -5580,6 +5675,7 @@ YouTube.propTypes = {
5580
5675
  onPlaybackQualityChange: PropTypes.func
5581
5676
  };
5582
5677
  YouTube.defaultProps = {
5678
+ videoId: null,
5583
5679
  id: null,
5584
5680
  className: null,
5585
5681
  opts: {},
@@ -5593,14 +5689,6 @@ YouTube.defaultProps = {
5593
5689
  onPlaybackRateChange: function onPlaybackRateChange() {},
5594
5690
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5595
5691
  };
5596
- YouTube.PlayerState = {
5597
- UNSTARTED: -1,
5598
- ENDED: 0,
5599
- PLAYING: 1,
5600
- PAUSED: 2,
5601
- BUFFERING: 3,
5602
- CUED: 5
5603
- };
5604
5692
 
5605
5693
  var YouTubePlayer = function YouTubePlayer(_ref) {
5606
5694
  var url = _ref.url;
@@ -6515,8 +6603,8 @@ var window_1 = win;
6515
6603
 
6516
6604
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6517
6605
 
6518
- function _extends$1() {
6519
- _extends$1 = Object.assign || function (target) {
6606
+ function _extends() {
6607
+ _extends = Object.assign || function (target) {
6520
6608
  for (var i = 1; i < arguments.length; i++) {
6521
6609
  var source = arguments[i];
6522
6610
 
@@ -6530,7 +6618,7 @@ function _extends$1() {
6530
6618
  return target;
6531
6619
  };
6532
6620
 
6533
- return _extends$1.apply(this, arguments);
6621
+ return _extends.apply(this, arguments);
6534
6622
  }
6535
6623
 
6536
6624
  function _inheritsLoose(subClass, superClass) {
@@ -6539,7 +6627,7 @@ function _inheritsLoose(subClass, superClass) {
6539
6627
  subClass.__proto__ = superClass;
6540
6628
  }
6541
6629
 
6542
- function _assertThisInitialized(self) {
6630
+ function _assertThisInitialized$1(self) {
6543
6631
  if (self === void 0) {
6544
6632
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6545
6633
  }
@@ -6549,8 +6637,8 @@ function _assertThisInitialized(self) {
6549
6637
 
6550
6638
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6551
6639
 
6552
- function _extends$1$1() {
6553
- _extends$1$1 = Object.assign || function (target) {
6640
+ function _extends$1() {
6641
+ _extends$1 = Object.assign || function (target) {
6554
6642
  for (var i = 1; i < arguments.length; i++) {
6555
6643
  var source = arguments[i];
6556
6644
 
@@ -6564,7 +6652,7 @@ function _extends$1$1() {
6564
6652
  return target;
6565
6653
  };
6566
6654
 
6567
- return _extends$1$1.apply(this, arguments);
6655
+ return _extends$1.apply(this, arguments);
6568
6656
  }
6569
6657
 
6570
6658
  var version$1 = "1.7.1";
@@ -6572,7 +6660,7 @@ var version$1 = "1.7.1";
6572
6660
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6573
6661
  var version$1$1 = "1.2.0";
6574
6662
 
6575
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6663
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6576
6664
  return typeof obj;
6577
6665
  } : function (obj) {
6578
6666
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6707,7 +6795,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6707
6795
 
6708
6796
  var qs = '';
6709
6797
 
6710
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6798
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6711
6799
  qs = getQueryString(queryParams);
6712
6800
  }
6713
6801
 
@@ -6941,7 +7029,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
6941
7029
  el.style.width = '100%';
6942
7030
  el.style.height = '100%';
6943
7031
 
6944
- var responsive = _extends$1$1({
7032
+ var responsive = _extends$1({
6945
7033
  aspectRatio: DEFAULT_ASPECT_RATIO,
6946
7034
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
6947
7035
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7626,7 +7714,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7626
7714
 
7627
7715
 
7628
7716
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7629
- var params = _extends$1$1({}, DEFAULTS, parameters);
7717
+ var params = _extends$1({}, DEFAULTS, parameters);
7630
7718
 
7631
7719
  var Promise = params.Promise,
7632
7720
  onSuccess = params.onSuccess,
@@ -7768,7 +7856,7 @@ function (_React$Component) {
7768
7856
  _this.refNode = ref;
7769
7857
  };
7770
7858
 
7771
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7859
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7772
7860
  return _this;
7773
7861
  }
7774
7862
  /**
@@ -7789,7 +7877,7 @@ function (_React$Component) {
7789
7877
  var userSuccess = this.props.onSuccess;
7790
7878
  var userFailure = this.props.onFailure;
7791
7879
 
7792
- var options = _extends$1({}, this.props, {
7880
+ var options = _extends({}, this.props, {
7793
7881
  refNode: this.refNode,
7794
7882
  refNodeInsert: 'append',
7795
7883
  onSuccess: function onSuccess(_ref) {
@@ -8098,7 +8186,7 @@ function (_React$Component) {
8098
8186
  ;
8099
8187
 
8100
8188
  _proto.render = function render() {
8101
- var props = _extends$1({
8189
+ var props = _extends({
8102
8190
  className: 'brightcove-react-player-loader'
8103
8191
  }, this.props.attrs, {
8104
8192
  ref: this.setRefNode
@@ -8644,11 +8732,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8644
8732
 
8645
8733
  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; }
8646
8734
 
8647
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8735
+ 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(_e2) { throw _e2; }, 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(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
8736
+
8737
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8738
+
8739
+ 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."); }
8740
+
8741
+ 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); }
8648
8742
 
8649
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8743
+ 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; }
8650
8744
 
8651
- 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; }
8745
+ 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; }
8652
8746
 
8653
8747
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8654
8748
 
@@ -8778,12 +8872,12 @@ function getSDK(url, sdkGlobal) {
8778
8872
 
8779
8873
  function getConfig(props$1, defaultProps, showWarning) {
8780
8874
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8781
- var _iteratorNormalCompletion = true;
8782
- var _didIteratorError = false;
8783
- var _iteratorError = undefined;
8875
+
8876
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8877
+ _step;
8784
8878
 
8785
8879
  try {
8786
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8880
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
8787
8881
  var p = _step.value;
8788
8882
 
8789
8883
  if (props$1[p]) {
@@ -8798,18 +8892,9 @@ function getConfig(props$1, defaultProps, showWarning) {
8798
8892
  }
8799
8893
  }
8800
8894
  } catch (err) {
8801
- _didIteratorError = true;
8802
- _iteratorError = err;
8895
+ _iterator.e(err);
8803
8896
  } finally {
8804
- try {
8805
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8806
- _iterator["return"]();
8807
- }
8808
- } finally {
8809
- if (_didIteratorError) {
8810
- throw _iteratorError;
8811
- }
8812
- }
8897
+ _iterator.f();
8813
8898
  }
8814
8899
 
8815
8900
  return config;
@@ -8956,12 +9041,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8956
9041
 
8957
9042
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8958
9043
 
8959
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9044
+ 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); }; }
8960
9045
 
8961
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9046
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8962
9047
 
8963
9048
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8964
9049
 
9050
+ 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; } }
9051
+
9052
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9053
+
8965
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); }
8966
9055
 
8967
9056
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8970,14 +9059,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8970
9059
 
8971
9060
  var SEEK_ON_PLAY_EXPIRY = 5000;
8972
9061
 
8973
- var Player =
8974
- /*#__PURE__*/
8975
- function (_Component) {
9062
+ var Player = /*#__PURE__*/function (_Component) {
8976
9063
  _inherits(Player, _Component);
8977
9064
 
8978
- function Player() {
8979
- var _getPrototypeOf2;
9065
+ var _super = _createSuper(Player);
8980
9066
 
9067
+ function Player() {
8981
9068
  var _this;
8982
9069
 
8983
9070
  _classCallCheck(this, Player);
@@ -8986,7 +9073,7 @@ function (_Component) {
8986
9073
  _args[_key] = arguments[_key];
8987
9074
  }
8988
9075
 
8989
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
9076
+ _this = _super.call.apply(_super, [this].concat(_args));
8990
9077
 
8991
9078
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
8992
9079
 
@@ -9311,7 +9398,7 @@ function (_Component) {
9311
9398
  return null;
9312
9399
  }
9313
9400
 
9314
- return _react["default"].createElement(Player, _extends({}, this.props, {
9401
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9315
9402
  ref: this.ref,
9316
9403
  onReady: this.handleReady,
9317
9404
  onPlay: this.handlePlay,
@@ -9372,12 +9459,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9372
9459
 
9373
9460
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9374
9461
 
9375
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9462
+ 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); }; }
9376
9463
 
9377
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9464
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9378
9465
 
9379
9466
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9380
9467
 
9468
+ 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; } }
9469
+
9470
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9471
+
9381
9472
  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); }
9382
9473
 
9383
9474
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9389,14 +9480,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9389
9480
  function createSinglePlayer(activePlayer) {
9390
9481
  var _class, _temp;
9391
9482
 
9392
- return _temp = _class =
9393
- /*#__PURE__*/
9394
- function (_Component) {
9483
+ return _temp = _class = /*#__PURE__*/function (_Component) {
9395
9484
  _inherits(SinglePlayer, _Component);
9396
9485
 
9397
- function SinglePlayer() {
9398
- var _getPrototypeOf2;
9486
+ var _super = _createSuper(SinglePlayer);
9399
9487
 
9488
+ function SinglePlayer() {
9400
9489
  var _this;
9401
9490
 
9402
9491
  _classCallCheck(this, SinglePlayer);
@@ -9405,7 +9494,7 @@ function createSinglePlayer(activePlayer) {
9405
9494
  args[_key] = arguments[_key];
9406
9495
  }
9407
9496
 
9408
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9497
+ _this = _super.call.apply(_super, [this].concat(args));
9409
9498
 
9410
9499
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9411
9500
 
@@ -9473,12 +9562,12 @@ function createSinglePlayer(activePlayer) {
9473
9562
  height = _this$props.height,
9474
9563
  Wrapper = _this$props.wrapper;
9475
9564
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9476
- return _react["default"].createElement(Wrapper, _extends({
9565
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9477
9566
  style: _objectSpread({}, style, {
9478
9567
  width: width,
9479
9568
  height: height
9480
9569
  })
9481
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9570
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9482
9571
  ref: this.ref,
9483
9572
  activePlayer: activePlayer,
9484
9573
  config: this.config
@@ -9524,23 +9613,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9524
9613
 
9525
9614
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9526
9615
 
9527
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9616
+ 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); }; }
9528
9617
 
9529
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9618
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9530
9619
 
9531
9620
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9532
9621
 
9622
+ 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; } }
9623
+
9624
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9625
+
9533
9626
  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); }
9534
9627
 
9535
9628
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9536
9629
 
9537
9630
  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; }
9538
9631
 
9539
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9632
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9540
9633
 
9541
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9634
+ 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."); }
9542
9635
 
9543
- 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; }
9636
+ 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); }
9637
+
9638
+ 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; }
9639
+
9640
+ 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; }
9544
9641
 
9545
9642
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9546
9643
 
@@ -9565,14 +9662,12 @@ function parsePlaylist(url) {
9565
9662
  return {};
9566
9663
  }
9567
9664
 
9568
- var YouTube =
9569
- /*#__PURE__*/
9570
- function (_Component) {
9665
+ var YouTube = /*#__PURE__*/function (_Component) {
9571
9666
  _inherits(YouTube, _Component);
9572
9667
 
9573
- function YouTube() {
9574
- var _getPrototypeOf2;
9668
+ var _super = _createSuper(YouTube);
9575
9669
 
9670
+ function YouTube() {
9576
9671
  var _this;
9577
9672
 
9578
9673
  _classCallCheck(this, YouTube);
@@ -9581,7 +9676,7 @@ function (_Component) {
9581
9676
  args[_key] = arguments[_key];
9582
9677
  }
9583
9678
 
9584
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9679
+ _this = _super.call.apply(_super, [this].concat(args));
9585
9680
 
9586
9681
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9587
9682
 
@@ -9769,9 +9864,9 @@ function (_Component) {
9769
9864
  height: '100%',
9770
9865
  display: display
9771
9866
  };
9772
- return _react["default"].createElement("div", {
9867
+ return /*#__PURE__*/_react["default"].createElement("div", {
9773
9868
  style: style
9774
- }, _react["default"].createElement("div", {
9869
+ }, /*#__PURE__*/_react["default"].createElement("div", {
9775
9870
  ref: this.ref
9776
9871
  }));
9777
9872
  }
@@ -9827,12 +9922,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9827
9922
 
9828
9923
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9829
9924
 
9830
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9925
+ 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); }; }
9831
9926
 
9832
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9927
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9833
9928
 
9834
9929
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9835
9930
 
9931
+ 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; } }
9932
+
9933
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9934
+
9836
9935
  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); }
9837
9936
 
9838
9937
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9841,16 +9940,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9841
9940
 
9842
9941
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9843
9942
  var SDK_GLOBAL = 'SC';
9844
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9943
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9845
9944
 
9846
- var SoundCloud =
9847
- /*#__PURE__*/
9848
- function (_Component) {
9945
+ var SoundCloud = /*#__PURE__*/function (_Component) {
9849
9946
  _inherits(SoundCloud, _Component);
9850
9947
 
9851
- function SoundCloud() {
9852
- var _getPrototypeOf2;
9948
+ var _super = _createSuper(SoundCloud);
9853
9949
 
9950
+ function SoundCloud() {
9854
9951
  var _this;
9855
9952
 
9856
9953
  _classCallCheck(this, SoundCloud);
@@ -9859,7 +9956,7 @@ function (_Component) {
9859
9956
  args[_key] = arguments[_key];
9860
9957
  }
9861
9958
 
9862
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9959
+ _this = _super.call.apply(_super, [this].concat(args));
9863
9960
 
9864
9961
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9865
9962
 
@@ -9980,7 +10077,7 @@ function (_Component) {
9980
10077
  height: '100%',
9981
10078
  display: display
9982
10079
  };
9983
- return _react["default"].createElement("iframe", {
10080
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
9984
10081
  ref: this.ref,
9985
10082
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
9986
10083
  style: style,
@@ -10042,12 +10139,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10042
10139
 
10043
10140
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10044
10141
 
10045
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10142
+ 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); }; }
10046
10143
 
10047
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10144
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10048
10145
 
10049
10146
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10050
10147
 
10148
+ 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; } }
10149
+
10150
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10151
+
10051
10152
  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); }
10052
10153
 
10053
10154
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10059,14 +10160,12 @@ var SDK_GLOBAL = 'Vimeo';
10059
10160
  var MATCH_URL = /vimeo\.com\/.+/;
10060
10161
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10061
10162
 
10062
- var Vimeo =
10063
- /*#__PURE__*/
10064
- function (_Component) {
10163
+ var Vimeo = /*#__PURE__*/function (_Component) {
10065
10164
  _inherits(Vimeo, _Component);
10066
10165
 
10067
- function Vimeo() {
10068
- var _getPrototypeOf2;
10166
+ var _super = _createSuper(Vimeo);
10069
10167
 
10168
+ function Vimeo() {
10070
10169
  var _this;
10071
10170
 
10072
10171
  _classCallCheck(this, Vimeo);
@@ -10075,7 +10174,7 @@ function (_Component) {
10075
10174
  args[_key] = arguments[_key];
10076
10175
  }
10077
10176
 
10078
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10177
+ _this = _super.call.apply(_super, [this].concat(args));
10079
10178
 
10080
10179
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10081
10180
 
@@ -10232,7 +10331,7 @@ function (_Component) {
10232
10331
  overflow: 'hidden',
10233
10332
  display: display
10234
10333
  };
10235
- return _react["default"].createElement("div", {
10334
+ return /*#__PURE__*/_react["default"].createElement("div", {
10236
10335
  key: this.props.url,
10237
10336
  ref: this.ref,
10238
10337
  style: style
@@ -10292,12 +10391,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10292
10391
 
10293
10392
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10294
10393
 
10295
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10394
+ 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); }; }
10296
10395
 
10297
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10396
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10298
10397
 
10299
10398
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10300
10399
 
10400
+ 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; } }
10401
+
10402
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10403
+
10301
10404
  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); }
10302
10405
 
10303
10406
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10310,14 +10413,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10310
10413
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10311
10414
  var PLAYER_ID_PREFIX = 'facebook-player-';
10312
10415
 
10313
- var Facebook =
10314
- /*#__PURE__*/
10315
- function (_Component) {
10416
+ var Facebook = /*#__PURE__*/function (_Component) {
10316
10417
  _inherits(Facebook, _Component);
10317
10418
 
10318
- function Facebook() {
10319
- var _getPrototypeOf2;
10419
+ var _super = _createSuper(Facebook);
10320
10420
 
10421
+ function Facebook() {
10321
10422
  var _this;
10322
10423
 
10323
10424
  _classCallCheck(this, Facebook);
@@ -10326,7 +10427,7 @@ function (_Component) {
10326
10427
  args[_key] = arguments[_key];
10327
10428
  }
10328
10429
 
10329
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10430
+ _this = _super.call.apply(_super, [this].concat(args));
10330
10431
 
10331
10432
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10332
10433
 
@@ -10442,7 +10543,7 @@ function (_Component) {
10442
10543
  width: '100%',
10443
10544
  height: '100%'
10444
10545
  };
10445
- return _react["default"].createElement("div", {
10546
+ return /*#__PURE__*/_react["default"].createElement("div", {
10446
10547
  style: style,
10447
10548
  id: this.playerID,
10448
10549
  className: "fb-video",
@@ -10502,12 +10603,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10502
10603
 
10503
10604
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10504
10605
 
10505
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10606
+ 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); }; }
10506
10607
 
10507
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10608
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10508
10609
 
10509
10610
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10510
10611
 
10612
+ 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; } }
10613
+
10614
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10615
+
10511
10616
  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); }
10512
10617
 
10513
10618
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10518,14 +10623,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10518
10623
  var SDK_GLOBAL = 'playerjs';
10519
10624
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10520
10625
 
10521
- var Streamable =
10522
- /*#__PURE__*/
10523
- function (_Component) {
10626
+ var Streamable = /*#__PURE__*/function (_Component) {
10524
10627
  _inherits(Streamable, _Component);
10525
10628
 
10526
- function Streamable() {
10527
- var _getPrototypeOf2;
10629
+ var _super = _createSuper(Streamable);
10528
10630
 
10631
+ function Streamable() {
10529
10632
  var _this;
10530
10633
 
10531
10634
  _classCallCheck(this, Streamable);
@@ -10534,7 +10637,7 @@ function (_Component) {
10534
10637
  args[_key] = arguments[_key];
10535
10638
  }
10536
10639
 
10537
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10640
+ _this = _super.call.apply(_super, [this].concat(args));
10538
10641
 
10539
10642
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10540
10643
 
@@ -10654,7 +10757,7 @@ function (_Component) {
10654
10757
  width: '100%',
10655
10758
  height: '100%'
10656
10759
  };
10657
- return _react["default"].createElement("iframe", {
10760
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10658
10761
  ref: this.ref,
10659
10762
  src: "https://streamable.com/o/".concat(id),
10660
10763
  frameBorder: "0",
@@ -10715,12 +10818,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10715
10818
 
10716
10819
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10717
10820
 
10718
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10821
+ 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); }; }
10719
10822
 
10720
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10823
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10721
10824
 
10722
10825
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10723
10826
 
10827
+ 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; } }
10828
+
10829
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10830
+
10724
10831
  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); }
10725
10832
 
10726
10833
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10731,26 +10838,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10731
10838
  var SDK_GLOBAL = 'Wistia';
10732
10839
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10733
10840
 
10734
- var Wistia =
10735
- /*#__PURE__*/
10736
- function (_Component) {
10841
+ var Wistia = /*#__PURE__*/function (_Component) {
10737
10842
  _inherits(Wistia, _Component);
10738
10843
 
10739
- function Wistia() {
10740
- var _getPrototypeOf2;
10844
+ var _super = _createSuper(Wistia);
10741
10845
 
10846
+ function Wistia() {
10742
10847
  var _this;
10743
10848
 
10744
10849
  _classCallCheck(this, Wistia);
10745
10850
 
10746
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10747
- args[_key] = arguments[_key];
10851
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10852
+ _args[_key] = arguments[_key];
10748
10853
  }
10749
10854
 
10750
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10855
+ _this = _super.call.apply(_super, [this].concat(_args));
10751
10856
 
10752
10857
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10753
10858
 
10859
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10860
+ var _this$props;
10861
+
10862
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10863
+ });
10864
+
10865
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10866
+ var _this$props2;
10867
+
10868
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10869
+ });
10870
+
10871
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10872
+ var _this$props3;
10873
+
10874
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10875
+ });
10876
+
10877
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10878
+ var _this$props4;
10879
+
10880
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10881
+ });
10882
+
10754
10883
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10755
10884
  _this.callPlayer('mute');
10756
10885
  });
@@ -10772,17 +10901,13 @@ function (_Component) {
10772
10901
  value: function load(url) {
10773
10902
  var _this2 = this;
10774
10903
 
10775
- var _this$props = this.props,
10776
- playing = _this$props.playing,
10777
- muted = _this$props.muted,
10778
- controls = _this$props.controls,
10779
- _onReady = _this$props.onReady,
10780
- onPlay = _this$props.onPlay,
10781
- onPause = _this$props.onPause,
10782
- onSeek = _this$props.onSeek,
10783
- onEnded = _this$props.onEnded,
10784
- config = _this$props.config,
10785
- onError = _this$props.onError;
10904
+ var _this$props5 = this.props,
10905
+ playing = _this$props5.playing,
10906
+ muted = _this$props5.muted,
10907
+ controls = _this$props5.controls,
10908
+ _onReady = _this$props5.onReady,
10909
+ config = _this$props5.config,
10910
+ onError = _this$props5.onError;
10786
10911
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10787
10912
  window._wq = window._wq || [];
10788
10913
 
@@ -10799,19 +10924,28 @@ function (_Component) {
10799
10924
 
10800
10925
  _this2.unbind();
10801
10926
 
10802
- _this2.player.bind('play', onPlay);
10927
+ _this2.player.bind('play', _this2.onPlay);
10803
10928
 
10804
- _this2.player.bind('pause', onPause);
10929
+ _this2.player.bind('pause', _this2.onPause);
10805
10930
 
10806
- _this2.player.bind('seek', onSeek);
10931
+ _this2.player.bind('seek', _this2.onSeek);
10807
10932
 
10808
- _this2.player.bind('end', onEnded);
10933
+ _this2.player.bind('end', _this2.onEnded);
10809
10934
 
10810
10935
  _onReady();
10811
10936
  }
10812
10937
  });
10813
10938
  }, onError);
10814
10939
  }
10940
+ }, {
10941
+ key: "unbind",
10942
+ value: function unbind() {
10943
+ this.player.unbind('play', this.onPlay);
10944
+ this.player.unbind('pause', this.onPause);
10945
+ this.player.unbind('seek', this.onSeek);
10946
+ this.player.unbind('end', this.onEnded);
10947
+ } // Proxy methods to prevent listener leaks
10948
+
10815
10949
  }, {
10816
10950
  key: "play",
10817
10951
  value: function play() {
@@ -10822,19 +10956,6 @@ function (_Component) {
10822
10956
  value: function pause() {
10823
10957
  this.callPlayer('pause');
10824
10958
  }
10825
- }, {
10826
- key: "unbind",
10827
- value: function unbind() {
10828
- var _this$props2 = this.props,
10829
- onPlay = _this$props2.onPlay,
10830
- onPause = _this$props2.onPause,
10831
- onSeek = _this$props2.onSeek,
10832
- onEnded = _this$props2.onEnded;
10833
- this.player.unbind('play', onPlay);
10834
- this.player.unbind('pause', onPause);
10835
- this.player.unbind('seek', onSeek);
10836
- this.player.unbind('end', onEnded);
10837
- }
10838
10959
  }, {
10839
10960
  key: "stop",
10840
10961
  value: function stop() {
@@ -10880,7 +11001,7 @@ function (_Component) {
10880
11001
  width: '100%',
10881
11002
  height: '100%'
10882
11003
  };
10883
- return _react["default"].createElement("div", {
11004
+ return /*#__PURE__*/_react["default"].createElement("div", {
10884
11005
  key: id,
10885
11006
  className: className,
10886
11007
  style: style
@@ -10940,12 +11061,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10940
11061
 
10941
11062
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10942
11063
 
10943
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11064
+ 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); }; }
10944
11065
 
10945
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11066
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10946
11067
 
10947
11068
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10948
11069
 
11070
+ 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; } }
11071
+
11072
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11073
+
10949
11074
  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); }
10950
11075
 
10951
11076
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10958,14 +11083,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
10958
11083
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
10959
11084
  var PLAYER_ID_PREFIX = 'twitch-player-';
10960
11085
 
10961
- var Twitch =
10962
- /*#__PURE__*/
10963
- function (_Component) {
11086
+ var Twitch = /*#__PURE__*/function (_Component) {
10964
11087
  _inherits(Twitch, _Component);
10965
11088
 
10966
- function Twitch() {
10967
- var _getPrototypeOf2;
11089
+ var _super = _createSuper(Twitch);
10968
11090
 
11091
+ function Twitch() {
10969
11092
  var _this;
10970
11093
 
10971
11094
  _classCallCheck(this, Twitch);
@@ -10974,7 +11097,7 @@ function (_Component) {
10974
11097
  args[_key] = arguments[_key];
10975
11098
  }
10976
11099
 
10977
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
11100
+ _this = _super.call.apply(_super, [this].concat(args));
10978
11101
 
10979
11102
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10980
11103
 
@@ -11095,7 +11218,7 @@ function (_Component) {
11095
11218
  width: '100%',
11096
11219
  height: '100%'
11097
11220
  };
11098
- return _react["default"].createElement("div", {
11221
+ return /*#__PURE__*/_react["default"].createElement("div", {
11099
11222
  style: style,
11100
11223
  id: this.playerID
11101
11224
  });
@@ -11148,11 +11271,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11148
11271
 
11149
11272
  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; }
11150
11273
 
11151
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11274
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11275
+
11276
+ 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."); }
11152
11277
 
11153
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11278
+ 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); }
11154
11279
 
11155
- 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; }
11280
+ 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; }
11281
+
11282
+ 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; }
11156
11283
 
11157
11284
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11158
11285
 
@@ -11162,12 +11289,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11162
11289
 
11163
11290
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11164
11291
 
11165
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11292
+ 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); }; }
11166
11293
 
11167
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11294
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11168
11295
 
11169
11296
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11170
11297
 
11298
+ 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; } }
11299
+
11300
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11301
+
11171
11302
  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); }
11172
11303
 
11173
11304
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11179,14 +11310,12 @@ var SDK_GLOBAL = 'DM';
11179
11310
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11180
11311
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11181
11312
 
11182
- var DailyMotion =
11183
- /*#__PURE__*/
11184
- function (_Component) {
11313
+ var DailyMotion = /*#__PURE__*/function (_Component) {
11185
11314
  _inherits(DailyMotion, _Component);
11186
11315
 
11187
- function DailyMotion() {
11188
- var _getPrototypeOf2;
11316
+ var _super = _createSuper(DailyMotion);
11189
11317
 
11318
+ function DailyMotion() {
11190
11319
  var _this;
11191
11320
 
11192
11321
  _classCallCheck(this, DailyMotion);
@@ -11195,7 +11324,7 @@ function (_Component) {
11195
11324
  args[_key] = arguments[_key];
11196
11325
  }
11197
11326
 
11198
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11327
+ _this = _super.call.apply(_super, [this].concat(args));
11199
11328
 
11200
11329
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11201
11330
 
@@ -11324,9 +11453,9 @@ function (_Component) {
11324
11453
  height: '100%',
11325
11454
  display: display
11326
11455
  };
11327
- return _react["default"].createElement("div", {
11456
+ return /*#__PURE__*/_react["default"].createElement("div", {
11328
11457
  style: style
11329
- }, _react["default"].createElement("div", {
11458
+ }, /*#__PURE__*/_react["default"].createElement("div", {
11330
11459
  ref: this.ref
11331
11460
  }));
11332
11461
  }
@@ -11384,12 +11513,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11384
11513
 
11385
11514
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11386
11515
 
11387
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11516
+ 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); }; }
11388
11517
 
11389
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11518
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11390
11519
 
11391
11520
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11392
11521
 
11522
+ 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; } }
11523
+
11524
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11525
+
11393
11526
  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); }
11394
11527
 
11395
11528
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11400,14 +11533,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11400
11533
  var SDK_GLOBAL = 'Mixcloud';
11401
11534
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11402
11535
 
11403
- var Mixcloud =
11404
- /*#__PURE__*/
11405
- function (_Component) {
11536
+ var Mixcloud = /*#__PURE__*/function (_Component) {
11406
11537
  _inherits(Mixcloud, _Component);
11407
11538
 
11408
- function Mixcloud() {
11409
- var _getPrototypeOf2;
11539
+ var _super = _createSuper(Mixcloud);
11410
11540
 
11541
+ function Mixcloud() {
11411
11542
  var _this;
11412
11543
 
11413
11544
  _classCallCheck(this, Mixcloud);
@@ -11416,7 +11547,7 @@ function (_Component) {
11416
11547
  args[_key] = arguments[_key];
11417
11548
  }
11418
11549
 
11419
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11550
+ _this = _super.call.apply(_super, [this].concat(args));
11420
11551
 
11421
11552
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11422
11553
 
@@ -11519,7 +11650,7 @@ function (_Component) {
11519
11650
  })); // We have to give the iframe a key here to prevent a
11520
11651
  // weird dialog appearing when loading a new track
11521
11652
 
11522
- return _react["default"].createElement("iframe", {
11653
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11523
11654
  key: id,
11524
11655
  ref: this.ref,
11525
11656
  style: style,
@@ -11579,23 +11710,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11579
11710
 
11580
11711
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11581
11712
 
11582
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11713
+ 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); }; }
11583
11714
 
11584
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11715
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11585
11716
 
11586
11717
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11587
11718
 
11719
+ 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; } }
11720
+
11721
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11722
+
11588
11723
  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); }
11589
11724
 
11590
11725
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11591
11726
 
11592
11727
  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; }
11593
11728
 
11729
+ 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; } } }; }
11730
+
11731
+ 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); }
11732
+
11733
+ 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; }
11734
+
11594
11735
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11595
11736
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11596
11737
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11597
11738
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11598
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11739
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11599
11740
  var HLS_GLOBAL = 'Hls';
11600
11741
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11601
11742
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11604,12 +11745,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11604
11745
 
11605
11746
  function canPlay(url) {
11606
11747
  if (url instanceof Array) {
11607
- var _iteratorNormalCompletion = true;
11608
- var _didIteratorError = false;
11609
- var _iteratorError = undefined;
11748
+ var _iterator = _createForOfIteratorHelper(url),
11749
+ _step;
11610
11750
 
11611
11751
  try {
11612
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11752
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
11613
11753
  var item = _step.value;
11614
11754
 
11615
11755
  if (typeof item === 'string' && canPlay(item)) {
@@ -11621,18 +11761,9 @@ function canPlay(url) {
11621
11761
  }
11622
11762
  }
11623
11763
  } catch (err) {
11624
- _didIteratorError = true;
11625
- _iteratorError = err;
11764
+ _iterator.e(err);
11626
11765
  } finally {
11627
- try {
11628
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11629
- _iterator["return"]();
11630
- }
11631
- } finally {
11632
- if (_didIteratorError) {
11633
- throw _iteratorError;
11634
- }
11635
- }
11766
+ _iterator.f();
11636
11767
  }
11637
11768
 
11638
11769
  return false;
@@ -11656,14 +11787,12 @@ function canEnablePIP(url) {
11656
11787
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11657
11788
  }
11658
11789
 
11659
- var FilePlayer =
11660
- /*#__PURE__*/
11661
- function (_Component) {
11790
+ var FilePlayer = /*#__PURE__*/function (_Component) {
11662
11791
  _inherits(FilePlayer, _Component);
11663
11792
 
11664
- function FilePlayer() {
11665
- var _getPrototypeOf2;
11793
+ var _super = _createSuper(FilePlayer);
11666
11794
 
11795
+ function FilePlayer() {
11667
11796
  var _this;
11668
11797
 
11669
11798
  _classCallCheck(this, FilePlayer);
@@ -11672,7 +11801,7 @@ function (_Component) {
11672
11801
  _args[_key] = arguments[_key];
11673
11802
  }
11674
11803
 
11675
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11804
+ _this = _super.call.apply(_super, [this].concat(_args));
11676
11805
 
11677
11806
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11678
11807
  var _this$props;
@@ -11759,19 +11888,19 @@ function (_Component) {
11759
11888
 
11760
11889
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11761
11890
  if (typeof source === 'string') {
11762
- return _react["default"].createElement("source", {
11891
+ return /*#__PURE__*/_react["default"].createElement("source", {
11763
11892
  key: index,
11764
11893
  src: source
11765
11894
  });
11766
11895
  }
11767
11896
 
11768
- return _react["default"].createElement("source", _extends({
11897
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
11769
11898
  key: index
11770
11899
  }, source));
11771
11900
  });
11772
11901
 
11773
11902
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11774
- return _react["default"].createElement("track", _extends({
11903
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
11775
11904
  key: index
11776
11905
  }, track));
11777
11906
  });
@@ -11809,6 +11938,10 @@ function (_Component) {
11809
11938
  key: "componentWillUnmount",
11810
11939
  value: function componentWillUnmount() {
11811
11940
  this.removeListeners(this.player);
11941
+
11942
+ if (this.hls) {
11943
+ this.hls.destroy();
11944
+ }
11812
11945
  }
11813
11946
  }, {
11814
11947
  key: "addListeners",
@@ -11939,10 +12072,6 @@ function (_Component) {
11939
12072
  value: function stop() {
11940
12073
  this.player.removeAttribute('src');
11941
12074
 
11942
- if (this.hls) {
11943
- this.hls.destroy();
11944
- }
11945
-
11946
12075
  if (this.dash) {
11947
12076
  this.dash.reset();
11948
12077
  }
@@ -12054,7 +12183,7 @@ function (_Component) {
12054
12183
  width: width === 'auto' ? width : '100%',
12055
12184
  height: height === 'auto' ? height : '100%'
12056
12185
  };
12057
- return _react["default"].createElement(Element, _extends({
12186
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12058
12187
  ref: this.ref,
12059
12188
  src: this.getSource(url),
12060
12189
  style: style,
@@ -12144,12 +12273,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12144
12273
 
12145
12274
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12146
12275
 
12147
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12276
+ 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); }; }
12148
12277
 
12149
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12278
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12150
12279
 
12151
12280
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12152
12281
 
12282
+ 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; } }
12283
+
12284
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12285
+
12153
12286
  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); }
12154
12287
 
12155
12288
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12158,14 +12291,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12158
12291
 
12159
12292
  var ICON_SIZE = '64px';
12160
12293
 
12161
- var Preview =
12162
- /*#__PURE__*/
12163
- function (_Component) {
12294
+ var Preview = /*#__PURE__*/function (_Component) {
12164
12295
  _inherits(Preview, _Component);
12165
12296
 
12166
- function Preview() {
12167
- var _getPrototypeOf2;
12297
+ var _super = _createSuper(Preview);
12168
12298
 
12299
+ function Preview() {
12169
12300
  var _this;
12170
12301
 
12171
12302
  _classCallCheck(this, Preview);
@@ -12174,7 +12305,7 @@ function (_Component) {
12174
12305
  args[_key] = arguments[_key];
12175
12306
  }
12176
12307
 
12177
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12308
+ _this = _super.call.apply(_super, [this].concat(args));
12178
12309
 
12179
12310
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12180
12311
 
@@ -12272,15 +12403,15 @@ function (_Component) {
12272
12403
  }
12273
12404
  };
12274
12405
 
12275
- var defaultPlayIcon = _react["default"].createElement("div", {
12406
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12276
12407
  style: styles.shadow,
12277
12408
  className: "react-player__shadow"
12278
- }, _react["default"].createElement("div", {
12409
+ }, /*#__PURE__*/_react["default"].createElement("div", {
12279
12410
  style: styles.playIcon,
12280
12411
  className: "react-player__play-icon"
12281
12412
  }));
12282
12413
 
12283
- return _react["default"].createElement("div", {
12414
+ return /*#__PURE__*/_react["default"].createElement("div", {
12284
12415
  style: styles.preview,
12285
12416
  className: "react-player__preview",
12286
12417
  onClick: onClick
@@ -12317,6 +12448,12 @@ var _Player = _interopRequireDefault(Player_1);
12317
12448
 
12318
12449
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12319
12450
 
12451
+ 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; } } }; }
12452
+
12453
+ 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); }
12454
+
12455
+ 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; }
12456
+
12320
12457
  var PRELOAD_PLAYERS = [{
12321
12458
  Player: YouTube_1.YouTube,
12322
12459
  configKey: 'youtube',
@@ -12337,16 +12474,16 @@ var PRELOAD_PLAYERS = [{
12337
12474
 
12338
12475
  function renderPreloadPlayers(url, controls, config) {
12339
12476
  var players = [];
12340
- var _iteratorNormalCompletion = true;
12341
- var _didIteratorError = false;
12342
- var _iteratorError = undefined;
12477
+
12478
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12479
+ _step;
12343
12480
 
12344
12481
  try {
12345
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12482
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12346
12483
  var player = _step.value;
12347
12484
 
12348
12485
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12349
- players.push(_react["default"].createElement(_Player["default"], {
12486
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12350
12487
  key: player.Player.displayName,
12351
12488
  activePlayer: player.Player,
12352
12489
  url: player.url,
@@ -12358,18 +12495,9 @@ function renderPreloadPlayers(url, controls, config) {
12358
12495
  }
12359
12496
  }
12360
12497
  } catch (err) {
12361
- _didIteratorError = true;
12362
- _iteratorError = err;
12498
+ _iterator.e(err);
12363
12499
  } finally {
12364
- try {
12365
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12366
- _iterator["return"]();
12367
- }
12368
- } finally {
12369
- if (_didIteratorError) {
12370
- throw _iteratorError;
12371
- }
12372
- }
12500
+ _iterator.f();
12373
12501
  }
12374
12502
 
12375
12503
  return players;
@@ -12493,13 +12621,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12493
12621
 
12494
12622
  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); }
12495
12623
 
12496
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12624
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12625
+
12626
+ 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."); }
12497
12627
 
12498
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12628
+ 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); }
12499
12629
 
12500
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12630
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12501
12631
 
12502
- 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; } }
12632
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12633
+
12634
+ 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; }
12503
12635
 
12504
12636
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12505
12637
 
@@ -12507,12 +12639,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12507
12639
 
12508
12640
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12509
12641
 
12510
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12642
+ 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); }; }
12511
12643
 
12512
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12644
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12513
12645
 
12514
12646
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12515
12647
 
12648
+ 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; } }
12649
+
12650
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12651
+
12516
12652
  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); }
12517
12653
 
12518
12654
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12522,14 +12658,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12522
12658
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12523
12659
  var customPlayers = [];
12524
12660
 
12525
- var ReactPlayer =
12526
- /*#__PURE__*/
12527
- function (_Component) {
12661
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
12528
12662
  _inherits(ReactPlayer, _Component);
12529
12663
 
12530
- function ReactPlayer() {
12531
- var _getPrototypeOf2;
12664
+ var _super = _createSuper(ReactPlayer);
12532
12665
 
12666
+ function ReactPlayer() {
12533
12667
  var _this;
12534
12668
 
12535
12669
  _classCallCheck(this, ReactPlayer);
@@ -12538,7 +12672,7 @@ function (_Component) {
12538
12672
  args[_key] = arguments[_key];
12539
12673
  }
12540
12674
 
12541
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12675
+ _this = _super.call.apply(_super, [this].concat(args));
12542
12676
 
12543
12677
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12544
12678
 
@@ -12649,7 +12783,7 @@ function (_Component) {
12649
12783
  key: "renderActivePlayer",
12650
12784
  value: function renderActivePlayer(url, activePlayer) {
12651
12785
  if (!url) return null;
12652
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12786
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12653
12787
  key: activePlayer.displayName,
12654
12788
  ref: this.activePlayerRef,
12655
12789
  config: this.config,
@@ -12686,14 +12820,14 @@ function (_Component) {
12686
12820
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12687
12821
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12688
12822
 
12689
- var preview = _react["default"].createElement(_Preview["default"], {
12823
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12690
12824
  url: url,
12691
12825
  light: light,
12692
12826
  playIcon: playIcon,
12693
12827
  onClick: this.handleClickPreview
12694
12828
  });
12695
12829
 
12696
- return _react["default"].createElement(Wrapper, _extends({
12830
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12697
12831
  ref: this.wrapperRef,
12698
12832
  style: _objectSpread({}, style, {
12699
12833
  width: width,
@@ -13327,7 +13461,7 @@ var Poll = function Poll(_ref) {
13327
13461
  );
13328
13462
  };
13329
13463
 
13330
- var numberOfPaginations = main.main_35 ? 4 : 10;
13464
+ var numberOfPaginations = main.main_38 ? 4 : 10;
13331
13465
 
13332
13466
  var Quiz = function Quiz(_ref) {
13333
13467
  var quizzes = _ref.quizzes,
@@ -13440,7 +13574,7 @@ var Quiz = function Quiz(_ref) {
13440
13574
  var renderPagination = function renderPagination() {
13441
13575
  return React__default.createElement(
13442
13576
  Pagination,
13443
- { className: 'p-0 m-0', size: main.main_35 && 'sm' },
13577
+ { className: 'p-0 m-0', size: main.main_38 && 'sm' },
13444
13578
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13445
13579
  return changePage('first');
13446
13580
  }, disabled: currentPage === 1 }),
@@ -13680,7 +13814,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
13680
13814
  };
13681
13815
 
13682
13816
  var Figure = dynamic(function () {
13683
- return Promise.resolve().then(function () { return require('./Figure-7277baf0.js'); });
13817
+ return Promise.resolve().then(function () { return require('./Figure-9e886c5b.js'); });
13684
13818
  }, { ssr: false });
13685
13819
 
13686
13820
  var ScrollToElement = function ScrollToElement(elementId) {
@@ -13951,7 +14085,7 @@ var Feature = function Feature(props) {
13951
14085
  };
13952
14086
  //image width
13953
14087
  var imageWidth = 900;
13954
- if (main.main_36) {
14088
+ if (main.main_39) {
13955
14089
  imageWidth = 450;
13956
14090
  }
13957
14091
 
@@ -14331,16 +14465,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14331
14465
  _ref$className = _ref.className,
14332
14466
  className = _ref$className === undefined ? '' : _ref$className;
14333
14467
 
14334
- /*
14335
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14336
- example:
14337
- <RelatedTopicDropdown
14338
- page='/clinical'
14339
- exclude="clinical"
14340
- className='mb-3'
14341
- parentTaxonomy={props.parentTaxonomy}
14342
- subTaxonomies={props.subTaxonomies}
14343
- />
14468
+ /*
14469
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14470
+ example:
14471
+ <RelatedTopicDropdown
14472
+ page='/clinical'
14473
+ exclude="clinical"
14474
+ className='mb-3'
14475
+ parentTaxonomy={props.parentTaxonomy}
14476
+ subTaxonomies={props.subTaxonomies}
14477
+ />
14344
14478
  */
14345
14479
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14346
14480
  if (parentTaxonomy.identifier == exclude) {
@@ -14469,7 +14603,7 @@ var dP = _toObject._objectDp.f;
14469
14603
 
14470
14604
 
14471
14605
 
14472
- var fastKey = _typeof$1._meta.fastKey;
14606
+ var fastKey = _typeof$2._meta.fastKey;
14473
14607
 
14474
14608
  var SIZE = _toObject._descriptors ? '_s' : 'size';
14475
14609
 
@@ -14607,10 +14741,10 @@ var SPECIES = web_dom_iterable._wks('species');
14607
14741
 
14608
14742
  var _arraySpeciesConstructor = function (original) {
14609
14743
  var C;
14610
- if (_typeof$1._isArray(original)) {
14744
+ if (_typeof$2._isArray(original)) {
14611
14745
  C = original.constructor;
14612
14746
  // cross-realm fallback
14613
- if (typeof C == 'function' && (C === Array || _typeof$1._isArray(C.prototype))) C = undefined;
14747
+ if (typeof C == 'function' && (C === Array || _typeof$2._isArray(C.prototype))) C = undefined;
14614
14748
  if (_toObject._isObject(C)) {
14615
14749
  C = C[SPECIES];
14616
14750
  if (C === null) C = undefined;
@@ -14686,7 +14820,7 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
14686
14820
  // create collection constructor
14687
14821
  C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
14688
14822
  promise._redefineAll(C.prototype, methods);
14689
- _typeof$1._meta.NEED = true;
14823
+ _typeof$2._meta.NEED = true;
14690
14824
  } else {
14691
14825
  C = wrapper(function (target, iterable) {
14692
14826
  promise._anInstance(target, C, NAME, '_c');
@@ -14806,39 +14940,39 @@ module.exports = { "default": set, __esModule: true };
14806
14940
 
14807
14941
  var _Set = _commonjsHelpers.unwrapExports(set$1);
14808
14942
 
14809
- /* usage & query
14810
- const Publication = (props) => {
14811
- const { cache, pub, year } = props
14812
-
14813
- const targeting = {
14814
- content_placement: [`/journals/${pub.identifier.current}`],
14815
- document_url: [`/journals/${pub.identifier.current}`],
14816
- }
14817
-
14818
- return (
14819
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14820
- <PublicationLanding publication={pub} year={year} href={'journals'} />
14821
- </Shell>
14822
- )
14823
- }
14824
-
14825
- Publication.getInitialProps = async (ctx) => {
14826
- const { query } = ctx
14827
- const {
14828
- query: { year },
14829
- } = ctx
14830
- const pub = await client.fetch(getQuery('publication'), query)
14831
- const builder = imageUrlBuilder(client)
14832
- const urlFor = (source) => {
14833
- return builder.image(source)
14834
- }
14835
- pub.issues.map((issue) => {
14836
- issue.thumbnail = urlFor(issue.thumbnail).url()
14837
- })
14838
- return { pub, year }
14839
- }
14840
-
14841
- export default Publication
14943
+ /* usage & query
14944
+ const Publication = (props) => {
14945
+ const { cache, pub, year } = props
14946
+
14947
+ const targeting = {
14948
+ content_placement: [`/journals/${pub.identifier.current}`],
14949
+ document_url: [`/journals/${pub.identifier.current}`],
14950
+ }
14951
+
14952
+ return (
14953
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14954
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
14955
+ </Shell>
14956
+ )
14957
+ }
14958
+
14959
+ Publication.getInitialProps = async (ctx) => {
14960
+ const { query } = ctx
14961
+ const {
14962
+ query: { year },
14963
+ } = ctx
14964
+ const pub = await client.fetch(getQuery('publication'), query)
14965
+ const builder = imageUrlBuilder(client)
14966
+ const urlFor = (source) => {
14967
+ return builder.image(source)
14968
+ }
14969
+ pub.issues.map((issue) => {
14970
+ issue.thumbnail = urlFor(issue.thumbnail).url()
14971
+ })
14972
+ return { pub, year }
14973
+ }
14974
+
14975
+ export default Publication
14842
14976
  */
14843
14977
 
14844
14978
  var PublicationLanding = function PublicationLanding(props) {
@@ -14968,39 +15102,44 @@ var PublicationLanding = function PublicationLanding(props) {
14968
15102
  'New content coming soon, please check back later.'
14969
15103
  )
14970
15104
  )
15105
+ ),
15106
+ React__default.createElement(
15107
+ 'style',
15108
+ { jsx: 'true' },
15109
+ '\n .issueCard.card:hover {\n cursor: default;\n }\n '
14971
15110
  )
14972
15111
  );
14973
15112
  };
14974
15113
 
14975
- /* usage
14976
- import Settings, { Ads } from '../../../../settings'
14977
- import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
14978
- import client from '../../../../client'
14979
- import moment from 'moment'
14980
- import Shell from '../../../../components/2.0/Shell'
14981
- import { pageview } from '../../../../utilities/gtag'
14982
-
14983
- const Issue = (props) => {
14984
- const { pubIssue, cache } = props
14985
- const targeting = {
14986
- content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
14987
- document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
14988
- }
14989
- return (
14990
- <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
14991
- <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
14992
- </Shell>
14993
- )
14994
- }
14995
-
14996
- Issue.getInitialProps = async (ctx) => {
14997
- const { query } = ctx
14998
- const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
14999
- )
15000
- return { pubIssue }
15001
- }
15002
-
15003
- export default Issue
15114
+ /* usage
15115
+ import Settings, { Ads } from '../../../../settings'
15116
+ import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
15117
+ import client from '../../../../client'
15118
+ import moment from 'moment'
15119
+ import Shell from '../../../../components/2.0/Shell'
15120
+ import { pageview } from '../../../../utilities/gtag'
15121
+
15122
+ const Issue = (props) => {
15123
+ const { pubIssue, cache } = props
15124
+ const targeting = {
15125
+ content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
15126
+ document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
15127
+ }
15128
+ return (
15129
+ <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
15130
+ <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
15131
+ </Shell>
15132
+ )
15133
+ }
15134
+
15135
+ Issue.getInitialProps = async (ctx) => {
15136
+ const { query } = ctx
15137
+ const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
15138
+ )
15139
+ return { pubIssue }
15140
+ }
15141
+
15142
+ export default Issue
15004
15143
  */
15005
15144
 
15006
15145
  var IssueLanding = function IssueLanding(props) {
@@ -15876,34 +16015,34 @@ var GridHero = function GridHero(props) {
15876
16015
  );
15877
16016
  };
15878
16017
 
15879
- /*
15880
- Sample query
15881
- let references = ''
15882
- if(article.taxonomyMapping.length > 0){
15883
- article.taxonomyMapping.forEach((ref, index) => {
15884
- references = references + `references('${ref._ref}') `
15885
- if(index+1 !== article.taxonomyMapping.length){
15886
- references = references + ` && `
15887
- }
15888
- })
15889
- }
15890
-
15891
- 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] {
15892
- ...,
15893
- title,
15894
- summary,
15895
- thumbnail,
15896
- url,
15897
- published,
15898
- authorMapping[]->,
15899
- contentCategory->
15900
- }`
15901
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15902
-
15903
- Sample usage
15904
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15905
-
15906
-
16018
+ /*
16019
+ Sample query
16020
+ let references = ''
16021
+ if(article.taxonomyMapping.length > 0){
16022
+ article.taxonomyMapping.forEach((ref, index) => {
16023
+ references = references + `references('${ref._ref}') `
16024
+ if(index+1 !== article.taxonomyMapping.length){
16025
+ references = references + ` && `
16026
+ }
16027
+ })
16028
+ }
16029
+
16030
+ 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] {
16031
+ ...,
16032
+ title,
16033
+ summary,
16034
+ thumbnail,
16035
+ url,
16036
+ published,
16037
+ authorMapping[]->,
16038
+ contentCategory->
16039
+ }`
16040
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
16041
+
16042
+ Sample usage
16043
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
16044
+
16045
+
15907
16046
  */
15908
16047
  var RelatedContent = function RelatedContent(props) {
15909
16048
  var client = props.client,
@@ -15970,21 +16109,21 @@ var RelatedContent = function RelatedContent(props) {
15970
16109
  );
15971
16110
  };
15972
16111
 
15973
- /*
15974
- Example usage - targetedonc.com/latest-conference
15975
- 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] {
15976
- ...,
15977
- title,
15978
- summary,
15979
- thumbnail,
15980
- url,
15981
- published,
15982
- documentGroup->,
15983
- contentCategory->,
15984
- 'pageNumber': ${currentPage}
15985
- }`
15986
-
15987
- const posts = await client.fetch(query, params)
16112
+ /*
16113
+ Example usage - targetedonc.com/latest-conference
16114
+ 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] {
16115
+ ...,
16116
+ title,
16117
+ summary,
16118
+ thumbnail,
16119
+ url,
16120
+ published,
16121
+ documentGroup->,
16122
+ contentCategory->,
16123
+ 'pageNumber': ${currentPage}
16124
+ }`
16125
+
16126
+ const posts = await client.fetch(query, params)
15988
16127
  */
15989
16128
 
15990
16129
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -16989,8 +17128,9 @@ var Article = function Article(props) {
16989
17128
  shareOptions = props.shareOptions,
16990
17129
  cpModificationRequired = props.cpModificationRequired,
16991
17130
  authorPrefix = props.authorPrefix,
16992
- queueData = props.queueData,
16993
- lastUrl = props.lastUrl;
17131
+ _props$lgContextAd = props.lgContextAd,
17132
+ lgContextAd = _props$lgContextAd === undefined ? false : _props$lgContextAd,
17133
+ queueData = props.queueData;
16994
17134
 
16995
17135
  var _useState = React.useState(null),
16996
17136
  _useState2 = slicedToArray._slicedToArray(_useState, 2),
@@ -17156,11 +17296,14 @@ var Article = function Article(props) {
17156
17296
  contextualAD: _extends$2._extends({}, payload.contextualAD, {
17157
17297
  slotId: (payload.contextualAD.slotId || 'contextual_ad') + '-' + payload._id,
17158
17298
  className: 'ADFluid',
17159
- sizes: [['fluid'], [300, 100]]
17299
+ sizes: lgContextAd ? [[728, 90], ['fluid'], [300, 100]] : [['fluid'], [300, 100]],
17300
+ sizeMapping: [{
17301
+ viewport: [7680, 4320],
17302
+ sizes: lgContextAd ? [[728, 90], ['fluid'], [300, 100]] : [['fluid'], [300, 100]]
17303
+ }, { viewport: [1024, 768], sizes: [['fluid'], [300, 100]] }]
17160
17304
  })
17161
17305
  });
17162
17306
  var _selectedIndex = indexes[1] + 1;
17163
-
17164
17307
  var _checkIsAdFound = function _checkIsAdFound(isFound, adData) {
17165
17308
  if (!isFound) {
17166
17309
  var parent = document.getElementById('contextual-native-ad-' + payload._id);
@@ -17335,14 +17478,10 @@ var Article = function Article(props) {
17335
17478
  renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix)
17336
17479
  );
17337
17480
  }),
17338
- React__default.createElement(
17481
+ props.article.source && React__default.createElement(
17339
17482
  'div',
17340
- null,
17341
- source && React__default.createElement(
17342
- 'p',
17343
- null,
17344
- source
17345
- )
17483
+ { className: 'sanityDisplayLabel' },
17484
+ props.article.source
17346
17485
  ),
17347
17486
  issue && React__default.createElement(
17348
17487
  'div',
@@ -17401,7 +17540,7 @@ var Article = function Article(props) {
17401
17540
  React__default.createElement('br', null),
17402
17541
  React__default.createElement('br', null)
17403
17542
  ),
17404
- main.main_36 && props.article.Ads.map(function (ad, index) {
17543
+ main.main_39 && props.article.Ads.map(function (ad, index) {
17405
17544
  if (index === 0) {
17406
17545
  return React__default.createElement(
17407
17546
  'div',
@@ -17426,7 +17565,7 @@ var Article = function Article(props) {
17426
17565
  renderIsiContent(props.article)
17427
17566
  )
17428
17567
  ),
17429
- main.main_36 && props.article.Ads.map(function (ad, index) {
17568
+ main.main_39 && props.article.Ads.map(function (ad, index) {
17430
17569
  if (index > 0) {
17431
17570
  return React__default.createElement(
17432
17571
  'div',
@@ -17436,7 +17575,12 @@ var Article = function Article(props) {
17436
17575
  }
17437
17576
  }),
17438
17577
  React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
17439
- React__default.createElement('hr', { className: 'article-seperater' })
17578
+ React__default.createElement('hr', { className: 'article-seperater' }),
17579
+ React__default.createElement(
17580
+ 'style',
17581
+ { jsx: 'true' },
17582
+ '\n .sanityDisplayLabel {\n margin: .5rem 0;\n border: 1px solid black;\n width: fit-content;\n padding: 5px;\n }\n '
17583
+ )
17440
17584
  );
17441
17585
  };
17442
17586
 
@@ -17543,7 +17687,7 @@ var ArticleQueue = function ArticleQueue(props) {
17543
17687
  setQueueData = _useState4[1];
17544
17688
 
17545
17689
  var refreshAD = function refreshAD(path) {
17546
- if (!main.main_36) {
17690
+ if (!main.main_39) {
17547
17691
  var activeArticle = queueData.find(function (item) {
17548
17692
  return item.url.current === path;
17549
17693
  });
@@ -17687,27 +17831,27 @@ var ArticleQueue = function ArticleQueue(props) {
17687
17831
  };
17688
17832
 
17689
17833
  var KMTracker = function KMTracker(props) {
17690
- var id = props.id;
17834
+ var id = props.id;
17691
17835
 
17692
- if (document && id) {
17836
+ if (document && id) {
17693
17837
  (function () {
17694
- var ecnJquery = document.createElement('script');
17838
+ var ecnJquery = document.createElement('script');
17695
17839
 
17696
- ecnJquery.type = 'text/javascript';
17697
- ecnJquery.async = true;
17698
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17840
+ ecnJquery.type = 'text/javascript';
17841
+ ecnJquery.async = true;
17842
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17699
17843
 
17700
- var ecnScript = document.createElement('script');
17844
+ var ecnScript = document.createElement('script');
17701
17845
 
17702
- ecnScript.type = 'text/javascript';
17703
- ecnScript.async = true;
17704
- ecnScript.id = 'km-tracker';
17705
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17846
+ ecnScript.type = 'text/javascript';
17847
+ ecnScript.async = true;
17848
+ ecnScript.id = 'km-tracker';
17849
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17706
17850
 
17707
- document.head.appendChild(ecnJquery);
17708
- document.head.appendChild(ecnScript);
17709
- })();
17710
- }
17851
+ document.head.appendChild(ecnJquery);
17852
+ document.head.appendChild(ecnScript);
17853
+ })();
17854
+ }
17711
17855
  };
17712
17856
 
17713
17857
  var getSeriesDetail = function getSeriesDetail(article, currentSeries) {
@@ -17861,7 +18005,7 @@ var returnFormField = function returnFormField(_ref) {
17861
18005
  }
17862
18006
  };
17863
18007
 
17864
- var _this = undefined;
18008
+ var _this$1 = undefined;
17865
18009
 
17866
18010
  var dataHandler = function () {
17867
18011
  var _ref = AdSlot._asyncToGenerator( /*#__PURE__*/AdSlot.regenerator.mark(function _callee(api_url, body) {
@@ -17927,7 +18071,7 @@ var dataHandler = function () {
17927
18071
  return _context.stop();
17928
18072
  }
17929
18073
  }
17930
- }, _callee, _this, [[0, 20]]);
18074
+ }, _callee, _this$1, [[0, 20]]);
17931
18075
  }));
17932
18076
 
17933
18077
  return function dataHandler(_x, _x2) {
@@ -18123,7 +18267,7 @@ var countries$1 = ["United States", "Afghanistan", "Albania", "Algeria", "Americ
18123
18267
 
18124
18268
  var states = ['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY'];
18125
18269
 
18126
- var _this$1 = undefined;
18270
+ var _this$2 = undefined;
18127
18271
 
18128
18272
  var SignupForm = function SignupForm(props) {
18129
18273
  var handleSubmit = function () {
@@ -18286,7 +18430,7 @@ var SignupForm = function SignupForm(props) {
18286
18430
  return _context.stop();
18287
18431
  }
18288
18432
  }
18289
- }, _callee, _this$1);
18433
+ }, _callee, _this$2);
18290
18434
  }));
18291
18435
 
18292
18436
  return function loadInitData() {
@@ -18353,7 +18497,7 @@ var SignupForm = function SignupForm(props) {
18353
18497
  return _context2.stop();
18354
18498
  }
18355
18499
  }
18356
- }, _callee2, _this$1);
18500
+ }, _callee2, _this$2);
18357
18501
  }));
18358
18502
 
18359
18503
  return function handleOccupationChanged(_x) {
@@ -18501,7 +18645,7 @@ var SignupForm = function SignupForm(props) {
18501
18645
  );
18502
18646
  };
18503
18647
 
18504
- var _this$2 = undefined;
18648
+ var _this$3 = undefined;
18505
18649
 
18506
18650
  var SignupForm$1 = function SignupForm(props) {
18507
18651
  var handleSubmit = function () {
@@ -18698,7 +18842,7 @@ var SignupForm$1 = function SignupForm(props) {
18698
18842
  return _context.stop();
18699
18843
  }
18700
18844
  }
18701
- }, _callee, _this$2);
18845
+ }, _callee, _this$3);
18702
18846
  }));
18703
18847
 
18704
18848
  return function loadInitData() {
@@ -18765,7 +18909,7 @@ var SignupForm$1 = function SignupForm(props) {
18765
18909
  return _context2.stop();
18766
18910
  }
18767
18911
  }
18768
- }, _callee2, _this$2);
18912
+ }, _callee2, _this$3);
18769
18913
  }));
18770
18914
 
18771
18915
  return function handleOccupationChanged(_x) {
@@ -19769,9 +19913,6 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
19769
19913
  if (value != null) {
19770
19914
  if ($gOPD && (i + 1) >= parts.length) {
19771
19915
  var desc = $gOPD(value, parts[i]);
19772
- if (!allowMissing && !(parts[i] in value)) {
19773
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
19774
- }
19775
19916
  value = desc ? (desc.get || desc.value) : value[parts[i]];
19776
19917
  } else {
19777
19918
  value = value[parts[i]];
@@ -19804,16 +19945,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
19804
19945
  return intrinsic;
19805
19946
  };
19806
19947
 
19807
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
19808
-
19809
- if ($defineProperty) {
19810
- try {
19811
- $defineProperty({}, 'a', { value: 1 });
19812
- } catch (e) {
19813
- // IE 8 has a broken defineProperty
19814
- $defineProperty = null;
19815
- }
19816
- }
19948
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%');
19817
19949
 
19818
19950
 
19819
19951
 
@@ -19956,224 +20088,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
19956
20088
  return obj;
19957
20089
  };
19958
20090
 
19959
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19960
- if ($gOPD$1) {
19961
- try {
19962
- $gOPD$1([], 'length');
19963
- } catch (e) {
19964
- // IE 8 has a broken gOPD
19965
- $gOPD$1 = null;
19966
- }
19967
- }
19968
-
19969
- var getOwnPropertyDescriptor = $gOPD$1;
19970
-
19971
- var $Array = GetIntrinsic('%Array%');
19972
-
19973
- // eslint-disable-next-line global-require
19974
- var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
19975
-
19976
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
19977
-
19978
- var IsArray = $Array.isArray || function IsArray(argument) {
19979
- return toStr$4(argument) === '[object Array]';
19980
- };
19981
-
19982
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19983
-
19984
- var IsPropertyKey = function IsPropertyKey(argument) {
19985
- return typeof argument === 'string' || typeof argument === 'symbol';
19986
- };
19987
-
19988
- var regexExec = RegExp.prototype.exec;
19989
- var gOPD = Object.getOwnPropertyDescriptor;
19990
-
19991
- var tryRegexExecCall = function tryRegexExec(value) {
19992
- try {
19993
- var lastIndex = value.lastIndex;
19994
- value.lastIndex = 0; // eslint-disable-line no-param-reassign
19995
-
19996
- regexExec.call(value);
19997
- return true;
19998
- } catch (e) {
19999
- return false;
20000
- } finally {
20001
- value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
20002
- }
20003
- };
20004
- var toStr$5 = Object.prototype.toString;
20005
- var regexClass = '[object RegExp]';
20006
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
20007
-
20008
- var isRegex = function isRegex(value) {
20009
- if (!value || typeof value !== 'object') {
20010
- return false;
20011
- }
20012
- if (!hasToStringTag) {
20013
- return toStr$5.call(value) === regexClass;
20014
- }
20015
-
20016
- var descriptor = gOPD(value, 'lastIndex');
20017
- var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
20018
- if (!hasLastIndexDataProperty) {
20019
- return false;
20020
- }
20021
-
20022
- return tryRegexExecCall(value);
20023
- };
20024
-
20025
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
20026
-
20027
- var ToBoolean = function ToBoolean(value) { return !!value; };
20028
-
20029
- var $match = GetIntrinsic('%Symbol.match%', true);
20030
-
20031
-
20032
-
20033
-
20034
-
20035
- // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
20036
-
20037
- var IsRegExp = function IsRegExp(argument) {
20038
- if (!argument || typeof argument !== 'object') {
20039
- return false;
20040
- }
20041
- if ($match) {
20042
- var isRegExp = argument[$match];
20043
- if (typeof isRegExp !== 'undefined') {
20044
- return ToBoolean(isRegExp);
20045
- }
20046
- }
20047
- return isRegex(argument);
20048
- };
20049
-
20050
- var fnToStr = Function.prototype.toString;
20051
-
20052
- var constructorRegex = /^\s*class\b/;
20053
- var isES6ClassFn = function isES6ClassFunction(value) {
20054
- try {
20055
- var fnStr = fnToStr.call(value);
20056
- return constructorRegex.test(fnStr);
20057
- } catch (e) {
20058
- return false; // not a function
20059
- }
20060
- };
20061
-
20062
- var tryFunctionObject = function tryFunctionToStr(value) {
20063
- try {
20064
- if (isES6ClassFn(value)) { return false; }
20065
- fnToStr.call(value);
20066
- return true;
20067
- } catch (e) {
20068
- return false;
20069
- }
20070
- };
20071
- var toStr$6 = Object.prototype.toString;
20072
- var fnClass = '[object Function]';
20073
- var genClass = '[object GeneratorFunction]';
20074
- var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
20075
-
20076
- var isCallable = function isCallable(value) {
20077
- if (!value) { return false; }
20078
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
20079
- if (typeof value === 'function' && !value.prototype) { return true; }
20080
- if (hasToStringTag$1) { return tryFunctionObject(value); }
20081
- if (isES6ClassFn(value)) { return false; }
20082
- var strClass = toStr$6.call(value);
20083
- return strClass === fnClass || strClass === genClass;
20084
- };
20085
-
20086
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
20087
-
20088
- var IsCallable = isCallable;
20089
-
20090
- var $TypeError$2 = GetIntrinsic('%TypeError%');
20091
-
20092
-
20093
-
20094
-
20095
-
20096
- // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
20097
-
20098
- var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
20099
- if (Type$1(Obj) !== 'Object') {
20100
- throw new $TypeError$2('ToPropertyDescriptor requires an object');
20101
- }
20102
-
20103
- var desc = {};
20104
- if (src$1(Obj, 'enumerable')) {
20105
- desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
20106
- }
20107
- if (src$1(Obj, 'configurable')) {
20108
- desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
20109
- }
20110
- if (src$1(Obj, 'value')) {
20111
- desc['[[Value]]'] = Obj.value;
20112
- }
20113
- if (src$1(Obj, 'writable')) {
20114
- desc['[[Writable]]'] = ToBoolean(Obj.writable);
20115
- }
20116
- if (src$1(Obj, 'get')) {
20117
- var getter = Obj.get;
20118
- if (typeof getter !== 'undefined' && !IsCallable(getter)) {
20119
- throw new TypeError('getter must be a function');
20120
- }
20121
- desc['[[Get]]'] = getter;
20122
- }
20123
- if (src$1(Obj, 'set')) {
20124
- var setter = Obj.set;
20125
- if (typeof setter !== 'undefined' && !IsCallable(setter)) {
20126
- throw new $TypeError$2('setter must be a function');
20127
- }
20128
- desc['[[Set]]'] = setter;
20129
- }
20130
-
20131
- if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
20132
- throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
20133
- }
20134
- return desc;
20135
- };
20136
-
20137
- var $TypeError$3 = GetIntrinsic('%TypeError%');
20138
-
20139
-
20140
-
20141
- var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
20142
-
20143
-
20144
-
20145
-
20146
-
20147
-
20148
-
20149
-
20150
-
20151
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
20152
-
20153
- var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
20154
- if (Type$1(O) !== 'Object') {
20155
- throw new $TypeError$3('Assertion failed: O must be an Object');
20156
- }
20157
- if (!IsPropertyKey(P)) {
20158
- throw new $TypeError$3('Assertion failed: P must be a Property Key');
20159
- }
20160
- if (!src$1(O, P)) {
20161
- return void 0;
20162
- }
20163
- if (!getOwnPropertyDescriptor) {
20164
- // ES3 / IE 8 fallback
20165
- var arrayLength = IsArray(O) && P === 'length';
20166
- var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
20167
- return {
20168
- '[[Configurable]]': !(arrayLength || regexLastIndex),
20169
- '[[Enumerable]]': $isEnumerable$1(O, P),
20170
- '[[Value]]': O[P],
20171
- '[[Writable]]': true
20172
- };
20173
- }
20174
- return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
20175
- };
20176
-
20177
20091
  // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
20178
20092
 
20179
20093
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
@@ -20207,10 +20121,16 @@ var IsExtensible = $preventExtensions
20207
20121
  ? function IsExtensible(obj) {
20208
20122
  return !isPrimitive$1(obj) && $isExtensible(obj);
20209
20123
  }
20210
- : function IsExtensible(obj) {
20211
- return !isPrimitive$1(obj);
20124
+ : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
20125
+ return true;
20212
20126
  };
20213
20127
 
20128
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
20129
+
20130
+ var IsPropertyKey = function IsPropertyKey(argument) {
20131
+ return typeof argument === 'string' || typeof argument === 'symbol';
20132
+ };
20133
+
20214
20134
  var _isNaN = Number.isNaN || function isNaN(a) {
20215
20135
  return a !== a;
20216
20136
  };
@@ -20225,8 +20145,8 @@ var SameValue = function SameValue(x, y) {
20225
20145
  return _isNaN(x) && _isNaN(y);
20226
20146
  };
20227
20147
 
20228
- var $TypeError$4 = GetIntrinsic('%TypeError%');
20229
-
20148
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
20149
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
20230
20150
 
20231
20151
 
20232
20152
 
@@ -20241,12 +20161,12 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
20241
20161
 
20242
20162
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
20243
20163
  if (Type$1(O) !== 'Object') {
20244
- throw new $TypeError$4('Assertion failed: Type(O) is not Object');
20164
+ throw new $TypeError$2('Assertion failed: Type(O) is not Object');
20245
20165
  }
20246
20166
  if (!IsPropertyKey(P)) {
20247
- throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
20167
+ throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
20248
20168
  }
20249
- var oldDesc = OrdinaryGetOwnProperty(O, P);
20169
+ var oldDesc = $gOPD$1(O, P);
20250
20170
  var extensible = oldDesc || IsExtensible(O);
20251
20171
  var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
20252
20172
  if (immutable || !extensible) {
@@ -20267,13 +20187,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
20267
20187
  );
20268
20188
  };
20269
20189
 
20270
- var $TypeError$5 = GetIntrinsic('%TypeError%');
20190
+ var fnToStr = Function.prototype.toString;
20191
+
20192
+ var constructorRegex = /^\s*class\b/;
20193
+ var isES6ClassFn = function isES6ClassFunction(value) {
20194
+ try {
20195
+ var fnStr = fnToStr.call(value);
20196
+ return constructorRegex.test(fnStr);
20197
+ } catch (e) {
20198
+ return false; // not a function
20199
+ }
20200
+ };
20201
+
20202
+ var tryFunctionObject = function tryFunctionToStr(value) {
20203
+ try {
20204
+ if (isES6ClassFn(value)) { return false; }
20205
+ fnToStr.call(value);
20206
+ return true;
20207
+ } catch (e) {
20208
+ return false;
20209
+ }
20210
+ };
20211
+ var toStr$4 = Object.prototype.toString;
20212
+ var fnClass = '[object Function]';
20213
+ var genClass = '[object GeneratorFunction]';
20214
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
20215
+
20216
+ var isCallable = function isCallable(value) {
20217
+ if (!value) { return false; }
20218
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
20219
+ if (typeof value === 'function' && !value.prototype) { return true; }
20220
+ if (hasToStringTag) { return tryFunctionObject(value); }
20221
+ if (isES6ClassFn(value)) { return false; }
20222
+ var strClass = toStr$4.call(value);
20223
+ return strClass === fnClass || strClass === genClass;
20224
+ };
20225
+
20226
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
20227
+
20228
+ var IsCallable = isCallable;
20229
+
20230
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
20271
20231
 
20272
20232
  // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
20273
20233
 
20274
20234
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
20275
20235
  if (value == null) {
20276
- throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
20236
+ throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
20277
20237
  }
20278
20238
  return value;
20279
20239
  };
@@ -20344,6 +20304,241 @@ defineProperties_1(implementation$2, {
20344
20304
 
20345
20305
  var object_getownpropertydescriptors = implementation$2;
20346
20306
 
20307
+ /* globals
20308
+ Atomics,
20309
+ SharedArrayBuffer,
20310
+ */
20311
+
20312
+ var undefined$2;
20313
+
20314
+ var $TypeError$4 = TypeError;
20315
+
20316
+ var $gOPD$3 = Object.getOwnPropertyDescriptor;
20317
+ if ($gOPD$3) {
20318
+ try {
20319
+ $gOPD$3({}, '');
20320
+ } catch (e) {
20321
+ $gOPD$3 = null; // this is IE 8, which has a broken gOPD
20322
+ }
20323
+ }
20324
+
20325
+ var throwTypeError$1 = function () { throw new $TypeError$4(); };
20326
+ var ThrowTypeError$1 = $gOPD$3
20327
+ ? (function () {
20328
+ try {
20329
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
20330
+ arguments.callee; // IE 8 does not throw here
20331
+ return throwTypeError$1;
20332
+ } catch (calleeThrows) {
20333
+ try {
20334
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
20335
+ return $gOPD$3(arguments, 'callee').get;
20336
+ } catch (gOPDthrows) {
20337
+ return throwTypeError$1;
20338
+ }
20339
+ }
20340
+ }())
20341
+ : throwTypeError$1;
20342
+
20343
+ var hasSymbols$3 = hasSymbols$1();
20344
+
20345
+ var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
20346
+ var generatorFunction$1 = undefined$2;
20347
+ var asyncFunction$1 = undefined$2;
20348
+ var asyncGenFunction$1 = undefined$2;
20349
+
20350
+ var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
20351
+
20352
+ var INTRINSICS$1 = {
20353
+ '%Array%': Array,
20354
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
20355
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
20356
+ '%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
20357
+ '%ArrayPrototype%': Array.prototype,
20358
+ '%ArrayProto_entries%': Array.prototype.entries,
20359
+ '%ArrayProto_forEach%': Array.prototype.forEach,
20360
+ '%ArrayProto_keys%': Array.prototype.keys,
20361
+ '%ArrayProto_values%': Array.prototype.values,
20362
+ '%AsyncFromSyncIteratorPrototype%': undefined$2,
20363
+ '%AsyncFunction%': asyncFunction$1,
20364
+ '%AsyncFunctionPrototype%': undefined$2,
20365
+ '%AsyncGenerator%': undefined$2,
20366
+ '%AsyncGeneratorFunction%': asyncGenFunction$1,
20367
+ '%AsyncGeneratorPrototype%': undefined$2,
20368
+ '%AsyncIteratorPrototype%': undefined$2,
20369
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
20370
+ '%Boolean%': Boolean,
20371
+ '%BooleanPrototype%': Boolean.prototype,
20372
+ '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
20373
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
20374
+ '%Date%': Date,
20375
+ '%DatePrototype%': Date.prototype,
20376
+ '%decodeURI%': decodeURI,
20377
+ '%decodeURIComponent%': decodeURIComponent,
20378
+ '%encodeURI%': encodeURI,
20379
+ '%encodeURIComponent%': encodeURIComponent,
20380
+ '%Error%': Error,
20381
+ '%ErrorPrototype%': Error.prototype,
20382
+ '%eval%': eval, // eslint-disable-line no-eval
20383
+ '%EvalError%': EvalError,
20384
+ '%EvalErrorPrototype%': EvalError.prototype,
20385
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
20386
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
20387
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
20388
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
20389
+ '%Function%': Function,
20390
+ '%FunctionPrototype%': Function.prototype,
20391
+ '%Generator%': undefined$2,
20392
+ '%GeneratorFunction%': generatorFunction$1,
20393
+ '%GeneratorPrototype%': undefined$2,
20394
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
20395
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20396
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
20397
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20398
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
20399
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
20400
+ '%isFinite%': isFinite,
20401
+ '%isNaN%': isNaN,
20402
+ '%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
20403
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
20404
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
20405
+ '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
20406
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
20407
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
20408
+ '%Math%': Math,
20409
+ '%Number%': Number,
20410
+ '%NumberPrototype%': Number.prototype,
20411
+ '%Object%': Object,
20412
+ '%ObjectPrototype%': Object.prototype,
20413
+ '%ObjProto_toString%': Object.prototype.toString,
20414
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
20415
+ '%parseFloat%': parseFloat,
20416
+ '%parseInt%': parseInt,
20417
+ '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
20418
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
20419
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
20420
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
20421
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
20422
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
20423
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
20424
+ '%RangeError%': RangeError,
20425
+ '%RangeErrorPrototype%': RangeError.prototype,
20426
+ '%ReferenceError%': ReferenceError,
20427
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
20428
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
20429
+ '%RegExp%': RegExp,
20430
+ '%RegExpPrototype%': RegExp.prototype,
20431
+ '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
20432
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
20433
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
20434
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
20435
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
20436
+ '%String%': String,
20437
+ '%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
20438
+ '%StringPrototype%': String.prototype,
20439
+ '%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
20440
+ '%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
20441
+ '%SyntaxError%': SyntaxError,
20442
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
20443
+ '%ThrowTypeError%': ThrowTypeError$1,
20444
+ '%TypedArray%': TypedArray$1,
20445
+ '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
20446
+ '%TypeError%': $TypeError$4,
20447
+ '%TypeErrorPrototype%': $TypeError$4.prototype,
20448
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
20449
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
20450
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
20451
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
20452
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
20453
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
20454
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
20455
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
20456
+ '%URIError%': URIError,
20457
+ '%URIErrorPrototype%': URIError.prototype,
20458
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
20459
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
20460
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
20461
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
20462
+ };
20463
+
20464
+
20465
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
20466
+
20467
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
20468
+ var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
20469
+ var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
20470
+ var stringToPath$1 = function stringToPath(string) {
20471
+ var result = [];
20472
+ $replace$1(string, rePropName$1, function (match, number, quote, subString) {
20473
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
20474
+ });
20475
+ return result;
20476
+ };
20477
+ /* end adaptation */
20478
+
20479
+ var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
20480
+ if (!(name in INTRINSICS$1)) {
20481
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
20482
+ }
20483
+
20484
+ // istanbul ignore if // hopefully this is impossible to test :-)
20485
+ if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
20486
+ throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
20487
+ }
20488
+
20489
+ return INTRINSICS$1[name];
20490
+ };
20491
+
20492
+ var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
20493
+ if (typeof name !== 'string' || name.length === 0) {
20494
+ throw new TypeError('intrinsic name must be a non-empty string');
20495
+ }
20496
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
20497
+ throw new TypeError('"allowMissing" argument must be a boolean');
20498
+ }
20499
+
20500
+ var parts = stringToPath$1(name);
20501
+
20502
+ var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
20503
+ for (var i = 1; i < parts.length; i += 1) {
20504
+ if (value != null) {
20505
+ if ($gOPD$3 && (i + 1) >= parts.length) {
20506
+ var desc = $gOPD$3(value, parts[i]);
20507
+ if (!allowMissing && !(parts[i] in value)) {
20508
+ throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
20509
+ }
20510
+ value = desc ? (desc.get || desc.value) : value[parts[i]];
20511
+ } else {
20512
+ value = value[parts[i]];
20513
+ }
20514
+ }
20515
+ }
20516
+ return value;
20517
+ };
20518
+
20519
+ var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
20520
+ var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
20521
+ var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
20522
+
20523
+ var callBind$1 = function callBind() {
20524
+ return $reflectApply(functionBind, $call$1, arguments);
20525
+ };
20526
+
20527
+ var apply$1 = function applyBind() {
20528
+ return $reflectApply(functionBind, $apply$1, arguments);
20529
+ };
20530
+ callBind$1.apply = apply$1;
20531
+
20532
+ var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
20533
+
20534
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
20535
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
20536
+ if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
20537
+ return callBind$1(intrinsic);
20538
+ }
20539
+ return intrinsic;
20540
+ };
20541
+
20347
20542
  var isES5$1 = typeof Object.defineProperty === 'function'
20348
20543
  && typeof Object.defineProperties === 'function';
20349
20544
 
@@ -20361,14 +20556,14 @@ if (typeof Promise !== 'function') {
20361
20556
 
20362
20557
 
20363
20558
 
20364
- var $slice = callBound('Array.prototype.slice');
20365
- var $concat$1 = callBound('Array.prototype.concat');
20366
- var $forEach = callBound('Array.prototype.forEach');
20559
+ var $slice = callBound$1('Array.prototype.slice');
20560
+ var $concat$1 = callBound$1('Array.prototype.concat');
20561
+ var $forEach = callBound$1('Array.prototype.forEach');
20367
20562
 
20368
- var hasSymbols$3 = hasSymbols$1();
20563
+ var hasSymbols$4 = hasSymbols$1();
20369
20564
 
20370
- var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
20371
- var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
20565
+ var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
20566
+ var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
20372
20567
 
20373
20568
  var implementation$3 = function promisify(orig) {
20374
20569
  if (typeof orig !== 'function') {
@@ -20378,7 +20573,7 @@ var implementation$3 = function promisify(orig) {
20378
20573
  throw error;
20379
20574
  }
20380
20575
 
20381
- if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
20576
+ if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
20382
20577
  var customFunction = orig[kCustomPromisifiedSymbol];
20383
20578
  if (typeof customFunction !== 'function') {
20384
20579
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -20825,7 +21020,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
20825
21020
  })();
20826
21021
  });
20827
21022
 
20828
- var _this$3 = undefined;
21023
+ var _this$4 = undefined;
20829
21024
 
20830
21025
  var config = {
20831
21026
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
@@ -21174,7 +21369,7 @@ var getOccupationNameById = function () {
21174
21369
  return _context3.stop();
21175
21370
  }
21176
21371
  }
21177
- }, _callee3, _this$3);
21372
+ }, _callee3, _this$4);
21178
21373
  }));
21179
21374
 
21180
21375
  return function getOccupationNameById(_x5, _x6) {
@@ -21463,7 +21658,7 @@ var passportLocal = /*#__PURE__*/Object.freeze({
21463
21658
  localStrategy: localStrategy
21464
21659
  });
21465
21660
 
21466
- var _this$4 = undefined;
21661
+ var _this$5 = undefined;
21467
21662
 
21468
21663
  var config$1 = {
21469
21664
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
@@ -21497,7 +21692,7 @@ var getOccupation = function () {
21497
21692
  return _context.stop();
21498
21693
  }
21499
21694
  }
21500
- }, _callee, _this$4);
21695
+ }, _callee, _this$5);
21501
21696
  }));
21502
21697
 
21503
21698
  return function getOccupation(_x) {
@@ -21560,7 +21755,7 @@ var getFieldsAndOptions = function () {
21560
21755
  return _context2.stop();
21561
21756
  }
21562
21757
  }
21563
- }, _callee2, _this$4);
21758
+ }, _callee2, _this$5);
21564
21759
  }));
21565
21760
 
21566
21761
  return function getFieldsAndOptions(_x2) {
@@ -21677,18 +21872,18 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
21677
21872
  };
21678
21873
 
21679
21874
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
21680
- var cp_url = '';
21681
- if (cp.ancestor && typeof cp.ancestor == 'string') {
21682
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21683
- }
21875
+ var cp_url = '';
21876
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
21877
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21878
+ }
21684
21879
 
21685
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21686
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21687
- }
21880
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21881
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21882
+ }
21688
21883
 
21689
- cp_url += (cp_url === '' ? '' : '/') + cp.path;
21884
+ cp_url += (cp_url === '' ? '' : '/') + cp.path;
21690
21885
 
21691
- return cp_url;
21886
+ return cp_url;
21692
21887
  };
21693
21888
 
21694
21889
  var getArticleSummary$1 = function getArticleSummary(article) {
@@ -21715,7 +21910,7 @@ var getArticleSummary$1 = function getArticleSummary(article) {
21715
21910
  };
21716
21911
 
21717
21912
  function urlFor$5(client, source) {
21718
- return index.imageUrlBuilder(client).image(source);
21913
+ return index.imageUrlBuilder(client).image(source);
21719
21914
  }
21720
21915
 
21721
21916
  var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
@@ -21784,9 +21979,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
21784
21979
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
21785
21980
  thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
21786
21981
  React__default.createElement('p', {
21787
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.main_36 ? 'left' : 'right', marginTop: '.25rem' },
21982
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.main_39 ? 'left' : 'right', marginTop: '.25rem' },
21788
21983
  dangerouslySetInnerHTML: { __html: name } }),
21789
- main.main_36 && !thumbnailUrl && React__default.createElement(
21984
+ main.main_39 && !thumbnailUrl && React__default.createElement(
21790
21985
  'style',
21791
21986
  { jsx: 'true' },
21792
21987
  '\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
@@ -22352,7 +22547,7 @@ var Article$1 = function Article(props) {
22352
22547
  React__default.createElement(
22353
22548
  'div',
22354
22549
  { className: 'ad-box', style: { textAlign: 'center' } },
22355
- main.main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22550
+ main.main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22356
22551
  if (index === 0) {
22357
22552
  return React__default.createElement(
22358
22553
  'div',
@@ -22407,7 +22602,7 @@ var Article$1 = function Article(props) {
22407
22602
  renderIsiContent(props.article)
22408
22603
  )
22409
22604
  ),
22410
- main.main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22605
+ main.main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22411
22606
  if (index > 0) {
22412
22607
  return React__default.createElement(
22413
22608
  'div',
@@ -22458,7 +22653,7 @@ exports.default = function (obj, key, value) {
22458
22653
  };
22459
22654
  });
22460
22655
 
22461
- var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty$1);
22656
+ var _defineProperty$1 = _commonjsHelpers.unwrapExports(defineProperty$1);
22462
22657
 
22463
22658
  var getTargeting = function getTargeting(props) {
22464
22659
  var article = props.article,
@@ -22573,7 +22768,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22573
22768
  setQueueData = _useState2[1];
22574
22769
 
22575
22770
  var refreshAD = function refreshAD(path) {
22576
- if (!main.main_36) {
22771
+ if (!main.main_39) {
22577
22772
  var activeArticle = queueData.find(function (item) {
22578
22773
  return item.url.current === path;
22579
22774
  });
@@ -22775,7 +22970,7 @@ var Articles = function Articles(props) {
22775
22970
  Ads: WAds,
22776
22971
  regionalPages: regionalPages,
22777
22972
  nationalPage: nationalPage
22778
- }, _defineProperty(_extends2, 'pageview', pageview), _defineProperty(_extends2, 'onVote', function onVote() {}), _defineProperty(_extends2, 'ISIContent', ISIContent), _defineProperty(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty(_extends2, 'sponsoredTaxonomies', []), _defineProperty(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty(_extends2, 'Settings', Settings), _extends2), props));
22973
+ }, _defineProperty$1(_extends2, 'pageview', pageview), _defineProperty$1(_extends2, 'onVote', function onVote() {}), _defineProperty$1(_extends2, 'ISIContent', ISIContent), _defineProperty$1(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty$1(_extends2, 'sponsoredTaxonomies', []), _defineProperty$1(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty$1(_extends2, 'Settings', Settings), _extends2), props));
22779
22974
  };
22780
22975
 
22781
22976
  var View = function View(props) {
@@ -22952,6 +23147,7 @@ exports.RelatedTopicsDropdown = RelatedTopicsDropdown;
22952
23147
  exports.SetCookie = SetCookie;
22953
23148
  exports.SocialShare = SocialShare$1;
22954
23149
  exports.VerticalHero = VerticalHero;
23150
+ exports.VideoSeriesFilter = VideoSeriesFilter$1;
22955
23151
  exports.View = View;
22956
23152
  exports.YahooHero = YahooHero;
22957
23153
  exports.getKeywords = getKeywords;