@grizzshutsdown/simpleplayer 0.1.1 → 0.1.3

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.
@@ -1,13 +1,84 @@
1
- var Pi = Object.defineProperty;
2
- var Ke = (m) => {
3
- throw TypeError(m);
1
+ var Ni = Object.defineProperty;
2
+ var ui = (d) => {
3
+ throw TypeError(d);
4
4
  };
5
- var Ei = (m, b, i) => b in m ? Pi(m, b, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[b] = i;
6
- var Ge = (m, b, i) => Ei(m, typeof b != "symbol" ? b + "" : b, i), Ve = (m, b, i) => b.has(m) || Ke("Cannot " + i);
7
- var t = (m, b, i) => (Ve(m, b, "read from private field"), i ? i.call(m) : b.get(m)), n = (m, b, i) => b.has(m) ? Ke("Cannot add the same private member more than once") : b instanceof WeakSet ? b.add(m) : b.set(m, i), o = (m, b, i, a) => (Ve(m, b, "write to private field"), a ? a.call(m, i) : b.set(m, i), i), e = (m, b, i) => (Ve(m, b, "access private method"), i);
8
- const Je = "16 / 9", Ti = "360px 0px", Ci = `
5
+ var Ui = (d, p, i) => p in d ? Ni(d, p, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[p] = i;
6
+ var pi = (d, p, i) => Ui(d, typeof p != "symbol" ? p + "" : p, i), Xe = (d, p, i) => p.has(d) || ui("Cannot " + i);
7
+ var t = (d, p, i) => (Xe(d, p, "read from private field"), i ? i.call(d) : p.get(d)), n = (d, p, i) => p.has(d) ? ui("Cannot add the same private member more than once") : p instanceof WeakSet ? p.add(d) : p.set(d, i), r = (d, p, i, a) => (Xe(d, p, "write to private field"), a ? a.call(d, i) : p.set(d, i), i), e = (d, p, i) => (Xe(d, p, "access private method"), i);
8
+ const di = "16 / 9", Yi = "360px 0px", Xi = [
9
+ "src",
10
+ "aspect-ratio",
11
+ "preload-margin",
12
+ "controls",
13
+ "disable-autoplay",
14
+ "enable-volume",
15
+ "disable-volume",
16
+ "disable-volume-slider",
17
+ "enable-picture-in-picture",
18
+ "disable-picture-in-picture",
19
+ "enable-fullscreen",
20
+ "disable-fullscreen",
21
+ "show-time",
22
+ "no-autoplay",
23
+ "no-volume",
24
+ "no-volume-slider",
25
+ "no-picture-in-picture",
26
+ "no-fullscreen"
27
+ ];
28
+ function _i(d) {
29
+ const p = document;
30
+ return d.fullscreenElement || document.fullscreenElement || p.webkitFullscreenElement || p.mozFullScreenElement || p.msFullscreenElement || null;
31
+ }
32
+ function Wi(d, p, i) {
33
+ const a = document, l = p, u = i, f = !!((document.fullscreenEnabled ?? a.webkitFullscreenEnabled ?? a.mozFullScreenEnabled ?? a.msFullscreenEnabled ?? !1) && (l.requestFullscreen || l.webkitRequestFullscreen || l.mozRequestFullScreen || l.msRequestFullscreen)), v = !!(u.webkitSupportsFullscreen || u.webkitEnterFullscreen || u.webkitEnterFullScreen);
34
+ return !!(d && (f || v));
35
+ }
36
+ function ji(d) {
37
+ const p = d, i = p.requestFullscreen || p.webkitRequestFullscreen || p.mozRequestFullScreen || p.msRequestFullscreen;
38
+ return Promise.resolve(i?.call(p));
39
+ }
40
+ function Zi(d) {
41
+ const p = d;
42
+ return typeof p.requestFullscreen == "function" || typeof p.webkitRequestFullscreen == "function" || typeof p.mozRequestFullScreen == "function" || typeof p.msRequestFullscreen == "function";
43
+ }
44
+ function Oi(d) {
45
+ const p = d;
46
+ (p.webkitEnterFullscreen || p.webkitEnterFullScreen)?.call(p);
47
+ }
48
+ function Ki() {
49
+ const d = document, p = document.exitFullscreen || d.webkitExitFullscreen || d.mozCancelFullScreen || d.msExitFullscreen;
50
+ return Promise.resolve(p?.call(d));
51
+ }
52
+ function q(d) {
53
+ if (!Number.isFinite(d) || d < 0) return "0:00";
54
+ const p = Math.floor(d), i = p % 60, a = Math.floor(p / 60), l = a % 60, u = Math.floor(a / 60);
55
+ return u > 0 ? u + ":" + String(l).padStart(2, "0") + ":" + String(i).padStart(2, "0") : l + ":" + String(i).padStart(2, "0");
56
+ }
57
+ function Gi(d, p) {
58
+ const i = d;
59
+ if (i.audioTracks && typeof i.audioTracks.length == "number")
60
+ return i.audioTracks.length > 0;
61
+ const a = d;
62
+ if (typeof a.mozHasAudio == "boolean")
63
+ return a.mozHasAudio;
64
+ const l = d;
65
+ return typeof l.webkitAudioDecodedByteCount == "number" && d.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !d.muted && d.currentTime > 0.25 ? l.webkitAudioDecodedByteCount > 0 : p;
66
+ }
67
+ function ci(d) {
68
+ const p = Math.min(2, Math.max(0, d.width / 2)), i = Math.max(1, d.width - p * 2);
69
+ return { rect: d, sideInset: p, innerWidth: i };
70
+ }
71
+ function Ji(d, p) {
72
+ const { sideInset: i, innerWidth: a } = ci(p), l = Math.min(1, Math.max(0, d));
73
+ return i + l * a;
74
+ }
75
+ function Qi(d, p) {
76
+ const { sideInset: i, innerWidth: a } = ci(p);
77
+ return Math.min(1, Math.max(0, (d - p.left - i) / a));
78
+ }
79
+ const tr = `
9
80
  :host {
10
- --simple-player-aspect-ratio: ${Je};
81
+ --simple-player-aspect-ratio: ${di};
11
82
  --space: 4px;
12
83
  --white: #fff;
13
84
  --black: #000;
@@ -93,6 +164,7 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
93
164
  -webkit-user-select: none;
94
165
  -webkit-touch-callout: none;
95
166
  -webkit-tap-highlight-color: transparent;
167
+ font-variant-numeric: tabular-nums;
96
168
  }
97
169
 
98
170
  .sp-player:fullscreen {
@@ -684,10 +756,10 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
684
756
 
685
757
  .sp-time {
686
758
  position: absolute;
759
+ display: block;
687
760
  bottom: calc(100% + var(--space));
688
761
  left: var(--sp-scrub-preview-left);
689
762
  z-index: 2;
690
- display: block;
691
763
  padding: 2px calc(var(--space) * 1.5);
692
764
  color: var(--white);
693
765
  background: transparent;
@@ -696,8 +768,8 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
696
768
  overflow: hidden;
697
769
  pointer-events: none;
698
770
  opacity: 0;
699
- transform: translateX(-50%) translateY(2px);
700
771
  transition: transform 120ms ease;
772
+ transform: translateX(-50%) translateY(2px);
701
773
  white-space: nowrap;
702
774
  font: 500 12px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
703
775
  }
@@ -720,11 +792,90 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
720
792
  z-index: 1;
721
793
  }
722
794
 
795
+ .sp-progress:hover .sp-time,
796
+ .sp-player.is-progress-hovering .sp-time,
723
797
  .sp-player.is-scrubbing .sp-time {
724
798
  opacity: 1;
725
799
  transform: translateX(-50%) translateY(0);
726
800
  }
727
801
 
802
+ .sp-player.has-pinned-time .sp-time {
803
+ display: none !important;
804
+ }
805
+
806
+ .sp-tray-time {
807
+ position: absolute;
808
+ display: none;
809
+ bottom: calc(((var(--space) * 2) - 2px) + var(--sp-progress-height) + 8px);
810
+ left: 0;
811
+ z-index: 3;
812
+ color: var(--white);
813
+ isolation: isolate;
814
+ overflow: visible;
815
+ pointer-events: none;
816
+ white-space: nowrap;
817
+ opacity: 0;
818
+ filter: blur(0.8px);
819
+ transform: translateY(4px) scale(0.96);
820
+ transform-origin: left bottom;
821
+ transition:
822
+ bottom 180ms ease,
823
+ opacity 220ms ease,
824
+ filter 260ms ease,
825
+ transform 300ms cubic-bezier(0.18, 0.9, 0.22, 1);
826
+ }
827
+
828
+ .sp-player.has-pinned-time .sp-tray-time {
829
+ display: block;
830
+ }
831
+
832
+ .sp-player.has-pinned-time.is-pointer-active .sp-tray-time,
833
+ .sp-player.has-pinned-time.is-controls-visible .sp-tray-time,
834
+ :host(:hover) .sp-player.has-pinned-time .sp-tray-time {
835
+ opacity: 1;
836
+ pointer-events: auto;
837
+ filter: blur(0);
838
+ transform: translateY(0) scale(1);
839
+ }
840
+
841
+ .sp-tray-time-holder {
842
+ position: relative;
843
+ right: auto;
844
+ bottom: auto;
845
+ width: max-content;
846
+ transition: width 240ms cubic-bezier(0.23, 1, 0.32, 1);
847
+ }
848
+
849
+ .sp-tray-time-holder .sp-control-tray-slots {
850
+ position: relative;
851
+ width: max-content;
852
+ }
853
+
854
+ .sp-tray-time-holder .sp-control-tray-slots::before {
855
+ width: calc(100% - (var(--sp-control-tray-padding) * 2));
856
+ }
857
+
858
+ .sp-tray-time-holder .sp-tray-time-text {
859
+ aspect-ratio: auto;
860
+ min-width: max-content;
861
+ width: auto;
862
+ padding: 0 8px;
863
+ font: 600 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
864
+ }
865
+
866
+ .sp-tray-time-text {
867
+ pointer-events: auto;
868
+ cursor: pointer;
869
+ }
870
+
871
+ .sp-tray-time-text.is-time-animating {
872
+ animation: sp-volume-icon-swap 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
873
+ }
874
+
875
+ .sp-player.is-loading:not(.has-loaded-once) .sp-tray-time {
876
+ opacity: 0;
877
+ }
878
+
728
879
  .sp-button:focus-visible,
729
880
  .sp-progress:focus-visible,
730
881
  .sp-control-button:focus-visible,
@@ -772,6 +923,12 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
772
923
  --sp-progress-height: 4px;
773
924
  }
774
925
 
926
+ .sp-player.has-pinned-time.is-controls-visible .sp-tray-time {
927
+ opacity: 1;
928
+ filter: blur(0);
929
+ transform: translateY(0) scale(1);
930
+ }
931
+
775
932
  .sp-player.is-scrubbing .sp-progress-cluster {
776
933
  --sp-progress-height: 14px;
777
934
  }
@@ -850,9 +1007,9 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
850
1007
  transform: translateY(0) scale(1);
851
1008
  }
852
1009
  }
853
- `, Qe = document.createElement("template");
854
- Qe.innerHTML = `
855
- <style>${Ci}</style>
1010
+ `, mi = document.createElement("template");
1011
+ mi.innerHTML = `
1012
+ <style>${tr}</style>
856
1013
  <div class="sp-player is-loading" data-sp-player>
857
1014
  <video
858
1015
  class="sp-video sp-asset"
@@ -885,6 +1042,13 @@ Qe.innerHTML = `
885
1042
  <span class="sp-progress-fill" data-sp-progress></span>
886
1043
  <span class="sp-progress-marker" aria-hidden="true"></span>
887
1044
  </div>
1045
+ <span class="sp-tray-time" data-sp-tray-time>
1046
+ <span class="sp-control-tray sp-tray-time-holder">
1047
+ <span class="sp-control-tray-slots">
1048
+ <button class="sp-control-button sp-tray-time-text" type="button" tabindex="-1" data-sp-tray-time-text>0:00</button>
1049
+ </span>
1050
+ </span>
1051
+ </span>
888
1052
  <span class="sp-control-tray" data-sp-control-tray>
889
1053
  <span class="sp-control-tray-slots" data-sp-control-tray-slots>
890
1054
  <button class="sp-control-button sp-volume-slot" type="button" aria-label="Toggle sound" data-sp-volume-control>
@@ -930,381 +1094,395 @@ Qe.innerHTML = `
930
1094
  </div>
931
1095
  </div>
