@mjhls/mjh-framework 1.0.425 → 1.0.427

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-e35862e5.js → Normal-405b758a.js} +39 -39
  15. package/dist/cjs/PublicationDeck.js +1 -1
  16. package/dist/cjs/QueueDeckExpanded.js +8 -8
  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 +5 -5
  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 +1056 -976
  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-7e1b2b80.js → Normal-c61851bf.js} +39 -39
  44. package/dist/esm/PublicationDeck.js +1 -1
  45. package/dist/esm/QueueDeckExpanded.js +8 -8
  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 +4 -4
  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 +1053 -973
  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-e35862e5.js');
62
+ var TemplateNormal = require('./Normal-405b758a.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)
@@ -2761,7 +2761,7 @@ var AD300x250 = function AD300x250(_ref) {
2761
2761
  pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
2762
2762
 
2763
2763
  var mobileView = false;
2764
- if (main.main_36) {
2764
+ if (main.main_39) {
2765
2765
  pos = 'rec1-mobile';
2766
2766
  mobileView = true;
2767
2767
  }
@@ -2793,7 +2793,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2793
2793
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
2794
2794
 
2795
2795
  var mobileView = false;
2796
- if (main.main_36) {
2796
+ if (main.main_39) {
2797
2797
  pos = 'rec2-mobile';
2798
2798
  mobileView = true;
2799
2799
  }
@@ -3210,21 +3210,18 @@ var Slideshow = function Slideshow(_ref) {
3210
3210
  );
3211
3211
  };
3212
3212
 
3213
- var isArray = Array.isArray;
3214
- var keyList = Object.keys;
3215
- var hasProp = Object.prototype.hasOwnProperty;
3213
+ // do not edit .js files directly - edit src/index.jst
3214
+
3215
+
3216
3216
 
3217
3217
  var fastDeepEqual = function equal(a, b) {
3218
3218
  if (a === b) return true;
3219
3219
 
3220
3220
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3221
- var arrA = isArray(a)
3222
- , arrB = isArray(b)
3223
- , i
3224
- , length
3225
- , key;
3221
+ if (a.constructor !== b.constructor) return false;
3226
3222
 
3227
- if (arrA && arrB) {
3223
+ var length, i, keys;
3224
+ if (Array.isArray(a)) {
3228
3225
  length = a.length;
3229
3226
  if (length != b.length) return false;
3230
3227
  for (i = length; i-- !== 0;)
@@ -3232,35 +3229,29 @@ var fastDeepEqual = function equal(a, b) {
3232
3229
  return true;
3233
3230
  }
3234
3231
 
3235
- if (arrA != arrB) return false;
3236
3232
 
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
3233
 
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();
3234
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3235
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3236
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3246
3237
 
3247
- var keys = keyList(a);
3238
+ keys = Object.keys(a);
3248
3239
  length = keys.length;
3249
-
3250
- if (length !== keyList(b).length)
3251
- return false;
3240
+ if (length !== Object.keys(b).length) return false;
3252
3241
 
3253
3242
  for (i = length; i-- !== 0;)
3254
- if (!hasProp.call(b, keys[i])) return false;
3243
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3255
3244
 
3256
3245
  for (i = length; i-- !== 0;) {
3257
- key = keys[i];
3246
+ var key = keys[i];
3247
+
3258
3248
  if (!equal(a[key], b[key])) return false;
3259
3249
  }
3260
3250
 
3261
3251
  return true;
3262
3252
  }
3263
3253
 
3254
+ // true if both NaN, false otherwise
3264
3255
  return a!==a && b!==b;
3265
3256
  };
3266
3257
 
@@ -4283,7 +4274,7 @@ function formatValue(ctx, value, recurseTimes) {
4283
4274
  var base = '', array = false, braces = ['{', '}'];
4284
4275
 
4285
4276
  // Make Array say that they are Array
4286
- if (isArray$1(value)) {
4277
+ if (isArray(value)) {
4287
4278
  array = true;
4288
4279
  braces = ['[', ']'];
4289
4280
  }
@@ -4462,7 +4453,7 @@ function reduceToSingleString(output, base, braces) {
4462
4453
 
4463
4454
  // NOTE: These type checking functions intentionally don't use `instanceof`
4464
4455
  // because it is fragile and can be easily faked with `Object.create()`.
4465
- function isArray$1(ar) {
4456
+ function isArray(ar) {
4466
4457
  return Array.isArray(ar);
4467
4458
  }
4468
4459
 
@@ -4589,7 +4580,7 @@ var util = {
4589
4580
  isNullOrUndefined: isNullOrUndefined,
4590
4581
  isNull: isNull,
4591
4582
  isBoolean: isBoolean,
4592
- isArray: isArray$1,
4583
+ isArray: isArray,
4593
4584
  inspect: inspect,
4594
4585
  deprecate: deprecate,
4595
4586
  format: format,
@@ -5256,199 +5247,235 @@ module.exports = exports['default'];
5256
5247
 
5257
5248
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
5258
5249
 
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; };
5250
+ 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
5251
 
5263
5252
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5264
5253
 
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; }
5254
+ 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); } }
5255
+
5256
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5257
+
5258
+ 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); }; }
5266
5259
 
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; }
5260
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5261
+
5262
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5263
+
5264
+ 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; } }
5265
+
5266
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5267
+
5268
+ 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); }
5268
5269
 
5269
- /**
5270
- * Check whether a `props` change should result in the video being updated.
5271
- *
5272
- * @param {Object} prevProps
5273
- * @param {Object} props
5270
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5271
+
5272
+ 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; }
5273
+
5274
+ 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; }
5275
+
5276
+ 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; }
5277
+ /**
5278
+ * Check whether a `props` change should result in the video being updated.
5279
+ *
5280
+ * @param {Object} prevProps
5281
+ * @param {Object} props
5274
5282
  */
5283
+
5275
5284
  function shouldUpdateVideo(prevProps, props) {
5276
5285
  // A changing video should always trigger an update
5277
5286
  if (prevProps.videoId !== props.videoId) {
5278
5287
  return true;
5279
- }
5280
-
5281
- // Otherwise, a change in the start/end time playerVars also requires a player
5288
+ } // Otherwise, a change in the start/end time playerVars also requires a player
5282
5289
  // update.
5290
+
5291
+
5283
5292
  var prevVars = prevProps.opts.playerVars || {};
5284
5293
  var vars = props.opts.playerVars || {};
5285
-
5286
5294
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5287
5295
  }
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
5296
+ /**
5297
+ * Neutralize API options that only require a video update, leaving only options
5298
+ * that require a player reset. The results can then be compared to see if a
5299
+ * player reset is necessary.
5300
+ *
5301
+ * @param {Object} opts
5295
5302
  */
5303
+
5304
+
5296
5305
  function filterResetOptions(opts) {
5297
- return _extends({}, opts, {
5298
- playerVars: _extends({}, opts.playerVars, {
5306
+ return _objectSpread({}, opts, {
5307
+ playerVars: _objectSpread({}, opts.playerVars, {
5299
5308
  autoplay: 0,
5300
5309
  start: 0,
5301
5310
  end: 0
5302
5311
  })
5303
5312
  });
5304
5313
  }
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
5314
+ /**
5315
+ * Check whether a `props` change should result in the player being reset.
5316
+ * The player is reset when the `props.opts` change, except if the only change
5317
+ * is in the `start` and `end` playerVars, because a video update can deal with
5318
+ * those.
5319
+ *
5320
+ * @param {Object} prevProps
5321
+ * @param {Object} props
5314
5322
  */
5323
+
5324
+
5315
5325
  function shouldResetPlayer(prevProps, props) {
5316
5326
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5317
5327
  }
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
5328
+ /**
5329
+ * Check whether a props change should result in an id or className update.
5330
+ *
5331
+ * @param {Object} prevProps
5332
+ * @param {Object} props
5324
5333
  */
5334
+
5335
+
5325
5336
  function shouldUpdatePlayer(prevProps, props) {
5326
5337
  return prevProps.id !== props.id || prevProps.className !== props.className;
5327
5338
  }
5328
5339
 
5329
- var YouTube = function (_React$Component) {
5340
+ var YouTube = /*#__PURE__*/function (_React$Component) {
5330
5341
  _inherits(YouTube, _React$Component);
5331
5342
 
5343
+ var _super = _createSuper(YouTube);
5344
+
5345
+ /**
5346
+ * Expose PlayerState constants for convenience. These constants can also be
5347
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5348
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5349
+ */
5332
5350
  function YouTube(props) {
5351
+ var _this;
5352
+
5333
5353
  _classCallCheck(this, YouTube);
5334
5354
 
5335
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5355
+ _this = _super.call(this, props);
5336
5356
 
5337
- _this.onPlayerReady = function (event) {
5357
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5338
5358
  return _this.props.onReady(event);
5339
- };
5359
+ });
5340
5360
 
5341
- _this.onPlayerError = function (event) {
5361
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5342
5362
  return _this.props.onError(event);
5343
- };
5363
+ });
5344
5364
 
5345
- _this.onPlayerStateChange = function (event) {
5365
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5346
5366
  _this.props.onStateChange(event);
5347
- switch (event.data) {
5348
5367
 
5368
+ switch (event.data) {
5349
5369
  case YouTube.PlayerState.ENDED:
5350
5370
  _this.props.onEnd(event);
5371
+
5351
5372
  break;
5352
5373
 
5353
5374
  case YouTube.PlayerState.PLAYING:
5354
5375
  _this.props.onPlay(event);
5376
+
5355
5377
  break;
5356
5378
 
5357
5379
  case YouTube.PlayerState.PAUSED:
5358
5380
  _this.props.onPause(event);
5381
+
5359
5382
  break;
5360
5383
  }
5361
- };
5384
+ });
5362
5385
 
5363
- _this.onPlayerPlaybackRateChange = function (event) {
5386
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5364
5387
  return _this.props.onPlaybackRateChange(event);
5365
- };
5388
+ });
5366
5389
 
5367
- _this.onPlayerPlaybackQualityChange = function (event) {
5390
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5368
5391
  return _this.props.onPlaybackQualityChange(event);
5369
- };
5392
+ });
5370
5393
 
5371
- _this.createPlayer = function () {
5394
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5372
5395
  // 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, {
5396
+ if (typeof document === 'undefined') return; // create player
5397
+
5398
+ var playerOpts = _objectSpread({}, _this.props.opts, {
5376
5399
  // preload the `videoId` video if one is already given
5377
5400
  videoId: _this.props.videoId
5378
5401
  });
5379
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5380
- // attach event handlers
5402
+
5403
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5404
+
5381
5405
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5406
+
5382
5407
  _this.internalPlayer.on('error', _this.onPlayerError);
5408
+
5383
5409
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5410
+
5384
5411
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5412
+
5385
5413
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5386
- };
5414
+ });
5387
5415
 
5388
- _this.resetPlayer = function () {
5416
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5389
5417
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5390
- };
5418
+ });
5391
5419
 
5392
- _this.updatePlayer = function () {
5420
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5393
5421
  _this.internalPlayer.getIframe().then(function (iframe) {
5394
5422
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5395
5423
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5396
5424
  });
5397
- };
5425
+ });
5398
5426
 
5399
- _this.updateVideo = function () {
5427
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5400
5428
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5401
5429
  _this.internalPlayer.stopVideo();
5430
+
5402
5431
  return;
5403
- }
5432
+ } // set queueing options
5433
+
5404
5434
 
5405
- // set queueing options
5406
5435
  var autoplay = false;
5407
5436
  var opts = {
5408
5437
  videoId: _this.props.videoId
5409
5438
  };
5439
+
5410
5440
  if ('playerVars' in _this.props.opts) {
5411
5441
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5442
+
5412
5443
  if ('start' in _this.props.opts.playerVars) {
5413
5444
  opts.startSeconds = _this.props.opts.playerVars.start;
5414
5445
  }
5446
+
5415
5447
  if ('end' in _this.props.opts.playerVars) {
5416
5448
  opts.endSeconds = _this.props.opts.playerVars.end;
5417
5449
  }
5418
- }
5450
+ } // if autoplay is enabled loadVideoById
5451
+
5419
5452
 
5420
- // if autoplay is enabled loadVideoById
5421
5453
  if (autoplay) {
5422
5454
  _this.internalPlayer.loadVideoById(opts);
5455
+
5423
5456
  return;
5424
- }
5425
- // default behaviour just cues the video
5457
+ } // default behaviour just cues the video
5458
+
5459
+
5426
5460
  _this.internalPlayer.cueVideoById(opts);
5427
- };
5461
+ });
5428
5462
 
5429
- _this.refContainer = function (container) {
5463
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5430
5464
  _this.container = container;
5431
- };
5465
+ });
5432
5466
 
5433
5467
  _this.container = null;
5434
5468
  _this.internalPlayer = null;
5435
5469
  return _this;
5436
5470
  }
5437
5471
 
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
5472
  _createClass(YouTube, [{
5446
- key: 'componentDidMount',
5473
+ key: "componentDidMount",
5447
5474
  value: function componentDidMount() {
5448
5475
  this.createPlayer();
5449
5476
  }
5450
5477
  }, {
5451
- key: 'componentDidUpdate',
5478
+ key: "componentDidUpdate",
5452
5479
  value: function componentDidUpdate(prevProps) {
5453
5480
  if (shouldUpdatePlayer(prevProps, this.props)) {
5454
5481
  this.updatePlayer();
@@ -5463,112 +5490,58 @@ var YouTube = function (_React$Component) {
5463
5490
  }
5464
5491
  }
5465
5492
  }, {
5466
- key: 'componentWillUnmount',
5493
+ key: "componentWillUnmount",
5467
5494
  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.
5495
+ /**
5496
+ * Note: The `youtube-player` package that is used promisifies all YouTube
5497
+ * Player API calls, which introduces a delay of a tick before it actually
5498
+ * gets destroyed. Since React attempts to remove the element instantly
5499
+ * this method isn't quick enough to reset the container element.
5473
5500
  */
5474
5501
  this.internalPlayer.destroy();
5475
5502
  }
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.
5503
+ /**
5504
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5505
+ *
5506
+ * @param {Object} event
5507
+ * @param {Object} target - player object
5542
5508
  */
5543
5509
 
5544
5510
  }, {
5545
- key: 'render',
5511
+ key: "render",
5546
5512
  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
- );
5513
+ return /*#__PURE__*/React__default.createElement("div", {
5514
+ className: this.props.containerClassName
5515
+ }, /*#__PURE__*/React__default.createElement("div", {
5516
+ id: this.props.id,
5517
+ className: this.props.className,
5518
+ ref: this.refContainer
5519
+ }));
5552
5520
  }
5553
5521
  }]);
