@cloudflare/realtimekit 1.2.3-staging.3 → 1.2.4-staging.1

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.es5.js CHANGED
@@ -2,8 +2,8 @@ import { v4 as Ks, validate as Mv } from "uuid";
2
2
  import _v from "bowser";
3
3
  import { MessageType as M, PbLong as Ko, typeofJsonValue as mm } from "@protobuf-ts/runtime";
4
4
  import * as Ml from "worker-timers";
5
- import * as Dn from "sdp-transform";
6
- var Zg = ["id"], xg = ["chat", "connectedMeetings", "plugins", "polls", "media"], em = ["id"], rm = ["meetingId"], cn, Za, z, Jn, $e, Kn, oa, Fl, so, dn, Hl, pl, xa, ei, Eo, pn, ri, zn, wi, oo, Yn, uo, lo, hn, ti, Or, Qe, Dr, ni, ai, It, ii, vn, si, qr, oi, et, Pi, ui, li, ci, Gr, Ae, di, pi, Nr, Qn, bn, Xn, hl, Mt, co, mn, Zn, _t, vl, po, fl, gl, ye, ho, xn, hi, ea, wr, Wr, rt, vi, fi, ur, gi, Ne, Ot, Ve, mi, Ie, Si, Ei, vo, kp, Uc, Co, Ro, Xe, W, Ci, lr, ua, la, ra, fo, Kr, Dt, js, ta, na, hr, Pr, fn, ml, Bl, ql, Ao, Gl, Wl, Jl, Kl, We, aa, yl, kl, bl, ia, tt, Z, cr, gn, be, Te, Jr, Je, go, mo, he, Ue, sa;
5
+ import * as On from "sdp-transform";
6
+ var Zg = ["id"], xg = ["chat", "connectedMeetings", "plugins", "polls", "media"], em = ["id"], rm = ["meetingId"], cn, Za, z, Wn, $e, Jn, oa, Fl, so, Kn, Hl, pl, xa, ei, Eo, dn, ri, zn, wi, oo, Yn, uo, lo, pn, ti, Or, Qe, Dr, ni, ai, It, ii, hn, si, qr, oi, et, Pi, ui, li, ci, Gr, Ae, di, pi, Nr, Qn, kn, Xn, hl, Mt, co, gn, Zn, _t, vl, po, fl, gl, ye, ho, xn, hi, ea, wr, Wr, rt, vi, fi, ur, gi, Ne, Ot, Ve, mi, Ie, Si, Ei, vo, kp, Uc, Co, Ro, Xe, W, Ci, lr, ua, la, ra, fo, Kr, Dt, js, ta, na, hr, Pr, vn, ml, Bl, ql, Ao, Gl, Wl, Jl, Kl, We, aa, yl, kl, bl, ia, tt, Z, cr, fn, be, Te, Jr, Je, go, mo, he, Ue, sa;
7
7
  function cc(o, t) {
8
8
  if (o == null)
9
9
  return {};
@@ -108,7 +108,7 @@ function N(o) {
108
108
  function lm(o, t, e) {
109
109
  return (t = Iv(t)) in o ? Object.defineProperty(o, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : o[t] = e, o;
110
110
  }
111
- function Fn(o, t) {
111
+ function jn(o, t) {
112
112
  var e = typeof Symbol != "undefined" && o[Symbol.iterator] || o["@@iterator"];
113
113
  if (!e) {
114
114
  if (Array.isArray(o) || (e = bp(o)) || t && o && typeof o.length == "number") {
@@ -1446,10 +1446,10 @@ var $m = /* @__PURE__ */ new Map([
1446
1446
  (function(o) {
1447
1447
  o.CHROMIUM = "chromum", o.FIREFOX = "firefox", o.SAFARI = "safari";
1448
1448
  })(ah || (ah = {}));
1449
- var Ou = { DEVEL: "devel", PREPROD: "preprod", PROD: "prod" }, yn;
1449
+ var Ou = { DEVEL: "devel", PREPROD: "preprod", PROD: "prod" }, mn;
1450
1450
  (function(o) {
1451
1451
  o.AUDIO = "AUDIO", o.VIDEO = "VIDEO", o.SPEAKER = "SPEAKER", o.SCREENSHARE = "SCREENSHARE";
1452
- })(yn || (yn = {}));
1452
+ })(mn || (mn = {}));
1453
1453
  var ih;
1454
1454
  (function(o) {
1455
1455
  o[o.INIT = 0] = "INIT", o[o.ACCEPTED = 1] = "ACCEPTED", o[o.DENIED = 2] = "DENIED", o[o.SYS_DENIED = 3] = "SYS_DENIED", o[o.FAILED = 4] = "FAILED", o[o.NOTFOUND = 5] = "NOTFOUND", o[o.NOT_APPLICABLE = 6] = "NOT_APPLICABLE";
@@ -1848,7 +1848,7 @@ var sf = /* @__PURE__ */ P(function o() {
1848
1848
  case 0:
1849
1849
  return i = v.length > 1 && v[1] !== void 0 ? v[1] : !1, g.next = 3, a.getStats();
1850
1850
  case 3:
1851
- s = g.sent, u = i ? this.getProducerStatsFromReport(this.parseRTCReport(s, ["outbound-rtp", "remote-inbound-rtp"], !1, a.id))[0] : void 0, c = Fn(s.values()), g.prev = 6, c.s();
1851
+ s = g.sent, u = i ? this.getProducerStatsFromReport(this.parseRTCReport(s, ["outbound-rtp", "remote-inbound-rtp"], !1, a.id))[0] : void 0, c = jn(s.values()), g.prev = 6, c.s();
1852
1852
  case 8:
1853
1853
  if ((d = c.n()).done) {
1854
1854
  g.next = 17;
@@ -1889,7 +1889,7 @@ var sf = /* @__PURE__ */ P(function o() {
1889
1889
  case 0:
1890
1890
  return i = v.length > 1 && v[1] !== void 0 ? v[1] : !1, g.next = 3, a.getStats();
1891
1891
  case 3:
1892
- s = g.sent, u = i ? this.getConsumerStatsFromReport(this.parseRTCReport(s, ["inbound-rtp"], !1, a.id))[0] : void 0, c = Fn(s.values()), g.prev = 6, c.s();
1892
+ s = g.sent, u = i ? this.getConsumerStatsFromReport(this.parseRTCReport(s, ["inbound-rtp"], !1, a.id))[0] : void 0, c = jn(s.values()), g.prev = 6, c.s();
1893
1893
  case 8:
1894
1894
  if ((d = c.n()).done) {
1895
1895
  g.next = 17;
@@ -1949,7 +1949,7 @@ var sf = /* @__PURE__ */ P(function o() {
1949
1949
  });
1950
1950
  return n || r[r.length - 1];
1951
1951
  } }, { key: "parseRTCReport", value: function(r) {
1952
- var n = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : void 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, c = r, d = new sf(), p = a.length ? new Set(a) : void 0, v = [], f = [], g = [], k = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), b = Fn(c.values()), E;
1952
+ var n = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : void 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, c = r, d = new sf(), p = a.length ? new Set(a) : void 0, v = [], f = [], g = [], k = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), b = jn(c.values()), E;
1953
1953
  try {
1954
1954
  for (b.s(); !(E = b.n()).done; ) {
1955
1955
  var T = E.value;
@@ -2540,7 +2540,7 @@ var sf = /* @__PURE__ */ P(function o() {
2540
2540
  case 0:
2541
2541
  return i = g.length > 1 && g[1] !== void 0 ? g[1] : !1, y.next = 3, a.getStats();
2542
2542
  case 3:
2543
- s = y.sent, u = this.parseRTCReport(s, ["inbound-rtp"], !1, a.id), c = Pe(u.consumerStreamMap.values())[0], d = i ? this.getConsumerStatsFromParsedConsumerStats(u, c, a.id) : void 0, p = Fn(s.values()), y.prev = 8, p.s();
2543
+ s = y.sent, u = this.parseRTCReport(s, ["inbound-rtp"], !1, a.id), c = Pe(u.consumerStreamMap.values())[0], d = i ? this.getConsumerStatsFromParsedConsumerStats(u, c, a.id) : void 0, p = jn(s.values()), y.prev = 8, p.s();
2544
2544
  case 10:
2545
2545
  if ((v = p.n()).done) {
2546
2546
  y.next = 19;
@@ -2590,7 +2590,7 @@ var sf = /* @__PURE__ */ P(function o() {
2590
2590
  var n;
2591
2591
  return { id: r.id, type: r.candidateType || r.type, address: r.address, port: r.port, url: r.url, protocol: (n = r.relayProtocol) !== null && n !== void 0 ? n : r.protocol, networkType: r.networkType, relatedAddress: r.relatedAddress, relatedPort: r.relatedPort };
2592
2592
  } }, { key: "parseRTCReport", value: function(r) {
2593
- var n = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : void 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, c = r, d = new sf(), p = a.length ? new Set(a) : void 0, v = [], f = [], g = [], k = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), b = Fn(c.values()), E;
2593
+ var n = this, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : void 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, c = r, d = new sf(), p = a.length ? new Set(a) : void 0, v = [], f = [], g = [], k = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), b = jn(c.values()), E;
2594
2594
  try {
2595
2595
  for (b.s(); !(E = b.n()).done; ) {
2596
2596
  var T = E.value;
@@ -2861,7 +2861,7 @@ var pe = function(t, e) {
2861
2861
  return function(r, n, a) {
2862
2862
  if (a)
2863
2863
  return uh(a, t, e);
2864
- var i = Fn(Reflect.ownKeys(r.prototype).filter(function(p) {
2864
+ var i = jn(Reflect.ownKeys(r.prototype).filter(function(p) {
2865
2865
  return p !== "constructor";
2866
2866
  })), s;
2867
2867
  try {
@@ -2961,15 +2961,15 @@ var pe = function(t, e) {
2961
2961
  } }, { key: "sendActiveSpeakerEvent", value: function(r, n) {
2962
2962
  this.eventHandler.callEvent({ event: K.DOMINANT_SPEAKER, metaData: { peerId: r }, timestamp: n });
2963
2963
  } }, { key: "devices", value: function(r, n, a) {
2964
- this.eventHandler.callEvent({ event: r === yn.AUDIO && K.AUDIO_DEVICES_UPDATES || r === yn.VIDEO && K.VIDEO_DEVICES_UPDATES || r === yn.SPEAKER && K.SPEAKER_DEVICES_UPDATES, metaData: { deviceList: n }, timestamp: a });
2964
+ this.eventHandler.callEvent({ event: r === mn.AUDIO && K.AUDIO_DEVICES_UPDATES || r === mn.VIDEO && K.VIDEO_DEVICES_UPDATES || r === mn.SPEAKER && K.SPEAKER_DEVICES_UPDATES, metaData: { deviceList: n }, timestamp: a });
2965
2965
  } }, { key: "selectedDevice", value: function(r, n, a) {
2966
- this.eventHandler.callEvent({ event: r === yn.AUDIO && K.SELECTED_MICROHPONE_UPDATE || r === yn.VIDEO && K.SELECTED_CAMERA_UPDATE || r === yn.SPEAKER && K.SELECTED_SPEAKER_UPDATE, metaData: { device: n }, timestamp: a });
2966
+ this.eventHandler.callEvent({ event: r === mn.AUDIO && K.SELECTED_MICROHPONE_UPDATE || r === mn.VIDEO && K.SELECTED_CAMERA_UPDATE || r === mn.SPEAKER && K.SELECTED_SPEAKER_UPDATE, metaData: { device: n }, timestamp: a });
2967
2967
  } }, { key: "mediaPermission", value: function(r, n, a) {
2968
2968
  this.eventHandler.callEvent({ event: K.MEDIA_PERMISSION, metaData: { deviceType: r, permission: n }, timestamp: a });
2969
2969
  } }, { key: "mediaPlaybackFailed", value: function(r, n) {
2970
- this.eventHandler.callEvent({ event: r === yn.AUDIO && K.AUDIO_PLAY_FAILED || r === yn.VIDEO && K.VIDEO_PLAY_FAILED, metaData: { deviceType: r }, timestamp: n });
2970
+ this.eventHandler.callEvent({ event: r === mn.AUDIO && K.AUDIO_PLAY_FAILED || r === mn.VIDEO && K.VIDEO_PLAY_FAILED, metaData: { deviceType: r }, timestamp: n });
2971
2971
  } }, { key: "mediaTrackMuted", value: function(r, n) {
2972
- this.eventHandler.callEvent({ event: r === yn.AUDIO && K.AUDIO_TRACK_MUTED || r === yn.VIDEO && K.VIDEO_TRACK_MUTED, metaData: { deviceType: r }, timestamp: n });
2972
+ this.eventHandler.callEvent({ event: r === mn.AUDIO && K.AUDIO_TRACK_MUTED || r === mn.VIDEO && K.VIDEO_TRACK_MUTED, metaData: { deviceType: r }, timestamp: n });
2973
2973
  } }, { key: "tabChanged", value: function(r, n) {
2974
2974
  this.eventHandler.callEvent({ event: K.TAB_CHANGE, metaData: { isMeetingsTabActive: r }, timestamp: n });
2975
2975
  } }, { key: "browserBackgrounded", value: function(r) {
@@ -3007,7 +3007,7 @@ var pe = function(t, e) {
3007
3007
  for (; ; )
3008
3008
  switch (b.prev = b.next) {
3009
3009
  case 0:
3010
- p = [], b.prev = 1, v = Fn(r), b.prev = 3, v.s();
3010
+ p = [], b.prev = 1, v = jn(r), b.prev = 3, v.s();
3011
3011
  case 5:
3012
3012
  if ((f = v.n()).done) {
3013
3013
  b.next = 20;
@@ -3745,7 +3745,7 @@ function dy(o) {
3745
3745
  function py(o) {
3746
3746
  return this.__data__.has(o);
3747
3747
  }
3748
- var hy = (typeof global == "undefined" ? "undefined" : ke(global)) == "object" && global && global.Object === Object && global, cf = hy, vy = (typeof self == "undefined" ? "undefined" : ke(self)) == "object" && self && self.Object === Object && self, fy = cf || vy || Function("return this")(), Bn = fy, gy = Bn.Symbol, da = gy, df = Object.prototype, my = df.hasOwnProperty, yy = df.toString, zo = da ? da.toStringTag : void 0;
3748
+ var hy = (typeof global == "undefined" ? "undefined" : ke(global)) == "object" && global && global.Object === Object && global, cf = hy, vy = (typeof self == "undefined" ? "undefined" : ke(self)) == "object" && self && self.Object === Object && self, fy = cf || vy || Function("return this")(), Hn = fy, gy = Hn.Symbol, da = gy, df = Object.prototype, my = df.hasOwnProperty, yy = df.toString, zo = da ? da.toStringTag : void 0;
3749
3749
  function ky(o) {
3750
3750
  var t = my.call(o, zo), e = o[zo];
3751
3751
  try {
@@ -3764,18 +3764,18 @@ var Py = "[object Null]", Sy = "[object Undefined]", lh = da ? da.toStringTag :
3764
3764
  function Zs(o) {
3765
3765
  return o == null ? o === void 0 ? Sy : Py : lh && lh in Object(o) ? ky(o) : wy(o);
3766
3766
  }
3767
- function Tn(o) {
3767
+ function bn(o) {
3768
3768
  var t = ke(o);
3769
3769
  return o != null && (t == "object" || t == "function");
3770
3770
  }
3771
3771
  var Ey = "[object AsyncFunction]", Cy = "[object Function]", Ry = "[object GeneratorFunction]", Ay = "[object Proxy]";
3772
3772
  function Ep(o) {
3773
- if (!Tn(o))
3773
+ if (!bn(o))
3774
3774
  return !1;
3775
3775
  var t = Zs(o);
3776
3776
  return t == Cy || t == Ry || t == Ey || t == Ay;
3777
3777
  }
3778
- var Iy = Bn["__core-js_shared__"], jc = Iy, ch = function() {
3778
+ var Iy = Hn["__core-js_shared__"], jc = Iy, ch = function() {
3779
3779
  var o = /[^.]+$/.exec(jc && jc.keys && jc.keys.IE_PROTO || "");
3780
3780
  return o ? "Symbol(src)_1." + o : "";
3781
3781
  }();
@@ -3798,7 +3798,7 @@ function xs(o) {
3798
3798
  }
3799
3799
  var Dy = /[\\^$.*+?()[\]{}|]/g, Ly = /^\[object .+?Constructor\]$/, $y = Function.prototype, Ny = Object.prototype, Vy = $y.toString, Uy = Ny.hasOwnProperty, jy = RegExp("^" + Vy.call(Uy).replace(Dy, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
3800
3800
  function Fy(o) {
3801
- if (!Tn(o) || My(o))
3801
+ if (!bn(o) || My(o))
3802
3802
  return !1;
3803
3803
  var t = Ep(o) ? jy : Ly;
3804
3804
  return t.test(xs(o));
@@ -3810,7 +3810,7 @@ function eo(o, t) {
3810
3810
  var e = Hy(o, t);
3811
3811
  return Fy(e) ? e : void 0;
3812
3812
  }
3813
- var By = eo(Bn, "Map"), Ku = By, qy = eo(Object, "create"), zu = qy;
3813
+ var By = eo(Hn, "Map"), Ku = By, qy = eo(Object, "create"), zu = qy;
3814
3814
  function Gy() {
3815
3815
  this.__data__ = zu ? zu(null) : {}, this.size = 0;
3816
3816
  }
@@ -3897,15 +3897,15 @@ function uk(o, t) {
3897
3897
  }
3898
3898
  return e.set(o, t), this.size = e.size, this;
3899
3899
  }
3900
- function Hn(o) {
3900
+ function Fn(o) {
3901
3901
  var t = this.__data__ = new Ja(o);
3902
3902
  this.size = t.size;
3903
3903
  }
3904
- Hn.prototype.clear = ly;
3905
- Hn.prototype.delete = cy;
3906
- Hn.prototype.get = dy;
3907
- Hn.prototype.has = py;
3908
- Hn.prototype.set = uk;
3904
+ Fn.prototype.clear = ly;
3905
+ Fn.prototype.delete = cy;
3906
+ Fn.prototype.get = dy;
3907
+ Fn.prototype.has = py;
3908
+ Fn.prototype.set = uk;
3909
3909
  function lk(o, t) {
3910
3910
  for (var e = -1, r = o == null ? 0 : o.length; ++e < r && t(o[e], e, o) !== !1; )
3911
3911
  ;
@@ -3955,7 +3955,7 @@ var hf = Object.prototype, fk = hf.hasOwnProperty, gk = hf.propertyIsEnumerable,
3955
3955
  function kk() {
3956
3956
  return !1;
3957
3957
  }
3958
- var vf = (typeof exports == "undefined" ? "undefined" : ke(exports)) == "object" && exports && !exports.nodeType && exports, ph = vf && (typeof module == "undefined" ? "undefined" : ke(module)) == "object" && module && !module.nodeType && module, bk = ph && ph.exports === vf, hh = bk ? Bn.Buffer : void 0, Tk = hh ? hh.isBuffer : void 0, wk = Tk || kk, Do = wk, Pk = 9007199254740991, Sk = /^(?:0|[1-9]\d*)$/;
3958
+ var vf = (typeof exports == "undefined" ? "undefined" : ke(exports)) == "object" && exports && !exports.nodeType && exports, ph = vf && (typeof module == "undefined" ? "undefined" : ke(module)) == "object" && module && !module.nodeType && module, bk = ph && ph.exports === vf, hh = bk ? Hn.Buffer : void 0, Tk = hh ? hh.isBuffer : void 0, wk = Tk || kk, Do = wk, Pk = 9007199254740991, Sk = /^(?:0|[1-9]\d*)$/;
3959
3959
  function Rp(o, t) {
3960
3960
  var e = ke(o);
3961
3961
  return t = t == null ? Pk : t, !!t && (e == "number" || e != "symbol" && Sk.test(o)) && o > -1 && o % 1 == 0 && o < t;
@@ -4029,7 +4029,7 @@ function u0(o) {
4029
4029
  }
4030
4030
  var l0 = Object.prototype, c0 = l0.hasOwnProperty;
4031
4031
  function d0(o) {
4032
- if (!Tn(o))
4032
+ if (!bn(o))
4033
4033
  return u0(o);
4034
4034
  var t = yc(o), e = [];
4035
4035
  for (var r in o)
@@ -4042,7 +4042,7 @@ function nl(o) {
4042
4042
  function p0(o, t) {
4043
4043
  return o && rl(t, nl(t), o);
4044
4044
  }
4045
- var kf = (typeof exports == "undefined" ? "undefined" : ke(exports)) == "object" && exports && !exports.nodeType && exports, fh = kf && (typeof module == "undefined" ? "undefined" : ke(module)) == "object" && module && !module.nodeType && module, h0 = fh && fh.exports === kf, gh = h0 ? Bn.Buffer : void 0, mh = gh ? gh.allocUnsafe : void 0;
4045
+ var kf = (typeof exports == "undefined" ? "undefined" : ke(exports)) == "object" && exports && !exports.nodeType && exports, fh = kf && (typeof module == "undefined" ? "undefined" : ke(module)) == "object" && module && !module.nodeType && module, h0 = fh && fh.exports === kf, gh = h0 ? Hn.Buffer : void 0, mh = gh ? gh.allocUnsafe : void 0;
4046
4046
  function bf(o, t) {
4047
4047
  if (t)
4048
4048
  return o.slice();
@@ -4096,7 +4096,7 @@ function yd(o) {
4096
4096
  function P0(o) {
4097
4097
  return Ef(o, nl, Sf);
4098
4098
  }
4099
- var S0 = eo(Bn, "DataView"), kd = S0, E0 = eo(Bn, "Promise"), bd = E0, C0 = eo(Bn, "Set"), Mo = C0, R0 = eo(Bn, "WeakMap"), Td = R0, kh = "[object Map]", A0 = "[object Object]", bh = "[object Promise]", Th = "[object Set]", wh = "[object WeakMap]", Ph = "[object DataView]", I0 = xs(kd), M0 = xs(Ku), _0 = xs(bd), O0 = xs(Mo), D0 = xs(Td), Ss = Zs;
4099
+ var S0 = eo(Hn, "DataView"), kd = S0, E0 = eo(Hn, "Promise"), bd = E0, C0 = eo(Hn, "Set"), Mo = C0, R0 = eo(Hn, "WeakMap"), Td = R0, kh = "[object Map]", A0 = "[object Object]", bh = "[object Promise]", Th = "[object Set]", wh = "[object WeakMap]", Ph = "[object DataView]", I0 = xs(kd), M0 = xs(Ku), _0 = xs(bd), O0 = xs(Mo), D0 = xs(Td), Ss = Zs;
4100
4100
  (kd && Ss(new kd(new ArrayBuffer(1))) != Ph || Ku && Ss(new Ku()) != kh || bd && Ss(bd.resolve()) != bh || Mo && Ss(new Mo()) != Th || Td && Ss(new Td()) != wh) && (Ss = function(t) {
4101
4101
  var e = Zs(t), r = e == A0 ? t.constructor : void 0, n = r ? xs(r) : "";
4102
4102
  if (n)
@@ -4119,7 +4119,7 @@ function N0(o) {
4119
4119
  var t = o.length, e = new o.constructor(t);
4120
4120
  return t && typeof o[0] == "string" && $0.call(o, "index") && (e.index = o.index, e.input = o.input), e;
4121
4121
  }
4122
- var V0 = Bn.Uint8Array, xl = V0;
4122
+ var V0 = Hn.Uint8Array, xl = V0;
4123
4123
  function Op(o) {
4124
4124
  var t = new o.constructor(o.byteLength);
4125
4125
  return new xl(t).set(new xl(o)), t;
@@ -4179,7 +4179,7 @@ var Ch = Object.create, ub = function() {
4179
4179
  function o() {
4180
4180
  }
4181
4181
  return function(t) {
4182
- if (!Tn(t))
4182
+ if (!bn(t))
4183
4183
  return {};
4184
4184
  if (Ch)
4185
4185
  return Ch(t);
@@ -4206,7 +4206,7 @@ function Ol(o, t, e, r, n, a) {
4206
4206
  var i, s = t & yb, u = t & kb, c = t & bb;
4207
4207
  if (e && (i = n ? e(o, r, n, a) : e(o)), i !== void 0)
4208
4208
  return i;
4209
- if (!Tn(o))
4209
+ if (!bn(o))
4210
4210
  return o;
4211
4211
  var d = nn(o);
4212
4212
  if (d) {
@@ -4225,7 +4225,7 @@ function Ol(o, t, e, r, n, a) {
4225
4225
  i = ob(o, p, s);
4226
4226
  }
4227
4227
  }
4228
- a || (a = new Hn());
4228
+ a || (a = new Fn());
4229
4229
  var f = a.get(o);
4230
4230
  if (f)
4231
4231
  return f;
@@ -4510,7 +4510,7 @@ var yT = function(t, e, r) {
4510
4510
  });
4511
4511
  if (y === -1)
4512
4512
  throw new Error("Invalid reducer provided, it must contain atleast one zero");
4513
- var b = 5 - y, E = y + 1, T = (100 - k) / b, S = k / E, D = Fn(e), I;
4513
+ var b = 5 - y, E = y + 1, T = (100 - k) / b, S = k / E, D = jn(e), I;
4514
4514
  try {
4515
4515
  for (D.s(); !(I = D.n()).done; ) {
4516
4516
  var _ = I.value, V = void 0;
@@ -4754,9 +4754,9 @@ function Dh(o) {
4754
4754
  return o;
4755
4755
  if (bc(o))
4756
4756
  return Oh;
4757
- if (Tn(o)) {
4757
+ if (bn(o)) {
4758
4758
  var t = typeof o.valueOf == "function" ? o.valueOf() : o;
4759
- o = Tn(t) ? t + "" : t;
4759
+ o = bn(t) ? t + "" : t;
4760
4760
  }
4761
4761
  if (typeof o != "string")
4762
4762
  return o === 0 ? o : +o;
@@ -4840,7 +4840,7 @@ function xT(o, t) {
4840
4840
  return JT(ZT(o, t, Vp), o + "");
4841
4841
  }
4842
4842
  function ew(o, t, e) {
4843
- if (!Tn(e))
4843
+ if (!bn(e))
4844
4844
  return !1;
4845
4845
  var r = ke(t);
4846
4846
  return (r == "number" ? tl(e) && Rp(t, e.length) : r == "string" && t in e) ? el(e[t], o) : !1;
@@ -5013,15 +5013,15 @@ function $w(o, t, e, r, n, a) {
5013
5013
  i = !0, d = !1;
5014
5014
  }
5015
5015
  if (v && !d)
5016
- return a || (a = new Hn()), i || mc(o) ? Bf(o, t, e, r, n, a) : Aw(o, t, u, e, r, n, a);
5016
+ return a || (a = new Fn()), i || mc(o) ? Bf(o, t, e, r, n, a) : Aw(o, t, u, e, r, n, a);
5017
5017
  if (!(e & Dw)) {
5018
5018
  var f = d && Uh.call(o, "__wrapped__"), g = p && Uh.call(t, "__wrapped__");
5019
5019
  if (f || g) {
5020
5020
  var k = f ? o.value() : o, y = g ? t.value() : t;
5021
- return a || (a = new Hn()), n(k, y, e, r, a);
5021
+ return a || (a = new Fn()), n(k, y, e, r, a);
5022
5022
  }
5023
5023
  }
5024
- return v ? (a || (a = new Hn()), Ow(o, t, e, r, n, a)) : !1;
5024
+ return v ? (a || (a = new Fn()), Ow(o, t, e, r, n, a)) : !1;
5025
5025
  }
5026
5026
  function wc(o, t, e, r, n) {
5027
5027
  return o === t ? !0 : o == null || t == null || !pa(o) && !pa(t) ? o !== o && t !== t : $w(o, t, e, r, wc, n);
@@ -5043,7 +5043,7 @@ function Uw(o, t, e, r) {
5043
5043
  if (c === void 0 && !(u in o))
5044
5044
  return !1;
5045
5045
  } else {
5046
- var p = new Hn();
5046
+ var p = new Fn();
5047
5047
  if (r)
5048
5048
  var v = r(c, d, u, o, t, p);
5049
5049
  if (!(v === void 0 ? wc(d, c, Nw | Vw, r, p) : v))
@@ -5053,7 +5053,7 @@ function Uw(o, t, e, r) {
5053
5053
  return !0;
5054
5054
  }
5055
5055
  function qf(o) {
5056
- return o === o && !Tn(o);
5056
+ return o === o && !bn(o);
5057
5057
  }
5058
5058
  function jw(o) {
5059
5059
  for (var t = kc(o), e = t.length; e--; ) {
@@ -5113,13 +5113,13 @@ function Qw(o) {
5113
5113
  };
5114
5114
  }
5115
5115
  var Xw = Qw(), Zw = Xw, xw = function() {
5116
- return Bn.Date.now();
5116
+ return Hn.Date.now();
5117
5117
  }, Bc = xw, eP = "Expected a function", rP = Math.max, tP = Math.min;
5118
5118
  function jp(o, t, e) {
5119
5119
  var r, n, a, i, s, u, c = 0, d = !1, p = !1, v = !0;
5120
5120
  if (typeof o != "function")
5121
5121
  throw new TypeError(eP);
5122
- t = Dh(t) || 0, Tn(e) && (d = !!e.leading, p = "maxWait" in e, a = p ? rP(Dh(e.maxWait) || 0, t) : a, v = "trailing" in e ? !!e.trailing : v);
5122
+ t = Dh(t) || 0, bn(e) && (d = !!e.leading, p = "maxWait" in e, a = p ? rP(Dh(e.maxWait) || 0, t) : a, v = "trailing" in e ? !!e.trailing : v);
5123
5123
  function f(I) {
5124
5124
  var _ = r, V = n;
5125
5125
  return r = n = void 0, c = I, i = o.apply(V, _), i;
@@ -5184,13 +5184,13 @@ function iP(o, t, e, r, n, a, i) {
5184
5184
  var d = a ? a(s, u, e + "", o, t, i) : void 0, p = d === void 0;
5185
5185
  if (p) {
5186
5186
  var v = nn(u), f = !v && Do(u), g = !v && !f && mc(u);
5187
- d = u, v || f || g ? nn(s) ? d = s : nP(s) ? d = Tf(s) : f ? (p = !1, d = bf(u, !0)) : g ? (p = !1, d = Cf(u, !0)) : d = [] : ow(u) || Yu(u) ? (d = s, Yu(s) ? d = aP(s) : (!Tn(s) || Ep(s)) && (d = Rf(u))) : p = !1;
5187
+ d = u, v || f || g ? nn(s) ? d = s : nP(s) ? d = Tf(s) : f ? (p = !1, d = bf(u, !0)) : g ? (p = !1, d = Cf(u, !0)) : d = [] : ow(u) || Yu(u) ? (d = s, Yu(s) ? d = aP(s) : (!bn(s) || Ep(s)) && (d = Rf(u))) : p = !1;
5188
5188
  }
5189
5189
  p && (i.set(u, d), n(d, u, r, a, i), i.delete(u)), wd(o, e, d);
5190
5190
  }
5191
5191
  function Wf(o, t, e, r, n) {
5192
5192
  o !== t && Zw(t, function(a, i) {
5193
- if (n || (n = new Hn()), Tn(a))
5193
+ if (n || (n = new Fn()), bn(a))
5194
5194
  iP(o, t, i, e, Wf, r, n);
5195
5195
  else {
5196
5196
  var s = r ? r(Pd(o, i), a, i + "", o, t, n) : void 0;
@@ -5260,7 +5260,7 @@ function kP(o, t) {
5260
5260
  }
5261
5261
  var Sd = /* @__PURE__ */ function(o) {
5262
5262
  return o.PARTICIPANT = "PARTICIPANT", o.PEER = "PEER", o.CLIENT = "CLIENT", o;
5263
- }(Sd || {}), ge = { PROPAGATE_KICK_ALL: "propagate_kick_across_rooms", REFRESH_ID_ON_DISCONNECTION: "refresh_id_on_disconnection", SKIP_OTEL_TRACES: "skip_otel_traces", USE_USERIDS_IN_CHAT: "use_userids_in_chat", ENABLE_CF_SIMULCAST: "enable_cf_simulcast", CF_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED: "cf_transport_force_relay_on_ice_failed", LOG_LEVEL: "log_level", V1_PLUGINS: "v1_plugins", LIVESTREAM: "feat_livestream", FEAT_PAGINATED_CHAT: "feat_paginated_chat", VAL_MIN_FRAMERATE: "val_min_framerate", SCREEENSHARE_ERR_HACK: "screenshare_err_hack", SCREEENSHARE_CONSTRAINTS_RETRY: "screenshare_constraints_retry", VIDEO_CONSTRAINTS: "video_constraints", SCREENSHARE_CONSTRAINTS: "screenshare_constraints", FEAT_CHAT_SDK: "feat_chat_sdk", FEAT_CHAT_SDK_SEARCH: "chat_search", OBS_QUALITY: "obs_quality", ALLOW_SAFARI_MEDIA_MIDDLEWARES: "allow_safari_media_middlewares", EXP_RESHARE: "exp_reshare", SKIP_SETTING_IN_USE_DEVICE: "skip_setting_in_use_device", PRECALL_BANDWIDTH_TEST: "precall_bandwidth_test", DEBUG_SOCKET_JOIN: "debug_socket_join", FORCE_RELAY: "force_relay", FORCE_VIDEO_CODEC: "force_video_codec", TRACK_HINT: "track_hint", OVERRIDE_SIMULCAST_DYNAMIC: "override_simulcast_dynamic", PRECREATE_PRODUCERS: "precreate_producers", DISABLE_OPUS_DTX_CF: "disable_opus_dtx_cf", ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS: "enable_audio_activity_debug_logs", DISABLE_LAYER_SWITCH: "disable_layer_switch" };
5263
+ }(Sd || {}), me = { PROPAGATE_KICK_ALL: "propagate_kick_across_rooms", REFRESH_ID_ON_DISCONNECTION: "refresh_id_on_disconnection", SKIP_OTEL_TRACES: "skip_otel_traces", USE_USERIDS_IN_CHAT: "use_userids_in_chat", ENABLE_CF_SIMULCAST: "enable_cf_simulcast", CF_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED: "cf_transport_force_relay_on_ice_failed", LOG_LEVEL: "log_level", V1_PLUGINS: "v1_plugins", LIVESTREAM: "feat_livestream", VAL_MIN_FRAMERATE: "val_min_framerate", SCREEENSHARE_ERR_HACK: "screenshare_err_hack", SCREEENSHARE_CONSTRAINTS_RETRY: "screenshare_constraints_retry", VIDEO_CONSTRAINTS: "video_constraints", SCREENSHARE_CONSTRAINTS: "screenshare_constraints", FEAT_CHAT_SDK: "feat_chat_sdk", FEAT_CHAT_SDK_SEARCH: "chat_search", OBS_QUALITY: "obs_quality", ALLOW_SAFARI_MEDIA_MIDDLEWARES: "allow_safari_media_middlewares", EXP_RESHARE: "exp_reshare", SKIP_SETTING_IN_USE_DEVICE: "skip_setting_in_use_device", PRECALL_BANDWIDTH_TEST: "precall_bandwidth_test", DEBUG_SOCKET_JOIN: "debug_socket_join", FORCE_RELAY: "force_relay", FORCE_VIDEO_CODEC: "force_video_codec", TRACK_HINT: "track_hint", OVERRIDE_SIMULCAST_DYNAMIC: "override_simulcast_dynamic", PRECREATE_PRODUCERS: "precreate_producers", DISABLE_OPUS_DTX_CF: "disable_opus_dtx_cf", ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS: "enable_audio_activity_debug_logs", DISABLE_LAYER_SWITCH: "disable_layer_switch" };
5264
5264
  function Dl(o) {
5265
5265
  var t = {};
5266
5266
  return typeof (o == null ? void 0 : o.code) == "number" && (t.code = o.code), typeof (o == null ? void 0 : o.code) == "string" && (t.code = o.code.substring(0, 100)), typeof (o == null ? void 0 : o.name) == "string" && (t.name = o.name.substring(0, 500)), typeof (o == null ? void 0 : o.message) == "string" && (t.message = o.message.substring(0, 500)), typeof (o == null ? void 0 : o.reason) == "string" && (t.reason = o.reason.substring(0, 500)), typeof (o == null ? void 0 : o.stack) == "string" && (t.stack = o.stack.substring(0, 500)), t;
@@ -5311,8 +5311,8 @@ function EP(o) {
5311
5311
  return r || n;
5312
5312
  }
5313
5313
  function CP(o, t) {
5314
- if (o != null && o.getValue("flagsmith").hasFeature(ge.LOG_LEVEL)) {
5315
- var e, r = ((e = o.getValue("flagsmith").getValue(ge.LOG_LEVEL)) === null || e === void 0 ? void 0 : e.toString()) || "all";
5314
+ if (o != null && o.getValue("flagsmith").hasFeature(me.LOG_LEVEL)) {
5315
+ var e, r = ((e = o.getValue("flagsmith").getValue(me.LOG_LEVEL)) === null || e === void 0 ? void 0 : e.toString()) || "all";
5316
5316
  if (r = r.toLowerCase().trim(), r === "off")
5317
5317
  return !1;
5318
5318
  if (r !== "all") {
@@ -5408,7 +5408,7 @@ var O = /* @__PURE__ */ function() {
5408
5408
  return i.value = function() {
5409
5409
  for (var c, d = this === null || this === void 0 ? void 0 : this.telemetry, p = arguments.length, v = new Array(p), f = 0; f < p; f++)
5410
5410
  v[f] = arguments[f];
5411
- if (!d || !d.initialized || navigator.isReactNative || !d.tracingEnabled || (c = Ba.getContext(d.meetingMetadata.peerId)) !== null && c !== void 0 && c.getValue("flagsmith").hasFeature(ge.SKIP_OTEL_TRACES))
5411
+ if (!d || !d.initialized || navigator.isReactNative || !d.tracingEnabled || (c = Ba.getContext(d.meetingMetadata.peerId)) !== null && c !== void 0 && c.getValue("flagsmith").hasFeature(me.SKIP_OTEL_TRACES))
5412
5412
  return s.apply(this, v);
5413
5413
  d.addLogInCurrentSpan("info", e, r);
5414
5414
  var g = performance.now(), k = s.apply(this, v);
@@ -5672,7 +5672,7 @@ function MP(o, t) {
5672
5672
  return function(e, r, n) {
5673
5673
  if (n)
5674
5674
  return Fh(n, o, t);
5675
- var a = Fn(Reflect.ownKeys(e.prototype).filter(function(d) {
5675
+ var a = jn(Reflect.ownKeys(e.prototype).filter(function(d) {
5676
5676
  return d !== "constructor";
5677
5677
  })), i;
5678
5678
  try {
@@ -6274,7 +6274,7 @@ var FP = /* @__PURE__ */ function(o) {
6274
6274
  }]]);
6275
6275
  }
6276
6276
  return A(t, o), P(t);
6277
- }(M), qn = new FP(), HP = /* @__PURE__ */ function(o) {
6277
+ }(M), Bn = new FP(), HP = /* @__PURE__ */ function(o) {
6278
6278
  function t() {
6279
6279
  return w(this, t), R(this, t, ["media.ProducerPayload", [{
6280
6280
  no: 1,
@@ -6333,7 +6333,7 @@ var FP = /* @__PURE__ */ function(o) {
6333
6333
  T: 8
6334
6334
  /*ScalarType.BOOL*/
6335
6335
  }, { no: 3, name: "description", kind: "message", T: function() {
6336
- return qn;
6336
+ return Bn;
6337
6337
  } }, {
6338
6338
  no: 4,
6339
6339
  name: "private_ice",
@@ -6378,7 +6378,7 @@ var FP = /* @__PURE__ */ function(o) {
6378
6378
  T: 9
6379
6379
  /*ScalarType.STRING*/
6380
6380
  }, { no: 2, name: "description", kind: "message", T: function() {
6381
- return qn;
6381
+ return Bn;
6382
6382
  } }, {
6383
6383
  no: 3,
6384
6384
  name: "transcription_enabled",
@@ -6405,7 +6405,7 @@ var FP = /* @__PURE__ */ function(o) {
6405
6405
  T: 9
6406
6406
  /*ScalarType.STRING*/
6407
6407
  }, { no: 2, name: "description", kind: "message", T: function() {
6408
- return qn;
6408
+ return Bn;
6409
6409
  } }]]);
6410
6410
  }
6411
6411
  return A(t, o), P(t);
@@ -6418,7 +6418,7 @@ var FP = /* @__PURE__ */ function(o) {
6418
6418
  T: 9
6419
6419
  /*ScalarType.STRING*/
6420
6420
  }, { no: 2, name: "description", kind: "message", T: function() {
6421
- return qn;
6421
+ return Bn;
6422
6422
  } }]]);
6423
6423
  }
6424
6424
  return A(t, o), P(t);
@@ -6891,7 +6891,7 @@ var wS = /* @__PURE__ */ function(o) {
6891
6891
  T: 8
6892
6892
  /*ScalarType.BOOL*/
6893
6893
  }, { no: 4, name: "description", kind: "message", T: function() {
6894
- return qn;
6894
+ return Bn;
6895
6895
  } }, {
6896
6896
  no: 5,
6897
6897
  name: "msid",
@@ -6985,7 +6985,7 @@ var VS = /* @__PURE__ */ function(o) {
6985
6985
  T: 9
6986
6986
  /*ScalarType.STRING*/
6987
6987
  }, { no: 2, name: "description", kind: "message", T: function() {
6988
- return qn;
6988
+ return Bn;
6989
6989
  } }, {
6990
6990
  no: 3,
6991
6991
  name: "producing_transport_id",
@@ -7006,7 +7006,7 @@ var VS = /* @__PURE__ */ function(o) {
7006
7006
  T: 9
7007
7007
  /*ScalarType.STRING*/
7008
7008
  }, { no: 2, name: "description", kind: "message", T: function() {
7009
- return qn;
7009
+ return Bn;
7010
7010
  } }, {
7011
7011
  no: 3,
7012
7012
  name: "consuming_transport_id",
@@ -7322,7 +7322,7 @@ var cE = /* @__PURE__ */ function(o) {
7322
7322
  }, { no: 2, name: "consumer_ids_map", kind: "message", T: function() {
7323
7323
  return Xf;
7324
7324
  } }, { no: 3, name: "description", kind: "message", T: function() {
7325
- return qn;
7325
+ return Bn;
7326
7326
  } }]]);
7327
7327
  }
7328
7328
  return A(t, o), P(t);
@@ -7341,7 +7341,7 @@ var cE = /* @__PURE__ */ function(o) {
7341
7341
  T: 9
7342
7342
  /*ScalarType.STRING*/
7343
7343
  }, { no: 4, name: "description", kind: "message", T: function() {
7344
- return qn;
7344
+ return Bn;
7345
7345
  } }]]);
7346
7346
  }
7347
7347
  return A(t, o), P(t);
@@ -7403,14 +7403,14 @@ new yE();
7403
7403
  var kE = /* @__PURE__ */ function(o) {
7404
7404
  function t() {
7405
7405
  return w(this, t), R(this, t, ["media.edge.ProducerClosingResponse", [{ no: 1, name: "description", kind: "message", T: function() {
7406
- return qn;
7406
+ return Bn;
7407
7407
  } }]]);
7408
7408
  }
7409
7409
  return A(t, o), P(t);
7410
7410
  }(M), bE = new kE(), TE = /* @__PURE__ */ function(o) {
7411
7411
  function t() {
7412
7412
  return w(this, t), R(this, t, ["media.edge.ConsumerClosingResponse", [{ no: 1, name: "description", kind: "message", T: function() {
7413
- return qn;
7413
+ return Bn;
7414
7414
  } }]]);
7415
7415
  }
7416
7416
  return A(t, o), P(t);
@@ -10600,7 +10600,7 @@ function cg(o, t) {
10600
10600
  return e[r] = t | o[r], e;
10601
10601
  }, {});
10602
10602
  }
10603
- var Q = Ho(FA, JA), Ir = Ho(HA, KA), se = Ho(BA, zA), Na = Ho(qA, YA), As = Ho(GA, QA), Ri = cg(lg, 16777216), Vn = cg(lg, 50331648), $l = Ho(WA, XA), ZA = Object.defineProperty, xA = Object.getOwnPropertyDescriptor, qp = function(t, e, r, n) {
10603
+ var Q = Ho(FA, JA), Ir = Ho(HA, KA), se = Ho(BA, zA), Na = Ho(qA, YA), As = Ho(GA, QA), Ri = cg(lg, 16777216), Nn = cg(lg, 50331648), $l = Ho(WA, XA), ZA = Object.defineProperty, xA = Object.getOwnPropertyDescriptor, qp = function(t, e, r, n) {
10604
10604
  for (var a = n > 1 ? void 0 : n ? xA(e, r) : e, i = t.length - 1, s; i >= 0; i--)
10605
10605
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
10606
10606
  return n && a && ZA(e, r, a), a;
@@ -10717,19 +10717,19 @@ var Q = Ho(FA, JA), Ir = Ho(HA, KA), se = Ho(BA, zA), Na = Ho(qA, YA), As = Ho(G
10717
10717
  });
10718
10718
  } }], [{ key: "formatChannel", value: function(e) {
10719
10719
  var r, n = e.latestMessageAndUnreadCount, a = N(N({}, e), {}, { id: e.chatChannelId, memberIds: e.targetUserIds, unreadCount: (r = n == null ? void 0 : n.unreadCount) !== null && r !== void 0 ? r : 0 });
10720
- return n != null && n.message && (a.latestMessage = Un.formatSocketPeerMessage(n.message)), delete a.chatChannelId, delete a.targetUserIds, delete a.latestMessageAndUnreadCount, a;
10720
+ return n != null && n.message && (a.latestMessage = Vn.formatSocketPeerMessage(n.message)), delete a.chatChannelId, delete a.targetUserIds, delete a.latestMessageAndUnreadCount, a;
10721
10721
  } }]);
10722
10722
  }()), Ys = Dd;
10723
10723
  qp([O.trace("ChatChannelHandler.createChannel")], Ys.prototype, "createChannel", 1);
10724
10724
  qp([O.trace("ChatChannelHandler.updateChannel")], Ys.prototype, "updateChannel", 1);
10725
10725
  qp([O.trace("ChatChannelHandler.getChannelMembers")], Ys.prototype, "getChannelMembers", 1);
10726
- var eI = Object.defineProperty, rI = Object.getOwnPropertyDescriptor, Gn = function(t, e, r, n) {
10726
+ var eI = Object.defineProperty, rI = Object.getOwnPropertyDescriptor, qn = function(t, e, r, n) {
10727
10727
  for (var a = n > 1 ? void 0 : n ? rI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
10728
10728
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
10729
10729
  return n && a && eI(e, r, a), a;
10730
10730
  }, St = /* @__PURE__ */ function(o) {
10731
10731
  return o[o.TEXT = 0] = "TEXT", o[o.IMAGE = 1] = "IMAGE", o[o.FILE = 2] = "FILE", o[o.CUSTOM = 3] = "CUSTOM", o;
10732
- }(St || {}), nr = /* @__PURE__ */ C("socket"), ls = /* @__PURE__ */ C("context"), wn = /* @__PURE__ */ function() {
10732
+ }(St || {}), nr = /* @__PURE__ */ C("socket"), ls = /* @__PURE__ */ C("context"), Tn = /* @__PURE__ */ function() {
10733
10733
  function o(t, e) {
10734
10734
  w(this, o), Object.defineProperty(this, nr, { writable: !0, value: void 0 }), Object.defineProperty(this, ls, { writable: !0, value: void 0 }), l(this, nr)[nr] = e, l(this, ls)[ls] = t;
10735
10735
  }
@@ -10956,33 +10956,33 @@ var eI = Object.defineProperty, rI = Object.getOwnPropertyDescriptor, Gn = funct
10956
10956
  });
10957
10957
  } }]);
10958
10958
  }();
10959
- Gn([O.trace("SocketService.getChatMessages")], wn.prototype, "getChatMessages", 1);
10960
- Gn([O.trace("SocketService.getChatMessagesPaginated")], wn.prototype, "getChatMessagesPaginated", 1);
10961
- Gn([O.trace("SocketService.sendMessageToRoom")], wn.prototype, "sendMessageToRoom", 1);
10962
- Gn([O.trace("SocketService.sendMessageToPeers")], wn.prototype, "sendMessageToPeers", 1);
10963
- Gn([O.trace("SocketService.sendMessageToChannel")], wn.prototype, "sendMessageToChannel", 1);
10964
- Gn([O.trace("SocketService.sendMessage")], wn.prototype, "sendMessage", 1);
10965
- Gn([O.trace("SocketService.editMessage")], wn.prototype, "editMessage", 1);
10966
- Gn([O.trace("SocketService.deleteMessage")], wn.prototype, "deleteMessage", 1);
10967
- Gn([O.trace("SocketService.searchMessages")], wn.prototype, "searchMessages", 1);
10968
- Gn([O.trace("SocketService.getAllChannels")], wn.prototype, "getAllChannels", 1);
10969
- Gn([O.trace("SocketService.markLastReadMessage")], wn.prototype, "markLastReadMessage", 1);
10959
+ qn([O.trace("SocketService.getChatMessages")], Tn.prototype, "getChatMessages", 1);
10960
+ qn([O.trace("SocketService.getChatMessagesPaginated")], Tn.prototype, "getChatMessagesPaginated", 1);
10961
+ qn([O.trace("SocketService.sendMessageToRoom")], Tn.prototype, "sendMessageToRoom", 1);
10962
+ qn([O.trace("SocketService.sendMessageToPeers")], Tn.prototype, "sendMessageToPeers", 1);
10963
+ qn([O.trace("SocketService.sendMessageToChannel")], Tn.prototype, "sendMessageToChannel", 1);
10964
+ qn([O.trace("SocketService.sendMessage")], Tn.prototype, "sendMessage", 1);
10965
+ qn([O.trace("SocketService.editMessage")], Tn.prototype, "editMessage", 1);
10966
+ qn([O.trace("SocketService.deleteMessage")], Tn.prototype, "deleteMessage", 1);
10967
+ qn([O.trace("SocketService.searchMessages")], Tn.prototype, "searchMessages", 1);
10968
+ qn([O.trace("SocketService.getAllChannels")], Tn.prototype, "getAllChannels", 1);
10969
+ qn([O.trace("SocketService.markLastReadMessage")], Tn.prototype, "markLastReadMessage", 1);
10970
10970
  function tI(o) {
10971
10971
  return o.replace(/([-_]\w)/g, function(t) {
10972
10972
  return t[1].toUpperCase();
10973
10973
  });
10974
10974
  }
10975
- function jn(o) {
10975
+ function Un(o) {
10976
10976
  if (!o || ke(o) !== "object")
10977
10977
  return o;
10978
10978
  if (Array.isArray(o))
10979
10979
  return o.map(function(e) {
10980
- return jn(e);
10980
+ return Un(e);
10981
10981
  });
10982
10982
  var t = {};
10983
10983
  return Object.keys(o).forEach(function(e) {
10984
10984
  var r = Mv(e) ? e : tI(e);
10985
- t[r] = jn(o[e]);
10985
+ t[r] = Un(o[e]);
10986
10986
  }), t;
10987
10987
  }
10988
10988
  function nI(o) {
@@ -11198,7 +11198,7 @@ var pv = /* @__PURE__ */ function() {
11198
11198
  } }, { key: "setOrganizationId", value: function(e) {
11199
11199
  this.organizationId = e;
11200
11200
  } }]);
11201
- }(), uI = Object.defineProperty, lI = Object.getOwnPropertyDescriptor, Pn = function(t, e, r, n) {
11201
+ }(), uI = Object.defineProperty, lI = Object.getOwnPropertyDescriptor, wn = function(t, e, r, n) {
11202
11202
  for (var a = n > 1 ? void 0 : n ? lI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
11203
11203
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
11204
11204
  return n && a && uI(e, r, a), a;
@@ -11282,7 +11282,7 @@ var pv = /* @__PURE__ */ function() {
11282
11282
  case 2:
11283
11283
  return f.next = 4, this.requests.get("/v2/plugins/user");
11284
11284
  case 4:
11285
- return u = f.sent.data.data.plugins, c = ((a = this.context.getValue("flagsmith").getValue(ge.V1_PLUGINS)) === null || a === void 0 || (a = a.toString()) === null || a === void 0 ? void 0 : a.split(",")) || [], d = u.reduce(function(g, k) {
11285
+ return u = f.sent.data.data.plugins, c = ((a = this.context.getValue("flagsmith").getValue(me.V1_PLUGINS)) === null || a === void 0 || (a = a.toString()) === null || a === void 0 ? void 0 : a.split(",")) || [], d = u.reduce(function(g, k) {
11286
11286
  return g[c.includes(k.id) ? "v1" : "v2"].push(N(N({}, k), {}, { name: k.name.replace("v2", "") })), g;
11287
11287
  }, { v1: [], v2: [] }), (i = this.context.getValue("modules")) !== null && i !== void 0 && (i = i.devTools) !== null && i !== void 0 && (i = i.plugins) !== null && i !== void 0 && i.length && ((p = this.context.getValue("modules")) === null || p === void 0 || (p = p.devTools) === null || p === void 0 || p.plugins.forEach(function(g) {
11288
11288
  var k, y, b, E = N(N({}, Qo), {}, { tags: Pe(Qo.tags), baseUrl: "http://localhost:".concat(g.port), name: g.name, picture: (k = g.picture) !== null && k !== void 0 ? k : Qo.picture, createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), id: g.id, organizationId: s.organizationId, description: (y = g.description) !== null && y !== void 0 ? y : Qo.description, staggered: (b = g.staggered) !== null && b !== void 0 ? b : Qo.staggered });
@@ -11365,7 +11365,7 @@ var pv = /* @__PURE__ */ function() {
11365
11365
  for (; ; )
11366
11366
  switch (f.prev = f.next) {
11367
11367
  case 0:
11368
- return s = No(this.context, "chat_upload_expiry"), u = { roomUUID: this.roomUUID, filename: a, expiry: typeof s == "number" ? s : void 0 }, this.context.getValue("flagsmith").hasFeature(ge.FEAT_CHAT_SDK) && (u.viewType = i), f.next = 5, this.requests.post("/v1/meetings/genPreSignedUploadUrl", u);
11368
+ return s = No(this.context, "chat_upload_expiry"), u = { roomUUID: this.roomUUID, filename: a, expiry: typeof s == "number" ? s : void 0 }, this.context.getValue("flagsmith").hasFeature(me.FEAT_CHAT_SDK) && (u.viewType = i), f.next = 5, this.requests.post("/v1/meetings/genPreSignedUploadUrl", u);
11369
11369
  case 5:
11370
11370
  return c = f.sent.data.data, d = c.getLocation, p = c.putLocation, f.abrupt("return", { getLocation: d, putLocation: p });
11371
11371
  case 9:
@@ -11422,7 +11422,7 @@ var pv = /* @__PURE__ */ function() {
11422
11422
  for (; ; )
11423
11423
  switch (c.prev = c.next) {
11424
11424
  case 0:
11425
- return i = a.manualIngestion, c.t0 = jn, c.next = 4, this.requests.post("/v2/meetings/".concat(this.context.getValue("meetingId"), "/livestreams"), { manual_ingest: !!i });
11425
+ return i = a.manualIngestion, c.t0 = Un, c.next = 4, this.requests.post("/v2/meetings/".concat(this.context.getValue("meetingId"), "/livestreams"), { manual_ingest: !!i });
11426
11426
  case 4:
11427
11427
  return c.t1 = c.sent, s = (0, c.t0)(c.t1).data.data, c.abrupt("return", { playbackUrl: s.playbackUrl, status: s.status, manualIngest: s.manualIngest, ingestionCredentials: s.streamKey ? { ingestionServer: s.ingestServer, streamKey: s.streamKey } : null });
11428
11428
  case 7:
@@ -11461,7 +11461,7 @@ var pv = /* @__PURE__ */ function() {
11461
11461
  for (; ; )
11462
11462
  switch (s.prev = s.next) {
11463
11463
  case 0:
11464
- return s.t0 = jn, s.next = 3, this.requests.get("/v2/meetings/".concat(this.context.getValue("meetingId"), "/active-livestream"));
11464
+ return s.t0 = Un, s.next = 3, this.requests.get("/v2/meetings/".concat(this.context.getValue("meetingId"), "/active-livestream"));
11465
11465
  case 3:
11466
11466
  return s.t1 = s.sent.data.data, a = (0, s.t0)(s.t1), s.abrupt("return", { playbackUrl: a.playbackUrl, status: a.status, manualIngest: a.manualIngest, ingestionCredentials: a.streamKey ? { ingestionServer: a.ingestServer, streamKey: a.streamKey } : null });
11467
11467
  case 6:
@@ -11489,7 +11489,7 @@ var pv = /* @__PURE__ */ function() {
11489
11489
  case 2:
11490
11490
  return s.next = 4, this.requests.get("v2/internals/participant-details");
11491
11491
  case 4:
11492
- return a = s.sent.data.data, s.abrupt("return", jn(a));
11492
+ return a = s.sent.data.data, s.abrupt("return", Un(a));
11493
11493
  case 6:
11494
11494
  case "end":
11495
11495
  return s.stop();
@@ -11596,7 +11596,7 @@ var pv = /* @__PURE__ */ function() {
11596
11596
  }
11597
11597
  return c.abrupt("return", this.roomDetails);
11598
11598
  case 6:
11599
- return c.t0 = jn, c.next = 9, this.requests.post("v2/internals/rooms", { ip_information: a });
11599
+ return c.t0 = Un, c.next = 9, this.requests.post("v2/internals/rooms", { ip_information: a });
11600
11600
  case 9:
11601
11601
  return c.t1 = c.sent.data.data, i = (0, c.t0)(c.t1), s = i.title, c.abrupt("return", { meetingTitle: s });
11602
11602
  case 13:
@@ -11611,18 +11611,18 @@ var pv = /* @__PURE__ */ function() {
11611
11611
  return r;
11612
11612
  }() }]);
11613
11613
  }(oI);
11614
- Pn([O.trace("APIClient.getIPDetails")], on.prototype, "getIPDetails", 1);
11615
- Pn([O.trace("APIClient.getICEServers")], on.prototype, "getICEServers", 1);
11616
- Pn([O.trace("APIClient.getPlugins")], on.prototype, "getPlugins", 1);
11617
- Pn([O.trace("APIClient.startLivestreaming")], on.prototype, "startLivestreaming", 1);
11618
- Pn([O.trace("APIClient.stopLivestreaming")], on.prototype, "stopLivestreaming", 1);
11619
- Pn([O.trace("APIClient.getActiveLivestream")], on.prototype, "getActiveLivestream", 1);
11620
- Pn([O.trace("APIClient.getUserDetails")], on.prototype, "getUserDetails", 1);
11621
- Pn([O.trace("APIClient.startRecording")], on.prototype, "startRecording", 1);
11622
- Pn([O.trace("APIClient.stopRecording")], on.prototype, "updateRecording", 1);
11623
- Pn([O.trace("APIClient.getActiveRecording")], on.prototype, "getActiveRecording", 1);
11624
- Pn([O.trace("APIClient.getActiveTranscript")], on.prototype, "getActiveTranscript", 1);
11625
- Pn([O.trace("APIClient.getRoomNodeData")], on.prototype, "getRoomNodeData", 1);
11614
+ wn([O.trace("APIClient.getIPDetails")], on.prototype, "getIPDetails", 1);
11615
+ wn([O.trace("APIClient.getICEServers")], on.prototype, "getICEServers", 1);
11616
+ wn([O.trace("APIClient.getPlugins")], on.prototype, "getPlugins", 1);
11617
+ wn([O.trace("APIClient.startLivestreaming")], on.prototype, "startLivestreaming", 1);
11618
+ wn([O.trace("APIClient.stopLivestreaming")], on.prototype, "stopLivestreaming", 1);
11619
+ wn([O.trace("APIClient.getActiveLivestream")], on.prototype, "getActiveLivestream", 1);
11620
+ wn([O.trace("APIClient.getUserDetails")], on.prototype, "getUserDetails", 1);
11621
+ wn([O.trace("APIClient.startRecording")], on.prototype, "startRecording", 1);
11622
+ wn([O.trace("APIClient.stopRecording")], on.prototype, "updateRecording", 1);
11623
+ wn([O.trace("APIClient.getActiveRecording")], on.prototype, "getActiveRecording", 1);
11624
+ wn([O.trace("APIClient.getActiveTranscript")], on.prototype, "getActiveTranscript", 1);
11625
+ wn([O.trace("APIClient.getRoomNodeData")], on.prototype, "getRoomNodeData", 1);
11626
11626
  var Ld;
11627
11627
  function cI(o, t) {
11628
11628
  return Ld = new on(o, t), Ld;
@@ -11655,12 +11655,12 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
11655
11655
  for (var a = n > 1 ? void 0 : n ? hI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
11656
11656
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
11657
11657
  return n && a && pI(e, r, a), a;
11658
- }, vI = ["text", "image", "file", "custom", "poll"], Nl = { maxInvocations: 180, period: 60 }, at = (z = /* @__PURE__ */ C("self"), Jn = /* @__PURE__ */ C("participants"), $e = /* @__PURE__ */ C("chatSocketHandler"), Kn = /* @__PURE__ */ C("chatChannelSocketHandler"), oa = /* @__PURE__ */ C("context"), Fl = /* @__PURE__ */ C("connectionHandler"), so = /* @__PURE__ */ C("socketJoined"), /* @__PURE__ */ function(o) {
11658
+ }, vI = ["text", "image", "file", "custom", "poll"], Nl = { maxInvocations: 180, period: 60 }, at = (z = /* @__PURE__ */ C("self"), Wn = /* @__PURE__ */ C("participants"), $e = /* @__PURE__ */ C("chatSocketHandler"), Jn = /* @__PURE__ */ C("chatChannelSocketHandler"), oa = /* @__PURE__ */ C("context"), Fl = /* @__PURE__ */ C("connectionHandler"), so = /* @__PURE__ */ C("socketJoined"), /* @__PURE__ */ function(o) {
11659
11659
  function t(e, r, n, a, i) {
11660
11660
  var s;
11661
11661
  w(this, t);
11662
11662
  var u = e.getValue("logger");
11663
- return s = R(this, t, [u]), Object.defineProperty(s, so, { get: gI, set: void 0 }), Object.defineProperty(s, Fl, { get: fI, set: void 0 }), s.messages = void 0, s.channels = [], Object.defineProperty(s, z, { writable: !0, value: void 0 }), Object.defineProperty(s, Jn, { writable: !0, value: void 0 }), Object.defineProperty(s, $e, { writable: !0, value: void 0 }), Object.defineProperty(s, Kn, { writable: !0, value: void 0 }), Object.defineProperty(s, oa, { writable: !0, value: void 0 }), s.maxTextLimit = 2e3, l(s, oa)[oa] = e, l(s, $e)[$e] = r, l(s, Kn)[Kn] = n, l(s, z)[z] = a, l(s, Jn)[Jn] = i, s.messages = [], s;
11663
+ return s = R(this, t, [u]), Object.defineProperty(s, so, { get: gI, set: void 0 }), Object.defineProperty(s, Fl, { get: fI, set: void 0 }), s.messages = void 0, s.channels = [], Object.defineProperty(s, z, { writable: !0, value: void 0 }), Object.defineProperty(s, Wn, { writable: !0, value: void 0 }), Object.defineProperty(s, $e, { writable: !0, value: void 0 }), Object.defineProperty(s, Jn, { writable: !0, value: void 0 }), Object.defineProperty(s, oa, { writable: !0, value: void 0 }), s.maxTextLimit = 2e3, l(s, oa)[oa] = e, l(s, $e)[$e] = r, l(s, Jn)[Jn] = n, l(s, z)[z] = a, l(s, Wn)[Wn] = i, s.messages = [], s;
11664
11664
  }
11665
11665
  return A(t, o), P(t, [{
11666
11666
  key: "telemetry",
@@ -11755,7 +11755,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
11755
11755
  }
11756
11756
  return l(this, $e)[$e].sendMessageToChannel(a, St.TEXT, s), g.abrupt("return");
11757
11757
  case 17:
11758
- v = [], i && i.length > 0 && (i.push(l(this, z)[z].id), v = l(this, Jn)[Jn].joined.toArray().filter(function(k) {
11758
+ v = [], i && i.length > 0 && (i.push(l(this, z)[z].id), v = l(this, Wn)[Wn].joined.toArray().filter(function(k) {
11759
11759
  return i.includes(k.id);
11760
11760
  }).map(function(k) {
11761
11761
  return k.userId;
@@ -11818,7 +11818,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
11818
11818
  }
11819
11819
  return l(this, $e)[$e].sendMessageToChannel(k, St.IMAGE, s), T.abrupt("return");
11820
11820
  case 28:
11821
- b = [], i && i.length > 0 && (i.push(l(this, z)[z].id), b = l(this, Jn)[Jn].joined.toArray().filter(function(S) {
11821
+ b = [], i && i.length > 0 && (i.push(l(this, z)[z].id), b = l(this, Wn)[Wn].joined.toArray().filter(function(S) {
11822
11822
  return i.includes(S.id);
11823
11823
  }).map(function(S) {
11824
11824
  return S.userId;
@@ -11880,7 +11880,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
11880
11880
  }
11881
11881
  return l(this, $e)[$e].sendMessageToChannel(JSON.stringify({ link: g, name: a.name, size: "size" in a ? a.size : 0 }), St.FILE, s), T.abrupt("return");
11882
11882
  case 24:
11883
- y = [], i && i.length > 0 && (i.push(l(this, z)[z].id), y = l(this, Jn)[Jn].joined.toArray().filter(function(S) {
11883
+ y = [], i && i.length > 0 && (i.push(l(this, z)[z].id), y = l(this, Wn)[Wn].joined.toArray().filter(function(S) {
11884
11884
  return i.includes(S.id);
11885
11885
  }).map(function(S) {
11886
11886
  return S.userId;
@@ -12377,7 +12377,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
12377
12377
  return u = p.length > 3 && p[3] !== void 0 ? p[3] : 0, c = p.length > 4 && p[4] !== void 0 ? p[4] : void 0, f.next = 4, l(this, $e)[$e].getChatMessagesPaginated(a, i, s, u, c);
12378
12378
  case 4:
12379
12379
  return d = f.sent, f.abrupt("return", { messages: d.messages.map(function(g) {
12380
- return Un.formatSocketPeerMessage(g);
12380
+ return Vn.formatSocketPeerMessage(g);
12381
12381
  }), next: d.next });
12382
12382
  case 6:
12383
12383
  case "end":
@@ -12424,7 +12424,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
12424
12424
  }
12425
12425
  throw new j("channel name cannot be empty.", "0510");
12426
12426
  case 11:
12427
- return d = Pe(/* @__PURE__ */ new Set([].concat(Pe(i), [l(this, z)[z].userId]))), g.next = 14, l(this, Kn)[Kn].createChannel(a.trim(), d, u.displayPictureUrl, u.visibility, u.isDirectMessage);
12427
+ return d = Pe(/* @__PURE__ */ new Set([].concat(Pe(i), [l(this, z)[z].userId]))), g.next = 14, l(this, Jn)[Jn].createChannel(a.trim(), d, u.displayPictureUrl, u.visibility, u.isDirectMessage);
12428
12428
  case 14:
12429
12429
  return p = g.sent, g.abrupt("return", p);
12430
12430
  case 16:
@@ -12450,7 +12450,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
12450
12450
  throw new j("Not permitted to update private channels", "0501");
12451
12451
  }
12452
12452
  var v = { memberIds: (i = n.memberIds) !== null && i !== void 0 ? i : d.memberIds, displayName: (s = n.displayName) !== null && s !== void 0 ? s : d.displayName, displayPictureUrl: (u = n.displayPictureUrl) !== null && u !== void 0 ? u : d.displayPictureUrl, visibility: (c = n.visibility) !== null && c !== void 0 ? c : d.visibility };
12453
- return l(this, Kn)[Kn].updateChannel(r, v);
12453
+ return l(this, Jn)[Jn].updateChannel(r, v);
12454
12454
  } }, { key: "sendMessageToChannel", value: function() {
12455
12455
  var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
12456
12456
  var s, u = arguments;
@@ -12475,7 +12475,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
12475
12475
  for (; ; )
12476
12476
  switch (s.prev = s.next) {
12477
12477
  case 0:
12478
- return s.abrupt("return", l(this, Kn)[Kn].getChannelMembers(a));
12478
+ return s.abrupt("return", l(this, Jn)[Jn].getChannelMembers(a));
12479
12479
  case 1:
12480
12480
  case "end":
12481
12481
  return s.stop();
@@ -12493,7 +12493,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
12493
12493
  for (; ; )
12494
12494
  switch (d.prev = d.next) {
12495
12495
  case 0:
12496
- if (i = u.length > 1 && u[1] !== void 0 ? u[1] : {}, l(this, oa)[oa].getValue("flagsmith").hasFeature(ge.FEAT_CHAT_SDK_SEARCH)) {
12496
+ if (i = u.length > 1 && u[1] !== void 0 ? u[1] : {}, l(this, oa)[oa].getValue("flagsmith").hasFeature(me.FEAT_CHAT_SDK_SEARCH)) {
12497
12497
  d.next = 3;
12498
12498
  break;
12499
12499
  }
@@ -12501,7 +12501,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
12501
12501
  case 3:
12502
12502
  return d.next = 5, l(this, $e)[$e].searchMessages(a, i);
12503
12503
  case 5:
12504
- return s = d.sent, d.abrupt("return", s.map(Un.formatSocketPeerMessage));
12504
+ return s = d.sent, d.abrupt("return", s.map(Vn.formatSocketPeerMessage));
12505
12505
  case 7:
12506
12506
  case "end":
12507
12507
  return d.stop();
@@ -12574,9 +12574,9 @@ var mI = Object.defineProperty, yI = Object.getOwnPropertyDescriptor, kI = funct
12574
12574
  for (var a = n > 1 ? void 0 : n ? yI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
12575
12575
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
12576
12576
  return n && a && mI(e, r, a), a;
12577
- }, Es = (dn = /* @__PURE__ */ C("context"), /* @__PURE__ */ function() {
12577
+ }, Es = (Kn = /* @__PURE__ */ C("context"), /* @__PURE__ */ function() {
12578
12578
  function o(t, e, r, n, a) {
12579
- w(this, o), this.chat = void 0, this.chatSocketHandler = void 0, this.chatChannelSocketHandler = void 0, this.self = void 0, Object.defineProperty(this, dn, { writable: !0, value: void 0 }), l(this, dn)[dn] = t, this.chatSocketHandler = e, this.chatChannelSocketHandler = r, this.chat = new at(t, e, r, n, a), this.self = n, this.setupEvents();
12579
+ w(this, o), this.chat = void 0, this.chatSocketHandler = void 0, this.chatChannelSocketHandler = void 0, this.self = void 0, Object.defineProperty(this, Kn, { writable: !0, value: void 0 }), l(this, Kn)[Kn] = t, this.chatSocketHandler = e, this.chatChannelSocketHandler = r, this.chat = new at(t, e, r, n, a), this.self = n, this.setupEvents();
12580
12580
  }
12581
12581
  return P(o, [{
12582
12582
  key: "telemetry",
@@ -12586,7 +12586,7 @@ var mI = Object.defineProperty, yI = Object.getOwnPropertyDescriptor, kI = funct
12586
12586
  * Not for external use
12587
12587
  */
12588
12588
  function() {
12589
- return l(this, dn)[dn].getValue("telemetry");
12589
+ return l(this, Kn)[Kn].getValue("telemetry");
12590
12590
  }
12591
12591
  )
12592
12592
  /**
@@ -12594,7 +12594,7 @@ var mI = Object.defineProperty, yI = Object.getOwnPropertyDescriptor, kI = funct
12594
12594
  * Not for external use
12595
12595
  */
12596
12596
  }, { key: "logger", get: function() {
12597
- return l(this, dn)[dn].getValue("logger");
12597
+ return l(this, Kn)[Kn].getValue("logger");
12598
12598
  } }, { key: "getChatMessages", value: function() {
12599
12599
  var t = m(/* @__PURE__ */ h().mark(function r() {
12600
12600
  var n, a;
@@ -12602,7 +12602,7 @@ var mI = Object.defineProperty, yI = Object.getOwnPropertyDescriptor, kI = funct
12602
12602
  for (; ; )
12603
12603
  switch (s.prev = s.next) {
12604
12604
  case 0:
12605
- if (!(this.self.config.viewType === "LIVESTREAM" || this.self.config.viewType === "CHAT" || l(this, dn)[dn].getValue("flagsmith").hasFeature(ge.FEAT_PAGINATED_CHAT))) {
12605
+ if (this.self.config.viewType !== "LIVESTREAM") {
12606
12606
  s.next = 2;
12607
12607
  break;
12608
12608
  }
@@ -12631,7 +12631,7 @@ var mI = Object.defineProperty, yI = Object.getOwnPropertyDescriptor, kI = funct
12631
12631
  return e;
12632
12632
  }() }, { key: "setupEvents", value: function() {
12633
12633
  var e = this;
12634
- l(this, dn)[dn].getValue("peerSessionStore").on(F.SOCKET_SERVICE_ROOM_JOINED, /* @__PURE__ */ m(/* @__PURE__ */ h().mark(function r() {
12634
+ l(this, Kn)[Kn].getValue("peerSessionStore").on(F.SOCKET_SERVICE_ROOM_JOINED, /* @__PURE__ */ m(/* @__PURE__ */ h().mark(function r() {
12635
12635
  return h().wrap(function(a) {
12636
12636
  for (; ; )
12637
12637
  switch (a.prev = a.next) {
@@ -12746,8 +12746,8 @@ var mI = Object.defineProperty, yI = Object.getOwnPropertyDescriptor, kI = funct
12746
12746
  }
12747
12747
  return Es.formatMessage(n);
12748
12748
  } }]);
12749
- }()), Un = Es;
12750
- kI([O.trace("ChatController.setupEvents")], Un.prototype, "setupEvents", 1);
12749
+ }()), Vn = Es;
12750
+ kI([O.trace("ChatController.setupEvents")], Vn.prototype, "setupEvents", 1);
12751
12751
  var bI = Object.defineProperty, TI = Object.getOwnPropertyDescriptor, wI = function(t, e, r, n) {
12752
12752
  for (var a = n > 1 ? void 0 : n ? TI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
12753
12753
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
@@ -12838,9 +12838,9 @@ var EI = Object.defineProperty, CI = Object.getOwnPropertyDescriptor, RI = funct
12838
12838
  for (var a = n > 1 ? void 0 : n ? CI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
12839
12839
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
12840
12840
  return n && a && EI(e, r, a), a;
12841
- }, To = (pn = /* @__PURE__ */ C("context"), ri = /* @__PURE__ */ C("self"), zn = /* @__PURE__ */ C("pollSocketHandler"), /* @__PURE__ */ function() {
12841
+ }, To = (dn = /* @__PURE__ */ C("context"), ri = /* @__PURE__ */ C("self"), zn = /* @__PURE__ */ C("pollSocketHandler"), /* @__PURE__ */ function() {
12842
12842
  function o(t, e, r) {
12843
- w(this, o), this.polls = void 0, Object.defineProperty(this, pn, { writable: !0, value: void 0 }), Object.defineProperty(this, ri, { writable: !0, value: void 0 }), Object.defineProperty(this, zn, { writable: !0, value: void 0 }), this.polls = new $d(t, e, r), l(this, ri)[ri] = e, l(this, pn)[pn] = t, l(this, zn)[zn] = r, this.setupEvents();
12843
+ w(this, o), this.polls = void 0, Object.defineProperty(this, dn, { writable: !0, value: void 0 }), Object.defineProperty(this, ri, { writable: !0, value: void 0 }), Object.defineProperty(this, zn, { writable: !0, value: void 0 }), this.polls = new $d(t, e, r), l(this, ri)[ri] = e, l(this, dn)[dn] = t, l(this, zn)[zn] = r, this.setupEvents();
12844
12844
  }
12845
12845
  return P(o, [{
12846
12846
  key: "telemetry",
@@ -12850,7 +12850,7 @@ var EI = Object.defineProperty, CI = Object.getOwnPropertyDescriptor, RI = funct
12850
12850
  * Not for external use
12851
12851
  */
12852
12852
  function() {
12853
- return l(this, pn)[pn].getValue("telemetry");
12853
+ return l(this, dn)[dn].getValue("telemetry");
12854
12854
  }
12855
12855
  )
12856
12856
  /**
@@ -12858,7 +12858,7 @@ var EI = Object.defineProperty, CI = Object.getOwnPropertyDescriptor, RI = funct
12858
12858
  * Not for external use
12859
12859
  */
12860
12860
  }, { key: "logger", get: function() {
12861
- return l(this, pn)[pn].getValue("logger");
12861
+ return l(this, dn)[dn].getValue("logger");
12862
12862
  } }, { key: "canViewPolls", value: function() {
12863
12863
  return l(this, ri)[ri].permissions.polls.canView;
12864
12864
  } }, { key: "setupEvents", value: function() {
@@ -12869,13 +12869,13 @@ var EI = Object.defineProperty, CI = Object.getOwnPropertyDescriptor, RI = funct
12869
12869
  }, [Na.votePoll]: function(i) {
12870
12870
  i.poll && e.updatePoll(To.formatSocketServicePoll(i.poll));
12871
12871
  } }, n = function() {
12872
- l(e, pn)[pn].getValue("peerSessionStore").on(F.SOCKET_SERVICE_ROOM_JOINED, function() {
12872
+ l(e, dn)[dn].getValue("peerSessionStore").on(F.SOCKET_SERVICE_ROOM_JOINED, function() {
12873
12873
  e.getPolls();
12874
12874
  }), Object.keys(r).map(Number).forEach(function(s) {
12875
12875
  l(e, zn)[zn].on(s, r[s]);
12876
12876
  });
12877
12877
  }, a = function() {
12878
- l(e, pn)[pn].getValue("peerSessionStore").on(F.SOCKET_SERVICE_ROOM_JOINED, function() {
12878
+ l(e, dn)[dn].getValue("peerSessionStore").on(F.SOCKET_SERVICE_ROOM_JOINED, function() {
12879
12879
  e.getPolls();
12880
12880
  }), Object.keys(r).map(Number).forEach(function(s) {
12881
12881
  l(e, zn)[zn].removeListeners(s);
@@ -13030,7 +13030,7 @@ function _I() {
13030
13030
  }
13031
13031
  Nd = MI([ft("0800")], Nd);
13032
13032
  function OI(o) {
13033
- var t = "", e = [""], r = [e], n = 0, a = 0, i = !0, s, u = Fn(o), c;
13033
+ var t = "", e = [""], r = [e], n = 0, a = 0, i = !0, s, u = jn(o), c;
13034
13034
  try {
13035
13035
  for (u.s(); !(c = u.n()).done; )
13036
13036
  s = c.value, s === '"' ? (i && s === t && (e[n] += s), i = !i) : s === "," && i ? s = e[++n] = "" : s === `
@@ -13166,9 +13166,9 @@ var $I = Object.defineProperty, NI = Object.getOwnPropertyDescriptor, VI = funct
13166
13166
  for (var a = n > 1 ? void 0 : n ? NI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
13167
13167
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
13168
13168
  return n && a && $I(e, r, a), a;
13169
- }, fg = (hn = /* @__PURE__ */ C("self"), ti = /* @__PURE__ */ C("roomSocketHandler"), Or = /* @__PURE__ */ C("context"), /* @__PURE__ */ function() {
13169
+ }, fg = (pn = /* @__PURE__ */ C("self"), ti = /* @__PURE__ */ C("roomSocketHandler"), Or = /* @__PURE__ */ C("context"), /* @__PURE__ */ function() {
13170
13170
  function o(t, e, r, n, a, i) {
13171
- w(this, o), this.meta = void 0, this.ai = void 0, Object.defineProperty(this, hn, { writable: !0, value: void 0 }), Object.defineProperty(this, ti, { writable: !0, value: void 0 }), this.aiSocketHandler = void 0, Object.defineProperty(this, Or, { writable: !0, value: void 0 }), l(this, Or)[Or] = t, this.meta = new Nd(t, e, e.config.viewType, r, i), this.ai = n, l(this, hn)[hn] = e, l(this, ti)[ti] = r, this.aiSocketHandler = a, e.config.viewType !== Lt.Chat && this.setupEvents();
13171
+ w(this, o), this.meta = void 0, this.ai = void 0, Object.defineProperty(this, pn, { writable: !0, value: void 0 }), Object.defineProperty(this, ti, { writable: !0, value: void 0 }), this.aiSocketHandler = void 0, Object.defineProperty(this, Or, { writable: !0, value: void 0 }), l(this, Or)[Or] = t, this.meta = new Nd(t, e, e.config.viewType, r, i), this.ai = n, l(this, pn)[pn] = e, l(this, ti)[ti] = r, this.aiSocketHandler = a, e.config.viewType !== Lt.Chat && this.setupEvents();
13172
13172
  }
13173
13173
  return P(o, [{
13174
13174
  key: "telemetry",
@@ -13205,13 +13205,13 @@ var $I = Object.defineProperty, NI = Object.getOwnPropertyDescriptor, VI = funct
13205
13205
  }), l(this, Or)[Or].getValue("peerSessionStore").on(F.PRODUCER_SCORE_UPDATE, function(r) {
13206
13206
  var n = r.score;
13207
13207
  n < 5 && e.meta.emit("poorConnection", { score: n });
13208
- }), l(this, hn)[hn].permissions.canSpotlight && (this.logger.info("MetaController::Asserting Spotlight"), this.meta.selfActiveTab && l(this, ti)[ti].broadcastMessage("spotlight", { userId: l(this, hn)[hn].userId, currentTab: this.meta.selfActiveTab })), l(this, Or)[Or].getValue("peerSessionStore").on(F.PEER_JOINED_INTERNAL, /* @__PURE__ */ function() {
13208
+ }), l(this, pn)[pn].permissions.canSpotlight && (this.logger.info("MetaController::Asserting Spotlight"), this.meta.selfActiveTab && l(this, ti)[ti].broadcastMessage("spotlight", { userId: l(this, pn)[pn].userId, currentTab: this.meta.selfActiveTab })), l(this, Or)[Or].getValue("peerSessionStore").on(F.PEER_JOINED_INTERNAL, /* @__PURE__ */ function() {
13209
13209
  var r = m(/* @__PURE__ */ h().mark(function n(a) {
13210
13210
  return h().wrap(function(s) {
13211
13211
  for (; ; )
13212
13212
  switch (s.prev = s.next) {
13213
13213
  case 0:
13214
- l(e, hn)[hn].permissions.canSpotlight && e.meta.selfActiveTab && l(e, ti)[ti].broadcastToPeers("spotlight", [a.id], { userId: l(e, hn)[hn].userId, currentTab: e.meta.selfActiveTab });
13214
+ l(e, pn)[pn].permissions.canSpotlight && e.meta.selfActiveTab && l(e, ti)[ti].broadcastToPeers("spotlight", [a.id], { userId: l(e, pn)[pn].userId, currentTab: e.meta.selfActiveTab });
13215
13215
  case 1:
13216
13216
  case "end":
13217
13217
  return s.stop();
@@ -13681,9 +13681,9 @@ var qI = Object.defineProperty, GI = Object.getOwnPropertyDescriptor, WI = funct
13681
13681
  for (var a = n > 1 ? void 0 : n ? GI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
13682
13682
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
13683
13683
  return n && a && qI(e, r, a), a;
13684
- }, Sn = /* @__PURE__ */ C("self"), ot = /* @__PURE__ */ C("participants"), En = /* @__PURE__ */ C("stageSocketHandler"), ru = /* @__PURE__ */ C("stageRequestCount"), gr = /* @__PURE__ */ C("context"), mg = /* @__PURE__ */ function() {
13684
+ }, Pn = /* @__PURE__ */ C("self"), ot = /* @__PURE__ */ C("participants"), Sn = /* @__PURE__ */ C("stageSocketHandler"), ru = /* @__PURE__ */ C("stageRequestCount"), gr = /* @__PURE__ */ C("context"), mg = /* @__PURE__ */ function() {
13685
13685
  function o(t, e, r, n, a) {
13686
- w(this, o), this.stage = void 0, Object.defineProperty(this, Sn, { writable: !0, value: void 0 }), Object.defineProperty(this, ot, { writable: !0, value: void 0 }), Object.defineProperty(this, En, { writable: !0, value: void 0 }), Object.defineProperty(this, ru, { writable: !0, value: 0 }), Object.defineProperty(this, gr, { writable: !0, value: void 0 }), l(this, gr)[gr] = t, this.stage = new Di(t, n, a, e, r), l(this, En)[En] = e, l(this, Sn)[Sn] = n, l(this, ot)[ot] = a, this.setupEvents();
13686
+ w(this, o), this.stage = void 0, Object.defineProperty(this, Pn, { writable: !0, value: void 0 }), Object.defineProperty(this, ot, { writable: !0, value: void 0 }), Object.defineProperty(this, Sn, { writable: !0, value: void 0 }), Object.defineProperty(this, ru, { writable: !0, value: 0 }), Object.defineProperty(this, gr, { writable: !0, value: void 0 }), l(this, gr)[gr] = t, this.stage = new Di(t, n, a, e, r), l(this, Sn)[Sn] = e, l(this, Pn)[Pn] = n, l(this, ot)[ot] = a, this.setupEvents();
13687
13687
  }
13688
13688
  return P(o, [{
13689
13689
  key: "telemetry",
@@ -13706,20 +13706,20 @@ var qI = Object.defineProperty, GI = Object.getOwnPropertyDescriptor, WI = funct
13706
13706
  var e = this;
13707
13707
  l(this, gr)[gr].subscribe("stageStatus", function(r) {
13708
13708
  e.stage.emit("stageStatusUpdate", r);
13709
- }), l(this, En)[En].on(Q.grantStageAccess, function() {
13710
- l(e, Sn)[Sn].permissions.stageAccess !== te.Allowed && (e.stage.emit("stageRequestApproved"), e.setStageStatus("ACCEPTED_TO_JOIN_STAGE"));
13711
- }), l(this, En)[En].on(Q.peerStageStatusUpdate, function(r) {
13712
- r !== void 0 && (r.peerId === l(e, Sn)[Sn].id ? e.selfStageStatusHandler(r) : e.peerStageStatusHandler(r));
13713
- }), l(this, En)[En].on(Q.denyStageAccess, function() {
13714
- l(e, Sn)[Sn].permissions.stageAccess !== te.Allowed && (e.stage.emit("stageRequestRejected"), e.setStageStatus("OFF_STAGE"));
13715
- }), l(this, En)[En].on(Q.getStageRequests, /* @__PURE__ */ function() {
13709
+ }), l(this, Sn)[Sn].on(Q.grantStageAccess, function() {
13710
+ l(e, Pn)[Pn].permissions.stageAccess !== te.Allowed && (e.stage.emit("stageRequestApproved"), e.setStageStatus("ACCEPTED_TO_JOIN_STAGE"));
13711
+ }), l(this, Sn)[Sn].on(Q.peerStageStatusUpdate, function(r) {
13712
+ r !== void 0 && (r.peerId === l(e, Pn)[Pn].id ? e.selfStageStatusHandler(r) : e.peerStageStatusHandler(r));
13713
+ }), l(this, Sn)[Sn].on(Q.denyStageAccess, function() {
13714
+ l(e, Pn)[Pn].permissions.stageAccess !== te.Allowed && (e.stage.emit("stageRequestRejected"), e.setStageStatus("OFF_STAGE"));
13715
+ }), l(this, Sn)[Sn].on(Q.getStageRequests, /* @__PURE__ */ function() {
13716
13716
  var r = m(/* @__PURE__ */ h().mark(function n(a) {
13717
13717
  var i, s;
13718
13718
  return h().wrap(function(c) {
13719
13719
  for (; ; )
13720
13720
  switch (c.prev = c.next) {
13721
13721
  case 0:
13722
- if (l(e, Sn)[Sn].permissions.stageAccess === te.Allowed) {
13722
+ if (l(e, Pn)[Pn].permissions.stageAccess === te.Allowed) {
13723
13723
  c.next = 2;
13724
13724
  break;
13725
13725
  }
@@ -13841,12 +13841,12 @@ var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Sc = funct
13841
13841
  for (var a = n > 1 ? void 0 : n ? KI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
13842
13842
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
13843
13843
  return n && a && JI(e, r, a), a;
13844
- }, Lr = { getPeer: 14, getPeers: 15, chatMessage: 16, getRoomName: 17, getDisplayTitle: 18, getPluginInitiator: 19, customPluginEventToParent: 20, peerJoined: 22, peerLeft: 23, sendData: 24, stageStatusUpdate: 25, peerStageStatusUpdate: 26 }, Vo = (Qe = /* @__PURE__ */ C("pluginSocketHandler"), Dr = /* @__PURE__ */ C("self"), ni = /* @__PURE__ */ C("participants"), ai = /* @__PURE__ */ C("chat"), It = /* @__PURE__ */ C("startedAt"), ii = /* @__PURE__ */ C("authToken"), vn = /* @__PURE__ */ C("context"), si = /* @__PURE__ */ C("meetingTitle"), /* @__PURE__ */ function(o) {
13844
+ }, Lr = { getPeer: 14, getPeers: 15, chatMessage: 16, getRoomName: 17, getDisplayTitle: 18, getPluginInitiator: 19, customPluginEventToParent: 20, peerJoined: 22, peerLeft: 23, sendData: 24, stageStatusUpdate: 25, peerStageStatusUpdate: 26 }, Vo = (Qe = /* @__PURE__ */ C("pluginSocketHandler"), Dr = /* @__PURE__ */ C("self"), ni = /* @__PURE__ */ C("participants"), ai = /* @__PURE__ */ C("chat"), It = /* @__PURE__ */ C("startedAt"), ii = /* @__PURE__ */ C("authToken"), hn = /* @__PURE__ */ C("context"), si = /* @__PURE__ */ C("meetingTitle"), /* @__PURE__ */ function(o) {
13845
13845
  function t(e, r, n, a, i, s, u) {
13846
13846
  var c, d = r.baseURL, p = r.createdAt, v = r.description, f = r.id, g = r.name, k = r.organizationId, y = r.picture, b = r.private, E = r.published, T = r.staggered, S = r.tags, D = r.type, I = r.updatedAt;
13847
13847
  w(this, t);
13848
13848
  var _ = e.getValue("logger");
13849
- return c = R(this, t, [_]), Object.defineProperty(c, Qe, { writable: !0, value: void 0 }), c.baseURL = void 0, c.createdAt = void 0, c.description = void 0, c.id = void 0, c.name = void 0, Object.defineProperty(c, Dr, { writable: !0, value: void 0 }), Object.defineProperty(c, ni, { writable: !0, value: void 0 }), Object.defineProperty(c, ai, { writable: !0, value: void 0 }), c.organizationId = void 0, c.picture = void 0, c.private = void 0, c.published = void 0, c.staggered = void 0, c.tags = void 0, c.type = void 0, c.updatedAt = void 0, Object.defineProperty(c, It, { writable: !0, value: void 0 }), c.config = void 0, Object.defineProperty(c, ii, { writable: !0, value: void 0 }), c.active = void 0, c.iframes = void 0, c.enabledBy = void 0, Object.defineProperty(c, vn, { writable: !0, value: void 0 }), Object.defineProperty(c, si, { writable: !0, value: void 0 }), l(c, vn)[vn] = e, c.baseURL = d, c.createdAt = new Date(p), c.description = v, c.id = f, c.name = g, l(c, Dr)[Dr] = a, c.organizationId = k, c.picture = y, c.private = b, c.published = E, c.staggered = T, c.tags = S, c.type = D, c.updatedAt = new Date(I), c.active = !1, c.iframes = /* @__PURE__ */ new Map(), l(c, Qe)[Qe] = n, l(c, ni)[ni] = i, l(c, ai)[ai] = s, c.enabledBy = "", l(c, si)[si] = u, c;
13849
+ return c = R(this, t, [_]), Object.defineProperty(c, Qe, { writable: !0, value: void 0 }), c.baseURL = void 0, c.createdAt = void 0, c.description = void 0, c.id = void 0, c.name = void 0, Object.defineProperty(c, Dr, { writable: !0, value: void 0 }), Object.defineProperty(c, ni, { writable: !0, value: void 0 }), Object.defineProperty(c, ai, { writable: !0, value: void 0 }), c.organizationId = void 0, c.picture = void 0, c.private = void 0, c.published = void 0, c.staggered = void 0, c.tags = void 0, c.type = void 0, c.updatedAt = void 0, Object.defineProperty(c, It, { writable: !0, value: void 0 }), c.config = void 0, Object.defineProperty(c, ii, { writable: !0, value: void 0 }), c.active = void 0, c.iframes = void 0, c.enabledBy = void 0, Object.defineProperty(c, hn, { writable: !0, value: void 0 }), Object.defineProperty(c, si, { writable: !0, value: void 0 }), l(c, hn)[hn] = e, c.baseURL = d, c.createdAt = new Date(p), c.description = v, c.id = f, c.name = g, l(c, Dr)[Dr] = a, c.organizationId = k, c.picture = y, c.private = b, c.published = E, c.staggered = T, c.tags = S, c.type = D, c.updatedAt = new Date(I), c.active = !1, c.iframes = /* @__PURE__ */ new Map(), l(c, Qe)[Qe] = n, l(c, ni)[ni] = i, l(c, ai)[ai] = s, c.enabledBy = "", l(c, si)[si] = u, c;
13850
13850
  }
13851
13851
  return A(t, o), P(t, [{ key: "telemetry", get: (
13852
13852
  /**
@@ -13854,7 +13854,7 @@ var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Sc = funct
13854
13854
  * Not for external use
13855
13855
  */
13856
13856
  function() {
13857
- return l(this, vn)[vn].getValue("telemetry");
13857
+ return l(this, hn)[hn].getValue("telemetry");
13858
13858
  }
13859
13859
  ) }, { key: "sendIframeEvent", value: function(r) {
13860
13860
  this.iframes.size && this.iframes.forEach(function(n) {
@@ -13922,7 +13922,7 @@ var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Sc = funct
13922
13922
  case 51:
13923
13923
  return this.sendIframeEvent({ type: Lr.getDisplayTitle, payload: { displayTitle: l(this, si)[si] }, uuid: i.uuid }), E.abrupt("break", 57);
13924
13924
  case 53:
13925
- return this.sendIframeEvent({ type: Lr.getRoomName, payload: { roomName: l(this, vn)[vn].getValue("meetingId") }, uuid: i.uuid }), E.abrupt("break", 57);
13925
+ return this.sendIframeEvent({ type: Lr.getRoomName, payload: { roomName: l(this, hn)[hn].getValue("meetingId") }, uuid: i.uuid }), E.abrupt("break", 57);
13926
13926
  case 55:
13927
13927
  return this.emit(i.payload.eventName, i.payload.data), E.abrupt("break", 57);
13928
13928
  case 57:
@@ -13964,7 +13964,7 @@ var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Sc = funct
13964
13964
  if (!r)
13965
13965
  throw this.logger.error("Plugin::addPluginView::iframe_was_not_provided"), new j("Iframe was not provided.", "0603");
13966
13966
  this.removePluginView(i);
13967
- var s = r, u = new URL(this.baseURL), c = { auth: l(this, ii)[ii], parent: navigator.isReactNative ? this.baseURL : window.location.origin, backend: l(this, vn)[vn].getValue("apiBase"), pluginId: this.id, roomName: (n = l(this, vn)[vn].getValue("meetingId")) !== null && n !== void 0 ? n : "", displayTitle: l(this, si)[si] };
13967
+ var s = r, u = new URL(this.baseURL), c = { auth: l(this, ii)[ii], parent: navigator.isReactNative ? this.baseURL : window.location.origin, backend: l(this, hn)[hn].getValue("apiBase"), pluginId: this.id, roomName: (n = l(this, hn)[hn].getValue("meetingId")) !== null && n !== void 0 ? n : "", displayTitle: l(this, si)[si] };
13968
13968
  if (Object.keys(c).forEach(function(p) {
13969
13969
  u.searchParams.set(p, c[p]);
13970
13970
  }), s.src = u.href, s.allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", s.title = i, navigator.isReactNative)
@@ -14485,10 +14485,10 @@ var XI = Object.defineProperty, ZI = Object.getOwnPropertyDescriptor, Ec = funct
14485
14485
  return r.apply(this, arguments);
14486
14486
  };
14487
14487
  }()), l(this, oi)[oi].on(Ir.sendMessageToPeers, function(r) {
14488
- var n = Un == null ? void 0 : Un.formatSocketPeerMessage(r.message);
14488
+ var n = Vn == null ? void 0 : Vn.formatSocketPeerMessage(r.message);
14489
14489
  e.broadcastIframeEvent(Lr.chatMessage, { message: n });
14490
14490
  }), l(this, oi)[oi].on(Ir.sendMessageToRoom, function(r) {
14491
- var n = Un == null ? void 0 : Un.formatSocketPeerMessage(r.message);
14491
+ var n = Vn == null ? void 0 : Vn.formatSocketPeerMessage(r.message);
14492
14492
  e.broadcastIframeEvent(Lr.chatMessage, { message: n });
14493
14493
  }), l(this, et)[et].getValue("peerSessionStore").on(F.PEER_JOINED_INTERNAL, function(r) {
14494
14494
  var n = rc(r);
@@ -14865,12 +14865,12 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
14865
14865
  for (var a = n > 1 ? void 0 : n ? cM(e, r) : e, i = t.length - 1, s; i >= 0; i--)
14866
14866
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
14867
14867
  return n && a && lM(e, r, a), a;
14868
- }, je = /* @__PURE__ */ C("mediaInterface"), me = /* @__PURE__ */ C("audioMediaHandler"), fe = /* @__PURE__ */ C("videoMediaHandler"), Wt = /* @__PURE__ */ C("audioOutputMediaHandler"), Xr = /* @__PURE__ */ C("screenShareMediaHandler"), nu = /* @__PURE__ */ C("autoSwitchDevice"), Ee = /* @__PURE__ */ C("context"), Nt = /* @__PURE__ */ function(o) {
14868
+ }, je = /* @__PURE__ */ C("mediaInterface"), ge = /* @__PURE__ */ C("audioMediaHandler"), fe = /* @__PURE__ */ C("videoMediaHandler"), Wt = /* @__PURE__ */ C("audioOutputMediaHandler"), Xr = /* @__PURE__ */ C("screenShareMediaHandler"), nu = /* @__PURE__ */ C("autoSwitchDevice"), Ee = /* @__PURE__ */ C("context"), Nt = /* @__PURE__ */ function(o) {
14869
14869
  function t(e, r) {
14870
14870
  var n, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : tc, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0;
14871
14871
  w(this, t);
14872
14872
  var s = e.getValue("logger");
14873
- return n = R(this, t, [s]), Object.defineProperty(n, je, { writable: !0, value: void 0 }), Object.defineProperty(n, me, { writable: !0, value: void 0 }), Object.defineProperty(n, fe, { writable: !0, value: void 0 }), Object.defineProperty(n, Wt, { writable: !0, value: void 0 }), Object.defineProperty(n, Xr, { writable: !0, value: void 0 }), Object.defineProperty(n, nu, { writable: !0, value: void 0 }), Object.defineProperty(n, Ee, { writable: !0, value: void 0 }), n.audioUpdateInProgress = void 0, n.videoUpdateInProgress = void 0, l(n, Ee)[Ee] = e, n.audioUpdateInProgress = !1, n.videoUpdateInProgress = !1, l(n, je)[je] = new Tg(e, r), l(n, me)[me] = new DM(e, l(n, je)[je], void 0, a), l(n, fe)[fe] = new FM(e, l(n, je)[je], void 0, a), l(n, Xr)[Xr] = new VM(l(n, Ee)[Ee], l(n, je)[je]), l(n, Wt)[Wt] = new $M(e, l(n, je)[je]), l(n, nu)[nu] = i, l(n, me)[me].on("trackMuted", n.onAudioTrackMuted.bind(n)), l(n, me)[me].on("trackChanged", n.onAudioTrackChanged.bind(n)), l(n, fe)[fe].on("trackChanged", n.onVideoTrackChanged.bind(n)), l(n, fe)[fe].on("trackEnded", n.onVideoTrackEnded.bind(n)), l(n, Xr)[Xr].on("trackEnded", n.onScreenShareEnded.bind(n)), n.onVisibilityChange = n.onVisibilityChange.bind(n), document.addEventListener("visibilitychange", n.onVisibilityChange), n;
14873
+ return n = R(this, t, [s]), Object.defineProperty(n, je, { writable: !0, value: void 0 }), Object.defineProperty(n, ge, { writable: !0, value: void 0 }), Object.defineProperty(n, fe, { writable: !0, value: void 0 }), Object.defineProperty(n, Wt, { writable: !0, value: void 0 }), Object.defineProperty(n, Xr, { writable: !0, value: void 0 }), Object.defineProperty(n, nu, { writable: !0, value: void 0 }), Object.defineProperty(n, Ee, { writable: !0, value: void 0 }), n.audioUpdateInProgress = void 0, n.videoUpdateInProgress = void 0, l(n, Ee)[Ee] = e, n.audioUpdateInProgress = !1, n.videoUpdateInProgress = !1, l(n, je)[je] = new Tg(e, r), l(n, ge)[ge] = new DM(e, l(n, je)[je], void 0, a), l(n, fe)[fe] = new FM(e, l(n, je)[je], void 0, a), l(n, Xr)[Xr] = new VM(l(n, Ee)[Ee], l(n, je)[je]), l(n, Wt)[Wt] = new $M(e, l(n, je)[je]), l(n, nu)[nu] = i, l(n, ge)[ge].on("trackMuted", n.onAudioTrackMuted.bind(n)), l(n, ge)[ge].on("trackChanged", n.onAudioTrackChanged.bind(n)), l(n, fe)[fe].on("trackChanged", n.onVideoTrackChanged.bind(n)), l(n, fe)[fe].on("trackEnded", n.onVideoTrackEnded.bind(n)), l(n, Xr)[Xr].on("trackEnded", n.onScreenShareEnded.bind(n)), n.onVisibilityChange = n.onVisibilityChange.bind(n), document.addEventListener("visibilitychange", n.onVisibilityChange), n;
14874
14874
  }
14875
14875
  return A(t, o), P(t, [{ key: "telemetry", get: (
14876
14876
  /**
@@ -14942,7 +14942,7 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
14942
14942
  y.next = 15;
14943
14943
  break;
14944
14944
  }
14945
- return y.prev = 4, y.next = 7, l(this, je)[je].getAudioAndVideoTrack(l(this, me)[me].userSelectedDevice, l(this, fe)[fe].userSelectedDevice);
14945
+ return y.prev = 4, y.next = 7, l(this, je)[je].getAudioAndVideoTrack(l(this, ge)[ge].userSelectedDevice, l(this, fe)[fe].userSelectedDevice);
14946
14946
  case 7:
14947
14947
  v = y.sent, d = v.audioTrack, p = v.videoTrack, y.next = 15;
14948
14948
  break;
@@ -14953,7 +14953,7 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
14953
14953
  y.next = 25;
14954
14954
  break;
14955
14955
  }
14956
- return y.prev = 16, y.next = 19, l(this, je)[je].getAudioTrack(!1, l(this, me)[me].userSelectedDevice);
14956
+ return y.prev = 16, y.next = 19, l(this, je)[je].getAudioTrack(!1, l(this, ge)[ge].userSelectedDevice);
14957
14957
  case 19:
14958
14958
  d = y.sent, y.next = 25;
14959
14959
  break;
@@ -14971,7 +14971,7 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
14971
14971
  case 32:
14972
14972
  y.prev = 32, y.t2 = y.catch(26), this.logger.error("LocalMediaHandler::init::Failed to get video track", { error: y.t2 });
14973
14973
  case 35:
14974
- return u && !d && l(this, Ee)[Ee].getValue("callstats").audioOff(), c && !p && l(this, Ee)[Ee].getValue("callstats").videoOff(), y.next = 39, l(this, me)[me].setMediaTrack(d);
14974
+ return u && !d && l(this, Ee)[Ee].getValue("callstats").audioOff(), c && !p && l(this, Ee)[Ee].getValue("callstats").videoOff(), y.next = 39, l(this, ge)[ge].setMediaTrack(d);
14975
14975
  case 39:
14976
14976
  return y.next = 41, l(this, fe)[fe].setMediaTrack(p);
14977
14977
  case 41:
@@ -15012,7 +15012,7 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
15012
15012
  }
15013
15013
  return r;
15014
15014
  }() }, { key: "getCurrentDevices", value: function() {
15015
- return { audio: l(this, me)[me].currentDevice, video: l(this, fe)[fe].currentDevice, speaker: l(this, Wt)[Wt].currentDevice };
15015
+ return { audio: l(this, ge)[ge].currentDevice, video: l(this, fe)[fe].currentDevice, speaker: l(this, Wt)[Wt].currentDevice };
15016
15016
  } }, { key: "permissions", get: function() {
15017
15017
  return l(this, je)[je].permissions;
15018
15018
  } }, { key: "getAllDevices", value: function() {
@@ -15030,11 +15030,11 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
15030
15030
  } }, { key: "onAudioTrackChanged", value: function() {
15031
15031
  this.emit("AUDIO_TRACK_CHANGE");
15032
15032
  } }, { key: "rawAudioTrack", get: function() {
15033
- return l(this, me)[me].mediaTrack;
15033
+ return l(this, ge)[ge].mediaTrack;
15034
15034
  } }, { key: "audioTrack", get: function() {
15035
- return l(this, me)[me].transformedMediaTrack;
15035
+ return l(this, ge)[ge].transformedMediaTrack;
15036
15036
  } }, { key: "audioEnabled", get: function() {
15037
- return l(this, me)[me].trackEnabled;
15037
+ return l(this, ge)[ge].trackEnabled;
15038
15038
  } }, { key: "enableAudio", value: function() {
15039
15039
  var e = m(/* @__PURE__ */ h().mark(function n(a) {
15040
15040
  return h().wrap(function(s) {
@@ -15051,12 +15051,12 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
15051
15051
  s.next = 9;
15052
15052
  break;
15053
15053
  }
15054
- return s.next = 7, l(this, me)[me].enableTrack(!1, a);
15054
+ return s.next = 7, l(this, ge)[ge].enableTrack(!1, a);
15055
15055
  case 7:
15056
15056
  s.next = 11;
15057
15057
  break;
15058
15058
  case 9:
15059
- return s.next = 11, l(this, me)[me].unmuteTrack();
15059
+ return s.next = 11, l(this, ge)[ge].unmuteTrack();
15060
15060
  case 11:
15061
15061
  s.next = 15;
15062
15062
  break;
@@ -15075,7 +15075,7 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
15075
15075
  }
15076
15076
  return r;
15077
15077
  }() }, { key: "disableAudio", value: function() {
15078
- l(this, me)[me].mediaTrack && !l(this, me)[me].isCustomTrack ? l(this, me)[me].muteTrack() : l(this, me)[me].disableTrack();
15078
+ l(this, ge)[ge].mediaTrack && !l(this, ge)[ge].isCustomTrack ? l(this, ge)[ge].muteTrack() : l(this, ge)[ge].disableTrack();
15079
15079
  } }, { key: "getAudioDevices", value: function(r) {
15080
15080
  return l(this, je)[je].getAudioInputDevices(r);
15081
15081
  } }, {
@@ -15087,7 +15087,7 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
15087
15087
  for (; ; )
15088
15088
  switch (c.prev = c.next) {
15089
15089
  case 0:
15090
- return s = i.saveDevicePreference, c.next = 3, l(this, me)[me].setDevice(a, { saveDevicePreference: s });
15090
+ return s = i.saveDevicePreference, c.next = 3, l(this, ge)[ge].setDevice(a, { saveDevicePreference: s });
15091
15091
  case 3:
15092
15092
  a != null && a.deviceId && l(this, Ee)[Ee].getValue("callstats").selectedDevice("AUDIO", a), this.emit("AUDIO_TRACK_CHANGE"), this.emit("DEVICE_CHANGE", { device: a });
15093
15093
  case 6:
@@ -15318,11 +15318,11 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
15318
15318
  * Middleware Utility
15319
15319
  */
15320
15320
  }, { key: "addAudioMiddleware", value: function(r) {
15321
- return l(this, me)[me].addMiddleware(r);
15321
+ return l(this, ge)[ge].addMiddleware(r);
15322
15322
  } }, { key: "removeAudioMiddleware", value: function(r) {
15323
- return l(this, me)[me].removeMiddleware(r);
15323
+ return l(this, ge)[ge].removeMiddleware(r);
15324
15324
  } }, { key: "removeAllAudioMiddlewares", value: function() {
15325
- return l(this, me)[me].removeAllMiddlewares();
15325
+ return l(this, ge)[ge].removeAllMiddlewares();
15326
15326
  } }, { key: "addVideoMiddleware", value: function(r) {
15327
15327
  return l(this, fe)[fe].addMiddleware(r);
15328
15328
  } }, { key: "removeVideoMiddleware", value: function(r) {
@@ -15332,7 +15332,7 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
15332
15332
  } }, { key: "setVideoMiddlewareGlobalConfig", value: function(r) {
15333
15333
  return l(this, fe)[fe].setVideoMiddlewareGlobalConfig(r);
15334
15334
  } }, { key: "destruct", value: function() {
15335
- l(this, me)[me].disableTrack(), l(this, fe)[fe].disableTrack(), l(this, fe)[fe].terminateMiddlewareWebWorker(), l(this, Xr)[Xr].disableScreenShare(), l(this, je)[je].destruct();
15335
+ l(this, ge)[ge].disableTrack(), l(this, fe)[fe].disableTrack(), l(this, fe)[fe].terminateMiddlewareWebWorker(), l(this, Xr)[Xr].disableScreenShare(), l(this, je)[je].destruct();
15336
15336
  } }, {
15337
15337
  key: "onDeviceChange",
15338
15338
  value: function() {
@@ -15441,7 +15441,7 @@ var ga = /* @__PURE__ */ C("context"), sM = /* @__PURE__ */ function() {
15441
15441
  }, {
15442
15442
  key: "removeAudioTrack",
15443
15443
  value: function() {
15444
- l(this, me)[me].disableTrack();
15444
+ l(this, ge)[ge].disableTrack();
15445
15445
  }
15446
15446
  /**
15447
15447
  * NOTE(ravindra-cloudflare):
@@ -15688,7 +15688,7 @@ var ma = /* @__PURE__ */ C("middlewareWebWorkerInterval"), au = /* @__PURE__ */
15688
15688
  if (i != null && (n = i.encodings) !== null && n !== void 0 && n.length)
15689
15689
  return i.encodings;
15690
15690
  var s = "getSettings" in e && e.getSettings().width || "getConstraints" in e && e.getConstraints().width || "originalSettings" in e && ((a = e.originalSettings) === null || a === void 0 ? void 0 : a.width), u = vM;
15691
- t.getValue("flagsmith").hasFeature(ge.OVERRIDE_SIMULCAST_DYNAMIC) && (u = JSON.parse(t.getValue("flagsmith").getValue(ge.OVERRIDE_SIMULCAST_DYNAMIC)));
15691
+ t.getValue("flagsmith").hasFeature(me.OVERRIDE_SIMULCAST_DYNAMIC) && (u = JSON.parse(t.getValue("flagsmith").getValue(me.OVERRIDE_SIMULCAST_DYNAMIC)));
15692
15692
  var c = u.map(function(v) {
15693
15693
  var f = He(v, 1), g = f[0];
15694
15694
  return g;
@@ -15700,7 +15700,7 @@ var ma = /* @__PURE__ */ C("middlewareWebWorkerInterval"), au = /* @__PURE__ */
15700
15700
  }), u[p][1];
15701
15701
  }, dr = /* @__PURE__ */ function(o) {
15702
15702
  return o.WEBCAM = "webcam", o.WEBCAM_BACKUP = "webcam_backup", o.MIC = "mic", o.SCREENSHARE_VIDEO = "screenshare_video", o.SCREENSHARE_AUDIO = "screenshare_audio", o;
15703
- }(dr || {}), gM = ET(), ko = jn(gM.config.media);
15703
+ }(dr || {}), gM = ET(), ko = Un(gM.config.media);
15704
15704
  function mM(o) {
15705
15705
  var t = {};
15706
15706
  if (o.audio) {
@@ -15714,13 +15714,13 @@ var ya = /* @__PURE__ */ C("mediaConstraints"), kt = /* @__PURE__ */ C("context"
15714
15714
  var r = this;
15715
15715
  w(this, o), Object.defineProperty(this, ya, { writable: !0, value: void 0 }), Object.defineProperty(this, kt, { writable: !0, value: void 0 }), this.getScreenShareConstraints = function() {
15716
15716
  var n, a, i, s, u, c, d, p, v, f = (n = l(r, ya)[ya]) === null || n === void 0 ? void 0 : n.screenshare, g = (a = f == null || (i = f.width) === null || i === void 0 ? void 0 : i.max) !== null && a !== void 0 ? a : 1920, k = (s = f == null || (u = f.height) === null || u === void 0 ? void 0 : u.max) !== null && s !== void 0 ? s : 1080, y = (c = f == null || (d = f.frameRate) === null || d === void 0 ? void 0 : d.max) !== null && c !== void 0 ? c : 5, b = (p = f == null || (v = f.frameRate) === null || v === void 0 ? void 0 : v.ideal) !== null && p !== void 0 ? p : 5, E = f == null ? void 0 : f.displaySurface, T = f == null ? void 0 : f.selfBrowserSurface;
15717
- if (l(r, kt)[kt].getValue("flagsmith").getValue(ge.VAL_MIN_FRAMERATE)) {
15717
+ if (l(r, kt)[kt].getValue("flagsmith").getValue(me.VAL_MIN_FRAMERATE)) {
15718
15718
  var S;
15719
- b = parseInt((S = l(r, kt)[kt].getValue("flagsmith").getValue(ge.VAL_MIN_FRAMERATE)) === null || S === void 0 ? void 0 : S.toString(), 10);
15719
+ b = parseInt((S = l(r, kt)[kt].getValue("flagsmith").getValue(me.VAL_MIN_FRAMERATE)) === null || S === void 0 ? void 0 : S.toString(), 10);
15720
15720
  }
15721
15721
  var D = { width: { max: g }, height: { max: k }, frameRate: { ideal: b, max: y } };
15722
- if (l(r, kt)[kt].getValue("flagsmith").hasFeature(ge.SCREENSHARE_CONSTRAINTS)) {
15723
- var I, _ = (I = l(r, kt)[kt].getValue("flagsmith").getValue(ge.SCREENSHARE_CONSTRAINTS)) === null || I === void 0 ? void 0 : I.toString();
15722
+ if (l(r, kt)[kt].getValue("flagsmith").hasFeature(me.SCREENSHARE_CONSTRAINTS)) {
15723
+ var I, _ = (I = l(r, kt)[kt].getValue("flagsmith").getValue(me.SCREENSHARE_CONSTRAINTS)) === null || I === void 0 ? void 0 : I.toString();
15724
15724
  D = JSON.parse(_);
15725
15725
  }
15726
15726
  return E !== void 0 && ["monitor", "browser", "window"].includes(E) && (D = N(N({}, D), {}, { displaySurface: E })), T !== void 0 && (D = N(N({}, D), {}, { selfBrowserSurface: T })), { audio: !0, video: D };
@@ -15733,8 +15733,8 @@ var ya = /* @__PURE__ */ C("mediaConstraints"), kt = /* @__PURE__ */ C("context"
15733
15733
  return c.audio = { autoGainControl: (i = d == null ? void 0 : d.autoGainControl) !== null && i !== void 0 ? i : !0, echoCancellation: (s = d == null ? void 0 : d.echoCancellation) !== null && s !== void 0 ? s : !0, noiseSuppression: (u = d == null ? void 0 : d.noiseSupression) !== null && u !== void 0 ? u : !0, channelCount: p }, n && (c.audio.deviceId = { exact: n }), c;
15734
15734
  }, this.getVideoConstraints = function(n) {
15735
15735
  var a, i, s, u = {}, c = (a = l(r, ya)[ya]) === null || a === void 0 ? void 0 : a.video, d = vv.vga;
15736
- if (typeof c == "string" ? d = vv[c] : c !== void 0 && (d.height.ideal = c.height.ideal, d.width.ideal = c.width.ideal), d.frameRate = { ideal: (i = (s = d.frameRate) === null || s === void 0 ? void 0 : s.ideal) !== null && i !== void 0 ? i : 24 }, br.isChromiumBased() && (d.frameRate.max = 30), l(r, kt)[kt].getValue("flagsmith").hasFeature(ge.VIDEO_CONSTRAINTS)) {
15737
- var p, v = (p = l(r, kt)[kt].getValue("flagsmith").getValue(ge.VIDEO_CONSTRAINTS)) === null || p === void 0 ? void 0 : p.toString();
15736
+ if (typeof c == "string" ? d = vv[c] : c !== void 0 && (d.height.ideal = c.height.ideal, d.width.ideal = c.width.ideal), d.frameRate = { ideal: (i = (s = d.frameRate) === null || s === void 0 ? void 0 : s.ideal) !== null && i !== void 0 ? i : 24 }, br.isChromiumBased() && (d.frameRate.max = 30), l(r, kt)[kt].getValue("flagsmith").hasFeature(me.VIDEO_CONSTRAINTS)) {
15737
+ var p, v = (p = l(r, kt)[kt].getValue("flagsmith").getValue(me.VIDEO_CONSTRAINTS)) === null || p === void 0 ? void 0 : p.toString();
15738
15738
  d = JSON.parse(v);
15739
15739
  }
15740
15740
  return u.video = d, typeof u.video == "boolean" || (n ? u.video.deviceId = { exact: n } : u.video.facingMode = "user"), u;
@@ -15842,7 +15842,7 @@ var ya = /* @__PURE__ */ C("mediaConstraints"), kt = /* @__PURE__ */ C("context"
15842
15842
  }
15843
15843
  return e;
15844
15844
  }() }]);
15845
- }(), bM = Object.defineProperty, TM = Object.getOwnPropertyDescriptor, Wn = function(t, e, r, n) {
15845
+ }(), bM = Object.defineProperty, TM = Object.getOwnPropertyDescriptor, Gn = function(t, e, r, n) {
15846
15846
  for (var a = n > 1 ? void 0 : n ? TM(e, r) : e, i = t.length - 1, s; i >= 0; i--)
15847
15847
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
15848
15848
  return n && a && bM(e, r, a), a;
@@ -15908,7 +15908,7 @@ var ya = /* @__PURE__ */ C("mediaConstraints"), kt = /* @__PURE__ */ C("context"
15908
15908
  return $.deviceId === i;
15909
15909
  })), i && g ? k = i : d && (u = d[0]) !== null && u !== void 0 && u.deviceId && (k = (y = d[0]) === null || y === void 0 ? void 0 : y.deviceId), b = { audio: l(this, Gr)[Gr].getAudioConstraints(v).audio, video: l(this, Gr)[Gr].getVideoConstraints(k).video }, this.logger.info("getUserMediaWithoutTimeout::requesting_user_media", { constraints: JSON.stringify(b) }), U.next = 15, navigator.mediaDevices.getUserMedia(b);
15910
15910
  case 15:
15911
- if (E = U.sent, this.logger.info("getUserMediaWithoutTimeout::received_user_media", { constraints: JSON.stringify(b) }), T = E.getAudioTracks()[0], S = E.getVideoTracks()[0], this.permissions.audio = "ACCEPTED", this.permissions.video = "ACCEPTED", D = l(this, Ae)[Ae].getValue("flagsmith").hasFeature(ge.OBS_QUALITY), !(D && S.label.includes("OBS Virtual"))) {
15911
+ if (E = U.sent, this.logger.info("getUserMediaWithoutTimeout::received_user_media", { constraints: JSON.stringify(b) }), T = E.getAudioTracks()[0], S = E.getVideoTracks()[0], this.permissions.audio = "ACCEPTED", this.permissions.video = "ACCEPTED", D = l(this, Ae)[Ae].getValue("flagsmith").hasFeature(me.OBS_QUALITY), !(D && S.label.includes("OBS Virtual"))) {
15912
15912
  U.next = 30;
15913
15913
  break;
15914
15914
  }
@@ -16007,7 +16007,7 @@ var ya = /* @__PURE__ */ C("mediaConstraints"), kt = /* @__PURE__ */ C("context"
16007
16007
  for (; ; )
16008
16008
  switch (S.prev = S.next) {
16009
16009
  case 0:
16010
- return c = l(this, Ae)[Ae].getValue("flagsmith").hasFeature(ge.OBS_QUALITY), S.next = 3, this.getCurrentDeviceLabel(a);
16010
+ return c = l(this, Ae)[Ae].getValue("flagsmith").hasFeature(me.OBS_QUALITY), S.next = 3, this.getCurrentDeviceLabel(a);
16011
16011
  case 3:
16012
16012
  if (S.t1 = i = S.sent, S.t0 = S.t1 === null, S.t0) {
16013
16013
  S.next = 7;
@@ -16100,7 +16100,7 @@ var ya = /* @__PURE__ */ C("mediaConstraints"), kt = /* @__PURE__ */ C("context"
16100
16100
  case 5:
16101
16101
  return g = T.sent, a.logger.info("getDisplayMediaWithoutTimeout::received_display_media", { constraints: JSON.stringify(f) }), T.abrupt("return", g);
16102
16102
  case 10:
16103
- if (T.prev = 10, T.t0 = T.catch(0), k = Al("video", T.t0.name, T.t0.message), y = new Xc(T.t0.name, T.t0.message, f), b = { video: !0 }, !(pP(f, b) || !l(a, Ae)[Ae].getValue("flagsmith").hasFeature(ge.SCREEENSHARE_CONSTRAINTS_RETRY))) {
16103
+ if (T.prev = 10, T.t0 = T.catch(0), k = Al("video", T.t0.name, T.t0.message), y = new Xc(T.t0.name, T.t0.message, f), b = { video: !0 }, !(pP(f, b) || !l(a, Ae)[Ae].getValue("flagsmith").hasFeature(me.SCREEENSHARE_CONSTRAINTS_RETRY))) {
16104
16104
  T.next = 17;
16105
16105
  break;
16106
16106
  }
@@ -16344,17 +16344,17 @@ var ya = /* @__PURE__ */ C("mediaConstraints"), kt = /* @__PURE__ */ C("context"
16344
16344
  return r;
16345
16345
  }() }]);
16346
16346
  }(kM));
16347
- Wn([O.trace("WebMediaInterface.destruct")], an.prototype, "destruct", 1);
16348
- Wn([O.trace("WebMediaInterface.handlePermissionErrors")], an.prototype, "handlePermissionErrors", 1);
16349
- Wn([O.trace("WebMediaInterface.getAudioAndVideoTrack")], an.prototype, "getAudioAndVideoTrack", 1);
16350
- Wn([O.trace("WebMediaInterface.getAudioTrack")], an.prototype, "getAudioTrack", 1);
16351
- Wn([O.trace("WebMediaInterface.getVideoTrack")], an.prototype, "getVideoTrack", 1);
16352
- Wn([O.trace("WebMediaInterface.getScreenShareTracks")], an.prototype, "getScreenShareTracks", 1);
16353
- Wn([O.trace("WebMediaInterface.getAvailableDevices")], an.prototype, "getAvailableDevices", 1);
16354
- Wn([O.trace("WebMediaInterface.getAvailableDevicesByKind")], an.prototype, "getAvailableDevicesByKind", 1);
16355
- Wn([O.trace("WebMediaInterface.getDevice")], an.prototype, "getDevice", 1);
16356
- Wn([O.trace("WebMediaInterface.onDeviceChange")], an.prototype, "onDeviceChange", 1);
16357
- an = Wn([ft("1600")], an);
16347
+ Gn([O.trace("WebMediaInterface.destruct")], an.prototype, "destruct", 1);
16348
+ Gn([O.trace("WebMediaInterface.handlePermissionErrors")], an.prototype, "handlePermissionErrors", 1);
16349
+ Gn([O.trace("WebMediaInterface.getAudioAndVideoTrack")], an.prototype, "getAudioAndVideoTrack", 1);
16350
+ Gn([O.trace("WebMediaInterface.getAudioTrack")], an.prototype, "getAudioTrack", 1);
16351
+ Gn([O.trace("WebMediaInterface.getVideoTrack")], an.prototype, "getVideoTrack", 1);
16352
+ Gn([O.trace("WebMediaInterface.getScreenShareTracks")], an.prototype, "getScreenShareTracks", 1);
16353
+ Gn([O.trace("WebMediaInterface.getAvailableDevices")], an.prototype, "getAvailableDevices", 1);
16354
+ Gn([O.trace("WebMediaInterface.getAvailableDevicesByKind")], an.prototype, "getAvailableDevicesByKind", 1);
16355
+ Gn([O.trace("WebMediaInterface.getDevice")], an.prototype, "getDevice", 1);
16356
+ Gn([O.trace("WebMediaInterface.onDeviceChange")], an.prototype, "onDeviceChange", 1);
16357
+ an = Gn([ft("1600")], an);
16358
16358
  var Tg = an, Bs = { setItem: function(t, e, r) {
16359
16359
  try {
16360
16360
  localStorage.setItem(t, e);
@@ -16664,7 +16664,7 @@ var IM = Object.defineProperty, MM = Object.getOwnPropertyDescriptor, wg = funct
16664
16664
  for (; ; )
16665
16665
  switch (s.prev = s.next) {
16666
16666
  case 0:
16667
- if (!(br.isWebKitBased() && !vT.hasFeature(ge.ALLOW_SAFARI_MEDIA_MIDDLEWARES))) {
16667
+ if (!(br.isWebKitBased() && !vT.hasFeature(me.ALLOW_SAFARI_MEDIA_MIDDLEWARES))) {
16668
16668
  s.next = 2;
16669
16669
  break;
16670
16670
  }
@@ -17440,11 +17440,11 @@ Rc([O.trace("VideoMediaHandler.setTransformedTrack")], ol.prototype, "setTransfo
17440
17440
  Rc([O.trace("VideoMediaHandler.setVideoMiddlewareGlobalConfig")], ol.prototype, "setVideoMiddlewareGlobalConfig", 1);
17441
17441
  Rc([O.trace("VideoMediaHandler.onTrackEnded")], ol.prototype, "onTrackEnded", 1);
17442
17442
  Rc([O.trace("VideoMediaHandler.conditionallyChangeTrack")], ol.prototype, "conditionallyChangeTrack", 1);
17443
- var FM = ol, mv = jn(Np()), Rr = /* @__PURE__ */ C("config"), ba = /* @__PURE__ */ C("theme"), ou = /* @__PURE__ */ C("name"), ps = /* @__PURE__ */ C("pluginsConfig"), HM = /* @__PURE__ */ function() {
17443
+ var FM = ol, mv = Un(Np()), Rr = /* @__PURE__ */ C("config"), ba = /* @__PURE__ */ C("theme"), ou = /* @__PURE__ */ C("name"), ps = /* @__PURE__ */ C("pluginsConfig"), HM = /* @__PURE__ */ function() {
17444
17444
  function o(t) {
17445
17445
  if (w(this, o), Object.defineProperty(this, Rr, { writable: !0, value: void 0 }), Object.defineProperty(this, ba, { writable: !0, value: void 0 }), Object.defineProperty(this, ou, { writable: !0, value: void 0 }), Object.defineProperty(this, ps, { writable: !0, value: void 0 }), !t)
17446
17446
  throw new j("Could not load preset.", "0904");
17447
- l(this, Rr)[Rr] = t.config, l(this, ou)[ou] = t.name, l(this, ba)[ba] = t.ui || jn(Np().ui), l(this, ps)[ps] = t.permissions.plugins.config;
17447
+ l(this, Rr)[Rr] = t.config, l(this, ou)[ou] = t.name, l(this, ba)[ba] = t.ui || Un(Np().ui), l(this, ps)[ps] = t.permissions.plugins.config;
17448
17448
  }
17449
17449
  return P(o, [{
17450
17450
  key: "setupScreen",
@@ -17843,10 +17843,10 @@ var KM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor, ul = funct
17843
17843
  for (var a = n > 1 ? void 0 : n ? zM(e, r) : e, i = t.length - 1, s; i >= 0; i--)
17844
17844
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
17845
17845
  return n && a && KM(e, r, a), a;
17846
- }, ir = /* @__PURE__ */ C("data"), Cn = /* @__PURE__ */ C("meetingId"), Rn = /* @__PURE__ */ C("socketHandler"), xc = /* @__PURE__ */ C("update"), qo = /* @__PURE__ */ function() {
17846
+ }, ir = /* @__PURE__ */ C("data"), En = /* @__PURE__ */ C("meetingId"), Cn = /* @__PURE__ */ C("socketHandler"), xc = /* @__PURE__ */ C("update"), qo = /* @__PURE__ */ function() {
17847
17847
  function o(t) {
17848
17848
  var e = t.name, r = t.socketHandler, n = t.meetingId;
17849
- w(this, o), Object.defineProperty(this, xc, { value: YM }), this.name = "", Object.defineProperty(this, ir, { writable: !0, value: {} }), Object.defineProperty(this, Cn, { writable: !0, value: "" }), Object.defineProperty(this, Rn, { writable: !0, value: void 0 }), this.rateLimitConfig = { maxInvocations: 5, period: 1 }, this.bulkRateLimitConfig = { maxInvocations: 5, period: 1 }, this.listeners = {}, this.name = e, l(this, Rn)[Rn] = r, l(this, Cn)[Cn] = n;
17849
+ w(this, o), Object.defineProperty(this, xc, { value: YM }), this.name = "", Object.defineProperty(this, ir, { writable: !0, value: {} }), Object.defineProperty(this, En, { writable: !0, value: "" }), Object.defineProperty(this, Cn, { writable: !0, value: void 0 }), this.rateLimitConfig = { maxInvocations: 5, period: 1 }, this.bulkRateLimitConfig = { maxInvocations: 5, period: 1 }, this.listeners = {}, this.name = e, l(this, Cn)[Cn] = r, l(this, En)[En] = n;
17850
17850
  }
17851
17851
  return P(o, [{ key: "set", value: function() {
17852
17852
  var t = m(/* @__PURE__ */ h().mark(function r(n, a) {
@@ -17871,7 +17871,7 @@ var KM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor, ul = funct
17871
17871
  }
17872
17872
  return e;
17873
17873
  }() }, { key: "remoteSet", value: function(e, r) {
17874
- l(this, Rn)[Rn].storeInsertKeys(l(this, Cn)[Cn], this.name, [{ key: e, payload: r }]);
17874
+ l(this, Cn)[Cn].storeInsertKeys(l(this, En)[En], this.name, [{ key: e, payload: r }]);
17875
17875
  } }, { key: "bulkSet", value: function() {
17876
17876
  var t = m(/* @__PURE__ */ h().mark(function r(n) {
17877
17877
  var a = this;
@@ -17882,7 +17882,7 @@ var KM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor, ul = funct
17882
17882
  n.forEach(function(u) {
17883
17883
  var c = u.key, d = u.payload;
17884
17884
  l(a, ir)[ir][c] = d;
17885
- }), l(this, Rn)[Rn].storeInsertKeys(l(this, Cn)[Cn], this.name, n);
17885
+ }), l(this, Cn)[Cn].storeInsertKeys(l(this, En)[En], this.name, n);
17886
17886
  case 2:
17887
17887
  case "end":
17888
17888
  return s.stop();
@@ -17926,7 +17926,7 @@ var KM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor, ul = funct
17926
17926
  c.next = 5;
17927
17927
  break;
17928
17928
  }
17929
- return c.abrupt("return", l(this, Rn)[Rn].storeDeleteKeys(l(this, Cn)[Cn], this.name, [{ key: n }]));
17929
+ return c.abrupt("return", l(this, Cn)[Cn].storeDeleteKeys(l(this, En)[En], this.name, [{ key: n }]));
17930
17930
  case 5:
17931
17931
  i && (this.listeners[n] && (this.listeners[n].forEach(function(d) {
17932
17932
  return d({ [n]: void 0 });
@@ -17955,7 +17955,7 @@ var KM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor, ul = funct
17955
17955
  return n.forEach(function(u) {
17956
17956
  var c = u.key;
17957
17957
  l(a, ir)[ir][c] && delete l(a, ir)[ir][c];
17958
- }), s.abrupt("return", l(this, Rn)[Rn].storeDeleteKeys(l(this, Cn)[Cn], this.name, n));
17958
+ }), s.abrupt("return", l(this, Cn)[Cn].storeDeleteKeys(l(this, En)[En], this.name, n));
17959
17959
  case 2:
17960
17960
  case "end":
17961
17961
  return s.stop();
@@ -18064,9 +18064,9 @@ ul([$t(Bo, "bulkRateLimitConfig")], qo.prototype, "bulkSet", 1);
18064
18064
  ul([$t(Bo, "rateLimitConfig")], qo.prototype, "update", 1);
18065
18065
  ul([$t(Bo, "rateLimitConfig")], qo.prototype, "delete", 1);
18066
18066
  ul([$t(Bo, "bulkRateLimitConfig")], qo.prototype, "bulkDelete", 1);
18067
- var Oa = /* @__PURE__ */ C("pluginSocketHandler"), Da = /* @__PURE__ */ C("meetingId"), Iu = /* @__PURE__ */ C("peerId"), Lu = /* @__PURE__ */ C("context"), Ln = /* @__PURE__ */ C("pendingInit"), ed = /* @__PURE__ */ C("setup"), QM = /* @__PURE__ */ function() {
18067
+ var Oa = /* @__PURE__ */ C("pluginSocketHandler"), Da = /* @__PURE__ */ C("meetingId"), Iu = /* @__PURE__ */ C("peerId"), Lu = /* @__PURE__ */ C("context"), Dn = /* @__PURE__ */ C("pendingInit"), ed = /* @__PURE__ */ C("setup"), QM = /* @__PURE__ */ function() {
18068
18068
  function o(t, e) {
18069
- w(this, o), Object.defineProperty(this, ed, { value: ZM }), Object.defineProperty(this, Iu, { get: XM, set: void 0 }), this.stores = /* @__PURE__ */ new Map(), Object.defineProperty(this, Oa, { writable: !0, value: void 0 }), Object.defineProperty(this, Da, { writable: !0, value: "" }), Object.defineProperty(this, Lu, { writable: !0, value: void 0 }), Object.defineProperty(this, Ln, { writable: !0, value: /* @__PURE__ */ new Map() }), l(this, Oa)[Oa] = e, l(this, Da)[Da] = t.getValue("meetingId"), l(this, Lu)[Lu] = t, l(this, ed)[ed]();
18069
+ w(this, o), Object.defineProperty(this, ed, { value: ZM }), Object.defineProperty(this, Iu, { get: XM, set: void 0 }), this.stores = /* @__PURE__ */ new Map(), Object.defineProperty(this, Oa, { writable: !0, value: void 0 }), Object.defineProperty(this, Da, { writable: !0, value: "" }), Object.defineProperty(this, Lu, { writable: !0, value: void 0 }), Object.defineProperty(this, Dn, { writable: !0, value: /* @__PURE__ */ new Map() }), l(this, Oa)[Oa] = e, l(this, Da)[Da] = t.getValue("meetingId"), l(this, Lu)[Lu] = t, l(this, ed)[ed]();
18070
18070
  }
18071
18071
  return P(o, [{ key: "create", value: function(e) {
18072
18072
  var r = this, n = new qo({ name: e, socketHandler: l(this, Oa)[Oa], meetingId: l(this, Da)[Da] });
@@ -18075,7 +18075,7 @@ var Oa = /* @__PURE__ */ C("pluginSocketHandler"), Da = /* @__PURE__ */ C("meeti
18075
18075
  var u = setTimeout(function() {
18076
18076
  return s(Error("Failed"));
18077
18077
  }, 3e3);
18078
- l(r, Ln)[Ln].set(e, { rejectTimeout: u, resolve: i, store: n });
18078
+ l(r, Dn)[Dn].set(e, { rejectTimeout: u, resolve: i, store: n });
18079
18079
  });
18080
18080
  return a;
18081
18081
  } }]);
@@ -18106,11 +18106,11 @@ function ZM() {
18106
18106
  v.next = 9;
18107
18107
  break;
18108
18108
  }
18109
- return u = l(o, Ln)[Ln].get(n.storeName), c = o.stores.get(n.storeName) || (u == null ? void 0 : u.store), l(o, Ln)[Ln].get(n.storeName) && (o.stores.set(n.storeName, u.store), u.resolve(c), clearTimeout(u.rejectTimeout), l(o, Ln)[Ln].delete(n.storeName)), s.forEach(function(f) {
18109
+ return u = l(o, Dn)[Dn].get(n.storeName), c = o.stores.get(n.storeName) || (u == null ? void 0 : u.store), l(o, Dn)[Dn].get(n.storeName) && (o.stores.set(n.storeName, u.store), u.resolve(c), clearTimeout(u.rejectTimeout), l(o, Dn)[Dn].delete(n.storeName)), s.forEach(function(f) {
18110
18110
  c.set(f.key, f.payload, !1, !1);
18111
18111
  }), v.abrupt("return");
18112
18112
  case 9:
18113
- if (d = o.stores.get(n.storeName) || ((i = l(o, Ln)[Ln].get(n.storeName)) === null || i === void 0 ? void 0 : i.store), d !== void 0) {
18113
+ if (d = o.stores.get(n.storeName) || ((i = l(o, Dn)[Dn].get(n.storeName)) === null || i === void 0 ? void 0 : i.store), d !== void 0) {
18114
18114
  v.next = 12;
18115
18115
  break;
18116
18116
  }
@@ -18143,12 +18143,12 @@ var xM = Object.defineProperty, e_ = Object.getOwnPropertyDescriptor, Go = funct
18143
18143
  for (var a = n > 1 ? void 0 : n ? e_(e, r) : e, i = t.length - 1, s; i >= 0; i--)
18144
18144
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
18145
18145
  return n && a && xM(e, r, a), a;
18146
- }, r_ = 0.8, t_ = 1.2, Wa = (di = /* @__PURE__ */ C("isPinned"), pi = /* @__PURE__ */ C("stageStatus"), Nr = /* @__PURE__ */ C("context"), Qn = /* @__PURE__ */ C("roomNodeClient"), bn = /* @__PURE__ */ C("audioPlayback"), Xn = /* @__PURE__ */ C("mediaJoined"), hl = /* @__PURE__ */ C("socketJoined"), Mt = /* @__PURE__ */ C("self"), co = /* @__PURE__ */ C("roomSocketHandler"), mn = /* @__PURE__ */ C("videoElements"), Zn = /* @__PURE__ */ C("pip"), _t = /* @__PURE__ */ C("maxSpatialLayer"), vl = /* @__PURE__ */ C("videoDimensionsUpdated"), po = /* @__PURE__ */ C("updateVideos"), fl = /* @__PURE__ */ C("updateAudio"), gl = /* @__PURE__ */ C("updateScreenShare"), /* @__PURE__ */ function(o) {
18146
+ }, r_ = 0.8, t_ = 1.2, Wa = (di = /* @__PURE__ */ C("isPinned"), pi = /* @__PURE__ */ C("stageStatus"), Nr = /* @__PURE__ */ C("context"), Qn = /* @__PURE__ */ C("roomNodeClient"), kn = /* @__PURE__ */ C("audioPlayback"), Xn = /* @__PURE__ */ C("mediaJoined"), hl = /* @__PURE__ */ C("socketJoined"), Mt = /* @__PURE__ */ C("self"), co = /* @__PURE__ */ C("roomSocketHandler"), gn = /* @__PURE__ */ C("videoElements"), Zn = /* @__PURE__ */ C("pip"), _t = /* @__PURE__ */ C("maxSpatialLayer"), vl = /* @__PURE__ */ C("videoDimensionsUpdated"), po = /* @__PURE__ */ C("updateVideos"), fl = /* @__PURE__ */ C("updateAudio"), gl = /* @__PURE__ */ C("updateScreenShare"), /* @__PURE__ */ function(o) {
18147
18147
  function t(e, r, n, a) {
18148
18148
  var i;
18149
18149
  w(this, t);
18150
18150
  var s = e.getValue("logger");
18151
- i = R(this, t, [s]), Object.defineProperty(i, gl, { value: c_ }), Object.defineProperty(i, fl, { value: l_ }), Object.defineProperty(i, po, { value: u_ }), Object.defineProperty(i, Zn, { get: o_, set: void 0 }), Object.defineProperty(i, hl, { get: s_, set: void 0 }), Object.defineProperty(i, Xn, { get: i_, set: void 0 }), Object.defineProperty(i, bn, { get: a_, set: void 0 }), Object.defineProperty(i, Qn, { get: n_, set: void 0 }), i.id = void 0, i.userId = void 0, i.name = void 0, i.picture = void 0, i.isHost = void 0, i.customParticipantId = void 0, i.flags = void 0, i.device = void 0, i.videoTrack = void 0, i.audioTrack = void 0, i.screenShareTracks = void 0, i.videoEnabled = void 0, i.audioEnabled = void 0, i.screenShareEnabled = void 0, i.producers = void 0, i.manualProducerConfig = void 0, Object.defineProperty(i, di, { writable: !0, value: void 0 }), i.supportsRemoteControl = !1, Object.defineProperty(i, pi, { writable: !0, value: void 0 }), i.presetName = void 0, Object.defineProperty(i, Nr, { writable: !0, value: void 0 }), Object.defineProperty(i, Mt, { writable: !0, value: void 0 }), Object.defineProperty(i, co, { writable: !0, value: void 0 }), Object.defineProperty(i, mn, { writable: !0, value: /* @__PURE__ */ new Map() }), Object.defineProperty(i, _t, { writable: !0, value: 1 }), Object.defineProperty(i, vl, { writable: !0, value: jp(function(U) {
18151
+ i = R(this, t, [s]), Object.defineProperty(i, gl, { value: c_ }), Object.defineProperty(i, fl, { value: l_ }), Object.defineProperty(i, po, { value: u_ }), Object.defineProperty(i, Zn, { get: o_, set: void 0 }), Object.defineProperty(i, hl, { get: s_, set: void 0 }), Object.defineProperty(i, Xn, { get: i_, set: void 0 }), Object.defineProperty(i, kn, { get: a_, set: void 0 }), Object.defineProperty(i, Qn, { get: n_, set: void 0 }), i.id = void 0, i.userId = void 0, i.name = void 0, i.picture = void 0, i.isHost = void 0, i.customParticipantId = void 0, i.flags = void 0, i.device = void 0, i.videoTrack = void 0, i.audioTrack = void 0, i.screenShareTracks = void 0, i.videoEnabled = void 0, i.audioEnabled = void 0, i.screenShareEnabled = void 0, i.producers = void 0, i.manualProducerConfig = void 0, Object.defineProperty(i, di, { writable: !0, value: void 0 }), i.supportsRemoteControl = !1, Object.defineProperty(i, pi, { writable: !0, value: void 0 }), i.presetName = void 0, Object.defineProperty(i, Nr, { writable: !0, value: void 0 }), Object.defineProperty(i, Mt, { writable: !0, value: void 0 }), Object.defineProperty(i, co, { writable: !0, value: void 0 }), Object.defineProperty(i, gn, { writable: !0, value: /* @__PURE__ */ new Map() }), Object.defineProperty(i, _t, { writable: !0, value: 1 }), Object.defineProperty(i, vl, { writable: !0, value: jp(function(U) {
18152
18152
  if (i.videoTrack) {
18153
18153
  var $ = U.clientWidth, L = U.clientHeight, H = i.videoTrack.getSettings(), Y = H.width, q = H.height;
18154
18154
  if (!(!Y || !q)) {
@@ -18193,7 +18193,7 @@ var xM = Object.defineProperty, e_ = Object.getOwnPropertyDescriptor, Go = funct
18193
18193
  } }, {
18194
18194
  key: "setupEvents",
18195
18195
  value: function() {
18196
- this.on("videoUpdate", l(this, po)[po]), l(this, bn)[bn] && (this.on("audioUpdate", l(this, fl)[fl]), this.on("screenShareUpdate", l(this, gl)[gl]));
18196
+ this.on("videoUpdate", l(this, po)[po]), l(this, kn)[kn] && (this.on("audioUpdate", l(this, fl)[fl]), this.on("screenShareUpdate", l(this, gl)[gl]));
18197
18197
  }
18198
18198
  /**
18199
18199
  * Returns `participant.id` if user has permission
@@ -18385,9 +18385,9 @@ var xM = Object.defineProperty, e_ = Object.getOwnPropertyDescriptor, Go = funct
18385
18385
  var n, a = this, i, s;
18386
18386
  if (r) {
18387
18387
  var u;
18388
- (n = l(this, mn)[mn].get(r)) === null || n === void 0 || (n = n.observer) === null || n === void 0 || n.disconnect(), "ResizeObserver" in window && (u = new ResizeObserver(function() {
18388
+ (n = l(this, gn)[gn].get(r)) === null || n === void 0 || (n = n.observer) === null || n === void 0 || n.disconnect(), "ResizeObserver" in window && (u = new ResizeObserver(function() {
18389
18389
  return l(a, vl)[vl](r);
18390
- }), u.observe(r)), l(this, mn)[mn].set(r, { observer: u }), this.updateVideo(r), (i = l(this, Zn)[Zn]) === null || i === void 0 || i.addSource(this.id, r, this.videoEnabled, this.isPinned, this.name, this.picture, (s = this.raised) !== null && s !== void 0 ? s : !1);
18390
+ }), u.observe(r)), l(this, gn)[gn].set(r, { observer: u }), this.updateVideo(r), (i = l(this, Zn)[Zn]) === null || i === void 0 || i.addSource(this.id, r, this.videoEnabled, this.isPinned, this.name, this.picture, (s = this.raised) !== null && s !== void 0 ? s : !1);
18391
18391
  }
18392
18392
  } }, { key: "deregisterVideoElement", value: function(r) {
18393
18393
  var n, a;
@@ -18396,7 +18396,7 @@ var xM = Object.defineProperty, e_ = Object.getOwnPropertyDescriptor, Go = funct
18396
18396
  (i = l(this, Zn)[Zn]) === null || i === void 0 || i.removeSource(this.id);
18397
18397
  return;
18398
18398
  }
18399
- r.srcObject = void 0, (n = l(this, mn)[mn].get(r)) === null || n === void 0 || (n = n.observer) === null || n === void 0 || n.disconnect(), l(this, mn)[mn].delete(r), (a = l(this, Zn)[Zn]) === null || a === void 0 || a.removeSource(this.id);
18399
+ r.srcObject = void 0, (n = l(this, gn)[gn].get(r)) === null || n === void 0 || (n = n.observer) === null || n === void 0 || n.disconnect(), l(this, gn)[gn].delete(r), (a = l(this, Zn)[Zn]) === null || a === void 0 || a.removeSource(this.id);
18400
18400
  } }, { key: "updateVideo", value: (
18401
18401
  /**
18402
18402
  * Internal method, do not use
@@ -18433,24 +18433,24 @@ function o_() {
18433
18433
  return l(this, Nr)[Nr].getValue("pip");
18434
18434
  }
18435
18435
  function u_() {
18436
- Array.from(l(this, mn)[mn].keys()).forEach(this.updateVideo);
18436
+ Array.from(l(this, gn)[gn].keys()).forEach(this.updateVideo);
18437
18437
  }
18438
18438
  function l_() {
18439
18439
  if (this.audioEnabled && this.audioTrack) {
18440
18440
  var o;
18441
- (o = l(this, bn)[bn]) === null || o === void 0 || o.addParticipantTrack(this.id, this.audioTrack);
18441
+ (o = l(this, kn)[kn]) === null || o === void 0 || o.addParticipantTrack(this.id, this.audioTrack);
18442
18442
  } else {
18443
18443
  var t;
18444
- (t = l(this, bn)[bn]) === null || t === void 0 || t.removeParticipantTrack(this.id);
18444
+ (t = l(this, kn)[kn]) === null || t === void 0 || t.removeParticipantTrack(this.id);
18445
18445
  }
18446
18446
  }
18447
18447
  function c_() {
18448
18448
  if (this.screenShareEnabled && this.screenShareTracks.audio) {
18449
18449
  var o;
18450
- (o = l(this, bn)[bn]) === null || o === void 0 || o.addParticipantTrack("screenshare-".concat(this.id), this.screenShareTracks.audio);
18450
+ (o = l(this, kn)[kn]) === null || o === void 0 || o.addParticipantTrack("screenshare-".concat(this.id), this.screenShareTracks.audio);
18451
18451
  } else {
18452
18452
  var t;
18453
- (t = l(this, bn)[bn]) === null || t === void 0 || t.removeParticipantTrack("screenshare-".concat(this.id));
18453
+ (t = l(this, kn)[kn]) === null || t === void 0 || t.removeParticipantTrack("screenshare-".concat(this.id));
18454
18454
  }
18455
18455
  }
18456
18456
  Go([O.trace("Participant.disableAudio")], Wa.prototype, "disableAudio", 1);
@@ -18475,25 +18475,25 @@ var lu = /* @__PURE__ */ function(o) {
18475
18475
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
18476
18476
  return Ce(t, "delete", this, 3)([r, n, a]);
18477
18477
  } }]);
18478
- }(yg), An = /* @__PURE__ */ C("map"), d_ = /* @__PURE__ */ function(o) {
18478
+ }(yg), Rn = /* @__PURE__ */ C("map"), d_ = /* @__PURE__ */ function(o) {
18479
18479
  function t(e) {
18480
18480
  var r;
18481
- return w(this, t), r = R(this, t, [e]), Object.defineProperty(r, An, { writable: !0, value: void 0 }), l(r, An)[An] = /* @__PURE__ */ new Map(), r;
18481
+ return w(this, t), r = R(this, t, [e]), Object.defineProperty(r, Rn, { writable: !0, value: void 0 }), l(r, Rn)[Rn] = /* @__PURE__ */ new Map(), r;
18482
18482
  }
18483
18483
  return A(t, o), P(t, [{
18484
18484
  key: "__set",
18485
18485
  value: function(r, n) {
18486
- return l(this, An)[An].set(r, n);
18486
+ return l(this, Rn)[Rn].set(r, n);
18487
18487
  }
18488
18488
  /**
18489
18489
  * @private
18490
18490
  */
18491
18491
  }, { key: "__clear", value: function() {
18492
- return l(this, An)[An].clear();
18492
+ return l(this, Rn)[Rn].clear();
18493
18493
  } }, { key: "get", value: function(r) {
18494
- return l(this, An)[An].get(r);
18494
+ return l(this, Rn)[Rn].get(r);
18495
18495
  } }, { key: "toArray", value: function() {
18496
- return Array.from(l(this, An)[An].values());
18496
+ return Array.from(l(this, Rn)[Rn].values());
18497
18497
  } }]);
18498
18498
  }(Fo), p_ = /* @__PURE__ */ function() {
18499
18499
  function o() {
@@ -18959,7 +18959,7 @@ var lu = /* @__PURE__ */ function(o) {
18959
18959
  }
18960
18960
  throw this.logger.error("Participants::unauthorized_kick_all"), new j("Unauthorized: User does not have permission to kick peers.", "1201");
18961
18961
  case 7:
18962
- i = l(this, ye)[ye].getValue("flagsmith").hasFeature(ge.PROPAGATE_KICK_ALL), l(this, wr)[wr].kickAll(i);
18962
+ i = l(this, ye)[ye].getValue("flagsmith").hasFeature(me.PROPAGATE_KICK_ALL), l(this, wr)[wr].kickAll(i);
18963
18963
  case 9:
18964
18964
  case "end":
18965
18965
  return u.stop();
@@ -19176,7 +19176,7 @@ var b_ = Object.defineProperty, T_ = Object.getOwnPropertyDescriptor, no = funct
19176
19176
  return function(i, s) {
19177
19177
  return a.apply(this, arguments);
19178
19178
  };
19179
- }(), this.context = t, this.roomSocketHandler = r, this.participants = new Rt(t, e, this.roomSocketHandler), this.self = e, this.consumerPeerMap = /* @__PURE__ */ new Map(), this.events = Vn, e.config.viewType !== "CHAT" && this.setupEventsGlobal(), this.setupEvents();
19179
+ }(), this.context = t, this.roomSocketHandler = r, this.participants = new Rt(t, e, this.roomSocketHandler), this.self = e, this.consumerPeerMap = /* @__PURE__ */ new Map(), this.events = Nn, e.config.viewType !== "CHAT" && this.setupEventsGlobal(), this.setupEvents();
19180
19180
  }
19181
19181
  return P(o, [{ key: "roomNodeClient", get: function() {
19182
19182
  return this.context.getValue("roomNodeClient");
@@ -19207,7 +19207,7 @@ var b_ = Object.defineProperty, T_ = Object.getOwnPropertyDescriptor, no = funct
19207
19207
  for (; ; )
19208
19208
  switch (c.prev = c.next) {
19209
19209
  case 0:
19210
- i = e.context.getValue("flagsmith").hasFeature(ge.DEBUG_SOCKET_JOIN), i && (s = a && (a == null ? void 0 : a.length) < 20 ? { peers: JSON.stringify(a.map(function(d) {
19210
+ i = e.context.getValue("flagsmith").hasFeature(me.DEBUG_SOCKET_JOIN), i && (s = a && (a == null ? void 0 : a.length) < 20 ? { peers: JSON.stringify(a.map(function(d) {
19211
19211
  return d.peerId;
19212
19212
  })) } : void 0, e.logger.info("Processing socket peers", s)), a == null || a.forEach(function(d) {
19213
19213
  d.waitlisted || e.onParticipantSocketJoined(e.createParticipantObjFromSocketPeer(d));
@@ -19228,7 +19228,7 @@ var b_ = Object.defineProperty, T_ = Object.getOwnPropertyDescriptor, no = funct
19228
19228
  }).join("") } }), e.logger.info("events.peerJoinedBroadcast", { peers: n.peerId }), e.onParticipantMediaJoined(n.peerId, n.producerStates, n.capabilities);
19229
19229
  }), this.roomSocketHandler.on(this.events.selfJoinComplete, function(r) {
19230
19230
  var n = r.participants, a = r.selectedPeers, i = r.roomState;
19231
- if (e.context.getValue("flagsmith").hasFeature(ge.DEBUG_SOCKET_JOIN)) {
19231
+ if (e.context.getValue("flagsmith").hasFeature(me.DEBUG_SOCKET_JOIN)) {
19232
19232
  var s = n && (n == null ? void 0 : n.length) < 20 ? { peers: JSON.stringify(n.map(function(p) {
19233
19233
  return p.peerId;
19234
19234
  })) } : void 0;
@@ -19242,7 +19242,7 @@ var b_ = Object.defineProperty, T_ = Object.getOwnPropertyDescriptor, no = funct
19242
19242
  i.pinnedPeerIds.length !== 0 && e.onParticipantPinned(i.pinnedPeerIds[0]), e.computeActivateParticipants(c != null ? c : [], d), e.logger.info("selfJoinComplete: Emitting UPDATE_ACTIVE with createAllConsumers=true"), e.context.getValue("peerSessionStore").emit(F.UPDATE_ACTIVE, { createAllConsumers: !0 });
19243
19243
  }), this.context.getValue("peerSessionStore").on(F.MAX_SPATIAL_LAYER_CHANGE, function(r) {
19244
19244
  var n = r.peerId, a = r.maxSpatialLayer, i = e.videoPeerConsumerMap.get(n);
19245
- i && (e.context.getValue("flagsmith").hasFeature(ge.DISABLE_LAYER_SWITCH) || (e.maxSpatialLayerUpdates.set(i, a), e.updateConsumerSpatialLayers()));
19245
+ i && (e.context.getValue("flagsmith").hasFeature(me.DISABLE_LAYER_SWITCH) || (e.maxSpatialLayerUpdates.set(i, a), e.updateConsumerSpatialLayers()));
19246
19246
  }), this.context.getValue("peerSessionStore").on(F.NEW_PRODUCER, function(r) {
19247
19247
  var n = r.peerId, a = r.producer, i = e.participants.joined.get(n);
19248
19248
  if (!i) {
@@ -19546,7 +19546,7 @@ var b_ = Object.defineProperty, T_ = Object.getOwnPropertyDescriptor, no = funct
19546
19546
  return u % 2 ? "*" : s;
19547
19547
  }).join("") } }), this.logger.info("onParticipantMediaJoined: peer ".concat(e, " has joined media room. Processing.")), r.forEach(function(s) {
19548
19548
  s.kind === ca.AUDIO && !s.screenShare ? i.setAudioEnabled(!s.pause) : s.kind === ca.VIDEO && !s.screenShare && (i.setVideoEnabled(!s.pause), a.updatePipSource(i.id, !s.pause)), i.producers.push(N(N({}, s), {}, { producingTransportId: s.producingTransportId, kind: s.kind === ca.AUDIO ? "audio" : "video", producingPeerId: e, mimeType: s.mimeType }));
19549
- }), this.roomNodeClient.handlePeerCapabilities(e, n), this.context.getValue("flagsmith").hasFeature(ge.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack), this.logger.info("onParticipantMediaJoined: Emitting UPDATE_ACTIVE for peer ".concat(e)), this.context.getValue("peerSessionStore").emit(F.UPDATE_ACTIVE, { viewMode: this.participants.viewMode, page: this.participants.currentPage });
19549
+ }), this.roomNodeClient.handlePeerCapabilities(e, n), this.context.getValue("flagsmith").hasFeature(me.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack), this.logger.info("onParticipantMediaJoined: Emitting UPDATE_ACTIVE for peer ".concat(e)), this.context.getValue("peerSessionStore").emit(F.UPDATE_ACTIVE, { viewMode: this.participants.viewMode, page: this.participants.currentPage });
19550
19550
  }
19551
19551
  }
19552
19552
  /**
@@ -19597,7 +19597,7 @@ var b_ = Object.defineProperty, T_ = Object.getOwnPropertyDescriptor, no = funct
19597
19597
  this.roomSocketHandler.on(Q.joinRoom, function(r) {
19598
19598
  var n = r.peer;
19599
19599
  if (!n.waitlisted) {
19600
- var a = e.context.getValue("flagsmith").hasFeature(ge.DEBUG_SOCKET_JOIN);
19600
+ var a = e.context.getValue("flagsmith").hasFeature(me.DEBUG_SOCKET_JOIN);
19601
19601
  a && e.logger.info("Processing socket join", { peers: n.peerId }), e.onParticipantSocketJoined(e.createParticipantObjFromSocketPeer(n)), a && e.logger.info("Processed socket join", { peers: n.peerId });
19602
19602
  }
19603
19603
  }), this.roomSocketHandler.on(Q.leaveRoom, function(r) {
@@ -19834,7 +19834,7 @@ var b_ = Object.defineProperty, T_ = Object.getOwnPropertyDescriptor, no = funct
19834
19834
  return g.producerId === c;
19835
19835
  });
19836
19836
  if (f && (f.consumer = { id: e, peerId: n, kind: a, appData: u, paused: i, producerId: c, rtpReceiver: d, localId: p }), u.screenShare) {
19837
- a === "video" ? v.screenShareTracks.video = s : a === "audio" && (v.screenShareTracks.audio = s), (!i || this.self.permissions.isRecorder || this.context.getValue("flagsmith").hasFeature(ge.SCREEENSHARE_ERR_HACK)) && v.setScreenShareEnabled(!0), u.supportsRemoteControl && (v.supportsRemoteControl = !0), this.participants.broadcastMessage("screenshareConsumerCreated", { producerId: c, peerId: n, screenShare: !0, consumerId: e, consumerPeerId: this.self.id }), this.logger.info("ParticipantController::newScreenshareConsumer::screenshareConsumerCreated", { consumer: { id: e, peerId: n, kind: a, remotelyPaused: i, appData: u, producerId: c } });
19837
+ a === "video" ? v.screenShareTracks.video = s : a === "audio" && (v.screenShareTracks.audio = s), (!i || this.self.permissions.isRecorder || this.context.getValue("flagsmith").hasFeature(me.SCREEENSHARE_ERR_HACK)) && v.setScreenShareEnabled(!0), u.supportsRemoteControl && (v.supportsRemoteControl = !0), this.participants.broadcastMessage("screenshareConsumerCreated", { producerId: c, peerId: n, screenShare: !0, consumerId: e, consumerPeerId: this.self.id }), this.logger.info("ParticipantController::newScreenshareConsumer::screenshareConsumerCreated", { consumer: { id: e, peerId: n, kind: a, remotelyPaused: i, appData: u, producerId: c } });
19838
19838
  return;
19839
19839
  }
19840
19840
  a === "video" ? (v.videoTrack = s, i || (v.setVideoEnabled(!0), this.updatePipSource(v.id, !0)), this.context.getValue("callstats").consumerSharedMediaState(e, { video: !i })) : a === "audio" && (v.audioTrack = s, i || v.setAudioEnabled(!0), this.context.getValue("callstats").consumerSharedMediaState(e, { audio: !i })), !i && u.e2ee && this.context.getValue("peerSessionStore").emit(F.E2EE_ACTIVE_CONSUMER, { peerId: n, rtpReceiver: d, track: s });
@@ -19898,7 +19898,7 @@ no([O.trace("ParticipantController.processConsumerClosed")], Ya.prototype, "proc
19898
19898
  no([O.trace("ParticipantController.processConsumerResumed")], Ya.prototype, "processConsumerResumed", 1);
19899
19899
  no([O.trace("ParticipantController.processConsumerPaused")], Ya.prototype, "processConsumerPaused", 1);
19900
19900
  no([O.trace("ParticipantController.processNewConsumer")], Ya.prototype, "processNewConsumer", 1);
19901
- var ar = jn(Np().permissions), G = /* @__PURE__ */ C("permissions"), gs = /* @__PURE__ */ C("viewType"), Ms = /* @__PURE__ */ C("context"), rd = /* @__PURE__ */ C("updatePermission"), mr = /* @__PURE__ */ C("stageStatus"), w_ = /* @__PURE__ */ function(o) {
19901
+ var ar = Un(Np().permissions), G = /* @__PURE__ */ C("permissions"), gs = /* @__PURE__ */ C("viewType"), Ms = /* @__PURE__ */ C("context"), rd = /* @__PURE__ */ C("updatePermission"), mr = /* @__PURE__ */ C("stageStatus"), w_ = /* @__PURE__ */ function(o) {
19902
19902
  function t(e, r, n) {
19903
19903
  var a, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
19904
19904
  w(this, t);
@@ -21065,7 +21065,7 @@ var jr = /* @__PURE__ */ C("context"), Ag = /* @__PURE__ */ function(o) {
21065
21065
  }
21066
21066
  return u.prev = 7, u.next = 10, l(r, Ve)[Ve].shareWebcam(r.videoTrack);
21067
21067
  case 10:
21068
- if (i = u.sent, !(i && i.id !== r.videoTrack.id && l(r, Ne)[Ne].getValue("flagsmith").hasFeature(ge.EXP_RESHARE))) {
21068
+ if (i = u.sent, !(i && i.id !== r.videoTrack.id && l(r, Ne)[Ne].getValue("flagsmith").hasFeature(me.EXP_RESHARE))) {
21069
21069
  u.next = 14;
21070
21070
  break;
21071
21071
  }
@@ -21704,7 +21704,7 @@ var jr = /* @__PURE__ */ C("context"), Ag = /* @__PURE__ */ function(o) {
21704
21704
  p.next = 7;
21705
21705
  break;
21706
21706
  }
21707
- if (this.logger.warn("Self.setDevice.setting_to_in_use_device", { devices: [a] }), !l(this, Ne)[Ne].getValue("flagsmith").hasFeature(ge.SKIP_SETTING_IN_USE_DEVICE)) {
21707
+ if (this.logger.warn("Self.setDevice.setting_to_in_use_device", { devices: [a] }), !l(this, Ne)[Ne].getValue("flagsmith").hasFeature(me.SKIP_SETTING_IN_USE_DEVICE)) {
21708
21708
  p.next = 7;
21709
21709
  break;
21710
21710
  }
@@ -21929,7 +21929,7 @@ var __ = /* @__PURE__ */ function(o) {
21929
21929
  return e;
21930
21930
  }() }, { key: "stop", value: function() {
21931
21931
  this.stopping = !0;
21932
- var e = Fn(this.pendingTasks.values()), r;
21932
+ var e = jn(this.pendingTasks.values()), r;
21933
21933
  try {
21934
21934
  for (e.s(); !(r = e.n()).done; ) {
21935
21935
  var n = r.value;
@@ -21992,7 +21992,7 @@ var qd = /* @__PURE__ */ function(o) {
21992
21992
  return w(this, t), r = R(this, t, [e]), r.name = "UnsupportedError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(r, t) : r.stack = new Error(e).stack, r;
21993
21993
  }
21994
21994
  return A(t, o), P(t);
21995
- }(j), kn = /* @__PURE__ */ function(o) {
21995
+ }(j), yn = /* @__PURE__ */ function(o) {
21996
21996
  function t(e) {
21997
21997
  var r;
21998
21998
  return w(this, t), r = R(this, t, [e]), r.name = "InvalidStateError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(r, t) : r.stack = new Error(e).stack, r;
@@ -22001,7 +22001,7 @@ var qd = /* @__PURE__ */ function(o) {
22001
22001
  }(j), qs = /* @__PURE__ */ function(o) {
22002
22002
  function t(e) {
22003
22003
  var r;
22004
- return w(this, t), r = R(this, t, [e]), r.name = "TransportConnectionError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(r, kn) : r.stack = new Error(e).stack, r;
22004
+ return w(this, t), r = R(this, t, [e]), r.name = "TransportConnectionError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(r, yn) : r.stack = new Error(e).stack, r;
22005
22005
  }
22006
22006
  return A(t, o), P(t);
22007
22007
  }(j), yv = function(t) {
@@ -22118,7 +22118,7 @@ function N_(o) {
22118
22118
  }
22119
22119
  var qe = /* @__PURE__ */ C("socket"), V_ = /* @__PURE__ */ function() {
22120
22120
  function o(t) {
22121
- w(this, o), Object.defineProperty(this, qe, { writable: !0, value: void 0 }), this.events = void 0, l(this, qe)[qe] = t, this.events = Vn;
22121
+ w(this, o), Object.defineProperty(this, qe, { writable: !0, value: void 0 }), this.events = void 0, l(this, qe)[qe] = t, this.events = Nn;
22122
22122
  }
22123
22123
  return P(o, [{ key: "joinRoom", value: function() {
22124
22124
  var t = m(/* @__PURE__ */ h().mark(function r(n, a, i) {
@@ -22938,7 +22938,7 @@ var qe = /* @__PURE__ */ C("socket"), V_ = /* @__PURE__ */ function() {
22938
22938
  return u.reverse(), f = v.sender.getParameters(), f.encodings = u, D.next = 10, v.sender.setParameters(f);
22939
22939
  case 10:
22940
22940
  return g = function(_, V) {
22941
- var U, $ = Dn.parse(_), L = $.media[$.media.length - 1], H = L.rtp.filter(function(x) {
22941
+ var U, $ = On.parse(_), L = $.media[$.media.length - 1], H = L.rtp.filter(function(x) {
22942
22942
  return V.some(function(we) {
22943
22943
  return we.name === x.codec;
22944
22944
  });
@@ -22953,7 +22953,7 @@ var qe = /* @__PURE__ */ C("socket"), V_ = /* @__PURE__ */ function() {
22953
22953
  }), B = H.map(function(x) {
22954
22954
  return x.payload;
22955
22955
  });
22956
- return $.media[$.media.length - 1].rtp = H, $.media[$.media.length - 1].fmtp = Y, $.media[$.media.length - 1].rtcpFb = q, $.media[$.media.length - 1].payloads = B.join(" "), Dn.write($);
22956
+ return $.media[$.media.length - 1].rtp = H, $.media[$.media.length - 1].fmtp = Y, $.media[$.media.length - 1].rtcpFb = q, $.media[$.media.length - 1].payloads = B.join(" "), On.write($);
22957
22957
  }, D.next = 13, this.pc.createOffer();
22958
22958
  case 13:
22959
22959
  return k = D.sent, k.sdp = g(k.sdp, c), this.logger.debug("send() | calling pc.setLocalDescription() [offer:".concat(JSON.stringify(k), "]")), D.next = 18, this.pc.setLocalDescription(k);
@@ -23193,7 +23193,7 @@ var pu = /* @__PURE__ */ C("handler"), Ta = /* @__PURE__ */ C("paused"), Tt = /*
23193
23193
  i.next = 2;
23194
23194
  break;
23195
23195
  }
23196
- throw new kn("closed");
23196
+ throw new yn("closed");
23197
23197
  case 2:
23198
23198
  return i.abrupt("return", l(this, pu)[pu].getReceiverStats(this.localId));
23199
23199
  case 3:
@@ -23242,10 +23242,10 @@ function W_() {
23242
23242
  this.logger.error("Consumer::destroyTrack()", N(N({}, l(this, Pt)[Pt]), {}, { error: o }));
23243
23243
  }
23244
23244
  }
23245
- var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys = /* @__PURE__ */ C("disableTrackOnPause"), wa = /* @__PURE__ */ C("zeroRtpOnPause"), Zr = /* @__PURE__ */ C("closed"), Ke = /* @__PURE__ */ C("track"), In = /* @__PURE__ */ C("paused"), ks = /* @__PURE__ */ C("maxSpatialLayer"), id = /* @__PURE__ */ C("context"), Fr = /* @__PURE__ */ C("metadata"), J_ = /* @__PURE__ */ function(o) {
23245
+ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys = /* @__PURE__ */ C("disableTrackOnPause"), wa = /* @__PURE__ */ C("zeroRtpOnPause"), Zr = /* @__PURE__ */ C("closed"), Ke = /* @__PURE__ */ C("track"), An = /* @__PURE__ */ C("paused"), ks = /* @__PURE__ */ C("maxSpatialLayer"), id = /* @__PURE__ */ C("context"), Fr = /* @__PURE__ */ C("metadata"), J_ = /* @__PURE__ */ function(o) {
23246
23246
  function t(e, r) {
23247
23247
  var n, a, i;
23248
- return w(this, t), i = R(this, t, [e]), Object.defineProperty(i, Fr, { get: K_, set: void 0 }), i.id = void 0, i.localId = void 0, Object.defineProperty(i, ut, { writable: !0, value: void 0 }), i.kind = void 0, i.appData = void 0, i.rtpSender = void 0, Object.defineProperty(i, ms, { writable: !0, value: void 0 }), Object.defineProperty(i, ys, { writable: !0, value: void 0 }), Object.defineProperty(i, wa, { writable: !0, value: void 0 }), Object.defineProperty(i, Zr, { writable: !0, value: !1 }), Object.defineProperty(i, Ke, { writable: !0, value: void 0 }), Object.defineProperty(i, In, { writable: !0, value: void 0 }), Object.defineProperty(i, ks, { writable: !0, value: void 0 }), Object.defineProperty(i, id, { writable: !0, value: void 0 }), i.id = r.id, i.localId = r.localId, l(i, Ke)[Ke] = r.track, i.kind = (n = r.track) === null || n === void 0 ? void 0 : n.kind, l(i, In)[In] = r.disableTrackOnPause ? !((a = r.track) !== null && a !== void 0 && a.enabled) : !1, l(i, ks)[ks] = void 0, l(i, ms)[ms] = r.stopTracks, l(i, ys)[ys] = r.disableTrackOnPause, l(i, wa)[wa] = r.zeroRtpOnPause, i.appData = r.appData || {}, i._onTrackEnded = i._onTrackEnded.bind(i), l(i, ut)[ut] = r.handler, i.rtpSender = r.rtpSender, i._handleTrack(), l(i, id)[id] = e, i;
23248
+ return w(this, t), i = R(this, t, [e]), Object.defineProperty(i, Fr, { get: K_, set: void 0 }), i.id = void 0, i.localId = void 0, Object.defineProperty(i, ut, { writable: !0, value: void 0 }), i.kind = void 0, i.appData = void 0, i.rtpSender = void 0, Object.defineProperty(i, ms, { writable: !0, value: void 0 }), Object.defineProperty(i, ys, { writable: !0, value: void 0 }), Object.defineProperty(i, wa, { writable: !0, value: void 0 }), Object.defineProperty(i, Zr, { writable: !0, value: !1 }), Object.defineProperty(i, Ke, { writable: !0, value: void 0 }), Object.defineProperty(i, An, { writable: !0, value: void 0 }), Object.defineProperty(i, ks, { writable: !0, value: void 0 }), Object.defineProperty(i, id, { writable: !0, value: void 0 }), i.id = r.id, i.localId = r.localId, l(i, Ke)[Ke] = r.track, i.kind = (n = r.track) === null || n === void 0 ? void 0 : n.kind, l(i, An)[An] = r.disableTrackOnPause ? !((a = r.track) !== null && a !== void 0 && a.enabled) : !1, l(i, ks)[ks] = void 0, l(i, ms)[ms] = r.stopTracks, l(i, ys)[ys] = r.disableTrackOnPause, l(i, wa)[wa] = r.zeroRtpOnPause, i.appData = r.appData || {}, i._onTrackEnded = i._onTrackEnded.bind(i), l(i, ut)[ut] = r.handler, i.rtpSender = r.rtpSender, i._handleTrack(), l(i, id)[id] = e, i;
23249
23249
  }
23250
23250
  return A(t, o), P(t, [{
23251
23251
  key: "closed",
@@ -23266,7 +23266,7 @@ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys
23266
23266
  }, {
23267
23267
  key: "paused",
23268
23268
  get: function() {
23269
- return l(this, In)[In];
23269
+ return l(this, An)[An];
23270
23270
  }
23271
23271
  /**
23272
23272
  * Max spatial layer.
@@ -23324,7 +23324,7 @@ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys
23324
23324
  i.next = 2;
23325
23325
  break;
23326
23326
  }
23327
- throw new kn("closed");
23327
+ throw new yn("closed");
23328
23328
  case 2:
23329
23329
  return i.abrupt("return", l(this, ut)[ut].getSenderStats(this.localId));
23330
23330
  case 3:
@@ -23340,7 +23340,7 @@ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys
23340
23340
  }() }, {
23341
23341
  key: "pause",
23342
23342
  value: function() {
23343
- this.logger.debug("Producer::pause()", l(this, Fr)[Fr]), l(this, Zr)[Zr] && this.logger.error("Producer::pause() | Producer closed", l(this, Fr)[Fr]), l(this, In)[In] = !0, l(this, Ke)[Ke] && l(this, ys)[ys] && (l(this, Ke)[Ke].enabled = !1), l(this, wa)[wa] && l(this, ut)[ut].replaceTrack(this.localId, null), this.emit("pause");
23343
+ this.logger.debug("Producer::pause()", l(this, Fr)[Fr]), l(this, Zr)[Zr] && this.logger.error("Producer::pause() | Producer closed", l(this, Fr)[Fr]), l(this, An)[An] = !0, l(this, Ke)[Ke] && l(this, ys)[ys] && (l(this, Ke)[Ke].enabled = !1), l(this, wa)[wa] && l(this, ut)[ut].replaceTrack(this.localId, null), this.emit("pause");
23344
23344
  }
23345
23345
  /**
23346
23346
  * Resumes sending media.
@@ -23352,7 +23352,7 @@ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys
23352
23352
  this.logger.error("Producer::resume() | Producer closed", l(this, Fr)[Fr]);
23353
23353
  return;
23354
23354
  }
23355
- l(this, In)[In] = !1, l(this, Ke)[Ke] && l(this, ys)[ys] && (l(this, Ke)[Ke].enabled = !0), l(this, wa)[wa] && l(this, ut)[ut].replaceTrack(this.localId, l(this, Ke)[Ke]), this.emit("resume");
23355
+ l(this, An)[An] = !1, l(this, Ke)[Ke] && l(this, ys)[ys] && (l(this, Ke)[Ke].enabled = !0), l(this, wa)[wa] && l(this, ut)[ut].replaceTrack(this.localId, l(this, Ke)[Ke]), this.emit("resume");
23356
23356
  }
23357
23357
  /**
23358
23358
  * Replaces the current track with a new one or null.
@@ -23374,13 +23374,13 @@ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys
23374
23374
  } catch (c) {
23375
23375
  this.logger.error("Producer::replaceTrack", N(N({}, l(this, Fr)[Fr]), {}, { error: c }));
23376
23376
  }
23377
- throw new kn("closed");
23377
+ throw new yn("closed");
23378
23378
  case 7:
23379
23379
  if (!(i && i.readyState === "ended")) {
23380
23380
  u.next = 9;
23381
23381
  break;
23382
23382
  }
23383
- throw new kn("track ended");
23383
+ throw new yn("track ended");
23384
23384
  case 9:
23385
23385
  if (i !== l(this, Ke)[Ke]) {
23386
23386
  u.next = 12;
@@ -23388,7 +23388,7 @@ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys
23388
23388
  }
23389
23389
  return this.logger.debug("replaceTrack() | same track, ignored trackId: ".concat(i.id), l(this, Fr)[Fr]), u.abrupt("return");
23390
23390
  case 12:
23391
- if (!(!l(this, wa)[wa] || !l(this, In)[In])) {
23391
+ if (!(!l(this, wa)[wa] || !l(this, An)[An])) {
23392
23392
  u.next = 15;
23393
23393
  break;
23394
23394
  }
@@ -23415,7 +23415,7 @@ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys
23415
23415
  s.next = 4;
23416
23416
  break;
23417
23417
  }
23418
- throw new kn("closed");
23418
+ throw new yn("closed");
23419
23419
  case 4:
23420
23420
  if (this.kind === "video") {
23421
23421
  s.next = 8;
@@ -23452,7 +23452,7 @@ var ut = /* @__PURE__ */ C("handler"), ms = /* @__PURE__ */ C("stopTracks"), ys
23452
23452
  s.next = 4;
23453
23453
  break;
23454
23454
  }
23455
- throw new kn("closed");
23455
+ throw new yn("closed");
23456
23456
  case 4:
23457
23457
  if (ke(a) === "object") {
23458
23458
  s.next = 6;
@@ -23506,10 +23506,10 @@ function Y_(o) {
23506
23506
  var t, e;
23507
23507
  return z_(o) && (t = (e = o.payload._bolt) === null || e === void 0 ? void 0 : e.id) !== null && t !== void 0 ? t : "";
23508
23508
  }
23509
- var Mn = /* @__PURE__ */ C("datachannelCache"), sd = /* @__PURE__ */ C("context"), Pa = /* @__PURE__ */ C("logger"), ll = /* @__PURE__ */ function(o) {
23509
+ var In = /* @__PURE__ */ C("datachannelCache"), sd = /* @__PURE__ */ C("context"), Pa = /* @__PURE__ */ C("logger"), ll = /* @__PURE__ */ function(o) {
23510
23510
  function t(e, r, n, a) {
23511
23511
  var i;
23512
- return w(this, t), i = R(this, t), i.channel = void 0, i.queue = void 0, i.serverProtocolVersion = void 0, Object.defineProperty(i, Mn, { writable: !0, value: /* @__PURE__ */ new Map() }), Object.defineProperty(i, sd, { writable: !0, value: void 0 }), Object.defineProperty(i, Pa, { writable: !0, value: void 0 }), i.respond = function(s, u) {
23512
+ return w(this, t), i = R(this, t), i.channel = void 0, i.queue = void 0, i.serverProtocolVersion = void 0, Object.defineProperty(i, In, { writable: !0, value: /* @__PURE__ */ new Map() }), Object.defineProperty(i, sd, { writable: !0, value: void 0 }), Object.defineProperty(i, Pa, { writable: !0, value: void 0 }), i.respond = function(s, u) {
23513
23513
  var c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, d;
23514
23514
  c ? d = t.createErrorResponse(s, u) : d = t.createResponse(s, u), i.channel.send(JSON.stringify(d));
23515
23515
  }, i.notify = function(s) {
@@ -23555,15 +23555,15 @@ var Mn = /* @__PURE__ */ C("datachannelCache"), sd = /* @__PURE__ */ C("context"
23555
23555
  } else
23556
23556
  l(i, Pa)[Pa].debug("Sending message over dc: ".concat(u)), i.channel.send(u);
23557
23557
  }, i.processMessage = function(s) {
23558
- l(i, Mn)[Mn].has(s.id) || l(i, Mn)[Mn].set(s.id, []);
23559
- var u = l(i, Mn)[Mn].get(s.id);
23558
+ l(i, In)[In].has(s.id) || l(i, In)[In].set(s.id, []);
23559
+ var u = l(i, In)[In].get(s.id);
23560
23560
  if (u[s.chunkIndex] = s, (u == null ? void 0 : u.length) === s.count && !u.some(function(f) {
23561
23561
  return f === void 0;
23562
23562
  })) {
23563
- var c, d = l(i, Mn)[Mn].get(s.id), p = d == null ? void 0 : d.reduce(function(f, g) {
23563
+ var c, d = l(i, In)[In].get(s.id), p = d == null ? void 0 : d.reduce(function(f, g) {
23564
23564
  return f + g.chunk;
23565
23565
  }, "");
23566
- l(i, Mn)[Mn].delete(s.id);
23566
+ l(i, In)[In].delete(s.id);
23567
23567
  var v = JSON.parse(p);
23568
23568
  if (!v.payload || !Mg(v.payload))
23569
23569
  throw new Error("corrupted incoming message over dc", { cause: { code: "CORRUPT_DC_MESSAGE", values: v } });
@@ -23691,7 +23691,7 @@ var ac = "transport closed", Sa = /* @__PURE__ */ C("context"), Q_ = /* @__PURE_
23691
23691
  i.next = 2;
23692
23692
  break;
23693
23693
  }
23694
- throw new kn("closed");
23694
+ throw new yn("closed");
23695
23695
  case 2:
23696
23696
  return i.abrupt("return", this.handler.getTransportStats());
23697
23697
  case 3:
@@ -23767,7 +23767,7 @@ var ac = "transport closed", Sa = /* @__PURE__ */ C("context"), Q_ = /* @__PURE_
23767
23767
  i.next = 3;
23768
23768
  break;
23769
23769
  }
23770
- throw new kn("closed");
23770
+ throw new yn("closed");
23771
23771
  case 3:
23772
23772
  return i.abrupt("return", this.handler.restartIce());
23773
23773
  case 4:
@@ -23803,7 +23803,7 @@ var ac = "transport closed", Sa = /* @__PURE__ */ C("context"), Q_ = /* @__PURE_
23803
23803
  c.next = 13;
23804
23804
  break;
23805
23805
  }
23806
- throw new kn("track ended");
23806
+ throw new yn("track ended");
23807
23807
  case 13:
23808
23808
  if (!(s && ke(s) !== "object")) {
23809
23809
  c.next = 15;
@@ -23923,7 +23923,7 @@ var ac = "transport closed", Sa = /* @__PURE__ */ C("context"), Q_ = /* @__PURE_
23923
23923
  i.next = 4;
23924
23924
  break;
23925
23925
  }
23926
- throw new kn("closed");
23926
+ throw new yn("closed");
23927
23927
  case 4:
23928
23928
  if (this.direction === "recv") {
23929
23929
  i.next = 6;
@@ -24046,7 +24046,7 @@ var ac = "transport closed", Sa = /* @__PURE__ */ C("context"), Q_ = /* @__PURE_
24046
24046
  case 4:
24047
24047
  return c.next = 6, this.handler.pc.createAnswer();
24048
24048
  case 6:
24049
- return i = c.sent, this.logger.info("Created answer corresponding to received offer", { sdp: i.sdp }), s = Dn.parse(i.sdp), s.media = s.media.map(function(d) {
24049
+ return i = c.sent, this.logger.info("Created answer corresponding to received offer", { sdp: i.sdp }), s = On.parse(i.sdp), s.media = s.media.map(function(d) {
24050
24050
  if (d.type === "audio") {
24051
24051
  var p = N({}, d), v = p.fmtp.find(function(g) {
24052
24052
  return g.payload === 111;
@@ -24058,7 +24058,7 @@ var ac = "transport closed", Sa = /* @__PURE__ */ C("context"), Q_ = /* @__PURE_
24058
24058
  return f || p.rtcpFb.push({ payload: parseInt(p.payloads, 10), type: "nack" }), p;
24059
24059
  }
24060
24060
  return d;
24061
- }), i.sdp = Dn.write(s), this.logger.info("Setting munged SDP", { sdp: i.sdp }), c.next = 14, this.setLocalDescription(i);
24061
+ }), i.sdp = On.write(s), this.logger.info("Setting munged SDP", { sdp: i.sdp }), c.next = 14, this.setLocalDescription(i);
24062
24062
  case 14:
24063
24063
  return this.logger.info("Successfully set local description", { sdp: i.sdp }), c.abrupt("return", i);
24064
24064
  case 18:
@@ -24205,12 +24205,12 @@ var ac = "transport closed", Sa = /* @__PURE__ */ C("context"), Q_ = /* @__PURE_
24205
24205
  }
24206
24206
  return r;
24207
24207
  }() }], [{ key: "parseCodecAndFmtpMappings", value: function(r, n) {
24208
- var a = Dn.parse(r.sdp), i = {};
24208
+ var a = On.parse(r.sdp), i = {};
24209
24209
  return a.media.forEach(function(s) {
24210
24210
  n.includes(s.mid.toString()) && (i[s.mid.toString()] = { rtp: s.rtp, fmtp: s.fmtp, payloads: s.payloads, rtcpFb: s.rtcpFb });
24211
24211
  }), i;
24212
24212
  } }, { key: "setCodecAndFmtpMappings", value: function(r, n, a) {
24213
- var i = Dn.parse(r.sdp);
24213
+ var i = On.parse(r.sdp);
24214
24214
  i.media = i.media.map(function(u) {
24215
24215
  if (n.includes(u.mid.toString())) {
24216
24216
  var c = N({}, u);
@@ -24218,20 +24218,20 @@ var ac = "transport closed", Sa = /* @__PURE__ */ C("context"), Q_ = /* @__PURE_
24218
24218
  }
24219
24219
  return u;
24220
24220
  });
24221
- var s = N(N({}, r), {}, { sdp: Dn.write(i) });
24221
+ var s = N(N({}, r), {}, { sdp: On.write(i) });
24222
24222
  return s;
24223
24223
  } }, { key: "parseHeaderExtensionMappings", value: function(r) {
24224
- var n = Dn.parse(r.sdp), a = {};
24224
+ var n = On.parse(r.sdp), a = {};
24225
24225
  return n.media.forEach(function(i) {
24226
24226
  a[i.mid] = i.ext;
24227
24227
  }), a;
24228
24228
  } }, { key: "setHeaderExtensionMappings", value: function(r, n) {
24229
- var a = Dn.parse(r.sdp);
24229
+ var a = On.parse(r.sdp);
24230
24230
  a.media = a.media.map(function(s) {
24231
24231
  var u = N({}, s);
24232
24232
  return u.ext = n[s.mid], u;
24233
24233
  });
24234
- var i = N(N({}, r), {}, { sdp: Dn.write(a) });
24234
+ var i = N(N({}, r), {}, { sdp: On.write(a) });
24235
24235
  return i;
24236
24236
  } }]);
24237
24237
  }(Ac);
@@ -24313,9 +24313,9 @@ var Kt = /* @__PURE__ */ C("context"), Ea = /* @__PURE__ */ C("logger"), Z_ = /*
24313
24313
  }(), x_ = 2e3, Gs = /* @__PURE__ */ C("device"), sr = /* @__PURE__ */ C("sendTransport"), or = /* @__PURE__ */ C("recvTransport"), hu = /* @__PURE__ */ C("sendTransportConnectedCallback"), vu = /* @__PURE__ */ C("recvTransportConnectedCallback"), ja = /* @__PURE__ */ C("socket"), _s = /* @__PURE__ */ C("socketHandler"), fu = /* @__PURE__ */ C("events"), Xs = /* @__PURE__ */ C("metrics"), Va = /* @__PURE__ */ C("transportDisconnectedTimer"), Ct = /* @__PURE__ */ C("iceTransportPolicy"), Ns = /* @__PURE__ */ C("connectionHandler"), gu = /* @__PURE__ */ C("reset"), od = /* @__PURE__ */ C("createTransports"), mu = /* @__PURE__ */ C("connectTransportWithRetry"), Wd = /* @__PURE__ */ C("connectTransport"), Jd = /* @__PURE__ */ C("createSendTransport"), Kd = /* @__PURE__ */ C("createRecvTransport"), zd = /* @__PURE__ */ C("setTransportEventHandlers"), Yd = /* @__PURE__ */ C("transportConnectionRequest"), Mu = /* @__PURE__ */ C("reconnectTransport"), Zu = /* @__PURE__ */ C("updateTransportState"), eO = /* @__PURE__ */ function(o) {
24314
24314
  function t(e, r) {
24315
24315
  var n;
24316
- w(this, t), n = R(this, t), Object.defineProperty(n, Zu, { value: dO }), Object.defineProperty(n, Mu, { value: cO }), Object.defineProperty(n, Yd, { value: lO }), Object.defineProperty(n, zd, { value: uO }), Object.defineProperty(n, Kd, { value: oO }), Object.defineProperty(n, Jd, { value: sO }), Object.defineProperty(n, Wd, { value: iO }), Object.defineProperty(n, mu, { value: aO }), Object.defineProperty(n, od, { value: nO }), Object.defineProperty(n, gu, { value: tO }), Object.defineProperty(n, Ns, { get: rO, set: void 0 }), n.context = void 0, Object.defineProperty(n, Gs, { writable: !0, value: void 0 }), Object.defineProperty(n, sr, { writable: !0, value: void 0 }), Object.defineProperty(n, or, { writable: !0, value: void 0 }), Object.defineProperty(n, hu, { writable: !0, value: void 0 }), Object.defineProperty(n, vu, { writable: !0, value: void 0 }), Object.defineProperty(n, ja, { writable: !0, value: void 0 }), Object.defineProperty(n, _s, { writable: !0, value: void 0 }), Object.defineProperty(n, fu, { writable: !0, value: void 0 }), Object.defineProperty(n, Xs, { writable: !0, value: { transportFailureCount: { send: 0, recv: 0 }, lastConnectionTime: 0 } }), Object.defineProperty(n, Va, { writable: !0, value: void 0 }), Object.defineProperty(n, Ct, { writable: !0, value: "all" }), n.context = e, l(n, ja)[ja] = r, l(n, Gs)[Gs] = new Z_(e), l(n, _s)[_s] = new V_(r), l(n, fu)[fu] = Vn, l(n, Ns)[Ns].mediaState = { send: { state: Uo.NEW }, recv: { state: Uo.NEW } };
24316
+ w(this, t), n = R(this, t), Object.defineProperty(n, Zu, { value: dO }), Object.defineProperty(n, Mu, { value: cO }), Object.defineProperty(n, Yd, { value: lO }), Object.defineProperty(n, zd, { value: uO }), Object.defineProperty(n, Kd, { value: oO }), Object.defineProperty(n, Jd, { value: sO }), Object.defineProperty(n, Wd, { value: iO }), Object.defineProperty(n, mu, { value: aO }), Object.defineProperty(n, od, { value: nO }), Object.defineProperty(n, gu, { value: tO }), Object.defineProperty(n, Ns, { get: rO, set: void 0 }), n.context = void 0, Object.defineProperty(n, Gs, { writable: !0, value: void 0 }), Object.defineProperty(n, sr, { writable: !0, value: void 0 }), Object.defineProperty(n, or, { writable: !0, value: void 0 }), Object.defineProperty(n, hu, { writable: !0, value: void 0 }), Object.defineProperty(n, vu, { writable: !0, value: void 0 }), Object.defineProperty(n, ja, { writable: !0, value: void 0 }), Object.defineProperty(n, _s, { writable: !0, value: void 0 }), Object.defineProperty(n, fu, { writable: !0, value: void 0 }), Object.defineProperty(n, Xs, { writable: !0, value: { transportFailureCount: { send: 0, recv: 0 }, lastConnectionTime: 0 } }), Object.defineProperty(n, Va, { writable: !0, value: void 0 }), Object.defineProperty(n, Ct, { writable: !0, value: "all" }), n.context = e, l(n, ja)[ja] = r, l(n, Gs)[Gs] = new Z_(e), l(n, _s)[_s] = new V_(r), l(n, fu)[fu] = Nn, l(n, Ns)[Ns].mediaState = { send: { state: Uo.NEW }, recv: { state: Uo.NEW } };
24317
24317
  var a = No(n.context, "forceRelay");
24318
- return (a || n.context.getValue("flagsmith").hasFeature(ge.FORCE_RELAY)) && (l(n, Ct)[Ct] = "relay"), n.logger.info("ICE Transport Policy initially set to ".concat(l(n, Ct)[Ct])), l(n, gu)[gu](), n;
24318
+ return (a || n.context.getValue("flagsmith").hasFeature(me.FORCE_RELAY)) && (l(n, Ct)[Ct] = "relay"), n.logger.info("ICE Transport Policy initially set to ".concat(l(n, Ct)[Ct])), l(n, gu)[gu](), n;
24319
24319
  }
24320
24320
  return A(t, o), P(t, [{
24321
24321
  key: "telemetry",
@@ -24415,11 +24415,11 @@ function Qd() {
24415
24415
  for (; ; )
24416
24416
  switch (g.prev = g.next) {
24417
24417
  case 0:
24418
- return r = No(this.context, "forceRelay"), (r || this.context.getValue("flagsmith").hasFeature(ge.FORCE_RELAY)) && (l(this, Ct)[Ct] = "relay"), this.logger.info("ICE Transport Policy set to ".concat(l(this, Ct)[Ct])), n = ht(), g.next = 6, n.getICEServers().catch(function(k) {
24418
+ return r = No(this.context, "forceRelay"), (r || this.context.getValue("flagsmith").hasFeature(me.FORCE_RELAY)) && (l(this, Ct)[Ct] = "relay"), this.logger.info("ICE Transport Policy set to ".concat(l(this, Ct)[Ct])), n = ht(), g.next = 6, n.getICEServers().catch(function(k) {
24419
24419
  return e.logger.warn("failed to get iceservers from server: ".concat(k.message)), [];
24420
24420
  });
24421
24421
  case 6:
24422
- a = g.sent, t.send && (p = this.context.getValue("flagsmith").hasFeature(ge.DISABLE_OPUS_DTX_CF), l(this, Jd)[Jd]({ iceServers: a, additionalSettings: { encodedInsertableStreams: (i = this.context.getValue("modules").e2ee) === null || i === void 0 ? void 0 : i.enabled }, config: { enableHighBitrate: (s = (u = this.context.getValue("defaults").mediaConfiguration) === null || u === void 0 || (u = u.audio) === null || u === void 0 ? void 0 : u.enableHighBitrate) !== null && s !== void 0 ? s : !1, enableStereo: (c = (d = this.context.getValue("defaults").mediaConfiguration) === null || d === void 0 || (d = d.audio) === null || d === void 0 ? void 0 : d.enableStereo) !== null && c !== void 0 ? c : !1, enableDtx: !!p }, iceTransportPolicy: l(this, Ct)[Ct] })), t.recv && l(this, Kd)[Kd]({ iceServers: a, additionalSettings: { encodedInsertableStreams: (v = this.context.getValue("modules").e2ee) === null || v === void 0 ? void 0 : v.enabled }, iceTransportPolicy: l(this, Ct)[Ct] });
24422
+ a = g.sent, t.send && (p = this.context.getValue("flagsmith").hasFeature(me.DISABLE_OPUS_DTX_CF), l(this, Jd)[Jd]({ iceServers: a, additionalSettings: { encodedInsertableStreams: (i = this.context.getValue("modules").e2ee) === null || i === void 0 ? void 0 : i.enabled }, config: { enableHighBitrate: (s = (u = this.context.getValue("defaults").mediaConfiguration) === null || u === void 0 || (u = u.audio) === null || u === void 0 ? void 0 : u.enableHighBitrate) !== null && s !== void 0 ? s : !1, enableStereo: (c = (d = this.context.getValue("defaults").mediaConfiguration) === null || d === void 0 || (d = d.audio) === null || d === void 0 ? void 0 : d.enableStereo) !== null && c !== void 0 ? c : !1, enableDtx: !!p }, iceTransportPolicy: l(this, Ct)[Ct] })), t.recv && l(this, Kd)[Kd]({ iceServers: a, additionalSettings: { encodedInsertableStreams: (v = this.context.getValue("modules").e2ee) === null || v === void 0 ? void 0 : v.enabled }, iceTransportPolicy: l(this, Ct)[Ct] });
24423
24423
  case 9:
24424
24424
  case "end":
24425
24425
  return g.stop();
@@ -24670,7 +24670,7 @@ function ep() {
24670
24670
  for (; ; )
24671
24671
  switch (n.prev = n.next) {
24672
24672
  case 0:
24673
- return this.logger.info("Called reconnect transport", { transport: { type: t } }), this.stopTransports({ [t]: !0 }), e = this.context.getValue("flagsmith").hasFeature(ge.CF_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED), e && l(this, ja)[ja].isConnected && l(this, Xs)[Xs].transportFailureCount[t] > 2 && (this.logger.warn("Multiple disconnections in ".concat(t, " transport, forcing relay")), l(this, Ct)[Ct] = "relay"), n.next = 6, this.setupTransports({ [t]: !0 });
24673
+ return this.logger.info("Called reconnect transport", { transport: { type: t } }), this.stopTransports({ [t]: !0 }), e = this.context.getValue("flagsmith").hasFeature(me.CF_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED), e && l(this, ja)[ja].isConnected && l(this, Xs)[Xs].transportFailureCount[t] > 2 && (this.logger.warn("Multiple disconnections in ".concat(t, " transport, forcing relay")), l(this, Ct)[Ct] = "relay"), n.next = 6, this.setupTransports({ [t]: !0 });
24674
24674
  case 6:
24675
24675
  n.t0 = t, n.next = n.t0 === "send" ? 9 : n.t0 === "recv" ? 12 : 15;
24676
24676
  break;
@@ -24711,7 +24711,7 @@ var yu = /* @__PURE__ */ C("context"), xr = /* @__PURE__ */ C("logger"), pO = /*
24711
24711
  throw new Error("List of producers is required");
24712
24712
  case 2:
24713
24713
  return i = /* @__PURE__ */ new Map(), s = [], n.forEach(function(g) {
24714
- var k = g.producingPeerId, y = g.producerId, b = g.producingTransportId, E = l(a, yu)[yu].getValue("flagsmith").hasFeature(ge.ENABLE_CF_SIMULCAST) ? { simulcast: { preferredRid: "h", priorityOrdering: "asciibetical", ridNotAvailable: "asciibetical" } } : {};
24714
+ var k = g.producingPeerId, y = g.producerId, b = g.producingTransportId, E = l(a, yu)[yu].getValue("flagsmith").hasFeature(me.ENABLE_CF_SIMULCAST) ? { simulcast: { preferredRid: "h", priorityOrdering: "asciibetical", ridNotAvailable: "asciibetical" } } : {};
24715
24715
  i.set(y, k), s.push(N({ producingPeerId: k, producerId: y, producingTransportId: b }, E));
24716
24716
  }), f.next = 7, this.socketHandler.consume({ requests: s, consumingTransportId: this.recvTransport.serverId });
24717
24717
  case 7:
@@ -24869,15 +24869,15 @@ var yu = /* @__PURE__ */ C("context"), xr = /* @__PURE__ */ C("logger"), pO = /*
24869
24869
  }
24870
24870
  return e;
24871
24871
  }() }], [{ key: "getMSIDFromSDP", value: function(e, r) {
24872
- var n = Dn.parse(e), a = n.media.filter(function(i) {
24872
+ var n = On.parse(e), a = n.media.filter(function(i) {
24873
24873
  return r === "video" ? i.type === "video" : i.type === "audio";
24874
24874
  }).at(-1).msid;
24875
24875
  return a;
24876
24876
  } }]);
24877
- }(), La = /* @__PURE__ */ C("producers"), $n = /* @__PURE__ */ C("consumers"), bs = /* @__PURE__ */ C("producerIdToConsumerIdMap"), $u = /* @__PURE__ */ C("producerStrategy"), Et = /* @__PURE__ */ C("consumerStrategy"), ud = /* @__PURE__ */ C("metrics"), tn = /* @__PURE__ */ C("producersToConsume"), Os = /* @__PURE__ */ C("processConsumerTimeout"), Nu = /* @__PURE__ */ C("processConsumers"), ld = /* @__PURE__ */ C("producerCreationRequest"), cd = /* @__PURE__ */ C("handleProducer"), rp = /* @__PURE__ */ C("consumerCreationRequest"), tp = /* @__PURE__ */ C("handleConsumer"), vO = /* @__PURE__ */ function(o) {
24877
+ }(), La = /* @__PURE__ */ C("producers"), Ln = /* @__PURE__ */ C("consumers"), bs = /* @__PURE__ */ C("producerIdToConsumerIdMap"), $u = /* @__PURE__ */ C("producerStrategy"), Et = /* @__PURE__ */ C("consumerStrategy"), ud = /* @__PURE__ */ C("metrics"), tn = /* @__PURE__ */ C("producersToConsume"), Os = /* @__PURE__ */ C("processConsumerTimeout"), Nu = /* @__PURE__ */ C("processConsumers"), ld = /* @__PURE__ */ C("producerCreationRequest"), cd = /* @__PURE__ */ C("handleProducer"), rp = /* @__PURE__ */ C("consumerCreationRequest"), tp = /* @__PURE__ */ C("handleConsumer"), vO = /* @__PURE__ */ function(o) {
24878
24878
  function t(e, r) {
24879
24879
  var n;
24880
- return w(this, t), n = R(this, t, [e, r]), Object.defineProperty(n, tp, { value: kO }), Object.defineProperty(n, rp, { value: yO }), Object.defineProperty(n, cd, { value: mO }), Object.defineProperty(n, ld, { value: gO }), Object.defineProperty(n, Nu, { value: fO }), Object.defineProperty(n, La, { writable: !0, value: void 0 }), Object.defineProperty(n, $n, { writable: !0, value: void 0 }), Object.defineProperty(n, bs, { writable: !0, value: void 0 }), Object.defineProperty(n, $u, { writable: !0, value: void 0 }), Object.defineProperty(n, Et, { writable: !0, value: void 0 }), Object.defineProperty(n, ud, { writable: !0, value: { producerCreationFailureCount: 0, consumerCreationFailureCount: 0, producerNotReadyFailureCount: 0 } }), Object.defineProperty(n, tn, { writable: !0, value: [] }), Object.defineProperty(n, Os, { writable: !0, value: void 0 }), n.context = e, n.sendTransportConnectedCallback = /* @__PURE__ */ m(/* @__PURE__ */ h().mark(function a() {
24880
+ return w(this, t), n = R(this, t, [e, r]), Object.defineProperty(n, tp, { value: kO }), Object.defineProperty(n, rp, { value: yO }), Object.defineProperty(n, cd, { value: mO }), Object.defineProperty(n, ld, { value: gO }), Object.defineProperty(n, Nu, { value: fO }), Object.defineProperty(n, La, { writable: !0, value: void 0 }), Object.defineProperty(n, Ln, { writable: !0, value: void 0 }), Object.defineProperty(n, bs, { writable: !0, value: void 0 }), Object.defineProperty(n, $u, { writable: !0, value: void 0 }), Object.defineProperty(n, Et, { writable: !0, value: void 0 }), Object.defineProperty(n, ud, { writable: !0, value: { producerCreationFailureCount: 0, consumerCreationFailureCount: 0, producerNotReadyFailureCount: 0 } }), Object.defineProperty(n, tn, { writable: !0, value: [] }), Object.defineProperty(n, Os, { writable: !0, value: void 0 }), n.context = e, n.sendTransportConnectedCallback = /* @__PURE__ */ m(/* @__PURE__ */ h().mark(function a() {
24881
24881
  return h().wrap(function(s) {
24882
24882
  for (; ; )
24883
24883
  switch (s.prev = s.next) {
@@ -24911,7 +24911,7 @@ var yu = /* @__PURE__ */ C("context"), xr = /* @__PURE__ */ C("logger"), pO = /*
24911
24911
  } }, { key: "producers", get: function() {
24912
24912
  return l(this, La)[La];
24913
24913
  } }, { key: "consumers", get: function() {
24914
- return l(this, $n)[$n];
24914
+ return l(this, Ln)[Ln];
24915
24915
  } }, {
24916
24916
  key: "producerIdToConsumerIdMap",
24917
24917
  get: function() {
@@ -24924,7 +24924,7 @@ var yu = /* @__PURE__ */ C("context"), xr = /* @__PURE__ */ C("logger"), pO = /*
24924
24924
  }, { key: "logger", get: function() {
24925
24925
  return this.context.getValue("logger");
24926
24926
  } }, { key: "reset", value: function() {
24927
- l(this, La)[La] = /* @__PURE__ */ new Map(), l(this, $n)[$n] = /* @__PURE__ */ new Map(), l(this, bs)[bs] = /* @__PURE__ */ new Map();
24927
+ l(this, La)[La] = /* @__PURE__ */ new Map(), l(this, Ln)[Ln] = /* @__PURE__ */ new Map(), l(this, bs)[bs] = /* @__PURE__ */ new Map();
24928
24928
  } }, { key: "createProducer", value: function() {
24929
24929
  var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
24930
24930
  var s, u;
@@ -25045,7 +25045,7 @@ var yu = /* @__PURE__ */ C("context"), xr = /* @__PURE__ */ C("logger"), pO = /*
25045
25045
  }
25046
25046
  return r;
25047
25047
  }() }, { key: "closeAllConsumers", value: function() {
25048
- return this.closeConsumers(Array.from(l(this, $n)[$n].keys()));
25048
+ return this.closeConsumers(Array.from(l(this, Ln)[Ln].keys()));
25049
25049
  } }, { key: "switchConsumersToLayer", value: function() {
25050
25050
  var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
25051
25051
  return h().wrap(function(u) {
@@ -25187,7 +25187,7 @@ function kO(o) {
25187
25187
  for (; ; )
25188
25188
  switch (i.prev = i.next) {
25189
25189
  case 0:
25190
- t.logger.debug("consumer closed", { consumer: { closureReason: n, id: o.id, kind: o.kind, appData: o.appData } }), l(t, $n)[$n].delete(o.id), t.context.getValue("peerSessionStore").emit(F.CONSUMER_CLOSED, { id: o.id });
25190
+ t.logger.debug("consumer closed", { consumer: { closureReason: n, id: o.id, kind: o.kind, appData: o.appData } }), l(t, Ln)[Ln].delete(o.id), t.context.getValue("peerSessionStore").emit(F.CONSUMER_CLOSED, { id: o.id });
25191
25191
  case 3:
25192
25192
  case "end":
25193
25193
  return i.stop();
@@ -25197,7 +25197,7 @@ function kO(o) {
25197
25197
  return function(r) {
25198
25198
  return e.apply(this, arguments);
25199
25199
  };
25200
- }()), l(this, $n)[$n].set(o.id, o), this.producerIdToConsumerIdMap.set(o.producerId, o.id), this.context.getValue("peerSessionStore").emit(F.NEW_CONSUMER, { id: o.id, appData: o.appData, peerId: o.peerId });
25200
+ }()), l(this, Ln)[Ln].set(o.id, o), this.producerIdToConsumerIdMap.set(o.producerId, o.id), this.context.getValue("peerSessionStore").emit(F.NEW_CONSUMER, { id: o.id, appData: o.appData, peerId: o.peerId });
25201
25201
  }
25202
25202
  var ku = /* @__PURE__ */ C("zeroCrossingThreshold"), bu = /* @__PURE__ */ C("minVoiceDuration"), Tu = /* @__PURE__ */ C("hangoverFrames"), Ts = /* @__PURE__ */ C("initialEnergyThreshold"), Vs = /* @__PURE__ */ C("noiseAdaptationRate"), Us = /* @__PURE__ */ C("voiceAdaptationRate"), Vu = /* @__PURE__ */ C("minEnergyThreshold"), Uu = /* @__PURE__ */ C("maxEnergyThreshold"), ws = /* @__PURE__ */ C("energyRatioThreshold"), Mr = /* @__PURE__ */ C("currentEnergyThreshold"), dt = /* @__PURE__ */ C("backgroundNoiseEnergy"), ct = /* @__PURE__ */ C("voiceDetected"), Ca = /* @__PURE__ */ C("consecutiveVoiceFrames"), Ra = /* @__PURE__ */ C("hangoverCount"), en = /* @__PURE__ */ C("noiseEnergyHistory"), ju = /* @__PURE__ */ C("noiseHistorySize"), dd = /* @__PURE__ */ C("updateEnergyThreshold"), pd = /* @__PURE__ */ C("updateNoiseEstimate"), ip = /* @__PURE__ */ C("calculateEnergy"), sp = /* @__PURE__ */ C("calculateZeroCrossingRate"), Yp = /* @__PURE__ */ function() {
25203
25203
  function o() {
@@ -25341,9 +25341,9 @@ var wu = /* @__PURE__ */ C("context"), Tv = /* @__PURE__ */ function() {
25341
25341
  } }, { key: "clearTimeout", value: function(e) {
25342
25342
  return navigator && navigator.RNBackgroundTimerImpl ? navigator.RNBackgroundTimerImpl.clearTimeout(e) : global.clearTimeout(e);
25343
25343
  } }]);
25344
- }(), EO = 60, CO = 400, zt = /* @__PURE__ */ C("interval"), Yt = /* @__PURE__ */ C("reportInterval"), pt = /* @__PURE__ */ C("producerId"), Su = /* @__PURE__ */ C("audioTrack"), Fa = /* @__PURE__ */ C("energy"), Ds = /* @__PURE__ */ C("vad"), Zt = /* @__PURE__ */ C("minEnergy"), On = /* @__PURE__ */ C("maxEnergy"), Ls = /* @__PURE__ */ C("previousState"), rn = /* @__PURE__ */ C("context"), xt = /* @__PURE__ */ C("audioSampler"), wt = /* @__PURE__ */ C("timer"), hd = /* @__PURE__ */ C("getAudioCharacteristics"), xu = /* @__PURE__ */ C("isSilent"), vd = /* @__PURE__ */ C("report"), op = /* @__PURE__ */ C("logScale"), Mc = /* @__PURE__ */ function() {
25344
+ }(), EO = 60, CO = 400, zt = /* @__PURE__ */ C("interval"), Yt = /* @__PURE__ */ C("reportInterval"), pt = /* @__PURE__ */ C("producerId"), Su = /* @__PURE__ */ C("audioTrack"), Fa = /* @__PURE__ */ C("energy"), Ds = /* @__PURE__ */ C("vad"), Zt = /* @__PURE__ */ C("minEnergy"), _n = /* @__PURE__ */ C("maxEnergy"), Ls = /* @__PURE__ */ C("previousState"), rn = /* @__PURE__ */ C("context"), xt = /* @__PURE__ */ C("audioSampler"), wt = /* @__PURE__ */ C("timer"), hd = /* @__PURE__ */ C("getAudioCharacteristics"), xu = /* @__PURE__ */ C("isSilent"), vd = /* @__PURE__ */ C("report"), op = /* @__PURE__ */ C("logScale"), Mc = /* @__PURE__ */ function() {
25345
25345
  function o(t, e) {
25346
- w(this, o), Object.defineProperty(this, vd, { value: IO }), Object.defineProperty(this, hd, { value: RO }), Object.defineProperty(this, zt, { writable: !0, value: void 0 }), Object.defineProperty(this, Yt, { writable: !0, value: void 0 }), Object.defineProperty(this, pt, { writable: !0, value: void 0 }), Object.defineProperty(this, Su, { writable: !0, value: void 0 }), Object.defineProperty(this, Fa, { writable: !0, value: void 0 }), Object.defineProperty(this, Ds, { writable: !0, value: void 0 }), Object.defineProperty(this, Zt, { writable: !0, value: void 0 }), Object.defineProperty(this, On, { writable: !0, value: void 0 }), Object.defineProperty(this, Ls, { writable: !0, value: void 0 }), Object.defineProperty(this, rn, { writable: !0, value: void 0 }), Object.defineProperty(this, xt, { writable: !0, value: void 0 }), Object.defineProperty(this, wt, { writable: !0, value: void 0 }), this.reportRequest = e, l(this, rn)[rn] = t, l(this, Ds)[Ds] = new Yp();
25346
+ w(this, o), Object.defineProperty(this, vd, { value: IO }), Object.defineProperty(this, hd, { value: RO }), Object.defineProperty(this, zt, { writable: !0, value: void 0 }), Object.defineProperty(this, Yt, { writable: !0, value: void 0 }), Object.defineProperty(this, pt, { writable: !0, value: void 0 }), Object.defineProperty(this, Su, { writable: !0, value: void 0 }), Object.defineProperty(this, Fa, { writable: !0, value: void 0 }), Object.defineProperty(this, Ds, { writable: !0, value: void 0 }), Object.defineProperty(this, Zt, { writable: !0, value: void 0 }), Object.defineProperty(this, _n, { writable: !0, value: void 0 }), Object.defineProperty(this, Ls, { writable: !0, value: void 0 }), Object.defineProperty(this, rn, { writable: !0, value: void 0 }), Object.defineProperty(this, xt, { writable: !0, value: void 0 }), Object.defineProperty(this, wt, { writable: !0, value: void 0 }), this.reportRequest = e, l(this, rn)[rn] = t, l(this, Ds)[Ds] = new Yp();
25347
25347
  var r = navigator, n = r.isReactNative;
25348
25348
  l(this, xt)[xt] = n ? new Tv(l(this, rn)[rn]) : new wv(l(this, rn)[rn]), l(this, wt)[wt] = n ? SO : Ml;
25349
25349
  }
@@ -25391,12 +25391,12 @@ var wu = /* @__PURE__ */ C("context"), Tv = /* @__PURE__ */ function() {
25391
25391
  kp = Mc;
25392
25392
  function RO() {
25393
25393
  var o = l(this, xt)[xt].samples, t = l(this, Ds)[Ds].processAudioChunk(o), e = t.energy, r = t.isVoice, n = l(kp, op)[op](e);
25394
- if (l(this, rn)[rn].getValue("flagsmith").hasFeature(ge.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug("AudioActivityReporter: producer: ".concat(l(this, pt)[pt], ", energy: ").concat(l(this, Fa)[Fa], `,
25394
+ if (l(this, rn)[rn].getValue("flagsmith").hasFeature(me.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug("AudioActivityReporter: producer: ".concat(l(this, pt)[pt], ", energy: ").concat(l(this, Fa)[Fa], `,
25395
25395
  slogScale: `).concat(n, ", isVoice: ").concat(r, ", minEnergy: ").concat(l(this, Zt)[Zt], `,
25396
- maxEnergy: `).concat(l(this, On)[On])), n === -1 / 0 || e < 1e-6)
25396
+ maxEnergy: `).concat(l(this, _n)[_n])), n === -1 / 0 || e < 1e-6)
25397
25397
  return { energy: 0, isVoice: !1 };
25398
- (!l(this, Zt)[Zt] || n < l(this, Zt)[Zt]) && (l(this, Zt)[Zt] = n), (!l(this, On)[On] || n > l(this, On)[On]) && (l(this, On)[On] = n);
25399
- var a = (n - l(this, Zt)[Zt]) / (l(this, On)[On] - l(this, Zt)[Zt]) * 10 || 0;
25398
+ (!l(this, Zt)[Zt] || n < l(this, Zt)[Zt]) && (l(this, Zt)[Zt] = n), (!l(this, _n)[_n] || n > l(this, _n)[_n]) && (l(this, _n)[_n] = n);
25399
+ var a = (n - l(this, Zt)[Zt]) / (l(this, _n)[_n] - l(this, Zt)[Zt]) * 10 || 0;
25400
25400
  return { energy: a, isVoice: r };
25401
25401
  }
25402
25402
  function AO(o) {
@@ -25405,7 +25405,7 @@ function AO(o) {
25405
25405
  function IO() {
25406
25406
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : l(this, Fa)[Fa];
25407
25407
  if (!l(this, pt)[pt] || !o) {
25408
- l(this, rn)[rn].getValue("flagsmith").hasFeature(ge.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug("AudioActivityReporter: No producerId or energy to report: ".concat(l(this, pt)[pt]));
25408
+ l(this, rn)[rn].getValue("flagsmith").hasFeature(me.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug("AudioActivityReporter: No producerId or energy to report: ".concat(l(this, pt)[pt]));
25409
25409
  return;
25410
25410
  }
25411
25411
  var t = { producerId: l(this, pt)[pt], energy: Math.round(o), silent: l(kp, xu)[xu](o) };
@@ -25483,10 +25483,10 @@ var _O = function() {
25483
25483
  for (var a = n > 1 ? void 0 : n ? LO(e, r) : e, i = t.length - 1, s; i >= 0; i--)
25484
25484
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
25485
25485
  return n && a && DO(e, r, a), a;
25486
- }, Qt = ["video/VP9", "video/VP8"], _g = (Co = /* @__PURE__ */ C("roomUUID"), Ro = /* @__PURE__ */ C("peerDisplayName"), Xe = /* @__PURE__ */ C("socketClient"), W = /* @__PURE__ */ C("sfuHandler"), Ci = /* @__PURE__ */ C("rtpCapabilities"), lr = /* @__PURE__ */ C("events"), ua = /* @__PURE__ */ C("roomJoiningInProgress"), la = /* @__PURE__ */ C("onceJoined"), ra = /* @__PURE__ */ C("transportQueue"), fo = /* @__PURE__ */ C("rejoinRoomFn"), Kr = /* @__PURE__ */ C("connectionPromise"), Dt = /* @__PURE__ */ C("screenshareConsumerProducer"), js = /* @__PURE__ */ C("location"), ta = /* @__PURE__ */ C("senderVideoCodecMap"), na = /* @__PURE__ */ C("receiverVideoCodecMap"), hr = /* @__PURE__ */ C("producerTypes"), Pr = /* @__PURE__ */ C("audioActivityReporter"), fn = /* @__PURE__ */ C("connectionHandler"), ml = /* @__PURE__ */ C("joinRoom"), Bl = /* @__PURE__ */ C("completeJoinRoom"), ql = /* @__PURE__ */ C("reportRoomJoinedAnalytics"), Ao = /* @__PURE__ */ C("initializeConnection"), Gl = /* @__PURE__ */ C("getLocation"), Wl = /* @__PURE__ */ C("getRtpCapabilities"), Jl = /* @__PURE__ */ C("sendJoinRoomMessage"), Kl = /* @__PURE__ */ C("setupInitialMediaProducers"), We = /* @__PURE__ */ C("getProducer"), aa = /* @__PURE__ */ C("setProducer"), yl = /* @__PURE__ */ C("deleteProducer"), kl = /* @__PURE__ */ C("getMicProducerDefaults"), bl = /* @__PURE__ */ C("getWebcamProducerDefaults"), Uc = /* @__PURE__ */ function() {
25486
+ }, Qt = ["video/VP9", "video/VP8"], _g = (Co = /* @__PURE__ */ C("roomUUID"), Ro = /* @__PURE__ */ C("peerDisplayName"), Xe = /* @__PURE__ */ C("socketClient"), W = /* @__PURE__ */ C("sfuHandler"), Ci = /* @__PURE__ */ C("rtpCapabilities"), lr = /* @__PURE__ */ C("events"), ua = /* @__PURE__ */ C("roomJoiningInProgress"), la = /* @__PURE__ */ C("onceJoined"), ra = /* @__PURE__ */ C("transportQueue"), fo = /* @__PURE__ */ C("rejoinRoomFn"), Kr = /* @__PURE__ */ C("connectionPromise"), Dt = /* @__PURE__ */ C("screenshareConsumerProducer"), js = /* @__PURE__ */ C("location"), ta = /* @__PURE__ */ C("senderVideoCodecMap"), na = /* @__PURE__ */ C("receiverVideoCodecMap"), hr = /* @__PURE__ */ C("producerTypes"), Pr = /* @__PURE__ */ C("audioActivityReporter"), vn = /* @__PURE__ */ C("connectionHandler"), ml = /* @__PURE__ */ C("joinRoom"), Bl = /* @__PURE__ */ C("completeJoinRoom"), ql = /* @__PURE__ */ C("reportRoomJoinedAnalytics"), Ao = /* @__PURE__ */ C("initializeConnection"), Gl = /* @__PURE__ */ C("getLocation"), Wl = /* @__PURE__ */ C("getRtpCapabilities"), Jl = /* @__PURE__ */ C("sendJoinRoomMessage"), Kl = /* @__PURE__ */ C("setupInitialMediaProducers"), We = /* @__PURE__ */ C("getProducer"), aa = /* @__PURE__ */ C("setProducer"), yl = /* @__PURE__ */ C("deleteProducer"), kl = /* @__PURE__ */ C("getMicProducerDefaults"), bl = /* @__PURE__ */ C("getWebcamProducerDefaults"), Uc = /* @__PURE__ */ function() {
25487
25487
  function o(t, e) {
25488
25488
  var r, n, a = this;
25489
- w(this, o), Object.defineProperty(this, bl, { value: zO }), Object.defineProperty(this, kl, { value: KO }), Object.defineProperty(this, yl, { value: JO }), Object.defineProperty(this, aa, { value: WO }), Object.defineProperty(this, We, { value: GO }), Object.defineProperty(this, Kl, { value: qO }), Object.defineProperty(this, Jl, { value: BO }), Object.defineProperty(this, Wl, { value: HO }), Object.defineProperty(this, Ao, { value: jO }), Object.defineProperty(this, ql, { value: UO }), Object.defineProperty(this, Bl, { value: VO }), Object.defineProperty(this, ml, { value: NO }), Object.defineProperty(this, fn, { get: $O, set: void 0 }), this.context = void 0, this.authToken = void 0, this.e2ee = void 0, Object.defineProperty(this, Co, { writable: !0, value: void 0 }), Object.defineProperty(this, Ro, { writable: !0, value: void 0 }), Object.defineProperty(this, Xe, { writable: !0, value: void 0 }), Object.defineProperty(this, W, { writable: !0, value: void 0 }), Object.defineProperty(this, Ci, { writable: !0, value: void 0 }), Object.defineProperty(this, lr, { writable: !0, value: void 0 }), Object.defineProperty(this, ua, { writable: !0, value: void 0 }), Object.defineProperty(this, la, { writable: !0, value: void 0 }), Object.defineProperty(this, ra, { writable: !0, value: void 0 }), Object.defineProperty(this, fo, { writable: !0, value: void 0 }), Object.defineProperty(this, Kr, { writable: !0, value: null }), Object.defineProperty(this, Dt, { writable: !0, value: void 0 }), Object.defineProperty(this, js, { writable: !0, value: void 0 }), Object.defineProperty(this, ta, { writable: !0, value: void 0 }), Object.defineProperty(this, na, { writable: !0, value: void 0 }), Object.defineProperty(this, hr, { writable: !0, value: void 0 }), Object.defineProperty(this, Pr, { writable: !0, value: void 0 }), this.context = t;
25489
+ w(this, o), Object.defineProperty(this, bl, { value: zO }), Object.defineProperty(this, kl, { value: KO }), Object.defineProperty(this, yl, { value: JO }), Object.defineProperty(this, aa, { value: WO }), Object.defineProperty(this, We, { value: GO }), Object.defineProperty(this, Kl, { value: qO }), Object.defineProperty(this, Jl, { value: BO }), Object.defineProperty(this, Wl, { value: HO }), Object.defineProperty(this, Ao, { value: jO }), Object.defineProperty(this, ql, { value: UO }), Object.defineProperty(this, Bl, { value: VO }), Object.defineProperty(this, ml, { value: NO }), Object.defineProperty(this, vn, { get: $O, set: void 0 }), this.context = void 0, this.authToken = void 0, this.e2ee = void 0, Object.defineProperty(this, Co, { writable: !0, value: void 0 }), Object.defineProperty(this, Ro, { writable: !0, value: void 0 }), Object.defineProperty(this, Xe, { writable: !0, value: void 0 }), Object.defineProperty(this, W, { writable: !0, value: void 0 }), Object.defineProperty(this, Ci, { writable: !0, value: void 0 }), Object.defineProperty(this, lr, { writable: !0, value: void 0 }), Object.defineProperty(this, ua, { writable: !0, value: void 0 }), Object.defineProperty(this, la, { writable: !0, value: void 0 }), Object.defineProperty(this, ra, { writable: !0, value: void 0 }), Object.defineProperty(this, fo, { writable: !0, value: void 0 }), Object.defineProperty(this, Kr, { writable: !0, value: null }), Object.defineProperty(this, Dt, { writable: !0, value: void 0 }), Object.defineProperty(this, js, { writable: !0, value: void 0 }), Object.defineProperty(this, ta, { writable: !0, value: void 0 }), Object.defineProperty(this, na, { writable: !0, value: void 0 }), Object.defineProperty(this, hr, { writable: !0, value: void 0 }), Object.defineProperty(this, Pr, { writable: !0, value: void 0 }), this.context = t;
25490
25490
  var i = e.socket;
25491
25491
  this.mediaJoined = !1, l(this, ta)[ta] = /* @__PURE__ */ new Map([["video/VP9", /* @__PURE__ */ new Set()], ["video/VP8", /* @__PURE__ */ new Set()]]), l(this, na)[na] = /* @__PURE__ */ new Map([["video/VP9", /* @__PURE__ */ new Set()], ["video/VP8", /* @__PURE__ */ new Set()]]), l(this, Xe)[Xe] = i, l(this, ua)[ua] = !1, l(this, W)[W] = new vO(t, i), l(this, lr)[lr] = l(this, W)[W].events, l(this, Dt)[Dt] = /* @__PURE__ */ new Set(), l(this, hr)[hr] = /* @__PURE__ */ new Map(), l(this, la)[la] = !1, l(this, ra)[ra] = new Bd(t.getValue("logger")), l(this, Pr)[Pr] = new Mc(this.context, l(this, W)[W].socketHandler.audioActivity.bind(l(this, W)[W].socketHandler)), this.e2ee = (r = (n = t.getValue("modules").e2ee) === null || n === void 0 ? void 0 : n.enabled) !== null && r !== void 0 ? r : !1, this.handleSocketEvents(), this.handleCallstatsEvents(), l(this, fo)[fo] = jp(/* @__PURE__ */ m(/* @__PURE__ */ h().mark(function s() {
25492
25492
  var u, c;
@@ -25494,7 +25494,7 @@ var _O = function() {
25494
25494
  for (; ; )
25495
25495
  switch (p.prev = p.next) {
25496
25496
  case 0:
25497
- if (l(a, fn)[fn].mediaJoinAttempted) {
25497
+ if (l(a, vn)[vn].mediaJoinAttempted) {
25498
25498
  p.next = 2;
25499
25499
  break;
25500
25500
  }
@@ -25531,9 +25531,9 @@ var _O = function() {
25531
25531
  }, { key: "logger", get: function() {
25532
25532
  return this.context.getValue("logger");
25533
25533
  } }, { key: "mediaJoined", get: function() {
25534
- return l(this, fn)[fn].mediaJoined;
25534
+ return l(this, vn)[vn].mediaJoined;
25535
25535
  }, set: function(e) {
25536
- l(this, fn)[fn].mediaJoined = e;
25536
+ l(this, vn)[vn].mediaJoined = e;
25537
25537
  } }, { key: "reset", value: function() {
25538
25538
  l(this, W)[W].closeAllProducers(), l(this, W)[W].closeAllConsumers(), l(this, hr)[hr].clear(), l(this, Dt)[Dt].clear(), l(this, Kr)[Kr] = null, l(this, ra)[ra].stop(), l(this, W)[W].stopAllTransports(), l(this, W)[W].reset(), l(this, ra)[ra] = new Bd();
25539
25539
  } }, { key: "joinRoom", value: function() {
@@ -25543,7 +25543,7 @@ var _O = function() {
25543
25543
  for (; ; )
25544
25544
  switch (f.prev = f.next) {
25545
25545
  case 0:
25546
- return s = p.length > 2 && p[2] !== void 0 ? p[2] : !1, u = p.length > 3 && p[3] !== void 0 ? p[3] : !1, c = p.length > 4 && p[4] !== void 0 ? p[4] : {}, l(this, fn)[fn].mediaJoinAttempted = !0, l(this, ua)[ua] = !0, s && this.reset(), f.prev = 6, f.next = 9, l(this, ra)[ra].push(function() {
25546
+ return s = p.length > 2 && p[2] !== void 0 ? p[2] : !1, u = p.length > 3 && p[3] !== void 0 ? p[3] : !1, c = p.length > 4 && p[4] !== void 0 ? p[4] : {}, l(this, vn)[vn].mediaJoinAttempted = !0, l(this, ua)[ua] = !0, s && this.reset(), f.prev = 6, f.next = 9, l(this, ra)[ra].push(function() {
25547
25547
  return l(i, ml)[ml](n, a, u, c);
25548
25548
  }, "joinRoom");
25549
25549
  case 9:
@@ -25618,7 +25618,7 @@ var _O = function() {
25618
25618
  for (; ; )
25619
25619
  switch (u.prev = u.next) {
25620
25620
  case 0:
25621
- l(this, W)[W].stopAllTransports(), l(this, la)[la] = !1, l(this, fn)[fn].mediaJoinAttempted = !1, a = { closeRoom: !1 }, l(this, Xe)[Xe].sendMessagePromise(l(this, lr)[lr].leaveRoom, bS.toBinary(a)).then(function(c) {
25621
+ l(this, W)[W].stopAllTransports(), l(this, la)[la] = !1, l(this, vn)[vn].mediaJoinAttempted = !1, a = { closeRoom: !1 }, l(this, Xe)[Xe].sendMessagePromise(l(this, lr)[lr].leaveRoom, bS.toBinary(a)).then(function(c) {
25622
25622
  var d;
25623
25623
  (d = uE.fromBinary(c.payload)) !== null && d !== void 0 && d.closed && n.logger.warn("Weird state on peer closed and should not happen");
25624
25624
  }).catch(function(c) {
@@ -25734,7 +25734,7 @@ var _O = function() {
25734
25734
  case 17:
25735
25735
  return v = [a].concat(Qt.filter(function(D) {
25736
25736
  return D !== a;
25737
- })), f = l(this, bl)[bl](n, v), g = No(this.context, "disableSimulcast"), k = (i = this.context) === null || i === void 0 || (i = i.getValue("overrides")) === null || i === void 0 ? void 0 : i.simulcastConfig, y = g || k && k.disable, !y && this.context.getValue("flagsmith").hasFeature(ge.ENABLE_CF_SIMULCAST) ? (this.logger.info("Simulcast enabled for SFU: CF"), f.encodings = fM(this.context, n)) : this.logger.info("Simulcast disabled for webcam producer, SFU: CF"), this.context.getValue("flagsmith").hasFeature(ge.TRACK_HINT) && (f.track.contentHint = this.context.getValue("flagsmith").getValue(ge.TRACK_HINT)), b = function() {
25737
+ })), f = l(this, bl)[bl](n, v), g = No(this.context, "disableSimulcast"), k = (i = this.context) === null || i === void 0 || (i = i.getValue("overrides")) === null || i === void 0 ? void 0 : i.simulcastConfig, y = g || k && k.disable, !y && this.context.getValue("flagsmith").hasFeature(me.ENABLE_CF_SIMULCAST) ? (this.logger.info("Simulcast enabled for SFU: CF"), f.encodings = fM(this.context, n)) : this.logger.info("Simulcast disabled for webcam producer, SFU: CF"), this.context.getValue("flagsmith").hasFeature(me.TRACK_HINT) && (f.track.contentHint = this.context.getValue("flagsmith").getValue(me.TRACK_HINT)), b = function() {
25738
25738
  s.logger.info("Disabling video due to the producer closure"), l(s, hr)[hr].delete(u);
25739
25739
  }, E = l(this, W)[W].createProducer(f, b), l(this, aa)[aa](u, E.then(function(D) {
25740
25740
  return D.id;
@@ -25764,7 +25764,7 @@ var _O = function() {
25764
25764
  }
25765
25765
  return d.abrupt("return", null);
25766
25766
  case 2:
25767
- if (s = (a = this.context.getValue("flagsmith").getValue(ge.FORCE_VIDEO_CODEC)) === null || a === void 0 ? void 0 : a.toString(), !s) {
25767
+ if (s = (a = this.context.getValue("flagsmith").getValue(me.FORCE_VIDEO_CODEC)) === null || a === void 0 ? void 0 : a.toString(), !s) {
25768
25768
  d.next = 6;
25769
25769
  break;
25770
25770
  }
@@ -25837,7 +25837,7 @@ var _O = function() {
25837
25837
  f.next = 3;
25838
25838
  break;
25839
25839
  }
25840
- throw new kn("track undefined");
25840
+ throw new yn("track undefined");
25841
25841
  case 3:
25842
25842
  if (i = l(this, We)[We](dr.MIC), !i) {
25843
25843
  f.next = 22;
@@ -26466,7 +26466,7 @@ var _O = function() {
26466
26466
  ;
26467
26467
  } }, { key: "handlePeerLeaving", value: function(e) {
26468
26468
  var r = this;
26469
- this.context.getValue("flagsmith").hasFeature(ge.FORCE_VIDEO_CODEC) || (l(this, ta)[ta].forEach(function(n) {
26469
+ this.context.getValue("flagsmith").hasFeature(me.FORCE_VIDEO_CODEC) || (l(this, ta)[ta].forEach(function(n) {
26470
26470
  return n.delete(e);
26471
26471
  }), l(this, na)[na].forEach(function(n, a) {
26472
26472
  n.delete(e), !(n.size !== 0 || a === Qt[0]) && r.disableWebcam(a);
@@ -26579,7 +26579,7 @@ function FO() {
26579
26579
  }
26580
26580
  }
26581
26581
  function HO() {
26582
- var o, t = (o = this.context.getValue("flagsmith").getValue(ge.FORCE_VIDEO_CODEC)) === null || o === void 0 ? void 0 : o.toString(), e = N_(t);
26582
+ var o, t = (o = this.context.getValue("flagsmith").getValue(me.FORCE_VIDEO_CODEC)) === null || o === void 0 ? void 0 : o.toString(), e = N_(t);
26583
26583
  return l(this, Ci)[Ci] = e, e;
26584
26584
  }
26585
26585
  function BO(o, t, e, r) {
@@ -26637,7 +26637,7 @@ function pp() {
26637
26637
  for (; ; )
26638
26638
  switch (i.prev = i.next) {
26639
26639
  case 0:
26640
- if (e = this.context.getValue("flagsmith").hasFeature(ge.PRECREATE_PRODUCERS), !(!e || !t)) {
26640
+ if (e = this.context.getValue("flagsmith").hasFeature(me.PRECREATE_PRODUCERS), !(!e || !t)) {
26641
26641
  i.next = 3;
26642
26642
  break;
26643
26643
  }
@@ -26780,7 +26780,7 @@ var YO = Object.defineProperty, QO = Object.getOwnPropertyDescriptor, ao = funct
26780
26780
  }
26781
26781
  return k.prev = 12, k.next = 15, l(this, cr)[cr].shareWebcam(i);
26782
26782
  case 15:
26783
- if (v = k.sent, !(v && v.id !== i.id && l(this, Z)[Z].getValue("flagsmith").hasFeature(ge.EXP_RESHARE))) {
26783
+ if (v = k.sent, !(v && v.id !== i.id && l(this, Z)[Z].getValue("flagsmith").hasFeature(me.EXP_RESHARE))) {
26784
26784
  k.next = 19;
26785
26785
  break;
26786
26786
  }
@@ -26902,7 +26902,7 @@ var YO = Object.defineProperty, QO = Object.getOwnPropertyDescriptor, ao = funct
26902
26902
  var n = r.joinAttempted;
26903
26903
  if (e.self.roomState !== "disconnected") {
26904
26904
  var a = e.peerId;
26905
- n && l(e, Z)[Z].getValue("flagsmith").hasFeature(ge.REFRESH_ID_ON_DISCONNECTION) && (a = Ks()), l(e, ia)[ia].updateURL(a);
26905
+ n && l(e, Z)[Z].getValue("flagsmith").hasFeature(me.REFRESH_ID_ON_DISCONNECTION) && (a = Ks()), l(e, ia)[ia].updateURL(a);
26906
26906
  var i = l(e, Z)[Z].getValue("telemetry");
26907
26907
  i.resetPeerId(a);
26908
26908
  var s = ht();
@@ -27165,7 +27165,7 @@ var YO = Object.defineProperty, QO = Object.getOwnPropertyDescriptor, ao = funct
27165
27165
  case 0:
27166
27166
  return c = ht(), d = n.getValue("peerId"), p = !!n.getValue("cachedUserDetails"), y.next = 5, it.__init__(n, i, s, u, u.name, p);
27167
27167
  case 5:
27168
- return v = y.sent, n.setValue("self", v), f = n.getValue("logger"), navigator.product !== "ReactNative" ? (g = !n.getValue("flagsmith").hasFeature(ge.PRECALL_BANDWIDTH_TEST), setTimeout(/* @__PURE__ */ m(/* @__PURE__ */ h().mark(function b() {
27168
+ return v = y.sent, n.setValue("self", v), f = n.getValue("logger"), navigator.product !== "ReactNative" ? (g = !n.getValue("flagsmith").hasFeature(me.PRECALL_BANDWIDTH_TEST), setTimeout(/* @__PURE__ */ m(/* @__PURE__ */ h().mark(function b() {
27169
27169
  var E;
27170
27170
  return h().wrap(function(S) {
27171
27171
  for (; ; )
@@ -27768,32 +27768,32 @@ var tD = Object.defineProperty, nD = Object.getOwnPropertyDescriptor, aD = funct
27768
27768
  a = nv.fromBinary.bind(nv);
27769
27769
  break;
27770
27770
  }
27771
- case Vn.peerJoinedBroadcast:
27771
+ case Nn.peerJoinedBroadcast:
27772
27772
  case Ri.peerJoinedBroadcast: {
27773
27773
  a = Jh.fromBinary.bind(Jh);
27774
27774
  break;
27775
27775
  }
27776
- case Vn.selfJoinComplete:
27776
+ case Nn.selfJoinComplete:
27777
27777
  case Ri.selfJoinComplete: {
27778
27778
  a = Cd.fromBinary.bind(Cd);
27779
27779
  break;
27780
27780
  }
27781
- case Vn.globalPeerPinBroadcast:
27781
+ case Nn.globalPeerPinBroadcast:
27782
27782
  case Ri.globalPeerPinBroadcast: {
27783
27783
  a = Yh.fromBinary.bind(Yh);
27784
27784
  break;
27785
27785
  }
27786
- case Vn.selectedPeer:
27786
+ case Nn.selectedPeer:
27787
27787
  case Ri.selectedPeer: {
27788
27788
  a = Ed.fromBinary.bind(Ed);
27789
27789
  break;
27790
27790
  }
27791
- case Vn.selectedPeerDiff:
27791
+ case Nn.selectedPeerDiff:
27792
27792
  case Ri.selectedPeerDiff: {
27793
27793
  a = Wh.fromBinary.bind(Wh);
27794
27794
  break;
27795
27795
  }
27796
- case Vn.leaveRoom:
27796
+ case Nn.leaveRoom:
27797
27797
  case Ri.leaveRoom: {
27798
27798
  a = Rd.fromBinary.bind(Rd);
27799
27799
  break;
@@ -28409,12 +28409,12 @@ var yi = { debug: 0, info: 1, warn: 2, error: 3 }, Cs, Rs, bD = /* @__PURE__ */
28409
28409
  Cs = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap();
28410
28410
  var Wg = /* @__PURE__ */ function(o) {
28411
28411
  return o[o.CONNECTING = 0] = "CONNECTING", o[o.OPEN = 1] = "OPEN", o[o.CLOSING = 2] = "CLOSING", o[o.CLOSED = 3] = "CLOSED", o;
28412
- }(Wg || {}), TD = "2", wD = "3", $r, wo, Sr, Br, Ti, nt, Ha, Ii, Nn, Po, $a, hp, Jg, _u, Ul, vp, Kg, fp, Cv, sc, gp, mp, zg, Fu, jl, Hu, oc, uc, yp, Oo, Bu, qu, lc, PD = /* @__PURE__ */ function() {
28412
+ }(Wg || {}), TD = "2", wD = "3", $r, wo, Sr, Br, Ti, nt, Ha, Ii, $n, Po, $a, hp, Jg, _u, Ul, vp, Kg, fp, Cv, sc, gp, mp, zg, Fu, jl, Hu, oc, uc, yp, Oo, Bu, qu, lc, PD = /* @__PURE__ */ function() {
28413
28413
  function o(t, e) {
28414
28414
  var r, n, a, i, s, u, c, d, p, v;
28415
- w(this, o), yr(this, hp), yr(this, _u), yr(this, vp), yr(this, fp), yr(this, sc), yr(this, mp), yr(this, Fu), yr(this, Hu), yr(this, uc), yr(this, Oo), yr(this, qu), yr(this, $r, void 0), yr(this, wo, void 0), yr(this, Sr, void 0), yr(this, Br, void 0), yr(this, Ti, void 0), yr(this, nt, void 0), yr(this, Ha, void 0), yr(this, Ii, void 0), yr(this, Nn, void 0), yr(this, Po, void 0), yr(this, $a, void 0);
28415
+ w(this, o), yr(this, hp), yr(this, _u), yr(this, vp), yr(this, fp), yr(this, sc), yr(this, mp), yr(this, Fu), yr(this, Hu), yr(this, uc), yr(this, Oo), yr(this, qu), yr(this, $r, void 0), yr(this, wo, void 0), yr(this, Sr, void 0), yr(this, Br, void 0), yr(this, Ti, void 0), yr(this, nt, void 0), yr(this, Ha, void 0), yr(this, Ii, void 0), yr(this, $n, void 0), yr(this, Po, void 0), yr(this, $a, void 0);
28416
28416
  var f, g, k, y, b, E, T, S, D;
28417
- ze(this, wo, t), ze(this, Ti, []), ze(this, nt, new ic()), ze(this, Ha, !0), ze(this, Nn, !1), ze(this, Sr, e != null ? e : {}), (r = (f = J(this, Sr)).autoReconnect) !== null && r !== void 0 || (f.autoReconnect = !0), (n = (g = J(this, Sr)).retryConnectionInterval) !== null && n !== void 0 || (g.retryConnectionInterval = 1e3), (a = (k = J(this, Sr)).pingTimeout) !== null && a !== void 0 || (k.pingTimeout = 3e4), (i = (y = J(this, Sr)).connectionTimeout) !== null && i !== void 0 || (y.connectionTimeout = 5e3), (s = (b = J(this, Sr)).debug) !== null && s !== void 0 || (b.debug = !0), (u = (E = J(this, Sr)).maxReconnectionAttempts) !== null && u !== void 0 || (E.maxReconnectionAttempts = 10), (c = (T = J(this, Sr)).disconnectOnPingTimeout) !== null && c !== void 0 || (T.disconnectOnPingTimeout = !0), (d = (S = J(this, Sr)).queueOnDisconnect) !== null && d !== void 0 || (S.queueOnDisconnect = !1), (p = (D = J(this, Sr)).flushOnReconnect) !== null && p !== void 0 || (D.flushOnReconnect = !1), ze(this, Ii, { code: void 0, reason: void 0 }), ze(this, Br, (v = J(this, Sr).logger) !== null && v !== void 0 ? v : new bD(J(this, Sr).debug ? "debug" : "info")), ze(this, $a, new kD());
28417
+ ze(this, wo, t), ze(this, Ti, []), ze(this, nt, new ic()), ze(this, Ha, !0), ze(this, $n, !1), ze(this, Sr, e != null ? e : {}), (r = (f = J(this, Sr)).autoReconnect) !== null && r !== void 0 || (f.autoReconnect = !0), (n = (g = J(this, Sr)).retryConnectionInterval) !== null && n !== void 0 || (g.retryConnectionInterval = 1e3), (a = (k = J(this, Sr)).pingTimeout) !== null && a !== void 0 || (k.pingTimeout = 3e4), (i = (y = J(this, Sr)).connectionTimeout) !== null && i !== void 0 || (y.connectionTimeout = 5e3), (s = (b = J(this, Sr)).debug) !== null && s !== void 0 || (b.debug = !0), (u = (E = J(this, Sr)).maxReconnectionAttempts) !== null && u !== void 0 || (E.maxReconnectionAttempts = 10), (c = (T = J(this, Sr)).disconnectOnPingTimeout) !== null && c !== void 0 || (T.disconnectOnPingTimeout = !0), (d = (S = J(this, Sr)).queueOnDisconnect) !== null && d !== void 0 || (S.queueOnDisconnect = !1), (p = (D = J(this, Sr)).flushOnReconnect) !== null && p !== void 0 || (D.flushOnReconnect = !1), ze(this, Ii, { code: void 0, reason: void 0 }), ze(this, Br, (v = J(this, Sr).logger) !== null && v !== void 0 ? v : new bD(J(this, Sr).debug ? "debug" : "info")), ze(this, $a, new kD());
28418
28418
  }
28419
28419
  return P(o, [{
28420
28420
  key: "readyState",
@@ -28495,7 +28495,7 @@ var Wg = /* @__PURE__ */ function(o) {
28495
28495
  try {
28496
28496
  ze(n, $r, new WebSocket(Er(n, hp, Jg).call(n, J(n, wo)))), J(n, $r).binaryType = "arraybuffer", J(n, Br).debug("Connecting");
28497
28497
  var p = setTimeout(function() {
28498
- J(n, Br).debug("Connection timeout. Closing socket"), ze(n, Ha, !0), Er(n, qu, lc).call(n), J(n, $r).close(3001, "Connection Timeout"), J(n, Sr).autoReconnect && !J(n, Nn) && (J(n, nt).emit(
28498
+ J(n, Br).debug("Connection timeout. Closing socket"), ze(n, Ha, !0), Er(n, qu, lc).call(n), J(n, $r).close(3001, "Connection Timeout"), J(n, Sr).autoReconnect && !J(n, $n) && (J(n, nt).emit(
28499
28499
  "reconnecting"
28500
28500
  /* reconnecting */
28501
28501
  ), Er(n, Fu, jl).call(n)), d(new Error("Connection timed out!"));
@@ -28509,7 +28509,7 @@ var Wg = /* @__PURE__ */ function(o) {
28509
28509
  try {
28510
28510
  p && clearTimeout(p);
28511
28511
  var f = v.code, g = v.reason;
28512
- d(g), J(n, Br).debug("Socket closed. Close event:", { event: v }), J(n, Br).debug("Connection closed code: ".concat(f)), J(n, Br).debug("Connection closed reason: ".concat(g)), J(n, Nn) || Er(n, sc, gp).call(n, f, g);
28512
+ d(g), J(n, Br).debug("Socket closed. Close event:", { event: v }), J(n, Br).debug("Connection closed code: ".concat(f)), J(n, Br).debug("Connection closed reason: ".concat(g)), J(n, $n) || Er(n, sc, gp).call(n, f, g);
28513
28513
  } catch (k) {
28514
28514
  Er(n, _u, Ul).call(n, k);
28515
28515
  }
@@ -28632,7 +28632,7 @@ var Wg = /* @__PURE__ */ function(o) {
28632
28632
  ze(this, Ha, !1), Er(this, Oo, Bu).call(this), this.removeAllListeners(), ze(this, Ii, { code: 1e3, reason: "Sockrates disconnect method called" }), J(this, $r).close(1e3, "Sockrates disconnect method called.");
28633
28633
  } }]);
28634
28634
  }();
28635
- $r = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), Ha = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), $a = /* @__PURE__ */ new WeakMap(), hp = /* @__PURE__ */ new WeakSet(), Jg = function(t) {
28635
+ $r = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), Ha = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), $a = /* @__PURE__ */ new WeakMap(), hp = /* @__PURE__ */ new WeakSet(), Jg = function(t) {
28636
28636
  if (t.startsWith("ws://") || t.startsWith("wss://"))
28637
28637
  return t;
28638
28638
  if (t.startsWith("https://"))
@@ -28655,7 +28655,7 @@ $r = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), Sr = /*
28655
28655
  ze(this, Ii, { reason: e, code: t }), J(this, nt).emit("disconnected", { code: t, reason: e });
28656
28656
  }, mp = /* @__PURE__ */ new WeakSet(), zg = function() {
28657
28657
  var t = J(this, Ii), e = t.reason, r = t.code;
28658
- r && r !== 1e3 && J(this, Ha) && J(this, Sr).autoReconnect && !J(this, Nn) && (J(this, Br).debug("Triggering reconnection due to ".concat(e, ".")), J(this, nt).emit(
28658
+ r && r !== 1e3 && J(this, Ha) && J(this, Sr).autoReconnect && !J(this, $n) && (J(this, Br).debug("Triggering reconnection due to ".concat(e, ".")), J(this, nt).emit(
28659
28659
  "reconnecting"
28660
28660
  /* reconnecting */
28661
28661
  ), Er(this, Fu, jl).call(this));
@@ -28666,22 +28666,22 @@ $r = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), Sr = /*
28666
28666
  for (; ; )
28667
28667
  switch (a.prev = a.next) {
28668
28668
  case 0:
28669
- if (e = r.length > 0 && r[0] !== void 0 ? r[0] : !0, !(e && J(this, Nn))) {
28669
+ if (e = r.length > 0 && r[0] !== void 0 ? r[0] : !0, !(e && J(this, $n))) {
28670
28670
  a.next = 4;
28671
28671
  break;
28672
28672
  }
28673
28673
  return J(this, Br).debug("Reconnect called when already in a reconnect loop. Ignoring."), a.abrupt("return");
28674
28674
  case 4:
28675
- if (J(this, Nn) || J(this, $a).reset(), !(J(this, Sr).maxReconnectionAttempts !== null && J(this, $a).getAttempts() >= J(this, Sr).maxReconnectionAttempts)) {
28675
+ if (J(this, $n) || J(this, $a).reset(), !(J(this, Sr).maxReconnectionAttempts !== null && J(this, $a).getAttempts() >= J(this, Sr).maxReconnectionAttempts)) {
28676
28676
  a.next = 7;
28677
28677
  break;
28678
28678
  }
28679
28679
  return J(this, nt).emit(
28680
28680
  "failed"
28681
28681
  /* failed */
28682
- ), ze(this, Nn, !1), a.abrupt("return");
28682
+ ), ze(this, $n, !1), a.abrupt("return");
28683
28683
  case 7:
28684
- return ze(this, Nn, !0), Er(this, qu, lc).call(this), Er(this, Oo, Bu).call(this), a.prev = 8, a.next = 11, J(this, $a).wait();
28684
+ return ze(this, $n, !0), Er(this, qu, lc).call(this), Er(this, Oo, Bu).call(this), a.prev = 8, a.next = 11, J(this, $a).wait();
28685
28685
  case 11:
28686
28686
  if (J(this, Ha) !== !1) {
28687
28687
  a.next = 13;
@@ -28697,7 +28697,7 @@ $r = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), Sr = /*
28697
28697
  }
28698
28698
  throw Error("Reconnect Failed");
28699
28699
  case 19:
28700
- ze(this, Nn, !1), ze(this, Ii, { code: void 0, reason: void 0 }), J(this, nt).emit(
28700
+ ze(this, $n, !1), ze(this, Ii, { code: void 0, reason: void 0 }), J(this, nt).emit(
28701
28701
  "reconnected"
28702
28702
  /* reconnected */
28703
28703
  ), a.next = 25;
@@ -28736,12 +28736,12 @@ var SD = Object.defineProperty, ED = Object.getOwnPropertyDescriptor, Dc = funct
28736
28736
  for (var a = n > 1 ? void 0 : n ? ED(e, r) : e, i = t.length - 1, s; i >= 0; i--)
28737
28737
  (s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
28738
28738
  return n && a && SD(e, r, a), a;
28739
- }, Rv = 65535, CD = 3e3, Yg = (gn = /* @__PURE__ */ C("url"), be = /* @__PURE__ */ C("sockrates"), Te = /* @__PURE__ */ C("connectionHandler"), Jr = /* @__PURE__ */ C("socketDisconnectionTimeout"), Je = /* @__PURE__ */ C("context"), go = /* @__PURE__ */ C("getSocketURL"), mo = /* @__PURE__ */ C("generateId"), /* @__PURE__ */ function() {
28739
+ }, Rv = 65535, CD = 3e3, Yg = (fn = /* @__PURE__ */ C("url"), be = /* @__PURE__ */ C("sockrates"), Te = /* @__PURE__ */ C("connectionHandler"), Jr = /* @__PURE__ */ C("socketDisconnectionTimeout"), Je = /* @__PURE__ */ C("context"), go = /* @__PURE__ */ C("getSocketURL"), mo = /* @__PURE__ */ C("generateId"), /* @__PURE__ */ function() {
28740
28740
  function o(t, e) {
28741
28741
  var r, n = e.peerId, a = e.meetingId, i = e.authToken, s = e.capabilities;
28742
- if (w(this, o), Object.defineProperty(this, mo, { value: ID }), Object.defineProperty(this, go, { value: AD }), Object.defineProperty(this, Te, { get: RD, set: void 0 }), Object.defineProperty(this, gn, { writable: !0, value: void 0 }), Object.defineProperty(this, be, { writable: !0, value: void 0 }), this.roomName = void 0, this.authToken = void 0, this.capabilities = void 0, Object.defineProperty(this, Jr, { writable: !0, value: void 0 }), Object.defineProperty(this, Je, { writable: !0, value: void 0 }), !n || !a || !i)
28742
+ if (w(this, o), Object.defineProperty(this, mo, { value: ID }), Object.defineProperty(this, go, { value: AD }), Object.defineProperty(this, Te, { get: RD, set: void 0 }), Object.defineProperty(this, fn, { writable: !0, value: void 0 }), Object.defineProperty(this, be, { writable: !0, value: void 0 }), this.roomName = void 0, this.authToken = void 0, this.capabilities = void 0, Object.defineProperty(this, Jr, { writable: !0, value: void 0 }), Object.defineProperty(this, Je, { writable: !0, value: void 0 }), !n || !a || !i)
28743
28743
  throw new j("peerId, meetingId, or authToken can not be empty", "0404");
28744
- l(this, Jr)[Jr] = void 0, l(this, Je)[Je] = t, this.capabilities = s, this.roomName = a, this.authToken = i, l(this, gn)[gn] = l(this, go)[go](n), l(this, be)[be] = new PD(l(this, gn)[gn], { autoReconnect: !0, disconnectOnPingTimeout: (r = s.includes("PING")) !== null && r !== void 0 ? r : !1, queueOnDisconnect: !0, flushOnReconnect: !1, logger: this.logger }), this.handleSocketConnectionEvents();
28744
+ l(this, Jr)[Jr] = void 0, l(this, Je)[Je] = t, this.capabilities = s, this.roomName = a, this.authToken = i, l(this, fn)[fn] = l(this, go)[go](n), l(this, be)[be] = new PD(l(this, fn)[fn], { autoReconnect: !0, disconnectOnPingTimeout: (r = s.includes("PING")) !== null && r !== void 0 ? r : !1, queueOnDisconnect: !0, flushOnReconnect: !1, logger: this.logger }), this.handleSocketConnectionEvents();
28745
28745
  }
28746
28746
  return P(o, [{ key: "joinAttempted", get: function() {
28747
28747
  return l(this, Te)[Te].socketJoinAttempted;
@@ -28767,9 +28767,9 @@ var SD = Object.defineProperty, ED = Object.getOwnPropertyDescriptor, Dc = funct
28767
28767
  } }, { key: "peerId", get: function() {
28768
28768
  return l(this, Je)[Je].getValue("peerId");
28769
28769
  } }, { key: "updateURL", value: function(e) {
28770
- e !== this.peerId && (l(this, gn)[gn] = l(this, go)[go](e), this.logger.debug("SocketService:: Connection URL updated.")), l(this, be)[be].updateURL(l(this, gn)[gn]);
28770
+ e !== this.peerId && (l(this, fn)[fn] = l(this, go)[go](e), this.logger.debug("SocketService:: Connection URL updated.")), l(this, be)[be].updateURL(l(this, fn)[fn]);
28771
28771
  } }, { key: "url", get: function() {
28772
- return l(this, gn)[gn];
28772
+ return l(this, fn)[fn];
28773
28773
  } }, { key: "connect", value: function() {
28774
28774
  var t = m(/* @__PURE__ */ h().mark(function r() {
28775
28775
  return h().wrap(function(a) {
@@ -28807,7 +28807,7 @@ var SD = Object.defineProperty, ED = Object.getOwnPropertyDescriptor, Dc = funct
28807
28807
  var r = this, n = e.event, a = e.timeout, i = e.protobuf, s = e.messageId, u = e.resp, c = u != null ? u : n;
28808
28808
  return new Promise(function(d, p) {
28809
28809
  var v = function(T, S) {
28810
- l(r, be)[be].removeListener(c, T), l(r, be)[be].removeListener(Rv, S), l(r, be)[be].removeListener(Ri.errorResponse, S), l(r, be)[be].removeListener(Vn.errorResponse, S);
28810
+ l(r, be)[be].removeListener(c, T), l(r, be)[be].removeListener(Rv, S), l(r, be)[be].removeListener(Ri.errorResponse, S), l(r, be)[be].removeListener(Nn.errorResponse, S);
28811
28811
  }, f = s != null ? s : l(r, mo)[mo](), g = {}, k = l(r, Je)[Je].getValue("telemetry");
28812
28812
  k.injectContext(g);
28813
28813
  var y = function(T) {
@@ -28832,7 +28832,7 @@ var SD = Object.defineProperty, ED = Object.getOwnPropertyDescriptor, Dc = funct
28832
28832
  var S = T.id, D = T.payload;
28833
28833
  f === S && (d({ id: S, payload: D }), v(b, y));
28834
28834
  };
28835
- l(r, be)[be].on(c, b), l(r, be)[be].on(Rv, y), l(r, be)[be].on(Ri.errorResponse, y), l(r, be)[be].on(Vn.errorResponse, y), setTimeout(function() {
28835
+ l(r, be)[be].on(c, b), l(r, be)[be].on(Rv, y), l(r, be)[be].on(Ri.errorResponse, y), l(r, be)[be].on(Nn.errorResponse, y), setTimeout(function() {
28836
28836
  v(b, y), p(new Error("request timeout for callback eventId:".concat(n)));
28837
28837
  }, a), l(r, be)[be].send(n, f, i, new TextEncoder().encode(JSON.stringify(g)));
28838
28838
  });
@@ -29510,7 +29510,7 @@ var ND = Object.defineProperty, VD = Object.getOwnPropertyDescriptor, $c = funct
29510
29510
  for (; ; )
29511
29511
  switch (Re.prev = Re.next) {
29512
29512
  case 0:
29513
- return g = a.getValue("modules"), k = i.participant, y = a.getValue("defaults"), b = a.getValue("logger"), E = c.viewType, T = c.mediaConstraints.audio, a.setValue("viewType", E), a.setValue("defaults", N({ mediaConfiguration: { audio: { enableHighBitrate: (p = T.enableHighBitrate) !== null && p !== void 0 ? p : !1, enableStereo: (v = T.enableStereo) !== null && v !== void 0 ? v : !1 } } }, y)), a.setValue("maxPreferredStreams", br.isMobile() ? c.maxVideoStreams.mobile : c.maxVideoStreams.desktop), Y = new xO(a, n), q = new MD(n), a.setValue("connectedMeetingsSocketHandler", q), B = new _c(a, n), x = new wn(a, n), we = new iD(n), ie = new $g(a, n), Le = new sD(a, n), Tr = new ZO(n), X = new Ys(a, n), Re.next = 20, Li.init(a, ie, k, d, c);
29513
+ return g = a.getValue("modules"), k = i.participant, y = a.getValue("defaults"), b = a.getValue("logger"), E = c.viewType, T = c.mediaConstraints.audio, a.setValue("viewType", E), a.setValue("defaults", N({ mediaConfiguration: { audio: { enableHighBitrate: (p = T.enableHighBitrate) !== null && p !== void 0 ? p : !1, enableStereo: (v = T.enableStereo) !== null && v !== void 0 ? v : !1 } } }, y)), a.setValue("maxPreferredStreams", br.isMobile() ? c.maxVideoStreams.mobile : c.maxVideoStreams.desktop), Y = new xO(a, n), q = new MD(n), a.setValue("connectedMeetingsSocketHandler", q), B = new _c(a, n), x = new Tn(a, n), we = new iD(n), ie = new $g(a, n), Le = new sD(a, n), Tr = new ZO(n), X = new Ys(a, n), Re.next = 20, Li.init(a, ie, k, d, c);
29514
29514
  case 20:
29515
29515
  return _r = Re.sent, a.setValue("selfController", _r), Re.next = 24, gg.init(a, _r.self, ie, Y, u);
29516
29516
  case 24:
@@ -29518,7 +29518,7 @@ var ND = Object.defineProperty, VD = Object.getOwnPropertyDescriptor, $c = funct
29518
29518
  Re.next = 31;
29519
29519
  break;
29520
29520
  }
29521
- return Re.next = 30, Un.init(a, x, X, _r.self, L.participants);
29521
+ return Re.next = 30, Vn.init(a, x, X, _r.self, L.participants);
29522
29522
  case 30:
29523
29523
  D = Re.sent;
29524
29524
  case 31:
@@ -29530,7 +29530,7 @@ var ND = Object.defineProperty, VD = Object.getOwnPropertyDescriptor, $c = funct
29530
29530
  case 34:
29531
29531
  V = Re.sent;
29532
29532
  case 35:
29533
- if (g.livestream && c.viewType === Lt.Livestream && a.getValue("flagsmith").hasFeature(ge.LIVESTREAM) && ($ = new Eg(a, _r.self, Tr)), c.viewType === Lt.Chat) {
29533
+ if (g.livestream && c.viewType === Lt.Livestream && a.getValue("flagsmith").hasFeature(me.LIVESTREAM) && ($ = new Eg(a, _r.self, Tr)), c.viewType === Lt.Chat) {
29534
29534
  Re.next = 61;
29535
29535
  break;
29536
29536
  }
@@ -29656,9 +29656,9 @@ function jD(o, t) {
29656
29656
  throw new j("Invalid auth token", "0004");
29657
29657
  }
29658
29658
  }
29659
- var _n = /* @__PURE__ */ C("audioEl"), Aa = /* @__PURE__ */ C("stream"), Ia = /* @__PURE__ */ C("tracks"), Gu = /* @__PURE__ */ C("onError"), fd = /* @__PURE__ */ C("runErrorCallbacks"), FD = /* @__PURE__ */ function() {
29659
+ var Mn = /* @__PURE__ */ C("audioEl"), Aa = /* @__PURE__ */ C("stream"), Ia = /* @__PURE__ */ C("tracks"), Gu = /* @__PURE__ */ C("onError"), fd = /* @__PURE__ */ C("runErrorCallbacks"), FD = /* @__PURE__ */ function() {
29660
29660
  function o() {
29661
- w(this, o), Object.defineProperty(this, fd, { value: HD }), Object.defineProperty(this, _n, { writable: !0, value: new Audio() }), Object.defineProperty(this, Aa, { writable: !0, value: new MediaStream() }), Object.defineProperty(this, Ia, { writable: !0, value: /* @__PURE__ */ new Map() }), Object.defineProperty(this, Gu, { writable: !0, value: void 0 }), l(this, _n)[_n].srcObject = l(this, Aa)[Aa], l(this, _n)[_n].autoplay = !0;
29661
+ w(this, o), Object.defineProperty(this, fd, { value: HD }), Object.defineProperty(this, Mn, { writable: !0, value: new Audio() }), Object.defineProperty(this, Aa, { writable: !0, value: new MediaStream() }), Object.defineProperty(this, Ia, { writable: !0, value: /* @__PURE__ */ new Map() }), Object.defineProperty(this, Gu, { writable: !0, value: void 0 }), l(this, Mn)[Mn].srcObject = l(this, Aa)[Aa], l(this, Mn)[Mn].autoplay = !0;
29662
29662
  }
29663
29663
  return P(o, [{ key: "playTracks", value: function() {
29664
29664
  var t = m(/* @__PURE__ */ h().mark(function r(n) {
@@ -29681,7 +29681,7 @@ var _n = /* @__PURE__ */ C("audioEl"), Aa = /* @__PURE__ */ C("stream"), Ia = /*
29681
29681
  }
29682
29682
  return e;
29683
29683
  }() }, { key: "setSpeakerDevice", value: function(e) {
29684
- typeof HTMLAudioElement.prototype.setSinkId == "function" && l(this, _n)[_n].setSinkId(e);
29684
+ typeof HTMLAudioElement.prototype.setSinkId == "function" && l(this, Mn)[Mn].setSinkId(e);
29685
29685
  } }, { key: "removeTrack", value: function(e) {
29686
29686
  var r = l(this, Ia)[Ia].get(e);
29687
29687
  r && (l(this, Aa)[Aa].removeTrack(r), l(this, Ia)[Ia].delete(e));
@@ -29692,7 +29692,7 @@ var _n = /* @__PURE__ */ C("audioEl"), Aa = /* @__PURE__ */ C("stream"), Ia = /*
29692
29692
  for (; ; )
29693
29693
  switch (i.prev = i.next) {
29694
29694
  case 0:
29695
- return l(this, _n)[_n].srcObject = l(this, Aa)[Aa], i.abrupt("return", l(this, _n)[_n].play().catch(function(s) {
29695
+ return l(this, Mn)[Mn].srcObject = l(this, Aa)[Aa], i.abrupt("return", l(this, Mn)[Mn].play().catch(function(s) {
29696
29696
  l(n, fd)[fd](s);
29697
29697
  }));
29698
29698
  case 2:
@@ -29973,7 +29973,7 @@ var Ma = /* @__PURE__ */ C("trackMap"), BD = /* @__PURE__ */ function(o) {
29973
29973
  }() }, { key: "setupContext", value: function(e, r, n, a) {
29974
29974
  var i, s, u = Ba.createContext(e, r), c = N(N({}, TP), r == null ? void 0 : r.modules), d = r.defaults || { audio: !0, video: !0 };
29975
29975
  return u.setValue("options", r), u.setValue("peerId", e), u.setValue("modules", c), u.setValue("sdkName", "web-core"), u.setValue("meetingId", n), u.setValue("apiBase", a.apiBase), u.setValue("baseURI", a.baseURI), u.setValue("userId", a.participantId), u.setValue("organizationId", a.orgId), u.setValue("authToken", r.authToken), u.setValue("overrides", (i = r.overrides) !== null && i !== void 0 ? i : {}), u.setValue("env", wP({ baseURI: a.baseURI })), u.setValue("defaults", d), u.setValue("onError", r.onError || function() {
29976
- }), u.setValue("cachedUserDetails", jn(r.cachedUserDetails)), u.setValue("sdkVersion", "VERSION_PLACEHOLDER"), (s = r.modules) !== null && s !== void 0 && s.experimentalAudioPlayback && u.setValue("audioPlayback", new BD()), u;
29976
+ }), u.setValue("cachedUserDetails", Un(r.cachedUserDetails)), u.setValue("sdkVersion", "VERSION_PLACEHOLDER"), (s = r.modules) !== null && s !== void 0 && s.experimentalAudioPlayback && u.setValue("audioPlayback", new BD()), u;
29977
29977
  } }]);
29978
29978
  }());
29979
29979
  Nc([ft("0002"), za.executeWithLock({ methodName: "meeting.join", lockName: "Client.join", timeout: 3e3 })], Oi.prototype, "join", 1);