@vindral/web-sdk 4.7.2-15-gf5e093ee → 4.7.2-16-gab36cbe5

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.
package/legacy.es.js CHANGED
@@ -12955,7 +12955,7 @@ var cw = class e {
12955
12955
  }
12956
12956
  };
12957
12957
  p(cw, "MAX_REMEMBERED_RENDITIONS", 32), H(), m(), R();
12958
- var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw = (e) => (t) => t > e, mw = 100, hw = 1e3, gw = 1e3, _w = 1e3, vw = 100, yw = 50, bw = {
12958
+ var lw, uw = 5e3, dw = .5, fw = 3e3, pw = () => it() || tt(), mw = (e) => e && pw() ? 100 : 0, hw = (e) => (t) => t > e, gw = 100, _w = 1e3, vw = 1e3, yw = 1e3, bw = 100, xw = 50, Sw = {
12959
12959
  seek: {
12960
12960
  toleranceMs: 200,
12961
12961
  toleranceMaxMs: 2500,
@@ -12987,7 +12987,7 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
12987
12987
  decayCooldownMultiplier: 3,
12988
12988
  decayCheckInterval: 15e3
12989
12989
  }
12990
- }, xw = class {
12990
+ }, Cw = class {
12991
12991
  get driftSamplesToCollect() {
12992
12992
  return this._driftSamplesToCollect;
12993
12993
  }
@@ -12995,8 +12995,8 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
12995
12995
  this._driftSamplesToCollect = e, this.driftSamples = new w(e);
12996
12996
  }
12997
12997
  constructor(e, t, n, r, i, a = !0) {
12998
- p(this, "emitter", void 0), p(this, "logger", void 0), p(this, "playbackSource", void 0), p(this, "bufferSource", void 0), p(this, "keyframeTimestamps", new w(10)), p(this, "lastSeekTime", void 0), p(this, "needsMediaSourceRecovery", !1), p(this, "lastAdjustmentTime", performance.now()), p(this, "lastDecayCheckTime", performance.now()), p(this, "syncInterval", void 0), p(this, "currentSyncIntervalMs", mw), p(this, "config", void 0), p(this, "state", void 0), p(this, "allowTimeshiftOnAudio", !1), p(this, "syncInfoToleranceMaxMs", 150), p(this, "syncInfoToleranceStep", 20), p(this, "seekOvershoot", void 0), p(this, "timers", lr.create()), p(this, "rtt", 0), p(this, "channelSyncInfo", /* @__PURE__ */ new Map()), p(this, "seekAdjustmentCount", 0), p(this, "timeshiftAdjustmentCount", 0), p(this, "syncInfoCorrectionCount", 0), p(this, "playbackRateAdjustmentCount", 0), p(this, "lastPlaybackRateChangeTime", 0), p(this, "seekAdjustmentTimestamps", []), p(this, "timeshiftAdjustmentTimestamps", []), p(this, "_driftSamplesToCollect", 5), p(this, "driftSamples", new w(this._driftSamplesToCollect)), p(this, "timestampOffset", void 0), p(this, "hasObservedBFrames", !1), p(this, "bFrameDetector", new cw()), p(this, "currentChannelId", void 0), p(this, "highestSeenTimestamps", /* @__PURE__ */ new Map()), p(this, "isSuspended", !1), p(this, "isSyncAdjustmentActivated", !1), p(this, "queuedTimeshift", !1), p(this, "playbackState", void 0), p(this, "hasPerformedRecoverySeekInCurrentRecoveryState", !1), p(this, "shouldSeekAfterBuffering", !1), p(this, "shouldSeekWhileStuck", !1), p(this, "hasPerformedStuckSeekInCurrentStillness", !1), p(this, "positionSetBySeek", void 0), p(this, "lastPlayheadPosition", void 0), p(this, "lastPlayheadProgressAt", performance.now()), p(this, "usesMse", void 0), p(this, "load", () => {
12999
- this.emitter.on("page active", this.onPageActive), this.emitter.on("pageshow", this.onPageShow), this.setSyncInterval(document.visibilityState === "hidden" ? hw : mw);
12998
+ p(this, "emitter", void 0), p(this, "logger", void 0), p(this, "playbackSource", void 0), p(this, "bufferSource", void 0), p(this, "keyframeTimestamps", new w(10)), p(this, "lastSeekTime", void 0), p(this, "timeshiftDeferralStartedAt", void 0), p(this, "needsMediaSourceRecovery", !1), p(this, "lastAdjustmentTime", performance.now()), p(this, "lastDecayCheckTime", performance.now()), p(this, "syncInterval", void 0), p(this, "currentSyncIntervalMs", gw), p(this, "config", void 0), p(this, "state", void 0), p(this, "allowTimeshiftOnAudio", !1), p(this, "syncInfoToleranceMaxMs", 150), p(this, "syncInfoToleranceStep", 20), p(this, "seekOvershoot", void 0), p(this, "timers", lr.create()), p(this, "rtt", 0), p(this, "channelSyncInfo", /* @__PURE__ */ new Map()), p(this, "seekAdjustmentCount", 0), p(this, "timeshiftAdjustmentCount", 0), p(this, "syncInfoCorrectionCount", 0), p(this, "playbackRateAdjustmentCount", 0), p(this, "lastPlaybackRateChangeTime", 0), p(this, "seekAdjustmentTimestamps", []), p(this, "timeshiftAdjustmentTimestamps", []), p(this, "_driftSamplesToCollect", 5), p(this, "driftSamples", new w(this._driftSamplesToCollect)), p(this, "timestampOffset", void 0), p(this, "hasObservedBFrames", !1), p(this, "bFrameDetector", new cw()), p(this, "currentChannelId", void 0), p(this, "highestSeenTimestamps", /* @__PURE__ */ new Map()), p(this, "isSuspended", !1), p(this, "isSyncAdjustmentActivated", !1), p(this, "queuedTimeshift", !1), p(this, "playbackState", void 0), p(this, "hasPerformedRecoverySeekInCurrentRecoveryState", !1), p(this, "shouldSeekAfterBuffering", !1), p(this, "shouldSeekWhileStuck", !1), p(this, "hasPerformedStuckSeekInCurrentStillness", !1), p(this, "positionSetBySeek", void 0), p(this, "lastPlayheadPosition", void 0), p(this, "lastPlayheadProgressAt", performance.now()), p(this, "usesMse", void 0), p(this, "load", () => {
12999
+ this.emitter.on("page active", this.onPageActive), this.emitter.on("pageshow", this.onPageShow), this.setSyncInterval(document.visibilityState === "hidden" ? _w : gw);
13000
13000
  }), p(this, "unload", () => {
13001
13001
  this.logger.debug("Unloading module..."), this.emitter.off("rtt", this.updateRtt), this.emitter.off("playback state", this.onPlaybackState), this.emitter.off("page active", this.onPageActive), this.emitter.off("pageshow", this.onPageShow), this.emitter.off("buffers flushed", this.clearBFrameLatch), this.emitter.off("recovered from media error", this.onMediaSourceRecovered), this.clearSyncInterval(), this.timers.unload(), this.logger.debug("Unloaded module");
13002
13002
  }), p(this, "suspend", () => {
@@ -13014,7 +13014,7 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13014
13014
  var e;
13015
13015
  return (e = this.timestampOffset) == null ? 0 : e;
13016
13016
  }), p(this, "getCurrentChannelId", () => this.currentChannelId), p(this, "resetSyncState", () => {
13017
- this.state.seekToleranceMultiplier = 1, this.state.timeshiftToleranceMultiplier = 1, this.seekAdjustmentTimestamps = [], this.timeshiftAdjustmentTimestamps = [], this.driftSamples.clear(), this.playbackState = void 0, this.hasPerformedRecoverySeekInCurrentRecoveryState = !1, this.hasPerformedStuckSeekInCurrentStillness = !1, this.clearRecoverySeekFlags();
13017
+ this.state.seekToleranceMultiplier = 1, this.state.timeshiftToleranceMultiplier = 1, this.seekAdjustmentTimestamps = [], this.timeshiftAdjustmentTimestamps = [], this.driftSamples.clear(), this.timeshiftDeferralStartedAt = void 0, this.playbackState = void 0, this.hasPerformedRecoverySeekInCurrentRecoveryState = !1, this.hasPerformedStuckSeekInCurrentStillness = !1, this.clearRecoverySeekFlags();
13018
13018
  }), p(this, "getEffectiveSeekToleranceMs", () => this.config.timeshift.enabled ? this.config.seek.toleranceMs * 2 : this.config.seek.toleranceMs), p(this, "isTimeshiftUnsafe", () => this.usesMse && (this.hasObservedBFrames || this.bFrameDetector.isAwaitingReorderAssessment)), p(this, "clearBFrameLatch", () => {
13019
13019
  this.hasObservedBFrames = !1;
13020
13020
  }), p(this, "latchBFramesIfDetected", () => {
@@ -13046,8 +13046,8 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13046
13046
  t = Math.min(t, e);
13047
13047
  });
13048
13048
  let n = e.timestamp / e.timescale * 1e3;
13049
- this.currentChannelId = e.channelId, this.timestampOffset = n - t;
13050
- } else (n || this.allowTimeshiftOnAudio) && this.tryTimeshiftSync();
13049
+ this.currentChannelId = e.channelId, this.timestampOffset = n - t, this.timeshiftDeferralStartedAt = void 0;
13050
+ } else (n || this.allowTimeshiftOnAudio) && this.tryTimeshiftSync(this.usesMse);
13051
13051
  let r = this.timestampOffset * e.timescale / 1e3;
13052
13052
  return e.timestamp -= r, n && this.keyframeTimestamps.push(e.timestamp / e.timescale * 1e3), this.highestSeenTimestamps.set(e.type, Math.max((t = this.highestSeenTimestamps.get(e.type)) == null ? 0 : t, e.timestamp / e.timescale * 1e3)), e;
13053
13053
  }), p(this, "processFragment", (e, t, n) => {
@@ -13068,12 +13068,12 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13068
13068
  let t = 2 ** 53 - 1;
13069
13069
  console.assert(this.highestSeenTimestamps.size !== 0, "no known timestamps"), this.highestSeenTimestamps.forEach((e) => {
13070
13070
  t = Math.min(t, e);
13071
- }), this.currentChannelId = e;
13072
- } else (a || this.allowTimeshiftOnAudio) && this.tryTimeshiftSync();
13071
+ }), this.currentChannelId = e, this.timeshiftDeferralStartedAt = void 0;
13072
+ } else (a || this.allowTimeshiftOnAudio) && this.tryTimeshiftSync(this.usesMse);
13073
13073
  let o = this.timestampOffset * t.timescale() / 1e3;
13074
13074
  return t.updateBaseMediaDecodeTime(t.baseMediaDecodeTime() - o), a && this.keyframeTimestamps.push(t.baseMediaDecodeTime() / t.timescale() * 1e3), this.highestSeenTimestamps.set(i, Math.max((r = this.highestSeenTimestamps.get(i)) == null ? 0 : r, t.baseMediaDecodeTime() / t.timescale() * 1e3)), t;
13075
13075
  }), p(this, "forceSeek", () => {
13076
- this.logger.debug("Forcing seek", { amount: this.serverCurrentTime - this.playbackSource.currentTime }), this.clearRecoverySeekFlags(), this.playbackSource.currentTime = this.serverCurrentTime, this.positionSetBySeek = this.playbackSource.currentTime;
13076
+ this.logger.debug("Forcing seek", { amount: this.serverCurrentTime - this.playbackSource.currentTime }), this.clearRecoverySeekFlags(), this.playbackSource.currentTime = this.serverCurrentTime, this.timeshiftDeferralStartedAt = void 0, this.positionSetBySeek = this.playbackSource.currentTime;
13077
13077
  }), p(this, "forceTimeshift", () => {
13078
13078
  this.queuedTimeshift = !0;
13079
13079
  }), p(this, "setPlaybackRateAdjustmentEnabled", (e) => {
@@ -13160,31 +13160,47 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13160
13160
  })), !0;
13161
13161
  }
13162
13162
  return !t && n < this.config.playbackRate.startDiff ? !0 : t;