932
1096
  `;
933
- var f, Wt, z, jt, R, c, r, q, d, $, Q, Zt, fs, y, _, E, tt, st, pt, dt, v, M, et, F, Tt, it, Ct, N, mt, Ot, At, k, C, Kt, rt, ft, bt, ot, bs, Gt, D, H, W, j, Z, Ft, vt, vs, Lt, gs, ys, gt, V, nt, St, g, O, Jt, Qt, Mt, U, at, w, yt, wt, xt, ts, Ns, Us, ss, Ys, Xs, ws, Vt, _s, Ws, js, Zs, Os, Ks, It, Gs, Js, s, Ss, Ms, Ie, os, ze, si, h, Vs, zt, B, Qs, ns, K, G, Is, as, $t, ei, Nt, ls, Re, De, Rt, Dt, xs, Ht, lt, ht, ks, te, Ps, zs, Es, se, He, hs, Rs, cs, Be, ii, Ts, ri, ct, Y, qe, oi, $e, Ut, L, ni, X, ai, Ne, Ue, li, Bt, Ye, x, J, Xe, hi, Yt, ut, ci, Ds, us, ui, pi, di, S, ps, ds, mi, Xt, fi, T, Et, bi, A, _e, Hs, _t, kt, Bs, We, vi, gi, yi, qt, Pt, wi, Cs, qs, je, $s, ee, ie, re, ms, Ze, es, Oe, As, Fs, oe, ne, ae, le, he, ce, ue, pe, de, me, fe, be, ve, ge, ye, we, xe, ke, Pe, Ee, Te, is, Ce, Ae, Fe, Le, Se, Me, I, xi;
934
- class ti extends HTMLElement {
1097
+ var b, Qt, H, ts, B, h, o, Y, m, X, j, Gs, z, ss, xs, w, Z, T, et, it, rt, vt, g, R, ot, L, St, nt, Mt, _, gt, es, Vt, P, F, is, at, yt, wt, lt, ks, rs, $, N, O, K, G, It, xt, Ps, zt, Ts, Es, kt, D, ht, Rt, S, y, J, os, ns, Dt, W, ct, x, Pt, Tt, Et, as, ls, Ct, Js, Qs, hs, te, se, Cs, qt, ee, ie, re, oe, ne, ae, Ht, le, he, s, Hs, Bs, _e, ds, We, _t, $s, bi, c, Ns, Bt, U, ce, ms, Q, tt, Us, fs, Wt, vi, je, Ze, Oe, jt, bs, Ys, Ke, $t, Nt, As, Ut, ut, pt, Ls, ue, Fs, Xs, Ss, pe, Ge, vs, _s, gs, Je, gi, Ms, yi, dt, Qe, wi, ti, Zt, V, xi, E, ki, si, ei, Pi, Yt, ii, k, st, ri, Ti, mt, ft, Ei, Ci, ys, Ai, Li, Fi, Ot, I, bt, Kt, Si, Gt, Mi, C, Ft, Vi, M, oi, Ws, Jt, At, js, ni, Ii, zi, Ri, Xt, Lt, Di, Vs, Zs, ai, Os, Ks, qi, Hi, de, me, fe, be, ws, li, cs, hi, Is, zs, ve, ge, ye, we, xe, ke, Pe, Te, Rs, Ds, Ee, Ce, Ae, Le, Fe, Se, Me, Ve, Ie, ze, Re, De, qe, us, He, Be, $e, Ne, Ue, Ye, A, Bi;
1098
+ class fi extends HTMLElement {
935
1099
  constructor() {
936
1100
  super();
937
1101
  n(this, s);
938
- n(this, f);
939
- n(this, Wt, []);
940
- n(this, z, null);
941
- n(this, jt, !1);
1102
+ n(this, b);
1103
+ n(this, Qt, []);
1104
+ n(this, H, null);
1105
+ n(this, ts, !1);
1106
+ n(this, B, !1);
1107
+ n(this, h);
1108
+ n(this, o);
1109
+ n(this, Y);
1110
+ n(this, m);
1111
+ n(this, X);
1112
+ n(this, j);
1113
+ n(this, Gs);
1114
+ n(this, z);
1115
+ n(this, ss);
1116
+ n(this, xs);
1117
+ n(this, w);
1118
+ n(this, Z);
1119
+ n(this, T);
1120
+ n(this, et);
1121
+ n(this, it);
1122
+ n(this, rt, []);
1123
+ n(this, vt, 0);
1124
+ n(this, g, !1);
942
1125
  n(this, R, !1);
943
- n(this, c);
944
- n(this, r);
945
- n(this, q);
946
- n(this, d);
947
- n(this, $);
948
- n(this, Q);
949
- n(this, Zt);
950
- n(this, fs);
951
- n(this, y);
952
- n(this, _);
953
- n(this, E);
954
- n(this, tt);
955
- n(this, st);
956
- n(this, pt, []);
957
- n(this, dt, 0);
958
- n(this, v, !1);
959
- n(this, M, !1);
960
- n(this, et, !1);
961
- n(this, F, 0);
962
- n(this, Tt, 0);
963
- n(this, it, 0);
964
- n(this, Ct, !1);
965
- n(this, N, !1);
966
- n(this, mt, !1);
967
- n(this, Ot, 0);
968
- n(this, At, 0);
969
- n(this, k, null);
970
- n(this, C, null);
971
- n(this, Kt, 0);
972
- n(this, rt, 0);
973
- n(this, ft, 0);
974
- n(this, bt, 0);
975
- n(this, ot, 0);
976
- n(this, bs, 0);
977
- n(this, Gt, 0);
978
- n(this, D, !1);
979
- n(this, H, !1);
980
- n(this, W, !1);
981
- n(this, j, !1);
982
- n(this, Z, 0);
983
- n(this, Ft, 0);
984
- n(this, vt, !1);
985
- n(this, vs, 0);
986
- n(this, Lt, !0);
987
- n(this, gs, 0);
988
- n(this, ys, performance.now());
989
- n(this, gt, 0);
990
- n(this, V, null);
991
- n(this, nt, null);
992
- n(this, St, !1);
993
- n(this, g, !0);
994
- n(this, O, !1);
995
- n(this, Jt, null);
996
- n(this, Qt, null);
1126
+ n(this, ot, !1);
1127
+ n(this, L, 0);
1128
+ n(this, St, 0);
1129
+ n(this, nt, 0);
997
1130
  n(this, Mt, !1);
998
- n(this, U, !1);
999
- n(this, at, !1);
1000
- n(this, w, null);
1131
+ n(this, _, !1);
1132
+ n(this, gt, !1);
1133
+ n(this, es, 0);
1134
+ n(this, Vt, 0);
1135
+ n(this, P, null);
1136
+ n(this, F, null);
1137
+ n(this, is, 0);
1138
+ n(this, at, 0);
1001
1139
  n(this, yt, 0);
1002
1140
  n(this, wt, 0);
1003
- n(this, xt, 0);
1004
- n(this, ts, null);
1005
- n(this, Ns, 4);
1006
- n(this, Us, 3.5);
1007
- n(this, ss, 6);
1008
- n(this, Ys, 0.08);
1009
- n(this, Xs, 240);
1010
- n(this, ws, 1200);
1011
- n(this, Vt, 1600);
1012
- n(this, _s, 140);
1013
- n(this, Ws, 380);
1014
- n(this, js, 650);
1015
- n(this, Zs, 2e3);
1016
- n(this, Os, 3);
1017
- n(this, Ks, 10);
1018
- n(this, It, 0.18);
1019
- n(this, Gs, 8);
1020
- n(this, Js, 18);
1021
- n(this, zt, (i) => {
1141
+ n(this, lt, 0);
1142
+ n(this, ks, 0);
1143
+ n(this, rs, 0);
1144
+ n(this, $, !1);
1145
+ n(this, N, !1);
1146
+ n(this, O, !1);
1147
+ n(this, K, !1);
1148
+ n(this, G, 0);
1149
+ n(this, It, 0);
1150
+ n(this, xt, !1);
1151
+ n(this, Ps, 0);
1152
+ n(this, zt, !0);
1153
+ n(this, Ts, 0);
1154
+ n(this, Es, performance.now());
1155
+ n(this, kt, 0);
1156
+ n(this, D, null);
1157
+ n(this, ht, null);
1158
+ n(this, Rt, !1);
1159
+ n(this, S, !1);
1160
+ n(this, y, !0);
1161
+ n(this, J, !1);
1162
+ n(this, os, null);
1163
+ n(this, ns, null);
1164
+ n(this, Dt, !1);
1165
+ n(this, W, !1);
1166
+ n(this, ct, !1);
1167
+ n(this, x, null);
1168
+ n(this, Pt, 0);
1169
+ n(this, Tt, 0);
1170
+ n(this, Et, 0);
1171
+ n(this, as, null);
1172
+ n(this, ls, !1);
1173
+ n(this, Ct, 0);
1174
+ n(this, Js, 4);
1175
+ n(this, Qs, 3.5);
1176
+ n(this, hs, 6);
1177
+ n(this, te, 0.08);
1178
+ n(this, se, 240);
1179
+ n(this, Cs, 1200);
1180
+ n(this, qt, 1600);
1181
+ n(this, ee, 140);
1182
+ n(this, ie, 380);
1183
+ n(this, re, 650);
1184
+ n(this, oe, 2e3);
1185
+ n(this, ne, 3);
1186
+ n(this, ae, 10);
1187
+ n(this, Ht, 0.18);
1188
+ n(this, le, 8);
1189
+ n(this, he, 18);
1190
+ n(this, Bt, (i) => {
1022
1191
  i.preventDefault();
1023
1192
  });
1024
- n(this, Qs, () => {
1025
- if (o(this, ft, 0), !(t(this, M) || t(this, v) || t(this, U))) {
1026
- if (e(this, s, I).call(this)) {
1027
- t(this, c).classList.remove("is-controls-visible");
1193
+ n(this, ce, () => {
1194
+ if (r(this, yt, 0), !(t(this, R) || t(this, g) || t(this, W))) {
1195
+ if (e(this, s, A).call(this)) {
1196
+ t(this, h).classList.remove("is-controls-visible");
1028
1197
  return;
1029
1198
  }
1030
- t(this, O) || t(this, c).classList.remove("is-pointer-active");
1199
+ t(this, J) || t(this, h).classList.remove("is-pointer-active");
1031
1200
  }
1032
1201
  });
1033
- n(this, Rt, (i) => {
1034
- e(this, s, $t).call(this, i) && e(this, s, Is).call(this, !0);
1202
+ n(this, $t, (i) => {
1203
+ e(this, s, Wt).call(this, i) && e(this, s, Us).call(this, !0);
1035
1204
  });
1036
- n(this, Dt, (i) => {
1037
- e(this, s, $t).call(this, i) && e(this, s, Is).call(this, !0);
1205
+ n(this, Nt, (i) => {
1206
+ e(this, s, Wt).call(this, i) && ((i instanceof PointerEvent || i instanceof MouseEvent) && e(this, s, Oe).call(this, i.clientX, i.clientY), e(this, s, Us).call(this, !0));
1038
1207
  });
1039
- n(this, xs, (i) => {
1040
- e(this, s, $t).call(this, i) && e(this, s, De).call(this);
1208
+ n(this, As, (i) => {
1209
+ e(this, s, Wt).call(this, i) && ((i instanceof PointerEvent || i instanceof MouseEvent) && e(this, s, Oe).call(this, i.clientX, i.clientY), e(this, s, Ke).call(this));
1041
1210
  });
1042
- n(this, Ht, () => {
1043
- e(this, s, as).call(this);
1211
+ n(this, Ut, () => {
1212
+ e(this, s, fs).call(this);
1044
1213
  });
1045
- n(this, lt, (i) => {
1046
- e(this, s, $t).call(this, i) && (o(this, O, !0), t(this, c).classList.add("is-pointer-active"), e(this, s, B).call(this));
1214
+ n(this, ut, (i) => {
1215
+ e(this, s, Wt).call(this, i) && (r(this, J, !0), t(this, h).classList.add("is-pointer-active"), e(this, s, U).call(this));
1047
1216
  });
1048
- n(this, ht, () => {
1049
- o(this, O, !1), e(this, s, ns).call(this, t(this, Vt));
1217
+ n(this, pt, () => {
1218
+ r(this, J, !1), e(this, s, ms).call(this, t(this, qt));
1050
1219
  });
1051
- n(this, ks, () => {
1052
- e(this, s, I).call(this) ? t(this, c).classList.add("is-controls-visible") : t(this, c).classList.add("is-pointer-active"), e(this, s, B).call(this);
1220
+ n(this, Ls, () => {
1221
+ 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);
1053
1222
  });
1054
- n(this, te, () => {
1055
- e(this, s, ns).call(this, t(this, Vt));
1223
+ n(this, ue, () => {
1224
+ e(this, s, ms).call(this, t(this, qt));
1056
1225
  });
1057
- n(this, Ps, (i) => {
1226
+ n(this, Fs, (i) => {
1058
1227
  const a = i.currentTarget;
1059
- if (e(this, s, Re).call(this, a)) {
1060
- t(this, Q).style.removeProperty("--sp-control-hover-offset");
1228
+ if (e(this, s, Ys).call(this, a)) {
1229
+ t(this, j).style.removeProperty("--sp-control-hover-offset");
1061
1230
  return;
1062
1231
  }
1063
- const l = Number(a?.dataset.spControlIndex ?? 0);
1064
- t(this, Q).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${l})`);
1232
+ const u = Number(a.dataset.spControlIndex ?? 0);
1233
+ t(this, j).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${u})`);
1065
1234
  });
1066
- n(this, Es, () => {
1067
- o(this, xt, 0), t(this, pt).forEach((i) => i.classList.remove("is-control-tap-active")), this.style.removeProperty("--sp-touch-control-hover-offset");
1235
+ n(this, Ss, () => {
1236
+ r(this, Et, 0), t(this, rt).forEach((i) => i.classList.remove("is-control-tap-active")), this.style.removeProperty("--sp-touch-control-hover-offset");
1068
1237
  });
1069
- n(this, se, (i) => {
1238
+ n(this, pe, (i) => {
1070
1239
  if (!(i instanceof PointerEvent) || i.pointerType !== "touch") return;
1071
1240
  const a = i.currentTarget;
1072
- if (!a || !e(this, s, Nt).call(this) || e(this, s, Re).call(this, a)) return;
1241
+ if (!a || !e(this, s, jt).call(this) || e(this, s, Ys).call(this, a)) return;
1073
1242
  const l = Number(a.dataset.spControlIndex ?? 0);
1074
- e(this, s, zs).call(this), t(this, pt).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})`), o(this, xt, window.setTimeout(t(this, Es), 280));
1243
+ e(this, s, Xs).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, Ss), 280));
1075
1244
  });
