@clappr/player 0.11.3 → 0.11.5

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.
@@ -4,6 +4,14 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Clappr = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
+ function _defineProperty$1(e, r, t) {
8
+ return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, {
9
+ value: t,
10
+ enumerable: !0,
11
+ configurable: !0,
12
+ writable: !0
13
+ }) : e[r] = t, e;
14
+ }
7
15
  function ownKeys$1(e, r) {
8
16
  var t = Object.keys(e);
9
17
  if (Object.getOwnPropertySymbols) {
@@ -25,38 +33,135 @@
25
33
  }
26
34
  return e;
27
35
  }
28
- function _defineProperty$1(obj, key, value) {
29
- key = _toPropertyKey$2(key);
30
- if (key in obj) {
31
- Object.defineProperty(obj, key, {
32
- value: value,
33
- enumerable: true,
34
- configurable: true,
35
- writable: true
36
- });
37
- } else {
38
- obj[key] = value;
39
- }
40
- return obj;
41
- }
42
- function _toPrimitive$2(input, hint) {
43
- if (typeof input !== "object" || input === null) return input;
44
- var prim = input[Symbol.toPrimitive];
45
- if (prim !== undefined) {
46
- var res = prim.call(input, hint || "default");
47
- if (typeof res !== "object") return res;
36
+ function _toPrimitive$2(t, r) {
37
+ if ("object" != typeof t || !t) return t;
38
+ var e = t[Symbol.toPrimitive];
39
+ if (void 0 !== e) {
40
+ var i = e.call(t, r || "default");
41
+ if ("object" != typeof i) return i;
48
42
  throw new TypeError("@@toPrimitive must return a primitive value.");
49
43
  }
50
- return (hint === "string" ? String : Number)(input);
44
+ return ("string" === r ? String : Number)(t);
51
45
  }
52
- function _toPropertyKey$2(arg) {
53
- var key = _toPrimitive$2(arg, "string");
54
- return typeof key === "symbol" ? key : String(key);
46
+ function _toPropertyKey$2(t) {
47
+ var i = _toPrimitive$2(t, "string");
48
+ return "symbol" == typeof i ? i : i + "";
55
49
  }
56
50
 
51
+ function _arrayLikeToArray(r, a) {
52
+ (null == a || a > r.length) && (a = r.length);
53
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
54
+ return n;
55
+ }
56
+ function _arrayWithHoles(r) {
57
+ if (Array.isArray(r)) return r;
58
+ }
59
+ function _arrayWithoutHoles(r) {
60
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
61
+ }
62
+ function _assertThisInitialized$1(e) {
63
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
64
+ return e;
65
+ }
57
66
  function _callSuper$1(t, o, e) {
58
67
  return o = _getPrototypeOf$1(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf$1(t).constructor) : o.apply(t, e));
59
68
  }
69
+ function _classCallCheck$1(a, n) {
70
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
71
+ }
72
+ function _defineProperties$1(e, r) {
73
+ for (var t = 0; t < r.length; t++) {
74
+ var o = r[t];
75
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$1(o.key), o);
76
+ }
77
+ }
78
+ function _createClass$1(e, r, t) {
79
+ return r && _defineProperties$1(e.prototype, r), t && _defineProperties$1(e, t), Object.defineProperty(e, "prototype", {
80
+ writable: !1
81
+ }), e;
82
+ }
83
+ function _createForOfIteratorHelper(r, e) {
84
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
85
+ if (!t) {
86
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
87
+ t && (r = t);
88
+ var n = 0,
89
+ F = function () {};
90
+ return {
91
+ s: F,
92
+ n: function () {
93
+ return n >= r.length ? {
94
+ done: !0
95
+ } : {
96
+ done: !1,
97
+ value: r[n++]
98
+ };
99
+ },
100
+ e: function (r) {
101
+ throw r;
102
+ },
103
+ f: F
104
+ };
105
+ }
106
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
107
+ }
108
+ var o,
109
+ a = !0,
110
+ u = !1;
111
+ return {
112
+ s: function () {
113
+ t = t.call(r);
114
+ },
115
+ n: function () {
116
+ var r = t.next();
117
+ return a = r.done, r;
118
+ },
119
+ e: function (r) {
120
+ u = !0, o = r;
121
+ },
122
+ f: function () {
123
+ try {
124
+ a || null == t.return || t.return();
125
+ } finally {
126
+ if (u) throw o;
127
+ }
128
+ }
129
+ };
130
+ }
131
+ function _defineProperty(e, r, t) {
132
+ return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
133
+ value: t,
134
+ enumerable: !0,
135
+ configurable: !0,
136
+ writable: !0
137
+ }) : e[r] = t, e;
138
+ }
139
+ function _get$1() {
140
+ return _get$1 = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
141
+ var p = _superPropBase$1(e, t);
142
+ if (p) {
143
+ var n = Object.getOwnPropertyDescriptor(p, t);
144
+ return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
145
+ }
146
+ }, _get$1.apply(null, arguments);
147
+ }
148
+ function _getPrototypeOf$1(t) {
149
+ return _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
150
+ return t.__proto__ || Object.getPrototypeOf(t);
151
+ }, _getPrototypeOf$1(t);
152
+ }
153
+ function _inherits$1(t, e) {
154
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
155
+ t.prototype = Object.create(e && e.prototype, {
156
+ constructor: {
157
+ value: t,
158
+ writable: !0,
159
+ configurable: !0
160
+ }
161
+ }), Object.defineProperty(t, "prototype", {
162
+ writable: !1
163
+ }), e && _setPrototypeOf$1(t, e);
164
+ }
60
165
  function _isNativeReflectConstruct$1() {
61
166
  try {
62
167
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -65,6 +170,9 @@
65
170
  return !!t;
66
171
  })();