5554
5522
 
5555
5523
  return YouTube;
5556
5524
  }(React__default.Component);
5557
5525
 
5526
+ _defineProperty(YouTube, "PlayerState", {
5527
+ UNSTARTED: -1,
5528
+ ENDED: 0,
5529
+ PLAYING: 1,
5530
+ PAUSED: 2,
5531
+ BUFFERING: 3,
5532
+ CUED: 5
5533
+ });
5534
+
5558
5535
  YouTube.propTypes = {
5559
5536
  videoId: PropTypes.string,
5560
-
5561
5537
  // custom ID for player element
5562
5538
  id: PropTypes.string,
5563
-
5564
5539
  // custom class name for player element
5565
5540
  className: PropTypes.string,
5566
5541
  // custom class name for player container element
5567
5542
  containerClassName: PropTypes.string,
5568
-
5569
5543
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5570
5544
  opts: PropTypes.objectOf(PropTypes.any),
5571
-
5572
5545
  // event subscriptions
5573
5546
  onReady: PropTypes.func,
5574
5547
  onError: PropTypes.func,
@@ -5580,6 +5553,7 @@ YouTube.propTypes = {
5580
5553
  onPlaybackQualityChange: PropTypes.func
5581
5554
  };
5582
5555
  YouTube.defaultProps = {
5556
+ videoId: null,
5583
5557
  id: null,
5584
5558
  className: null,
5585
5559
  opts: {},
@@ -5593,14 +5567,6 @@ YouTube.defaultProps = {
5593
5567
  onPlaybackRateChange: function onPlaybackRateChange() {},
5594
5568
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5595
5569
  };
5596
- YouTube.PlayerState = {
5597
- UNSTARTED: -1,
5598
- ENDED: 0,
5599
- PLAYING: 1,
5600
- PAUSED: 2,
5601
- BUFFERING: 3,
5602
- CUED: 5
5603
- };
5604
5570
 
5605
5571
  var YouTubePlayer = function YouTubePlayer(_ref) {
5606
5572
  var url = _ref.url;
@@ -6515,8 +6481,8 @@ var window_1 = win;
6515
6481
 
6516
6482
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6517
6483
 
6518
- function _extends$1() {
6519
- _extends$1 = Object.assign || function (target) {
6484
+ function _extends() {
6485
+ _extends = Object.assign || function (target) {
6520
6486
  for (var i = 1; i < arguments.length; i++) {
6521
6487
  var source = arguments[i];
6522
6488
 
@@ -6530,7 +6496,7 @@ function _extends$1() {
6530
6496
  return target;
6531
6497
  };
6532
6498
 
6533
- return _extends$1.apply(this, arguments);
6499
+ return _extends.apply(this, arguments);
6534
6500
  }
6535
6501
 
6536
6502
  function _inheritsLoose(subClass, superClass) {
@@ -6539,7 +6505,7 @@ function _inheritsLoose(subClass, superClass) {
6539
6505
  subClass.__proto__ = superClass;
6540
6506
  }
6541
6507
 
6542
- function _assertThisInitialized(self) {
6508
+ function _assertThisInitialized$1(self) {
6543
6509
  if (self === void 0) {
6544
6510
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6545
6511
  }
@@ -6549,8 +6515,8 @@ function _assertThisInitialized(self) {
6549
6515
 
6550
6516
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6551
6517
 
6552
- function _extends$1$1() {
6553
- _extends$1$1 = Object.assign || function (target) {
6518
+ function _extends$1() {
6519
+ _extends$1 = Object.assign || function (target) {
6554
6520
  for (var i = 1; i < arguments.length; i++) {
6555
6521
  var source = arguments[i];
6556
6522
 
@@ -6564,7 +6530,7 @@ function _extends$1$1() {
6564
6530
  return target;
6565
6531
  };
6566
6532
 
6567
- return _extends$1$1.apply(this, arguments);
6533
+ return _extends$1.apply(this, arguments);
6568
6534
  }
6569
6535
 
6570
6536
  var version$1 = "1.7.1";
@@ -6572,7 +6538,7 @@ var version$1 = "1.7.1";
6572
6538
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6573
6539
  var version$1$1 = "1.2.0";
6574
6540
 
6575
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6541
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6576
6542
  return typeof obj;
6577
6543
  } : function (obj) {
6578
6544
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6707,7 +6673,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6707
6673
 
6708
6674
  var qs = '';
6709
6675
 
6710
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6676
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6711
6677
  qs = getQueryString(queryParams);
6712
6678
  }
6713
6679
 
@@ -6941,7 +6907,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
6941
6907
  el.style.width = '100%';
6942
6908
  el.style.height = '100%';
6943
6909
 
6944
- var responsive = _extends$1$1({
6910
+ var responsive = _extends$1({
6945
6911
  aspectRatio: DEFAULT_ASPECT_RATIO,
6946
6912
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
6947
6913
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7626,7 +7592,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7626
7592
 
7627
7593
 
7628
7594
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7629
- var params = _extends$1$1({}, DEFAULTS, parameters);
7595
+ var params = _extends$1({}, DEFAULTS, parameters);
7630
7596
 
7631
7597
  var Promise = params.Promise,
7632
7598
  onSuccess = params.onSuccess,
@@ -7768,7 +7734,7 @@ function (_React$Component) {
7768
7734
  _this.refNode = ref;
7769
7735
  };
7770
7736
 
7771
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7737
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7772
7738
  return _this;
7773
7739
  }
7774
7740
  /**
@@ -7789,7 +7755,7 @@ function (_React$Component) {
7789
7755
  var userSuccess = this.props.onSuccess;
7790
7756
  var userFailure = this.props.onFailure;
7791
7757
 
7792
- var options = _extends$1({}, this.props, {
7758
+ var options = _extends({}, this.props, {
7793
7759
  refNode: this.refNode,
7794
7760
  refNodeInsert: 'append',
7795
7761
  onSuccess: function onSuccess(_ref) {
@@ -8098,7 +8064,7 @@ function (_React$Component) {
8098
8064
  ;
8099
8065
 
8100
8066
  _proto.render = function render() {
8101
- var props = _extends$1({
8067
+ var props = _extends({
8102
8068
  className: 'brightcove-react-player-loader'
8103
8069
  }, this.props.attrs, {
8104
8070
  ref: this.setRefNode
@@ -8617,11 +8583,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8617
8583
 
8618
8584
  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; }
8619
8585
 
8620
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8586
+ 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; } } }; }
8587
+
8588
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8621
8589
 
8622
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8590
+ 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."); }
8623
8591
 
8624
- 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; }
8592
+ 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); }
8593
+
8594
+ 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; }
8595
+
8596
+ 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; }
8625
8597
 
8626
8598
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8627
8599
 
@@ -8751,12 +8723,12 @@ function getSDK(url, sdkGlobal) {
8751
8723
 
8752
8724
  function getConfig(props$1, defaultProps, showWarning) {
8753
8725
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8754
- var _iteratorNormalCompletion = true;
8755
- var _didIteratorError = false;
8756
- var _iteratorError = undefined;
8726
+
8727
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8728
+ _step;
8757
8729
 
8758
8730
  try {
8759
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8731
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
8760
8732
  var p = _step.value;
8761
8733
 
8762
8734
  if (props$1[p]) {
@@ -8771,18 +8743,9 @@ function getConfig(props$1, defaultProps, showWarning) {
8771
8743
  }
8772
8744
  }
8773
8745
  } catch (err) {
8774
- _didIteratorError = true;
8775
- _iteratorError = err;
8746
+ _iterator.e(err);
8776
8747
  } finally {
8777
- try {
8778
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8779
- _iterator["return"]();
8780
- }
8781
- } finally {
8782
- if (_didIteratorError) {
8783
- throw _iteratorError;
8784
- }
8785
- }
8748
+ _iterator.f();
8786
8749
  }
8787
8750
 
8788
8751
  return config;
@@ -8929,12 +8892,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8929
8892
 
8930
8893
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8931
8894
 
8932
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8895
+ 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); }; }
8933
8896
 
8934
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8897
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8935
8898
 
8936
8899
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8937
8900
 
8901
+ 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; } }
8902
+
8903
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8904
+
8938
8905
  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); }
8939
8906
 
8940
8907
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8943,14 +8910,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8943
8910
 
8944
8911
  var SEEK_ON_PLAY_EXPIRY = 5000;
8945
8912
 
8946
- var Player =
8947
- /*#__PURE__*/
8948
- function (_Component) {
8913
+ var Player = /*#__PURE__*/function (_Component) {
8949
8914
  _inherits(Player, _Component);
8950
8915
 
8951
- function Player() {
8952
- var _getPrototypeOf2;
8916
+ var _super = _createSuper(Player);
8953
8917
 
8918
+ function Player() {
8954
8919
  var _this;
8955
8920
 
8956
8921
  _classCallCheck(this, Player);
@@ -8959,7 +8924,7 @@ function (_Component) {
8959
8924
  _args[_key] = arguments[_key];
8960
8925
  }
8961
8926
 
8962
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8927
+ _this = _super.call.apply(_super, [this].concat(_args));
8963
8928
 
8964
8929
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
8965
8930
 
@@ -9284,7 +9249,7 @@ function (_Component) {
9284
9249
  return null;
9285
9250
  }
9286
9251
 
9287
- return _react["default"].createElement(Player, _extends({}, this.props, {
9252
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9288
9253
  ref: this.ref,
9289
9254
  onReady: this.handleReady,
9290
9255
  onPlay: this.handlePlay,
@@ -9345,12 +9310,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9345
9310
 
9346
9311
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9347
9312
 
9348
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9313
+ 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); }; }
9349
9314
 
9350
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9315
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9351
9316
 
9352
9317
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9353
9318
 
9319
+ 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; } }
9320
+
9321
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9322
+
9354
9323
  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); }
9355
9324
 
9356
9325
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9362,14 +9331,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9362
9331
  function createSinglePlayer(activePlayer) {
9363
9332
  var _class, _temp;
9364
9333
 
9365
- return _temp = _class =
9366
- /*#__PURE__*/
9367
- function (_Component) {
9334
+ return _temp = _class = /*#__PURE__*/function (_Component) {
9368
9335
  _inherits(SinglePlayer, _Component);
9369
9336
 
9370
- function SinglePlayer() {
9371
- var _getPrototypeOf2;
9337
+ var _super = _createSuper(SinglePlayer);
9372
9338
 
9339
+ function SinglePlayer() {
9373
9340
  var _this;
9374
9341
 
9375
9342
  _classCallCheck(this, SinglePlayer);
@@ -9378,7 +9345,7 @@ function createSinglePlayer(activePlayer) {
9378
9345
  args[_key] = arguments[_key];
9379
9346
  }
9380
9347
 
9381
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9348
+ _this = _super.call.apply(_super, [this].concat(args));
9382
9349
 
9383
9350
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9384
9351
 
@@ -9446,12 +9413,12 @@ function createSinglePlayer(activePlayer) {
9446
9413
  height = _this$props.height,
9447
9414
  Wrapper = _this$props.wrapper;
9448
9415
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9449
- return _react["default"].createElement(Wrapper, _extends({
9416
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9450
9417
  style: _objectSpread({}, style, {
9451
9418
  width: width,
9452
9419
  height: height
9453
9420
  })
9454
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9421
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9455
9422
  ref: this.ref,
9456
9423
  activePlayer: activePlayer,
9457
9424
  config: this.config
@@ -9497,23 +9464,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9497
9464
 
9498
9465
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9499
9466
 
9500
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9467
+ 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); }; }
9501
9468
 
9502
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9469
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9503
9470
 
9504
9471
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9505
9472
 
9473
+ 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; } }
9474
+
9475
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9476
+
9506
9477
  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); }
9507
9478
 
9508
9479
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9509
9480
 
9510
9481
  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; }
9511
9482
 
9512
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9483
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9484
+
9485
+ 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."); }
9486
+
9487
+ 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); }
9513
9488
 
9514
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9489
+ 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; }
9515
9490
 
9516
- 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; }
9491
+ 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; }
9517
9492
 
9518
9493
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9519
9494
 
@@ -9538,14 +9513,12 @@ function parsePlaylist(url) {
9538
9513
  return {};
9539
9514
  }
9540
9515
 
9541
- var YouTube =
9542
- /*#__PURE__*/
9543
- function (_Component) {
9516
+ var YouTube = /*#__PURE__*/function (_Component) {
9544
9517
  _inherits(YouTube, _Component);
9545
9518
 
9546
- function YouTube() {
9547
- var _getPrototypeOf2;
9519
+ var _super = _createSuper(YouTube);
9548
9520
 
9521
+ function YouTube() {
9549
9522
  var _this;
9550
9523
 
9551
9524
  _classCallCheck(this, YouTube);
@@ -9554,7 +9527,7 @@ function (_Component) {
9554
9527
  args[_key] = arguments[_key];
9555
9528
  }
9556
9529
 
9557
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9530
+ _this = _super.call.apply(_super, [this].concat(args));
9558
9531
 
9559
9532
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9560
9533
 
@@ -9742,9 +9715,9 @@ function (_Component) {
9742
9715
  height: '100%',
9743
9716
  display: display
9744
9717
  };
9745
- return _react["default"].createElement("div", {
9718
+ return /*#__PURE__*/_react["default"].createElement("div", {
9746
9719
  style: style
9747
- }, _react["default"].createElement("div", {
9720
+ }, /*#__PURE__*/_react["default"].createElement("div", {
9748
9721
  ref: this.ref
9749
9722
  }));
9750
9723
  }
@@ -9800,12 +9773,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9800
9773
 
9801
9774
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9802
9775
 
9803
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9776
+ 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); }; }
9804
9777
 
9805
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9778
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9806
9779
 
9807
9780
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9808
9781
 
9782
+ 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; } }
9783
+
9784
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9785
+
9809
9786
  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); }
9810
9787
 
9811
9788
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9814,16 +9791,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9814
9791
 
9815
9792
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9816
9793
  var SDK_GLOBAL = 'SC';
9817
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9794
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9818
9795
 
9819
- var SoundCloud =
9820
- /*#__PURE__*/
9821
- function (_Component) {
9796
+ var SoundCloud = /*#__PURE__*/function (_Component) {
9822
9797
  _inherits(SoundCloud, _Component);
9823
9798
 
9824
- function SoundCloud() {
9825
- var _getPrototypeOf2;
9799
+ var _super = _createSuper(SoundCloud);
9826
9800
 
9801
+ function SoundCloud() {
9827
9802
  var _this;
9828
9803
 
9829
9804
  _classCallCheck(this, SoundCloud);
@@ -9832,7 +9807,7 @@ function (_Component) {
9832
9807
  args[_key] = arguments[_key];
9833
9808
  }
9834
9809
 
9835
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9810
+ _this = _super.call.apply(_super, [this].concat(args));
9836
9811
 
9837
9812
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9838
9813
 
@@ -9953,7 +9928,7 @@ function (_Component) {
9953
9928
  height: '100%',
9954
9929
  display: display
9955
9930
  };
9956
- return _react["default"].createElement("iframe", {
9931
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
9957
9932
  ref: this.ref,
9958
9933
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
9959
9934
  style: style,
@@ -10015,12 +9990,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10015
9990
 
10016
9991
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10017
9992
 
10018
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9993
+ 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); }; }
10019
9994
 
10020
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9995
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10021
9996
 
10022
9997
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10023
9998
 
9999
+ 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; } }
10000
+
10001
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10002
+
10024
10003
  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); }
10025
10004
 
10026
10005
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10032,14 +10011,12 @@ var SDK_GLOBAL = 'Vimeo';
10032
10011
  var MATCH_URL = /vimeo\.com\/.+/;
10033
10012
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10034
10013
 
10035
- var Vimeo =
10036
- /*#__PURE__*/
10037
- function (_Component) {
10014
+ var Vimeo = /*#__PURE__*/function (_Component) {
10038
10015
  _inherits(Vimeo, _Component);
10039
10016
 
10040
- function Vimeo() {
10041
- var _getPrototypeOf2;
10017
+ var _super = _createSuper(Vimeo);
10042
10018
 
10019
+ function Vimeo() {
10043
10020
  var _this;
10044
10021
 
10045
10022
  _classCallCheck(this, Vimeo);
@@ -10048,7 +10025,7 @@ function (_Component) {
10048
10025
  args[_key] = arguments[_key];
10049
10026
  }
10050
10027
 
10051
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10028
+ _this = _super.call.apply(_super, [this].concat(args));
10052
10029
 
10053
10030
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10054
10031
 
@@ -10205,7 +10182,7 @@ function (_Component) {
10205
10182
  overflow: 'hidden',
10206
10183
  display: display
10207
10184
  };
10208
- return _react["default"].createElement("div", {
10185
+ return /*#__PURE__*/_react["default"].createElement("div", {
10209
10186
  key: this.props.url,
10210
10187
  ref: this.ref,
10211
10188
  style: style
@@ -10265,12 +10242,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10265
10242
 
10266
10243
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10267
10244
 
10268
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10245
+ 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); }; }
10269
10246
 
10270
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10247
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10271
10248
 
10272
10249
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10273
10250
 
10251
+ 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; } }
10252
+
10253
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10254
+
10274
10255
  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); }
10275
10256
 
10276
10257
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10283,14 +10264,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10283
10264
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10284
10265
  var PLAYER_ID_PREFIX = 'facebook-player-';
10285
10266
 
10286
- var Facebook =
10287
- /*#__PURE__*/
10288
- function (_Component) {
10267
+ var Facebook = /*#__PURE__*/function (_Component) {
10289
10268
  _inherits(Facebook, _Component);
10290
10269
 
10291
- function Facebook() {
10292
- var _getPrototypeOf2;
10270
+ var _super = _createSuper(Facebook);
10293
10271
 
10272
+ function Facebook() {
10294
10273
  var _this;
10295
10274
 
10296
10275
  _classCallCheck(this, Facebook);
@@ -10299,7 +10278,7 @@ function (_Component) {
10299
10278
  args[_key] = arguments[_key];
10300
10279
  }
10301
10280
 
10302
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10281
+ _this = _super.call.apply(_super, [this].concat(args));
10303
10282
 
10304
10283
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10305
10284
 
@@ -10415,7 +10394,7 @@ function (_Component) {
10415
10394
  width: '100%',
10416
10395
  height: '100%'
10417
10396
  };
10418
- return _react["default"].createElement("div", {
10397
+ return /*#__PURE__*/_react["default"].createElement("div", {
10419
10398
  style: style,
10420
10399
  id: this.playerID,
10421
10400
  className: "fb-video",
@@ -10475,12 +10454,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10475
10454
 
10476
10455
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10477
10456
 
10478
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10457
+ 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); }; }
10479
10458
 
10480
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10459
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10481
10460
 
10482
10461
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10483
10462
 
10463
+ 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; } }
10464
+
10465
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10466
+
10484
10467
  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); }
10485
10468
 
10486
10469
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10491,14 +10474,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10491
10474
  var SDK_GLOBAL = 'playerjs';
10492
10475
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10493
10476
 
10494
- var Streamable =
10495
- /*#__PURE__*/
10496
- function (_Component) {
10477
+ var Streamable = /*#__PURE__*/function (_Component) {
10497
10478
  _inherits(Streamable, _Component);
10498
10479
 
10499
- function Streamable() {
10500
- var _getPrototypeOf2;
10480
+ var _super = _createSuper(Streamable);
10501
10481
 
10482
+ function Streamable() {
10502
10483
  var _this;
10503
10484
 
10504
10485
  _classCallCheck(this, Streamable);
@@ -10507,7 +10488,7 @@ function (_Component) {
10507
10488
  args[_key] = arguments[_key];
10508
10489
  }
10509
10490
 
10510
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10491
+ _this = _super.call.apply(_super, [this].concat(args));
10511
10492
 
10512
10493
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10513
10494
 
@@ -10627,7 +10608,7 @@ function (_Component) {
10627
10608
  width: '100%',
10628
10609
  height: '100%'
10629
10610
  };
10630
- return _react["default"].createElement("iframe", {
10611
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10631
10612
  ref: this.ref,
10632
10613
  src: "https://streamable.com/o/".concat(id),
10633
10614
  frameBorder: "0",
@@ -10688,12 +10669,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10688
10669
 
10689
10670
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10690
10671
 
10691
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10672
+ 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); }; }
10692
10673
 
10693
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10674
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10694
10675
 
10695
10676
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10696
10677
 
10678
+ 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; } }
10679
+
10680
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10681
+
10697
10682
  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); }
10698
10683
 
10699
10684
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10704,26 +10689,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10704
10689
  var SDK_GLOBAL = 'Wistia';
10705
10690
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10706
10691
 
10707
- var Wistia =
10708
- /*#__PURE__*/
10709
- function (_Component) {
10692
+ var Wistia = /*#__PURE__*/function (_Component) {
10710
10693
  _inherits(Wistia, _Component);
10711
10694
 
10712
- function Wistia() {
10713
- var _getPrototypeOf2;
10695
+ var _super = _createSuper(Wistia);
10714
10696
 
10697
+ function Wistia() {
10715
10698
  var _this;
10716
10699
 
10717
10700
  _classCallCheck(this, Wistia);
10718
10701
 
10719
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10720
- args[_key] = arguments[_key];
10702
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10703
+ _args[_key] = arguments[_key];
10721
10704
  }
10722
10705
 
10723
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10706
+ _this = _super.call.apply(_super, [this].concat(_args));
10724
10707
 
10725
10708
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10726
10709
 
10710
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10711
+ var _this$props;
10712
+
10713
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10714
+ });
10715
+
10716
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10717
+ var _this$props2;
10718
+
10719
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10720
+ });
10721
+
10722
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10723
+ var _this$props3;
10724
+
10725
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10726
+ });
10727
+
10728
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10729
+ var _this$props4;
10730
+
10731
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10732
+ });
10733
+
10727
10734
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10728
10735
  _this.callPlayer('mute');
10729
10736
  });
@@ -10745,17 +10752,13 @@ function (_Component) {
10745
10752
  value: function load(url) {
10746
10753
  var _this2 = this;
10747
10754
 
10748
- var _this$props = this.props,
10749
- playing = _this$props.playing,
10750
- muted = _this$props.muted,
10751
- controls = _this$props.controls,
10752
- _onReady = _this$props.onReady,
10753
- onPlay = _this$props.onPlay,
10754
- onPause = _this$props.onPause,
10755
- onSeek = _this$props.onSeek,
10756
- onEnded = _this$props.onEnded,
10757
- config = _this$props.config,
10758
- onError = _this$props.onError;
10755
+ var _this$props5 = this.props,
10756
+ playing = _this$props5.playing,
10757
+ muted = _this$props5.muted,
10758
+ controls = _this$props5.controls,
10759
+ _onReady = _this$props5.onReady,
10760
+ config = _this$props5.config,
10761
+ onError = _this$props5.onError;
10759
10762
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10760
10763
  window._wq = window._wq || [];
10761
10764
 
@@ -10772,19 +10775,28 @@ function (_Component) {
10772
10775
 
10773
10776
  _this2.unbind();
10774
10777
 
10775
- _this2.player.bind('play', onPlay);
10778
+ _this2.player.bind('play', _this2.onPlay);
10776
10779
 
10777
- _this2.player.bind('pause', onPause);
10780
+ _this2.player.bind('pause', _this2.onPause);
10778
10781
 
10779
- _this2.player.bind('seek', onSeek);
10782
+ _this2.player.bind('seek', _this2.onSeek);
10780
10783
 
10781
- _this2.player.bind('end', onEnded);
10784
+ _this2.player.bind('end', _this2.onEnded);
10782
10785
 
10783
10786
  _onReady();
10784
10787
  }
10785
10788
  });
10786
10789
  }, onError);
10787
10790
  }
10791
+ }, {
10792
+ key: "unbind",
10793
+ value: function unbind() {
10794
+ this.player.unbind('play', this.onPlay);
10795
+ this.player.unbind('pause', this.onPause);
10796
+ this.player.unbind('seek', this.onSeek);
10797
+ this.player.unbind('end', this.onEnded);
10798
+ } // Proxy methods to prevent listener leaks
10799
+
10788
10800
  }, {
10789
10801
  key: "play",
10790
10802
  value: function play() {
@@ -10795,19 +10807,6 @@ function (_Component) {
10795
10807
  value: function pause() {
10796
10808
  this.callPlayer('pause');
10797
10809
  }
10798
- }, {
10799
- key: "unbind",
10800
- value: function unbind() {
10801
- var _this$props2 = this.props,
10802
- onPlay = _this$props2.onPlay,
10803
- onPause = _this$props2.onPause,
10804
- onSeek = _this$props2.onSeek,
10805
- onEnded = _this$props2.onEnded;
10806
- this.player.unbind('play', onPlay);
10807
- this.player.unbind('pause', onPause);
10808
- this.player.unbind('seek', onSeek);
10809
- this.player.unbind('end', onEnded);
10810
- }
10811
10810
  }, {
10812
10811
  key: "stop",
10813
10812
  value: function stop() {
@@ -10853,7 +10852,7 @@ function (_Component) {
10853
10852
  width: '100%',
10854
10853
  height: '100%'
10855
10854
  };
10856
- return _react["default"].createElement("div", {
10855
+ return /*#__PURE__*/_react["default"].createElement("div", {
10857
10856
  key: id,
10858
10857
  className: className,
10859
10858
  style: style
@@ -10913,12 +10912,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10913
10912
 
10914
10913
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10915
10914
 
10916
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10915
+ 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); }; }
10917
10916
 
10918
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10917
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10919
10918
 
10920
10919
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10921
10920
 
10921
+ 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; } }
10922
+
10923
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10924
+
10922
10925
  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); }
10923
10926
 
10924
10927
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10931,14 +10934,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
10931
10934
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
10932
10935
  var PLAYER_ID_PREFIX = 'twitch-player-';
10933
10936
 
10934
- var Twitch =
10935
- /*#__PURE__*/
10936
- function (_Component) {
10937
+ var Twitch = /*#__PURE__*/function (_Component) {
10937
10938
  _inherits(Twitch, _Component);
10938
10939
 
10939
- function Twitch() {
10940
- var _getPrototypeOf2;
10940
+ var _super = _createSuper(Twitch);
10941
10941
 
10942
+ function Twitch() {
10942
10943
  var _this;
10943
10944
 
10944
10945
  _classCallCheck(this, Twitch);
@@ -10947,7 +10948,7 @@ function (_Component) {
10947
10948
  args[_key] = arguments[_key];
10948
10949
  }
10949
10950
 
10950
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10951
+ _this = _super.call.apply(_super, [this].concat(args));
10951
10952
 
10952
10953
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10953
10954
 
@@ -11068,7 +11069,7 @@ function (_Component) {
11068
11069
  width: '100%',
11069
11070
  height: '100%'
11070
11071
  };
11071
- return _react["default"].createElement("div", {
11072
+ return /*#__PURE__*/_react["default"].createElement("div", {
11072
11073
  style: style,
11073
11074
  id: this.playerID
11074
11075
  });
@@ -11121,11 +11122,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11121
11122
 
11122
11123
  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; }
11123
11124
 
11124
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11125
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11126
+
11127
+ 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."); }
11125
11128
 
11126
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11129
+ 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); }
11127
11130
 
11128
- 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; }
11131
+ 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; }
11132
+
11133
+ 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; }
11129
11134
 
11130
11135
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11131
11136
 
@@ -11135,12 +11140,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11135
11140
 
11136
11141
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11137
11142
 
11138
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11143
+ 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); }; }
11139
11144
 