13163
- }), p(this, "tryTimeshiftSync", () => {
13164
- var e;
13163
+ }), p(this, "tryTimeshiftSync", (e = !1) => {
13164
+ var t;
13165
13165
  if (!this.config.timeshift.enabled) return;
13166
13166
  if (this.isTimeshiftUnsafe()) {
13167
13167
  this.queuedTimeshift && this.hasObservedBFrames && (this.queuedTimeshift = !1, this.logger.info("Dropping forced timeshift: suppressed for B-frame stream, use forceSeek to resync"));
13168
13168
  return;
13169
13169
  }
13170
13170
  if (this.hasPendingRecoverySeek() || !this.isAllowedToSync() || this.playbackSource.playbackRate !== 1) return;
13171
- let t = (e = this.drift) == null ? 0 : e;
13172
- this.driftSamples.push(t);
13173
- let n = Ut(this.driftSamples.items());
13174
- if (this.queuedTimeshift && n > 0) {
13175
- this.queuedTimeshift = !1, this.applyTimeshift(n);
13171
+ let n = (t = this.drift) == null ? 0 : t;
13172
+ this.driftSamples.push(n);
13173
+ let r = Ut(this.driftSamples.items());
13174
+ if (this.queuedTimeshift && r > 0) {
13175
+ this.queuedTimeshift = !1, this.applyTimeshift(r);
13176
+ return;
13177
+ }
13178
+ if (r >= this.getEffectiveSeekToleranceMs()) return;
13179
+ if (r < this.currentTimeshiftToleranceMs()) {
13180
+ this.timeshiftDeferralStartedAt = void 0;
13176
13181
  return;
13177
13182
  }
13178
- if (n >= this.getEffectiveSeekToleranceMs() || n < this.currentTimeshiftToleranceMs()) return;
13179
- let r = performance.now() - this.config.seek.timeoutMs * this.state.timeshiftToleranceMultiplier, i = this.timeshiftAdjustmentTimestamps.filter(pw(r)).length;
13180
- if (i && this.state.timeshiftToleranceMultiplier > 2) {
13183
+ let i = performance.now() - this.config.seek.timeoutMs * this.state.timeshiftToleranceMultiplier, a = this.timeshiftAdjustmentTimestamps.filter(hw(i)).length;
13184
+ if (a && this.state.timeshiftToleranceMultiplier > 2) {
13181
13185
  this.logger.debug("Too many timeshifts within sliding window", {
13182
- timeshiftCooldownThreshold: r,
13183
- recentTimeshiftCount: i
13186
+ timeshiftCooldownThreshold: i,
13187
+ recentTimeshiftCount: a
13184
13188
  });
13185
13189
  return;
13186
13190
  }
13187
- this.applyTimeshift(n);
13191
+ if (e) {
13192
+ var o, s;
13193
+ let e = this.playbackSource.currentTime, t = (o = (s = this.bufferSource).getBufferedEndAt) == null ? void 0 : o.call(s, e), n = Math.max(0, (t == null ? e : t) - e);
13194
+ if (n - r < this.bufferSource.getTargetBufferTime() * dw) {
13195
+ let e = performance.now();
13196
+ if (this.timeshiftDeferralStartedAt === void 0 && (this.timeshiftDeferralStartedAt = e, this.logger.debug("Deferring timeshift while buffered ahead is thin", {
13197
+ drift: r,
13198
+ bufferedAhead: n
13199
+ })), e - this.timeshiftDeferralStartedAt < fw) return;
13200
+ }
13201
+ this.timeshiftDeferralStartedAt !== void 0 && this.logger.debug("Releasing timeshift deferral", { deferredMs: performance.now() - this.timeshiftDeferralStartedAt });
13202
+ }
13203
+ this.applyTimeshift(r);
13188
13204
  }), p(this, "clearRecoverySeekFlags", () => {
13189
13205
  this.shouldSeekAfterBuffering = !1, this.shouldSeekWhileStuck = !1;
13190
13206
  }), p(this, "hasActiveRecoveryTrigger", () => this.playbackState === "buffering"), p(this, "hasPendingRecoverySeek", () => (this.refreshRecoverySeekState(), this.getRecoverySeekReason() !== void 0)), p(this, "refreshRecoverySeekState", () => {
@@ -13200,20 +13216,20 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13200
13216
  let n = (e = (t = this.bufferSource).getNextBufferedRangeStart) == null ? void 0 : e.call(t, this.playbackSource.currentTime);
13201
13217
  return this.shouldSeekAfterBuffering = n !== void 0, n;
13202
13218
  }), p(this, "observePlayheadProgress", () => {
13203
- let e = this.playbackSource.currentTime, t = e !== this.lastPlayheadPosition, n = t && (this.positionSetBySeek === void 0 || e - this.positionSetBySeek > yw);
13219
+ let e = this.playbackSource.currentTime, t = e !== this.lastPlayheadPosition, n = t && (this.positionSetBySeek === void 0 || e - this.positionSetBySeek > xw);
13204
13220
  this.positionSetBySeek = void 0, (n || this.playbackSource.isPaused) && (this.hasPerformedStuckSeekInCurrentStillness = !1), (t || this.playbackSource.isPaused || this.isSeeking()) && (this.lastPlayheadPosition = e, this.lastPlayheadProgressAt = performance.now());
13205
13221
  }), p(this, "isPlayheadStuckInBuffer", () => {
13206
13222
  var e, t;
13207
- if (performance.now() - this.lastPlayheadProgressAt < gw) return !1;
13223
+ if (performance.now() - this.lastPlayheadProgressAt < vw) return !1;
13208
13224
  let n = this.playbackSource.currentTime, r = (e = (t = this.bufferSource).getBufferedEndAt) == null ? void 0 : e.call(t, n);
13209
- return r !== void 0 && r - n >= _w;
13225
+ return r !== void 0 && r - n >= yw;
13210
13226
  }), p(this, "getRecoverySeekReason", () => {
13211
13227
  if (this.needsMediaSourceRecovery) return "media source reopen";
13212
13228
  if (this.shouldSeekWhileStuck) return "stuck in buffer";
13213
13229
  if (this.shouldSeekAfterBuffering) return "buffering";
13214
13230
  }), p(this, "shouldSkipNormalSeek", (e) => e < 0 && -e < this.currentAheadToleranceMs() || e > 0 && e < this.currentSeekToleranceMs() || Math.abs(e) < 1 ? !0 : !this.isAllowedToSync()), p(this, "shouldDeferRecoverySeek", (e, t) => t !== void 0 && t > e), p(this, "buildStuckInBufferSeekPlan", () => {
13215
13231
  var e, t;
13216
- let n = this.playbackSource.currentTime, r = (e = (t = this.bufferSource).getBufferedEndAt) == null ? void 0 : e.call(t, n), i = n + Math.max(this.seekOvershoot, vw);
13232
+ let n = this.playbackSource.currentTime, r = (e = (t = this.bufferSource).getBufferedEndAt) == null ? void 0 : e.call(t, n), i = n + Math.max(this.seekOvershoot, bw);
13217
13233
  if (r === void 0 || i >= r) return;
13218
13234
  let a = this.findKeyframeCloseToTimestamp(i);
13219
13235
  return {
@@ -13261,7 +13277,7 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13261
13277
  let i = performance.now();
13262
13278
  this.lastSeekTime = i, t && t !== "stuck in buffer" && (this.hasPerformedRecoverySeekInCurrentRecoveryState = !0), this.clearRecoverySeekFlags(), this.driftSamples.clear(), this.seekAdjustmentTimestamps.push(i), this.seekAdjustmentCount++;
13263
13279
  let a = t === "stuck in buffer" ? 0 : Math.min(n, this.bufferSource.getTargetBufferTime());
13264
- this.playbackSource.currentTime = r.targetCurrentTime + a, this.positionSetBySeek = this.playbackSource.currentTime, t === "stuck in buffer" && (this.hasPerformedStuckSeekInCurrentStillness = !0, this.lastPlayheadPosition = this.playbackSource.currentTime, this.positionSetBySeek = void 0), this.applyBackoff();
13280
+ this.playbackSource.currentTime = r.targetCurrentTime + a, this.timeshiftDeferralStartedAt = void 0, this.positionSetBySeek = this.playbackSource.currentTime, t === "stuck in buffer" && (this.hasPerformedStuckSeekInCurrentStillness = !0, this.lastPlayheadPosition = this.playbackSource.currentTime, this.positionSetBySeek = void 0), this.applyBackoff();
13265
13281
  }), p(this, "applyTimeshift", (e) => {
13266
13282
  var t;
13267
13283
  let n = (t = e == null ? this.drift : e) == null ? 0 : t;
@@ -13273,7 +13289,7 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13273
13289
  currentTime: this.playbackSource.currentTime,
13274
13290
  rtt: this.rtt,
13275
13291
  timeshiftToleranceMultiplier: this.state.timeshiftToleranceMultiplier
13276
- }), this.timestampOffset += r;
13292
+ }), this.timestampOffset += r, this.timeshiftDeferralStartedAt = void 0;
13277
13293
  let i = performance.now();
13278
13294
  if (this.lastSeekTime = i, this.lastAdjustmentTime = i, !this.playbackSource.isPaused && (this.driftSamples.clear(), this.timeshiftAdjustmentTimestamps.push(i), this.timeshiftAdjustmentCount++, this.config.backoff.enabled && this.timeshiftAdjustmentCount > 0 && this.timeshiftAdjustmentCount % this.config.timeshift.backoffEveryN === 0)) {
13279
13295
  let e = this.state.timeshiftToleranceMultiplier, t = this.config.timeshift.toleranceMaxMs / this.config.timeshift.toleranceMs;
@@ -13287,10 +13303,14 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13287
13303
  var e;
13288
13304
  this.tryDecayMultipliers(), this.refreshRecoverySeekState();
13289
13305
  let t = (e = this.drift) == null ? 0 : e, n = this.getRecoverySeekReason(), r = n !== void 0;
13290
- if (!r && !this.isAllowedToSyncIgnoringCooldown() || r && (this.isSeeking() || !this.currentChannelId || this.isSuspended || this.playbackSource.isPaused) || (this.driftSamples.push(t), !this.isSeekCooldownExpired()) || !r && this.driftSamples.items().length < this.driftSamplesToCollect && Math.abs(t) < 2e3) return;
13306
+ if (!r && !this.isAllowedToSyncIgnoringCooldown()) {
13307
+ this.timeshiftDeferralStartedAt = void 0;
13308
+ return;
13309
+ }
13310
+ if (r && (this.isSeeking() || !this.currentChannelId || this.isSuspended || this.playbackSource.isPaused) || (this.driftSamples.push(t), Ut(this.driftSamples.items()) < this.currentTimeshiftToleranceMs() && (this.timeshiftDeferralStartedAt = void 0), !this.isSeekCooldownExpired()) || !r && this.driftSamples.items().length < this.driftSamplesToCollect && Math.abs(t) < 2e3) return;
13291
13311
  let i = r ? t : Ut(this.driftSamples.items());
13292
13312
  if (!r && this.tryPlaybackRateSync(i) || !r && this.shouldSkipNormalSeek(i)) return;
13293
- let a = performance.now() - this.config.seek.timeoutMs * this.state.seekToleranceMultiplier, o = this.seekAdjustmentTimestamps.filter(pw(a)).length, s = this.currentEmergencySeekToleranceMs(), c = i > 0 && i >= s;
13313
+ let a = performance.now() - this.config.seek.timeoutMs * this.state.seekToleranceMultiplier, o = this.seekAdjustmentTimestamps.filter(hw(a)).length, s = this.currentEmergencySeekToleranceMs(), c = i > 0 && i >= s;
13294
13314
  if (o && this.state.seekToleranceMultiplier > 2 && !r && !c) {
13295
13315
  this.logger.debug("Too many seek adjustments within sliding window", {
13296
13316
  seekCooldownThreshold: a,
@@ -13319,9 +13339,9 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13319
13339
  return;
13320
13340
  }
13321
13341
  }), p(this, "onPageActive", (e) => {
13322
- this.setSyncInterval(e ? mw : hw), e && this.onSync();
13342
+ this.setSyncInterval(e ? gw : _w), e && this.onSync();
13323
13343
  }), p(this, "onPageShow", (e) => {
13324
- e.persisted && (this.setSyncInterval(document.visibilityState === "hidden" ? hw : mw), this.onSync());
13344
+ e.persisted && (this.setSyncInterval(document.visibilityState === "hidden" ? _w : gw), this.onSync());
13325
13345
  }), p(this, "setSyncInterval", (e) => {
13326
13346
  this.syncInterval !== void 0 && this.currentSyncIntervalMs === e || (this.clearSyncInterval(), this.currentSyncIntervalMs = e, this.syncInterval = this.timers.setInterval(this.onSync, e));
13327
13347
  }), p(this, "clearSyncInterval", () => {
@@ -13332,11 +13352,11 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13332
13352
  let t = n >= e - this.config.seek.keyframeSearchBeforeMs, r = n <= e + this.config.seek.keyframeSearchAfterMs;
13333
13353
  if (t && r) return n;
13334
13354
  }
13335
- }), this.logger = t, this.emitter = e, this.playbackSource = n, this.bufferSource = r, this.usesMse = a, this.seekOvershoot = fw(a), this.config = {
13336
- seek: L({}, bw.seek),
13337
- timeshift: L({}, bw.timeshift),
13338
- playbackRate: L({}, bw.playbackRate),
13339
- backoff: L({}, bw.backoff)
13355
+ }), this.logger = t, this.emitter = e, this.playbackSource = n, this.bufferSource = r, this.usesMse = a, this.seekOvershoot = mw(a), this.config = {
13356
+ seek: L({}, Sw.seek),
13357
+ timeshift: L({}, Sw.timeshift),
13358
+ playbackRate: L({}, Sw.playbackRate),
13359
+ backoff: L({}, Sw.backoff)
13340
13360
  }, this.config.timeshift.enabled = i, a || (this.config.seek.toleranceMs = 50, this.config.timeshift.toleranceMs = 20, this.config.seek.aheadToleranceMs = 40), this.state = {
13341
13361
  seekToleranceMultiplier: 1,
13342
13362
  timeshiftToleranceMultiplier: 1
@@ -13398,8 +13418,8 @@ var lw, uw = 5e3, dw = () => it() || tt(), fw = (e) => e && dw() ? 100 : 0, pw =
13398
13418
  return this.serverCurrentTime - this.playbackSource.currentTime;
13399
13419
  }
13400
13420
  };
