@vindral/web-sdk 4.1.8-5-gfb5ffadf → 4.1.8-6-g43df7939

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.
@@ -231,21 +231,21 @@ function su(s) {
231
231
  const e = new _c(s);
232
232
  return [e, e];
233
233
  }
234
- var Mt, Xs, Ye, Lr;
234
+ var xt, Xs, Ye, Lr;
235
235
  class _c {
236
236
  constructor(e) {
237
237
  /// The internal queue
238
- d(this, Mt);
238
+ d(this, xt);
239
239
  /// Slows down push when the queue is full
240
240
  d(this, Xs, new z());
241
241
  /// Slows down pop when the queue is empty
242
242
  d(this, Ye);
243
243
  /// The channel is closed
244
244
  d(this, Lr, !1);
245
- m(this, Mt, new ee(e));
245
+ m(this, xt, new ee(e));
246
246
  }
247
247
  isFull() {
248
- return a(this, Mt).isFull();
248
+ return a(this, xt).isFull();
249
249
  }
250
250
  close() {
251
251
  var e;
@@ -258,14 +258,14 @@ class _c {
258
258
  push(e) {
259
259
  return f(this, null, function* () {
260
260
  var t;
261
- a(this, Mt).isFull() && (yield a(this, Xs).promise), a(this, Mt).push(e), (t = a(this, Ye)) == null || t.resolve(), m(this, Ye, new z());
261
+ a(this, xt).isFull() && (yield a(this, Xs).promise), a(this, xt).push(e), (t = a(this, Ye)) == null || t.resolve(), m(this, Ye, new z());
262
262
  });
263
263
  }
264
264
  pop() {
265
265
  return f(this, null, function* () {
266
266
  var e;
267
- for (; !(a(this, Lr) && a(this, Mt).isEmpty()); ) {
268
- const t = a(this, Mt).pop();
267
+ for (; !(a(this, Lr) && a(this, xt).isEmpty()); ) {
268
+ const t = a(this, xt).pop();
269
269
  if (t)
270
270
  return a(this, Xs).resolve(), m(this, Xs, new z()), t;
271
271
  a(this, Ye) || m(this, Ye, new z()), yield (e = a(this, Ye)) == null ? void 0 : e.promise;
@@ -297,8 +297,8 @@ class _c {
297
297
  return this;
298
298
  }
299
299
  }
300
- Mt = new WeakMap(), Xs = new WeakMap(), Ye = new WeakMap(), Lr = new WeakMap();
301
- function M(s) {
300
+ xt = new WeakMap(), Xs = new WeakMap(), Ye = new WeakMap(), Lr = new WeakMap();
301
+ function x(s) {
302
302
  return typeof BigInt == "function" ? BigInt(s) : s;
303
303
  }
304
304
  var Dr, ft, Ke;
@@ -356,25 +356,25 @@ const nu = (s, e, t) => {
356
356
  i = i * 256 + s[n];
357
357
  return i;
358
358
  };
359
- var ne, xt, ti;
359
+ var ne, Mt, ti;
360
360
  class Zn {
361
361
  constructor(e) {
362
362
  d(this, ne);
363
- d(this, xt);
363
+ d(this, Mt);
364
364
  d(this, ti);
365
- m(this, xt, e), m(this, ti, new DataView(e.buffer, e.byteOffset, e.byteLength)), m(this, ne, 0);
365
+ m(this, Mt, e), m(this, ti, new DataView(e.buffer, e.byteOffset, e.byteLength)), m(this, ne, 0);
366
366
  }
367
367
  position() {
368
368
  return a(this, ne);
369
369
  }
370
370
  byteOffset() {
371
- return a(this, xt).byteOffset + a(this, ne);
371
+ return a(this, Mt).byteOffset + a(this, ne);
372
372
  }
373
373
  buffer() {
374
- return a(this, xt);
374
+ return a(this, Mt);
375
375
  }
376
376
  remaining() {
377
- return a(this, xt).length - a(this, ne);
377
+ return a(this, Mt).length - a(this, ne);
378
378
  }
379
379
  readUint8() {
380
380
  const e = a(this, ti).getUint8(a(this, ne));
@@ -393,11 +393,11 @@ class Zn {
393
393
  return m(this, ne, a(this, ne) + 4), e;
394
394
  }
395
395
  readUint64() {
396
- const e = nu(a(this, xt), a(this, ne), a(this, ne) + 7);
396
+ const e = nu(a(this, Mt), a(this, ne), a(this, ne) + 7);
397
397
  return m(this, ne, a(this, ne) + 8), e;
398
398
  }
399
399
  readBytes(e) {
400
- const t = a(this, xt).subarray(a(this, ne), a(this, ne) + e);
400
+ const t = a(this, Mt).subarray(a(this, ne), a(this, ne) + e);
401
401
  return m(this, ne, a(this, ne) + e), t;
402
402
  }
403
403
  readRemaining() {
@@ -411,7 +411,7 @@ class Zn {
411
411
  return new TextDecoder().decode(new Uint8Array(e));
412
412
  }
413
413
  }
414
- ne = new WeakMap(), xt = new WeakMap(), ti = new WeakMap();
414
+ ne = new WeakMap(), Mt = new WeakMap(), ti = new WeakMap();
415
415
  class bm {
416
416
  constructor(e = 100, t = 100) {
417
417
  r(this, "resizeSteps");
@@ -601,7 +601,7 @@ const Cs = (s, e) => {
601
601
  for (const n in e)
602
602
  if (i += 1, !(n in s) || !Cs(s[n], e[n])) return !1;
603
603
  return t == i;
604
- }, ku = ["off", "error", "warn", "info", "debug", "trace"], Mm = {
604
+ }, ku = ["off", "error", "warn", "info", "debug", "trace"], xm = {
605
605
  OFF: "off"
606
606
  };
607
607
  var Oi, Or, Fi, qs, Zs;
@@ -692,7 +692,7 @@ function Bd() {
692
692
  return typeof Symbol.dispose != "symbol" && Object.defineProperty(Symbol, "dispose", { value: /* @__PURE__ */ Symbol.for("dispose") }), Symbol.dispose;
693
693
  }
694
694
  var Fr, hh;
695
- class xm {
695
+ class Mm {
696
696
  constructor(e, t) {
697
697
  d(this, Fr);
698
698
  r(this, "value");
@@ -733,7 +733,7 @@ class Lm {
733
733
  m(this, _i, i);
734
734
  }).catch(D);
735
735
  const t = a(this, Ni).promise.then(() => e);
736
- return m(this, Ni, e), yield t, new xm(a(this, _i), e);
736
+ return m(this, Ni, e), yield t, new Mm(a(this, _i), e);
737
737
  });
738
738
  }
739
739
  }
@@ -883,7 +883,7 @@ const Ru = () => {
883
883
  width: Number.MAX_SAFE_INTEGER,
884
884
  height: Number.MAX_SAFE_INTEGER
885
885
  }), Bu = (s) => !(typeof s != "object" || s === null || !("type" in s)), Om = "connection_failed", Fm = "connection_failed_will_not_attempt_again", _m = "authentication_error", Nm = "authentication_expired", Vm = "channel_not_found", Gm = "no_incoming_data_error", jm = "connection_inactivity", Wm = "missing_init_segment", zm = "no_track_context", Hm = "invalid_track_context_state", Qm = "disconnected_by_edge", Xm = "decoder_error", qm = "audio_player_error", Zm = "media_source_error", Jm = "webgl_context_lost_error", $m = "access_forbidden", Ym = "channel_switch_failed", Km = "drm_error";
886
- class x extends Error {
886
+ class M extends Error {
887
887
  constructor(t, i, n = {}) {
888
888
  super(t);
889
889
  r(this, "props");
@@ -925,42 +925,42 @@ class x extends Error {
925
925
  this.props = i, this.extra = n, Object.setPrototypeOf(this, new.target.prototype);
926
926
  }
927
927
  }
928
- const ef = (s, e) => new x(
928
+ const ef = (s, e) => new M(
929
929
  "MediaElement Error",
930
930
  { isFatal: s, code: "media_element_error", source: e },
931
931
  { mediaErrorCode: e.code }
932
- ), tf = (s, e) => new x("Decoder Error", { isFatal: s, code: Xm, source: e, type: "internal" }), Pd = (s, e) => new x("Audio Player Error", { isFatal: s, code: qm, source: e, type: "internal" }), sf = (s, e) => new x(`No init segment for rendition id ${s} for channel ${e}`, {
932
+ ), tf = (s, e) => new M("Decoder Error", { isFatal: s, code: Xm, source: e, type: "internal" }), Pd = (s, e) => new M("Audio Player Error", { isFatal: s, code: qm, source: e, type: "internal" }), sf = (s, e) => new M(`No init segment for rendition id ${s} for channel ${e}`, {
933
933
  isFatal: !1,
934
934
  code: Wm,
935
935
  type: "internal"
936
- }), Uu = (s, e, t, i) => new x(
936
+ }), Uu = (s, e, t, i) => new M(
937
937
  "MediaSource Error",
938
938
  { isFatal: s, code: Zm, source: e, type: "internal" },
939
939
  { type: i, consecutiveErrorsCount: t }
940
- ), Ka = (s, e) => new x(`No track context for ${s}${e ? `, rendition id ${e}` : ""}`, {
940
+ ), Ka = (s, e) => new M(`No track context for ${s}${e ? `, rendition id ${e}` : ""}`, {
941
941
  isFatal: !1,
942
942
  code: zm,
943
943
  type: "internal"
944
- }), nf = (s, e) => new x(
944
+ }), nf = (s, e) => new M(
945
945
  `Track context is in an invalid state for ${s}${e ? `, rendition id ${e}` : ""}`,
946
946
  {
947
947
  isFatal: !1,
948
948
  code: Hm,
949
949
  type: "internal"
950
950
  }
951
- ), rf = () => new x("Web Audio Context resume timeout", { isFatal: !1, code: "web_audio_context_resume_timeout" }), tr = (s) => new x("Disconnected From Edge Server", {
951
+ ), rf = () => new M("Web Audio Context resume timeout", { isFatal: !1, code: "web_audio_context_resume_timeout" }), tr = (s) => new M("Disconnected From Edge Server", {
952
952
  type: "external",
953
953
  source: s,
954
954
  isFatal: !1,
955
955
  code: Qm
956
- }), po = (s) => new x("Authentication Failed", { isFatal: !0, code: _m, source: s }), af = (s) => new x("Authentication Expired", { isFatal: !0, code: Nm, source: s }), of = (s, e) => new x("Connection closed due to inactivity", { isFatal: !1, code: jm, source: e, type: s }), Md = (s, e) => new x("Channel not found", { isFatal: !1, code: Vm, source: e, type: s }), cf = (s) => new x("No Incoming Data", { isFatal: !1, code: Gm, source: s }), hf = (s) => new x("Connection attempt failed", {
956
+ }), po = (s) => new M("Authentication Failed", { isFatal: !0, code: _m, source: s }), af = (s) => new M("Authentication Expired", { isFatal: !0, code: Nm, source: s }), of = (s, e) => new M("Connection closed due to inactivity", { isFatal: !1, code: jm, source: e, type: s }), xd = (s, e) => new M("Channel not found", { isFatal: !1, code: Vm, source: e, type: s }), cf = (s) => new M("No Incoming Data", { isFatal: !1, code: Gm, source: s }), hf = (s) => new M("Connection attempt failed", {
957
957
  isFatal: !1,
958
958
  code: Om,
959
959
  source: s
960
- }), xd = () => new x("Connection failed - no more reconnect attempts", {
960
+ }), Md = () => new M("Connection failed - no more reconnect attempts", {
961
961
  isFatal: !0,
962
962
  code: Fm
963
- }), uf = (s) => new x("WebGL Context Lost", { isFatal: !1, code: Jm, source: s, type: "internal" }), Pu = (s) => new x(s, { isFatal: !0, code: $m }), Mu = (s) => new x(`Channel switch to '${s}' failed`, { isFatal: !1, code: Ym }), Ld = (s, e = !1, t) => new x(s, { isFatal: e, code: Km, source: t }), df = {
963
+ }), uf = (s) => new M("WebGL Context Lost", { isFatal: !1, code: Jm, source: s, type: "internal" }), Pu = (s) => new M(s, { isFatal: !0, code: $m }), xu = (s) => new M(`Channel switch to '${s}' failed`, { isFatal: !1, code: Ym }), Ld = (s, e = !1, t) => new M(s, { isFatal: e, code: Km, source: t }), df = {
964
964
  sizeBasedResolutionCapEnabled: !0,
965
965
  pictureInPictureEnabled: !0,
966
966
  abrEnabled: !0,
@@ -971,7 +971,7 @@ const ef = (s, e) => new x(
971
971
  volume: 1,
972
972
  minBufferTime: 1500,
973
973
  maxBufferTime: 1500,
974
- logLevel: Mm.OFF,
974
+ logLevel: xm.OFF,
975
975
  maxSize: fo(),
976
976
  maxVideoBitRate: Ti(),
977
977
  maxAudioBitRate: Ti(),
@@ -1088,7 +1088,7 @@ class ff extends Vc {
1088
1088
  }
1089
1089
  }
1090
1090
  _r = new WeakMap();
1091
- const xu = {
1091
+ const Mu = {
1092
1092
  playready: ["150", "2000", "3000"],
1093
1093
  widevine: ["SW_SECURE_CRYPTO", "SW_SECURE_DECODE", "HW_SECURE_CRYPTO", "HW_SECURE_DECODE", "HW_SECURE_ALL"],
1094
1094
  fairplay: [""],
@@ -1148,7 +1148,7 @@ const xu = {
1148
1148
  }
1149
1149
  return c;
1150
1150
  }), gf = (s, e, t, i) => f(null, null, function* () {
1151
- const { keySystem: n, supportedConfig: o } = pf[s], { initDataTypes: c, videoCapabilities: h, audioCapabilities: u } = o, l = i == null ? void 0 : i[s], p = (l == null ? void 0 : l.videoRobustness) || xu[s], g = (l == null ? void 0 : l.audioRobustness) || xu[s], [w, b] = yield Promise.all([
1151
+ const { keySystem: n, supportedConfig: o } = pf[s], { initDataTypes: c, videoCapabilities: h, audioCapabilities: u } = o, l = i == null ? void 0 : i[s], p = (l == null ? void 0 : l.videoRobustness) || Mu[s], g = (l == null ? void 0 : l.audioRobustness) || Mu[s], [w, b] = yield Promise.all([
1152
1152
  Lu(
1153
1153
  n,
1154
1154
  c,
@@ -1540,8 +1540,8 @@ const Tf = 7, Ef = 8, kf = (s) => {
1540
1540
  { numerator: 3, denumerator: 2 },
1541
1541
  { numerator: 2, denumerator: 1 }
1542
1542
  ], Pf = 184549376;
1543
- function Mf(s) {
1544
- const e = new Zn(s), t = xf(e);
1543
+ function xf(s) {
1544
+ const e = new Zn(s), t = Mf(e);
1545
1545
  (t.flags & Pf) !== 0 && Lf(e);
1546
1546
  const i = Df(e);
1547
1547
  if (String.fromCharCode(...i.frameId) === "TXXX") {
@@ -1552,7 +1552,7 @@ function Mf(s) {
1552
1552
  };
1553
1553
  }
1554
1554
  }
1555
- function xf(s) {
1555
+ function Mf(s) {
1556
1556
  const e = s.readBytes(3), t = s.readUint8(), i = s.readUint8(), n = s.readUint8(), o = s.readUint32();
1557
1557
  return {
1558
1558
  id: e,
@@ -2132,7 +2132,7 @@ const Ns = class Ns {
2132
2132
  }
2133
2133
  };
2134
2134
  r(Ns, "type", "prft");
2135
- let Mo = Ns;
2135
+ let xo = Ns;
2136
2136
  var Gr, jr;
2137
2137
  class Wf {
2138
2138
  constructor(e, t) {
@@ -2165,7 +2165,7 @@ const zf = {
2165
2165
  stbl: Io,
2166
2166
  mdhd: Eo,
2167
2167
  stsd: ko,
2168
- prft: Mo,
2168
+ prft: xo,
2169
2169
  avc1: dh,
2170
2170
  avcC: uh,
2171
2171
  Opus: mh,
@@ -2211,7 +2211,7 @@ function Qf(s) {
2211
2211
  throw new Error("moof atom not found");
2212
2212
  if (!o || !(o instanceof Ao))
2213
2213
  throw new Error("mdat atom not found");
2214
- if (c && !(c instanceof Mo))
2214
+ if (c && !(c instanceof xo))
2215
2215
  throw new Error("invalid prft found");
2216
2216
  return {
2217
2217
  moof: n,
@@ -2420,8 +2420,8 @@ const j = {
2420
2420
  prft: R("prft"),
2421
2421
  dOps: R("dOps"),
2422
2422
  emsg: R("emsg")
2423
- }, qf = 1e3, Mr = R("iso6"), _u = new Uint8Array([0, 0, 2, 0]), Zf = [
2424
- Mr,
2423
+ }, qf = 1e3, xr = R("iso6"), _u = new Uint8Array([0, 0, 2, 0]), Zf = [
2424
+ xr,
2425
2425
  new Uint8Array([105, 115, 111, 109]),
2426
2426
  // isom
2427
2427
  new Uint8Array([105, 115, 111, 50]),
@@ -2431,7 +2431,7 @@ const j = {
2431
2431
  new Uint8Array([109, 112, 52, 49])
2432
2432
  // mp41
2433
2433
  ], Jf = [
2434
- Mr,
2434
+ xr,
2435
2435
  new Uint8Array([105, 115, 111, 109]),
2436
2436
  // isom
2437
2437
  new Uint8Array([105, 115, 111, 50]),
@@ -2441,7 +2441,7 @@ const j = {
2441
2441
  new Uint8Array([109, 112, 52, 49])
2442
2442
  // mp41
2443
2443
  ], $f = [
2444
- Mr,
2444
+ xr,
2445
2445
  new Uint8Array([105, 115, 111, 109]),
2446
2446
  // isom
2447
2447
  new Uint8Array([105, 115, 111, 50]),
@@ -2463,8 +2463,8 @@ const re = (s, e, t) => {
2463
2463
  re(
2464
2464
  s,
2465
2465
  j.ftyp,
2466
- Mr.byteLength + _u.byteLength + e.reduce((t, i) => t + i.byteLength, 0)
2467
- ), s.writer.writeBytes(Mr), s.writer.writeBytes(_u), e.forEach((t) => s.writer.writeBytes(t));
2466
+ xr.byteLength + _u.byteLength + e.reduce((t, i) => t + i.byteLength, 0)
2467
+ ), s.writer.writeBytes(xr), s.writer.writeBytes(_u), e.forEach((t) => s.writer.writeBytes(t));
2468
2468
  }, Yf = 2 ** 32, Kf = 2208988800, ep = (s, e, t, i) => {
2469
2469
  oe(s, j.prft, 20, 1, 0);
2470
2470
  const o = t / 1e3, c = Math.floor(o), u = (o - c) * 1e3 * 1e3 * Yf / 1e6;
@@ -2782,7 +2782,7 @@ const re = (s, e, t) => {
2782
2782
  duration: 0,
2783
2783
  sampleRate: 48e3
2784
2784
  }
2785
- ]), Mp = (s, e) => {
2785
+ ]), xp = (s, e) => {
2786
2786
  const t = s.map((c) => O(S({}, c), {
2787
2787
  data: new Uint8Array(c.data)
2788
2788
  }));
@@ -2801,7 +2801,7 @@ const re = (s, e, t) => {
2801
2801
  }, Zd = (s) => {
2802
2802
  const e = new Ed(s);
2803
2803
  return e.peekBit() === 1 && e.readBits(32), Dp(e), Wp(e);
2804
- }, xp = (s) => {
2804
+ }, Mp = (s) => {
2805
2805
  let e = 0, t = 0;
2806
2806
  for (let i = 0; i < 8; i++) {
2807
2807
  const n = s.readBits(8);
@@ -2820,7 +2820,7 @@ const re = (s, e, t) => {
2820
2820
  return;
2821
2821
  const n = t >> 3 & 15, o = t >> 2 & 1, c = t >> 1 & 1;
2822
2822
  o == 1 && s.readBits(8);
2823
- const [h, u] = c ? xp(s) : [0, e];
2823
+ const [h, u] = c ? Mp(s) : [0, e];
2824
2824
  return {
2825
2825
  headerLength: 1 + o + h,
2826
2826
  type: n,
@@ -2846,7 +2846,7 @@ const re = (s, e, t) => {
2846
2846
  throw new Error("Not implemented");
2847
2847
  u = s.readBit() !== 0;
2848
2848
  const Z = s.readBits(5) + 1;
2849
- for (let Me = 0; Me < Z; Me++) {
2849
+ for (let xe = 0; xe < Z; xe++) {
2850
2850
  const J = s.readBits(12), ce = s.readBits(5);
2851
2851
  let Ne = 0;
2852
2852
  if (ce > 7 && (Ne = s.readBit()), c)
@@ -3014,7 +3014,7 @@ const re = (s, e, t) => {
3014
3014
  case "h264":
3015
3015
  return Bp(s, e);
3016
3016
  case "opus":
3017
- return Mp(s, e);
3017
+ return xp(s, e);
3018
3018
  case "aac":
3019
3019
  return Cp(s, e);
3020
3020
  case "av1":
@@ -3236,7 +3236,7 @@ class Ah extends Ei {
3236
3236
  r(this, "play", () => {
3237
3237
  this.element.muted = this._userProvidedMuted, this._play().catch((t) => {
3238
3238
  if (t instanceof Error) {
3239
- const i = new x("Media Play Error", { source: t, isFatal: !1, code: "media_play_error" });
3239
+ const i = new M("Media Play Error", { source: t, isFatal: !1, code: "media_play_error" });
3240
3240
  this.emit("error", i);
3241
3241
  }
3242
3242
  });
@@ -3525,7 +3525,7 @@ const gg = {
3525
3525
  };
3526
3526
  r(Yt, "BUFFER_TIME_STEP_SIZE", 500), r(Yt, "BUFFER_TIME_MAX_STEPS", 3), r(Yt, "create", (e, t, i, n, o = {}) => new Yt(e, t, i, n, o));
3527
3527
  let bh = Yt;
3528
- var xo = /* @__PURE__ */ ((s) => (s[s.StreamHeaderGroup = 4] = "StreamHeaderGroup", s[s.FetchHeader = 5] = "FetchHeader", s[s.StreamHeaderTrack = 60] = "StreamHeaderTrack", s))(xo || {});
3528
+ var Mo = /* @__PURE__ */ ((s) => (s[s.StreamHeaderGroup = 4] = "StreamHeaderGroup", s[s.FetchHeader = 5] = "FetchHeader", s[s.StreamHeaderTrack = 60] = "StreamHeaderTrack", s))(Mo || {});
3529
3529
  const Ee = {
3530
3530
  Normal: 0,
3531
3531
  ObjectDoesNotExist: 1,
@@ -3580,7 +3580,7 @@ class Ag {
3580
3580
  subscribeId: a(this, Ks),
3581
3581
  trackAlias: a(this, Hr),
3582
3582
  groupId: e,
3583
- subGroupId: M(0),
3583
+ subGroupId: x(0),
3584
3584
  objectId: t,
3585
3585
  subscriberPriority: a(this, Qr),
3586
3586
  streamId: a(this, qr),
@@ -3749,11 +3749,11 @@ function tl(s, e) {
3749
3749
  return f(this, null, function* () {
3750
3750
  const t = yield s.readVarInt();
3751
3751
  switch (t) {
3752
- case xo.StreamHeaderGroup: {
3752
+ case Mo.StreamHeaderGroup: {
3753
3753
  const i = yield s.readBigVarInt(), n = yield s.readBigVarInt(), o = yield s.readBigVarInt(), c = yield s.readBigVarInt(), h = yield s.readUnsigned8();
3754
3754
  return new bg(s, i, n, o, c, h, e);
3755
3755
  }
3756
- case xo.StreamHeaderTrack: {
3756
+ case Mo.StreamHeaderTrack: {
3757
3757
  const i = yield s.readBigVarInt(), n = yield s.readBigVarInt(), o = yield s.readUnsigned8();
3758
3758
  return new wg(s, i, n, o, e);
3759
3759
  }
@@ -3807,7 +3807,7 @@ class Sg {
3807
3807
  }
3808
3808
  }
3809
3809
  wt = new WeakMap(), Wi = new WeakMap(), zi = new WeakMap(), Hi = new WeakMap();
3810
- var bt, ia, Qi, yt, Yo, W, rr, no, Mi, ro, Jt;
3810
+ var bt, ia, Qi, yt, Yo, W, rr, no, xi, ro, Jt;
3811
3811
  class Lo {
3812
3812
  constructor(e, t) {
3813
3813
  d(this, W);
@@ -3820,7 +3820,7 @@ class Lo {
3820
3820
  }
3821
3821
  readUnsigned8() {
3822
3822
  return f(this, null, function* () {
3823
- return yield A(this, W, Mi).call(this, 1), A(this, W, Jt).call(this, 1)[0];
3823
+ return yield A(this, W, xi).call(this, 1), A(this, W, Jt).call(this, 1)[0];
3824
3824
  });
3825
3825
  }
3826
3826
  readString() {
@@ -3839,28 +3839,28 @@ class Lo {
3839
3839
  }
3840
3840
  readBigVarInt() {
3841
3841
  return f(this, null, function* () {
3842
- yield A(this, W, Mi).call(this, 1);
3842
+ yield A(this, W, xi).call(this, 1);
3843
3843
  const e = (A(this, W, ro).call(this, 1)[0] & 192) >> 6;
3844
3844
  switch (a(this, bt)[a(this, yt)] = A(this, W, ro).call(this, 1)[0] & 63, e) {
3845
3845
  case 0:
3846
- return M(A(this, W, Jt).call(this, 1)[0]);
3846
+ return x(A(this, W, Jt).call(this, 1)[0]);
3847
3847
  case 1: {
3848
- yield A(this, W, Mi).call(this, 2);
3848
+ yield A(this, W, xi).call(this, 2);
3849
3849
  const t = A(this, W, Jt).call(this, 2), i = new DataView(t.buffer, t.byteOffset, t.byteLength);
3850
- return M(i.getUint16(0));
3850
+ return x(i.getUint16(0));
3851
3851
  }
3852
3852
  case 2: {
3853
- yield A(this, W, Mi).call(this, 4);
3853
+ yield A(this, W, xi).call(this, 4);
3854
3854
  const t = A(this, W, Jt).call(this, 4), i = new DataView(t.buffer, t.byteOffset, t.byteLength);
3855
- return M(i.getUint32(0));
3855
+ return x(i.getUint32(0));
3856
3856
  }
3857
3857
  case 3: {
3858
- yield A(this, W, Mi).call(this, 8);
3858
+ yield A(this, W, xi).call(this, 8);
3859
3859
  const t = A(this, W, Jt).call(this, 8), i = new DataView(t.buffer, t.byteOffset, t.byteLength);
3860
3860
  if (typeof i.getBigUint64 != "undefined")
3861
- return M(i.getBigUint64(0));
3861
+ return x(i.getBigUint64(0));
3862
3862
  const n = nu(t, 0, 7);
3863
- return M(n);
3863
+ return x(n);
3864
3864
  }
3865
3865
  default:
3866
3866
  throw new Error("Invalid VarInt size");
@@ -3869,7 +3869,7 @@ class Lo {
3869
3869
  }
3870
3870
  read(e) {
3871
3871
  return f(this, null, function* () {
3872
- return yield A(this, W, Mi).call(this, e), A(this, W, Jt).call(this, e);
3872
+ return yield A(this, W, xi).call(this, e), A(this, W, Jt).call(this, e);
3873
3873
  });
3874
3874
  }
3875
3875
  readAll() {
@@ -3910,7 +3910,7 @@ bt = new WeakMap(), ia = new WeakMap(), Qi = new WeakMap(), yt = new WeakMap(),
3910
3910
  }
3911
3911
  return m(this, yt, 0), Promise.resolve(e.length);
3912
3912
  });
3913
- }, Mi = function(e) {
3913
+ }, xi = function(e) {
3914
3914
  return f(this, null, function* () {
3915
3915
  for (; A(this, W, rr).call(this) < e; )
3916
3916
  if ((yield A(this, W, no).call(this)) === 0)
@@ -3963,11 +3963,11 @@ on = new WeakMap(), cn = new WeakMap(), Ot = new WeakMap(), Ko = new WeakMap();
3963
3963
  const sl = {
3964
3964
  OPEN: 1
3965
3965
  };
3966
- var Ue, xe, Xi, ec;
3966
+ var Ue, Me, Xi, ec;
3967
3967
  const Br = class Br {
3968
3968
  constructor(e) {
3969
3969
  d(this, Ue, 0);
3970
- d(this, xe, new Uint8Array(Br.DEFAULT_BUFFER_SIZE));
3970
+ d(this, Me, new Uint8Array(Br.DEFAULT_BUFFER_SIZE));
3971
3971
  d(this, Xi);
3972
3972
  d(this, ec, new TextEncoder());
3973
3973
  m(this, Xi, e);
@@ -3979,39 +3979,39 @@ const Br = class Br {
3979
3979
  });
3980
3980
  }
3981
3981
  ensureBufferSpace(e) {
3982
- if (a(this, xe).length - a(this, Ue) >= e)
3982
+ if (a(this, Me).length - a(this, Ue) >= e)
3983
3983
  return;
3984
- const t = new Uint8Array(a(this, xe).length + e);
3985
- t.set(a(this, xe)), m(this, xe, t);
3984
+ const t = new Uint8Array(a(this, Me).length + e);
3985
+ t.set(a(this, Me)), m(this, Me, t);
3986
3986
  }
3987
3987
  write(e) {
3988
- return this.ensureBufferSpace(e.length), a(this, xe).set(e, a(this, Ue)), m(this, Ue, a(this, Ue) + e.byteLength), Promise.resolve();
3988
+ return this.ensureBufferSpace(e.length), a(this, Me).set(e, a(this, Ue)), m(this, Ue, a(this, Ue) + e.byteLength), Promise.resolve();
3989
3989
  }
3990
3990
  writeUnsigned8(e) {
3991
- return this.ensureBufferSpace(1), Wc(e, a(this, xe).subarray(a(this, Ue))), m(this, Ue, a(this, Ue) + 1), Promise.resolve();
3991
+ return this.ensureBufferSpace(1), Wc(e, a(this, Me).subarray(a(this, Ue))), m(this, Ue, a(this, Ue) + 1), Promise.resolve();
3992
3992
  }
3993
3993
  writeVarInt(e) {
3994
3994
  if (e < 0)
3995
3995
  throw new Error(`VarInt can not be negative: ${e}`);
3996
- return this.ensureBufferSpace(8), m(this, Ue, a(this, Ue) + dl(e, a(this, xe).subarray(a(this, Ue))).byteLength), Promise.resolve();
3996
+ return this.ensureBufferSpace(8), m(this, Ue, a(this, Ue) + dl(e, a(this, Me).subarray(a(this, Ue))).byteLength), Promise.resolve();
3997
3997
  }
3998
3998
  writeBigVarInt(e) {
3999
3999
  if (e < 0)
4000
4000
  throw new Error(`VarInt can not be negative: ${e}`);
4001
- return this.ensureBufferSpace(8), m(this, Ue, a(this, Ue) + ll(e, a(this, xe).subarray(a(this, Ue))).byteLength), Promise.resolve();
4001
+ return this.ensureBufferSpace(8), m(this, Ue, a(this, Ue) + ll(e, a(this, Me).subarray(a(this, Ue))).byteLength), Promise.resolve();
4002
4002
  }
4003
4003
  flush() {
4004
4004
  if (a(this, Xi).readyState !== sl.OPEN)
4005
4005
  throw new Error("Writer is not open");
4006
- return a(this, Xi).send(a(this, xe).subarray(0, a(this, Ue))), m(this, Ue, 0), m(this, xe, new Uint8Array(Br.DEFAULT_BUFFER_SIZE)), Promise.resolve();
4006
+ return a(this, Xi).send(a(this, Me).subarray(0, a(this, Ue))), m(this, Ue, 0), m(this, Me, new Uint8Array(Br.DEFAULT_BUFFER_SIZE)), Promise.resolve();
4007
4007
  }
4008
4008
  close() {
4009
4009
  return a(this, Xi).close(), Promise.resolve();
4010
4010
  }
4011
4011
  };
4012
- Ue = new WeakMap(), xe = new WeakMap(), Xi = new WeakMap(), ec = new WeakMap(), r(Br, "DEFAULT_BUFFER_SIZE", 1024);
4013
- let xr = Br;
4014
- const nl = 2 ** 6 - 1, rl = 2 ** 14 - 1, al = 2 ** 30 - 1, vg = Number.MAX_SAFE_INTEGER, Tg = typeof BigInt == "function" ? M(2) ** M(62) - M(1) : M(Number.MAX_SAFE_INTEGER);
4012
+ Ue = new WeakMap(), Me = new WeakMap(), Xi = new WeakMap(), ec = new WeakMap(), r(Br, "DEFAULT_BUFFER_SIZE", 1024);
4013
+ let Mr = Br;
4014
+ const nl = 2 ** 6 - 1, rl = 2 ** 14 - 1, al = 2 ** 30 - 1, vg = Number.MAX_SAFE_INTEGER, Tg = typeof BigInt == "function" ? x(2) ** x(62) - x(1) : x(Number.MAX_SAFE_INTEGER);
4015
4015
  function Wc(s, e) {
4016
4016
  return e[0] = s, e.subarray(0, 1);
4017
4017
  }
@@ -4072,7 +4072,7 @@ function au(s, e) {
4072
4072
  yield s.writeString(t);
4073
4073
  });
4074
4074
  }
4075
- const Do = M(2);
4075
+ const Do = x(2);
4076
4076
  function Yn(s) {
4077
4077
  return f(this, null, function* () {
4078
4078
  const e = yield s.readVarInt(), t = /* @__PURE__ */ new Map();
@@ -4225,7 +4225,7 @@ function Pg(s) {
4225
4225
  };
4226
4226
  });
4227
4227
  }
4228
- function Mg(s, e) {
4228
+ function xg(s, e) {
4229
4229
  return f(this, null, function* () {
4230
4230
  yield s.writeBigVarInt(e.id), yield s.writeBigVarInt(e.trackAlias), yield au(s, e.namespace), yield s.writeString(e.name), yield s.writeUnsigned8(e.subscriberPriority), yield fl(s, e.groupOrder), yield Ug(s, e.filterType), yield Kn(s, e.params);
4231
4231
  });
@@ -4234,7 +4234,7 @@ const vh = {
4234
4234
  TrackEnded: 3,
4235
4235
  Expired: 6
4236
4236
  };
4237
- function xg(s) {
4237
+ function Mg(s) {
4238
4238
  return f(this, null, function* () {
4239
4239
  const e = yield s.readBigVarInt(), t = yield s.readVarInt(), i = yield s.readString(), n = (yield s.readUnsigned8()) == 1;
4240
4240
  let o;
@@ -4320,7 +4320,7 @@ function Vg(s, e) {
4320
4320
  const Gg = {
4321
4321
  Subscriber: 2
4322
4322
  }, Oo = {
4323
- Role: M(0)
4323
+ Role: x(0)
4324
4324
  }, pl = {
4325
4325
  Draft07: 4278190087
4326
4326
  };
@@ -4399,7 +4399,7 @@ class Al {
4399
4399
  write(e) {
4400
4400
  return f(this, null, function* () {
4401
4401
  yield a(this, Ft).writeVarInt(e.type);
4402
- const t = new xr({
4402
+ const t = new Mr({
4403
4403
  close: () => {
4404
4404
  },
4405
4405
  readyState: sl.OPEN,
@@ -4460,7 +4460,7 @@ Ft = new WeakMap(), hn = new WeakMap(), te = new WeakSet(), wl = function(e, t)
4460
4460
  });
4461
4461
  }, yl = function(e, t) {
4462
4462
  return f(this, null, function* () {
4463
- yield Mg(e, t);
4463
+ yield xg(e, t);
4464
4464
  });
4465
4465
  }, Sl = function(e, t) {
4466
4466
  return f(this, null, function* () {
@@ -4550,7 +4550,7 @@ class Wu {
4550
4550
  case C.SubscribeOk:
4551
4551
  return Fg(a(this, he));
4552
4552
  case C.SubscribeDone:
4553
- return xg(a(this, he));
4553
+ return Mg(a(this, he));
4554
4554
  case C.SubscribeError:
4555
4555
  return Dg(a(this, he));
4556
4556
  case C.SubscribeUpdate:
@@ -4564,7 +4564,7 @@ class Wu {
4564
4564
  case C.AnnounceError:
4565
4565
  return Zg(a(this, he));
4566
4566
  }
4567
- return Jg(a(this, he), M(e), t);
4567
+ return Jg(a(this, he), x(e), t);
4568
4568
  });
4569
4569
  }
4570
4570
  }
@@ -4607,7 +4607,7 @@ const Vs = class Vs {
4607
4607
  static wrapWebsocket(e) {
4608
4608
  const t = new ReadableStream(
4609
4609
  new yg(e, a(Vs, ic))
4610
- ), i = new Wu(new Lo(new Uint8Array([]), t)), n = new qg(new xr(e), new Uint8Array([0]));
4610
+ ), i = new Wu(new Lo(new Uint8Array([]), t)), n = new qg(new Mr(e), new Uint8Array([0]));
4611
4611
  return new Vs(n, i);
4612
4612
  }
4613
4613
  static wrapWebTransport(e) {
@@ -4686,14 +4686,14 @@ const Gs = class Gs {
4686
4686
  }
4687
4687
  }
4688
4688
  onUpdate(e) {
4689
- m(this, st, { startGroup: e.start.group }), e.end.group > M(0) && (a(this, st).endGroup = e.end.group - M(1));
4689
+ m(this, st, { startGroup: e.start.group }), e.end.group > x(0) && (a(this, st).endGroup = e.end.group - x(1));
4690
4690
  }
4691
4691
  onError(e) {
4692
4692
  const t = new Error(e.reason);
4693
4693
  return a(this, fn).reject(t), a(this, ai).reject(t), t;
4694
4694
  }
4695
4695
  onDone(e) {
4696
- e.finalInfo && (a(this, st) || m(this, st, { startGroup: M(0) }), a(this, st).endGroup = e.finalInfo.group), a(this, ai).resolve(e);
4696
+ e.finalInfo && (a(this, st) || m(this, st, { startGroup: x(0) }), a(this, st).endGroup = e.finalInfo.group), a(this, ai).resolve(e);
4697
4697
  }
4698
4698
  onUnsubscribe(e) {
4699
4699
  a(this, qi).resolve(e);
@@ -4747,7 +4747,7 @@ class eA {
4747
4747
  }
4748
4748
  write(e) {
4749
4749
  return f(this, null, function* () {
4750
- a(this, oa) || (yield a(this, we).writeVarInt(xo.StreamHeaderGroup), yield a(this, we).writeBigVarInt(e.subscribeId), yield a(this, we).writeBigVarInt(e.trackAlias), yield a(this, we).writeBigVarInt(e.groupId), yield a(this, we).writeBigVarInt(e.subGroupId), yield a(this, we).writeUnsigned8(e.subscriberPriority), m(this, oa, !0)), yield a(this, we).writeBigVarInt(e.objectId), yield a(this, we).writeVarInt(e.payload.length), e.payload.length > 0 ? yield a(this, we).write(e.payload) : yield a(this, we).writeVarInt(e.objectStatus), yield a(this, we).flush();
4750
+ a(this, oa) || (yield a(this, we).writeVarInt(Mo.StreamHeaderGroup), yield a(this, we).writeBigVarInt(e.subscribeId), yield a(this, we).writeBigVarInt(e.trackAlias), yield a(this, we).writeBigVarInt(e.groupId), yield a(this, we).writeBigVarInt(e.subGroupId), yield a(this, we).writeUnsigned8(e.subscriberPriority), m(this, oa, !0)), yield a(this, we).writeBigVarInt(e.objectId), yield a(this, we).writeVarInt(e.payload.length), e.payload.length > 0 ? yield a(this, we).write(e.payload) : yield a(this, we).writeVarInt(e.objectStatus), yield a(this, we).flush();
4751
4751
  });
4752
4752
  }
4753
4753
  close() {
@@ -4859,7 +4859,7 @@ class iA {
4859
4859
  yield a(this, Ji).write({
4860
4860
  subscribeId: a(this, gn).subscribe.id,
4861
4861
  trackAlias: a(this, gn).subscribe.trackAlias,
4862
- subGroupId: M(0),
4862
+ subGroupId: x(0),
4863
4863
  subscriberPriority: 0,
4864
4864
  groupId: o.groupId,
4865
4865
  objectId: o.objectId,
@@ -4888,7 +4888,7 @@ class iA {
4888
4888
  }
4889
4889
  }
4890
4890
  Ji = new WeakMap(), la = new WeakMap(), gn = new WeakMap(), ma = new WeakMap(), An = new WeakMap();
4891
- var fa, $i, oi, xs;
4891
+ var fa, $i, oi, Ms;
4892
4892
  class sA {
4893
4893
  constructor(e, t, i) {
4894
4894
  d(this, oi);
@@ -4905,10 +4905,10 @@ class sA {
4905
4905
  ok(e) {
4906
4906
  return f(this, null, function* () {
4907
4907
  var u, l, p;
4908
- const t = (u = this.state.range()) == null ? void 0 : u.startGroup, i = e.latest(), n = i == null ? void 0 : i.id, o = (p = (l = i == null ? void 0 : i.latest()) == null ? void 0 : l.objectId) != null ? p : M(0), c = e.consume(t != null ? t : n), h = {
4908
+ const t = (u = this.state.range()) == null ? void 0 : u.startGroup, i = e.latest(), n = i == null ? void 0 : i.id, o = (p = (l = i == null ? void 0 : i.latest()) == null ? void 0 : l.objectId) != null ? p : x(0), c = e.consume(t != null ? t : n), h = {
4909
4909
  type: C.SubscribeOk,
4910
4910
  id: this.state.subscribe.id,
4911
- expires: M(0),
4911
+ expires: x(0),
4912
4912
  groupOrder: "ascending",
4913
4913
  params: /* @__PURE__ */ new Map(),
4914
4914
  largestInfo: n ? { group: n, object: o } : void 0
@@ -4917,19 +4917,19 @@ class sA {
4917
4917
  });
4918
4918
  }
4919
4919
  invalidRange() {
4920
- return A(this, oi, xs).call(this, M(1), "Invalid range");
4920
+ return A(this, oi, Ms).call(this, x(1), "Invalid range");
4921
4921
  }
4922
4922
  retryTrackAlias() {
4923
- return A(this, oi, xs).call(this, M(2), "Retry track alias");
4923
+ return A(this, oi, Ms).call(this, x(2), "Retry track alias");
4924
4924
  }
4925
4925
  trackDoesNotExist() {
4926
- return A(this, oi, xs).call(this, M(3), "Track does not exist");
4926
+ return A(this, oi, Ms).call(this, x(3), "Track does not exist");
4927
4927
  }
4928
4928
  unauthorized() {
4929
- return A(this, oi, xs).call(this, M(4), "Unauthorized");
4929
+ return A(this, oi, Ms).call(this, x(4), "Unauthorized");
4930
4930
  }
4931
4931
  timeout() {
4932
- return A(this, oi, xs).call(this, M(5), "Timeout");
4932
+ return A(this, oi, Ms).call(this, x(5), "Timeout");
4933
4933
  }
4934
4934
  [Rt()]() {
4935
4935
  return this.trackDoesNotExist();
@@ -4938,7 +4938,7 @@ class sA {
4938
4938
  return this.trackDoesNotExist();
4939
4939
  }
4940
4940
  }
4941
- fa = new WeakMap(), $i = new WeakMap(), oi = new WeakSet(), xs = function(e, t) {
4941
+ fa = new WeakMap(), $i = new WeakMap(), oi = new WeakSet(), Ms = function(e, t) {
4942
4942
  const i = {
4943
4943
  type: C.SubscribeError,
4944
4944
  id: this.state.subscribe.id,
@@ -5092,8 +5092,8 @@ class Pl {
5092
5092
  const i = {
5093
5093
  type: C.SubscribeUpdate,
5094
5094
  id: a(this, le).subscribe.id,
5095
- start: { group: e, object: M(0) },
5096
- end: { group: t + M(1), object: M(0) },
5095
+ start: { group: e, object: x(0) },
5096
+ end: { group: t + x(1), object: x(0) },
5097
5097
  params: /* @__PURE__ */ new Map(),
5098
5098
  subscriberPriority: 0
5099
5099
  };
@@ -5241,7 +5241,7 @@ class ao {
5241
5241
  // The owner session of the subscriber
5242
5242
  d(this, _t);
5243
5243
  // The next subscribe id
5244
- r(this, "nextSubscribeId", M(0));
5244
+ r(this, "nextSubscribeId", x(0));
5245
5245
  // The active subscriptions
5246
5246
  d(this, Le, new ke(/* @__PURE__ */ new Map()));
5247
5247
  d(this, es);
@@ -5343,10 +5343,10 @@ Ps = Ci(null), _t = new WeakMap(), Le = new WeakMap(), es = new WeakMap(), ts =
5343
5343
  }, Ls = function(e) {
5344
5344
  a(this, Le).isClosed() || a(this, Le).update((t) => (t.delete(e), t));
5345
5345
  }, oo = ye(Ps, 17, "#observeChanges", md, Ct, oo), ye(Ps, 1, "subscribe", ld, ao), ye(Ps, 1, "close", dd, ao), Ls = ye(Ps, 17, "#deleteSubscription", ud, Ct, Ls), Zt(Ps, ao);
5346
- var fd, pd, gd, Ad, nt, ga, is, En, kn, ue, Ml, xl, Ms, co, ho, uo, or;
5346
+ var fd, pd, gd, Ad, nt, ga, is, En, kn, ue, xl, Ml, xs, co, ho, uo, or;
5347
5347
  class ou {
5348
5348
  constructor(e, t) {
5349
- Ri(Ms, 5, this);
5349
+ Ri(xs, 5, this);
5350
5350
  d(this, ue);
5351
5351
  // The underlying transport implementation
5352
5352
  d(this, nt);
@@ -5359,7 +5359,7 @@ class ou {
5359
5359
  r(this, "publisher");
5360
5360
  d(this, kn);
5361
5361
  const [i, n] = su(100);
5362
- m(this, nt, e), m(this, is, n), this.subscriber = new ao(this, i), this.publisher = new Th(this, e, i), m(this, ga, A(this, ue, xl).call(this)), m(this, kn, new ke(t)), this.closed().then(() => this.close()).catch(D);
5362
+ m(this, nt, e), m(this, is, n), this.subscriber = new ao(this, i), this.publisher = new Th(this, e, i), m(this, ga, A(this, ue, Ml).call(this)), m(this, kn, new ke(t)), this.closed().then(() => this.close()).catch(D);
5363
5363
  }
5364
5364
  updateAuthToken(e) {
5365
5365
  a(this, kn).update(e);
@@ -5390,12 +5390,12 @@ class ou {
5390
5390
  A(this, ue, or).call(this);
5391
5391
  }
5392
5392
  }
5393
- Ms = Ci(null), nt = new WeakMap(), ga = new WeakMap(), is = new WeakMap(), En = new WeakMap(), kn = new WeakMap(), ue = new WeakSet(), Ml = function(e) {
5393
+ xs = Ci(null), nt = new WeakMap(), ga = new WeakMap(), is = new WeakMap(), En = new WeakMap(), kn = new WeakMap(), ue = new WeakSet(), xl = function(e) {
5394
5394
  return f(this, null, function* () {
5395
5395
  var t, i;
5396
5396
  a(this, En).debug("received message", e), yield (t = this.subscriber) == null ? void 0 : t.onMessage(e), yield (i = this.publisher) == null ? void 0 : i.onMessage(e), e.type, C.Goaway;
5397
5397
  });
5398
- }, xl = function() {
5398
+ }, Ml = function() {
5399
5399
  return f(this, null, function* () {
5400
5400
  return (yield Promise.all([A(this, ue, ho).call(this), A(this, ue, uo).call(this), A(this, ue, co).call(this)])).find((t) => t instanceof Error);
5401
5401
  });
@@ -5429,7 +5429,7 @@ Ms = Ci(null), nt = new WeakMap(), ga = new WeakMap(), is = new WeakMap(), En =
5429
5429
  });
5430
5430
  if (!e)
5431
5431
  break;
5432
- yield A(this, ue, Ml).call(this, e);
5432
+ yield A(this, ue, xl).call(this, e);
5433
5433
  }
5434
5434
  } catch (e) {
5435
5435
  return e;
@@ -5453,9 +5453,9 @@ Ms = Ci(null), nt = new WeakMap(), ga = new WeakMap(), is = new WeakMap(), En =
5453
5453
  });
5454
5454
  }, or = function() {
5455
5455
  this.close();
5456
- }, co = ye(Ms, 17, "#runOutgoingMessages", Ad, ue, co), ho = ye(Ms, 17, "#runControl", gd, ue, ho), uo = ye(Ms, 17, "#runObjects", pd, ue, uo), or = ye(Ms, 17, "#dispose", fd, ue, or), Zt(Ms, ou);
5456
+ }, co = ye(xs, 17, "#runOutgoingMessages", Ad, ue, co), ho = ye(xs, 17, "#runControl", gd, ue, ho), uo = ye(xs, 17, "#runObjects", pd, ue, uo), or = ye(xs, 17, "#dispose", fd, ue, or), Zt(xs, ou);
5457
5457
  const oA = 128;
5458
- var Qe, Aa, ss, In, wa, be, xi, Li;
5458
+ var Qe, Aa, ss, In, wa, be, Mi, Li;
5459
5459
  class cA {
5460
5460
  constructor(e, t, i) {
5461
5461
  d(this, be);
@@ -5468,32 +5468,32 @@ class cA {
5468
5468
  }
5469
5469
  writeUnsigned8(e) {
5470
5470
  return f(this, null, function* () {
5471
- return A(this, be, xi).call(this), yield A(this, be, Li).call(this), a(this, Qe).writeUnsigned8(e);
5471
+ return A(this, be, Mi).call(this), yield A(this, be, Li).call(this), a(this, Qe).writeUnsigned8(e);
5472
5472
  });
5473
5473
  }
5474
5474
  writeVarInt(e) {
5475
5475
  return f(this, null, function* () {
5476
- return A(this, be, xi).call(this), yield A(this, be, Li).call(this), a(this, Qe).writeVarInt(e);
5476
+ return A(this, be, Mi).call(this), yield A(this, be, Li).call(this), a(this, Qe).writeVarInt(e);
5477
5477
  });
5478
5478
  }
5479
5479
  writeBigVarInt(e) {
5480
5480
  return f(this, null, function* () {
5481
- return A(this, be, xi).call(this), yield A(this, be, Li).call(this), a(this, Qe).writeBigVarInt(e);
5481
+ return A(this, be, Mi).call(this), yield A(this, be, Li).call(this), a(this, Qe).writeBigVarInt(e);
5482
5482
  });
5483
5483
  }
5484
5484
  write(e) {
5485
5485
  return f(this, null, function* () {
5486
- return A(this, be, xi).call(this), yield A(this, be, Li).call(this), a(this, Qe).write(e);
5486
+ return A(this, be, Mi).call(this), yield A(this, be, Li).call(this), a(this, Qe).write(e);
5487
5487
  });
5488
5488
  }
5489
5489
  writeString(e) {
5490
5490
  return f(this, null, function* () {
5491
- return A(this, be, xi).call(this), yield A(this, be, Li).call(this), a(this, Qe).writeString(e);
5491
+ return A(this, be, Mi).call(this), yield A(this, be, Li).call(this), a(this, Qe).writeString(e);
5492
5492
  });
5493
5493
  }
5494
5494
  flush() {
5495
5495
  return f(this, null, function* () {
5496
- A(this, be, xi).call(this), m(this, ss, !0), yield a(this, Qe).flush();
5496
+ A(this, be, Mi).call(this), m(this, ss, !0), yield a(this, Qe).flush();
5497
5497
  });
5498
5498
  }
5499
5499
  close() {
@@ -5502,7 +5502,7 @@ class cA {
5502
5502
  });
5503
5503
  }
5504
5504
  }
5505
- Qe = new WeakMap(), Aa = new WeakMap(), ss = new WeakMap(), In = new WeakMap(), wa = new WeakMap(), be = new WeakSet(), xi = function() {
5505
+ Qe = new WeakMap(), Aa = new WeakMap(), ss = new WeakMap(), In = new WeakMap(), wa = new WeakMap(), be = new WeakSet(), Mi = function() {
5506
5506
  if (a(this, In))
5507
5507
  throw new Error("Stream is closed");
5508
5508
  }, Li = function(e = !0) {
@@ -5529,7 +5529,7 @@ class hA {
5529
5529
  if (!e)
5530
5530
  throw new Error("No stream IDs available");
5531
5531
  return a(this, Bn).delete(e), Promise.resolve(
5532
- new cA(new xr(a(this, di)), e, () => A(this, rc, Ll).call(this, e))
5532
+ new cA(new Mr(a(this, di)), e, () => A(this, rc, Ll).call(this, e))
5533
5533
  );
5534
5534
  }
5535
5535
  transportType() {
@@ -5551,11 +5551,11 @@ class hA {
5551
5551
  if (i)
5552
5552
  return;
5553
5553
  const [n, o, c] = t;
5554
- if (a(this, Vt).has(M(o))) {
5555
- const h = a(this, Vt).get(M(o));
5554
+ if (a(this, Vt).has(x(o))) {
5555
+ const h = a(this, Vt).get(x(o));
5556
5556
  if (!h)
5557
5557
  throw new Error("Stream not found");
5558
- c.length > 0 && (yield h.push(c)), n || (a(this, Rn).debug("Closing stream", { streamId: o }), h.close(), a(this, Vt).delete(M(o)));
5558
+ c.length > 0 && (yield h.push(c)), n || (a(this, Rn).debug("Closing stream", { streamId: o }), h.close(), a(this, Vt).delete(x(o)));
5559
5559
  } else {
5560
5560
  let p;
5561
5561
  a(this, Rn).debug("Creating new stream", { streamId: o });
@@ -5567,7 +5567,7 @@ class hA {
5567
5567
  });
5568
5568
  }
5569
5569
  });
5570
- if (a(this, Vt).set(M(o), h), n || (a(this, Rn).debug("Closing new stream", { streamId: o }), yield l.cancel(), a(this, Vt).delete(M(o))), c.length > 0)
5570
+ if (a(this, Vt).set(x(o), h), n || (a(this, Rn).debug("Closing new stream", { streamId: o }), yield l.cancel(), a(this, Vt).delete(x(o))), c.length > 0)
5571
5571
  return yield tl(new Lo(c, l), o);
5572
5572
  }
5573
5573
  } finally {
@@ -5737,14 +5737,14 @@ class Xt {
5737
5737
  startGroup(e) {
5738
5738
  return a(this, Wt).filterType = {
5739
5739
  type: "absolute-start",
5740
- start: { group: e, object: M(0) }
5740
+ start: { group: e, object: x(0) }
5741
5741
  }, this;
5742
5742
  }
5743
5743
  range(e, t) {
5744
5744
  return a(this, Wt).filterType = {
5745
5745
  type: "absolute-range",
5746
- start: { group: e, object: M(0) },
5747
- end: { group: t, object: M(0) }
5746
+ start: { group: e, object: x(0) },
5747
+ end: { group: t, object: x(0) }
5748
5748
  }, this;
5749
5749
  }
5750
5750
  build() {
@@ -5906,7 +5906,7 @@ const mu = class mu {
5906
5906
  case "absolute-start":
5907
5907
  case "latest-group":
5908
5908
  case "latest-object":
5909
- c && h.startGroup(o + M(1));
5909
+ c && h.startGroup(o + x(1));
5910
5910
  break;
5911
5911
  }
5912
5912
  const u = h.build();
@@ -6130,7 +6130,7 @@ mi = new WeakMap(), Ia = new WeakMap(), Ca = new WeakMap(), Ra = new WeakMap(),
6130
6130
  });
6131
6131
  };
6132
6132
  let Ih = uc;
6133
- var Ba, Pn, Ua, Mn, Pa, Ch;
6133
+ var Ba, Pn, Ua, xn, Pa, Ch;
6134
6134
  class AA {
6135
6135
  constructor(e, t, i, n) {
6136
6136
  d(this, Pa);
@@ -6138,13 +6138,13 @@ class AA {
6138
6138
  d(this, Pn);
6139
6139
  d(this, Ua);
6140
6140
  r(this, "track");
6141
- d(this, Mn, ge.get().createContext("CmafGroup"));
6141
+ d(this, xn, ge.get().createContext("CmafGroup"));
6142
6142
  this.track = n, m(this, Ba, i), m(this, Pn, e), m(this, Ua, t);
6143
6143
  }
6144
6144
  [Symbol.asyncIterator]() {
6145
6145
  return Ut(this, null, function* () {
6146
6146
  const e = { name: this.track.trackObject.name, namespace: this.track.namespace };
6147
- a(this, Mn).debug("start", S({}, e));
6147
+ a(this, xn).debug("start", S({}, e));
6148
6148
  try {
6149
6149
  for (var t = $(a(this, Pn)), i, n, o; i = !(n = yield new q(t.next())).done; i = !1) {
6150
6150
  const c = n.value;
@@ -6155,7 +6155,7 @@ class AA {
6155
6155
  const b = this.track.timestampRange();
6156
6156
  if (b && l >= b[1])
6157
6157
  break;
6158
- a(this, Mn).debug("fragment", O(S({}, e), {
6158
+ a(this, xn).debug("fragment", O(S({}, e), {
6159
6159
  startTime: l,
6160
6160
  endTime: g,
6161
6161
  subscribeId: c.subscribeId,
@@ -6174,7 +6174,7 @@ class AA {
6174
6174
  throw o[0];
6175
6175
  }
6176
6176
  }
6177
- a(this, Mn).debug("end", S({}, e));
6177
+ a(this, xn).debug("end", S({}, e));
6178
6178
  });
6179
6179
  }
6180
6180
  [Rt()]() {
@@ -6184,24 +6184,24 @@ class AA {
6184
6184
  return A(this, Pa, Ch).call(this);
6185
6185
  }
6186
6186
  }
6187
- Ba = new WeakMap(), Pn = new WeakMap(), Ua = new WeakMap(), Mn = new WeakMap(), Pa = new WeakSet(), Ch = function() {
6187
+ Ba = new WeakMap(), Pn = new WeakMap(), Ua = new WeakMap(), xn = new WeakMap(), Pa = new WeakSet(), Ch = function() {
6188
6188
  return f(this, null, function* () {
6189
6189
  var e, t;
6190
6190
  return yield (t = (e = a(this, Pn)).return) == null ? void 0 : t.call(e), Promise.resolve();
6191
6191
  });
6192
6192
  };
6193
- var Ma, Tt, xa, La, dc, _l;
6193
+ var xa, Tt, Ma, La, dc, _l;
6194
6194
  const js = class js {
6195
6195
  constructor(e, t, i, n, o) {
6196
- d(this, Ma);
6196
+ d(this, xa);
6197
6197
  d(this, Tt);
6198
6198
  // A static offset that will be applied to all fragments
6199
- d(this, xa);
6199
+ d(this, Ma);
6200
6200
  // Stop consuming the track after we have passed thig timestamp
6201
6201
  d(this, La);
6202
6202
  r(this, "trackObject");
6203
6203
  r(this, "namespace");
6204
- this.trackObject = e, this.namespace = t, m(this, Tt, i), m(this, Ma, n), m(this, xa, o);
6204
+ this.trackObject = e, this.namespace = t, m(this, Tt, i), m(this, xa, n), m(this, Ma, o);
6205
6205
  }
6206
6206
  static subscribe(c, h, u) {
6207
6207
  return f(this, arguments, function* (e, t, {
@@ -6218,14 +6218,14 @@ const js = class js {
6218
6218
  if (t.initTrack) {
6219
6219
  const k = new Xt().name(t.initTrack).build(), [I, P] = yield Promise.all([
6220
6220
  A(v = js, dc, _l).call(v, e, k),
6221
- Ii.subscribe(e, p, { params: o, largestGroupId: n ? n - M(1) : void 0 })
6221
+ Ii.subscribe(e, p, { params: o, largestGroupId: n ? n - x(1) : void 0 })
6222
6222
  ]), E = new Fu(I);
6223
6223
  return new js(t, e.namespace(), P, E, i);
6224
6224
  }
6225
6225
  qe(t.initData, "no init data found on track");
6226
6226
  const g = kd(t.initData), w = new Fu(new Uint8Array(g)), b = yield Ii.subscribe(e, p, {
6227
6227
  params: o,
6228
- largestGroupId: n ? n - M(1) : void 0
6228
+ largestGroupId: n ? n - x(1) : void 0
6229
6229
  });
6230
6230
  return new js(t, e.namespace(), b, w, i);
6231
6231
  });
@@ -6255,7 +6255,7 @@ const js = class js {
6255
6255
  const e = yield a(this, Tt).next();
6256
6256
  return e.done ? e : {
6257
6257
  done: !1,
6258
- value: new AA(e.value, a(this, Ma), a(this, xa), this)
6258
+ value: new AA(e.value, a(this, xa), a(this, Ma), this)
6259
6259
  };
6260
6260
  });
6261
6261
  }
@@ -6276,7 +6276,7 @@ const js = class js {
6276
6276
  });
6277
6277
  }
6278
6278
  };
6279
- Ma = new WeakMap(), Tt = new WeakMap(), xa = new WeakMap(), La = new WeakMap(), dc = new WeakSet(), _l = function(e, t) {
6279
+ xa = new WeakMap(), Tt = new WeakMap(), Ma = new WeakMap(), La = new WeakMap(), dc = new WeakSet(), _l = function(e, t) {
6280
6280
  return f(this, null, function* () {
6281
6281
  var o = [];
6282
6282
  try {
@@ -6367,7 +6367,7 @@ lc = new WeakMap(), fi = new WeakMap(), os = new WeakMap(), Da = new WeakMap(),
6367
6367
  for (B.push(...U), B.sort((_e, ie) => _e.wallclock - ie.wallclock); B[0] && ((Q = (X = B[B.length - 1]) == null ? void 0 : X.wallclock) != null ? Q : 0) - B[0].wallclock > wA; )
6368
6368
  B.shift();
6369
6369
  return B;
6370
- }), t === a(this, os).resolved && E.groupId > M(0) && E.objectId == M(0) && A(this, Is, Nl).call(this, E.groupId).catch((B) => {
6370
+ }), t === a(this, os).resolved && E.groupId > x(0) && E.objectId == x(0) && A(this, Is, Nl).call(this, E.groupId).catch((B) => {
6371
6371
  a(this, lc).warn("backfill failed", B);
6372
6372
  });
6373
6373
  }
@@ -6401,7 +6401,7 @@ lc = new WeakMap(), fi = new WeakMap(), os = new WeakMap(), Da = new WeakMap(),
6401
6401
  });
6402
6402
  }, Nl = function(e) {
6403
6403
  return f(this, null, function* () {
6404
- const t = e - M(1), i = this.timeline(), n = i[0], o = i[i.length - 1];
6404
+ const t = e - x(1), i = this.timeline(), n = i[0], o = i[i.length - 1];
6405
6405
  if (!n || !o || o.wallclock - n.wallclock > Hu)
6406
6406
  return;
6407
6407
  const c = z.fromPromise(
@@ -6434,16 +6434,16 @@ function bA(s) {
6434
6434
  function yA(s) {
6435
6435
  return typeof s.language == "string";
6436
6436
  }
6437
- var mc, _a, pi, xn;
6437
+ var mc, _a, pi, Mn;
6438
6438
  const pu = class pu {
6439
6439
  constructor(e, t, i, n, o) {
6440
6440
  d(this, mc, new Jd());
6441
6441
  d(this, _a);
6442
6442
  d(this, pi);
6443
- d(this, xn, 0);
6443
+ d(this, Mn, 0);
6444
6444
  r(this, "trackObject");
6445
6445
  r(this, "namespace");
6446
- m(this, pi, e), m(this, _a, t), this.trackObject = i, this.namespace = n, m(this, xn, o);
6446
+ m(this, pi, e), m(this, _a, t), this.trackObject = i, this.namespace = n, m(this, Mn, o);
6447
6447
  }
6448
6448
  static subscribe(e, t, i) {
6449
6449
  return f(this, null, function* () {
@@ -6470,7 +6470,7 @@ const pu = class pu {
6470
6470
  return e;
6471
6471
  if (e.value.objectStatus !== Ee.Normal)
6472
6472
  continue;
6473
- const t = new TextDecoder().decode(e.value.payload), i = a(this, mc).parse(t).map((o) => (o.startTime -= a(this, xn) / 1e3, o.endTime -= a(this, xn) / 1e3, o));
6473
+ const t = new TextDecoder().decode(e.value.payload), i = a(this, mc).parse(t).map((o) => (o.startTime -= a(this, Mn) / 1e3, o.endTime -= a(this, Mn) / 1e3, o));
6474
6474
  return {
6475
6475
  done: !1,
6476
6476
  value: { language: this.trackObject.language, cues: i }
@@ -6493,7 +6493,7 @@ const pu = class pu {
6493
6493
  return this.unsubscribe();
6494
6494
  }
6495
6495
  };
6496
- mc = new WeakMap(), _a = new WeakMap(), pi = new WeakMap(), xn = new WeakMap();
6496
+ mc = new WeakMap(), _a = new WeakMap(), pi = new WeakMap(), Mn = new WeakMap();
6497
6497
  let Ph = pu;
6498
6498
  var wd, cs, hs, us, gi, ch, Ln, lo;
6499
6499
  wd = [Pe({ context: "Channel", enter: "info" })];
@@ -6568,7 +6568,7 @@ ch = Ci(null), cs = new WeakMap(), hs = new WeakMap(), us = new WeakMap(), gi =
6568
6568
  });
6569
6569
  }, ye(ch, 9, "start", wd, Ws), Zt(ch, Ws), Ri(ch, 3, Ws);
6570
6570
  let Vo = Ws;
6571
- const SA = M(8);
6571
+ const SA = x(8);
6572
6572
  function vA(s) {
6573
6573
  if (s < 0 || s > 65535)
6574
6574
  throw new RangeError("burstMs must be between 0 and 65535 inclusive");
@@ -6625,7 +6625,7 @@ ds = new WeakMap(), Na = new WeakMap(), fc = new WeakSet(), Vl = function(e) {
6625
6625
  }
6626
6626
  });
6627
6627
  };
6628
- let Mh = gu;
6628
+ let xh = gu;
6629
6629
  function io(s) {
6630
6630
  return typeof s == "string" || s === null || s === void 0;
6631
6631
  }
@@ -6741,7 +6741,7 @@ Va = new WeakMap(), pc = new WeakSet(), Gl = function(e) {
6741
6741
  }
6742
6742
  });
6743
6743
  };
6744
- let xh = Au;
6744
+ let Mh = Au;
6745
6745
  var gc, Dn;
6746
6746
  class RA {
6747
6747
  constructor(e) {
@@ -6828,7 +6828,7 @@ const zs = class zs {
6828
6828
  r(this, "subtitles", new th(a(this, Ai), "subtitles"));
6829
6829
  r(this, "video", new th(a(this, ot), "video"));
6830
6830
  r(this, "audio", new th(a(this, at), "audio"));
6831
- m(this, Fn, e), m(this, _n, Mh.start(i)), m(this, ls, i), m(this, fe, new ke(t)), m(this, Nn, new RA(t)), m(this, Wa, Promise.race([i.idleTimeout(), A(this, Ie, jl).call(this), a(this, Nn).closed()])), a(this, Fn).closed().then(() => this.close()).catch(D);
6831
+ m(this, Fn, e), m(this, _n, xh.start(i)), m(this, ls, i), m(this, fe, new ke(t)), m(this, Nn, new RA(t)), m(this, Wa, Promise.race([i.idleTimeout(), A(this, Ie, jl).call(this), a(this, Nn).closed()])), a(this, Fn).closed().then(() => this.close()).catch(D);
6832
6832
  }
6833
6833
  closed() {
6834
6834
  return a(this, Wa);
@@ -6846,7 +6846,7 @@ const zs = class zs {
6846
6846
  t.videoTrack ? p.subscribeCmafTrack(t.videoTrack, { params: i }) : void 0,
6847
6847
  t.audioTrack ? p.subscribeCmafTrack(t.audioTrack, { params: i }) : void 0
6848
6848
  ])),
6849
- xh.start(n)
6849
+ Mh.start(n)
6850
6850
  ]), l = new zs(e, o, u);
6851
6851
  return h && a(l, at).update(h), c && a(l, ot).update(c), l;
6852
6852
  });
@@ -6905,7 +6905,7 @@ const zs = class zs {
6905
6905
  a(this, Nn).update(i), yield a(this, fe).current().close();
6906
6906
  const u = h.toReversed().find((I) => I.wallclock <= n), l = u != null && u.mediaPts ? u.mediaPts - o.timestampOffsetMs() : void 0, w = i.timestampWallclockOffset() - c + o.timestampOffsetMs();
6907
6907
  i.setTimestampOffsetMs(w);
6908
- const b = u != null && u.groupId ? M(u.groupId) : void 0;
6908
+ const b = u != null && u.groupId ? x(u.groupId) : void 0;
6909
6909
  l && ((v = a(this, ot).current()) == null || v.stopAfterTimestampReached(l), (k = a(this, at).current()) == null || k.stopAfterTimestampReached(l)), a(this, fe).update(i), yield Promise.all([
6910
6910
  e.videoTrack ? this.setVideoTrack(e.videoTrack, b) : void 0,
6911
6911
  e.audioTrack ? this.setAudioTrack(e.audioTrack, b) : void 0
@@ -6946,7 +6946,7 @@ sr = Ci(null), Fn = new WeakMap(), _n = new WeakMap(), ls = new WeakMap(), fe =
6946
6946
  return f(this, null, function* () {
6947
6947
  const o = i == null ? void 0 : i.largestGroupId(), [c, h] = yield Promise.all([
6948
6948
  e.subscribeCmafTrack(t, {
6949
- startGroup: n || (o ? o + M(1) : void 0)
6949
+ startGroup: n || (o ? o + x(1) : void 0)
6950
6950
  }),
6951
6951
  o ? i == null ? void 0 : i.update(o, o) : i == null ? void 0 : i.unsubscribe()
6952
6952
  ]);
@@ -7353,7 +7353,7 @@ const PA = (s, e) => {
7353
7353
  const t = new URL("/subscribe", s);
7354
7354
  return t.searchParams.append("channelId", e.channelId), t.searchParams.append("sessionId", e.sessionId), t.searchParams.append("clientId", e.clientId), e.audio && e.audio.codec && (t.searchParams.append("audio.bitRate", Math.round(e.audio.bitRate).toString()), t.searchParams.append("audio.codec", e.audio.codec), e.audio.language && t.searchParams.append("audio.language", e.audio.language)), e.video && e.video.codec && (t.searchParams.append("video.width", e.video.width.toString()), t.searchParams.append("video.height", e.video.height.toString()), t.searchParams.append("video.bitRate", Math.round(e.video.bitRate).toString()), t.searchParams.append("video.codec", e.video.codec)), e.expectAdditionalConnection && t.searchParams.append("expectAdditionalConnection", e.expectAdditionalConnection.toString()), e.burstMs && t.searchParams.append("burstMs", e.burstMs.toString()), e.channelGroupId && t.searchParams.append("channelGroupId", e.channelGroupId), e.authToken && (t.searchParams.append("auth.token", e.authToken), t.searchParams.append("auth.type", "jwt")), t.toString();
7355
7355
  };
7356
- class MA extends Ei {
7356
+ class xA extends Ei {
7357
7357
  constructor(t, i) {
7358
7358
  super();
7359
7359
  r(this, "options");
@@ -7402,7 +7402,7 @@ class MA extends Ei {
7402
7402
  this.websockets.length !== 0 && this.options.onMessage(t, i.data);
7403
7403
  });
7404
7404
  r(this, "onError", () => {
7405
- this.logger.info("On error", S({}, this.options)), this.close("one websocket had an error"), this.emit("error", new x("WebSocket error", { code: "websocket_error", isFatal: !1 }));
7405
+ this.logger.info("On error", S({}, this.options)), this.close("one websocket had an error"), this.emit("error", new M("WebSocket error", { code: "websocket_error", isFatal: !1 }));
7406
7406
  });
7407
7407
  r(this, "onClose", (t) => {
7408
7408
  switch (this.logger.info("Closed", O(S({}, this.options), {
@@ -7420,7 +7420,7 @@ class MA extends Ei {
7420
7420
  this.emit("error", af(tr()));
7421
7421
  break;
7422
7422
  case 4003:
7423
- this.emit("error", Md("internal", tr()));
7423
+ this.emit("error", xd("internal", tr()));
7424
7424
  break;
7425
7425
  case 4010:
7426
7426
  this.emit("error", of("internal", tr()));
@@ -7444,7 +7444,7 @@ class MA extends Ei {
7444
7444
  this.logger.info("Waiting for reconnect delay", S({}, this.options)), yield ki(this.options.reconnectDelay);
7445
7445
  const i = yield this.options.reconnectHandler(this.reconnectState);
7446
7446
  if (this.reconnectState.reconnectRetries++, !i)
7447
- return this._isConnectInProgress = !1, this.emit("error", xd()), !1;
7447
+ return this._isConnectInProgress = !1, this.emit("error", Md()), !1;
7448
7448
  }
7449
7449
  this._connectionAttemptCount++;
7450
7450
  try {
@@ -7460,9 +7460,9 @@ class MA extends Ei {
7460
7460
  }
7461
7461
  return !0;
7462
7462
  } catch (i) {
7463
- return this._isConnectInProgress = !1, i instanceof x && (this.logger.error("Failed to connect", i.toStringifiable()), i.isFatal()) || this.shouldContinueConnecting && (this.logger.info("Connection aborted", { error: i }), this.emit(
7463
+ return this._isConnectInProgress = !1, i instanceof M && (this.logger.error("Failed to connect", i.toStringifiable()), i.isFatal()) || this.shouldContinueConnecting && (this.logger.info("Connection aborted", { error: i }), this.emit(
7464
7464
  "error",
7465
- new x("Failed to connect", {
7465
+ new M("Failed to connect", {
7466
7466
  code: "failed_to_connect",
7467
7467
  isFatal: !1,
7468
7468
  source: i,
@@ -7486,9 +7486,9 @@ class MA extends Ei {
7486
7486
  return this._connectTime;
7487
7487
  }
7488
7488
  }
7489
- const xA = 65536 * 8, LA = 0.9, DA = 40, OA = (s) => {
7489
+ const MA = 65536 * 8, LA = 0.9, DA = 40, OA = (s) => {
7490
7490
  const e = s || DA;
7491
- return xA * LA * 1e3 / e;
7491
+ return MA * LA * 1e3 / e;
7492
7492
  }, mt = class mt {
7493
7493
  constructor(e, t, i, n) {
7494
7494
  r(this, "emitter");
@@ -7598,7 +7598,7 @@ const xA = 65536 * 8, LA = 0.9, DA = 40, OA = (s) => {
7598
7598
  }
7599
7599
  });
7600
7600
  r(this, "connectWebSocketTransport", () => {
7601
- const e = new MA(
7601
+ const e = new xA(
7602
7602
  {
7603
7603
  reconnectDelay: 1e3,
7604
7604
  onMessage: this.onMessage,
@@ -7809,7 +7809,7 @@ Et = new WeakMap(), kt = new WeakMap(), Qn = new WeakMap(), ps = new WeakMap(),
7809
7809
  break;
7810
7810
  const h = e.select(n.edges);
7811
7811
  if (!h)
7812
- throw new x("Failed to resolve edge url", { isFatal: !0, code: "failed_to_resolve_edge_url" });
7812
+ throw new M("Failed to resolve edge url", { isFatal: !0, code: "failed_to_resolve_edge_url" });
7813
7813
  Td(n) ? this.connectionImpl = yield Oh.start(
7814
7814
  this.emitter,
7815
7815
  this.logger,
@@ -7834,14 +7834,14 @@ Et = new WeakMap(), kt = new WeakMap(), Qn = new WeakMap(), ps = new WeakMap(),
7834
7834
  o && this.emitter.emit("telemetry event", {
7835
7835
  code: "shifted_edge",
7836
7836
  edgeUrl: typeof o == "string" ? o : o.moqUrl || o.moqWsUrl
7837
- }), n instanceof x ? this.emitter.emit("error", n) : n instanceof Error && this.emitter.emit("error", new x(n.message, { code: "start_failed", isFatal: !1 }));
7837
+ }), n instanceof M ? this.emitter.emit("error", n) : n instanceof Error && this.emitter.emit("error", new M(n.message, { code: "start_failed", isFatal: !1 }));
7838
7838
  }
7839
7839
  if ((t = this.connectionImpl) == null || t.unload(), this.connectionImpl = void 0, !a(this, kt))
7840
7840
  break;
7841
7841
  if (!(yield this.config.reconnectHandler({
7842
7842
  reconnectRetries: a(this, ps)
7843
7843
  }))) {
7844
- this.emitter.emit("error", xd());
7844
+ this.emitter.emit("error", Md());
7845
7845
  break;
7846
7846
  }
7847
7847
  if (yield ki(1e3), !a(this, kt))
@@ -7998,7 +7998,7 @@ class hu {
7998
7998
  var i;
7999
7999
  const t = (i = this.trackContexts.get(e.type)) == null ? void 0 : i.decoderContext;
8000
8000
  if (!t)
8001
- throw new x("No known decoder context", {
8001
+ throw new M("No known decoder context", {
8002
8002
  code: "no_known_decoder_context",
8003
8003
  isFatal: !1
8004
8004
  });
@@ -8007,7 +8007,7 @@ class hu {
8007
8007
  r(this, "decode", (e) => {
8008
8008
  const t = this.trackContexts.get(e.type);
8009
8009
  if (!t)
8010
- throw new x("No known decoder context", {
8010
+ throw new M("No known decoder context", {
8011
8011
  code: "no_known_decoder_context",
8012
8012
  isFatal: !1
8013
8013
  });
@@ -8036,19 +8036,25 @@ class hu {
8036
8036
  this.emitter.emit("video decode rate", this.videoDecodeRate());
8037
8037
  });
8038
8038
  r(this, "updateBufferState", () => {
8039
- var o, c;
8040
8039
  let e;
8041
- if (this.trackContexts.forEach((h) => {
8042
- var u, l, p, g;
8040
+ if (this.trackContexts.forEach((o) => {
8041
+ var c, h, u, l;
8043
8042
  if (!e)
8044
- e = h.buffer;
8043
+ e = o.buffer;
8045
8044
  else {
8046
- const w = (l = (u = h.buffer[h.buffer.length - 1]) == null ? void 0 : u.end) != null ? l : 0;
8047
- ((g = (p = e[e.length - 1]) == null ? void 0 : p.end) != null ? g : 0) > w && (e = h.buffer);
8045
+ const p = (h = (c = o.buffer[o.buffer.length - 1]) == null ? void 0 : c.end) != null ? h : 0;
8046
+ ((l = (u = e[e.length - 1]) == null ? void 0 : u.end) != null ? l : 0) > p && (e = o.buffer);
8048
8047
  }
8049
8048
  }), !e)
8050
8049
  return;
8051
- const t = this.playbackSource.currentTime, i = (c = (o = e[e.length - 1]) == null ? void 0 : o.end) != null ? c : 0, n = t < i ? "playing" : "buffering";
8050
+ const t = this.playbackSource.currentTime;
8051
+ let i = !0;
8052
+ this.trackContexts.forEach((o) => {
8053
+ o.buffer.some(
8054
+ (h) => h.start <= t && t < h.end
8055
+ ) || (i = !1);
8056
+ });
8057
+ const n = i ? "playing" : "buffering";
8052
8058
  this.emitter.emit("buffer state", {
8053
8059
  buffered: e,
8054
8060
  currentTime: this.playbackSource.currentTime,
@@ -8064,7 +8070,7 @@ class hu {
8064
8070
  for (const h of i)
8065
8071
  switch (h.type) {
8066
8072
  case "audio": {
8067
- const { OpusDecoderContext: u } = yield import("./DUXyAJtN.js");
8073
+ const { OpusDecoderContext: u } = yield import("./Ca3yYzKR.js");
8068
8074
  c.set(h.type, {
8069
8075
  buffer: [],
8070
8076
  decoderContext: yield u.create(48e3, 2),
@@ -8075,7 +8081,7 @@ class hu {
8075
8081
  break;
8076
8082
  }
8077
8083
  case "video": {
8078
- const { H264DecoderWorkerContext: u } = yield import("./Bej9Ek5g.js");
8084
+ const { H264DecoderWorkerContext: u } = yield import("./1HzK6bIi.js");
8079
8085
  c.set(h.type, {
8080
8086
  buffer: [],
8081
8087
  decoderContext: yield u.create(o),
@@ -8441,7 +8447,7 @@ const Tc = class Tc extends Ei {
8441
8447
  });
8442
8448
  r(this, "flush", () => {
8443
8449
  if (!this.audio || !this.gainNode)
8444
- throw new x("AudioContext must be initialized to flush", {
8450
+ throw new M("AudioContext must be initialized to flush", {
8445
8451
  isFatal: !1,
8446
8452
  code: "audiocontext_must_be_initialized"
8447
8453
  });
@@ -8660,7 +8666,7 @@ void main() {
8660
8666
  `, Zu = (s, e) => {
8661
8667
  let t = s.getContext("webgl", e);
8662
8668
  if (t || (t = s.getContext("experimental-webgl", e)), !t)
8663
- throw new x("Failed to create webgl context", {
8669
+ throw new M("Failed to create webgl context", {
8664
8670
  isFatal: !0,
8665
8671
  code: "failed_to_create_web_gl_context"
8666
8672
  });
@@ -8668,10 +8674,10 @@ void main() {
8668
8674
  }, Os = (s, e, t) => {
8669
8675
  const i = s.createShader(e);
8670
8676
  if (!i)
8671
- throw new x("Failed to create shader", { isFatal: !0, code: "failed_to_create_shader" });
8677
+ throw new M("Failed to create shader", { isFatal: !0, code: "failed_to_create_shader" });
8672
8678
  if (s.shaderSource(i, t), s.compileShader(i), !s.getShaderParameter(i, s.COMPILE_STATUS)) {
8673
8679
  const n = s.getShaderInfoLog(i);
8674
- throw new x(`Failed to compile shader: ${n != null ? n : ""}`, {
8680
+ throw new M(`Failed to compile shader: ${n != null ? n : ""}`, {
8675
8681
  isFatal: !0,
8676
8682
  code: "failed_to_compile_shader"
8677
8683
  });
@@ -8680,7 +8686,7 @@ void main() {
8680
8686
  }, Di = (s) => {
8681
8687
  const e = s.createTexture();
8682
8688
  if (!e)
8683
- throw new x("Failed to create texture", {
8689
+ throw new M("Failed to create texture", {
8684
8690
  isFatal: !0,
8685
8691
  code: "failed_to_create_texture"
8686
8692
  });
@@ -8688,7 +8694,7 @@ void main() {
8688
8694
  }, Ju = (s, e) => {
8689
8695
  const t = s.createBuffer();
8690
8696
  if (!t)
8691
- throw new x("Failed to create buffer", {
8697
+ throw new M("Failed to create buffer", {
8692
8698
  isFatal: !0,
8693
8699
  code: "failed_to_create_buffer"
8694
8700
  });
@@ -8696,13 +8702,13 @@ void main() {
8696
8702
  }, Hh = (s, e, t) => {
8697
8703
  const i = s.createProgram();
8698
8704
  if (!i)
8699
- throw new x("Failed to create program", {
8705
+ throw new M("Failed to create program", {
8700
8706
  isFatal: !0,
8701
8707
  code: "failed_to_create_program"
8702
8708
  });
8703
8709
  if (s.attachShader(i, t), s.attachShader(i, e), s.linkProgram(i), !s.getProgramParameter(i, s.LINK_STATUS)) {
8704
8710
  const n = s.getShaderInfoLog(i);
8705
- throw new x(`Failed to link program: ${n != null ? n : ""}`, {
8711
+ throw new M(`Failed to link program: ${n != null ? n : ""}`, {
8706
8712
  isFatal: !0,
8707
8713
  code: "failed_to_link_program"
8708
8714
  });
@@ -9822,9 +9828,11 @@ const Pc = class Pc {
9822
9828
  needsInputForAudioCount: this.needsInputForAudioCount,
9823
9829
  needsInputForVideoCount: this.needsInputForVideoCount
9824
9830
  }));
9825
- r(this, "onBufferedStateChanged", ({ buffered: e, isPaused: t }) => {
9826
- const i = this.clockSource.currentTime, n = e.some((p) => p.start < i && i < p.end), o = e[e.length - 1], c = o ? o.end - o.start >= this.targetBufferTime : !1, h = o ? Math.max(0, o.end - i) / this.targetBufferTime : 0, u = t ? "paused" : n ? "playing" : "buffering", l = this.state;
9827
- this.currentTimeIsInRange !== n && !n ? (this.lastBufferStateEvent = "drained", this.emitter.emit("buffer state event", this.lastBufferStateEvent)) : n && c && this.lastBufferStateEvent === "drained" && (this.lastBufferStateEvent = "filled", this.emitter.emit("buffer state event", this.lastBufferStateEvent)), u === "playing" && !this.firstFrameTime && (this.firstFrameTime = Date.now()), this.currentTimeIsInRange = n, this.state = u, this.bufferFullness = n ? h : 0, l !== u && this.emitter.emit("playback state", u), this.emitter.emit("buffer fullness", this.bufferFullness);
9831
+ r(this, "onBufferedStateChanged", ({ buffered: e, isPaused: t, playbackState: i }) => {
9832
+ const n = this.clockSource.currentTime, o = e.some((g) => g.start <= n && n < g.end), c = e[e.length - 1], h = c ? c.end - c.start >= this.targetBufferTime : !1, u = c ? Math.max(0, c.end - n) / this.targetBufferTime : 0;
9833
+ let l = t ? "paused" : i;
9834
+ const p = this.state;
9835
+ this.currentTimeIsInRange !== o && !o ? (this.lastBufferStateEvent = "drained", this.emitter.emit("buffer state event", this.lastBufferStateEvent)) : o && h && this.lastBufferStateEvent === "drained" && (this.lastBufferStateEvent = "filled", this.emitter.emit("buffer state event", this.lastBufferStateEvent)), l === "playing" && !this.firstFrameTime && (this.firstFrameTime = Date.now()), this.currentTimeIsInRange = o, this.state = l, this.bufferFullness = o ? u : 0, p !== l && this.emitter.emit("playback state", l), this.emitter.emit("buffer fullness", this.bufferFullness);
9828
9836
  });
9829
9837
  r(this, "onNeedsUserInput", ({ forAudio: e, forVideo: t }) => {
9830
9838
  e && this.needsInputForAudioCount++, t && this.needsInputForVideoCount++;
@@ -9846,7 +9854,7 @@ const Yh = () => ({
9846
9854
  levelUpgrades: [],
9847
9855
  bufferFullness: 0,
9848
9856
  general: Yh()
9849
- }), Mc = class Mc {
9857
+ }), xc = class xc {
9850
9858
  constructor(e, t, i) {
9851
9859
  r(this, "minBufferFullnessLengthForRegression", 6);
9852
9860
  r(this, "logger");
@@ -10042,9 +10050,9 @@ const Yh = () => ({
10042
10050
  Bs(this.metrics.general.activeRanges);
10043
10051
  }
10044
10052
  };
10045
- r(Mc, "create", (e, t, i) => new Mc(e, t, i));
10046
- let Kh = Mc;
10047
- const xc = class xc {
10053
+ r(xc, "create", (e, t, i) => new xc(e, t, i));
10054
+ let Kh = xc;
10055
+ const Mc = class Mc {
10048
10056
  constructor(e, t) {
10049
10057
  r(this, "renditions", /* @__PURE__ */ new Map());
10050
10058
  r(this, "renditionLevels", []);
@@ -10143,8 +10151,8 @@ const xc = class xc {
10143
10151
  this.subscriptionSource = t, this.emitter = e, this.emitter.on("renditions", this.onRenditions), this.emitter.on("subscription changed", this.onSubscriptionChanged);
10144
10152
  }
10145
10153
  };
10146
- r(xc, "create", (e, t) => new xc(e, t));
10147
- let eu = xc;
10154
+ r(Mc, "create", (e, t) => new Mc(e, t));
10155
+ let eu = Mc;
10148
10156
  const ir = (s) => JSON.parse(JSON.stringify(s)), iw = 1e4, Lc = class Lc {
10149
10157
  constructor(e, t, i) {
10150
10158
  r(this, "logger");
@@ -10804,7 +10812,7 @@ const rw = {
10804
10812
  r(this, "onError", (e) => this.addError(e.error));
10805
10813
  r(this, "addError", (e) => {
10806
10814
  const { includeErrors: t, maxErrorReports: i } = this.options;
10807
- if (t && e instanceof x) {
10815
+ if (t && e instanceof M) {
10808
10816
  if (this.errorCount++, this.errorCount > i)
10809
10817
  return;
10810
10818
  const n = this.parentContext.getStatistics();
@@ -11004,7 +11012,7 @@ class lw {
11004
11012
  }
11005
11013
  const ad = (s, e) => s && typeof s == "object" && e in s, mw = (s) => !(typeof s != "object" || !ad(s, "channelId") || typeof s.channelId != "string" || !ad(s, "url") || typeof s.url != "string" || s.channelId.length === 0 || s.url.length === 0), fw = (s) => {
11006
11014
  if (!mw(s))
11007
- throw new x("Invalid options", { isFatal: !0, code: "invalid_options" });
11015
+ throw new M("Invalid options", { isFatal: !0, code: "invalid_options" });
11008
11016
  const e = S({}, s);
11009
11017
  return Object.keys(e).forEach((t) => {
11010
11018
  const i = e;
@@ -11130,7 +11138,7 @@ const Pt = class Pt extends Ei {
11130
11138
  p.overrides && this.options.addOverrides(p.channelId, p.overrides), p.renditions = yield this.filterRenditions(p.renditions), this.modules.renditions.setRenditions(p.channelId, p.renditions);
11131
11139
  }))
11132
11140
  ), !n)
11133
- throw Md("external");
11141
+ throw xd("external");
11134
11142
  const o = this.options.getOverride(
11135
11143
  "sizeBasedResolutionCapEnabled",
11136
11144
  this.channelId
@@ -11270,7 +11278,7 @@ const Pt = class Pt extends Ei {
11270
11278
  var n, o;
11271
11279
  const t = this.currentRenditionLevel, i = [];
11272
11280
  if (!t)
11273
- throw new x("No currentRenditionLevel", { code: "no_current_rendition_level", isFatal: !1 });
11281
+ throw new M("No currentRenditionLevel", { code: "no_current_rendition_level", isFatal: !1 });
11274
11282
  if (t != null && t.video && i.push({
11275
11283
  type: "video",
11276
11284
  mimeType: ei(t.video),
@@ -11280,7 +11288,7 @@ const Pt = class Pt extends Ei {
11280
11288
  codec: t.audio.codec,
11281
11289
  mimeType: ei(t.audio)
11282
11290
  }), i.length === 0)
11283
- throw new x("Can't initialize decoding module without tracks", { code: "no_tracks", isFatal: !1 });
11291
+ throw new M("Can't initialize decoding module without tracks", { code: "no_tracks", isFatal: !1 });
11284
11292
  if (this.willUseMediaSource() && this.element instanceof HTMLMediaElement)
11285
11293
  this.emitter.emit("flush buffers"), yield (n = this.modules.mseModule) == null ? void 0 : n.setSourceBuffers(i);
11286
11294
  else {
@@ -11378,7 +11386,7 @@ const Pt = class Pt extends Ei {
11378
11386
  const t = this.modules.canvasModule ? this.options.get("iosMediaElementEnabled") : void 0;
11379
11387
  return S({
11380
11388
  uptime: Date.now() - this.createdAt,
11381
- version: "4.1.8-5-gfb5ffadf",
11389
+ version: "4.1.8-6-g43df7939",
11382
11390
  clientId: this.clientId,
11383
11391
  sessionId: this.sessionId,
11384
11392
  channelId: this.channelId,
@@ -11609,14 +11617,14 @@ const Pt = class Pt extends Ei {
11609
11617
  this
11610
11618
  ), this.modules.telemetry.load());
11611
11619
  }), this.emitter.on("adapt level", (y) => {
11612
- var Me, J, ce, Ne, Ve;
11620
+ var xe, J, ce, Ne, Ve;
11613
11621
  this.logger.debug("adapt level", { direction: y });
11614
11622
  const T = this.modules.renditions.getRenditionLevels(), F = this.modules.renditions.getRenditionLevel(), G = T.findIndex((se) => se === F), L = T.length - 1;
11615
11623
  let N = G;
11616
11624
  switch (y) {
11617
11625
  case "upgrade":
11618
11626
  {
11619
- const se = Math.min(G + 1, L), dt = T[se], nm = (Me = this.modules.connection.estimatedBandwidth) != null ? Me : Ti(), rm = ((ce = (J = dt == null ? void 0 : dt.audio) == null ? void 0 : J.bitRate) != null ? ce : 0) + ((Ve = (Ne = dt == null ? void 0 : dt.video) == null ? void 0 : Ne.bitRate) != null ? Ve : 0), am = nm * 2 > rm;
11627
+ const se = Math.min(G + 1, L), dt = T[se], nm = (xe = this.modules.connection.estimatedBandwidth) != null ? xe : Ti(), rm = ((ce = (J = dt == null ? void 0 : dt.audio) == null ? void 0 : J.bitRate) != null ? ce : 0) + ((Ve = (Ne = dt == null ? void 0 : dt.video) == null ? void 0 : Ne.bitRate) != null ? Ve : 0), am = nm * 2 > rm;
11620
11628
  dt && am && this.modules.adaptivity.isQoSOk(dt) && (N = se);
11621
11629
  }
11622
11630
  break;
@@ -11676,7 +11684,7 @@ const Pt = class Pt extends Ei {
11676
11684
  } catch (L) {
11677
11685
  this.emitter.emit(
11678
11686
  "error",
11679
- new x("Subscription failed validation", {
11687
+ new M("Subscription failed validation", {
11680
11688
  source: L instanceof Error ? L : void 0,
11681
11689
  isFatal: !1,
11682
11690
  code: "subscription_failed_validation"
@@ -11687,14 +11695,14 @@ const Pt = class Pt extends Ei {
11687
11695
  reset: T.reset,
11688
11696
  to: T.subscription,
11689
11697
  from: this.modules.subscription.getCurrentSubscription()
11690
- }), T.reset && F.channelId !== T.subscription.channelId && (this.emit("error", Mu(T.subscription.channelId)), this.emit("channel switch failed", { channelId: F.channelId })), this.modules.sync.allowTimeshiftOnAudio = !((G = T.subscription.video) != null && G.codec), this.modules.adaptivity.reset();
11698
+ }), T.reset && F.channelId !== T.subscription.channelId && (this.emit("error", xu(T.subscription.channelId)), this.emit("channel switch failed", { channelId: F.channelId })), this.modules.sync.allowTimeshiftOnAudio = !((G = T.subscription.video) != null && G.codec), this.modules.adaptivity.reset();
11691
11699
  break;
11692
11700
  case "timing info":
11693
11701
  this.modules.sync.updateChannelSyncInfo(T.timingInfo.channelId, T.timingInfo), this.emit("server wallclock time", T.timingInfo.wallclockTime);
11694
11702
  break;
11695
11703
  }
11696
11704
  }), this.emitter.on("channel switch timeout", (y) => {
11697
- this.emit("error", Mu(y)), this.emit("channel switch failed", { channelId: this.currentSubscription.channelId });
11705
+ this.emit("error", xu(y)), this.emit("channel switch failed", { channelId: this.currentSubscription.channelId });
11698
11706
  }), this.emitter.on("received data", (y) => {
11699
11707
  const T = this.modules.subscription.getCurrentSubscription(), F = rg(y);
11700
11708
  if (!T) {
@@ -11703,7 +11711,7 @@ const Pt = class Pt extends Ei {
11703
11711
  }
11704
11712
  Re(O(S({}, F), { channelId: T.channelId }));
11705
11713
  }), this.emitter.on("received moq data", (y) => {
11706
- var N, Z, Me;
11714
+ var N, Z, xe;
11707
11715
  const T = y.payload.mediaType(), F = y.channelId, G = y.renditionId, L = this.modules.sync.processFragment(F, y.payload);
11708
11716
  if (T !== "text" && this.modules.jitter.recordSample({
11709
11717
  type: T,
@@ -11721,7 +11729,7 @@ const Pt = class Pt extends Ei {
11721
11729
  }), this.modules.incomingData.add(T, y.payload.rawBytes().byteLength), L.fragment().emsgs.forEach((J) => {
11722
11730
  if (!J.presentationTime)
11723
11731
  return;
11724
- const ce = Mf(J.data);
11732
+ const ce = xf(J.data);
11725
11733
  ce && this.modules.event.addEvent({
11726
11734
  id: J.id,
11727
11735
  timestamp: J.presentationTime / J.timescale * 1e3 - this.modules.sync.getTimeshiftOffset(),
@@ -11729,7 +11737,7 @@ const Pt = class Pt extends Ei {
11729
11737
  type: "metadata"
11730
11738
  });
11731
11739
  }), this.modules.decoder) {
11732
- const J = (N = L.header().init().moov.traks[0]) == null ? void 0 : N.mdia.minf.stbl.stsd, ce = (Z = J == null ? void 0 : J.avc1) == null ? void 0 : Z.avcC.bytes, Ne = (Me = J == null ? void 0 : J.codec) != null ? Me : "h264";
11740
+ const J = (N = L.header().init().moov.traks[0]) == null ? void 0 : N.mdia.minf.stbl.stsd, ce = (Z = J == null ? void 0 : J.avc1) == null ? void 0 : Z.avcC.bytes, Ne = (xe = J == null ? void 0 : J.codec) != null ? xe : "h264";
11733
11741
  if (ce) {
11734
11742
  const Ve = ce.buffer.slice(ce.byteOffset, ce.byteOffset + ce.byteLength);
11735
11743
  if (T === "text")
@@ -11815,9 +11823,9 @@ const Pt = class Pt extends Ei {
11815
11823
  this.modules.sync.processSample(L),
11816
11824
  this.isSwitchingRenditionLevel && L.type === "video"
11817
11825
  );
11818
- let Me = L;
11826
+ let xe = L;
11819
11827
  Z.forEach((J) => {
11820
- this.modules.event.extractEvent(J, Me), this.emitter.emit("coded sample", J), Me = J;
11828
+ this.modules.event.extractEvent(J, xe), this.emitter.emit("coded sample", J), xe = J;
11821
11829
  });
11822
11830
  }
11823
11831
  }
@@ -12263,7 +12271,7 @@ export {
12263
12271
  tf as d,
12264
12272
  _m as e,
12265
12273
  Vm as f,
12266
- x as g,
12274
+ M as g,
12267
12275
  Cm as i,
12268
12276
  D as n
12269
12277
  };