11140
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11145
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11141
11146
 
11142
11147
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11143
11148
 
11149
+ 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; } }
11150
+
11151
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11152
+
11144
11153
  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); }
11145
11154
 
11146
11155
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11152,14 +11161,12 @@ var SDK_GLOBAL = 'DM';
11152
11161
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11153
11162
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11154
11163
 
11155
- var DailyMotion =
11156
- /*#__PURE__*/
11157
- function (_Component) {
11164
+ var DailyMotion = /*#__PURE__*/function (_Component) {
11158
11165
  _inherits(DailyMotion, _Component);
11159
11166
 
11160
- function DailyMotion() {
11161
- var _getPrototypeOf2;
11167
+ var _super = _createSuper(DailyMotion);
11162
11168
 
11169
+ function DailyMotion() {
11163
11170
  var _this;
11164
11171
 
11165
11172
  _classCallCheck(this, DailyMotion);
@@ -11168,7 +11175,7 @@ function (_Component) {
11168
11175
  args[_key] = arguments[_key];
11169
11176
  }
11170
11177
 
11171
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11178
+ _this = _super.call.apply(_super, [this].concat(args));
11172
11179
 
11173
11180
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11174
11181
 
@@ -11297,9 +11304,9 @@ function (_Component) {
11297
11304
  height: '100%',
11298
11305
  display: display
11299
11306
  };
11300
- return _react["default"].createElement("div", {
11307
+ return /*#__PURE__*/_react["default"].createElement("div", {
11301
11308
  style: style
11302
- }, _react["default"].createElement("div", {
11309
+ }, /*#__PURE__*/_react["default"].createElement("div", {
11303
11310
  ref: this.ref
11304
11311
  }));
11305
11312
  }
@@ -11357,12 +11364,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11357
11364
 
11358
11365
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11359
11366
 
11360
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11367
+ 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); }; }
11361
11368
 
11362
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11369
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11363
11370
 
11364
11371
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11365
11372
 
11373
+ 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; } }
11374
+
11375
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11376
+
11366
11377
  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); }