13401
- lw = xw, p(xw, "create", (e, t, n, r, i, a = !0) => new lw(e, t, n, r, i, a)), H(), R(), m(), P();
13402
- var Sw, Cw = {
13421
+ lw = Cw, p(Cw, "create", (e, t, n, r, i, a = !0) => new lw(e, t, n, r, i, a)), H(), R(), m(), P();
13422
+ var ww, Tw = {
13403
13423
  enabled: !0,
13404
13424
  interval: 3e4,
13405
13425
  includeErrors: !0,
@@ -13408,11 +13428,11 @@ var Sw, Cw = {
13408
13428
  maxRetries: 10,
13409
13429
  maxErrorReports: 50,
13410
13430
  maxEvents: 50
13411
- }, ww = (e, t) => L(L({}, t), {}, {
13431
+ }, Ew = (e, t) => L(L({}, t), {}, {
13412
13432
  type: e,
13413
13433
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
13414
13434
  discriminator: "web"
13415
- }), Tw = class {
13435
+ }), Dw = class {
13416
13436
  constructor(e, t, n, r) {
13417
13437
  var i = this;
13418
13438
  p(this, "logger", void 0), p(this, "timers", new lr()), p(this, "emitter", void 0), p(this, "options", void 0), p(this, "parentContext", void 0), p(this, "unsentLines", new w(100)), p(this, "retries", 0), p(this, "errorCount", 0), p(this, "eventCount", 0), p(this, "statsCount", 0), p(this, "unload", () => {
@@ -13429,7 +13449,7 @@ var Sw, Cw = {
13429
13449
  initiator: "interval"
13430
13450
  }, n = {}) => {
13431
13451
  if (!this.options.includeStats) return;
13432
- let r = this.parentContext.getStatistics(), i = ww("stats", L(L(L({}, n), r), {}, {
13452
+ let r = this.parentContext.getStatistics(), i = Ew("stats", L(L(L({}, n), r), {}, {
13433
13453
  isFinal: e,
13434
13454
  initiator: t,
13435
13455
  count: this.statsCount++
@@ -13437,7 +13457,7 @@ var Sw, Cw = {
13437
13457
  this.unsentLines.push(i);
13438
13458
  }), p(this, "addEvent", (e) => {
13439
13459
  if (!this.options.includeEvents || this.eventCount > this.options.maxEvents) return;
13440
- let t = ww("event", L(L({}, this.parentContext.getStatistics()), e));
13460
+ let t = Ew("event", L(L({}, this.parentContext.getStatistics()), e));
13441
13461
  this.eventCount++, this.unsentLines.push(t);
13442
13462
  }), p(this, "getStatistics", () => ({ errorCount: this.errorCount })), p(this, "send", function() {
13443
13463
  var e = N(function* (e) {
@@ -13482,12 +13502,12 @@ var Sw, Cw = {
13482
13502
  let { includeErrors: t, maxErrorReports: n } = this.options;
13483
13503
  if (!(e instanceof U) || e.code() === "channel_not_live" || !t || (this.errorCount++, this.errorCount > n)) return;
13484
13504
  let r = this.parentContext.getStatistics();
13485
- this.unsentLines.push(ww("error", L(L({}, r), e.toStringifiable())));
13486
- }), this.logger = e, this.emitter = t, this.options = L(L({}, Cw), n), this.parentContext = r;
13505
+ this.unsentLines.push(Ew("error", L(L({}, r), e.toStringifiable())));
13506
+ }), this.logger = e, this.emitter = t, this.options = L(L({}, Tw), n), this.parentContext = r;
13487
13507
  }
13488
13508
  };
13489
- Sw = Tw, p(Tw, "create", (e, t, n, r) => new Sw(e, t, n, r)), H(), m();
13490
- var Ew, Dw = class {
13509
+ ww = Dw, p(Dw, "create", (e, t, n, r) => new ww(e, t, n, r)), H(), m();
13510
+ var Ow, kw = class {
13491
13511
  constructor(e, t, n) {
13492
13512
  p(this, "logger", void 0), p(this, "elements", void 0), p(this, "documentState", void 0), p(this, "timers", new lr()), p(this, "unload", () => {
13493
13513
  this.timers.unload();
@@ -13498,8 +13518,8 @@ var Ew, Dw = class {
13498
13518
  };
13499
13519
  //#endregion
13500
13520
  //#region ../../libs/web-sdk/src/OptionsProvider.ts
13501
- Ew = Dw, p(Dw, "create", (e, t, n) => new Ew(e, t, n)), m();
13502
- var Ow = [
13521
+ Ow = kw, p(kw, "create", (e, t, n) => new Ow(e, t, n)), m();
13522
+ var Aw = [
13503
13523
  "minBufferTime",
13504
13524
  "maxBufferTime",
13505
13525
  "burstEnabled",
@@ -13508,10 +13528,10 @@ var Ow = [
13508
13528
  "offscreenCanvasEnabled",
13509
13529
  "videoCodecs"
13510
13530
  ];
13511
- function kw(e) {
13512
- return Ow.includes(e);
13531
+ function jw(e) {
13532
+ return Aw.includes(e);
13513
13533
  }
13514
- var Aw = class {
13534
+ var Mw = class {
13515
13535
  constructor(e) {
13516
13536
  p(this, "options", void 0), p(this, "overrides", /* @__PURE__ */ new Map()), this.options = e;
13517
13537
  }
@@ -13525,7 +13545,7 @@ var Aw = class {
13525
13545
  this.options[e] = t;
13526
13546
  }
13527
13547
  get(e, t) {
13528
- if (t && kw(e)) {
13548
+ if (t && jw(e)) {
13529
13549
  var n;
13530
13550
  let r = (n = this.overrides.get(t)) == null ? void 0 : n[e];
13531
13551
  if (r !== void 0) return r;
@@ -13540,7 +13560,7 @@ var Aw = class {
13540
13560
  //#endregion
13541
13561
  //#region ../../libs/web-sdk/src/processSampleTimestamps.ts
13542
13562
  R();
13543
- var jw = 6, Mw = (e) => {
13563
+ var Nw = 6, Pw = (e) => {
13544
13564
  let t = [e], n = 0, r = 0, i = !1, a = (e, t) => {
13545
13565
  var i, a;
13546
13566
  if (e.flags && kl(e.flags)) {
@@ -13552,7 +13572,7 @@ var jw = 6, Mw = (e) => {
13552
13572
  return u > 0 && (r = u), L(L({}, e), {}, { duration: u > 0 ? u : r });
13553
13573
  };
13554
13574
  return (e, n = !1) => {
13555
- if (e.flags && kl(e.flags) && n && (i = !i), !(n && t.length < jw && i) && t.length > 0) {
13575
+ if (e.flags && kl(e.flags) && n && (i = !i), !(n && t.length < Nw && i) && t.length > 0) {
13556
13576
  i = !1;
13557
13577
  let n = e;
13558
13578
  for (let e = t.length - 1; e > 0; e--) {
@@ -13565,13 +13585,13 @@ var jw = 6, Mw = (e) => {
13565
13585
  }
13566
13586
  return t.push(e), [];
13567
13587
  };
13568
- }, Nw = ["mse", "wasm"], Pw = (e) => e == null ? Nw : e, Fw = (e) => {
13588
+ }, Fw = ["mse", "wasm"], Iw = (e) => e == null ? Fw : e, Lw = (e) => {
13569
13589
  if (!e) return !1;
13570
13590
  let t = e.headers && Object.keys(e.headers).length > 0, n = e.queryParams && Object.keys(e.queryParams).length > 0;
13571
13591
  return !!(t || n);
13572
- }, Iw = (e, t, n) => {
13573
- if (Fw(n)) return "mse";
13574
- let r = Pw(e);
13592
+ }, Rw = (e, t, n) => {
13593
+ if (Lw(n)) return "mse";
13594
+ let r = Iw(e);
13575
13595
  for (let e of r) switch (e) {
13576
13596
  case "mse":
13577
13597
  if (t) return "mse";
@@ -13586,7 +13606,7 @@ var jw = 6, Mw = (e) => {
13586
13606
  //#endregion
13587
13607
  //#region ../../libs/web-sdk/src/sampleFromMessage.ts
13588
13608
  R();
13589
- var Lw = (e, t, n) => {
13609
+ var zw = (e, t, n) => {
13590
13610
  if (zr(t)) return L(L({}, e), {}, {
13591
13611
  type: "video",
13592
13612
  codec: t.codec,
@@ -13611,12 +13631,12 @@ var Lw = (e, t, n) => {
13611
13631
  //#endregion
13612
13632
  //#region ../../libs/web-sdk/src/statisticsRounding.ts
13613
13633
  R();
13614
- var Rw = ({ average: e, last: t, max: n, min: r }) => ({
13634
+ var Bw = ({ average: e, last: t, max: n, min: r }) => ({
13615
13635
  average: Math.round(e),
13616
13636
  last: Math.round(t),
13617
13637
  max: Math.round(n),
13618
13638
  min: Math.round(r)
13619
- }), zw = [
13639
+ }), Vw = [
13620
13640
  "timeSpentBuffering",
13621
13641
  "timePerBufferingEvent",
13622
13642
  "drift",
@@ -13628,28 +13648,28 @@ var Rw = ({ average: e, last: t, max: n, min: r }) => ({
13628
13648
  "videoKeyframeIntervalMs",
13629
13649
  "timeToConnected",
13630
13650
  "mediaSourceOpenTime"
13631
- ], Bw = [
13651
+ ], Hw = [
13632
13652
  "videoDecodeTime",
13633
13653
  "audioDecodeTime",
13634
13654
  "videoTransportTime",
13635
13655
  "rtt"
13636
- ], Vw = (e) => typeof e == "object" && !!e && "min" in e && "max" in e && "average" in e && "last" in e, Hw = (e) => {
13656
+ ], Uw = (e) => typeof e == "object" && !!e && "min" in e && "max" in e && "average" in e && "last" in e, Ww = (e) => {
13637
13657
  let t = L({}, e);
13638
- for (let e of zw) {
13658
+ for (let e of Vw) {
13639
13659
  let n = t[e];
13640
13660
  typeof n == "number" && (t[e] = Math.round(n));
13641
13661
  }
13642
- for (let e of Bw) {
13662
+ for (let e of Hw) {
13643
13663
  let n = t[e];
13644
- Vw(n) && (t[e] = Rw(n));
13664
+ Uw(n) && (t[e] = Bw(n));
13645
13665
  }
13646
13666
  return t;
13647
13667
  };
13648
13668
  //#endregion
13649
13669
  //#region ../../libs/web-sdk/src/validateOptions.ts
13650
13670
  R();
13651
- var Uw = (e, t) => e && typeof e == "object" && t in e, Ww = (e) => !(typeof e != "object" || !Uw(e, "channelId") || typeof e.channelId != "string" || !Uw(e, "url") || typeof e.url != "string" || e.channelId.length === 0 || e.url.length === 0), Gw = (e) => {
13652
- if (!Ww(e)) throw new U("Invalid options", {
13671
+ var Gw = (e, t) => e && typeof e == "object" && t in e, Kw = (e) => !(typeof e != "object" || !Gw(e, "channelId") || typeof e.channelId != "string" || !Gw(e, "url") || typeof e.url != "string" || e.channelId.length === 0 || e.url.length === 0), qw = (e) => {
13672
+ if (!Kw(e)) throw new U("Invalid options", {
13653
13673
  isFatal: !0,
13654
13674
  code: "invalid_options"
13655
13675
  });
@@ -13658,7 +13678,7 @@ var Uw = (e, t) => e && typeof e == "object" && t in e, Ww = (e) => !(typeof e !
13658
13678
  let n = t;
13659
13679
  n[e] === void 0 && delete n[e];
13660
13680
  }), t;
13661
- }, Kw = (e) => {
13681
+ }, Jw = (e) => {
13662
13682
  if (typeof e != "object" || !e) throw Error("not an object");
13663
13683
  if (!("video" in e)) throw Error("missing video in subscription");
13664
13684
  if (!("audio" in e)) throw Error("missing audio in subscription");
@@ -13666,7 +13686,7 @@ var Uw = (e, t) => e && typeof e == "object" && t in e, Ww = (e) => !(typeof e !
13666
13686
  return !0;
13667
13687
  };
13668
13688
  vo(), Dl(), vS(), m(), P();
13669
- var qw = class {
13689
+ var Yw = class {
13670
13690
  constructor(e) {
13671
13691
  var t = this;
13672
13692
  p(this, "cache", /* @__PURE__ */ new Map()), p(this, "inFlight", /* @__PURE__ */ new Map()), p(this, "checkVideoSupport", function() {
@@ -13729,10 +13749,10 @@ var qw = class {
13729
13749
  }
13730
13750
  };
13731
13751
  H(), m(), E(), R(), P(), M(), A();
13732
- var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PURE__ */ new WeakMap(), Qw = /* @__PURE__ */ new WeakMap(), $w = class e extends nn {
13752
+ var Xw = 1e4, Zw = 1280 * 720, Qw = /* @__PURE__ */ new WeakMap(), $w = /* @__PURE__ */ new WeakMap(), eT = /* @__PURE__ */ new WeakMap(), tT = class e extends nn {
13733
13753
  constructor(t) {
13734
13754
  var n, r, i;
13735
- super(), n = this, p(this, "pictureInPicture", void 0), p(this, "drm", void 0), p(this, "browser", pt()), p(this, "options", void 0), p(this, "element", void 0), p(this, "playbackSource", void 0), p(this, "emitter", new nn()), p(this, "logger", void 0), p(this, "modules", void 0), p(this, "clientIp", void 0), p(this, "sessionId", void 0), p(this, "clientId", Er()), p(this, "_channels", []), p(this, "createdAt", performance.now()), p(this, "offscreenCanvasElement", void 0), p(this, "webCodecsRenditionSupport", void 0), p(this, "hasCalledConnect", !1), p(this, "hasRequestedAudioSession", !1), p(this, "isUserPaused", !1), p(this, "isMediaElementPaused", !1), p(this, "latestEmittedLanguages", []), p(this, "wakeLock", void 0), p(this, "pool", new re(e.MAX_POOL_SIZE)), p(this, "userAgentInformation", new wr()), p(this, "encryptedMediaExtensions", void 0), T(this, Xw, 0), T(this, Zw, []), p(this, "sampleProcessingSesssions", /* @__PURE__ */ new Map()), p(this, "unbackedSamplesWarned", new gS()), p(this, "unextractableSamplesWarned", new gS()), p(this, "sizes", /* @__PURE__ */ new Map()), p(this, "isSuspended", !0), p(this, "inactivityDisconnectInterval", void 0), p(this, "visiblePauseTimeout", void 0), p(this, "offscreenSubtitleInterval", void 0), T(this, Qw, void 0), p(this, "attach", (e) => {
13755
+ super(), n = this, p(this, "pictureInPicture", void 0), p(this, "drm", void 0), p(this, "browser", pt()), p(this, "options", void 0), p(this, "element", void 0), p(this, "playbackSource", void 0), p(this, "emitter", new nn()), p(this, "logger", void 0), p(this, "modules", void 0), p(this, "clientIp", void 0), p(this, "sessionId", void 0), p(this, "clientId", Er()), p(this, "_channels", []), p(this, "createdAt", performance.now()), p(this, "offscreenCanvasElement", void 0), p(this, "webCodecsRenditionSupport", void 0), p(this, "hasCalledConnect", !1), p(this, "hasRequestedAudioSession", !1), p(this, "isUserPaused", !1), p(this, "isMediaElementPaused", !1), p(this, "latestEmittedLanguages", []), p(this, "wakeLock", void 0), p(this, "pool", new re(e.MAX_POOL_SIZE)), p(this, "userAgentInformation", new wr()), p(this, "encryptedMediaExtensions", void 0), T(this, Qw, 0), T(this, $w, []), p(this, "sampleProcessingSesssions", /* @__PURE__ */ new Map()), p(this, "unbackedSamplesWarned", new gS()), p(this, "unextractableSamplesWarned", new gS()), p(this, "sizes", /* @__PURE__ */ new Map()), p(this, "isSuspended", !0), p(this, "inactivityDisconnectInterval", void 0), p(this, "visiblePauseTimeout", void 0), p(this, "offscreenSubtitleInterval", void 0), T(this, eT, void 0), p(this, "attach", (e) => {
13736
13756
  var t;
13737
13757
  (t = this.wakeLock) == null || t.attach(e), e.appendChild(this.element);
13738
13758
  }), p(this, "setElement", (e) => {
@@ -13828,20 +13848,20 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
13828
13848
  }), p(this, "updateTextTracks", (e) => {
13829
13849
  let t = e.filter((e) => e.codec === "webvtt");
13830
13850
  t.forEach((e) => {
13831
- if (!j(Zw, this).find((t) => t.language === e.language)) {
13851
+ if (!j($w, this).find((t) => t.language === e.language)) {
13832
13852
  if (this.modules.canvasModule) {
13833
13853
  let t = this.modules.canvasModule.textTracks.addTextTrack(e.kind, e.label || e.language || "", e.language || "");
13834
- j(Zw, this).push(t);
13854
+ j($w, this).push(t);
13835
13855
  } else if (this.mediaElement instanceof HTMLVideoElement) {
13836
13856
  let t = this.mediaElement.addTextTrack(e.kind, e.label || e.language, e.language);
13837
- j(Zw, this).push(t);
13857
+ j($w, this).push(t);
13838
13858
  }
13839
13859
  }
13840
13860
  });
13841
- for (let e of j(Zw, this)) t.find((t) => t.language === e.language) ? e.mode === "disabled" && (e.mode = "hidden") : e.mode = "disabled";
13861
+ for (let e of j($w, this)) t.find((t) => t.language === e.language) ? e.mode === "disabled" && (e.mode = "hidden") : e.mode = "disabled";
13842
13862
  this.emit("text tracks", this.textTracks);
13843
13863
  }), p(this, "cleanupTextTracks", (e = this.currentTime - 2e4) => {
13844
- j(Zw, this).forEach((t) => {
13864
+ j($w, this).forEach((t) => {
13845
13865
  if (t.cues) for (let n of Array.from(t.cues)) n.endTime * 1e3 < e - 2e3 && t.removeCue(n);
13846
13866
  });
13847
13867
  }), p(this, "filterRenditions", function() {
@@ -14014,7 +14034,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14014
14034
  (e = n.modules.decoder) == null || e.unload(), n.modules.decoder = p, n.isHiddenWithBackgroundPlayback() && n.modules.decoder.enableBackgroundTimers(), n.modules.decoder.setVideoRenderingEnabled(n.isVideoOnScreen()), n.modules.decoder.load(), n.setupOffscreenSubtitleRouting();
14015
14035
  })), p(this, "capturesCanvasOnWebKit", (e) => !!e && this.browser.platform.isWebKit && this.modules.canvasModule instanceof AC), p(this, "connectWebKitVideoOutput", (e, t) => {
14016
14036
  let n = () => {
14017
- t.setVideoTrack(void 0), this.browser.platform.isIOS && e.setMaxVideoCanvasPixels(Yw);
14037
+ t.setVideoTrack(void 0), this.browser.platform.isIOS && e.setMaxVideoCanvasPixels(Zw);
14018
14038
  };
14019
14039
  e.onVideoTrackLost((e) => {
14020
14040
  this.logger.warn("Worker video track lost, falling back to canvas capture", { error: e }), n();
@@ -14064,7 +14084,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14064
14084
  this.clearVisiblePauseDisconnect(), this.isUserPaused = !1, this.requestAudioSessionOnce(), this.hasCalledConnect ? this.unsuspend() : this.playbackState !== "playing" && (this._connect(), self.addEventListener("__vindral_register_debug__", this.registerDebugInstance), this.modules.timer.setInterval(() => this.cleanupTextTracks(), e.REMOVE_CUE_THRESHOLD)), (t = this.wakeLock) == null || t.enable(), this.playbackState === "paused" && this.playbackSource.isActivated && (this.resetModules(), this.emitter.emit("flush buffers"), this.cleanupTextTracks(2 ** 53 - 1)), this.playbackSource.play(), this.isHiddenWithBackgroundPlayback() && this.scheduleInactivityDisconnect();
14065
14085
  }), p(this, "getStatistics", () => {
14066
14086
  let e = Object.values(this.modules).reduce((e, t) => t && "getStatistics" in t ? L(L({}, e), t.getStatistics()) : e, this.getRuntimeInfo()), t = Math.round(this.timeActive > 0 ? (e.bytesReceived || 0) * 8 / (this.timeActive / 1e3) : 0), n = this.uptime / 36e5, r = Math.max(0, (e.connectCount || 0) - 1), i = n > 0 ? r / n : 0, a = this.timeActive / 6e4, o = Math.max(a, 1), s = a > 0 ? (e.seekAdjustmentCount || 0) / o : 0, c = a > 0 ? (e.timeshiftAdjustmentCount || 0) / o : 0;
14067
- return Hw(L(L({}, e), {}, {
14087
+ return Ww(L(L({}, e), {}, {
14068
14088
  averageBitRate: t,
14069
14089
  reconnectsPerHour: i,
14070
14090
  seekAdjustmentsPerMinute: s,
@@ -14073,7 +14093,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14073
14093
  }), p(this, "resetModules", () => {
14074
14094
  Object.values(this.modules).forEach((e) => {
14075
14095
  e && "reset" in e && e.reset();
14076
- }), this.playbackSource instanceof ru && this.modules.adaptivity.holdReconnect(Jw), this.sampleProcessingSesssions.clear(), this.cleanupTextTracks(Infinity), this.playbackSource.currentTime = 0, this.playbackSource.isActivated = !1;
14096
+ }), this.playbackSource instanceof ru && this.modules.adaptivity.holdReconnect(Xw), this.sampleProcessingSesssions.clear(), this.cleanupTextTracks(Infinity), this.playbackSource.currentTime = 0, this.playbackSource.isActivated = !1;
14077
14097
  }), p(this, "disconnectForInactivePage", (e) => {
14078
14098
  if (this.clearInactivityDisconnect(), this.emitter.emit("flush buffers"), !this.isBackgroundPlayEnabled(this.channelId)) {
14079
14099
  var t;
@@ -14107,7 +14127,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14107
14127
  let e = this.modules.canvasModule instanceof AC ? !0 : void 0;
14108
14128
  return L({
14109
14129
  uptime: this.uptime,
14110
- version: "4.7.2-15-gf5e093ee",
14130
+ version: "4.7.2-16-gab36cbe5",
14111
14131
  clientId: this.clientId,
14112
14132
  sessionId: this.sessionId,
14113
14133
  channelId: this.channelId,
@@ -14152,7 +14172,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14152
14172
  if (this.browser.platform.isWebKit || !this.browser.isMobile) return !1;
14153
14173
  let t = (e = this.modules) == null ? void 0 : e.decoder;
14154
14174
  return t ? t.audioWebCodecsInUse : this.isWebCodecsAudioAvailable(this.channelId);
14155
- }), this.options = new Aw(L(L({}, Gr), Gw(t))), t.telemetryEnabled === void 0 && ["localhost", "127.0.0.1"].includes(location.hostname) && this.options.set("telemetryEnabled", !1);
14175
+ }), this.options = new Mw(L(L({}, Gr), qw(t))), t.telemetryEnabled === void 0 && ["localhost", "127.0.0.1"].includes(location.hostname) && this.options.set("telemetryEnabled", !1);
14156
14176
  let a = {
14157
14177
  channelId: this.options.get("channelId"),
14158
14178
  audio: {
@@ -14165,7 +14185,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14165
14185
  height: this.options.get("maxSize").height
14166
14186
  }
14167
14187
  }, o = Sn.get();
14168
- o.setLevel(this.options.get("logLevel")), o.setDebug(!1), this.logger = o, this.webCodecsRenditionSupport = new qw(o), t.iosMediaElementEnabled !== void 0 && this.logger.warn("Option iosMediaElementEnabled is deprecated and will be removed in a future release. Use streamToMediaElementEnabled instead.");
14188
+ o.setLevel(this.options.get("logLevel")), o.setDebug(!1), this.logger = o, this.webCodecsRenditionSupport = new Yw(o), t.iosMediaElementEnabled !== void 0 && this.logger.warn("Option iosMediaElementEnabled is deprecated and will be removed in a future release. Use streamToMediaElementEnabled instead.");
14169
14189
  let s = (r = t.streamToMediaElementEnabled) == null ? t.iosMediaElementEnabled : r;
14170
14190
  s !== void 0 && (this.options.set("streamToMediaElementEnabled", s), this.options.set("iosMediaElementEnabled", s)), t.iosBackgroundPlayEnabled !== void 0 && this.logger.warn("Option iosBackgroundPlayEnabled is deprecated and will be removed in a future release. Use backgroundPlayEnabled instead.");
14171
14191
  let c = (i = t.backgroundPlayEnabled) == null ? t.iosBackgroundPlayEnabled : i;
@@ -14206,7 +14226,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14206
14226
  logger: this.logger.createContext("MediaElement"),
14207
14227
  poster: x
14208
14228
  });
14209
- e.on("buffer state", (e) => this.onMediaElementBufferState(e, te)), e.on("needs user input", (e) => this.emitter.emit("needs user input", e)), e.on("volume state", (e) => this.emitter.emit("volume state", e)), e.on("media element state", (e) => this.onMediaElementState(e)), this.element = e.element, this.playbackSource = e, $a.isSupported() && this.encryptedMediaExtensions.attach(e.element), te = FC.create(this.logger.createContext("MseModule"), this.emitter, this.element), this.options.get("pauseSupportEnabled") || (ne = Dw.create(this.logger.createContext("UnpauseModule"), [e], b)), this.options.get("pictureInPictureEnabled") && this.emitter.emit("add picture in picture listener", { element: e.element });
14229
+ e.on("buffer state", (e) => this.onMediaElementBufferState(e, te)), e.on("needs user input", (e) => this.emitter.emit("needs user input", e)), e.on("volume state", (e) => this.emitter.emit("volume state", e)), e.on("media element state", (e) => this.onMediaElementState(e)), this.element = e.element, this.playbackSource = e, $a.isSupported() && this.encryptedMediaExtensions.attach(e.element), te = FC.create(this.logger.createContext("MseModule"), this.emitter, this.element), this.options.get("pauseSupportEnabled") || (ne = kw.create(this.logger.createContext("UnpauseModule"), [e], b)), this.options.get("pictureInPictureEnabled") && this.emitter.emit("add picture in picture listener", { element: e.element });
14210
14230
  } else if (this.streamsToMediaElement()) {
14211
14231
  let e = AC.create(this.emitter, this.logger.createContext("ModernCanvasModule"), this.pool, this, {
14212
14232
  type: this.options.get("media") === "audio" ? "audio" : "video",
@@ -14220,7 +14240,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14220
14240
  });
14221
14241
  this.element = e.element().element, this.playbackSource = e, ie = e;
14222
14242
  let t = this.browser.platform.isIOS && this.browser.platform.iosVersion <= 15;
14223
- this.options.get("pictureInPictureEnabled") && !t && this.emitter.emit("add picture in picture listener", { element: this.element }), this.options.get("pauseSupportEnabled") || (ne = Dw.create(this.logger.createContext("UnpauseModule"), e.elements(), b));
14243
+ this.options.get("pictureInPictureEnabled") && !t && this.emitter.emit("add picture in picture listener", { element: this.element }), this.options.get("pauseSupportEnabled") || (ne = kw.create(this.logger.createContext("UnpauseModule"), e.elements(), b));
14224
14244
  } else {
14225
14245
  let e;
14226
14246
  e = CC.create(this.emitter, this.logger.createContext("LegacyCanvasModule"), this.pool, this, this.options.get("muted") || this.options.get("media") === "video", this.options.get("volume"), () => {
@@ -14241,9 +14261,9 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14241
14261
  getTargetBufferTime: () => v.getTargetBufferTime(),
14242
14262
  getNextBufferedRangeStart: te ? (e) => te.getNextBufferedRangeStart(e) : void 0,
14243
14263
  getBufferedEndAt: te ? (e) => te.getBufferedEndAt(e) : void 0
14244
- }, oe = xw.create(this.emitter, this.logger.createContext("SyncModule"), this.playbackSource, C, ae, S), w = cC.create(this.logger.createContext("JitterModule")), se = ou.create(this.emitter), ce = (this.options.get("edgeUrl") || this.options.get("url")).replace("wss://", "https://").replace("ws://", "http://").replace("//lb.", "//errors."), le = new URL("/telemetry", ce).toString();
14264
+ }, oe = Cw.create(this.emitter, this.logger.createContext("SyncModule"), this.playbackSource, C, ae, S), w = cC.create(this.logger.createContext("JitterModule")), se = ou.create(this.emitter), ce = (this.options.get("edgeUrl") || this.options.get("url")).replace("wss://", "https://").replace("ws://", "http://").replace("//lb.", "//errors."), le = new URL("/telemetry", ce).toString();
14245
14265
  this.modules = {
14246
- telemetry: Tw.create(this.logger.createContext("TelemetryModule"), this.emitter, {
14266
+ telemetry: Dw.create(this.logger.createContext("TelemetryModule"), this.emitter, {
14247
14267
  url: le,
14248
14268
  enabled: this.options.get("telemetryEnabled"),
14249
14269
  includeStats: !1,
@@ -14328,7 +14348,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14328
14348
  let r = ((t = (n = e.telemetry) == null ? void 0 : n.probability) == null ? 1 : t) >= Math.random();
14329
14349
  if (e.telemetry) {
14330
14350
  var i;
14331
- (i = this.modules.telemetry) == null || i.unload(), this.modules.telemetry = Tw.create(this.logger.createContext("TelemetryModule"), this.emitter, L(L({}, e.telemetry), {}, { enabled: this.options.get("telemetryEnabled") && r }), this), this.modules.telemetry.load();
14351
+ (i = this.modules.telemetry) == null || i.unload(), this.modules.telemetry = Dw.create(this.logger.createContext("TelemetryModule"), this.emitter, L(L({}, e.telemetry), {}, { enabled: this.options.get("telemetryEnabled") && r }), this), this.modules.telemetry.load();
14332
14352
  }
14333
14353
  }), this.emitter.on("adapt level", (e) => {
14334
14354
  let t = this.modules.renditions.getRenditionLevels(), n = this.modules.renditions.getRenditionLevel(), r = t.findIndex((e) => e === n), i = t.length - 1, a = r;
@@ -14370,8 +14390,8 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14370
14390
  audio: L(L({}, this.targetSubscription.audio), f == null ? void 0 : f.audio)
14371
14391
  })), this.emitter.emit("adapted level");
14372
14392
  }), this.emitter.on("ping timeout", this.stepDownForRejoin), this.emitter.on("text track data", (e) => {
14373
- let t = j(Zw, this).find((t) => t.language === e.language), n = this.modules.sync.getTimeshiftOffset() / 1e3, r = n - j(Xw, this);
14374
- if (k(Xw, this, n), t) {
14393
+ let t = j($w, this).find((t) => t.language === e.language), n = this.modules.sync.getTimeshiftOffset() / 1e3, r = n - j(Qw, this);
14394
+ if (k(Qw, this, n), t) {
14375
14395
  if (t.cues) for (let e of t.cues) e.startTime -= r, e.endTime -= r;
14376
14396
  for (let r of e.cues) {
14377
14397
  let e = new VTTCue(r.startTime - n, r.endTime - n, r.text);
@@ -14387,19 +14407,19 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14387
14407
  this.clientIp = t.ip;
14388
14408
  break;
14389
14409
  case "renditions":
14390
- this.updateTextTracks(t.renditions), k(Qw, this, this.filterRenditions(t.renditions, n.channelId).then((e) => {
14410
+ this.updateTextTracks(t.renditions), k(eT, this, this.filterRenditions(t.renditions, n.channelId).then((e) => {
14391
14411
  r === this.sessionId && (this.emitter.emit("renditions", {
14392
14412
  renditions: e,
14393
14413
  channelId: n.channelId
14394
14414
  }), this.emit("rendition levels", this.modules.renditions.getRenditionLevels()), this.emitLanguagesIfChanged());
14395
14415
  }).finally(() => {
14396
- k(Qw, this, void 0);
14416
+ k(eT, this, void 0);
14397
14417
  }));
14398
14418
  break;
14399
14419
  case "subscription changed":
14400
14420
  var i;
14401
14421
  try {
14402
- Kw(t.subscription);
14422
+ Jw(t.subscription);
14403
14423
  } catch (e) {
14404
14424
  this.emitter.emit("error", new U("Subscription failed validation", {
14405
14425
  source: e instanceof Error ? e : void 0,
@@ -14530,7 +14550,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14530
14550
  let O = function() {
14531
14551
  var e = N(function* (e) {
14532
14552
  let t = e.channelId;
14533
- j(Qw, n) && (yield j(Qw, n));
14553
+ j(eT, n) && (yield j(eT, n));
14534
14554
  let r = n.modules.renditions.getRendition(e.renditionId, t);
14535
14555
  if (!jl(e.flags)) {
14536
14556
  if (Ml(e.flags)) {
@@ -14544,8 +14564,8 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14544
14564
  } catch (e) {
14545
14565
  n.logger.warn("failed to parse WebVTT segment, dropping it", e);
14546
14566
  }
14547
- let a = r / 1e3, o = j(Zw, n).find((t) => t.language === e.language), s = a - j(Xw, n);
14548
- if (k(Xw, n, a), o) {
14567
+ let a = r / 1e3, o = j($w, n).find((t) => t.language === e.language), s = a - j(Qw, n);
14568
+ if (k(Qw, n, a), o) {
14549
14569
  if (o.cues) for (let e of o.cues) e.startTime -= s, e.endTime -= s;
14550
14570
  for (let e of i) {
14551
14571
  let t = new VTTCue(e.startTime - a, e.endTime - a, e.text);
@@ -14581,10 +14601,10 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14581
14601
  mimeType: s
14582
14602
  }), n.emit("initialized media");
14583
14603
  } else {
14584
- let t = Lw(e, r, n.sizes.get(e.renditionId));
14604
+ let t = zw(e, r, n.sizes.get(e.renditionId));
14585
14605
  n.modules.jitter.recordSample(t);
14586
14606
  let a = n.sampleProcessingSesssions.get(i);
14587
- if (!a) a = Mw(n.modules.sync.processSample(t)), n.sampleProcessingSesssions.set(i, a);
14607
+ if (!a) a = Pw(n.modules.sync.processSample(t)), n.sampleProcessingSesssions.set(i, a);
14588
14608
  else {
14589
14609
  let e = n.willUseMediaSource() && n.isSwitchingRenditionLevel && t.type === "video", r = a(n.modules.sync.processSample(t), e), i = t;
14590
14610
  r.forEach((e) => {
@@ -14691,7 +14711,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14691
14711
  this.modules.subscription.setLanguage(e), this.alignSizeAndBitRate(this.targetSubscription);
14692
14712
  }
14693
14713
  set textTrack(e) {
14694
- e !== this.textTrack && (j(Zw, this).forEach((t) => {
14714
+ e !== this.textTrack && (j($w, this).forEach((t) => {
14695
14715
  if (t.label === e) t.mode = "showing";
14696
14716
  else {
14697
14717
  if (t.mode === "showing" && t.cues) for (let e of [...t.cues]) t.removeCue(e);
@@ -14700,11 +14720,11 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14700
14720
  }), this.emitter.emit("text track", e));
14701
14721
  }
14702
14722
  get textTracks() {
14703
- return j(Zw, this).filter((e) => e.mode !== "disabled").map((e) => e.label);
14723
+ return j($w, this).filter((e) => e.mode !== "disabled").map((e) => e.label);
14704
14724
  }
14705
14725
  get textTrack() {
14706
14726
  var e;
14707
- return (e = j(Zw, this).find((e) => e.mode === "showing")) == null ? void 0 : e.label;
14727
+ return (e = j($w, this).find((e) => e.mode === "showing")) == null ? void 0 : e.label;
14708
14728
  }
14709
14729
  get channelId() {
14710
14730
  var e, t;
@@ -14842,7 +14862,7 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14842
14862
  return this.modules.subscription.getTargetSubscription();
14843
14863
  }
14844
14864
  resolvedDecoder(e) {
14845
- return Iw(this.options.get("decoders", e), this.browser.supportsMediaSource, this.options.get("drm"));
14865
+ return Rw(this.options.get("decoders", e), this.browser.supportsMediaSource, this.options.get("drm"));
14846
14866
  }
14847
14867
  usesSplitCanvasAudio() {
14848
14868
  return !this.willUseMediaSource() && this.options.get("streamToMediaElementEnabled") && Lt(this.browser) && this.options.get("media") !== "audio" && this.options.get("media") !== "video" && this.browser.platform.isIOS;
@@ -14882,89 +14902,89 @@ var Jw = 1e4, Yw = 1280 * 720, Xw = /* @__PURE__ */ new WeakMap(), Zw = /* @__PU
14882
14902
  return this.hasCalledConnect && this.isBackgroundPlayEnabled(e) && !this.isUserPaused;
14883
14903
  }
14884
14904
  };
14885
- p($w, "MAX_POOL_SIZE", 10), p($w, "REMOVE_CUE_THRESHOLD", 1e3 * 10), p($w, "BACKGROUND_INACTIVITY_DISCONNECT_TIMEOUT", 1e3 * 15), p($w, "VISIBLE_PAUSE_DISCONNECT_DELAY", 1e3);
14886
- var eT = {
14905
+ p(tT, "MAX_POOL_SIZE", 10), p(tT, "REMOVE_CUE_THRESHOLD", 1e3 * 10), p(tT, "BACKGROUND_INACTIVITY_DISCONNECT_TIMEOUT", 1e3 * 15), p(tT, "VISIBLE_PAUSE_DISCONNECT_DELAY", 1e3);
14906
+ var nT = {
14887
14907
  bar: "_bar_qm7bl_1",
14888
14908
  hidden: "_hidden_qm7bl_47"
14889
- }, tT = "_withThumbnails_suenn_19", nT = {
14909
+ }, rT = "_withThumbnails_suenn_19", iT = {
14890
14910
  "channel-selection-item": "_channel-selection-item_suenn_1",
14891
14911
  "channel-selection-item-selected": "_channel-selection-item-selected_suenn_8",
14892
14912
  "channel-selection-item-image": "_channel-selection-item-image_suenn_13",
14893
- withThumbnails: tT,
14913
+ withThumbnails: rT,
14894
14914
  "hide-on-small": "_hide-on-small_suenn_27"
14895
- }, rT = { "icon-button": "_icon-button_5fg7v_1" }, iT = {
14915
+ }, aT = { "icon-button": "_icon-button_5fg7v_1" }, oT = {
14896
14916
  viewBox: "-10 -10 44 44",
14897
14917
  content: "<g fill=\"none\" stroke=\"white\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z\" clip-rule=\"evenodd\" />\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2\" />\n </g>"
14898
- }, aT = {
14918
+ }, sT = {
14899
14919
  viewBox: "-160 -160 832 832",
14900
14920
  content: "<path fill=\"white\" d=\"M208,432H160a16,16,0,0,1-16-16V96a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V416A16,16,0,0,1,208,432Z\"/><path fill=\"white\" d=\"M352,432H304a16,16,0,0,1-16-16V96a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V416A16,16,0,0,1,352,432Z\"/>"
14901
- }, oT = {
14921
+ }, cT = {
14902
14922
  viewBox: "-6 -6 36 36",
14903
14923
  content: "<path d=\"M7 17.259V6.74104C7 5.96925 7.83721 5.48837 8.50387 5.87726L18.2596 11.5681C18.5904 11.761 18.5904 12.2389 18.2596 12.4319L8.50387 18.1227C7.83721 18.5116 7 18.0308 7 17.259Z\" fill=\"none\" stroke=\"white\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
14904
- }, sT = {
14924
+ }, lT = {
14905
14925
  viewBox: "-10 -10 44 44",
14906
14926
  content: "<g fill=\"none\" stroke=\"white\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z\" />\n </svg>"
14907
- }, cT = {
14927
+ }, uT = {
14908
14928
  viewBox: "-10 -10 44 44",
14909
14929
  content: "\n <path stroke=\"white\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\" />"
14910
- }, lT = {
14930
+ }, dT = {
14911
14931
  viewBox: "-12 -12 38 38",
14912
14932
  content: "<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(-5.000000, -5.000000)\">\n <path d=\"M6,14 C5.45,14 5,14.45 5,15 L5,18 C5,18.55 5.45,19 6,19 L9,19 C9.55,19 10,18.55 10,18 C10,17.45 9.55,17 9,17 L7,17 L7,15 C7,14.45 6.55,14 6,14 Z M6,10 C6.55,10 7,9.55 7,9 L7,7 L9,7 C9.55,7 10,6.55 10,6 C10,5.45 9.55,5 9,5 L6,5 C5.45,5 5,5.45 5,6 L5,9 C5,9.55 5.45,10 6,10 Z M17,17 L15,17 C14.45,17 14,17.45 14,18 C14,18.55 14.45,19 15,19 L18,19 C18.55,19 19,18.55 19,18 L19,15 C19,14.45 18.55,14 18,14 C17.45,14 17,14.45 17,15 L17,17 Z M14,6 C14,6.55 14.45,7 15,7 L17,7 L17,9 C17,9.55 17.45,10 18,10 C18.55,10 19,9.55 19,9 L19,6 C19,5.45 18.55,5 18,5 L15,5 C14.45,5 14,5.45 14,6 Z\" fill=\"white\"></path>\n</g>"
14913
- }, uT = {
14933
+ }, fT = {
14914
14934
  viewBox: "-12 -12 38 38",
14915
14935
  content: "<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(-5.000000, -5.000000)\">\n <path d=\"M6,16 L8,16 L8,18 C8,18.55 8.45,19 9,19 C9.55,19 10,18.55 10,18 L10,15 C10,14.45 9.55,14 9,14 L6,14 C5.45,14 5,14.45 5,15 C5,15.55 5.45,16 6,16 Z M8,8 L6,8 C5.45,8 5,8.45 5,9 C5,9.55 5.45,10 6,10 L9,10 C9.55,10 10,9.55 10,9 L10,6 C10,5.45 9.55,5 9,5 C8.45,5 8,5.45 8,6 L8,8 Z M15,19 C15.55,19 16,18.55 16,18 L16,16 L18,16 C18.55,16 19,15.55 19,15 C19,14.45 18.55,14 18,14 L15,14 C14.45,14 14,14.45 14,15 L14,18 C14,18.55 14.45,19 15,19 Z M16,8 L16,6 C16,5.45 15.55,5 15,5 C14.45,5 14,5.45 14,6 L14,9 C14,9.55 14.45,10 15,10 L18,10 C18.55,10 19,9.55 19,9 C19,8.45 18.55,8 18,8 L16,8 Z\" fill=\"white\"></path>\n</g>"
14916
- }, dT = {
14936
+ }, pT = {
14917
14937
  viewBox: "-10 -10 44 44",
14918
14938
  content: "<path fill=\"white\" d=\"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z\"/>"
14919
- }, fT = {
14939
+ }, mT = {
14920
14940
  viewBox: "-10 -10 45 45",
14921
14941
  content: "<path fill=\"white\" d=\"M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-6 4l-6-3.27v6.53L16 16z\"/>"
14922
- }, pT = {
14942
+ }, hT = {
14923
14943
  viewBox: "-8 -8 40 40",
14924
14944
  content: "<path fill=\"white\" d=\"M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1.5V15H14c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v4zm-3.5-.5h2v-3h-2v3z\"/>"
14925
- }, mT = {
14945
+ }, gT = {
14926
14946
  viewBox: "-8 -8 40 40",
14927
14947
  content: "<path fill=\"white\" d=\"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z\"/>"
14928
- }, hT = {
14948
+ }, _T = {
14929
14949
  viewBox: "-8 -8 40 40",
14930
14950
  content: "<path fill=\"white\" d=\"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z\"></path>"
14931
- }, gT = {
14951
+ }, vT = {
14932
14952
  viewBox: "-8 -8 40 40",
14933
14953
  content: "<path fill=\"white\" d=\"M12.8 13.4c-.1-.1-.1-.2-.2-.2c-.5-.3-1.1-.2-1.5.2l-4 6c0 .2-.1.4-.1.6c0 .6.4 1 1 1h8c.2 0 .4-.1.6-.2c.5-.3.6-.9.3-1.4zM19 3H5C3.3 3 2 4.3 2 6v9c0 1.7 1.3 3 3 3h.8c.6 0 1-.4 1-1s-.4-1-1-1H5c-.6 0-1-.4-1-1V6c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v9c0 .6-.4 1-1 1h-.8c-.6 0-1 .4-1 1s.4 1 1 1h.8c1.7 0 3-1.3 3-3V6c0-1.7-1.3-3-3-3\"/>"
14934
14954
  };
14935
14955
  //#endregion
14936
14956
  //#region ../../libs/player/src/IconButton.ts
14937
14957
  m();
14938
- var _T, vT = {
14939
- enter: lT,
14940
- exit: uT,
14941
- pip: dT,
14942
- channels: fT,
14943
- languages: mT,
14944
- textTracks: hT,
14945
- levels: pT,
14946
- oneToOne: cT,
14947
- mute: iT,
14948
- unmute: sT,
14949
- pause: aT,
14950
- play: oT,
14951
- airPlay: gT
14952
- }, yT = (_T = rT["icon-button"]) == null ? "" : _T, bT = class extends h {
14958
+ var yT, bT = {
14959
+ enter: dT,
14960
+ exit: fT,
14961
+ pip: pT,
14962
+ channels: mT,
14963
+ languages: gT,
14964
+ textTracks: _T,
14965
+ levels: hT,
14966
+ oneToOne: uT,
14967
+ mute: oT,
14968
+ unmute: lT,
14969
+ pause: sT,
14970
+ play: cT,
14971
+ airPlay: vT
14972
+ }, xT = (yT = aT["icon-button"]) == null ? "" : yT, ST = class extends h {
14953
14973
  constructor(e, t, n) {
14954
14974
  super(document.createElement("div")), p(this, "iconElement", void 0), p(this, "setIcon", (e) => {
14955
- this.iconElement.setAttribute("viewBox", vT[e].viewBox), this.iconElement.innerHTML = vT[e].content;
14956
- }), p(this, "isHidden", () => this.element.style.display === "none"), p(this, "setHidden", (e) => e ? this.hide() : this.show()), p(this, "show", () => void (this.element.style.display = "block")), p(this, "hide", () => void (this.element.style.display = "none")), this.element.style.cursor = "pointer", this.element.setAttribute("role", "button"), this.element.setAttribute("aria-label", e), this.iconElement = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this.iconElement.setAttribute("width", "40px"), this.iconElement.setAttribute("height", "40px"), this.iconElement.setAttribute("class", yT), this.setIcon(t), this.element.addEventListener("click", n), this.element.appendChild(this.iconElement);
14975
+ this.iconElement.setAttribute("viewBox", bT[e].viewBox), this.iconElement.innerHTML = bT[e].content;
14976
+ }), p(this, "isHidden", () => this.element.style.display === "none"), p(this, "setHidden", (e) => e ? this.hide() : this.show()), p(this, "show", () => void (this.element.style.display = "block")), p(this, "hide", () => void (this.element.style.display = "none")), this.element.style.cursor = "pointer", this.element.setAttribute("role", "button"), this.element.setAttribute("aria-label", e), this.iconElement = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this.iconElement.setAttribute("width", "40px"), this.iconElement.setAttribute("height", "40px"), this.iconElement.setAttribute("class", xT), this.setIcon(t), this.element.addEventListener("click", n), this.element.appendChild(this.iconElement);
14957
14977
  }
14958
- }, xT = "_list_1vkum_1", ST = "_hidden_1vkum_20", CT = {
14959
- list: xT,
14978
+ }, CT = "_list_1vkum_1", wT = "_hidden_1vkum_20", TT = {
14979
+ list: CT,
14960
14980
  "list-item": "_list-item_1vkum_12",
14961
14981
  "list-item-disabled": "_list-item-disabled_1vkum_16",
14962
- hidden: ST
14982
+ hidden: wT
14963
14983
  };
14964
14984
  //#endregion
14965
14985
  //#region ../../libs/player/src/List.ts
14966
14986
  m();
14967
- var wT, TT, ET, DT, OT = (wT = CT.hidden) == null ? "" : wT, kT = (TT = CT.list) == null ? "" : TT, AT = (ET = CT["list-item"]) == null ? "" : ET, jT = (DT = CT["list-item-disabled"]) == null ? "" : DT, MT = class extends h {
14987
+ var ET, DT, OT, kT, AT = (ET = TT.hidden) == null ? "" : ET, jT = (DT = TT.list) == null ? "" : DT, MT = (OT = TT["list-item"]) == null ? "" : OT, NT = (kT = TT["list-item-disabled"]) == null ? "" : kT, PT = class extends h {
14968
14988
  constructor({ items: e, onItemClick: t, classNames: n = [], maxHeight: r }) {
14969
14989
  super(document.createElement("div")), p(this, "onItemClick", void 0), p(this, "updateItems", (e) => {
14970
14990
  for (; this.element.firstChild;) {
@@ -14973,11 +14993,11 @@ var wT, TT, ET, DT, OT = (wT = CT.hidden) == null ? "" : wT, kT = (TT = CT.list)
14973
14993
  }
14974
14994
  e.forEach((e) => {
14975
14995
  let t = document.createElement("div");
14976
- e.disabled || t.addEventListener("click", () => this.onItemClick(e)), t.className = [AT, e.disabled ? jT : ""].join(" "), t.appendChild(e.element()), this.element.appendChild(t);
14996
+ e.disabled || t.addEventListener("click", () => this.onItemClick(e)), t.className = [MT, e.disabled ? NT : ""].join(" "), t.appendChild(e.element()), this.element.appendChild(t);
14977
14997
  });
14978
- }), p(this, "hide", () => this.element.classList.add(OT)), p(this, "show", () => this.element.classList.remove(OT)), this.element.className = [kT, ...n].join(" "), this.onItemClick = t, this.updateItems(e), r && (this.element.style.maxHeight = r);
14998
+ }), p(this, "hide", () => this.element.classList.add(AT)), p(this, "show", () => this.element.classList.remove(AT)), this.element.className = [jT, ...n].join(" "), this.onItemClick = t, this.updateItems(e), r && (this.element.style.maxHeight = r);
14979
14999
  }
14980
- }, NT = {
15000
+ }, FT = {
14981
15001
  container: "_container_13xnz_1",
14982
15002
  hidden: "_hidden_13xnz_6",
14983
15003
  list: "_list_13xnz_10"
@@ -14985,7 +15005,7 @@ var wT, TT, ET, DT, OT = (wT = CT.hidden) == null ? "" : wT, kT = (TT = CT.list)
14985
15005
  //#endregion
14986
15006
  //#region ../../libs/player/src/ToggleListButton.ts
14987
15007
  m();
14988
- var PT, FT, IT, LT = (PT = NT.list) == null ? "" : PT, RT = (FT = NT.hidden) == null ? "" : FT, zT = (IT = NT.container) == null ? "" : IT, BT = class extends h {
15008
+ var IT, LT, RT, zT = (IT = FT.list) == null ? "" : IT, BT = (LT = FT.hidden) == null ? "" : LT, VT = (RT = FT.container) == null ? "" : RT, HT = class extends h {
14989
15009
  constructor({ label: e, items: t, onItemClick: n, iconButtonType: r, onToggle: i }) {
14990
15010
  super(document.createElement("div")), p(this, "iconButton", void 0), p(this, "onItemClick", void 0), p(this, "onToggle", void 0), p(this, "maxHeight", void 0), p(this, "items", void 0), p(this, "list", void 0), p(this, "onButtonClick", () => {
14991
15011
  this.toggleShowChannels(), this.onToggle(this);
@@ -14994,10 +15014,10 @@ var PT, FT, IT, LT = (PT = NT.list) == null ? "" : PT, RT = (FT = NT.hidden) ==
14994
15014
  }), p(this, "handleItemClick", (e) => {
14995
15015
  this.toggleShowChannels(), this.onItemClick(e);
14996
15016
  }), p(this, "showList", () => {
14997
- this.list = new MT({
15017
+ this.list = new PT({
14998
15018
  items: this.items,
14999
15019
  onItemClick: this.handleItemClick,
15000
- classNames: [LT],
15020
+ classNames: [zT],
15001
15021
  maxHeight: this.maxHeight
15002
15022
  }), this.list.attach(this.element);
15003
15023
  }), p(this, "hideList", () => {
@@ -15007,16 +15027,16 @@ var PT, FT, IT, LT = (PT = NT.list) == null ? "" : PT, RT = (FT = NT.hidden) ==
15007
15027
  var t;
15008
15028
  this.items = e, (t = this.list) == null || t.updateItems(e);
15009
15029
  }), p(this, "isListVisible", () => this.list !== void 0), p(this, "hide", () => {
15010
- RT && this.element.classList.add(RT);
15030
+ BT && this.element.classList.add(BT);
15011
15031
  }), p(this, "show", () => {
15012
- RT && this.element.classList.remove(RT);
15013
- }), this.element.className = zT, this.onItemClick = n, this.onToggle = i, this.items = t, this.iconButton = new bT(e, r, this.onButtonClick), this.iconButton.attach(this.element);
15032
+ BT && this.element.classList.remove(BT);
15033
+ }), this.element.className = VT, this.onItemClick = n, this.onToggle = i, this.items = t, this.iconButton = new ST(e, r, this.onButtonClick), this.iconButton.attach(this.element);
15014
15034
  }
15015
15035
  };
15016
15036
  //#endregion
15017
15037
  //#region ../../libs/player/src/ChannelSelectionButton.ts
15018
15038
  H();
15019
- var VT, HT, UT, WT, GT, KT = (VT = nT["hide-on-small"]) == null ? "" : VT, qT = (HT = nT["channel-selection-item"]) == null ? "" : HT, JT = (UT = nT["channel-selection-item-selected"]) == null ? "" : UT, YT = (WT = nT["channel-selection-item-image"]) == null ? "" : WT, XT = (GT = nT.withThumbnails) == null ? "" : GT, ZT = class extends BT {
15039
+ var UT, WT, GT, KT, qT, JT = (UT = iT["hide-on-small"]) == null ? "" : UT, YT = (WT = iT["channel-selection-item"]) == null ? "" : WT, XT = (GT = iT["channel-selection-item-selected"]) == null ? "" : GT, ZT = (KT = iT["channel-selection-item-image"]) == null ? "" : KT, QT = (qT = iT.withThumbnails) == null ? "" : qT, $T = class extends HT {
15020
15040
  constructor({ vindral: e, enabled: t, thumbnailsEnabled: n, thumbnailModule: r }) {
15021
15041
  e.on("channels", () => {
15022
15042
  let i = e.channels.map((t) => ({
@@ -15024,12 +15044,12 @@ var VT, HT, UT, WT, GT, KT = (VT = nT["hide-on-small"]) == null ? "" : VT, qT =
15024
15044
  disabled: !t.isLive,
15025
15045
  element: () => {
15026
15046
  let i = document.createElement("div");
15027
- if (i.className = [qT, t.channelId === e.channelId ? JT : ""].join(" "), r && n) {
15028
- i.classList.add(XT);
15047
+ if (i.className = [YT, t.channelId === e.channelId ? XT : ""].join(" "), r && n) {
15048
+ i.classList.add(QT);
15029
15049
  let e = document.createElement("p");
15030
15050
  e.innerHTML = t.name, i.appendChild(e);
15031
15051
  let n = r.getImageUrl(t), a = document.createElement("img");
15032
- n && (a.className = YT, a.src = n, i.style.backgroundImage = `url(${n})`);
15052
+ n && (a.className = ZT, a.src = n, i.style.backgroundImage = `url(${n})`);
15033
15053
  } else i.innerHTML = t.name;
15034
15054
  return i;
15035
15055
  }
@@ -15041,16 +15061,16 @@ var VT, HT, UT, WT, GT, KT = (VT = nT["hide-on-small"]) == null ? "" : VT, qT =
15041
15061
  onItemClick: (t) => e.channelId = t.channel.channelId,
15042
15062
  onToggle: S,
15043
15063
  iconButtonType: "channels"
15044
- }), this.element.classList.add(KT), this.hide();
15064
+ }), this.element.classList.add(JT), this.hide();
15045
15065
  }
15046
- }, QT = {
15066
+ }, eE = {
15047
15067
  "language-button-item": "_language-button-item_1dov5_1",
15048
15068
  "language-button-item-selected": "_language-button-item-selected_1dov5_6"
15049
15069
  };
15050
15070
  //#endregion
15051
15071
  //#region ../../libs/player/src/LanguageButton.ts
15052
15072
  H();
15053
- var $T, eE, tE = ($T = QT["language-button-item"]) == null ? "" : $T, nE = (eE = QT["language-button-item-selected"]) == null ? "" : eE, rE = class extends BT {
15073
+ var tE, nE, rE = (tE = eE["language-button-item"]) == null ? "" : tE, iE = (nE = eE["language-button-item-selected"]) == null ? "" : nE, aE = class extends HT {
15054
15074
  constructor({ vindral: e }) {
15055
15075
  e.on("languages", () => {
15056
15076
  let t = e.languages.map((t) => ({
@@ -15058,7 +15078,7 @@ var $T, eE, tE = ($T = QT["language-button-item"]) == null ? "" : $T, nE = (eE =
15058
15078
  disabled: !1,
15059
15079
  element: () => {
15060
15080
  let n = document.createElement("div");
15061
- return n.className = [tE, t === e.language ? nE : ""].join(" "), n.innerHTML = t, n;
15081
+ return n.className = [rE, t === e.language ? iE : ""].join(" "), n.innerHTML = t, n;
15062
15082
  }
15063
15083
  }));
15064
15084
  this.maxHeight = `calc(${Math.max(110, e.mediaElement.clientHeight)}px - 46px)`, this.updateItems(t), t.length > 0 ? this.show() : this.hide();
@@ -15074,25 +15094,25 @@ var $T, eE, tE = ($T = QT["language-button-item"]) == null ? "" : $T, nE = (eE =
15074
15094
  //#endregion
15075
15095
  //#region ../../libs/player/src/PlayControls.ts
15076
15096
  m();
15077
- var iE = class extends h {
15097
+ var oE = class extends h {
15078
15098
  constructor({ vindral: e }) {
15079
15099
  super(document.createElement("div")), p(this, "vindral", void 0), p(this, "playButton", void 0), p(this, "updateState", () => {
15080
15100
  this.playButton.setIcon(this.playIcon());
15081
15101
  }), p(this, "onPlayClick", () => {
15082
15102
  this.vindral.playbackState === "paused" ? this.vindral.play() : this.vindral.pause(), this.playButton.setIcon(this.playIcon());
15083
- }), p(this, "playIcon", () => this.vindral.playbackState === "paused" ? "play" : "pause"), this.element.style.cursor = "pointer", this.vindral = e, this.playButton = new bT("Play", this.playIcon(), this.onPlayClick), this.playButton.attach(this.element);
15103
+ }), p(this, "playIcon", () => this.vindral.playbackState === "paused" ? "play" : "pause"), this.element.style.cursor = "pointer", this.vindral = e, this.playButton = new ST("Play", this.playIcon(), this.onPlayClick), this.playButton.attach(this.element);
15084
15104
  }
15085
- }, aE = "_item_5vhyo_1", oE = "_title_5vhyo_10", sE = {
15086
- item: aE,
15105
+ }, sE = "_item_5vhyo_1", cE = "_title_5vhyo_10", lE = {
15106
+ item: sE,
15087
15107
  "item-selected": "_item-selected_5vhyo_6",
15088
- title: oE,
15108
+ title: cE,
15089
15109
  "sub-title": "_sub-title_5vhyo_14",
15090
15110
  "hide-on-small": "_hide-on-small_5vhyo_21"
15091
15111
  };
15092
15112
  //#endregion
15093
15113
  //#region ../../libs/player/src/RenditionLevelButton.ts
15094
15114
  H();
15095
- var cE, lE, uE, dE, fE, pE = (cE = sE["hide-on-small"]) == null ? "" : cE, mE = (lE = sE.item) == null ? "" : lE, hE = (uE = sE["item-selected"]) == null ? "" : uE, gE = (dE = sE.title) == null ? "" : dE, _E = (fE = sE["sub-title"]) == null ? "" : fE, vE = class extends BT {
15115
+ var uE, dE, fE, pE, mE, hE = (uE = lE["hide-on-small"]) == null ? "" : uE, gE = (dE = lE.item) == null ? "" : dE, _E = (fE = lE["item-selected"]) == null ? "" : fE, vE = (pE = lE.title) == null ? "" : pE, yE = (mE = lE["sub-title"]) == null ? "" : mE, bE = class extends HT {
15096
15116
  constructor({ vindral: e }) {
15097
15117
  let t = () => {
15098
15118
  let t = e.renditionLevels.map((t) => ({
@@ -15101,13 +15121,13 @@ var cE, lE, uE, dE, fE, pE = (cE = sE["hide-on-small"]) == null ? "" : cE, mE =
15101
15121
  element: () => {
15102
15122
  var n, r, i;
15103
15123
  let a = document.createElement("div");
15104
- a.className = [mE, t === e.currentRenditionLevel ? hE : ""].join(" ");
15124
+ a.className = [gE, t === e.currentRenditionLevel ? _E : ""].join(" ");
15105
15125
  let o = document.createElement("span"), s = document.createElement("span"), { audio: c, video: l } = t, u = l ? fn(l) : void 0, d = c ? pn(c.sampleRate) : void 0, f = dn(((n = l == null ? void 0 : l.bitRate) == null ? 0 : n) + ((r = c == null ? void 0 : c.bitRate) == null ? 0 : r));
15106
15126
  if (l) {
15107
15127
  let e = l.frameRate[0] / l.frameRate[1], t = l.frameRate[0] % l.frameRate[1] === 0 ? `${e}p` : `${e.toFixed(2)}p`;
15108
15128
  f += `, ${t}`;
15109
15129
  }
15110
- return o.innerHTML = (i = u == null ? d : u) == null ? "" : i, o.className = gE, s.innerHTML = f, s.className = _E, a.appendChild(o), a.appendChild(s), a;
15130
+ return o.innerHTML = (i = u == null ? d : u) == null ? "" : i, o.className = vE, s.innerHTML = f, s.className = yE, a.appendChild(o), a.appendChild(s), a;
15111
15131
  }
15112
15132
  }));
15113
15133
  this.maxHeight = `calc(${Math.max(110, e.mediaElement.clientHeight)}px - 46px)`, this.updateItems(t);
@@ -15120,20 +15140,20 @@ var cE, lE, uE, dE, fE, pE = (cE = sE["hide-on-small"]) == null ? "" : cE, mE =
15120
15140
  },
15121
15141
  onToggle: S,
15122
15142
  iconButtonType: "levels"
15123
- }), this.element.classList.add(pE);
15143
+ }), this.element.classList.add(hE);
15124
15144
  }
15125
- }, yE = class extends h {
15145
+ }, xE = class extends h {
15126
15146
  constructor() {
15127
15147
  super(document.createElement("div")), this.element.style.flexGrow = "1";
15128
15148
  }
15129
- }, bE = {
15149
+ }, SE = {
15130
15150
  "text-track-button-item": "_text-track-button-item_1ry10_1",
15131
15151
  "text-track-button-item-selected": "_text-track-button-item-selected_1ry10_6"
15132
15152
  };
15133
15153
  //#endregion
15134
15154
  //#region ../../libs/player/src/TextTrackButton.ts
15135
15155
  H();
15136
- var xE, SE, CE = (xE = bE["text-track-button-item"]) == null ? "" : xE, wE = (SE = bE["text-track-button-item-selected"]) == null ? "" : SE, TE = class extends BT {
15156
+ var CE, wE, TE = (CE = SE["text-track-button-item"]) == null ? "" : CE, EE = (wE = SE["text-track-button-item-selected"]) == null ? "" : wE, DE = class extends HT {
15137
15157
  constructor({ vindral: e }) {
15138
15158
  e.on("text tracks", () => {
15139
15159
  let t = e.textTracks.map((t) => ({
@@ -15141,7 +15161,7 @@ var xE, SE, CE = (xE = bE["text-track-button-item"]) == null ? "" : xE, wE = (SE
15141
15161
  disabled: !1,
15142
15162
  element: () => {
15143
15163
  let n = document.createElement("div");
15144
- return n.className = [CE, t === e.textTrack ? wE : ""].join(" "), n.innerHTML = t, n;
15164
+ return n.className = [TE, t === e.textTrack ? EE : ""].join(" "), n.innerHTML = t, n;
15145
15165
  }
15146
15166
  }));
15147
15167
  t.length > 0 ? (t.push({
@@ -15149,7 +15169,7 @@ var xE, SE, CE = (xE = bE["text-track-button-item"]) == null ? "" : xE, wE = (SE
15149
15169
  disabled: !1,
15150
15170
  element: () => {
15151
15171
  let t = document.createElement("div");
15152
- return t.className = [CE, e.textTrack === void 0 ? wE : ""].join(" "), t.innerHTML = "Off", t;
15172
+ return t.className = [TE, e.textTrack === void 0 ? EE : ""].join(" "), t.innerHTML = "Off", t;
15153
15173
  }
15154
15174
  }), this.show()) : this.hide(), this.maxHeight = `calc(${Math.max(110, e.mediaElement.clientHeight)}px - 46px)`, this.updateItems(t);
15155
15175
  }), super({
@@ -15164,26 +15184,26 @@ var xE, SE, CE = (xE = bE["text-track-button-item"]) == null ? "" : xE, wE = (SE
15164
15184
  //#endregion
15165
15185
  //#region ../../libs/player/src/VolumeControls.ts
15166
15186
  m();
15167
- var EE = class extends h {
15187
+ var OE = class extends h {
15168
15188
  constructor({ vindral: e }) {
15169
15189
  super(document.createElement("div")), p(this, "vindral", void 0), p(this, "muteButton", void 0), p(this, "updateState", () => {
15170
15190
  this.muteButton.setIcon(this.muteIcon());
15171
15191
  }), p(this, "onMuteClick", () => {
15172
15192
  this.vindral.muted = !this.vindral.muted, this.muteButton.setIcon(this.muteIcon());
15173
- }), p(this, "muteIcon", () => this.vindral.muted ? "mute" : "unmute"), this.element.style.cursor = "pointer", this.vindral = e, this.muteButton = new bT("Mute", this.muteIcon(), this.onMuteClick), this.muteButton.attach(this.element);
15193
+ }), p(this, "muteIcon", () => this.vindral.muted ? "mute" : "unmute"), this.element.style.cursor = "pointer", this.vindral = e, this.muteButton = new ST("Mute", this.muteIcon(), this.onMuteClick), this.muteButton.attach(this.element);
15174
15194
  }
15175
15195
  };
15176
15196
  //#endregion
15177
15197
  //#region ../../libs/player/src/Bar.ts
15178
15198
  m();
15179
- var DE, OE, kE = (DE = eT.hidden) == null ? "" : DE, AE = (OE = eT.bar) == null ? "" : OE, jE = class extends h {
15199
+ var kE, AE, jE = (kE = nT.hidden) == null ? "" : kE, ME = (AE = nT.bar) == null ? "" : AE, NE = class extends h {
15180
15200
  constructor({ vindral: e, onFullscreenClicked: t, onOneToOneClicked: n, onPipClicked: r, onAirPlayClicked: i, pauseButtonEnabled: a, fullscreenButtonEnabled: o, pipButtonEnabled: s, channelSelectionEnabled: c, channelSelectionThumbnails: l, renditionLevelsEnabled: u, languagesButtonEnabled: d, textTracksButtonEnabled: f, oneToOneButtonEnabled: m, thumbnailModule: h }) {
15181
15201
  super(document.createElement("div")), p(this, "items", []), p(this, "isMouseInElement", !1), p(this, "volumeControls", void 0), p(this, "playControls", void 0), p(this, "oneToOneButton", void 0), p(this, "fullscreenButton", void 0), p(this, "airPlayButton", void 0), p(this, "containerElement", void 0), p(this, "hideLists", () => {
15182
15202
  this.items.forEach((e) => "hideList" in e && e.hideList());
15183
- }), p(this, "listButtons", () => this.items), p(this, "isAnyListOpen", () => this.items.filter((e) => "isListVisible" in e && e.isListVisible()).length > 0), p(this, "hasFocus", () => this.isMouseInElement || this.isAnyListOpen()), p(this, "isHidden", () => this.element.classList.contains(kE)), p(this, "hide", () => {
15184
- this.containerElement.style.setProperty("--vindral-control-bar-offset", "0px"), this.element.classList.add(kE);
15203
+ }), p(this, "listButtons", () => this.items), p(this, "isAnyListOpen", () => this.items.filter((e) => "isListVisible" in e && e.isListVisible()).length > 0), p(this, "hasFocus", () => this.isMouseInElement || this.isAnyListOpen()), p(this, "isHidden", () => this.element.classList.contains(jE)), p(this, "hide", () => {
15204
+ this.containerElement.style.setProperty("--vindral-control-bar-offset", "0px"), this.element.classList.add(jE);
15185
15205
  }), p(this, "show", () => {
15186
- this.containerElement.style.setProperty("--vindral-control-bar-offset", "-96px"), this.element.classList.remove(kE);
15206
+ this.containerElement.style.setProperty("--vindral-control-bar-offset", "-96px"), this.element.classList.remove(jE);
15187
15207
  }), p(this, "addCastButton", () => {
15188
15208
  let e = document.createElement("google-cast-launcher");
15189
15209
  this.element.insertBefore(e, this.element.lastChild);
@@ -15193,65 +15213,65 @@ var DE, OE, kE = (DE = eT.hidden) == null ? "" : DE, AE = (OE = eT.bar) == null
15193
15213
  this.playControls.updateState(), this.volumeControls.updateState();
15194
15214
  }), p(this, "onToggle", (e) => {
15195
15215
  this.listButtons().filter((t) => e !== t).forEach((e) => "hideList" in e && e.hideList());
15196
- }), this.element.className = [AE, kE].join(" ");
15197
- let g = new yE();
15198
- this.oneToOneButton = new bT("One to One", "oneToOne", n), this.fullscreenButton = new bT("Fullscreen", "enter", t), this.airPlayButton = new bT("AirPlay", "airPlay", i);
15199
- let _ = new bT("Picture in Picture", "pip", r), v = new ZT({
15216
+ }), this.element.className = [ME, jE].join(" ");
15217
+ let g = new xE();
15218
+ this.oneToOneButton = new ST("One to One", "oneToOne", n), this.fullscreenButton = new ST("Fullscreen", "enter", t), this.airPlayButton = new ST("AirPlay", "airPlay", i);
15219
+ let _ = new ST("Picture in Picture", "pip", r), v = new $T({
15200
15220
  vindral: e,
15201
15221
  enabled: c,
15202
15222
  thumbnailsEnabled: l,
15203
15223
  thumbnailModule: l ? h : void 0
15204
- }), y = new vE({ vindral: e });
15205
- this.volumeControls = new EE({ vindral: e }), this.playControls = new iE({ vindral: e }), this.containerElement = e.mediaElement, a && e.getOptions().pauseSupportEnabled && this.playControls.attach(this.element), e.getOptions().media !== "video" && this.volumeControls.attach(this.element), g.attach(this.element);
15224
+ }), y = new bE({ vindral: e });
15225
+ this.volumeControls = new OE({ vindral: e }), this.playControls = new oE({ vindral: e }), this.containerElement = e.mediaElement, a && e.getOptions().pauseSupportEnabled && this.playControls.attach(this.element), e.getOptions().media !== "video" && this.volumeControls.attach(this.element), g.attach(this.element);
15206
15226
  let b = [];
15207
15227
  if (d) {
15208
- let t = new rE({ vindral: e });
15228
+ let t = new aE({ vindral: e });
15209
15229
  t.attach(this.element), b.push(t);
15210
15230
  }
15211
15231
  if (f) {
15212
- let t = new TE({ vindral: e });
15232
+ let t = new DE({ vindral: e });
15213
15233
  t.attach(this.element), b.push(t);
15214
15234
  }
15215
15235
  y.attach(this.element), v.attach(this.element), _.attach(this.element), this.oneToOneButton.attach(this.element), this.fullscreenButton.attach(this.element), this.items.push(g, ...b, y, v, _, this.fullscreenButton), this.items.forEach((e) => "onToggle" in e && (e.onToggle = this.onToggle)), m || this.oneToOneButton.hide(), o || this.fullscreenButton.hide(), s || _.hide(), c || v.hide(), u || y.hide(), navigator.maxTouchPoints < 1 && (this.element.addEventListener("mouseenter", () => this.isMouseInElement = !0), this.element.addEventListener("mouseleave", () => this.isMouseInElement = !1));
15216
15236
  }
15217
- }, ME = {
15237
+ }, PE = {
15218
15238
  castoverlay: "_castoverlay_1n91l_1",
15219
15239
  hidden: "_hidden_1n91l_20"
15220
15240
  };
15221
15241
  //#endregion
15222
15242
  //#region ../../libs/player/src/CastOverlay.ts
15223
15243
  m();
15224
- var NE, PE, FE = (NE = ME.hidden) == null ? "" : NE, IE = (PE = ME.castoverlay) == null ? "" : PE, LE = class extends h {
15244
+ var FE, IE, LE = (FE = PE.hidden) == null ? "" : FE, RE = (IE = PE.castoverlay) == null ? "" : IE, zE = class extends h {
15225
15245
  constructor() {
15226
15246
  super(document.createElement("div")), p(this, "onClick", void 0), p(this, "setText", (e) => {
15227
15247
  this.element.innerText = e;
15228
- }), p(this, "hide", () => this.element.classList.add(FE)), p(this, "show", () => this.element.classList.remove(FE)), this.element.classList.add(IE), this.element.classList.add(FE), this.element.innerText = "device";
15248
+ }), p(this, "hide", () => this.element.classList.add(LE)), p(this, "show", () => this.element.classList.remove(LE)), this.element.classList.add(RE), this.element.classList.add(LE), this.element.innerText = "device";
15229
15249
  }
15230
- }, RE = "_button_4ybkq_21", zE = "_image_4ybkq_98", BE = "_overlay_4ybkq_118", VE = "_selected_4ybkq_136", HE = "_hidden_4ybkq_141", UE = "_disabled_4ybkq_145", WE = {
15231
- button: RE,
15250
+ }, BE = "_button_4ybkq_21", VE = "_image_4ybkq_98", HE = "_overlay_4ybkq_118", UE = "_selected_4ybkq_136", WE = "_hidden_4ybkq_141", GE = "_disabled_4ybkq_145", KE = {
15251
+ button: BE,
15232
15252
  "show-and-scaleup": "_show-and-scaleup_4ybkq_1",
15233
- image: zE,
15234
- overlay: BE,
15235
- selected: VE,
15236
- hidden: HE,
15237
- disabled: UE
15253
+ image: VE,
15254
+ overlay: HE,
15255
+ selected: UE,
15256
+ hidden: WE,
15257
+ disabled: GE
15238
15258
  };
15239
15259
  //#endregion
15240
15260
  //#region ../../libs/player/src/ChannelSelectionImageButton.ts
15241
15261
  m();
15242
- var GE, KE, qE, JE, YE, XE = (GE = WE.button) == null ? "" : GE, ZE = (KE = WE.hidden) == null ? "" : KE, QE = (qE = WE.overlay) == null ? "" : qE, $E = (JE = WE.image) == null ? "" : JE, eD = (YE = WE.selected) == null ? "" : YE, tD = class extends h {
15262
+ var qE, JE, YE, XE, ZE, QE = (qE = KE.button) == null ? "" : qE, $E = (JE = KE.hidden) == null ? "" : JE, eD = (YE = KE.overlay) == null ? "" : YE, tD = (XE = KE.image) == null ? "" : XE, nD = (ZE = KE.selected) == null ? "" : ZE, rD = class extends h {
15243
15263
  constructor({ title: e, onClick: t, imageUrl: n, selected: r }) {
15244
15264
  super(document.createElement("button")), p(this, "overlay", void 0), p(this, "imageHolder1", void 0), p(this, "imageHolder2", void 0), p(this, "isImageHolder1Active", !1), p(this, "loadingOverlay", void 0), p(this, "transition", (e, t, n) => {
15245
15265
  t.style.backgroundImage = `url(${n})`, t.style.opacity = "1", e.style.opacity = "0";
15246
15266
  }), p(this, "setSelected", (e) => {
15247
- e ? this.element.classList.add(eD) : this.element.classList.remove(eD);
15267
+ e ? this.element.classList.add(nD) : this.element.classList.remove(nD);
15248
15268
  }), p(this, "setAnimationDelay", (e) => {
15249
15269
  this.element.style.animationDelay = e;
15250
15270
  }), p(this, "hideLoading", () => {
15251
15271
  this.loadingOverlay.hide();
15252
- }), p(this, "isHidden", () => this.element.classList.contains(ZE)), p(this, "setHidden", (e) => e ? this.hide() : this.show()), p(this, "hide", () => this.element.classList.add(ZE)), p(this, "show", () => this.element.classList.remove(ZE)), this.element.className = XE, r && this.setSelected(r), this.element.onclick = () => {
15272
+ }), p(this, "isHidden", () => this.element.classList.contains($E)), p(this, "setHidden", (e) => e ? this.hide() : this.show()), p(this, "hide", () => this.element.classList.add($E)), p(this, "show", () => this.element.classList.remove($E)), this.element.className = QE, r && this.setSelected(r), this.element.onclick = () => {
15253
15273
  this.loadingOverlay.show(), t();
15254
- }, this.imageHolder1 = document.createElement("div"), this.imageHolder1.className = $E, this.imageHolder1.style.animationFillMode = "forwards", this.imageHolder2 = document.createElement("div"), this.imageHolder2.className = $E, this.imageHolder2.style.animationFillMode = "forwards", n && (this.imageHolder1.style.backgroundImage = `url(${n})`, this.isImageHolder1Active = !0), this.loadingOverlay = new ne(), this.loadingOverlay.attach(this.element), this.loadingOverlay.hide(), this.element.appendChild(this.imageHolder1), this.element.appendChild(this.imageHolder2), this.overlay = document.createElement("div"), this.overlay.className = QE, this.element.appendChild(this.overlay);
15274
+ }, this.imageHolder1 = document.createElement("div"), this.imageHolder1.className = tD, this.imageHolder1.style.animationFillMode = "forwards", this.imageHolder2 = document.createElement("div"), this.imageHolder2.className = tD, this.imageHolder2.style.animationFillMode = "forwards", n && (this.imageHolder1.style.backgroundImage = `url(${n})`, this.isImageHolder1Active = !0), this.loadingOverlay = new ne(), this.loadingOverlay.attach(this.element), this.loadingOverlay.hide(), this.element.appendChild(this.imageHolder1), this.element.appendChild(this.imageHolder2), this.overlay = document.createElement("div"), this.overlay.className = eD, this.element.appendChild(this.overlay);
15255
15275
  let i = document.createElement("span");
15256
15276
  i.innerHTML = e, this.element.appendChild(i), this.show();
15257
15277
  }
@@ -15264,23 +15284,23 @@ var GE, KE, qE, JE, YE, XE = (GE = WE.button) == null ? "" : GE, ZE = (KE = WE.h
15264
15284
  this.isImageHolder1Active ? this.transition(this.imageHolder1, this.imageHolder2, e) : this.transition(this.imageHolder2, this.imageHolder1, e), this.isImageHolder1Active = !this.isImageHolder1Active;
15265
15285
  }
15266
15286
  }
15267
- }, nD = "_container_btpgd_13", rD = "_hidden_btpgd_37", iD = "_disabled_btpgd_41", aD = {
15287
+ }, iD = "_container_btpgd_13", aD = "_hidden_btpgd_37", oD = "_disabled_btpgd_41", sD = {
15268
15288
  "channel-selection-overlay": "_channel-selection-overlay_btpgd_1",
15269
- container: nD,
15270
- hidden: rD,
15271
- disabled: iD
15289
+ container: iD,
15290
+ hidden: aD,
15291
+ disabled: oD
15272
15292
  };
15273
15293
  //#endregion
15274
15294
  //#region ../../libs/player/src/ChannelSelectionList.ts
15275
15295
  m();
15276
- var oD, sD, cD = (oD = aD.hidden) == null ? "" : oD, lD = (sD = aD.container) == null ? "" : sD, uD = class extends h {
15296
+ var cD, lD, uD = (cD = sD.hidden) == null ? "" : cD, dD = (lD = sD.container) == null ? "" : lD, fD = class extends h {
15277
15297
  constructor({ vindral: e, thumbnailModule: t }) {
15278
15298
  var n;
15279
15299
  super(document.createElement("div")), p(this, "thumbnailModule", void 0), p(this, "list", void 0), p(this, "vindral", void 0), p(this, "setSelected", (e) => {
15280
15300
  this.list.forEach((t, n) => {
15281
15301
  t.setSelected(n.channelId === e.channelId);
15282
15302
  }), e.channelId !== this.vindral.channelId && (this.vindral.channelId = e.channelId);
15283
- }), p(this, "isHidden", () => this.element.classList.contains(cD)), p(this, "setHidden", (e) => e ? this.hide() : this.show()), p(this, "hide", () => this.element.classList.add(cD)), p(this, "show", () => this.element.classList.remove(cD)), this.thumbnailModule = t, this.list = /* @__PURE__ */ new Map(), this.vindral = e, this.vindral.on("context switch", (e) => {
15303
+ }), p(this, "isHidden", () => this.element.classList.contains(uD)), p(this, "setHidden", (e) => e ? this.hide() : this.show()), p(this, "hide", () => this.element.classList.add(uD)), p(this, "show", () => this.element.classList.remove(uD)), this.thumbnailModule = t, this.list = /* @__PURE__ */ new Map(), this.vindral = e, this.vindral.on("context switch", (e) => {
15284
15304
  if (e === "completed") {
15285
15305
  this.list.forEach((e) => e.hideLoading());
15286
15306
  let e = this.vindral.channelId;
@@ -15295,7 +15315,7 @@ var oD, sD, cD = (oD = aD.hidden) == null ? "" : oD, lD = (sD = aD.container) ==
15295
15315
  this.vindral.channels.forEach((t, n) => {
15296
15316
  var r;
15297
15317
  if (!t.isLive) return;
15298
- let i = new tD({
15318
+ let i = new rD({
15299
15319
  title: t.name,
15300
15320
  onClick: () => {
15301
15321
  this.setSelected(t);
@@ -15310,35 +15330,35 @@ var oD, sD, cD = (oD = aD.hidden) == null ? "" : oD, lD = (sD = aD.container) ==
15310
15330
  var n;
15311
15331
  e.setImageUrl((n = this.thumbnailModule) == null ? void 0 : n.getImageUrl(t));
15312
15332
  });
15313
- }), this.element.className = lD, this.show();
15333
+ }), this.element.className = dD, this.show();
15314
15334
  }
15315
- }, dD = { fullscreen: "_fullscreen_1v9d8_1" };
15335
+ }, pD = { fullscreen: "_fullscreen_1v9d8_1" };
15316
15336
  H(), B(), m(), O();
15317
- var fD, pD = (fD = dD.fullscreen) == null ? "" : fD, mD = /* @__PURE__ */ new WeakSet(), hD = class e extends nn {
15337
+ var mD, hD = (mD = pD.fullscreen) == null ? "" : mD, gD = /* @__PURE__ */ new WeakSet(), _D = class e extends nn {
15318
15338
  constructor(t) {
15319
- super(), z(this, mD), p(this, "container", void 0), p(this, "unload", () => {
15339
+ super(), z(this, gD), p(this, "container", void 0), p(this, "unload", () => {
15320
15340
  document.removeEventListener("webkitfullscreenchange", this.onChange), document.removeEventListener("mozfullscreenchange", this.onChange), document.removeEventListener("fullscreenchange", this.onChange), this.container.removeEventListener("webkitendfullscreen", this.onChange);
15321
- }), p(this, "request", () => D(mD, this, gD).call(this).catch((e) => {
15341
+ }), p(this, "request", () => D(gD, this, vD).call(this).catch((e) => {
15322
15342
  throw this.onChange(), e;
15323
- })), p(this, "exit", () => D(mD, this, _D).call(this).catch((e) => {
15343
+ })), p(this, "exit", () => D(gD, this, yD).call(this).catch((e) => {
15324
15344
  throw this.onChange(), e;
15325
- })), p(this, "onChange", () => this.emit("on fullscreen change", this.isFullscreen())), p(this, "isFullscreen", () => !!(bt() || this.container.classList.contains(pD))), p(this, "isSupported", () => e.isFullscreenApiSupported(this.container) || !this.isInIframe()), p(this, "isInIframe", () => window.location !== window.parent.location), this.container = t, document.addEventListener("webkitfullscreenchange", this.onChange), document.addEventListener("mozfullscreenchange", this.onChange), document.addEventListener("fullscreenchange", this.onChange), this.container.addEventListener("webkitendfullscreen", this.onChange);
15345
+ })), p(this, "onChange", () => this.emit("on fullscreen change", this.isFullscreen())), p(this, "isFullscreen", () => !!(bt() || this.container.classList.contains(hD))), p(this, "isSupported", () => e.isFullscreenApiSupported(this.container) || !this.isInIframe()), p(this, "isInIframe", () => window.location !== window.parent.location), this.container = t, document.addEventListener("webkitfullscreenchange", this.onChange), document.addEventListener("mozfullscreenchange", this.onChange), document.addEventListener("fullscreenchange", this.onChange), this.container.addEventListener("webkitendfullscreen", this.onChange);
15326
15346
  }
15327
15347
  };
15328
- function gD() {
15348
+ function vD() {
15329
15349
  let e = xt(this.container);
15330
- return e ? e() : (this.container.classList.add(pD), Promise.resolve());
15350
+ return e ? e() : (this.container.classList.add(hD), Promise.resolve());
15331
15351
  }
15332
- function _D() {
15352
+ function yD() {
15333
15353
  let e = St(this.container);
15334
- return e ? e() : (this.container.classList.remove(pD), Promise.resolve());
15354
+ return e ? e() : (this.container.classList.remove(hD), Promise.resolve());
15335
15355
  }
15336
- p(hD, "isFullscreenApiSupported", (e) => Ct(e));
15337
- var vD = {
15356
+ p(_D, "isFullscreenApiSupported", (e) => Ct(e));
15357
+ var bD = {
15338
15358
  player: "_player_1vdos_1",
15339
15359
  "one-to-one": "_one-to-one_1vdos_19",
15340
15360
  "audio-only": "_audio-only_1vdos_28"
15341
- }, yD = {
15361
+ }, xD = {
15342
15362
  playoverlay: "_playoverlay_1niji_1",
15343
15363
  hidden: "_hidden_1niji_17",
15344
15364
  "playoverlay-indicator": "_playoverlay-indicator_1niji_23"
@@ -15346,15 +15366,15 @@ var vD = {
15346
15366
  //#endregion
15347
15367
  //#region ../../libs/player/src/PlayOverlay.ts
15348
15368
  m();
15349
- var bD, xD, SD, CD = (bD = yD.hidden) == null ? "" : bD, wD = (xD = yD.playoverlay) == null ? "" : xD, TD = (SD = yD["playoverlay-indicator"]) == null ? "" : SD, ED = class extends h {
15369
+ var SD, CD, wD, TD = (SD = xD.hidden) == null ? "" : SD, ED = (CD = xD.playoverlay) == null ? "" : CD, DD = (wD = xD["playoverlay-indicator"]) == null ? "" : wD, OD = class extends h {
15350
15370
  constructor() {
15351
- super(document.createElement("div")), p(this, "onClick", void 0), p(this, "indicator", document.createElement("div")), p(this, "isHidden", () => this.element.classList.contains(CD)), p(this, "setHidden", (e) => e ? this.hide() : this.show()), p(this, "hide", () => this.element.classList.add(CD)), p(this, "show", () => this.element.classList.remove(CD)), this.element.classList.add(wD), this.element.classList.add(CD), this.indicator.className = TD, this.element.appendChild(this.indicator), this.element.onclick = () => {
15371
+ super(document.createElement("div")), p(this, "onClick", void 0), p(this, "indicator", document.createElement("div")), p(this, "isHidden", () => this.element.classList.contains(TD)), p(this, "setHidden", (e) => e ? this.hide() : this.show()), p(this, "hide", () => this.element.classList.add(TD)), p(this, "show", () => this.element.classList.remove(TD)), this.element.classList.add(ED), this.element.classList.add(TD), this.indicator.className = DD, this.element.appendChild(this.indicator), this.element.onclick = () => {
15352
15372
  this.onClick && this.onClick();
15353
15373
  };
15354
15374
  }
15355
15375
  };
15356
15376
  H(), m(), P();
15357
- var DD = class extends nn {
15377
+ var kD = class extends nn {
15358
15378
  constructor({ vindral: e, refreshEveryMs: t }) {
15359
15379
  super(), p(this, "thumbnails", /* @__PURE__ */ new Map()), p(this, "interval", void 0), p(this, "channels", void 0), p(this, "refreshEveryMs", void 0), p(this, "isFetching", !1), p(this, "hasFetched", !1), this.channels = [...e.channels], this.refreshEveryMs = t || 6e4, e.on("channels", () => {
15360
15380
  this.channels = [...e.channels], this.hasFetched || this.refreshThumbnails();
@@ -15402,7 +15422,7 @@ var DD = class extends nn {
15402
15422
  }
15403
15423
  };
15404
15424
  H(), m(), P(), R();
15405
- var OD, kD, AD, jD = (OD = vD.player) == null ? "" : OD, MD = (kD = vD["one-to-one"]) == null ? "" : kD, ND = (AD = vD["audio-only"]) == null ? "" : AD, PD = {
15425
+ var AD, jD, MD, ND = (AD = bD.player) == null ? "" : AD, PD = (jD = bD["one-to-one"]) == null ? "" : jD, FD = (MD = bD["audio-only"]) == null ? "" : MD, ID = {
15406
15426
  controlsEnabled: !0,
15407
15427
  castEnabled: !0,
15408
15428
  channelSelectionEnabled: !0,
@@ -15416,10 +15436,10 @@ var OD, kD, AD, jD = (OD = vD.player) == null ? "" : OD, MD = (kD = vD["one-to-o
15416
15436
  airPlayButtonEnabled: !1,
15417
15437
  playOverlayEnabled: !0,
15418
15438
  bufferingOverlayEnabled: !0
15419
- }, FD = (e) => !Ww(e), ID = class {
15439
+ }, LD = (e) => !Kw(e), RD = class {
15420
15440
  constructor(e, t) {
15421
15441
  var n = this, r, i, a, o;
15422
- p(this, "core", void 0), p(this, "castSender", void 0), p(this, "airPlaySender", void 0), p(this, "options", void 0), p(this, "state", void 0), p(this, "playerElement", document.createElement("div")), p(this, "bufferingOverlay", void 0), p(this, "playOverlay", void 0), p(this, "castOverlay", new LE()), p(this, "channelSelectionList", void 0), p(this, "bar", void 0), p(this, "stateInterval", void 0), p(this, "thumbnailModule", void 0), p(this, "browser", pt()), p(this, "unload", () => {
15442
+ p(this, "core", void 0), p(this, "castSender", void 0), p(this, "airPlaySender", void 0), p(this, "options", void 0), p(this, "state", void 0), p(this, "playerElement", document.createElement("div")), p(this, "bufferingOverlay", void 0), p(this, "playOverlay", void 0), p(this, "castOverlay", new zE()), p(this, "channelSelectionList", void 0), p(this, "bar", void 0), p(this, "stateInterval", void 0), p(this, "thumbnailModule", void 0), p(this, "browser", pt()), p(this, "unload", () => {
15423
15443
  var e, t;
15424
15444
  this.stateInterval && window.clearInterval(this.stateInterval), this.core.unload(), this.playerElement.remove(), (e = this.thumbnailModule) == null || e.stop(), (t = this.airPlaySender) == null || t.unload();
15425
15445
  }), p(this, "attach", (e) => {
@@ -15460,7 +15480,7 @@ var OD, kD, AD, jD = (OD = vD.player) == null ? "" : OD, MD = (kD = vD["one-to-o
15460
15480
  this.core.muted = !e, this.core.muted = e;
15461
15481
  }
15462
15482
  }), p(this, "toggleOneToOne", () => {
15463
- this.playerElement.classList.contains(MD) ? this.playerElement.classList.remove(MD) : this.playerElement.classList.add(MD);
15483
+ this.playerElement.classList.contains(PD) ? this.playerElement.classList.remove(PD) : this.playerElement.classList.add(PD);
15464
15484
  }), p(this, "isInFullscreen", () => this.state.fullscreen.isFullscreen()), p(this, "enterFullscreen", N(function* () {
15465
15485
  n.triggerUserInput(), n.iosHackResetSize(), n.bar.fullscreenButton.setIcon("exit"), yield n.state.fullscreen.request(), n.lockOrientation();
15466
15486
  })), p(this, "exitFullscreen", () => (this.bar.fullscreenButton.setIcon("enter"), this.unlockOrientation(), this.state.fullscreen.exit())), p(this, "showAirPlayPicker", () => {
@@ -15479,20 +15499,20 @@ var OD, kD, AD, jD = (OD = vD.player) == null ? "" : OD, MD = (kD = vD["one-to-o
15479
15499
  var e, t, n;
15480
15500
  return !((e = this.options.channelSelectionOptions) == null || (e = e.barButton) == null) && e.enabled && !((t = this.options.channelSelectionOptions) == null || (t = t.barButton) == null) && t.thumbnails ? !0 : !!(!((n = this.options.channelSelectionOptions) == null || (n = n.list) == null) && n.enabled);
15481
15501
  }), p(this, "bumpInteractTime", () => void (this.state.lastInteractionTime = Date.now()));
15482
- let s = L(L({}, PD), t);
15483
- this.options = s, this.playerElement.className = jD, FD(e) ? this.core = e : this.core = new $w(e), this.state = {
15502
+ let s = L(L({}, ID), t);
15503
+ this.options = s, this.playerElement.className = ND, LD(e) ? this.core = e : this.core = new tT(e), this.state = {
15484
15504
  isBuffering: !1,
15485
- fullscreen: new hD(!hD.isFullscreenApiSupported(this.playerElement) && hD.isFullscreenApiSupported(this.core.mediaElement) ? this.core.mediaElement : this.playerElement),
15505
+ fullscreen: new _D(!_D.isFullscreenApiSupported(this.playerElement) && _D.isFullscreenApiSupported(this.core.mediaElement) ? this.core.mediaElement : this.playerElement),
15486
15506
  lastInteractionTime: 0
15487
- }, this.needsThumbnails() && (this.thumbnailModule = new DD({
15507
+ }, this.needsThumbnails() && (this.thumbnailModule = new kD({
15488
15508
  vindral: this.core,
15489
15509
  refreshEveryMs: t == null ? void 0 : t.thumbnailUpdateInterval
15490
- }), this.thumbnailModule.start()), !((r = this.options.channelSelectionOptions) == null || (r = r.list) == null) && r.enabled && (this.channelSelectionList = new uD({
15510
+ }), this.thumbnailModule.start()), !((r = this.options.channelSelectionOptions) == null || (r = r.list) == null) && r.enabled && (this.channelSelectionList = new fD({
15491
15511
  vindral: this.core,
15492
15512
  thumbnailModule: this.thumbnailModule
15493
15513
  }));
15494
15514
  let c = (t == null ? void 0 : t.channelSelectionEnabled) || (t == null || (i = t.channelSelectionOptions) == null || (i = i.barButton) == null ? void 0 : i.enabled), l = t == null || (a = t.channelSelectionOptions) == null || (a = a.barButton) == null ? void 0 : a.thumbnails;
15495
- this.bar = new jE(L(L({
15515
+ this.bar = new NE(L(L({
15496
15516
  vindral: this.core,
15497
15517
  thumbnailModule: this.thumbnailModule
15498
15518
  }, s), {}, {
@@ -15505,7 +15525,7 @@ var OD, kD, AD, jD = (OD = vD.player) == null ? "" : OD, MD = (kD = vD["one-to-o
15505
15525
  onOneToOneClicked: () => this.toggleOneToOne(),
15506
15526
  onPipClicked: () => void this.togglePip().catch((e) => console.error("error", e)),
15507
15527
  onAirPlayClicked: () => this.showAirPlayPicker()
15508
- })), this.core.media === "audio" && (this.playerElement.classList.add(ND), this.options.controlsEnabled && this.bar.show());
15528
+ })), this.core.media === "audio" && (this.playerElement.classList.add(FD), this.options.controlsEnabled && this.bar.show());
15509
15529
  let u = this.core.getCastOptions();
15510
15530
  this.castSender = new Pr({
15511
15531
  background: this.options.castBackground,
@@ -15550,7 +15570,7 @@ var OD, kD, AD, jD = (OD = vD.player) == null ? "" : OD, MD = (kD = vD["one-to-o
15550
15570
  break;
15551
15571
  }
15552
15572
  }
15553
- }), this.core.attach(this.playerElement), this.castOverlay.attach(this.playerElement), this.options.bufferingOverlayEnabled && (this.bufferingOverlay = new ne(), this.bufferingOverlay.attach(this.playerElement)), this.options.playOverlayEnabled && (this.playOverlay = new ED(), this.playOverlay.attach(this.playerElement), this.playOverlay.onClick = () => {
15573
+ }), this.core.attach(this.playerElement), this.castOverlay.attach(this.playerElement), this.options.bufferingOverlayEnabled && (this.bufferingOverlay = new ne(), this.bufferingOverlay.attach(this.playerElement)), this.options.playOverlayEnabled && (this.playOverlay = new OD(), this.playOverlay.attach(this.playerElement), this.playOverlay.onClick = () => {
15554
15574
  var e;
15555
15575
  this.core.userInput(), (e = this.playOverlay) == null || e.hide();
15556
15576
  }), this.channelSelectionList && this.channelSelectionList.attach(this.playerElement), this.bar.attach(this.playerElement), this.playerElement.addEventListener("click", this.onClick), this.playerElement.addEventListener("mousemove", this.onMouseMove), this.state.fullscreen.on("on fullscreen change", (e) => {
@@ -15562,4 +15582,4 @@ var OD, kD, AD, jD = (OD = vD.player) == null ? "" : OD, MD = (kD = vD["one-to-o
15562
15582
  }
15563
15583
  };
15564
15584
  //#endregion
15565
- export { mi as AUTHENTICATION_EXPIRED_CODE, pi as AUTHENTICATION_FAILED_CODE, zu as ApiClient, hi as CHANNEL_NOT_FOUND_CODE, gi as CHANNEL_NOT_LIVE_CODE, fi as CONNECTION_FAILED_AFTER_RETRIES_CODE, di as CONNECTION_FAILED_CODE, Pr as CastSender, Si as DISCONNECTED_BY_EDGE, vi as INACTIVITY_CODE, _i as NO_INCOMING_DATA, ID as Player, $w as Vindral, U as VindralError };
15585
+ export { mi as AUTHENTICATION_EXPIRED_CODE, pi as AUTHENTICATION_FAILED_CODE, zu as ApiClient, hi as CHANNEL_NOT_FOUND_CODE, gi as CHANNEL_NOT_LIVE_CODE, fi as CONNECTION_FAILED_AFTER_RETRIES_CODE, di as CONNECTION_FAILED_CODE, Pr as CastSender, Si as DISCONNECTED_BY_EDGE, vi as INACTIVITY_CODE, _i as NO_INCOMING_DATA, RD as Player, tT as Vindral, U as VindralError };