@cloudflare/realtimekit-react 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
@@ -5765,7 +5765,7 @@ class ym extends ut {
5765
5765
  }) || e[e.length - 1];
5766
5766
  }
5767
5767
  parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
5768
- var P, k, A, N, H, $, F, K, re, Je, ks, vr, ni;
5768
+ var P, k, A, N, H, $, F, K, re, Je, Is, vr, ni;
5769
5769
  const d = e, c = new vm(), u = r.length ? new Set(r) : void 0, p = [], f = [], S = [], E = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
5770
5770
  for (const I of d.values()) {
5771
5771
  if (u) {
@@ -6029,7 +6029,7 @@ class ym extends ut {
6029
6029
  }), _.set(C, {
6030
6030
  score: +(w.score * 10).toFixed(),
6031
6031
  packetsLostPercentage: bd({
6032
- packetsLost: (w.packetsLost || 0) - (((ks = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ks.packetsLost) || 0),
6032
+ packetsLost: (w.packetsLost || 0) - (((Is = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Is.packetsLost) || 0),
6033
6033
  packetsReceived: (w.packetsReceived || 0) - (((vr = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : vr.packetsReceived) || 0)
6034
6034
  }),
6035
6035
  jitter: w.jitter || 0,
@@ -6398,7 +6398,7 @@ class Tm extends ym {
6398
6398
  };
6399
6399
  }
6400
6400
  parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
6401
- var P, k, A, N, H, $, F, K, re, Je, ks, vr, ni;
6401
+ var P, k, A, N, H, $, F, K, re, Je, Is, vr, ni;
6402
6402
  const d = e, c = new vm(), u = r.length ? new Set(r) : void 0, p = [], f = [], S = [], E = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
6403
6403
  for (const I of d.values()) {
6404
6404
  if (u) {
@@ -6662,7 +6662,7 @@ class Tm extends ym {
6662
6662
  }), _.set(C, {
6663
6663
  score: +(w.score * 10).toFixed(),
6664
6664
  packetsLostPercentage: bd({
6665
- packetsLost: (w.packetsLost || 0) - (((ks = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ks.packetsLost) || 0),
6665
+ packetsLost: (w.packetsLost || 0) - (((Is = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Is.packetsLost) || 0),
6666
6666
  packetsReceived: (w.packetsReceived || 0) - (((vr = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : vr.packetsReceived) || 0)
6667
6667
  }),
6668
6668
  jitter: w.jitter || 0,
@@ -7840,8 +7840,8 @@ function Jv(s) {
7840
7840
  var Kv = typeof global == "object" && global && global.Object === Object && global;
7841
7841
  const _m = Kv;
7842
7842
  var zv = typeof self == "object" && self && self.Object === Object && self, Yv = _m || zv || Function("return this")();
7843
- const Cs = Yv;
7844
- var Qv = Cs.Symbol;
7843
+ const Rs = Yv;
7844
+ var Qv = Rs.Symbol;
7845
7845
  const ei = Qv;
7846
7846
  var Pm = Object.prototype, Xv = Pm.hasOwnProperty, Zv = Pm.toString, fo = ei ? ei.toStringTag : void 0;
7847
7847
  function ey(s) {
@@ -7862,18 +7862,18 @@ var iy = "[object Null]", ay = "[object Undefined]", op = ei ? ei.toStringTag :
7862
7862
  function fa(s) {
7863
7863
  return s == null ? s === void 0 ? ay : iy : op && op in Object(s) ? ey(s) : ry(s);
7864
7864
  }
7865
- function Ps(s) {
7865
+ function Cs(s) {
7866
7866
  var t = typeof s;
7867
7867
  return s != null && (t == "object" || t == "function");
7868
7868
  }
7869
7869
  var ny = "[object AsyncFunction]", oy = "[object Function]", cy = "[object GeneratorFunction]", dy = "[object Proxy]";
7870
7870
  function vh(s) {
7871
- if (!Ps(s))
7871
+ if (!Cs(s))
7872
7872
  return false;
7873
7873
  var t = fa(s);
7874
7874
  return t == oy || t == cy || t == ny || t == dy;
7875
7875
  }
7876
- var ly = Cs["__core-js_shared__"];
7876
+ var ly = Rs["__core-js_shared__"];
7877
7877
  const iu = ly;
7878
7878
  var cp = function() {
7879
7879
  var s = /[^.]+$/.exec(iu && iu.keys && iu.keys.IE_PROTO || "");
@@ -7900,7 +7900,7 @@ var gy = /[\\^$.*+?()[\]{}|]/g, my = /^\[object .+?Constructor\]$/, fy = Functio
7900
7900
  "^" + vy.call(yy).replace(gy, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
7901
7901
  );
7902
7902
  function Ey(s) {
7903
- if (!Ps(s) || uy(s))
7903
+ if (!Cs(s) || uy(s))
7904
7904
  return false;
7905
7905
  var t = vh(s) ? Ty : my;
7906
7906
  return t.test(Sa(s));
@@ -7912,7 +7912,7 @@ function va(s, t) {
7912
7912
  var e = _y(s, t);
7913
7913
  return Ey(e) ? e : void 0;
7914
7914
  }
7915
- var Py = va(Cs, "Map");
7915
+ var Py = va(Rs, "Map");
7916
7916
  const Uo = Py;
7917
7917
  var Cy = va(Object, "create");
7918
7918
  const $o = Cy;
@@ -8073,7 +8073,7 @@ const ti = Zy;
8073
8073
  function eT() {
8074
8074
  return false;
8075
8075
  }
8076
- 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;
8076
+ 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;
8077
8077
  const jn = rT;
8078
8078
  var iT = 9007199254740991, aT = /^(?:0|[1-9]\d*)$/;
8079
8079
  function bm(s, t) {
@@ -8151,7 +8151,7 @@ function qT(s) {
8151
8151
  }
8152
8152
  var jT = Object.prototype, GT = jT.hasOwnProperty;
8153
8153
  function WT(s) {
8154
- if (!Ps(s))
8154
+ if (!Cs(s))
8155
8155
  return qT(s);
8156
8156
  var t = Bl(s), e = [];
8157
8157
  for (var r in s)
@@ -8164,7 +8164,7 @@ function Gc(s) {
8164
8164
  function JT(s, t) {
8165
8165
  return s && qc(t, Gc(t), s);
8166
8166
  }
8167
- 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;
8167
+ 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;
8168
8168
  function Nm(s, t) {
8169
8169
  if (t)
8170
8170
  return s.slice();
@@ -8222,13 +8222,13 @@ function yu(s) {
8222
8222
  function iE(s) {
8223
8223
  return $m(s, Gc, Um);
8224
8224
  }
8225
- var aE = va(Cs, "DataView");
8225
+ var aE = va(Rs, "DataView");
8226
8226
  const Tu = aE;
8227
- var nE = va(Cs, "Promise");
8227
+ var nE = va(Rs, "Promise");
8228
8228
  const Eu = nE;
8229
- var oE = va(Cs, "Set");
8229
+ var oE = va(Rs, "Set");
8230
8230
  const _u = oE;
8231
- var cE = va(Cs, "WeakMap");
8231
+ var cE = va(Rs, "WeakMap");
8232
8232
  const Pu = cE;
8233
8233
  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;
8234
8234
  (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) {
@@ -8254,7 +8254,7 @@ function SE(s) {
8254
8254
  var t = s.length, e = new s.constructor(t);
8255
8255
  return t && typeof s[0] == "string" && fE.call(s, "index") && (e.index = s.index, e.input = s.input), e;
8256
8256
  }
8257
- var vE = Cs.Uint8Array;
8257
+ var vE = Rs.Uint8Array;
8258
8258
  const Md = vE;
8259
8259
  function Ch(s) {
8260
8260
  var t = new s.constructor(s.byteLength);
@@ -8315,7 +8315,7 @@ var Cp = Object.create, qE = function() {
8315
8315
  function s() {
8316
8316
  }
8317
8317
  return function(t) {
8318
- if (!Ps(t))
8318
+ if (!Cs(t))
8319
8319
  return {};
8320
8320
  if (Cp)
8321
8321
  return Cp(t);
@@ -8347,7 +8347,7 @@ function ud(s, t, e, r, i, n) {
8347
8347
  var o, d = t & ZE, c = t & e_, u = t & t_;
8348
8348
  if (e && (o = i ? e(s, r, i, n) : e(s)), o !== void 0)
8349
8349
  return o;
8350
- if (!Ps(s))
8350
+ if (!Cs(s))
8351
8351
  return s;
8352
8352
  var p = ti(s);
8353
8353
  if (p) {
@@ -9096,9 +9096,9 @@ function Ip(s) {
9096
9096
  return s;
9097
9097
  if (k_(s))
9098
9098
  return kp;
9099
- if (Ps(s)) {
9099
+ if (Cs(s)) {
9100
9100
  var t = typeof s.valueOf == "function" ? s.valueOf() : s;
9101
- s = Ps(t) ? t + "" : t;
9101
+ s = Cs(t) ? t + "" : t;
9102
9102
  }
9103
9103
  if (typeof s != "string")
9104
9104
  return s === 0 ? s : +s;
@@ -9166,7 +9166,7 @@ function pP(s, t) {
9166
9166
  return uP(hP(s, t, Qm), s + "");
9167
9167
  }
9168
9168
  function gP(s, t, e) {
9169
- if (!Ps(e))
9169
+ if (!Cs(e))
9170
9170
  return false;
9171
9171
  var r = typeof t;
9172
9172
  return (r == "number" ? jc(e) && bm(t, e.length) : r == "string" && t in e) ? Bc(e[t], s) : false;
@@ -9365,7 +9365,7 @@ function XP(s) {
9365
9365
  var ZP = XP();
9366
9366
  const eC = ZP;
9367
9367
  var tC = function() {
9368
- return Cs.Date.now();
9368
+ return Rs.Date.now();
9369
9369
  };
9370
9370
  const ou = tC;
9371
9371
  var sC = "Expected a function", rC = Math.max, iC = Math.min;
@@ -9373,7 +9373,7 @@ function bh(s, t, e) {
9373
9373
  var r, i, n, o, d, c, u = 0, p = false, f = false, S = true;
9374
9374
  if (typeof s != "function")
9375
9375
  throw new TypeError(sC);
9376
- 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);
9376
+ 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);
9377
9377
  function E(K) {
9378
9378
  var re = r, Je = i;
9379
9379
  return r = i = void 0, u = K, o = s.apply(Je, re), o;
@@ -9382,8 +9382,8 @@ function bh(s, t, e) {
9382
9382
  return u = K, d = setTimeout(A, t), p ? E(K) : o;
9383
9383
  }
9384
9384
  function P(K) {
9385
- var re = K - c, Je = K - u, ks = t - re;
9386
- return f ? iC(ks, n - Je) : ks;
9385
+ var re = K - c, Je = K - u, Is = t - re;
9386
+ return f ? iC(Is, n - Je) : Is;
9387
9387
  }
9388
9388
  function k(K) {
9389
9389
  var re = K - c, Je = K - u;
@@ -9438,13 +9438,13 @@ function oC(s, t, e, r, i, n, o) {
9438
9438
  var p = n ? n(d, c, e + "", s, t, o) : void 0, f = p === void 0;
9439
9439
  if (f) {
9440
9440
  var S = ti(c), E = !S && jn(c), _ = !S && !E && Hl(c);
9441
- 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;
9441
+ 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;
9442
9442
  }
9443
9443
  f && (o.set(c, p), i(p, c, r, n, o), o.delete(c)), Ru(s, e, p);
9444
9444
  }
9445
9445
  function tf(s, t, e, r, i) {
9446
9446
  s !== t && eC(t, function(n, o) {
9447
- if (i || (i = new xs()), Ps(n))
9447
+ if (i || (i = new xs()), Cs(n))
9448
9448
  oC(s, t, o, e, tf, r, i);
9449
9449
  else {
9450
9450
  var d = r ? r(wu(s, o), n, o + "", s, t, i) : void 0;
@@ -10689,7 +10689,7 @@ class NC extends MessageType {
10689
10689
  ]);
10690
10690
  }
10691
10691
  }
10692
- const Rs = new NC();
10692
+ const ws = new NC();
10693
10693
  class LC extends MessageType {
10694
10694
  constructor() {
10695
10695
  super("media.ProducerPayload", [
@@ -10751,7 +10751,7 @@ class xC extends MessageType {
10751
10751
  opt: true,
10752
10752
  T: 8
10753
10753
  },
10754
- { no: 3, name: "description", kind: "message", T: () => Rs },
10754
+ { no: 3, name: "description", kind: "message", T: () => ws },
10755
10755
  {
10756
10756
  no: 4,
10757
10757
  name: "private_ice",
@@ -10798,7 +10798,7 @@ class HC extends MessageType {
10798
10798
  kind: "scalar",
10799
10799
  T: 9
10800
10800
  },
10801
- { no: 2, name: "description", kind: "message", T: () => Rs },
10801
+ { no: 2, name: "description", kind: "message", T: () => ws },
10802
10802
  {
10803
10803
  no: 3,
10804
10804
  name: "transcription_enabled",
@@ -10826,7 +10826,7 @@ class BC extends MessageType {
10826
10826
  kind: "scalar",
10827
10827
  T: 9
10828
10828
  },
10829
- { no: 2, name: "description", kind: "message", T: () => Rs }
10829
+ { no: 2, name: "description", kind: "message", T: () => ws }
10830
10830
  ]);
10831
10831
  }
10832
10832
  }
@@ -10840,7 +10840,7 @@ class jC extends MessageType {
10840
10840
  kind: "scalar",
10841
10841
  T: 9
10842
10842
  },
10843
- { no: 2, name: "description", kind: "message", T: () => Rs }
10843
+ { no: 2, name: "description", kind: "message", T: () => ws }
10844
10844
  ]);
10845
10845
  }
10846
10846
  }
@@ -11329,7 +11329,7 @@ class CR extends MessageType {
11329
11329
  kind: "scalar",
11330
11330
  T: 8
11331
11331
  },
11332
- { no: 4, name: "description", kind: "message", T: () => Rs },
11332
+ { no: 4, name: "description", kind: "message", T: () => ws },
11333
11333
  {
11334
11334
  no: 5,
11335
11335
  name: "msid",
@@ -11427,7 +11427,7 @@ class MR extends MessageType {
11427
11427
  kind: "scalar",
11428
11428
  T: 9
11429
11429
  },
11430
- { no: 2, name: "description", kind: "message", T: () => Rs },
11430
+ { no: 2, name: "description", kind: "message", T: () => ws },
11431
11431
  {
11432
11432
  no: 3,
11433
11433
  name: "producing_transport_id",
@@ -11449,7 +11449,7 @@ class OR extends MessageType {
11449
11449
  repeat: 2,
11450
11450
  T: 9
11451
11451
  },
11452
- { no: 2, name: "description", kind: "message", T: () => Rs },
11452
+ { no: 2, name: "description", kind: "message", T: () => ws },
11453
11453
  {
11454
11454
  no: 3,
11455
11455
  name: "consuming_transport_id",
@@ -11780,7 +11780,7 @@ class iw extends MessageType {
11780
11780
  T: 8
11781
11781
  },
11782
11782
  { no: 2, name: "consumer_ids_map", kind: "message", T: () => of },
11783
- { no: 3, name: "description", kind: "message", T: () => Rs }
11783
+ { no: 3, name: "description", kind: "message", T: () => ws }
11784
11784
  ]);
11785
11785
  }
11786
11786
  }
@@ -11800,7 +11800,7 @@ class nw extends MessageType {
11800
11800
  kind: "scalar",
11801
11801
  T: 9
11802
11802
  },
11803
- { no: 4, name: "description", kind: "message", T: () => Rs }
11803
+ { no: 4, name: "description", kind: "message", T: () => ws }
11804
11804
  ]);
11805
11805
  }
11806
11806
  }
@@ -11859,7 +11859,7 @@ new hw();
11859
11859
  class pw extends MessageType {
11860
11860
  constructor() {
11861
11861
  super("media.edge.ProducerClosingResponse", [
11862
- { no: 1, name: "description", kind: "message", T: () => Rs }
11862
+ { no: 1, name: "description", kind: "message", T: () => ws }
11863
11863
  ]);
11864
11864
  }
11865
11865
  }
@@ -11867,7 +11867,7 @@ const gw = new pw();
11867
11867
  class mw extends MessageType {
11868
11868
  constructor() {
11869
11869
  super("media.edge.ConsumerClosingResponse", [
11870
- { no: 1, name: "description", kind: "message", T: () => Rs }
11870
+ { no: 1, name: "description", kind: "message", T: () => ws }
11871
11871
  ]);
11872
11872
  }
11873
11873
  }
@@ -15233,13 +15233,13 @@ function Yn(s, t) {
15233
15233
  function Tf(s, t) {
15234
15234
  return Object.keys(s).reduce((e, r) => (e[r] = t | s[r], e), {});
15235
15235
  }
15236
- const x = Yn(NA, FA), Re = Yn(LA, HA), W = Yn(
15236
+ const x = Yn(NA, FA), we = Yn(LA, HA), W = Yn(
15237
15237
  VA,
15238
15238
  BA
15239
15239
  ), qs = Yn(xA, qA), pi = Yn(
15240
15240
  UA,
15241
15241
  jA
15242
- ), is = Tf(yf, 16777216), Ts = Tf(yf, 50331648), gd = Yn(
15242
+ ), is = Tf(yf, 16777216), Es = Tf(yf, 50331648), gd = Yn(
15243
15243
  $A,
15244
15244
  GA
15245
15245
  );
@@ -15303,7 +15303,7 @@ const xu = (Pg = class {
15303
15303
  memberIds: s.targetUserIds,
15304
15304
  unreadCount: (r = t == null ? void 0 : t.unreadCount) != null ? r : 0
15305
15305
  });
15306
- return t != null && t.message && (e.latestMessage = Es.formatSocketServiceMessage(
15306
+ return t != null && t.message && (e.latestMessage = _s.formatSocketServiceMessage(
15307
15307
  t.message
15308
15308
  )), delete e.chatChannelId, delete e.targetUserIds, delete e.latestMessageAndUnreadCount, e;
15309
15309
  }
@@ -15368,7 +15368,7 @@ Mh([
15368
15368
  Mh([
15369
15369
  T.trace("ChatChannelHandler.getChannelMembers")
15370
15370
  ], ga.prototype, "getChannelMembers", 1);
15371
- var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, ws = (s, t, e, r) => {
15371
+ var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, bs = (s, t, e, r) => {
15372
15372
  for (var i = r > 1 ? void 0 : r ? zA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
15373
15373
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
15374
15374
  return r && i && KA(t, e, i), i;
@@ -15386,7 +15386,7 @@ class as {
15386
15386
  return a(this, ja).getValue("logger");
15387
15387
  }
15388
15388
  getChatMessages() {
15389
- return a(this, rt).sendMessagePromise(Re.getMessages);
15389
+ return a(this, rt).sendMessagePromise(we.getMessages);
15390
15390
  }
15391
15391
  getChatMessagesPaginated(t, e, r, i = 0, n = "") {
15392
15392
  return l(this, null, function* () {
@@ -15397,7 +15397,7 @@ class as {
15397
15397
  reversed: r,
15398
15398
  channelId: n
15399
15399
  }, d = yield a(this, rt).sendMessagePromise(
15400
- Re.getPaginatedMessages,
15400
+ we.getPaginatedMessages,
15401
15401
  $k.toBinary(o)
15402
15402
  );
15403
15403
  return d.payload ? Hk.fromBinary(
@@ -15414,7 +15414,7 @@ class as {
15414
15414
  payload: t
15415
15415
  };
15416
15416
  a(this, rt).sendMessage(
15417
- Re.sendMessageToRoom,
15417
+ we.sendMessageToRoom,
15418
15418
  jk.toBinary(r)
15419
15419
  );
15420
15420
  }
@@ -15425,7 +15425,7 @@ class as {
15425
15425
  payload: t
15426
15426
  };
15427
15427
  a(this, rt).sendMessage(
15428
- Re.sendMessageToPeers,
15428
+ we.sendMessageToPeers,
15429
15429
  Jk.toBinary(i)
15430
15430
  );
15431
15431
  }
@@ -15436,7 +15436,7 @@ class as {
15436
15436
  payload: t
15437
15437
  };
15438
15438
  a(this, rt).sendMessage(
15439
- Re.sendMessageToChannel,
15439
+ we.sendMessageToChannel,
15440
15440
  Yk.toBinary(i)
15441
15441
  );
15442
15442
  }
@@ -15456,7 +15456,7 @@ class as {
15456
15456
  };
15457
15457
  i && (o.channelId = i), n !== void 0 && (o.pinned = n);
15458
15458
  const d = yield a(this, rt).sendMessagePromise(
15459
- Re.editMessage,
15459
+ we.editMessage,
15460
15460
  Zk.toBinary(o)
15461
15461
  );
15462
15462
  return ad.fromBinary(d.payload).message;
@@ -15469,7 +15469,7 @@ class as {
15469
15469
  };
15470
15470
  e && (r.channelId = e);
15471
15471
  const i = yield a(this, rt).sendMessagePromise(
15472
- Re.deleteMessage,
15472
+ we.deleteMessage,
15473
15473
  aI.toBinary(r)
15474
15474
  ), n = nd.fromBinary(i.payload);
15475
15475
  return D({
@@ -15490,7 +15490,7 @@ class as {
15490
15490
  e.channelId && (r.channelId = e.channelId);
15491
15491
  try {
15492
15492
  const d = yield a(this, rt).sendMessagePromise(
15493
- Re.searchChannelMessages,
15493
+ we.searchChannelMessages,
15494
15494
  cI.toBinary(r)
15495
15495
  );
15496
15496
  return Sf.fromBinary(d.payload).messages;
@@ -15503,7 +15503,7 @@ class as {
15503
15503
  return l(this, null, function* () {
15504
15504
  try {
15505
15505
  const t = yield a(this, rt).sendMessagePromise(
15506
- Re.getAllChatChannels
15506
+ we.getAllChatChannels
15507
15507
  );
15508
15508
  return Fs.fromBinary(t.payload).chatChannels.map(ga.formatChannel);
15509
15509
  } catch (t) {
@@ -15514,7 +15514,7 @@ class as {
15514
15514
  markLastReadMessage(t, e) {
15515
15515
  return l(this, null, function* () {
15516
15516
  const r = yield a(this, rt).sendMessagePromise(
15517
- Re.markChannelIndexAsRead,
15517
+ we.markChannelIndexAsRead,
15518
15518
  lI.toBinary({
15519
15519
  channelId: t,
15520
15520
  userId: e.userId,
@@ -15531,7 +15531,7 @@ class as {
15531
15531
  pinned: e,
15532
15532
  channelId: t.channelId
15533
15533
  }, i = yield a(this, rt).sendMessagePromise(
15534
- Re.pinMessage,
15534
+ we.pinMessage,
15535
15535
  tI.toBinary(r)
15536
15536
  );
15537
15537
  return id.fromBinary(i.payload);
@@ -15540,31 +15540,31 @@ class as {
15540
15540
  on(t, e) {
15541
15541
  let r, i;
15542
15542
  switch (t) {
15543
- case Re.sendMessageToRoom: {
15543
+ case we.sendMessageToRoom: {
15544
15544
  r = uu.fromBinary.bind(
15545
15545
  uu
15546
15546
  ), i = uu.create();
15547
15547
  break;
15548
15548
  }
15549
- case Re.sendMessageToPeers: {
15549
+ case we.sendMessageToPeers: {
15550
15550
  r = hu.fromBinary.bind(
15551
15551
  hu
15552
15552
  ), i = hu.create();
15553
15553
  break;
15554
15554
  }
15555
- case Re.editMessage: {
15555
+ case we.editMessage: {
15556
15556
  r = ad.fromBinary.bind(
15557
15557
  ad
15558
15558
  ), i = ad.create();
15559
15559
  break;
15560
15560
  }
15561
- case Re.pinMessage: {
15561
+ case we.pinMessage: {
15562
15562
  r = id.fromBinary.bind(
15563
15563
  id
15564
15564
  ), i = id.create();
15565
15565
  break;
15566
15566
  }
15567
- case Re.deleteMessage: {
15567
+ case we.deleteMessage: {
15568
15568
  r = nd.fromBinary.bind(
15569
15569
  nd
15570
15570
  ), i = nd.create();
@@ -15589,37 +15589,37 @@ class as {
15589
15589
  }
15590
15590
  }
15591
15591
  rt = /* @__PURE__ */ new WeakMap(), ja = /* @__PURE__ */ new WeakMap();
15592
- ws([
15592
+ bs([
15593
15593
  T.trace("SocketService.getChatMessages")
15594
15594
  ], as.prototype, "getChatMessages", 1);
15595
- ws([
15595
+ bs([
15596
15596
  T.trace("SocketService.getChatMessagesPaginated")
15597
15597
  ], as.prototype, "getChatMessagesPaginated", 1);
15598
- ws([
15598
+ bs([
15599
15599
  T.trace("SocketService.sendMessageToRoom")
15600
15600
  ], as.prototype, "sendMessageToRoom", 1);
15601
- ws([
15601
+ bs([
15602
15602
  T.trace("SocketService.sendMessageToPeers")
15603
15603
  ], as.prototype, "sendMessageToPeers", 1);
15604
- ws([
15604
+ bs([
15605
15605
  T.trace("SocketService.sendMessageToChannel")
15606
15606
  ], as.prototype, "sendMessageToChannel", 1);
15607
- ws([
15607
+ bs([
15608
15608
  T.trace("SocketService.sendMessage")
15609
15609
  ], as.prototype, "sendMessage", 1);
15610
- ws([
15610
+ bs([
15611
15611
  T.trace("SocketService.editMessage")
15612
15612
  ], as.prototype, "editMessage", 1);
15613
- ws([
15613
+ bs([
15614
15614
  T.trace("SocketService.deleteMessage")
15615
15615
  ], as.prototype, "deleteMessage", 1);
15616
- ws([
15616
+ bs([
15617
15617
  T.trace("SocketService.searchMessages")
15618
15618
  ], as.prototype, "searchMessages", 1);
15619
- ws([
15619
+ bs([
15620
15620
  T.trace("SocketService.getAllChannels")
15621
15621
  ], as.prototype, "getAllChannels", 1);
15622
- ws([
15622
+ bs([
15623
15623
  T.trace("SocketService.markLastReadMessage")
15624
15624
  ], as.prototype, "markLastReadMessage", 1);
15625
15625
  function YA(s) {
@@ -15628,17 +15628,17 @@ function YA(s) {
15628
15628
  (t) => t[1].toUpperCase()
15629
15629
  );
15630
15630
  }
15631
- function _s(s) {
15631
+ function Ps(s) {
15632
15632
  if (!s || typeof s != "object")
15633
15633
  return s;
15634
15634
  if (Array.isArray(s))
15635
15635
  return s.map(
15636
- (e) => _s(e)
15636
+ (e) => Ps(e)
15637
15637
  );
15638
15638
  const t = {};
15639
15639
  return Object.keys(s).forEach((e) => {
15640
15640
  const r = validate(e) ? e : YA(e);
15641
- t[r] = _s(s[e]);
15641
+ t[r] = Ps(s[e]);
15642
15642
  }), t;
15643
15643
  }
15644
15644
  function QA(s) {
@@ -15984,7 +15984,7 @@ class jt extends tM {
15984
15984
  return l(this, arguments, function* ({
15985
15985
  manualIngestion: e
15986
15986
  }) {
15987
- const i = _s(
15987
+ const i = Ps(
15988
15988
  yield this.requests.post(
15989
15989
  `/v2/meetings/${this.context.getValue("meetingId")}/livestreams`,
15990
15990
  {
@@ -16012,7 +16012,7 @@ class jt extends tM {
16012
16012
  }
16013
16013
  getActiveLivestream() {
16014
16014
  return l(this, null, function* () {
16015
- const e = _s(
16015
+ const e = Ps(
16016
16016
  (yield this.requests.get(
16017
16017
  `/v2/meetings/${this.context.getValue("meetingId")}/active-livestream`
16018
16018
  )).data.data
@@ -16033,7 +16033,7 @@ class jt extends tM {
16033
16033
  if (this.userDetails)
16034
16034
  return this.userDetails;
16035
16035
  const e = (yield this.requests.get("v2/internals/participant-details")).data.data;
16036
- return _s(e);
16036
+ return Ps(e);
16037
16037
  });
16038
16038
  }
16039
16039
  startRecording(e, r) {
@@ -16081,7 +16081,7 @@ class jt extends tM {
16081
16081
  title: i,
16082
16082
  useHiveMedia: n,
16083
16083
  sfu: o
16084
- } = _s(
16084
+ } = Ps(
16085
16085
  (yield this.requests.post("v2/internals/rooms", {
16086
16086
  ip_information: e
16087
16087
  })).data.data
@@ -16554,7 +16554,7 @@ let Ye = (Cg = class extends qt {
16554
16554
  const o = yield a(this, Fe).getChatMessagesPaginated(t, e, r, i, n);
16555
16555
  return {
16556
16556
  messages: o.messages.map(
16557
- (d) => Es.formatSocketServiceMessage(d)
16557
+ (d) => _s.formatSocketServiceMessage(d)
16558
16558
  ),
16559
16559
  next: o.next
16560
16560
  };
@@ -16617,7 +16617,7 @@ let Ye = (Cg = class extends qt {
16617
16617
  return l(this, arguments, function* (t, e = {}) {
16618
16618
  if (!a(this, Ti).getValue("flagsmith").hasFeature(Z.FEAT_CHAT_SDK_SEARCH))
16619
16619
  throw new R("searchMessages is temporarily disabled!", "0506");
16620
- return (yield a(this, Fe).searchMessages(t, e)).map(Es.formatSocketServiceMessage);
16620
+ return (yield a(this, Fe).searchMessages(t, e)).map(_s.formatSocketServiceMessage);
16621
16621
  });
16622
16622
  }
16623
16623
  markLastReadMessage(t, e) {
@@ -16805,7 +16805,7 @@ const ci = (Rg = class {
16805
16805
  this.getChatMessages();
16806
16806
  })
16807
16807
  ), this.chatSocketHandler.on(
16808
- Re.sendMessageToRoom,
16808
+ we.sendMessageToRoom,
16809
16809
  (s) => {
16810
16810
  const t = ci.formatSocketServiceMessage(
16811
16811
  s.message
@@ -16823,7 +16823,7 @@ const ci = (Rg = class {
16823
16823
  });
16824
16824
  }
16825
16825
  ), this.chatSocketHandler.on(
16826
- Re.sendMessageToPeers,
16826
+ we.sendMessageToPeers,
16827
16827
  (s) => {
16828
16828
  const t = ci.formatSocketServiceMessage(
16829
16829
  s.message
@@ -16835,7 +16835,7 @@ const ci = (Rg = class {
16835
16835
  });
16836
16836
  }
16837
16837
  ), this.chatSocketHandler.on(
16838
- Re.editMessage,
16838
+ we.editMessage,
16839
16839
  (s) => {
16840
16840
  const t = ci.formatSocketServiceMessage(
16841
16841
  s.message
@@ -16856,7 +16856,7 @@ const ci = (Rg = class {
16856
16856
  }));
16857
16857
  }
16858
16858
  ), this.chatSocketHandler.on(
16859
- Re.deleteMessage,
16859
+ we.deleteMessage,
16860
16860
  (s) => {
16861
16861
  if (s.channelId) {
16862
16862
  this.chat.emit("chatUpdate", {
@@ -16883,7 +16883,7 @@ const ci = (Rg = class {
16883
16883
  this.chat.channels.push(e), this.chat.emit("channelCreate", e);
16884
16884
  }
16885
16885
  ), this.chatSocketHandler.on(
16886
- Re.pinMessage,
16886
+ we.pinMessage,
16887
16887
  (s) => {
16888
16888
  const t = this.chat.messages.findIndex((r) => r.id === s.chatId);
16889
16889
  if (t === -1)
@@ -16904,10 +16904,10 @@ const ci = (Rg = class {
16904
16904
  );
16905
16905
  }
16906
16906
  }, br = /* @__PURE__ */ new WeakMap(), Rg);
16907
- let Es = ci;
16907
+ let _s = ci;
16908
16908
  uM([
16909
16909
  T.trace("ChatController.setupEvents")
16910
- ], Es.prototype, "setupEvents", 1);
16910
+ ], _s.prototype, "setupEvents", 1);
16911
16911
  var hM = Object.defineProperty, pM = Object.getOwnPropertyDescriptor, gM = (s, t, e, r) => {
16912
16912
  for (var i = r > 1 ? void 0 : r ? pM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
16913
16913
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
@@ -17393,7 +17393,7 @@ var bM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Ea = (s, t
17393
17393
  for (var i = r > 1 ? void 0 : r ? kM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17394
17394
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17395
17395
  return r && i && bM(t, e, i), i;
17396
- }, Yt, Ya, ae, Jo, Is, it, Ko, qu, Qa, fd;
17396
+ }, Yt, Ya, ae, Jo, As, it, Ko, qu, Qa, fd;
17397
17397
  class ri extends qt {
17398
17398
  constructor(e, r, i, n, o) {
17399
17399
  const d = e.getValue("logger");
@@ -17404,9 +17404,9 @@ class ri extends qt {
17404
17404
  g(this, Ya, void 0);
17405
17405
  g(this, ae, void 0);
17406
17406
  g(this, Jo, void 0);
17407
- g(this, Is, void 0);
17407
+ g(this, As, void 0);
17408
17408
  g(this, it, void 0);
17409
- 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();
17409
+ 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();
17410
17410
  }
17411
17411
  get telemetry() {
17412
17412
  return a(this, it).getValue("telemetry");
@@ -17417,10 +17417,10 @@ class ri extends qt {
17417
17417
  setupEvents() {
17418
17418
  const e = {
17419
17419
  [b.GET_STAGE_REQUESTS]: (n) => l(this, null, function* () {
17420
- m(this, Is, n);
17420
+ m(this, As, n);
17421
17421
  }),
17422
17422
  [b.UPDATE_STAGE_REQUESTS]: (o) => l(this, [o], function* ({ add: n }) {
17423
- const d = a(this, Is).length, { stageRequests: c } = this.getAccessRequests();
17423
+ const d = a(this, As).length, { stageRequests: c } = this.getAccessRequests();
17424
17424
  (n || c.length > d) && this.emit("newStageRequest", { count: c.length }), this.emit("stageAccessRequestUpdate", c);
17425
17425
  })
17426
17426
  }, r = () => {
@@ -17440,7 +17440,7 @@ class ri extends qt {
17440
17440
  };
17441
17441
  a(this, ae).permissions.on("permissionsUpdate", (n) => {
17442
17442
  const { canAcceptProductionRequests: o } = n;
17443
- o !== void 0 && (a(this, ae).permissions.acceptStageRequests ? (r(), a(this, Yt).getStageRequests()) : (i(), m(this, Is, []), this.emit("stageAccessRequestUpdate", a(this, Is))));
17443
+ o !== void 0 && (a(this, ae).permissions.acceptStageRequests ? (r(), a(this, Yt).getStageRequests()) : (i(), m(this, As, []), this.emit("stageAccessRequestUpdate", a(this, As))));
17444
17444
  }), a(this, ae).permissions.acceptStageRequests && r();
17445
17445
  }
17446
17446
  getAccessRequests() {
@@ -17455,7 +17455,7 @@ class ri extends qt {
17455
17455
  userId: r.userId,
17456
17456
  peerId: r.id
17457
17457
  }));
17458
- return m(this, Is, e), { stageRequests: a(this, Is) };
17458
+ return m(this, As, e), { stageRequests: a(this, As) };
17459
17459
  }
17460
17460
  requestAccess() {
17461
17461
  return l(this, null, function* () {
@@ -17542,7 +17542,7 @@ class ri extends qt {
17542
17542
  });
17543
17543
  }
17544
17544
  }
17545
- 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() {
17545
+ 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() {
17546
17546
  return a(this, it).getValue("roomNodeClient");
17547
17547
  }, Qa = /* @__PURE__ */ new WeakSet(), fd = function(e) {
17548
17548
  return l(this, null, function* () {
@@ -18365,17 +18365,17 @@ const Df = (Dg = class {
18365
18365
  });
18366
18366
  })
18367
18367
  ), a(this, sn).on(
18368
- Re.sendMessageToPeers,
18368
+ we.sendMessageToPeers,
18369
18369
  (s) => {
18370
- const t = Es == null ? void 0 : Es.formatSocketServiceMessage(
18370
+ const t = _s == null ? void 0 : _s.formatSocketServiceMessage(
18371
18371
  s.message
18372
18372
  );
18373
18373
  this.broadcastIframeEvent(Ie.chatMessage, { message: t });
18374
18374
  }
18375
18375
  ), a(this, sn).on(
18376
- Re.sendMessageToRoom,
18376
+ we.sendMessageToRoom,
18377
18377
  (s) => {
18378
- const t = Es == null ? void 0 : Es.formatSocketServiceMessage(
18378
+ const t = _s == null ? void 0 : _s.formatSocketServiceMessage(
18379
18379
  s.message
18380
18380
  );
18381
18381
  this.broadcastIframeEvent(Ie.chatMessage, { message: t });
@@ -19303,7 +19303,7 @@ const lg = {
19303
19303
  }), r[o][1];
19304
19304
  };
19305
19305
  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 || {});
19306
- const e0 = W_(), Ca = _s(
19306
+ const e0 = W_(), Ca = Ps(
19307
19307
  e0.config.media
19308
19308
  );
19309
19309
  function t0(s) {
@@ -19314,18 +19314,18 @@ function t0(s) {
19314
19314
  enableHighBitrate: (r = s.audio.enableHighBitrate) != null ? r : false
19315
19315
  }), t.video = s.video.quality, t;
19316
19316
  }
19317
- var ki, As;
19317
+ var ki, Ms;
19318
19318
  class s0 {
19319
19319
  constructor(t, e) {
19320
19320
  g(this, ki, void 0);
19321
- g(this, As, void 0);
19321
+ g(this, Ms, void 0);
19322
19322
  h(this, "getScreenShareConstraints", () => {
19323
19323
  var u, p, f, S, E, _, P, k, A, N, H;
19324
19324
  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;
19325
19325
  let n = (A = (k = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : k.ideal) != null ? A : 5;
19326
19326
  const o = t2 == null ? void 0 : t2.displaySurface, d = t2 == null ? void 0 : t2.selfBrowserSurface;
19327
- a(this, As).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE) && (n = parseInt(
19328
- (N = a(this, As).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE)) == null ? void 0 : N.toString(),
19327
+ a(this, Ms).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE) && (n = parseInt(
19328
+ (N = a(this, Ms).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE)) == null ? void 0 : N.toString(),
19329
19329
  10
19330
19330
  ));
19331
19331
  let c = {
@@ -19336,8 +19336,8 @@ class s0 {
19336
19336
  max: i
19337
19337
  }
19338
19338
  };
19339
- if (a(this, As).getValue("flagsmith").hasFeature(Z.SCREENSHARE_CONSTRAINTS)) {
19340
- const $ = (H = a(this, As).getValue("flagsmith").getValue(
19339
+ if (a(this, Ms).getValue("flagsmith").hasFeature(Z.SCREENSHARE_CONSTRAINTS)) {
19340
+ const $ = (H = a(this, Ms).getValue("flagsmith").getValue(
19341
19341
  Z.SCREENSHARE_CONSTRAINTS
19342
19342
  )) == null ? void 0 : H.toString();
19343
19343
  c = JSON.parse($);
@@ -19372,21 +19372,21 @@ class s0 {
19372
19372
  let i = lg.vga;
19373
19373
  if (typeof r == "string" ? i = lg[r] : r !== void 0 && (i.height.ideal = r.height.ideal, i.width.ideal = r.width.ideal), i.frameRate = {
19374
19374
  ideal: (d = (o = i.frameRate) == null ? void 0 : o.ideal) != null ? d : 24
19375
- }, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, As).getValue("flagsmith").hasFeature(Z.VIDEO_CONSTRAINTS)) {
19376
- const u = (c = a(this, As).getValue("flagsmith").getValue(
19375
+ }, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, Ms).getValue("flagsmith").hasFeature(Z.VIDEO_CONSTRAINTS)) {
19376
+ const u = (c = a(this, Ms).getValue("flagsmith").getValue(
19377
19377
  Z.VIDEO_CONSTRAINTS
19378
19378
  )) == null ? void 0 : c.toString();
19379
19379
  i = JSON.parse(u);
19380
19380
  }
19381
19381
  return e2.video = i, typeof e2.video == "boolean" || (t2 ? e2.video.deviceId = { exact: t2 } : e2.video.facingMode = "user"), e2;
19382
19382
  });
19383
- m(this, As, t), m(this, ki, e);
19383
+ m(this, Ms, t), m(this, ki, e);
19384
19384
  }
19385
19385
  getUpdatedVideoConstraints(t) {
19386
19386
  return t;
19387
19387
  }
19388
19388
  }
19389
- ki = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap();
19389
+ ki = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap();
19390
19390
  class mu extends Error {
19391
19391
  constructor(e, r, i) {
19392
19392
  super(r);
@@ -19423,7 +19423,7 @@ class r0 {
19423
19423
  });
19424
19424
  }
19425
19425
  }
19426
- var i0 = Object.defineProperty, a0 = Object.getOwnPropertyDescriptor, bs = (s, t, e, r) => {
19426
+ var i0 = Object.defineProperty, a0 = Object.getOwnPropertyDescriptor, ks = (s, t, e, r) => {
19427
19427
  for (var i = r > 1 ? void 0 : r ? a0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
19428
19428
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
19429
19429
  return r && i && i0(t, e, i), i;
@@ -19726,37 +19726,37 @@ let Bt = (Ng = class extends r0 {
19726
19726
  });
19727
19727
  }
19728
19728
  }, on = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ng);
19729
- bs([
19729
+ ks([
19730
19730
  T.trace("WebMediaInterface.destruct")
19731
19731
  ], Bt.prototype, "destruct", 1);
19732
- bs([
19732
+ ks([
19733
19733
  T.trace("WebMediaInterface.handlePermissionErrors")
19734
19734
  ], Bt.prototype, "handlePermissionErrors", 1);
19735
- bs([
19735
+ ks([
19736
19736
  T.trace("WebMediaInterface.getAudioAndVideoTrack")
19737
19737
  ], Bt.prototype, "getAudioAndVideoTrack", 1);
19738
- bs([
19738
+ ks([
19739
19739
  T.trace("WebMediaInterface.getAudioTrack")
19740
19740
  ], Bt.prototype, "getAudioTrack", 1);
19741
- bs([
19741
+ ks([
19742
19742
  T.trace("WebMediaInterface.getVideoTrack")
19743
19743
  ], Bt.prototype, "getVideoTrack", 1);
19744
- bs([
19744
+ ks([
19745
19745
  T.trace("WebMediaInterface.getScreenShareTracks")
19746
19746
  ], Bt.prototype, "getScreenShareTracks", 1);
19747
- bs([
19747
+ ks([
19748
19748
  T.trace("WebMediaInterface.getAvailableDevices")
19749
19749
  ], Bt.prototype, "getAvailableDevices", 1);
19750
- bs([
19750
+ ks([
19751
19751
  T.trace("WebMediaInterface.getAvailableDevicesByKind")
19752
19752
  ], Bt.prototype, "getAvailableDevicesByKind", 1);
19753
- bs([
19753
+ ks([
19754
19754
  T.trace("WebMediaInterface.getDevice")
19755
19755
  ], Bt.prototype, "getDevice", 1);
19756
- bs([
19756
+ ks([
19757
19757
  T.trace("WebMediaInterface.onDeviceChange")
19758
19758
  ], Bt.prototype, "onDeviceChange", 1);
19759
- Bt = bs([
19759
+ Bt = ks([
19760
19760
  ht("1600")
19761
19761
  ], Bt);
19762
19762
  const Nf = Bt, Mo = {
@@ -20444,7 +20444,7 @@ Jl([
20444
20444
  Jl([
20445
20445
  T.trace("VideoMediaHandler.conditionallyChangeTrack")
20446
20446
  ], zc.prototype, "conditionallyChangeTrack", 1);
20447
- const P0 = zc, pg = _s(
20447
+ const P0 = zc, pg = Ps(
20448
20448
  wh()
20449
20449
  );
20450
20450
  var Rt, Ii, tc, ln;
@@ -20456,7 +20456,7 @@ const Da = class {
20456
20456
  g(this, ln, void 0);
20457
20457
  if (!t)
20458
20458
  throw new R("Could not load preset.", "0904");
20459
- 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);
20459
+ 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);
20460
20460
  }
20461
20461
  static fromResponse(t) {
20462
20462
  return new Da(t);
@@ -20635,21 +20635,21 @@ var w0 = Object.defineProperty, b0 = Object.getOwnPropertyDescriptor, k0 = (s, t
20635
20635
  for (var i = r > 1 ? void 0 : r ? b0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
20636
20636
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
20637
20637
  return r && i && w0(t, e, i), i;
20638
- }, hn, pn, Ys, Ms;
20638
+ }, hn, pn, Ys, Ds;
20639
20639
  class Uf {
20640
20640
  constructor(t, e, r) {
20641
20641
  h(this, "livestream");
20642
20642
  g(this, hn, void 0);
20643
20643
  g(this, pn, void 0);
20644
20644
  g(this, Ys, void 0);
20645
- g(this, Ms, void 0);
20646
- m(this, Ms, t), m(this, pn, e), this.livestream = new xh(t, e), m(this, Ys, r), this.setupEvents();
20645
+ g(this, Ds, void 0);
20646
+ m(this, Ds, t), m(this, pn, e), this.livestream = new xh(t, e), m(this, Ys, r), this.setupEvents();
20647
20647
  }
20648
20648
  get logger() {
20649
- return a(this, Ms).getValue("logger");
20649
+ return a(this, Ds).getValue("logger");
20650
20650
  }
20651
20651
  get telemetry() {
20652
- return a(this, Ms).getValue("telemetry");
20652
+ return a(this, Ds).getValue("telemetry");
20653
20653
  }
20654
20654
  fetchInitialLivestreamingState() {
20655
20655
  return l(this, null, function* () {
@@ -20694,17 +20694,17 @@ class Uf {
20694
20694
  (t) => {
20695
20695
  this.livestream.viewerCount = t.count, this.livestream.emit("viewerCountUpdate", t.count);
20696
20696
  }
20697
- ), a(this, Ms).getValue("peerSessionStore").on(
20697
+ ), a(this, Ds).getValue("peerSessionStore").on(
20698
20698
  b.PEER_JOINED_INTERNAL,
20699
20699
  (t) => l(this, null, function* () {
20700
20700
  var e;
20701
20701
  ((e = t.flags) == null ? void 0 : e.hiddenParticipant) === true && t.recorderType === "LIVESTREAMER" && (m(this, hn, t.id), this.livestream.setLivestreamState("LIVESTREAMING"));
20702
20702
  })
20703
- ), a(this, Ms).getValue("peerSessionStore").on(b.PEER_CLOSED, (t) => {
20703
+ ), a(this, Ds).getValue("peerSessionStore").on(b.PEER_CLOSED, (t) => {
20704
20704
  t.id === a(this, hn) && (m(this, hn, void 0), this.livestream.setLivestreamState("IDLE"));
20705
- }), a(this, Ms).getValue("peerSessionStore").onAsync(b.LEAVE_MEDIA_ROOM, () => l(this, null, function* () {
20705
+ }), a(this, Ds).getValue("peerSessionStore").onAsync(b.LEAVE_MEDIA_ROOM, () => l(this, null, function* () {
20706
20706
  this.livestream.playbackUrl || (this.logger.info("Fetching livestreaming state on leave stage"), yield this.fetchInitialLivestreamingState());
20707
- })), a(this, Ms).getValue("peerSessionStore").on(b.SOCKET_SERVICE_ROOM_JOINED, () => l(this, null, function* () {
20707
+ })), a(this, Ds).getValue("peerSessionStore").on(b.SOCKET_SERVICE_ROOM_JOINED, () => l(this, null, function* () {
20708
20708
  try {
20709
20709
  yield this.fetchInitialLivestreamingState();
20710
20710
  } catch (t) {
@@ -20713,7 +20713,7 @@ class Uf {
20713
20713
  }));
20714
20714
  }
20715
20715
  }
20716
- hn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap();
20716
+ hn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap();
20717
20717
  k0([
20718
20718
  T.trace("LivestreamController.setupEvents")
20719
20719
  ], Uf.prototype, "setupEvents", 1);
@@ -21786,7 +21786,7 @@ Wt([
21786
21786
  Pt = Wt([
21787
21787
  ht("1200")
21788
21788
  ], Pt);
21789
- 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) => {
21789
+ 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) => {
21790
21790
  for (var i = r > 1 ? void 0 : r ? q0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
21791
21791
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
21792
21792
  return r && i && B0(t, e, i), i;
@@ -21834,12 +21834,12 @@ const yd = (xg = class {
21834
21834
  this.context = s;
21835
21835
  const i = s.getValue("logger");
21836
21836
  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) {
21837
- case we.HIVE: {
21837
+ case Pe.HIVE: {
21838
21838
  this.events = is;
21839
21839
  break;
21840
21840
  }
21841
- case we.CF: {
21842
- this.events = Ts;
21841
+ case Pe.CF: {
21842
+ this.events = Es;
21843
21843
  break;
21844
21844
  }
21845
21845
  default:
@@ -22698,7 +22698,7 @@ _a([
22698
22698
  _a([
22699
22699
  T.trace("ParticipantController.processNewConsumer")
22700
22700
  ], Sr.prototype, "processNewConsumer", 1);
22701
- const he = _s(
22701
+ const he = Ps(
22702
22702
  wh().permissions
22703
22703
  );
22704
22704
  var q, vn, Hi, Xd, St, Lt;
@@ -22773,7 +22773,7 @@ const Oa = class extends qt {
22773
22773
  }
22774
22774
  get mediaRoomType() {
22775
22775
  const { sfu: e } = a(this, Hi).getValue("roomNodeOptions");
22776
- return e === we.CF ? "CF" : "HIVE";
22776
+ return e === Pe.CF ? "CF" : "HIVE";
22777
22777
  }
22778
22778
  get stageEnabled() {
22779
22779
  var e;
@@ -23974,7 +23974,7 @@ class Y0 {
23974
23974
  g(this, Ke, void 0);
23975
23975
  h(this, "events");
23976
23976
  h(this, "sfuType");
23977
- m(this, Ke, t), this.sfuType = e, this.events = e === we.CF ? Ts : is;
23977
+ m(this, Ke, t), this.sfuType = e, this.events = e === Pe.CF ? Es : is;
23978
23978
  }
23979
23979
  joinRoom(t, e, r, i = false, n = null) {
23980
23980
  return l(this, null, function* () {
@@ -24025,7 +24025,7 @@ class Y0 {
24025
24025
  }
24026
24026
  consume(t) {
24027
24027
  return l(this, null, function* () {
24028
- if (this.sfuType === we.HIVE)
24028
+ if (this.sfuType === Pe.HIVE)
24029
24029
  throw new Error("Hive does not support socket consumer operations");
24030
24030
  const e = (yield a(this, Ke).sendMessagePromise(
24031
24031
  this.events.consume,
@@ -24048,7 +24048,7 @@ class Y0 {
24048
24048
  }
24049
24049
  closeConsumer(t) {
24050
24050
  return l(this, null, function* () {
24051
- if (this.sfuType === we.HIVE)
24051
+ if (this.sfuType === Pe.HIVE)
24052
24052
  throw new Error("Hive does not support socket consumer operations");
24053
24053
  return (yield a(this, Ke).sendMessagePromise(
24054
24054
  this.events.closeConsumer,
@@ -24058,7 +24058,7 @@ class Y0 {
24058
24058
  }
24059
24059
  updateConsumersSimulcastConfig(t) {
24060
24060
  return l(this, null, function* () {
24061
- if (this.sfuType === we.HIVE)
24061
+ if (this.sfuType === Pe.HIVE)
24062
24062
  throw new Error("Method not implemented");
24063
24063
  return (yield a(this, Ke).sendMessagePromise(
24064
24064
  this.events.updateConsumersSimulcastConfig,
@@ -24206,7 +24206,7 @@ class Fh extends Kl {
24206
24206
  h(this, "enableHighBitrate", false);
24207
24207
  h(this, "enableStereo", false);
24208
24208
  h(this, "enableDtx", true);
24209
- h(this, "sfu", we.HIVE);
24209
+ h(this, "sfu", Pe.HIVE);
24210
24210
  }
24211
24211
  get midTransceiverMap() {
24212
24212
  return this._mapMidTransceiver;
@@ -24256,7 +24256,7 @@ class Fh extends Kl {
24256
24256
  connect() {
24257
24257
  return l(this, null, function* () {
24258
24258
  let e;
24259
- this.sfu === we.CF ? this.pc.addTransceiver("video", { direction: "sendonly" }) : e = this.pc.createDataChannel("dyte");
24259
+ this.sfu === Pe.CF ? this.pc.addTransceiver("video", { direction: "sendonly" }) : e = this.pc.createDataChannel("dyte");
24260
24260
  const r = yield this.pc.createOffer();
24261
24261
  return yield this.pc.setLocalDescription(r), this.logger.info(`connect offer: ${JSON.stringify(r)}`), {
24262
24262
  offerSdp: r,
@@ -24686,12 +24686,12 @@ class Bh extends Fh {
24686
24686
  function Q0(s, t) {
24687
24687
  return typeof s == "undefined" ? t : typeof window != "undefined" && Object.getOwnPropertyDescriptor(window, "structuredClone") ? structuredClone(s) : JSON.parse(JSON.stringify(s));
24688
24688
  }
24689
- var lc, Bi, Ds, Zd, Os, Pr, uc, Xu, el, Jf, tl, Kf;
24689
+ var lc, Bi, Os, Zd, Ns, Pr, uc, Xu, el, Jf, tl, Kf;
24690
24690
  class X0 extends Kl {
24691
24691
  constructor(e, r) {
24692
24692
  var i;
24693
24693
  super(e);
24694
- g(this, Os);
24694
+ g(this, Ns);
24695
24695
  g(this, uc);
24696
24696
  g(this, el);
24697
24697
  g(this, tl);
@@ -24707,12 +24707,12 @@ class X0 extends Kl {
24707
24707
  h(this, "transceiver");
24708
24708
  g(this, lc, void 0);
24709
24709
  g(this, Bi, void 0);
24710
- g(this, Ds, void 0);
24710
+ g(this, Os, void 0);
24711
24711
  g(this, Zd, void 0);
24712
- 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);
24712
+ 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);
24713
24713
  }
24714
24714
  get closed() {
24715
- return a(this, Ds);
24715
+ return a(this, Os);
24716
24716
  }
24717
24717
  get kind() {
24718
24718
  return this.track.kind;
@@ -24721,31 +24721,31 @@ class X0 extends Kl {
24721
24721
  return a(this, Bi);
24722
24722
  }
24723
24723
  close(e, r) {
24724
- 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));
24724
+ 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));
24725
24725
  }
24726
24726
  getStats() {
24727
24727
  return l(this, null, function* () {
24728
- if (a(this, Ds))
24728
+ if (a(this, Os))
24729
24729
  throw new At("closed");
24730
24730
  return a(this, lc).getReceiverStats(this.localId);
24731
24731
  });
24732
24732
  }
24733
24733
  pause() {
24734
- if (this.logger.debug("consumer::pause()", a(this, Os, Pr)), a(this, Ds)) {
24735
- this.logger.error("consumer::pause() | Consumer closed", a(this, Os, Pr));
24734
+ if (this.logger.debug("consumer::pause()", a(this, Ns, Pr)), a(this, Os)) {
24735
+ this.logger.error("consumer::pause() | Consumer closed", a(this, Ns, Pr));
24736
24736
  return;
24737
24737
  }
24738
24738
  m(this, Bi, true), this.track.enabled = false, this.safeEmit("pause");
24739
24739
  }
24740
24740
  resume() {
24741
- if (this.logger.debug("consumer::resume()", a(this, Os, Pr)), a(this, Ds)) {
24742
- this.logger.error("Consumer::resume() | Consumer closed", a(this, Os, Pr));
24741
+ if (this.logger.debug("consumer::resume()", a(this, Ns, Pr)), a(this, Os)) {
24742
+ this.logger.error("Consumer::resume() | Consumer closed", a(this, Ns, Pr));
24743
24743
  return;
24744
24744
  }
24745
24745
  m(this, Bi, false), this.track.enabled = true, this.safeEmit("resume");
24746
24746
  }
24747
24747
  }
24748
- lc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Zd = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakSet(), Pr = function() {
24748
+ lc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), Zd = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakSet(), Pr = function() {
24749
24749
  return {
24750
24750
  consumer: {
24751
24751
  id: this.id,
@@ -24755,14 +24755,14 @@ lc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ds = /*
24755
24755
  }
24756
24756
  };
24757
24757
  }, uc = /* @__PURE__ */ new WeakSet(), Xu = function() {
24758
- this.logger.debug('Consumer::track "ended" event', a(this, Os, Pr)), this.safeEmit("trackended");
24758
+ this.logger.debug('Consumer::track "ended" event', a(this, Ns, Pr)), this.safeEmit("trackended");
24759
24759
  }, el = /* @__PURE__ */ new WeakSet(), Jf = function() {
24760
24760
  this.track.addEventListener("ended", V(this, uc, Xu).bind(this));
24761
24761
  }, tl = /* @__PURE__ */ new WeakSet(), Kf = function() {
24762
24762
  try {
24763
24763
  this.track.removeEventListener("ended", V(this, uc, Xu)), this.track.stop();
24764
24764
  } catch (e) {
24765
- this.logger.error("Consumer::destroyTrack()", B(D({}, a(this, Os, Pr)), {
24765
+ this.logger.error("Consumer::destroyTrack()", B(D({}, a(this, Ns, Pr)), {
24766
24766
  error: e
24767
24767
  }));
24768
24768
  }
@@ -25208,7 +25208,7 @@ const La = class extends Kl {
25208
25208
  this.setServerId(n), yield i(o);
25209
25209
  })), !(yield this.transportConnectionPromise))
25210
25210
  throw new Error("ice connection failed");
25211
- if (a(this, Gi) === we.HIVE && !(yield this.isEventsDCReady))
25211
+ if (a(this, Gi) === Pe.HIVE && !(yield this.isEventsDCReady))
25212
25212
  throw new Error("events datachannel not open");
25213
25213
  } catch (r) {
25214
25214
  throw this.logger.error("transport failed to connect:", { error: r }), r;
@@ -25432,7 +25432,7 @@ const La = class extends Kl {
25432
25432
  const { track: r, transceiver: i, streams: n } = e;
25433
25433
  this.logger.info(`track event received [trackId: ${r.id}] [mid: ${i.mid}]`);
25434
25434
  let o;
25435
- a(this, Gi) === we.HIVE ? o = `${n[0].id}:${r.kind}` : o = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
25435
+ a(this, Gi) === Pe.HIVE ? o = `${n[0].id}:${r.kind}` : o = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
25436
25436
  this.logger.info(`rtc consumer track ended [trackId: ${r.id}]`), this.unknownTracksMap.delete(o);
25437
25437
  });
25438
25438
  const d = this.consumerTrackEvents.get(o);
@@ -25634,7 +25634,7 @@ class sD {
25634
25634
  }
25635
25635
  hc = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap();
25636
25636
  const rD = 2e3;
25637
- 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;
25637
+ 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;
25638
25638
  class iD extends ut.EventEmitter {
25639
25639
  constructor(e, r, i) {
25640
25640
  super();
@@ -25666,14 +25666,14 @@ class iD extends ut.EventEmitter {
25666
25666
  lastConnectionTime: 0
25667
25667
  });
25668
25668
  g(this, zi, void 0);
25669
- g(this, Ns, "all");
25669
+ g(this, Ls, "all");
25670
25670
  g(this, Mn, void 0);
25671
25671
  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) {
25672
- case we.CF: {
25673
- m(this, In, Ts);
25672
+ case Pe.CF: {
25673
+ m(this, In, Es);
25674
25674
  break;
25675
25675
  }
25676
- case we.HIVE:
25676
+ case Pe.HIVE:
25677
25677
  default: {
25678
25678
  m(this, In, is);
25679
25679
  break;
@@ -25682,7 +25682,7 @@ class iD extends ut.EventEmitter {
25682
25682
  a(this, Dn, Ed).mediaState = {
25683
25683
  send: { state: xa.NEW },
25684
25684
  recv: { state: xa.NEW }
25685
- }, (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);
25685
+ }, (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);
25686
25686
  }
25687
25687
  get telemetry() {
25688
25688
  return this.context.getValue("telemetry");
@@ -25752,7 +25752,7 @@ class iD extends ut.EventEmitter {
25752
25752
  throw new Error("Method not implemented.");
25753
25753
  }
25754
25754
  }
25755
- 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() {
25755
+ 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() {
25756
25756
  return this.context.getValue("connectionHandler");
25757
25757
  }, mc = /* @__PURE__ */ new WeakSet(), eh = function() {
25758
25758
  m(this, zi, {
@@ -25762,7 +25762,7 @@ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25762
25762
  }, il = /* @__PURE__ */ new WeakSet(), Qf = function(e) {
25763
25763
  return l(this, null, function* () {
25764
25764
  var o, d, c, u, p, f, S, E;
25765
- (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)}`);
25765
+ (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)}`);
25766
25766
  const n = yield lt().getICEServers().catch((_) => (this.logger.warn(`failed to get iceservers from server: ${_.message}`), []));
25767
25767
  if (e.send) {
25768
25768
  const _ = this.context.getValue("flagsmith").hasFeature(
@@ -25776,9 +25776,9 @@ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25776
25776
  config: {
25777
25777
  enableHighBitrate: (u = (c = (d = this.context.getValue("defaults").mediaConfiguration) == null ? void 0 : d.audio) == null ? void 0 : c.enableHighBitrate) != null ? u : false,
25778
25778
  enableStereo: (S = (f = (p = this.context.getValue("defaults").mediaConfiguration) == null ? void 0 : p.audio) == null ? void 0 : f.enableStereo) != null ? S : false,
25779
- enableDtx: a(this, Mn) === we.HIVE ? true : !!_
25779
+ enableDtx: a(this, Mn) === Pe.HIVE ? true : !!_
25780
25780
  },
25781
- iceTransportPolicy: a(this, Ns)
25781
+ iceTransportPolicy: a(this, Ls)
25782
25782
  });
25783
25783
  }
25784
25784
  e.recv && V(this, ol, eS).call(this, {
@@ -25786,7 +25786,7 @@ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25786
25786
  additionalSettings: {
25787
25787
  encodedInsertableStreams: (E = this.context.getValue("modules").e2ee) == null ? void 0 : E.enabled
25788
25788
  },
25789
- iceTransportPolicy: a(this, Ns)
25789
+ iceTransportPolicy: a(this, Ls)
25790
25790
  });
25791
25791
  });
25792
25792
  }, fc = /* @__PURE__ */ new WeakSet(), th = function(e) {
@@ -25970,7 +25970,7 @@ bn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25970
25970
  return l(this, null, function* () {
25971
25971
  switch (this.logger.info("Called reconnect transport", { transport: { type: e } }), this.stopTransports({ [e]: true }), this.context.getValue("flagsmith").hasFeature(
25972
25972
  Z.HIVE_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED
25973
- ) && 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) {
25973
+ ) && 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) {
25974
25974
  case "send": {
25975
25975
  this.logger.info("Transport reconnected", { transport: a(this, ot) }), this.context.getValue("peerSessionStore").emit(b.RESET_PRODUCER_STATE);
25976
25976
  break;
@@ -26315,7 +26315,7 @@ class oD extends iD {
26315
26315
  m(this, Ec, new qh(this.socketHandler));
26316
26316
  }), this.recvTransportConnectedCallback = (n) => l(this, null, function* () {
26317
26317
  switch (a(this, On).clear(), this.nodeType) {
26318
- case we.CF: {
26318
+ case Pe.CF: {
26319
26319
  m(this, ps, new nD(
26320
26320
  this.context,
26321
26321
  this.events,
@@ -26325,7 +26325,7 @@ class oD extends iD {
26325
26325
  ));
26326
26326
  break;
26327
26327
  }
26328
- case we.HIVE:
26328
+ case Pe.HIVE:
26329
26329
  default:
26330
26330
  m(this, ps, new aD(this.context, n));
26331
26331
  }
@@ -26732,7 +26732,7 @@ var hD = Object.defineProperty, pD = Object.getOwnPropertyDescriptor, le = (s, t
26732
26732
  return r && i && hD(t, e, i), i;
26733
26733
  };
26734
26734
  const Nt = ["video/VP9", "video/VP8"];
26735
- 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;
26735
+ 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;
26736
26736
  const mS = (vu = class {
26737
26737
  constructor(s, t, e) {
26738
26738
  g(this, Gr);
@@ -26756,7 +26756,7 @@ const mS = (vu = class {
26756
26756
  g(this, dt, void 0);
26757
26757
  g(this, G, void 0);
26758
26758
  g(this, Bn, void 0);
26759
- g(this, Ls, void 0);
26759
+ g(this, Ss, void 0);
26760
26760
  g(this, yt, void 0);
26761
26761
  g(this, ta, void 0);
26762
26762
  g(this, sa, void 0);
@@ -26780,7 +26780,7 @@ const mS = (vu = class {
26780
26780
  ])), m(this, aa, /* @__PURE__ */ new Map([
26781
26781
  ["video/VP9", /* @__PURE__ */ new Set()],
26782
26782
  ["video/VP8", /* @__PURE__ */ new Set()]
26783
- ])), 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(
26783
+ ])), 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(
26784
26784
  this.context,
26785
26785
  a(this, G).socketHandler.audioActivity.bind(a(this, G).socketHandler)
26786
26786
  )), this.e2ee = (n = (i = s.getValue("modules").e2ee) == null ? void 0 : i.enabled) != null ? n : false, this.handleSocketEvents(), this.handleCallstatsEvents(), m(this, Dc, bh(
@@ -26846,21 +26846,23 @@ const mS = (vu = class {
26846
26846
  }
26847
26847
  leaveRoom() {
26848
26848
  return l(this, null, function* () {
26849
- var e;
26849
+ var t;
26850
26850
  a(this, G).stopAllTransports(), m(this, sa, false), a(this, Gr, ka).mediaJoinAttempted = false;
26851
26851
  const s = {
26852
26852
  closeRoom: false
26853
26853
  };
26854
- try {
26855
- const r = yield a(this, dt).sendMessagePromise(
26856
- a(this, yt).leaveRoom,
26857
- gR.toBinary(s)
26858
- );
26859
- ((e = sw.fromBinary(r.payload)) == null ? void 0 : e.closed) || this.logger.warn("weird state on peer closed and should not happen");
26860
- } catch (r) {
26861
- this.logger.error("error on sending leave room request", { error: r });
26854
+ if (a(this, Ss) !== Pe.CF) {
26855
+ try {
26856
+ const r = yield a(this, dt).sendMessagePromise(
26857
+ a(this, yt).leaveRoom,
26858
+ gR.toBinary(s)
26859
+ );
26860
+ ((t = sw.fromBinary(r.payload)) == null ? void 0 : t.closed) || this.logger.warn("weird state on peer closed and should not happen");
26861
+ } catch (r) {
26862
+ this.logger.error("error on sending leave room request", { error: r });
26863
+ }
26864
+ this.context.getValue("callstats").callEnded(), this.context.getValue("telemetry").destruct();
26862
26865
  }
26863
- this.context.getValue("callstats").callEnded(), this.context.getValue("telemetry").destruct();
26864
26866
  });
26865
26867
  }
26866
26868
  activatePeers(s) {
@@ -26901,8 +26903,8 @@ const mS = (vu = class {
26901
26903
  }
26902
26904
  return this._shareWebcam(s, t);
26903
26905
  }
26904
- 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;
26905
- !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(
26906
+ 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;
26907
+ !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(
26906
26908
  Z.TRACK_HINT
26907
26909
  ));
26908
26910
  const c = () => {
@@ -26967,7 +26969,7 @@ const mS = (vu = class {
26967
26969
  supportsRemoteControl: Te.isElectron()
26968
26970
  },
26969
26971
  stopTracks: false,
26970
- zeroRtpOnPause: a(this, Ls) !== we.CF
26972
+ zeroRtpOnPause: a(this, Ss) !== Pe.CF
26971
26973
  }, c = () => {
26972
26974
  };
26973
26975
  o = a(this, G).createProducer(
@@ -27395,7 +27397,7 @@ const mS = (vu = class {
27395
27397
  t.delete(s), !(t.size !== 0 || e === Nt[0]) && this.disableWebcam(e);
27396
27398
  }));
27397
27399
  }
27398
- }, 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() {
27400
+ }, 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() {
27399
27401
  return this.context.getValue("connectionHandler");
27400
27402
  }, Cl = /* @__PURE__ */ new WeakSet(), fS = function(s, t, e, r) {
27401
27403
  return l(this, null, function* () {
@@ -27494,7 +27496,7 @@ const mS = (vu = class {
27494
27496
  });
27495
27497
  }, Al = /* @__PURE__ */ new WeakSet(), _S = function(s) {
27496
27498
  return l(this, null, function* () {
27497
- if (!(a(this, Ls) === we.HIVE || !this.context.getValue("flagsmith").hasFeature(
27499
+ if (!(a(this, Ss) === Pe.HIVE || !this.context.getValue("flagsmith").hasFeature(
27498
27500
  Z.PRECREATE_PRODUCERS
27499
27501
  ) || !s))
27500
27502
  try {
@@ -27531,7 +27533,7 @@ const mS = (vu = class {
27531
27533
  e2ee: this.e2ee
27532
27534
  },
27533
27535
  stopTracks: false,
27534
- zeroRtpOnPause: a(this, Ls) !== we.CF
27536
+ zeroRtpOnPause: a(this, Ss) !== Pe.CF
27535
27537
  };
27536
27538
  }, Ol = /* @__PURE__ */ new WeakSet(), RS = function(s, t) {
27537
27539
  return {
@@ -27654,7 +27656,7 @@ var gD = Object.defineProperty, mD = Object.getOwnPropertyDescriptor, Pa = (s, t
27654
27656
  for (var i = r > 1 ? void 0 : r ? mD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
27655
27657
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
27656
27658
  return r && i && gD(t, e, i), i;
27657
- }, Wr, Ss, te, Et, Vt, $g;
27659
+ }, Wr, vs, te, Et, Vt, $g;
27658
27660
  const kS = ($g = class {
27659
27661
  constructor(s, t, e, r) {
27660
27662
  g(this, Et);
@@ -27662,10 +27664,10 @@ const kS = ($g = class {
27662
27664
  h(this, "authToken");
27663
27665
  g(this, Wr, void 0);
27664
27666
  h(this, "viewType");
27665
- g(this, Ss, void 0);
27667
+ g(this, vs, void 0);
27666
27668
  g(this, te, void 0);
27667
27669
  const { socket: i } = e, n = s.getValue("authToken");
27668
- 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();
27670
+ 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();
27669
27671
  }
27670
27672
  get peerId() {
27671
27673
  return a(this, te).getValue("peerId");
@@ -27801,17 +27803,17 @@ const kS = ($g = class {
27801
27803
  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" });
27802
27804
  }), a(this, te).getValue("peerSessionStore").on(b.SOCKET_SERVICE_FAILED, () => {
27803
27805
  this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
27804
- }), a(this, Ss).on(x.waitingRoomRequestAccepted, () => {
27806
+ }), a(this, vs).on(x.waitingRoomRequestAccepted, () => {
27805
27807
  this.waitlistAcceptHandler();
27806
- }), a(this, Ss).on(gd.updateUserPreset, (s) => {
27808
+ }), a(this, vs).on(gd.updateUserPreset, (s) => {
27807
27809
  s.updatePeersPresets.forEach((t) => {
27808
27810
  t.userIds === this.self.userId && a(this, te).getValue("peerSessionStore").emit(b.UPDATE_PERMISSIONS, t.patch);
27809
27811
  });
27810
- }), a(this, Ss).on(x.waitingRoomRequestDenied, () => {
27812
+ }), a(this, vs).on(x.waitingRoomRequestDenied, () => {
27811
27813
  this.waitlistRejectedHandler();
27812
- }), a(this, Ss).on(x.kick, () => {
27814
+ }), a(this, vs).on(x.kick, () => {
27813
27815
  this.kickHandler({ kickType: "kick" });
27814
- }), a(this, Ss).on(x.kickAll, () => {
27816
+ }), a(this, vs).on(x.kickAll, () => {
27815
27817
  this.kickHandler({ kickType: "kickAll" });
27816
27818
  }), a(this, te).getValue("peerSessionStore").onAsync(b.JOIN_MEDIA_ROOM, this.joinMediaRoom.bind(this)), a(this, te).getValue("peerSessionStore").on(
27817
27819
  b.PRODUCER_SCORE_UPDATE,
@@ -27846,10 +27848,10 @@ const kS = ($g = class {
27846
27848
  joinRoom(s = false) {
27847
27849
  return l(this, null, function* () {
27848
27850
  try {
27849
- const { peer: t } = yield a(this, Ss).joinRoom(
27851
+ const { peer: t } = yield a(this, vs).joinRoom(
27850
27852
  this.self
27851
27853
  );
27852
- a(this, Ss).socket.flush();
27854
+ a(this, vs).socket.flush();
27853
27855
  const e = Dh(t.stageType);
27854
27856
  if (a(this, te).setValue("stageStatus", e, false), t.waitlisted) {
27855
27857
  this.waitlistedHandler();
@@ -27933,7 +27935,7 @@ const kS = ($g = class {
27933
27935
  yield this.self.disableAudio(), yield this.self.disableVideo(), yield this.self.disableScreenShare(), this.self.cleanUpTracks(), this.self.destructMediaHandler(), navigator.isReactNative || this.self.removeDocumentEventListeners();
27934
27936
  });
27935
27937
  }
27936
- }, Wr = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), Vt = function() {
27938
+ }, Wr = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), Vt = function() {
27937
27939
  return a(this, te).getValue("roomNodeClient");
27938
27940
  }, $g);
27939
27941
  let ai = kS;
@@ -28414,32 +28416,32 @@ class IS {
28414
28416
  r = Zp.fromBinary.bind(Zp);
28415
28417
  break;
28416
28418
  }
28417
- case Ts.peerJoinedBroadcast:
28419
+ case Es.peerJoinedBroadcast:
28418
28420
  case is.peerJoinedBroadcast: {
28419
28421
  r = Bp.fromBinary.bind(Bp);
28420
28422
  break;
28421
28423
  }
28422
- case Ts.selfJoinComplete:
28424
+ case Es.selfJoinComplete:
28423
28425
  case is.selfJoinComplete: {
28424
28426
  r = Au.fromBinary.bind(Au);
28425
28427
  break;
28426
28428
  }
28427
- case Ts.globalPeerPinBroadcast:
28429
+ case Es.globalPeerPinBroadcast:
28428
28430
  case is.globalPeerPinBroadcast: {
28429
28431
  r = Gp.fromBinary.bind(Gp);
28430
28432
  break;
28431
28433
  }
28432
- case Ts.selectedPeer:
28434
+ case Es.selectedPeer:
28433
28435
  case is.selectedPeer: {
28434
28436
  r = Iu.fromBinary.bind(Iu);
28435
28437
  break;
28436
28438
  }
28437
- case Ts.selectedPeerDiff:
28439
+ case Es.selectedPeerDiff:
28438
28440
  case is.selectedPeerDiff: {
28439
28441
  r = Hp.fromBinary.bind(Hp);
28440
28442
  break;
28441
28443
  }
28442
- case Ts.leaveRoom:
28444
+ case Es.leaveRoom:
28443
28445
  case is.leaveRoom: {
28444
28446
  r = Mu.fromBinary.bind(Mu);
28445
28447
  break;
@@ -29116,13 +29118,13 @@ class UD {
29116
29118
  ui = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap();
29117
29119
  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 || {});
29118
29120
  const $D = "2", FD = "3";
29119
- 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;
29121
+ 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;
29120
29122
  class HD {
29121
29123
  constructor(t, e) {
29122
29124
  var F;
29123
- 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);
29125
+ 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);
29124
29126
  var r, i, n, o, d, c, u, p, f;
29125
- 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, {
29127
+ 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, {
29126
29128
  code: void 0,
29127
29129
  reason: void 0
29128
29130
  }), ne(this, Ue, (F = M(this, Ee).logger) != null ? F : new UD(M(this, Ee).debug ? "debug" : "info")), ne(this, Hs, new xD());
@@ -29166,7 +29168,7 @@ class HD {
29166
29168
  try {
29167
29169
  ne(this, Ae, new WebSocket(_e(this, oh, FS).call(this, M(this, Ia)))), M(this, Ae).binaryType = "arraybuffer", M(this, Ue).debug("Connecting");
29168
29170
  const i = setTimeout(() => {
29169
- 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(
29171
+ 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(
29170
29172
  "reconnecting"
29171
29173
  ), _e(this, Do, Cd).call(this)), r(new Error("Connection timed out!"));
29172
29174
  }, M(this, Ee).connectionTimeout);
@@ -29181,7 +29183,7 @@ class HD {
29181
29183
  try {
29182
29184
  i && clearTimeout(i);
29183
29185
  const { code: o, reason: d } = n;
29184
- 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);
29186
+ 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);
29185
29187
  } catch (o) {
29186
29188
  _e(this, ko, Pd).call(this, o);
29187
29189
  }
@@ -29241,7 +29243,7 @@ class HD {
29241
29243
  }), M(this, Ae).close(1e3, "Sockrates disconnect method called.");
29242
29244
  }
29243
29245
  }
29244
- 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) {
29246
+ 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) {
29245
29247
  if (s.startsWith("ws://") || s.startsWith("wss://"))
29246
29248
  return s;
29247
29249
  if (s.startsWith("https://"))
@@ -29264,28 +29266,28 @@ Ae = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Ee = /*
29264
29266
  ne(this, Qr, { reason: t, code: s }), M(this, ze).emit("disconnected", { code: s, reason: t });
29265
29267
  }, uh = /* @__PURE__ */ new WeakSet(), BS = function() {
29266
29268
  const { reason: s, code: t } = M(this, Qr);
29267
- 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(
29269
+ 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(
29268
29270
  "reconnecting"
29269
29271
  ), _e(this, Do, Cd).call(this));
29270
29272
  }, Do = /* @__PURE__ */ new WeakSet(), Cd = function(s = true) {
29271
29273
  return l(this, null, function* () {
29272
- if (s && M(this, ys)) {
29274
+ if (s && M(this, Ts)) {
29273
29275
  M(this, Ue).debug("Reconnect called when already in a reconnect loop. Ignoring.");
29274
29276
  return;
29275
29277
  }
29276
- if (M(this, ys) || M(this, Hs).reset(), M(this, Ee).maxReconnectionAttempts !== null && M(this, Hs).getAttempts() >= M(this, Ee).maxReconnectionAttempts) {
29278
+ if (M(this, Ts) || M(this, Hs).reset(), M(this, Ee).maxReconnectionAttempts !== null && M(this, Hs).getAttempts() >= M(this, Ee).maxReconnectionAttempts) {
29277
29279
  M(this, ze).emit(
29278
29280
  "failed"
29279
- ), ne(this, ys, false);
29281
+ ), ne(this, Ts, false);
29280
29282
  return;
29281
29283
  }
29282
- ne(this, ys, true), _e(this, Lo, Bd).call(this), _e(this, $a, No).call(this);
29284
+ ne(this, Ts, true), _e(this, Lo, Bd).call(this), _e(this, $a, No).call(this);
29283
29285
  try {
29284
29286
  if (yield M(this, Hs).wait(), M(this, lr) === false)
29285
29287
  return;
29286
29288
  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))
29287
29289
  throw Error("Reconnect Failed");
29288
- ne(this, ys, false), ne(this, Qr, {
29290
+ ne(this, Ts, false), ne(this, Qr, {
29289
29291
  code: void 0,
29290
29292
  reason: void 0
29291
29293
  }), M(this, ze).emit(
@@ -29319,7 +29321,7 @@ var BD = Object.defineProperty, qD = Object.getOwnPropertyDescriptor, Ql = (s, t
29319
29321
  return r && i && BD(t, e, i), i;
29320
29322
  };
29321
29323
  const Tg = 65535, jD = 3e3;
29322
- var Jr, Pe, Ce, De, rs, tt, $c, ph, Fc, gh, Fg;
29324
+ var Jr, Ce, Re, De, rs, tt, $c, ph, Fc, gh, Fg;
29323
29325
  const qS = (Fg = class {
29324
29326
  constructor(s, {
29325
29327
  peerId: t,
@@ -29327,11 +29329,11 @@ const qS = (Fg = class {
29327
29329
  authToken: r,
29328
29330
  capabilities: i
29329
29331
  }) {
29330
- g(this, Ce);
29332
+ g(this, Re);
29331
29333
  g(this, $c);
29332
29334
  g(this, Fc);
29333
29335
  g(this, Jr, void 0);
29334
- g(this, Pe, void 0);
29336
+ g(this, Ce, void 0);
29335
29337
  h(this, "roomName");
29336
29338
  h(this, "authToken");
29337
29339
  h(this, "capabilities");
@@ -29340,7 +29342,7 @@ const qS = (Fg = class {
29340
29342
  var n;
29341
29343
  if (!t || !e || !r)
29342
29344
  throw new R("peerId, meetingId, or authToken can not be empty", "0404");
29343
- 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), {
29345
+ 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), {
29344
29346
  autoReconnect: true,
29345
29347
  disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
29346
29348
  queueOnDisconnect: true,
@@ -29349,10 +29351,10 @@ const qS = (Fg = class {
29349
29351
  })), this.handleSocketConnectionEvents();
29350
29352
  }
29351
29353
  get joinAttempted() {
29352
- return a(this, Ce, De).socketJoinAttempted;
29354
+ return a(this, Re, De).socketJoinAttempted;
29353
29355
  }
29354
29356
  set joinAttempted(s) {
29355
- a(this, Ce, De).socketJoinAttempted = s;
29357
+ a(this, Re, De).socketJoinAttempted = s;
29356
29358
  }
29357
29359
  get telemetry() {
29358
29360
  return a(this, tt).getValue("telemetry");
@@ -29364,7 +29366,7 @@ const qS = (Fg = class {
29364
29366
  return a(this, tt).getValue("peerId");
29365
29367
  }
29366
29368
  updateURL(s) {
29367
- 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));
29369
+ 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));
29368
29370
  }
29369
29371
  static getSocketEdgeDomain(s) {
29370
29372
  return la({ servicePrefix: "socket-edge", baseURI: s });
@@ -29374,7 +29376,7 @@ const qS = (Fg = class {
29374
29376
  }
29375
29377
  connect() {
29376
29378
  return l(this, null, function* () {
29377
- a(this, Ce, De).socketJoinAttempted = true, yield a(this, Pe).connect(), a(this, Ce, De).socketJoinAttempted = true, a(this, Ce, De).socketState = {
29379
+ a(this, Re, De).socketJoinAttempted = true, yield a(this, Ce).connect(), a(this, Re, De).socketJoinAttempted = true, a(this, Re, De).socketState = {
29378
29380
  state: "connected",
29379
29381
  reconnected: false,
29380
29382
  reconnectionAttempt: void 0
@@ -29383,7 +29385,7 @@ const qS = (Fg = class {
29383
29385
  }
29384
29386
  disconnect() {
29385
29387
  return l(this, null, function* () {
29386
- a(this, Ce, De).socketJoinAttempted = false, a(this, Pe).disconnect(), a(this, Ce, De).socketJoinAttempted = true, a(this, Ce, De).socketState = {
29388
+ a(this, Re, De).socketJoinAttempted = false, a(this, Ce).disconnect(), a(this, Re, De).socketJoinAttempted = true, a(this, Re, De).socketState = {
29387
29389
  state: "disconnected",
29388
29390
  reconnected: false,
29389
29391
  reconnectionAttempt: void 0
@@ -29392,14 +29394,14 @@ const qS = (Fg = class {
29392
29394
  }
29393
29395
  get isConnected() {
29394
29396
  try {
29395
- return a(this, Pe).readyState === 1;
29397
+ return a(this, Ce).readyState === 1;
29396
29398
  } catch (s) {
29397
29399
  return false;
29398
29400
  }
29399
29401
  }
29400
29402
  sendMessage(s, t, e) {
29401
29403
  const r = {};
29402
- return a(this, tt).getValue("telemetry").injectContext(r), a(this, Pe).send(
29404
+ return a(this, tt).getValue("telemetry").injectContext(r), a(this, Ce).send(
29403
29405
  s,
29404
29406
  e != null ? e : V(this, Fc, gh).call(this),
29405
29407
  t,
@@ -29427,11 +29429,11 @@ const qS = (Fg = class {
29427
29429
  return new Promise(
29428
29430
  (o, d) => {
29429
29431
  const c = (_, P) => {
29430
- a(this, Pe).removeListener(n, _), a(this, Pe).removeListener(Tg, P), a(this, Pe).removeListener(
29432
+ a(this, Ce).removeListener(n, _), a(this, Ce).removeListener(Tg, P), a(this, Ce).removeListener(
29431
29433
  is.errorResponse,
29432
29434
  P
29433
- ), a(this, Pe).removeListener(
29434
- Ts.errorResponse,
29435
+ ), a(this, Ce).removeListener(
29436
+ Es.errorResponse,
29435
29437
  P
29436
29438
  );
29437
29439
  }, u = r != null ? r : V(this, Fc, gh).call(this), p = {};
@@ -29462,9 +29464,9 @@ const qS = (Fg = class {
29462
29464
  }) => {
29463
29465
  u === _ && (o({ id: _, payload: P }), c(E, S));
29464
29466
  };
29465
- 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(() => {
29467
+ 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(() => {
29466
29468
  c(E, S), d(new Error(`request timeout for callback eventId:${s}`));
29467
- }, t), a(this, Pe).send(
29469
+ }, t), a(this, Ce).send(
29468
29470
  s,
29469
29471
  u,
29470
29472
  e,
@@ -29474,61 +29476,61 @@ const qS = (Fg = class {
29474
29476
  );
29475
29477
  }
29476
29478
  on(s, t) {
29477
- a(this, Pe).on(s, t);
29479
+ a(this, Ce).on(s, t);
29478
29480
  }
29479
29481
  onStateEvent(s, t) {
29480
- a(this, Pe).on(s, t);
29482
+ a(this, Ce).on(s, t);
29481
29483
  }
29482
29484
  removeListener(s, t) {
29483
- a(this, Pe).removeListener(s, t);
29485
+ a(this, Ce).removeListener(s, t);
29484
29486
  }
29485
29487
  removeListeners(s) {
29486
- a(this, Pe).removeListeners(s);
29488
+ a(this, Ce).removeListeners(s);
29487
29489
  }
29488
29490
  flush() {
29489
- return a(this, Pe).flush();
29491
+ return a(this, Ce).flush();
29490
29492
  }
29491
29493
  handleSocketConnectionEvents() {
29492
29494
  this.onStateEvent("connected", () => l(this, null, function* () {
29493
- 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");
29495
+ 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");
29494
29496
  })), this.onStateEvent("disconnected", ({ code: s, reason: t }) => {
29495
29497
  var i;
29496
29498
  this.logger.info("SocketService::Disconnected from socket-edge", { error: { code: s, reason: t }, country: T.location.country });
29497
- const { recv: e, send: r } = (i = a(this, Ce, De).mediaState) != null ? i : {};
29499
+ const { recv: e, send: r } = (i = a(this, Re, De).mediaState) != null ? i : {};
29498
29500
  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(
29499
29501
  b.SOCKET_SERVICE_DISCONNECTED,
29500
29502
  {
29501
- joinAttempted: a(this, Ce, De).joinAttempted
29503
+ joinAttempted: a(this, Re, De).joinAttempted
29502
29504
  }
29503
29505
  ) : m(this, rs, setTimeout(() => {
29504
29506
  a(this, tt).getValue("peerSessionStore").emit(
29505
29507
  b.SOCKET_SERVICE_DISCONNECTED,
29506
- { joinAttempted: a(this, Ce, De).joinAttempted }
29508
+ { joinAttempted: a(this, Re, De).joinAttempted }
29507
29509
  ), m(this, rs, void 0);
29508
- }, jD)), a(this, Ce, De).updateSocketConnectionState("disconnected");
29510
+ }, jD)), a(this, Re, De).updateSocketConnectionState("disconnected");
29509
29511
  }), this.onStateEvent("reconnecting", () => l(this, null, function* () {
29510
- this.logger.info("SocketService::Reconnecting to socket-edge", { country: T.location.country }), a(this, Ce, De).updateSocketConnectionState("reconnecting");
29512
+ this.logger.info("SocketService::Reconnecting to socket-edge", { country: T.location.country }), a(this, Re, De).updateSocketConnectionState("reconnecting");
29511
29513
  })), this.onStateEvent("reconnectAttempt", (t) => l(this, [t], function* ({ attempt: s }) {
29512
29514
  this.logger.info("SocketService::Attempting to reconnect to socket-edge", {
29513
29515
  socket: {
29514
29516
  retryAttempt: s
29515
29517
  }
29516
- }), a(this, Ce, De).updateSocketConnectionState("reconnectAttempt", s);
29518
+ }), a(this, Re, De).updateSocketConnectionState("reconnectAttempt", s);
29517
29519
  })), this.onStateEvent("reconnectFailure", ({ attempt: s }) => {
29518
29520
  this.logger.info("SocketService::Reconnect attempt to socket-edge failed", {
29519
29521
  socket: {
29520
29522
  retryAttempt: s
29521
29523
  }
29522
- }), a(this, Ce, De).updateSocketConnectionState("reconnectFailure", s);
29524
+ }), a(this, Re, De).updateSocketConnectionState("reconnectFailure", s);
29523
29525
  }), this.onStateEvent("reconnected", () => l(this, null, function* () {
29524
- 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, {
29525
- wasJoinAttempted: a(this, Ce, De).mediaJoinAttempted
29526
- }), a(this, Ce, De).updateSocketConnectionState("reconnected");
29526
+ 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, {
29527
+ wasJoinAttempted: a(this, Re, De).mediaJoinAttempted
29528
+ }), a(this, Re, De).updateSocketConnectionState("reconnected");
29527
29529
  })), this.onStateEvent("failed", () => l(this, null, function* () {
29528
- 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");
29530
+ 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");
29529
29531
  }));
29530
29532
  }
29531
- }, Jr = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakSet(), De = function() {
29533
+ }, Jr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakSet(), De = function() {
29532
29534
  return a(this, tt).getValue("connectionHandler");
29533
29535
  }, rs = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakSet(), ph = function(s) {
29534
29536
  let t = qS.getSocketEdgeDomain(a(this, tt).getValue("baseURI"));
@@ -29665,18 +29667,18 @@ var WD = Object.defineProperty, JD = Object.getOwnPropertyDescriptor, KD = (s, t
29665
29667
  for (var i = r > 1 ? void 0 : r ? JD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
29666
29668
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
29667
29669
  return r && i && WD(t, e, i), i;
29668
- }, vs;
29670
+ }, ys;
29669
29671
  class jS extends qt {
29670
29672
  constructor(e) {
29671
29673
  const r = e.getValue("logger");
29672
29674
  super(r);
29673
29675
  h(this, "meetings", []);
29674
29676
  h(this, "parentMeeting", null);
29675
- g(this, vs, void 0);
29676
- m(this, vs, e);
29677
+ g(this, ys, void 0);
29678
+ m(this, ys, e);
29677
29679
  }
29678
29680
  get supportsConnectedMeetings() {
29679
- return a(this, vs).getValue("self").id !== "";
29681
+ return a(this, ys).getValue("self").id !== "";
29680
29682
  }
29681
29683
  get isActive() {
29682
29684
  return this.meetings.length !== 0;
@@ -29688,12 +29690,12 @@ class jS extends qt {
29688
29690
  }
29689
29691
  getConnectedMeetings() {
29690
29692
  return l(this, null, function* () {
29691
- return this.validateConnectedMeetingsAction(), yield a(this, vs).getValue("connectedMeetingsSocketHandler").getConnectedRoomsDump();
29693
+ return this.validateConnectedMeetingsAction(), yield a(this, ys).getValue("connectedMeetingsSocketHandler").getConnectedRoomsDump();
29692
29694
  });
29693
29695
  }
29694
29696
  createMeetings(e) {
29695
29697
  return l(this, null, function* () {
29696
- return this.validateConnectedMeetingsAction(), (yield a(this, vs).getValue("connectedMeetingsSocketHandler").createConnectedRooms(
29698
+ return this.validateConnectedMeetingsAction(), (yield a(this, ys).getValue("connectedMeetingsSocketHandler").createConnectedRooms(
29697
29699
  e
29698
29700
  )).map((i) => ({
29699
29701
  id: i.id,
@@ -29703,7 +29705,7 @@ class jS extends qt {
29703
29705
  }
29704
29706
  updateMeetings(e) {
29705
29707
  return l(this, null, function* () {
29706
- this.validateConnectedMeetingsAction(), yield a(this, vs).getValue("connectedMeetingsSocketHandler").updateConnectedRooms(
29708
+ this.validateConnectedMeetingsAction(), yield a(this, ys).getValue("connectedMeetingsSocketHandler").updateConnectedRooms(
29707
29709
  e.map((r) => ({ meetingId: r.id, title: r.title }))
29708
29710
  );
29709
29711
  });
@@ -29716,7 +29718,7 @@ class jS extends qt {
29716
29718
  this.parentMeeting.id,
29717
29719
  n.participants.map((o) => o.id)
29718
29720
  ) : Promise.resolve());
29719
- return yield Promise.all(r), yield a(this, vs).getValue("connectedMeetingsSocketHandler").disableConnectedRooms(
29721
+ return yield Promise.all(r), yield a(this, ys).getValue("connectedMeetingsSocketHandler").disableConnectedRooms(
29720
29722
  e
29721
29723
  );
29722
29724
  });
@@ -29724,7 +29726,7 @@ class jS extends qt {
29724
29726
  moveParticipants(e, r, i) {
29725
29727
  return l(this, null, function* () {
29726
29728
  this.validateConnectedMeetingsAction();
29727
- const n = yield a(this, vs).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29729
+ const n = yield a(this, ys).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29728
29730
  {
29729
29731
  sourceMeetingId: e,
29730
29732
  destinationMeetingId: r,
@@ -29739,7 +29741,7 @@ class jS extends qt {
29739
29741
  moveParticipantsWithCustomPreset(e, r, i) {
29740
29742
  return l(this, null, function* () {
29741
29743
  this.validateConnectedMeetingsAction();
29742
- const n = yield a(this, vs).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29744
+ const n = yield a(this, ys).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29743
29745
  {
29744
29746
  sourceMeetingId: e,
29745
29747
  destinationMeetingId: r,
@@ -29779,7 +29781,7 @@ class jS extends qt {
29779
29781
  });
29780
29782
  }
29781
29783
  }
29782
- vs = /* @__PURE__ */ new WeakMap();
29784
+ ys = /* @__PURE__ */ new WeakMap();
29783
29785
  KD([
29784
29786
  Dt({ maxInvocations: 60, period: 60 })
29785
29787
  ], jS.prototype, "getConnectedMeetings", 1);
@@ -29967,7 +29969,7 @@ const Ma = class {
29967
29969
  const u = new FM(s);
29968
29970
  s.setValue("connectionHandler", u);
29969
29971
  const p = Ma.createSocketService(s), f = p.connect(), S = c.getUserDetails(), E = c.getPlugins();
29970
- let _ = we.HIVE, P, k = "";
29972
+ let _ = Pe.HIVE, P, k = "";
29971
29973
  try {
29972
29974
  yield Ma.setupFlagsmith(s);
29973
29975
  } catch (re) {
@@ -30071,7 +30073,7 @@ const Ma = class {
30071
30073
  s
30072
30074
  );
30073
30075
  t.setValue("connectedMeetingsSocketHandler", Je);
30074
- 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(
30076
+ 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(
30075
30077
  t,
30076
30078
  I,
30077
30079
  c,
@@ -30089,7 +30091,7 @@ const Ma = class {
30089
30091
  ie.self,
30090
30092
  I,
30091
30093
  f
30092
- )), (Tr = d.e2ee) != null && Tr.enabled && d.e2ee.manager.init(p, t.getValue("peerSessionStore")), d.chat && (P = yield Es.init(
30094
+ )), (Tr = d.e2ee) != null && Tr.enabled && d.e2ee.manager.init(p, t.getValue("peerSessionStore")), d.chat && (P = yield _s.init(
30093
30095
  t,
30094
30096
  vr,
30095
30097
  U,
@@ -30103,7 +30105,7 @@ const Ma = class {
30103
30105
  if (d.poll && (_ = yield Rf.init(
30104
30106
  t,
30105
30107
  ie.self,
30106
- ks
30108
+ Is
30107
30109
  )), d.recording && (H = new Of(
30108
30110
  t,
30109
30111
  ie.self,
@@ -30364,7 +30366,7 @@ let si = (Bg = class {
30364
30366
  video: true
30365
30367
  };
30366
30368
  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 || (() => {
30367
- })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "VERSION_PLACEHOLDER"), (u = e.modules) != null && u.experimentalAudioPlayback && n.setValue("audioPlayback", new sO()), n;
30369
+ })), 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;
30368
30370
  }
30369
30371
  join() {
30370
30372
  return l(this, null, function* () {