11367
11378
 
11368
11379
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11373,14 +11384,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11373
11384
  var SDK_GLOBAL = 'Mixcloud';
11374
11385
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11375
11386
 
11376
- var Mixcloud =
11377
- /*#__PURE__*/
11378
- function (_Component) {
11387
+ var Mixcloud = /*#__PURE__*/function (_Component) {
11379
11388
  _inherits(Mixcloud, _Component);
11380
11389
 
11381
- function Mixcloud() {
11382
- var _getPrototypeOf2;
11390
+ var _super = _createSuper(Mixcloud);
11383
11391
 
11392
+ function Mixcloud() {
11384
11393
  var _this;
11385
11394
 
11386
11395
  _classCallCheck(this, Mixcloud);
@@ -11389,7 +11398,7 @@ function (_Component) {
11389
11398
  args[_key] = arguments[_key];
11390
11399
  }
11391
11400
 
11392
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11401
+ _this = _super.call.apply(_super, [this].concat(args));
11393
11402
 
11394
11403
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11395
11404
 
@@ -11492,7 +11501,7 @@ function (_Component) {
11492
11501
  })); // We have to give the iframe a key here to prevent a
11493
11502
  // weird dialog appearing when loading a new track
11494
11503
 
11495
- return _react["default"].createElement("iframe", {
11504
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11496
11505
  key: id,
11497
11506
  ref: this.ref,
11498
11507
  style: style,
@@ -11552,23 +11561,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11552
11561
 
11553
11562
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11554
11563
 
11555
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11564
+ 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); }; }
11556
11565
 
11557
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11566
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11558
11567
 
11559
11568
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11560
11569
 
11570
+ 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; } }
11571
+
11572
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11573
+
11561
11574
  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); }
11562
11575
 
11563
11576
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11564
11577
 
11565
11578
  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; }
11566
11579
 
11580
+ 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; } } }; }
11581
+
11582
+ 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); }
11583
+
11584
+ 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; }
11585
+
11567
11586
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11568
11587
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11569
11588
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11570
11589
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11571
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11590
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11572
11591
  var HLS_GLOBAL = 'Hls';
11573
11592
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11574
11593
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11577,12 +11596,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11577
11596
 
11578
11597
  function canPlay(url) {
11579
11598
  if (url instanceof Array) {
11580
- var _iteratorNormalCompletion = true;
11581
- var _didIteratorError = false;
11582
- var _iteratorError = undefined;
11599
+ var _iterator = _createForOfIteratorHelper(url),
11600
+ _step;
11583
11601
 
11584
11602
  try {
11585
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11603
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
11586
11604
  var item = _step.value;
11587
11605
 
11588
11606
  if (typeof item === 'string' && canPlay(item)) {
@@ -11594,18 +11612,9 @@ function canPlay(url) {
11594
11612
  }
11595
11613
  }
11596
11614
  } catch (err) {
11597
- _didIteratorError = true;
11598
- _iteratorError = err;
11615
+ _iterator.e(err);
11599
11616
  } finally {
11600
- try {
11601
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11602
- _iterator["return"]();
11603
- }
11604
- } finally {
11605
- if (_didIteratorError) {
11606
- throw _iteratorError;
11607
- }
11608
- }
11617
+ _iterator.f();
11609
11618
  }
11610
11619
 
11611
11620
  return false;
@@ -11629,14 +11638,12 @@ function canEnablePIP(url) {
11629
11638
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11630
11639
  }
11631
11640
 
11632
- var FilePlayer =
11633
- /*#__PURE__*/
11634
- function (_Component) {
11641
+ var FilePlayer = /*#__PURE__*/function (_Component) {
11635
11642
  _inherits(FilePlayer, _Component);
11636
11643
 
11637
- function FilePlayer() {
11638
- var _getPrototypeOf2;
11644
+ var _super = _createSuper(FilePlayer);
11639
11645
 
11646
+ function FilePlayer() {
11640
11647
  var _this;
11641
11648
 
11642
11649
  _classCallCheck(this, FilePlayer);
@@ -11645,7 +11652,7 @@ function (_Component) {
11645
11652
  _args[_key] = arguments[_key];
11646
11653
  }
11647
11654
 
11648
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11655
+ _this = _super.call.apply(_super, [this].concat(_args));
11649
11656
 
11650
11657
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11651
11658
  var _this$props;
@@ -11732,19 +11739,19 @@ function (_Component) {
11732
11739
 
11733
11740
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11734
11741
  if (typeof source === 'string') {
11735
- return _react["default"].createElement("source", {
11742
+ return /*#__PURE__*/_react["default"].createElement("source", {
11736
11743
  key: index,
11737
11744
  src: source
11738
11745
  });
11739
11746
  }
11740
11747
 
11741
- return _react["default"].createElement("source", _extends({
11748
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
11742
11749
  key: index
11743
11750
  }, source));
11744
11751
  });
11745
11752
 
11746
11753
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11747
- return _react["default"].createElement("track", _extends({
11754
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
11748
11755
  key: index
11749
11756
  }, track));
11750
11757
  });
@@ -11782,6 +11789,10 @@ function (_Component) {
11782
11789
  key: "componentWillUnmount",
11783
11790
  value: function componentWillUnmount() {
11784
11791
  this.removeListeners(this.player);
11792
+
11793
+ if (this.hls) {
11794
+ this.hls.destroy();
11795
+ }
11785
11796
  }
11786
11797
  }, {
11787
11798
  key: "addListeners",
@@ -11912,10 +11923,6 @@ function (_Component) {
11912
11923
  value: function stop() {
11913
11924
  this.player.removeAttribute('src');
11914
11925
 
11915
- if (this.hls) {
11916
- this.hls.destroy();
11917
- }
11918
-
11919
11926
  if (this.dash) {
11920
11927
  this.dash.reset();
11921
11928
  }
@@ -12027,7 +12034,7 @@ function (_Component) {
12027
12034
  width: width === 'auto' ? width : '100%',
12028
12035
  height: height === 'auto' ? height : '100%'
12029
12036
  };
12030
- return _react["default"].createElement(Element, _extends({
12037
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12031
12038
  ref: this.ref,
12032
12039
  src: this.getSource(url),
12033
12040
  style: style,
@@ -12117,12 +12124,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12117
12124
 
12118
12125
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12119
12126
 
12120
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12127
+ 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); }; }
12121
12128
 
12122
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12129
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12123
12130
 
12124
12131
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12125
12132
 
12133
+ 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; } }
12134
+
12135
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12136
+
12126
12137
  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); }
12127
12138
 
12128
12139
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12131,14 +12142,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12131
12142
 
12132
12143
  var ICON_SIZE = '64px';
12133
12144
 
12134
- var Preview =
12135
- /*#__PURE__*/
12136
- function (_Component) {
12145
+ var Preview = /*#__PURE__*/function (_Component) {
12137
12146
  _inherits(Preview, _Component);
12138
12147
 
12139
- function Preview() {
12140
- var _getPrototypeOf2;
12148
+ var _super = _createSuper(Preview);
12141
12149
 
12150
+ function Preview() {
12142
12151
  var _this;
12143
12152
 
12144
12153
  _classCallCheck(this, Preview);
@@ -12147,7 +12156,7 @@ function (_Component) {
12147
12156
  args[_key] = arguments[_key];
12148
12157
  }
12149
12158
 
12150
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12159
+ _this = _super.call.apply(_super, [this].concat(args));
12151
12160
 
12152
12161
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12153
12162
 
@@ -12245,15 +12254,15 @@ function (_Component) {
12245
12254
  }
12246
12255
  };
12247
12256
 
12248
- var defaultPlayIcon = _react["default"].createElement("div", {
12257
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12249
12258
  style: styles.shadow,
12250
12259
  className: "react-player__shadow"
12251
- }, _react["default"].createElement("div", {
12260
+ }, /*#__PURE__*/_react["default"].createElement("div", {
12252
12261
  style: styles.playIcon,
12253
12262
  className: "react-player__play-icon"
12254
12263
  }));
12255
12264
 
12256
- return _react["default"].createElement("div", {
12265
+ return /*#__PURE__*/_react["default"].createElement("div", {
12257
12266
  style: styles.preview,
12258
12267
  className: "react-player__preview",
12259
12268
  onClick: onClick
@@ -12290,6 +12299,12 @@ var _Player = _interopRequireDefault(Player_1);
12290
12299
 
12291
12300
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12292
12301
 
12302
+ 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; } } }; }
12303
+
12304
+ 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); }
12305
+
12306
+ 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; }
12307
+
12293
12308
  var PRELOAD_PLAYERS = [{
12294
12309
  Player: YouTube_1.YouTube,
12295
12310
  configKey: 'youtube',
@@ -12310,16 +12325,16 @@ var PRELOAD_PLAYERS = [{
12310
12325
 
12311
12326
  function renderPreloadPlayers(url, controls, config) {
12312
12327
  var players = [];
12313
- var _iteratorNormalCompletion = true;
12314
- var _didIteratorError = false;
12315
- var _iteratorError = undefined;
12328
+
12329
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12330
+ _step;
12316
12331
 
12317
12332
  try {
12318
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12333
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12319
12334
  var player = _step.value;
12320
12335
 
12321
12336
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12322
- players.push(_react["default"].createElement(_Player["default"], {
12337
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12323
12338
  key: player.Player.displayName,
12324
12339
  activePlayer: player.Player,
12325
12340
  url: player.url,
@@ -12331,18 +12346,9 @@ function renderPreloadPlayers(url, controls, config) {
12331
12346
  }
12332
12347
  }
12333
12348
  } catch (err) {
12334
- _didIteratorError = true;
12335
- _iteratorError = err;
12349
+ _iterator.e(err);
12336
12350
  } finally {
12337
- try {
12338
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12339
- _iterator["return"]();
12340
- }
12341
- } finally {
12342
- if (_didIteratorError) {
12343
- throw _iteratorError;
12344
- }
12345
- }
12351
+ _iterator.f();
12346
12352
  }
12347
12353
 
12348
12354
  return players;
@@ -12466,13 +12472,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12466
12472
 
12467
12473
  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); }
12468
12474
 
12469
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12475
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12476
+
12477
+ 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."); }
12470
12478
 
12471
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12479
+ 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); }
12472
12480
 
12473
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12481
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12474
12482
 
12475
- 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; } }
12483
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12484
+
12485
+ 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; }
12476
12486
 
12477
12487
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12478
12488
 
@@ -12480,12 +12490,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12480
12490
 
12481
12491
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12482
12492
 
12483
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12493
+ 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); }; }
12484
12494
 
12485
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12495
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12486
12496
 
12487
12497
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12488
12498
 
12499
+ 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; } }
12500
+
12501
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12502
+
12489
12503
  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); }
12490
12504
 
12491
12505
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12495,14 +12509,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12495
12509
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12496
12510
  var customPlayers = [];
12497
12511
 