67
172
  }
173
+ function _iterableToArray(r) {
174
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
175
+ }
68
176
  function _iterableToArrayLimit(r, l) {
69
177
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
70
178
  if (null != t) {
@@ -92,6 +200,12 @@
92
200
  return a;
93
201
  }
94
202
  }
203
+ function _nonIterableRest() {
204
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
205
+ }
206
+ function _nonIterableSpread() {
207
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
208
+ }
95
209
  function ownKeys(e, r) {
96
210
  var t = Object.keys(e);
97
211
  if (Object.getOwnPropertySymbols) {
@@ -113,6 +227,32 @@
113
227
  }
114
228
  return e;
115
229
  }
230
+ function _possibleConstructorReturn$1(t, e) {
231
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
232
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
233
+ return _assertThisInitialized$1(t);
234
+ }
235
+ function _setPrototypeOf$1(t, e) {
236
+ return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
237
+ return t.__proto__ = e, t;
238
+ }, _setPrototypeOf$1(t, e);
239
+ }
240
+ function _slicedToArray(r, e) {
241
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
242
+ }
243
+ function _superPropBase$1(t, o) {
244
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf$1(t)););
245
+ return t;
246
+ }
247
+ function _superPropGet$1(t, o, e, r) {
248
+ var p = _get$1(_getPrototypeOf$1(t.prototype), o, e);
249
+ return "function" == typeof p ? function (t) {
250
+ return p.apply(e, t);
251
+ } : p;
252
+ }
253
+ function _toConsumableArray(r) {
254
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
255
+ }
116
256
  function _toPrimitive$1(t, r) {
117
257
  if ("object" != typeof t || !t) return t;
118
258
  var e = t[Symbol.toPrimitive];
@@ -127,201 +267,21 @@
127
267
  var i = _toPrimitive$1(t, "string");
128
268
  return "symbol" == typeof i ? i : i + "";
129
269
  }
130
- function _typeof(o) {
270
+ function _typeof$1(o) {
131
271
  "@babel/helpers - typeof";
132
272
 
133
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
273
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
134
274
  return typeof o;
135
275
  } : function (o) {
136
276
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
137
- }, _typeof(o);
138
- }
139
- function _classCallCheck$1(instance, Constructor) {
140
- if (!(instance instanceof Constructor)) {
141
- throw new TypeError("Cannot call a class as a function");
142
- }
143
- }
144
- function _defineProperties$1(target, props) {
145
- for (var i = 0; i < props.length; i++) {
146
- var descriptor = props[i];
147
- descriptor.enumerable = descriptor.enumerable || false;
148
- descriptor.configurable = true;
149
- if ("value" in descriptor) descriptor.writable = true;
150
- Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
151
- }
152
- }
153
- function _createClass$1(Constructor, protoProps, staticProps) {
154
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
155
- if (staticProps) _defineProperties$1(Constructor, staticProps);
156
- Object.defineProperty(Constructor, "prototype", {
157
- writable: false
158
- });
159
- return Constructor;
160
- }
161
- function _defineProperty(obj, key, value) {
162
- key = _toPropertyKey$1(key);
163
- if (key in obj) {
164
- Object.defineProperty(obj, key, {
165
- value: value,
166
- enumerable: true,
167
- configurable: true,
168
- writable: true
169
- });
170
- } else {
171
- obj[key] = value;
172
- }
173
- return obj;
174
- }
175
- function _inherits$1(subClass, superClass) {
176
- if (typeof superClass !== "function" && superClass !== null) {
177
- throw new TypeError("Super expression must either be null or a function");
178
- }
179
- subClass.prototype = Object.create(superClass && superClass.prototype, {
180
- constructor: {
181
- value: subClass,
182
- writable: true,
183
- configurable: true
184
- }
185
- });
186
- Object.defineProperty(subClass, "prototype", {
187
- writable: false
188
- });
189
- if (superClass) _setPrototypeOf$1(subClass, superClass);
190
- }
191
- function _getPrototypeOf$1(o) {
192
- _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
193
- return o.__proto__ || Object.getPrototypeOf(o);
194
- };
195
- return _getPrototypeOf$1(o);
196
- }
197
- function _setPrototypeOf$1(o, p) {
198
- _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
199
- o.__proto__ = p;
200
- return o;
201
- };
202
- return _setPrototypeOf$1(o, p);
203
- }
204
- function _assertThisInitialized$1(self) {
205
- if (self === void 0) {
206
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
207
- }
208
- return self;
209
- }
210
- function _possibleConstructorReturn$1(self, call) {
211
- if (call && (typeof call === "object" || typeof call === "function")) {
212
- return call;
213
- } else if (call !== void 0) {
214
- throw new TypeError("Derived constructors may only return object or undefined");
215
- }
216
- return _assertThisInitialized$1(self);
217
- }
218
- function _superPropBase$1(object, property) {
219
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
220
- object = _getPrototypeOf$1(object);
221
- if (object === null) break;
222
- }
223
- return object;
277
+ }, _typeof$1(o);
224
278
  }
