@cloudflare/realtimekit 1.1.2 → 1.1.3-staging.2

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/dist/index.es.js CHANGED
@@ -5758,7 +5758,7 @@ class ym extends ut {
5758
5758
  }) || e[e.length - 1];
5759
5759
  }
5760
5760
  parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
5761
- var P, k, A, N, H, $, F, K, re, Je, ks, vr, ni;
5761
+ var P, k, A, N, H, $, F, K, re, Je, Is, vr, ni;
5762
5762
  const d = e, c = new vm(), u = r.length ? new Set(r) : void 0, p = [], f = [], S = [], E = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
5763
5763
  for (const I of d.values()) {
5764
5764
  if (u) {
@@ -6022,7 +6022,7 @@ class ym extends ut {
6022
6022
  }), _.set(C, {
6023
6023
  score: +(w.score * 10).toFixed(),
6024
6024
  packetsLostPercentage: bd({
6025
- packetsLost: (w.packetsLost || 0) - (((ks = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ks.packetsLost) || 0),
6025
+ packetsLost: (w.packetsLost || 0) - (((Is = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Is.packetsLost) || 0),
6026
6026
  packetsReceived: (w.packetsReceived || 0) - (((vr = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : vr.packetsReceived) || 0)
6027
6027
  }),
6028
6028
  jitter: w.jitter || 0,
@@ -6391,7 +6391,7 @@ class Tm extends ym {
6391
6391
  };
6392
6392
  }
6393
6393
  parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
6394
- var P, k, A, N, H, $, F, K, re, Je, ks, vr, ni;
6394
+ var P, k, A, N, H, $, F, K, re, Je, Is, vr, ni;
6395
6395
  const d = e, c = new vm(), u = r.length ? new Set(r) : void 0, p = [], f = [], S = [], E = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
6396
6396
  for (const I of d.values()) {
6397
6397
  if (u) {
@@ -6655,7 +6655,7 @@ class Tm extends ym {
6655
6655
  }), _.set(C, {
6656
6656
  score: +(w.score * 10).toFixed(),
6657
6657
  packetsLostPercentage: bd({
6658
- packetsLost: (w.packetsLost || 0) - (((ks = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ks.packetsLost) || 0),
6658
+ packetsLost: (w.packetsLost || 0) - (((Is = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Is.packetsLost) || 0),
6659
6659
  packetsReceived: (w.packetsReceived || 0) - (((vr = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : vr.packetsReceived) || 0)
6660
6660
  }),
6661
6661
  jitter: w.jitter || 0,
@@ -7833,8 +7833,8 @@ function Jv(s) {
7833
7833
  var Kv = typeof global == "object" && global && global.Object === Object && global;
7834
7834
  const _m = Kv;
7835
7835
  var zv = typeof self == "object" && self && self.Object === Object && self, Yv = _m || zv || Function("return this")();
7836
- const Cs = Yv;
7837
- var Qv = Cs.Symbol;
7836
+ const Rs = Yv;
7837
+ var Qv = Rs.Symbol;
7838
7838
  const ei = Qv;
7839
7839
  var Pm = Object.prototype, Xv = Pm.hasOwnProperty, Zv = Pm.toString, fo = ei ? ei.toStringTag : void 0;
7840
7840
  function ey(s) {
@@ -7855,18 +7855,18 @@ var iy = "[object Null]", ay = "[object Undefined]", op = ei ? ei.toStringTag :
7855
7855
  function fa(s) {
7856
7856
  return s == null ? s === void 0 ? ay : iy : op && op in Object(s) ? ey(s) : ry(s);
7857
7857
  }
7858
- function Ps(s) {
7858
+ function Cs(s) {
7859
7859
  var t = typeof s;
7860
7860
  return s != null && (t == "object" || t == "function");
7861
7861
  }
7862
7862
  var ny = "[object AsyncFunction]", oy = "[object Function]", cy = "[object GeneratorFunction]", dy = "[object Proxy]";
7863
7863
  function vh(s) {
7864
- if (!Ps(s))
7864
+ if (!Cs(s))
7865
7865
  return false;
7866
7866
  var t = fa(s);
7867
7867
  return t == oy || t == cy || t == ny || t == dy;
7868
7868
  }
7869
- var ly = Cs["__core-js_shared__"];
7869
+ var ly = Rs["__core-js_shared__"];
7870
7870
  const iu = ly;
7871
7871
  var cp = function() {
7872
7872
  var s = /[^.]+$/.exec(iu && iu.keys && iu.keys.IE_PROTO || "");
@@ -7893,7 +7893,7 @@ var gy = /[\\^$.*+?()[\]{}|]/g, my = /^\[object .+?Constructor\]$/, fy = Functio
7893
7893
  "^" + vy.call(yy).replace(gy, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
7894
7894
  );
7895
7895
  function Ey(s) {
7896
- if (!Ps(s) || uy(s))
7896
+ if (!Cs(s) || uy(s))
7897
7897
  return false;
7898
7898
  var t = vh(s) ? Ty : my;
7899
7899
  return t.test(Sa(s));
@@ -7905,7 +7905,7 @@ function va(s, t) {
7905
7905
  var e = _y(s, t);
7906
7906
  return Ey(e) ? e : void 0;
7907
7907
  }
7908
- var Py = va(Cs, "Map");
7908
+ var Py = va(Rs, "Map");
7909
7909
  const Uo = Py;
7910
7910
  var Cy = va(Object, "create");
7911
7911
  const $o = Cy;
@@ -8066,7 +8066,7 @@ const ti = Zy;
8066
8066
  function eT() {
8067
8067
  return false;
8068
8068
  }
8069
- var wm = typeof exports == "object" && exports && !exports.nodeType && exports, lp = wm && typeof module == "object" && module && !module.nodeType && module, tT = lp && lp.exports === wm, up = tT ? Cs.Buffer : void 0, sT = up ? up.isBuffer : void 0, rT = sT || eT;
8069
+ var wm = typeof exports == "object" && exports && !exports.nodeType && exports, lp = wm && typeof module == "object" && module && !module.nodeType && module, tT = lp && lp.exports === wm, up = tT ? Rs.Buffer : void 0, sT = up ? up.isBuffer : void 0, rT = sT || eT;
8070
8070
  const jn = rT;
8071
8071
  var iT = 9007199254740991, aT = /^(?:0|[1-9]\d*)$/;
8072
8072
  function bm(s, t) {
@@ -8144,7 +8144,7 @@ function qT(s) {
8144
8144
  }
8145
8145
  var jT = Object.prototype, GT = jT.hasOwnProperty;
8146
8146
  function WT(s) {
8147
- if (!Ps(s))
8147
+ if (!Cs(s))
8148
8148
  return qT(s);
8149
8149
  var t = Bl(s), e = [];
8150
8150
  for (var r in s)
@@ -8157,7 +8157,7 @@ function Gc(s) {
8157
8157
  function JT(s, t) {
8158
8158
  return s && qc(t, Gc(t), s);
8159
8159
  }
8160
- var Om = typeof exports == "object" && exports && !exports.nodeType && exports, pp = Om && typeof module == "object" && module && !module.nodeType && module, KT = pp && pp.exports === Om, gp = KT ? Cs.Buffer : void 0, mp = gp ? gp.allocUnsafe : void 0;
8160
+ var Om = typeof exports == "object" && exports && !exports.nodeType && exports, pp = Om && typeof module == "object" && module && !module.nodeType && module, KT = pp && pp.exports === Om, gp = KT ? Rs.Buffer : void 0, mp = gp ? gp.allocUnsafe : void 0;
8161
8161
  function Nm(s, t) {
8162
8162
  if (t)
8163
8163
  return s.slice();
@@ -8215,13 +8215,13 @@ function yu(s) {
8215
8215
  function iE(s) {
8216
8216
  return $m(s, Gc, Um);
8217
8217
  }
8218
- var aE = va(Cs, "DataView");
8218
+ var aE = va(Rs, "DataView");
8219
8219
  const Tu = aE;
8220
- var nE = va(Cs, "Promise");
8220
+ var nE = va(Rs, "Promise");
8221
8221
  const Eu = nE;
8222
- var oE = va(Cs, "Set");
8222
+ var oE = va(Rs, "Set");
8223
8223
  const _u = oE;
8224
- var cE = va(Cs, "WeakMap");
8224
+ var cE = va(Rs, "WeakMap");
8225
8225
  const Pu = cE;
8226
8226
  var Sp = "[object Map]", dE = "[object Object]", vp = "[object Promise]", yp = "[object Set]", Tp = "[object WeakMap]", Ep = "[object DataView]", lE = Sa(Tu), uE = Sa(Uo), hE = Sa(Eu), pE = Sa(_u), gE = Sa(Pu), oi = fa;
8227
8227
  (Tu && oi(new Tu(new ArrayBuffer(1))) != Ep || Uo && oi(new Uo()) != Sp || Eu && oi(Eu.resolve()) != vp || _u && oi(new _u()) != yp || Pu && oi(new Pu()) != Tp) && (oi = function(s) {
@@ -8247,7 +8247,7 @@ function SE(s) {
8247
8247
  var t = s.length, e = new s.constructor(t);
8248
8248
  return t && typeof s[0] == "string" && fE.call(s, "index") && (e.index = s.index, e.input = s.input), e;
8249
8249
  }
8250
- var vE = Cs.Uint8Array;
8250
+ var vE = Rs.Uint8Array;
8251
8251
  const Md = vE;
8252
8252
  function Ch(s) {
8253
8253
  var t = new s.constructor(s.byteLength);
@@ -8308,7 +8308,7 @@ var Cp = Object.create, qE = function() {
8308
8308
  function s() {
8309
8309
  }
8310
8310
  return function(t) {
8311
- if (!Ps(t))
8311
+ if (!Cs(t))
8312
8312
  return {};
8313
8313
  if (Cp)
8314
8314
  return Cp(t);
@@ -8340,7 +8340,7 @@ function ud(s, t, e, r, i, n) {
8340
8340
  var o, d = t & ZE, c = t & e_, u = t & t_;
8341
8341
  if (e && (o = i ? e(s, r, i, n) : e(s)), o !== void 0)
8342
8342
  return o;
8343
- if (!Ps(s))
8343
+ if (!Cs(s))
8344
8344
  return s;
8345
8345
  var p = ti(s);
8346
8346
  if (p) {
@@ -9089,9 +9089,9 @@ function Ip(s) {
9089
9089
  return s;
9090
9090
  if (k_(s))
9091
9091
  return kp;
9092
- if (Ps(s)) {
9092
+ if (Cs(s)) {
9093
9093
  var t = typeof s.valueOf == "function" ? s.valueOf() : s;
9094
- s = Ps(t) ? t + "" : t;
9094
+ s = Cs(t) ? t + "" : t;
9095
9095
  }
9096
9096
  if (typeof s != "string")
9097
9097
  return s === 0 ? s : +s;
@@ -9159,7 +9159,7 @@ function pP(s, t) {
9159
9159
  return uP(hP(s, t, Qm), s + "");
9160
9160
  }
9161
9161
  function gP(s, t, e) {
9162
- if (!Ps(e))
9162
+ if (!Cs(e))
9163
9163
  return false;
9164
9164
  var r = typeof t;
9165
9165
  return (r == "number" ? jc(e) && bm(t, e.length) : r == "string" && t in e) ? Bc(e[t], s) : false;
@@ -9358,7 +9358,7 @@ function XP(s) {
9358
9358
  var ZP = XP();
9359
9359
  const eC = ZP;
9360
9360
  var tC = function() {
9361
- return Cs.Date.now();
9361
+ return Rs.Date.now();
9362
9362
  };
9363
9363
  const ou = tC;
9364
9364
  var sC = "Expected a function", rC = Math.max, iC = Math.min;
@@ -9366,7 +9366,7 @@ function bh(s, t, e) {
9366
9366
  var r, i, n, o, d, c, u = 0, p = false, f = false, S = true;
9367
9367
  if (typeof s != "function")
9368
9368
  throw new TypeError(sC);
9369
- t = Ip(t) || 0, Ps(e) && (p = !!e.leading, f = "maxWait" in e, n = f ? rC(Ip(e.maxWait) || 0, t) : n, S = "trailing" in e ? !!e.trailing : S);
9369
+ t = Ip(t) || 0, Cs(e) && (p = !!e.leading, f = "maxWait" in e, n = f ? rC(Ip(e.maxWait) || 0, t) : n, S = "trailing" in e ? !!e.trailing : S);
9370
9370
  function E(K) {
9371
9371
  var re = r, Je = i;
9372
9372
  return r = i = void 0, u = K, o = s.apply(Je, re), o;
@@ -9375,8 +9375,8 @@ function bh(s, t, e) {
9375
9375
  return u = K, d = setTimeout(A, t), p ? E(K) : o;
9376
9376
  }
9377
9377
  function P(K) {
9378
- var re = K - c, Je = K - u, ks = t - re;
9379
- return f ? iC(ks, n - Je) : ks;
9378
+ var re = K - c, Je = K - u, Is = t - re;
9379
+ return f ? iC(Is, n - Je) : Is;
9380
9380
  }
9381
9381
  function k(K) {
9382
9382
  var re = K - c, Je = K - u;
@@ -9431,13 +9431,13 @@ function oC(s, t, e, r, i, n, o) {
9431
9431
  var p = n ? n(d, c, e + "", s, t, o) : void 0, f = p === void 0;
9432
9432
  if (f) {
9433
9433
  var S = ti(c), E = !S && jn(c), _ = !S && !E && Hl(c);
9434
- p = c, S || E || _ ? ti(d) ? p = d : aC(d) ? p = Lm(d) : E ? (f = false, p = Nm(c, true)) : _ ? (f = false, p = Fm(c, true)) : p = [] : EP(c) || Ad(c) ? (p = d, Ad(d) ? p = nC(d) : (!Ps(d) || vh(d)) && (p = Hm(c))) : f = false;
9434
+ p = c, S || E || _ ? ti(d) ? p = d : aC(d) ? p = Lm(d) : E ? (f = false, p = Nm(c, true)) : _ ? (f = false, p = Fm(c, true)) : p = [] : EP(c) || Ad(c) ? (p = d, Ad(d) ? p = nC(d) : (!Cs(d) || vh(d)) && (p = Hm(c))) : f = false;
9435
9435
  }
9436
9436
  f && (o.set(c, p), i(p, c, r, n, o), o.delete(c)), Ru(s, e, p);
9437
9437
  }
9438
9438
  function tf(s, t, e, r, i) {
9439
9439
  s !== t && eC(t, function(n, o) {
9440
- if (i || (i = new xs()), Ps(n))
9440
+ if (i || (i = new xs()), Cs(n))
9441
9441
  oC(s, t, o, e, tf, r, i);
9442
9442
  else {
9443
9443
  var d = r ? r(wu(s, o), n, o + "", s, t, i) : void 0;
@@ -10682,7 +10682,7 @@ class NC extends MessageType {
10682
10682
  ]);
10683
10683
  }
10684
10684
  }
10685
- const Rs = new NC();
10685
+ const ws = new NC();
10686
10686
  class LC extends MessageType {
10687
10687
  constructor() {
10688
10688
  super("media.ProducerPayload", [
@@ -10744,7 +10744,7 @@ class xC extends MessageType {
10744
10744
  opt: true,
10745
10745
  T: 8
10746
10746
  },
10747
- { no: 3, name: "description", kind: "message", T: () => Rs },
10747
+ { no: 3, name: "description", kind: "message", T: () => ws },
10748
10748
  {
10749
10749
  no: 4,
10750
10750
  name: "private_ice",
@@ -10791,7 +10791,7 @@ class HC extends MessageType {
10791
10791
  kind: "scalar",
10792
10792
  T: 9
10793
10793
  },
10794
- { no: 2, name: "description", kind: "message", T: () => Rs },
10794
+ { no: 2, name: "description", kind: "message", T: () => ws },
10795
10795
  {
10796
10796
  no: 3,
10797
10797
  name: "transcription_enabled",
@@ -10819,7 +10819,7 @@ class BC extends MessageType {
10819
10819
  kind: "scalar",
10820
10820
  T: 9
10821
10821
  },
10822
- { no: 2, name: "description", kind: "message", T: () => Rs }
10822
+ { no: 2, name: "description", kind: "message", T: () => ws }
10823
10823
  ]);
10824
10824
  }
10825
10825
  }
@@ -10833,7 +10833,7 @@ class jC extends MessageType {
10833
10833
  kind: "scalar",
10834
10834
  T: 9
10835
10835
  },
10836
- { no: 2, name: "description", kind: "message", T: () => Rs }
10836
+ { no: 2, name: "description", kind: "message", T: () => ws }
10837
10837
  ]);
10838
10838
  }
10839
10839
  }
@@ -11322,7 +11322,7 @@ class CR extends MessageType {
11322
11322
  kind: "scalar",
11323
11323
  T: 8
11324
11324
  },
11325
- { no: 4, name: "description", kind: "message", T: () => Rs },
11325
+ { no: 4, name: "description", kind: "message", T: () => ws },
11326
11326
  {
11327
11327
  no: 5,
11328
11328
  name: "msid",
@@ -11420,7 +11420,7 @@ class MR extends MessageType {
11420
11420
  kind: "scalar",
11421
11421
  T: 9
11422
11422
  },
11423
- { no: 2, name: "description", kind: "message", T: () => Rs },
11423
+ { no: 2, name: "description", kind: "message", T: () => ws },
11424
11424
  {
11425
11425
  no: 3,
11426
11426
  name: "producing_transport_id",
@@ -11442,7 +11442,7 @@ class OR extends MessageType {
11442
11442
  repeat: 2,
11443
11443
  T: 9
11444
11444
  },
11445
- { no: 2, name: "description", kind: "message", T: () => Rs },
11445
+ { no: 2, name: "description", kind: "message", T: () => ws },
11446
11446
  {
11447
11447
  no: 3,
11448
11448
  name: "consuming_transport_id",
@@ -11773,7 +11773,7 @@ class iw extends MessageType {
11773
11773
  T: 8
11774
11774
  },
11775
11775
  { no: 2, name: "consumer_ids_map", kind: "message", T: () => of },
11776
- { no: 3, name: "description", kind: "message", T: () => Rs }
11776
+ { no: 3, name: "description", kind: "message", T: () => ws }
11777
11777
  ]);
11778
11778
  }
11779
11779
  }
@@ -11793,7 +11793,7 @@ class nw extends MessageType {
11793
11793
  kind: "scalar",
11794
11794
  T: 9
11795
11795
  },
11796
- { no: 4, name: "description", kind: "message", T: () => Rs }
11796
+ { no: 4, name: "description", kind: "message", T: () => ws }
11797
11797
  ]);
11798
11798
  }
11799
11799
  }
@@ -11852,7 +11852,7 @@ new hw();
11852
11852
  class pw extends MessageType {
11853
11853
  constructor() {
11854
11854
  super("media.edge.ProducerClosingResponse", [
11855
- { no: 1, name: "description", kind: "message", T: () => Rs }
11855
+ { no: 1, name: "description", kind: "message", T: () => ws }
11856
11856
  ]);
11857
11857
  }
11858
11858
  }
@@ -11860,7 +11860,7 @@ const gw = new pw();
11860
11860
  class mw extends MessageType {
11861
11861
  constructor() {
11862
11862
  super("media.edge.ConsumerClosingResponse", [
11863
- { no: 1, name: "description", kind: "message", T: () => Rs }
11863
+ { no: 1, name: "description", kind: "message", T: () => ws }
11864
11864
  ]);
11865
11865
  }
11866
11866
  }
@@ -15226,13 +15226,13 @@ function Yn(s, t) {
15226
15226
  function Tf(s, t) {
15227
15227
  return Object.keys(s).reduce((e, r) => (e[r] = t | s[r], e), {});
15228
15228
  }
15229
- const x = Yn(NA, FA), Re = Yn(LA, HA), W = Yn(
15229
+ const x = Yn(NA, FA), we = Yn(LA, HA), W = Yn(
15230
15230
  VA,
15231
15231
  BA
15232
15232
  ), qs = Yn(xA, qA), pi = Yn(
15233
15233
  UA,
15234
15234
  jA
15235
- ), is = Tf(yf, 16777216), Ts = Tf(yf, 50331648), gd = Yn(
15235
+ ), is = Tf(yf, 16777216), Es = Tf(yf, 50331648), gd = Yn(
15236
15236
  $A,
15237
15237
  GA
15238
15238
  );
@@ -15296,7 +15296,7 @@ const xu = (Pg = class {
15296
15296
  memberIds: s.targetUserIds,
15297
15297
  unreadCount: (r = t == null ? void 0 : t.unreadCount) != null ? r : 0
15298
15298
  });
15299
- return t != null && t.message && (e.latestMessage = Es.formatSocketServiceMessage(
15299
+ return t != null && t.message && (e.latestMessage = _s.formatSocketServiceMessage(
15300
15300
  t.message
15301
15301
  )), delete e.chatChannelId, delete e.targetUserIds, delete e.latestMessageAndUnreadCount, e;
15302
15302
  }
@@ -15361,7 +15361,7 @@ Mh([
15361
15361
  Mh([
15362
15362
  T.trace("ChatChannelHandler.getChannelMembers")
15363
15363
  ], ga.prototype, "getChannelMembers", 1);
15364
- var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, ws = (s, t, e, r) => {
15364
+ var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, bs = (s, t, e, r) => {
15365
15365
  for (var i = r > 1 ? void 0 : r ? zA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
15366
15366
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
15367
15367
  return r && i && KA(t, e, i), i;
@@ -15379,7 +15379,7 @@ class as {
15379
15379
  return a(this, ja).getValue("logger");
15380
15380
  }
15381
15381
  getChatMessages() {
15382
- return a(this, rt).sendMessagePromise(Re.getMessages);
15382
+ return a(this, rt).sendMessagePromise(we.getMessages);
15383
15383
  }
15384
15384
  getChatMessagesPaginated(t, e, r, i = 0, n = "") {
15385
15385
  return l(this, null, function* () {
@@ -15390,7 +15390,7 @@ class as {
15390
15390
  reversed: r,
15391
15391
  channelId: n
15392
15392
  }, d = yield a(this, rt).sendMessagePromise(
15393
- Re.getPaginatedMessages,
15393
+ we.getPaginatedMessages,
15394
15394
  $k.toBinary(o)
15395
15395
  );
15396
15396
  return d.payload ? Hk.fromBinary(
@@ -15407,7 +15407,7 @@ class as {
15407
15407
  payload: t
15408
15408
  };
15409
15409
  a(this, rt).sendMessage(
15410
- Re.sendMessageToRoom,
15410
+ we.sendMessageToRoom,
15411
15411
  jk.toBinary(r)
15412
15412
  );
15413
15413
  }
@@ -15418,7 +15418,7 @@ class as {
15418
15418
  payload: t
15419
15419
  };
15420
15420
  a(this, rt).sendMessage(
15421
- Re.sendMessageToPeers,
15421
+ we.sendMessageToPeers,
15422
15422
  Jk.toBinary(i)
15423
15423
  );
15424
15424
  }
@@ -15429,7 +15429,7 @@ class as {
15429
15429
  payload: t
15430
15430
  };
15431
15431
  a(this, rt).sendMessage(
15432
- Re.sendMessageToChannel,
15432
+ we.sendMessageToChannel,
15433
15433
  Yk.toBinary(i)
15434
15434
  );
15435
15435
  }
@@ -15449,7 +15449,7 @@ class as {
15449
15449
  };
15450
15450
  i && (o.channelId = i), n !== void 0 && (o.pinned = n);
15451
15451
  const d = yield a(this, rt).sendMessagePromise(
15452
- Re.editMessage,
15452
+ we.editMessage,
15453
15453
  Zk.toBinary(o)
15454
15454
  );
15455
15455
  return ad.fromBinary(d.payload).message;
@@ -15462,7 +15462,7 @@ class as {
15462
15462
  };
15463
15463
  e && (r.channelId = e);
15464
15464
  const i = yield a(this, rt).sendMessagePromise(
15465
- Re.deleteMessage,
15465
+ we.deleteMessage,
15466
15466
  aI.toBinary(r)
15467
15467
  ), n = nd.fromBinary(i.payload);
15468
15468
  return D({
@@ -15483,7 +15483,7 @@ class as {
15483
15483
  e.channelId && (r.channelId = e.channelId);
15484
15484
  try {
15485
15485
  const d = yield a(this, rt).sendMessagePromise(
15486
- Re.searchChannelMessages,
15486
+ we.searchChannelMessages,
15487
15487
  cI.toBinary(r)
15488
15488
  );
15489
15489
  return Sf.fromBinary(d.payload).messages;
@@ -15496,7 +15496,7 @@ class as {
15496
15496
  return l(this, null, function* () {
15497
15497
  try {
15498
15498
  const t = yield a(this, rt).sendMessagePromise(
15499
- Re.getAllChatChannels
15499
+ we.getAllChatChannels
15500
15500
  );
15501
15501
  return Fs.fromBinary(t.payload).chatChannels.map(ga.formatChannel);
15502
15502
  } catch (t) {
@@ -15507,7 +15507,7 @@ class as {
15507
15507
  markLastReadMessage(t, e) {
15508
15508
  return l(this, null, function* () {
15509
15509
  const r = yield a(this, rt).sendMessagePromise(
15510
- Re.markChannelIndexAsRead,
15510
+ we.markChannelIndexAsRead,
15511
15511
  lI.toBinary({
15512
15512
  channelId: t,
15513
15513
  userId: e.userId,
@@ -15524,7 +15524,7 @@ class as {
15524
15524
  pinned: e,
15525
15525
  channelId: t.channelId
15526
15526
  }, i = yield a(this, rt).sendMessagePromise(
15527
- Re.pinMessage,
15527
+ we.pinMessage,
15528
15528
  tI.toBinary(r)
15529
15529
  );
15530
15530
  return id.fromBinary(i.payload);
@@ -15533,31 +15533,31 @@ class as {
15533
15533
  on(t, e) {
15534
15534
  let r, i;
15535
15535
  switch (t) {
15536
- case Re.sendMessageToRoom: {
15536
+ case we.sendMessageToRoom: {
15537
15537
  r = uu.fromBinary.bind(
15538
15538
  uu
15539
15539
  ), i = uu.create();
15540
15540
  break;
15541
15541
  }
15542
- case Re.sendMessageToPeers: {
15542
+ case we.sendMessageToPeers: {
15543
15543
  r = hu.fromBinary.bind(
15544
15544
  hu
15545
15545
  ), i = hu.create();
15546
15546
  break;
15547
15547
  }
15548
- case Re.editMessage: {
15548
+ case we.editMessage: {
15549
15549
  r = ad.fromBinary.bind(
15550
15550
  ad
15551
15551
  ), i = ad.create();
15552
15552
  break;
15553
15553
  }
15554
- case Re.pinMessage: {
15554
+ case we.pinMessage: {
15555
15555
  r = id.fromBinary.bind(
15556
15556
  id
15557
15557
  ), i = id.create();
15558
15558
  break;
15559
15559
  }
15560
- case Re.deleteMessage: {
15560
+ case we.deleteMessage: {
15561
15561
  r = nd.fromBinary.bind(
15562
15562
  nd
15563
15563
  ), i = nd.create();
@@ -15582,37 +15582,37 @@ class as {
15582
15582
  }
15583
15583
  }
15584
15584
  rt = /* @__PURE__ */ new WeakMap(), ja = /* @__PURE__ */ new WeakMap();
15585
- ws([
15585
+ bs([
15586
15586
  T.trace("SocketService.getChatMessages")
15587
15587
  ], as.prototype, "getChatMessages", 1);
15588
- ws([
15588
+ bs([
15589
15589
  T.trace("SocketService.getChatMessagesPaginated")
15590
15590
  ], as.prototype, "getChatMessagesPaginated", 1);
15591
- ws([
15591
+ bs([
15592
15592
  T.trace("SocketService.sendMessageToRoom")
15593
15593
  ], as.prototype, "sendMessageToRoom", 1);
15594
- ws([
15594
+ bs([
15595
15595
  T.trace("SocketService.sendMessageToPeers")
15596
15596
  ], as.prototype, "sendMessageToPeers", 1);
15597
- ws([
15597
+ bs([
15598
15598
  T.trace("SocketService.sendMessageToChannel")
15599
15599
  ], as.prototype, "sendMessageToChannel", 1);
15600
- ws([
15600
+ bs([
15601
15601
  T.trace("SocketService.sendMessage")
15602
15602
  ], as.prototype, "sendMessage", 1);
15603
- ws([
15603
+ bs([
15604
15604
  T.trace("SocketService.editMessage")
15605
15605
  ], as.prototype, "editMessage", 1);
15606
- ws([
15606
+ bs([
15607
15607
  T.trace("SocketService.deleteMessage")
15608
15608
  ], as.prototype, "deleteMessage", 1);
15609
- ws([
15609
+ bs([
15610
15610
  T.trace("SocketService.searchMessages")
15611
15611
  ], as.prototype, "searchMessages", 1);
15612
- ws([
15612
+ bs([
15613
15613
  T.trace("SocketService.getAllChannels")
15614
15614
  ], as.prototype, "getAllChannels", 1);
15615
- ws([
15615
+ bs([
15616
15616
  T.trace("SocketService.markLastReadMessage")
15617
15617
  ], as.prototype, "markLastReadMessage", 1);
15618
15618
  function YA(s) {
@@ -15621,17 +15621,17 @@ function YA(s) {
15621
15621
  (t) => t[1].toUpperCase()
15622
15622
  );
15623
15623
  }
15624
- function _s(s) {
15624
+ function Ps(s) {
15625
15625
  if (!s || typeof s != "object")
15626
15626
  return s;
15627
15627
  if (Array.isArray(s))
15628
15628
  return s.map(
15629
- (e) => _s(e)
15629
+ (e) => Ps(e)
15630
15630
  );
15631
15631
  const t = {};
15632
15632
  return Object.keys(s).forEach((e) => {
15633
15633
  const r = validate(e) ? e : YA(e);
15634
- t[r] = _s(s[e]);
15634
+ t[r] = Ps(s[e]);
15635
15635
  }), t;
15636
15636
  }
15637
15637
  function QA(s) {
@@ -15977,7 +15977,7 @@ class jt extends tM {
15977
15977
  return l(this, arguments, function* ({
15978
15978
  manualIngestion: e
15979
15979
  }) {
15980
- const i = _s(
15980
+ const i = Ps(
15981
15981
  yield this.requests.post(
15982
15982
  `/v2/meetings/${this.context.getValue("meetingId")}/livestreams`,
15983
15983
  {
@@ -16005,7 +16005,7 @@ class jt extends tM {
16005
16005
  }
16006
16006
  getActiveLivestream() {
16007
16007
  return l(this, null, function* () {
16008
- const e = _s(
16008
+ const e = Ps(
16009
16009
  (yield this.requests.get(
16010
16010
  `/v2/meetings/${this.context.getValue("meetingId")}/active-livestream`
16011
16011
  )).data.data
@@ -16026,7 +16026,7 @@ class jt extends tM {
16026
16026
  if (this.userDetails)
16027
16027
  return this.userDetails;
16028
16028
  const e = (yield this.requests.get("v2/internals/participant-details")).data.data;
16029
- return _s(e);
16029
+ return Ps(e);
16030
16030
  });
16031
16031
  }
16032
16032
  startRecording(e, r) {
@@ -16074,7 +16074,7 @@ class jt extends tM {
16074
16074
  title: i,
16075
16075
  useHiveMedia: n,
16076
16076
  sfu: o
16077
- } = _s(
16077
+ } = Ps(
16078
16078
  (yield this.requests.post("v2/internals/rooms", {
16079
16079
  ip_information: e
16080
16080
  })).data.data
@@ -16547,7 +16547,7 @@ let Ye = (Cg = class extends qt {
16547
16547
  const o = yield a(this, Fe).getChatMessagesPaginated(t, e, r, i, n);
16548
16548
  return {
16549
16549
  messages: o.messages.map(
16550
- (d) => Es.formatSocketServiceMessage(d)
16550
+ (d) => _s.formatSocketServiceMessage(d)
16551
16551
  ),
16552
16552
  next: o.next
16553
16553
  };
@@ -16610,7 +16610,7 @@ let Ye = (Cg = class extends qt {
16610
16610
  return l(this, arguments, function* (t, e = {}) {
16611
16611
  if (!a(this, Ti).getValue("flagsmith").hasFeature(Z.FEAT_CHAT_SDK_SEARCH))
16612
16612
  throw new R("searchMessages is temporarily disabled!", "0506");
16613
- return (yield a(this, Fe).searchMessages(t, e)).map(Es.formatSocketServiceMessage);
16613
+ return (yield a(this, Fe).searchMessages(t, e)).map(_s.formatSocketServiceMessage);
16614
16614
  });
16615
16615
  }
16616
16616
  markLastReadMessage(t, e) {
@@ -16798,7 +16798,7 @@ const ci = (Rg = class {
16798
16798
  this.getChatMessages();
16799
16799
  })
16800
16800
  ), this.chatSocketHandler.on(
16801
- Re.sendMessageToRoom,
16801
+ we.sendMessageToRoom,
16802
16802
  (s) => {
16803
16803
  const t = ci.formatSocketServiceMessage(
16804
16804
  s.message
@@ -16816,7 +16816,7 @@ const ci = (Rg = class {
16816
16816
  });
16817
16817
  }
16818
16818
  ), this.chatSocketHandler.on(
16819
- Re.sendMessageToPeers,
16819
+ we.sendMessageToPeers,
16820
16820
  (s) => {
16821
16821
  const t = ci.formatSocketServiceMessage(
16822
16822
  s.message
@@ -16828,7 +16828,7 @@ const ci = (Rg = class {
16828
16828
  });
16829
16829
  }
16830
16830
  ), this.chatSocketHandler.on(
16831
- Re.editMessage,
16831
+ we.editMessage,
16832
16832
  (s) => {
16833
16833
  const t = ci.formatSocketServiceMessage(
16834
16834
  s.message
@@ -16849,7 +16849,7 @@ const ci = (Rg = class {
16849
16849
  }));
16850
16850
  }
16851
16851
  ), this.chatSocketHandler.on(
16852
- Re.deleteMessage,
16852
+ we.deleteMessage,
16853
16853
  (s) => {
16854
16854
  if (s.channelId) {
16855
16855
  this.chat.emit("chatUpdate", {
@@ -16876,7 +16876,7 @@ const ci = (Rg = class {
16876
16876
  this.chat.channels.push(e), this.chat.emit("channelCreate", e);
16877
16877
  }
16878
16878
  ), this.chatSocketHandler.on(
16879
- Re.pinMessage,
16879
+ we.pinMessage,
16880
16880
  (s) => {
16881
16881
  const t = this.chat.messages.findIndex((r) => r.id === s.chatId);
16882
16882
  if (t === -1)
@@ -16897,10 +16897,10 @@ const ci = (Rg = class {
16897
16897
  );
16898
16898
  }
16899
16899
  }, br = /* @__PURE__ */ new WeakMap(), Rg);
16900
- let Es = ci;
16900
+ let _s = ci;
16901
16901
  uM([
16902
16902
  T.trace("ChatController.setupEvents")
16903
- ], Es.prototype, "setupEvents", 1);
16903
+ ], _s.prototype, "setupEvents", 1);
16904
16904
  var hM = Object.defineProperty, pM = Object.getOwnPropertyDescriptor, gM = (s, t, e, r) => {
16905
16905
  for (var i = r > 1 ? void 0 : r ? pM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
16906
16906
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
@@ -17386,7 +17386,7 @@ var bM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Ea = (s, t
17386
17386
  for (var i = r > 1 ? void 0 : r ? kM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17387
17387
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17388
17388
  return r && i && bM(t, e, i), i;
17389
- }, Yt, Ya, ae, Jo, Is, it, Ko, qu, Qa, fd;
17389
+ }, Yt, Ya, ae, Jo, As, it, Ko, qu, Qa, fd;
17390
17390
  class ri extends qt {
17391
17391
  constructor(e, r, i, n, o) {
17392
17392
  const d = e.getValue("logger");
@@ -17397,9 +17397,9 @@ class ri extends qt {
17397
17397
  g(this, Ya, void 0);
17398
17398
  g(this, ae, void 0);
17399
17399
  g(this, Jo, void 0);
17400
- g(this, Is, void 0);
17400
+ g(this, As, void 0);
17401
17401
  g(this, it, void 0);
17402
- m(this, it, e), m(this, Yt, n), m(this, Ya, o), m(this, ae, r), m(this, Jo, i), m(this, Is, []), this.setupEvents();
17402
+ m(this, it, e), m(this, Yt, n), m(this, Ya, o), m(this, ae, r), m(this, Jo, i), m(this, As, []), this.setupEvents();
17403
17403
  }
17404
17404
  get telemetry() {
17405
17405
  return a(this, it).getValue("telemetry");
@@ -17410,10 +17410,10 @@ class ri extends qt {
17410
17410
  setupEvents() {
17411
17411
  const e = {
17412
17412
  [b.GET_STAGE_REQUESTS]: (n) => l(this, null, function* () {
17413
- m(this, Is, n);
17413
+ m(this, As, n);
17414
17414
  }),
17415
17415
  [b.UPDATE_STAGE_REQUESTS]: (o) => l(this, [o], function* ({ add: n }) {
17416
- const d = a(this, Is).length, { stageRequests: c } = this.getAccessRequests();
17416
+ const d = a(this, As).length, { stageRequests: c } = this.getAccessRequests();
17417
17417
  (n || c.length > d) && this.emit("newStageRequest", { count: c.length }), this.emit("stageAccessRequestUpdate", c);
17418
17418
  })
17419
17419
  }, r = () => {
@@ -17433,7 +17433,7 @@ class ri extends qt {
17433
17433
  };
17434
17434
  a(this, ae).permissions.on("permissionsUpdate", (n) => {
17435
17435
  const { canAcceptProductionRequests: o } = n;
17436
- o !== void 0 && (a(this, ae).permissions.acceptStageRequests ? (r(), a(this, Yt).getStageRequests()) : (i(), m(this, Is, []), this.emit("stageAccessRequestUpdate", a(this, Is))));
17436
+ o !== void 0 && (a(this, ae).permissions.acceptStageRequests ? (r(), a(this, Yt).getStageRequests()) : (i(), m(this, As, []), this.emit("stageAccessRequestUpdate", a(this, As))));
17437
17437
  }), a(this, ae).permissions.acceptStageRequests && r();
17438
17438
  }
17439
17439
  getAccessRequests() {
@@ -17448,7 +17448,7 @@ class ri extends qt {
17448
17448
  userId: r.userId,
17449
17449
  peerId: r.id
17450
17450
  }));
17451
- return m(this, Is, e), { stageRequests: a(this, Is) };
17451
+ return m(this, As, e), { stageRequests: a(this, As) };
17452
17452
  }
17453
17453
  requestAccess() {
17454
17454
  return l(this, null, function* () {
@@ -17535,7 +17535,7 @@ class ri extends qt {
17535
17535
  });
17536
17536
  }
17537
17537
  }
17538
- Yt = /* @__PURE__ */ new WeakMap(), Ya = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakSet(), qu = function() {
17538
+ Yt = /* @__PURE__ */ new WeakMap(), Ya = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakSet(), qu = function() {
17539
17539
  return a(this, it).getValue("roomNodeClient");
17540
17540
  }, Qa = /* @__PURE__ */ new WeakSet(), fd = function(e) {
17541
17541
  return l(this, null, function* () {
@@ -18358,17 +18358,17 @@ const Df = (Dg = class {
18358
18358
  });
18359
18359
  })
18360
18360
  ), a(this, sn).on(
18361
- Re.sendMessageToPeers,
18361
+ we.sendMessageToPeers,
18362
18362
  (s) => {
18363
- const t = Es == null ? void 0 : Es.formatSocketServiceMessage(
18363
+ const t = _s == null ? void 0 : _s.formatSocketServiceMessage(
18364
18364
  s.message
18365
18365
  );
18366
18366
  this.broadcastIframeEvent(Ie.chatMessage, { message: t });
18367
18367
  }
18368
18368
  ), a(this, sn).on(
18369
- Re.sendMessageToRoom,
18369
+ we.sendMessageToRoom,
18370
18370
  (s) => {
18371
- const t = Es == null ? void 0 : Es.formatSocketServiceMessage(
18371
+ const t = _s == null ? void 0 : _s.formatSocketServiceMessage(
18372
18372
  s.message
18373
18373
  );
18374
18374
  this.broadcastIframeEvent(Ie.chatMessage, { message: t });
@@ -19296,7 +19296,7 @@ const lg = {
19296
19296
  }), r[o][1];
19297
19297
  };
19298
19298
  var pe = /* @__PURE__ */ ((s) => (s.WEBCAM = "webcam", s.WEBCAM_BACKUP = "webcam_backup", s.MIC = "mic", s.SCREENSHARE_VIDEO = "screenshare_video", s.SCREENSHARE_AUDIO = "screenshare_audio", s))(pe || {});
19299
- const e0 = W_(), Ca = _s(
19299
+ const e0 = W_(), Ca = Ps(
19300
19300
  e0.config.media
19301
19301
  );
19302
19302
  function t0(s) {
@@ -19307,18 +19307,18 @@ function t0(s) {
19307
19307
  enableHighBitrate: (r = s.audio.enableHighBitrate) != null ? r : false
19308
19308
  }), t.video = s.video.quality, t;
19309
19309
  }
19310
- var ki, As;
19310
+ var ki, Ms;
19311
19311
  class s0 {
19312
19312
  constructor(t, e) {
19313
19313
  g(this, ki, void 0);
19314
- g(this, As, void 0);
19314
+ g(this, Ms, void 0);
19315
19315
  h(this, "getScreenShareConstraints", () => {
19316
19316
  var u, p, f, S, E, _, P, k, A, N, H;
19317
19317
  const t2 = (u = a(this, ki)) == null ? void 0 : u.screenshare, e2 = (f = (p = t2 == null ? void 0 : t2.width) == null ? void 0 : p.max) != null ? f : 1920, r = (E = (S = t2 == null ? void 0 : t2.height) == null ? void 0 : S.max) != null ? E : 1080, i = (P = (_ = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : _.max) != null ? P : 5;
19318
19318
  let n = (A = (k = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : k.ideal) != null ? A : 5;
19319
19319
  const o = t2 == null ? void 0 : t2.displaySurface, d = t2 == null ? void 0 : t2.selfBrowserSurface;
19320
- a(this, As).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE) && (n = parseInt(
19321
- (N = a(this, As).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE)) == null ? void 0 : N.toString(),
19320
+ a(this, Ms).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE) && (n = parseInt(
19321
+ (N = a(this, Ms).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE)) == null ? void 0 : N.toString(),
19322
19322
  10
19323
19323
  ));
19324
19324
  let c = {
@@ -19329,8 +19329,8 @@ class s0 {
19329
19329
  max: i
19330
19330
  }
19331
19331
  };
19332
- if (a(this, As).getValue("flagsmith").hasFeature(Z.SCREENSHARE_CONSTRAINTS)) {
19333
- const $ = (H = a(this, As).getValue("flagsmith").getValue(
19332
+ if (a(this, Ms).getValue("flagsmith").hasFeature(Z.SCREENSHARE_CONSTRAINTS)) {
19333
+ const $ = (H = a(this, Ms).getValue("flagsmith").getValue(
19334
19334
  Z.SCREENSHARE_CONSTRAINTS
19335
19335
  )) == null ? void 0 : H.toString();
19336
19336
  c = JSON.parse($);
@@ -19365,21 +19365,21 @@ class s0 {
19365
19365
  let i = lg.vga;
19366
19366
  if (typeof r == "string" ? i = lg[r] : r !== void 0 && (i.height.ideal = r.height.ideal, i.width.ideal = r.width.ideal), i.frameRate = {
19367
19367
  ideal: (d = (o = i.frameRate) == null ? void 0 : o.ideal) != null ? d : 24
19368
- }, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, As).getValue("flagsmith").hasFeature(Z.VIDEO_CONSTRAINTS)) {
19369
- const u = (c = a(this, As).getValue("flagsmith").getValue(
19368
+ }, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, Ms).getValue("flagsmith").hasFeature(Z.VIDEO_CONSTRAINTS)) {
19369
+ const u = (c = a(this, Ms).getValue("flagsmith").getValue(
19370
19370
  Z.VIDEO_CONSTRAINTS
19371
19371
  )) == null ? void 0 : c.toString();
19372
19372
  i = JSON.parse(u);
19373
19373
  }
19374
19374
  return e2.video = i, typeof e2.video == "boolean" || (t2 ? e2.video.deviceId = { exact: t2 } : e2.video.facingMode = "user"), e2;
19375
19375
  });
19376
- m(this, As, t), m(this, ki, e);
19376
+ m(this, Ms, t), m(this, ki, e);
19377
19377
  }
19378
19378
  getUpdatedVideoConstraints(t) {
19379
19379
  return t;
19380
19380
  }
19381
19381
  }
19382
- ki = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap();
19382
+ ki = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap();
19383
19383
  class mu extends Error {
19384
19384
  constructor(e, r, i) {
19385
19385
  super(r);
@@ -19416,7 +19416,7 @@ class r0 {
19416
19416
  });
19417
19417
  }
19418
19418
  }
19419
- var i0 = Object.defineProperty, a0 = Object.getOwnPropertyDescriptor, bs = (s, t, e, r) => {
19419
+ var i0 = Object.defineProperty, a0 = Object.getOwnPropertyDescriptor, ks = (s, t, e, r) => {
19420
19420
  for (var i = r > 1 ? void 0 : r ? a0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
19421
19421
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
19422
19422
  return r && i && i0(t, e, i), i;
@@ -19719,37 +19719,37 @@ let Bt = (Ng = class extends r0 {
19719
19719
  });
19720
19720
  }
19721
19721
  }, on = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ng);
19722
- bs([
19722
+ ks([
19723
19723
  T.trace("WebMediaInterface.destruct")
19724
19724
  ], Bt.prototype, "destruct", 1);
19725
- bs([
19725
+ ks([
19726
19726
  T.trace("WebMediaInterface.handlePermissionErrors")
19727
19727
  ], Bt.prototype, "handlePermissionErrors", 1);
19728
- bs([
19728
+ ks([
19729
19729
  T.trace("WebMediaInterface.getAudioAndVideoTrack")
19730
19730
  ], Bt.prototype, "getAudioAndVideoTrack", 1);
19731
- bs([
19731
+ ks([
19732
19732
  T.trace("WebMediaInterface.getAudioTrack")
19733
19733
  ], Bt.prototype, "getAudioTrack", 1);
19734
- bs([
19734
+ ks([
19735
19735
  T.trace("WebMediaInterface.getVideoTrack")
19736
19736
  ], Bt.prototype, "getVideoTrack", 1);
19737
- bs([
19737
+ ks([
19738
19738
  T.trace("WebMediaInterface.getScreenShareTracks")
19739
19739
  ], Bt.prototype, "getScreenShareTracks", 1);
19740
- bs([
19740
+ ks([
19741
19741
  T.trace("WebMediaInterface.getAvailableDevices")
19742
19742
  ], Bt.prototype, "getAvailableDevices", 1);
19743
- bs([
19743
+ ks([
19744
19744
  T.trace("WebMediaInterface.getAvailableDevicesByKind")
19745
19745
  ], Bt.prototype, "getAvailableDevicesByKind", 1);
19746
- bs([
19746
+ ks([
19747
19747
  T.trace("WebMediaInterface.getDevice")
19748
19748
  ], Bt.prototype, "getDevice", 1);
19749
- bs([
19749
+ ks([
19750
19750
  T.trace("WebMediaInterface.onDeviceChange")
19751
19751
  ], Bt.prototype, "onDeviceChange", 1);
19752
- Bt = bs([
19752
+ Bt = ks([
19753
19753
  ht("1600")
19754
19754
  ], Bt);
19755
19755
  const Nf = Bt, Mo = {
@@ -20437,7 +20437,7 @@ Jl([
20437
20437
  Jl([
20438
20438
  T.trace("VideoMediaHandler.conditionallyChangeTrack")
20439
20439
  ], zc.prototype, "conditionallyChangeTrack", 1);
20440
- const P0 = zc, pg = _s(
20440
+ const P0 = zc, pg = Ps(
20441
20441
  wh()
20442
20442
  );
20443
20443
  var Rt, Ii, tc, ln;
@@ -20449,7 +20449,7 @@ const Da = class {
20449
20449
  g(this, ln, void 0);
20450
20450
  if (!t)
20451
20451
  throw new R("Could not load preset.", "0904");
20452
- m(this, Rt, t.config), m(this, tc, t.name), m(this, Ii, t.ui || _s(wh().ui)), m(this, ln, t.permissions.plugins.config);
20452
+ m(this, Rt, t.config), m(this, tc, t.name), m(this, Ii, t.ui || Ps(wh().ui)), m(this, ln, t.permissions.plugins.config);
20453
20453
  }
20454
20454
  static fromResponse(t) {
20455
20455
  return new Da(t);
@@ -20628,21 +20628,21 @@ var w0 = Object.defineProperty, b0 = Object.getOwnPropertyDescriptor, k0 = (s, t
20628
20628
  for (var i = r > 1 ? void 0 : r ? b0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
20629
20629
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
20630
20630
  return r && i && w0(t, e, i), i;
20631
- }, hn, pn, Ys, Ms;
20631
+ }, hn, pn, Ys, Ds;
20632
20632
  class Uf {
20633
20633
  constructor(t, e, r) {
20634
20634
  h(this, "livestream");
20635
20635
  g(this, hn, void 0);
20636
20636
  g(this, pn, void 0);
20637
20637
  g(this, Ys, void 0);
20638
- g(this, Ms, void 0);
20639
- m(this, Ms, t), m(this, pn, e), this.livestream = new xh(t, e), m(this, Ys, r), this.setupEvents();
20638
+ g(this, Ds, void 0);
20639
+ m(this, Ds, t), m(this, pn, e), this.livestream = new xh(t, e), m(this, Ys, r), this.setupEvents();
20640
20640
  }
20641
20641
  get logger() {
20642
- return a(this, Ms).getValue("logger");
20642
+ return a(this, Ds).getValue("logger");
20643
20643
  }
20644
20644
  get telemetry() {
20645
- return a(this, Ms).getValue("telemetry");
20645
+ return a(this, Ds).getValue("telemetry");
20646
20646
  }
20647
20647
  fetchInitialLivestreamingState() {
20648
20648
  return l(this, null, function* () {
@@ -20687,17 +20687,17 @@ class Uf {
20687
20687
  (t) => {
20688
20688
  this.livestream.viewerCount = t.count, this.livestream.emit("viewerCountUpdate", t.count);
20689
20689
  }
20690
- ), a(this, Ms).getValue("peerSessionStore").on(
20690
+ ), a(this, Ds).getValue("peerSessionStore").on(
20691
20691
  b.PEER_JOINED_INTERNAL,
20692
20692
  (t) => l(this, null, function* () {
20693
20693
  var e;
20694
20694
  ((e = t.flags) == null ? void 0 : e.hiddenParticipant) === true && t.recorderType === "LIVESTREAMER" && (m(this, hn, t.id), this.livestream.setLivestreamState("LIVESTREAMING"));
20695
20695
  })
20696
- ), a(this, Ms).getValue("peerSessionStore").on(b.PEER_CLOSED, (t) => {
20696
+ ), a(this, Ds).getValue("peerSessionStore").on(b.PEER_CLOSED, (t) => {
20697
20697
  t.id === a(this, hn) && (m(this, hn, void 0), this.livestream.setLivestreamState("IDLE"));
20698
- }), a(this, Ms).getValue("peerSessionStore").onAsync(b.LEAVE_MEDIA_ROOM, () => l(this, null, function* () {
20698
+ }), a(this, Ds).getValue("peerSessionStore").onAsync(b.LEAVE_MEDIA_ROOM, () => l(this, null, function* () {
20699
20699
  this.livestream.playbackUrl || (this.logger.info("Fetching livestreaming state on leave stage"), yield this.fetchInitialLivestreamingState());
20700
- })), a(this, Ms).getValue("peerSessionStore").on(b.SOCKET_SERVICE_ROOM_JOINED, () => l(this, null, function* () {
20700
+ })), a(this, Ds).getValue("peerSessionStore").on(b.SOCKET_SERVICE_ROOM_JOINED, () => l(this, null, function* () {
20701
20701
  try {
20702
20702
  yield this.fetchInitialLivestreamingState();
20703
20703
  } catch (t) {
@@ -20706,7 +20706,7 @@ class Uf {
20706
20706
  }));
20707
20707
  }
20708
20708
  }
20709
- hn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap();
20709
+ hn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap();
20710
20710
  k0([
20711
20711
  T.trace("LivestreamController.setupEvents")
20712
20712
  ], Uf.prototype, "setupEvents", 1);
@@ -21779,7 +21779,7 @@ Wt([
21779
21779
  Pt = Wt([
21780
21780
  ht("1200")
21781
21781
  ], Pt);
21782
- var xa = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(xa || {}), we = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(we || {}), B0 = Object.defineProperty, q0 = Object.getOwnPropertyDescriptor, _a = (s, t, e, r) => {
21782
+ var xa = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(xa || {}), Pe = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(Pe || {}), B0 = Object.defineProperty, q0 = Object.getOwnPropertyDescriptor, _a = (s, t, e, r) => {
21783
21783
  for (var i = r > 1 ? void 0 : r ? q0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
21784
21784
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
21785
21785
  return r && i && B0(t, e, i), i;
@@ -21827,12 +21827,12 @@ const yd = (xg = class {
21827
21827
  this.context = s;
21828
21828
  const i = s.getValue("logger");
21829
21829
  switch (m(this, Ui, new mi(i)), m(this, $i, new mi(i)), this.roomSocketHandler = e, this.participants = new Pt(s, t, this.roomSocketHandler), this.self = t, this.consumerPeerMap = /* @__PURE__ */ new Map(), r) {
21830
- case we.HIVE: {
21830
+ case Pe.HIVE: {
21831
21831
  this.events = is;
21832
21832
  break;
21833
21833
  }
21834
- case we.CF: {
21835
- this.events = Ts;
21834
+ case Pe.CF: {
21835
+ this.events = Es;
21836
21836
  break;
21837
21837
  }
21838
21838
  default:
@@ -22691,7 +22691,7 @@ _a([
22691
22691
  _a([
22692
22692
  T.trace("ParticipantController.processNewConsumer")
22693
22693
  ], Sr.prototype, "processNewConsumer", 1);
22694
- const he = _s(
22694
+ const he = Ps(
22695
22695
  wh().permissions
22696
22696
  );
22697
22697
  var q, vn, Hi, Xd, St, Lt;
@@ -22766,7 +22766,7 @@ const Oa = class extends qt {
22766
22766
  }
22767
22767
  get mediaRoomType() {
22768
22768
  const { sfu: e } = a(this, Hi).getValue("roomNodeOptions");
22769
- return e === we.CF ? "CF" : "HIVE";
22769
+ return e === Pe.CF ? "CF" : "HIVE";
22770
22770
  }
22771
22771
  get stageEnabled() {
22772
22772
  var e;
@@ -23967,7 +23967,7 @@ class Y0 {
23967
23967
  g(this, Ke, void 0);
23968
23968
  h(this, "events");
23969
23969
  h(this, "sfuType");
23970
- m(this, Ke, t), this.sfuType = e, this.events = e === we.CF ? Ts : is;
23970
+ m(this, Ke, t), this.sfuType = e, this.events = e === Pe.CF ? Es : is;
23971
23971
  }
23972
23972
  joinRoom(t, e, r, i = false, n = null) {
23973
23973
  return l(this, null, function* () {
@@ -24018,7 +24018,7 @@ class Y0 {
24018
24018
  }
24019
24019
  consume(t) {
24020
24020
  return l(this, null, function* () {
24021
- if (this.sfuType === we.HIVE)
24021
+ if (this.sfuType === Pe.HIVE)
24022
24022
  throw new Error("Hive does not support socket consumer operations");
24023
24023
  const e = (yield a(this, Ke).sendMessagePromise(
24024
24024
  this.events.consume,
@@ -24041,7 +24041,7 @@ class Y0 {
24041
24041
  }
24042
24042
  closeConsumer(t) {
24043
24043
  return l(this, null, function* () {
24044
- if (this.sfuType === we.HIVE)
24044
+ if (this.sfuType === Pe.HIVE)
24045
24045
  throw new Error("Hive does not support socket consumer operations");
24046
24046
  return (yield a(this, Ke).sendMessagePromise(
24047
24047
  this.events.closeConsumer,
@@ -24051,7 +24051,7 @@ class Y0 {
24051
24051
  }
24052
24052
  updateConsumersSimulcastConfig(t) {
24053
24053
  return l(this, null, function* () {
24054
- if (this.sfuType === we.HIVE)
24054
+ if (this.sfuType === Pe.HIVE)
24055
24055
  throw new Error("Method not implemented");
24056
24056
  return (yield a(this, Ke).sendMessagePromise(
24057
24057
  this.events.updateConsumersSimulcastConfig,
@@ -24199,7 +24199,7 @@ class Fh extends Kl {
24199
24199
  h(this, "enableHighBitrate", false);
24200
24200
  h(this, "enableStereo", false);
24201
24201
  h(this, "enableDtx", true);
24202
- h(this, "sfu", we.HIVE);
24202
+ h(this, "sfu", Pe.HIVE);
24203
24203
  }
24204
24204
  get midTransceiverMap() {
24205
24205
  return this._mapMidTransceiver;
@@ -24249,7 +24249,7 @@ class Fh extends Kl {
24249
24249
  connect() {
24250
24250
  return l(this, null, function* () {
24251
24251
  let e;
24252
- this.sfu === we.CF ? this.pc.addTransceiver("video", { direction: "sendonly" }) : e = this.pc.createDataChannel("dyte");
24252
+ this.sfu === Pe.CF ? this.pc.addTransceiver("video", { direction: "sendonly" }) : e = this.pc.createDataChannel("dyte");
24253
24253
  const r = yield this.pc.createOffer();
24254
24254
  return yield this.pc.setLocalDescription(r), this.logger.info(`connect offer: ${JSON.stringify(r)}`), {
24255
24255
  offerSdp: r,
@@ -24679,12 +24679,12 @@ class Bh extends Fh {
24679
24679
  function Q0(s, t) {
24680
24680
  return typeof s == "undefined" ? t : typeof window != "undefined" && Object.getOwnPropertyDescriptor(window, "structuredClone") ? structuredClone(s) : JSON.parse(JSON.stringify(s));
24681
24681
  }
24682
- var lc, Bi, Ds, Zd, Os, Pr, uc, Xu, el, Jf, tl, Kf;
24682
+ var lc, Bi, Os, Zd, Ns, Pr, uc, Xu, el, Jf, tl, Kf;
24683
24683
  class X0 extends Kl {
24684
24684
  constructor(e, r) {
24685
24685
  var i;
24686
24686
  super(e);
24687
- g(this, Os);
24687
+ g(this, Ns);
24688
24688
  g(this, uc);
24689
24689
  g(this, el);
24690
24690
  g(this, tl);
@@ -24700,12 +24700,12 @@ class X0 extends Kl {
24700
24700
  h(this, "transceiver");
24701
24701
  g(this, lc, void 0);
24702
24702
  g(this, Bi, void 0);
24703
- g(this, Ds, void 0);
24703
+ g(this, Os, void 0);
24704
24704
  g(this, Zd, void 0);
24705
- this.id = r.id, this.localId = r.localId, m(this, lc, r.handler), this.appData = r.appData, this.peerId = r.producingPeerId, this.producingTransportId = r.producingTransportId, m(this, Ds, false), this.producerId = r.producerId, this.track = r.track, m(this, Bi, (i = r.paused) != null ? i : false), this.mimeType = r.mimeType, this.transceiver = r.transceiver, this.rtpReceiver = r.rtpReceiver, V(this, el, Jf).call(this), m(this, Zd, e);
24705
+ this.id = r.id, this.localId = r.localId, m(this, lc, r.handler), this.appData = r.appData, this.peerId = r.producingPeerId, this.producingTransportId = r.producingTransportId, m(this, Os, false), this.producerId = r.producerId, this.track = r.track, m(this, Bi, (i = r.paused) != null ? i : false), this.mimeType = r.mimeType, this.transceiver = r.transceiver, this.rtpReceiver = r.rtpReceiver, V(this, el, Jf).call(this), m(this, Zd, e);
24706
24706
  }
24707
24707
  get closed() {
24708
- return a(this, Ds);
24708
+ return a(this, Os);
24709
24709
  }
24710
24710
  get kind() {
24711
24711
  return this.track.kind;
@@ -24714,31 +24714,31 @@ class X0 extends Kl {
24714
24714
  return a(this, Bi);
24715
24715
  }
24716
24716
  close(e, r) {
24717
- a(this, Ds) || (this.logger.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, Os, Pr)), m(this, Ds, true), r && (V(this, tl, Kf).call(this), this.transceiver.stop()), this.safeEmit("close", e));
24717
+ a(this, Os) || (this.logger.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, Ns, Pr)), m(this, Os, true), r && (V(this, tl, Kf).call(this), this.transceiver.stop()), this.safeEmit("close", e));
24718
24718
  }
24719
24719
  getStats() {
24720
24720
  return l(this, null, function* () {
24721
- if (a(this, Ds))
24721
+ if (a(this, Os))
24722
24722
  throw new At("closed");
24723
24723
  return a(this, lc).getReceiverStats(this.localId);
24724
24724
  });
24725
24725
  }
24726
24726
  pause() {
24727
- if (this.logger.debug("consumer::pause()", a(this, Os, Pr)), a(this, Ds)) {
24728
- this.logger.error("consumer::pause() | Consumer closed", a(this, Os, Pr));
24727
+ if (this.logger.debug("consumer::pause()", a(this, Ns, Pr)), a(this, Os)) {
24728
+ this.logger.error("consumer::pause() | Consumer closed", a(this, Ns, Pr));
24729
24729
  return;
24730
24730
  }
24731
24731
  m(this, Bi, true), this.track.enabled = false, this.safeEmit("pause");
24732
24732
  }
24733
24733
  resume() {
24734
- if (this.logger.debug("consumer::resume()", a(this, Os, Pr)), a(this, Ds)) {
24735
- this.logger.error("Consumer::resume() | Consumer closed", a(this, Os, Pr));
24734
+ if (this.logger.debug("consumer::resume()", a(this, Ns, Pr)), a(this, Os)) {
24735
+ this.logger.error("Consumer::resume() | Consumer closed", a(this, Ns, Pr));
24736
24736
  return;
24737
24737
  }
24738
24738
  m(this, Bi, false), this.track.enabled = true, this.safeEmit("resume");
24739
24739
  }
24740
24740
  }
24741
- lc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Zd = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakSet(), Pr = function() {
24741
+ lc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), Zd = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakSet(), Pr = function() {
24742
24742
  return {
24743
24743
  consumer: {
24744
24744
  id: this.id,
@@ -24748,14 +24748,14 @@ lc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ds = /*
24748
24748
  }
24749
24749
  };
24750
24750
  }, uc = /* @__PURE__ */ new WeakSet(), Xu = function() {
24751
- this.logger.debug('Consumer::track "ended" event', a(this, Os, Pr)), this.safeEmit("trackended");
24751
+ this.logger.debug('Consumer::track "ended" event', a(this, Ns, Pr)), this.safeEmit("trackended");
24752
24752
  }, el = /* @__PURE__ */ new WeakSet(), Jf = function() {
24753
24753
  this.track.addEventListener("ended", V(this, uc, Xu).bind(this));
24754
24754
  }, tl = /* @__PURE__ */ new WeakSet(), Kf = function() {
24755
24755
  try {
24756
24756
  this.track.removeEventListener("ended", V(this, uc, Xu)), this.track.stop();
24757
24757
  } catch (e) {
24758
- this.logger.error("Consumer::destroyTrack()", B(D({}, a(this, Os, Pr)), {
24758
+ this.logger.error("Consumer::destroyTrack()", B(D({}, a(this, Ns, Pr)), {
24759
24759
  error: e
24760
24760
  }));
24761
24761
  }
@@ -25201,7 +25201,7 @@ const La = class extends Kl {
25201
25201
  this.setServerId(n), yield i(o);
25202
25202
  })), !(yield this.transportConnectionPromise))
25203
25203
  throw new Error("ice connection failed");
25204
- if (a(this, Gi) === we.HIVE && !(yield this.isEventsDCReady))
25204
+ if (a(this, Gi) === Pe.HIVE && !(yield this.isEventsDCReady))
25205
25205
  throw new Error("events datachannel not open");
25206
25206
  } catch (r) {
25207
25207
  throw this.logger.error("transport failed to connect:", { error: r }), r;
@@ -25425,7 +25425,7 @@ const La = class extends Kl {
25425
25425
  const { track: r, transceiver: i, streams: n } = e;
25426
25426
  this.logger.info(`track event received [trackId: ${r.id}] [mid: ${i.mid}]`);
25427
25427
  let o;
25428
- a(this, Gi) === we.HIVE ? o = `${n[0].id}:${r.kind}` : o = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
25428
+ a(this, Gi) === Pe.HIVE ? o = `${n[0].id}:${r.kind}` : o = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
25429
25429
  this.logger.info(`rtc consumer track ended [trackId: ${r.id}]`), this.unknownTracksMap.delete(o);
25430
25430
  });
25431
25431
  const d = this.consumerTrackEvents.get(o);
@@ -25627,7 +25627,7 @@ class sD {
25627
25627
  }
25628
25628
  hc = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap();
25629
25629
  const rD = 2e3;
25630
- var bn, ot, ct, pc, gc, Ki, kn, In, An, zi, Ns, Mn, Dn, Ed, mc, eh, il, Qf, fc, th, al, Xf, nl, Zf, ol, eS, cl, tS, dl, sS, Sc, sh, vc, rh;
25630
+ var bn, ot, ct, pc, gc, Ki, kn, In, An, zi, Ls, Mn, Dn, Ed, mc, eh, il, Qf, fc, th, al, Xf, nl, Zf, ol, eS, cl, tS, dl, sS, Sc, sh, vc, rh;
25631
25631
  class iD extends ut.EventEmitter {
25632
25632
  constructor(e, r, i) {
25633
25633
  super();
@@ -25659,14 +25659,14 @@ class iD extends ut.EventEmitter {
25659
25659
  lastConnectionTime: 0
25660
25660
  });
25661
25661
  g(this, zi, void 0);
25662
- g(this, Ns, "all");
25662
+ g(this, Ls, "all");
25663
25663
  g(this, Mn, void 0);
25664
25664
  switch (this.context = e, m(this, Ki, r), m(this, Mn, i), m(this, bn, new sD(e, i)), m(this, kn, new Y0(r, i)), i) {
25665
- case we.CF: {
25666
- m(this, In, Ts);
25665
+ case Pe.CF: {
25666
+ m(this, In, Es);
25667
25667
  break;
25668
25668
  }
25669
- case we.HIVE:
25669
+ case Pe.HIVE:
25670
25670
  default: {
25671
25671
  m(this, In, is);
25672
25672
  break;
@@ -25675,7 +25675,7 @@ class iD extends ut.EventEmitter {
25675
25675
  a(this, Dn, Ed).mediaState = {
25676
25676
  send: { state: xa.NEW },
25677
25677
  recv: { state: xa.NEW }
25678
- }, (Jn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Z.FORCE_RELAY)) && m(this, Ns, "relay"), this.logger.info(`ICE Transport Policy initially set to ${a(this, Ns)}`), V(this, mc, eh).call(this);
25678
+ }, (Jn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Z.FORCE_RELAY)) && m(this, Ls, "relay"), this.logger.info(`ICE Transport Policy initially set to ${a(this, Ls)}`), V(this, mc, eh).call(this);
25679
25679
  }
25680
25680
  get telemetry() {
25681
25681
  return this.context.getValue("telemetry");
@@ -25745,7 +25745,7 @@ class iD extends ut.EventEmitter {
25745
25745
  throw new Error("Method not implemented.");
25746
25746
  }
25747
25747
  }
25748
- bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), pc = /* @__PURE__ */ new WeakMap(), gc = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakSet(), Ed = function() {
25748
+ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), pc = /* @__PURE__ */ new WeakMap(), gc = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakSet(), Ed = function() {
25749
25749
  return this.context.getValue("connectionHandler");
25750
25750
  }, mc = /* @__PURE__ */ new WeakSet(), eh = function() {
25751
25751
  m(this, zi, {
@@ -25755,7 +25755,7 @@ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25755
25755
  }, il = /* @__PURE__ */ new WeakSet(), Qf = function(e) {
25756
25756
  return l(this, null, function* () {
25757
25757
  var o, d, c, u, p, f, S, E;
25758
- (Jn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Z.FORCE_RELAY)) && m(this, Ns, "relay"), this.logger.info(`ICE Transport Policy set to ${a(this, Ns)}`);
25758
+ (Jn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Z.FORCE_RELAY)) && m(this, Ls, "relay"), this.logger.info(`ICE Transport Policy set to ${a(this, Ls)}`);
25759
25759
  const n = yield lt().getICEServers().catch((_) => (this.logger.warn(`failed to get iceservers from server: ${_.message}`), []));
25760
25760
  if (e.send) {
25761
25761
  const _ = this.context.getValue("flagsmith").hasFeature(
@@ -25769,9 +25769,9 @@ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25769
25769
  config: {
25770
25770
  enableHighBitrate: (u = (c = (d = this.context.getValue("defaults").mediaConfiguration) == null ? void 0 : d.audio) == null ? void 0 : c.enableHighBitrate) != null ? u : false,
25771
25771
  enableStereo: (S = (f = (p = this.context.getValue("defaults").mediaConfiguration) == null ? void 0 : p.audio) == null ? void 0 : f.enableStereo) != null ? S : false,
25772
- enableDtx: a(this, Mn) === we.HIVE ? true : !!_
25772
+ enableDtx: a(this, Mn) === Pe.HIVE ? true : !!_
25773
25773
  },
25774
- iceTransportPolicy: a(this, Ns)
25774
+ iceTransportPolicy: a(this, Ls)
25775
25775
  });
25776
25776
  }
25777
25777
  e.recv && V(this, ol, eS).call(this, {
@@ -25779,7 +25779,7 @@ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25779
25779
  additionalSettings: {
25780
25780
  encodedInsertableStreams: (E = this.context.getValue("modules").e2ee) == null ? void 0 : E.enabled
25781
25781
  },
25782
- iceTransportPolicy: a(this, Ns)
25782
+ iceTransportPolicy: a(this, Ls)
25783
25783
  });
25784
25784
  });
25785
25785
  }, fc = /* @__PURE__ */ new WeakSet(), th = function(e) {
@@ -25963,7 +25963,7 @@ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25963
25963
  return l(this, null, function* () {
25964
25964
  switch (this.logger.info("Called reconnect transport", { transport: { type: e } }), this.stopTransports({ [e]: true }), this.context.getValue("flagsmith").hasFeature(
25965
25965
  Z.HIVE_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED
25966
- ) && a(this, Ki).isConnected && a(this, An).transportFailureCount[e] > 2 && (this.logger.warn(`Multiple disconnections in ${e} transport, forcing relay`), m(this, Ns, "relay")), yield this.setupTransports({ [e]: true }), e) {
25966
+ ) && a(this, Ki).isConnected && a(this, An).transportFailureCount[e] > 2 && (this.logger.warn(`Multiple disconnections in ${e} transport, forcing relay`), m(this, Ls, "relay")), yield this.setupTransports({ [e]: true }), e) {
25967
25967
  case "send": {
25968
25968
  this.logger.info("Transport reconnected", { transport: a(this, ot) }), this.context.getValue("peerSessionStore").emit(b.RESET_PRODUCER_STATE);
25969
25969
  break;
@@ -26308,7 +26308,7 @@ class oD extends iD {
26308
26308
  m(this, Ec, new qh(this.socketHandler));
26309
26309
  }), this.recvTransportConnectedCallback = (n) => l(this, null, function* () {
26310
26310
  switch (a(this, On).clear(), this.nodeType) {
26311
- case we.CF: {
26311
+ case Pe.CF: {
26312
26312
  m(this, ps, new nD(
26313
26313
  this.context,
26314
26314
  this.events,
@@ -26318,7 +26318,7 @@ class oD extends iD {
26318
26318
  ));
26319
26319
  break;
26320
26320
  }
26321
- case we.HIVE:
26321
+ case Pe.HIVE:
26322
26322
  default:
26323
26323
  m(this, ps, new aD(this.context, n));
26324
26324
  }
@@ -26725,7 +26725,7 @@ var hD = Object.defineProperty, pD = Object.getOwnPropertyDescriptor, le = (s, t
26725
26725
  return r && i && hD(t, e, i), i;
26726
26726
  };
26727
26727
  const Nt = ["video/VP9", "video/VP8"];
26728
- var Ac, Mc, dt, G, Bn, Ls, yt, ta, sa, ra, Dc, ss, or, Oc, ia, aa, Tt, kt, Gr, ka, Cl, fS, Rl, SS, wl, vS, Nc, nh, bl, vu, yS, kl, TS, Il, ES, Al, _S, et, gt, na, bo, Ml, PS, Dl, CS, Ol, RS;
26728
+ var Ac, Mc, dt, G, Bn, Ss, yt, ta, sa, ra, Dc, ss, or, Oc, ia, aa, Tt, kt, Gr, ka, Cl, fS, Rl, SS, wl, vS, Nc, nh, bl, vu, yS, kl, TS, Il, ES, Al, _S, et, gt, na, bo, Ml, PS, Dl, CS, Ol, RS;
26729
26729
  const mS = (vu = class {
26730
26730
  constructor(s, t, e) {
26731
26731
  g(this, Gr);
@@ -26749,7 +26749,7 @@ const mS = (vu = class {
26749
26749
  g(this, dt, void 0);
26750
26750
  g(this, G, void 0);
26751
26751
  g(this, Bn, void 0);
26752
- g(this, Ls, void 0);
26752
+ g(this, Ss, void 0);
26753
26753
  g(this, yt, void 0);
26754
26754
  g(this, ta, void 0);
26755
26755
  g(this, sa, void 0);
@@ -26773,7 +26773,7 @@ const mS = (vu = class {
26773
26773
  ])), m(this, aa, /* @__PURE__ */ new Map([
26774
26774
  ["video/VP9", /* @__PURE__ */ new Set()],
26775
26775
  ["video/VP8", /* @__PURE__ */ new Set()]
26776
- ])), m(this, Ls, t), m(this, dt, r), m(this, ta, false), m(this, G, new oD(s, r, t)), m(this, yt, a(this, G).events), m(this, or, /* @__PURE__ */ new Set()), m(this, Tt, /* @__PURE__ */ new Map()), m(this, sa, false), m(this, ra, new Qu(s.getValue("logger"))), t === we.CF && !navigator.isReactNative && m(this, kt, new wo(
26776
+ ])), m(this, Ss, t), m(this, dt, r), m(this, ta, false), m(this, G, new oD(s, r, t)), m(this, yt, a(this, G).events), m(this, or, /* @__PURE__ */ new Set()), m(this, Tt, /* @__PURE__ */ new Map()), m(this, sa, false), m(this, ra, new Qu(s.getValue("logger"))), t === Pe.CF && !navigator.isReactNative && m(this, kt, new wo(
26777
26777
  this.context,
26778
26778
  a(this, G).socketHandler.audioActivity.bind(a(this, G).socketHandler)
26779
26779
  )), this.e2ee = (n = (i = s.getValue("modules").e2ee) == null ? void 0 : i.enabled) != null ? n : false, this.handleSocketEvents(), this.handleCallstatsEvents(), m(this, Dc, bh(
@@ -26839,21 +26839,23 @@ const mS = (vu = class {
26839
26839
  }
26840
26840
  leaveRoom() {
26841
26841
  return l(this, null, function* () {
26842
- var e;
26842
+ var t;
26843
26843
  a(this, G).stopAllTransports(), m(this, sa, false), a(this, Gr, ka).mediaJoinAttempted = false;
26844
26844
  const s = {
26845
26845
  closeRoom: false
26846
26846
  };
26847
- try {
26848
- const r = yield a(this, dt).sendMessagePromise(
26849
- a(this, yt).leaveRoom,
26850
- gR.toBinary(s)
26851
- );
26852
- ((e = sw.fromBinary(r.payload)) == null ? void 0 : e.closed) || this.logger.warn("weird state on peer closed and should not happen");
26853
- } catch (r) {
26854
- this.logger.error("error on sending leave room request", { error: r });
26847
+ if (a(this, Ss) !== Pe.CF) {
26848
+ try {
26849
+ const r = yield a(this, dt).sendMessagePromise(
26850
+ a(this, yt).leaveRoom,
26851
+ gR.toBinary(s)
26852
+ );
26853
+ ((t = sw.fromBinary(r.payload)) == null ? void 0 : t.closed) || this.logger.warn("weird state on peer closed and should not happen");
26854
+ } catch (r) {
26855
+ this.logger.error("error on sending leave room request", { error: r });
26856
+ }
26857
+ this.context.getValue("callstats").callEnded(), this.context.getValue("telemetry").destruct();
26855
26858
  }
26856
- this.context.getValue("callstats").callEnded(), this.context.getValue("telemetry").destruct();
26857
26859
  });
26858
26860
  }
26859
26861
  activatePeers(s) {
@@ -26894,8 +26896,8 @@ const mS = (vu = class {
26894
26896
  }
26895
26897
  return this._shareWebcam(s, t);
26896
26898
  }
26897
- const i = [t].concat(Nt.filter((p) => p !== t)), n = V(this, Ol, RS).call(this, s, i), o = Jn(this.context, "disableSimulcast"), d = a(this, Ls) === we.CF ? Z.ENABLE_CF_SIMULCAST : Z.ENABLE_HIVE_SIMULCAST;
26898
- !o && this.context.getValue("flagsmith").hasFeature(d) ? (this.logger.info(`Simulcast enabled for SFU: ${a(this, Ls)}`), n.encodings = ZM(this.context, s)) : this.logger.info(`Simulcast disabled for webcam producer, SFU: ${a(this, Ls)}`), this.context.getValue("flagsmith").hasFeature(Z.TRACK_HINT) && (n.track.contentHint = this.context.getValue("flagsmith").getValue(
26899
+ const i = [t].concat(Nt.filter((p) => p !== t)), n = V(this, Ol, RS).call(this, s, i), o = Jn(this.context, "disableSimulcast"), d = a(this, Ss) === Pe.CF ? Z.ENABLE_CF_SIMULCAST : Z.ENABLE_HIVE_SIMULCAST;
26900
+ !o && this.context.getValue("flagsmith").hasFeature(d) ? (this.logger.info(`Simulcast enabled for SFU: ${a(this, Ss)}`), n.encodings = ZM(this.context, s)) : this.logger.info(`Simulcast disabled for webcam producer, SFU: ${a(this, Ss)}`), this.context.getValue("flagsmith").hasFeature(Z.TRACK_HINT) && (n.track.contentHint = this.context.getValue("flagsmith").getValue(
26899
26901
  Z.TRACK_HINT
26900
26902
  ));
26901
26903
  const c = () => {
@@ -26960,7 +26962,7 @@ const mS = (vu = class {
26960
26962
  supportsRemoteControl: Te.isElectron()
26961
26963
  },
26962
26964
  stopTracks: false,
26963
- zeroRtpOnPause: a(this, Ls) !== we.CF
26965
+ zeroRtpOnPause: a(this, Ss) !== Pe.CF
26964
26966
  }, c = () => {
26965
26967
  };
26966
26968
  o = a(this, G).createProducer(
@@ -27388,7 +27390,7 @@ const mS = (vu = class {
27388
27390
  t.delete(s), !(t.size !== 0 || e === Nt[0]) && this.disableWebcam(e);
27389
27391
  }));
27390
27392
  }
27391
- }, Ac = /* @__PURE__ */ new WeakMap(), Mc = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), ss = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), Oc = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakSet(), ka = function() {
27393
+ }, Ac = /* @__PURE__ */ new WeakMap(), Mc = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), ss = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), Oc = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakSet(), ka = function() {
27392
27394
  return this.context.getValue("connectionHandler");
27393
27395
  }, Cl = /* @__PURE__ */ new WeakSet(), fS = function(s, t, e, r) {
27394
27396
  return l(this, null, function* () {
@@ -27487,7 +27489,7 @@ const mS = (vu = class {
27487
27489
  });
27488
27490
  }, Al = /* @__PURE__ */ new WeakSet(), _S = function(s) {
27489
27491
  return l(this, null, function* () {
27490
- if (!(a(this, Ls) === we.HIVE || !this.context.getValue("flagsmith").hasFeature(
27492
+ if (!(a(this, Ss) === Pe.HIVE || !this.context.getValue("flagsmith").hasFeature(
27491
27493
  Z.PRECREATE_PRODUCERS
27492
27494
  ) || !s))
27493
27495
  try {
@@ -27524,7 +27526,7 @@ const mS = (vu = class {
27524
27526
  e2ee: this.e2ee
27525
27527
  },
27526
27528
  stopTracks: false,
27527
- zeroRtpOnPause: a(this, Ls) !== we.CF
27529
+ zeroRtpOnPause: a(this, Ss) !== Pe.CF
27528
27530
  };
27529
27531
  }, Ol = /* @__PURE__ */ new WeakSet(), RS = function(s, t) {
27530
27532
  return {
@@ -27647,7 +27649,7 @@ var gD = Object.defineProperty, mD = Object.getOwnPropertyDescriptor, Pa = (s, t
27647
27649
  for (var i = r > 1 ? void 0 : r ? mD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
27648
27650
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
27649
27651
  return r && i && gD(t, e, i), i;
27650
- }, Wr, Ss, te, Et, Vt, $g;
27652
+ }, Wr, vs, te, Et, Vt, $g;
27651
27653
  const kS = ($g = class {
27652
27654
  constructor(s, t, e, r) {
27653
27655
  g(this, Et);
@@ -27655,10 +27657,10 @@ const kS = ($g = class {
27655
27657
  h(this, "authToken");
27656
27658
  g(this, Wr, void 0);
27657
27659
  h(this, "viewType");
27658
- g(this, Ss, void 0);
27660
+ g(this, vs, void 0);
27659
27661
  g(this, te, void 0);
27660
27662
  const { socket: i } = e, n = s.getValue("authToken");
27661
- this.self = t, m(this, te, s), this.viewType = r, this.authToken = n, m(this, Wr, i), m(this, Ss, e), t.config.viewType !== Mt.Chat && this.setupEvents();
27663
+ this.self = t, m(this, te, s), this.viewType = r, this.authToken = n, m(this, Wr, i), m(this, vs, e), t.config.viewType !== Mt.Chat && this.setupEvents();
27662
27664
  }
27663
27665
  get peerId() {
27664
27666
  return a(this, te).getValue("peerId");
@@ -27794,17 +27796,17 @@ const kS = ($g = class {
27794
27796
  s && a(this, te).getValue("flagsmith").hasFeature(Z.REFRESH_ID_ON_DISCONNECTION) && (t = v4()), a(this, Wr).updateURL(t), a(this, te).getValue("telemetry").resetPeerId(t), lt().setHeader("dyte-tracing-id", t), ur.remapContext(t, a(this, te)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
27795
27797
  }), a(this, te).getValue("peerSessionStore").on(b.SOCKET_SERVICE_FAILED, () => {
27796
27798
  this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
27797
- }), a(this, Ss).on(x.waitingRoomRequestAccepted, () => {
27799
+ }), a(this, vs).on(x.waitingRoomRequestAccepted, () => {
27798
27800
  this.waitlistAcceptHandler();
27799
- }), a(this, Ss).on(gd.updateUserPreset, (s) => {
27801
+ }), a(this, vs).on(gd.updateUserPreset, (s) => {
27800
27802
  s.updatePeersPresets.forEach((t) => {
27801
27803
  t.userIds === this.self.userId && a(this, te).getValue("peerSessionStore").emit(b.UPDATE_PERMISSIONS, t.patch);
27802
27804
  });
27803
- }), a(this, Ss).on(x.waitingRoomRequestDenied, () => {
27805
+ }), a(this, vs).on(x.waitingRoomRequestDenied, () => {
27804
27806
  this.waitlistRejectedHandler();
27805
- }), a(this, Ss).on(x.kick, () => {
27807
+ }), a(this, vs).on(x.kick, () => {
27806
27808
  this.kickHandler({ kickType: "kick" });
27807
- }), a(this, Ss).on(x.kickAll, () => {
27809
+ }), a(this, vs).on(x.kickAll, () => {
27808
27810
  this.kickHandler({ kickType: "kickAll" });
27809
27811
  }), a(this, te).getValue("peerSessionStore").onAsync(b.JOIN_MEDIA_ROOM, this.joinMediaRoom.bind(this)), a(this, te).getValue("peerSessionStore").on(
27810
27812
  b.PRODUCER_SCORE_UPDATE,
@@ -27839,10 +27841,10 @@ const kS = ($g = class {
27839
27841
  joinRoom(s = false) {
27840
27842
  return l(this, null, function* () {
27841
27843
  try {
27842
- const { peer: t } = yield a(this, Ss).joinRoom(
27844
+ const { peer: t } = yield a(this, vs).joinRoom(
27843
27845
  this.self
27844
27846
  );
27845
- a(this, Ss).socket.flush();
27847
+ a(this, vs).socket.flush();
27846
27848
  const e = Dh(t.stageType);
27847
27849
  if (a(this, te).setValue("stageStatus", e, false), t.waitlisted) {
27848
27850
  this.waitlistedHandler();
@@ -27926,7 +27928,7 @@ const kS = ($g = class {
27926
27928
  yield this.self.disableAudio(), yield this.self.disableVideo(), yield this.self.disableScreenShare(), this.self.cleanUpTracks(), this.self.destructMediaHandler(), navigator.isReactNative || this.self.removeDocumentEventListeners();
27927
27929
  });
27928
27930
  }
27929
- }, Wr = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), Vt = function() {
27931
+ }, Wr = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), Vt = function() {
27930
27932
  return a(this, te).getValue("roomNodeClient");
27931
27933
  }, $g);
27932
27934
  let ai = kS;
@@ -28407,32 +28409,32 @@ class IS {
28407
28409
  r = Zp.fromBinary.bind(Zp);
28408
28410
  break;
28409
28411
  }
28410
- case Ts.peerJoinedBroadcast:
28412
+ case Es.peerJoinedBroadcast:
28411
28413
  case is.peerJoinedBroadcast: {
28412
28414
  r = Bp.fromBinary.bind(Bp);
28413
28415
  break;
28414
28416
  }
28415
- case Ts.selfJoinComplete:
28417
+ case Es.selfJoinComplete:
28416
28418
  case is.selfJoinComplete: {
28417
28419
  r = Au.fromBinary.bind(Au);
28418
28420
  break;
28419
28421
  }
28420
- case Ts.globalPeerPinBroadcast:
28422
+ case Es.globalPeerPinBroadcast:
28421
28423
  case is.globalPeerPinBroadcast: {
28422
28424
  r = Gp.fromBinary.bind(Gp);
28423
28425
  break;
28424
28426
  }
28425
- case Ts.selectedPeer:
28427
+ case Es.selectedPeer:
28426
28428
  case is.selectedPeer: {
28427
28429
  r = Iu.fromBinary.bind(Iu);
28428
28430
  break;
28429
28431
  }
28430
- case Ts.selectedPeerDiff:
28432
+ case Es.selectedPeerDiff:
28431
28433
  case is.selectedPeerDiff: {
28432
28434
  r = Hp.fromBinary.bind(Hp);
28433
28435
  break;
28434
28436
  }
28435
- case Ts.leaveRoom:
28437
+ case Es.leaveRoom:
28436
28438
  case is.leaveRoom: {
28437
28439
  r = Mu.fromBinary.bind(Mu);
28438
28440
  break;
@@ -29109,13 +29111,13 @@ class UD {
29109
29111
  ui = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap();
29110
29112
  var $S = /* @__PURE__ */ ((s) => (s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s))($S || {});
29111
29113
  const $D = "2", FD = "3";
29112
- var Ae, Ia, Ee, Ue, Rr, ze, lr, Qr, ys, Aa, Hs, oh, FS, ko, Pd, ch, HS, dh, yg, $d, lh, uh, BS, Do, Cd, Oo, Fd, Hd, hh, $a, No, Lo, Bd;
29114
+ var Ae, Ia, Ee, Ue, Rr, ze, lr, Qr, Ts, Aa, Hs, oh, FS, ko, Pd, ch, HS, dh, yg, $d, lh, uh, BS, Do, Cd, Oo, Fd, Hd, hh, $a, No, Lo, Bd;
29113
29115
  class HD {
29114
29116
  constructor(t, e) {
29115
29117
  var F;
29116
- Se(this, oh), Se(this, ko), Se(this, ch), Se(this, dh), Se(this, $d), Se(this, uh), Se(this, Do), Se(this, Oo), Se(this, Hd), Se(this, $a), Se(this, Lo), Se(this, Ae, void 0), Se(this, Ia, void 0), Se(this, Ee, void 0), Se(this, Ue, void 0), Se(this, Rr, void 0), Se(this, ze, void 0), Se(this, lr, void 0), Se(this, Qr, void 0), Se(this, ys, void 0), Se(this, Aa, void 0), Se(this, Hs, void 0);
29118
+ Se(this, oh), Se(this, ko), Se(this, ch), Se(this, dh), Se(this, $d), Se(this, uh), Se(this, Do), Se(this, Oo), Se(this, Hd), Se(this, $a), Se(this, Lo), Se(this, Ae, void 0), Se(this, Ia, void 0), Se(this, Ee, void 0), Se(this, Ue, void 0), Se(this, Rr, void 0), Se(this, ze, void 0), Se(this, lr, void 0), Se(this, Qr, void 0), Se(this, Ts, void 0), Se(this, Aa, void 0), Se(this, Hs, void 0);
29117
29119
  var r, i, n, o, d, c, u, p, f;
29118
- ne(this, Ia, t), ne(this, Rr, []), ne(this, ze, new Ud()), ne(this, lr, true), ne(this, ys, false), ne(this, Ee, e != null ? e : {}), (r = M(this, Ee)).autoReconnect != null || (r.autoReconnect = true), (i = M(this, Ee)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = M(this, Ee)).pingTimeout != null || (n.pingTimeout = 3e4), (o = M(this, Ee)).connectionTimeout != null || (o.connectionTimeout = 5e3), (d = M(this, Ee)).debug != null || (d.debug = true), (c = M(this, Ee)).maxReconnectionAttempts != null || (c.maxReconnectionAttempts = 10), (u = M(this, Ee)).disconnectOnPingTimeout != null || (u.disconnectOnPingTimeout = true), (p = M(this, Ee)).queueOnDisconnect != null || (p.queueOnDisconnect = false), (f = M(this, Ee)).flushOnReconnect != null || (f.flushOnReconnect = false), ne(this, Qr, {
29120
+ ne(this, Ia, t), ne(this, Rr, []), ne(this, ze, new Ud()), ne(this, lr, true), ne(this, Ts, false), ne(this, Ee, e != null ? e : {}), (r = M(this, Ee)).autoReconnect != null || (r.autoReconnect = true), (i = M(this, Ee)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = M(this, Ee)).pingTimeout != null || (n.pingTimeout = 3e4), (o = M(this, Ee)).connectionTimeout != null || (o.connectionTimeout = 5e3), (d = M(this, Ee)).debug != null || (d.debug = true), (c = M(this, Ee)).maxReconnectionAttempts != null || (c.maxReconnectionAttempts = 10), (u = M(this, Ee)).disconnectOnPingTimeout != null || (u.disconnectOnPingTimeout = true), (p = M(this, Ee)).queueOnDisconnect != null || (p.queueOnDisconnect = false), (f = M(this, Ee)).flushOnReconnect != null || (f.flushOnReconnect = false), ne(this, Qr, {
29119
29121
  code: void 0,
29120
29122
  reason: void 0
29121
29123
  }), ne(this, Ue, (F = M(this, Ee).logger) != null ? F : new UD(M(this, Ee).debug ? "debug" : "info")), ne(this, Hs, new xD());
@@ -29159,7 +29161,7 @@ class HD {
29159
29161
  try {
29160
29162
  ne(this, Ae, new WebSocket(_e(this, oh, FS).call(this, M(this, Ia)))), M(this, Ae).binaryType = "arraybuffer", M(this, Ue).debug("Connecting");
29161
29163
  const i = setTimeout(() => {
29162
- M(this, Ue).debug("Connection timeout. Closing socket"), ne(this, lr, true), _e(this, Lo, Bd).call(this), M(this, Ae).close(3001, "Connection Timeout"), M(this, Ee).autoReconnect && !M(this, ys) && (M(this, ze).emit(
29164
+ M(this, Ue).debug("Connection timeout. Closing socket"), ne(this, lr, true), _e(this, Lo, Bd).call(this), M(this, Ae).close(3001, "Connection Timeout"), M(this, Ee).autoReconnect && !M(this, Ts) && (M(this, ze).emit(
29163
29165
  "reconnecting"
29164
29166
  ), _e(this, Do, Cd).call(this)), r(new Error("Connection timed out!"));
29165
29167
  }, M(this, Ee).connectionTimeout);
@@ -29174,7 +29176,7 @@ class HD {
29174
29176
  try {
29175
29177
  i && clearTimeout(i);
29176
29178
  const { code: o, reason: d } = n;
29177
- r(d), M(this, Ue).debug("Socket closed. Close event:", { event: n }), M(this, Ue).debug(`Connection closed code: ${o}`), M(this, Ue).debug(`Connection closed reason: ${d}`), M(this, ys) || _e(this, $d, lh).call(this, o, d);
29179
+ r(d), M(this, Ue).debug("Socket closed. Close event:", { event: n }), M(this, Ue).debug(`Connection closed code: ${o}`), M(this, Ue).debug(`Connection closed reason: ${d}`), M(this, Ts) || _e(this, $d, lh).call(this, o, d);
29178
29180
  } catch (o) {
29179
29181
  _e(this, ko, Pd).call(this, o);
29180
29182
  }
@@ -29234,7 +29236,7 @@ class HD {
29234
29236
  }), M(this, Ae).close(1e3, "Sockrates disconnect method called.");
29235
29237
  }
29236
29238
  }
29237
- Ae = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), oh = /* @__PURE__ */ new WeakSet(), FS = function(s) {
29239
+ Ae = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), Ts = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), oh = /* @__PURE__ */ new WeakSet(), FS = function(s) {
29238
29240
  if (s.startsWith("ws://") || s.startsWith("wss://"))
29239
29241
  return s;
29240
29242
  if (s.startsWith("https://"))
@@ -29257,28 +29259,28 @@ Ae = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Ee = /*
29257
29259
  ne(this, Qr, { reason: t, code: s }), M(this, ze).emit("disconnected", { code: s, reason: t });
29258
29260
  }, uh = /* @__PURE__ */ new WeakSet(), BS = function() {
29259
29261
  const { reason: s, code: t } = M(this, Qr);
29260
- t && t !== 1e3 && M(this, lr) && M(this, Ee).autoReconnect && !M(this, ys) && (M(this, Ue).debug(`Triggering reconnection due to ${s}.`), M(this, ze).emit(
29262
+ t && t !== 1e3 && M(this, lr) && M(this, Ee).autoReconnect && !M(this, Ts) && (M(this, Ue).debug(`Triggering reconnection due to ${s}.`), M(this, ze).emit(
29261
29263
  "reconnecting"
29262
29264
  ), _e(this, Do, Cd).call(this));
29263
29265
  }, Do = /* @__PURE__ */ new WeakSet(), Cd = function(s = true) {
29264
29266
  return l(this, null, function* () {
29265
- if (s && M(this, ys)) {
29267
+ if (s && M(this, Ts)) {
29266
29268
  M(this, Ue).debug("Reconnect called when already in a reconnect loop. Ignoring.");
29267
29269
  return;
29268
29270
  }
29269
- if (M(this, ys) || M(this, Hs).reset(), M(this, Ee).maxReconnectionAttempts !== null && M(this, Hs).getAttempts() >= M(this, Ee).maxReconnectionAttempts) {
29271
+ if (M(this, Ts) || M(this, Hs).reset(), M(this, Ee).maxReconnectionAttempts !== null && M(this, Hs).getAttempts() >= M(this, Ee).maxReconnectionAttempts) {
29270
29272
  M(this, ze).emit(
29271
29273
  "failed"
29272
- ), ne(this, ys, false);
29274
+ ), ne(this, Ts, false);
29273
29275
  return;
29274
29276
  }
29275
- ne(this, ys, true), _e(this, Lo, Bd).call(this), _e(this, $a, No).call(this);
29277
+ ne(this, Ts, true), _e(this, Lo, Bd).call(this), _e(this, $a, No).call(this);
29276
29278
  try {
29277
29279
  if (yield M(this, Hs).wait(), M(this, lr) === false)
29278
29280
  return;
29279
29281
  if (M(this, Ue).debug(`Reconnection attempt ${M(this, Hs).getAttempts()}`), M(this, ze).emit("reconnectAttempt", { attempt: M(this, Hs).getAttempts() }), yield this.connect(), !_e(this, dh, yg).call(this))
29280
29282
  throw Error("Reconnect Failed");
29281
- ne(this, ys, false), ne(this, Qr, {
29283
+ ne(this, Ts, false), ne(this, Qr, {
29282
29284
  code: void 0,
29283
29285
  reason: void 0
29284
29286
  }), M(this, ze).emit(
@@ -29312,7 +29314,7 @@ var BD = Object.defineProperty, qD = Object.getOwnPropertyDescriptor, Ql = (s, t
29312
29314
  return r && i && BD(t, e, i), i;
29313
29315
  };
29314
29316
  const Tg = 65535, jD = 3e3;
29315
- var Jr, Pe, Ce, De, rs, tt, $c, ph, Fc, gh, Fg;
29317
+ var Jr, Ce, Re, De, rs, tt, $c, ph, Fc, gh, Fg;
29316
29318
  const qS = (Fg = class {
29317
29319
  constructor(s, {
29318
29320
  peerId: t,
@@ -29320,11 +29322,11 @@ const qS = (Fg = class {
29320
29322
  authToken: r,
29321
29323
  capabilities: i
29322
29324
  }) {
29323
- g(this, Ce);
29325
+ g(this, Re);
29324
29326
  g(this, $c);
29325
29327
  g(this, Fc);
29326
29328
  g(this, Jr, void 0);
29327
- g(this, Pe, void 0);
29329
+ g(this, Ce, void 0);
29328
29330
  h(this, "roomName");
29329
29331
  h(this, "authToken");
29330
29332
  h(this, "capabilities");
@@ -29333,7 +29335,7 @@ const qS = (Fg = class {
29333
29335
  var n;
29334
29336
  if (!t || !e || !r)
29335
29337
  throw new R("peerId, meetingId, or authToken can not be empty", "0404");
29336
- m(this, rs, void 0), m(this, tt, s), this.capabilities = i, this.roomName = e, this.authToken = r, m(this, Jr, V(this, $c, ph).call(this, t)), m(this, Pe, new HD(a(this, Jr), {
29338
+ m(this, rs, void 0), m(this, tt, s), this.capabilities = i, this.roomName = e, this.authToken = r, m(this, Jr, V(this, $c, ph).call(this, t)), m(this, Ce, new HD(a(this, Jr), {
29337
29339
  autoReconnect: true,
29338
29340
  disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
29339
29341
  queueOnDisconnect: true,
@@ -29342,10 +29344,10 @@ const qS = (Fg = class {
29342
29344
  })), this.handleSocketConnectionEvents();
29343
29345
  }
29344
29346
  get joinAttempted() {
29345
- return a(this, Ce, De).socketJoinAttempted;
29347
+ return a(this, Re, De).socketJoinAttempted;
29346
29348
  }
29347
29349
  set joinAttempted(s) {
29348
- a(this, Ce, De).socketJoinAttempted = s;
29350
+ a(this, Re, De).socketJoinAttempted = s;
29349
29351
  }
29350
29352
  get telemetry() {
29351
29353
  return a(this, tt).getValue("telemetry");
@@ -29357,7 +29359,7 @@ const qS = (Fg = class {
29357
29359
  return a(this, tt).getValue("peerId");
29358
29360
  }
29359
29361
  updateURL(s) {
29360
- s !== this.peerId && (m(this, Jr, V(this, $c, ph).call(this, s)), this.logger.debug("SocketService:: Connection URL updated.")), a(this, Pe).updateURL(a(this, Jr));
29362
+ s !== this.peerId && (m(this, Jr, V(this, $c, ph).call(this, s)), this.logger.debug("SocketService:: Connection URL updated.")), a(this, Ce).updateURL(a(this, Jr));
29361
29363
  }
29362
29364
  static getSocketEdgeDomain(s) {
29363
29365
  return la({ servicePrefix: "socket-edge", baseURI: s });
@@ -29367,7 +29369,7 @@ const qS = (Fg = class {
29367
29369
  }
29368
29370
  connect() {
29369
29371
  return l(this, null, function* () {
29370
- a(this, Ce, De).socketJoinAttempted = true, yield a(this, Pe).connect(), a(this, Ce, De).socketJoinAttempted = true, a(this, Ce, De).socketState = {
29372
+ a(this, Re, De).socketJoinAttempted = true, yield a(this, Ce).connect(), a(this, Re, De).socketJoinAttempted = true, a(this, Re, De).socketState = {
29371
29373
  state: "connected",
29372
29374
  reconnected: false,
29373
29375
  reconnectionAttempt: void 0
@@ -29376,7 +29378,7 @@ const qS = (Fg = class {
29376
29378
  }
29377
29379
  disconnect() {
29378
29380
  return l(this, null, function* () {
29379
- a(this, Ce, De).socketJoinAttempted = false, a(this, Pe).disconnect(), a(this, Ce, De).socketJoinAttempted = true, a(this, Ce, De).socketState = {
29381
+ a(this, Re, De).socketJoinAttempted = false, a(this, Ce).disconnect(), a(this, Re, De).socketJoinAttempted = true, a(this, Re, De).socketState = {
29380
29382
  state: "disconnected",
29381
29383
  reconnected: false,
29382
29384
  reconnectionAttempt: void 0
@@ -29385,14 +29387,14 @@ const qS = (Fg = class {
29385
29387
  }
29386
29388
  get isConnected() {
29387
29389
  try {
29388
- return a(this, Pe).readyState === 1;
29390
+ return a(this, Ce).readyState === 1;
29389
29391
  } catch (s) {
29390
29392
  return false;
29391
29393
  }
29392
29394
  }
29393
29395
  sendMessage(s, t, e) {
29394
29396
  const r = {};
29395
- return a(this, tt).getValue("telemetry").injectContext(r), a(this, Pe).send(
29397
+ return a(this, tt).getValue("telemetry").injectContext(r), a(this, Ce).send(
29396
29398
  s,
29397
29399
  e != null ? e : V(this, Fc, gh).call(this),
29398
29400
  t,
@@ -29420,11 +29422,11 @@ const qS = (Fg = class {
29420
29422
  return new Promise(
29421
29423
  (o, d) => {
29422
29424
  const c = (_, P) => {
29423
- a(this, Pe).removeListener(n, _), a(this, Pe).removeListener(Tg, P), a(this, Pe).removeListener(
29425
+ a(this, Ce).removeListener(n, _), a(this, Ce).removeListener(Tg, P), a(this, Ce).removeListener(
29424
29426
  is.errorResponse,
29425
29427
  P
29426
- ), a(this, Pe).removeListener(
29427
- Ts.errorResponse,
29428
+ ), a(this, Ce).removeListener(
29429
+ Es.errorResponse,
29428
29430
  P
29429
29431
  );
29430
29432
  }, u = r != null ? r : V(this, Fc, gh).call(this), p = {};
@@ -29455,9 +29457,9 @@ const qS = (Fg = class {
29455
29457
  }) => {
29456
29458
  u === _ && (o({ id: _, payload: P }), c(E, S));
29457
29459
  };
29458
- a(this, Pe).on(n, E), a(this, Pe).on(Tg, S), a(this, Pe).on(is.errorResponse, S), a(this, Pe).on(Ts.errorResponse, S), setTimeout(() => {
29460
+ a(this, Ce).on(n, E), a(this, Ce).on(Tg, S), a(this, Ce).on(is.errorResponse, S), a(this, Ce).on(Es.errorResponse, S), setTimeout(() => {
29459
29461
  c(E, S), d(new Error(`request timeout for callback eventId:${s}`));
29460
- }, t), a(this, Pe).send(
29462
+ }, t), a(this, Ce).send(
29461
29463
  s,
29462
29464
  u,
29463
29465
  e,
@@ -29467,61 +29469,61 @@ const qS = (Fg = class {
29467
29469
  );
29468
29470
  }
29469
29471
  on(s, t) {
29470
- a(this, Pe).on(s, t);
29472
+ a(this, Ce).on(s, t);
29471
29473
  }
29472
29474
  onStateEvent(s, t) {
29473
- a(this, Pe).on(s, t);
29475
+ a(this, Ce).on(s, t);
29474
29476
  }
29475
29477
  removeListener(s, t) {
29476
- a(this, Pe).removeListener(s, t);
29478
+ a(this, Ce).removeListener(s, t);
29477
29479
  }
29478
29480
  removeListeners(s) {
29479
- a(this, Pe).removeListeners(s);
29481
+ a(this, Ce).removeListeners(s);
29480
29482
  }
29481
29483
  flush() {
29482
- return a(this, Pe).flush();
29484
+ return a(this, Ce).flush();
29483
29485
  }
29484
29486
  handleSocketConnectionEvents() {
29485
29487
  this.onStateEvent("connected", () => l(this, null, function* () {
29486
- this.logger.info("SocketService::Connected to socket-edge"), a(this, rs) && (clearTimeout(a(this, rs)), m(this, rs, void 0)), a(this, Ce, De).updateSocketConnectionState("connected");
29488
+ this.logger.info("SocketService::Connected to socket-edge"), a(this, rs) && (clearTimeout(a(this, rs)), m(this, rs, void 0)), a(this, Re, De).updateSocketConnectionState("connected");
29487
29489
  })), this.onStateEvent("disconnected", ({ code: s, reason: t }) => {
29488
29490
  var i;
29489
29491
  this.logger.info("SocketService::Disconnected from socket-edge", { error: { code: s, reason: t }, country: T.location.country });
29490
- const { recv: e, send: r } = (i = a(this, Ce, De).mediaState) != null ? i : {};
29492
+ const { recv: e, send: r } = (i = a(this, Re, De).mediaState) != null ? i : {};
29491
29493
  e != null && e.state && (e == null ? void 0 : e.state) !== xa.CONNECTED || r != null && r.state && (r == null ? void 0 : r.state) !== xa.CONNECTED ? a(this, tt).getValue("peerSessionStore").emit(
29492
29494
  b.SOCKET_SERVICE_DISCONNECTED,
29493
29495
  {
29494
- joinAttempted: a(this, Ce, De).joinAttempted
29496
+ joinAttempted: a(this, Re, De).joinAttempted
29495
29497
  }
29496
29498
  ) : m(this, rs, setTimeout(() => {
29497
29499
  a(this, tt).getValue("peerSessionStore").emit(
29498
29500
  b.SOCKET_SERVICE_DISCONNECTED,
29499
- { joinAttempted: a(this, Ce, De).joinAttempted }
29501
+ { joinAttempted: a(this, Re, De).joinAttempted }
29500
29502
  ), m(this, rs, void 0);
29501
- }, jD)), a(this, Ce, De).updateSocketConnectionState("disconnected");
29503
+ }, jD)), a(this, Re, De).updateSocketConnectionState("disconnected");
29502
29504
  }), this.onStateEvent("reconnecting", () => l(this, null, function* () {
29503
- this.logger.info("SocketService::Reconnecting to socket-edge", { country: T.location.country }), a(this, Ce, De).updateSocketConnectionState("reconnecting");
29505
+ this.logger.info("SocketService::Reconnecting to socket-edge", { country: T.location.country }), a(this, Re, De).updateSocketConnectionState("reconnecting");
29504
29506
  })), this.onStateEvent("reconnectAttempt", (t) => l(this, [t], function* ({ attempt: s }) {
29505
29507
  this.logger.info("SocketService::Attempting to reconnect to socket-edge", {
29506
29508
  socket: {
29507
29509
  retryAttempt: s
29508
29510
  }
29509
- }), a(this, Ce, De).updateSocketConnectionState("reconnectAttempt", s);
29511
+ }), a(this, Re, De).updateSocketConnectionState("reconnectAttempt", s);
29510
29512
  })), this.onStateEvent("reconnectFailure", ({ attempt: s }) => {
29511
29513
  this.logger.info("SocketService::Reconnect attempt to socket-edge failed", {
29512
29514
  socket: {
29513
29515
  retryAttempt: s
29514
29516
  }
29515
- }), a(this, Ce, De).updateSocketConnectionState("reconnectFailure", s);
29517
+ }), a(this, Re, De).updateSocketConnectionState("reconnectFailure", s);
29516
29518
  }), this.onStateEvent("reconnected", () => l(this, null, function* () {
29517
- this.logger.info("SocketService::Reconnected to socket-edge", { connectionState: { joinAttempted: a(this, Ce, De).mediaJoinAttempted } }), a(this, rs) && (clearTimeout(a(this, rs)), m(this, rs, void 0)), a(this, tt).getValue("peerSessionStore").emit(b.SOCKET_SERVICE_RECONNECTED, {
29518
- wasJoinAttempted: a(this, Ce, De).mediaJoinAttempted
29519
- }), a(this, Ce, De).updateSocketConnectionState("reconnected");
29519
+ this.logger.info("SocketService::Reconnected to socket-edge", { connectionState: { joinAttempted: a(this, Re, De).mediaJoinAttempted } }), a(this, rs) && (clearTimeout(a(this, rs)), m(this, rs, void 0)), a(this, tt).getValue("peerSessionStore").emit(b.SOCKET_SERVICE_RECONNECTED, {
29520
+ wasJoinAttempted: a(this, Re, De).mediaJoinAttempted
29521
+ }), a(this, Re, De).updateSocketConnectionState("reconnected");
29520
29522
  })), this.onStateEvent("failed", () => l(this, null, function* () {
29521
- this.logger.info("SocketService::Failed to connect to socket-edge", { country: T.location.country }), a(this, tt).getValue("peerSessionStore").emit(b.SOCKET_SERVICE_FAILED), a(this, Ce, De).updateSocketConnectionState("failed");
29523
+ this.logger.info("SocketService::Failed to connect to socket-edge", { country: T.location.country }), a(this, tt).getValue("peerSessionStore").emit(b.SOCKET_SERVICE_FAILED), a(this, Re, De).updateSocketConnectionState("failed");
29522
29524
  }));
29523
29525
  }
29524
- }, Jr = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakSet(), De = function() {
29526
+ }, Jr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakSet(), De = function() {
29525
29527
  return a(this, tt).getValue("connectionHandler");
29526
29528
  }, rs = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakSet(), ph = function(s) {
29527
29529
  let t = qS.getSocketEdgeDomain(a(this, tt).getValue("baseURI"));
@@ -29658,18 +29660,18 @@ var WD = Object.defineProperty, JD = Object.getOwnPropertyDescriptor, KD = (s, t
29658
29660
  for (var i = r > 1 ? void 0 : r ? JD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
29659
29661
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
29660
29662
  return r && i && WD(t, e, i), i;
29661
- }, vs;
29663
+ }, ys;
29662
29664
  class jS extends qt {
29663
29665
  constructor(e) {
29664
29666
  const r = e.getValue("logger");
29665
29667
  super(r);
29666
29668
  h(this, "meetings", []);
29667
29669
  h(this, "parentMeeting", null);
29668
- g(this, vs, void 0);
29669
- m(this, vs, e);
29670
+ g(this, ys, void 0);
29671
+ m(this, ys, e);
29670
29672
  }
29671
29673
  get supportsConnectedMeetings() {
29672
- return a(this, vs).getValue("self").id !== "";
29674
+ return a(this, ys).getValue("self").id !== "";
29673
29675
  }
29674
29676
  get isActive() {
29675
29677
  return this.meetings.length !== 0;
@@ -29681,12 +29683,12 @@ class jS extends qt {
29681
29683
  }
29682
29684
  getConnectedMeetings() {
29683
29685
  return l(this, null, function* () {
29684
- return this.validateConnectedMeetingsAction(), yield a(this, vs).getValue("connectedMeetingsSocketHandler").getConnectedRoomsDump();
29686
+ return this.validateConnectedMeetingsAction(), yield a(this, ys).getValue("connectedMeetingsSocketHandler").getConnectedRoomsDump();
29685
29687
  });
29686
29688
  }
29687
29689
  createMeetings(e) {
29688
29690
  return l(this, null, function* () {
29689
- return this.validateConnectedMeetingsAction(), (yield a(this, vs).getValue("connectedMeetingsSocketHandler").createConnectedRooms(
29691
+ return this.validateConnectedMeetingsAction(), (yield a(this, ys).getValue("connectedMeetingsSocketHandler").createConnectedRooms(
29690
29692
  e
29691
29693
  )).map((i) => ({
29692
29694
  id: i.id,
@@ -29696,7 +29698,7 @@ class jS extends qt {
29696
29698
  }
29697
29699
  updateMeetings(e) {
29698
29700
  return l(this, null, function* () {
29699
- this.validateConnectedMeetingsAction(), yield a(this, vs).getValue("connectedMeetingsSocketHandler").updateConnectedRooms(
29701
+ this.validateConnectedMeetingsAction(), yield a(this, ys).getValue("connectedMeetingsSocketHandler").updateConnectedRooms(
29700
29702
  e.map((r) => ({ meetingId: r.id, title: r.title }))
29701
29703
  );
29702
29704
  });
@@ -29709,7 +29711,7 @@ class jS extends qt {
29709
29711
  this.parentMeeting.id,
29710
29712
  n.participants.map((o) => o.id)
29711
29713
  ) : Promise.resolve());
29712
- return yield Promise.all(r), yield a(this, vs).getValue("connectedMeetingsSocketHandler").disableConnectedRooms(
29714
+ return yield Promise.all(r), yield a(this, ys).getValue("connectedMeetingsSocketHandler").disableConnectedRooms(
29713
29715
  e
29714
29716
  );
29715
29717
  });
@@ -29717,7 +29719,7 @@ class jS extends qt {
29717
29719
  moveParticipants(e, r, i) {
29718
29720
  return l(this, null, function* () {
29719
29721
  this.validateConnectedMeetingsAction();
29720
- const n = yield a(this, vs).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29722
+ const n = yield a(this, ys).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29721
29723
  {
29722
29724
  sourceMeetingId: e,
29723
29725
  destinationMeetingId: r,
@@ -29732,7 +29734,7 @@ class jS extends qt {
29732
29734
  moveParticipantsWithCustomPreset(e, r, i) {
29733
29735
  return l(this, null, function* () {
29734
29736
  this.validateConnectedMeetingsAction();
29735
- const n = yield a(this, vs).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29737
+ const n = yield a(this, ys).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29736
29738
  {
29737
29739
  sourceMeetingId: e,
29738
29740
  destinationMeetingId: r,
@@ -29772,7 +29774,7 @@ class jS extends qt {
29772
29774
  });
29773
29775
  }
29774
29776
  }
29775
- vs = /* @__PURE__ */ new WeakMap();
29777
+ ys = /* @__PURE__ */ new WeakMap();
29776
29778
  KD([
29777
29779
  Dt({ maxInvocations: 60, period: 60 })
29778
29780
  ], jS.prototype, "getConnectedMeetings", 1);
@@ -29960,7 +29962,7 @@ const Ma = class {
29960
29962
  const u = new FM(s);
29961
29963
  s.setValue("connectionHandler", u);
29962
29964
  const p = Ma.createSocketService(s), f = p.connect(), S = c.getUserDetails(), E = c.getPlugins();
29963
- let _ = we.HIVE, P, k = "";
29965
+ let _ = Pe.HIVE, P, k = "";
29964
29966
  try {
29965
29967
  yield Ma.setupFlagsmith(s);
29966
29968
  } catch (re) {
@@ -30064,7 +30066,7 @@ const Ma = class {
30064
30066
  s
30065
30067
  );
30066
30068
  t.setValue("connectedMeetingsSocketHandler", Je);
30067
- const ks = new zl(t, s), vr = new as(t, s), ni = new PD(s), I = new IS(t, s), y = new CD(t, s), C = new fD(s), U = new ga(t, s), ie = yield ai.init(
30069
+ const Is = new zl(t, s), vr = new as(t, s), ni = new PD(s), I = new IS(t, s), y = new CD(t, s), C = new fD(s), U = new ga(t, s), ie = yield ai.init(
30068
30070
  t,
30069
30071
  I,
30070
30072
  c,
@@ -30082,7 +30084,7 @@ const Ma = class {
30082
30084
  ie.self,
30083
30085
  I,
30084
30086
  f
30085
- )), (Tr = d.e2ee) != null && Tr.enabled && d.e2ee.manager.init(p, t.getValue("peerSessionStore")), d.chat && (P = yield Es.init(
30087
+ )), (Tr = d.e2ee) != null && Tr.enabled && d.e2ee.manager.init(p, t.getValue("peerSessionStore")), d.chat && (P = yield _s.init(
30086
30088
  t,
30087
30089
  vr,
30088
30090
  U,
@@ -30096,7 +30098,7 @@ const Ma = class {
30096
30098
  if (d.poll && (_ = yield Rf.init(
30097
30099
  t,
30098
30100
  ie.self,
30099
- ks
30101
+ Is
30100
30102
  )), d.recording && (H = new Of(
30101
30103
  t,
30102
30104
  ie.self,
@@ -30357,7 +30359,7 @@ let si = (Bg = class {
30357
30359
  video: true
30358
30360
  };
30359
30361
  return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (c = e.overrides) != null ? c : {}), n.setValue("env", yC({ baseURI: i.baseURI })), n.setValue("defaults", d), n.setValue("onError", e.onError || (() => {
30360
- })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.2"), (u = e.modules) != null && u.experimentalAudioPlayback && n.setValue("audioPlayback", new sO()), n;
30362
+ })), n.setValue("cachedUserDetails", Ps(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.3-staging.2"), (u = e.modules) != null && u.experimentalAudioPlayback && n.setValue("audioPlayback", new sO()), n;
30361
30363
  }
30362
30364
  join() {
30363
30365
  return l(this, null, function* () {