12498
- var ReactPlayer =
12499
- /*#__PURE__*/
12500
- function (_Component) {
12512
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
12501
12513
  _inherits(ReactPlayer, _Component);
12502
12514
 
12503
- function ReactPlayer() {
12504
- var _getPrototypeOf2;
12515
+ var _super = _createSuper(ReactPlayer);
12505
12516
 
12517
+ function ReactPlayer() {
12506
12518
  var _this;
12507
12519
 
12508
12520
  _classCallCheck(this, ReactPlayer);
@@ -12511,7 +12523,7 @@ function (_Component) {
12511
12523
  args[_key] = arguments[_key];
12512
12524
  }
12513
12525
 
12514
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12526
+ _this = _super.call.apply(_super, [this].concat(args));
12515
12527
 
12516
12528
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12517
12529
 
@@ -12622,7 +12634,7 @@ function (_Component) {
12622
12634
  key: "renderActivePlayer",
12623
12635
  value: function renderActivePlayer(url, activePlayer) {
12624
12636
  if (!url) return null;
12625
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12637
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12626
12638
  key: activePlayer.displayName,
12627
12639
  ref: this.activePlayerRef,
12628
12640
  config: this.config,
@@ -12659,14 +12671,14 @@ function (_Component) {
12659
12671
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12660
12672
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12661
12673
 
12662
- var preview = _react["default"].createElement(_Preview["default"], {
12674
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12663
12675
  url: url,
12664
12676
  light: light,
12665
12677
  playIcon: playIcon,
12666
12678
  onClick: this.handleClickPreview
12667
12679
  });
12668
12680
 
12669
- return _react["default"].createElement(Wrapper, _extends({
12681
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12670
12682
  ref: this.wrapperRef,
12671
12683
  style: _objectSpread({}, style, {
12672
12684
  width: width,
@@ -13279,7 +13291,7 @@ var Poll = function Poll(_ref) {
13279
13291
  );
13280
13292
  };
13281
13293
 
13282
- var numberOfPaginations = main.main_35 ? 4 : 10;
13294
+ var numberOfPaginations = main.main_38 ? 4 : 10;
13283
13295
 
13284
13296
  var Quiz = function Quiz(_ref) {
13285
13297
  var quizzes = _ref.quizzes,
@@ -13392,7 +13404,7 @@ var Quiz = function Quiz(_ref) {
13392
13404
  var renderPagination = function renderPagination() {
13393
13405
  return React__default.createElement(
13394
13406
  Pagination,
13395
- { className: 'p-0 m-0', size: main.main_35 && 'sm' },
13407
+ { className: 'p-0 m-0', size: main.main_38 && 'sm' },
13396
13408
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13397
13409
  return changePage('first');
13398
13410
  }, disabled: currentPage === 1 }),
@@ -13632,7 +13644,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
13632
13644
  };
13633
13645
 
13634
13646
  var Figure = dynamic(function () {
13635
- return Promise.resolve().then(function () { return require('./Figure-7277baf0.js'); });
13647
+ return Promise.resolve().then(function () { return require('./Figure-9e886c5b.js'); });
13636
13648
  }, { ssr: false });
13637
13649
 
13638
13650
  var ScrollToElement = function ScrollToElement(elementId) {
@@ -13903,7 +13915,7 @@ var Feature = function Feature(props) {
13903
13915
  };
13904
13916
  //image width
13905
13917
  var imageWidth = 900;
13906
- if (main.main_36) {
13918
+ if (main.main_39) {
13907
13919
  imageWidth = 450;
13908
13920
  }
13909
13921
 
@@ -14283,16 +14295,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14283
14295
  _ref$className = _ref.className,
14284
14296
  className = _ref$className === undefined ? '' : _ref$className;
14285
14297
 
14286
- /*
14287
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14288
- example:
14289
- <RelatedTopicDropdown
14290
- page='/clinical'
14291
- exclude="clinical"
14292
- className='mb-3'
14293
- parentTaxonomy={props.parentTaxonomy}
14294
- subTaxonomies={props.subTaxonomies}
14295
- />
14298
+ /*
14299
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14300
+ example:
14301
+ <RelatedTopicDropdown
14302
+ page='/clinical'
14303
+ exclude="clinical"
14304
+ className='mb-3'
14305
+ parentTaxonomy={props.parentTaxonomy}
14306
+ subTaxonomies={props.subTaxonomies}
14307
+ />
14296
14308
  */
14297
14309
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14298
14310
  if (parentTaxonomy.identifier == exclude) {
@@ -14421,7 +14433,7 @@ var dP = _toObject._objectDp.f;
14421
14433
 
14422
14434
 
14423
14435
 
14424
- var fastKey = _typeof$1._meta.fastKey;
14436
+ var fastKey = _typeof$2._meta.fastKey;
14425
14437
 
14426
14438
  var SIZE = _toObject._descriptors ? '_s' : 'size';
14427
14439
 
@@ -14559,10 +14571,10 @@ var SPECIES = web_dom_iterable._wks('species');
14559
14571
 
14560
14572
  var _arraySpeciesConstructor = function (original) {
14561
14573
  var C;
14562
- if (_typeof$1._isArray(original)) {
14574
+ if (_typeof$2._isArray(original)) {
14563
14575
  C = original.constructor;
14564
14576
  // cross-realm fallback
14565
- if (typeof C == 'function' && (C === Array || _typeof$1._isArray(C.prototype))) C = undefined;
14577
+ if (typeof C == 'function' && (C === Array || _typeof$2._isArray(C.prototype))) C = undefined;
14566
14578
  if (_toObject._isObject(C)) {
14567
14579
  C = C[SPECIES];
14568
14580
  if (C === null) C = undefined;
@@ -14638,7 +14650,7 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
14638
14650
  // create collection constructor
14639
14651
  C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
14640
14652
  promise._redefineAll(C.prototype, methods);
14641
- _typeof$1._meta.NEED = true;
14653
+ _typeof$2._meta.NEED = true;
14642
14654
  } else {
14643
14655
  C = wrapper(function (target, iterable) {
14644
14656
  promise._anInstance(target, C, NAME, '_c');
@@ -14758,48 +14770,48 @@ module.exports = { "default": set, __esModule: true };
14758
14770
 
14759
14771
  var _Set = _commonjsHelpers.unwrapExports(set$1);
14760
14772
 
14761
- /* usage & query
14762
- const Publication = (props) => {
14763
- const { cache, pub, year } = props
14764
-
14765
- const targeting = {
14766
- content_placement: [`/journals/${pub.identifier.current}`],
14767
- document_url: [`/journals/${pub.identifier.current}`],
14768
- }
14769
-
14770
- return (
14771
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14772
- <PublicationLanding publication={pub} year={year} href={'journals'} />
14773
- </Shell>
14774
- )
14775
- }
14776
-
14777
- Publication.getInitialProps = async (ctx) => {
14778
- const { query } = ctx
14779
- const {
14780
- query: { year },
14781
- } = ctx
14782
- const pub = await client.fetch(
14783
- `*[_type == 'publication'
14784
- && identifier.current == $publication][0] {
14785
- ...,
14786
- 'issues': *[_type == 'publication'
14787
- && is_visible
14788
- && references(^._id)] | order(year desc, month desc)
14789
- }`,
14790
- query
14791
- )
14792
- const builder = imageUrlBuilder(client)
14793
- const urlFor = (source) => {
14794
- return builder.image(source)
14795
- }
14796
- pub.issues.map((issue) => {
14797
- issue.thumbnail = urlFor(issue.thumbnail).url()
14798
- })
14799
- return { pub, year }
14800
- }
14801
-
14802
- export default Publication
14773
+ /* usage & query
14774
+ const Publication = (props) => {
14775
+ const { cache, pub, year } = props
14776
+
14777
+ const targeting = {
14778
+ content_placement: [`/journals/${pub.identifier.current}`],
14779
+ document_url: [`/journals/${pub.identifier.current}`],
14780
+ }
14781
+
14782
+ return (
14783
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14784
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
14785
+ </Shell>
14786
+ )
14787
+ }
14788
+
14789
+ Publication.getInitialProps = async (ctx) => {
14790
+ const { query } = ctx
14791
+ const {
14792
+ query: { year },
14793
+ } = ctx
14794
+ const pub = await client.fetch(
14795
+ `*[_type == 'publication'
14796
+ && identifier.current == $publication][0] {
14797
+ ...,
14798
+ 'issues': *[_type == 'publication'
14799
+ && is_visible
14800
+ && references(^._id)] | order(year desc, month desc)
14801
+ }`,
14802
+ query
14803
+ )
14804
+ const builder = imageUrlBuilder(client)
14805
+ const urlFor = (source) => {
14806
+ return builder.image(source)
14807
+ }
14808
+ pub.issues.map((issue) => {
14809
+ issue.thumbnail = urlFor(issue.thumbnail).url()
14810
+ })
14811
+ return { pub, year }
14812
+ }
14813
+
14814
+ export default Publication
14803
14815
  */
14804
14816
 
14805
14817
  var PublicationLanding = function PublicationLanding(props) {
@@ -15766,34 +15778,34 @@ var GridHero = function GridHero(props) {
15766
15778
  );
15767
15779
  };
15768
15780
 
15769
- /*
15770
- Sample query
15771
- let references = ''
15772
- if(article.taxonomyMapping.length > 0){
15773
- article.taxonomyMapping.forEach((ref, index) => {
15774
- references = references + `references('${ref._ref}') `
15775
- if(index+1 !== article.taxonomyMapping.length){
15776
- references = references + ` && `
15777
- }
15778
- })
15779
- }
15780
-
15781
- 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] {
15782
- ...,
15783
- title,
15784
- summary,
15785
- thumbnail,
15786
- url,
15787
- published,
15788
- authorMapping[]->,
15789
- contentCategory->
15790
- }`
15791
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15792
-
15793
- Sample usage
15794
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15795
-
15796
-
15781
+ /*
15782
+ Sample query
15783
+ let references = ''
15784
+ if(article.taxonomyMapping.length > 0){
15785
+ article.taxonomyMapping.forEach((ref, index) => {
15786
+ references = references + `references('${ref._ref}') `
15787
+ if(index+1 !== article.taxonomyMapping.length){
15788
+ references = references + ` && `
15789
+ }
15790
+ })
15791
+ }
15792
+
15793
+ 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] {
15794
+ ...,
15795
+ title,
15796
+ summary,
15797
+ thumbnail,
15798
+ url,
15799
+ published,
15800
+ authorMapping[]->,
15801
+ contentCategory->
15802
+ }`
15803
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15804
+
15805
+ Sample usage
15806
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15807
+
15808
+
15797
15809
  */
15798
15810
  var RelatedContent = function RelatedContent(props) {
15799
15811
  var client = props.client,
@@ -15860,21 +15872,21 @@ var RelatedContent = function RelatedContent(props) {
15860
15872
  );
15861
15873
  };
15862
15874
 
15863
- /*
15864
- Example usage - targetedonc.com/latest-conference
15865
- 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] {
15866
- ...,
15867
- title,
15868
- summary,
15869
- thumbnail,
15870
- url,
15871
- published,
15872
- documentGroup->,
15873
- contentCategory->,
15874
- 'pageNumber': ${currentPage}
15875
- }`
15876
-
15877
- const posts = await client.fetch(query, params)
15875
+ /*
15876
+ Example usage - targetedonc.com/latest-conference
15877
+ 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] {
15878
+ ...,
15879
+ title,
15880
+ summary,
15881
+ thumbnail,
15882
+ url,
15883
+ published,
15884
+ documentGroup->,
15885
+ contentCategory->,
15886
+ 'pageNumber': ${currentPage}
15887
+ }`
15888
+
15889
+ const posts = await client.fetch(query, params)
15878
15890
  */
15879
15891
 
15880
15892
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -16733,21 +16745,19 @@ var InscreenSensor = function (_React$Component) {
16733
16745
  var _this$props$offSetTop = _this.props.offSetTop,
16734
16746
  offSetTop = _this$props$offSetTop === undefined ? 0 : _this$props$offSetTop;
16735
16747
  var top = rect.top,
16736
- height = rect.height;
16748
+ bottom = rect.bottom;
16737
16749
 
16738
- var bottom = top + height;
16739
16750
  var viewHeight = window.innerHeight;
16751
+ var wrpElem = document.getElementsByClassName('inscreen-wrapper');
16740
16752
 
16741
- if (bottom < offSetTop) {
16742
- return false;
16743
- } else if (top > offSetTop && bottom <= viewHeight) {
16744
- return true;
16745
- } else if (top < offSetTop && top <= viewHeight && bottom > viewHeight) {
16746
- return 'top';
16747
- } else if (top < offSetTop && bottom + offSetTop >= viewHeight) {
16753
+ if (top > 0 && top <= offSetTop) {
16754
+ if (wrpElem.length > 1 && top <= viewHeight && bottom > viewHeight) {
16755
+ return 'top';
16756
+ } else if (wrpElem.length > 1 && bottom < viewHeight) {
16757
+ return 'small-top';
16758
+ }
16759
+ } else if (wrpElem.length > 1 && top < offSetTop && bottom + offSetTop >= viewHeight) {
16748
16760
  return 'bottom';
16749
- } else {
16750
- return false;
16751
16761
  }
16752
16762
  };
16753
16763
 
@@ -16775,11 +16785,13 @@ var InscreenSensor = function (_React$Component) {
16775
16785
  _props$className = _props.className,
16776
16786
  className = _props$className === undefined ? '' : _props$className,
16777
16787
  _props$style = _props.style,
16778
- style = _props$style === undefined ? {} : _props$style;
16788
+ style = _props$style === undefined ? {} : _props$style,
16789
+ _props$id = _props.id,
16790
+ id = _props$id === undefined ? '' : _props$id;
16779
16791
 
16780
16792
  return React__default.createElement(
16781
16793
  'div',
16782
- { ref: this.wraperRef, className: className, style: style },
16794
+ { ref: this.wraperRef, className: className, style: style, id: id },
16783
16795
  this.props.children
16784
16796
  );
16785
16797
  }
@@ -16878,7 +16890,9 @@ var Article = function Article(props) {
16878
16890
  changeUrl = props.changeUrl,
16879
16891
  shareOptions = props.shareOptions,
16880
16892
  cpModificationRequired = props.cpModificationRequired,
16881
- authorPrefix = props.authorPrefix;
16893
+ authorPrefix = props.authorPrefix,
16894
+ queueData = props.queueData,
16895
+ lastUrl = props.lastUrl;
16882
16896
 
16883
16897
  var _useState = React.useState(null),
16884
16898
  _useState2 = slicedToArray._slicedToArray(_useState, 2),
@@ -17162,29 +17176,30 @@ var Article = function Article(props) {
17162
17176
  shareImage: shareImage,
17163
17177
  shareVia: props.Settings.title
17164
17178
  };
17165
-
17166
17179
  return React__default.createElement(
17167
17180
  React__default.Fragment,
17168
17181
  null,
17169
17182
  React__default.createElement(
17170
17183
  InscreenSensor,
17171
17184
  {
17172
- offSetTop: 45,
17185
+ offSetTop: 120,
17186
+ className: 'inscreen-wrapper',
17187
+ id: 'article-' + title,
17173
17188
  onChange: function onChange(visible) {
17174
- if (visible !== false) {
17189
+ if (visible === 'top' || visible === 'bottom' || visible === 'small-top') {
17175
17190
  changeUrl(url, visible, meta);
17176
17191
  }
17177
17192
  } },
17178
17193
  React__default.createElement(
17179
17194
  'div',
17180
17195
  null,
17181
- React__default.createElement(
17196
+ queueData && queueData.length === 1 && React__default.createElement(
17182
17197
  Head,
17183
17198
  null,
17184
17199
  React__default.createElement(
17185
17200
  'title',
17186
17201
  { key: 'title' },
17187
- shareTitle + ' | ' + props.cache.siteSettingCache.name
17202
+ '' + shareTitle
17188
17203
  ),
17189
17204
  React__default.createElement('meta', { name: 'description', key: 'description', content: shareSummary }),
17190
17205
  passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
@@ -17288,7 +17303,7 @@ var Article = function Article(props) {
17288
17303
  React__default.createElement('br', null),
17289
17304
  React__default.createElement('br', null)
17290
17305
  ),
17291
- main.main_36 && props.article.Ads.map(function (ad, index) {
17306
+ main.main_39 && props.article.Ads.map(function (ad, index) {
17292
17307
  if (index === 0) {
17293
17308
  return React__default.createElement(
17294
17309
  'div',
@@ -17313,7 +17328,7 @@ var Article = function Article(props) {
17313
17328
  renderIsiContent(props.article)
17314
17329
  )
17315
17330
  ),
17316
- main.main_36 && props.article.Ads.map(function (ad, index) {
17331
+ main.main_39 && props.article.Ads.map(function (ad, index) {
17317
17332
  if (index > 0) {
17318
17333
  return React__default.createElement(
17319
17334
  'div',
@@ -17430,7 +17445,7 @@ var ArticleQueue = function ArticleQueue(props) {
17430
17445
  setQueueData = _useState4[1];
17431
17446
 
17432
17447
  var refreshAD = function refreshAD(path) {
17433
- if (!main.main_36) {
17448
+ if (!main.main_39) {
17434
17449
  var activeArticle = queueData.find(function (item) {
17435
17450
  return item.url.current === path;
17436
17451
  });
@@ -17470,14 +17485,11 @@ var ArticleQueue = function ArticleQueue(props) {
17470
17485
 
17471
17486
  var scrollDirectionDetect = function scrollDirectionDetect(e) {
17472
17487
  var window = e.currentTarget;
17488
+
17473
17489
  if (preVscroll > window.scrollY) {
17474
- if (!isScrollDown) {
17475
- isScrollDown = true;
17476
- }
17490
+ isScrollDown = false;
17477
17491
  } else if (preVscroll < window.scrollY) {
17478
- if (isScrollDown) {
17479
- isScrollDown = false;
17480
- }
17492
+ isScrollDown = true;
17481
17493
  }
17482
17494
  preVscroll = window.scrollY;
17483
17495
  };
@@ -17518,21 +17530,32 @@ var ArticleQueue = function ArticleQueue(props) {
17518
17530
  };
17519
17531
 
17520
17532
  var changeUrl = function changeUrl(path, visibility, meta) {
17533
+ var currentPath = window && window.location && window.location.pathname ? window.location.pathname.replace('/view/', '') : '';
17521
17534
  var newPath = '/view/' + path;
17522
- if (!isScrollDown) {
17523
- if (visibility === 'top') {
17524
- // router.push('/view/[url]', newPath, { shallow: true })
17525
- window.history.pushState({ page: path }, path, newPath);
17526
- if (props.pageview) {
17527
- props.pageview(newPath);
17535
+ if (currentPath !== path) {
17536
+ if (isScrollDown) {
17537
+ if (visibility === 'top') {
17538
+ // router.push('/view/[url]', newPath, { shallow: true })
17539
+ window.history.pushState({ page: path }, meta.shareTitle, newPath);
17540
+ if (props.pageview) {
17541
+ props.pageview(newPath);
17542
+ }
17543
+ refreshAD(path);
17544
+ changeMeta(meta);
17545
+ }
17546
+ } else {
17547
+ if (visibility === 'bottom') {
17548
+ // router.push('/view/[url]', newPath, { shallow: true })
17549
+ window.history.pushState({ page: path }, meta.shareTitle, newPath);
17550
+ if (props.pageview) {
17551
+ props.pageview(newPath);
17552
+ }
17553
+ refreshAD(path);
17554
+ changeMeta(meta);
17528
17555
  }
17529
- refreshAD(path);
17530
- changeMeta(meta);
17531
17556
  }
17532
- } else {
17533
- if (visibility === 'bottom') {
17534
- // router.push('/view/[url]', newPath, { shallow: true })
17535
- window.history.pushState({ page: path }, path, newPath);
17557
+ if (visibility === 'small-top') {
17558
+ window.history.pushState({ page: path }, meta.shareTitle, newPath);
17536
17559
  if (props.pageview) {
17537
17560
  props.pageview(newPath);
17538
17561
  }
@@ -17552,33 +17575,41 @@ var ArticleQueue = function ArticleQueue(props) {
17552
17575
  if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
17553
17576
  article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
17554
17577
  }
17555
- return React__default.createElement(Article, _extends$2._extends({ key: index }, props, { changeUrl: changeUrl, authorPrfix: authorPrefix, article: article, cpModificationRequired: cpModificationRequired }));
17578
+ return React__default.createElement(Article, _extends$2._extends({
17579
+ key: index
17580
+ }, props, {
17581
+ changeUrl: changeUrl,
17582
+ authorPrfix: authorPrefix,
17583
+ article: article,
17584
+ cpModificationRequired: cpModificationRequired,
17585
+ queueData: queueData
17586
+ }));
17556
17587
  })
17557
17588
  );
17558
17589
  };
17559
17590
 
17560
17591
  var KMTracker = function KMTracker(props) {
17561
- var id = props.id;
17592
+ var id = props.id;
17562
17593
 
17563
- if (document && id) {
17594
+ if (document && id) {
17564
17595
  (function () {
17565
- var ecnJquery = document.createElement('script');
17596
+ var ecnJquery = document.createElement('script');
17566
17597
 
17567
- ecnJquery.type = 'text/javascript';
17568
- ecnJquery.async = true;
17569
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17598
+ ecnJquery.type = 'text/javascript';
17599
+ ecnJquery.async = true;
17600
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17570
17601
 
17571
- var ecnScript = document.createElement('script');
17602
+ var ecnScript = document.createElement('script');
17572
17603
 
17573
- ecnScript.type = 'text/javascript';
17574
- ecnScript.async = true;
17575
- ecnScript.id = 'km-tracker';
17576
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17604
+ ecnScript.type = 'text/javascript';
17605
+ ecnScript.async = true;
17606
+ ecnScript.id = 'km-tracker';
17607
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17577
17608
 
17578
- document.head.appendChild(ecnJquery);
17579
- document.head.appendChild(ecnScript);
17580
- })();
17581
- }
17609
+ document.head.appendChild(ecnJquery);
17610
+ document.head.appendChild(ecnScript);
17611
+ })();
17612
+ }
17582
17613
  };
17583
17614
 
17584
17615
  var getSeriesDetail = function getSeriesDetail(article, currentSeries) {
@@ -19640,9 +19671,6 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
19640
19671
  if (value != null) {
19641
19672
  if ($gOPD && (i + 1) >= parts.length) {
19642
19673
  var desc = $gOPD(value, parts[i]);
19643
- if (!allowMissing && !(parts[i] in value)) {
19644
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
19645
- }
19646
19674
  value = desc ? (desc.get || desc.value) : value[parts[i]];
19647
19675
  } else {
19648
19676
  value = value[parts[i]];
@@ -19675,16 +19703,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
19675
19703
  return intrinsic;
19676
19704
  };
19677
19705
 
19678
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
19679
-
19680
- if ($defineProperty) {
19681
- try {
19682
- $defineProperty({}, 'a', { value: 1 });
19683
- } catch (e) {
19684
- // IE 8 has a broken defineProperty
19685
- $defineProperty = null;
19686
- }
19687
- }
19706
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%');
19688
19707
 
19689
19708
 
19690
19709
 
@@ -19827,105 +19846,113 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
19827
19846
  return obj;
19828
19847
  };
19829
19848
 
19830
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19831
- if ($gOPD$1) {
19832
- try {
19833
- $gOPD$1([], 'length');
19834
- } catch (e) {
19835
- // IE 8 has a broken gOPD
19836
- $gOPD$1 = null;
19837
- }
19838
- }
19849
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
19839
19850
 
19840
- var getOwnPropertyDescriptor = $gOPD$1;
19851
+ var IsDataDescriptor = function IsDataDescriptor(Desc) {
19852
+ if (typeof Desc === 'undefined') {
19853
+ return false;
19854
+ }
19841
19855
 
19842
- var $Array = GetIntrinsic('%Array%');
19856
+ assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
19843
19857
 
19844
- // eslint-disable-next-line global-require
19845
- var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
19858
+ if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
19859
+ return false;
19860
+ }
19846
19861
 
19847
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
19862
+ return true;
19863
+ };
19848
19864
 
19849
- var IsArray = $Array.isArray || function IsArray(argument) {
19850
- return toStr$4(argument) === '[object Array]';
19865
+ var isPrimitive$1 = function isPrimitive(value) {
19866
+ return value === null || (typeof value !== 'function' && typeof value !== 'object');
19851
19867
  };
19852
19868
 
19869
+ var $Object = GetIntrinsic('%Object%');
19870
+
19871
+
19872
+
19873
+ var $preventExtensions = $Object.preventExtensions;
19874
+ var $isExtensible = $Object.isExtensible;
19875
+
19876
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
19877
+
19878
+ var IsExtensible = $preventExtensions
19879
+ ? function IsExtensible(obj) {
19880
+ return !isPrimitive$1(obj) && $isExtensible(obj);
19881
+ }
19882
+ : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
19883
+ return true;
19884
+ };
19885
+
19853
19886
  // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19854
19887
 
19855
19888
  var IsPropertyKey = function IsPropertyKey(argument) {
19856
19889
  return typeof argument === 'string' || typeof argument === 'symbol';
19857
19890
  };
19858
19891
 
19859
- var regexExec = RegExp.prototype.exec;
19860
- var gOPD = Object.getOwnPropertyDescriptor;
19892
+ var _isNaN = Number.isNaN || function isNaN(a) {
19893
+ return a !== a;
19894
+ };
19861
19895
 
19862
- var tryRegexExecCall = function tryRegexExec(value) {
19863
- try {
19864
- var lastIndex = value.lastIndex;
19865
- value.lastIndex = 0; // eslint-disable-line no-param-reassign
19896
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
19866
19897
 
19867
- regexExec.call(value);
19898
+ var SameValue = function SameValue(x, y) {
19899
+ if (x === y) { // 0 === -0, but they are not identical.
19900
+ if (x === 0) { return 1 / x === 1 / y; }
19868
19901
  return true;
19869
- } catch (e) {
19870
- return false;
19871
- } finally {
19872
- value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
19873
19902
  }
19903
+ return _isNaN(x) && _isNaN(y);
19874
19904
  };
19875
- var toStr$5 = Object.prototype.toString;
19876
- var regexClass = '[object RegExp]';
19877
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19878
19905
 
19879
- var isRegex = function isRegex(value) {
19880
- if (!value || typeof value !== 'object') {
19881
- return false;
19882
- }
19883
- if (!hasToStringTag) {
19884
- return toStr$5.call(value) === regexClass;
19885
- }
19906
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19907
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
19886
19908
 
19887
- var descriptor = gOPD(value, 'lastIndex');
19888
- var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
19889
- if (!hasLastIndexDataProperty) {
19890
- return false;
19891
- }
19892
19909
 
19893
- return tryRegexExecCall(value);
19894
- };
19895
19910
 
19896
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
19897
19911
 
19898
- var ToBoolean = function ToBoolean(value) { return !!value; };
19899
19912
 
19900
- var $match = GetIntrinsic('%Symbol.match%', true);
19901
19913
 
19902
19914
 
19903
19915
 
19904
19916
 
19905
19917
 
19906
- // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
19918
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
19907
19919
 
19908
- var IsRegExp = function IsRegExp(argument) {
19909
- if (!argument || typeof argument !== 'object') {
19910
- return false;
19920
+ var CreateDataProperty = function CreateDataProperty(O, P, V) {
19921
+ if (Type$1(O) !== 'Object') {
19922
+ throw new $TypeError$2('Assertion failed: Type(O) is not Object');
19911
19923
  }
19912
- if ($match) {
19913
- var isRegExp = argument[$match];
19914
- if (typeof isRegExp !== 'undefined') {
19915
- return ToBoolean(isRegExp);
19916
- }
19924
+ if (!IsPropertyKey(P)) {
19925
+ throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
19917
19926
  }
19918
- return isRegex(argument);
19919
- };
19920
-
19921
- var fnToStr = Function.prototype.toString;
19922
-
19923
- var constructorRegex = /^\s*class\b/;
19924
- var isES6ClassFn = function isES6ClassFunction(value) {
19925
- try {
19926
- var fnStr = fnToStr.call(value);
19927
- return constructorRegex.test(fnStr);
19928
- } catch (e) {
19927
+ var oldDesc = $gOPD$1(O, P);
19928
+ var extensible = oldDesc || IsExtensible(O);
19929
+ var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
19930
+ if (immutable || !extensible) {
19931
+ return false;
19932
+ }
19933
+ return DefineOwnProperty(
19934
+ IsDataDescriptor,
19935
+ SameValue,
19936
+ FromPropertyDescriptor,
19937
+ O,
19938
+ P,
19939
+ {
19940
+ '[[Configurable]]': true,
19941
+ '[[Enumerable]]': true,
19942
+ '[[Value]]': V,
19943
+ '[[Writable]]': true
19944
+ }
19945
+ );
19946
+ };
19947
+
19948
+ var fnToStr = Function.prototype.toString;
19949
+
19950
+ var constructorRegex = /^\s*class\b/;
19951
+ var isES6ClassFn = function isES6ClassFunction(value) {
19952
+ try {
19953
+ var fnStr = fnToStr.call(value);
19954
+ return constructorRegex.test(fnStr);
19955
+ } catch (e) {
19929
19956
  return false; // not a function
19930
19957
  }
19931
19958
  };
@@ -19939,18 +19966,18 @@ var tryFunctionObject = function tryFunctionToStr(value) {
19939
19966
  return false;
19940
19967
  }
19941
19968
  };
19942
- var toStr$6 = Object.prototype.toString;
19969
+ var toStr$4 = Object.prototype.toString;
19943
19970
  var fnClass = '[object Function]';
19944
19971
  var genClass = '[object GeneratorFunction]';
19945
- var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19972
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19946
19973
 
19947
19974
  var isCallable = function isCallable(value) {
19948
19975
  if (!value) { return false; }
19949
19976
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19950
19977
  if (typeof value === 'function' && !value.prototype) { return true; }
19951
- if (hasToStringTag$1) { return tryFunctionObject(value); }
19978
+ if (hasToStringTag) { return tryFunctionObject(value); }
19952
19979
  if (isES6ClassFn(value)) { return false; }
19953
- var strClass = toStr$6.call(value);
19980
+ var strClass = toStr$4.call(value);
19954
19981
  return strClass === fnClass || strClass === genClass;
19955
19982
  };
19956
19983
 
@@ -19958,193 +19985,13 @@ var isCallable = function isCallable(value) {
19958
19985
 
19959
19986
  var IsCallable = isCallable;
19960
19987
 
19961
- var $TypeError$2 = GetIntrinsic('%TypeError%');
19962
-
19963
-
19964
-
19965
-
19966
-
19967
- // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
19968
-
19969
- var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
19970
- if (Type$1(Obj) !== 'Object') {
19971
- throw new $TypeError$2('ToPropertyDescriptor requires an object');
19972
- }
19973
-
19974
- var desc = {};
19975
- if (src$1(Obj, 'enumerable')) {
19976
- desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
19977
- }
19978
- if (src$1(Obj, 'configurable')) {
19979
- desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
19980
- }
19981
- if (src$1(Obj, 'value')) {
19982
- desc['[[Value]]'] = Obj.value;
19983
- }
19984
- if (src$1(Obj, 'writable')) {
19985
- desc['[[Writable]]'] = ToBoolean(Obj.writable);
19986
- }
19987
- if (src$1(Obj, 'get')) {
19988
- var getter = Obj.get;
19989
- if (typeof getter !== 'undefined' && !IsCallable(getter)) {
19990
- throw new TypeError('getter must be a function');
19991
- }
19992
- desc['[[Get]]'] = getter;
19993
- }
19994
- if (src$1(Obj, 'set')) {
19995
- var setter = Obj.set;
19996
- if (typeof setter !== 'undefined' && !IsCallable(setter)) {
19997
- throw new $TypeError$2('setter must be a function');
19998
- }
19999
- desc['[[Set]]'] = setter;
20000
- }
20001
-
20002
- if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
20003
- throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
20004
- }
20005
- return desc;
20006
- };
20007
-
20008
19988
  var $TypeError$3 = GetIntrinsic('%TypeError%');
20009
19989
 
20010
-
20011
-
20012
- var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
20013
-
20014
-
20015
-
20016
-
20017
-
20018
-
20019
-
20020
-
20021
-
20022
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
20023
-
20024
- var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
20025
- if (Type$1(O) !== 'Object') {
20026
- throw new $TypeError$3('Assertion failed: O must be an Object');
20027
- }
20028
- if (!IsPropertyKey(P)) {
20029
- throw new $TypeError$3('Assertion failed: P must be a Property Key');
20030
- }
20031
- if (!src$1(O, P)) {
20032
- return void 0;
20033
- }
20034
- if (!getOwnPropertyDescriptor) {
20035
- // ES3 / IE 8 fallback
20036
- var arrayLength = IsArray(O) && P === 'length';
20037
- var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
20038
- return {
20039
- '[[Configurable]]': !(arrayLength || regexLastIndex),
20040
- '[[Enumerable]]': $isEnumerable$1(O, P),
20041
- '[[Value]]': O[P],
20042
- '[[Writable]]': true
20043
- };
20044
- }
20045
- return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
20046
- };
20047
-
20048
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
20049
-
20050
- var IsDataDescriptor = function IsDataDescriptor(Desc) {
20051
- if (typeof Desc === 'undefined') {
20052
- return false;
20053
- }
20054
-
20055
- assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
20056
-
20057
- if (!src$1(Desc, '[[Value]]') && !src$1(Desc, '[[Writable]]')) {
20058
- return false;
20059
- }
20060
-
20061
- return true;
20062
- };
20063
-
20064
- var isPrimitive$1 = function isPrimitive(value) {
20065
- return value === null || (typeof value !== 'function' && typeof value !== 'object');
20066
- };
20067
-
20068
- var $Object = GetIntrinsic('%Object%');
20069
-
20070
-
20071
-
20072
- var $preventExtensions = $Object.preventExtensions;
20073
- var $isExtensible = $Object.isExtensible;
20074
-
20075
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
20076
-
20077
- var IsExtensible = $preventExtensions
20078
- ? function IsExtensible(obj) {
20079
- return !isPrimitive$1(obj) && $isExtensible(obj);
20080
- }
20081
- : function IsExtensible(obj) {
20082
- return !isPrimitive$1(obj);
20083
- };
20084
-
20085
- var _isNaN = Number.isNaN || function isNaN(a) {
20086
- return a !== a;
20087
- };
20088
-
20089
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
20090
-
20091
- var SameValue = function SameValue(x, y) {
20092
- if (x === y) { // 0 === -0, but they are not identical.
20093
- if (x === 0) { return 1 / x === 1 / y; }
20094
- return true;
20095
- }
20096
- return _isNaN(x) && _isNaN(y);
20097
- };
20098
-
20099
- var $TypeError$4 = GetIntrinsic('%TypeError%');
20100
-
20101
-
20102
-
20103
-
20104
-
20105
-
20106
-
20107
-
20108
-
20109
-
20110
-
20111
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
20112
-
20113
- var CreateDataProperty = function CreateDataProperty(O, P, V) {
20114
- if (Type$1(O) !== 'Object') {
20115
- throw new $TypeError$4('Assertion failed: Type(O) is not Object');
20116
- }
20117
- if (!IsPropertyKey(P)) {
20118
- throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
20119
- }
20120
- var oldDesc = OrdinaryGetOwnProperty(O, P);
20121
- var extensible = oldDesc || IsExtensible(O);
20122
- var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
20123
- if (immutable || !extensible) {
20124
- return false;
20125
- }
20126
- return DefineOwnProperty(
20127
- IsDataDescriptor,
20128
- SameValue,
20129
- FromPropertyDescriptor,
20130
- O,
20131
- P,
20132
- {
20133
- '[[Configurable]]': true,
20134
- '[[Enumerable]]': true,
20135
- '[[Value]]': V,
20136
- '[[Writable]]': true
20137
- }
20138
- );
20139
- };
20140
-
20141
- var $TypeError$5 = GetIntrinsic('%TypeError%');
20142
-
20143
19990
  // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
20144
19991
 
20145
19992
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
20146
19993
  if (value == null) {
20147
- throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
19994
+ throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
20148
19995
  }
20149
19996
  return value;
20150
19997
  };
@@ -20215,6 +20062,241 @@ defineProperties_1(implementation$2, {
20215
20062
 
20216
20063
  var object_getownpropertydescriptors = implementation$2;
20217
20064
 
20065
+ /* globals
20066
+ Atomics,
20067
+ SharedArrayBuffer,
20068
+ */
20069
+
20070
+ var undefined$2;
20071
+
20072
+ var $TypeError$4 = TypeError;
20073
+
20074
+ var $gOPD$3 = Object.getOwnPropertyDescriptor;
20075
+ if ($gOPD$3) {
20076
+ try {
20077
+ $gOPD$3({}, '');
20078
+ } catch (e) {
20079
+ $gOPD$3 = null; // this is IE 8, which has a broken gOPD
20080
+ }
20081
+ }
20082
+
20083
+ var throwTypeError$1 = function () { throw new $TypeError$4(); };
20084
+ var ThrowTypeError$1 = $gOPD$3
20085
+ ? (function () {
20086
+ try {
20087
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
20088
+ arguments.callee; // IE 8 does not throw here
20089
+ return throwTypeError$1;
20090
+ } catch (calleeThrows) {
20091
+ try {
20092
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
20093
+ return $gOPD$3(arguments, 'callee').get;
20094
+ } catch (gOPDthrows) {
20095
+ return throwTypeError$1;
20096
+ }
20097
+ }
20098
+ }())
20099
+ : throwTypeError$1;
20100
+
20101
+ var hasSymbols$3 = hasSymbols$1();
20102
+
20103
+ var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
20104
+ var generatorFunction$1 = undefined$2;
20105
+ var asyncFunction$1 = undefined$2;
20106
+ var asyncGenFunction$1 = undefined$2;
20107
+
20108
+ var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
20109
+
20110
+ var INTRINSICS$1 = {
20111
+ '%Array%': Array,
20112
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
20113
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
20114
+ '%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
20115
+ '%ArrayPrototype%': Array.prototype,
20116
+ '%ArrayProto_entries%': Array.prototype.entries,
20117
+ '%ArrayProto_forEach%': Array.prototype.forEach,
20118
+ '%ArrayProto_keys%': Array.prototype.keys,
20119
+ '%ArrayProto_values%': Array.prototype.values,
20120
+ '%AsyncFromSyncIteratorPrototype%': undefined$2,
20121
+ '%AsyncFunction%': asyncFunction$1,
20122
+ '%AsyncFunctionPrototype%': undefined$2,
20123
+ '%AsyncGenerator%': undefined$2,
20124
+ '%AsyncGeneratorFunction%': asyncGenFunction$1,
20125
+ '%AsyncGeneratorPrototype%': undefined$2,
20126
+ '%AsyncIteratorPrototype%': undefined$2,
20127
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
20128
+ '%Boolean%': Boolean,
20129
+ '%BooleanPrototype%': Boolean.prototype,
20130
+ '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
20131
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
20132
+ '%Date%': Date,
20133
+ '%DatePrototype%': Date.prototype,
20134
+ '%decodeURI%': decodeURI,
20135
+ '%decodeURIComponent%': decodeURIComponent,
20136
+ '%encodeURI%': encodeURI,
20137
+ '%encodeURIComponent%': encodeURIComponent,
20138
+ '%Error%': Error,
20139
+ '%ErrorPrototype%': Error.prototype,
20140
+ '%eval%': eval, // eslint-disable-line no-eval
20141
+ '%EvalError%': EvalError,
20142
+ '%EvalErrorPrototype%': EvalError.prototype,
20143
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
20144
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
20145
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
20146
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
20147
+ '%Function%': Function,
20148
+ '%FunctionPrototype%': Function.prototype,
20149
+ '%Generator%': undefined$2,
20150
+ '%GeneratorFunction%': generatorFunction$1,
20151
+ '%GeneratorPrototype%': undefined$2,
20152
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
20153
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20154
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
20155
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20156
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
20157
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
20158
+ '%isFinite%': isFinite,
20159
+ '%isNaN%': isNaN,
20160
+ '%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
20161
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
20162
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
20163
+ '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
20164
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
20165
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
20166
+ '%Math%': Math,
20167
+ '%Number%': Number,
20168
+ '%NumberPrototype%': Number.prototype,
20169
+ '%Object%': Object,
20170
+ '%ObjectPrototype%': Object.prototype,
20171
+ '%ObjProto_toString%': Object.prototype.toString,
20172
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
20173
+ '%parseFloat%': parseFloat,
20174
+ '%parseInt%': parseInt,
20175
+ '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
20176
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
20177
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
20178
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
20179
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
20180
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
20181
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
20182
+ '%RangeError%': RangeError,
20183
+ '%RangeErrorPrototype%': RangeError.prototype,
20184
+ '%ReferenceError%': ReferenceError,
20185
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
20186
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
20187
+ '%RegExp%': RegExp,
20188
+ '%RegExpPrototype%': RegExp.prototype,
20189
+ '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
20190
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
20191
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
20192
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
20193
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
20194
+ '%String%': String,
20195
+ '%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
20196
+ '%StringPrototype%': String.prototype,
20197
+ '%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
20198
+ '%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
20199
+ '%SyntaxError%': SyntaxError,
20200
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
20201
+ '%ThrowTypeError%': ThrowTypeError$1,
20202
+ '%TypedArray%': TypedArray$1,
20203
+ '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
20204
+ '%TypeError%': $TypeError$4,
20205
+ '%TypeErrorPrototype%': $TypeError$4.prototype,
20206
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
20207
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
20208
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
20209
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
20210
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
20211
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
20212
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
20213
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
20214
+ '%URIError%': URIError,
20215
+ '%URIErrorPrototype%': URIError.prototype,
20216
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
20217
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
20218
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
20219
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
20220
+ };
20221
+
20222
+
20223
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
20224
+
20225
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
20226
+ var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
20227
+ var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
20228
+ var stringToPath$1 = function stringToPath(string) {
20229
+ var result = [];
20230
+ $replace$1(string, rePropName$1, function (match, number, quote, subString) {
20231
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
20232
+ });
20233
+ return result;
20234
+ };
20235
+ /* end adaptation */
20236
+
20237
+ var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
20238
+ if (!(name in INTRINSICS$1)) {
20239
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
20240
+ }
20241
+
20242
+ // istanbul ignore if // hopefully this is impossible to test :-)
20243
+ if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
20244
+ throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
20245
+ }
20246
+
20247
+ return INTRINSICS$1[name];
20248
+ };
20249
+
20250
+ var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
20251
+ if (typeof name !== 'string' || name.length === 0) {
20252
+ throw new TypeError('intrinsic name must be a non-empty string');
20253
+ }
20254
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
20255
+ throw new TypeError('"allowMissing" argument must be a boolean');
20256
+ }
20257
+
20258
+ var parts = stringToPath$1(name);
20259
+
20260
+ var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
20261
+ for (var i = 1; i < parts.length; i += 1) {
20262
+ if (value != null) {
20263
+ if ($gOPD$3 && (i + 1) >= parts.length) {
20264
+ var desc = $gOPD$3(value, parts[i]);
20265
+ if (!allowMissing && !(parts[i] in value)) {
20266
+ throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
20267
+ }
20268
+ value = desc ? (desc.get || desc.value) : value[parts[i]];
20269
+ } else {
20270
+ value = value[parts[i]];
20271
+ }
20272
+ }
20273
+ }
20274
+ return value;
20275
+ };
20276
+
20277
+ var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
20278
+ var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
20279
+ var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
20280
+
20281
+ var callBind$1 = function callBind() {
20282
+ return $reflectApply(functionBind, $call$1, arguments);
20283
+ };
20284
+
20285
+ var apply$1 = function applyBind() {
20286
+ return $reflectApply(functionBind, $apply$1, arguments);
20287
+ };
20288
+ callBind$1.apply = apply$1;
20289
+
20290
+ var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
20291
+
20292
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
20293
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
20294
+ if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
20295
+ return callBind$1(intrinsic);
20296
+ }
20297
+ return intrinsic;
20298
+ };
20299
+
20218
20300
  var isES5$1 = typeof Object.defineProperty === 'function'
20219
20301
  && typeof Object.defineProperties === 'function';
20220
20302
 
@@ -20232,14 +20314,14 @@ if (typeof Promise !== 'function') {
20232
20314
 
20233
20315
 
20234
20316
 
20235
- var $slice = callBound('Array.prototype.slice');
20236
- var $concat$1 = callBound('Array.prototype.concat');
20237
- var $forEach = callBound('Array.prototype.forEach');
20317
+ var $slice = callBound$1('Array.prototype.slice');
20318
+ var $concat$1 = callBound$1('Array.prototype.concat');
20319
+ var $forEach = callBound$1('Array.prototype.forEach');
20238
20320
 
20239
- var hasSymbols$3 = hasSymbols$1();
20321
+ var hasSymbols$4 = hasSymbols$1();
20240
20322
 
20241
- var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
20242
- var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
20323
+ var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
20324
+ var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
20243
20325
 
20244
20326
  var implementation$3 = function promisify(orig) {
20245
20327
  if (typeof orig !== 'function') {
@@ -20249,7 +20331,7 @@ var implementation$3 = function promisify(orig) {
20249
20331
  throw error;
20250
20332
  }
20251
20333
 
20252
- if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
20334
+ if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
20253
20335
  var customFunction = orig[kCustomPromisifiedSymbol];
20254
20336
  if (typeof customFunction !== 'function') {
20255
20337
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -21548,18 +21630,18 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
21548
21630
  };
21549
21631
 
21550
21632
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
21551
- var cp_url = '';
21552
- if (cp.ancestor && typeof cp.ancestor == 'string') {
21553
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21554
- }
21633
+ var cp_url = '';
21634
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
21635
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21636
+ }
21555
21637
 
21556
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21557
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21558
- }
21638
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21639
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21640
+ }
21559
21641
 
21560
- cp_url += (cp_url === '' ? '' : '/') + cp.path;
21642
+ cp_url += (cp_url === '' ? '' : '/') + cp.path;
21561
21643
 
21562
- return cp_url;
21644
+ return cp_url;
21563
21645
  };
21564
21646
 
21565
21647
  var getArticleSummary$1 = function getArticleSummary(article) {
@@ -21586,7 +21668,7 @@ var getArticleSummary$1 = function getArticleSummary(article) {
21586
21668
  };
21587
21669
 
21588
21670
  function urlFor$5(client, source) {
21589
- return index.imageUrlBuilder(client).image(source);
21671
+ return index.imageUrlBuilder(client).image(source);
21590
21672
  }
21591
21673
 
21592
21674
  var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
@@ -21655,9 +21737,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
21655
21737
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
21656
21738
  thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
21657
21739
  React__default.createElement('p', {
21658
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.main_36 ? 'left' : 'right', marginTop: '.25rem' },
21740
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.main_39 ? 'left' : 'right', marginTop: '.25rem' },
21659
21741
  dangerouslySetInnerHTML: { __html: name } }),
21660
- main.main_36 && !thumbnailUrl && React__default.createElement(
21742
+ main.main_39 && !thumbnailUrl && React__default.createElement(
21661
21743
  'style',
21662
21744
  { jsx: 'true' },
21663
21745
  '\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
@@ -22093,42 +22175,17 @@ var Article$1 = function Article(props) {
22093
22175
  React__default.createElement(
22094
22176
  InscreenSensor,
22095
22177
  {
22096
- offSetTop: 45,
22178
+ offSetTop: 120,
22179
+ className: 'inscreen-wrapper',
22180
+ id: 'article-' + title,
22097
22181
  onChange: function onChange(visible) {
22098
- if (visible !== false) {
22182
+ if (visible === 'top' || visible === 'bottom' || visible === 'small-top') {
22099
22183
  changeUrl(url, visible, meta);
22100
22184
  }
22101
22185
  } },
22102
22186
  React__default.createElement(
22103
22187
  'div',
22104
22188
  null,
22105
- React__default.createElement(
22106
- Head,
22107
- null,
22108
- React__default.createElement(
22109
- 'title',
22110
- { key: 'title' },
22111
- shareTitle + ' | ' + props.cache.siteSettingCache.name
22112
- ),
22113
- React__default.createElement('meta', { name: 'description', key: 'description', content: shareSummary }),
22114
- passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
22115
- React__default.createElement('meta', { property: 'og:url', content: shareUrl, key: 'og:url' }),
22116
- React__default.createElement('meta', { property: 'og:title', content: shareTitle, key: 'og:title' }),
22117
- React__default.createElement('meta', { property: 'og:image', content: shareImage, key: 'og:image' }),
22118
- React__default.createElement('meta', { property: 'og:site_name', content: props.Settings.title, key: 'og:site_name' }),
22119
- React__default.createElement('meta', { property: 'og:description', content: shareSummary, key: 'og:description' }),
22120
- React__default.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'twitter:card' }),
22121
- React__default.createElement('meta', { name: 'twitter:title', content: shareTitle, key: 'twitter:title' }),
22122
- React__default.createElement('meta', { name: 'twitter:image', content: shareImage, key: 'twitter:image' }),
22123
- React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
22124
- React__default.createElement('meta', { name: 'twitter:description', content: shareSummary, key: 'twitter:description' }),
22125
- React__default.createElement(
22126
- 'noscript',
22127
- null,
22128
- props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
22129
- props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
22130
- )
22131
- ),
22132
22189
  React__default.createElement(
22133
22190
  'div',
22134
22191
  { className: 'video-detail', style: { marginBottom: isCutomPage(props.article) ? '150px' : 0 } },
@@ -22168,7 +22225,16 @@ var Article$1 = function Article(props) {
22168
22225
  null,
22169
22226
  source && React__default.createElement(
22170
22227
  'p',
22171
- { style: { display: 'inline-block', padding: '0 .25rem', color: 'var(--franchise-primary, #484848)', borderRadius: '2px', fontWeight: 'bold', border: '2px solid var(--franchise-primary, #484848)' }, className: 'source-label' },
22228
+ {
22229
+ style: {
22230
+ display: 'inline-block',
22231
+ padding: '0 .25rem',
22232
+ color: 'var(--franchise-primary, #484848)',
22233
+ borderRadius: '2px',
22234
+ fontWeight: 'bold',
22235
+ border: '2px solid var(--franchise-primary, #484848)'
22236
+ },
22237
+ className: 'source-label' },
22172
22238
  source
22173
22239
  )
22174
22240
  ),
@@ -22228,7 +22294,6 @@ var Article$1 = function Article(props) {
22228
22294
  React__default.createElement(
22229
22295
  'p',
22230
22296
  null,
22231
- React__default.createElement('div', null),
22232
22297
  React__default.createElement(
22233
22298
  'em',
22234
22299
  null,
@@ -22240,7 +22305,7 @@ var Article$1 = function Article(props) {
22240
22305
  React__default.createElement(
22241
22306
  'div',
22242
22307
  { className: 'ad-box', style: { textAlign: 'center' } },
22243
- main.main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22308
+ main.main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22244
22309
  if (index === 0) {
22245
22310
  return React__default.createElement(
22246
22311
  'div',
@@ -22295,7 +22360,7 @@ var Article$1 = function Article(props) {
22295
22360
  renderIsiContent(props.article)
22296
22361
  )
22297
22362
  ),
22298
- main.main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22363
+ main.main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22299
22364
  if (index > 0) {
22300
22365
  return React__default.createElement(
22301
22366
  'div',
@@ -22346,7 +22411,7 @@ exports.default = function (obj, key, value) {
22346
22411
  };
22347
22412
  });
22348
22413
 
22349
- var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty$1);
22414
+ var _defineProperty$1 = _commonjsHelpers.unwrapExports(defineProperty$1);
22350
22415
 
22351
22416
  var getTargeting = function getTargeting(props) {
22352
22417
  var article = props.article,
@@ -22461,8 +22526,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22461
22526
  setQueueData = _useState2[1];
22462
22527
 
22463
22528
  var refreshAD = function refreshAD(path) {
22464
-
22465
- if (!main.main_36) {
22529
+ if (!main.main_39) {
22466
22530
  var activeArticle = queueData.find(function (item) {
22467
22531
  return item.url.current === path;
22468
22532
  });
@@ -22505,14 +22569,11 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22505
22569
 
22506
22570
  var scrollDirectionDetect = function scrollDirectionDetect(e) {
22507
22571
  var window = e.currentTarget;
22572
+
22508
22573
  if (preVscroll > window.scrollY) {
22509
- if (!isScrollDown) {
22510
- isScrollDown = true;
22511
- }
22574
+ isScrollDown = false;
22512
22575
  } else if (preVscroll < window.scrollY) {
22513
- if (isScrollDown) {
22514
- isScrollDown = false;
22515
- }
22576
+ isScrollDown = true;
22516
22577
  }
22517
22578
  preVscroll = window.scrollY;
22518
22579
  };
@@ -22553,21 +22614,32 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22553
22614
  };
22554
22615
 
22555
22616
  var changeUrl = function changeUrl(path, visibility, meta) {
22617
+ var currentPath = window && window.location && window.location.pathname ? window.location.pathname.replace('/view/', '') : '';
22556
22618
  var newPath = '/view/' + path;
22557
- if (!isScrollDown) {
22558
- if (visibility === 'top') {
22559
- // router.push('/view/[url]', newPath, { shallow: true })
22560
- window.history.pushState({ page: path }, path, newPath);
22561
- if (props.pageview) {
22562
- props.pageview(newPath);
22619
+ if (currentPath !== path) {
22620
+ if (isScrollDown) {
22621
+ if (visibility === 'top') {
22622
+ // router.push('/view/[url]', newPath, { shallow: true })
22623
+ window.history.pushState({ page: path }, meta.shareTitle, newPath);
22624
+ if (props.pageview) {
22625
+ props.pageview(newPath);
22626
+ }
22627
+ refreshAD(path);
22628
+ changeMeta(meta);
22629
+ }
22630
+ } else {
22631
+ if (visibility === 'bottom') {
22632
+ // router.push('/view/[url]', newPath, { shallow: true })
22633
+ window.history.pushState({ page: path }, meta.shareTitle, newPath);
22634
+ if (props.pageview) {
22635
+ props.pageview(newPath);
22636
+ }
22637
+ refreshAD(path);
22638
+ changeMeta(meta);
22563
22639
  }
22564
- refreshAD(path);
22565
- changeMeta(meta);
22566
22640
  }
22567
- } else {
22568
- if (visibility === 'bottom') {
22569
- // router.push('/view/[url]', newPath, { shallow: true })
22570
- window.history.pushState({ page: path }, path, newPath);
22641
+ if (visibility === 'small-top') {
22642
+ window.history.pushState({ page: path }, meta.shareTitle, newPath);
22571
22643
  if (props.pageview) {
22572
22644
  props.pageview(newPath);
22573
22645
  }
@@ -22656,7 +22728,7 @@ var Articles = function Articles(props) {
22656
22728
  Ads: WAds,
22657
22729
  regionalPages: regionalPages,
22658
22730
  nationalPage: nationalPage
22659
- }, _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));
22731
+ }, _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));
22660
22732
  };
22661
22733
 
22662
22734
  var View = function View(props) {
@@ -22713,7 +22785,13 @@ var View = function View(props) {
22713
22785
  React__default.createElement('meta', { name: 'twitter:title', content: shareOptions.shareTitle, key: 'twitter:title' }),
22714
22786
  React__default.createElement('meta', { name: 'twitter:image', content: shareOptions.shareImage, key: 'twitter:image' }),
22715
22787
  React__default.createElement('meta', { name: 'twitter:site', content: '@' + props.Settings.title, key: 'twitter:site' }),
22716
- React__default.createElement('meta', { name: 'twitter:description', content: shareOptions.shareSummary, key: 'twitter:description' })
22788
+ React__default.createElement('meta', { name: 'twitter:description', content: shareOptions.shareSummary, key: 'twitter:description' }),
22789
+ React__default.createElement(
22790
+ 'noscript',
22791
+ null,
22792
+ props.article.seriesDetail && props.article.seriesDetail.prevUrl && React__default.createElement('link', { rel: 'prev', href: props.article.seriesDetail.prevUrl }),
22793
+ props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
22794
+ )
22717
22795
  ),
22718
22796
  !needInfiniteScroll ? React__default.createElement(Article$1, _extends$2._extends({ infiniteScroll: false }, props)) : React__default.createElement(Articles, _extends$2._extends({ infiniteScroll: true }, props))
22719
22797
  );
@@ -22754,6 +22832,8 @@ var getQuery = function getQuery(type) {
22754
22832
  return '*[\n _type == "article" \n && defined(title) \n && defined(url) \n && !(_id in path("drafts.**")) \n && is_visible == true \n && published <= \'' + today + '\' \n && passwordLock!=true \n && taxonomyMapping[]._ref in $taxonomy \n && contentCategory->.name != \'Poll\' \n && contentCategory->.name != \'Slideshows\' \n && url.current != $url \n && !defined(body[].videos)\n ]| order(published desc)[$index]{\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
22755
22833
  case 'article':
22756
22834
  return '*[\n _type == "article" \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && url.current == $url \n ][0]{\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n \n }';
22835
+ case 'publication':
22836
+ return '*[_type == \'publication\'\n && identifier.current == $publication][0] {\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
22757
22837
  }
22758
22838
  };
22759
22839