@vindral/web-sdk 4.5.0-7-gbf689372 → 4.5.0

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,5 +1,5 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as ee, n as d, o as te, p as ne, r as re, s as ie, t as ae, u as oe, v as se, y as ce } from "./hzC7OGw_.js";
2
+ import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as ee, n as d, o as te, p as ne, r as re, s as ie, t as ae, u as oe, v as se, y as ce } from "./zRKuZnIT.js";
3
3
  import { M as le } from "./C01DcfYu.js";
4
4
  import { a as f, i as p, n as m, r as h, t as g } from "./B7hT-BKr.js";
5
5
  import { c as ue, n as de, t as fe } from "./DeYmk5AL.js";
@@ -1063,35 +1063,32 @@ var Rn = class extends pe {
1063
1063
  }
1064
1064
  })();
1065
1065
  }
1066
- }, zn = 28, Bn = ["::cue", "::-webkit-media-text-track-display"];
1067
- function Vn(e) {
1066
+ }, zn = 28;
1067
+ function Bn(e) {
1068
1068
  let t = e.styleSheets[0];
1069
- if (!t) return [];
1069
+ if (!t) return null;
1070
1070
  try {
1071
- return Array.from(t.cssRules).filter((e) => e instanceof CSSStyleRule && Bn.some((t) => e.selectorText.endsWith(t)));
1072
- } catch (e) {
1073
- return [];
1074
- }
1071
+ for (let e of Array.from(t.cssRules)) if (e instanceof CSSStyleRule && e.selectorText.includes("::cue")) return e;
1072
+ } catch (e) {}
1073
+ return null;
1075
1074
  }