1076
- n(this, Ts, () => {
1077
- if (t(this, ot) || t(this, c).classList.contains("is-progress-settling")) {
1078
- if (e(this, s, Rs).call(this), t(this, vt)) {
1079
- t(this, c).classList.remove("is-progress-settling");
1245
+ n(this, Ms, () => {
1246
+ if (t(this, lt) || t(this, h).classList.contains("is-progress-settling")) {
1247
+ if (e(this, s, _s).call(this), t(this, xt)) {
1248
+ t(this, h).classList.remove("is-progress-settling");
1080
1249
  return;
1081
1250
  }
1082
- o(this, vt, !0), o(this, vs, performance.now() + t(this, js)), e(this, s, X).call(this) || e(this, s, x).call(this), e(this, s, S).call(this), t(this, c).classList.remove("is-progress-settling"), e(this, s, T).call(this);
1251
+ r(this, xt, !0), r(this, Ps, performance.now() + t(this, re)), e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, I).call(this), t(this, h).classList.remove("is-progress-settling"), e(this, s, C).call(this);
1083
1252
  }
1084
1253
  });
1085
- n(this, L, () => {
1086
- if (t(this, r).error) {
1087
- e(this, s, Ut).call(this, !0, !0);
1254
+ n(this, V, () => {
1255
+ if (t(this, o).error) {
1256
+ e(this, s, Zt).call(this, !0, !0);
1088
1257
  return;
1089
1258
  }
1090
- e(this, s, Ut).call(this, !t(this, R) || !t(this, H) || t(this, r).readyState < HTMLMediaElement.HAVE_FUTURE_DATA);
1259
+ e(this, s, Zt).call(this, !t(this, B) || !t(this, N) || t(this, o).readyState < HTMLMediaElement.HAVE_FUTURE_DATA);
1091
1260
  });
1092
- n(this, Bt, () => {
1093
- if (t(this, r).error || t(this, r).readyState < HTMLMediaElement.HAVE_CURRENT_DATA || t(this, r).videoWidth <= 0 || t(this, r).videoHeight <= 0)
1094
- return t(this, L).call(this), !1;
1095
- if (!t(this, D))
1096
- return e(this, s, li).call(this), t(this, L).call(this), !1;
1097
- const i = e(this, s, Ue).call(this);
1098
- return t(this, A).call(this), i;
1261
+ n(this, Yt, () => {
1262
+ if (t(this, o).error || t(this, o).readyState < HTMLMediaElement.HAVE_CURRENT_DATA || t(this, o).videoWidth <= 0 || t(this, o).videoHeight <= 0)
1263
+ return t(this, V).call(this), !1;
1264
+ if (!t(this, $))
1265
+ return e(this, s, Pi).call(this), t(this, V).call(this), !1;
1266
+ const i = e(this, s, ei).call(this);
1267
+ return t(this, M).call(this), i;
1099
1268
  });
1100
- n(this, A, () => {
1269
+ n(this, M, () => {
1101
1270
  if (!this.volumeEnabled) {
1102
- t(this, c).classList.remove("is-volume-unavailable", "is-volume-muted", "is-volume-sound", "is-volume-icon-animating"), t(this, y).disabled = !0, t(this, y).setAttribute("aria-disabled", "true");
1271
+ t(this, h).classList.remove("is-volume-unavailable", "is-volume-muted", "is-volume-sound", "is-volume-icon-animating"), t(this, w).disabled = !0, t(this, w).setAttribute("aria-disabled", "true");
1103
1272
  return;
1104
1273
  }
1105
- o(this, g, e(this, s, bi).call(this));
1106
- const i = !t(this, g) || t(this, r).muted || t(this, r).volume <= 0, a = t(this, g) && !t(this, r).muted ? t(this, r).volume : 0, l = Math.round(a * 100), u = i ? "muted" : "sound";
1107
- t(this, ts) && t(this, ts) !== u && e(this, s, ii).call(this), o(this, ts, u), t(this, c).classList.toggle("is-volume-unavailable", !t(this, g)), t(this, c).classList.toggle("is-volume-muted", i), t(this, c).classList.toggle("is-volume-sound", !i), t(this, c).style.setProperty("--sp-volume-level", `${l}%`), t(this, y).disabled = !t(this, g), t(this, y).setAttribute("aria-disabled", `${!t(this, g)}`), t(this, y).setAttribute(
1274
+ r(this, y, e(this, s, Vi).call(this));
1275
+ const i = !t(this, y) || t(this, o).muted || t(this, o).volume <= 0, a = t(this, y) && !t(this, o).muted ? t(this, o).volume : 0, l = Math.round(a * 100), u = i ? "muted" : "sound";
1276
+ t(this, as) && t(this, as) !== u && e(this, s, gi).call(this), r(this, as, u), t(this, h).classList.toggle("is-volume-unavailable", !t(this, y)), t(this, h).classList.toggle("is-volume-muted", i), t(this, h).classList.toggle("is-volume-sound", !i), t(this, h).style.setProperty("--sp-volume-level", `${l}%`), t(this, w).disabled = !t(this, y), t(this, w).setAttribute("aria-disabled", `${!t(this, y)}`), t(this, w).setAttribute(
1108
1277
  "aria-label",
1109
- t(this, g) ? i ? "Unmute video" : "Mute video" : "Video has no audio"
1110
- ), t(this, E).setAttribute("aria-valuenow", `${l}`), t(this, E).setAttribute("aria-valuetext", `${l}%`);
1278
+ t(this, y) ? i ? "Unmute video" : "Mute video" : "Video has no audio"
1279
+ ), t(this, T).setAttribute("aria-valuenow", `${l}`), t(this, T).setAttribute("aria-valuetext", `${l}%`);
1111
1280
  });
1112
- n(this, kt, () => {
1113
- const i = document.pictureInPictureElement === t(this, r), a = t(this, r), l = !!(this.pictureInPictureEnabled && document.pictureInPictureEnabled && a.requestPictureInPicture);
1114
- t(this, c).classList.toggle("is-picture-in-picture", i), t(this, tt).disabled = !l, t(this, tt).setAttribute("aria-label", i ? "Exit picture in picture" : "Enter picture in picture");
1281
+ n(this, At, () => {
1282
+ const i = document.pictureInPictureElement === t(this, o), a = t(this, o), l = !!(this.pictureInPictureEnabled && document.pictureInPictureEnabled && a.requestPictureInPicture);
1283
+ 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");
1115
1284
  });
1116
- n(this, qt, () => {
1117
- const i = e(this, s, Bs).call(this), a = i === t(this, c) || i === this, l = e(this, s, We).call(this);
1118
- return t(this, c).classList.toggle("is-fullscreen", a), t(this, st).disabled = !l, t(this, st).setAttribute("aria-label", a ? "Exit fullscreen" : "Enter fullscreen"), a;
1285
+ n(this, Xt, () => {
1286
+ const i = e(this, s, js).call(this), a = i === t(this, h) || i === this, l = e(this, s, ni).call(this);
1287
+ 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;
1119
1288
  });
1120
- n(this, Pt, () => {
1121
- const i = t(this, qt).call(this);
1122
- e(this, s, wi).call(this, i);
1289
+ n(this, Lt, () => {
1290
+ const i = t(this, Xt).call(this);
1291
+ e(this, s, Di).call(this, i);
1123
1292
  });
1124
- n(this, Cs, () => {
1125
- !t(this, M) || t(this, v) || (e(this, s, J).call(this), e(this, s, B).call(this), e(this, s, Et).call(this), o(this, v, !0), t(this, c).classList.add("is-scrubbing"), o(this, F, e(this, s, ps).call(this, t(this, Ot), !0)), t(this, et) && t(this, r).pause(), t(this, r).currentTime = t(this, F), e(this, s, x).call(this, t(this, F)), e(this, s, S).call(this, t(this, F)), e(this, s, Xt).call(this), e(this, s, T).call(this));
1293
+ n(this, Vs, () => {
1294
+ !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, L, e(this, s, bt).call(this, t(this, es), !0)), t(this, ot) && t(this, o).pause(), t(this, o).currentTime = t(this, L), e(this, s, k).call(this, t(this, L)), e(this, s, I).call(this, t(this, L)), e(this, s, Gt).call(this), e(this, s, C).call(this));
1126
1295
  });
1127
- n(this, ee, async () => {
1128
- if (performance.now() < t(this, bs))
1296
+ n(this, de, (i) => {
1297
+ i.stopPropagation(), r(this, ls, !t(this, ls)), e(this, s, Hi).call(this), e(this, s, E).call(this) || t(this, S) ? t(this, z) && (t(this, z).textContent = e(this, s, Ks).call(this, t(this, L))) : e(this, s, Ot).call(this, e(this, s, mt).call(this));
1298
+ });
1299
+ n(this, me, async () => {
1300
+ if (performance.now() < t(this, ks))
1129
1301
  return;
1130
- const i = t(this, C) ? t(this, C) !== "playing" : t(this, r).paused || t(this, r).ended, a = !i || e(this, s, ni).call(this);
1131
- e(this, s, G).call(this), a && (o(this, C, i ? "playing" : "paused"), e(this, s, T).call(this)), i ? (e(this, s, J).call(this), await e(this, s, ct).call(this), await t(this, r).play().catch(() => {
1132
- o(this, C, null);
1133
- })) : (e(this, s, hi).call(this), t(this, r).pause()), e(this, s, T).call(this), e(this, s, K).call(this);
1302
+ const i = t(this, F) ? t(this, F) !== "playing" : t(this, o).paused || t(this, o).ended, a = !i || e(this, s, xi).call(this);
1303
+ e(this, s, tt).call(this), a && (r(this, F, 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(() => {
1304
+ r(this, F, null);
1305
+ })) : (e(this, s, Ti).call(this), t(this, o).pause()), e(this, s, C).call(this), e(this, s, Q).call(this);
1134
1306
  });
1135
- n(this, ie, (i) => {
1307
+ n(this, fe, (i) => {
1136
1308
  if (!(i instanceof PointerEvent)) return;
1137
- const a = t(this, q).getBoundingClientRect(), l = i.clientX >= a.left && i.clientX <= a.right && i.clientY >= a.top && i.clientY <= a.bottom, u = t(this, $).getBoundingClientRect(), p = i.clientX >= u.left && i.clientX <= u.right && i.clientY >= u.top && i.clientY <= u.bottom, P = t(this, d).getBoundingClientRect(), Ls = i.clientX >= P.left && i.clientX <= P.right && i.clientY >= P.top && i.clientY <= P.bottom, rs = e(this, s, G).call(this);
1138
- rs && l && o(this, bs, performance.now() + 260), rs && (p || Ls) && o(this, Gt, performance.now() + 260), e(this, s, ct).call(this);
1309
+ 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(), qs = i.clientX >= v.left && i.clientX <= v.right && i.clientY >= v.top && i.clientY <= v.bottom, ps = e(this, s, tt).call(this);
1310
+ ps && l && r(this, ks, performance.now() + 260), ps && (f || qs) && r(this, rs, performance.now() + 260), e(this, s, dt).call(this);
1139
1311
  });
1140
- n(this, re, (i) => {
1312
+ n(this, be, (i) => {
1141
1313
  i.stopPropagation();
1142
1314
  });
1143
- n(this, es, () => {
1144
- o(this, yt, 0), !(t(this, at) || t(this, U)) && t(this, y).classList.remove("is-volume-open");
1315
+ n(this, cs, () => {
1316
+ r(this, Pt, 0), !(t(this, ct) || t(this, W)) && t(this, w).classList.remove("is-volume-open");
1145
1317
  });
1146
- n(this, As, () => {
1147
- e(this, s, I).call(this) || !this.volumeSliderEnabled || !t(this, g) || (o(this, at, !0), e(this, s, Ze).call(this));
1318
+ n(this, Is, () => {
1319
+ e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this, y) || (r(this, ct, !0), e(this, s, li).call(this));
1148
1320
  });
1149
- n(this, Fs, () => {
1150
- e(this, s, I).call(this) || !this.volumeSliderEnabled || !t(this, g) || (o(this, at, !1), e(this, s, Oe).call(this));
1321
+ n(this, zs, () => {
1322
+ e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this, y) || (r(this, ct, !1), e(this, s, hi).call(this));
1151
1323
  });
1152
- n(this, oe, (i) => {
1153
- !this.volumeEnabled || !t(this, g) || (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Nt).call(this) || e(this, s, ls).call(this)) && (e(this, s, G).call(this), t(this, es).call(this), t(this, r).muted || t(this, r).volume <= 0 ? (t(this, r).volume <= 0 && (t(this, r).volume = 0.7), t(this, r).muted = !1) : t(this, r).muted = !0, t(this, A).call(this), e(this, s, K).call(this)));
1324
+ n(this, ve, (i) => {
1325
+ !this.volumeEnabled || !t(this, y) || (i.preventDefault(), i.stopPropagation(), !(!e(this, s, jt).call(this) || e(this, s, bs).call(this)) && (e(this, s, tt).call(this), t(this, cs).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, M).call(this), e(this, s, Q).call(this)));
1154
1326
  });
1155
- n(this, ne, (i) => {
1156
- i instanceof PointerEvent && (!this.volumeEnabled || !this.volumeSliderEnabled || !t(this, g) || e(this, s, I).call(this) || (i.preventDefault(), i.stopPropagation(), e(this, s, G).call(this), e(this, s, B).call(this), e(this, s, Ze).call(this), o(this, U, !0), o(this, w, i.pointerId), t(this, _).classList.add("is-scrubbing-volume"), t(this, E).setPointerCapture(i.pointerId), e(this, s, _e).call(this, i.clientY)));
1327
+ n(this, ge, (i) => {
1328
+ 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, li).call(this), r(this, W, !0), r(this, x, i.pointerId), t(this, Z).classList.add("is-scrubbing-volume"), t(this, T).setPointerCapture(i.pointerId), e(this, s, oi).call(this, i.clientY)));
1157
1329
  });
1158
- n(this, ae, (i) => {
1159
- i instanceof PointerEvent && t(this, U) && (t(this, w) !== null && i.pointerId !== t(this, w) || (i.preventDefault(), i.stopPropagation(), e(this, s, _e).call(this, i.clientY)));
1330
+ n(this, ye, (i) => {
1331
+ i instanceof PointerEvent && t(this, W) && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.preventDefault(), i.stopPropagation(), e(this, s, oi).call(this, i.clientY)));
1160
1332
  });
1161
- n(this, le, (i) => {
1162
- i instanceof PointerEvent && (t(this, w) !== null && i.pointerId !== t(this, w) || (i.stopPropagation(), e(this, s, _t).call(this, i.pointerId), e(this, s, K).call(this)));
1333
+ n(this, we, (i) => {
1334
+ i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, Jt).call(this, i.pointerId), e(this, s, Q).call(this)));
1163
1335
  });
1164
- n(this, he, (i) => {
1165
- i instanceof PointerEvent && (t(this, w) !== null && i.pointerId !== t(this, w) || (i.stopPropagation(), e(this, s, _t).call(this, i.pointerId)));
1336
+ n(this, xe, (i) => {
1337
+ i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, Jt).call(this, i.pointerId)));
1166
1338
  });
1167
- n(this, ce, (i) => {
1168
- if (!(i instanceof KeyboardEvent) || !this.volumeEnabled || !t(this, g) || !["ArrowUp", "ArrowDown", "Home", "End"].includes(i.key)) return;
1339
+ n(this, ke, (i) => {
1340
+ if (!(i instanceof KeyboardEvent) || !this.volumeEnabled || !t(this, y) || !["ArrowUp", "ArrowDown", "Home", "End"].includes(i.key)) return;
1169
1341
  i.preventDefault(), i.stopPropagation();
1170
- const a = i.shiftKey ? 0.1 : 0.05, l = i.key === "Home" ? 0 : i.key === "End" ? 1 : t(this, r).volume + (i.key === "ArrowUp" ? a : -a);
1171
- t(this, r).volume = Math.min(1, Math.max(0, l)), t(this, r).muted = t(this, r).volume <= 0, t(this, A).call(this);
1342
+ const a = i.shiftKey ? 0.1 : 0.05, l = i.key === "Home" ? 0 : i.key === "End" ? 1 : t(this, o).volume + (i.key === "ArrowUp" ? a : -a);
1343
+ t(this, o).volume = Math.min(1, Math.max(0, l)), t(this, o).muted = t(this, o).volume <= 0, t(this, M).call(this);
1172
1344
  });
1173
- n(this, ue, async () => {
1174
- const i = t(this, r);
1175
- if (!(!this.pictureInPictureEnabled || !document.pictureInPictureEnabled || !i.requestPictureInPicture) && !(!e(this, s, Nt).call(this) || e(this, s, ls).call(this))) {
1176
- e(this, s, G).call(this);
1345
+ n(this, Pe, async () => {
1346
+ const i = t(this, o);
1347
+ if (!(!this.pictureInPictureEnabled || !document.pictureInPictureEnabled || !i.requestPictureInPicture) && !(!e(this, s, jt).call(this) || e(this, s, bs).call(this))) {
1348
+ e(this, s, tt).call(this);
1177
1349
  try {
1178
- await e(this, s, ct).call(this), document.pictureInPictureElement === t(this, r) ? await document.exitPictureInPicture() : await i.requestPictureInPicture();
1350
+ await e(this, s, dt).call(this), document.pictureInPictureElement === t(this, o) ? await document.exitPictureInPicture() : await i.requestPictureInPicture();
1179
1351
  } catch {
1180
1352
  } finally {
1181
- t(this, kt).call(this), e(this, s, K).call(this);
1353
+ t(this, At).call(this), e(this, s, Q).call(this);
1182
1354
  }
1183
1355
  }
1184
1356
  });
1185
- n(this, pe, async (i) => {
1186
- if (e(this, s, We).call(this) && (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Nt).call(this) || e(this, s, ls).call(this)))) {
1187
- e(this, s, $t).call(this, i), e(this, s, G).call(this);
1357
+ n(this, Te, async (i) => {
1358
+ if (e(this, s, ni).call(this) && (i.preventDefault(), i.stopPropagation(), !(!e(this, s, jt).call(this) || e(this, s, bs).call(this)))) {
1359
+ e(this, s, Wt).call(this, i), e(this, s, tt).call(this);
1188
1360
  try {
1189
- const a = e(this, s, Bs).call(this);
1190
- if (a === t(this, c) || a === this)
1191
- await e(this, s, yi).call(this);
1192
- else {
1193
- await e(this, s, ct).call(this);
1194
- const l = t(this, c);
1195
- typeof l.requestFullscreen == "function" || typeof l.webkitRequestFullscreen == "function" || typeof l.mozRequestFullScreen == "function" || typeof l.msRequestFullscreen == "function" ? await e(this, s, vi).call(this) : e(this, s, gi).call(this);
1196
- }
1361
+ const a = e(this, s, js).call(this);
1362
+ a === t(this, h) || a === this ? await e(this, s, Ri).call(this) : (await e(this, s, dt).call(this), Zi(t(this, h)) ? await e(this, s, Ii).call(this) : e(this, s, zi).call(this));
1197
1363
  } catch {
1198
1364
  } finally {
1199
- t(this, qt).call(this), e(this, s, K).call(this);
1365
+ t(this, Xt).call(this), e(this, s, Q).call(this);
1200
1366
  }
1201
1367
  }
1202
1368
  });
1203
- n(this, de, (i) => {
1369
+ n(this, Rs, (i) => {
1370
+ e(this, s, A).call(this) || e(this, s, E).call(this) || !(i instanceof PointerEvent) && !(i instanceof MouseEvent) || (r(this, S, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, bt).call(this, i.clientX, !1, !1));
1371
+ });
1372
+ n(this, Ds, () => {
1373
+ e(this, s, E).call(this) || e(this, s, Ze).call(this);
1374
+ });
1375
+ n(this, Ee, (i) => {
1204
1376
  if (i instanceof PointerEvent) {
1205
- if (i.preventDefault(), !e(this, s, Nt).call(this) || e(this, s, ls).call(this)) {
1206
- e(this, s, G).call(this), e(this, s, I).call(this) && o(this, Gt, performance.now() + 260);
1377
+ if (i.preventDefault(), !e(this, s, jt).call(this) || e(this, s, bs).call(this)) {
1378
+ e(this, s, tt).call(this), e(this, s, A).call(this) && r(this, rs, performance.now() + 260);
1207
1379
  return;
1208
1380
  }
1209
- e(this, s, G).call(this), e(this, s, B).call(this), t(this, Ts).call(this), o(this, N, !1), o(this, mt, !1), e(this, s, pi).call(this, e(this, s, Yt).call(this)), o(this, M, !0), o(this, k, i.pointerId), o(this, Ot, i.clientX), o(this, et, !t(this, r).paused && !t(this, r).ended), t(this, d).setPointerCapture(i.pointerId), o(this, F, e(this, s, ps).call(this, i.clientX, !1)), e(this, s, Et).call(this), o(this, At, window.setTimeout(t(this, Cs), t(this, Xs)));
1381
+ e(this, s, tt).call(this), e(this, s, U).call(this), t(this, Ms).call(this), r(this, _, !1), r(this, gt, !1), e(this, s, Li).call(this, e(this, s, mt).call(this)), r(this, R, !0), r(this, P, i.pointerId), r(this, es, i.clientX), r(this, ot, !t(this, o).paused && !t(this, o).ended), t(this, m).setPointerCapture(i.pointerId), r(this, L, e(this, s, bt).call(this, i.clientX, !1)), e(this, s, Ft).call(this), r(this, Vt, window.setTimeout(t(this, Vs), t(this, se)));
1210
1382
  }
1211
1383
  });
1212
- n(this, me, (i) => {
1213
- if (!(i instanceof KeyboardEvent) || !Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0 || !["ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i.key)) return;
1214
- i.preventDefault(), i.stopPropagation(), t(this, ks).call(this);
1215
- const a = e(this, s, Yt).call(this), l = i.shiftKey ? 10 : 5, u = Math.max(10, t(this, r).duration * 0.1), p = i.key === "Home" ? 0 : i.key === "End" ? t(this, r).duration : i.key === "PageUp" ? a + u : i.key === "PageDown" ? a - u : a + (i.key === "ArrowRight" ? l : -l);
1216
- t(this, r).currentTime = Math.min(t(this, r).duration, Math.max(0, p)), e(this, s, x).call(this, t(this, r).currentTime), e(this, s, S).call(this, t(this, r).currentTime);
1384
+ n(this, Ce, (i) => {
1385
+ if (!(i instanceof KeyboardEvent) || !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0 || !["ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i.key)) return;
1386
+ i.preventDefault(), i.stopPropagation(), t(this, Ls).call(this);
1387
+ const a = e(this, s, mt).call(this), l = i.shiftKey ? 10 : 5, u = Math.max(10, t(this, o).duration * 0.1), f = i.key === "Home" ? 0 : i.key === "End" ? t(this, o).duration : i.key === "PageUp" ? a + u : i.key === "PageDown" ? a - u : a + (i.key === "ArrowRight" ? l : -l);
1388
+ t(this, o).currentTime = Math.min(t(this, o).duration, Math.max(0, f)), e(this, s, k).call(this, t(this, o).currentTime), e(this, s, I).call(this, t(this, o).currentTime);
1217
1389
  });
1218
- n(this, fe, (i) => {
1219
- i instanceof PointerEvent && t(this, M) && (t(this, k) !== null && i.pointerId !== t(this, k) || (!t(this, v) && Math.abs(i.clientX - t(this, Ot)) >= t(this, Ns) && t(this, Cs).call(this), t(this, v) && o(this, F, e(this, s, ps).call(this, i.clientX))));
1390
+ n(this, Ae, (i) => {
1391
+ if (i instanceof PointerEvent) {
1392
+ if (!t(this, R)) {
1393
+ e(this, s, A).call(this) || (r(this, S, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, bt).call(this, i.clientX, !1, !1));
1394
+ return;
1395
+ }
1396
+ t(this, P) !== null && i.pointerId !== t(this, P) || (!t(this, g) && Math.abs(i.clientX - t(this, es)) >= t(this, Js) && t(this, Vs).call(this), t(this, g) && r(this, L, e(this, s, bt).call(this, i.clientX)));
1397
+ }
1220
1398
  });
1221
- n(this, be, (i) => {
1222
- i instanceof PointerEvent && (t(this, k) !== null && i.pointerId !== t(this, k) || e(this, s, je).call(this, i.clientX, i.pointerId, !0));
1399
+ n(this, Le, (i) => {
1400
+ i instanceof PointerEvent && (t(this, P) !== null && i.pointerId !== t(this, P) || e(this, s, ai).call(this, i.clientX, i.pointerId, !0));
1223
1401
  });
1224
- n(this, ve, (i) => {
1225
- i instanceof PointerEvent && (t(this, k) !== null && i.pointerId !== t(this, k) || e(this, s, $s).call(this, i.pointerId));
1402
+ n(this, Fe, (i) => {
1403
+ i instanceof PointerEvent && (t(this, P) !== null && i.pointerId !== t(this, P) || e(this, s, Os).call(this, i.pointerId));
1226
1404
  });
1227
- n(this, ge, (i) => {
1405
+ n(this, Se, (i) => {
1228
1406
  if (i instanceof PointerEvent) {
1229
- if (t(this, w) !== null && i.pointerId === t(this, w)) {
1230
- e(this, s, _t).call(this, i.pointerId);
1407
+ if (t(this, x) !== null && i.pointerId === t(this, x)) {
1408
+ e(this, s, Jt).call(this, i.pointerId);
1231
1409
  return;
1232
1410
  }
1233
- t(this, k) === null || i.pointerId !== t(this, k) || e(this, s, je).call(this, i.clientX, i.pointerId, !0);
1411
+ t(this, P) === null || i.pointerId !== t(this, P) || e(this, s, ai).call(this, i.clientX, i.pointerId, !0);
1234
1412
  }
1235
1413
  });
1236
- n(this, ye, (i) => {
1414
+ n(this, Me, (i) => {
1237
1415
  if (i instanceof PointerEvent) {
1238
- if (t(this, w) !== null && i.pointerId === t(this, w)) {
1239
- e(this, s, _t).call(this, i.pointerId);
1416
+ if (t(this, x) !== null && i.pointerId === t(this, x)) {
1417
+ e(this, s, Jt).call(this, i.pointerId);
1240
1418
  return;
1241
1419
  }
1242
- t(this, k) === null || i.pointerId !== t(this, k) || e(this, s, $s).call(this, i.pointerId);
1420
+ t(this, P) === null || i.pointerId !== t(this, P) || e(this, s, Os).call(this, i.pointerId);
1243
1421
  }
1244
1422
  });
1245
- n(this, we, () => {
1246
- e(this, s, _t).call(this, t(this, w)), e(this, s, $s).call(this, t(this, k));
1423
+ n(this, Ve, () => {
1424
+ e(this, s, Jt).call(this, t(this, x)), e(this, s, Os).call(this, t(this, P));
1247
1425
  });
1248
- n(this, xe, () => {
1249
- e(this, s, Bs).call(this) || e(this, s, as).call(this);
1426
+ n(this, Ie, () => {
1427
+ e(this, s, js).call(this) || e(this, s, fs).call(this);
1250
1428
  });
1251
- n(this, ke, () => {
1252
- o(this, C, null), e(this, s, J).call(this), e(this, s, X).call(this) || e(this, s, x).call(this), e(this, s, T).call(this);
1429
+ n(this, ze, () => {
1430
+ r(this, F, 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);
1253
1431
  });
1254
- n(this, Pe, () => {
1255
- o(this, C, null), e(this, s, X).call(this) || e(this, s, Xe).call(this), t(this, L).call(this), e(this, s, T).call(this);
1432
+ n(this, Re, () => {
1433
+ r(this, F, null), e(this, s, E).call(this) || e(this, s, ri).call(this), t(this, V).call(this), e(this, s, C).call(this);
1256
1434
  });
1257
- n(this, Ee, () => {
1258
- o(this, C, null), e(this, s, J).call(this), e(this, s, X).call(this) || e(this, s, x).call(this), e(this, s, T).call(this);
1435
+ n(this, De, () => {
1436
+ r(this, F, 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);
1259
1437
  });
1260
- n(this, Te, () => {
1261
- e(this, s, Ut).call(this, !0, !0);
1438
+ n(this, qe, () => {
1439
+ e(this, s, Zt).call(this, !0, !0);
1262
1440
  });
1263
- n(this, is, () => {
1264
- e(this, s, Ut).call(this, !0);
1441
+ n(this, us, () => {
1442
+ e(this, s, Zt).call(this, !0);
1265
1443
  });
1266
- n(this, Ce, () => {
1267
- e(this, s, J).call(this), o(this, g, !0), t(this, A).call(this), e(this, s, X).call(this) || e(this, s, x).call(this), t(this, L).call(this), e(this, s, S).call(this);
1444
+ n(this, He, () => {
1445
+ e(this, s, st).call(this), r(this, y, !0), t(this, M).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), t(this, V).call(this), e(this, s, I).call(this);
1268
1446
  });
1269
- n(this, Ae, () => {
1270
- const i = t(this, Bt).call(this);
1271
- t(this, A).call(this), i && !e(this, s, X).call(this) && e(this, s, x).call(this), e(this, s, T).call(this);
1447
+ n(this, Be, () => {
1448
+ const i = t(this, Yt).call(this);
1449
+ t(this, M).call(this), i && !e(this, s, E).call(this) && e(this, s, k).call(this), e(this, s, C).call(this);
1272
1450
  });
1273
- n(this, Fe, () => {
1274
- if (e(this, s, J).call(this), t(this, L).call(this), t(this, N) && (!t(this, mt) || t(this, r).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA)) {
1275
- e(this, s, Ne).call(this), e(this, s, T).call(this);
1451
+ n(this, $e, () => {
1452
+ if (e(this, s, st).call(this), t(this, V).call(this), t(this, _) && (!t(this, gt) || t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA)) {
1453
+ e(this, s, si).call(this), e(this, s, C).call(this);
1276
1454
  return;
1277
1455
  }
1278
- e(this, s, X).call(this) || e(this, s, x).call(this), e(this, s, S).call(this);
1456
+ e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, I).call(this);
1279
1457
  });
1280
- n(this, Le, () => {
1281
- o(this, C, null), o(this, D, !1), o(this, H, !1), o(this, W, !1), o(this, j, !1), o(this, Z, t(this, Z) + 1), t(this, c).classList.remove("has-visible-frame"), e(this, s, Ut).call(this, !0, !0), e(this, s, T).call(this), e(this, s, ai).call(this);
1458
+ n(this, Ne, () => {
1459
+ r(this, F, null), r(this, $, !1), r(this, N, !1), r(this, O, !1), r(this, K, !1), r(this, G, t(this, G) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, Zt).call(this, !0, !0), e(this, s, C).call(this), e(this, s, ki).call(this);
1282
1460
  });
1283
- n(this, Se, () => {
1284
- t(this, A).call(this), e(this, s, S).call(this);
1461
+ n(this, Ue, () => {
1462
+ t(this, M).call(this), e(this, s, I).call(this);
1285
1463
  });
1286
- n(this, Me, () => {
1287
- t(this, A).call(this);
1464
+ n(this, Ye, () => {
1465
+ t(this, M).call(this);
1288
1466
  });
1289
- o(this, f, this.attachShadow({ mode: "open" })), t(this, f).append(Qe.content.cloneNode(!0));
1467
+ r(this, b, this.attachShadow({ mode: "open" })), t(this, b).append(mi.content.cloneNode(!0));
1290
1468
  }
1291
1469
  get src() {
1292
1470
  return this.getAttribute("src") ?? "";
1293
1471
  }
1294
1472
  set src(i) {
1295
- e(this, s, Ss).call(this, "src", i);
1473
+ e(this, s, Hs).call(this, "src", i);
1296
1474
  }
1297
1475
  get aspectRatio() {
1298
- return this.getAttribute("aspect-ratio") || Je;
1476
+ return this.getAttribute("aspect-ratio") || di;
1299
1477
  }
1300
1478
  set aspectRatio(i) {
1301
- e(this, s, Ss).call(this, "aspect-ratio", i);
1479
+ e(this, s, Hs).call(this, "aspect-ratio", i);
1302
1480
  }
1303
1481
  get preloadMargin() {
1304
- return this.getAttribute("preload-margin") || Ti;
1482
+ return this.getAttribute("preload-margin") || Yi;
1305
1483
  }
1306
1484
  set preloadMargin(i) {
1307
- e(this, s, Ss).call(this, "preload-margin", i);
1485
+ e(this, s, Hs).call(this, "preload-margin", i);
1308
1486
  }
1309
1487
  get autoplayEnabled() {
1310
1488
  return !this.hasAttribute("disable-autoplay") && !this.hasAttribute("no-autoplay");
@@ -1326,11 +1504,21 @@ class ti extends HTMLElement {
1326
1504
  }
1327
1505
  this.removeAttribute("controls");
1328
1506
  }
1507
+ get timeVisible() {
1508
+ return this.hasAttribute("show-time");
1509
+ }
1510
+ set timeVisible(i) {
1511
+ if (i) {
1512
+ this.setAttribute("show-time", "");
1513
+ return;
1514
+ }
1515
+ this.removeAttribute("show-time");
1516
+ }
1329
1517
  get volumeEnabled() {
1330
- return (this.hasAttribute("controls") || this.hasAttribute("enable-volume")) && !this.hasAttribute("disable-volume") && !this.hasAttribute("no-volume");
1518
+ return this.controlsEnabled && !this.hasAttribute("disable-volume") && !this.hasAttribute("no-volume");
1331
1519
  }
1332
1520
  set volumeEnabled(i) {
1333
- e(this, s, Ms).call(this, "volume", i);
1521
+ e(this, s, Bs).call(this, "volume", i);
1334
1522
  }
1335
1523
  get volumeSliderEnabled() {
1336
1524
  return !this.hasAttribute("disable-volume-slider") && !this.hasAttribute("no-volume-slider");
@@ -1343,407 +1531,409 @@ class ti extends HTMLElement {
1343
1531
  this.setAttribute("disable-volume-slider", "");
1344
1532
  }
1345
1533
  get pictureInPictureEnabled() {
1346
- return (this.hasAttribute("controls") || this.hasAttribute("enable-picture-in-picture")) && !this.hasAttribute("disable-picture-in-picture") && !this.hasAttribute("no-picture-in-picture");
1534
+ return this.controlsEnabled && !this.hasAttribute("disable-picture-in-picture") && !this.hasAttribute("no-picture-in-picture");
1347
1535
  }
1348
1536
  set pictureInPictureEnabled(i) {
1349
- e(this, s, Ms).call(this, "picture-in-picture", i);
1537
+ e(this, s, Bs).call(this, "picture-in-picture", i);
1350
1538
  }
1351
1539
  get fullscreenEnabled() {
1352
- return (this.hasAttribute("controls") || this.hasAttribute("enable-fullscreen")) && !this.hasAttribute("disable-fullscreen") && !this.hasAttribute("no-fullscreen");
1540
+ return this.controlsEnabled && !this.hasAttribute("disable-fullscreen") && !this.hasAttribute("no-fullscreen");
1353
1541
  }
1354
1542
  set fullscreenEnabled(i) {
1355
- e(this, s, Ms).call(this, "fullscreen", i);
1543
+ e(this, s, Bs).call(this, "fullscreen", i);
1356
1544
  }
1357
1545
  connectedCallback() {
1358
- o(this, c, t(this, f).querySelector("[data-sp-player]")), o(this, r, t(this, f).querySelector("[data-sp-video]")), o(this, q, t(this, f).querySelector("[data-sp-button]")), o(this, d, t(this, f).querySelector("[data-sp-progress-track]")), o(this, $, t(this, f).querySelector("[data-sp-control-tray]")), o(this, Q, t(this, f).querySelector("[data-sp-control-tray-slots]")), o(this, Zt, t(this, f).querySelector("[data-sp-time]")), o(this, fs, t(this, f).querySelector("[data-sp-time-text]")), o(this, y, t(this, f).querySelector("[data-sp-volume-control]")), o(this, _, t(this, f).querySelector("[data-sp-volume-popover]")), o(this, E, t(this, f).querySelector("[data-sp-volume-track]")), o(this, tt, t(this, f).querySelector("[data-sp-picture-in-picture-control]")), o(this, st, t(this, f).querySelector("[data-sp-fullscreen-control]")), o(this, pt, [t(this, y), t(this, tt), t(this, st)]), e(this, s, Ie).call(this), t(this, jt) || (e(this, s, si).call(this), o(this, jt, !0)), e(this, s, os).call(this), e(this, s, Vs).call(this), e(this, s, ze).call(this), t(this, L).call(this), t(this, A).call(this), t(this, kt).call(this), t(this, qt).call(this), e(this, s, T).call(this);
1546
+ 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, Gs, t(this, b).querySelector("[data-sp-tray-time]")), r(this, z, t(this, b).querySelector("[data-sp-tray-time-text]")), r(this, ss, t(this, b).querySelector("[data-sp-time]")), r(this, xs, t(this, b).querySelector("[data-sp-time-text]")), r(this, w, t(this, b).querySelector("[data-sp-volume-control]")), r(this, Z, 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, _e).call(this), t(this, ts) || (e(this, s, bi).call(this), r(this, ts, !0)), e(this, s, ds).call(this), e(this, s, Ns).call(this), e(this, s, We).call(this), e(this, s, $s).call(this), t(this, V).call(this), t(this, M).call(this), t(this, At).call(this), t(this, Xt).call(this), e(this, s, C).call(this);
1359
1547
  }
1360
1548
  disconnectedCallback() {
1361
- t(this, z)?.disconnect(), o(this, z, null), t(this, Wt).forEach((i) => i()), o(this, Wt, []), o(this, jt, !1), e(this, s, B).call(this), e(this, s, He).call(this), e(this, s, hs).call(this), e(this, s, Rs).call(this), e(this, s, Et).call(this), e(this, s, cs).call(this), e(this, s, ms).call(this), e(this, s, Be).call(this), e(this, s, zs).call(this), t(this, c).classList.remove("is-volume-icon-animating"), t(this, Q).style.removeProperty("--sp-control-hover-offset"), this.style.removeProperty("--sp-touch-control-hover-offset"), e(this, s, ds).call(this), o(this, U, !1), o(this, at, !1), o(this, O, !1), o(this, w, null), t(this, y).classList.remove("is-volume-open"), t(this, pt).forEach((i) => i.classList.remove("is-control-tap-active")), t(this, c).classList.remove("is-pointer-active"), e(this, s, Xt).call(this);
1549
+ t(this, H)?.disconnect(), r(this, H, null), t(this, Qt).forEach((i) => i()), r(this, Qt, []), r(this, ts, !1), e(this, s, U).call(this), e(this, s, Ge).call(this), e(this, s, vs).call(this), e(this, s, _s).call(this), e(this, s, Ft).call(this), e(this, s, gs).call(this), e(this, s, ws).call(this), e(this, s, Je).call(this), e(this, s, Xs).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, Kt).call(this), r(this, S, !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, Gt).call(this);
1362
1550
  }
1363
1551
  attributeChangedCallback(i, a, l) {
1364
1552
  if (a !== l) {
1365
1553
  if (i === "aspect-ratio") {
1366
- e(this, s, Ie).call(this);
1554
+ e(this, s, _e).call(this);
1367
1555
  return;
1368
1556
  }
1369
1557
  if (i === "preload-margin" && this.isConnected) {
1370
- t(this, z)?.disconnect(), e(this, s, Vs).call(this);
1558
+ t(this, H)?.disconnect(), e(this, s, Ns).call(this);
1371
1559
  return;
1372
1560
  }
1373
1561
  if (i === "src" && this.isConnected) {
1374
- e(this, s, xi).call(this), e(this, s, Vs).call(this);
1562
+ e(this, s, Bi).call(this), e(this, s, Ns).call(this);
1375
1563
  return;
1376
1564
  }
1377
1565
  if ((i === "disable-autoplay" || i === "no-autoplay") && this.isConnected) {
1378
- e(this, s, os).call(this), t(this, A).call(this), e(this, s, T).call(this);
1566
+ e(this, s, ds).call(this), t(this, M).call(this), e(this, s, C).call(this);
1567
+ return;
1568
+ }
1569
+ if (i === "show-time" && this.isConnected) {
1570
+ e(this, s, $s).call(this);
1379
1571
  return;
1380
1572
  }
1381
- (i === "controls" || i.startsWith("enable-") || i.startsWith("disable-") || i.startsWith("no-")) && this.isConnected && (e(this, s, ze).call(this), t(this, A).call(this), t(this, kt).call(this), t(this, qt).call(this));
1573
+ (i === "controls" || i.startsWith("enable-") || i.startsWith("disable-") || i.startsWith("no-")) && this.isConnected && (e(this, s, We).call(this), t(this, M).call(this), t(this, At).call(this), t(this, Xt).call(this), e(this, s, $s).call(this));
1382
1574
  }
1383
1575
  }
1384
1576
  }
1385
- f = new WeakMap(), Wt = new WeakMap(), z = new WeakMap(), jt = new WeakMap(), R = new WeakMap(), c = new WeakMap(), r = new WeakMap(), q = new WeakMap(), d = new WeakMap(), $ = new WeakMap(), Q = new WeakMap(), Zt = new WeakMap(), fs = new WeakMap(), y = new WeakMap(), _ = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), st = new WeakMap(), pt = new WeakMap(), dt = new WeakMap(), v = new WeakMap(), M = new WeakMap(), et = new WeakMap(), F = new WeakMap(), Tt = new WeakMap(), it = new WeakMap(), Ct = new WeakMap(), N = new WeakMap(), mt = new WeakMap(), Ot = new WeakMap(), At = new WeakMap(), k = new WeakMap(), C = new WeakMap(), Kt = new WeakMap(), rt = new WeakMap(), ft = new WeakMap(), bt = new WeakMap(), ot = new WeakMap(), bs = new WeakMap(), Gt = new WeakMap(), D = new WeakMap(), H = new WeakMap(), W = new WeakMap(), j = new WeakMap(), Z = new WeakMap(), Ft = new WeakMap(), vt = new WeakMap(), vs = new WeakMap(), Lt = new WeakMap(), gs = new WeakMap(), ys = new WeakMap(), gt = new WeakMap(), V = new WeakMap(), nt = new WeakMap(), St = new WeakMap(), g = new WeakMap(), O = new WeakMap(), Jt = new WeakMap(), Qt = new WeakMap(), Mt = new WeakMap(), U = new WeakMap(), at = new WeakMap(), w = new WeakMap(), yt = new WeakMap(), wt = new WeakMap(), xt = new WeakMap(), ts = new WeakMap(), Ns = new WeakMap(), Us = new WeakMap(), ss = new WeakMap(), Ys = new WeakMap(), Xs = new WeakMap(), ws = new WeakMap(), Vt = new WeakMap(), _s = new WeakMap(), Ws = new WeakMap(), js = new WeakMap(), Zs = new WeakMap(), Os = new WeakMap(), Ks = new WeakMap(), It = new WeakMap(), Gs = new WeakMap(), Js = new WeakMap(), s = new WeakSet(), Ss = function(i, a) {
1577
+ b = new WeakMap(), Qt = new WeakMap(), H = new WeakMap(), ts = new WeakMap(), B = new WeakMap(), h = new WeakMap(), o = new WeakMap(), Y = new WeakMap(), m = new WeakMap(), X = new WeakMap(), j = new WeakMap(), Gs = new WeakMap(), z = new WeakMap(), ss = new WeakMap(), xs = new WeakMap(), w = new WeakMap(), Z = 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(), L = new WeakMap(), St = new WeakMap(), nt = new WeakMap(), Mt = new WeakMap(), _ = new WeakMap(), gt = new WeakMap(), es = new WeakMap(), Vt = new WeakMap(), P = new WeakMap(), F = new WeakMap(), is = new WeakMap(), at = new WeakMap(), yt = new WeakMap(), wt = new WeakMap(), lt = new WeakMap(), ks = new WeakMap(), rs = new WeakMap(), $ = new WeakMap(), N = new WeakMap(), O = new WeakMap(), K = new WeakMap(), G = new WeakMap(), It = new WeakMap(), xt = new WeakMap(), Ps = new WeakMap(), zt = new WeakMap(), Ts = new WeakMap(), Es = new WeakMap(), kt = new WeakMap(), D = new WeakMap(), ht = new WeakMap(), Rt = new WeakMap(), S = new WeakMap(), y = new WeakMap(), J = new WeakMap(), os = new WeakMap(), ns = new WeakMap(), Dt = new WeakMap(), W = new WeakMap(), ct = new WeakMap(), x = new WeakMap(), Pt = new WeakMap(), Tt = new WeakMap(), Et = new WeakMap(), as = new WeakMap(), ls = new WeakMap(), Ct = new WeakMap(), Js = new WeakMap(), Qs = new WeakMap(), hs = new WeakMap(), te = new WeakMap(), se = new WeakMap(), Cs = new WeakMap(), qt = new WeakMap(), ee = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), Ht = new WeakMap(), le = new WeakMap(), he = new WeakMap(), s = new WeakSet(), Hs = function(i, a) {
1386
1578
  if (a === "") {
1387
1579
  this.removeAttribute(i);
1388
1580
  return;
1389
1581
  }
1390
1582
  this.setAttribute(i, a);
1391
- }, Ms = function(i, a) {
1583
+ }, Bs = function(i, a) {
1392
1584
  if (a) {
1393
1585
  this.setAttribute(`enable-${i}`, ""), this.removeAttribute(`disable-${i}`), this.removeAttribute(`no-${i}`);
1394
1586
  return;
1395
1587
  }
1396
1588
  this.removeAttribute(`enable-${i}`), this.setAttribute(`disable-${i}`, "");
1397
- }, Ie = function() {
1589
+ }, _e = function() {
1398
1590
  this.style.setProperty("--simple-player-aspect-ratio", this.aspectRatio);
1399
- }, os = function() {
1400
- if (!t(this, r)) return;
1591
+ }, ds = function() {
1592
+ if (!t(this, o)) return;
1401
1593
  const i = this.autoplayEnabled;
1402
- if (t(this, r).autoplay = i, i) {
1403
- t(this, r).muted = !0, t(this, r).setAttribute("autoplay", ""), t(this, r).setAttribute("muted", "");
1594
+ if (t(this, o).autoplay = i, i) {
1595
+ t(this, o).muted = !0, t(this, o).setAttribute("autoplay", ""), t(this, o).setAttribute("muted", "");
1404
1596
  return;
1405
1597
  }
1406
- t(this, r).removeAttribute("autoplay"), t(this, R) || (t(this, r).muted = !1, t(this, r).removeAttribute("muted"));
1407
- }, ze = function() {
1408
- if (!t(this, c)) return;
1598
+ t(this, o).removeAttribute("autoplay"), t(this, B) || (t(this, o).muted = !1, t(this, o).removeAttribute("muted"));
1599
+ }, We = function() {
1600
+ if (!t(this, h)) return;
1409
1601
  const i = [
1410
- { button: t(this, y), enabled: this.volumeEnabled, className: "has-volume-control" },
1411
- { button: t(this, tt), enabled: this.pictureInPictureEnabled, className: "has-picture-in-picture-control" },
1412
- { button: t(this, st), enabled: this.fullscreenEnabled, className: "has-fullscreen-control" }
1602
+ { button: t(this, w), enabled: this.volumeEnabled, className: "has-volume-control" },
1603
+ { button: t(this, et), enabled: this.pictureInPictureEnabled, className: "has-picture-in-picture-control" },
1604
+ { button: t(this, it), enabled: this.fullscreenEnabled, className: "has-fullscreen-control" }
1413
1605
  ];
1414
1606
  let a = 0;
1415
1607
  for (const l of i)
1416
- t(this, c).classList.toggle(l.className, l.enabled), l.button.hidden = !l.enabled, l.enabled ? (l.button.dataset.spControlIndex = `${a}`, a += 1) : delete l.button.dataset.spControlIndex;
1417
- this.style.setProperty("--sp-enabled-controls-count", `${a}`), this.style.setProperty("--sp-control-tray-display", a > 0 ? "block" : "none"), t(this, c).classList.toggle("has-volume-slider-control", this.volumeEnabled && this.volumeSliderEnabled), (!this.volumeEnabled || !this.volumeSliderEnabled) && (t(this, es).call(this), e(this, s, Hs).call(this, t(this, w)), o(this, U, !1), o(this, at, !1), t(this, _).classList.remove("is-scrubbing-volume")), t(this, Q).style.removeProperty("--sp-control-hover-offset");
1418
- }, si = function() {
1419
- e(this, s, h).call(this, t(this, q), "click", t(this, ee)), e(this, s, h).call(this, this, "pointerenter", t(this, Rt)), e(this, s, h).call(this, this, "pointermove", t(this, Dt)), e(this, s, h).call(this, this, "pointerleave", t(this, Ht)), e(this, s, h).call(this, this, "mouseenter", t(this, Rt)), e(this, s, h).call(this, this, "mousemove", t(this, Dt)), e(this, s, h).call(this, this, "mouseleave", t(this, Ht)), e(this, s, h).call(this, t(this, c), "pointerenter", t(this, Rt)), e(this, s, h).call(this, t(this, c), "pointermove", t(this, Dt)), e(this, s, h).call(this, t(this, c), "pointerleave", t(this, Ht)), e(this, s, h).call(this, t(this, c), "mouseenter", t(this, Rt)), e(this, s, h).call(this, t(this, c), "mousemove", t(this, Dt)), e(this, s, h).call(this, t(this, c), "mouseleave", t(this, Ht)), e(this, s, h).call(this, t(this, q), "pointerenter", t(this, lt)), e(this, s, h).call(this, t(this, q), "pointerleave", t(this, ht)), e(this, s, h).call(this, t(this, q), "mouseenter", t(this, lt)), e(this, s, h).call(this, t(this, q), "mouseleave", t(this, ht)), e(this, s, h).call(this, t(this, d), "pointerenter", t(this, lt)), e(this, s, h).call(this, t(this, d), "pointerleave", t(this, ht)), e(this, s, h).call(this, t(this, d), "mouseenter", t(this, lt)), e(this, s, h).call(this, t(this, d), "mouseleave", t(this, ht)), e(this, s, h).call(this, t(this, $), "pointerenter", t(this, lt)), e(this, s, h).call(this, t(this, $), "pointerleave", t(this, ht)), e(this, s, h).call(this, t(this, $), "mouseenter", t(this, lt)), e(this, s, h).call(this, t(this, $), "mouseleave", t(this, ht)), e(this, s, h).call(this, t(this, f), "focusin", t(this, ks)), e(this, s, h).call(this, t(this, f), "focusout", t(this, te)), e(this, s, h).call(this, t(this, c), "pointerdown", t(this, ie)), e(this, s, h).call(this, t(this, c), "dragstart", t(this, zt)), e(this, s, h).call(this, t(this, c), "selectstart", t(this, zt)), e(this, s, h).call(this, t(this, r), "dragstart", t(this, zt)), e(this, s, h).call(this, t(this, r), "selectstart", t(this, zt)), e(this, s, h).call(this, t(this, d), "pointerdown", t(this, de)), e(this, s, h).call(this, t(this, d), "pointermove", t(this, fe)), e(this, s, h).call(this, t(this, d), "pointerup", t(this, be)), e(this, s, h).call(this, t(this, d), "pointercancel", t(this, ve)), e(this, s, h).call(this, t(this, d), "keydown", t(this, me)), e(this, s, h).call(this, t(this, y), "pointerenter", t(this, As)), e(this, s, h).call(this, t(this, y), "pointerleave", t(this, Fs)), e(this, s, h).call(this, t(this, y), "click", t(this, oe)), e(this, s, h).call(this, t(this, _), "pointerenter", t(this, As)), e(this, s, h).call(this, t(this, _), "pointerleave", t(this, Fs)), e(this, s, h).call(this, t(this, E), "pointerdown", t(this, ne)), e(this, s, h).call(this, t(this, E), "pointermove", t(this, ae)), e(this, s, h).call(this, t(this, E), "pointerup", t(this, le)), e(this, s, h).call(this, t(this, E), "pointercancel", t(this, he)), e(this, s, h).call(this, t(this, E), "click", t(this, re)), e(this, s, h).call(this, t(this, E), "keydown", t(this, ce)), e(this, s, h).call(this, t(this, tt), "click", t(this, ue)), e(this, s, h).call(this, t(this, st), "click", t(this, pe));
1420
- for (const i of t(this, pt))
1421
- e(this, s, h).call(this, i, "pointerenter", t(this, Ps)), e(this, s, h).call(this, i, "mouseenter", t(this, Ps)), e(this, s, h).call(this, i, "pointerdown", t(this, se));
1422
- e(this, s, h).call(this, document, "pointerup", t(this, ge)), e(this, s, h).call(this, document, "pointercancel", t(this, ye)), e(this, s, h).call(this, document, "pointermove", t(this, xs)), e(this, s, h).call(this, document, "mousemove", t(this, xs)), e(this, s, h).call(this, document, "fullscreenchange", t(this, Pt)), e(this, s, h).call(this, document, "webkitfullscreenchange", t(this, Pt)), e(this, s, h).call(this, document, "mozfullscreenchange", t(this, Pt)), e(this, s, h).call(this, document, "MSFullscreenChange", t(this, Pt)), e(this, s, h).call(this, t(this, f), "fullscreenchange", t(this, Pt)), e(this, s, h).call(this, window, "blur", t(this, we)), e(this, s, h).call(this, window, "focus", t(this, xe)), e(this, s, h).call(this, t(this, r), "play", t(this, ke)), e(this, s, h).call(this, t(this, r), "pause", t(this, Pe)), e(this, s, h).call(this, t(this, r), "ended", t(this, Ee)), e(this, s, h).call(this, t(this, r), "loadstart", t(this, Te)), e(this, s, h).call(this, t(this, r), "waiting", t(this, is)), e(this, s, h).call(this, t(this, r), "stalled", t(this, is)), e(this, s, h).call(this, t(this, r), "seeking", t(this, is)), e(this, s, h).call(this, t(this, r), "loadeddata", t(this, Bt)), e(this, s, h).call(this, t(this, r), "loadedmetadata", t(this, Ce)), e(this, s, h).call(this, t(this, r), "canplay", t(this, Bt)), e(this, s, h).call(this, t(this, r), "canplaythrough", t(this, Bt)), e(this, s, h).call(this, t(this, r), "playing", t(this, Ae)), e(this, s, h).call(this, t(this, r), "seeked", t(this, Fe)), e(this, s, h).call(this, t(this, r), "error", t(this, Le)), e(this, s, h).call(this, t(this, r), "progress", t(this, L)), e(this, s, h).call(this, t(this, r), "suspend", t(this, L)), e(this, s, h).call(this, t(this, r), "timeupdate", t(this, Se)), e(this, s, h).call(this, t(this, r), "volumechange", t(this, Me)), e(this, s, h).call(this, t(this, r), "enterpictureinpicture", t(this, kt)), e(this, s, h).call(this, t(this, r), "leavepictureinpicture", t(this, kt));
1423
- }, h = function(i, a, l) {
1424
- i.addEventListener(a, l), t(this, Wt).push(() => i.removeEventListener(a, l));
1425
- }, Vs = function() {
1426
- if (!(!this.src || t(this, R))) {
1427
- if (t(this, z)?.disconnect(), t(this, r).dataset.src = this.src, "IntersectionObserver" in window) {
1428
- o(this, z, new IntersectionObserver((i, a) => {
1429
- i.some((l) => l.isIntersecting) && (a.disconnect(), o(this, z, null), e(this, s, ct).call(this));
1430
- }, { rootMargin: this.preloadMargin })), t(this, z).observe(t(this, c));
1608
+ t(this, h).classList.toggle(l.className, l.enabled), l.button.hidden = !l.enabled, l.enabled ? (l.button.dataset.spControlIndex = `${a}`, a += 1) : delete l.button.dataset.spControlIndex;
1609
+ this.style.setProperty("--sp-enabled-controls-count", `${a}`), this.style.setProperty("--sp-control-tray-display", a > 0 ? "block" : "none"), t(this, h).classList.toggle("has-volume-slider-control", this.volumeEnabled && this.volumeSliderEnabled), (!this.volumeEnabled || !this.volumeSliderEnabled) && (t(this, cs).call(this), e(this, s, Ws).call(this, t(this, x)), r(this, W, !1), r(this, ct, !1), t(this, Z).classList.remove("is-scrubbing-volume")), t(this, j).style.removeProperty("--sp-control-hover-offset");
1610
+ }, _t = function() {
1611
+ return this.timeVisible && this.controlsEnabled;
1612
+ }, $s = function() {
1613
+ t(this, h) && (t(this, h).classList.toggle("has-pinned-time", t(this, s, _t)), t(this, s, _t) && e(this, s, Ot).call(this));
1614
+ }, bi = function() {
1615
+ e(this, s, c).call(this, t(this, Y), "click", t(this, me)), e(this, s, c).call(this, this, "pointerenter", t(this, $t)), e(this, s, c).call(this, this, "pointermove", t(this, Nt)), e(this, s, c).call(this, this, "pointerleave", t(this, Ut)), e(this, s, c).call(this, this, "mouseenter", t(this, $t)), e(this, s, c).call(this, this, "mousemove", t(this, Nt)), e(this, s, c).call(this, this, "mouseleave", t(this, Ut)), e(this, s, c).call(this, t(this, h), "pointerenter", t(this, $t)), e(this, s, c).call(this, t(this, h), "pointermove", t(this, Nt)), e(this, s, c).call(this, t(this, h), "pointerleave", t(this, Ut)), e(this, s, c).call(this, t(this, h), "mouseenter", t(this, $t)), e(this, s, c).call(this, t(this, h), "mousemove", t(this, Nt)), e(this, s, c).call(this, t(this, h), "mouseleave", t(this, Ut)), 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, Rs)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, Ds)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, Rs)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, Ds)), 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, Ls)), e(this, s, c).call(this, t(this, b), "focusout", t(this, ue)), e(this, s, c).call(this, t(this, h), "pointerdown", t(this, fe)), e(this, s, c).call(this, t(this, h), "dragstart", t(this, Bt)), e(this, s, c).call(this, t(this, h), "selectstart", t(this, Bt)), e(this, s, c).call(this, t(this, o), "dragstart", t(this, Bt)), e(this, s, c).call(this, t(this, o), "selectstart", t(this, Bt)), e(this, s, c).call(this, t(this, m), "pointerdown", t(this, Ee)), e(this, s, c).call(this, t(this, m), "pointermove", t(this, Ae)), e(this, s, c).call(this, t(this, m), "pointerup", t(this, Le)), e(this, s, c).call(this, t(this, m), "pointercancel", t(this, Fe)), e(this, s, c).call(this, t(this, m), "keydown", t(this, Ce)), 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, zs)), e(this, s, c).call(this, t(this, w), "click", t(this, ve)), e(this, s, c).call(this, t(this, Z), "pointerenter", t(this, Is)), e(this, s, c).call(this, t(this, Z), "pointerleave", t(this, zs)), e(this, s, c).call(this, t(this, T), "pointerdown", t(this, ge)), e(this, s, c).call(this, t(this, T), "pointermove", t(this, ye)), e(this, s, c).call(this, t(this, T), "pointerup", t(this, we)), e(this, s, c).call(this, t(this, T), "pointercancel", t(this, xe)), e(this, s, c).call(this, t(this, T), "click", t(this, be)), e(this, s, c).call(this, t(this, T), "keydown", t(this, ke)), e(this, s, c).call(this, t(this, et), "click", t(this, Pe)), e(this, s, c).call(this, t(this, it), "click", t(this, Te)), e(this, s, c).call(this, t(this, z), "click", t(this, de));
1616
+ for (const i of t(this, rt))
1617
+ e(this, s, c).call(this, i, "pointerenter", t(this, Fs)), e(this, s, c).call(this, i, "mouseenter", t(this, Fs)), e(this, s, c).call(this, i, "pointerdown", t(this, pe));
1618
+ e(this, s, c).call(this, document, "pointerup", t(this, Se)), e(this, s, c).call(this, document, "pointercancel", t(this, Me)), e(this, s, c).call(this, document, "pointermove", t(this, As)), e(this, s, c).call(this, document, "mousemove", t(this, As)), 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, Ve)), e(this, s, c).call(this, window, "focus", t(this, Ie)), e(this, s, c).call(this, t(this, o), "play", t(this, ze)), e(this, s, c).call(this, t(this, o), "pause", t(this, Re)), e(this, s, c).call(this, t(this, o), "ended", t(this, De)), e(this, s, c).call(this, t(this, o), "loadstart", t(this, qe)), e(this, s, c).call(this, t(this, o), "waiting", t(this, us)), e(this, s, c).call(this, t(this, o), "stalled", t(this, us)), e(this, s, c).call(this, t(this, o), "seeking", t(this, us)), e(this, s, c).call(this, t(this, o), "loadeddata", t(this, Yt)), e(this, s, c).call(this, t(this, o), "loadedmetadata", t(this, He)), e(this, s, c).call(this, t(this, o), "canplay", t(this, Yt)), e(this, s, c).call(this, t(this, o), "canplaythrough", t(this, Yt)), e(this, s, c).call(this, t(this, o), "playing", t(this, Be)), e(this, s, c).call(this, t(this, o), "seeked", t(this, $e)), e(this, s, c).call(this, t(this, o), "error", t(this, Ne)), e(this, s, c).call(this, t(this, o), "progress", t(this, V)), e(this, s, c).call(this, t(this, o), "suspend", t(this, V)), e(this, s, c).call(this, t(this, o), "timeupdate", t(this, Ue)), e(this, s, c).call(this, t(this, o), "volumechange", t(this, Ye)), 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));
1619
+ }, c = function(i, a, l) {
1620
+ i.addEventListener(a, l), t(this, Qt).push(() => i.removeEventListener(a, l));
1621
+ }, Ns = function() {
1622
+ if (!(!this.src || t(this, B))) {
1623
+ if (t(this, H)?.disconnect(), t(this, o).dataset.src = this.src, "IntersectionObserver" in window) {
1624
+ r(this, H, new IntersectionObserver((i, a) => {
1625
+ i.some((l) => l.isIntersecting) && (a.disconnect(), r(this, H, null), e(this, s, dt).call(this));
1626
+ }, { rootMargin: this.preloadMargin })), t(this, H).observe(t(this, h));
1431
1627
  return;
1432
1628
  }
1433
- e(this, s, ct).call(this);
1434
- }
1435
- }, zt = new WeakMap(), B = function() {
1436
- t(this, ft) && (window.clearTimeout(t(this, ft)), o(this, ft, 0));
1437
- }, Qs = new WeakMap(), ns = function(i = e(this, s, I).call(this) ? t(this, ws) : t(this, Vt)) {
1438
- e(this, s, B).call(this), o(this, ft, window.setTimeout(t(this, Qs), i));
1439
- }, K = function() {
1440
- e(this, s, I).call(this) && e(this, s, ns).call(this, t(this, ws));
1441
- }, G = function() {
1442
- if (!e(this, s, I).call(this)) return !1;
1443
- const i = t(this, c).classList.contains("is-controls-visible");
1444
- return t(this, c).classList.add("is-controls-visible"), e(this, s, K).call(this), !i;
1445
- }, Is = function(i = !1) {
1446
- !i && e(this, s, I).call(this) || (t(this, c).classList.add("is-pointer-active"), t(this, O) ? e(this, s, B).call(this) : e(this, s, ns).call(this, i ? t(this, Vt) : void 0));
1447
- }, as = function() {
1448
- o(this, O, !1), e(this, s, B).call(this), t(this, c).classList.remove("is-pointer-active");
1449
- }, $t = function(i) {
1450
- return i instanceof PointerEvent ? (o(this, Mt, i.pointerType === "touch"), t(this, Mt) ? !1 : (o(this, Jt, i.clientX), o(this, Qt, i.clientY), !0)) : i instanceof MouseEvent ? (o(this, Mt, !1), o(this, Jt, i.clientX), o(this, Qt, i.clientY), !0) : !1;
1451
- }, ei = function(i, a) {
1629
+ e(this, s, dt).call(this);
1630
+ }
1631
+ }, Bt = new WeakMap(), U = function() {
1632
+ t(this, yt) && (window.clearTimeout(t(this, yt)), r(this, yt, 0));
1633
+ }, ce = new WeakMap(), ms = function(i = e(this, s, A).call(this) ? t(this, Cs) : t(this, qt)) {
1634
+ e(this, s, U).call(this), r(this, yt, window.setTimeout(t(this, ce), i));
1635
+ }, Q = function() {
1636
+ e(this, s, A).call(this) && e(this, s, ms).call(this, t(this, Cs));
1637
+ }, tt = function() {
1638
+ if (!e(this, s, A).call(this)) return !1;
1639
+ const i = t(this, h).classList.contains("is-controls-visible");
1640
+ return t(this, h).classList.add("is-controls-visible"), e(this, s, Q).call(this), !i;
1641
+ }, Us = function(i = !1) {
1642
+ !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, ms).call(this, i ? t(this, qt) : void 0));
1643
+ }, fs = function() {
1644
+ r(this, J, !1), e(this, s, U).call(this), t(this, h).classList.remove("is-pointer-active");
1645
+ }, Wt = function(i) {
1646
+ return i instanceof PointerEvent ? (r(this, Dt, i.pointerType === "touch"), t(this, Dt) ? !1 : (r(this, os, i.clientX), r(this, ns, i.clientY), !0)) : i instanceof MouseEvent ? (r(this, Dt, !1), r(this, os, i.clientX), r(this, ns, i.clientY), !0) : !1;
1647
+ }, vi = function(i, a) {
1452
1648
  if (i === null || a === null || i < 0 || a < 0 || i > window.innerWidth || a > window.innerHeight) return !1;
1453
1649
  const l = this.getBoundingClientRect();
1454
1650
  return l.width <= 0 || l.height <= 0 ? !1 : i >= l.left && i <= l.right && a >= l.top && a <= l.bottom;
1455
- }, Nt = function() {
1456
- return t(this, c).classList.contains("is-controls-visible") || t(this, c).classList.contains("is-pointer-active") || t(this, f).activeElement instanceof HTMLElement;
1457
- }, ls = function() {
1458
- return e(this, s, I).call(this) && performance.now() < t(this, Gt);
1459
- }, Re = function(i) {
1460
- return i instanceof HTMLButtonElement && (i.disabled || i === t(this, y) && (!this.volumeEnabled || !t(this, g)));
1461
- }, De = function() {
1462
- if (!t(this, Mt) && e(this, s, ei).call(this, t(this, Jt), t(this, Qt))) {
1463
- e(this, s, Is).call(this, !0);
1651
+ }, je = function(i, a, l) {
1652
+ if (!i) return !1;
1653
+ const u = i.getBoundingClientRect();
1654
+ return u.width <= 0 || u.height <= 0 ? !1 : a >= u.left && a <= u.right && l >= u.top && l <= u.bottom;
1655
+ }, Ze = function() {
1656
+ t(this, S) && (r(this, S, !1), t(this, h).classList.remove("is-progress-hovering"), e(this, s, Kt).call(this), e(this, s, Ot).call(this));
1657
+ }, Oe = function(i, a) {
1658
+ if (e(this, s, A).call(this)) return;
1659
+ !e(this, s, E).call(this) && e(this, s, je).call(this, t(this, m), i, a) ? (r(this, S, !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);
1660
+ const l = t(this, rt).find((f) => !f.hidden && !e(this, s, Ys).call(this, f) && e(this, s, je).call(this, f, i, a)) ?? null;
1661
+ if (!l) return;
1662
+ const u = Number(l.dataset.spControlIndex ?? 0);
1663
+ t(this, j).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${u})`);
1664
+ }, jt = function() {
1665
+ return t(this, h).classList.contains("is-controls-visible") || t(this, h).classList.contains("is-pointer-active") || t(this, b).activeElement instanceof HTMLElement;
1666
+ }, bs = function() {
1667
+ return e(this, s, A).call(this) && performance.now() < t(this, rs);
1668
+ }, Ys = function(i) {
1669
+ return i instanceof HTMLButtonElement && (i.disabled || i === t(this, w) && (!this.volumeEnabled || !t(this, y)));
1670
+ }, Ke = function() {
1671
+ if (!t(this, Dt) && e(this, s, vi).call(this, t(this, os), t(this, ns))) {
1672
+ e(this, s, Us).call(this, !0);
1464
1673
  return;
1465
1674
  }
1466
- e(this, s, as).call(this);
1467
- }, Rt = new WeakMap(), Dt = new WeakMap(), xs = new WeakMap(), Ht = new WeakMap(), lt = new WeakMap(), ht = new WeakMap(), ks = new WeakMap(), te = new WeakMap(), Ps = new WeakMap(), zs = function() {
1468
- t(this, xt) && (window.clearTimeout(t(this, xt)), o(this, xt, 0));
1469
- }, Es = new WeakMap(), se = new WeakMap(), He = function() {
1470
- t(this, bt) && (window.clearTimeout(t(this, bt)), o(this, bt, 0));
1471
- }, hs = function() {
1472
- t(this, rt) && (window.clearTimeout(t(this, rt)), o(this, rt, 0));
1473
- }, Rs = function() {
1474
- t(this, ot) && (window.clearTimeout(t(this, ot)), o(this, ot, 0));
1475
- }, cs = function() {
1476
- t(this, Ft) && (window.clearTimeout(t(this, Ft)), o(this, Ft, 0));
1477
- }, Be = function() {
1478
- t(this, wt) && (window.clearTimeout(t(this, wt)), o(this, wt, 0));
1479
- }, ii = function() {
1480
- e(this, s, Be).call(this), t(this, c).classList.remove("is-volume-icon-animating"), t(this, y).offsetWidth, t(this, c).classList.add("is-volume-icon-animating"), o(this, wt, window.setTimeout(() => {
1481
- o(this, wt, 0), t(this, c).classList.remove("is-volume-icon-animating");
1675
+ e(this, s, fs).call(this);
1676
+ }, $t = new WeakMap(), Nt = new WeakMap(), As = new WeakMap(), Ut = new WeakMap(), ut = new WeakMap(), pt = new WeakMap(), Ls = new WeakMap(), ue = new WeakMap(), Fs = new WeakMap(), Xs = function() {
1677
+ t(this, Et) && (window.clearTimeout(t(this, Et)), r(this, Et, 0));
1678
+ }, Ss = new WeakMap(), pe = new WeakMap(), Ge = function() {
1679
+ t(this, wt) && (window.clearTimeout(t(this, wt)), r(this, wt, 0));
1680
+ }, vs = function() {
1681
+ t(this, at) && (window.clearTimeout(t(this, at)), r(this, at, 0));
1682
+ }, _s = function() {
1683
+ t(this, lt) && (window.clearTimeout(t(this, lt)), r(this, lt, 0));
1684
+ }, gs = function() {
1685
+ t(this, It) && (window.clearTimeout(t(this, It)), r(this, It, 0));
1686
+ }, Je = function() {
1687
+ t(this, Tt) && (window.clearTimeout(t(this, Tt)), r(this, Tt, 0));
1688
+ }, gi = function() {
1689
+ e(this, s, Je).call(this), t(this, h).classList.remove("is-volume-icon-animating"), t(this, w).offsetWidth, t(this, h).classList.add("is-volume-icon-animating"), r(this, Tt, window.setTimeout(() => {
1690
+ r(this, Tt, 0), t(this, h).classList.remove("is-volume-icon-animating");
1482
1691
  }, 240));
1483
- }, Ts = new WeakMap(), ri = function() {
1484
- t(this, vt) || t(this, ot) || (t(this, c).classList.add("is-progress-settling"), e(this, s, ut).call(this, 0), o(this, ot, window.setTimeout(t(this, Ts), t(this, Ws))));
1485
- }, ct = async function() {
1486
- if (t(this, R)) return;
1487
- const i = t(this, r).dataset.src || this.src;
1488
- i && (e(this, s, hs).call(this), e(this, s, cs).call(this), o(this, Kt, t(this, Kt) + 1), o(this, R, !0), o(this, D, !1), o(this, H, !1), o(this, W, !1), o(this, j, !1), o(this, Z, t(this, Z) + 1), t(this, c).classList.remove("has-visible-frame"), e(this, s, os).call(this), t(this, r).src = i, t(this, r).preload = "auto", t(this, r).load(), t(this, r).autoplay && t(this, r).muted && await t(this, r).play().catch(() => {
1692
+ }, Ms = new WeakMap(), yi = function() {
1693
+ t(this, xt) || t(this, lt) || (t(this, h).classList.add("is-progress-settling"), e(this, s, ft).call(this, 0), r(this, lt, window.setTimeout(t(this, Ms), t(this, ie))));
1694
+ }, dt = async function() {
1695
+ if (t(this, B)) return;
1696
+ const i = t(this, o).dataset.src || this.src;
1697
+ i && (e(this, s, vs).call(this), e(this, s, gs).call(this), r(this, is, t(this, is) + 1), r(this, B, !0), r(this, $, !1), r(this, N, !1), r(this, O, !1), r(this, K, !1), r(this, G, t(this, G) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, ds).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(() => {
1489
1698
  }));
1490
- }, Y = function(i) {
1491
- if (!Number.isFinite(i) || i < 0) return "0:00";
1492
- const a = Math.floor(i), l = a % 60, u = Math.floor(a / 60), p = u % 60, P = Math.floor(u / 60);
1493
- return P > 0 ? `${P}:${String(p).padStart(2, "0")}:${String(l).padStart(2, "0")}` : `${p}:${String(l).padStart(2, "0")}`;
1494
- }, qe = function() {
1495
- return !t(this, r).loop || t(this, r).paused || !Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0 ? !1 : t(this, r).currentTime < 0.28 || t(this, r).duration - t(this, r).currentTime < 0.28;
1496
- }, oi = function(i = t(this, r).currentTime) {
1699
+ }, Qe = function() {
1700
+ 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;
1701
+ }, wi = function(i = t(this, o).currentTime) {
1497
1702
  if (!Number.isFinite(i)) return 0;
1498
1703
  const a = Math.max(0, i);
1499
1704
  try {
1500
- for (let l = 0; l < t(this, r).buffered.length; l += 1) {
1501
- const u = t(this, r).buffered.start(l), p = t(this, r).buffered.end(l);
1502
- if (a + t(this, It) >= u && a <= p + t(this, It))
1503
- return Math.max(0, p - a);
1705
+ for (let l = 0; l < t(this, o).buffered.length; l += 1) {
1706
+ const u = t(this, o).buffered.start(l), f = t(this, o).buffered.end(l);
1707
+ if (a + t(this, Ht) >= u && a <= f + t(this, Ht))
1708
+ return Math.max(0, f - a);
1504
1709
  }
1505
1710
  } catch {
1506
1711
  return 0;
1507
1712
  }
1508
1713
  return 0;
1509
- }, $e = function(i = t(this, Ks)) {
1510
- if (!t(this, R) || t(this, r).error || !t(this, c).classList.contains("has-loaded-once") || !Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0) return !1;
1511
- const a = Math.max(0, t(this, r).duration - t(this, r).currentTime), l = Math.min(i, a);
1512
- return l <= t(this, It) || e(this, s, oi).call(this) + t(this, It) >= l;
1513
- }, Ut = function(i, a = !1) {
1514
- e(this, s, He).call(this);
1515
- const l = i && !e(this, s, qe).call(this) && !e(this, s, $e).call(this), p = i && !t(this, H) || l;
1516
- if (o(this, Lt, p), !p) {
1517
- t(this, c).classList.remove("is-loading");
1714
+ }, ti = function(i = t(this, ae)) {
1715
+ if (!t(this, B) || t(this, o).error || !t(this, h).classList.contains("has-loaded-once") || !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) return !1;
1716
+ const a = Math.max(0, t(this, o).duration - t(this, o).currentTime), l = Math.min(i, a);
1717
+ return l <= t(this, Ht) || e(this, s, wi).call(this) + t(this, Ht) >= l;
1718
+ }, Zt = function(i, a = !1) {
1719
+ e(this, s, Ge).call(this);
1720
+ const l = i && !e(this, s, Qe).call(this) && !e(this, s, ti).call(this), f = i && !t(this, N) || l;
1721
+ if (r(this, zt, f), !f) {
1722
+ t(this, h).classList.remove("is-loading");
1518
1723
  return;
1519
1724
  }
1520
1725
  if (a) {
1521
- t(this, c).classList.add("is-loading");
1726
+ t(this, h).classList.add("is-loading");
1522
1727
  return;
1523
1728
  }
1524
- o(this, bt, window.setTimeout(() => {
1525
- if (o(this, bt, 0), !t(this, H) || !e(this, s, qe).call(this) && !e(this, s, $e).call(this)) {
1526
- o(this, Lt, !0), t(this, c).classList.add("is-loading");
1729
+ r(this, wt, window.setTimeout(() => {
1730
+ if (r(this, wt, 0), !t(this, N) || !e(this, s, Qe).call(this) && !e(this, s, ti).call(this)) {
1731
+ r(this, zt, !0), t(this, h).classList.add("is-loading");
1527
1732
  return;
1528
1733
  }
1529
- o(this, Lt, !1), t(this, c).classList.remove("is-loading");
1530
- }, t(this, _s)));
1531
- }, L = new WeakMap(), ni = function() {
1532
- return t(this, R) && !t(this, r).error && t(this, D) && (t(this, r).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA || t(this, r).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !t(this, c).classList.contains("is-loading"));
1533
- }, X = function() {
1534
- return t(this, M) || t(this, v) || t(this, N);
1535
- }, ai = function() {
1536
- t(this, Kt) >= t(this, Os) || t(this, rt) || o(this, rt, window.setTimeout(() => {
1537
- o(this, rt, 0), e(this, s, cs).call(this), o(this, R, !1), o(this, D, !1), o(this, H, !1), o(this, W, !1), o(this, j, !1), o(this, Z, t(this, Z) + 1), t(this, c).classList.remove("has-visible-frame"), t(this, c).classList.contains("has-loaded-once") || e(this, s, ut).call(this, 0), t(this, r).removeAttribute("src"), t(this, r).load(), e(this, s, ct).call(this);
1538
- }, t(this, Zs)));
1539
- }, Ne = function() {
1540
- return t(this, N) ? (o(this, N, !1), o(this, mt, !1), e(this, s, x).call(this), e(this, s, S).call(this), !0) : !1;
1541
- }, Ue = function() {
1542
- return e(this, s, hs).call(this), !t(this, c).classList.contains("has-loaded-once") && e(this, s, ri).call(this), t(this, c).classList.add("has-loaded-once"), t(this, c).classList.add("has-visible-frame"), t(this, L).call(this), o(this, C, null), t(this, N) ? (e(this, s, Ne).call(this), !0) : (e(this, s, X).call(this) || e(this, s, x).call(this), e(this, s, S).call(this), !0);
1543
- }, li = function() {
1544
- if (t(this, D) || t(this, W) || t(this, r).error) return;
1545
- o(this, W, !0);
1546
- const i = t(this, Z), a = () => {
1547
- if (i === t(this, Z)) {
1548
- if (e(this, s, cs).call(this), o(this, W, !1), o(this, D, !t(this, r).error && t(this, r).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && t(this, r).videoWidth > 0 && t(this, r).videoHeight > 0), t(this, D)) {
1549
- if (t(this, j) || t(this, H)) return;
1550
- o(this, j, !0), window.requestAnimationFrame(() => {
1734
+ r(this, zt, !1), t(this, h).classList.remove("is-loading");
1735
+ }, t(this, ee)));
1736
+ }, V = new WeakMap(), xi = function() {
1737
+ return t(this, B) && !t(this, o).error && t(this, $) && (t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA || t(this, o).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !t(this, h).classList.contains("is-loading"));
1738
+ }, E = function() {
1739
+ return t(this, R) || t(this, g) || t(this, _);
1740
+ }, ki = function() {
1741
+ t(this, is) >= t(this, ne) || t(this, at) || r(this, at, window.setTimeout(() => {
1742
+ r(this, at, 0), e(this, s, gs).call(this), r(this, B, !1), r(this, $, !1), r(this, N, !1), r(this, O, !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);
1743
+ }, t(this, oe)));
1744
+ }, si = function() {
1745
+ return t(this, _) ? (r(this, _, !1), r(this, gt, !1), e(this, s, k).call(this), e(this, s, I).call(this), !0) : !1;
1746
+ }, ei = function() {
1747
+ return e(this, s, vs).call(this), !t(this, h).classList.contains("has-loaded-once") && e(this, s, yi).call(this), t(this, h).classList.add("has-loaded-once"), t(this, h).classList.add("has-visible-frame"), t(this, V).call(this), r(this, F, null), t(this, _) ? (e(this, s, si).call(this), !0) : (e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, I).call(this), !0);
1748
+ }, Pi = function() {
1749
+ if (t(this, $) || t(this, O) || t(this, o).error) return;
1750
+ r(this, O, !0);
1751
+ const i = t(this, G), a = () => {
1752
+ if (i === t(this, G)) {
1753
+ if (e(this, s, gs).call(this), r(this, O, !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, $)) {
1754
+ if (t(this, K) || t(this, N)) return;
1755
+ r(this, K, !0), window.requestAnimationFrame(() => {
1551
1756
  window.requestAnimationFrame(() => {
1552
- i === t(this, Z) && (o(this, j, !1), o(this, H, !0), e(this, s, Ue).call(this), e(this, s, T).call(this));
1757
+ i === t(this, G) && (r(this, K, !1), r(this, N, !0), e(this, s, ei).call(this), e(this, s, C).call(this));
1553
1758
  });
1554
- }), e(this, s, T).call(this);
1759
+ }), e(this, s, C).call(this);
1555
1760
  return;
1556
1761
  }
1557
- t(this, L).call(this);
1762
+ t(this, V).call(this);
1558
1763
  }
1559
1764
  };
1560
- if ("requestVideoFrameCallback" in t(this, r)) {
1561
- t(this, r).requestVideoFrameCallback(a), o(this, Ft, window.setTimeout(a, 180));
1765
+ if ("requestVideoFrameCallback" in t(this, o)) {
1766
+ t(this, o).requestVideoFrameCallback(a), r(this, It, window.setTimeout(a, 180));
1562
1767
  return;
1563
1768
  }
1564
1769
  window.requestAnimationFrame(a);
1565
- }, Bt = new WeakMap(), Ye = function() {
1566
- return !t(this, r).paused && (!t(this, r).ended || t(this, r).loop) && t(this, r).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA;
1567
- }, x = function(i = t(this, r).currentTime) {
1568
- o(this, gs, Number.isFinite(i) ? Math.max(0, i) : 0), o(this, ys, performance.now());
1569
- }, J = function() {
1570
- o(this, V, null), o(this, nt, null);
1571
- }, Xe = function() {
1572
- if (!Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0) {
1573
- o(this, V, null);
1770
+ }, Yt = new WeakMap(), ii = function() {
1771
+ return !t(this, o).paused && (!t(this, o).ended || t(this, o).loop) && t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA;
1772
+ }, k = function(i = t(this, o).currentTime) {
1773
+ r(this, Ts, Number.isFinite(i) ? Math.max(0, i) : 0), r(this, Es, performance.now());
1774
+ }, st = function() {
1775
+ r(this, D, null), r(this, ht, null);
1776
+ }, ri = function() {
1777
+ if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) {
1778
+ r(this, D, null);
1574
1779
  return;
1575
1780
  }
1576
- const i = Number.isFinite(t(this, r).currentTime) ? Math.max(0, t(this, r).currentTime) : 0, a = Number.isFinite(t(this, gt)) ? t(this, gt) : i;
1577
- o(this, V, Math.min(t(this, r).duration, Math.max(i, a))), e(this, s, x).call(this, t(this, V));
1578
- }, hi = function() {
1579
- if (!Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0) {
1580
- o(this, nt, null), e(this, s, Xe).call(this);
1781
+ const i = Number.isFinite(t(this, o).currentTime) ? Math.max(0, t(this, o).currentTime) : 0, a = Number.isFinite(t(this, kt)) ? t(this, kt) : i;
1782
+ r(this, D, Math.min(t(this, o).duration, Math.max(i, a))), e(this, s, k).call(this, t(this, D));
1783
+ }, Ti = function() {
1784
+ if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) {
1785
+ r(this, ht, null), e(this, s, ri).call(this);
1581
1786
  return;
1582
1787
  }
1583
- const i = t(this, c).style.getPropertyValue("--sp-progress-inset"), a = Number.parseFloat(i), l = Number.isFinite(a) ? Math.min(1, Math.max(0, 1 - a / 100)) : null, u = e(this, s, Yt).call(this), p = Math.min(1, Math.max(0, u / t(this, r).duration)), P = Math.max(l ?? 0, p);
1584
- o(this, nt, P), o(this, V, P * t(this, r).duration), e(this, s, x).call(this, t(this, V)), e(this, s, ut).call(this, P), t(this, d).setAttribute("aria-valuenow", `${t(this, V)}`), t(this, d).setAttribute(
1788
+ const i = t(this, h).style.getPropertyValue("--sp-progress-inset"), a = Number.parseFloat(i), l = Number.isFinite(a) ? Math.min(1, Math.max(0, 1 - a / 100)) : null, u = e(this, s, mt).call(this), f = Math.min(1, Math.max(0, u / t(this, o).duration)), v = Math.max(l ?? 0, f);
1789
+ r(this, ht, v), r(this, D, v * t(this, o).duration), e(this, s, k).call(this, t(this, D)), e(this, s, ft).call(this, v), t(this, m).setAttribute("aria-valuenow", `${t(this, D)}`), t(this, m).setAttribute(
1585
1790
  "aria-valuetext",
1586
- `${e(this, s, Y).call(this, t(this, V))} of ${e(this, s, Y).call(this, t(this, r).duration)}`
1791
+ `${q(t(this, D))} of ${q(t(this, o).duration)}`
1587
1792
  );
1588
- }, Yt = function() {
1589
- if (!Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0) return t(this, r).currentTime || 0;
1590
- if (e(this, s, X).call(this)) return t(this, F);
1591
- if (t(this, V) !== null) return t(this, V);
1592
- if (!e(this, s, Ye).call(this)) return t(this, r).currentTime || 0;
1593
- if (t(this, Lt) || !t(this, vt) || performance.now() < t(this, vs))
1594
- return e(this, s, x).call(this), t(this, r).currentTime || 0;
1595
- if (t(this, c).classList.contains("is-loading") && t(this, r).readyState < HTMLMediaElement.HAVE_FUTURE_DATA)
1596
- return e(this, s, x).call(this), t(this, r).currentTime || 0;
1597
- const i = (performance.now() - t(this, ys)) / 1e3, a = t(this, gs) + i, l = t(this, r).loop ? a % t(this, r).duration : Math.min(a, t(this, r).duration);
1598
- return !t(this, r).loop && t(this, r).currentTime - l > 0.45 ? (e(this, s, x).call(this), t(this, r).currentTime) : l;
1599
- }, ut = function(i) {
1600
- const a = Math.min(1, Math.max(0, i)), l = (1 - a) * 100, { innerWidth: u } = e(this, s, Ds).call(this), p = 1 / u, P = t(this, v) && t(this, Ct) && t(this, it) + p < a;
1601
- if (t(this, c).style.setProperty("--sp-progress-inset", `${l}%`), t(this, c).style.setProperty("--sp-return-marker-base-opacity", P ? "0" : "1"), P) {
1602
- const Ls = e(this, s, us).call(this, t(this, it)), rs = Math.max(0, u - 2), ki = Math.min(rs, Math.max(0, Ls - 3));
1603
- t(this, c).style.setProperty("--sp-return-marker-hole-left", `${ki}px`);
1793
+ }, mt = function() {
1794
+ if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) return t(this, o).currentTime || 0;
1795
+ if (e(this, s, E).call(this)) return t(this, L);
1796
+ if (t(this, D) !== null) return t(this, D);
1797
+ if (!e(this, s, ii).call(this)) return t(this, o).currentTime || 0;
1798
+ if (t(this, zt) || !t(this, xt) || performance.now() < t(this, Ps))
1799
+ return e(this, s, k).call(this), t(this, o).currentTime || 0;
1800
+ if (t(this, h).classList.contains("is-loading") && t(this, o).readyState < HTMLMediaElement.HAVE_FUTURE_DATA)
1801
+ return e(this, s, k).call(this), t(this, o).currentTime || 0;
1802
+ const i = (performance.now() - t(this, Es)) / 1e3, a = t(this, Ts) + i, l = t(this, o).loop ? a % t(this, o).duration : Math.min(a, t(this, o).duration);
1803
+ return !t(this, o).loop && t(this, o).currentTime - l > 0.45 ? (e(this, s, k).call(this), t(this, o).currentTime) : l;
1804
+ }, ft = function(i) {
1805
+ const a = Math.min(1, Math.max(0, i)), l = (1 - a) * 100, { innerWidth: u } = e(this, s, Ci).call(this), f = 1 / u, v = t(this, g) && t(this, Mt) && t(this, nt) + f < a;
1806
+ if (t(this, h).style.setProperty("--sp-progress-inset", `${l}%`), t(this, h).style.setProperty("--sp-return-marker-base-opacity", v ? "0" : "1"), v) {
1807
+ const qs = e(this, s, ys).call(this, t(this, nt)), ps = Math.max(0, u - 2), $i = Math.min(ps, Math.max(0, qs - 3));
1808
+ t(this, h).style.setProperty("--sp-return-marker-hole-left", `${$i}px`);
1604
1809
  } else
1605
- t(this, c).style.setProperty("--sp-return-marker-hole-left", "-9999px");
1606
- }, ci = function(i) {
1607
- return !Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0 ? 0 : Math.min(1, Math.max(0, i / t(this, r).duration));
1608
- }, Ds = function(i = t(this, d).getBoundingClientRect()) {
1609
- const a = Math.min(2, Math.max(0, i.width / 2)), l = Math.max(1, i.width - a * 2);
1610
- return { rect: i, sideInset: a, innerWidth: l };
1611
- }, us = function(i, a = t(this, d).getBoundingClientRect()) {
1612
- const { sideInset: l, innerWidth: u } = e(this, s, Ds).call(this, a), p = Math.min(1, Math.max(0, i));
1613
- return l + p * u;
1614
- }, ui = function(i, a) {
1615
- const { sideInset: l, innerWidth: u } = e(this, s, Ds).call(this, a);
1616
- return Math.min(1, Math.max(0, (i - a.left - l) / u));
1617
- }, pi = function(i) {
1618
- o(this, Tt, Number.isFinite(i) ? Math.max(0, i) : 0), o(this, it, e(this, s, ci).call(this, t(this, Tt)));
1619
- const a = t(this, d).getBoundingClientRect(), l = e(this, s, us).call(this, t(this, it), a), u = l >= t(this, ss) && l <= Math.max(t(this, ss), a.width - t(this, ss));
1620
- o(this, Ct, t(this, Tt) > t(this, Ys) && u), t(this, c).classList.toggle("has-return-marker", t(this, Ct)), t(this, c).style.setProperty("--sp-return-marker-left", `${l}px`);
1621
- }, di = function(i, a, l, u = t(this, v)) {
1622
- const p = l * t(this, r).duration;
1623
- if (!u || !t(this, Ct))
1624
- return { percent: l, targetTime: p };
1625
- const P = a.left + e(this, s, us).call(this, t(this, it), a);
1626
- return Math.abs(i - P) <= t(this, Us) ? {
1627
- percent: t(this, it),
1628
- targetTime: t(this, Tt)
1629
- } : { percent: l, targetTime: p };
1630
- }, S = function(i = e(this, s, Yt).call(this)) {
1631
- const a = Number.isFinite(t(this, r).duration) && t(this, r).duration > 0;
1632
- if (a && t(this, nt) !== null) {
1633
- const p = t(this, nt) * t(this, r).duration;
1634
- o(this, gt, p), e(this, s, ut).call(this, t(this, nt)), t(this, d).setAttribute("aria-valuemin", "0"), t(this, d).setAttribute("aria-valuemax", `${t(this, r).duration}`), t(this, d).setAttribute("aria-valuenow", `${p}`), t(this, d).setAttribute(
1810
+ t(this, h).style.setProperty("--sp-return-marker-hole-left", "-9999px");
1811
+ }, Ei = function(i) {
1812
+ return !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0 ? 0 : Math.min(1, Math.max(0, i / t(this, o).duration));
1813
+ }, Ci = function(i = t(this, m).getBoundingClientRect()) {
1814
+ return ci(i);
1815
+ }, ys = function(i, a = t(this, m).getBoundingClientRect()) {
1816
+ return Ji(i, a);
1817
+ }, Ai = function(i, a) {
1818
+ return Qi(i, a);
1819
+ }, Li = function(i) {
1820
+ r(this, St, Number.isFinite(i) ? Math.max(0, i) : 0), r(this, nt, e(this, s, Ei).call(this, t(this, St)));
1821
+ const a = t(this, m).getBoundingClientRect(), l = e(this, s, ys).call(this, t(this, nt), a), u = l >= t(this, hs) && l <= Math.max(t(this, hs), a.width - t(this, hs));
1822
+ r(this, Mt, t(this, St) > t(this, te) && u), t(this, h).classList.toggle("has-return-marker", t(this, Mt)), t(this, h).style.setProperty("--sp-return-marker-left", `${l}px`);
1823
+ }, Fi = function(i, a, l, u = t(this, g)) {
1824
+ const f = l * t(this, o).duration;
1825
+ if (!u || !t(this, Mt))
1826
+ return { percent: l, targetTime: f };
1827
+ const v = a.left + e(this, s, ys).call(this, t(this, nt), a);
1828
+ return Math.abs(i - v) <= t(this, Qs) ? {
1829
+ percent: t(this, nt),
1830
+ targetTime: t(this, St)
1831
+ } : { percent: l, targetTime: f };
1832
+ }, Ot = function(i = e(this, s, mt).call(this)) {
1833
+ !t(this, s, _t) || t(this, S) || e(this, s, E).call(this) || (t(this, z).textContent = e(this, s, Ks).call(this, i));
1834
+ }, I = function(i = e(this, s, mt).call(this)) {
1835
+ const a = Number.isFinite(t(this, o).duration) && t(this, o).duration > 0;
1836
+ if (a && t(this, ht) !== null) {
1837
+ const f = t(this, ht) * t(this, o).duration;
1838
+ r(this, kt, f), e(this, s, ft).call(this, t(this, ht)), t(this, m).setAttribute("aria-valuemin", "0"), t(this, m).setAttribute("aria-valuemax", `${t(this, o).duration}`), t(this, m).setAttribute("aria-valuenow", `${f}`), t(this, m).setAttribute(
1635
1839
  "aria-valuetext",
1636
- `${e(this, s, Y).call(this, p)} of ${e(this, s, Y).call(this, t(this, r).duration)}`
1637
- );
1840
+ `${q(f)} of ${q(t(this, o).duration)}`
1841
+ ), e(this, s, Ot).call(this, f);
1638
1842
  return;
1639
1843
  }
1640
- const l = a ? Math.min(t(this, r).duration, Math.max(0, i)) : i, u = a ? l / t(this, r).duration : 0;
1641
- o(this, gt, Number.isFinite(l) ? Math.max(0, l) : 0), e(this, s, ut).call(this, u), t(this, d).setAttribute("aria-valuemin", "0"), t(this, d).setAttribute("aria-valuemax", a ? `${t(this, r).duration}` : "0"), t(this, d).setAttribute("aria-valuenow", a ? `${l}` : "0"), t(this, d).setAttribute(
1844
+ const l = a ? Math.min(t(this, o).duration, Math.max(0, i)) : i, u = a ? l / t(this, o).duration : 0;
1845
+ r(this, kt, Number.isFinite(l) ? Math.max(0, l) : 0), e(this, s, ft).call(this, u), t(this, m).setAttribute("aria-valuemin", "0"), t(this, m).setAttribute("aria-valuemax", a ? `${t(this, o).duration}` : "0"), t(this, m).setAttribute("aria-valuenow", a ? `${l}` : "0"), t(this, m).setAttribute(
1642
1846
  "aria-valuetext",
1643
- a ? `${e(this, s, Y).call(this, l)} of ${e(this, s, Y).call(this, t(this, r).duration)}` : "Loading video"
1644
- );
1645
- }, ps = function(i, a = t(this, v)) {
1646
- if (!Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0) return t(this, r).currentTime;
1647
- const l = t(this, d).getBoundingClientRect(), u = e(this, s, ui).call(this, i, l), p = e(this, s, di).call(this, i, l, u, a);
1648
- return e(this, s, ut).call(this, p.percent), t(this, c).style.setProperty("--sp-scrub-preview-left", `${e(this, s, us).call(this, p.percent, l)}px`), t(this, fs).textContent = e(this, s, Y).call(this, p.targetTime), t(this, d).setAttribute("aria-valuenow", `${p.targetTime}`), t(this, d).setAttribute(
1847
+ a ? `${q(l)} of ${q(t(this, o).duration)}` : "Loading video"
1848
+ ), e(this, s, Ot).call(this, l);
1849
+ }, bt = function(i, a = t(this, g), l = !0) {
1850
+ if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) return t(this, o).currentTime;
1851
+ const u = t(this, m).getBoundingClientRect(), f = e(this, s, Ai).call(this, i, u), v = e(this, s, Fi).call(this, i, u, f, a);
1852
+ return l && e(this, s, ft).call(this, v.percent), t(this, s, _t) || t(this, h).style.setProperty("--sp-scrub-preview-left", `${e(this, s, ys).call(this, v.percent, u)}px`), t(this, xs).textContent = q(v.targetTime), t(this, z).textContent = e(this, s, Ks).call(this, v.targetTime), l && (t(this, m).setAttribute("aria-valuenow", `${v.targetTime}`), t(this, m).setAttribute(
1649
1853
  "aria-valuetext",
1650
- `${e(this, s, Y).call(this, p.targetTime)} of ${e(this, s, Y).call(this, t(this, r).duration)}`
1651
- ), e(this, s, mi).call(this), p.targetTime;
1652
- }, ds = function() {
1653
- o(this, St, !1), t(this, c)?.classList.remove("has-controls-collision");
1654
- }, mi = function() {
1655
- if (!t(this, v) || !t(this, $) || !t(this, Zt)) {
1656
- e(this, s, ds).call(this);
1854
+ `${q(v.targetTime)} of ${q(t(this, o).duration)}`
1855
+ )), e(this, s, Si).call(this), v.targetTime;
1856
+ }, Kt = function() {
1857
+ r(this, Rt, !1), t(this, h)?.classList.remove("has-controls-collision");
1858
+ }, Si = function() {
1859
+ if (!t(this, g) && !t(this, S) || !t(this, X) || !t(this, ss) || t(this, s, _t)) {
1860
+ e(this, s, Kt).call(this);
1657
1861
  return;
1658
1862
  }
1659
- const i = t(this, $).getBoundingClientRect(), a = t(this, Zt).getBoundingClientRect(), l = i.width > 0 && i.height > 0, u = t(this, St) ? t(this, Js) : t(this, Gs), p = l && a.right >= i.left - u && a.left <= i.right + u && a.bottom >= i.top - u && a.top <= i.bottom + u;
1660
- o(this, St, p), t(this, c).classList.toggle("has-controls-collision", t(this, St));
1661
- }, Xt = function() {
1662
- t(this, dt) && (window.cancelAnimationFrame(t(this, dt)), o(this, dt, 0));
1663
- }, fi = function() {
1664
- e(this, s, Xt).call(this), e(this, s, x).call(this);
1863
+ const i = t(this, X).getBoundingClientRect(), a = t(this, ss).getBoundingClientRect(), l = i.width > 0 && i.height > 0, u = t(this, Rt) ? t(this, he) : t(this, le), f = l && a.right >= i.left - u && a.left <= i.right + u && a.bottom >= i.top - u && a.top <= i.bottom + u;
1864
+ r(this, Rt, f), t(this, h).classList.toggle("has-controls-collision", t(this, Rt));
1865
+ }, Gt = function() {
1866
+ t(this, vt) && (window.cancelAnimationFrame(t(this, vt)), r(this, vt, 0));
1867
+ }, Mi = function() {
1868
+ e(this, s, Gt).call(this), e(this, s, k).call(this);
1665
1869
  const i = () => {
1666
- e(this, s, S).call(this, e(this, s, Yt).call(this)), e(this, s, Ye).call(this) && o(this, dt, window.requestAnimationFrame(i));
1870
+ e(this, s, I).call(this, e(this, s, mt).call(this)), e(this, s, ii).call(this) && r(this, vt, window.requestAnimationFrame(i));
1667
1871
  };
1668
- o(this, dt, window.requestAnimationFrame(i));
1669
- }, T = function() {
1670
- const i = !t(this, r).paused && (!t(this, r).ended || t(this, r).loop) || t(this, v) && t(this, et), a = t(this, C) ? t(this, C) === "playing" : i;
1671
- if (t(this, c).classList.toggle("is-playing", a), t(this, q).setAttribute("aria-label", a ? "Pause video" : "Play video"), t(this, v)) {
1672
- e(this, s, Xt).call(this);
1872
+ r(this, vt, window.requestAnimationFrame(i));
1873
+ }, C = function() {
1874
+ const i = !t(this, o).paused && (!t(this, o).ended || t(this, o).loop) || t(this, g) && t(this, ot), a = t(this, F) ? t(this, F) === "playing" : i;
1875
+ if (t(this, h).classList.toggle("is-playing", a), t(this, Y).setAttribute("aria-label", a ? "Pause video" : "Play video"), t(this, g)) {
1876
+ e(this, s, Gt).call(this);
1673
1877
  return;
1674
1878
  }
1675
- i && t(this, c).classList.contains("has-loaded-once") && !t(this, c).classList.contains("is-progress-settling") ? e(this, s, fi).call(this) : (e(this, s, Xt).call(this), e(this, s, S).call(this));
1676
- }, Et = function() {
1677
- t(this, At) && (window.clearTimeout(t(this, At)), o(this, At, 0));
1678
- }, bi = function() {
1679
- const i = t(this, r);
1680
- return i.audioTracks && typeof i.audioTracks.length == "number" ? i.audioTracks.length > 0 : typeof i.mozHasAudio == "boolean" ? i.mozHasAudio : typeof i.webkitAudioDecodedByteCount == "number" && t(this, r).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !t(this, r).muted && t(this, r).currentTime > 0.25 ? i.webkitAudioDecodedByteCount > 0 : t(this, g);
1681
- }, A = new WeakMap(), _e = function(i) {
1682
- if (!t(this, g)) return;
1683
- const a = t(this, E).getBoundingClientRect(), l = Math.min(1, Math.max(0, 1 - (i - a.top) / a.height)), u = Math.round(l * 100) / 100;
1684
- t(this, r).volume = u, t(this, r).muted = u <= 0, t(this, A).call(this);
1685
- }, Hs = function(i) {
1686
- i !== null && t(this, E).hasPointerCapture(i) && t(this, E).releasePointerCapture(i);
1687
- }, _t = function(i) {
1688
- o(this, U, !1), o(this, w, null), t(this, _).classList.remove("is-scrubbing-volume"), t(this, E).blur(), e(this, s, Hs).call(this, i), e(this, s, Oe).call(this, 260);
1689
- }, kt = new WeakMap(), Bs = function() {
1690
- const i = document;
1691
- return t(this, f).fullscreenElement || i.fullscreenElement || i.webkitFullscreenElement || i.mozFullScreenElement || i.msFullscreenElement || null;
1692
- }, We = function() {
1693
- const i = document, a = t(this, c), l = t(this, r), p = !!((i.fullscreenEnabled ?? i.webkitFullscreenEnabled ?? i.mozFullScreenEnabled ?? i.msFullscreenEnabled ?? !1) && (a.requestFullscreen || a.webkitRequestFullscreen || a.mozRequestFullScreen || a.msRequestFullscreen)), P = !!(l.webkitSupportsFullscreen || l.webkitEnterFullscreen || l.webkitEnterFullScreen);
1694
- return !!(this.fullscreenEnabled && (p || P));
1695
- }, vi = function() {
1696
- const i = t(this, c), a = i.requestFullscreen || i.webkitRequestFullscreen || i.mozRequestFullScreen || i.msRequestFullscreen;
1697
- return Promise.resolve(a?.call(i));
1698
- }, gi = function() {
1699
- const i = t(this, r);
1700
- (i.webkitEnterFullscreen || i.webkitEnterFullScreen)?.call(i);
1701
- }, yi = function() {
1702
- const i = document, a = i.exitFullscreen || i.webkitExitFullscreen || i.mozCancelFullScreen || i.msExitFullscreen;
1703
- return Promise.resolve(a?.call(i));
1704
- }, qt = new WeakMap(), Pt = new WeakMap(), wi = function(i) {
1705
- e(this, s, B).call(this), e(this, s, ms).call(this), e(this, s, qs).call(this, t(this, k)), e(this, s, Hs).call(this, t(this, w)), e(this, s, Et).call(this), o(this, M, !1), o(this, v, !1), o(this, k, null), o(this, O, !1), o(this, at, !1), o(this, U, !1), o(this, w, null), e(this, s, zs).call(this), t(this, Es).call(this), t(this, Q).style.removeProperty("--sp-control-hover-offset"), t(this, y).classList.remove("is-volume-open"), t(this, _).classList.remove("is-scrubbing-volume"), t(this, c).classList.remove("is-scrubbing"), t(this, c).classList.remove("is-pointer-active");
1706
- const a = t(this, f).activeElement;
1707
- a instanceof HTMLElement && a.blur(), i ? e(this, s, De).call(this) : e(this, s, as).call(this);
1708
- }, Cs = new WeakMap(), qs = function(i) {
1709
- i !== null && t(this, d).hasPointerCapture(i) && t(this, d).releasePointerCapture(i);
1710
- }, je = async function(i, a, l) {
1711
- if (!t(this, M) && !t(this, v)) return;
1712
- const u = t(this, v);
1713
- e(this, s, Et).call(this), o(this, M, !1), o(this, v, !1), o(this, k, null), t(this, c).classList.remove("is-scrubbing"), e(this, s, ds).call(this), e(this, s, qs).call(this, a), l && i !== null && (e(this, s, J).call(this), o(this, F, e(this, s, ps).call(this, i, u)), o(this, N, !0), o(this, mt, t(this, et)), t(this, r).currentTime = t(this, F), e(this, s, x).call(this, t(this, F))), e(this, s, S).call(this, t(this, F)), u && t(this, et) && await t(this, r).play(), e(this, s, K).call(this);
1714
- }, $s = function(i) {
1715
- !t(this, M) && !t(this, v) || (e(this, s, Et).call(this), o(this, M, !1), o(this, v, !1), o(this, k, null), t(this, c).classList.remove("is-scrubbing"), e(this, s, ds).call(this), e(this, s, qs).call(this, i), e(this, s, x).call(this), e(this, s, S).call(this), t(this, et) && t(this, r).play(), e(this, s, K).call(this));
1716
- }, ee = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), ms = function() {
1717
- t(this, yt) && (window.clearTimeout(t(this, yt)), o(this, yt, 0));
1718
- }, Ze = function() {
1719
- !this.volumeEnabled || !this.volumeSliderEnabled || !t(this, g) || (e(this, s, ms).call(this), t(this, y).classList.add("is-volume-open"));
1720
- }, es = new WeakMap(), Oe = function(i = 150) {
1721
- e(this, s, ms).call(this), o(this, yt, window.setTimeout(t(this, es), i));
1722
- }, As = new WeakMap(), Fs = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), he = new WeakMap(), ce = new WeakMap(), ue = new WeakMap(), pe = new WeakMap(), de = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), be = new WeakMap(), ve = new WeakMap(), ge = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), ke = new WeakMap(), Pe = new WeakMap(), Ee = new WeakMap(), Te = new WeakMap(), is = new WeakMap(), Ce = new WeakMap(), Ae = new WeakMap(), Fe = new WeakMap(), Le = new WeakMap(), Se = new WeakMap(), Me = new WeakMap(), I = function() {
1879
+ i && t(this, h).classList.contains("has-loaded-once") && !t(this, h).classList.contains("is-progress-settling") ? e(this, s, Mi).call(this) : (e(this, s, Gt).call(this), e(this, s, I).call(this));
1880
+ }, Ft = function() {
1881
+ t(this, Vt) && (window.clearTimeout(t(this, Vt)), r(this, Vt, 0));
1882
+ }, Vi = function() {
1883
+ return Gi(t(this, o), t(this, y));
1884
+ }, M = new WeakMap(), oi = function(i) {
1885
+ if (!t(this, y)) return;
1886
+ const a = t(this, T).getBoundingClientRect(), l = Math.min(1, Math.max(0, 1 - (i - a.top) / a.height)), u = Math.round(l * 100) / 100;
1887
+ t(this, o).volume = u, t(this, o).muted = u <= 0, t(this, M).call(this);
1888
+ }, Ws = function(i) {
1889
+ i !== null && t(this, T).hasPointerCapture(i) && t(this, T).releasePointerCapture(i);
1890
+ }, Jt = function(i) {
1891
+ r(this, W, !1), r(this, x, null), t(this, Z).classList.remove("is-scrubbing-volume"), t(this, T).blur(), e(this, s, Ws).call(this, i), e(this, s, hi).call(this, 260);
1892
+ }, At = new WeakMap(), js = function() {
1893
+ return _i(t(this, b));
1894
+ }, ni = function() {
1895
+ return Wi(this.fullscreenEnabled, t(this, h), t(this, o));
1896
+ }, Ii = function() {
1897
+ return ji(t(this, h));
1898
+ }, zi = function() {
1899
+ Oi(t(this, o));
1900
+ }, Ri = function() {
1901
+ return Ki();
1902
+ }, Xt = new WeakMap(), Lt = new WeakMap(), Di = function(i) {
1903
+ e(this, s, U).call(this), e(this, s, ws).call(this), e(this, s, Zs).call(this, t(this, P)), e(this, s, Ws).call(this, t(this, x)), e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, S, !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, Xs).call(this), t(this, Ss).call(this), t(this, j).style.removeProperty("--sp-control-hover-offset"), t(this, w).classList.remove("is-volume-open"), t(this, Z).classList.remove("is-scrubbing-volume"), t(this, h).classList.remove("is-scrubbing"), t(this, h).classList.remove("is-pointer-active");
1904
+ const a = t(this, b).activeElement;
1905
+ a instanceof HTMLElement && a.blur(), i ? e(this, s, Ke).call(this) : e(this, s, fs).call(this);
1906
+ }, Vs = new WeakMap(), Zs = function(i) {
1907
+ i !== null && t(this, m).hasPointerCapture(i) && t(this, m).releasePointerCapture(i);
1908
+ }, ai = async function(i, a, l) {
1909
+ if (!t(this, R) && !t(this, g)) return;
1910
+ const u = t(this, g);
1911
+ e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, S, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), t(this, h).classList.remove("is-scrubbing"), e(this, s, Kt).call(this), e(this, s, Zs).call(this, a), l && i !== null && (e(this, s, st).call(this), r(this, L, e(this, s, bt).call(this, i, u)), r(this, _, !0), r(this, gt, t(this, ot)), t(this, o).currentTime = t(this, L), e(this, s, k).call(this, t(this, L))), e(this, s, I).call(this, t(this, L)), u && t(this, ot) && await t(this, o).play(), e(this, s, Q).call(this);
1912
+ }, Os = function(i) {
1913
+ !t(this, R) && !t(this, g) || (e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, S, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), t(this, h).classList.remove("is-scrubbing"), e(this, s, Kt).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));
1914
+ }, Ks = function(i) {
1915
+ if (!t(this, ls)) return q(i);
1916
+ const a = Number.isFinite(t(this, o).duration) ? t(this, o).duration : 0;
1917
+ return a <= 0 ? q(i) : `-${q(Math.max(0, a - i))}`;
1918
+ }, qi = function() {
1919
+ t(this, Ct) && (window.clearTimeout(t(this, Ct)), r(this, Ct, 0));
1920
+ }, Hi = function() {
1921
+ e(this, s, qi).call(this), t(this, z).classList.remove("is-time-animating"), t(this, z).offsetWidth, t(this, z).classList.add("is-time-animating"), r(this, Ct, window.setTimeout(() => {
1922
+ r(this, Ct, 0), t(this, z).classList.remove("is-time-animating");
1923
+ }, 240));
1924
+ }, de = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), be = new WeakMap(), ws = function() {
1925
+ t(this, Pt) && (window.clearTimeout(t(this, Pt)), r(this, Pt, 0));
1926
+ }, li = function() {
1927
+ !this.volumeEnabled || !this.volumeSliderEnabled || !t(this, y) || (e(this, s, ws).call(this), t(this, w).classList.add("is-volume-open"));
1928
+ }, cs = new WeakMap(), hi = function(i = 150) {
1929
+ e(this, s, ws).call(this), r(this, Pt, window.setTimeout(t(this, cs), i));
1930
+ }, Is = new WeakMap(), zs = new WeakMap(), ve = new WeakMap(), ge = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), ke = new WeakMap(), Pe = new WeakMap(), Te = new WeakMap(), Rs = new WeakMap(), Ds = new WeakMap(), Ee = new WeakMap(), Ce = new WeakMap(), Ae = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Se = new WeakMap(), Me = new WeakMap(), Ve = new WeakMap(), Ie = new WeakMap(), ze = new WeakMap(), Re = new WeakMap(), De = new WeakMap(), qe = new WeakMap(), us = new WeakMap(), He = new WeakMap(), Be = new WeakMap(), $e = new WeakMap(), Ne = new WeakMap(), Ue = new WeakMap(), Ye = new WeakMap(), A = function() {
1723
1931
  return window.matchMedia("(max-width: 768px)").matches && window.matchMedia("(hover: none), (pointer: coarse)").matches;
1724
- }, xi = function() {
1725
- t(this, r) && (t(this, z)?.disconnect(), o(this, z, null), e(this, s, hs).call(this), e(this, s, Rs).call(this), o(this, R, !1), o(this, Kt, 0), o(this, D, !1), o(this, H, !1), o(this, W, !1), o(this, j, !1), o(this, Z, t(this, Z) + 1), o(this, vt, !1), o(this, gt, 0), e(this, s, J).call(this), o(this, g, !0), o(this, N, !1), o(this, mt, !1), o(this, C, null), t(this, c).classList.remove("has-loaded-once", "has-visible-frame", "is-progress-settling"), t(this, r).dataset.src = this.src, t(this, r).pause(), t(this, r).removeAttribute("src"), t(this, r).preload = "none", e(this, s, os).call(this), t(this, r).load(), e(this, s, ut).call(this, 0), t(this, A).call(this), t(this, L).call(this), e(this, s, T).call(this));
1726
- }, Ge(ti, "observedAttributes", [
1727
- "src",
1728
- "aspect-ratio",
1729
- "preload-margin",
1730
- "controls",
1731
- "disable-autoplay",
1732
- "enable-volume",
1733
- "disable-volume",
1734
- "disable-volume-slider",
1735
- "enable-picture-in-picture",
1736
- "disable-picture-in-picture",
1737
- "enable-fullscreen",
1738
- "disable-fullscreen",
1739
- "no-autoplay",
1740
- "no-volume",
1741
- "no-volume-slider",
1742
- "no-picture-in-picture",
1743
- "no-fullscreen"
1744
- ]);
1745
- customElements.get("simple-player") || customElements.define("simple-player", ti);
1932
+ }, Bi = function() {
1933
+ t(this, o) && (t(this, H)?.disconnect(), r(this, H, null), e(this, s, vs).call(this), e(this, s, _s).call(this), r(this, B, !1), r(this, is, 0), r(this, $, !1), r(this, N, !1), r(this, O, !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, F, 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, ds).call(this), t(this, o).load(), e(this, s, ft).call(this, 0), t(this, M).call(this), t(this, V).call(this), e(this, s, C).call(this));
1934
+ }, pi(fi, "observedAttributes", Xi);
1935
+ customElements.get("simple-player") || customElements.define("simple-player", fi);
1746
1936
  export {
1747
- ti as SimplePlayer
1937
+ fi as SimplePlayer
1748
1938
  };
1749
1939
  //# sourceMappingURL=simple-player.js.map