@grizzshutsdown/simpleplayer 0.1.5 → 0.1.6

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.
@@ -1105,7 +1105,7 @@ fi.innerHTML = `
1105
1105
  </div>
1106
1106
  </div>
1107
1107
  `;
1108
- var b, St, H, ss, B, h, o, Y, m, X, j, Js, L, es, ks, w, O, T, it, rt, Z, vt, g, R, ot, F, Mt, nt, Vt, _, gt, is, zt, P, S, rs, at, yt, wt, lt, Ps, os, It, $, N, K, G, J, Rt, xt, Ts, Dt, Es, Cs, kt, D, ht, qt, M, y, Q, ns, as, Ht, W, ct, x, Pt, Tt, Et, ls, hs, Ct, Qs, te, cs, se, ee, As, Bt, ie, re, oe, ne, ae, le, $t, he, ce, s, Bs, $s, We, ms, je, jt, Ns, vi, c, Us, Nt, U, ue, fs, tt, st, Ys, bs, Ot, gi, Oe, Ze, Ke, Zt, vs, Xs, Ge, Ut, Yt, Ls, Xt, ut, pt, Fs, pe, Ss, _s, Ms, de, Je, gs, Ws, ys, Qe, yi, Vs, wi, dt, ti, xi, si, Kt, z, ki, E, Pi, ei, ii, Ti, _t, ri, k, et, oi, Ei, mt, ft, Ci, Ai, ws, Li, Fi, Si, Gt, I, bt, Jt, Mi, Qt, Vi, C, Ft, zi, V, ni, js, ts, At, Os, ai, Ii, Ri, Di, Wt, Lt, qi, zs, Zs, li, Ks, Gs, Hi, Bi, me, fe, be, ve, xs, hi, us, ci, Is, Rs, ge, ye, we, xe, ke, Pe, Te, Ee, Ds, qs, Ce, Ae, Le, Fe, Se, Me, Ve, ze, Ie, Re, De, qe, He, ps, Be, $e, Ne, Ue, Ye, Xe, A, $i;
1108
+ var b, St, H, ss, B, h, o, Y, m, X, j, Js, L, es, ks, w, O, T, et, it, rt, vt, g, R, ot, F, Mt, nt, Vt, _, gt, is, zt, P, S, rs, at, yt, wt, lt, Ps, os, It, $, N, Z, K, G, Rt, xt, Ts, Dt, Es, Cs, kt, D, ht, qt, M, y, J, ns, as, Ht, W, ct, x, Pt, Tt, Et, ls, hs, Ct, Qs, te, cs, se, ee, As, Bt, ie, re, oe, ne, ae, le, $t, he, ce, s, Bs, $s, We, ms, je, jt, Ns, vi, c, Us, Nt, U, ue, fs, Q, tt, Ys, bs, Ot, gi, Oe, Ze, Ke, Zt, vs, Xs, Ge, Ut, Yt, Ls, Xt, ut, pt, Fs, pe, Ss, _s, Ms, de, Je, gs, Ws, ys, Qe, yi, Vs, wi, dt, ti, xi, si, Kt, z, ki, E, Pi, ei, ii, Ti, _t, ri, k, st, oi, Ei, mt, ft, Ci, Ai, ws, Li, Fi, Si, Gt, I, bt, Jt, Mi, Qt, Vi, C, Ft, zi, V, ni, js, ts, At, Os, ai, Ii, Ri, Di, Wt, Lt, qi, zs, Zs, li, Ks, Gs, Hi, Bi, me, fe, be, ve, xs, hi, us, ci, Is, Rs, ge, ye, we, xe, ke, Pe, Te, Ee, Ds, qs, Ce, Ae, Le, Fe, Se, Me, Ve, ze, Ie, Re, De, qe, He, ps, Be, $e, Ne, Ue, Ye, Xe, A, $i;
1109
1109
  class bi extends HTMLElement {
1110
1110
  constructor() {
1111
1111
  super();
@@ -1128,9 +1128,9 @@ class bi extends HTMLElement {
1128
1128
  n(this, w);
1129
1129
  n(this, O);
1130
1130
  n(this, T);
1131
+ n(this, et);
1131
1132
  n(this, it);
1132
- n(this, rt);
1133
- n(this, Z, []);
1133
+ n(this, rt, []);
1134
1134
  n(this, vt, 0);
1135
1135
  n(this, g, !1);
1136
1136
  n(this, R, !1);
@@ -1155,9 +1155,9 @@ class bi extends HTMLElement {
1155
1155
  n(this, It, null);
1156
1156
  n(this, $, !1);
1157
1157
  n(this, N, !1);
1158
+ n(this, Z, !1);
1158
1159
  n(this, K, !1);
1159
- n(this, G, !1);
1160
- n(this, J, 0);
1160
+ n(this, G, 0);
1161
1161
  n(this, Rt, 0);
1162
1162
  n(this, xt, !1);
1163
1163
  n(this, Ts, 0);
@@ -1170,7 +1170,7 @@ class bi extends HTMLElement {
1170
1170
  n(this, qt, !1);
1171
1171
  n(this, M, !1);
1172
1172
  n(this, y, !0);
1173
- n(this, Q, !1);
1173
+ n(this, J, !1);
1174
1174
  n(this, ns, null);
1175
1175
  n(this, as, null);
1176
1176
  n(this, Ht, !1);
@@ -1208,7 +1208,7 @@ class bi extends HTMLElement {
1208
1208
  t(this, h).classList.remove("is-controls-visible");
1209
1209
  return;
1210
1210
  }
1211
- t(this, Q) || t(this, h).classList.remove("is-pointer-active");
1211
+ t(this, J) || t(this, h).classList.remove("is-pointer-active");
1212
1212
  }
1213
1213
  });
1214
1214
  n(this, Ut, (i) => {
@@ -1224,10 +1224,10 @@ class bi extends HTMLElement {
1224
1224
  e(this, s, bs).call(this);
1225
1225
  });
1226
1226
  n(this, ut, (i) => {
1227
- e(this, s, Ot).call(this, i) && (r(this, Q, !0), t(this, h).classList.add("is-pointer-active"), e(this, s, U).call(this));
1227
+ e(this, s, Ot).call(this, i) && (r(this, J, !0), t(this, h).classList.add("is-pointer-active"), e(this, s, U).call(this));
1228
1228
  });
1229
1229
  n(this, pt, () => {
1230
- r(this, Q, !1), e(this, s, fs).call(this, t(this, Bt));
1230
+ r(this, J, !1), e(this, s, fs).call(this, t(this, Bt));
1231
1231
  });
1232
1232
  n(this, Fs, () => {
1233
1233
  e(this, s, A).call(this) ? t(this, h).classList.add("is-controls-visible") : t(this, h).classList.add("is-pointer-active"), e(this, s, U).call(this);
@@ -1245,14 +1245,14 @@ class bi extends HTMLElement {
1245
1245
  t(this, j).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${u})`);
1246
1246
  });
1247
1247
  n(this, Ms, () => {
1248
- r(this, Et, 0), t(this, Z).forEach((i) => i.classList.remove("is-control-tap-active")), this.style.removeProperty("--sp-touch-control-hover-offset");
1248
+ r(this, Et, 0), t(this, rt).forEach((i) => i.classList.remove("is-control-tap-active")), this.style.removeProperty("--sp-touch-control-hover-offset");
1249
1249
  });
1250
1250
  n(this, de, (i) => {
1251
1251
  if (!(i instanceof PointerEvent) || i.pointerType !== "touch") return;
1252
1252
  const a = i.currentTarget;
1253
1253
  if (!a || !e(this, s, Zt).call(this) || e(this, s, Xs).call(this, a)) return;
1254
1254
  const l = Number(a.dataset.spControlIndex ?? 0);
1255
- e(this, s, _s).call(this), t(this, Z).forEach((u) => u.classList.toggle("is-control-tap-active", u === a)), this.style.setProperty("--sp-touch-control-hover-offset", `calc(var(--sp-control-slot-size) * ${l})`), r(this, Et, window.setTimeout(t(this, Ms), 280));
1255
+ e(this, s, _s).call(this), t(this, rt).forEach((u) => u.classList.toggle("is-control-tap-active", u === a)), this.style.setProperty("--sp-touch-control-hover-offset", `calc(var(--sp-control-slot-size) * ${l})`), r(this, Et, window.setTimeout(t(this, Ms), 280));
1256
1256
  });
1257
1257
  n(this, Vs, () => {
1258
1258
  if (t(this, lt) || t(this, h).classList.contains("is-progress-settling")) {
@@ -1292,18 +1292,18 @@ class bi extends HTMLElement {
1292
1292
  });
1293
1293
  n(this, At, () => {
1294
1294
  const i = document.pictureInPictureElement === t(this, o), a = t(this, o), l = !!(this.pictureInPictureEnabled && document.pictureInPictureEnabled && a.requestPictureInPicture);
1295
- t(this, h).classList.toggle("is-picture-in-picture", i), t(this, it).disabled = !l, t(this, it).setAttribute("aria-label", i ? "Exit picture in picture" : "Enter picture in picture");
1295
+ t(this, h).classList.toggle("is-picture-in-picture", i), t(this, et).disabled = !l, t(this, et).setAttribute("aria-label", i ? "Exit picture in picture" : "Enter picture in picture");
1296
1296
  });
1297
1297
  n(this, Wt, () => {
1298
1298
  const i = e(this, s, Os).call(this), a = i === t(this, h) || i === this, l = e(this, s, ai).call(this);
1299
- return t(this, h).classList.toggle("is-fullscreen", a), t(this, rt).disabled = !l, t(this, rt).setAttribute("aria-label", a ? "Exit fullscreen" : "Enter fullscreen"), a;
1299
+ return t(this, h).classList.toggle("is-fullscreen", a), t(this, it).disabled = !l, t(this, it).setAttribute("aria-label", a ? "Exit fullscreen" : "Enter fullscreen"), a;
1300
1300
  });
1301
1301
  n(this, Lt, () => {
1302
1302
  const i = t(this, Wt).call(this);
1303
1303
  e(this, s, qi).call(this, i);
1304
1304
  });
1305
1305
  n(this, zs, () => {
1306
- !t(this, R) || t(this, g) || (e(this, s, et).call(this), e(this, s, U).call(this), e(this, s, Ft).call(this), r(this, g, !0), t(this, h).classList.add("is-scrubbing"), r(this, F, e(this, s, bt).call(this, t(this, is), !0)), t(this, ot) && t(this, o).pause(), t(this, o).currentTime = t(this, F), e(this, s, k).call(this, t(this, F)), e(this, s, I).call(this, t(this, F)), e(this, s, Qt).call(this), e(this, s, C).call(this));
1306
+ !t(this, R) || t(this, g) || (e(this, s, st).call(this), e(this, s, U).call(this), e(this, s, Ft).call(this), r(this, g, !0), t(this, h).classList.add("is-scrubbing"), r(this, F, e(this, s, bt).call(this, t(this, is), !0)), t(this, ot) && t(this, o).pause(), t(this, o).currentTime = t(this, F), e(this, s, k).call(this, t(this, F)), e(this, s, I).call(this, t(this, F)), e(this, s, Qt).call(this), e(this, s, C).call(this));
1307
1307
  });
1308
1308
  n(this, me, (i) => {
1309
1309
  i.stopPropagation(), r(this, hs, !t(this, hs)), e(this, s, Bi).call(this), e(this, s, E).call(this) || t(this, M) ? t(this, L) && (t(this, L).textContent = e(this, s, Gs).call(this, t(this, F))) : e(this, s, Gt).call(this, e(this, s, mt).call(this));
@@ -1312,13 +1312,13 @@ class bi extends HTMLElement {
1312
1312
  if (performance.now() < t(this, Ps))
1313
1313
  return;
1314
1314
  const i = t(this, S) ? t(this, S) !== "playing" : t(this, o).paused || t(this, o).ended, a = !i || e(this, s, ki).call(this);
1315
- e(this, s, st).call(this), a && (r(this, S, i ? "playing" : "paused"), e(this, s, C).call(this)), i ? (e(this, s, et).call(this), await e(this, s, dt).call(this), await t(this, o).play().catch(() => {
1315
+ e(this, s, tt).call(this), a && (r(this, S, i ? "playing" : "paused"), e(this, s, C).call(this)), i ? (e(this, s, st).call(this), await e(this, s, dt).call(this), await t(this, o).play().catch(() => {
1316
1316
  r(this, S, null);
1317
- })) : (e(this, s, Ei).call(this), t(this, o).pause()), e(this, s, C).call(this), e(this, s, tt).call(this);
1317
+ })) : (e(this, s, Ei).call(this), t(this, o).pause()), e(this, s, C).call(this), e(this, s, Q).call(this);
1318
1318
  });
1319
1319
  n(this, be, (i) => {
1320
1320
  if (!(i instanceof PointerEvent)) return;
1321
- const a = t(this, Y).getBoundingClientRect(), l = i.clientX >= a.left && i.clientX <= a.right && i.clientY >= a.top && i.clientY <= a.bottom, u = t(this, X).getBoundingClientRect(), f = i.clientX >= u.left && i.clientX <= u.right && i.clientY >= u.top && i.clientY <= u.bottom, v = t(this, m).getBoundingClientRect(), Hs = i.clientX >= v.left && i.clientX <= v.right && i.clientY >= v.top && i.clientY <= v.bottom, ds = e(this, s, st).call(this);
1321
+ const a = t(this, Y).getBoundingClientRect(), l = i.clientX >= a.left && i.clientX <= a.right && i.clientY >= a.top && i.clientY <= a.bottom, u = t(this, X).getBoundingClientRect(), f = i.clientX >= u.left && i.clientX <= u.right && i.clientY >= u.top && i.clientY <= u.bottom, v = t(this, m).getBoundingClientRect(), Hs = i.clientX >= v.left && i.clientX <= v.right && i.clientY >= v.top && i.clientY <= v.bottom, ds = e(this, s, tt).call(this);
1322
1322
  ds && l && r(this, Ps, performance.now() + 260), ds && (f || Hs) && r(this, os, performance.now() + 260), e(this, s, dt).call(this);
1323
1323
  });
1324
1324
  n(this, ve, (i) => {
@@ -1334,16 +1334,16 @@ class bi extends HTMLElement {
1334
1334
  e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this, y) || (r(this, ct, !1), e(this, s, ci).call(this));
1335
1335
  });
1336
1336
  n(this, ge, (i) => {
1337
- !this.volumeEnabled || !t(this, y) || (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Zt).call(this) || e(this, s, vs).call(this)) && (e(this, s, st).call(this), t(this, us).call(this), t(this, o).muted || t(this, o).volume <= 0 ? (t(this, o).volume <= 0 && (t(this, o).volume = 0.7), t(this, o).muted = !1) : t(this, o).muted = !0, t(this, V).call(this), e(this, s, tt).call(this)));
1337
+ !this.volumeEnabled || !t(this, y) || (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Zt).call(this) || e(this, s, vs).call(this)) && (e(this, s, tt).call(this), t(this, us).call(this), t(this, o).muted || t(this, o).volume <= 0 ? (t(this, o).volume <= 0 && (t(this, o).volume = 0.7), t(this, o).muted = !1) : t(this, o).muted = !0, t(this, V).call(this), e(this, s, Q).call(this)));
1338
1338
  });
1339
1339
  n(this, ye, (i) => {
1340
- i instanceof PointerEvent && (!this.volumeEnabled || !this.volumeSliderEnabled || !t(this, y) || e(this, s, A).call(this) || (i.preventDefault(), i.stopPropagation(), e(this, s, st).call(this), e(this, s, U).call(this), e(this, s, hi).call(this), r(this, W, !0), r(this, x, i.pointerId), t(this, O).classList.add("is-scrubbing-volume"), t(this, T).setPointerCapture(i.pointerId), e(this, s, ni).call(this, i.clientY)));
1340
+ i instanceof PointerEvent && (!this.volumeEnabled || !this.volumeSliderEnabled || !t(this, y) || e(this, s, A).call(this) || (i.preventDefault(), i.stopPropagation(), e(this, s, tt).call(this), e(this, s, U).call(this), e(this, s, hi).call(this), r(this, W, !0), r(this, x, i.pointerId), t(this, O).classList.add("is-scrubbing-volume"), t(this, T).setPointerCapture(i.pointerId), e(this, s, ni).call(this, i.clientY)));
1341
1341
  });
1342
1342
  n(this, we, (i) => {
1343
1343
  i instanceof PointerEvent && t(this, W) && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.preventDefault(), i.stopPropagation(), e(this, s, ni).call(this, i.clientY)));
1344
1344
  });
1345
1345
  n(this, xe, (i) => {
1346
- i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, ts).call(this, i.pointerId), e(this, s, tt).call(this)));
1346
+ i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, ts).call(this, i.pointerId), e(this, s, Q).call(this)));
1347
1347
  });
1348
1348
  n(this, ke, (i) => {
1349
1349
  i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, ts).call(this, i.pointerId)));
@@ -1357,24 +1357,24 @@ class bi extends HTMLElement {
1357
1357
  n(this, Te, async () => {
1358
1358
  const i = t(this, o);
1359
1359
  if (!(!this.pictureInPictureEnabled || !document.pictureInPictureEnabled || !i.requestPictureInPicture) && !(!e(this, s, Zt).call(this) || e(this, s, vs).call(this))) {
1360
- e(this, s, st).call(this);
1360
+ e(this, s, tt).call(this);
1361
1361
  try {
1362
1362
  await e(this, s, dt).call(this), document.pictureInPictureElement === t(this, o) ? await document.exitPictureInPicture() : await i.requestPictureInPicture();
1363
1363
  } catch {
1364
1364
  } finally {
1365
- t(this, At).call(this), e(this, s, tt).call(this);
1365
+ t(this, At).call(this), e(this, s, Q).call(this);
1366
1366
  }
1367
1367
  }
1368
1368
  });
1369
1369
  n(this, Ee, async (i) => {
1370
1370
  if (e(this, s, ai).call(this) && (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Zt).call(this) || e(this, s, vs).call(this)))) {
1371
- e(this, s, Ot).call(this, i), e(this, s, st).call(this);
1371
+ e(this, s, Ot).call(this, i), e(this, s, tt).call(this);
1372
1372
  try {
1373
1373
  const a = e(this, s, Os).call(this);
1374
1374
  a === t(this, h) || a === this ? await e(this, s, Di).call(this) : (await e(this, s, dt).call(this), Zi(t(this, h)) ? await e(this, s, Ii).call(this) : e(this, s, Ri).call(this));
1375
1375
  } catch {
1376
1376
  } finally {
1377
- t(this, Wt).call(this), e(this, s, tt).call(this);
1377
+ t(this, Wt).call(this), e(this, s, Q).call(this);
1378
1378
  }
1379
1379
  }
1380
1380
  });
@@ -1387,10 +1387,10 @@ class bi extends HTMLElement {
1387
1387
  n(this, Ce, (i) => {
1388
1388
  if (i instanceof PointerEvent) {
1389
1389
  if (i.preventDefault(), !e(this, s, Zt).call(this) || e(this, s, vs).call(this)) {
1390
- e(this, s, st).call(this), e(this, s, A).call(this) && r(this, os, performance.now() + 260);
1390
+ e(this, s, tt).call(this), e(this, s, A).call(this) && r(this, os, performance.now() + 260);
1391
1391
  return;
1392
1392
  }
1393
- e(this, s, st).call(this), e(this, s, U).call(this), t(this, Vs).call(this), r(this, _, !1), r(this, gt, !1), e(this, s, Fi).call(this, e(this, s, mt).call(this)), r(this, R, !0), r(this, P, i.pointerId), r(this, is, i.clientX), r(this, ot, !t(this, o).paused && !t(this, o).ended), t(this, m).setPointerCapture(i.pointerId), r(this, F, e(this, s, bt).call(this, i.clientX, !1)), e(this, s, Ft).call(this), r(this, zt, window.setTimeout(t(this, zs), t(this, ee)));
1393
+ e(this, s, tt).call(this), e(this, s, U).call(this), t(this, Vs).call(this), r(this, _, !1), r(this, gt, !1), e(this, s, Fi).call(this, e(this, s, mt).call(this)), r(this, R, !0), r(this, P, i.pointerId), r(this, is, i.clientX), r(this, ot, !t(this, o).paused && !t(this, o).ended), t(this, m).setPointerCapture(i.pointerId), r(this, F, e(this, s, bt).call(this, i.clientX, !1)), e(this, s, Ft).call(this), r(this, zt, window.setTimeout(t(this, zs), t(this, ee)));
1394
1394
  }
1395
1395
  });
1396
1396
  n(this, Ae, (i) => {
@@ -1439,13 +1439,13 @@ class bi extends HTMLElement {
1439
1439
  e(this, s, Os).call(this) || e(this, s, bs).call(this);
1440
1440
  });
1441
1441
  n(this, Re, () => {
1442
- r(this, S, null), e(this, s, et).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, C).call(this);
1442
+ r(this, S, null), e(this, s, st).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, C).call(this);
1443
1443
  });
1444
1444
  n(this, De, () => {
1445
1445
  r(this, S, null), e(this, s, E).call(this) || e(this, s, oi).call(this), t(this, z).call(this), e(this, s, C).call(this);
1446
1446
  });
1447
1447
  n(this, qe, () => {
1448
- r(this, S, null), e(this, s, et).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, C).call(this);
1448
+ r(this, S, null), e(this, s, st).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, C).call(this);
1449
1449
  });
1450
1450
  n(this, He, () => {
1451
1451
  e(this, s, Kt).call(this, !0, !0);
@@ -1454,21 +1454,21 @@ class bi extends HTMLElement {
1454
1454
  e(this, s, Kt).call(this, !0);
1455
1455
  });
1456
1456
  n(this, Be, () => {
1457
- e(this, s, et).call(this), r(this, y, !0), t(this, V).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), t(this, z).call(this), e(this, s, I).call(this);
1457
+ e(this, s, st).call(this), r(this, y, !0), t(this, V).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), t(this, z).call(this), e(this, s, I).call(this);
1458
1458
  });
1459
1459
  n(this, $e, () => {
1460
1460
  const i = t(this, _t).call(this);
1461
1461
  t(this, V).call(this), i && !e(this, s, E).call(this) && e(this, s, k).call(this), e(this, s, C).call(this);
1462
1462
  });
1463
1463
  n(this, Ne, () => {
1464
- if (e(this, s, et).call(this), t(this, z).call(this), t(this, _) && (!t(this, gt) || t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA)) {
1464
+ if (e(this, s, st).call(this), t(this, z).call(this), t(this, _) && (!t(this, gt) || t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA)) {
1465
1465
  e(this, s, ei).call(this), e(this, s, C).call(this);
1466
1466
  return;
1467
1467
  }
1468
1468
  e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, I).call(this);
1469
1469
  });
1470
1470
  n(this, Ue, () => {
1471
- r(this, S, null), r(this, $, !1), r(this, N, !1), r(this, K, !1), r(this, G, !1), r(this, J, t(this, J) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, Kt).call(this, !0, !0), e(this, s, C).call(this), e(this, s, Pi).call(this);
1471
+ r(this, S, null), r(this, $, !1), r(this, N, !1), r(this, Z, !1), r(this, K, !1), r(this, G, t(this, G) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, Kt).call(this, !0, !0), e(this, s, C).call(this), e(this, s, Pi).call(this);
1472
1472
  });
1473
1473
  n(this, Ye, () => {
1474
1474
  t(this, V).call(this), e(this, s, I).call(this);
@@ -1555,10 +1555,10 @@ class bi extends HTMLElement {
1555
1555
  e(this, s, $s).call(this, "fullscreen", i);
1556
1556
  }
1557
1557
  connectedCallback() {
1558
- r(this, h, t(this, b).querySelector("[data-sp-player]")), r(this, o, t(this, b).querySelector("[data-sp-video]")), r(this, Y, t(this, b).querySelector("[data-sp-button]")), r(this, m, t(this, b).querySelector("[data-sp-progress-track]")), r(this, X, t(this, b).querySelector("[data-sp-control-tray]")), r(this, j, t(this, b).querySelector("[data-sp-control-tray-slots]")), r(this, Js, t(this, b).querySelector("[data-sp-tray-time]")), r(this, L, t(this, b).querySelector("[data-sp-tray-time-text]")), r(this, es, t(this, b).querySelector("[data-sp-time]")), r(this, ks, t(this, b).querySelector("[data-sp-time-text]")), r(this, w, t(this, b).querySelector("[data-sp-volume-control]")), r(this, O, t(this, b).querySelector("[data-sp-volume-popover]")), r(this, T, t(this, b).querySelector("[data-sp-volume-track]")), r(this, it, t(this, b).querySelector("[data-sp-picture-in-picture-control]")), r(this, rt, t(this, b).querySelector("[data-sp-fullscreen-control]")), r(this, Z, [t(this, w), t(this, it), t(this, rt)]), e(this, s, We).call(this), t(this, ss) || (e(this, s, vi).call(this), r(this, ss, !0)), e(this, s, ms).call(this), e(this, s, Us).call(this), e(this, s, je).call(this), e(this, s, Ns).call(this), t(this, z).call(this), t(this, V).call(this), t(this, At).call(this), t(this, Wt).call(this), e(this, s, C).call(this);
1558
+ r(this, h, t(this, b).querySelector("[data-sp-player]")), r(this, o, t(this, b).querySelector("[data-sp-video]")), r(this, Y, t(this, b).querySelector("[data-sp-button]")), r(this, m, t(this, b).querySelector("[data-sp-progress-track]")), r(this, X, t(this, b).querySelector("[data-sp-control-tray]")), r(this, j, t(this, b).querySelector("[data-sp-control-tray-slots]")), r(this, Js, t(this, b).querySelector("[data-sp-tray-time]")), r(this, L, t(this, b).querySelector("[data-sp-tray-time-text]")), r(this, es, t(this, b).querySelector("[data-sp-time]")), r(this, ks, t(this, b).querySelector("[data-sp-time-text]")), r(this, w, t(this, b).querySelector("[data-sp-volume-control]")), r(this, O, t(this, b).querySelector("[data-sp-volume-popover]")), r(this, T, t(this, b).querySelector("[data-sp-volume-track]")), r(this, et, t(this, b).querySelector("[data-sp-picture-in-picture-control]")), r(this, it, t(this, b).querySelector("[data-sp-fullscreen-control]")), r(this, rt, [t(this, w), t(this, et), t(this, it)]), e(this, s, We).call(this), t(this, ss) || (e(this, s, vi).call(this), r(this, ss, !0)), e(this, s, ms).call(this), e(this, s, Us).call(this), e(this, s, je).call(this), e(this, s, Ns).call(this), t(this, z).call(this), t(this, V).call(this), t(this, At).call(this), t(this, Wt).call(this), e(this, s, C).call(this);
1559
1559
  }
1560
1560
  disconnectedCallback() {
1561
- t(this, H)?.disconnect(), r(this, H, null), t(this, St).forEach((i) => i()), r(this, St, []), r(this, ss, !1), e(this, s, U).call(this), e(this, s, Je).call(this), e(this, s, gs).call(this), e(this, s, Ws).call(this), e(this, s, Ft).call(this), e(this, s, ys).call(this), e(this, s, xs).call(this), e(this, s, Qe).call(this), e(this, s, _s).call(this), t(this, h).classList.remove("is-volume-icon-animating"), t(this, j).style.removeProperty("--sp-control-hover-offset"), this.style.removeProperty("--sp-touch-control-hover-offset"), e(this, s, Jt).call(this), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, W, !1), r(this, ct, !1), r(this, Q, !1), r(this, x, null), t(this, w).classList.remove("is-volume-open"), t(this, Z).forEach((i) => i.classList.remove("is-control-tap-active")), t(this, h).classList.remove("is-pointer-active"), e(this, s, Qt).call(this);
1561
+ t(this, H)?.disconnect(), r(this, H, null), t(this, St).forEach((i) => i()), r(this, St, []), r(this, ss, !1), e(this, s, U).call(this), e(this, s, Je).call(this), e(this, s, gs).call(this), e(this, s, Ws).call(this), e(this, s, Ft).call(this), e(this, s, ys).call(this), e(this, s, xs).call(this), e(this, s, Qe).call(this), e(this, s, _s).call(this), t(this, h).classList.remove("is-volume-icon-animating"), t(this, j).style.removeProperty("--sp-control-hover-offset"), this.style.removeProperty("--sp-touch-control-hover-offset"), e(this, s, Jt).call(this), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, W, !1), r(this, ct, !1), r(this, J, !1), r(this, x, null), t(this, w).classList.remove("is-volume-open"), t(this, rt).forEach((i) => i.classList.remove("is-control-tap-active")), t(this, h).classList.remove("is-pointer-active"), e(this, s, Qt).call(this);
1562
1562
  }
1563
1563
  attributeChangedCallback(i, a, l) {
1564
1564
  if (a !== l) {
@@ -1586,7 +1586,7 @@ class bi extends HTMLElement {
1586
1586
  }
1587
1587
  }
1588
1588
  }
1589
- b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B = new WeakMap(), h = new WeakMap(), o = new WeakMap(), Y = new WeakMap(), m = new WeakMap(), X = new WeakMap(), j = new WeakMap(), Js = new WeakMap(), L = new WeakMap(), es = new WeakMap(), ks = new WeakMap(), w = new WeakMap(), O = new WeakMap(), T = new WeakMap(), it = new WeakMap(), rt = new WeakMap(), Z = new WeakMap(), vt = new WeakMap(), g = new WeakMap(), R = new WeakMap(), ot = new WeakMap(), F = new WeakMap(), Mt = new WeakMap(), nt = new WeakMap(), Vt = new WeakMap(), _ = new WeakMap(), gt = new WeakMap(), is = new WeakMap(), zt = new WeakMap(), P = new WeakMap(), S = new WeakMap(), rs = new WeakMap(), at = new WeakMap(), yt = new WeakMap(), wt = new WeakMap(), lt = new WeakMap(), Ps = new WeakMap(), os = new WeakMap(), It = new WeakMap(), $ = new WeakMap(), N = new WeakMap(), K = new WeakMap(), G = new WeakMap(), J = new WeakMap(), Rt = new WeakMap(), xt = new WeakMap(), Ts = new WeakMap(), Dt = new WeakMap(), Es = new WeakMap(), Cs = new WeakMap(), kt = new WeakMap(), D = new WeakMap(), ht = new WeakMap(), qt = new WeakMap(), M = new WeakMap(), y = new WeakMap(), Q = new WeakMap(), ns = new WeakMap(), as = new WeakMap(), Ht = new WeakMap(), W = new WeakMap(), ct = new WeakMap(), x = new WeakMap(), Pt = new WeakMap(), Tt = new WeakMap(), Et = new WeakMap(), ls = new WeakMap(), hs = new WeakMap(), Ct = new WeakMap(), Qs = new WeakMap(), te = new WeakMap(), cs = new WeakMap(), se = new WeakMap(), ee = new WeakMap(), As = new WeakMap(), Bt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), $t = new WeakMap(), he = new WeakMap(), ce = new WeakMap(), s = new WeakSet(), Bs = function(i, a) {
1589
+ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B = new WeakMap(), h = new WeakMap(), o = new WeakMap(), Y = new WeakMap(), m = new WeakMap(), X = new WeakMap(), j = new WeakMap(), Js = new WeakMap(), L = new WeakMap(), es = new WeakMap(), ks = new WeakMap(), w = new WeakMap(), O = new WeakMap(), T = new WeakMap(), et = new WeakMap(), it = new WeakMap(), rt = new WeakMap(), vt = new WeakMap(), g = new WeakMap(), R = new WeakMap(), ot = new WeakMap(), F = new WeakMap(), Mt = new WeakMap(), nt = new WeakMap(), Vt = new WeakMap(), _ = new WeakMap(), gt = new WeakMap(), is = new WeakMap(), zt = new WeakMap(), P = new WeakMap(), S = new WeakMap(), rs = new WeakMap(), at = new WeakMap(), yt = new WeakMap(), wt = new WeakMap(), lt = new WeakMap(), Ps = new WeakMap(), os = new WeakMap(), It = new WeakMap(), $ = new WeakMap(), N = new WeakMap(), Z = new WeakMap(), K = new WeakMap(), G = new WeakMap(), Rt = new WeakMap(), xt = new WeakMap(), Ts = new WeakMap(), Dt = new WeakMap(), Es = new WeakMap(), Cs = new WeakMap(), kt = new WeakMap(), D = new WeakMap(), ht = new WeakMap(), qt = new WeakMap(), M = new WeakMap(), y = new WeakMap(), J = new WeakMap(), ns = new WeakMap(), as = new WeakMap(), Ht = new WeakMap(), W = new WeakMap(), ct = new WeakMap(), x = new WeakMap(), Pt = new WeakMap(), Tt = new WeakMap(), Et = new WeakMap(), ls = new WeakMap(), hs = new WeakMap(), Ct = new WeakMap(), Qs = new WeakMap(), te = new WeakMap(), cs = new WeakMap(), se = new WeakMap(), ee = new WeakMap(), As = new WeakMap(), Bt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), $t = new WeakMap(), he = new WeakMap(), ce = new WeakMap(), s = new WeakSet(), Bs = function(i, a) {
1590
1590
  if (a === "") {
1591
1591
  this.removeAttribute(i);
1592
1592
  return;
@@ -1612,8 +1612,8 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1612
1612
  if (!t(this, h)) return;
1613
1613
  const i = [
1614
1614
  { button: t(this, w), enabled: this.volumeEnabled, className: "has-volume-control" },
1615
- { button: t(this, it), enabled: this.pictureInPictureEnabled, className: "has-picture-in-picture-control" },
1616
- { button: t(this, rt), enabled: this.fullscreenEnabled, className: "has-fullscreen-control" }
1615
+ { button: t(this, et), enabled: this.pictureInPictureEnabled, className: "has-picture-in-picture-control" },
1616
+ { button: t(this, it), enabled: this.fullscreenEnabled, className: "has-fullscreen-control" }
1617
1617
  ];
1618
1618
  let a = 0;
1619
1619
  for (const l of i)
@@ -1624,17 +1624,14 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1624
1624
  }, Ns = function() {
1625
1625
  t(this, h) && (t(this, h).classList.toggle("has-pinned-time", t(this, s, jt)), t(this, s, jt) && e(this, s, Gt).call(this));
1626
1626
  }, vi = function() {
1627
- e(this, s, c).call(this, t(this, Y), "click", t(this, fe)), e(this, s, c).call(this, this, "pointerenter", t(this, Ut)), e(this, s, c).call(this, this, "pointermove", t(this, Yt)), e(this, s, c).call(this, this, "pointerleave", t(this, Xt)), e(this, s, c).call(this, this, "mouseenter", t(this, Ut)), e(this, s, c).call(this, this, "mousemove", t(this, Yt)), e(this, s, c).call(this, this, "mouseleave", t(this, Xt)), e(this, s, c).call(this, t(this, h), "pointerenter", t(this, Ut)), e(this, s, c).call(this, t(this, h), "pointermove", t(this, Yt)), e(this, s, c).call(this, t(this, h), "pointerleave", t(this, Xt)), e(this, s, c).call(this, t(this, h), "mouseenter", t(this, Ut)), e(this, s, c).call(this, t(this, h), "mousemove", t(this, Yt)), e(this, s, c).call(this, t(this, h), "mouseleave", t(this, Xt)), e(this, s, c).call(this, t(this, Y), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, Y), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, Y), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, Y), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "pointerenter", t(this, Ds)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, qs)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, Ds)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, qs)), e(this, s, c).call(this, t(this, X), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, X), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, X), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, X), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, b), "focusin", t(this, Fs)), e(this, s, c).call(this, t(this, b), "focusout", t(this, pe)), e(this, s, c).call(this, t(this, h), "pointerdown", t(this, be)), e(this, s, c).call(this, t(this, h), "dragstart", t(this, Nt)), e(this, s, c).call(this, t(this, h), "selectstart", t(this, Nt)), e(this, s, c).call(this, t(this, o), "dragstart", t(this, Nt)), e(this, s, c).call(this, t(this, o), "selectstart", t(this, Nt)), e(this, s, c).call(this, t(this, m), "pointerdown", t(this, Ce)), e(this, s, c).call(this, t(this, m), "pointermove", t(this, Le)), e(this, s, c).call(this, t(this, m), "pointerup", t(this, Fe)), e(this, s, c).call(this, t(this, m), "pointercancel", t(this, Se)), e(this, s, c).call(this, t(this, m), "keydown", t(this, Ae)), e(this, s, c).call(this, t(this, w), "click", t(this, ge)), e(this, s, c).call(this, t(this, w), "pointerenter", t(this, Is)), e(this, s, c).call(this, t(this, w), "pointerleave", t(this, Rs)), e(this, s, c).call(this, t(this, O), "pointerenter", t(this, Is)), e(this, s, c).call(this, t(this, O), "pointerleave", t(this, Rs)), e(this, s, c).call(this, t(this, T), "pointerdown", t(this, ye)), e(this, s, c).call(this, t(this, T), "pointermove", t(this, we)), e(this, s, c).call(this, t(this, T), "pointerup", t(this, xe)), e(this, s, c).call(this, t(this, T), "pointercancel", t(this, ke)), e(this, s, c).call(this, t(this, T), "click", t(this, ve)), e(this, s, c).call(this, t(this, T), "keydown", t(this, Pe)), e(this, s, c).call(this, t(this, it), "click", t(this, Te)), e(this, s, c).call(this, t(this, rt), "click", t(this, Ee)), e(this, s, c).call(this, t(this, L), "click", t(this, me));
1628
- for (const i of t(this, Z))
1629
- e(this, s, c).call(this, i, "pointerenter", t(this, Ss)), e(this, s, c).call(this, i, "mouseenter", t(this, Ss));
1627
+ e(this, s, c).call(this, t(this, Y), "click", t(this, fe)), e(this, s, c).call(this, this, "pointerenter", t(this, Ut)), e(this, s, c).call(this, this, "pointermove", t(this, Yt)), e(this, s, c).call(this, this, "pointerleave", t(this, Xt)), e(this, s, c).call(this, this, "mouseenter", t(this, Ut)), e(this, s, c).call(this, this, "mousemove", t(this, Yt)), e(this, s, c).call(this, this, "mouseleave", t(this, Xt)), e(this, s, c).call(this, t(this, h), "pointerenter", t(this, Ut)), e(this, s, c).call(this, t(this, h), "pointermove", t(this, Yt)), e(this, s, c).call(this, t(this, h), "pointerleave", t(this, Xt)), e(this, s, c).call(this, t(this, h), "mouseenter", t(this, Ut)), e(this, s, c).call(this, t(this, h), "mousemove", t(this, Yt)), e(this, s, c).call(this, t(this, h), "mouseleave", t(this, Xt)), e(this, s, c).call(this, t(this, Y), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, Y), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, Y), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, Y), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "pointerenter", t(this, Ds)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, qs)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, Ds)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, qs)), e(this, s, c).call(this, t(this, X), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, X), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, X), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, X), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, b), "focusin", t(this, Fs)), e(this, s, c).call(this, t(this, b), "focusout", t(this, pe)), e(this, s, c).call(this, t(this, h), "pointerdown", t(this, be)), e(this, s, c).call(this, t(this, h), "dragstart", t(this, Nt)), e(this, s, c).call(this, t(this, h), "selectstart", t(this, Nt)), e(this, s, c).call(this, t(this, o), "dragstart", t(this, Nt)), e(this, s, c).call(this, t(this, o), "selectstart", t(this, Nt)), e(this, s, c).call(this, t(this, m), "pointerdown", t(this, Ce)), e(this, s, c).call(this, t(this, m), "pointermove", t(this, Le)), e(this, s, c).call(this, t(this, m), "pointerup", t(this, Fe)), e(this, s, c).call(this, t(this, m), "pointercancel", t(this, Se)), e(this, s, c).call(this, t(this, m), "keydown", t(this, Ae)), e(this, s, c).call(this, t(this, w), "pointerenter", t(this, Is)), e(this, s, c).call(this, t(this, w), "pointerleave", t(this, Rs)), e(this, s, c).call(this, t(this, w), "click", t(this, ge)), e(this, s, c).call(this, t(this, O), "pointerenter", t(this, Is)), e(this, s, c).call(this, t(this, O), "pointerleave", t(this, Rs)), e(this, s, c).call(this, t(this, T), "pointerdown", t(this, ye)), e(this, s, c).call(this, t(this, T), "pointermove", t(this, we)), e(this, s, c).call(this, t(this, T), "pointerup", t(this, xe)), e(this, s, c).call(this, t(this, T), "pointercancel", t(this, ke)), e(this, s, c).call(this, t(this, T), "click", t(this, ve)), e(this, s, c).call(this, t(this, T), "keydown", t(this, Pe)), e(this, s, c).call(this, t(this, et), "click", t(this, Te)), e(this, s, c).call(this, t(this, it), "click", t(this, Ee)), e(this, s, c).call(this, t(this, L), "click", t(this, me));
1628
+ for (const i of t(this, rt))
1629
+ e(this, s, c).call(this, i, "pointerenter", t(this, Ss)), e(this, s, c).call(this, i, "mouseenter", t(this, Ss)), e(this, s, c).call(this, i, "pointerdown", t(this, de));
1630
1630
  "ResizeObserver" in window && (r(this, It, new ResizeObserver(() => {
1631
1631
  t(this, h).style.setProperty("--sp-tray-time-width", `${t(this, L).offsetWidth + 4}px`);
1632
1632
  })), t(this, It).observe(t(this, L)), t(this, St).push(() => {
1633
1633
  t(this, It)?.disconnect(), r(this, It, null);
1634
- }));
1635
- for (const i of t(this, Z))
1636
- e(this, s, c).call(this, i, "pointerdown", t(this, de));
1637
- e(this, s, c).call(this, document, "pointerup", t(this, Me)), e(this, s, c).call(this, document, "pointercancel", t(this, Ve)), e(this, s, c).call(this, document, "pointermove", t(this, Ls)), e(this, s, c).call(this, document, "mousemove", t(this, Ls)), e(this, s, c).call(this, document, "fullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "webkitfullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "mozfullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "MSFullscreenChange", t(this, Lt)), e(this, s, c).call(this, t(this, b), "fullscreenchange", t(this, Lt)), e(this, s, c).call(this, window, "blur", t(this, ze)), e(this, s, c).call(this, window, "focus", t(this, Ie)), e(this, s, c).call(this, t(this, o), "play", t(this, Re)), e(this, s, c).call(this, t(this, o), "pause", t(this, De)), e(this, s, c).call(this, t(this, o), "ended", t(this, qe)), e(this, s, c).call(this, t(this, o), "loadstart", t(this, He)), e(this, s, c).call(this, t(this, o), "waiting", t(this, ps)), e(this, s, c).call(this, t(this, o), "stalled", t(this, ps)), e(this, s, c).call(this, t(this, o), "seeking", t(this, ps)), e(this, s, c).call(this, t(this, o), "loadeddata", t(this, _t)), e(this, s, c).call(this, t(this, o), "loadedmetadata", t(this, Be)), e(this, s, c).call(this, t(this, o), "canplay", t(this, _t)), e(this, s, c).call(this, t(this, o), "canplaythrough", t(this, _t)), e(this, s, c).call(this, t(this, o), "playing", t(this, $e)), e(this, s, c).call(this, t(this, o), "seeked", t(this, Ne)), e(this, s, c).call(this, t(this, o), "error", t(this, Ue)), e(this, s, c).call(this, t(this, o), "progress", t(this, z)), e(this, s, c).call(this, t(this, o), "suspend", t(this, z)), e(this, s, c).call(this, t(this, o), "timeupdate", t(this, Ye)), e(this, s, c).call(this, t(this, o), "volumechange", t(this, Xe)), e(this, s, c).call(this, t(this, o), "enterpictureinpicture", t(this, At)), e(this, s, c).call(this, t(this, o), "leavepictureinpicture", t(this, At));
1634
+ })), e(this, s, c).call(this, document, "pointerup", t(this, Me)), e(this, s, c).call(this, document, "pointercancel", t(this, Ve)), e(this, s, c).call(this, document, "pointermove", t(this, Ls)), e(this, s, c).call(this, document, "mousemove", t(this, Ls)), e(this, s, c).call(this, document, "fullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "webkitfullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "mozfullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "MSFullscreenChange", t(this, Lt)), e(this, s, c).call(this, t(this, b), "fullscreenchange", t(this, Lt)), e(this, s, c).call(this, window, "blur", t(this, ze)), e(this, s, c).call(this, window, "focus", t(this, Ie)), e(this, s, c).call(this, t(this, o), "play", t(this, Re)), e(this, s, c).call(this, t(this, o), "pause", t(this, De)), e(this, s, c).call(this, t(this, o), "ended", t(this, qe)), e(this, s, c).call(this, t(this, o), "loadstart", t(this, He)), e(this, s, c).call(this, t(this, o), "waiting", t(this, ps)), e(this, s, c).call(this, t(this, o), "stalled", t(this, ps)), e(this, s, c).call(this, t(this, o), "seeking", t(this, ps)), e(this, s, c).call(this, t(this, o), "loadeddata", t(this, _t)), e(this, s, c).call(this, t(this, o), "loadedmetadata", t(this, Be)), e(this, s, c).call(this, t(this, o), "canplay", t(this, _t)), e(this, s, c).call(this, t(this, o), "canplaythrough", t(this, _t)), e(this, s, c).call(this, t(this, o), "playing", t(this, $e)), e(this, s, c).call(this, t(this, o), "seeked", t(this, Ne)), e(this, s, c).call(this, t(this, o), "error", t(this, Ue)), e(this, s, c).call(this, t(this, o), "progress", t(this, z)), e(this, s, c).call(this, t(this, o), "suspend", t(this, z)), e(this, s, c).call(this, t(this, o), "timeupdate", t(this, Ye)), e(this, s, c).call(this, t(this, o), "volumechange", t(this, Xe)), e(this, s, c).call(this, t(this, o), "enterpictureinpicture", t(this, At)), e(this, s, c).call(this, t(this, o), "leavepictureinpicture", t(this, At));
1638
1635
  }, c = function(i, a, l) {
1639
1636
  i.addEventListener(a, l), t(this, St).push(() => i.removeEventListener(a, l));
1640
1637
  }, Us = function() {
@@ -1651,16 +1648,16 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1651
1648
  t(this, yt) && (window.clearTimeout(t(this, yt)), r(this, yt, 0));
1652
1649
  }, ue = new WeakMap(), fs = function(i = e(this, s, A).call(this) ? t(this, As) : t(this, Bt)) {
1653
1650
  e(this, s, U).call(this), r(this, yt, window.setTimeout(t(this, ue), i));
1654
- }, tt = function() {
1651
+ }, Q = function() {
1655
1652
  e(this, s, A).call(this) && e(this, s, fs).call(this, t(this, As));
1656
- }, st = function() {
1653
+ }, tt = function() {
1657
1654
  if (!e(this, s, A).call(this)) return !1;
1658
1655
  const i = t(this, h).classList.contains("is-controls-visible");
1659
- return t(this, h).classList.add("is-controls-visible"), e(this, s, tt).call(this), !i;
1656
+ return t(this, h).classList.add("is-controls-visible"), e(this, s, Q).call(this), !i;
1660
1657
  }, Ys = function(i = !1) {
1661
- !i && e(this, s, A).call(this) || (t(this, h).classList.add("is-pointer-active"), t(this, Q) ? e(this, s, U).call(this) : e(this, s, fs).call(this, i ? t(this, Bt) : void 0));
1658
+ !i && e(this, s, A).call(this) || (t(this, h).classList.add("is-pointer-active"), t(this, J) ? e(this, s, U).call(this) : e(this, s, fs).call(this, i ? t(this, Bt) : void 0));
1662
1659
  }, bs = function() {
1663
- r(this, Q, !1), e(this, s, U).call(this), t(this, h).classList.remove("is-pointer-active");
1660
+ r(this, J, !1), e(this, s, U).call(this), t(this, h).classList.remove("is-pointer-active");
1664
1661
  }, Ot = function(i) {
1665
1662
  return i instanceof PointerEvent ? (r(this, Ht, i.pointerType === "touch"), t(this, Ht) ? !1 : (r(this, ns, i.clientX), r(this, as, i.clientY), !0)) : i instanceof MouseEvent ? (r(this, Ht, !1), r(this, ns, i.clientX), r(this, as, i.clientY), !0) : !1;
1666
1663
  }, gi = function(i, a) {
@@ -1676,7 +1673,7 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1676
1673
  }, Ke = function(i, a) {
1677
1674
  if (e(this, s, A).call(this)) return;
1678
1675
  !e(this, s, E).call(this) && e(this, s, Oe).call(this, t(this, m), i, a) ? (r(this, M, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, bt).call(this, i, !1, !1)) : e(this, s, E).call(this) || e(this, s, Ze).call(this);
1679
- const l = t(this, Z).find((f) => !f.hidden && !e(this, s, Xs).call(this, f) && e(this, s, Oe).call(this, f, i, a)) ?? null;
1676
+ const l = t(this, rt).find((f) => !f.hidden && !e(this, s, Xs).call(this, f) && e(this, s, Oe).call(this, f, i, a)) ?? null;
1680
1677
  if (!l) return;
1681
1678
  const u = Number(l.dataset.spControlIndex ?? 0);
1682
1679
  t(this, j).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${u})`);
@@ -1713,7 +1710,7 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1713
1710
  }, dt = async function() {
1714
1711
  if (t(this, B)) return;
1715
1712
  const i = t(this, o).dataset.src || this.src;
1716
- i && (e(this, s, gs).call(this), e(this, s, ys).call(this), r(this, rs, t(this, rs) + 1), r(this, B, !0), r(this, $, !1), r(this, N, !1), r(this, K, !1), r(this, G, !1), r(this, J, t(this, J) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, ms).call(this), t(this, o).src = i, t(this, o).preload = "auto", t(this, o).load(), t(this, o).autoplay && t(this, o).muted && await t(this, o).play().catch(() => {
1713
+ i && (e(this, s, gs).call(this), e(this, s, ys).call(this), r(this, rs, t(this, rs) + 1), r(this, B, !0), r(this, $, !1), r(this, N, !1), r(this, Z, !1), r(this, K, !1), r(this, G, t(this, G) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, ms).call(this), t(this, o).src = i, t(this, o).preload = "auto", t(this, o).load(), t(this, o).autoplay && t(this, o).muted && await t(this, o).play().catch(() => {
1717
1714
  }));
1718
1715
  }, ti = function() {
1719
1716
  return !t(this, o).loop || t(this, o).paused || !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0 ? !1 : t(this, o).currentTime < 0.28 || t(this, o).duration - t(this, o).currentTime < 0.28;
@@ -1758,22 +1755,22 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1758
1755
  return t(this, R) || t(this, g) || t(this, _);
1759
1756
  }, Pi = function() {
1760
1757
  t(this, rs) >= t(this, ae) || t(this, at) || r(this, at, window.setTimeout(() => {
1761
- r(this, at, 0), e(this, s, ys).call(this), r(this, B, !1), r(this, $, !1), r(this, N, !1), r(this, K, !1), r(this, G, !1), r(this, J, t(this, J) + 1), t(this, h).classList.remove("has-visible-frame"), t(this, h).classList.contains("has-loaded-once") || e(this, s, ft).call(this, 0), t(this, o).removeAttribute("src"), t(this, o).load(), e(this, s, dt).call(this);
1758
+ r(this, at, 0), e(this, s, ys).call(this), r(this, B, !1), r(this, $, !1), r(this, N, !1), r(this, Z, !1), r(this, K, !1), r(this, G, t(this, G) + 1), t(this, h).classList.remove("has-visible-frame"), t(this, h).classList.contains("has-loaded-once") || e(this, s, ft).call(this, 0), t(this, o).removeAttribute("src"), t(this, o).load(), e(this, s, dt).call(this);
1762
1759
  }, t(this, ne)));
1763
1760
  }, ei = function() {
1764
1761
  return t(this, _) ? (r(this, _, !1), r(this, gt, !1), e(this, s, k).call(this), e(this, s, I).call(this), !0) : !1;
1765
1762
  }, ii = function() {
1766
1763
  return e(this, s, gs).call(this), !t(this, h).classList.contains("has-loaded-once") && e(this, s, wi).call(this), t(this, h).classList.add("has-loaded-once"), t(this, h).classList.add("has-visible-frame"), t(this, z).call(this), r(this, S, null), t(this, _) ? (e(this, s, ei).call(this), !0) : (e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, I).call(this), !0);
1767
1764
  }, Ti = function() {
1768
- if (t(this, $) || t(this, K) || t(this, o).error) return;
1769
- r(this, K, !0);
1770
- const i = t(this, J), a = () => {
1771
- if (i === t(this, J)) {
1772
- if (e(this, s, ys).call(this), r(this, K, !1), r(this, $, !t(this, o).error && t(this, o).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && t(this, o).videoWidth > 0 && t(this, o).videoHeight > 0), t(this, $)) {
1773
- if (t(this, G) || t(this, N)) return;
1774
- r(this, G, !0), window.requestAnimationFrame(() => {
1765
+ if (t(this, $) || t(this, Z) || t(this, o).error) return;
1766
+ r(this, Z, !0);
1767
+ const i = t(this, G), a = () => {
1768
+ if (i === t(this, G)) {
1769
+ if (e(this, s, ys).call(this), r(this, Z, !1), r(this, $, !t(this, o).error && t(this, o).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && t(this, o).videoWidth > 0 && t(this, o).videoHeight > 0), t(this, $)) {
1770
+ if (t(this, K) || t(this, N)) return;
1771
+ r(this, K, !0), window.requestAnimationFrame(() => {
1775
1772
  window.requestAnimationFrame(() => {
1776
- i === t(this, J) && (r(this, G, !1), r(this, N, !0), e(this, s, ii).call(this), e(this, s, C).call(this));
1773
+ i === t(this, G) && (r(this, K, !1), r(this, N, !0), e(this, s, ii).call(this), e(this, s, C).call(this));
1777
1774
  });
1778
1775
  }), e(this, s, C).call(this);
1779
1776
  return;
@@ -1790,7 +1787,7 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1790
1787
  return !t(this, o).paused && (!t(this, o).ended || t(this, o).loop) && t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA;
1791
1788
  }, k = function(i = t(this, o).currentTime) {
1792
1789
  r(this, Es, Number.isFinite(i) ? Math.max(0, i) : 0), r(this, Cs, performance.now());
1793
- }, et = function() {
1790
+ }, st = function() {
1794
1791
  r(this, D, null), r(this, ht, null);
1795
1792
  }, oi = function() {
1796
1793
  if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) {
@@ -1919,7 +1916,7 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1919
1916
  }, Di = function() {
1920
1917
  return Gi();
1921
1918
  }, Wt = new WeakMap(), Lt = new WeakMap(), qi = function(i) {
1922
- e(this, s, U).call(this), e(this, s, xs).call(this), e(this, s, Zs).call(this, t(this, P)), e(this, s, js).call(this, t(this, x)), e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), r(this, Q, !1), r(this, ct, !1), r(this, W, !1), r(this, x, null), e(this, s, _s).call(this), t(this, Ms).call(this), t(this, j).style.removeProperty("--sp-control-hover-offset"), t(this, w).classList.remove("is-volume-open"), t(this, O).classList.remove("is-scrubbing-volume"), t(this, h).classList.remove("is-scrubbing"), t(this, h).classList.remove("is-pointer-active");
1919
+ e(this, s, U).call(this), e(this, s, xs).call(this), e(this, s, Zs).call(this, t(this, P)), e(this, s, js).call(this, t(this, x)), e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), r(this, J, !1), r(this, ct, !1), r(this, W, !1), r(this, x, null), e(this, s, _s).call(this), t(this, Ms).call(this), t(this, j).style.removeProperty("--sp-control-hover-offset"), t(this, w).classList.remove("is-volume-open"), t(this, O).classList.remove("is-scrubbing-volume"), t(this, h).classList.remove("is-scrubbing"), t(this, h).classList.remove("is-pointer-active");
1923
1920
  const a = t(this, b).activeElement;
1924
1921
  a instanceof HTMLElement && a.blur(), i ? e(this, s, Ge).call(this) : e(this, s, bs).call(this);
1925
1922
  }, zs = new WeakMap(), Zs = function(i) {
@@ -1927,9 +1924,9 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1927
1924
  }, li = async function(i, a, l) {
1928
1925
  if (!t(this, R) && !t(this, g)) return;
1929
1926
  const u = t(this, g);
1930
- e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), t(this, h).classList.remove("is-scrubbing"), e(this, s, Jt).call(this), e(this, s, Zs).call(this, a), l && i !== null && (e(this, s, et).call(this), r(this, F, e(this, s, bt).call(this, i, u)), r(this, _, !0), r(this, gt, t(this, ot)), t(this, o).currentTime = t(this, F), e(this, s, k).call(this, t(this, F))), e(this, s, I).call(this, t(this, F)), u && t(this, ot) && await t(this, o).play(), e(this, s, tt).call(this);
1927
+ e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), t(this, h).classList.remove("is-scrubbing"), e(this, s, Jt).call(this), e(this, s, Zs).call(this, a), l && i !== null && (e(this, s, st).call(this), r(this, F, e(this, s, bt).call(this, i, u)), r(this, _, !0), r(this, gt, t(this, ot)), t(this, o).currentTime = t(this, F), e(this, s, k).call(this, t(this, F))), e(this, s, I).call(this, t(this, F)), u && t(this, ot) && await t(this, o).play(), e(this, s, Q).call(this);
1931
1928
  }, Ks = function(i) {
1932
- !t(this, R) && !t(this, g) || (e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), t(this, h).classList.remove("is-scrubbing"), e(this, s, Jt).call(this), e(this, s, Zs).call(this, i), e(this, s, k).call(this), e(this, s, I).call(this), t(this, ot) && t(this, o).play(), e(this, s, tt).call(this));
1929
+ !t(this, R) && !t(this, g) || (e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), t(this, h).classList.remove("is-scrubbing"), e(this, s, Jt).call(this), e(this, s, Zs).call(this, i), e(this, s, k).call(this), e(this, s, I).call(this), t(this, ot) && t(this, o).play(), e(this, s, Q).call(this));
1933
1930
  }, Gs = function(i) {
1934
1931
  if (!t(this, hs)) return q(i);
1935
1932
  const a = Number.isFinite(t(this, o).duration) ? t(this, o).duration : 0;
@@ -1949,7 +1946,7 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B
1949
1946
  }, Is = new WeakMap(), Rs = new WeakMap(), ge = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), ke = new WeakMap(), Pe = new WeakMap(), Te = new WeakMap(), Ee = new WeakMap(), Ds = new WeakMap(), qs = new WeakMap(), Ce = new WeakMap(), Ae = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Se = new WeakMap(), Me = new WeakMap(), Ve = new WeakMap(), ze = new WeakMap(), Ie = new WeakMap(), Re = new WeakMap(), De = new WeakMap(), qe = new WeakMap(), He = new WeakMap(), ps = new WeakMap(), Be = new WeakMap(), $e = new WeakMap(), Ne = new WeakMap(), Ue = new WeakMap(), Ye = new WeakMap(), Xe = new WeakMap(), A = function() {
1950
1947
  return window.matchMedia("(max-width: 768px)").matches && window.matchMedia("(hover: none), (pointer: coarse)").matches;
1951
1948
  }, $i = function() {
1952
- t(this, o) && (t(this, H)?.disconnect(), r(this, H, null), e(this, s, gs).call(this), e(this, s, Ws).call(this), r(this, B, !1), r(this, rs, 0), r(this, $, !1), r(this, N, !1), r(this, K, !1), r(this, G, !1), r(this, J, t(this, J) + 1), r(this, xt, !1), r(this, kt, 0), e(this, s, et).call(this), r(this, y, !0), r(this, _, !1), r(this, gt, !1), r(this, S, null), t(this, h).classList.remove("has-loaded-once", "has-visible-frame", "is-progress-settling"), t(this, o).dataset.src = this.src, t(this, o).pause(), t(this, o).removeAttribute("src"), t(this, o).preload = "none", e(this, s, ms).call(this), t(this, o).load(), e(this, s, ft).call(this, 0), t(this, V).call(this), t(this, z).call(this), e(this, s, C).call(this));
1949
+ t(this, o) && (t(this, H)?.disconnect(), r(this, H, null), e(this, s, gs).call(this), e(this, s, Ws).call(this), r(this, B, !1), r(this, rs, 0), r(this, $, !1), r(this, N, !1), r(this, Z, !1), r(this, K, !1), r(this, G, t(this, G) + 1), r(this, xt, !1), r(this, kt, 0), e(this, s, st).call(this), r(this, y, !0), r(this, _, !1), r(this, gt, !1), r(this, S, null), t(this, h).classList.remove("has-loaded-once", "has-visible-frame", "is-progress-settling"), t(this, o).dataset.src = this.src, t(this, o).pause(), t(this, o).removeAttribute("src"), t(this, o).preload = "none", e(this, s, ms).call(this), t(this, o).load(), e(this, s, ft).call(this, 0), t(this, V).call(this), t(this, z).call(this), e(this, s, C).call(this));
1953
1950
  }, di(bi, "observedAttributes", _i);
1954
1951
  customElements.get("simple-player") || customElements.define("simple-player", bi);
1955
1952
  export {