1076
- var Hn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), Kn = class {
1075
+ var Vn = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), Gn = class {
1077
1076
  constructor(t) {
1078
- f(this, Hn, void 0), f(this, Un, null), f(this, Wn, null), e(this, "observe", (e) => {
1079
- !window.ResizeObserver || m(Un, this) || (h(Un, this, new ResizeObserver(() => m(Gn, this).call(this, e))), m(Un, this).observe(e));
1077
+ f(this, Vn, void 0), f(this, Hn, null), f(this, Un, null), e(this, "observe", (e) => {
1078
+ !window.ResizeObserver || m(Hn, this) || (h(Hn, this, new ResizeObserver(() => m(Wn, this).call(this, e))), m(Hn, this).observe(e));
1080
1079
  }), e(this, "unload", () => {
1081
1080
  var e;
1082
- (e = m(Un, this)) == null || e.disconnect(), h(Un, this, null);
1083
- }), f(this, Gn, (e) => {
1084
- if (m(Hn, this).length === 0) return;
1085
- let { clientWidth: t, clientHeight: n } = e;
1086
- if (t <= 0 || n <= 0) return;
1087
- let r = d(t, n, { max: zn });
1088
- if (r !== m(Wn, this)) {
1089
- h(Wn, this, r);
1090
- for (let e of m(Hn, this)) e.style.fontSize = r;
1091
- }
1092
- }), h(Hn, this, Vn(t));
1093
- }
1094
- }, qn = class n extends pe {
1081
+ (e = m(Hn, this)) == null || e.disconnect(), h(Hn, this, null);
1082
+ }), f(this, Wn, (e) => {
1083
+ let t = m(Vn, this);
1084
+ if (!t) return;
1085
+ let { clientWidth: n, clientHeight: r } = e;
1086
+ if (n <= 0 || r <= 0) return;
1087
+ let i = d(n, r, { max: zn });
1088
+ i !== m(Un, this) && (h(Un, this, i), t.style.fontSize = i);
1089
+ }), h(Vn, this, Bn(t));
1090
+ }
1091
+ }, Kn = class n extends pe {
1095
1092
  constructor(r) {
1096
1093
  var i;
1097
1094
  super(), i = this, e(this, "container", void 0), e(this, "unload", () => {
@@ -1122,35 +1119,35 @@ var Hn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Wn =
1122
1119
  return () => Promise.resolve();
1123
1120
  }
1124
1121
  };
1125
- e(qn, "isFullscreenApiSupported", (e) => oe(e));
1122
+ e(Kn, "isFullscreenApiSupported", (e) => oe(e));
1126
1123
  //#endregion
1127
1124
  //#region ../../libs/player-next/src/PictureInPicture.ts
1128
- var Jn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), rr = class extends pe {
1125
+ var qn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = class extends pe {
1129
1126
  constructor(n) {
1130
1127
  var o;
1131
1128
  super(), o = this, e(this, "unload", () => {
1132
1129
  this.element.removeEventListener("enterpictureinpicture", this.onChange), this.element.removeEventListener("leavepictureinpicture", this.onChange), ne(this.element, !1);
1133
1130
  }), e(this, "request", t(function* () {
1134
1131
  try {
1135
- return yield m(Jn, o).call(o);
1132
+ return yield m(qn, o).call(o);
1136
1133
  } catch (e) {
1137
1134
  throw o.onChange(), e;
1138
1135
  }
1139
1136
  })), e(this, "exit", t(function* () {
1140
1137
  try {
1141
- return yield m(Yn, o).call(o);
1138
+ return yield m(Jn, o).call(o);
1142
1139
  } catch (e) {
1143
1140
  throw o.onChange(), e;
1144
1141
  }
1145
1142
  })), e(this, "onChange", () => {
1146
1143
  this.emit("on picture in picture change", this.isPictureInPictureActive());
1147
- }), e(this, "isPictureInPictureActive", () => m(er, this).call(this) || m($n, this).call(this)), e(this, "isSupported", () => m(nr, this).call(this) || m(Qn, this).call(this)), f(this, Jn, () => m(Qn, this).call(this) ? m(Xn, this).call(this) : m(nr, this).call(this) ? m(tr, this).call(this, "picture-in-picture") : Promise.resolve()), f(this, Yn, () => this.isPictureInPictureActive() ? m(Qn, this).call(this) ? m(Zn, this).call(this) : m(nr, this).call(this) ? m(tr, this).call(this, "inline") : Promise.resolve() : Promise.resolve()), f(this, Xn, t(function* () {
1144
+ }), e(this, "isPictureInPictureActive", () => m($n, this).call(this) || m(Qn, this).call(this)), e(this, "isSupported", () => m(tr, this).call(this) || m(Zn, this).call(this)), f(this, qn, () => m(Zn, this).call(this) ? m(Yn, this).call(this) : m(tr, this).call(this) ? m(er, this).call(this, "picture-in-picture") : Promise.resolve()), f(this, Jn, () => this.isPictureInPictureActive() ? m(Zn, this).call(this) ? m(Xn, this).call(this) : m(tr, this).call(this) ? m(er, this).call(this, "inline") : Promise.resolve() : Promise.resolve()), f(this, Yn, t(function* () {
1148
1145
  let e = ie(o.element);
1149
1146
  e && (yield e());
1150
- })), f(this, Zn, t(function* () {
1147
+ })), f(this, Xn, t(function* () {
1151
1148
  let e = r();
1152
1149
  e && (yield e());
1153
- })), f(this, Qn, () => c(this.element)), f(this, $n, () => a()), f(this, er, () => i(this.element) === "picture-in-picture"), f(this, tr, (e) => (s(this.element) && ee(this.element, e), Promise.resolve())), f(this, nr, () => s(this.element)), this.element = n, this.element.addEventListener("enterpictureinpicture", this.onChange), this.element.addEventListener("leavepictureinpicture", this.onChange), ne(this.element, !0);
1150
+ })), f(this, Zn, () => c(this.element)), f(this, Qn, () => a()), f(this, $n, () => i(this.element) === "picture-in-picture"), f(this, er, (e) => (s(this.element) && ee(this.element, e), Promise.resolve())), f(this, tr, () => s(this.element)), this.element = n, this.element.addEventListener("enterpictureinpicture", this.onChange), this.element.addEventListener("leavepictureinpicture", this.onChange), ne(this.element, !0);
1154
1151
  }
1155
1152
  get videoElement() {
1156
1153
  return this.element;
@@ -1158,7 +1155,7 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Xn =
1158
1155
  };
1159
1156
  //#endregion
1160
1157
  //#region ../../libs/player-next/src/timeshift/firstMediaPlaylistUrl.ts
1161
- function ir(e, t) {
1158
+ function rr(e, t) {
1162
1159
  let n = e.split("\n").map((e) => e.trim());
1163
1160
  for (let e = 0; e < n.length; e++) {
1164
1161
  var r;
@@ -1170,7 +1167,7 @@ function ir(e, t) {
1170
1167
  }
1171
1168
  //#endregion
1172
1169
  //#region ../../libs/player-next/src/timeshift/parseMediaPlaylistDuration.ts
1173
- function ar(e) {
1170
+ function ir(e) {
1174
1171
  let t = 0;
1175
1172
  for (let n of e.split("\n")) {
1176
1173
  let e = n.trim().match(/^#EXTINF:([\d.]+)/), r = e != null && e[1] ? Number.parseFloat(e[1]) : NaN;
@@ -1180,90 +1177,90 @@ function ar(e) {
1180
1177
  }
1181
1178
  //#endregion
1182
1179
  //#region ../../libs/player-next/src/timeshift/probeTimeshiftDuration.ts
1183
- var or = 5e3;
1184
- function sr(e, t) {
1185
- return cr.apply(this, arguments);
1180
+ var ar = 5e3;
1181
+ function or(e, t) {
1182
+ return sr.apply(this, arguments);
1186
1183
  }
1187
- function cr() {
1188
- return cr = t(function* (e, t, n = {}) {
1189
- let { signal: r, timeoutMs: i = or } = n, a = new AbortController(), o = () => a.abort();
1184
+ function sr() {
1185
+ return sr = t(function* (e, t, n = {}) {
1186
+ let { signal: r, timeoutMs: i = ar } = n, a = new AbortController(), o = () => a.abort();
1190
1187
  r && (r.aborted ? a.abort() : r.addEventListener("abort", o, { once: !0 }));
1191
1188
  let s = setTimeout(o, i);
1192
1189
  try {
1193
1190
  let n = yield fetch(e, { signal: a.signal });
1194
1191
  if (!n.ok) return;
1195
- let r = ir(yield n.text(), e);
1192
+ let r = rr(yield n.text(), e);
1196
1193
  if (!r) return;
1197
1194
  let i = new URL(r);
1198
1195
  i.searchParams.set("channelId", t.channelId), i.searchParams.set("from", t.from), t.authToken && i.searchParams.set("authToken", t.authToken);
1199
1196
  let o = yield fetch(i.toString(), { signal: a.signal });
1200
- return o.ok ? ar(yield o.text()) : void 0;
1197
+ return o.ok ? ir(yield o.text()) : void 0;
1201
1198
  } catch (e) {
1202
1199
  return;
1203
1200
  } finally {
1204
1201
  clearTimeout(s), r == null || r.removeEventListener("abort", o);
1205
1202
  }
1206
- }), cr.apply(this, arguments);
1203
+ }), sr.apply(this, arguments);
1207
1204
  }
1208
1205
  //#endregion
1209
1206
  //#region ../../libs/player-next/src/timeshift/TimeshiftDurationSource.ts
1210
- var lr = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakSet(), yr = class {
1211
- constructor({ onChange: e, probe: t = sr, now: n = () => performance.now() }) {
1212
- g(this, A), f(this, lr, void 0), f(this, ur, void 0), f(this, dr, void 0), f(this, fr, void 0), f(this, pr, !0), f(this, mr, !1), f(this, hr, 0), f(this, gr, 0), f(this, _r, 0), f(this, vr, null), h(lr, this, e), h(ur, this, t), h(dr, this, n);
1207
+ var cr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakSet(), vr = class {
1208
+ constructor({ onChange: e, probe: t = or, now: n = () => performance.now() }) {
1209
+ g(this, A), f(this, cr, void 0), f(this, lr, void 0), f(this, ur, void 0), f(this, dr, void 0), f(this, fr, !0), f(this, pr, !1), f(this, mr, 0), f(this, hr, 0), f(this, gr, 0), f(this, _r, null), h(cr, this, e), h(lr, this, t), h(ur, this, n);
1213
1210
  }
1214
1211
  start({ multivariantUrl: e, params: t, windowCapSeconds: n }) {
1215
- if (p(A, this, br).call(this), !(n > 0)) {
1216
- m(lr, this).call(this, n);
1212
+ if (p(A, this, yr).call(this), !(n > 0)) {
1213
+ m(cr, this).call(this, n);
1217
1214
  return;
1218
1215
  }
1219
1216
  let r = new AbortController();
1220
- h(fr, this, r);
1217
+ h(dr, this, r);
1221
1218
  let { signal: i } = r;
1222
- m(ur, this).call(this, e, t, { signal: i }).then((e) => {
1219
+ m(lr, this).call(this, e, t, { signal: i }).then((e) => {
1223
1220
  if (!i.aborted) {
1224
1221
  if (e === void 0) {
1225
- m(lr, this).call(this, n);
1222
+ m(cr, this).call(this, n);
1226
1223
  return;
1227
1224
  }
1228
- h(gr, this, n), h(hr, this, Math.min(Math.max(e, 0), n)), h(_r, this, m(dr, this).call(this)), h(mr, this, !0), p(A, this, xr).call(this), m(pr, this) && p(A, this, Sr).call(this);
1225
+ h(hr, this, n), h(mr, this, Math.min(Math.max(e, 0), n)), h(gr, this, m(ur, this).call(this)), h(pr, this, !0), p(A, this, br).call(this), m(fr, this) && p(A, this, xr).call(this);
1229
1226
  }
1230
1227
  });
1231
1228
  }
1232
1229
  setLive(e) {
1233
- h(pr, this, e), !(!m(fr, this) || e) && (p(A, this, Cr).call(this), p(A, this, xr).call(this));
1230
+ h(fr, this, e), !(!m(dr, this) || e) && (p(A, this, Sr).call(this), p(A, this, br).call(this));
1234
1231
  }
1235
1232
  applyLoadedDuration(e) {
1236
- p(A, this, br).call(this), m(lr, this).call(this, Number.isNaN(e) ? 0 : e);
1233
+ p(A, this, yr).call(this), m(cr, this).call(this, Number.isNaN(e) ? 0 : e);
1237
1234
  }
1238
1235
  stop() {
1239
- p(A, this, br).call(this);
1236
+ p(A, this, yr).call(this);
1240
1237
  }
1241
1238
  };
1242
- function br() {
1239
+ function yr() {
1243
1240
  var e;
1244
- (e = m(fr, this)) == null || e.abort(), h(fr, this, void 0), p(A, this, Cr).call(this), h(mr, this, !1);
1241
+ (e = m(dr, this)) == null || e.abort(), h(dr, this, void 0), p(A, this, Sr).call(this), h(pr, this, !1);
1242
+ }
1243
+ function br() {
1244
+ if (!m(pr, this)) return;
1245
+ let e = m(mr, this) + Math.max(0, (m(ur, this).call(this) - m(gr, this)) / 1e3), t = Math.min(m(hr, this), e);
1246
+ m(cr, this).call(this, t), t >= m(hr, this) && p(A, this, Sr).call(this);
1245
1247
  }
1246
1248
  function xr() {
1247
- if (!m(mr, this)) return;
1248
- let e = m(hr, this) + Math.max(0, (m(dr, this).call(this) - m(_r, this)) / 1e3), t = Math.min(m(gr, this), e);
1249
- m(lr, this).call(this, t), t >= m(gr, this) && p(A, this, Cr).call(this);
1249
+ m(_r, this) === null && h(_r, this, window.setInterval(() => p(A, this, br).call(this), 1e3));
1250
1250
  }
1251
1251
  function Sr() {
1252
- m(vr, this) === null && h(vr, this, window.setInterval(() => p(A, this, xr).call(this), 1e3));
1253
- }
1254
- function Cr() {
1255
- m(vr, this) !== null && (clearInterval(m(vr, this)), h(vr, this, null));
1252
+ m(_r, this) !== null && (clearInterval(m(_r, this)), h(_r, this, null));
1256
1253
  }
1257
1254
  //#endregion
1258
1255
  //#region ../../libs/player-next/src/utils/getVindralAttributes.ts
1259
- var wr = (e) => {
1256
+ var Cr = (e) => {
1260
1257
  var t;
1261
1258
  let n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0;
1262
1259
  return !n && (t = e.nodeName) != null && t.includes("-") && (globalThis.customElements.upgrade(e), n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0), Array.isArray(n) ? n.filter((e) => me.includes(e)) : [];
1263
1260
  };
1264
1261
  //#endregion
1265
1262
  //#region ../../libs/player-next/src/utils/humanReadableTimeToSeconds.ts
1266
- function Tr(e) {
1263
+ function wr(e) {
1267
1264
  if (typeof e != "string") return NaN;
1268
1265
  let t = [...e.matchAll(/(\d+(?:\.\d+)?)([hms])/gi)];
1269
1266
  return t.length === 0 ? NaN : t.reduce((e, t) => {
@@ -1279,37 +1276,37 @@ function Tr(e) {
1279
1276
  }
1280
1277
  //#endregion
1281
1278
  //#region ../../libs/player-next/src/utils/timelineMarkers.ts
1282
- var Er = re.get().createContext("TimelineMarkers"), Dr = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?$/, Or = (e) => {
1283
- Er.warn(`Timeline marker time "${e}" has no timezone and is interpreted in the viewer's local timezone, so it can land at a different position for viewers in other timezones. Provide an ISO 8601 time with an offset (e.g. "${e}Z") or epoch milliseconds.`);
1284
- }, kr = (e) => {
1279
+ var Tr = re.get().createContext("TimelineMarkers"), Er = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?$/, Dr = (e) => {
1280
+ Tr.warn(`Timeline marker time "${e}" has no timezone and is interpreted in the viewer's local timezone, so it can land at a different position for viewers in other timezones. Provide an ISO 8601 time with an offset (e.g. "${e}Z") or epoch milliseconds.`);
1281
+ }, Or = (e) => {
1285
1282
  if (typeof e == "number" && Number.isFinite(e)) return e;
1286
1283
  if (typeof e == "string") {
1287
1284
  let t = Date.parse(e);
1288
- return Number.isNaN(t) ? null : (Dr.test(e) && Or(e), t);
1285
+ return Number.isNaN(t) ? null : (Er.test(e) && Dr(e), t);
1289
1286
  }
1290
1287
  if (e instanceof Date) {
1291
1288
  let t = e.getTime();
1292
1289
  return Number.isNaN(t) ? null : t;
1293
1290
  }
1294
1291
  return null;
1295
- }, Ar = (e) => {
1292
+ }, kr = (e) => {
1296
1293
  if (typeof e != "object" || !e) return null;
1297
- let { time: t, label: n, type: r } = e, i = kr(t);
1294
+ let { time: t, label: n, type: r } = e, i = Or(t);
1298
1295
  if (i === null || typeof n != "string" || n.length === 0) return null;
1299
1296
  let a = {
1300
1297
  time: i,
1301
1298
  label: n
1302
1299
  };
1303
1300
  return typeof r == "string" && r.length > 0 && (a.type = r), a;
1304
- }, jr = (e) => {
1301
+ }, Ar = (e) => {
1305
1302
  if (!Array.isArray(e)) return [];
1306
- let t = e.map(Ar).filter((e) => e !== null), n = e.length - t.length;
1307
- return n > 0 && Er.warn(`Dropped ${n} invalid timeline marker(s). Each marker needs a non-empty "label" and a valid "time" (epoch milliseconds, a Date, or an ISO 8601 string).`), t;
1308
- }, Mr = (e) => e ? jr(ue(e)) : [], Nr = (e, t, n) => {
1303
+ let t = e.map(kr).filter((e) => e !== null), n = e.length - t.length;
1304
+ return n > 0 && Tr.warn(`Dropped ${n} invalid timeline marker(s). Each marker needs a non-empty "label" and a valid "time" (epoch milliseconds, a Date, or an ISO 8601 string).`), t;
1305
+ }, jr = (e) => e ? Ar(ue(e)) : [], Mr = (e, t, n) => {
1309
1306
  if (!Number.isFinite(n) || n <= 0) return null;
1310
1307
  let r = 1 - (t - e) / (n * 1e3);
1311
1308
  return r < 0 || r > 1 ? null : r;
1312
- }, Pr = class extends pe {
1309
+ }, Nr = class extends pe {
1313
1310
  constructor(t) {
1314
1311
  if (super(), e(this, "audioContext", void 0), e(this, "audioNode", void 0), e(this, "bufferLength", void 0), e(this, "animationFrameId", null), e(this, "canUseFloatTimeDomainData", void 0), e(this, "byteSampleBuffer", null), e(this, "floatSampleBuffer", null), e(this, "leftAnalyser", void 0), e(this, "rightAnalyser", void 0), e(this, "mediaElementSource", null), e(this, "update", () => {
1315
1312
  let e = this.getDecibel(this.leftAnalyser, this.floatSampleBuffer || this.byteSampleBuffer), t = this.getDecibel(this.rightAnalyser, this.floatSampleBuffer || this.byteSampleBuffer);
@@ -1361,18 +1358,18 @@ var Er = re.get().createContext("TimelineMarkers"), Dr = /^\d{4}-\d{2}-\d{2}[T ]
1361
1358
  get isMediaElementSource() {
1362
1359
  return this.source instanceof HTMLMediaElement;
1363
1360
  }
1364
- }, j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), Fr = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), Wr = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Jr = class {
1361
+ }, j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), Fr = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), Ur = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), qr = class {
1365
1362
  constructor(t, n) {
1366
- g(this, F), f(this, j, void 0), f(this, M, void 0), f(this, N, void 0), f(this, Fr, void 0), f(this, Ir, void 0), e(this, "userPaused", !0), f(this, Lr, void 0), f(this, Rr, void 0), f(this, zr, !1), f(this, Br, !1), f(this, Vr, null), f(this, Hr, 0), f(this, Ur, !1), f(this, P, re.get().createContext("HlsPlayer")), f(this, Wr, () => p(F, this, si).call(this, !0)), f(this, Gr, () => p(F, this, si).call(this, !1)), f(this, Kr, () => {
1367
- m(j, this).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !m(j, this).paused && p(F, this, si).call(this, !1);
1368
- }), f(this, qr, () => {
1369
- m(j, this).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA && p(F, this, si).call(this, !1);
1370
- }), h(M, this, t), h(Rr, this, n == null ? void 0 : n.maxVideoBitRate), m(M, this).style.position = "absolute", m(M, this).style.top = "0", m(M, this).style.left = "0", m(M, this).style.width = "100%", m(M, this).style.height = "100%", m(M, this).style.opacity = "0", m(M, this).style.pointerEvents = "none", m(M, this).style.transition = "opacity 0.12s linear";
1363
+ g(this, F), f(this, j, void 0), f(this, M, void 0), f(this, N, void 0), f(this, Pr, void 0), f(this, Fr, void 0), e(this, "userPaused", !0), f(this, Ir, void 0), f(this, Lr, void 0), f(this, Rr, !1), f(this, zr, !1), f(this, Br, null), f(this, Vr, 0), f(this, Hr, !1), f(this, P, re.get().createContext("HlsPlayer")), f(this, Ur, () => p(F, this, oi).call(this, !0)), f(this, Wr, () => p(F, this, oi).call(this, !1)), f(this, Gr, () => {
1364
+ m(j, this).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !m(j, this).paused && p(F, this, oi).call(this, !1);
1365
+ }), f(this, Kr, () => {
1366
+ m(j, this).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA && p(F, this, oi).call(this, !1);
1367
+ }), h(M, this, t), h(Lr, this, n == null ? void 0 : n.maxVideoBitRate), m(M, this).style.position = "absolute", m(M, this).style.top = "0", m(M, this).style.left = "0", m(M, this).style.width = "100%", m(M, this).style.height = "100%", m(M, this).style.opacity = "0", m(M, this).style.pointerEvents = "none", m(M, this).style.transition = "opacity 0.12s linear";
1371
1368
  let r = document.createElement("video");
1372
- h(j, this, r), t.appendChild(m(j, this)), m(j, this).style.width = "100%", m(j, this).style.height = "100%", m(j, this).setAttribute("playsinline", ""), m(j, this).setAttribute("webkit-playsinline", ""), m(j, this).setAttribute("preload", "metadata"), p(F, this, ai).call(this), h(Ur, this, m(j, this).muted), (n == null ? void 0 : n.volume) !== void 0 && (this.volume = n.volume), (n == null ? void 0 : n.muted) !== void 0 && (this.muted = n.muted);
1369
+ h(j, this, r), t.appendChild(m(j, this)), m(j, this).style.width = "100%", m(j, this).style.height = "100%", m(j, this).setAttribute("playsinline", ""), m(j, this).setAttribute("webkit-playsinline", ""), m(j, this).setAttribute("preload", "metadata"), p(F, this, ii).call(this), h(Hr, this, m(j, this).muted), (n == null ? void 0 : n.volume) !== void 0 && (this.volume = n.volume), (n == null ? void 0 : n.muted) !== void 0 && (this.muted = n.muted);
1373
1370
  }
1374
1371
  hide() {
1375
- h(zr, this, !0), h(Br, this, !1), m(M, this).classList.remove("active"), m(M, this).style.opacity = "0", m(M, this).style.pointerEvents = "none", h(Vr, this, null);
1372
+ h(Rr, this, !0), h(zr, this, !1), m(M, this).classList.remove("active"), m(M, this).style.opacity = "0", m(M, this).style.pointerEvents = "none", h(Br, this, null);
1376
1373
  }
1377
1374
  play() {
1378
1375
  var e = this;
@@ -1388,17 +1385,17 @@ var Er = re.get().createContext("TimelineMarkers"), Dr = /^\d{4}-\d{2}-\d{2}[T ]
1388
1385
  var n = this;
1389
1386
  return t(function* () {
1390
1387
  if (m(P, n).debug("HlsPlayer seek to", e.time), !Number.isFinite(e.time)) {
1391
- h(Vr, n, null);
1388
+ h(Br, n, null);
1392
1389
  return;
1393
1390
  }
1394
- if (h(Vr, n, e.time > .1 ? e.time : null), n.isActive() && m(N, n)) p(F, n, $r).call(n, e.time);
1395
- else return p(F, n, ei).call(n, e);
1391
+ if (h(Br, n, e.time > .1 ? e.time : null), n.isActive() && m(N, n)) p(F, n, Qr).call(n, e.time);
1392
+ else return p(F, n, $r).call(n, e);
1396
1393
  })();
1397
1394
  }
1398
1395
  shouldIgnoreTimeupdate() {
1399
- if (m(Vr, this) == null) return !1;
1396
+ if (m(Br, this) == null) return !1;
1400
1397
  let e = m(j, this).currentTime;
1401
- return !Number.isFinite(e) || e <= .1 ? !0 : (h(Vr, this, null), !1);
1398
+ return !Number.isFinite(e) || e <= .1 ? !0 : (h(Br, this, null), !1);
1402
1399
  }
1403
1400
  isPipSupported() {
1404
1401
  return "pictureInPictureEnabled" in document && !m(j, this).disablePictureInPicture;
@@ -1413,7 +1410,7 @@ var Er = re.get().createContext("TimelineMarkers"), Dr = /^\d{4}-\d{2}-\d{2}[T ]
1413
1410
  return m(M, this).style.opacity === "1" || m(M, this).classList.contains("active");
1414
1411
  }
1415
1412
  cleanup() {
1416
- p(F, this, oi).call(this), p(F, this, Qr).call(this), m(Lr, this) && (cancelAnimationFrame(m(Lr, this)), h(Lr, this, void 0)), h(Vr, this, null), m(j, this).remove();
1413
+ p(F, this, ai).call(this), p(F, this, Zr).call(this), m(Ir, this) && (cancelAnimationFrame(m(Ir, this)), h(Ir, this, void 0)), h(Br, this, null), m(j, this).remove();
1417
1414
  }
1418
1415
  addEventListener(e, t) {
1419
1416
  m(j, this).addEventListener(e, t);
@@ -1425,7 +1422,7 @@ var Er = re.get().createContext("TimelineMarkers"), Dr = /^\d{4}-\d{2}-\d{2}[T ]
1425
1422
  return m(j, this).dispatchEvent(e);
1426
1423
  }
1427
1424
  setTimeshiftUrl(e) {
1428
- m(Ir, this) !== e && (m(P, this).debug("HLSPlayer Setting timeshift URL to", e), h(Ir, this, e));
1425
+ m(Fr, this) !== e && (m(P, this).debug("HLSPlayer Setting timeshift URL to", e), h(Fr, this, e));
1429
1426
  }
1430
1427
  get videoElement() {
1431
1428
  return m(j, this);
@@ -1443,10 +1440,10 @@ var Er = re.get().createContext("TimelineMarkers"), Dr = /^\d{4}-\d{2}-\d{2}[T ]
1443
1440
  return m(j, this).volume;
1444
1441
  }
1445
1442
  set muted(e) {
1446
- h(Ur, this, e), m(j, this).muted = e;
1443
+ h(Hr, this, e), m(j, this).muted = e;
1447
1444
  }
1448
1445
  get muted() {
1449
- return m(Ur, this);
1446
+ return m(Hr, this);
1450
1447
  }
1451
1448
  set currentTime(e) {
1452
1449
  m(j, this).currentTime = e;
@@ -1461,17 +1458,17 @@ var Er = re.get().createContext("TimelineMarkers"), Dr = /^\d{4}-\d{2}-\d{2}[T ]
1461
1458
  return m(j, this).duration;
1462
1459
  }
1463
1460
  get maxVideoBitRate() {
1464
- return m(Rr, this);
1461
+ return m(Lr, this);
1465
1462
  }
1466
1463
  set maxVideoBitRate(e) {
1467
- h(Rr, this, e), e !== void 0 && m(N, this) && p(F, this, Xr).call(this, e);
1464
+ h(Lr, this, e), e !== void 0 && m(N, this) && p(F, this, Yr).call(this, e);
1468
1465
  }
1469
1466
  };
1470
- function Yr() {
1467
+ function Jr() {
1471
1468
  var e = this;
1472
1469
  return t(function* () {
1473
1470
  let { default: t } = yield import("./Ddby8xU_.js");
1474
- if (h(Fr, e, t), !t.isSupported()) {
1471
+ if (h(Pr, e, t), !t.isSupported()) {
1475
1472
  m(P, e).warn("HLS not supported");
1476
1473
  return;
1477
1474
  }
@@ -1495,17 +1492,17 @@ function Yr() {
1495
1492
  testBandwidth: !1,
1496
1493
  debug: !1
1497
1494
  })), m(N, e).attachMedia(m(j, e)), m(N, e).on(t.Events.MEDIA_ATTACHED, () => m(P, e).debug("[HLS] media attached")), m(N, e).on(t.Events.MANIFEST_PARSED, () => m(P, e).debug("[HLS] manifest parsed")), m(N, e).on(t.Events.ERROR, (t, n) => {
1498
- m(P, e).error("[HLS] error:", n), n.fatal && p(F, e, Zr).call(e, n);
1495
+ m(P, e).error("[HLS] error:", n), n.fatal && p(F, e, Xr).call(e, n);
1499
1496
  }), m(N, e).on(t.Events.MANIFEST_PARSED, () => {
1500
1497
  var t;
1501
- !m(Rr, e) || ((t = m(N, e)) == null ? void 0 : t.levels.length) === 0 || p(F, e, Xr).call(e, m(Rr, e));
1498
+ !m(Lr, e) || ((t = m(N, e)) == null ? void 0 : t.levels.length) === 0 || p(F, e, Yr).call(e, m(Lr, e));
1502
1499
  }), m(N, e).on(t.Events.LEVEL_SWITCHED, () => {
1503
1500
  var t, n;
1504
1501
  m(P, e).debug("Level switched:", (t = m(N, e)) == null ? void 0 : t.currentLevel, "max:", e.maxVideoBitRate, "autoLevelCapping:", (n = m(N, e)) == null ? void 0 : n.autoLevelCapping);
1505
1502
  });
1506
1503
  })();
1507
1504
  }
1508
- function Xr(e) {
1505
+ function Yr(e) {
1509
1506
  if (!m(N, this)) {
1510
1507
  m(P, this).warn("HLS not initialized, cannot set bitrate cap");
1511
1508
  return;
@@ -1521,12 +1518,12 @@ function Xr(e) {
1521
1518
  let r = m(N, this).currentLevel;
1522
1519
  m(N, this).autoLevelCapping = t, r !== t && (m(P, this).debug(`Current level ${r} exceeds cap ${t}, forcing immediate switch`), m(N, this).currentLevel = t);
1523
1520
  }
1524
- function Zr(e) {
1525
- if (!m(Fr, this)) {
1521
+ function Xr(e) {
1522
+ if (!m(Pr, this)) {
1526
1523
  m(P, this).error("Hls class not available for error handling");
1527
1524
  return;
1528
1525
  }
1529
- let t = m(Fr, this);
1526
+ let t = m(Pr, this);
1530
1527
  switch (e.type) {
1531
1528
  case t.ErrorTypes.NETWORK_ERROR:
1532
1529
  var n;
@@ -1537,39 +1534,39 @@ function Zr(e) {
1537
1534
  m(P, this).warn("[HLS] media error -> recoverMediaError"), (r = m(N, this)) == null || r.recoverMediaError();
1538
1535
  break;
1539
1536
  default:
1540
- m(P, this).error("[HLS] fatal -> destroy"), p(F, this, Qr).call(this);
1537
+ m(P, this).error("[HLS] fatal -> destroy"), p(F, this, Zr).call(this);
1541
1538
  break;
1542
1539
  }
1543
1540
  }
1544
- function Qr() {
1541
+ function Zr() {
1545
1542
  m(N, this) && (m(N, this).destroy(), h(N, this, void 0));
1546
1543
  }
1547
- function $r(e) {
1544
+ function Qr(e) {
1548
1545
  if (!Number.isFinite(e)) {
1549
- h(Vr, this, null);
1546
+ h(Br, this, null);
1550
1547
  return;
1551
1548
  }
1552
- let t = p(F, this, ii).call(this, m(j, this), e);
1553
- h(Vr, this, t > .1 ? t : null), m(Lr, this) && cancelAnimationFrame(m(Lr, this)), h(Lr, this, requestAnimationFrame(() => {
1549
+ let t = p(F, this, ri).call(this, m(j, this), e);
1550
+ h(Br, this, t > .1 ? t : null), m(Ir, this) && cancelAnimationFrame(m(Ir, this)), h(Ir, this, requestAnimationFrame(() => {
1554
1551
  m(j, this).currentTime = t;
1555
1552
  }));
1556
1553
  }
1557
- function ei(e) {
1554
+ function $r(e) {
1558
1555
  var n = this;
1559
1556
  return t(function* () {
1560
1557
  var t;
1561
- let { time: r, playWhenReady: i = !0 } = e || {}, a = h(Hr, n, (t = m(Hr, n), ++t));
1562
- if (!m(Ir, n)) {
1558
+ let { time: r, playWhenReady: i = !0 } = e || {}, a = h(Vr, n, (t = m(Vr, n), ++t));
1559
+ if (!m(Fr, n)) {
1563
1560
  m(P, n).warn("No timeshift URL");
1564
1561
  return;
1565
1562
  }
1566
- if (!m(N, n) && (yield p(F, n, Yr).call(n), !p(F, n, ci).call(n, a))) return;
1567
- h(zr, n, !1), h(Br, n, !1), m(N, n) && (!m(N, n).url || m(N, n).url !== m(Ir, n)) && (m(P, n).debug("Loading timeshift URL", m(Ir, n)), m(N, n).loadSource(m(Ir, n)));
1563
+ if (!m(N, n) && (yield p(F, n, Jr).call(n), !p(F, n, si).call(n, a))) return;
1564
+ h(Rr, n, !1), h(zr, n, !1), m(N, n) && (!m(N, n).url || m(N, n).url !== m(Fr, n)) && (m(P, n).debug("Loading timeshift URL", m(Fr, n)), m(N, n).loadSource(m(Fr, n)));
1568
1565
  let o = n.muted;
1569
- m(j, n).muted = !0, yield p(F, n, ti).call(n), p(F, n, ci).call(n, a) && (p(F, n, $r).call(n, r), !(i && (yield n.play(), !p(F, n, ci).call(n, a))) && p(F, n, ni).call(n, o, a));
1566
+ m(j, n).muted = !0, yield p(F, n, ei).call(n), p(F, n, si).call(n, a) && (p(F, n, Qr).call(n, r), !(i && (yield n.play(), !p(F, n, si).call(n, a))) && p(F, n, ti).call(n, o, a));
1570
1567
  })();
1571
1568
  }
1572
- function ti() {
1569
+ function ei() {
1573
1570
  return m(j, this).duration && !Number.isNaN(m(j, this).duration) ? Promise.resolve() : new Promise((e) => {
1574
1571
  m(P, this).debug("Waiting for duration...");
1575
1572
  let t = () => {
@@ -1580,11 +1577,11 @@ function ti() {
1580
1577
  m(j, this).addEventListener("loadedmetadata", t);
1581
1578
  });
1582
1579
  }
1583
- function ni(e, t) {
1580
+ function ti(e, t) {
1584
1581
  let n = HTMLMediaElement.HAVE_CURRENT_DATA, r = () => m(j, this).readyState >= n && m(j, this).videoWidth > 0 && m(j, this).videoHeight > 0, i = () => {
1585
- m(zr, this) || m(Br, this) || !p(F, this, ci).call(this, t) || (h(Br, this, !0), m(P, this).debug("Revealing timeshift video"), m(M, this).classList.add("active"), m(M, this).style.opacity = "1", m(M, this).style.pointerEvents = "auto", m(j, this).dispatchEvent(new CustomEvent("timeshiftready", { detail: { activationId: t } })), e || p(F, this, ri).call(this, t));
1582
+ m(Rr, this) || m(zr, this) || !p(F, this, si).call(this, t) || (h(zr, this, !0), m(P, this).debug("Revealing timeshift video"), m(M, this).classList.add("active"), m(M, this).style.opacity = "1", m(M, this).style.pointerEvents = "auto", m(j, this).dispatchEvent(new CustomEvent("timeshiftready", { detail: { activationId: t } })), e || p(F, this, ni).call(this, t));
1586
1583
  }, a = () => {
1587
- m(zr, this) || m(Br, this) || !p(F, this, ci).call(this, t) || r() && (s(), i());
1584
+ m(Rr, this) || m(zr, this) || !p(F, this, si).call(this, t) || r() && (s(), i());
1588
1585
  }, o = !1, s = () => {
1589
1586
  o || (o = !0, m(j, this).removeEventListener("canplay", a), m(j, this).removeEventListener("canplaythrough", a), m(j, this).removeEventListener("loadeddata", a), clearTimeout(c));
1590
1587
  };
@@ -1597,9 +1594,9 @@ function ni(e, t) {
1597
1594
  m(P, this).debug("Timeout reached, forcing reveal"), s(), i();
1598
1595
  }, 2e3);
1599
1596
  }
1600
- function ri(e) {
1597
+ function ni(e) {
1601
1598
  let t = () => {
1602
- p(F, this, ci).call(this, e) && (m(j, this).muted = !1);
1599
+ p(F, this, si).call(this, e) && (m(j, this).muted = !1);
1603
1600
  };
1604
1601
  "requestVideoFrameCallback" in m(j, this) ? m(j, this).requestVideoFrameCallback(() => {
1605
1602
  setTimeout(() => {
@@ -1609,43 +1606,43 @@ function ri(e) {
1609
1606
  t();
1610
1607
  }, 120);
1611
1608
  }
1612
- function ii(e, t) {
1609
+ function ri(e, t) {
1613
1610
  let n = e.seekable;
1614
1611
  if (!n || n.length === 0) return t;
1615
1612
  let r = n.start(0), i = n.end(n.length - 1);
1616
1613
  return m(P, this).debug("Clamped seekable:", Math.max(r, Math.min(t, i))), Math.max(r, Math.min(t, i));
1617
1614
  }
1618
- function ai() {
1615
+ function ii() {
1616
+ for (let e of ci._) m(j, this).addEventListener(e, m(Ur, this));
1619
1617
  for (let e of li._) m(j, this).addEventListener(e, m(Wr, this));
1620
- for (let e of ui._) m(j, this).addEventListener(e, m(Gr, this));
1621
- m(j, this).addEventListener("timeupdate", m(Kr, this)), m(j, this).addEventListener("progress", m(qr, this));
1618
+ m(j, this).addEventListener("timeupdate", m(Gr, this)), m(j, this).addEventListener("progress", m(Kr, this));
1622
1619
  }
1623
- function oi() {
1620
+ function ai() {
1621
+ for (let e of ci._) m(j, this).removeEventListener(e, m(Ur, this));
1624
1622
  for (let e of li._) m(j, this).removeEventListener(e, m(Wr, this));
1625
- for (let e of ui._) m(j, this).removeEventListener(e, m(Gr, this));
1626
- m(j, this).removeEventListener("timeupdate", m(Kr, this)), m(j, this).removeEventListener("progress", m(qr, this));
1623
+ m(j, this).removeEventListener("timeupdate", m(Gr, this)), m(j, this).removeEventListener("progress", m(Kr, this));
1627
1624
  }
1628
- function si(e) {
1625
+ function oi(e) {
1629
1626
  let t = e && (m(j, this).readyState < HTMLMediaElement.HAVE_FUTURE_DATA || m(j, this).seeking || m(j, this).paused && !this.userPaused);
1630
1627
  m(j, this).dispatchEvent(new CustomEvent(t ? "hlsbuffering" : "hlsnotbuffering", {
1631
1628
  bubbles: !0,
1632
1629
  composed: !0
1633
1630
  }));
1634
1631
  }
1635
- function ci(e) {
1636
- return m(Hr, this) === e;
1632
+ function si(e) {
1633
+ return m(Vr, this) === e;
1637
1634
  }
1638
- var li = { _: [
1635
+ var ci = { _: [
1639
1636
  "waiting",
1640
1637
  "seeking",
1641
1638
  "stalled",
1642
1639
  "loadstart"
1643
- ] }, ui = { _: [
1640
+ ] }, li = { _: [
1644
1641
  "canplay",
1645
1642
  "canplaythrough",
1646
1643
  "seeked",
1647
1644
  "loadeddata"
1648
- ] }, di = class {
1645
+ ] }, ui = class {
1649
1646
  constructor(e) {
1650
1647
  this.vindral = e;
1651
1648
  }
@@ -1665,19 +1662,19 @@ var li = { _: [
1665
1662
  pause() {
1666
1663
  this.vindral.pause();
1667
1664
  }
1668
- }, fi = document.createElement("template");
1669
- fi.innerHTML = "\n <style>\n :host {\n --value: 0;\n --range-thickness: var(--vindral-range-thickness, 4px);\n --range-hover-thickness: var(--vindral-range-hover-thickness, var(--range-thickness));\n --range-thumb-size: var(--vindral-range-thumb-size, 12px);\n --range-thumb-hover-size: var(--vindral-range-thumb-hover-size, var(--range-thumb-size));\n --range-fill-color: var(--vindral-range-fill-color, var(--fg-strong));\n --range-thumb-color: var(--vindral-range-thumb-color, var(--fg-strong));\n --_focus-box-shadow: none;\n height: calc(var(--button-icon-size) + 2 * var(--button-padding));\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 !important;\n margin: 0;\n position: relative;\n cursor: pointer;\n touch-action: none;\n box-shadow: var(--_focus-visible-box-shadow, none);\n outline: 0;\n background: transparent;\n }\n\n :host > * {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range {\n -webkit-appearance: none;\n appearance: none;\n\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n\n background-color: #00000000;\n outline: none;\n z-index: 1;\n cursor: pointer;\n }\n\n #range-track {\n position: absolute;\n top: calc(50% - calc(var(--range-thickness) / 2));\n left: 1px;\n width: calc(100% - 2px);\n height: var(--range-thickness);\n background-color: rgb(255 255 255 / 0.2);\n overflow: hidden;\n cursor: pointer;\n transition-property: height, top;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range-track {\n height: var(--range-hover-thickness);\n top: calc(50% - calc(var(--range-hover-thickness) / 2));\n }\n }\n\n #range-track::before {\n position: absolute;\n content: \"\";\n left: calc(-100%);\n top: 0;\n width: calc(100%);\n height: 100%;\n background: var(--range-fill-color);\n transition: background-color 300ms ease-out;\n transform-origin: 100% 0%;\n transform: translateX(calc(var(--value) * 100%)) scaleX(1.2);\n }\n\n #range::-webkit-slider-runnable-track {\n background: transparent;\n }\n\n #range::-moz-range-track {\n background: transparent;\n }\n\n #range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range::-moz-range-thumb {\n -moz-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n border: none;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n :host:has(#range:focus-visible) {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range::-webkit-slider-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n\n :host(:hover) #range::-moz-range-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n }\n </style>\n\n <input type=\"range\" id=\"range\" min=\"0\" max=\"1\" step=\"any\" value=\"0\" />\n <div id=\"range-track\"></div>\n";
1670
- var pi = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), hi = class extends HTMLElement {
1665
+ }, di = document.createElement("template");
1666
+ di.innerHTML = "\n <style>\n :host {\n --value: 0;\n --range-thickness: var(--vindral-range-thickness, 4px);\n --range-hover-thickness: var(--vindral-range-hover-thickness, var(--range-thickness));\n --range-thumb-size: var(--vindral-range-thumb-size, 12px);\n --range-thumb-hover-size: var(--vindral-range-thumb-hover-size, var(--range-thumb-size));\n --range-fill-color: var(--vindral-range-fill-color, var(--fg-strong));\n --range-thumb-color: var(--vindral-range-thumb-color, var(--fg-strong));\n --_focus-box-shadow: none;\n height: calc(var(--button-icon-size) + 2 * var(--button-padding));\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 !important;\n margin: 0;\n position: relative;\n cursor: pointer;\n touch-action: none;\n box-shadow: var(--_focus-visible-box-shadow, none);\n outline: 0;\n background: transparent;\n }\n\n :host > * {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range {\n -webkit-appearance: none;\n appearance: none;\n\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n\n background-color: #00000000;\n outline: none;\n z-index: 1;\n cursor: pointer;\n }\n\n #range-track {\n position: absolute;\n top: calc(50% - calc(var(--range-thickness) / 2));\n left: 1px;\n width: calc(100% - 2px);\n height: var(--range-thickness);\n background-color: rgb(255 255 255 / 0.2);\n overflow: hidden;\n cursor: pointer;\n transition-property: height, top;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range-track {\n height: var(--range-hover-thickness);\n top: calc(50% - calc(var(--range-hover-thickness) / 2));\n }\n }\n\n #range-track::before {\n position: absolute;\n content: \"\";\n left: calc(-100%);\n top: 0;\n width: calc(100%);\n height: 100%;\n background: var(--range-fill-color);\n transition: background-color 300ms ease-out;\n transform-origin: 100% 0%;\n transform: translateX(calc(var(--value) * 100%)) scaleX(1.2);\n }\n\n #range::-webkit-slider-runnable-track {\n background: transparent;\n }\n\n #range::-moz-range-track {\n background: transparent;\n }\n\n #range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range::-moz-range-thumb {\n -moz-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n border: none;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n :host:has(#range:focus-visible) {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range::-webkit-slider-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n\n :host(:hover) #range::-moz-range-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n }\n </style>\n\n <input type=\"range\" id=\"range\" min=\"0\" max=\"1\" step=\"any\" value=\"0\" />\n <div id=\"range-track\"></div>\n";
1667
+ var fi = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), mi = class extends HTMLElement {
1671
1668
  constructor() {
1672
- super(), f(this, pi, null), f(this, mi, void 0), e(this, "range", void 0), h(mi, this, this.attachShadow({ mode: "open" })), m(mi, this).appendChild(fi.content.cloneNode(!0)), this.range = m(mi, this).getElementById("range");
1669
+ super(), f(this, fi, null), f(this, pi, void 0), e(this, "range", void 0), h(pi, this, this.attachShadow({ mode: "open" })), m(pi, this).appendChild(di.content.cloneNode(!0)), this.range = m(pi, this).getElementById("range");
1673
1670
  }
1674
1671
  connectedCallback() {
1675
1672
  var e;
1676
- h(pi, this, this.closest("vindral-controller")), (e = m(pi, this)) == null || e.connectListener(this), this.hasAttribute("disabled") || this.enable();
1673
+ h(fi, this, this.closest("vindral-controller")), (e = m(fi, this)) == null || e.connectListener(this), this.hasAttribute("disabled") || this.enable();
1677
1674
  }
1678
1675
  disconnectedCallback() {
1679
1676
  var e;
1680
- (e = m(pi, this)) == null || e.disconnectListener(this);
1677
+ (e = m(fi, this)) == null || e.disconnectListener(this);
1681
1678
  }
1682
1679
  attributeChangedCallback(e, t, n) {
1683
1680
  t !== n && (e === "disabled" && n ? this.disable() : this.enable(), this.updateBar());
@@ -1703,11 +1700,11 @@ var pi = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), hi =
1703
1700
  ];
1704
1701
  }
1705
1702
  };
1706
- e(hi, "observedAttributes", ["disabled"]);
1703
+ e(mi, "observedAttributes", ["disabled"]);
1707
1704
  //#endregion
1708
1705
  //#region ../../libs/player-next/src/components/Controller.ts
1709
- var gi = document.createElement("template");
1710
- gi.innerHTML = `
1706
+ var hi = document.createElement("template");
1707
+ hi.innerHTML = `
1711
1708
  <style>
1712
1709
  :host {
1713
1710
  --fg-strong: var(--vindral-fg-strong, #eeeeee);
@@ -1807,23 +1804,13 @@ gi.innerHTML = `
1807
1804
  z-index: 0;
1808
1805
  }
1809
1806
 
1810
- /* Chrome sizes this box from the video height, which pads multi-line cues. Must match
1811
- ::cue (CaptionFontScaler updates both); the em lift replaces the inset that sizing gave us. */
1812
1807
  #video video::-webkit-media-text-track-display {
1813
- font-size: 28px;
1814
- transform: translateY(calc(var(--vindral-subtitle-offset, 0px) - 0.5em)) !important;
1808
+ transform: translateY(var(--vindral-subtitle-offset, 0px)) !important;
1815
1809
  }
1816
1810
 
1817
- /* Chrome does not wrap cue text on its own, so a long line overflows and gets clipped. */
1818
1811
  #video video::cue {
1819
1812
  font-size: 28px;
1820
1813
  background-color: rgba(0, 0, 0, 0.6);
1821
- white-space: pre-wrap;
1822
- }
1823
-
1824
- /* iOS Safari also paints the system caption window behind the cue; ::cue is the only background we want. */
1825
- #video video::-webkit-media-text-track-display-backdrop {
1826
- background-color: transparent;
1827
1814
  }
1828
1815
 
1829
1816
  :host([user-interacting]) #video {
@@ -1919,7 +1906,7 @@ gi.innerHTML = `
1919
1906
  <slot id="overlay-interactive" name="overlay-interactive"></slot>
1920
1907
  </div>
1921
1908
  `;
1922
- var _i = [
1909
+ var gi = [
1923
1910
  "ArrowDown",
1924
1911
  "ArrowLeft",
1925
1912
  "ArrowRight",
@@ -1928,18 +1915,18 @@ var _i = [
1928
1915
  " ",
1929
1916
  "f",
1930
1917
  "m"
1931
- ], vi = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), Bi = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), va = class extends HTMLElement {
1918
+ ], _i = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), zi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), _a = class extends HTMLElement {
1932
1919
  constructor() {
1933
1920
  var t;
1934
- super(), g(this, H), f(this, vi, /* @__PURE__ */ new Map()), f(this, yi, 2e3), f(this, bi, null), f(this, xi, new yr({ onChange: (e) => p(H, this, U).call(this, _.DURATION, e.toString()) })), f(this, Si, null), f(this, Ci, void 0), f(this, I, void 0), f(this, L, void 0), f(this, wi, void 0), f(this, R, void 0), f(this, Ti, ao._), f(this, Ei, void 0), f(this, Di, void 0), f(this, Oi, void 0), f(this, ki, void 0), f(this, z, void 0), f(this, Ai, void 0), f(this, ji, void 0), f(this, Mi, void 0), f(this, B, void 0), f(this, Ni, void 0), f(this, Pi, void 0), f(this, Fi, void 0), f(this, V, void 0), f(this, Ii, null), f(this, Li, !1), f(this, Ri, null), f(this, zi, void 0), f(this, Bi, (e) => {
1921
+ super(), g(this, H), f(this, _i, /* @__PURE__ */ new Map()), f(this, vi, 2e3), f(this, yi, null), f(this, bi, new vr({ onChange: (e) => p(H, this, U).call(this, _.DURATION, e.toString()) })), f(this, xi, null), f(this, Si, void 0), f(this, I, void 0), f(this, L, void 0), f(this, Ci, void 0), f(this, R, void 0), f(this, wi, io._), f(this, Ti, void 0), f(this, Ei, void 0), f(this, Di, void 0), f(this, Oi, void 0), f(this, z, void 0), f(this, ki, void 0), f(this, Ai, void 0), f(this, ji, void 0), f(this, B, void 0), f(this, Mi, void 0), f(this, Ni, void 0), f(this, Pi, void 0), f(this, V, void 0), f(this, Fi, null), f(this, Ii, !1), f(this, Li, null), f(this, Ri, void 0), f(this, zi, (e) => {
1935
1922
  let t = e.filter((e) => {
1936
1923
  var t;
1937
1924
  return (t = e.video) == null ? void 0 : t.width;
1938
1925
  });
1939
1926
  p(H, this, U).call(this, _.RENDITION_LEVELS, JSON.stringify(t));
1940
- }), f(this, Vi, (e) => {
1927
+ }), f(this, Bi, (e) => {
1941
1928
  p(H, this, U).call(this, _.RENDITION_LEVEL, JSON.stringify(e));
1942
- }), f(this, Hi, (e) => {
1929
+ }), f(this, Vi, (e) => {
1943
1930
  switch (e) {
1944
1931
  case "playing":
1945
1932
  p(H, this, W).call(this, _.PAUSED), p(H, this, W).call(this, _.BUFFERING);
@@ -1952,38 +1939,38 @@ var _i = [
1952
1939
  break;
1953
1940
  default: break;
1954
1941
  }
1955
- }), f(this, Ui, (e) => {
1942
+ }), f(this, Hi, (e) => {
1956
1943
  p(H, this, U).call(this, _.VOLUME, e.volume.toString()), e.isMuted ? p(H, this, U).call(this, _.MUTED, "") : p(H, this, W).call(this, _.MUTED);
1957
- }), f(this, Wi, ({ channelId: e }) => {
1944
+ }), f(this, Ui, ({ channelId: e }) => {
1958
1945
  var t;
1959
1946
  this.setAttribute(_.CHANNEL_ID, e), ((t = m(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && p(H, this, W).call(this, _.BUFFERING);
1960
- }), f(this, Gi, ({ channelId: e }) => {
1947
+ }), f(this, Wi, ({ channelId: e }) => {
1961
1948
  var t;
1962
- m(Ei, this) !== e && this.setAttribute(_.CHANNEL_ID, e), ((t = m(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && p(H, this, W).call(this, _.BUFFERING);
1949
+ m(Ti, this) !== e && this.setAttribute(_.CHANNEL_ID, e), ((t = m(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && p(H, this, W).call(this, _.BUFFERING);
1950
+ }), f(this, Gi, (e) => {
1951
+ h(pa, this, Date.now()), p(H, this, U).call(this, _.CHANNELS, JSON.stringify(e));
1963
1952
  }), f(this, Ki, (e) => {
1964
- h(ma, this, Date.now()), p(H, this, U).call(this, _.CHANNELS, JSON.stringify(e));
1965
- }), f(this, qi, (e) => {
1966
1953
  var t;
1967
1954
  p(H, this, U).call(this, _.LANGUAGES, JSON.stringify(e)), (t = m(I, this)) != null && t.language && p(H, this, U).call(this, _.LANGUAGE, m(I, this).language);
1968
- }), f(this, Ji, (e) => {
1955
+ }), f(this, qi, (e) => {
1969
1956
  var t;
1970
1957
  if (p(H, this, U).call(this, _.TEXT_TRACKS, JSON.stringify(e)), (t = m(I, this)) != null && t.textTrack) {
1971
1958
  var n, r;
1972
1959
  p(H, this, U).call(this, _.TEXT_TRACK, (n = (r = m(I, this)) == null ? void 0 : r.textTrack) == null ? "" : n);
1973
1960
  }
1974
- }), f(this, Yi, (e) => {
1961
+ }), f(this, Ji, (e) => {
1975
1962
  e != null && e.forVideo ? (p(H, this, U).call(this, _.NEEDS_USER_INPUT_VIDEO, ""), p(H, this, W).call(this, _.NEEDS_USER_INPUT_AUDIO)) : e != null && e.forAudio && (p(H, this, U).call(this, _.NEEDS_USER_INPUT_AUDIO, ""), p(H, this, W).call(this, _.NEEDS_USER_INPUT_VIDEO));
1963
+ }), f(this, Yi, (e) => {
1964
+ e || p(H, this, W).call(this, _.BUFFERING), m(bi, this).setLive(e);
1976
1965
  }), f(this, Xi, (e) => {
1977
- e || p(H, this, W).call(this, _.BUFFERING), m(xi, this).setLive(e);
1978
- }), f(this, Zi, (e) => {
1979
1966
  var t, n;
1980
1967
  let { urls: r, duration: i } = e;
1981
1968
  if (!r[0] || !m(R, this)) return;
1982
1969
  let a = new URL(r[0]);
1983
- a.searchParams.set("channelId", (t = m(Ei, this)) == null ? "" : t);
1970
+ a.searchParams.set("channelId", (t = m(Ti, this)) == null ? "" : t);
1984
1971
  let o = this.getAttribute("authentication-token");
1985
1972
  o && a.searchParams.set("authToken", o);
1986
- let s = Tr(i);
1973
+ let s = wr(i);
1987
1974
  if (Number.isNaN(s)) {
1988
1975
  m(V, this).error(`Invalid duration format: ${i}`);
1989
1976
  return;
@@ -1991,70 +1978,70 @@ var _i = [
1991
1978
  let c = Math.floor(Date.now() / 1e3), l = (/* @__PURE__ */ new Date((c - s) * 1e3)).toISOString();
1992
1979
  a.searchParams.set("from", l);
1993
1980
  let u = a.toString();
1994
- m(R, this).setTimeshiftUrl(u), m(xi, this).start({
1981
+ m(R, this).setTimeshiftUrl(u), m(bi, this).start({
1995
1982
  multivariantUrl: u,
1996
1983
  params: {
1997
- channelId: (n = m(Ei, this)) == null ? "" : n,
1984
+ channelId: (n = m(Ti, this)) == null ? "" : n,
1998
1985
  authToken: o == null ? void 0 : o,
1999
1986
  from: l
2000
1987
  },
2001
1988
  windowCapSeconds: s
2002
1989
  });
2003
- }), f(this, Qi, () => {
1990
+ }), f(this, Zi, () => {
2004
1991
  p(H, this, W).call(this, _.PAUSED), p(H, this, W).call(this, _.BUFFERING);
2005
- }), f(this, $i, () => {
1992
+ }), f(this, Qi, () => {
2006
1993
  p(H, this, U).call(this, _.PAUSED, ""), p(H, this, W).call(this, _.BUFFERING);
1994
+ }), f(this, $i, () => {
1995
+ m(ua, this).call(this), p(H, this, W).call(this, _.BUFFERING);
2007
1996
  }), f(this, ea, () => {
2008
- m(da, this).call(this), p(H, this, W).call(this, _.BUFFERING);
1997
+ m(R, this) && m(bi, this).applyLoadedDuration(m(R, this).duration);
2009
1998
  }), f(this, ta, () => {
2010
- m(R, this) && m(xi, this).applyLoadedDuration(m(R, this).duration);
2011
- }), f(this, na, () => {
2012
1999
  var e, t;
2013
2000
  if (!m(R, this) || m(R, this).seeking || (e = (t = m(R, this)).shouldIgnoreTimeupdate) != null && e.call(t)) return;
2014
2001
  let n = m(R, this).currentTime;
2015
2002
  n !== void 0 && p(H, this, U).call(this, _.TIMESHIFT_POSITION, n.toString());
2016
- }), f(this, ra, () => {
2003
+ }), f(this, na, () => {
2017
2004
  m(R, this) && (p(H, this, U).call(this, _.VOLUME, m(R, this).volume.toString()), m(R, this).muted ? p(H, this, U).call(this, _.MUTED, "") : p(H, this, W).call(this, _.MUTED));
2018
- }), f(this, ia, () => {
2005
+ }), f(this, ra, () => {
2019
2006
  p(H, this, U).call(this, _.BUFFERING, "");
2020
- }), f(this, aa, () => {
2007
+ }), f(this, ia, () => {
2021
2008
  p(H, this, W).call(this, _.BUFFERING);
2022
- }), f(this, oa, () => {
2023
- if (m(Li, this)) {
2009
+ }), f(this, aa, () => {
2010
+ if (m(Ii, this)) {
2024
2011
  if (m(L, this) !== m(R, this)) {
2025
- h(Li, this, !1);
2012
+ h(Ii, this, !1);
2026
2013
  return;
2027
2014
  }
2028
- h(Li, this, !1), p(H, this, Ya).call(this);
2015
+ h(Ii, this, !1), p(H, this, Ja).call(this);
2029
2016
  }
2030
- }), f(this, sa, 0), e(this, "handleEvent", (e) => {
2017
+ }), f(this, oa, 0), e(this, "handleEvent", (e) => {
2031
2018
  switch (e.type) {
2032
2019
  case "pointerdown":
2033
- h(sa, this, e.timeStamp);
2020
+ h(oa, this, e.timeStamp);
2034
2021
  break;
2035
2022
  case "pointermove":
2036
- p(H, this, Ra).call(this, e);
2023
+ p(H, this, La).call(this, e);
2037
2024
  break;
2038
2025
  case "pointerup":
2039
- p(H, this, za).call(this, e);
2026
+ p(H, this, Ra).call(this, e);
2040
2027
  break;
2041
2028
  case "mouseleave":
2042
- p(H, this, qa).call(this);
2029
+ p(H, this, Ka).call(this);
2043
2030
  break;
2044
2031
  case "dblclick":
2045
- p(H, this, Va).call(this, e);
2032
+ p(H, this, Ba).call(this, e);
2046
2033
  break;
2047
2034
  case "mousemove":
2048
- p(H, this, Ha).call(this, e);
2035
+ p(H, this, Va).call(this, e);
2049
2036
  break;
2050
2037
  case "keydown":
2051
- m(ua, this).call(this, e);
2038
+ m(la, this).call(this, e);
2052
2039
  break;
2053
2040
  case "keyup":
2054
- p(H, this, qa).call(this), m(la, this).call(this, e);
2041
+ p(H, this, Ka).call(this), m(ca, this).call(this, e);
2055
2042
  break;
2056
2043
  }
2057
- }), f(this, ca, (e) => {
2044
+ }), f(this, sa, (e) => {
2058
2045
  if (m(I, this) && (m(V, this).debug("Vindral event", { type: e.type }), e instanceof CustomEvent)) switch (e.type) {
2059
2046
  case v.PLAY:
2060
2047
  this.removeAttribute(_.PAUSED);
@@ -2099,10 +2086,10 @@ var _i = [
2099
2086
  }
2100
2087
  break;
2101
2088
  case v.CHANNEL_GRID_OPENED:
2102
- m(Ii, this) === null && p(H, this, Wa).call(this);
2089
+ m(Fi, this) === null && p(H, this, Ua).call(this);
2103
2090
  break;
2104
2091
  case v.CHANNEL_GRID_CLOSED:
2105
- m(Ii, this) !== null && (clearTimeout(m(Ii, this)), h(Ii, this, null));
2092
+ m(Fi, this) !== null && (clearTimeout(m(Fi, this)), h(Fi, this, null));
2106
2093
  break;
2107
2094
  case v.ENTER_PIP:
2108
2095
  this.setAttribute(_.IS_PIP, "");
@@ -2112,7 +2099,7 @@ var _i = [
2112
2099
  break;
2113
2100
  case v.REQUEST_AIRPLAY:
2114
2101
  var t;
2115
- (t = m(Mi, this)) == null || t.showPlaybackTargetPicker();
2102
+ (t = m(ji, this)) == null || t.showPlaybackTargetPicker();
2116
2103
  break;
2117
2104
  case v.SET_LANGUAGE:
2118
2105
  y(e.detail) ? this.setAttribute(_.LANGUAGE, e.detail) : this.removeAttribute(_.LANGUAGE);
@@ -2133,7 +2120,7 @@ var _i = [
2133
2120
  this.handleTimeShiftUpdate(String(e.detail));
2134
2121
  break;
2135
2122
  case v.GO_LIVE:
2136
- m(da, this).call(this);
2123
+ m(ua, this).call(this);
2137
2124
  break;
2138
2125
  case v.TOGGLE_DEBUG_PANEL:
2139
2126
  this.hasAttribute(_.DEBUG_PANEL_OPEN) ? this.removeAttribute(_.DEBUG_PANEL_OPEN) : this.setAttribute(_.DEBUG_PANEL_OPEN, "");
@@ -2145,64 +2132,64 @@ var _i = [
2145
2132
  }
2146
2133
  break;
2147
2134
  }
2148
- }), f(this, la, (e) => {
2135
+ }), f(this, ca, (e) => {
2149
2136
  let { key: t } = e;
2150
- if (!_i.includes(t)) {
2137
+ if (!gi.includes(t)) {
2151
2138
  this.removeEventListener("keyup", this);
2152
2139
  return;
2153
2140
  }
2154
- p(H, this, Ua).call(this, e);
2155
- }), f(this, ua, (e) => {
2141
+ p(H, this, Ha).call(this, e);
2142
+ }), f(this, la, (e) => {
2156
2143
  let { metaKey: t, altKey: n, key: r } = e;
2157
- t || n || !_i.includes(r) || this.addEventListener("keyup", this, { once: !0 });
2158
- }), f(this, da, () => {
2144
+ t || n || !gi.includes(r) || this.addEventListener("keyup", this, { once: !0 });
2145
+ }), f(this, ua, () => {
2159
2146
  this.removeAttribute(_.TIMESHIFT_POSITION), this.handleTimeShiftUpdate(!1);
2160
- }), f(this, fa, (e) => {
2147
+ }), f(this, da, (e) => {
2161
2148
  var t;
2162
- m(R, this) || p(H, this, Ca).call(this), m(L, this) !== m(R, this) && (e && p(H, this, Xa).call(this), h(L, this, m(R, this)), p(H, this, xa).call(this), p(H, this, Sa).call(this), p(H, this, Da).call(this), (t = m(I, this)) == null || t.pause(), h(Li, this, e));
2163
- }), f(this, pa, (e) => {
2149
+ m(R, this) || p(H, this, Sa).call(this), m(L, this) !== m(R, this) && (e && p(H, this, Ya).call(this), h(L, this, m(R, this)), p(H, this, ba).call(this), p(H, this, xa).call(this), p(H, this, Ea).call(this), (t = m(I, this)) == null || t.pause(), h(Ii, this, e));
2150
+ }), f(this, fa, (e) => {
2164
2151
  var t, n, r, i;
2165
- e && p(H, this, Xa).call(this), (t = m(R, this)) == null || t.hide(), h(L, this, m(wi, this)), p(H, this, Da).call(this), this.hasAttribute(_.PAUSED) ? (n = m(L, this)) == null || n.pause() : (r = m(L, this)) == null || r.play(), p(H, this, Ta).call(this), p(H, this, ba).call(this), (i = m(R, this)) == null || i.pause(), e && (h(Li, this, !1), setTimeout(() => {
2166
- p(H, this, Ya).call(this);
2152
+ e && p(H, this, Ya).call(this), (t = m(R, this)) == null || t.hide(), h(L, this, m(Ci, this)), p(H, this, Ea).call(this), this.hasAttribute(_.PAUSED) ? (n = m(L, this)) == null || n.pause() : (r = m(L, this)) == null || r.play(), p(H, this, wa).call(this), p(H, this, ya).call(this), (i = m(R, this)) == null || i.pause(), e && (h(Ii, this, !1), setTimeout(() => {
2153
+ p(H, this, Ja).call(this);
2167
2154
  }, 100));
2168
2155
  }), e(this, "handleTimeShiftUpdate", (e) => {
2169
2156
  let t = this.hasAttribute(_.IS_PIP);
2170
2157
  if (e !== !1) {
2171
2158
  var n;
2172
- m(fa, this).call(this, t), (n = m(R, this)) == null || n.seek({
2159
+ m(da, this).call(this, t), (n = m(R, this)) == null || n.seek({
2173
2160
  time: parseFloat(e),
2174
2161
  playWhenReady: !this.hasAttribute(_.PAUSED)
2175
2162
  });
2176
2163
  return;
2177
2164
  }
2178
- m(L, this) !== m(wi, this) && m(pa, this).call(this, t);
2179
- }), f(this, ma, null), f(this, ha, () => {
2165
+ m(L, this) !== m(Ci, this) && m(fa, this).call(this, t);
2166
+ }), f(this, pa, null), f(this, ma, () => {
2180
2167
  var e;
2181
2168
  let t = (e = m(I, this)) == null ? void 0 : e.currentRenditionLevel;
2182
2169
  if (!(t != null && t.video)) return;
2183
2170
  let n = o(t.video.width > t.video.height ? "landscape-primary" : "portrait-primary");
2184
2171
  n && n.catch(() => {});
2185
- }), f(this, ga, () => {
2172
+ }), f(this, ha, () => {
2186
2173
  n();
2187
- }), f(this, _a, null);
2174
+ }), f(this, ga, null);
2188
2175
  let r = this.attachShadow({ mode: "open" });
2189
- r.appendChild(gi.content.cloneNode(!0));
2176
+ r.appendChild(hi.content.cloneNode(!0));
2190
2177
  let i = ge(this.getAttribute("log-level"));
2191
- h(V, this, re.get().createContext("VindralController")), m(V, this).setLevel(i), h(Ci, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#time-shift-video")), h(zi, this, new Kn(r));
2178
+ h(V, this, re.get().createContext("VindralController")), m(V, this).setLevel(i), h(Si, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#time-shift-video")), h(Ri, this, new Gn(r));
2192
2179
  }
2193
2180
  connectedCallback() {
2194
2181
  var e = this;
2195
2182
  return t(function* () {
2196
- x(e.getAttribute("auto-instance-enabled"), !0) && (yield p(H, e, ya).call(e));
2197
- for (let t of Object.values(v)) e.addEventListener(t, m(ca, e));
2198
- window.PointerEvent ? (e.addEventListener("pointerdown", e), e.addEventListener("pointermove", e), e.addEventListener("pointerup", e)) : e.addEventListener("mousemove", e), e.addEventListener("mouseleave", e), e.addEventListener("keydown", e), e.addEventListener("resize", e), e.addEventListener("dblclick", e), e.connectListener(e), p(H, e, Ia).call(e), e.tabIndex = 0, e.focus({ preventScroll: !0 });
2183
+ x(e.getAttribute("auto-instance-enabled"), !0) && (yield p(H, e, va).call(e));
2184
+ for (let t of Object.values(v)) e.addEventListener(t, m(sa, e));
2185
+ window.PointerEvent ? (e.addEventListener("pointerdown", e), e.addEventListener("pointermove", e), e.addEventListener("pointerup", e)) : e.addEventListener("mousemove", e), e.addEventListener("mouseleave", e), e.addEventListener("keydown", e), e.addEventListener("resize", e), e.addEventListener("dblclick", e), e.connectListener(e), p(H, e, Fa).call(e), e.tabIndex = 0, e.focus({ preventScroll: !0 });
2199
2186
  })();
2200
2187
  }
2201
2188
  disconnectedCallback() {
2202
2189
  var e, t, n, r, i;
2203
- p(H, this, La).call(this), p(H, this, ro).call(this), m(zi, this).unload(), (e = m(I, this)) == null || e.unload(), (t = m(z, this)) == null || t.unload(), (n = m(Ai, this)) == null || n.unload(), (r = m(ji, this)) == null || r.unload(), (i = m(B, this)) == null || i.unload(), p(H, this, wa).call(this);
2204
- for (let e of Object.values(v)) this.removeEventListener(e, m(ca, this));
2205
- p(H, this, xa).call(this), m(bi, this) && (clearTimeout(m(bi, this)), h(bi, this, null)), m(xi, this).stop(), this.disconnectListener(this);
2190
+ p(H, this, Ia).call(this), p(H, this, no).call(this), m(Ri, this).unload(), (e = m(I, this)) == null || e.unload(), (t = m(z, this)) == null || t.unload(), (n = m(ki, this)) == null || n.unload(), (r = m(Ai, this)) == null || r.unload(), (i = m(B, this)) == null || i.unload(), p(H, this, Ca).call(this);
2191
+ for (let e of Object.values(v)) this.removeEventListener(e, m(sa, this));
2192
+ p(H, this, ba).call(this), m(yi, this) && (clearTimeout(m(yi, this)), h(yi, this, null)), m(bi, this).stop(), this.disconnectListener(this);
2206
2193
  }
2207
2194
  attributeChangedCallback(e, t, n) {
2208
2195
  if (t !== n) {
@@ -2212,13 +2199,13 @@ var _i = [
2212
2199
  newValue: n
2213
2200
  }), e) {
2214
2201
  case "channel-id":
2215
- h(Ei, this, n), m(I, this) && n && (m(I, this).channelId = n, m(I, this).play(), p(H, this, U).call(this, _.BUFFERING, ""), p(H, this, U).call(this, _.CHANNEL_ID, n), p(H, this, U).call(this, _.POSTER_SRC, m(I, this).getThumbnailUrl()));
2202
+ h(Ti, this, n), m(I, this) && n && (m(I, this).channelId = n, m(I, this).play(), p(H, this, U).call(this, _.BUFFERING, ""), p(H, this, U).call(this, _.CHANNEL_ID, n), p(H, this, U).call(this, _.POSTER_SRC, m(I, this).getThumbnailUrl()));
2216
2203
  break;
2217
2204
  case "channel-group-id":
2218
- h(Di, this, n);
2205
+ h(Ei, this, n);
2219
2206
  break;
2220
2207
  case "url":
2221
- n && h(Ti, this, n);
2208
+ n && h(wi, this, n);
2222
2209
  break;
2223
2210
  case "paused":
2224
2211
  if (y(n)) {
@@ -2248,7 +2235,7 @@ var _i = [
2248
2235
  }
2249
2236
  break;
2250
2237
  case _.DEBUG_PANEL_OPEN:
2251
- y(n) ? p(H, this, U).call(this, _.DEBUG_PANEL_OPEN, "") : p(H, this, W).call(this, _.DEBUG_PANEL_OPEN), p(H, this, to).call(this);
2238
+ y(n) ? p(H, this, U).call(this, _.DEBUG_PANEL_OPEN, "") : p(H, this, W).call(this, _.DEBUG_PANEL_OPEN), p(H, this, eo).call(this);
2252
2239
  break;
2253
2240
  case "user-interacting":
2254
2241
  y(n) ? p(H, this, U).call(this, _.USER_INTERACTING, "") : p(H, this, W).call(this, _.USER_INTERACTING);
@@ -2269,10 +2256,10 @@ var _i = [
2269
2256
  }
2270
2257
  break;
2271
2258
  case "ui-locked":
2272
- y(n) ? p(H, this, Ka).call(this) : p(H, this, qa).call(this);
2259
+ y(n) ? p(H, this, Ga).call(this) : p(H, this, Ka).call(this);
2273
2260
  break;
2274
2261
  case "is-fullscreen":
2275
- y(n) ? p(H, this, Za).call(this) : p(H, this, Qa).call(this);
2262
+ y(n) ? p(H, this, Xa).call(this) : p(H, this, Za).call(this);
2276
2263
  break;
2277
2264
  case "abr-enabled":
2278
2265
  {
@@ -2287,13 +2274,13 @@ var _i = [
2287
2274
  }
2288
2275
  break;
2289
2276
  case "max-video-bit-rate":
2290
- h(Oi, this, n), y(n) ? p(H, this, U).call(this, _.MAX_VIDEO_BITRATE, n) : p(H, this, W).call(this, _.MAX_VIDEO_BITRATE), m(R, this) && (m(R, this).maxVideoBitRate = n ? ve(n) : void 0);
2277
+ h(Di, this, n), y(n) ? p(H, this, U).call(this, _.MAX_VIDEO_BITRATE, n) : p(H, this, W).call(this, _.MAX_VIDEO_BITRATE), m(R, this) && (m(R, this).maxVideoBitRate = n ? ve(n) : void 0);
2291
2278
  break;
2292
2279
  case "max-initial-bit-rate":
2293
- h(ki, this, n), y(n) ? p(H, this, U).call(this, _.MAX_INITIAL_BITRATE, n) : p(H, this, W).call(this, _.MAX_INITIAL_BITRATE);
2280
+ h(Oi, this, n), y(n) ? p(H, this, U).call(this, _.MAX_INITIAL_BITRATE, n) : p(H, this, W).call(this, _.MAX_INITIAL_BITRATE);
2294
2281
  break;
2295
2282
  case "is-pip":
2296
- y(n) ? p(H, this, Ya).call(this) : p(H, this, Xa).call(this);
2283
+ y(n) ? p(H, this, Ja).call(this) : p(H, this, Ya).call(this);
2297
2284
  break;
2298
2285
  case "is-airplaying":
2299
2286
  if (y(n)) {
@@ -2307,17 +2294,17 @@ var _i = [
2307
2294
  case "is-casting":
2308
2295
  if (y(n)) {
2309
2296
  var ee, d;
2310
- (ee = m(Ai, this)) != null && ee.isFullscreen() && p(H, this, Qa).call(this), (d = m(I, this)) == null || d.pause();
2297
+ (ee = m(ki, this)) != null && ee.isFullscreen() && p(H, this, Za).call(this), (d = m(I, this)) == null || d.pause();
2311
2298
  } else if (!document.hidden) {
2312
2299
  var te;
2313
2300
  (te = m(I, this)) == null || te.play();
2314
2301
  }
2315
2302
  break;
2316
2303
  case "cast-receiver-id":
2317
- h(Pi, this, n);
2304
+ h(Ni, this, n);
2318
2305
  break;
2319
2306
  case "cast-background":
2320
- h(Fi, this, n);
2307
+ h(Pi, this, n);
2321
2308
  break;
2322
2309
  case "language":
2323
2310
  m(I, this) && (m(I, this).language = n, y(n) ? p(H, this, U).call(this, _.LANGUAGE, n) : p(H, this, W).call(this, _.LANGUAGE));
@@ -2331,7 +2318,7 @@ var _i = [
2331
2318
  case "authentication-token":
2332
2319
  if (y(n)) {
2333
2320
  var ne, re;
2334
- (ne = m(I, this)) == null || ne.updateAuthenticationToken(n), (re = m(Mi, this)) == null || re.updateAuthenticationToken(n), p(H, this, U).call(this, _.AUTHENTICATION_TOKEN, n);
2321
+ (ne = m(I, this)) == null || ne.updateAuthenticationToken(n), (re = m(ji, this)) == null || re.updateAuthenticationToken(n), p(H, this, U).call(this, _.AUTHENTICATION_TOKEN, n);
2335
2322
  } else p(H, this, W).call(this, _.AUTHENTICATION_TOKEN);
2336
2323
  break;
2337
2324
  case "volume":
@@ -2369,13 +2356,13 @@ var _i = [
2369
2356
  _.USER_INTERACTING,
2370
2357
  _.PAUSED,
2371
2358
  _.HIDE_UI_ON_PAUSE
2372
- ].includes(e) && p(H, this, Ja).call(this);
2359
+ ].includes(e) && p(H, this, qa).call(this);
2373
2360
  }
2374
2361
  }
2375
2362
  connectListener(e) {
2376
- wr(e).forEach((t) => {
2377
- let n = m(vi, this).get(t);
2378
- switch (n ? n.push(e) : m(vi, this).set(t, [e]), t) {
2363
+ Cr(e).forEach((t) => {
2364
+ let n = m(_i, this).get(t);
2365
+ switch (n ? n.push(e) : m(_i, this).set(t, [e]), t) {
2379
2366
  case _.PAUSED:
2380
2367
  var r;
2381
2368
  (((r = m(I, this)) == null ? void 0 : r.playbackState) === "paused" || this.hasAttribute(_.PAUSED)) && e.setAttribute(_.PAUSED, "");
@@ -2385,7 +2372,7 @@ var _i = [
2385
2372
  ((i = m(I, this)) != null && i.muted || this.hasAttribute(_.MUTED)) && e.setAttribute(_.MUTED, "");
2386
2373
  break;
2387
2374
  case _.MAX_VIDEO_BITRATE:
2388
- m(Oi, this) && e.setAttribute(_.MAX_VIDEO_BITRATE, m(Oi, this));
2375
+ m(Di, this) && e.setAttribute(_.MAX_VIDEO_BITRATE, m(Di, this));
2389
2376
  break;
2390
2377
  case _.SIZE_BASED_RESOLUTION_CAP_ENABLED:
2391
2378
  {
@@ -2395,10 +2382,10 @@ var _i = [
2395
2382
  }
2396
2383
  break;
2397
2384
  case _.CHANNEL_ID:
2398
- m(Ei, this) && e.setAttribute(_.CHANNEL_ID, m(Ei, this));
2385
+ m(Ti, this) && e.setAttribute(_.CHANNEL_ID, m(Ti, this));
2399
2386
  break;
2400
2387
  case _.CHANNEL_GROUP_ID:
2401
- m(Di, this) && e.setAttribute(_.CHANNEL_GROUP_ID, m(Di, this));
2388
+ m(Ei, this) && e.setAttribute(_.CHANNEL_GROUP_ID, m(Ei, this));
2402
2389
  break;
2403
2390
  case _.AUTHENTICATION_TOKEN: {
2404
2391
  let t = this.getAttribute("authentication-token");
@@ -2434,38 +2421,38 @@ var _i = [
2434
2421
  });
2435
2422
  }
2436
2423
  disconnectListener(e) {
2437
- wr(e).forEach((t) => {
2438
- let n = m(vi, this).get(t);
2439
- n && m(vi, this).set(t, n.filter((t) => t !== e));
2424
+ Cr(e).forEach((t) => {
2425
+ let n = m(_i, this).get(t);
2426
+ n && m(_i, this).set(t, n.filter((t) => t !== e));
2440
2427
  });
2441
2428
  }
2442
2429
  get instance() {
2443
2430
  return m(I, this);
2444
2431
  }
2445
2432
  get fullscreen() {
2446
- return p(H, this, Aa).call(this);
2433
+ return p(H, this, ka).call(this);
2447
2434
  }
2448
2435
  get airPlay() {
2449
- return m(Mi, this);
2436
+ return m(ji, this);
2450
2437
  }
2451
2438
  get timelineMarkers() {
2452
- return Mr(this.getAttribute(_.TIMELINE_MARKERS));
2439
+ return jr(this.getAttribute(_.TIMELINE_MARKERS));
2453
2440
  }
2454
2441
  set timelineMarkers(e) {
2455
- let t = jr(e);
2442
+ let t = Ar(e);
2456
2443
  t.length === 0 ? this.removeAttribute(_.TIMELINE_MARKERS) : this.setAttribute(_.TIMELINE_MARKERS, JSON.stringify(t));
2457
2444
  }
2458
2445
  connect() {
2459
- p(H, this, ya).call(this);
2446
+ p(H, this, va).call(this);
2460
2447
  }
2461
2448
  };
2462
- function ya() {
2449
+ function va() {
2463
2450
  var e = this;
2464
2451
  return t(function* () {
2465
2452
  var t, n;
2466
- if (!m(Ei, e)) return;
2467
- let r = m(L, e) === m(wi, e);
2468
- m(xi, e).stop(), yield (t = m(I, e)) == null ? void 0 : t.unload(), r && h(L, e, void 0);
2453
+ if (!m(Ti, e)) return;
2454
+ let r = m(L, e) === m(Ci, e);
2455
+ m(bi, e).stop(), yield (t = m(I, e)) == null ? void 0 : t.unload(), r && h(L, e, void 0);
2469
2456
  let i = e.hasAttribute(_.PAUSED), a = e.hasAttribute(_.MUTED), o = ve(e.getAttribute(_.VOLUME)), s = typeof o == "number" ? Math.max(0, Math.min(1, o)) : o, c = _e(e.getAttribute(_.MEDIA)), l = e.getAttribute(_.TEXT_TRACK) || void 0, u = e.getAttribute("edge-url") || void 0, ee = e.getAttribute("authentication-token") || void 0, d = ve(e.getAttribute("max-video-bit-rate")), te = ve(e.getAttribute("max-initial-bit-rate")), ne = we(e.getAttribute("max-size")), re = ve(e.getAttribute("min-buffer-time")), ie = ve(e.getAttribute("max-buffer-time")), oe = x(e.getAttribute("burst-enabled")), se = x(e.getAttribute("mse-enabled")), ce = x(e.getAttribute("mse-opus-enabled")), le = x(e.getAttribute("ios-background-play-enabled")), f = x(e.getAttribute("ios-wake-lock-enabled")), g = x(e.getAttribute("stream-to-media-element-enabled")), ue = x(e.getAttribute("ios-media-element-enabled")), de = x(e.getAttribute("abr-enabled"), !0), fe = x(e.getAttribute("size-based-resolution-cap-enabled")), pe = x(e.getAttribute("telemetry-enabled")), me = be(e.getAttribute("video-codecs")), v = Se(e.getAttribute("poster")), b = he(e.getAttribute("advanced")), S = ge(e.getAttribute("log-level")), Ce = {
2470
2457
  headers: ye(e.getAttribute("drm-headers")),
2471
2458
  queryParams: ye(e.getAttribute("drm-queryparams")),
@@ -2479,9 +2466,9 @@ function ya() {
2479
2466
  }
2480
2467
  }, Te = je(e.getAttribute("webcodecs-hardware-acceleration")), Ee = Ae(e.getAttribute("decoders")), De = x(e.getAttribute("offscreen-canvas-enabled")), Oe = x(e.getAttribute("webtransport-enabled")), ke = ve(e.getAttribute("reconnect-retries")), Me = ke === void 0 ? void 0 : (e) => e.reconnectRetries < ke, Ne = e.getAttribute("language") || void 0;
2481
2468
  h(I, e, new ae({
2482
- url: m(Ti, e),
2483
- channelId: m(Ei, e),
2484
- channelGroupId: m(Di, e),
2469
+ url: m(wi, e),
2470
+ channelId: m(Ti, e),
2471
+ channelGroupId: m(Ei, e),
2485
2472
  edgeUrl: u,
2486
2473
  authenticationToken: ee,
2487
2474
  muted: a,
@@ -2514,110 +2501,110 @@ function ya() {
2514
2501
  decoders: Ee,
2515
2502
  offscreenCanvasEnabled: De,
2516
2503
  reconnectHandler: Me
2517
- })), h(wi, e, new di(m(I, e))), m(L, e) || h(L, e, m(wi, e)), p(H, e, ba).call(e), h(Si, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), m(Si, e) && (m(I, e).attach(m(Si, e)), m(zi, e).observe(m(Si, e))), e.setAttribute(_.MEDIA, m(I, e).media), m(I, e).muted && p(H, e, U).call(e, _.MUTED, ""), m(I, e).abrEnabled ? p(H, e, U).call(e, _.ABR_ENABLED, "") : p(H, e, W).call(e, _.ABR_ENABLED), p(H, e, U).call(e, _.SIZE_BASED_RESOLUTION_CAP_ENABLED, m(I, e).sizeBasedResolutionCapEnabled ? "true" : "false"), p(H, e, U).call(e, _.VOLUME, m(I, e).volume.toString()), y(v) || p(H, e, U).call(e, _.POSTER_SRC, m(I, e).getThumbnailUrl());
2504
+ })), h(Ci, e, new ui(m(I, e))), m(L, e) || h(L, e, m(Ci, e)), p(H, e, ya).call(e), h(xi, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), m(xi, e) && (m(I, e).attach(m(xi, e)), m(Ri, e).observe(m(xi, e))), e.setAttribute(_.MEDIA, m(I, e).media), m(I, e).muted && p(H, e, U).call(e, _.MUTED, ""), m(I, e).abrEnabled ? p(H, e, U).call(e, _.ABR_ENABLED, "") : p(H, e, W).call(e, _.ABR_ENABLED), p(H, e, U).call(e, _.SIZE_BASED_RESOLUTION_CAP_ENABLED, m(I, e).sizeBasedResolutionCapEnabled ? "true" : "false"), p(H, e, U).call(e, _.VOLUME, m(I, e).volume.toString()), y(v) || p(H, e, U).call(e, _.POSTER_SRC, m(I, e).getThumbnailUrl());
2518
2505
  let Pe = x(e.getAttribute(_.AIRPLAY_ENABLED), !1), C = x(e.getAttribute(_.CAST_ENABLED), !0), Fe = x(e.getAttribute(_.FULLSCREEN_ENABLED), !0), Ie = x(e.getAttribute(_.PIP_ENABLED), !0), Le = x(e.getAttribute(_.VU_METER_ENABLED), !1), Re = x(e.getAttribute(_.TIMESHIFT_ENABLED), !1);
2519
- Pe && p(H, e, Pa).call(e, m(I, e)), C && p(H, e, ja).call(e, m(I, e)), Fe && p(H, e, Oa).call(e, m(I, e)), Ie && p(H, e, Ea).call(e, m(I, e)), i || m(I, e).play(), Le && p(H, e, Fa).call(e, m(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
2506
+ Pe && p(H, e, Na).call(e, m(I, e)), C && p(H, e, Aa).call(e, m(I, e)), Fe && p(H, e, Da).call(e, m(I, e)), Ie && p(H, e, Ta).call(e, m(I, e)), i || m(I, e).play(), Le && p(H, e, Pa).call(e, m(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
2520
2507
  bubbles: !0,
2521
2508
  composed: !0,
2522
2509
  detail: m(I, e)
2523
- })), Re && (p(H, e, Ca).call(e), Fe && p(H, e, ka).call(e));
2510
+ })), Re && (p(H, e, Sa).call(e), Fe && p(H, e, Oa).call(e));
2524
2511
  })();
2525
2512
  }
2513
+ function ya() {
2514
+ m(I, this) && (m(I, this).on("rendition levels", m(zi, this)), m(I, this).on("rendition level", m(Bi, this)), m(I, this).on("playback state", m(Vi, this)), m(I, this).on("volume state", m(Hi, this)), m(I, this).on("channel switch failed", m(Ui, this)), m(I, this).on("channel switch", m(Wi, this)), m(I, this).on("channels", m(Gi, this)), m(I, this).on("languages", m(Ki, this)), m(I, this).on("text tracks", m(qi, this)), m(I, this).on("needs user input", m(Ji, this)), m(I, this).on("is live", m(Yi, this)), m(I, this).on("timeshift info", m(Xi, this)));
2515
+ }
2526
2516
  function ba() {
2527
- m(I, this) && (m(I, this).on("rendition levels", m(Bi, this)), m(I, this).on("rendition level", m(Vi, this)), m(I, this).on("playback state", m(Hi, this)), m(I, this).on("volume state", m(Ui, this)), m(I, this).on("channel switch failed", m(Wi, this)), m(I, this).on("channel switch", m(Gi, this)), m(I, this).on("channels", m(Ki, this)), m(I, this).on("languages", m(qi, this)), m(I, this).on("text tracks", m(Ji, this)), m(I, this).on("needs user input", m(Yi, this)), m(I, this).on("is live", m(Xi, this)), m(I, this).on("timeshift info", m(Zi, this)));
2517
+ m(I, this) && (m(I, this).off("playback state", m(Vi, this)), m(I, this).off("volume state", m(Hi, this)), m(I, this).off("channel switch failed", m(Ui, this)), m(I, this).off("channel switch", m(Wi, this)), m(I, this).off("channels", m(Gi, this)), m(I, this).off("languages", m(Ki, this)), m(I, this).off("text tracks", m(qi, this)), m(I, this).off("needs user input", m(Ji, this)), m(I, this).off("is live", m(Yi, this)), m(I, this).off("timeshift info", m(Xi, this)));
2528
2518
  }
2529
2519
  function xa() {
2530
- m(I, this) && (m(I, this).off("playback state", m(Hi, this)), m(I, this).off("volume state", m(Ui, this)), m(I, this).off("channel switch failed", m(Wi, this)), m(I, this).off("channel switch", m(Gi, this)), m(I, this).off("channels", m(Ki, this)), m(I, this).off("languages", m(qi, this)), m(I, this).off("text tracks", m(Ji, this)), m(I, this).off("needs user input", m(Yi, this)), m(I, this).off("is live", m(Xi, this)), m(I, this).off("timeshift info", m(Zi, this)));
2520
+ m(R, this) && (m(R, this).addEventListener("playing", m(Zi, this)), m(R, this).addEventListener("pause", m(Qi, this)), m(R, this).addEventListener("ended", m($i, this)), m(R, this).addEventListener("timeupdate", m(ta, this)), m(R, this).addEventListener("volumechange", m(na, this)), m(R, this).addEventListener("hlsbuffering", m(ra, this)), m(R, this).addEventListener("hlsnotbuffering", m(ia, this)), m(R, this).addEventListener("timeshiftready", m(aa, this)));
2531
2521
  }
2532
2522
  function Sa() {
2533
- m(R, this) && (m(R, this).addEventListener("playing", m(Qi, this)), m(R, this).addEventListener("pause", m($i, this)), m(R, this).addEventListener("ended", m(ea, this)), m(R, this).addEventListener("timeupdate", m(na, this)), m(R, this).addEventListener("volumechange", m(ra, this)), m(R, this).addEventListener("hlsbuffering", m(ia, this)), m(R, this).addEventListener("hlsnotbuffering", m(aa, this)), m(R, this).addEventListener("timeshiftready", m(oa, this)));
2534
- }
2535
- function Ca() {
2536
2523
  var e, t, n, r;
2537
2524
  let i = ve(this.getAttribute(_.VOLUME)), a = i === void 0 ? (e = (t = m(L, this)) == null ? void 0 : t.volume) == null ? 1 : e : Math.max(0, Math.min(1, i)), o = x(this.getAttribute(_.MUTED), (n = (r = m(L, this)) == null ? void 0 : r.muted) == null ? !1 : n);
2538
- p(H, this, wa).call(this), h(R, this, new Jr(m(Ci, this), {
2525
+ p(H, this, Ca).call(this), h(R, this, new qr(m(Si, this), {
2539
2526
  volume: a,
2540
2527
  muted: o,
2541
- maxVideoBitRate: m(Oi, this) ? parseInt(m(Oi, this), 10) : void 0
2542
- })), m(R, this).addEventListener("durationchange", m(ta, this));
2528
+ maxVideoBitRate: m(Di, this) ? parseInt(m(Di, this), 10) : void 0
2529
+ })), m(R, this).addEventListener("durationchange", m(ea, this));
2543
2530
  }
2544
- function wa() {
2545
- m(R, this) && (p(H, this, Ta).call(this), m(R, this).removeEventListener("durationchange", m(ta, this)), m(R, this).cleanup(), m(L, this) === m(R, this) && h(L, this, void 0), h(R, this, void 0));
2531
+ function Ca() {
2532
+ m(R, this) && (p(H, this, wa).call(this), m(R, this).removeEventListener("durationchange", m(ea, this)), m(R, this).cleanup(), m(L, this) === m(R, this) && h(L, this, void 0), h(R, this, void 0));
2546
2533
  }
2547
- function Ta() {
2548
- m(R, this) && (m(R, this).removeEventListener("playing", m(Qi, this)), m(R, this).removeEventListener("pause", m($i, this)), m(R, this).removeEventListener("ended", m(ea, this)), m(R, this).removeEventListener("timeupdate", m(na, this)), m(R, this).removeEventListener("volumechange", m(ra, this)), m(R, this).removeEventListener("hlsbuffering", m(ia, this)), m(R, this).removeEventListener("hlsnotbuffering", m(aa, this)), m(R, this).removeEventListener("timeshiftready", m(oa, this)));
2534
+ function wa() {
2535
+ m(R, this) && (m(R, this).removeEventListener("playing", m(Zi, this)), m(R, this).removeEventListener("pause", m(Qi, this)), m(R, this).removeEventListener("ended", m($i, this)), m(R, this).removeEventListener("timeupdate", m(ta, this)), m(R, this).removeEventListener("volumechange", m(na, this)), m(R, this).removeEventListener("hlsbuffering", m(ra, this)), m(R, this).removeEventListener("hlsnotbuffering", m(ia, this)), m(R, this).removeEventListener("timeshiftready", m(aa, this)));
2549
2536
  }
2550
- function Ea(e) {
2551
- e.mediaElement instanceof HTMLVideoElement && (h(z, this, new rr(e.mediaElement)), m(z, this).isSupported() && (m(V, this).debug("PIP is supported"), p(H, this, U).call(this, _.PIP_AVAILABLE, "")), m(z, this).on("on picture in picture change", (e) => {
2537
+ function Ta(e) {
2538
+ e.mediaElement instanceof HTMLVideoElement && (h(z, this, new nr(e.mediaElement)), m(z, this).isSupported() && (m(V, this).debug("PIP is supported"), p(H, this, U).call(this, _.PIP_AVAILABLE, "")), m(z, this).on("on picture in picture change", (e) => {
2552
2539
  e ? p(H, this, U).call(this, _.IS_PIP, "") : p(H, this, W).call(this, _.IS_PIP);
2553
2540
  }));
2554
2541
  }
2555
- function Da() {
2542
+ function Ea() {
2556
2543
  var e;
2557
2544
  if (!m(z, this)) return;
2558
2545
  let t = null;
2559
- m(L, this) === m(R, this) && m(R, this) ? t = m(R, this).videoElement : ((e = m(I, this)) == null ? void 0 : e.mediaElement) instanceof HTMLVideoElement && (t = m(I, this).mediaElement), t && t !== m(z, this).videoElement && (m(V, this).debug("Updating PIP target to", m(L, this) === m(R, this) ? "HLS" : "Vindral"), m(z, this).unload(), h(z, this, new rr(t)), m(z, this).on("on picture in picture change", (e) => {
2546
+ m(L, this) === m(R, this) && m(R, this) ? t = m(R, this).videoElement : ((e = m(I, this)) == null ? void 0 : e.mediaElement) instanceof HTMLVideoElement && (t = m(I, this).mediaElement), t && t !== m(z, this).videoElement && (m(V, this).debug("Updating PIP target to", m(L, this) === m(R, this) ? "HLS" : "Vindral"), m(z, this).unload(), h(z, this, new nr(t)), m(z, this).on("on picture in picture change", (e) => {
2560
2547
  e ? p(H, this, U).call(this, _.IS_PIP, "") : p(H, this, W).call(this, _.IS_PIP);
2561
2548
  }));
2562
2549
  }
2563
- function Oa(e) {
2564
- let t = !qn.isFullscreenApiSupported(this) && qn.isFullscreenApiSupported(e.mediaElement) ? e.mediaElement : this;
2565
- h(Ai, this, new qn(t)), m(Ai, this).on("on fullscreen change", (e) => {
2550
+ function Da(e) {
2551
+ let t = !Kn.isFullscreenApiSupported(this) && Kn.isFullscreenApiSupported(e.mediaElement) ? e.mediaElement : this;
2552
+ h(ki, this, new Kn(t)), m(ki, this).on("on fullscreen change", (e) => {
2566
2553
  e ? p(H, this, U).call(this, _.FULLSCREEN, "") : p(H, this, W).call(this, _.FULLSCREEN);
2567
2554
  });
2568
2555
  }
2569
- function ka() {
2556
+ function Oa() {
2570
2557
  var e;
2571
- m(R, this) && (h(ji, this, !qn.isFullscreenApiSupported(this) && qn.isFullscreenApiSupported((e = m(R, this)) == null ? void 0 : e.videoElement) ? new qn(m(R, this).videoElement) : new qn(this)), m(ji, this).on("on fullscreen change", (e) => {
2558
+ m(R, this) && (h(Ai, this, !Kn.isFullscreenApiSupported(this) && Kn.isFullscreenApiSupported((e = m(R, this)) == null ? void 0 : e.videoElement) ? new Kn(m(R, this).videoElement) : new Kn(this)), m(Ai, this).on("on fullscreen change", (e) => {
2572
2559
  e ? p(H, this, U).call(this, _.FULLSCREEN, "") : p(H, this, W).call(this, _.FULLSCREEN);
2573
2560
  }));
2574
2561
  }
2575
- function Aa() {
2576
- return this.hasAttribute(_.TIMESHIFT_POSITION) ? m(ji, this) : m(Ai, this);
2562
+ function ka() {
2563
+ return this.hasAttribute(_.TIMESHIFT_POSITION) ? m(Ai, this) : m(ki, this);
2577
2564
  }
2578
- function ja(e) {
2579
- h(Ni, this, new De({
2580
- background: m(Fi, this),
2581
- receiverApplicationId: m(Pi, this),
2565
+ function Aa(e) {
2566
+ h(Mi, this, new De({
2567
+ background: m(Pi, this),
2568
+ receiverApplicationId: m(Ni, this),
2582
2569
  options: e.getCastOptions()
2583
- })), m(Ni, this).init().then(() => {
2570
+ })), m(Mi, this).init().then(() => {
2584
2571
  var e, t, n;
2585
- p(H, this, U).call(this, _.CAST_AVAILABLE, ""), (e = m(Ni, this)) == null || e.on("connected", p(H, this, Ma).bind(this)), (t = m(Ni, this)) == null || t.on("resumed", p(H, this, Ma).bind(this)), (n = m(Ni, this)) == null || n.on("disconnected", p(H, this, Na).bind(this));
2572
+ p(H, this, U).call(this, _.CAST_AVAILABLE, ""), (e = m(Mi, this)) == null || e.on("connected", p(H, this, ja).bind(this)), (t = m(Mi, this)) == null || t.on("resumed", p(H, this, ja).bind(this)), (n = m(Mi, this)) == null || n.on("disconnected", p(H, this, Ma).bind(this));
2586
2573
  }).catch((e) => {
2587
2574
  m(V, this).warn("Failed to initialize CastSender", e);
2588
2575
  });
2589
2576
  }
2590
- function Ma() {
2577
+ function ja() {
2591
2578
  var e, t;
2592
2579
  p(H, this, U).call(this, _.IS_CASTING, "");
2593
- let n = (e = (t = m(Ni, this)) == null ? void 0 : t.getReceiverName()) == null ? "device" : e;
2580
+ let n = (e = (t = m(Mi, this)) == null ? void 0 : t.getReceiverName()) == null ? "device" : e;
2594
2581
  p(H, this, U).call(this, _.CAST_RECEIVER_NAME, n);
2595
2582
  }
2596
- function Na() {
2583
+ function Ma() {
2597
2584
  p(H, this, W).call(this, _.IS_CASTING), p(H, this, W).call(this, _.CAST_RECEIVER_NAME);
2598
2585
  }
2599
- function Pa(e) {
2586
+ function Na(e) {
2600
2587
  var t;
2601
- (t = m(Mi, this)) == null || t.unload();
2588
+ (t = m(ji, this)) == null || t.unload();
2602
2589
  let n = e.getCastOptions();
2603
- h(Mi, this, new Rn({
2590
+ h(ji, this, new Rn({
2604
2591
  url: n.url,
2605
2592
  channelId: n.channelId,
2606
2593
  authenticationToken: n.authenticationToken,
2607
2594
  container: this
2608
- })), m(Mi, this).once("available", () => {
2595
+ })), m(ji, this).once("available", () => {
2609
2596
  p(H, this, U).call(this, _.AIRPLAY_AVAILABLE, "");
2610
- }), m(Mi, this).on("connected", () => {
2597
+ }), m(ji, this).on("connected", () => {
2611
2598
  p(H, this, U).call(this, _.IS_AIRPLAYING, "");
2612
- }), m(Mi, this).on("disconnected", () => {
2599
+ }), m(ji, this).on("disconnected", () => {
2613
2600
  p(H, this, W).call(this, _.IS_AIRPLAYING);
2614
2601
  });
2615
2602
  }
2616
- function Fa(e) {
2603
+ function Pa(e) {
2617
2604
  var t;
2618
2605
  if ((t = m(B, this)) == null || t.unload(), !se()) {
2619
- if (e.audioNode) h(B, this, new Pr(e.audioNode));
2620
- else if (e.mediaElement instanceof HTMLMediaElement) h(B, this, new Pr(e.mediaElement));
2606
+ if (e.audioNode) h(B, this, new Nr(e.audioNode));
2607
+ else if (e.mediaElement instanceof HTMLMediaElement) h(B, this, new Nr(e.mediaElement));
2621
2608
  else return;
2622
2609
  m(B, this).on("on decibel change", (e) => {
2623
2610
  p(H, this, U).call(this, _.VOLUME_LEVEL, JSON.stringify(e));
@@ -2627,37 +2614,37 @@ function Fa(e) {
2627
2614
  })), (!m(B, this).isMediaElementSource || !this.hasAttribute(_.MUTED)) && m(B, this).start();
2628
2615
  }
2629
2616
  }
2630
- function Ia() {
2617
+ function Fa() {
2631
2618
  let e = () => (customElements.get("vindral-debug-panel") || import("./C2-H3s2r.js").then((e) => e.n).then(({ registerDebugComponents: e }) => e()), this.setAttribute(_.DEBUG_PANEL_OPEN, ""), m(I, this));
2632
- window._vindralDebug = e, h(Ri, this, e);
2619
+ window._vindralDebug = e, h(Li, this, e);
2633
2620
  }
2634
- function La() {
2621
+ function Ia() {
2635
2622
  let e = window;
2636
- m(Ri, this) && e._vindralDebug === m(Ri, this) && delete e._vindralDebug, h(Ri, this, null);
2623
+ m(Li, this) && e._vindralDebug === m(Li, this) && delete e._vindralDebug, h(Li, this, null);
2637
2624
  }
2638
- function Ra(e) {
2639
- e.pointerType !== "mouse" && e.timeStamp - m(sa, this) < 250 || (p(H, this, Ka).call(this), m(bi, this) && clearTimeout(m(bi, this)), e.target instanceof HTMLElement && ([this, m(Si, this)].includes(e.target) || e.target.localName === "vindral-scroll-overlay") && p(H, this, qa).call(this));
2625
+ function La(e) {
2626
+ e.pointerType !== "mouse" && e.timeStamp - m(oa, this) < 250 || (p(H, this, Ga).call(this), m(yi, this) && clearTimeout(m(yi, this)), e.target instanceof HTMLElement && ([this, m(xi, this)].includes(e.target) || e.target.localName === "vindral-scroll-overlay") && p(H, this, Ka).call(this));
2640
2627
  }
2641
- function za(e) {
2628
+ function Ra(e) {
2642
2629
  let t = this.hasAttribute(_.USER_INTERACTING);
2643
- e.pointerType === "touch" && e.target instanceof HTMLElement ? [this, m(Si, this)].includes(e.target) && t ? p(H, this, Ga).call(this) : p(H, this, qa).call(this) : e.composedPath().some((e) => e instanceof HTMLElement && ["vindral-play-button"].includes(e == null ? void 0 : e.localName)) && p(H, this, qa).call(this);
2630
+ e.pointerType === "touch" && e.target instanceof HTMLElement ? [this, m(xi, this)].includes(e.target) && t ? p(H, this, Wa).call(this) : p(H, this, Ka).call(this) : e.composedPath().some((e) => e instanceof HTMLElement && ["vindral-play-button"].includes(e == null ? void 0 : e.localName)) && p(H, this, Ka).call(this);
2644
2631
  }
2645
- function Ba(e) {
2632
+ function za(e) {
2646
2633
  switch (e) {
2647
2634
  case "dblclick-fullscreen": return x(this.getAttribute(_.DOUBLE_CLICK_FULLSCREEN_ENABLED), !0);
2648
2635
  default: return !0;
2649
2636
  }
2650
2637
  }
2638
+ function Ba(e) {
2639
+ p(H, this, za).call(this, "dblclick-fullscreen") && (!m(ki, this) || e.target instanceof S || e.target instanceof ze || e.target instanceof mi || (this.hasAttribute(_.FULLSCREEN) ? this.removeAttribute(_.FULLSCREEN) : this.setAttribute(_.FULLSCREEN, "")));
2640
+ }
2651
2641
  function Va(e) {
2652
- p(H, this, Ba).call(this, "dblclick-fullscreen") && (!m(Ai, this) || e.target instanceof S || e.target instanceof ze || e.target instanceof hi || (this.hasAttribute(_.FULLSCREEN) ? this.removeAttribute(_.FULLSCREEN) : this.setAttribute(_.FULLSCREEN, "")));
2642
+ this.hasAttribute(_.USER_INTERACTING) || p(H, this, Ka).call(this);
2653
2643
  }
2654
2644
  function Ha(e) {
2655
- this.hasAttribute(_.USER_INTERACTING) || p(H, this, qa).call(this);
2656
- }
2657
- function Ua(e) {
2658
2645
  var t;
2659
2646
  let { metaKey: n, altKey: r, key: i } = e;
2660
- if (n || r || !_i.includes(i)) return;
2647
+ if (n || r || !gi.includes(i)) return;
2661
2648
  let a = (t = e.target) == null ? void 0 : t.keysUsed;
2662
2649
  if (!(Array.isArray(a) && a.includes(i)) && !e.composedPath().some((e) => {
2663
2650
  let t = e == null ? void 0 : e.keysUsed;
@@ -2675,28 +2662,28 @@ function Ua(e) {
2675
2662
  break;
2676
2663
  }
2677
2664
  }
2678
- function Wa() {
2665
+ function Ua() {
2679
2666
  var e = this;
2680
2667
  return t(function* () {
2681
- if (!m(I, e) || !m(Di, e)) return;
2668
+ if (!m(I, e) || !m(Ei, e)) return;
2682
2669
  let t = Date.now();
2683
- if (m(ma, e) && t - m(ma, e) < 1e4) m(V, e).debug("Skipping channel update, last update was less than 10 seconds ago.");
2670
+ if (m(pa, e) && t - m(pa, e) < 1e4) m(V, e).debug("Skipping channel update, last update was less than 10 seconds ago.");
2684
2671
  else {
2685
- h(ma, e, t);
2686
- let n = yield m(I, e).getApiClient().getChannels(m(Di, e));
2672
+ h(pa, e, t);
2673
+ let n = yield m(I, e).getApiClient().getChannels(m(Ei, e));
2687
2674
  p(H, e, U).call(e, _.CHANNELS, JSON.stringify(n));
2688
2675
  }
2689
- h(Ii, e, window.setTimeout(() => void p(H, e, Wa).call(e), 1e4));
2676
+ h(Fi, e, window.setTimeout(() => void p(H, e, Ua).call(e), 1e4));
2690
2677
  })();
2691
2678
  }
2692
- function Ga() {
2679
+ function Wa() {
2693
2680
  !this.hasAttribute(_.USER_INTERACTING) || this.hasAttribute(_.UI_LOCKED) || (this.dispatchEvent(new CustomEvent("user-interacting", {
2694
2681
  bubbles: !0,
2695
2682
  composed: !0,
2696
2683
  detail: { active: !1 }
2697
2684
  })), this.removeAttribute(_.USER_INTERACTING));
2698
2685
  }
2699
- function Ka() {
2686
+ function Ga() {
2700
2687
  this.hasAttribute(_.USER_INTERACTING) || requestAnimationFrame(() => {
2701
2688
  this.setAttribute(_.USER_INTERACTING, ""), this.dispatchEvent(new CustomEvent("user-interacting", {
2702
2689
  bubbles: !0,
@@ -2705,64 +2692,64 @@ function Ka() {
2705
2692
  }));
2706
2693
  });
2707
2694
  }
2708
- function qa() {
2709
- p(H, this, Ka).call(this), m(bi, this) && clearTimeout(m(bi, this)), m(yi, this) && h(bi, this, self.setTimeout(() => {
2710
- p(H, this, Ga).call(this);
2711
- }, m(yi, this)));
2695
+ function Ka() {
2696
+ p(H, this, Ga).call(this), m(yi, this) && clearTimeout(m(yi, this)), m(vi, this) && h(yi, this, self.setTimeout(() => {
2697
+ p(H, this, Wa).call(this);
2698
+ }, m(vi, this)));
2712
2699
  }
2713
- function Ja() {
2700
+ function qa() {
2714
2701
  var e;
2715
2702
  let t = getComputedStyle(this).getPropertyValue("--vindral-subtitle-offset") || "0px";
2716
2703
  (e = m(I, this)) == null || (e = e.mediaElement) == null || e.style.setProperty("--vindral-subtitle-offset", t);
2717
2704
  }
2718
- function Ya() {
2705
+ function Ja() {
2719
2706
  var e;
2720
- p(H, this, Da).call(this), p(H, this, $a).call(this), (e = m(z, this)) == null || e.request().catch((e) => {
2707
+ p(H, this, Ea).call(this), p(H, this, Qa).call(this), (e = m(z, this)) == null || e.request().catch((e) => {
2721
2708
  m(V, this).warn("Failed to enter picture in picture:", e);
2722
2709
  });
2723
2710
  }
2724
- function Xa() {
2711
+ function Ya() {
2725
2712
  var e;
2726
2713
  (e = m(z, this)) == null || e.exit().catch((e) => {
2727
2714
  m(V, this).warn("Failed to exit picture in picture:", e);
2728
2715
  });
2729
2716
  }
2730
- function Za() {
2731
- let e = p(H, this, Aa).call(this);
2717
+ function Xa() {
2718
+ let e = p(H, this, ka).call(this);
2732
2719
  if (!e) {
2733
2720
  console.warn("No fullscreen target available"), this.setAttribute(_.FULLSCREEN_FALLBACK, ""), p(H, this, U).call(this, _.FULLSCREEN, "");
2734
2721
  return;
2735
2722
  }
2736
- e != null && e.isFullscreenApiSupported() ? (p(H, this, $a).call(this), e == null || e.request().then(() => {
2737
- m(ha, this).call(this);
2723
+ e != null && e.isFullscreenApiSupported() ? (p(H, this, Qa).call(this), e == null || e.request().then(() => {
2724
+ m(ma, this).call(this);
2738
2725
  }).catch((e) => {
2739
2726
  m(V, this).warn("Failed to enter fullscreen:", e);
2740
2727
  })) : (this.setAttribute(_.FULLSCREEN_FALLBACK, ""), p(H, this, U).call(this, _.FULLSCREEN, ""));
2741
2728
  }
2742
- function Qa() {
2743
- let e = p(H, this, Aa).call(this);
2729
+ function Za() {
2730
+ let e = p(H, this, ka).call(this);
2744
2731
  e != null && e.isFullscreenApiSupported() ? e == null || e.exit().then(() => {
2745
- m(ga, this).call(this);
2732
+ m(ha, this).call(this);
2746
2733
  }).catch((e) => {
2747
2734
  m(V, this).warn("Failed to exit fullscreen:", e);
2748
2735
  }) : (this.removeAttribute(_.FULLSCREEN_FALLBACK), p(H, this, W).call(this, _.FULLSCREEN));
2749
2736
  }
2750
- function $a() {
2737
+ function Qa() {
2751
2738
  m(I, this) && m(I, this).emitter.emit("ios-hack: reset size");
2752
2739
  }
2753
- function eo() {
2740
+ function $a() {
2754
2741
  return this.hasAttribute(_.DEBUG_PANEL_OPEN);
2755
2742
  }
2743
+ function eo() {
2744
+ p(H, this, $a).call(this) ? p(H, this, to).call(this) : p(H, this, no).call(this);
2745
+ }
2756
2746
  function to() {
2757
- p(H, this, eo).call(this) ? p(H, this, no).call(this) : p(H, this, ro).call(this);
2747
+ m(ga, this) === null && (p(H, this, ro).call(this), h(ga, this, window.setInterval(() => p(H, this, ro).call(this), 1e3)));
2758
2748
  }
2759
2749
  function no() {
2760
- m(_a, this) === null && (p(H, this, io).call(this), h(_a, this, window.setInterval(() => p(H, this, io).call(this), 1e3)));
2750
+ m(ga, this) && (clearInterval(m(ga, this)), h(ga, this, null)), this.removeAttribute(_.DRIFT), p(H, this, W).call(this, _.DRIFT), p(H, this, W).call(this, _.PLAYBACK_LATENCY), p(H, this, W).call(this, _.CONNECTION_STATE);
2761
2751
  }
2762
2752
  function ro() {
2763
- m(_a, this) && (clearInterval(m(_a, this)), h(_a, this, null)), this.removeAttribute(_.DRIFT), p(H, this, W).call(this, _.DRIFT), p(H, this, W).call(this, _.PLAYBACK_LATENCY), p(H, this, W).call(this, _.CONNECTION_STATE);
2764
- }
2765
- function io() {
2766
2753
  if (!m(I, this)) return;
2767
2754
  try {
2768
2755
  let e = m(I, this).getStatistics().drift;
@@ -2778,13 +2765,13 @@ function io() {
2778
2765
  }
2779
2766
  function U(e, t) {
2780
2767
  var n;
2781
- (n = m(vi, this).get(e)) == null || n.forEach((n) => n.setAttribute(e, t));
2768
+ (n = m(_i, this).get(e)) == null || n.forEach((n) => n.setAttribute(e, t));
2782
2769
  }
2783
2770
  function W(e) {
2784
2771
  var t;
2785
- (t = m(vi, this).get(e)) == null || t.forEach((t) => t.removeAttribute(e));
2772
+ (t = m(_i, this).get(e)) == null || t.forEach((t) => t.removeAttribute(e));
2786
2773
  }
2787
- e(va, "observedAttributes", [
2774
+ e(_a, "observedAttributes", [
2788
2775
  ...me,
2789
2776
  "url",
2790
2777
  "edge-url",
@@ -2824,8 +2811,8 @@ e(va, "observedAttributes", [
2824
2811
  "auto-instance-enabled",
2825
2812
  "language"
2826
2813
  ]);
2827
- var ao = { _: "https://lb.cdn.vindral.com" }, oo, so = document.createElement("template");
2828
- so.innerHTML = `
2814
+ var io = { _: "https://lb.cdn.vindral.com" }, ao, oo = document.createElement("template");
2815
+ oo.innerHTML = `
2829
2816
  <style>
2830
2817
  :host {
2831
2818
  display: var(--fullscreen-button-display);
@@ -2849,10 +2836,10 @@ so.innerHTML = `
2849
2836
  </slot>
2850
2837
  </slot>
2851
2838
  `;
2852
- var co = class extends S {
2839
+ var so = class extends S {
2853
2840
  constructor() {
2854
2841
  var e;
2855
- super(), (e = this.shadowRoot) == null || e.appendChild(so.content.cloneNode(!0));
2842
+ super(), (e = this.shadowRoot) == null || e.appendChild(oo.content.cloneNode(!0));
2856
2843
  }
2857
2844
  connectedCallback() {
2858
2845
  super.connectedCallback(), this.setAttribute("aria-label", this.isFullscreen ? "Exit fullscreen" : "Enter fullscreen");
@@ -2877,48 +2864,48 @@ var co = class extends S {
2877
2864
  }));
2878
2865
  }
2879
2866
  };
2880
- oo = co, e(co, "observedAttributes", [...b(oo, "observedAttributes", oo), _.FULLSCREEN]);
2867
+ ao = so, e(so, "observedAttributes", [...b(ao, "observedAttributes", ao), _.FULLSCREEN]);
2881
2868
  //#endregion
2882
2869
  //#region ../../libs/player-next/src/components/LanguageMenu.ts
2883
- var lo, uo = "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M4 5h7\" /><path d=\"M9 3v2c0 4.418 -2.239 8 -5 8\" /><path d=\"M5 9c0 2.144 2.952 3.908 6.7 4\" /><path d=\"M12 20l4 -9l4 9\" /><path d=\"M19.1 18h-6.2\" /></svg>\n", fo = document.createElement("template");
2884
- fo.innerHTML = `
2870
+ var co, lo = "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M4 5h7\" /><path d=\"M9 3v2c0 4.418 -2.239 8 -5 8\" /><path d=\"M5 9c0 2.144 2.952 3.908 6.7 4\" /><path d=\"M12 20l4 -9l4 9\" /><path d=\"M19.1 18h-6.2\" /></svg>\n", uo = document.createElement("template");
2871
+ uo.innerHTML = `
2885
2872
  <style>
2886
2873
  :host(:not([hidden])) {
2887
2874
  display: var(--language-menu-display);
2888
2875
  }
2889
2876
  </style>
2890
2877
 
2891
- <slot name="button">${uo}</slot>
2878
+ <slot name="button">${lo}</slot>
2892
2879
  <slot name="listbox" hidden>
2893
2880
  <vindral-language-menu-list id="listbox" part="listbox"></vindral-language-menu-list>
2894
2881
  </slot>
2895
2882
  `;
2896
- var po = /* @__PURE__ */ new WeakSet(), mo = class extends ze {
2883
+ var fo = /* @__PURE__ */ new WeakSet(), po = class extends ze {
2897
2884
  constructor() {
2898
2885
  var e, t, n, r;
2899
- super(), g(this, po), (e = this.shadowRoot) == null || e.appendChild(fo.content.cloneNode(!0)), this.button = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot[name=button]"), this.listbox = (n = this.shadowRoot) == null ? void 0 : n.querySelector("[part=listbox]"), this.listboxSlot = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot[name=listbox]");
2886
+ super(), g(this, fo), (e = this.shadowRoot) == null || e.appendChild(uo.content.cloneNode(!0)), this.button = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot[name=button]"), this.listbox = (n = this.shadowRoot) == null ? void 0 : n.querySelector("[part=listbox]"), this.listboxSlot = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot[name=listbox]");
2900
2887
  }
2901
2888
  connectedCallback() {
2902
- super.connectedCallback(), p(po, this, ho).call(this), this.setAttribute("aria-label", "Languages");
2889
+ super.connectedCallback(), p(fo, this, mo).call(this), this.setAttribute("aria-label", "Languages");
2903
2890
  }
2904
2891
  attributeChangedCallback(e, t, n) {
2905
- super.attributeChangedCallback(e, t, n), (e === _.LANGUAGES || e === _.TEXT_TRACKS) && p(po, this, ho).call(this);
2892
+ super.attributeChangedCallback(e, t, n), (e === _.LANGUAGES || e === _.TEXT_TRACKS) && p(fo, this, mo).call(this);
2906
2893
  }
2907
2894
  };
2908
- lo = mo;
2909
- function ho() {
2895
+ co = po;
2896
+ function mo() {
2910
2897
  let e = (e) => (e ? JSON.parse(e) : []).length < 2, t = e(this.getAttribute(_.LANGUAGES)), n = e(this.getAttribute(_.TEXT_TRACKS));
2911
2898
  t && n ? this.setAttribute("hidden", "") : this.removeAttribute("hidden");
2912
2899
  }
2913
- e(mo, "observedAttributes", [
2914
- ...b(lo, "observedAttributes", lo),
2900
+ e(po, "observedAttributes", [
2901
+ ...b(co, "observedAttributes", co),
2915
2902
  _.LANGUAGES,
2916
2903
  _.TEXT_TRACKS
2917
2904
  ]);
2918
2905
  //#endregion
2919
2906
  //#region ../../libs/player-next/src/components/LanguageMenuList.ts
2920
- var go = document.createElement("template");
2921
- go.innerHTML = `
2907
+ var ho = document.createElement("template");
2908
+ ho.innerHTML = `
2922
2909
  <style>
2923
2910
  :host {
2924
2911
  font: inherit;
@@ -3032,21 +3019,21 @@ go.innerHTML = `
3032
3019
  <div class="menu"></div>
3033
3020
  </div>
3034
3021
  `;
3035
- var _o = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), yo = /* @__PURE__ */ new WeakMap(), bo = /* @__PURE__ */ new WeakMap(), xo = /* @__PURE__ */ new WeakMap(), So = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), ko = class extends HTMLElement {
3022
+ var go = /* @__PURE__ */ new WeakMap(), _o = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), yo = /* @__PURE__ */ new WeakMap(), bo = /* @__PURE__ */ new WeakMap(), xo = /* @__PURE__ */ new WeakMap(), So = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), Do = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), Oo = class extends HTMLElement {
3036
3023
  constructor() {
3037
- super(), g(this, G), f(this, _o, []), f(this, vo, []), f(this, yo, void 0), f(this, bo, void 0), f(this, xo, []), f(this, So, []), f(this, Co, null), f(this, wo, null), f(this, To, null), f(this, Eo, null), f(this, Do, null), f(this, Oo, null), e(this, "handleEvent", (e) => {
3024
+ super(), g(this, G), f(this, go, []), f(this, _o, []), f(this, vo, void 0), f(this, yo, void 0), f(this, bo, []), f(this, xo, []), f(this, So, null), f(this, Co, null), f(this, wo, null), f(this, To, null), f(this, Eo, null), f(this, Do, null), e(this, "handleEvent", (e) => {
3038
3025
  switch (e.type) {
3039
3026
  case "keydown":
3040
- p(G, this, Ro).call(this, e);
3027
+ p(G, this, Lo).call(this, e);
3041
3028
  break;
3042
3029
  }
3043
- }), this.attachShadow({ mode: "open" }).appendChild(go.content.cloneNode(!0));
3030
+ }), this.attachShadow({ mode: "open" }).appendChild(ho.content.cloneNode(!0));
3044
3031
  }
3045
3032
  connectedCallback() {
3046
3033
  let e = this.getRootNode();
3047
3034
  if (e instanceof ShadowRoot) {
3048
3035
  var t, n, r;
3049
- h(To, this, e.host.closest("vindral-controller")), (t = m(To, this)) == null || t.connectListener(this), h(Co, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#languages .menu")), h(wo, this, (r = this.shadowRoot) == null ? void 0 : r.querySelector("#text-tracks .menu")), p(G, this, Ao).call(this), p(G, this, jo).call(this), h(Eo, this, e.host), this.addEventListener("keydown", this);
3036
+ h(wo, this, e.host.closest("vindral-controller")), (t = m(wo, this)) == null || t.connectListener(this), h(So, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#languages .menu")), h(Co, this, (r = this.shadowRoot) == null ? void 0 : r.querySelector("#text-tracks .menu")), p(G, this, ko).call(this), p(G, this, Ao).call(this), h(To, this, e.host), this.addEventListener("keydown", this);
3050
3037
  }
3051
3038
  }
3052
3039
  disconnectedCallback() {
@@ -3056,16 +3043,16 @@ var _o = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), yo =
3056
3043
  t !== n && (e === _.LANGUAGES && n && (this.languages = JSON.parse(n)), e === _.TEXT_TRACKS && n && (this.textTracks = JSON.parse(n)), e === _.LANGUAGE && (this.language = n), e === _.TEXT_TRACK && (this.textTrack = n));
3057
3044
  }
3058
3045
  set languages(e) {
3059
- h(_o, this, e), p(G, this, No).call(this), p(G, this, Fo).call(this);
3046
+ h(go, this, e), p(G, this, Mo).call(this), p(G, this, Po).call(this);
3060
3047
  }
3061
3048
  set textTracks(e) {
3062
- h(vo, this, e), p(G, this, Mo).call(this), p(G, this, Io).call(this);
3049
+ h(_o, this, e), p(G, this, jo).call(this), p(G, this, Fo).call(this);
3063
3050
  }
3064
3051
  set language(e) {
3065
- h(yo, this, e), p(G, this, Fo).call(this);
3052
+ h(vo, this, e), p(G, this, Po).call(this);
3066
3053
  }
3067
3054
  set textTrack(e) {
3068
- h(bo, this, e), p(G, this, Io).call(this);
3055
+ h(yo, this, e), p(G, this, Fo).call(this);
3069
3056
  }
3070
3057
  get keysUsed() {
3071
3058
  return [
@@ -3082,10 +3069,10 @@ var _o = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), yo =
3082
3069
  ];
3083
3070
  }
3084
3071
  focus() {
3085
- m(Do, this) ? m(Do, this).focus() : m(Oo, this) && m(Oo, this).focus();
3072
+ m(Eo, this) ? m(Eo, this).focus() : m(Do, this) && m(Do, this).focus();
3086
3073
  }
3087
3074
  };
3088
- function Ao() {
3075
+ function ko() {
3089
3076
  new IntersectionObserver((e) => {
3090
3077
  e.forEach((e) => {
3091
3078
  if (e.intersectionRatio !== 1) if (e.intersectionRatio > 0) {
@@ -3094,55 +3081,55 @@ function Ao() {
3094
3081
  } else this.style.height = "auto";
3095
3082
  });
3096
3083
  }, {
3097
- root: m(To, this),
3084
+ root: m(wo, this),
3098
3085
  threshold: 0
3099
3086
  }).observe(this);
3100
3087
  }
3101
- function jo() {
3102
- m(Co, this) && (p(G, this, No).call(this), p(G, this, Fo).call(this)), m(wo, this) && (p(G, this, Mo).call(this), p(G, this, Io).call(this));
3088
+ function Ao() {
3089
+ m(So, this) && (p(G, this, Mo).call(this), p(G, this, Po).call(this)), m(Co, this) && (p(G, this, jo).call(this), p(G, this, Fo).call(this));
3103
3090
  }
3104
- function Mo() {
3105
- m(wo, this).innerHTML = "", h(So, this, []);
3106
- let e = p(G, this, Po).call(this, "Off", "textTrack", void 0);
3107
- m(wo, this).appendChild(e), m(So, this).push({
3091
+ function jo() {
3092
+ m(Co, this).innerHTML = "", h(xo, this, []);
3093
+ let e = p(G, this, No).call(this, "Off", "textTrack", void 0);
3094
+ m(Co, this).appendChild(e), m(xo, this).push({
3108
3095
  element: e,
3109
3096
  value: void 0
3110
- }), m(vo, this).forEach((e) => {
3111
- let t = p(G, this, Po).call(this, e, "textTrack", e);
3112
- m(wo, this).appendChild(t), m(So, this).push({
3097
+ }), m(_o, this).forEach((e) => {
3098
+ let t = p(G, this, No).call(this, e, "textTrack", e);
3099
+ m(Co, this).appendChild(t), m(xo, this).push({
3113
3100
  element: t,
3114
3101
  value: e
3115
3102
  });
3116
- }), p(G, this, Io).call(this);
3103
+ }), p(G, this, Fo).call(this);
3117
3104
  }
3118
- function No() {
3119
- m(Co, this).innerHTML = "", h(xo, this, []), m(_o, this).forEach((e) => {
3120
- let t = p(G, this, Po).call(this, e, "language", e);
3121
- m(Co, this).appendChild(t), m(xo, this).push({
3105
+ function Mo() {
3106
+ m(So, this).innerHTML = "", h(bo, this, []), m(go, this).forEach((e) => {
3107
+ let t = p(G, this, No).call(this, e, "language", e);
3108
+ m(So, this).appendChild(t), m(bo, this).push({
3122
3109
  element: t,
3123
3110
  value: e
3124
3111
  });
3125
- }), p(G, this, Fo).call(this);
3112
+ }), p(G, this, Po).call(this);
3126
3113
  }
3127
- function Po(e, t, n) {
3114
+ function No(e, t, n) {
3128
3115
  let r = document.createElement("div");
3129
- return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => p(G, this, Lo).call(this, n, t)), r;
3116
+ return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => p(G, this, Io).call(this, n, t)), r;
3117
+ }
3118
+ function Po() {
3119
+ m(Eo, this) && (m(Eo, this).removeAttribute("aria-selected"), m(Eo, this).tabIndex = -1);
3120
+ let e = m(bo, this).find((e) => e.value === m(vo, this));
3121
+ e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, h(Eo, this, e.element));
3130
3122
  }
3131
3123
  function Fo() {
3132
3124
  m(Do, this) && (m(Do, this).removeAttribute("aria-selected"), m(Do, this).tabIndex = -1);
3133
3125
  let e = m(xo, this).find((e) => e.value === m(yo, this));
3134
- e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, h(Do, this, e.element));
3135
- }
3136
- function Io() {
3137
- m(Oo, this) && (m(Oo, this).removeAttribute("aria-selected"), m(Oo, this).tabIndex = -1);
3138
- let e = m(So, this).find((e) => e.value === m(bo, this));
3139
- if (e) e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, h(Oo, this, e.element);
3126
+ if (e) e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, h(Do, this, e.element);
3140
3127
  else {
3141
- let e = m(So, this).find((e) => e.value === void 0);
3142
- e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, h(Oo, this, e.element));
3128
+ let e = m(xo, this).find((e) => e.value === void 0);
3129
+ e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, h(Do, this, e.element));
3143
3130
  }
3144
3131
  }
3145
- function Lo(e, t) {
3132
+ function Io(e, t) {
3146
3133
  this.dispatchEvent(new Event("change", {
3147
3134
  bubbles: !0,
3148
3135
  composed: !0
@@ -3154,36 +3141,36 @@ function Lo(e, t) {
3154
3141
  detail: e
3155
3142
  }));
3156
3143
  }
3157
- function Ro(e) {
3144
+ function Lo(e) {
3158
3145
  let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
3159
3146
  if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
3160
3147
  var a;
3161
- (a = m(Eo, this)) == null || a.hide();
3148
+ (a = m(To, this)) == null || a.hide();
3162
3149
  } else if (t === "Enter" || t === " ") {
3163
3150
  var o;
3164
- (o = p(G, this, Vo).call(this)) == null || (o = o.element) == null || o.click();
3165
- } else p(G, this, zo).call(this, e);
3151
+ (o = p(G, this, Bo).call(this)) == null || (o = o.element) == null || o.click();
3152
+ } else p(G, this, Ro).call(this, e);
3166
3153
  }
3167
- function zo(e) {
3154
+ function Ro(e) {
3168
3155
  var t;
3169
- let { key: n } = e, r = [...m(xo, this), ...m(So, this)], i = (t = p(G, this, Vo).call(this)) == null ? r[0] : t;
3156
+ let { key: n } = e, r = [...m(bo, this), ...m(xo, this)], i = (t = p(G, this, Bo).call(this)) == null ? r[0] : t;
3170
3157
  if (!i) return;
3171
3158
  let a = r.indexOf(i), o = Math.max(0, a);
3172
- n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = p(G, this, Bo).call(this, a, "left") : n === "ArrowRight" ? o = p(G, this, Bo).call(this, a, "right") : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
3159
+ n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = p(G, this, zo).call(this, a, "left") : n === "ArrowRight" ? o = p(G, this, zo).call(this, a, "right") : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
3173
3160
  let s = r[o];
3174
- s && (p(G, this, Ho).call(this, s.value), s.element.focus());
3161
+ s && (p(G, this, Vo).call(this, s.value), s.element.focus());
3175
3162
  }
3176
- function Bo(e, t) {
3177
- let n = m(xo, this).length, r = m(So, this).length;
3163
+ function zo(e, t) {
3164
+ let n = m(bo, this).length, r = m(xo, this).length;
3178
3165
  return t === "left" ? e < n ? n + r - 1 : e - n - 1 : e >= n ? 0 : e + n;
3179
3166
  }
3180
- function Vo() {
3181
- return [...m(xo, this), ...m(So, this)].find((e) => e.element.tabIndex === 0);
3167
+ function Bo() {
3168
+ return [...m(bo, this), ...m(xo, this)].find((e) => e.element.tabIndex === 0);
3182
3169
  }
3183
- function Ho(e) {
3184
- for (let t of [...m(xo, this), ...m(So, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
3170
+ function Vo(e) {
3171
+ for (let t of [...m(bo, this), ...m(xo, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
3185
3172
  }
3186
- e(ko, "observedAttributes", [
3173
+ e(Oo, "observedAttributes", [
3187
3174
  _.LANGUAGES,
3188
3175
  _.TEXT_TRACKS,
3189
3176
  _.LANGUAGE,
@@ -3191,12 +3178,12 @@ e(ko, "observedAttributes", [
3191
3178
  ]);
3192
3179
  //#endregion
3193
3180
  //#region ../../libs/player-next/src/components/LiveButton.ts
3194
- var Uo, Wo = document.createElement("template");
3195
- Wo.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
3196
- var Go = class extends S {
3181
+ var Ho, Uo = document.createElement("template");
3182
+ Uo.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
3183
+ var Wo = class extends S {
3197
3184
  constructor() {
3198
3185
  var e;
3199
- super(), (e = this.shadowRoot) == null || e.appendChild(Wo.content.cloneNode(!0));
3186
+ super(), (e = this.shadowRoot) == null || e.appendChild(Uo.content.cloneNode(!0));
3200
3187
  }
3201
3188
  connectedCallback() {
3202
3189
  super.connectedCallback(), this.updateState();
@@ -3227,15 +3214,15 @@ var Go = class extends S {
3227
3214
  }));
3228
3215
  }
3229
3216
  };
3230
- Uo = Go, e(Go, "observedAttributes", [
3231
- ...b(Uo, "observedAttributes", Uo),
3217
+ Ho = Wo, e(Wo, "observedAttributes", [
3218
+ ...b(Ho, "observedAttributes", Ho),
3232
3219
  _.TIMESHIFT_POSITION,
3233
3220
  _.DURATION
3234
3221
  ]);
3235
3222
  //#endregion
3236
3223
  //#region ../../libs/player-next/src/components/MuteButton.ts
3237
- var Ko, qo = document.createElement("template");
3238
- qo.innerHTML = `
3224
+ var Go, Ko = document.createElement("template");
3225
+ Ko.innerHTML = `
3239
3226
  <style>
3240
3227
  :host {
3241
3228
  display: var(--mute-button-display);
@@ -3263,10 +3250,10 @@ qo.innerHTML = `
3263
3250
  </slot>
3264
3251
  </slot>
3265
3252
  `;
3266
- var Jo = class extends S {
3253
+ var qo = class extends S {
3267
3254
  constructor() {
3268
3255
  var e;
3269
- super(), (e = this.shadowRoot) == null || e.appendChild(qo.content.cloneNode(!0));
3256
+ super(), (e = this.shadowRoot) == null || e.appendChild(Ko.content.cloneNode(!0));
3270
3257
  }
3271
3258
  connectedCallback() {
3272
3259
  super.connectedCallback(), this.setAttribute("aria-label", this.muted ? "UnMute" : "Mute");
@@ -3291,11 +3278,11 @@ var Jo = class extends S {
3291
3278
  }));
3292
3279
  }
3293
3280
  };
3294
- Ko = Jo, e(Jo, "observedAttributes", [...b(Ko, "observedAttributes", Ko), _.MUTED]);
3281
+ Go = qo, e(qo, "observedAttributes", [...b(Go, "observedAttributes", Go), _.MUTED]);
3295
3282
  //#endregion
3296
3283
  //#region ../../libs/player-next/src/components/PictureInPictureButton.ts
3297
- var Yo, Xo = document.createElement("template");
3298
- Xo.innerHTML = `
3284
+ var Jo, Yo = document.createElement("template");
3285
+ Yo.innerHTML = `
3299
3286
  <style>
3300
3287
  :host {
3301
3288
  display: var(--pip-button-display);
@@ -3309,10 +3296,10 @@ Xo.innerHTML = `
3309
3296
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 4a3 3 0 0 1 3 3v4a1 1 0 0 1 -2 0v-4a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1v10a1 1 0 0 0 1 1h6a1 1 0 0 1 0 2h-6a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3z" /><path d="M20 13a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-3a2 2 0 0 1 2 -2z" /></svg>
3310
3297
  </slot>
3311
3298
  `;
3312
- var Zo = class extends S {
3299
+ var Xo = class extends S {
3313
3300
  constructor() {
3314
3301
  var e;
3315
- super(), (e = this.shadowRoot) == null || e.appendChild(Xo.content.cloneNode(!0));
3302
+ super(), (e = this.shadowRoot) == null || e.appendChild(Yo.content.cloneNode(!0));
3316
3303
  }
3317
3304
  connectedCallback() {
3318
3305
  super.connectedCallback(), this.setAttribute("aria-label", this.isPictureInPictureActive ? "Exit picture in picture" : "Enter picture in picture");
@@ -3337,15 +3324,15 @@ var Zo = class extends S {
3337
3324
  }));
3338
3325
  }
3339
3326
  };
3340
- Yo = Zo, e(Zo, "observedAttributes", [
3341
- ...b(Yo, "observedAttributes", Yo),
3327
+ Jo = Xo, e(Xo, "observedAttributes", [
3328
+ ...b(Jo, "observedAttributes", Jo),
3342
3329
  _.IS_PIP,
3343
3330
  _.PIP_AVAILABLE
3344
3331
  ]);
3345
3332
  //#endregion
3346
3333
  //#region ../../libs/player-next/src/components/PlayButton.ts
3347
- var Qo, $o = document.createElement("template");
3348
- $o.innerHTML = `
3334
+ var Zo, Qo = document.createElement("template");
3335
+ Qo.innerHTML = `
3349
3336
  <style>
3350
3337
  :host {
3351
3338
  display: var(--play-button-display);
@@ -3369,10 +3356,10 @@ $o.innerHTML = `
3369
3356
  </slot>
3370
3357
  </slot>
3371
3358
  `;
3372
- var es = class extends S {
3359
+ var $o = class extends S {
3373
3360
  constructor() {
3374
3361
  var e;
3375
- super(), (e = this.shadowRoot) == null || e.appendChild($o.content.cloneNode(!0));
3362
+ super(), (e = this.shadowRoot) == null || e.appendChild(Qo.content.cloneNode(!0));
3376
3363
  }
3377
3364
  connectedCallback() {
3378
3365
  super.connectedCallback(), this.setAttribute("aria-label", this.paused ? "Play" : "Pause");
@@ -3397,7 +3384,7 @@ var es = class extends S {
3397
3384
  }));
3398
3385
  }
3399
3386
  };
3400
- Qo = es, e(es, "observedAttributes", [...b(Qo, "observedAttributes", Qo), _.PAUSED]);
3387
+ Zo = $o, e($o, "observedAttributes", [...b(Zo, "observedAttributes", Zo), _.PAUSED]);
3401
3388
  //#endregion
3402
3389
  //#region ../../libs/player-next/src/PlayerAttributes.ts
3403
3390
  var K = {
@@ -3406,55 +3393,55 @@ var K = {
3406
3393
  ADVANCED_RENDITION_MENU_ENABLED: "advanced-rendition-menu-enabled",
3407
3394
  REFRESH_POSTER_ENABLED: "refresh-poster-enabled",
3408
3395
  STREAM_POLL_ENABLED: "stream-poll-enabled"
3409
- }, ts = Object.values(K), ns = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakMap(), is = /* @__PURE__ */ new WeakMap(), as = /* @__PURE__ */ new WeakMap(), os = /* @__PURE__ */ new WeakMap(), ss = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakSet(), us = class extends pe {
3396
+ }, es = Object.values(K), ts = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakMap(), is = /* @__PURE__ */ new WeakMap(), as = /* @__PURE__ */ new WeakMap(), os = /* @__PURE__ */ new WeakMap(), ss = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakSet(), ls = class extends pe {
3410
3397
  constructor(e) {
3411
- super(), g(this, ls), f(this, ns, void 0), f(this, rs, void 0), f(this, is, !1), f(this, as, !1), f(this, os, !0), f(this, ss, null), f(this, cs, null), h(rs, this, e), h(ns, this, new fe({
3398
+ super(), g(this, cs), f(this, ts, void 0), f(this, ns, void 0), f(this, rs, !1), f(this, is, !1), f(this, as, !0), f(this, os, null), f(this, ss, null), h(ns, this, e), h(ts, this, new fe({
3412
3399
  publicEndpoint: e.url,
3413
3400
  tokenFactory: () => e.authenticationToken
3414
3401
  }));
3415
3402
  }
3416
3403
  start(e = 5e3) {
3417
- m(cs, this) && clearInterval(m(cs, this)), h(is, this, !1), h(as, this, !1), p(ls, this, ms).call(this), p(ls, this, ds).call(this), h(cs, this, window.setInterval(() => {
3418
- !m(as, this) && !m(rs, this).infiniteReconnect && !m(ss, this) && m(os, this) && h(ss, this, window.setTimeout(() => p(ls, this, fs).call(this), 300 * 1e3)), !m(as, this) && m(os, this) && p(ls, this, ds).call(this);
3404
+ m(ss, this) && clearInterval(m(ss, this)), h(rs, this, !1), h(is, this, !1), p(cs, this, ps).call(this), p(cs, this, us).call(this), h(ss, this, window.setInterval(() => {
3405
+ !m(is, this) && !m(ns, this).infiniteReconnect && !m(os, this) && m(as, this) && h(os, this, window.setTimeout(() => p(cs, this, ds).call(this), 300 * 1e3)), !m(is, this) && m(as, this) && p(cs, this, us).call(this);
3419
3406
  }, e));
3420
3407
  }
3421
3408
  stop() {
3422
- p(ls, this, ps).call(this), m(cs, this) && (window.clearInterval(m(cs, this)), h(cs, this, null));
3409
+ p(cs, this, fs).call(this), m(ss, this) && (window.clearInterval(m(ss, this)), h(ss, this, null));
3423
3410
  }
3424
3411
  };
3425
- function ds() {
3412
+ function us() {
3426
3413
  var e = this;
3427
3414
  return t(function* () {
3428
- if (m(is, e)) return;
3429
- h(is, e, !0);
3415
+ if (m(rs, e)) return;
3416
+ h(rs, e, !0);
3430
3417
  let t = "Stream is offline", n = "Please stand by";
3431
3418
  try {
3432
- let t = yield m(ns, e).getChannel(m(rs, e).channelId);
3419
+ let t = yield m(ts, e).getChannel(m(ns, e).channelId);
3433
3420
  if (t.isLive) {
3434
- h(as, e, !0), p(ls, e, ms).call(e), e.emit("live", t), h(is, e, !1);
3421
+ h(is, e, !0), p(cs, e, ps).call(e), e.emit("live", t), h(rs, e, !1);
3435
3422
  return;
3436
3423
  }
3437
3424
  } catch (e) {
3438
3425
  de(e) && (e.status === 403 || e.status === 401) && (t = "Forbidden", n = "You do not have permission to view this stream");
3439
3426
  }
3440
- m(os, e) && e.emit("error", {
3427
+ m(as, e) && e.emit("error", {
3441
3428
  title: t,
3442
3429
  message: n
3443
- }), h(is, e, !1);
3430
+ }), h(rs, e, !1);
3444
3431
  })();
3445
3432
  }
3433
+ function ds() {
3434
+ this.stop(), h(as, this, !1), this.emit("timeout");
3435
+ }
3446
3436
  function fs() {
3447
- this.stop(), h(os, this, !1), this.emit("timeout");
3437
+ m(os, this) && (window.clearTimeout(m(os, this)), h(os, this, null));
3448
3438
  }
3449
3439
  function ps() {
3450
- m(ss, this) && (window.clearTimeout(m(ss, this)), h(ss, this, null));
3451
- }
3452
- function ms() {
3453
- p(ls, this, ps).call(this), h(os, this, !0);
3440
+ p(cs, this, fs).call(this), h(as, this, !0);
3454
3441
  }
3455
3442
  //#endregion
3456
3443
  //#region ../../libs/player-next/src/utils/browser.ts
3457
- var hs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, gs = navigator.userAgent.toLowerCase(), _s = hs.test(gs), vs = (e) => va.observedAttributes.includes(e), ys = `
3444
+ var ms = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, hs = navigator.userAgent.toLowerCase(), gs = ms.test(hs), _s = (e) => _a.observedAttributes.includes(e), vs = `
3458
3445
  <style>
3459
3446
  :host {
3460
3447
  container-type: inline-size;
@@ -3464,7 +3451,7 @@ var hs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3464
3451
  display: flex;
3465
3452
  justify-content: center;
3466
3453
 
3467
- --vindral-volume-range-display: ${_s ? "none" : "flex"};
3454
+ --vindral-volume-range-display: ${gs ? "none" : "flex"};
3468
3455
  --vindral-airplay-button-display: none;
3469
3456
  --vindral-play-overlay-display: none;
3470
3457
  --vindral-grid-item-offline-display: none;
@@ -3545,10 +3532,10 @@ var hs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3545
3532
  --vindral-subtitle-offset: -48px;
3546
3533
  }
3547
3534
  </style>
3548
- `, bs = (e) => {
3535
+ `, ys = (e) => {
3549
3536
  let t = e ? "vindral-advanced-rendition-menu" : "vindral-rendition-levels-menu";
3550
3537
  return `
3551
- ${ys}
3538
+ ${vs}
3552
3539
 
3553
3540
  <vindral-controller>
3554
3541
  <vindral-control-bar slot="top-bar">
@@ -3586,8 +3573,8 @@ var hs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3586
3573
  </vindral-center-overlay>
3587
3574
  </vindral-controller>
3588
3575
  `;
3589
- }, xs = `
3590
- ${ys}
3576
+ }, bs = `
3577
+ ${vs}
3591
3578
 
3592
3579
  <style>
3593
3580
  #control-bar {
@@ -3611,97 +3598,97 @@ var hs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3611
3598
  <vindral-play-overlay id="play-overlay" hidden></vindral-play-overlay>
3612
3599
  </vindral-center-overlay>
3613
3600
  </vindral-controller>
3614
- `, Ss = document.createElement("template"), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Ts = /* @__PURE__ */ new WeakMap(), Es = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), As = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Ns = class extends HTMLElement {
3601
+ `, xs = document.createElement("template"), Ss = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Ts = /* @__PURE__ */ new WeakMap(), Es = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakSet(), As = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Ns = class extends HTMLElement {
3615
3602
  constructor() {
3616
- super(), g(this, Y), f(this, q, void 0), f(this, J, void 0), f(this, Cs, void 0), f(this, ws, void 0), f(this, Ts, void 0), f(this, Es, void 0), f(this, Ds, /* @__PURE__ */ new Set()), f(this, Os, () => {
3603
+ super(), g(this, J), f(this, Ss, void 0), f(this, q, void 0), f(this, Cs, void 0), f(this, ws, void 0), f(this, Ts, void 0), f(this, Es, void 0), f(this, Ds, /* @__PURE__ */ new Set()), f(this, Os, () => {
3617
3604
  Array.from(this.attributes).forEach((e) => {
3618
3605
  m(ks, this).call(this, e.name, e.value);
3619
3606
  });
3620
3607
  }), f(this, ks, (e, t) => {
3621
- vs(e) && (y(t) ? m(J, this).setAttribute(e, t) : m(J, this).removeAttribute(e));
3608
+ _s(e) && (y(t) ? m(q, this).setAttribute(e, t) : m(q, this).removeAttribute(e));
3622
3609
  }), f(this, As, () => {
3623
3610
  Array.from(this.children).forEach((e) => {
3624
3611
  m(Ds, this).add(e);
3625
3612
  });
3626
3613
  }), f(this, js, () => {
3627
- let e = m(J, this).instance;
3614
+ let e = m(q, this).instance;
3628
3615
  e && (e.on("is live", (e) => {
3629
- e ? (this.removeAttribute(K.OFFLINE), p(Y, this, zs).call(this)) : (this.setAttribute(K.OFFLINE, ""), p(Y, this, Rs).call(this, "Stream is offline", "Please stand by"));
3616
+ e ? (this.removeAttribute(K.OFFLINE), p(J, this, zs).call(this)) : (this.setAttribute(K.OFFLINE, ""), p(J, this, Rs).call(this, "Stream is offline", "Please stand by"));
3630
3617
  }), e.on("channels", (e) => {
3631
- let t = m(J, this).getAttribute("channel-id"), n = e.find((e) => e.channelId === t);
3632
- n && p(Y, this, Ls).call(this, n);
3618
+ let t = m(q, this).getAttribute("channel-id"), n = e.find((e) => e.channelId === t);
3619
+ n && p(J, this, Ls).call(this, n);
3633
3620
  }), e.on("channel switch", ({ channelId: t }) => {
3634
3621
  let n = e.channels.find((e) => e.channelId === t);
3635
- n && p(Y, this, Ls).call(this, n);
3622
+ n && p(J, this, Ls).call(this, n);
3636
3623
  }), e.on("error", (e) => {
3637
3624
  if (e.code() === "connection_failed") {
3638
- p(Y, this, Rs).call(this, "Stream is offline", "Please stand by");
3625
+ p(J, this, Rs).call(this, "Stream is offline", "Please stand by");
3639
3626
  return;
3640
3627
  }
3641
- e.isFatal() && (e.code() === "access_forbidden" ? p(Y, this, Rs).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? p(Y, this, Rs).call(this, "Stream is offline", "Please stand by") : p(Y, this, Rs).call(this, "An error occurred", e.message), m(ws, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), m(J, this).dispatchEvent(new CustomEvent(v.EXIT_FULLSCREEN)), m(J, this).dispatchEvent(new CustomEvent(v.EXIT_PIP)));
3628
+ e.isFatal() && (e.code() === "access_forbidden" ? p(J, this, Rs).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? p(J, this, Rs).call(this, "Stream is offline", "Please stand by") : p(J, this, Rs).call(this, "An error occurred", e.message), m(ws, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), m(q, this).dispatchEvent(new CustomEvent(v.EXIT_FULLSCREEN)), m(q, this).dispatchEvent(new CustomEvent(v.EXIT_PIP)));
3642
3629
  }));
3643
3630
  }), f(this, Ms, () => {
3644
- m(J, this).connect(), m(ws, this).setAttribute("hidden", ""), p(Y, this, zs).call(this), m(J, this).focus();
3645
- }), h(q, this, this.attachShadow({ mode: "open" })), p(Y, this, Fs).call(this), h(J, this, m(q, this).querySelector("vindral-controller")), h(Cs, this, m(q, this).querySelector("#vindral-message")), h(ws, this, m(q, this).querySelector("#play-overlay")), h(Ts, this, m(q, this).querySelector("#center-overlay"));
3631
+ m(q, this).connect(), m(ws, this).setAttribute("hidden", ""), p(J, this, zs).call(this), m(q, this).focus();
3632
+ }), h(Ss, this, this.attachShadow({ mode: "open" })), p(J, this, Fs).call(this), h(q, this, m(Ss, this).querySelector("vindral-controller")), h(Cs, this, m(Ss, this).querySelector("#vindral-message")), h(ws, this, m(Ss, this).querySelector("#play-overlay")), h(Ts, this, m(Ss, this).querySelector("#center-overlay"));
3646
3633
  }
3647
3634
  connectedCallback() {
3648
- this.setAttribute(K.OFFLINE, ""), m(J, this).addEventListener("vindral-instance-ready", m(js, this)), p(Y, this, Is).call(this);
3635
+ this.setAttribute(K.OFFLINE, ""), m(q, this).addEventListener("vindral-instance-ready", m(js, this)), p(J, this, Is).call(this);
3649
3636
  }
3650
3637
  disconnectedCallback() {
3651
3638
  var e;
3652
- m(J, this).removeEventListener("vindral-instance-ready", m(js, this)), m(ws, this).removeEventListener("click", m(Ms, this)), (e = m(Es, this)) == null || e.stop();
3639
+ m(q, this).removeEventListener("vindral-instance-ready", m(js, this)), m(ws, this).removeEventListener("click", m(Ms, this)), (e = m(Es, this)) == null || e.stop();
3653
3640
  }
3654
3641
  attributeChangedCallback(e, t, n) {
3655
- if (t !== n) if (e === _.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) p(Y, this, Fs).call(this);
3642
+ if (t !== n) if (e === _.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) p(J, this, Fs).call(this);
3656
3643
  else if (e === K.REFRESH_POSTER_ENABLED) {
3657
- let e = m(q, this).querySelector("vindral-poster-overlay");
3644
+ let e = m(Ss, this).querySelector("vindral-poster-overlay");
3658
3645
  e && (e.disabled = x(this.getAttribute(K.REFRESH_POSTER_ENABLED), !1) === !1);
3659
3646
  } else m(ks, this).call(this, e, n);
3660
3647
  }
3661
3648
  get instance() {
3662
- return m(J, this).instance;
3649
+ return m(q, this).instance;
3663
3650
  }
3664
3651
  get airPlay() {
3665
- return m(J, this).airPlay;
3652
+ return m(q, this).airPlay;
3666
3653
  }
3667
3654
  get timelineMarkers() {
3668
- return m(J, this).timelineMarkers;
3655
+ return m(q, this).timelineMarkers;
3669
3656
  }
3670
3657
  set timelineMarkers(e) {
3671
- m(J, this).timelineMarkers = e;
3658
+ m(q, this).timelineMarkers = e;
3672
3659
  }
3673
3660
  };
3674
3661
  function Ps() {
3675
3662
  let e = _e(this.getAttribute(_.MEDIA)), t = x(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
3676
- return e === "audio" ? xs : bs(t);
3663
+ return e === "audio" ? bs : ys(t);
3677
3664
  }
3678
3665
  function Fs() {
3679
- let e = m(q, this).hasChildNodes(), t = e ? m(J, this) : void 0, n = e ? m(ws, this) : void 0;
3680
- this.isConnected && t && t.removeEventListener("vindral-instance-ready", m(js, this)), this.isConnected && n && m(Es, this) && n.removeEventListener("click", m(Ms, this)), Ss.innerHTML = p(Y, this, Ps).call(this);
3681
- let r = Ss.content.cloneNode(!0);
3682
- h(J, this, r.querySelector("vindral-controller")), h(Cs, this, r.querySelector("#vindral-message")), h(ws, this, r.querySelector("#play-overlay")), h(Ts, this, r.querySelector("#center-overlay")), m(As, this).call(this), m(Ds, this).forEach((e) => {
3683
- m(J, this).appendChild(e);
3684
- }), m(Os, this).call(this), m(q, this).innerHTML = "", m(q, this).appendChild(r), this.isConnected && (m(J, this).addEventListener("vindral-instance-ready", m(js, this)), m(Es, this) && m(ws, this).addEventListener("click", m(Ms, this)));
3666
+ let e = m(Ss, this).hasChildNodes(), t = e ? m(q, this) : void 0, n = e ? m(ws, this) : void 0;
3667
+ this.isConnected && t && t.removeEventListener("vindral-instance-ready", m(js, this)), this.isConnected && n && m(Es, this) && n.removeEventListener("click", m(Ms, this)), xs.innerHTML = p(J, this, Ps).call(this);
3668
+ let r = xs.content.cloneNode(!0);
3669
+ h(q, this, r.querySelector("vindral-controller")), h(Cs, this, r.querySelector("#vindral-message")), h(ws, this, r.querySelector("#play-overlay")), h(Ts, this, r.querySelector("#center-overlay")), m(As, this).call(this), m(Ds, this).forEach((e) => {
3670
+ m(q, this).appendChild(e);
3671
+ }), m(Os, this).call(this), m(Ss, this).innerHTML = "", m(Ss, this).appendChild(r), this.isConnected && (m(q, this).addEventListener("vindral-instance-ready", m(js, this)), m(Es, this) && m(ws, this).addEventListener("click", m(Ms, this)));
3685
3672
  }
3686
3673
  function Is() {
3687
3674
  var e;
3688
3675
  if (x(this.getAttribute(K.STREAM_POLL_ENABLED), !0) === !1) return;
3689
3676
  let t = this.getAttribute("url"), n = this.getAttribute("channel-id"), r = (e = this.getAttribute("authentication-token")) == null ? void 0 : e, i = this.hasAttribute("infinite-reconnect");
3690
3677
  if (!t || !n) {
3691
- this.setAttribute(K.OFFLINE, ""), p(Y, this, Rs).call(this, "Invalid options", "Please enter at least a channel id and url to start the stream");
3678
+ this.setAttribute(K.OFFLINE, ""), p(J, this, Rs).call(this, "Invalid options", "Please enter at least a channel id and url to start the stream");
3692
3679
  return;
3693
3680
  }
3694
- h(Es, this, new us({
3681
+ h(Es, this, new ls({
3695
3682
  url: t,
3696
3683
  channelId: n,
3697
3684
  authenticationToken: r,
3698
3685
  infiniteReconnect: i
3699
3686
  })), m(Es, this).on("live", (e) => {
3700
- m(J, this).connect(), this.removeAttribute("offline"), p(Y, this, zs).call(this), p(Y, this, Ls).call(this, e);
3687
+ m(q, this).connect(), this.removeAttribute("offline"), p(J, this, zs).call(this), p(J, this, Ls).call(this, e);
3701
3688
  }), m(Es, this).on("timeout", () => {
3702
- p(Y, this, zs).call(this), m(ws, this).removeAttribute("hidden");
3689
+ p(J, this, zs).call(this), m(ws, this).removeAttribute("hidden");
3703
3690
  }), m(Es, this).on("error", (e) => {
3704
- this.setAttribute(K.OFFLINE, ""), p(Y, this, Rs).call(this, e.title, e.message);
3691
+ this.setAttribute(K.OFFLINE, ""), p(J, this, Rs).call(this, e.title, e.message);
3705
3692
  }), m(ws, this).addEventListener("click", m(Ms, this)), this.hasAttribute("paused") && m(Es, this).start();
3706
3693
  }
3707
3694
  function Ls(e) {
@@ -3726,7 +3713,7 @@ function Rs(e, t) {
3726
3713
  function zs() {
3727
3714
  m(Cs, this).setAttribute("hidden", ""), m(Ts, this).removeAttribute("backdrop");
3728
3715
  }
3729
- e(Ns, "observedAttributes", [...va.observedAttributes, ...ts]);
3716
+ e(Ns, "observedAttributes", [..._a.observedAttributes, ...es]);
3730
3717
  //#endregion
3731
3718
  //#region ../../libs/player-next/src/components/PosterOverlay.ts
3732
3719
  var Bs = document.createElement("template");
@@ -3853,12 +3840,12 @@ e(nc, "observedAttributes", [...b(Qs, "observedAttributes", Qs), _.RENDITION_LEV
3853
3840
  //#region ../../libs/player-next/src/components/RenditionLevelsMenuList.ts
3854
3841
  var ic = document.createElement("template");
3855
3842
  ic.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 140px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .menu {\n display: grid;\n gap: var(--padding-1);\n }\n\n [role=\"menuitem\"] {\n flex: 1;\n position: relative;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 44px;\n padding: 0 var(--padding-5);\n border-radius: 4px;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n white-space: nowrap;\n text-align: left;\n }\n\n [role=\"menuitem\"]:hover {\n background: var(--bg-component-hover);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"] {\n background: var(--bg-component-active);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"]::before {\n content: url(\"data:image/svg+xml,%0A%20%20%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2078.369%2078.369%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20d%3D%22M78.049%2019.015%2029.458%2067.606a1.094%201.094%200%200%201-1.548%200L.32%2040.015a1.094%201.094%200%200%201%200-1.547l6.704-6.704a1.095%201.095%200%200%201%201.548%200l20.113%2020.112%2041.113-41.113a1.095%201.095%200%200%201%201.548%200l6.703%206.704a1.094%201.094%200%200%201%200%201.548z%22%2F%3E%3C%2Fsvg%3E%0A\");\n position: absolute;\n left: calc(var(--padding-3) - var(--padding-1));\n top: calc(50% - 8px);\n }\n\n [role=\"menuitem\"]:focus-visible {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n .menu-item-subtitle {\n font-size: 11px;\n opacity: 0.6;\n }\n\n .heading {\n text-transform: uppercase;\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-3);\n font-size: 11px;\n font-weight: bold;\n }\n </style>\n\n <slot>\n <div class=\"heading\">Max quality</div>\n <div class=\"menu\"></div>\n </slot>\n";
3856
- var ac = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), sc = /* @__PURE__ */ new WeakMap(), cc = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ new WeakMap(), uc = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), dc = class extends HTMLElement {
3843
+ var ac = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), sc = /* @__PURE__ */ new WeakMap(), cc = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ new WeakMap(), uc = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), dc = class extends HTMLElement {
3857
3844
  constructor() {
3858
- super(), g(this, X), f(this, ac, []), f(this, oc, 2 ** 53 - 1), f(this, sc, null), f(this, cc, []), f(this, lc, null), f(this, uc, null), e(this, "handleEvent", (e) => {
3845
+ super(), g(this, Y), f(this, ac, []), f(this, oc, 2 ** 53 - 1), f(this, sc, null), f(this, cc, []), f(this, lc, null), f(this, uc, null), e(this, "handleEvent", (e) => {
3859
3846
  switch (e.type) {
3860
3847
  case "keydown":
3861
- p(X, this, _c).call(this, e);
3848
+ p(Y, this, _c).call(this, e);
3862
3849
  break;
3863
3850
  }
3864
3851
  }), this.attachShadow({ mode: "open" }).appendChild(ic.content.cloneNode(!0));
@@ -3867,7 +3854,7 @@ var ac = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), sc =
3867
3854
  let e = this.getRootNode();
3868
3855
  if (e instanceof ShadowRoot) {
3869
3856
  var t;
3870
- h(lc, this, e.host.closest("vindral-controller")), (t = m(lc, this)) == null || t.connectListener(this), p(X, this, fc).call(this), p(X, this, pc).call(this), h(uc, this, e.host), this.addEventListener("keydown", this);
3857
+ h(lc, this, e.host.closest("vindral-controller")), (t = m(lc, this)) == null || t.connectListener(this), p(Y, this, fc).call(this), p(Y, this, pc).call(this), h(uc, this, e.host), this.addEventListener("keydown", this);
3871
3858
  }
3872
3859
  }
3873
3860
  disconnectedCallback() {
@@ -3878,10 +3865,10 @@ var ac = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), sc =
3878
3865
  t !== n && (e === _.RENDITION_LEVELS && n && (this.list = JSON.parse(n)), e === _.MAX_VIDEO_BITRATE && n && (this.maxVideoBitrate = n ? parseInt(n, 10) : 2 ** 53 - 1));
3879
3866
  }
3880
3867
  set list(e) {
3881
- h(ac, this, e), p(X, this, pc).call(this);
3868
+ h(ac, this, e), p(Y, this, pc).call(this);
3882
3869
  }
3883
3870
  set maxVideoBitrate(e) {
3884
- h(oc, this, e), p(X, this, hc).call(this);
3871
+ h(oc, this, e), p(Y, this, hc).call(this);
3885
3872
  }
3886
3873
  get keysUsed() {
3887
3874
  return [
@@ -3923,14 +3910,14 @@ function pc() {
3923
3910
  var n, r, i, a, o, s, c, l;
3924
3911
  let u = document.createElement("div");
3925
3912
  u.setAttribute("role", "menuitem"), u.setAttribute("value", String((n = e.video) == null ? void 0 : n.height)), u.classList.add("menu-item"), u.tabIndex = -1;
3926
- let ee = p(X, this, mc).call(this, (r = e.video) == null ? void 0 : r.frameRate);
3913
+ let ee = p(Y, this, mc).call(this, (r = e.video) == null ? void 0 : r.frameRate);
3927
3914
  u.textContent = e.video ? Ee(e.video) : "";
3928
3915
  let d = document.createElement("span");
3929
- d.classList.add("menu-item-subtitle"), d.textContent = `${Te(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${ee}p`, u.appendChild(d), u.addEventListener("click", () => p(X, this, gc).call(this, e)), m(cc, this).push({
3916
+ d.classList.add("menu-item-subtitle"), d.textContent = `${Te(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${ee}p`, u.appendChild(d), u.addEventListener("click", () => p(Y, this, gc).call(this, e)), m(cc, this).push({
3930
3917
  el: u,
3931
3918
  id: (c = (l = e.video) == null ? void 0 : l.id) == null ? -1 : c
3932
3919
  }), t.appendChild(u);
3933
- }), p(X, this, hc).call(this));
3920
+ }), p(Y, this, hc).call(this));
3934
3921
  }
3935
3922
  function mc(e) {
3936
3923
  return e ? e[0] % e[1] === 0 ? (e[0] / e[1]).toString() : (e[0] / e[1]).toFixed(2) : "";
@@ -3969,17 +3956,17 @@ function _c(e) {
3969
3956
  (a = m(uc, this)) == null || a.hide();
3970
3957
  } else if (t === "Enter" || t === " ") {
3971
3958
  var o;
3972
- (o = p(X, this, yc).call(this)) == null || (o = o.el) == null || o.click();
3973
- } else p(X, this, vc).call(this, e);
3959
+ (o = p(Y, this, yc).call(this)) == null || (o = o.el) == null || o.click();
3960
+ } else p(Y, this, vc).call(this, e);
3974
3961
  }
3975
3962
  function vc(e) {
3976
3963
  var t;
3977
- let { key: n } = e, r = m(cc, this), i = (t = p(X, this, yc).call(this)) == null ? r[0] : t;
3964
+ let { key: n } = e, r = m(cc, this), i = (t = p(Y, this, yc).call(this)) == null ? r[0] : t;
3978
3965
  if (!i) return;
3979
3966
  let a = r.indexOf(i), o = Math.max(0, a);
3980
3967
  n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
3981
3968
  let s = r[o];
3982
- s && (p(X, this, bc).call(this, s.id), s.el.focus());
3969
+ s && (p(Y, this, bc).call(this, s.id), s.el.focus());
3983
3970
  }
3984
3971
  function yc() {
3985
3972
  return m(cc, this).find((e) => e.el.tabIndex === 0);
@@ -4059,71 +4046,71 @@ xc.innerHTML = `
4059
4046
  <div id="scroll-area"></div>
4060
4047
  <slot id="content"></slot>
4061
4048
  `;
4062
- var Sc = /* @__PURE__ */ new WeakMap(), Cc = /* @__PURE__ */ new WeakMap(), wc = /* @__PURE__ */ new WeakMap(), Tc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), Oc = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakSet(), kc = /* @__PURE__ */ new WeakMap(), Ac = class extends HTMLElement {
4049
+ var X = /* @__PURE__ */ new WeakMap(), Sc = /* @__PURE__ */ new WeakMap(), Cc = /* @__PURE__ */ new WeakMap(), wc = /* @__PURE__ */ new WeakMap(), Tc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakSet(), Oc = /* @__PURE__ */ new WeakMap(), kc = class extends HTMLElement {
4063
4050
  constructor() {
4064
- super(), g(this, Z), f(this, Sc, null), f(this, Cc, null), f(this, wc, !1), f(this, Tc, !1), f(this, Ec, !1), f(this, Dc, () => {
4051
+ super(), g(this, Z), f(this, X, null), f(this, Sc, null), f(this, Cc, !1), f(this, wc, !1), f(this, Tc, !1), f(this, Ec, () => {
4065
4052
  this.open && (this.open = !1);
4066
- }), f(this, Oc, null), e(this, "handleEvent", (e) => {
4053
+ }), f(this, Dc, null), e(this, "handleEvent", (e) => {
4067
4054
  switch (e.type) {
4068
4055
  case "touchstart":
4069
- p(Z, this, Mc).call(this, e);
4056
+ p(Z, this, jc).call(this, e);
4070
4057
  break;
4071
4058
  case "touchmove":
4072
- p(Z, this, Nc).call(this, e);
4059
+ p(Z, this, Mc).call(this, e);
4073
4060
  break;
4074
4061
  case "touchend":
4075
- p(Z, this, Pc).call(this, e);
4062
+ p(Z, this, Nc).call(this, e);
4076
4063
  break;
4077
4064
  }
4078
- }), f(this, kc, () => {
4079
- let e = m(Ec, this);
4065
+ }), f(this, Oc, () => {
4066
+ let e = m(Tc, this);
4080
4067
  if (this.scrollTop === 0) {
4081
- p(Z, this, Hc).call(this, e);
4068
+ p(Z, this, Vc).call(this, e);
4082
4069
  return;
4083
4070
  }
4084
- if (!e && !p(Z, this, Fc).call(this)) {
4085
- p(Z, this, Bc).call(this), p(Z, this, Hc).call(this);
4071
+ if (!e && !p(Z, this, Pc).call(this)) {
4072
+ p(Z, this, zc).call(this), p(Z, this, Vc).call(this);
4086
4073
  return;
4087
4074
  }
4088
- !this.visible && this.scrollTop > 0 && !m(wc, this) ? p(Z, this, Uc).call(this) : !m(wc, this) && p(Z, this, Lc).call(this) && (this.open || (this.open = !0), e && !this.hasAttribute("snap-touch") && this.setAttribute("snap-touch", ""));
4075
+ !this.visible && this.scrollTop > 0 && !m(Cc, this) ? p(Z, this, Hc).call(this) : !m(Cc, this) && p(Z, this, Ic).call(this) && (this.open || (this.open = !0), e && !this.hasAttribute("snap-touch") && this.setAttribute("snap-touch", ""));
4089
4076
  }), this.attachShadow({ mode: "open" }).appendChild(xc.content.cloneNode(!0));
4090
4077
  }
4091
4078
  connectedCallback() {
4092
4079
  let e = this.getRootNode();
4093
4080
  if (e instanceof Document || e instanceof ShadowRoot) {
4094
4081
  var t, n, r;
4095
- h(Sc, this, e.querySelector("vindral-controller")), (t = m(Sc, this)) == null || t.connectListener(this), h(Cc, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#scroll-area")), (r = m(Cc, this)) == null || r.addEventListener("click", m(Dc, this));
4082
+ h(X, this, e.querySelector("vindral-controller")), (t = m(X, this)) == null || t.connectListener(this), h(Sc, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#scroll-area")), (r = m(Sc, this)) == null || r.addEventListener("click", m(Ec, this));
4096
4083
  let s = this.hasAttribute("touch-enabled");
4097
- if (h(Ec, this, ce() && s), !m(Ec, this)) this.setAttribute("snap", "");
4084
+ if (h(Tc, this, ce() && s), !m(Tc, this)) this.setAttribute("snap", "");
4098
4085
  else {
4099
4086
  var i, a, o;
4100
- (i = m(Sc, this)) == null || i.addEventListener("touchstart", this, { passive: !0 }), (a = m(Sc, this)) == null || a.addEventListener("touchmove", this, { passive: !1 }), (o = m(Sc, this)) == null || o.addEventListener("touchend", this, { passive: !0 });
4087
+ (i = m(X, this)) == null || i.addEventListener("touchstart", this, { passive: !0 }), (a = m(X, this)) == null || a.addEventListener("touchmove", this, { passive: !1 }), (o = m(X, this)) == null || o.addEventListener("touchend", this, { passive: !0 });
4101
4088
  }
4102
- this.addEventListener("scroll", m(kc, this));
4089
+ this.addEventListener("scroll", m(Oc, this));
4103
4090
  }
4104
4091
  }
4105
4092
  disconnectedCallback() {
4106
4093
  var e, t, n, r, i;
4107
- (e = m(Cc, this)) == null || e.removeEventListener("click", m(Dc, this)), this.removeEventListener("scroll", m(kc, this)), (t = m(Sc, this)) == null || t.removeEventListener("touchstart", this), (n = m(Sc, this)) == null || n.removeEventListener("touchmove", this), (r = m(Sc, this)) == null || r.removeEventListener("touchend", this), (i = m(Sc, this)) == null || i.disconnectListener(this);
4094
+ (e = m(Sc, this)) == null || e.removeEventListener("click", m(Ec, this)), this.removeEventListener("scroll", m(Oc, this)), (t = m(X, this)) == null || t.removeEventListener("touchstart", this), (n = m(X, this)) == null || n.removeEventListener("touchmove", this), (r = m(X, this)) == null || r.removeEventListener("touchend", this), (i = m(X, this)) == null || i.disconnectListener(this);
4108
4095
  }
4109
4096
  attributeChangedCallback(e, t, n) {
4110
- if (t !== n && (e === _.USER_INTERACTING && n === null && p(Z, this, Ic).call(this) && setTimeout(() => {
4097
+ if (t !== n && (e === _.USER_INTERACTING && n === null && p(Z, this, Fc).call(this) && setTimeout(() => {
4111
4098
  this.open = !1;
4112
4099
  }, 300), e === "open")) if (n !== null) {
4113
4100
  var r;
4114
- h(wc, this, !1), this.scrollTop > 0 && p(Z, this, Uc).call(this), this.scrollTo({
4115
- top: (r = m(Cc, this)) == null ? void 0 : r.clientHeight,
4101
+ h(Cc, this, !1), this.scrollTop > 0 && p(Z, this, Hc).call(this), this.scrollTo({
4102
+ top: (r = m(Sc, this)) == null ? void 0 : r.clientHeight,
4116
4103
  behavior: "smooth"
4117
4104
  });
4118
- } else p(Z, this, Vc).call(this);
4105
+ } else p(Z, this, Bc).call(this);
4119
4106
  }
4120
4107
  set open(e) {
4121
4108
  if (e) {
4122
4109
  this.setAttribute("open", "");
4123
4110
  return;
4124
4111
  }
4125
- let t = this.hasAttribute("open"), n = this.visible || p(Z, this, Ic).call(this);
4126
- t ? this.removeAttribute("open") : n ? p(Z, this, Vc).call(this) : (h(wc, this, !1), this.removeAttribute("snap-touch"));
4112
+ let t = this.hasAttribute("open"), n = this.visible || p(Z, this, Fc).call(this);
4113
+ t ? this.removeAttribute("open") : n ? p(Z, this, Bc).call(this) : (h(Cc, this, !1), this.removeAttribute("snap-touch"));
4127
4114
  }
4128
4115
  get open() {
4129
4116
  return this.hasAttribute("open");
@@ -4135,125 +4122,125 @@ var Sc = /* @__PURE__ */ new WeakMap(), Cc = /* @__PURE__ */ new WeakMap(), wc =
4135
4122
  return this.hasAttribute("visible");
4136
4123
  }
4137
4124
  };
4138
- function jc() {
4139
- return p(Z, this, Fc).call(this) || p(Z, this, zc).call(this) || p(Z, this, Ic).call(this);
4125
+ function Ac() {
4126
+ return p(Z, this, Pc).call(this) || p(Z, this, Rc).call(this) || p(Z, this, Fc).call(this);
4140
4127
  }
4141
- function Mc(e) {
4128
+ function jc(e) {
4142
4129
  let t = e.touches[0];
4143
- t && (h(Tc, this, p(Z, this, jc).call(this)), m(Tc, this) && (h(wc, this, !1), h(Oc, this, t.clientY)));
4130
+ t && (h(wc, this, p(Z, this, Ac).call(this)), m(wc, this) && (h(Cc, this, !1), h(Dc, this, t.clientY)));
4144
4131
  }
4145
- function Nc(e) {
4146
- if (!(!m(Tc, this) || m(Oc, this) === null || this.hasAttribute("snap-touch") && this.open) && (e.preventDefault(), e.touches[0])) {
4147
- let t = e.touches[0].clientY, n = m(Oc, this) - t;
4132
+ function Mc(e) {
4133
+ if (!(!m(wc, this) || m(Dc, this) === null || this.hasAttribute("snap-touch") && this.open) && (e.preventDefault(), e.touches[0])) {
4134
+ let t = e.touches[0].clientY, n = m(Dc, this) - t;
4148
4135
  this.scrollTop = Math.max(0, n);
4149
4136
  }
4150
4137
  }
4151
- function Pc(e) {
4152
- m(Tc, this) && !m(wc, this) && p(Z, this, Ic).call(this) && (!this.hasAttribute("snap-touch") || !this.open) && (this.open = !0), h(Oc, this, null), h(Tc, this, !1);
4138
+ function Nc(e) {
4139
+ m(wc, this) && !m(Cc, this) && p(Z, this, Fc).call(this) && (!this.hasAttribute("snap-touch") || !this.open) && (this.open = !0), h(Dc, this, null), h(wc, this, !1);
4153
4140
  }
4154
- function Fc() {
4141
+ function Pc() {
4155
4142
  return this.hasAttribute(_.USER_INTERACTING);
4156
4143
  }
4157
- function Ic() {
4144
+ function Fc() {
4158
4145
  return this.scrollTop > 0;
4159
4146
  }
4160
- function Lc() {
4147
+ function Ic() {
4161
4148
  var e;
4162
- return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((e = m(Cc, this)) == null ? void 0 : e.clientHeight);
4149
+ return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((e = m(Sc, this)) == null ? void 0 : e.clientHeight);
4163
4150
  }
4164
- function Rc() {
4151
+ function Lc() {
4165
4152
  var e;
4166
- let t = (e = m(Cc, this)) == null ? void 0 : e.clientHeight;
4153
+ let t = (e = m(Sc, this)) == null ? void 0 : e.clientHeight;
4167
4154
  return !t || this.clientHeight <= 0 ? 0 : Math.max(this.clientHeight - t, 0);
4168
4155
  }
4169
- function zc() {
4156
+ function Rc() {
4170
4157
  let e = getComputedStyle(this), t = Number.parseFloat(e.getPropertyValue("--vindral-scroll-overlay-offset"));
4171
- return Number.isNaN(t) ? p(Z, this, Rc).call(this) > 0 : t > 0;
4158
+ return Number.isNaN(t) ? p(Z, this, Lc).call(this) > 0 : t > 0;
4172
4159
  }
4173
- function Bc() {
4160
+ function zc() {
4174
4161
  let e = this.style.scrollBehavior;
4175
4162
  this.style.scrollBehavior = "auto", this.scrollTo({
4176
4163
  top: 0,
4177
4164
  behavior: "auto"
4178
4165
  }), this.style.scrollBehavior = e;
4179
4166
  }
4180
- function Vc() {
4181
- h(wc, this, !0), this.removeAttribute("snap-touch"), p(Z, this, Wc).call(this), this.scrollTo({
4167
+ function Bc() {
4168
+ h(Cc, this, !0), this.removeAttribute("snap-touch"), p(Z, this, Uc).call(this), this.scrollTo({
4182
4169
  top: 0,
4183
4170
  behavior: "smooth"
4184
4171
  });
4185
4172
  }
4186
- function Hc(e = !1) {
4187
- this.open = !1, e && this.removeAttribute("snap-touch"), h(wc, this, !1), p(Z, this, Wc).call(this);
4173
+ function Vc(e = !1) {
4174
+ this.open = !1, e && this.removeAttribute("snap-touch"), h(Cc, this, !1), p(Z, this, Uc).call(this);
4188
4175
  }
4189
- function Uc() {
4176
+ function Hc() {
4190
4177
  this.visible || (this.visible = !0, this.dispatchEvent(new CustomEvent(v.LOCK_UI, {
4191
4178
  bubbles: !0,
4192
4179
  composed: !0
4193
4180
  })));
4194
4181
  }
4195
- function Wc() {
4182
+ function Uc() {
4196
4183
  this.visible && (this.visible = !1, this.dispatchEvent(new CustomEvent(v.UNLOCK_UI, {
4197
4184
  bubbles: !0,
4198
4185
  composed: !0
4199
4186
  })));
4200
4187
  }
4201
- e(Ac, "observedAttributes", [
4188
+ e(kc, "observedAttributes", [
4202
4189
  _.USER_INTERACTING,
4203
4190
  "open",
4204
4191
  "touch-enabled"
4205
4192
  ]);
4206
4193
  //#endregion
4207
4194
  //#region ../../libs/player-next/src/components/SeekBar.ts
4208
- var Gc = 1e3, Kc = 8, qc = document.createElement("template");
4209
- qc.innerHTML = "\n <style>\n :host {\n --buffered: 0;\n --vindral-range-thickness: 3px;\n --vindral-range-hover-thickness: 5px;\n --vindral-range-thumb-size: 10px;\n --vindral-range-thumb-hover-size: 15px;\n --vindral-range-fill-color: linear-gradient(\n 90deg,\n #03a9f4 0%,\n #03a9f4 calc(100% - min(20%, 150px)),\n #b3e5fc 100%\n );\n --vindral-range-thumb-color: #03a9f4;\n display: var(--seek-bar-display);\n position: relative;\n }\n\n :host([data-no-duration]) {\n display: none;\n }\n\n #hover-preview {\n position: absolute;\n background-color: rgba(255, 255, 255, 0.6);\n opacity: 0;\n pointer-events: none;\n z-index: 1;\n }\n\n #time-tooltip {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: rgba(0, 0, 0, 0.8);\n color: white;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n white-space: nowrap;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s;\n z-index: 10;\n }\n\n @media (hover: none) {\n #time-tooltip {\n display: none;\n }\n }\n\n #markers {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: 2;\n }\n\n .marker {\n position: absolute;\n top: calc(50% - var(--vindral-seek-bar-marker-size, 6px) / 2);\n width: var(--vindral-seek-bar-marker-size, 6px);\n height: var(--vindral-seek-bar-marker-size, 6px);\n border-radius: 50%;\n transform: translateX(-50%);\n background: var(--vindral-seek-bar-marker-color, #ffffff);\n }\n </style>\n\n <div id=\"buffered-track\"></div>\n <div id=\"hover-preview\"></div>\n <div id=\"markers\"></div>\n <div id=\"time-tooltip\"></div>\n";
4210
- var Q = /* @__PURE__ */ new WeakMap(), Jc = /* @__PURE__ */ new WeakMap(), Yc = /* @__PURE__ */ new WeakMap(), Xc = /* @__PURE__ */ new WeakMap(), Zc = /* @__PURE__ */ new WeakMap(), Qc = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), rl = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), il = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), ol = /* @__PURE__ */ new WeakMap(), sl = /* @__PURE__ */ new WeakMap(), cl = /* @__PURE__ */ new WeakMap(), ll = /* @__PURE__ */ new WeakMap(), ul = class extends hi {
4195
+ var Wc = 1e3, Gc = 8, Kc = document.createElement("template");
4196
+ Kc.innerHTML = "\n <style>\n :host {\n --buffered: 0;\n --vindral-range-thickness: 3px;\n --vindral-range-hover-thickness: 5px;\n --vindral-range-thumb-size: 10px;\n --vindral-range-thumb-hover-size: 15px;\n --vindral-range-fill-color: linear-gradient(\n 90deg,\n #03a9f4 0%,\n #03a9f4 calc(100% - min(20%, 150px)),\n #b3e5fc 100%\n );\n --vindral-range-thumb-color: #03a9f4;\n display: var(--seek-bar-display);\n position: relative;\n }\n\n :host([data-no-duration]) {\n display: none;\n }\n\n #hover-preview {\n position: absolute;\n background-color: rgba(255, 255, 255, 0.6);\n opacity: 0;\n pointer-events: none;\n z-index: 1;\n }\n\n #time-tooltip {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: rgba(0, 0, 0, 0.8);\n color: white;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n white-space: nowrap;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s;\n z-index: 10;\n }\n\n @media (hover: none) {\n #time-tooltip {\n display: none;\n }\n }\n\n #markers {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: 2;\n }\n\n .marker {\n position: absolute;\n top: calc(50% - var(--vindral-seek-bar-marker-size, 6px) / 2);\n width: var(--vindral-seek-bar-marker-size, 6px);\n height: var(--vindral-seek-bar-marker-size, 6px);\n border-radius: 50%;\n transform: translateX(-50%);\n background: var(--vindral-seek-bar-marker-color, #ffffff);\n }\n </style>\n\n <div id=\"buffered-track\"></div>\n <div id=\"hover-preview\"></div>\n <div id=\"markers\"></div>\n <div id=\"time-tooltip\"></div>\n";
4197
+ var Q = /* @__PURE__ */ new WeakMap(), qc = /* @__PURE__ */ new WeakMap(), Jc = /* @__PURE__ */ new WeakMap(), Yc = /* @__PURE__ */ new WeakMap(), Xc = /* @__PURE__ */ new WeakMap(), Zc = /* @__PURE__ */ new WeakMap(), Qc = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), rl = /* @__PURE__ */ new WeakMap(), il = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), ol = /* @__PURE__ */ new WeakMap(), sl = /* @__PURE__ */ new WeakMap(), cl = /* @__PURE__ */ new WeakMap(), ll = class extends mi {
4211
4198
  constructor() {
4212
4199
  var e, t, n, r;
4213
- super(), g(this, $), f(this, Q, void 0), f(this, Jc, void 0), f(this, Yc, void 0), f(this, Xc, void 0), f(this, Zc, []), f(this, Qc, null), f(this, $c, !1), f(this, el, null), f(this, tl, null), f(this, nl, !1), f(this, rl, !1), f(this, il, (e) => {
4214
- if (!p($, this, pl).call(this) || p($, this, ml).call(this)) {
4200
+ super(), g(this, $), f(this, Q, void 0), f(this, qc, void 0), f(this, Jc, void 0), f(this, Yc, void 0), f(this, Xc, []), f(this, Zc, null), f(this, Qc, !1), f(this, $c, null), f(this, el, null), f(this, tl, !1), f(this, nl, !1), f(this, rl, (e) => {
4201
+ if (!p($, this, fl).call(this) || p($, this, pl).call(this)) {
4215
4202
  e.preventDefault();
4216
4203
  return;
4217
4204
  }
4218
- h($c, this, !0), h(tl, this, e.pointerId);
4205
+ h(Qc, this, !0), h(el, this, e.pointerId);
4219
4206
  try {
4220
4207
  this.setPointerCapture(e.pointerId);
4221
4208
  } catch (e) {}
4222
- p($, this, Sl).call(this, e);
4223
- }), f(this, al, (e) => {
4224
- if (!(!p($, this, pl).call(this) || p($, this, ml).call(this))) {
4225
- if (m(el, this) && (cancelAnimationFrame(m(el, this)), h(el, this, null)), m($c, this) && e.pointerId === m(tl, this)) {
4226
- e.preventDefault(), p($, this, Sl).call(this, e);
4209
+ p($, this, xl).call(this, e);
4210
+ }), f(this, il, (e) => {
4211
+ if (!(!p($, this, fl).call(this) || p($, this, pl).call(this))) {
4212
+ if (m($c, this) && (cancelAnimationFrame(m($c, this)), h($c, this, null)), m(Qc, this) && e.pointerId === m(el, this)) {
4213
+ e.preventDefault(), p($, this, xl).call(this, e);
4227
4214
  return;
4228
4215
  }
4229
- h(el, this, requestAnimationFrame(() => {
4216
+ h($c, this, requestAnimationFrame(() => {
4230
4217
  var t;
4231
- if (e.pointerType !== "mouse" || m($c, this) || !this.duration) {
4232
- m(Yc, this).style.opacity = "0", h(el, this, null);
4218
+ if (e.pointerType !== "mouse" || m(Qc, this) || !this.duration) {
4219
+ m(Jc, this).style.opacity = "0", h($c, this, null);
4233
4220
  return;
4234
4221
  }
4235
- let n = p($, this, xl).call(this, e.clientX), r = p($, this, yl).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
4236
- if (p($, this, wl).call(this, i, r), i > this.range.valueAsNumber) {
4222
+ let n = p($, this, bl).call(this, e.clientX), r = p($, this, vl).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
4223
+ if (p($, this, Cl).call(this, i, r), i > this.range.valueAsNumber) {
4237
4224
  let e = this.range.valueAsNumber * 100, t = (i - this.range.valueAsNumber) * 100;
4238
- m(Yc, this).style.transform = `translateX(${e}%) scaleX(${t / 100})`, m(Yc, this).style.opacity = "1";
4239
- } else m(Yc, this).style.opacity = "0";
4240
- h(el, this, null);
4225
+ m(Jc, this).style.transform = `translateX(${e}%) scaleX(${t / 100})`, m(Jc, this).style.opacity = "1";
4226
+ } else m(Jc, this).style.opacity = "0";
4227
+ h($c, this, null);
4241
4228
  }));
4242
4229
  }
4243
- }), f(this, ol, (e) => {
4244
- if (e.pointerId === m(tl, this)) {
4230
+ }), f(this, al, (e) => {
4231
+ if (e.pointerId === m(el, this)) {
4245
4232
  try {
4246
4233
  this.releasePointerCapture(e.pointerId);
4247
4234
  } catch (e) {}
4248
- h($c, this, !1), h(tl, this, null), e.pointerType !== "mouse" && (m(Jc, this).style.opacity = "0"), m(rl, this) && p($, this, Dl).call(this) && (h(nl, this, !1), h(rl, this, !1));
4235
+ h(Qc, this, !1), h(el, this, null), e.pointerType !== "mouse" && (m(qc, this).style.opacity = "0"), m(nl, this) && p($, this, El).call(this) && (h(tl, this, !1), h(nl, this, !1));
4249
4236
  }
4237
+ }), f(this, ol, () => {
4238
+ this.duration && !p($, this, pl).call(this) && (m(qc, this).style.opacity = "1");
4250
4239
  }), f(this, sl, () => {
4251
- this.duration && !p($, this, ml).call(this) && (m(Jc, this).style.opacity = "1");
4252
- }), f(this, cl, () => {
4253
- m(Jc, this).style.opacity = "0", m(Yc, this).style.opacity = "0";
4254
- }), f(this, ll, (e) => {
4255
- if (p($, this, ml).call(this) || !m(Q, this) || m(Q, this) <= 0 || !Number.isFinite(m(Q, this))) return;
4256
- let t = p($, this, dl).call(this);
4240
+ m(qc, this).style.opacity = "0", m(Jc, this).style.opacity = "0";
4241
+ }), f(this, cl, (e) => {
4242
+ if (p($, this, pl).call(this) || !m(Q, this) || m(Q, this) <= 0 || !Number.isFinite(m(Q, this))) return;
4243
+ let t = p($, this, ul).call(this);
4257
4244
  if (t <= 0) return;
4258
4245
  let n = this.range.valueAsNumber * t, r = n;
4259
4246
  switch (e.preventDefault(), e.key) {
@@ -4261,46 +4248,46 @@ var Q = /* @__PURE__ */ new WeakMap(), Jc = /* @__PURE__ */ new WeakMap(), Yc =
4261
4248
  r = Math.max(0, n - 5);
4262
4249
  break;
4263
4250
  case "ArrowRight":
4264
- if (p($, this, Dl).call(this)) return;
4251
+ if (p($, this, El).call(this)) return;
4265
4252
  r = Math.min(t, n + 5);
4266
4253
  break;
4267
4254
  case "Home":
4268
4255
  r = 0;
4269
4256
  break;
4270
4257
  case "End":
4271
- if (p($, this, Dl).call(this)) return;
4258
+ if (p($, this, El).call(this)) return;
4272
4259
  r = t;
4273
4260
  break;
4274
4261
  default: return;
4275
4262
  }
4276
4263
  let i = Math.min(r / t, 1);
4277
- p($, this, Cl).call(this, i);
4278
- }), (e = this.shadowRoot) == null || e.appendChild(qc.content.cloneNode(!0)), h(Jc, this, (t = this.shadowRoot) == null ? void 0 : t.getElementById("time-tooltip")), h(Yc, this, (n = this.shadowRoot) == null ? void 0 : n.getElementById("hover-preview")), h(Xc, this, (r = this.shadowRoot) == null ? void 0 : r.getElementById("markers")), this.addEventListener("pointerdown", m(il, this)), this.addEventListener("pointermove", m(al, this)), this.addEventListener("pointerup", m(ol, this)), this.addEventListener("pointercancel", m(ol, this)), this.addEventListener("mouseenter", m(sl, this)), this.addEventListener("mouseleave", m(cl, this));
4264
+ p($, this, Sl).call(this, i);
4265
+ }), (e = this.shadowRoot) == null || e.appendChild(Kc.content.cloneNode(!0)), h(qc, this, (t = this.shadowRoot) == null ? void 0 : t.getElementById("time-tooltip")), h(Jc, this, (n = this.shadowRoot) == null ? void 0 : n.getElementById("hover-preview")), h(Yc, this, (r = this.shadowRoot) == null ? void 0 : r.getElementById("markers")), this.addEventListener("pointerdown", m(rl, this)), this.addEventListener("pointermove", m(il, this)), this.addEventListener("pointerup", m(al, this)), this.addEventListener("pointercancel", m(al, this)), this.addEventListener("mouseenter", m(ol, this)), this.addEventListener("mouseleave", m(sl, this));
4279
4266
  }
4280
4267
  connectedCallback() {
4281
- super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), p($, this, bl).call(this), this.addEventListener("keydown", m(ll, this)), p($, this, Dl).call(this) && (this.range.value = "1", p($, this, bl).call(this)), p($, this, hl).call(this), p($, this, _l).call(this);
4268
+ super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), p($, this, yl).call(this), this.addEventListener("keydown", m(cl, this)), p($, this, El).call(this) && (this.range.value = "1", p($, this, yl).call(this)), p($, this, ml).call(this), p($, this, gl).call(this);
4282
4269
  }
4283
4270
  disconnectedCallback() {
4284
- super.disconnectedCallback(), p($, this, vl).call(this), this.removeEventListener("pointerdown", m(il, this)), this.removeEventListener("pointermove", m(al, this)), this.removeEventListener("pointerup", m(ol, this)), this.removeEventListener("pointercancel", m(ol, this)), this.removeEventListener("mouseenter", m(sl, this)), this.removeEventListener("mouseleave", m(cl, this)), this.removeEventListener("keydown", m(ll, this)), h(tl, this, null);
4271
+ super.disconnectedCallback(), p($, this, _l).call(this), this.removeEventListener("pointerdown", m(rl, this)), this.removeEventListener("pointermove", m(il, this)), this.removeEventListener("pointerup", m(al, this)), this.removeEventListener("pointercancel", m(al, this)), this.removeEventListener("mouseenter", m(ol, this)), this.removeEventListener("mouseleave", m(sl, this)), this.removeEventListener("keydown", m(cl, this)), h(el, this, null);
4285
4272
  }
4286
4273
  attributeChangedCallback(e, t, n) {
4287
4274
  if (super.attributeChangedCallback(e, t, n), t !== n) switch (e) {
4288
4275
  case _.TIMESHIFT_POSITION:
4289
- if (p($, this, Dl).call(this)) {
4290
- m($c, this) ? h(rl, this, !0) : (h(nl, this, !1), h(rl, this, !1)), this.range.value = "1", p($, this, bl).call(this);
4276
+ if (p($, this, El).call(this)) {
4277
+ m(Qc, this) ? h(nl, this, !0) : (h(tl, this, !1), h(nl, this, !1)), this.range.value = "1", p($, this, yl).call(this);
4291
4278
  return;
4292
4279
  }
4293
4280
  if (m(Q, this)) {
4294
- h(rl, this, !1);
4281
+ h(nl, this, !1);
4295
4282
  let e = Math.max(parseFloat(n) / m(Q, this), 0);
4296
- this.range.value = e.toString(), p($, this, bl).call(this);
4283
+ this.range.value = e.toString(), p($, this, yl).call(this);
4297
4284
  }
4298
4285
  break;
4299
4286
  case _.DURATION:
4300
- h(Q, this, parseFloat(n) || 0), p($, this, bl).call(this), p($, this, hl).call(this), p($, this, _l).call(this);
4287
+ h(Q, this, parseFloat(n) || 0), p($, this, yl).call(this), p($, this, ml).call(this), p($, this, gl).call(this);
4301
4288
  break;
4302
4289
  case _.TIMELINE_MARKERS:
4303
- h(Zc, this, Mr(n)), p($, this, hl).call(this), p($, this, _l).call(this);
4290
+ h(Xc, this, jr(n)), p($, this, ml).call(this), p($, this, gl).call(this);
4304
4291
  break;
4305
4292
  }
4306
4293
  }
@@ -4318,54 +4305,54 @@ var Q = /* @__PURE__ */ new WeakMap(), Jc = /* @__PURE__ */ new WeakMap(), Yc =
4318
4305
  this.setAttribute(_.DURATION, e.toString());
4319
4306
  }
4320
4307
  };
4321
- function dl() {
4308
+ function ul() {
4322
4309
  return m(Q, this) ? m(Q, this) : 1;
4323
4310
  }
4324
- function fl() {
4311
+ function dl() {
4325
4312
  let e = m(Q, this);
4326
4313
  return e !== void 0 && e > 0 && Number.isFinite(e) ? e : void 0;
4327
4314
  }
4315
+ function fl() {
4316
+ return p($, this, dl).call(this) !== void 0;
4317
+ }
4328
4318
  function pl() {
4329
- return p($, this, fl).call(this) !== void 0;
4319
+ return m(tl, this);
4330
4320
  }
4331
4321
  function ml() {
4332
- return m(nl, this);
4333
- }
4334
- function hl() {
4335
4322
  var e;
4336
- let t = Date.now(), n = (e = m(Q, this)) == null ? 0 : e, r = m(Xc, this).children, i = 0;
4337
- for (let e of m(Zc, this)) {
4338
- let a = Nr(e.time, t, n);
4323
+ let t = Date.now(), n = (e = m(Q, this)) == null ? 0 : e, r = m(Yc, this).children, i = 0;
4324
+ for (let e of m(Xc, this)) {
4325
+ let a = Mr(e.time, t, n);
4339
4326
  if (a === null) continue;
4340
4327
  let o = r[i];
4341
- o || (o = document.createElement("div"), o.className = "marker", m(Xc, this).appendChild(o)), o.style.left = `${a * 100}%`, o.dataset.label = e.label, e.type ? o.dataset.type = e.type : delete o.dataset.type, i++;
4328
+ o || (o = document.createElement("div"), o.className = "marker", m(Yc, this).appendChild(o)), o.style.left = `${a * 100}%`, o.dataset.label = e.label, e.type ? o.dataset.type = e.type : delete o.dataset.type, i++;
4342
4329
  }
4343
- for (; m(Xc, this).children.length > i;) {
4330
+ for (; m(Yc, this).children.length > i;) {
4344
4331
  var a;
4345
- (a = m(Xc, this).lastElementChild) == null || a.remove();
4332
+ (a = m(Yc, this).lastElementChild) == null || a.remove();
4346
4333
  }
4347
4334
  }
4348
- function gl() {
4349
- let e = p($, this, fl).call(this);
4335
+ function hl() {
4336
+ let e = p($, this, dl).call(this);
4350
4337
  if (e === void 0) return !1;
4351
4338
  let t = Date.now() - e * 1e3;
4352
- return m(Zc, this).some((e) => e.time >= t);
4339
+ return m(Xc, this).some((e) => e.time >= t);
4353
4340
  }
4354
- function _l() {
4355
- this.isConnected && p($, this, gl).call(this) ? m(Qc, this) === null && h(Qc, this, window.setInterval(() => {
4356
- p($, this, hl).call(this), p($, this, _l).call(this);
4357
- }, Gc)) : p($, this, vl).call(this);
4341
+ function gl() {
4342
+ this.isConnected && p($, this, hl).call(this) ? m(Zc, this) === null && h(Zc, this, window.setInterval(() => {
4343
+ p($, this, ml).call(this), p($, this, gl).call(this);
4344
+ }, Wc)) : p($, this, _l).call(this);
4358
4345
  }
4359
- function vl() {
4360
- m(Qc, this) !== null && (window.clearInterval(m(Qc, this)), h(Qc, this, null));
4346
+ function _l() {
4347
+ m(Zc, this) !== null && (window.clearInterval(m(Zc, this)), h(Zc, this, null));
4361
4348
  }
4362
- function yl(e) {
4363
- if (m(Zc, this).length === 0 || !m(Q, this)) return null;
4349
+ function vl(e) {
4350
+ if (m(Xc, this).length === 0 || !m(Q, this)) return null;
4364
4351
  let t = this.getBoundingClientRect().width;
4365
4352
  if (!t) return null;
4366
- let n = Kc / t, r = Date.now(), i = null;
4367
- for (let t of m(Zc, this)) {
4368
- let a = Nr(t.time, r, m(Q, this));
4353
+ let n = Gc / t, r = Date.now(), i = null;
4354
+ for (let t of m(Xc, this)) {
4355
+ let a = Mr(t.time, r, m(Q, this));
4369
4356
  if (a === null) continue;
4370
4357
  let o = Math.abs(a - e);
4371
4358
  o > n || (!i || o < Math.abs(i.position - e)) && (i = {
@@ -4375,59 +4362,59 @@ function yl(e) {
4375
4362
  }
4376
4363
  return i;
4377
4364
  }
4378
- function bl() {
4379
- let e = p($, this, dl).call(this);
4380
- !m(Q, this) || m(Q, this) <= 0 || !Number.isFinite(m(Q, this)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), m($c, this) || (this.updateBar(), this.setAttribute("aria-valuetext", `${p($, this, Ol).call(this, this.range.valueAsNumber * e)} of ${p($, this, Ol).call(this, e)}`), !m($c, this) && !p($, this, ml).call(this) && p($, this, El).call(this, this.range.valueAsNumber));
4365
+ function yl() {
4366
+ let e = p($, this, ul).call(this);
4367
+ !m(Q, this) || m(Q, this) <= 0 || !Number.isFinite(m(Q, this)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), m(Qc, this) || (this.updateBar(), this.setAttribute("aria-valuetext", `${p($, this, Dl).call(this, this.range.valueAsNumber * e)} of ${p($, this, Dl).call(this, e)}`), !m(Qc, this) && !p($, this, pl).call(this) && p($, this, Tl).call(this, this.range.valueAsNumber));
4381
4368
  }
4382
- function xl(e) {
4369
+ function bl(e) {
4383
4370
  let t = this.getBoundingClientRect(), n = (e - t.left) / t.width;
4384
4371
  return Math.max(0, Math.min(1, n));
4385
4372
  }
4386
- function Sl(e) {
4373
+ function xl(e) {
4387
4374
  var t;
4388
- let n = p($, this, xl).call(this, e.clientX), r = p($, this, yl).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
4389
- p($, this, wl).call(this, i, r), m($c, this) || (m(Jc, this).style.opacity = "1"), p($, this, Cl).call(this, i);
4375
+ let n = p($, this, bl).call(this, e.clientX), r = p($, this, vl).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
4376
+ p($, this, Cl).call(this, i, r), m(Qc, this) || (m(qc, this).style.opacity = "1"), p($, this, Sl).call(this, i);
4390
4377
  }
4391
- function Cl(e) {
4392
- if (p($, this, ml).call(this) || p($, this, El).call(this, e)) return;
4393
- let t = e * p($, this, dl).call(this);
4394
- this.range.value = e.toString(), this.updateBar(), p($, this, Tl).call(this, t);
4378
+ function Sl(e) {
4379
+ if (p($, this, pl).call(this) || p($, this, Tl).call(this, e)) return;
4380
+ let t = e * p($, this, ul).call(this);
4381
+ this.range.value = e.toString(), this.updateBar(), p($, this, wl).call(this, t);
4395
4382
  }
4396
- function wl(e, t) {
4383
+ function Cl(e, t) {
4397
4384
  if (!m(Q, this) || !Number.isFinite(m(Q, this))) return;
4398
- let n = e * m(Q, this), r = m(Q, this) - n, i = `-${p($, this, Ol).call(this, r)}`;
4399
- m(Jc, this).textContent = t ? `${t.marker.label}: ${i}` : i, m(Jc, this).style.left = `${Math.min(Math.max(e * 100, 2), 98)}%`;
4385
+ let n = e * m(Q, this), r = m(Q, this) - n, i = `-${p($, this, Dl).call(this, r)}`;
4386
+ m(qc, this).textContent = t ? `${t.marker.label}: ${i}` : i, m(qc, this).style.left = `${Math.min(Math.max(e * 100, 2), 98)}%`;
4400
4387
  }
4401
- function Tl(e) {
4388
+ function wl(e) {
4402
4389
  this.dispatchEvent(new CustomEvent("seek", {
4403
4390
  bubbles: !0,
4404
4391
  composed: !0,
4405
4392
  detail: e
4406
4393
  }));
4407
4394
  }
4408
- function El(e) {
4409
- return m(nl, this) || p($, this, Dl).call(this) || e < .999 ? !1 : (h(nl, this, !0), h(rl, this, !1), this.dispatchEvent(new CustomEvent(v.GO_LIVE, {
4395
+ function Tl(e) {
4396
+ return m(tl, this) || p($, this, El).call(this) || e < .999 ? !1 : (h(tl, this, !0), h(nl, this, !1), this.dispatchEvent(new CustomEvent(v.GO_LIVE, {
4410
4397
  bubbles: !0,
4411
4398
  composed: !0
4412
4399
  })), !0);
4413
4400
  }
4414
- function Dl() {
4401
+ function El() {
4415
4402
  return !this.hasAttribute(_.TIMESHIFT_POSITION);
4416
4403
  }
4417
- function Ol(e) {
4404
+ function Dl(e) {
4418
4405
  let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
4419
4406
  return m(Q, this) && m(Q, this) >= 3600 ? `${t}:${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}` : `${n}:${r.toString().padStart(2, "0")}`;
4420
4407
  }
4421
- e(ul, "observedAttributes", [
4422
- ...hi.observedAttributes,
4408
+ e(ll, "observedAttributes", [
4409
+ ...mi.observedAttributes,
4423
4410
  _.TIMESHIFT_POSITION,
4424
4411
  _.DURATION,
4425
4412
  _.TIMELINE_MARKERS
4426
4413
  ]);
4427
4414
  //#endregion
4428
4415
  //#region ../../libs/player-next/src/components/UserInputPlayOverlay.ts
4429
- var kl = document.createElement("template");
4430
- kl.innerHTML = `
4416
+ var Ol = document.createElement("template");
4417
+ Ol.innerHTML = `
4431
4418
  <style>
4432
4419
  :host {
4433
4420
  display: var(--play-overlay-display);
@@ -4487,51 +4474,51 @@ kl.innerHTML = `
4487
4474
  </slot>
4488
4475
  </slot>
4489
4476
  `;
4490
- var Al = /* @__PURE__ */ new WeakMap(), jl = /* @__PURE__ */ new WeakMap(), Ml = /* @__PURE__ */ new WeakMap(), Nl = /* @__PURE__ */ new WeakMap(), Pl = class extends HTMLElement {
4477
+ var kl = /* @__PURE__ */ new WeakMap(), Al = /* @__PURE__ */ new WeakMap(), jl = /* @__PURE__ */ new WeakMap(), Ml = /* @__PURE__ */ new WeakMap(), Nl = class extends HTMLElement {
4491
4478
  constructor() {
4492
- super(), f(this, Al, null), f(this, jl, () => {
4479
+ super(), f(this, kl, null), f(this, Al, () => {
4493
4480
  this.dispatchEvent(new CustomEvent(v.REQUEST_USER_INPUT, {
4494
4481
  bubbles: !0,
4495
4482
  composed: !0
4496
4483
  }));
4497
- }), f(this, Ml, (e) => {
4484
+ }), f(this, jl, (e) => {
4498
4485
  let { key: t } = e;
4499
4486
  if (!this.keysUsed.includes(t)) {
4500
- this.removeEventListener("keyup", m(Ml, this));
4487
+ this.removeEventListener("keyup", m(jl, this));
4501
4488
  return;
4502
4489
  }
4503
4490
  this.dispatchEvent(new CustomEvent(v.REQUEST_USER_INPUT, {
4504
4491
  bubbles: !0,
4505
4492
  composed: !0
4506
4493
  }));
4507
- }), f(this, Nl, (e) => {
4494
+ }), f(this, Ml, (e) => {
4508
4495
  let { metaKey: t, altKey: n, key: r } = e;
4509
4496
  if (t || n || !this.keysUsed.includes(r)) {
4510
- this.removeEventListener("keyup", m(Ml, this));
4497
+ this.removeEventListener("keyup", m(jl, this));
4511
4498
  return;
4512
4499
  }
4513
- this.addEventListener("keyup", m(Ml, this), { once: !0 });
4514
- }), this.attachShadow({ mode: "open" }).appendChild(kl.content.cloneNode(!0));
4500
+ this.addEventListener("keyup", m(jl, this), { once: !0 });
4501
+ }), this.attachShadow({ mode: "open" }).appendChild(Ol.content.cloneNode(!0));
4515
4502
  }
4516
4503
  get keysUsed() {
4517
4504
  return ["Enter", " "];
4518
4505
  }
4519
4506
  connectedCallback() {
4520
4507
  var e;
4521
- h(Al, this, this.closest("vindral-controller")), (e = m(Al, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.enable();
4508
+ h(kl, this, this.closest("vindral-controller")), (e = m(kl, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.enable();
4522
4509
  }
4523
4510
  enable() {
4524
- this.addEventListener("click", m(jl, this)), this.addEventListener("keydown", m(Nl, this)), this.tabIndex = 0;
4511
+ this.addEventListener("click", m(Al, this)), this.addEventListener("keydown", m(Ml, this)), this.tabIndex = 0;
4525
4512
  }
4526
4513
  disable() {
4527
- this.removeEventListener("click", m(jl, this)), this.removeEventListener("keydown", m(Nl, this)), this.removeEventListener("keyup", m(Ml, this)), this.tabIndex = -1;
4514
+ this.removeEventListener("click", m(Al, this)), this.removeEventListener("keydown", m(Ml, this)), this.removeEventListener("keyup", m(jl, this)), this.tabIndex = -1;
4528
4515
  }
4529
4516
  disconnectedCallback() {
4530
4517
  var e;
4531
- (e = m(Al, this)) == null || e.disconnectListener(this), this.disable();
4518
+ (e = m(kl, this)) == null || e.disconnectListener(this), this.disable();
4532
4519
  }
4533
4520
  };
4534
- e(Pl, "observedAttributes", [
4521
+ e(Nl, "observedAttributes", [
4535
4522
  "hidden",
4536
4523
  _.NEEDS_USER_INPUT_VIDEO,
4537
4524
  _.NEEDS_USER_INPUT_AUDIO,
@@ -4539,88 +4526,88 @@ e(Pl, "observedAttributes", [
4539
4526
  ]);
4540
4527
  //#endregion
4541
4528
  //#region ../../libs/player-next/src/components/VindralCenterOverlay.ts
4542
- var Fl = document.createElement("template");
4543
- Fl.innerHTML = "\n <style>\n :host {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n pointer-events: none;\n z-index: 1;\n }\n\n :host::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: -1;\n background-color: rgba(0, 0, 0, 0.3);\n background-image: var(--_backdrop-image, none);\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n pointer-events: none;\n opacity: 0;\n transition: opacity 100ms;\n }\n\n :host([backdrop]:not([disable-backdrop]))::before {\n opacity: 1;\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host::before {\n transition: none;\n }\n }\n </style>\n\n <slot></slot>\n";
4544
- var Il = class extends HTMLElement {
4529
+ var Pl = document.createElement("template");
4530
+ Pl.innerHTML = "\n <style>\n :host {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n pointer-events: none;\n z-index: 1;\n }\n\n :host::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: -1;\n background-color: rgba(0, 0, 0, 0.3);\n background-image: var(--_backdrop-image, none);\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n pointer-events: none;\n opacity: 0;\n transition: opacity 100ms;\n }\n\n :host([backdrop]:not([disable-backdrop]))::before {\n opacity: 1;\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host::before {\n transition: none;\n }\n }\n </style>\n\n <slot></slot>\n";
4531
+ var Fl = class extends HTMLElement {
4545
4532
  constructor() {
4546
- super(), this.attachShadow({ mode: "open" }).appendChild(Fl.content.cloneNode(!0));
4533
+ super(), this.attachShadow({ mode: "open" }).appendChild(Pl.content.cloneNode(!0));
4547
4534
  }
4548
4535
  attributeChangedCallback(e, t, n) {
4549
4536
  t !== n && e === "poster" && this.style.setProperty("--_backdrop-image", n ? `url("${n}")` : "none");
4550
4537
  }
4551
4538
  };
4552
- e(Il, "observedAttributes", [
4539
+ e(Fl, "observedAttributes", [
4553
4540
  "backdrop",
4554
4541
  "poster",
4555
4542
  "disable-backdrop"
4556
4543
  ]);
4557
4544
  //#endregion
4558
4545
  //#region ../../libs/player-next/src/components/VindralMessage.ts
4559
- var Ll = document.createElement("template");
4560
- Ll.innerHTML = "\n <style>\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 90%;\n color: var(--fg-strong);\n font-size: 20px;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n #title,\n #description {\n text-align: center;\n text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);\n margin: 0;\n }\n\n #title {\n margin-bottom: var(--padding-2);\n }\n\n @container (max-width: 600px) {\n :host {\n font-size: 15px;\n }\n }\n\n @container (max-width: 400px) {\n :host {\n font-size: 12px;\n }\n #title {\n margin-bottom: 0;\n }\n }\n\n @container (max-width: 150px) {\n :host {\n font-size: 10px;\n }\n #title,\n #description {\n font-size: 1.2em;\n margin: 0;\n }\n }\n </style>\n\n <h1 id=\"title\"></h1>\n <p id=\"description\"></p>\n";
4561
- var Rl = /* @__PURE__ */ new WeakMap(), zl = /* @__PURE__ */ new WeakMap(), Bl = class extends HTMLElement {
4546
+ var Il = document.createElement("template");
4547
+ Il.innerHTML = "\n <style>\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 90%;\n color: var(--fg-strong);\n font-size: 20px;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n #title,\n #description {\n text-align: center;\n text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);\n margin: 0;\n }\n\n #title {\n margin-bottom: var(--padding-2);\n }\n\n @container (max-width: 600px) {\n :host {\n font-size: 15px;\n }\n }\n\n @container (max-width: 400px) {\n :host {\n font-size: 12px;\n }\n #title {\n margin-bottom: 0;\n }\n }\n\n @container (max-width: 150px) {\n :host {\n font-size: 10px;\n }\n #title,\n #description {\n font-size: 1.2em;\n margin: 0;\n }\n }\n </style>\n\n <h1 id=\"title\"></h1>\n <p id=\"description\"></p>\n";
4548
+ var Ll = /* @__PURE__ */ new WeakMap(), Rl = /* @__PURE__ */ new WeakMap(), zl = class extends HTMLElement {
4562
4549
  constructor() {
4563
- super(), f(this, Rl, void 0), f(this, zl, void 0);
4550
+ super(), f(this, Ll, void 0), f(this, Rl, void 0);
4564
4551
  let e = this.attachShadow({ mode: "open" });
4565
- e.appendChild(Ll.content.cloneNode(!0)), h(Rl, this, e.querySelector("#title")), h(zl, this, e.querySelector("#description"));
4552
+ e.appendChild(Il.content.cloneNode(!0)), h(Ll, this, e.querySelector("#title")), h(Rl, this, e.querySelector("#description"));
4566
4553
  }
4567
4554
  connectedCallback() {
4568
4555
  this.hasAttribute("role") || (this.setAttribute("role", "alert"), this.setAttribute("aria-atomic", "true"));
4569
4556
  }
4570
4557
  attributeChangedCallback(e, t, n) {
4571
- t !== n && (e === "title" ? m(Rl, this).textContent = n : e === "description" && (m(zl, this).textContent = n));
4558
+ t !== n && (e === "title" ? m(Ll, this).textContent = n : e === "description" && (m(Rl, this).textContent = n));
4572
4559
  }
4573
4560
  };
4574
- e(Bl, "observedAttributes", [
4561
+ e(zl, "observedAttributes", [
4575
4562
  "title",
4576
4563
  "description",
4577
4564
  "hidden"
4578
4565
  ]);
4579
4566
  //#endregion
4580
4567
  //#region ../../libs/player-next/src/components/VindralPlayOverlay.ts
4581
- var Vl = document.createElement("template");
4582
- Vl.innerHTML = "\n <style>\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n :host(:focus-visible) {\n outline: none;\n outline: 0;\n }\n\n :host(:focus-visible) svg {\n outline: 0;\n }\n\n :host(:where(:focus)) svg {\n box-shadow: none;\n outline: 0;\n }\n\n :host(:active) svg {\n scale: 0.9;\n }\n\n slot#play {\n color: var(--fg-strong);\n pointer-events: auto;\n cursor: pointer;\n }\n\n slot#play > svg {\n width: var(--play-overlay-icon-size);\n height: var(--play-overlay-icon-size);\n }\n </style>\n\n <slot id=\"play\" name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" /></svg>\n</slot>\n";
4583
- var Hl = /* @__PURE__ */ new WeakMap(), Ul = class extends HTMLElement {
4568
+ var Bl = document.createElement("template");
4569
+ Bl.innerHTML = "\n <style>\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n :host(:focus-visible) {\n outline: none;\n outline: 0;\n }\n\n :host(:focus-visible) svg {\n outline: 0;\n }\n\n :host(:where(:focus)) svg {\n box-shadow: none;\n outline: 0;\n }\n\n :host(:active) svg {\n scale: 0.9;\n }\n\n slot#play {\n color: var(--fg-strong);\n pointer-events: auto;\n cursor: pointer;\n }\n\n slot#play > svg {\n width: var(--play-overlay-icon-size);\n height: var(--play-overlay-icon-size);\n }\n </style>\n\n <slot id=\"play\" name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" /></svg>\n</slot>\n";
4570
+ var Vl = /* @__PURE__ */ new WeakMap(), Hl = class extends HTMLElement {
4584
4571
  constructor() {
4585
- super(), f(this, Hl, null), this.attachShadow({ mode: "open" }).appendChild(Vl.content.cloneNode(!0));
4572
+ super(), f(this, Vl, null), this.attachShadow({ mode: "open" }).appendChild(Bl.content.cloneNode(!0));
4586
4573
  }
4587
4574
  connectedCallback() {
4588
4575
  var e;
4589
- h(Hl, this, this.closest("vindral-controller")), (e = m(Hl, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.tabIndex = 0;
4576
+ h(Vl, this, this.closest("vindral-controller")), (e = m(Vl, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.tabIndex = 0;
4590
4577
  }
4591
4578
  disconnectedCallback() {
4592
4579
  var e;
4593
- (e = m(Hl, this)) == null || e.disconnectListener(this);
4580
+ (e = m(Vl, this)) == null || e.disconnectListener(this);
4594
4581
  }
4595
4582
  attributeChangedCallback(e, t, n) {
4596
4583
  t !== n && e === "hidden" && !y(n) && this.focus();
4597
4584
  }
4598
4585
  };
4599
- e(Ul, "observedAttributes", ["hidden"]);
4586
+ e(Hl, "observedAttributes", ["hidden"]);
4600
4587
  //#endregion
4601
4588
  //#region ../../libs/player-next/src/components/VolumeRange.ts
4602
- var Wl, Gl = document.createElement("template");
4603
- Gl.innerHTML = "\n <style>\n :host {\n display: var(--volume-range-display);\n width: 80px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) {\n background: rgba(255, 255, 255, 0.15);\n }\n }\n\n :host(:active) {\n background: rgba(255, 255, 255, 0.25);\n }\n </style>\n";
4604
- var Kl = (e) => `${Math.round(e * 100)}%`, ql = /* @__PURE__ */ new WeakMap(), Jl = class extends hi {
4589
+ var Ul, Wl = document.createElement("template");
4590
+ Wl.innerHTML = "\n <style>\n :host {\n display: var(--volume-range-display);\n width: 80px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) {\n background: rgba(255, 255, 255, 0.15);\n }\n }\n\n :host(:active) {\n background: rgba(255, 255, 255, 0.25);\n }\n </style>\n";
4591
+ var Gl = (e) => `${Math.round(e * 100)}%`, Kl = /* @__PURE__ */ new WeakMap(), ql = class extends mi {
4605
4592
  constructor() {
4606
4593
  var e;
4607
- super(), f(this, ql, () => {
4594
+ super(), f(this, Kl, () => {
4608
4595
  let e = this.range.valueAsNumber;
4609
4596
  this.dispatchEvent(new CustomEvent(v.SET_VOLUME, {
4610
4597
  bubbles: !0,
4611
4598
  composed: !0,
4612
4599
  detail: e
4613
4600
  }));
4614
- }), (e = this.shadowRoot) == null || e.appendChild(Gl.content.cloneNode(!0));
4601
+ }), (e = this.shadowRoot) == null || e.appendChild(Wl.content.cloneNode(!0));
4615
4602
  }
4616
4603
  connectedCallback() {
4617
- super.connectedCallback(), this.range.addEventListener("input", m(ql, this)), this.range.setAttribute("aria-label", "volume");
4604
+ super.connectedCallback(), this.range.addEventListener("input", m(Kl, this)), this.range.setAttribute("aria-label", "volume");
4618
4605
  }
4619
4606
  disconnectedCallback() {
4620
- super.disconnectedCallback(), this.range.removeEventListener("input", m(ql, this));
4607
+ super.disconnectedCallback(), this.range.removeEventListener("input", m(Kl, this));
4621
4608
  }
4622
4609
  attributeChangedCallback(e, t, n) {
4623
- super.attributeChangedCallback(e, t, n), (e === _.MUTED || e === _.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", Kl(this.range.valueAsNumber)), this.updateBar());
4610
+ super.attributeChangedCallback(e, t, n), (e === _.MUTED || e === _.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", Gl(this.range.valueAsNumber)), this.updateBar());
4624
4611
  }
4625
4612
  get volume() {
4626
4613
  var e;
@@ -4630,15 +4617,15 @@ var Kl = (e) => `${Math.round(e * 100)}%`, ql = /* @__PURE__ */ new WeakMap(), J
4630
4617
  return this.hasAttribute(_.MUTED);
4631
4618
  }
4632
4619
  };
4633
- Wl = Jl, e(Jl, "observedAttributes", [
4634
- ...b(Wl, "observedAttributes", Wl),
4620
+ Ul = ql, e(ql, "observedAttributes", [
4621
+ ...b(Ul, "observedAttributes", Ul),
4635
4622
  _.MUTED,
4636
4623
  _.VOLUME
4637
4624
  ]);
4638
4625
  //#endregion
4639
4626
  //#region ../../libs/player-next/src/registerComponents.ts
4640
- function Yl() {
4641
- customElements.define("vindral-controller", va), customElements.define("vindral-control-bar", Ln), customElements.define("vindral-advanced-rendition-menu", Ke), customElements.define("vindral-advanced-rendition-menu-list", at), customElements.define("vindral-play-button", es), customElements.define("vindral-mute-button", Jo), customElements.define("vindral-buffering-overlay", Mt), customElements.define("vindral-scroll-overlay", Ac), customElements.define("vindral-play-overlay", Ul), customElements.define("vindral-user-input-play-overlay", Pl), customElements.define("vindral-fullscreen-button", co), customElements.define("vindral-rendition-levels-menu", nc), customElements.define("vindral-rendition-levels-menu-list", dc), customElements.define("vindral-channel-grid-button", An), customElements.define("vindral-channel-grid", nn), customElements.define("vindral-channel-grid-item", Kt), customElements.define("vindral-pip-button", Zo), customElements.define("vindral-airplay-button", Tt), customElements.define("vindral-cast-button", It), customElements.define("vindral-cast-overlay", Ht), customElements.define("vindral-buffering-icon", kt), customElements.define("vindral-language-menu", mo), customElements.define("vindral-language-menu-list", ko), customElements.define("vindral-center-overlay", Il), customElements.define("vindral-message", Bl), customElements.define("vindral-volume-range", Jl), customElements.define("vindral-poster-overlay", Js), customElements.define("vindral-player", Ns), customElements.define("vindral-seek-bar", ul), customElements.define("vindral-live-button", Go);
4627
+ function Jl() {
4628
+ customElements.define("vindral-controller", _a), customElements.define("vindral-control-bar", Ln), customElements.define("vindral-advanced-rendition-menu", Ke), customElements.define("vindral-advanced-rendition-menu-list", at), customElements.define("vindral-play-button", $o), customElements.define("vindral-mute-button", qo), customElements.define("vindral-buffering-overlay", Mt), customElements.define("vindral-scroll-overlay", kc), customElements.define("vindral-play-overlay", Hl), customElements.define("vindral-user-input-play-overlay", Nl), customElements.define("vindral-fullscreen-button", so), customElements.define("vindral-rendition-levels-menu", nc), customElements.define("vindral-rendition-levels-menu-list", dc), customElements.define("vindral-channel-grid-button", An), customElements.define("vindral-channel-grid", nn), customElements.define("vindral-channel-grid-item", Kt), customElements.define("vindral-pip-button", Xo), customElements.define("vindral-airplay-button", Tt), customElements.define("vindral-cast-button", It), customElements.define("vindral-cast-overlay", Ht), customElements.define("vindral-buffering-icon", kt), customElements.define("vindral-language-menu", po), customElements.define("vindral-language-menu-list", Oo), customElements.define("vindral-center-overlay", Fl), customElements.define("vindral-message", zl), customElements.define("vindral-volume-range", ql), customElements.define("vindral-poster-overlay", Js), customElements.define("vindral-player", Ns), customElements.define("vindral-seek-bar", ll), customElements.define("vindral-live-button", Wo);
4642
4629
  }
4643
4630
  //#endregion
4644
- export { Yl as t };
4631
+ export { Jl as t };