225
- function _get$1() {
226
- if (typeof Reflect !== "undefined" && Reflect.get) {
227
- _get$1 = Reflect.get.bind();
228
- } else {
229
- _get$1 = function _get(target, property, receiver) {
230
- var base = _superPropBase$1(target, property);
231
- if (!base) return;
232
- var desc = Object.getOwnPropertyDescriptor(base, property);
233
- if (desc.get) {
234
- return desc.get.call(arguments.length < 3 ? target : receiver);
235
- }
236
- return desc.value;
237
- };
279
+ function _unsupportedIterableToArray(r, a) {
280
+ if (r) {
281
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
282
+ var t = {}.toString.call(r).slice(8, -1);
283
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
238
284
  }
239
- return _get$1.apply(this, arguments);
240
- }
241
- function _slicedToArray(arr, i) {
242
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
243
- }
244
- function _toConsumableArray(arr) {
245
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
246
- }
247
- function _arrayWithoutHoles(arr) {
248
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
249
- }
250
- function _arrayWithHoles(arr) {
251
- if (Array.isArray(arr)) return arr;
252
- }
253
- function _iterableToArray(iter) {
254
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
255
- }
256
- function _unsupportedIterableToArray(o, minLen) {
257
- if (!o) return;
258
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
259
- var n = Object.prototype.toString.call(o).slice(8, -1);
260
- if (n === "Object" && o.constructor) n = o.constructor.name;
261
- if (n === "Map" || n === "Set") return Array.from(o);
262
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
263
- }
264
- function _arrayLikeToArray(arr, len) {
265
- if (len == null || len > arr.length) len = arr.length;
266
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
267
- return arr2;
268
- }
269
- function _nonIterableSpread() {
270
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
271
- }
272
- function _nonIterableRest() {
273
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
274
- }
275
- function _createForOfIteratorHelper(o, allowArrayLike) {
276
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
277
- if (!it) {
278
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) {
279
- if (it) o = it;
280
- var i = 0;
281
- var F = function () {};
282
- return {
283
- s: F,
284
- n: function () {
285
- if (i >= o.length) return {
286
- done: true
287
- };
288
- return {
289
- done: false,
290
- value: o[i++]
291
- };
292
- },
293
- e: function (e) {
294
- throw e;
295
- },
296
- f: F
297
- };
298
- }
299
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
300
- }
301
- var normalCompletion = true,
302
- didErr = false,
303
- err;
304
- return {
305
- s: function () {
306
- it = it.call(o);
307
- },
308
- n: function () {
309
- var step = it.next();
310
- normalCompletion = step.done;
311
- return step;
312
- },
313
- e: function (e) {
314
- didErr = true;
315
- err = e;
316
- },
317
- f: function () {
318
- try {
319
- if (!normalCompletion && it.return != null) it.return();
320
- } finally {
321
- if (didErr) throw err;
322
- }
323
- }
324
- };
325
285
  }
326
286
  function getDefaultExportFromCjs(x) {
327
287
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -615,7 +575,6 @@
615
575
  element.querySelectorAll(selector) // Or it's not simple, and we need to query all
616
576
  );
617
577
  };
618
-
619
578
  function filtered(nodes, selector) {
620
579
  return selector == null ? $(nodes) : $(nodes).filter(selector);
621
580
  }
@@ -1098,7 +1057,7 @@
1098
1057
  },
1099
1058
  scrollTop: function (value) {
1100
1059
  if (!this.length) return;
1101
- var hasScrollTop = ('scrollTop' in this[0]);
1060
+ var hasScrollTop = 'scrollTop' in this[0];
1102
1061
  if (value === undefined$1) return hasScrollTop ? this[0].scrollTop : this[0].pageYOffset;
1103
1062
  return this.each(hasScrollTop ? function () {
1104
1063
  this.scrollTop = value;
@@ -1108,7 +1067,7 @@
1108
1067
  },
1109
1068
  scrollLeft: function (value) {
1110
1069
  if (!this.length) return;
1111
- var hasScrollLeft = ('scrollLeft' in this[0]);
1070
+ var hasScrollLeft = 'scrollLeft' in this[0];
1112
1071
  if (value === undefined$1) return hasScrollLeft ? this[0].scrollLeft : this[0].pageXOffset;
1113
1072
  return this.each(hasScrollLeft ? function () {
1114
1073
  this.scrollLeft = value;
@@ -1158,7 +1117,6 @@
1158
1117
 
1159
1118
  // Generate the `width` and `height` functions
1160
1119
  ;
1161
-
1162
1120
  ['width', 'height'].forEach(function (dimension) {
1163
1121
  var dimensionProperty = dimension.replace(/./, function (m) {
1164
1122
  return m[0].toUpperCase();
@@ -1795,7 +1753,7 @@
1795
1753
  },
1796
1754
  handlers = {},
1797
1755
  specialEvents = {},
1798
- focusinSupported = ('onfocusin' in window),
1756
+ focusinSupported = 'onfocusin' in window,
1799
1757
  focus = {
1800
1758
  focus: 'focusin',
1801
1759
  blur: 'focusout'
@@ -2025,7 +1983,6 @@
2025
1983
 
2026
1984
  // shortcut methods for `.bind(event, fn)` for each event type
2027
1985
  ;
2028
-
2029
1986
  ('focusin focusout focus blur load resize scroll unload click dblclick ' + 'mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave ' + 'change select keydown keypress keyup error').split(' ').forEach(function (event) {
2030
1987
  $.fn[event] = function (callback) {
2031
1988
  return 0 in arguments ? this.bind(event, callback) : this.trigger(event);
@@ -3233,7 +3190,7 @@
3233
3190
  if (!name) return true;
3234
3191
 
3235
3192
  // Handle event maps.
3236
- if (_typeof(name) === 'object') {
3193
+ if (_typeof$1(name) === 'object') {
3237
3194
  for (var key in name) obj[action].apply(obj, [key, name[key]].concat(rest));
3238
3195
  return false;
3239
3196
  }
@@ -3331,7 +3288,7 @@
3331
3288
  */
3332
3289
  }, {
3333
3290
  key: "once",
3334
- value: function once(name, callback, context) {
3291
+ value: function _once(name, callback, context) {
3335
3292
  var _this = this;
3336
3293
  var _once;
3337
3294
  if (!eventsApi(this, 'once', name, [callback, context]) || !callback) return this;
@@ -3414,7 +3371,7 @@
3414
3371
  var listeningTo = this._listeningTo;
3415
3372
  if (!listeningTo) return this;
3416
3373
  var remove = !name && !callback;
3417
- if (!callback && _typeof(name) === 'object') callback = this;
3374
+ if (!callback && _typeof$1(name) === 'object') callback = this;
3418
3375
  if (obj) (listeningTo = {})[obj._listenId] = obj;
3419
3376
  for (var id in listeningTo) {
3420
3377
  obj = listeningTo[id];
@@ -3448,7 +3405,7 @@
3448
3405
  var listeningTo = this._listeningTo || (this._listeningTo = {});
3449
3406
  var id = obj._listenId || (obj._listenId = uniqueId('l'));
3450
3407
  listeningTo[id] = obj;
3451
- if (!callback && _typeof(name) === 'object') callback = this;
3408
+ if (!callback && _typeof$1(name) === 'object') callback = this;
3452
3409
  obj.on(name, callback, this);
3453
3410
  return this;
3454
3411
  };
@@ -3469,7 +3426,7 @@
3469
3426
  var listeningTo = this._listeningTo || (this._listeningTo = {});
3470
3427
  var id = obj._listenId || (obj._listenId = uniqueId('l'));
3471
3428
  listeningTo[id] = obj;
3472
- if (!callback && _typeof(name) === 'object') callback = this;
3429
+ if (!callback && _typeof$1(name) === 'object') callback = this;
3473
3430
  obj.once(name, callback, this);
3474
3431
  return this;
3475
3432
  };
@@ -5953,7 +5910,7 @@
5953
5910
  value: function createContainer(source) {
5954
5911
  var resolvedSource = null;
5955
5912
  var mimeType = this.options.mimeType;
5956
- if (_typeof(source) === 'object') {
5913
+ if (_typeof$1(source) === 'object') {
5957
5914
  resolvedSource = source.source.toString();
5958
5915
  if (source.mimeType) mimeType = source.mimeType;
5959
5916
  } else {
@@ -6128,7 +6085,7 @@
6128
6085
  key: "activePlaybackEl",
6129
6086
  get: function get() {
6130
6087
  if (!this.activePlayback) return undefined;
6131
- return this.activePlayback.$el ? this.activePlayback.$el.find('video')[0] : this.activePlayback.el;
6088
+ return this.activePlayback.$el ? this.activePlayback.$el.find('video')[0] || this.activePlayback.el : this.activePlayback.el;
6132
6089
  }
6133
6090
  }, {
6134
6091
  key: "configureDomRecycler",
@@ -6625,7 +6582,7 @@
6625
6582
  plugins: {},
6626
6583
  playbacks: []
6627
6584
  };
6628
- var currentVersion = "0.11.3";
6585
+ var currentVersion = "0.11.4";
6629
6586
  return /*#__PURE__*/function () {
6630
6587
  /**
6631
6588
  * builds the loader
@@ -7760,7 +7717,7 @@
7760
7717
  key: "supportedVersion",
7761
7718
  get: function get() {
7762
7719
  return {
7763
- min: "0.11.3"
7720
+ min: "0.11.4"
7764
7721
  };
7765
7722
  }
7766
7723
  }, {
@@ -7862,7 +7819,7 @@
7862
7819
  }, {
7863
7820
  key: "configure",
7864
7821
  value: function configure(options) {
7865
- _get$1(_getPrototypeOf$1(HTML5Video.prototype), "configure", this).call(this, options);
7822
+ _superPropGet$1(HTML5Video, "configure", this)([options]);
7866
7823
  this.el.loop = !!options.loop;
7867
7824
  }
7868
7825
 
@@ -7999,16 +7956,16 @@
7999
7956
  value: function consent(cb) {
8000
7957
  var _this3 = this;
8001
7958
  if (this.isPlaying() || this.el._consented) {
8002
- _get$1(_getPrototypeOf$1(HTML5Video.prototype), "consent", this).call(this, cb);
7959
+ _superPropGet$1(HTML5Video, "consent", this)([cb]);
8003
7960
  } else {
8004
- var eventHandler = function eventHandler() {
8005
- _this3.el.removeEventListener('loadedmetadata', eventHandler, false);
8006
- _this3.el.removeEventListener('error', eventHandler, false);
7961
+ var _eventHandler = function eventHandler() {
7962
+ _this3.el.removeEventListener('loadedmetadata', _eventHandler, false);
7963
+ _this3.el.removeEventListener('error', _eventHandler, false);
8007
7964
  _this3.el._consented = true; // Flag to call load() only once
8008
- _get$1(_getPrototypeOf$1(HTML5Video.prototype), "consent", _this3).call(_this3, cb);
7965
+ _superPropGet$1(HTML5Video, "consent", _this3)([cb]);
8009
7966
  };
8010
- this.el.addEventListener('loadedmetadata', eventHandler, false);
8011
- this.el.addEventListener('error', eventHandler, false);
7967
+ this.el.addEventListener('loadedmetadata', _eventHandler, false);
7968
+ this.el.addEventListener('error', _eventHandler, false);
8012
7969
  this.el.load();
8013
7970
  }
8014
7971
  }
@@ -8264,7 +8221,7 @@
8264
8221
  this._stopPlayheadMovingChecks();
8265
8222
  this.handleTextTrackChange && this.el.textTracks.removeEventListener('change', this.handleTextTrackChange);
8266
8223
  this.$el.off('contextmenu');
8267
- _get$1(_getPrototypeOf$1(HTML5Video.prototype), "destroy", this).call(this);
8224
+ _superPropGet$1(HTML5Video, "destroy", this)([]);
8268
8225
  this.el.removeAttribute('src');
8269
8226
  this.el.load(); // load with no src to stop loading of the previous source and avoid leaks
8270
8227
  this._src = null;
@@ -8522,7 +8479,7 @@
8522
8479
  key: "supportedVersion",
8523
8480
  get: function get() {
8524
8481
  return {
8525
- min: "0.11.3"
8482
+ min: "0.11.4"
8526
8483
  };
8527
8484
  }
8528
8485
  }, {
@@ -8577,7 +8534,7 @@
8577
8534
  key: "supportedVersion",
8578
8535
  get: function get() {
8579
8536
  return {
8580
- min: "0.11.3"
8537
+ min: "0.11.4"
8581
8538
  };
8582
8539
  }
8583
8540
  }, {
@@ -8657,7 +8614,7 @@
8657
8614
  key: "supportedVersion",
8658
8615
  get: function get() {
8659
8616
  return {
8660
- min: "0.11.3"
8617
+ min: "0.11.4"
8661
8618
  };
8662
8619
  }
8663
8620
  }, {
@@ -8783,7 +8740,7 @@
8783
8740
  key: "supportedVersion",
8784
8741
  get: function get() {
8785
8742
  return {
8786
- min: "0.11.3"
8743
+ min: "0.11.4"
8787
8744
  };
8788
8745
  }
8789
8746
  }, {
@@ -8924,7 +8881,7 @@
8924
8881
  key: "supportedVersion",
8925
8882
  get: function get() {
8926
8883
  return {
8927
- min: "0.11.3"
8884
+ min: "0.11.4"
8928
8885
  };
8929
8886
  }
8930
8887
  }, {
@@ -8953,7 +8910,7 @@
8953
8910
  @type {string}
8954
8911
  @default
8955
8912
  */
8956
- var version$1 = "0.11.3";
8913
+ var version$1 = "0.11.4";
8957
8914
 
8958
8915
  // Built-in Plugins/Playbacks
8959
8916
 
@@ -8989,9 +8946,53 @@
8989
8946
  $: $
8990
8947
  };
8991
8948
 
8949
+ function _assertThisInitialized(e) {
8950
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8951
+ return e;
8952
+ }
8992
8953
  function _callSuper(t, o, e) {
8993
8954
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
8994
8955
  }
8956
+ function _classCallCheck(a, n) {
8957
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
8958
+ }
8959
+ function _defineProperties(e, r) {
8960
+ for (var t = 0; t < r.length; t++) {
8961
+ var o = r[t];
8962
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
8963
+ }
8964
+ }
8965
+ function _createClass(e, r, t) {
8966
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
8967
+ writable: !1
8968
+ }), e;
8969
+ }
8970
+ function _get() {
8971
+ return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
8972
+ var p = _superPropBase(e, t);
8973
+ if (p) {
8974
+ var n = Object.getOwnPropertyDescriptor(p, t);
8975
+ return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
8976
+ }
8977
+ }, _get.apply(null, arguments);
8978
+ }
8979
+ function _getPrototypeOf(t) {
8980
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
8981
+ return t.__proto__ || Object.getPrototypeOf(t);
8982
+ }, _getPrototypeOf(t);
8983
+ }
8984
+ function _inherits(t, e) {
8985
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
8986
+ t.prototype = Object.create(e && e.prototype, {
8987
+ constructor: {
8988
+ value: t,
8989
+ writable: !0,
8990
+ configurable: !0
8991
+ }
8992
+ }), Object.defineProperty(t, "prototype", {
8993
+ writable: !1
8994
+ }), e && _setPrototypeOf(t, e);
8995
+ }
8995
8996
  function _isNativeReflectConstruct() {
8996
8997
  try {
8997
8998
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -9000,6 +9001,26 @@
9000
9001
  return !!t;
9001
9002
  })();
9002
9003
  }
9004
+ function _possibleConstructorReturn(t, e) {
9005
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
9006
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
9007
+ return _assertThisInitialized(t);
9008
+ }
9009
+ function _setPrototypeOf(t, e) {
9010
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
9011
+ return t.__proto__ = e, t;
9012
+ }, _setPrototypeOf(t, e);
9013
+ }
9014
+ function _superPropBase(t, o) {
9015
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
9016
+ return t;
9017
+ }
9018
+ function _superPropGet(t, o, e, r) {
9019
+ var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
9020
+ return 2 & r && "function" == typeof p ? function (t) {
9021
+ return p.apply(e, t);
9022
+ } : p;
9023
+ }
9003
9024
  function _toPrimitive(t, r) {
9004
9025
  if ("object" != typeof t || !t) return t;
9005
9026
  var e = t[Symbol.toPrimitive];
@@ -9014,93 +9035,14 @@
9014
9035
  var i = _toPrimitive(t, "string");
9015
9036
  return "symbol" == typeof i ? i : i + "";
9016
9037
  }
9017
- function _classCallCheck(instance, Constructor) {
9018
- if (!(instance instanceof Constructor)) {
9019
- throw new TypeError("Cannot call a class as a function");
9020
- }
9021
- }
9022
- function _defineProperties(target, props) {
9023
- for (var i = 0; i < props.length; i++) {
9024
- var descriptor = props[i];
9025
- descriptor.enumerable = descriptor.enumerable || false;
9026
- descriptor.configurable = true;
9027
- if ("value" in descriptor) descriptor.writable = true;
9028
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
9029
- }
9030
- }
9031
- function _createClass(Constructor, protoProps, staticProps) {
9032
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
9033
- if (staticProps) _defineProperties(Constructor, staticProps);
9034
- Object.defineProperty(Constructor, "prototype", {
9035
- writable: false
9036
- });
9037
- return Constructor;
9038
- }
9039
- function _inherits(subClass, superClass) {
9040
- if (typeof superClass !== "function" && superClass !== null) {
9041
- throw new TypeError("Super expression must either be null or a function");
9042
- }
9043
- subClass.prototype = Object.create(superClass && superClass.prototype, {
9044
- constructor: {
9045
- value: subClass,
9046
- writable: true,
9047
- configurable: true
9048
- }
9049
- });
9050
- Object.defineProperty(subClass, "prototype", {
9051
- writable: false
9052
- });
9053
- if (superClass) _setPrototypeOf(subClass, superClass);
9054
- }
9055
- function _getPrototypeOf(o) {
9056
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
9057
- return o.__proto__ || Object.getPrototypeOf(o);
9058
- };
9059
- return _getPrototypeOf(o);
9060
- }
9061
- function _setPrototypeOf(o, p) {
9062
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
9063
- o.__proto__ = p;
9064
- return o;
9065
- };
9066
- return _setPrototypeOf(o, p);
9067
- }
9068
- function _assertThisInitialized(self) {
9069
- if (self === void 0) {
9070
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9071
- }
9072
- return self;
9073
- }
9074
- function _possibleConstructorReturn(self, call) {
9075
- if (call && (typeof call === "object" || typeof call === "function")) {
9076
- return call;
9077
- } else if (call !== void 0) {
9078
- throw new TypeError("Derived constructors may only return object or undefined");
9079
- }
9080
- return _assertThisInitialized(self);
9081
- }
9082
- function _superPropBase(object, property) {
9083
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
9084
- object = _getPrototypeOf(object);
9085
- if (object === null) break;
9086
- }
9087
- return object;
9088
- }
9089
- function _get() {
9090
- if (typeof Reflect !== "undefined" && Reflect.get) {
9091
- _get = Reflect.get.bind();
9092
- } else {
9093
- _get = function _get(target, property, receiver) {
9094
- var base = _superPropBase(target, property);
9095
- if (!base) return;
9096
- var desc = Object.getOwnPropertyDescriptor(base, property);
9097
- if (desc.get) {
9098
- return desc.get.call(arguments.length < 3 ? target : receiver);
9099
- }
9100
- return desc.value;
9101
- };
9102
- }
9103
- return _get.apply(this, arguments);
9038
+ function _typeof(o) {
9039
+ "@babel/helpers - typeof";
9040
+
9041
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
9042
+ return typeof o;
9043
+ } : function (o) {
9044
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
9045
+ }, _typeof(o);
9104
9046
  }
9105
9047
  var ClickToPausePlugin = /*#__PURE__*/function (_ContainerPlugin) {
9106
9048
  function ClickToPausePlugin(container) {
@@ -9117,7 +9059,7 @@
9117
9059
  key: "supportedVersion",
9118
9060
  get: function get() {
9119
9061
  return {
9120
- min: "0.11.3"
9062
+ min: "0.11.4"
9121
9063
  };
9122
9064
  }
9123
9065
  }, {
@@ -9176,7 +9118,7 @@
9176
9118
  key: "supportedVersion",
9177
9119
  get: function get() {
9178
9120
  return {
9179
- min: "0.11.3"
9121
+ min: "0.11.4"
9180
9122
  };
9181
9123
  }
9182
9124
  }, {
@@ -9335,7 +9277,7 @@
9335
9277
  key: "supportedVersion",
9336
9278
  get: function get() {
9337
9279
  return {
9338
- min: "0.11.3"
9280
+ min: "0.11.4"
9339
9281
  };
9340
9282
  }
9341
9283
  }, {
@@ -9462,7 +9404,7 @@
9462
9404
  key: "supportedVersion",
9463
9405
  get: function get() {
9464
9406
  return {
9465
- min: "0.11.3"
9407
+ min: "0.11.4"
9466
9408
  };
9467
9409
  }
9468
9410
  }, {
@@ -9510,7 +9452,7 @@
9510
9452
  key: "supportedVersion",
9511
9453
  get: function get() {
9512
9454
  return {
9513
- min: "0.11.3"
9455
+ min: "0.11.4"
9514
9456
  };
9515
9457
  }
9516
9458
  }, {
@@ -9630,7 +9572,7 @@
9630
9572
  key: "supportedVersion",
9631
9573
  get: function get() {
9632
9574
  return {
9633
- min: "0.11.3"
9575
+ min: "0.11.4"
9634
9576
  };
9635
9577
  }
9636
9578
  }, {
@@ -9673,13 +9615,13 @@
9673
9615
  }, {
9674
9616
  key: "disable",
9675
9617
  value: function disable() {
9676
- _get(_getPrototypeOf(Favicon.prototype), "disable", this).call(this);
9618
+ _superPropGet(Favicon, "disable", this, 3)([]);
9677
9619
  this.resetIcon();
9678
9620
  }
9679
9621
  }, {
9680
9622
  key: "destroy",
9681
9623
  value: function destroy() {
9682
- _get(_getPrototypeOf(Favicon.prototype), "destroy", this).call(this);
9624
+ _superPropGet(Favicon, "destroy", this, 3)([]);
9683
9625
  this.resetIcon();
9684
9626
  }
9685
9627
  }, {
@@ -9749,7 +9691,7 @@
9749
9691
  key: "supportedVersion",
9750
9692
  get: function get() {
9751
9693
  return {
9752
- min: "0.11.3"
9694
+ min: "0.11.4"
9753
9695
  };
9754
9696
  }
9755
9697
  }, {
@@ -10067,10 +10009,11 @@
10067
10009
  this.upHandler = this.handler('up');
10068
10010
  Kibo.registerEvent(this.element, 'keydown', this.downHandler);
10069
10011
  Kibo.registerEvent(this.element, 'keyup', this.upHandler);
10070
- Kibo.registerEvent(window, 'unload', function unloader() {
10012
+ var unloadEvent = _typeof(window.onbeforeunload) === 'object' ? 'beforeunload' : 'unload';
10013
+ Kibo.registerEvent(window, unloadEvent, function unloader() {
10071
10014
  Kibo.unregisterEvent(that.element, 'keydown', that.downHandler);
10072
10015
  Kibo.unregisterEvent(that.element, 'keyup', that.upHandler);
10073
- Kibo.unregisterEvent(window, 'unload', unloader);
10016
+ Kibo.unregisterEvent(window, unloadEvent, unloader);
10074
10017
  });
10075
10018
  };
10076
10019
  Kibo.prototype.handler = function (upOrDown) {
@@ -10239,7 +10182,7 @@
10239
10182
  key: "supportedVersion",
10240
10183
  get: function get() {
10241
10184
  return {
10242
- min: "0.11.3"
10185
+ min: "0.11.4"
10243
10186
  };
10244
10187
  }
10245
10188
  }, {
@@ -10943,7 +10886,7 @@
10943
10886
  $(document).unbind('mousemove', this.updateDragHandler);
10944
10887
  this.unbindKeyEvents();
10945
10888
  this.stopListening();
10946
- _get(_getPrototypeOf(MediaControl.prototype), "destroy", this).call(this);
10889
+ _superPropGet(MediaControl, "destroy", this, 3)([]);
10947
10890
  }
10948
10891
 
10949
10892
  /**
@@ -11039,7 +10982,7 @@
11039
10982
  key: "supportedVersion",
11040
10983
  get: function get() {
11041
10984
  return {
11042
- min: "0.11.3"
10985
+ min: "0.11.4"
11043
10986
  };
11044
10987
  }
11045
10988
  }, {
@@ -11242,7 +11185,7 @@
11242
11185
  key: "supportedVersion",
11243
11186
  get: function get() {
11244
11187
  return {
11245
- min: "0.11.3"
11188
+ min: "0.11.4"
11246
11189
  };
11247
11190
  }
11248
11191
  }, {
@@ -11444,7 +11387,7 @@
11444
11387
  key: "supportedVersion",
11445
11388
  get: function get() {
11446
11389
  return {
11447
- min: "0.11.3"
11390
+ min: "0.11.4"
11448
11391
  };
11449
11392
  }
11450
11393
  }, {
@@ -11522,7 +11465,7 @@
11522
11465
  key: "supportedVersion",
11523
11466
  get: function get() {
11524
11467
  return {
11525
- min: "0.11.3"
11468
+ min: "0.11.4"
11526
11469
  };
11527
11470
  }
11528
11471
  }, {
@@ -11643,7 +11586,7 @@
11643
11586
  key: "supportedVersion",
11644
11587
  get: function get() {
11645
11588
  return {
11646
- min: "0.11.3"
11589
+ min: "0.11.4"
11647
11590
  };
11648
11591
  }
11649
11592
  }, {
@@ -11715,7 +11658,7 @@
11715
11658
  WaterMark: WaterMarkPlugin
11716
11659
  };
11717
11660
 
11718
- var version = "0.11.3";
11661
+ var version = "0.11.5";
11719
11662
  for (var _i = 0, _Object$values = Object.values(Plugins); _i < _Object$values.length; _i++) {
11720
11663
  var plugin = _Object$values[_i];
11721
11664
  Loader.registerPlugin(plugin);