@cloudflare/realtimekit 0.5.0-staging.94 → 0.5.0-staging.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -4530,10 +4530,10 @@ var Et = {}, cT = {
4530
4530
  set exports(s) {
4531
4531
  Et = s;
4532
4532
  }
4533
- }, In = typeof Reflect == "object" ? Reflect : null, Oh = In && typeof In.apply == "function" ? In.apply : function(e, t, r) {
4533
+ }, Dn = typeof Reflect == "object" ? Reflect : null, Oh = Dn && typeof Dn.apply == "function" ? Dn.apply : function(e, t, r) {
4534
4534
  return Function.prototype.apply.call(e, t, r);
4535
4535
  }, ad;
4536
- In && typeof In.ownKeys == "function" ? ad = In.ownKeys : Object.getOwnPropertySymbols ? ad = function(e) {
4536
+ Dn && typeof Dn.ownKeys == "function" ? ad = Dn.ownKeys : Object.getOwnPropertySymbols ? ad = function(e) {
4537
4537
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
4538
4538
  } : ad = function(e) {
4539
4539
  return Object.getOwnPropertyNames(e);
@@ -4882,7 +4882,7 @@ var xh;
4882
4882
  (function(s) {
4883
4883
  s[s.INIT = 0] = "INIT", s[s.ACCEPTED = 1] = "ACCEPTED", s[s.DENIED = 2] = "DENIED", s[s.SYS_DENIED = 3] = "SYS_DENIED", s[s.FAILED = 4] = "FAILED", s[s.NOTFOUND = 5] = "NOTFOUND", s[s.NOT_APPLICABLE = 6] = "NOT_APPLICABLE";
4884
4884
  })(xh || (xh = {}));
4885
- function ui(s) {
4885
+ function pi(s) {
4886
4886
  return s ? s.split(".").slice(0, 2).concat(["0", "0"]).join(".") : "";
4887
4887
  }
4888
4888
  function Pd({ packetsLost: s, packetsSent: e }) {
@@ -5265,7 +5265,7 @@ class IT {
5265
5265
  try {
5266
5266
  const d = `https://${t.location}`, g = yield (yield fetch(d)).json();
5267
5267
  if (((n = g.loc) == null ? void 0 : n.length) > 5)
5268
- return this.ipInformation = g, (a = this.ipInformation) != null && a.ip && (this.ipInformation.ip = ui(this.ipInformation.ip)), g;
5268
+ return this.ipInformation = g, (a = this.ipInformation) != null && a.ip && (this.ipInformation.ip = pi(this.ipInformation.ip)), g;
5269
5269
  throw Error("Insufficient data");
5270
5270
  } catch (d) {
5271
5271
  r.error("callstats::ipDetails:: failed to fetch ip using location service", { error: d });
@@ -5274,7 +5274,7 @@ class IT {
5274
5274
  const d = yield fetch(`https://${t.locationLegacy}/?token=3c493932b0624c&peerId=${e}`, {
5275
5275
  method: "POST"
5276
5276
  });
5277
- this.ipInformation = yield d.json(), (c = this.ipInformation) != null && c.ip && (this.ipInformation.ip = ui(this.ipInformation.ip));
5277
+ this.ipInformation = yield d.json(), (c = this.ipInformation) != null && c.ip && (this.ipInformation.ip = pi(this.ipInformation.ip));
5278
5278
  } catch (d) {
5279
5279
  r.error("callstats::ipDetails:: failed to fetch ip using legacy location service", { error: d });
5280
5280
  }
@@ -5798,7 +5798,7 @@ class fg extends Et {
5798
5798
  }
5799
5799
  }), y.forEach((D) => {
5800
5800
  const E = g.find(($) => $.id === D.localCandidateId ? (D.localCandidateId = $.id, $) : null), C = m.find(($) => $.id === D.remoteCandidateId ? (D.remoteCandidateId = $.id, $) : null);
5801
- E && (D.localCandidateType = E.type, D.localCandidateAddress = ui(E.address), D.localCandidatePort = E.port, D.localCandidateProtocol = E.protocol, D.localCandidateUrl = E.url, D.localCandidateNetworkType = E.networkType, D.localCandidateRelatedAddress = ui(E.relatedAddress), D.localCandidateRelatedPort = E.relatedPort), C && (D.remoteCandidateType = C.type, D.remoteCandidateAddress = ui(C.address), D.remoteCandidatePort = C.port, D.remoteCandidateProtocol = C.protocol, D.remoteCandidateUrl = C.url);
5801
+ E && (D.localCandidateType = E.type, D.localCandidateAddress = pi(E.address), D.localCandidatePort = E.port, D.localCandidateProtocol = E.protocol, D.localCandidateUrl = E.url, D.localCandidateNetworkType = E.networkType, D.localCandidateRelatedAddress = pi(E.relatedAddress), D.localCandidateRelatedPort = E.relatedPort), C && (D.remoteCandidateType = C.type, D.remoteCandidateAddress = pi(C.address), D.remoteCandidatePort = C.port, D.remoteCandidateProtocol = C.protocol, D.remoteCandidateUrl = C.url);
5802
5802
  }), d.candidatePair && (d.transport ? (d.transport.totalRoundTripTime = d.candidatePair.totalRoundTripTime, d.transport.availableOutgoingBitrate = d.candidatePair.availableOutgoingBitrate, d.transport.availableIncomingBitrate = d.candidatePair.availableIncomingBitrate, d.transport.roundTripTime = d.candidatePair.currentRoundTripTime) : d.transport = {
5803
5803
  bytesReceived: d.candidatePair.bytesReceived,
5804
5804
  bytesSent: d.candidatePair.bytesSent,
@@ -6431,7 +6431,7 @@ class gg extends fg {
6431
6431
  }
6432
6432
  }), y.forEach((D) => {
6433
6433
  const E = g.find(($) => $.id === D.localCandidateId ? (D.localCandidateId = $.id, $) : null), C = m.find(($) => $.id === D.remoteCandidateId ? (D.remoteCandidateId = $.id, $) : null);
6434
- E && (D.localCandidateType = E.type, D.localCandidateAddress = ui(E.address), D.localCandidatePort = E.port, D.localCandidateProtocol = E.protocol, D.localCandidateUrl = E.url, D.localCandidateNetworkType = E.networkType, D.localCandidateRelatedAddress = ui(E.relatedAddress), D.localCandidateRelatedPort = E.relatedPort), C && (D.remoteCandidateType = C.type, D.remoteCandidateAddress = ui(C.address), D.remoteCandidatePort = C.port, D.remoteCandidateProtocol = C.protocol, D.remoteCandidateUrl = C.url);
6434
+ E && (D.localCandidateType = E.type, D.localCandidateAddress = pi(E.address), D.localCandidatePort = E.port, D.localCandidateProtocol = E.protocol, D.localCandidateUrl = E.url, D.localCandidateNetworkType = E.networkType, D.localCandidateRelatedAddress = pi(E.relatedAddress), D.localCandidateRelatedPort = E.relatedPort), C && (D.remoteCandidateType = C.type, D.remoteCandidateAddress = pi(C.address), D.remoteCandidatePort = C.port, D.remoteCandidateProtocol = C.protocol, D.remoteCandidateUrl = C.url);
6435
6435
  }), d.candidatePair && (d.transport ? (d.transport.bytesReceived = d.candidatePair.bytesReceived, d.transport.bytesSent = d.candidatePair.bytesSent, d.transport.totalRoundTripTime = d.candidatePair.totalRoundTripTime, d.transport.availableOutgoingBitrate = d.candidatePair.availableOutgoingBitrate, d.transport.availableIncomingBitrate = d.candidatePair.availableIncomingBitrate, d.transport.roundTripTime = d.candidatePair.currentRoundTripTime) : d.transport = {
6436
6436
  bytesReceived: d.candidatePair.bytesReceived,
6437
6437
  bytesSent: d.candidatePair.bytesSent,
@@ -7548,20 +7548,20 @@ function $T(s) {
7548
7548
  }
7549
7549
  }
7550
7550
  }
7551
- var Er = [], Dn = false, Ai, od = -1;
7551
+ var Er = [], Mn = false, Ii, od = -1;
7552
7552
  function FT() {
7553
- !Dn || !Ai || (Dn = false, Ai.length ? Er = Ai.concat(Er) : od = -1, Er.length && Tg());
7553
+ !Mn || !Ii || (Mn = false, Ii.length ? Er = Ii.concat(Er) : od = -1, Er.length && Tg());
7554
7554
  }
7555
7555
  function Tg() {
7556
- if (!Dn) {
7556
+ if (!Mn) {
7557
7557
  var s = yg(FT);
7558
- Dn = true;
7558
+ Mn = true;
7559
7559
  for (var e = Er.length; e; ) {
7560
- for (Ai = Er, Er = []; ++od < e; )
7561
- Ai && Ai[od].run();
7560
+ for (Ii = Er, Er = []; ++od < e; )
7561
+ Ii && Ii[od].run();
7562
7562
  od = -1, e = Er.length;
7563
7563
  }
7564
- Ai = null, Dn = false, $T(s);
7564
+ Ii = null, Mn = false, $T(s);
7565
7565
  }
7566
7566
  }
7567
7567
  Ye.nextTick = function(s) {
@@ -7569,7 +7569,7 @@ Ye.nextTick = function(s) {
7569
7569
  if (arguments.length > 1)
7570
7570
  for (var t = 1; t < arguments.length; t++)
7571
7571
  e[t - 1] = arguments[t];
7572
- Er.push(new Sg(s, e)), Er.length === 1 && !Dn && yg(Tg);
7572
+ Er.push(new Sg(s, e)), Er.length === 1 && !Mn && yg(Tg);
7573
7573
  };
7574
7574
  function Sg(s, e) {
7575
7575
  this.fun = s, this.array = e;
@@ -7631,7 +7631,7 @@ var Yu = {}, HT = {
7631
7631
  i[n] = arguments[n];
7632
7632
  return e.apply(t, i);
7633
7633
  };
7634
- }, jT = Eg, gi = Object.prototype.toString;
7634
+ }, jT = Eg, vi = Object.prototype.toString;
7635
7635
  function jp(s) {
7636
7636
  return Array.isArray(s);
7637
7637
  }
@@ -7642,10 +7642,10 @@ function GT(s) {
7642
7642
  return s !== null && !Qu(s) && s.constructor !== null && !Qu(s.constructor) && typeof s.constructor.isBuffer == "function" && s.constructor.isBuffer(s);
7643
7643
  }
7644
7644
  function _g(s) {
7645
- return gi.call(s) === "[object ArrayBuffer]";
7645
+ return vi.call(s) === "[object ArrayBuffer]";
7646
7646
  }
7647
7647
  function WT(s) {
7648
- return gi.call(s) === "[object FormData]";
7648
+ return vi.call(s) === "[object FormData]";
7649
7649
  }
7650
7650
  function JT(s) {
7651
7651
  var e;
@@ -7661,28 +7661,28 @@ function Pg(s) {
7661
7661
  return s !== null && typeof s == "object";
7662
7662
  }
7663
7663
  function cd(s) {
7664
- if (gi.call(s) !== "[object Object]")
7664
+ if (vi.call(s) !== "[object Object]")
7665
7665
  return false;
7666
7666
  var e = Object.getPrototypeOf(s);
7667
7667
  return e === null || e === Object.prototype;
7668
7668
  }
7669
7669
  function YT(s) {
7670
- return gi.call(s) === "[object Date]";
7670
+ return vi.call(s) === "[object Date]";
7671
7671
  }
7672
7672
  function QT(s) {
7673
- return gi.call(s) === "[object File]";
7673
+ return vi.call(s) === "[object File]";
7674
7674
  }
7675
7675
  function XT(s) {
7676
- return gi.call(s) === "[object Blob]";
7676
+ return vi.call(s) === "[object Blob]";
7677
7677
  }
7678
7678
  function Cg(s) {
7679
- return gi.call(s) === "[object Function]";
7679
+ return vi.call(s) === "[object Function]";
7680
7680
  }
7681
7681
  function ZT(s) {
7682
7682
  return Pg(s) && Cg(s.pipe);
7683
7683
  }
7684
7684
  function eS(s) {
7685
- return gi.call(s) === "[object URLSearchParams]";
7685
+ return vi.call(s) === "[object URLSearchParams]";
7686
7686
  }
7687
7687
  function tS(s) {
7688
7688
  return s.trim ? s.trim() : s.replace(/^\s+|\s+$/g, "");
@@ -7739,7 +7739,7 @@ var Ut = {
7739
7739
  extend: rS,
7740
7740
  trim: tS,
7741
7741
  stripBOM: iS
7742
- }, yn = Ut;
7742
+ }, Tn = Ut;
7743
7743
  function Fh(s) {
7744
7744
  return encodeURIComponent(s).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
7745
7745
  }
@@ -7749,13 +7749,13 @@ var Rg = function(e, t, r) {
7749
7749
  var i;
7750
7750
  if (r)
7751
7751
  i = r(t);
7752
- else if (yn.isURLSearchParams(t))
7752
+ else if (Tn.isURLSearchParams(t))
7753
7753
  i = t.toString();
7754
7754
  else {
7755
7755
  var n = [];
7756
- yn.forEach(t, function(d, l) {
7757
- d === null || typeof d == "undefined" || (yn.isArray(d) ? l = l + "[]" : d = [d], yn.forEach(d, function(m) {
7758
- yn.isDate(m) ? m = m.toISOString() : yn.isObject(m) && (m = JSON.stringify(m)), n.push(Fh(l) + "=" + Fh(m));
7756
+ Tn.forEach(t, function(d, l) {
7757
+ d === null || typeof d == "undefined" || (Tn.isArray(d) ? l = l + "[]" : d = [d], Tn.forEach(d, function(m) {
7758
+ Tn.isDate(m) ? m = m.toISOString() : Tn.isObject(m) && (m = JSON.stringify(m)), n.push(Fh(l) + "=" + Fh(m));
7759
7759
  }));
7760
7760
  }), i = n.join("&");
7761
7761
  }
@@ -8250,7 +8250,7 @@ function CS(s, e, t) {
8250
8250
  var RS = {
8251
8251
  assertOptions: CS,
8252
8252
  validators: Wp
8253
- }, Dg = Ut, wS = Rg, rm = aS, im = _S, jl = Ag, Mg = RS, Tn = Mg.validators;
8253
+ }, Dg = Ut, wS = Rg, rm = aS, im = _S, jl = Ag, Mg = RS, Sn = Mg.validators;
8254
8254
  function xc(s) {
8255
8255
  this.defaults = s, this.interceptors = {
8256
8256
  request: new rm(),
@@ -8263,9 +8263,9 @@ xc.prototype.request = function(e, t) {
8263
8263
  t = jl(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
8264
8264
  var r = t.transitional;
8265
8265
  r !== void 0 && Mg.assertOptions(r, {
8266
- silentJSONParsing: Tn.transitional(Tn.boolean),
8267
- forcedJSONParsing: Tn.transitional(Tn.boolean),
8268
- clarifyTimeoutError: Tn.transitional(Tn.boolean)
8266
+ silentJSONParsing: Sn.transitional(Sn.boolean),
8267
+ forcedJSONParsing: Sn.transitional(Sn.boolean),
8268
+ clarifyTimeoutError: Sn.transitional(Sn.boolean)
8269
8269
  }, false);
8270
8270
  var i = [], n = true;
8271
8271
  this.interceptors.request.forEach(function(_) {
@@ -8483,8 +8483,8 @@ const Ng = WS;
8483
8483
  var JS = typeof self == "object" && self && self.Object === Object && self, KS = Ng || JS || Function("return this")();
8484
8484
  const Os = KS;
8485
8485
  var zS = Os.Symbol;
8486
- const hi = zS;
8487
- var Lg = Object.prototype, YS = Lg.hasOwnProperty, QS = Lg.toString, vo = hi ? hi.toStringTag : void 0;
8486
+ const mi = zS;
8487
+ var Lg = Object.prototype, YS = Lg.hasOwnProperty, QS = Lg.toString, vo = mi ? mi.toStringTag : void 0;
8488
8488
  function XS(s) {
8489
8489
  var e = YS.call(s, vo), t = s[vo];
8490
8490
  try {
@@ -8499,8 +8499,8 @@ var ZS = Object.prototype, eE = ZS.toString;
8499
8499
  function tE(s) {
8500
8500
  return eE.call(s);
8501
8501
  }
8502
- var sE = "[object Null]", rE = "[object Undefined]", dm = hi ? hi.toStringTag : void 0;
8503
- function pn(s) {
8502
+ var sE = "[object Null]", rE = "[object Undefined]", dm = mi ? mi.toStringTag : void 0;
8503
+ function hn(s) {
8504
8504
  return s == null ? s === void 0 ? rE : sE : dm && dm in Object(s) ? XS(s) : tE(s);
8505
8505
  }
8506
8506
  function Ms(s) {
@@ -8511,7 +8511,7 @@ var iE = "[object AsyncFunction]", nE = "[object Function]", aE = "[object Gener
8511
8511
  function Jp(s) {
8512
8512
  if (!Ms(s))
8513
8513
  return false;
8514
- var e = pn(s);
8514
+ var e = hn(s);
8515
8515
  return e == nE || e == aE || e == iE || e == oE;
8516
8516
  }
8517
8517
  var cE = Os["__core-js_shared__"];
@@ -8524,7 +8524,7 @@ function dE(s) {
8524
8524
  return !!lm && lm in s;
8525
8525
  }
8526
8526
  var lE = Function.prototype, uE = lE.toString;
8527
- function hn(s) {
8527
+ function mn(s) {
8528
8528
  if (s != null) {
8529
8529
  try {
8530
8530
  return uE.call(s);
@@ -8544,18 +8544,18 @@ function TE(s) {
8544
8544
  if (!Ms(s) || dE(s))
8545
8545
  return false;
8546
8546
  var e = Jp(s) ? yE : hE;
8547
- return e.test(hn(s));
8547
+ return e.test(mn(s));
8548
8548
  }
8549
8549
  function SE(s, e) {
8550
8550
  return s == null ? void 0 : s[e];
8551
8551
  }
8552
- function mn(s, e) {
8552
+ function fn(s, e) {
8553
8553
  var t = SE(s, e);
8554
8554
  return TE(t) ? t : void 0;
8555
8555
  }
8556
- var EE = mn(Os, "Map");
8556
+ var EE = fn(Os, "Map");
8557
8557
  const $o = EE;
8558
- var _E = mn(Object, "create");
8558
+ var _E = fn(Object, "create");
8559
8559
  const Fo = _E;
8560
8560
  function PE() {
8561
8561
  this.__data__ = Fo ? Fo(null) : {}, this.size = 0;
@@ -8583,23 +8583,23 @@ function OE(s, e) {
8583
8583
  var t = this.__data__;
8584
8584
  return this.size += this.has(s) ? 0 : 1, t[s] = Fo && e === void 0 ? ME : e, this;
8585
8585
  }
8586
- function ln(s) {
8586
+ function un(s) {
8587
8587
  var e = -1, t = s == null ? 0 : s.length;
8588
8588
  for (this.clear(); ++e < t; ) {
8589
8589
  var r = s[e];
8590
8590
  this.set(r[0], r[1]);
8591
8591
  }
8592
8592
  }
8593
- ln.prototype.clear = PE;
8594
- ln.prototype.delete = CE;
8595
- ln.prototype.get = kE;
8596
- ln.prototype.has = DE;
8597
- ln.prototype.set = OE;
8593
+ un.prototype.clear = PE;
8594
+ un.prototype.delete = CE;
8595
+ un.prototype.get = kE;
8596
+ un.prototype.has = DE;
8597
+ un.prototype.set = OE;
8598
8598
  function NE() {
8599
8599
  this.size = 0, this.__data__ = {
8600
- hash: new ln(),
8600
+ hash: new un(),
8601
8601
  map: new ($o || wr)(),
8602
- string: new ln()
8602
+ string: new un()
8603
8603
  };
8604
8604
  }
8605
8605
  function LE(s) {
@@ -8624,18 +8624,18 @@ function $E(s, e) {
8624
8624
  var t = Wl(this, s), r = t.size;
8625
8625
  return t.set(s, e), this.size += t.size == r ? 0 : 1, this;
8626
8626
  }
8627
- function fn(s) {
8627
+ function gn(s) {
8628
8628
  var e = -1, t = s == null ? 0 : s.length;
8629
8629
  for (this.clear(); ++e < t; ) {
8630
8630
  var r = s[e];
8631
8631
  this.set(r[0], r[1]);
8632
8632
  }
8633
8633
  }
8634
- fn.prototype.clear = NE;
8635
- fn.prototype.delete = xE;
8636
- fn.prototype.get = VE;
8637
- fn.prototype.has = UE;
8638
- fn.prototype.set = $E;
8634
+ gn.prototype.clear = NE;
8635
+ gn.prototype.delete = xE;
8636
+ gn.prototype.get = VE;
8637
+ gn.prototype.has = UE;
8638
+ gn.prototype.set = $E;
8639
8639
  var FE = 200;
8640
8640
  function BE(s, e) {
8641
8641
  var t = this.__data__;
@@ -8643,7 +8643,7 @@ function BE(s, e) {
8643
8643
  var r = t.__data__;
8644
8644
  if (!$o || r.length < FE - 1)
8645
8645
  return r.push([s, e]), this.size = ++t.size, this;
8646
- t = this.__data__ = new fn(r);
8646
+ t = this.__data__ = new gn(r);
8647
8647
  }
8648
8648
  return t.set(s, e), this.size = t.size, this;
8649
8649
  }
@@ -8663,7 +8663,7 @@ function HE(s, e) {
8663
8663
  }
8664
8664
  var qE = function() {
8665
8665
  try {
8666
- var s = mn(Object, "defineProperty");
8666
+ var s = fn(Object, "defineProperty");
8667
8667
  return s({}, "", {}), s;
8668
8668
  } catch (e) {
8669
8669
  }
@@ -8701,7 +8701,7 @@ function zs(s) {
8701
8701
  }
8702
8702
  var JE = "[object Arguments]";
8703
8703
  function um(s) {
8704
- return zs(s) && pn(s) == JE;
8704
+ return zs(s) && hn(s) == JE;
8705
8705
  }
8706
8706
  var Vg = Object.prototype, KE = Vg.hasOwnProperty, zE = Vg.propertyIsEnumerable, YE = um(function() {
8707
8707
  return arguments;
@@ -8710,7 +8710,7 @@ var Vg = Object.prototype, KE = Vg.hasOwnProperty, zE = Vg.propertyIsEnumerable,
8710
8710
  };
8711
8711
  const kd = YE;
8712
8712
  var QE = Array.isArray;
8713
- const mi = QE;
8713
+ const fi = QE;
8714
8714
  function XE() {
8715
8715
  return false;
8716
8716
  }
@@ -8729,7 +8729,7 @@ var n_ = "[object Arguments]", a_ = "[object Array]", o_ = "[object Boolean]", c
8729
8729
  Pe[S_] = Pe[E_] = Pe[__] = Pe[P_] = Pe[C_] = Pe[R_] = Pe[w_] = Pe[b_] = Pe[k_] = true;
8730
8730
  Pe[n_] = Pe[a_] = Pe[y_] = Pe[o_] = Pe[T_] = Pe[c_] = Pe[d_] = Pe[l_] = Pe[u_] = Pe[p_] = Pe[h_] = Pe[m_] = Pe[f_] = Pe[g_] = Pe[v_] = false;
8731
8731
  function A_(s) {
8732
- return zs(s) && Fg(s.length) && !!Pe[pn(s)];
8732
+ return zs(s) && Fg(s.length) && !!Pe[hn(s)];
8733
8733
  }
8734
8734
  function zp(s) {
8735
8735
  return function(e) {
@@ -8748,7 +8748,7 @@ var mm = Ba && Ba.isTypedArray, M_ = mm ? zp(mm) : A_;
8748
8748
  const Jl = M_;
8749
8749
  var O_ = Object.prototype, N_ = O_.hasOwnProperty;
8750
8750
  function Hg(s, e) {
8751
- var t = mi(s), r = !t && kd(s), i = !t && !r && Fa(s), n = !t && !r && !i && Jl(s), a = t || r || i || n, c = a ? WE(s.length, String) : [], d = c.length;
8751
+ var t = fi(s), r = !t && kd(s), i = !t && !r && Fa(s), n = !t && !r && !i && Jl(s), a = t || r || i || n, c = a ? WE(s.length, String) : [], d = c.length;
8752
8752
  for (var l in s)
8753
8753
  (e || N_.call(s, l)) && !(a && (l == "length" || i && (l == "offset" || l == "parent") || n && (l == "buffer" || l == "byteLength" || l == "byteOffset") || $g(l, d))) && c.push(l);
8754
8754
  return c;
@@ -8855,7 +8855,7 @@ function tP(s, e) {
8855
8855
  }
8856
8856
  function Qg(s, e, t) {
8857
8857
  var r = e(s);
8858
- return mi(s) ? r : zg(r, t(s));
8858
+ return fi(s) ? r : zg(r, t(s));
8859
8859
  }
8860
8860
  function Zu(s) {
8861
8861
  return Qg(s, Yp, Qp);
@@ -8863,17 +8863,17 @@ function Zu(s) {
8863
8863
  function sP(s) {
8864
8864
  return Qg(s, Fc, Yg);
8865
8865
  }
8866
- var rP = mn(Os, "DataView");
8866
+ var rP = fn(Os, "DataView");
8867
8867
  const ep = rP;
8868
- var iP = mn(Os, "Promise");
8868
+ var iP = fn(Os, "Promise");
8869
8869
  const tp = iP;
8870
- var nP = mn(Os, "Set");
8870
+ var nP = fn(Os, "Set");
8871
8871
  const sp = nP;
8872
- var aP = mn(Os, "WeakMap");
8872
+ var aP = fn(Os, "WeakMap");
8873
8873
  const rp = aP;
8874
- var Tm = "[object Map]", oP = "[object Object]", Sm = "[object Promise]", Em = "[object Set]", _m = "[object WeakMap]", Pm = "[object DataView]", cP = hn(ep), dP = hn($o), lP = hn(tp), uP = hn(sp), pP = hn(rp), Ei = pn;
8875
- (ep && Ei(new ep(new ArrayBuffer(1))) != Pm || $o && Ei(new $o()) != Tm || tp && Ei(tp.resolve()) != Sm || sp && Ei(new sp()) != Em || rp && Ei(new rp()) != _m) && (Ei = function(s) {
8876
- var e = pn(s), t = e == oP ? s.constructor : void 0, r = t ? hn(t) : "";
8874
+ var Tm = "[object Map]", oP = "[object Object]", Sm = "[object Promise]", Em = "[object Set]", _m = "[object WeakMap]", Pm = "[object DataView]", cP = mn(ep), dP = mn($o), lP = mn(tp), uP = mn(sp), pP = mn(rp), _i = hn;
8875
+ (ep && _i(new ep(new ArrayBuffer(1))) != Pm || $o && _i(new $o()) != Tm || tp && _i(tp.resolve()) != Sm || sp && _i(new sp()) != Em || rp && _i(new rp()) != _m) && (_i = function(s) {
8876
+ var e = hn(s), t = e == oP ? s.constructor : void 0, r = t ? mn(t) : "";
8877
8877
  if (r)
8878
8878
  switch (r) {
8879
8879
  case cP:
@@ -8889,7 +8889,7 @@ var Tm = "[object Map]", oP = "[object Object]", Sm = "[object Promise]", Em = "
8889
8889
  }
8890
8890
  return e;
8891
8891
  });
8892
- const Ha = Ei;
8892
+ const Ha = _i;
8893
8893
  var hP = Object.prototype, mP = hP.hasOwnProperty;
8894
8894
  function fP(s) {
8895
8895
  var e = s.length, t = new s.constructor(e);
@@ -8910,7 +8910,7 @@ function TP(s) {
8910
8910
  var e = new s.constructor(s.source, yP.exec(s));
8911
8911
  return e.lastIndex = s.lastIndex, e;
8912
8912
  }
8913
- var Cm = hi ? hi.prototype : void 0, Rm = Cm ? Cm.valueOf : void 0;
8913
+ var Cm = mi ? mi.prototype : void 0, Rm = Cm ? Cm.valueOf : void 0;
8914
8914
  function SP(s) {
8915
8915
  return Rm ? Object(Rm.call(s)) : {};
8916
8916
  }
@@ -8990,7 +8990,7 @@ function ld(s, e, t, r, i, n) {
8990
8990
  return a;
8991
8991
  if (!Ms(s))
8992
8992
  return s;
8993
- var g = mi(s);
8993
+ var g = fi(s);
8994
8994
  if (g) {
8995
8995
  if (a = fP(s), !c)
8996
8996
  return Jg(s, a);
@@ -9027,7 +9027,7 @@ function eh(s) {
9027
9027
  }
9028
9028
  var RC = "[object Symbol]";
9029
9029
  function wC(s) {
9030
- return typeof s == "symbol" || zs(s) && pn(s) == RC;
9030
+ return typeof s == "symbol" || zs(s) && hn(s) == RC;
9031
9031
  }
9032
9032
  var bC = Object.defineProperty, kC = (s, e) => {
9033
9033
  for (var t in e)
@@ -9706,7 +9706,7 @@ function pR(s) {
9706
9706
  }
9707
9707
  var hR = "[object Object]", mR = Function.prototype, fR = Object.prototype, cv = mR.toString, gR = fR.hasOwnProperty, vR = cv.call(Object);
9708
9708
  function yR(s) {
9709
- if (!zs(s) || pn(s) != hR)
9709
+ if (!zs(s) || hn(s) != hR)
9710
9710
  return false;
9711
9711
  var e = Xp(s);
9712
9712
  if (e === null)
@@ -9723,7 +9723,7 @@ function ER(s) {
9723
9723
  }
9724
9724
  function Id(s) {
9725
9725
  var e = -1, t = s == null ? 0 : s.length;
9726
- for (this.__data__ = new fn(); ++e < t; )
9726
+ for (this.__data__ = new gn(); ++e < t; )
9727
9727
  this.add(s[e]);
9728
9728
  }
9729
9729
  Id.prototype.add = Id.prototype.push = SR;
@@ -9783,7 +9783,7 @@ function bR(s) {
9783
9783
  t[++e] = r;
9784
9784
  }), t;
9785
9785
  }
9786
- var kR = 1, AR = 2, IR = "[object Boolean]", DR = "[object Date]", MR = "[object Error]", OR = "[object Map]", NR = "[object Number]", LR = "[object RegExp]", xR = "[object Set]", VR = "[object String]", UR = "[object Symbol]", $R = "[object ArrayBuffer]", FR = "[object DataView]", Om = hi ? hi.prototype : void 0, Lu = Om ? Om.valueOf : void 0;
9786
+ var kR = 1, AR = 2, IR = "[object Boolean]", DR = "[object Date]", MR = "[object Error]", OR = "[object Map]", NR = "[object Number]", LR = "[object RegExp]", xR = "[object Set]", VR = "[object String]", UR = "[object Symbol]", $R = "[object ArrayBuffer]", FR = "[object DataView]", Om = mi ? mi.prototype : void 0, Lu = Om ? Om.valueOf : void 0;
9787
9787
  function BR(s, e, t, r, i, n, a) {
9788
9788
  switch (t) {
9789
9789
  case FR:
@@ -9853,7 +9853,7 @@ function GR(s, e, t, r, i, n) {
9853
9853
  }
9854
9854
  var WR = 1, Nm = "[object Arguments]", Lm = "[object Array]", Yc = "[object Object]", JR = Object.prototype, xm = JR.hasOwnProperty;
9855
9855
  function KR(s, e, t, r, i, n) {
9856
- var a = mi(s), c = mi(e), d = a ? Lm : Ha(s), l = c ? Lm : Ha(e);
9856
+ var a = fi(s), c = fi(e), d = a ? Lm : Ha(s), l = c ? Lm : Ha(e);
9857
9857
  d = d == Nm ? Yc : d, l = l == Nm ? Yc : l;
9858
9858
  var g = d == Yc, m = l == Yc, y = d == l;
9859
9859
  if (y && Fa(s)) {
@@ -9960,8 +9960,8 @@ function iw(s, e, t, r, i, n, a) {
9960
9960
  }
9961
9961
  var g = n ? n(c, d, t + "", s, e, a) : void 0, m = g === void 0;
9962
9962
  if (m) {
9963
- var y = mi(d), _ = !y && Fa(d), P = !y && !_ && Jl(d);
9964
- g = d, y || _ || P ? mi(c) ? g = c : sw(c) ? g = Jg(c) : _ ? (m = false, g = Wg(d, true)) : P ? (m = false, g = Xg(d, true)) : g = [] : yR(d) || kd(d) ? (g = c, kd(c) ? g = rw(c) : (!Ms(c) || Jp(c)) && (g = Zg(d))) : m = false;
9963
+ var y = fi(d), _ = !y && Fa(d), P = !y && !_ && Jl(d);
9964
+ g = d, y || _ || P ? fi(c) ? g = c : sw(c) ? g = Jg(c) : _ ? (m = false, g = Wg(d, true)) : P ? (m = false, g = Xg(d, true)) : g = [] : yR(d) || kd(d) ? (g = c, kd(c) ? g = rw(c) : (!Ms(c) || Jp(c)) && (g = Zg(d))) : m = false;
9965
9965
  }
9966
9966
  m && (a.set(d, g), i(g, d, r, n, a), a.delete(d)), ip(s, t, g);
9967
9967
  }
@@ -9979,7 +9979,7 @@ var nw = "[object Map]", aw = "[object Set]", ow = Object.prototype, cw = ow.has
9979
9979
  function dw(s) {
9980
9980
  if (s == null)
9981
9981
  return true;
9982
- if ($c(s) && (mi(s) || typeof s == "string" || typeof s.splice == "function" || Fa(s) || Jl(s) || kd(s)))
9982
+ if ($c(s) && (fi(s) || typeof s == "string" || typeof s.splice == "function" || Fa(s) || Jl(s) || kd(s)))
9983
9983
  return !s.length;
9984
9984
  var e = Ha(s);
9985
9985
  if (e == nw || e == aw)
@@ -10406,21 +10406,21 @@ function Od(s, e) {
10406
10406
  function _w({ baseURI: s }) {
10407
10407
  return s != null && s.includes("preprod.dyte") ? Do.PREPROD : s != null && s.includes("devel.dyte") ? Do.DEVEL : Do.PROD;
10408
10408
  }
10409
- function Mn({ servicePrefix: s, baseURI: e }) {
10409
+ function On({ servicePrefix: s, baseURI: e }) {
10410
10410
  return `${s}.${e}`;
10411
10411
  }
10412
10412
  function Ev(s) {
10413
10413
  const e = s.getValue("baseURI");
10414
10414
  return {
10415
- location: Mn({
10415
+ location: On({
10416
10416
  servicePrefix: "location",
10417
10417
  baseURI: e
10418
10418
  }),
10419
- locationLegacy: Mn({
10419
+ locationLegacy: On({
10420
10420
  servicePrefix: "location-legacy",
10421
10421
  baseURI: e
10422
10422
  }),
10423
- daCollector: Mn({
10423
+ daCollector: On({
10424
10424
  servicePrefix: "da-collector",
10425
10425
  baseURI: e
10426
10426
  })
@@ -10489,10 +10489,10 @@ class ww {
10489
10489
  return this.mostRecentPeerId;
10490
10490
  }
10491
10491
  }
10492
- const on = new ww(), ae = class {
10492
+ const cn = new ww(), ae = class {
10493
10493
  static get logsEndpoint() {
10494
- const e = on.getContext(ae.meetingMetadata.peerId);
10495
- return `https://${Mn({
10494
+ const e = cn.getContext(ae.meetingMetadata.peerId);
10495
+ return `https://${On({
10496
10496
  servicePrefix: "api-silos",
10497
10497
  baseURI: e.getValue("baseURI")
10498
10498
  })}/otel/logs`;
@@ -10540,7 +10540,7 @@ const on = new ww(), ae = class {
10540
10540
  }
10541
10541
  static addLogInCurrentSpan(e, t, r = {}, i = false) {
10542
10542
  r != null && r.error && Object.assign(r, { error: ud(r.error) });
10543
- const n = on.getContext(ae.meetingMetadata.peerId);
10543
+ const n = cn.getContext(ae.meetingMetadata.peerId);
10544
10544
  if (pv(n) && (dw(r) ? console[e]("DyteInternalLogs:: ", e, t) : console[e](
10545
10545
  "DyteInternalLogs:: ",
10546
10546
  e,
@@ -10572,7 +10572,7 @@ const on = new ww(), ae = class {
10572
10572
  }
10573
10573
  }
10574
10574
  static sendOtelLogsToNewRelic(e) {
10575
- const t = on.getContext(ae.meetingMetadata.peerId);
10575
+ const t = cn.getContext(ae.meetingMetadata.peerId);
10576
10576
  fetch(ae.logsEndpoint, {
10577
10577
  method: "POST",
10578
10578
  headers: {
@@ -10852,7 +10852,7 @@ ${this.message}`;
10852
10852
  r && r.endsWith("00") && (n = true), n && p.error("DyteError", {
10853
10853
  error: { message: this.message, name: this.name, code: r }
10854
10854
  });
10855
- const a = on.getContext(on.getMostRecentPeerId());
10855
+ const a = cn.getContext(cn.getMostRecentPeerId());
10856
10856
  if (a) {
10857
10857
  const c = a.getValue("onError");
10858
10858
  try {
@@ -11143,12 +11143,12 @@ const $m = 1080, Fm = 1920, Vw = (s, e, t, r, i, n) => {
11143
11143
  let m = d * g, y = l * g, _, P, b, R, L = 1;
11144
11144
  return m < t && (L = t / m), Math.abs(L - 1) < 1e-14 && y < r && (L = r / y), m *= L, y *= L, b = d / (m / t), R = l / (y / r), _ = (d - b) * a, P = (l - R) * c, _ < 0 && (_ = 0), P < 0 && (P = 0), b > d && (b = d), R > l && (R = l), [_, P, b, R, s, e, t, r];
11145
11145
  };
11146
- var is, Ln, ht, ns, Ve, _s, nr, Rt, Ge, xn, Vn, ar, Un, Rf;
11146
+ var is, xn, ht, ns, Ve, _s, nr, Rt, Ge, Vn, Un, ar, $n, Rf;
11147
11147
  const _v = (Rf = class extends Xt {
11148
11148
  constructor(e, t, r, i) {
11149
11149
  super();
11150
11150
  v(this, is, void 0);
11151
- v(this, Ln, void 0);
11151
+ v(this, xn, void 0);
11152
11152
  v(this, ht, void 0);
11153
11153
  v(this, ns, void 0);
11154
11154
  v(this, Ve, {
@@ -11165,12 +11165,12 @@ const _v = (Rf = class extends Xt {
11165
11165
  v(this, nr, void 0);
11166
11166
  v(this, Rt, {});
11167
11167
  v(this, Ge, void 0);
11168
- v(this, xn, void 0);
11169
11168
  v(this, Vn, void 0);
11169
+ v(this, Un, void 0);
11170
11170
  v(this, ar, void 0);
11171
- v(this, Un, false);
11171
+ v(this, $n, false);
11172
11172
  f(this, "cleanupEventListeners", () => {
11173
- o(this, Ln).unsubscribe("stageStatus", this.handlePipMediaControls), o(this, Ge).removeListener("videoUpdate", this.onSelfVideoUpdateListener), o(this, Ge).removeListener("audioUpdate", this.onSelfAudioUpdateListener), o(this, Ge).removeListener("roomLeft", () => this.disable());
11173
+ o(this, xn).unsubscribe("stageStatus", this.handlePipMediaControls), o(this, Ge).removeListener("videoUpdate", this.onSelfVideoUpdateListener), o(this, Ge).removeListener("audioUpdate", this.onSelfAudioUpdateListener), o(this, Ge).removeListener("roomLeft", () => this.disable());
11174
11174
  });
11175
11175
  f(this, "enablePipMediaControls", () => {
11176
11176
  this.mountAudioEvents(), this.mountVideoEvents();
@@ -11200,7 +11200,7 @@ const _v = (Rf = class extends Xt {
11200
11200
  f(this, "disable", (e2 = false) => {
11201
11201
  T(this, ar, "idle"), this.cleanupEventListeners(), cancelAnimationFrame(o(this, nr)), e2 !== true && document.body.removeChild(o(this, ht)), T(this, nr, void 0), document.pictureInPictureElement && document.exitPictureInPicture();
11202
11202
  });
11203
- T(this, Ln, e), T(this, ar, "idle"), T(this, Ge, t), T(this, _s, {
11203
+ T(this, xn, e), T(this, ar, "idle"), T(this, Ge, t), T(this, _s, {
11204
11204
  brand: t.config.designTokens.colors.brand[500],
11205
11205
  background: t.config.designTokens.colors.background[1e3],
11206
11206
  text: t.config.designTokens.colors.text,
@@ -11222,10 +11222,10 @@ const _v = (Rf = class extends Xt {
11222
11222
  return u(this, null, function* () {
11223
11223
  switch (e) {
11224
11224
  case "handRaise":
11225
- T(this, Vn, t);
11225
+ T(this, Un, t);
11226
11226
  break;
11227
11227
  case "pin":
11228
- T(this, xn, t);
11228
+ T(this, Vn, t);
11229
11229
  break;
11230
11230
  }
11231
11231
  });
@@ -11234,10 +11234,10 @@ const _v = (Rf = class extends Xt {
11234
11234
  return u(this, null, function* () {
11235
11235
  switch (e) {
11236
11236
  case "handRaise":
11237
- T(this, Vn, yield Qc(t));
11237
+ T(this, Un, yield Qc(t));
11238
11238
  break;
11239
11239
  case "pin":
11240
- T(this, xn, yield Qc(t));
11240
+ T(this, Vn, yield Qc(t));
11241
11241
  break;
11242
11242
  }
11243
11243
  });
@@ -11254,7 +11254,7 @@ const _v = (Rf = class extends Xt {
11254
11254
  T(this, ht, document.createElement("div")), o(this, ht).style.width = "0.1px", o(this, ht).style.height = "0.1px", o(this, ht).style.overflow = "hidden", o(this, ht).style.position = "absolute", o(this, ht).style.bottom = "0", o(this, ht).style.right = "0", o(this, ht).style.opacity = "0", o(this, ht).appendChild(o(this, ns));
11255
11255
  }
11256
11256
  setupEventListeners() {
11257
- o(this, Ln).subscribe("stageStatus", this.handlePipMediaControls), o(this, Ge).addListener("videoUpdate", this.onSelfVideoUpdateListener), o(this, Ge).addListener("audioUpdate", this.onSelfAudioUpdateListener), o(this, Ge).addListener("roomLeft", () => this.disable());
11257
+ o(this, xn).subscribe("stageStatus", this.handlePipMediaControls), o(this, Ge).addListener("videoUpdate", this.onSelfVideoUpdateListener), o(this, Ge).addListener("audioUpdate", this.onSelfAudioUpdateListener), o(this, Ge).addListener("roomLeft", () => this.disable());
11258
11258
  }
11259
11259
  createCanvas() {
11260
11260
  const e = document.createElement("canvas");
@@ -11321,7 +11321,7 @@ const _v = (Rf = class extends Xt {
11321
11321
  n - a * 2
11322
11322
  ), d += n + a, y.restore();
11323
11323
  };
11324
- e.pinned && g(o(this, xn)), e.handRaised && g(o(this, Vn));
11324
+ e.pinned && g(o(this, Vn)), e.handRaised && g(o(this, Un));
11325
11325
  }
11326
11326
  drawTile(e, t, r) {
11327
11327
  var d, l;
@@ -11384,7 +11384,7 @@ const _v = (Rf = class extends Xt {
11384
11384
  return document.pictureInPictureElement !== null;
11385
11385
  }
11386
11386
  cleanup() {
11387
- if (T(this, Un, false), this.isSupported() && document.exitPictureInPicture !== void 0 && document.pictureInPictureElement !== null && document.exitPictureInPicture(), o(this, ht))
11387
+ if (T(this, $n, false), this.isSupported() && document.exitPictureInPicture !== void 0 && document.pictureInPictureElement !== null && document.exitPictureInPicture(), o(this, ht))
11388
11388
  try {
11389
11389
  document.body.removeChild(o(this, ht));
11390
11390
  } catch (e) {
@@ -11394,9 +11394,9 @@ const _v = (Rf = class extends Xt {
11394
11394
  init({ height: e, width: t } = {}) {
11395
11395
  if (!this.isSupported())
11396
11396
  throw p.error("DytePip.unsupported"), new Error("Picture-in-picture is not available in this environment");
11397
- if (o(this, Un))
11397
+ if (o(this, $n))
11398
11398
  return;
11399
- T(this, Un, true), this.createCanvas(), this.setupMediaSessionEvents();
11399
+ T(this, $n, true), this.createCanvas(), this.setupMediaSessionEvents();
11400
11400
  const r = document.createElement("video");
11401
11401
  T(this, Ve, {
11402
11402
  height: e != null ? e : $m,
@@ -11483,7 +11483,7 @@ const _v = (Rf = class extends Xt {
11483
11483
  T(this, ar, "active");
11484
11484
  });
11485
11485
  }
11486
- }, is = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Rf);
11486
+ }, is = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Rf);
11487
11487
  let Zt = _v;
11488
11488
  gs([
11489
11489
  h.trace("DytePip.overrideIcon")
@@ -13129,10 +13129,10 @@ class Xk extends MessageType {
13129
13129
  }
13130
13130
  }
13131
13131
  const Zk = new Xk();
13132
- var cn;
13132
+ var dn;
13133
13133
  (function(s) {
13134
13134
  s[s.BROWSER = 0] = "BROWSER", s[s.TRACK = 1] = "TRACK", s[s.COMPOSITE = 2] = "COMPOSITE";
13135
- })(cn || (cn = {}));
13135
+ })(dn || (dn = {}));
13136
13136
  var Tr;
13137
13137
  (function(s) {
13138
13138
  s[s.UNSPECIFIED = 0] = "UNSPECIFIED", s[s.ON_STAGE = 1] = "ON_STAGE", s[s.APPROVED_STAGE = 2] = "APPROVED_STAGE", s[s.REQUESTED_STAGE = 3] = "REQUESTED_STAGE", s[s.OFF_STAGE = 4] = "OFF_STAGE";
@@ -13235,7 +13235,7 @@ class rA extends MessageType {
13235
13235
  ]);
13236
13236
  }
13237
13237
  }
13238
- const En = new rA();
13238
+ const _n = new rA();
13239
13239
  class iA extends MessageType {
13240
13240
  constructor() {
13241
13241
  super("socket.room.PeerStatusUpdate", [
@@ -13346,7 +13346,7 @@ class lA extends MessageType {
13346
13346
  kind: "scalar",
13347
13347
  T: 9
13348
13348
  },
13349
- { no: 2, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", cn] },
13349
+ { no: 2, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", dn] },
13350
13350
  {
13351
13351
  no: 3,
13352
13352
  name: "recording_status",
@@ -14003,10 +14003,10 @@ var hp;
14003
14003
  (function(s) {
14004
14004
  s[s.NONE = 0] = "NONE", s[s.SKIP = 1] = "SKIP", s[s.ON_PRIVILEGED_USER_ENTRY = 2] = "ON_PRIVILEGED_USER_ENTRY", s[s.SKIP_ON_ACCEPT = 3] = "SKIP_ON_ACCEPT";
14005
14005
  })(hp || (hp = {}));
14006
- var di;
14006
+ var li;
14007
14007
  (function(s) {
14008
14008
  s[s.NONE = 0] = "NONE", s[s.ALLOWED = 1] = "ALLOWED", s[s.NOT_ALLOWED = 2] = "NOT_ALLOWED", s[s.CAN_REQUEST = 3] = "CAN_REQUEST";
14009
- })(di || (di = {}));
14009
+ })(li || (li = {}));
14010
14010
  class mI extends MessageType {
14011
14011
  constructor() {
14012
14012
  super("socket.preset.PollsPermissionUpdate", [
@@ -14159,8 +14159,8 @@ const RI = new CI();
14159
14159
  class wI extends MessageType {
14160
14160
  constructor() {
14161
14161
  super("socket.preset.StreamPermission", [
14162
- { no: 1, name: "can_produce", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", di, "STREAM_PERMISSION_TYPE_"] },
14163
- { no: 2, name: "can_consume", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", di, "STREAM_PERMISSION_TYPE_"] }
14162
+ { no: 1, name: "can_produce", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", li, "STREAM_PERMISSION_TYPE_"] },
14163
+ { no: 2, name: "can_consume", kind: "enum", opt: true, T: () => ["socket.preset.StreamPermissionType", li, "STREAM_PERMISSION_TYPE_"] }
14164
14164
  ]);
14165
14165
  }
14166
14166
  }
@@ -14504,7 +14504,7 @@ class jI extends MessageType {
14504
14504
  ]);
14505
14505
  }
14506
14506
  }
14507
- const gn = new jI();
14507
+ const vn = new jI();
14508
14508
  class GI extends MessageType {
14509
14509
  constructor() {
14510
14510
  super("socket.chat.GetPaginatedChatMessageRoomRequest", [
@@ -14547,7 +14547,7 @@ const WI = new GI();
14547
14547
  class JI extends MessageType {
14548
14548
  constructor() {
14549
14549
  super("socket.chat.GetPaginatedChatMessageRoomResponse", [
14550
- { no: 1, name: "messages", kind: "message", repeat: 1, T: () => gn },
14550
+ { no: 1, name: "messages", kind: "message", repeat: 1, T: () => vn },
14551
14551
  {
14552
14552
  no: 2,
14553
14553
  name: "next",
@@ -14561,7 +14561,7 @@ const KI = new JI();
14561
14561
  class zI extends MessageType {
14562
14562
  constructor() {
14563
14563
  super("socket.chat.GetChatMessagesResponse", [
14564
- { no: 1, name: "messages", kind: "message", repeat: 1, T: () => gn }
14564
+ { no: 1, name: "messages", kind: "message", repeat: 1, T: () => vn }
14565
14565
  ]);
14566
14566
  }
14567
14567
  }
@@ -14588,7 +14588,7 @@ const QI = new YI();
14588
14588
  class XI extends MessageType {
14589
14589
  constructor() {
14590
14590
  super("socket.chat.SendChatMessageToRoomResponse", [
14591
- { no: 1, name: "message", kind: "message", T: () => gn }
14591
+ { no: 1, name: "message", kind: "message", T: () => vn }
14592
14592
  ]);
14593
14593
  }
14594
14594
  }
@@ -14622,7 +14622,7 @@ const eD = new ZI();
14622
14622
  class tD extends MessageType {
14623
14623
  constructor() {
14624
14624
  super("socket.chat.SendChatMessageToPeersResponse", [
14625
- { no: 1, name: "message", kind: "message", T: () => gn }
14625
+ { no: 1, name: "message", kind: "message", T: () => vn }
14626
14626
  ]);
14627
14627
  }
14628
14628
  }
@@ -14655,7 +14655,7 @@ const rD = new sD();
14655
14655
  class iD extends MessageType {
14656
14656
  constructor() {
14657
14657
  super("socket.chat.SendChatMessageToChannelResponse", [
14658
- { no: 1, name: "message", kind: "message", T: () => gn }
14658
+ { no: 1, name: "message", kind: "message", T: () => vn }
14659
14659
  ]);
14660
14660
  }
14661
14661
  }
@@ -14756,7 +14756,7 @@ const ed = new dD();
14756
14756
  class lD extends MessageType {
14757
14757
  constructor() {
14758
14758
  super("socket.chat.EditChatMessageResponse", [
14759
- { no: 1, name: "message", kind: "message", T: () => gn }
14759
+ { no: 1, name: "message", kind: "message", T: () => vn }
14760
14760
  ]);
14761
14761
  }
14762
14762
  }
@@ -15000,7 +15000,7 @@ const wD = new RD();
15000
15000
  class bD extends MessageType {
15001
15001
  constructor() {
15002
15002
  super("socket.chat.LatestMessageAndUnreadCount", [
15003
- { no: 1, name: "message", kind: "message", T: () => gn },
15003
+ { no: 1, name: "message", kind: "message", T: () => vn },
15004
15004
  {
15005
15005
  no: 2,
15006
15006
  name: "unread_count",
@@ -15817,7 +15817,7 @@ class xM extends MessageType {
15817
15817
  kind: "scalar",
15818
15818
  T: 9
15819
15819
  },
15820
- { no: 3, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", cn] }
15820
+ { no: 3, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", dn] }
15821
15821
  ]);
15822
15822
  }
15823
15823
  }
@@ -16096,7 +16096,7 @@ function xv(s, e) {
16096
16096
  const U = Ga(BM, JM), Le = Ga(HM, KM), z = Ga(
16097
16097
  qM,
16098
16098
  zM
16099
- ), sr = Ga(jM, YM), wi = Ga(
16099
+ ), sr = Ga(jM, YM), bi = Ga(
16100
16100
  GM,
16101
16101
  QM
16102
16102
  ), ms = xv(Lv, 16777216), Is = xv(Lv, 50331648), hd = Ga(
@@ -16124,7 +16124,7 @@ const gp = (wf = class {
16124
16124
  };
16125
16125
  i && (n.visibility = "private");
16126
16126
  const a = yield o(this, $r).sendMessagePromise(
16127
- wi.createChatChannel,
16127
+ bi.createChatChannel,
16128
16128
  ED.toBinary(n)
16129
16129
  ), c = Zs.fromBinary(
16130
16130
  a.payload
@@ -16135,7 +16135,7 @@ const gp = (wf = class {
16135
16135
  updateChannel(s, e) {
16136
16136
  return u(this, null, function* () {
16137
16137
  const t = yield o(this, $r).sendMessagePromise(
16138
- wi.updateChatChannel,
16138
+ bi.updateChatChannel,
16139
16139
  PD.toBinary({
16140
16140
  chatChannelId: s,
16141
16141
  targetUserIds: e.memberIds,
@@ -16164,7 +16164,7 @@ const gp = (wf = class {
16164
16164
  return u(this, null, function* () {
16165
16165
  try {
16166
16166
  const e = yield o(this, $r).sendMessagePromise(
16167
- wi.getChannelMembers,
16167
+ bi.getChannelMembers,
16168
16168
  wD.toBinary({ chatChannelId: s })
16169
16169
  );
16170
16170
  return LD.fromBinary(e.payload).channelMembers.map((i) => {
@@ -16179,13 +16179,13 @@ const gp = (wf = class {
16179
16179
  on(s, e) {
16180
16180
  let t, r;
16181
16181
  switch (s) {
16182
- case wi.createChatChannel: {
16182
+ case bi.createChatChannel: {
16183
16183
  t = Zs.fromBinary.bind(
16184
16184
  Zs
16185
16185
  ), r = Zs.create();
16186
16186
  break;
16187
16187
  }
16188
- case wi.updateChatChannel: {
16188
+ case bi.updateChatChannel: {
16189
16189
  t = Zs.fromBinary.bind(
16190
16190
  Zs
16191
16191
  ), r = Zs.create();
@@ -16211,16 +16211,16 @@ const gp = (wf = class {
16211
16211
  });
16212
16212
  }
16213
16213
  }, $r = /* @__PURE__ */ new WeakMap(), wf);
16214
- let un = gp;
16214
+ let pn = gp;
16215
16215
  ah([
16216
16216
  h.trace("ChatChannelHandler.createChannel")
16217
- ], un.prototype, "createChannel", 1);
16217
+ ], pn.prototype, "createChannel", 1);
16218
16218
  ah([
16219
16219
  h.trace("ChatChannelHandler.updateChannel")
16220
- ], un.prototype, "updateChannel", 1);
16220
+ ], pn.prototype, "updateChannel", 1);
16221
16221
  ah([
16222
16222
  h.trace("ChatChannelHandler.getChannelMembers")
16223
- ], un.prototype, "getChannelMembers", 1);
16223
+ ], pn.prototype, "getChannelMembers", 1);
16224
16224
  var t0 = Object.defineProperty, s0 = Object.getOwnPropertyDescriptor, Ls = (s, e, t, r) => {
16225
16225
  for (var i = r > 1 ? void 0 : r ? s0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
16226
16226
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
@@ -16351,7 +16351,7 @@ class vs {
16351
16351
  const e = yield o(this, mt).sendMessagePromise(
16352
16352
  Le.getAllChatChannels
16353
16353
  );
16354
- return Zs.fromBinary(e.payload).chatChannels.map(un.formatChannel);
16354
+ return Zs.fromBinary(e.payload).chatChannels.map(pn.formatChannel);
16355
16355
  } catch (e) {
16356
16356
  return [];
16357
16357
  }
@@ -17005,7 +17005,7 @@ var h0 = Object.defineProperty, m0 = Object.getOwnPropertyDescriptor, Ie = (s, e
17005
17005
  return r && i && h0(e, t, i), i;
17006
17006
  };
17007
17007
  const f0 = ["text", "image", "file", "custom", "poll"], md = { maxInvocations: 180, period: 60 };
17008
- var ie, Ii, Xe, Di, Wo, Jd, Uv, Jo, yp, bf;
17008
+ var ie, Di, Xe, Mi, Wo, Jd, Uv, Jo, yp, bf;
17009
17009
  let Te = (bf = class extends Xt {
17010
17010
  constructor(e, t, r, i, n) {
17011
17011
  super();
@@ -17014,12 +17014,12 @@ let Te = (bf = class extends Xt {
17014
17014
  f(this, "messages");
17015
17015
  f(this, "channels", []);
17016
17016
  v(this, ie, void 0);
17017
- v(this, Ii, void 0);
17018
- v(this, Xe, void 0);
17019
17017
  v(this, Di, void 0);
17018
+ v(this, Xe, void 0);
17019
+ v(this, Mi, void 0);
17020
17020
  v(this, Wo, void 0);
17021
17021
  f(this, "maxTextLimit", 2e3);
17022
- T(this, Wo, e), T(this, Xe, t), T(this, Di, r), T(this, ie, i), T(this, Ii, n), this.messages = [];
17022
+ T(this, Wo, e), T(this, Xe, t), T(this, Mi, r), T(this, ie, i), T(this, Di, n), this.messages = [];
17023
17023
  }
17024
17024
  setMaxTextLimit(e) {
17025
17025
  this.maxTextLimit = e;
@@ -17063,7 +17063,7 @@ let Te = (bf = class extends Xt {
17063
17063
  return;
17064
17064
  }
17065
17065
  let i = [];
17066
- t && t.length > 0 && (t.push(o(this, ie).id), i = o(this, Ii).joined.toArray().filter((m) => t.includes(m.id)).map((m) => m.userId), i.push(o(this, ie).userId)), o(this, Xe).sendMessage(
17066
+ t && t.length > 0 && (t.push(o(this, ie).id), i = o(this, Di).joined.toArray().filter((m) => t.includes(m.id)).map((m) => m.userId), i.push(o(this, ie).userId)), o(this, Xe).sendMessage(
17067
17067
  e,
17068
17068
  It.TEXT,
17069
17069
  t
@@ -17104,7 +17104,7 @@ let Te = (bf = class extends Xt {
17104
17104
  return;
17105
17105
  }
17106
17106
  let P = [];
17107
- t && t.length > 0 && (t.push(o(this, ie).id), P = o(this, Ii).joined.toArray().filter((b) => t.includes(b.id)).map((b) => b.userId), P.push(o(this, ie).userId)), o(this, Xe).sendMessage(
17107
+ t && t.length > 0 && (t.push(o(this, ie).id), P = o(this, Di).joined.toArray().filter((b) => t.includes(b.id)).map((b) => b.userId), P.push(o(this, ie).userId)), o(this, Xe).sendMessage(
17108
17108
  y,
17109
17109
  It.IMAGE,
17110
17110
  t
@@ -17148,7 +17148,7 @@ let Te = (bf = class extends Xt {
17148
17148
  return;
17149
17149
  }
17150
17150
  let _ = [];
17151
- t && t.length > 0 && (t.push(o(this, ie).id), _ = o(this, Ii).joined.toArray().filter((b) => t.includes(b.id)).map((b) => b.userId), _.push(o(this, ie).userId));
17151
+ t && t.length > 0 && (t.push(o(this, ie).id), _ = o(this, Di).joined.toArray().filter((b) => t.includes(b.id)).map((b) => b.userId), _.push(o(this, ie).userId));
17152
17152
  const P = JSON.stringify({
17153
17153
  link: m,
17154
17154
  name: e.name,
@@ -17411,7 +17411,7 @@ let Te = (bf = class extends Xt {
17411
17411
  if (!e || e.trim().length === 0)
17412
17412
  throw new w("channel name cannot be empty.", "0510");
17413
17413
  const c = [.../* @__PURE__ */ new Set([...t, o(this, ie).userId])];
17414
- return yield o(this, Di).createChannel(
17414
+ return yield o(this, Mi).createChannel(
17415
17415
  e.trim(),
17416
17416
  c,
17417
17417
  r.displayPictureUrl,
@@ -17437,7 +17437,7 @@ let Te = (bf = class extends Xt {
17437
17437
  displayPictureUrl: (l = t.displayPictureUrl) != null ? l : r.displayPictureUrl,
17438
17438
  visibility: (g = t.visibility) != null ? g : r.visibility
17439
17439
  };
17440
- return o(this, Di).updateChannel(e, n);
17440
+ return o(this, Mi).updateChannel(e, n);
17441
17441
  }
17442
17442
  sendMessageToChannel(i, n) {
17443
17443
  return u(this, arguments, function* (e, t, r = {}) {
@@ -17446,7 +17446,7 @@ let Te = (bf = class extends Xt {
17446
17446
  }
17447
17447
  getChannelMembers(e) {
17448
17448
  return u(this, null, function* () {
17449
- return o(this, Di).getChannelMembers(e);
17449
+ return o(this, Mi).getChannelMembers(e);
17450
17450
  });
17451
17451
  }
17452
17452
  searchMessages(r) {
@@ -17469,7 +17469,7 @@ let Te = (bf = class extends Xt {
17469
17469
  get pinned() {
17470
17470
  return this.messages.filter((e) => e.pinned);
17471
17471
  }
17472
- }, ie = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Jd = /* @__PURE__ */ new WeakSet(), Uv = function() {
17472
+ }, ie = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Jd = /* @__PURE__ */ new WeakSet(), Uv = function() {
17473
17473
  return o(this, Wo).getValue("connectionHandler");
17474
17474
  }, Jo = /* @__PURE__ */ new WeakSet(), yp = function() {
17475
17475
  return o(this, Jd, Uv).socketJoined === true;
@@ -17555,7 +17555,7 @@ var g0 = Object.defineProperty, v0 = Object.getOwnPropertyDescriptor, oh = (s, e
17555
17555
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
17556
17556
  return r && i && g0(e, t, i), i;
17557
17557
  }, Kd, kf;
17558
- const _i = (kf = class {
17558
+ const Pi = (kf = class {
17559
17559
  constructor(s, e, t, r, i) {
17560
17560
  f(this, "chat");
17561
17561
  f(this, "chatSocketHandler");
@@ -17572,7 +17572,7 @@ const _i = (kf = class {
17572
17572
  }
17573
17573
  static init(s, e, t, r, i) {
17574
17574
  return u(this, null, function* () {
17575
- return new _i(
17575
+ return new Pi(
17576
17576
  s,
17577
17577
  e,
17578
17578
  t,
@@ -17635,7 +17635,7 @@ const _i = (kf = class {
17635
17635
  break;
17636
17636
  }
17637
17637
  }
17638
- return _i.formatMessage(t);
17638
+ return Pi.formatMessage(t);
17639
17639
  }
17640
17640
  getChatMessages() {
17641
17641
  return u(this, null, function* () {
@@ -17648,7 +17648,7 @@ const _i = (kf = class {
17648
17648
  s.payload
17649
17649
  ).messages;
17650
17650
  this.chat.messages = e.map(
17651
- (t) => _i.formatSocketServiceMessage(t)
17651
+ (t) => Pi.formatSocketServiceMessage(t)
17652
17652
  );
17653
17653
  });
17654
17654
  }
@@ -17661,7 +17661,7 @@ const _i = (kf = class {
17661
17661
  ), this.chatSocketHandler.on(
17662
17662
  Le.sendMessageToRoom,
17663
17663
  (s) => {
17664
- const e = _i.formatSocketServiceMessage(
17664
+ const e = Pi.formatSocketServiceMessage(
17665
17665
  s.message
17666
17666
  );
17667
17667
  if (!e.channelId)
@@ -17679,7 +17679,7 @@ const _i = (kf = class {
17679
17679
  ), this.chatSocketHandler.on(
17680
17680
  Le.sendMessageToPeers,
17681
17681
  (s) => {
17682
- const e = _i.formatSocketServiceMessage(
17682
+ const e = Pi.formatSocketServiceMessage(
17683
17683
  s.message
17684
17684
  );
17685
17685
  this.chat.messages = [...this.chat.messages, e], this.chat.emit("chatUpdate", {
@@ -17691,7 +17691,7 @@ const _i = (kf = class {
17691
17691
  ), this.chatSocketHandler.on(
17692
17692
  Le.editMessage,
17693
17693
  (s) => {
17694
- const e = _i.formatSocketServiceMessage(
17694
+ const e = Pi.formatSocketServiceMessage(
17695
17695
  s.message
17696
17696
  );
17697
17697
  if (e.channelId) {
@@ -17731,9 +17731,9 @@ const _i = (kf = class {
17731
17731
  });
17732
17732
  }
17733
17733
  ), this.chatChannelSocketHandler.on(
17734
- wi.createChatChannel,
17734
+ bi.createChatChannel,
17735
17735
  (s) => {
17736
- const [e] = s.chatChannels, t = un.formatChannel(e);
17736
+ const [e] = s.chatChannels, t = pn.formatChannel(e);
17737
17737
  this.chat.channels.push(t), this.chat.emit("channelCreate", t);
17738
17738
  }
17739
17739
  ), this.chatSocketHandler.on(
@@ -17750,15 +17750,15 @@ const _i = (kf = class {
17750
17750
  });
17751
17751
  }
17752
17752
  ), this.chatChannelSocketHandler.on(
17753
- wi.updateChatChannel,
17753
+ bi.updateChatChannel,
17754
17754
  (s) => {
17755
- const [e] = s.chatChannels, t = un.formatChannel(e);
17755
+ const [e] = s.chatChannels, t = pn.formatChannel(e);
17756
17756
  this.chat.channels = this.chat.channels.map((r) => r.id === t.id ? t : r), this.chat.emit("channelUpdate", t);
17757
17757
  }
17758
17758
  );
17759
17759
  }
17760
17760
  }, Kd = /* @__PURE__ */ new WeakMap(), kf);
17761
- let zt = _i;
17761
+ let zt = Pi;
17762
17762
  oh([
17763
17763
  h.trace("ChatController.setupEvents")
17764
17764
  ], zt.prototype, "setupEvents", 1);
@@ -17772,23 +17772,23 @@ var y0 = Object.defineProperty, T0 = Object.getOwnPropertyDescriptor, ch = (s, e
17772
17772
  for (var i = r > 1 ? void 0 : r ? T0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
17773
17773
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
17774
17774
  return r && i && y0(e, t, i), i;
17775
- }, zd, $v, Yd, Fv, $n, Fn, Ko, Af;
17775
+ }, zd, $v, Yd, Fv, Fn, Bn, Ko, Af;
17776
17776
  let Ho = (Af = class extends Xt {
17777
17777
  constructor(e, t, r) {
17778
17778
  super();
17779
17779
  v(this, zd);
17780
17780
  v(this, Yd);
17781
17781
  f(this, "items");
17782
- v(this, $n, void 0);
17783
17782
  v(this, Fn, void 0);
17783
+ v(this, Bn, void 0);
17784
17784
  v(this, Ko, void 0);
17785
- T(this, Ko, e), T(this, $n, t), T(this, Fn, r), this.items = [];
17785
+ T(this, Ko, e), T(this, Fn, t), T(this, Bn, r), this.items = [];
17786
17786
  }
17787
17787
  create(e, t, r = false, i = false) {
17788
17788
  return u(this, null, function* () {
17789
17789
  if (!o(this, Yd, Fv))
17790
17790
  throw new w("Can't create polls without joining room", "0705");
17791
- if (!o(this, $n).permissions.polls.canCreate) {
17791
+ if (!o(this, Fn).permissions.polls.canCreate) {
17792
17792
  p.error("DytePolls::create::permission_denied");
17793
17793
  return;
17794
17794
  }
@@ -17807,7 +17807,7 @@ let Ho = (Af = class extends Xt {
17807
17807
  });
17808
17808
  return;
17809
17809
  }
17810
- yield o(this, Fn).createPoll(
17810
+ yield o(this, Bn).createPoll(
17811
17811
  e,
17812
17812
  t,
17813
17813
  r,
@@ -17817,11 +17817,11 @@ let Ho = (Af = class extends Xt {
17817
17817
  }
17818
17818
  vote(e, t) {
17819
17819
  return u(this, null, function* () {
17820
- if (!o(this, $n).permissions.polls.canVote) {
17820
+ if (!o(this, Fn).permissions.polls.canVote) {
17821
17821
  p.error("DytePolls::vote::permission_denied");
17822
17822
  return;
17823
17823
  }
17824
- yield o(this, Fn).votePoll(e, t);
17824
+ yield o(this, Bn).votePoll(e, t);
17825
17825
  });
17826
17826
  }
17827
17827
  }, zd = /* @__PURE__ */ new WeakSet(), $v = function() {
@@ -17829,7 +17829,7 @@ let Ho = (Af = class extends Xt {
17829
17829
  }, Yd = /* @__PURE__ */ new WeakSet(), Fv = function() {
17830
17830
  var e;
17831
17831
  return ((e = o(this, zd, $v)) == null ? void 0 : e.socketJoined) === true;
17832
- }, $n = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), Af);
17832
+ }, Fn = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), Af);
17833
17833
  ch([
17834
17834
  h.trace("DytePolls.create")
17835
17835
  ], Ho.prototype, "create", 1);
@@ -17843,47 +17843,47 @@ var S0 = Object.defineProperty, E0 = Object.getOwnPropertyDescriptor, dh = (s, e
17843
17843
  for (var i = r > 1 ? void 0 : r ? E0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
17844
17844
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
17845
17845
  return r && i && S0(e, t, i), i;
17846
- }, Bn, Mi, If;
17847
- const _n = (If = class {
17846
+ }, Hn, Oi, If;
17847
+ const Pn = (If = class {
17848
17848
  constructor(s, e, t) {
17849
17849
  f(this, "polls");
17850
- v(this, Bn, void 0);
17851
- v(this, Mi, void 0);
17852
- this.polls = new Ho(s, e, t), T(this, Bn, e), T(this, Mi, t), this.setupEvents();
17850
+ v(this, Hn, void 0);
17851
+ v(this, Oi, void 0);
17852
+ this.polls = new Ho(s, e, t), T(this, Hn, e), T(this, Oi, t), this.setupEvents();
17853
17853
  }
17854
17854
  static init(s, e, t) {
17855
17855
  return u(this, null, function* () {
17856
- return new _n(s, e, t);
17856
+ return new Pn(s, e, t);
17857
17857
  });
17858
17858
  }
17859
17859
  canViewPolls() {
17860
- return o(this, Bn).permissions.polls.canView;
17860
+ return o(this, Hn).permissions.polls.canView;
17861
17861
  }
17862
17862
  setupEvents() {
17863
17863
  const s = {
17864
17864
  [sr.createPoll]: (r) => {
17865
- r.poll && this.updatePoll(_n.formatSocketServicePoll(r.poll));
17865
+ r.poll && this.updatePoll(Pn.formatSocketServicePoll(r.poll));
17866
17866
  },
17867
17867
  [sr.updatePoll]: (r) => {
17868
- r.poll && this.updatePoll(_n.formatSocketServicePoll(r.poll));
17868
+ r.poll && this.updatePoll(Pn.formatSocketServicePoll(r.poll));
17869
17869
  },
17870
17870
  [sr.votePoll]: (r) => {
17871
- r.poll && this.updatePoll(_n.formatSocketServicePoll(r.poll));
17871
+ r.poll && this.updatePoll(Pn.formatSocketServicePoll(r.poll));
17872
17872
  }
17873
17873
  }, e = () => {
17874
17874
  A.on(I.SOCKET_SERVICE_ROOM_JOINED, () => {
17875
17875
  this.getPolls();
17876
17876
  }), Object.keys(s).map(Number).forEach((r) => {
17877
- o(this, Mi).on(r, s[r]);
17877
+ o(this, Oi).on(r, s[r]);
17878
17878
  });
17879
17879
  }, t = () => {
17880
17880
  A.on(I.SOCKET_SERVICE_ROOM_JOINED, () => {
17881
17881
  this.getPolls();
17882
17882
  }), Object.keys(s).map(Number).forEach((r) => {
17883
- o(this, Mi).removeListeners(r);
17883
+ o(this, Oi).removeListeners(r);
17884
17884
  });
17885
17885
  };
17886
- o(this, Bn).permissions.on("permissionsUpdate", (r) => u(this, null, function* () {
17886
+ o(this, Hn).permissions.on("permissionsUpdate", (r) => u(this, null, function* () {
17887
17887
  var i;
17888
17888
  (i = r == null ? void 0 : r.polls) != null && i.canView ? (yield this.getPolls(), e()) : (this.polls.items = [], t());
17889
17889
  })), this.canViewPolls() && e();
@@ -17904,12 +17904,12 @@ const _n = (If = class {
17904
17904
  }
17905
17905
  getPolls() {
17906
17906
  return u(this, null, function* () {
17907
- const s = yield o(this, Mi).getPolls();
17907
+ const s = yield o(this, Oi).getPolls();
17908
17908
  if (!(s != null && s.payload))
17909
17909
  return;
17910
17910
  const { polls: e } = LM.fromBinary(s.payload);
17911
17911
  this.polls.items = e.map(
17912
- (t) => _n.formatSocketServicePoll(t)
17912
+ (t) => Pn.formatSocketServicePoll(t)
17913
17913
  );
17914
17914
  });
17915
17915
  }
@@ -17933,8 +17933,8 @@ const _n = (If = class {
17933
17933
  voted: s.votes
17934
17934
  };
17935
17935
  }
17936
- }, Bn = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), If);
17937
- let Yl = _n;
17936
+ }, Hn = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), If);
17937
+ let Yl = Pn;
17938
17938
  dh([
17939
17939
  h.trace("PollController.setupEvents")
17940
17940
  ], Yl.prototype, "setupEvents", 1);
@@ -17948,21 +17948,21 @@ var _0 = Object.defineProperty, P0 = Object.getOwnPropertyDescriptor, lh = (s, e
17948
17948
  for (var i = r > 1 ? void 0 : r ? P0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
17949
17949
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
17950
17950
  return r && i && _0(e, t, i), i;
17951
- }, Bv = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Bv || {}), Hn, zo, Tp, Oi, Yo, Df;
17951
+ }, Bv = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Bv || {}), qn, zo, Tp, Ni, Yo, Df;
17952
17952
  let qo = (Df = class extends Xt {
17953
17953
  constructor(e, t, r, i, n) {
17954
17954
  super();
17955
17955
  v(this, zo);
17956
17956
  f(this, "selfActiveTab");
17957
17957
  f(this, "broadcastTabChanges");
17958
- v(this, Hn, void 0);
17959
- v(this, Oi, void 0);
17958
+ v(this, qn, void 0);
17959
+ v(this, Ni, void 0);
17960
17960
  v(this, Yo, void 0);
17961
17961
  f(this, "viewType");
17962
17962
  f(this, "meetingStartedTimestamp");
17963
17963
  f(this, "meetingTitle");
17964
17964
  f(this, "sessionId");
17965
- T(this, Hn, e), T(this, Oi, t), this.viewType = r, T(this, Yo, i), this.meetingTitle = n, this.broadcastTabChanges = t.permissions.canSpotlight;
17965
+ T(this, qn, e), T(this, Ni, t), this.viewType = r, T(this, Yo, i), this.meetingTitle = n, this.broadcastTabChanges = t.permissions.canSpotlight;
17966
17966
  }
17967
17967
  get socketState() {
17968
17968
  return o(this, zo, Tp).socketState;
@@ -17971,10 +17971,10 @@ let qo = (Df = class extends Xt {
17971
17971
  return o(this, zo, Tp).mediaState;
17972
17972
  }
17973
17973
  get meetingId() {
17974
- return o(this, Hn).getValue("meetingId");
17974
+ return o(this, qn).getValue("meetingId");
17975
17975
  }
17976
17976
  setBroadcastTabChanges(e) {
17977
- if (!o(this, Oi).permissions.canSpotlight)
17977
+ if (!o(this, Ni).permissions.canSpotlight)
17978
17978
  throw p.error("DyteSpotlight::setSpotlighted::permission_denied"), new w("User does not have permission to toggle spotlight", "0801");
17979
17979
  this.broadcastTabChanges = e, this.emit("broadcastTabChangesUpdate", this.broadcastTabChanges), this.broadcastTabChanges && this.assertActiveTabToRoom();
17980
17980
  }
@@ -17987,17 +17987,17 @@ let qo = (Df = class extends Xt {
17987
17987
  type: e.type
17988
17988
  }
17989
17989
  }
17990
- }), this.selfActiveTab = e, t === 0 && this.emit("selfTabUpdate", e), (r = o(this, Oi).permissions) != null && r.canSpotlight && this.broadcastTabChanges && t === 0 && this.assertActiveTabToRoom();
17990
+ }), this.selfActiveTab = e, t === 0 && this.emit("selfTabUpdate", e), (r = o(this, Ni).permissions) != null && r.canSpotlight && this.broadcastTabChanges && t === 0 && this.assertActiveTabToRoom();
17991
17991
  }
17992
17992
  assertActiveTabToRoom() {
17993
17993
  o(this, Yo).broadcastMessage("spotlight", {
17994
- userId: o(this, Oi).userId,
17994
+ userId: o(this, Ni).userId,
17995
17995
  currentTab: this.selfActiveTab
17996
17996
  });
17997
17997
  }
17998
- }, Hn = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakSet(), Tp = function() {
17999
- return o(this, Hn).getValue("connectionHandler");
18000
- }, Oi = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Df);
17998
+ }, qn = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakSet(), Tp = function() {
17999
+ return o(this, qn).getValue("connectionHandler");
18000
+ }, Ni = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Df);
18001
18001
  lh([
18002
18002
  h.trace("DyteMeta.setBroadcastTabChanges")
18003
18003
  ], qo.prototype, "setBroadcastTabChanges", 1);
@@ -18113,13 +18113,13 @@ var b0 = Object.defineProperty, k0 = Object.getOwnPropertyDescriptor, Hv = (s, e
18113
18113
  for (var i = r > 1 ? void 0 : r ? k0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
18114
18114
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
18115
18115
  return r && i && b0(e, t, i), i;
18116
- }, Fr, qn, Qd, Mf;
18116
+ }, Fr, jn, Qd, Mf;
18117
18117
  const qv = (Mf = class {
18118
18118
  constructor(s, e, t, r, i, n) {
18119
18119
  f(this, "meta");
18120
18120
  f(this, "ai");
18121
18121
  v(this, Fr, void 0);
18122
- v(this, qn, void 0);
18122
+ v(this, jn, void 0);
18123
18123
  f(this, "aiSocketHandler");
18124
18124
  v(this, Qd, void 0);
18125
18125
  T(this, Qd, s), this.meta = new qo(
@@ -18128,7 +18128,7 @@ const qv = (Mf = class {
18128
18128
  e.config.viewType,
18129
18129
  t,
18130
18130
  n
18131
- ), this.ai = r, T(this, Fr, e), T(this, qn, t), this.aiSocketHandler = i, e.config.viewType !== Dt.Chat && this.setupEvents();
18131
+ ), this.ai = r, T(this, Fr, e), T(this, jn, t), this.aiSocketHandler = i, e.config.viewType !== Dt.Chat && this.setupEvents();
18132
18132
  }
18133
18133
  static init(s, e, t, r, i) {
18134
18134
  return u(this, null, function* () {
@@ -18177,13 +18177,13 @@ const qv = (Mf = class {
18177
18177
  ({ score: s }) => {
18178
18178
  s < 5 && this.meta.emit("poorConnection", { score: s });
18179
18179
  }
18180
- ), o(this, Fr).permissions.canSpotlight && (p.info("DyteMetaController::Asserting Spotlight"), this.meta.selfActiveTab && o(this, qn).broadcastMessage("spotlight", {
18180
+ ), o(this, Fr).permissions.canSpotlight && (p.info("DyteMetaController::Asserting Spotlight"), this.meta.selfActiveTab && o(this, jn).broadcastMessage("spotlight", {
18181
18181
  userId: o(this, Fr).userId,
18182
18182
  currentTab: this.meta.selfActiveTab
18183
18183
  })), A.on(
18184
18184
  I.PEER_JOINED_INTERNAL,
18185
18185
  (s) => u(this, null, function* () {
18186
- o(this, Fr).permissions.canSpotlight && this.meta.selfActiveTab && o(this, qn).broadcastToPeers("spotlight", [s.id], {
18186
+ o(this, Fr).permissions.canSpotlight && this.meta.selfActiveTab && o(this, jn).broadcastToPeers("spotlight", [s.id], {
18187
18187
  userId: o(this, Fr).userId,
18188
18188
  currentTab: this.meta.selfActiveTab
18189
18189
  });
@@ -18253,7 +18253,7 @@ const qv = (Mf = class {
18253
18253
  p.debug(`${e} Received transcript for peer ${n} - ${a}: ${c}`);
18254
18254
  });
18255
18255
  }
18256
- }, Fr = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Qd = /* @__PURE__ */ new WeakMap(), Mf);
18256
+ }, Fr = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Qd = /* @__PURE__ */ new WeakMap(), Mf);
18257
18257
  let uh = qv;
18258
18258
  Hv([
18259
18259
  h.trace("MetaController.setupEvents")
@@ -18261,23 +18261,23 @@ Hv([
18261
18261
  Hv([
18262
18262
  h.trace("MetaController.init")
18263
18263
  ], uh, "init", 1);
18264
- var A0 = Object.defineProperty, I0 = Object.getOwnPropertyDescriptor, vi = (s, e, t, r) => {
18264
+ var A0 = Object.defineProperty, I0 = Object.getOwnPropertyDescriptor, yi = (s, e, t, r) => {
18265
18265
  for (var i = r > 1 ? void 0 : r ? I0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
18266
18266
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
18267
18267
  return r && i && A0(e, t, i), i;
18268
- }, as, jn, de, Qo, Bs, Ps, Xo, Sp, Gn, fd;
18268
+ }, as, Gn, de, Qo, Bs, Ps, Xo, Sp, Wn, fd;
18269
18269
  class br extends Xt {
18270
18270
  constructor(t, r, i, n, a) {
18271
18271
  super();
18272
18272
  v(this, Xo);
18273
- v(this, Gn);
18273
+ v(this, Wn);
18274
18274
  v(this, as, void 0);
18275
- v(this, jn, void 0);
18275
+ v(this, Gn, void 0);
18276
18276
  v(this, de, void 0);
18277
18277
  v(this, Qo, void 0);
18278
18278
  v(this, Bs, void 0);
18279
18279
  v(this, Ps, void 0);
18280
- T(this, Ps, t), T(this, as, n), T(this, jn, a), T(this, de, r), T(this, Qo, i), T(this, Bs, []), this.setupEvents();
18280
+ T(this, Ps, t), T(this, as, n), T(this, Gn, a), T(this, de, r), T(this, Qo, i), T(this, Bs, []), this.setupEvents();
18281
18281
  }
18282
18282
  get status() {
18283
18283
  return o(this, Ps).getValue("stageStatus");
@@ -18335,17 +18335,17 @@ class br extends Xt {
18335
18335
  "2006"
18336
18336
  );
18337
18337
  if (o(this, de).permissions.stageAccess === K.Allowed) {
18338
- F(this, Gn, fd).call(this, "ACCEPTED_TO_JOIN_STAGE");
18338
+ F(this, Wn, fd).call(this, "ACCEPTED_TO_JOIN_STAGE");
18339
18339
  return;
18340
18340
  }
18341
- o(this, as).requestAccess(), F(this, Gn, fd).call(this, "REQUESTED_TO_JOIN_STAGE");
18341
+ o(this, as).requestAccess(), F(this, Wn, fd).call(this, "REQUESTED_TO_JOIN_STAGE");
18342
18342
  });
18343
18343
  }
18344
18344
  cancelRequestAccess() {
18345
18345
  return u(this, null, function* () {
18346
18346
  if (!o(this, de).permissions.stageEnabled)
18347
18347
  throw p.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
18348
- o(this, as).cancelRequestAccess(), F(this, Gn, fd).call(this, "OFF_STAGE");
18348
+ o(this, as).cancelRequestAccess(), F(this, Wn, fd).call(this, "OFF_STAGE");
18349
18349
  });
18350
18350
  }
18351
18351
  grantAccess(t) {
@@ -18379,8 +18379,8 @@ class br extends Xt {
18379
18379
  if (this.status !== "ACCEPTED_TO_JOIN_STAGE" || o(this, de).permissions.stageAccess === K.NotAllowed)
18380
18380
  throw new w(`Unable to join stage you are currently ${this.status}`, "2006");
18381
18381
  if (yield o(this, as).joinStage(), t === Dt.Livestream) {
18382
- yield o(this, jn).joinRoom(o(this, de));
18383
- const { peers: r } = yield o(this, jn).getStagePeers();
18382
+ yield o(this, Gn).joinRoom(o(this, de));
18383
+ const { peers: r } = yield o(this, Gn).getStagePeers();
18384
18384
  A.emit(I.SOCKET_PEERS, r);
18385
18385
  }
18386
18386
  o(this, Ps).setValue("stageStatus", "ON_STAGE"), o(this, de).audioEnabled && o(this, Xo, Sp).shareMic(o(this, de).audioTrack), o(this, de).videoEnabled && o(this, Xo, Sp).shareWebcam(o(this, de).videoTrack);
@@ -18410,35 +18410,35 @@ class br extends Xt {
18410
18410
  });
18411
18411
  }
18412
18412
  }
18413
- as = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakSet(), Sp = function() {
18413
+ as = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakSet(), Sp = function() {
18414
18414
  return o(this, Ps).getValue("roomNodeClient");
18415
- }, Gn = /* @__PURE__ */ new WeakSet(), fd = function(t) {
18415
+ }, Wn = /* @__PURE__ */ new WeakSet(), fd = function(t) {
18416
18416
  return u(this, null, function* () {
18417
18417
  this.status !== t && o(this, Ps).setValue("stageStatus", t);
18418
18418
  });
18419
18419
  };
18420
- vi([
18420
+ yi([
18421
18421
  h.trace("DyteStage.getStageRequests")
18422
18422
  ], br.prototype, "getAccessRequests", 1);
18423
- vi([
18423
+ yi([
18424
18424
  h.trace("DyteStage.requestAccess")
18425
18425
  ], br.prototype, "requestAccess", 1);
18426
- vi([
18426
+ yi([
18427
18427
  h.trace("DyteStage.cancelRequestAccess")
18428
18428
  ], br.prototype, "cancelRequestAccess", 1);
18429
- vi([
18429
+ yi([
18430
18430
  h.trace("DyteStage.grantAccess")
18431
18431
  ], br.prototype, "grantAccess", 1);
18432
- vi([
18432
+ yi([
18433
18433
  h.trace("DyteStage.denyAccess")
18434
18434
  ], br.prototype, "denyAccess", 1);
18435
- vi([
18435
+ yi([
18436
18436
  h.trace("DyteStage.joinStage")
18437
18437
  ], br.prototype, "join", 1);
18438
- vi([
18438
+ yi([
18439
18439
  h.trace("DyteStage.leaveStage")
18440
18440
  ], br.prototype, "leave", 1);
18441
- vi([
18441
+ yi([
18442
18442
  h.trace("DyteStage.kick")
18443
18443
  ], br.prototype, "kick", 1);
18444
18444
  function D0(s) {
@@ -18464,12 +18464,12 @@ var M0 = Object.defineProperty, O0 = Object.getOwnPropertyDescriptor, N0 = (s, e
18464
18464
  for (var i = r > 1 ? void 0 : r ? O0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
18465
18465
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
18466
18466
  return r && i && M0(e, t, i), i;
18467
- }, Br, Ni, Hr, Zo, or;
18467
+ }, Br, Li, Hr, Zo, or;
18468
18468
  class jv {
18469
18469
  constructor(e, t, r, i, n) {
18470
18470
  f(this, "stage");
18471
18471
  v(this, Br, void 0);
18472
- v(this, Ni, void 0);
18472
+ v(this, Li, void 0);
18473
18473
  v(this, Hr, void 0);
18474
18474
  v(this, Zo, 0);
18475
18475
  v(this, or, void 0);
@@ -18479,7 +18479,7 @@ class jv {
18479
18479
  n,
18480
18480
  t,
18481
18481
  r
18482
- ), T(this, Hr, t), T(this, Br, i), T(this, Ni, n), this.setupEvents();
18482
+ ), T(this, Hr, t), T(this, Br, i), T(this, Li, n), this.setupEvents();
18483
18483
  }
18484
18484
  setupEvents() {
18485
18485
  o(this, or).subscribe("stageStatus", (e) => {
@@ -18502,7 +18502,7 @@ class jv {
18502
18502
  );
18503
18503
  }
18504
18504
  getCurrentStageRequests() {
18505
- return o(this, Ni).joined.toArray().filter(
18505
+ return o(this, Li).joined.toArray().filter(
18506
18506
  (t) => t.stageStatus === "REQUESTED_TO_JOIN_STAGE"
18507
18507
  ).map((t) => ({
18508
18508
  displayName: t.name,
@@ -18535,7 +18535,7 @@ class jv {
18535
18535
  }
18536
18536
  peerStageStatusHandler(e) {
18537
18537
  return u(this, null, function* () {
18538
- const t = o(this, Ni).joined.get(e.peerId), r = o(this, Ni).viewMode === "ACTIVE_GRID";
18538
+ const t = o(this, Li).joined.get(e.peerId), r = o(this, Li).viewMode === "ACTIVE_GRID";
18539
18539
  if (!t) {
18540
18540
  p.warn("err::peerStageStatusUpdate: participant not found");
18541
18541
  return;
@@ -18563,7 +18563,7 @@ class jv {
18563
18563
  });
18564
18564
  }
18565
18565
  }
18566
- Br = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap();
18566
+ Br = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap();
18567
18567
  N0([
18568
18568
  h.trace("DyteStage.setupEvents")
18569
18569
  ], jv.prototype, "setupEvents", 1);
@@ -18586,7 +18586,7 @@ const Ue = {
18586
18586
  stageStatusUpdate: 25,
18587
18587
  peerStageStatusUpdate: 26
18588
18588
  };
18589
- var ft, Wt, Wn, Jn, cr, Kn, Li, zn, Of;
18589
+ var ft, Wt, Jn, Kn, cr, zn, xi, Yn, Of;
18590
18590
  let Yt = (Of = class extends ja {
18591
18591
  constructor(e, {
18592
18592
  baseURL: t,
@@ -18611,8 +18611,8 @@ let Yt = (Of = class extends ja {
18611
18611
  f(this, "id");
18612
18612
  f(this, "name");
18613
18613
  v(this, Wt, void 0);
18614
- v(this, Wn, void 0);
18615
18614
  v(this, Jn, void 0);
18615
+ v(this, Kn, void 0);
18616
18616
  f(this, "organizationId");
18617
18617
  f(this, "picture");
18618
18618
  f(this, "private");
@@ -18623,13 +18623,13 @@ let Yt = (Of = class extends ja {
18623
18623
  f(this, "updatedAt");
18624
18624
  v(this, cr, void 0);
18625
18625
  f(this, "config");
18626
- v(this, Kn, void 0);
18626
+ v(this, zn, void 0);
18627
18627
  f(this, "active");
18628
18628
  f(this, "iframes");
18629
18629
  f(this, "enabledBy");
18630
- v(this, Li, void 0);
18631
- v(this, zn, void 0);
18632
- T(this, Li, e), this.baseURL = t, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = a, T(this, Wt, R), this.organizationId = c, this.picture = d, this.private = l, this.published = g, this.staggered = m, this.tags = y, this.type = _, this.updatedAt = new Date(P), this.active = false, this.iframes = /* @__PURE__ */ new Map(), T(this, ft, b), T(this, Wn, L), T(this, Jn, B), this.enabledBy = "", T(this, zn, H);
18630
+ v(this, xi, void 0);
18631
+ v(this, Yn, void 0);
18632
+ T(this, xi, e), this.baseURL = t, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = a, T(this, Wt, R), this.organizationId = c, this.picture = d, this.private = l, this.published = g, this.staggered = m, this.tags = y, this.type = _, this.updatedAt = new Date(P), this.active = false, this.iframes = /* @__PURE__ */ new Map(), T(this, ft, b), T(this, Jn, L), T(this, Kn, B), this.enabledBy = "", T(this, Yn, H);
18633
18633
  }
18634
18634
  sendIframeEvent(e) {
18635
18635
  this.iframes.size && this.iframes.forEach((t) => {
@@ -18721,7 +18721,7 @@ let Yt = (Of = class extends ja {
18721
18721
  messagePayload: c,
18722
18722
  peerIds: d
18723
18723
  } = r;
18724
- if (!o(this, Jn)) {
18724
+ if (!o(this, Kn)) {
18725
18725
  this.sendIframeEvent({
18726
18726
  type: Ue.chatMessage,
18727
18727
  uuid: t.uuid,
@@ -18730,7 +18730,7 @@ let Yt = (Of = class extends ja {
18730
18730
  return;
18731
18731
  }
18732
18732
  try {
18733
- yield o(this, Jn).sendMessage(c, d), this.sendIframeEvent({
18733
+ yield o(this, Kn).sendMessage(c, d), this.sendIframeEvent({
18734
18734
  type: Ue.chatMessage,
18735
18735
  uuid: t.uuid,
18736
18736
  payload: { success: true }
@@ -18754,7 +18754,7 @@ let Yt = (Of = class extends ja {
18754
18754
  isHidden: o(this, Wt).permissions.hiddenParticipant,
18755
18755
  stageStatus: o(this, Wt).stageStatus
18756
18756
  });
18757
- d ? (c = o(this, Wn).joined.get(r.peerId), o(this, Wt).id === d && (c = l)) : c = l, this.sendIframeEvent({
18757
+ d ? (c = o(this, Jn).joined.get(r.peerId), o(this, Wt).id === d && (c = l)) : c = l, this.sendIframeEvent({
18758
18758
  type: Ue.getPeer,
18759
18759
  payload: { peer: c && Ld(c) },
18760
18760
  uuid: t.uuid
@@ -18762,7 +18762,7 @@ let Yt = (Of = class extends ja {
18762
18762
  break;
18763
18763
  }
18764
18764
  case Ue.getPeers: {
18765
- const c = o(this, Wn).joined.toArray().map((d) => Ld(d));
18765
+ const c = o(this, Jn).joined.toArray().map((d) => Ld(d));
18766
18766
  this.sendIframeEvent({
18767
18767
  type: Ue.getPeers,
18768
18768
  payload: { peers: c },
@@ -18781,7 +18781,7 @@ let Yt = (Of = class extends ja {
18781
18781
  case Ue.getDisplayTitle: {
18782
18782
  this.sendIframeEvent({
18783
18783
  type: Ue.getDisplayTitle,
18784
- payload: { displayTitle: o(this, zn) },
18784
+ payload: { displayTitle: o(this, Yn) },
18785
18785
  uuid: t.uuid
18786
18786
  });
18787
18787
  break;
@@ -18789,7 +18789,7 @@ let Yt = (Of = class extends ja {
18789
18789
  case Ue.getRoomName: {
18790
18790
  this.sendIframeEvent({
18791
18791
  type: Ue.getRoomName,
18792
- payload: { roomName: o(this, Li).getValue("meetingId") },
18792
+ payload: { roomName: o(this, xi).getValue("meetingId") },
18793
18793
  uuid: t.uuid
18794
18794
  });
18795
18795
  break;
@@ -18823,7 +18823,7 @@ let Yt = (Of = class extends ja {
18823
18823
  }
18824
18824
  addPluginView(e, t = "default") {
18825
18825
  var a;
18826
- if (!o(this, Kn))
18826
+ if (!o(this, zn))
18827
18827
  throw p.error(
18828
18828
  "DytePlugin::addPluginView::no_auth_token_set_for_plugin"
18829
18829
  ), new w("No auth token set for plugin.", "0602");
@@ -18831,12 +18831,12 @@ let Yt = (Of = class extends ja {
18831
18831
  throw p.error("DytePlugin::addPluginView::iframe_was_not_provided"), new w("Iframe was not provided.", "0603");
18832
18832
  this.removePluginView(t);
18833
18833
  const r = e, i = new URL(this.baseURL), n = {
18834
- auth: o(this, Kn),
18834
+ auth: o(this, zn),
18835
18835
  parent: navigator.isReactNative ? this.baseURL : window.location.origin,
18836
- backend: o(this, Li).getValue("apiBase"),
18836
+ backend: o(this, xi).getValue("apiBase"),
18837
18837
  pluginId: this.id,
18838
- roomName: (a = o(this, Li).getValue("meetingId")) != null ? a : "",
18839
- displayTitle: o(this, zn)
18838
+ roomName: (a = o(this, xi).getValue("meetingId")) != null ? a : "",
18839
+ displayTitle: o(this, Yn)
18840
18840
  };
18841
18841
  if (Object.keys(n).forEach((c) => {
18842
18842
  i.searchParams.set(c, n[c]);
@@ -18871,7 +18871,7 @@ let Yt = (Of = class extends ja {
18871
18871
  activateForSelf() {
18872
18872
  return u(this, null, function* () {
18873
18873
  const e = ut(), t = yield e.authorizePlugin(this.id);
18874
- T(this, Kn, t), T(this, cr, new Date());
18874
+ T(this, zn, t), T(this, cr, new Date());
18875
18875
  try {
18876
18876
  const r = yield e.getPluginConfig(this.baseURL);
18877
18877
  this.config = r;
@@ -18918,7 +18918,7 @@ let Yt = (Of = class extends ja {
18918
18918
  }), T(this, cr, void 0)));
18919
18919
  });
18920
18920
  }
18921
- }, ft = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Of);
18921
+ }, ft = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Of);
18922
18922
  xs([
18923
18923
  h.trace("DytePlugin.sendIframeEvent")
18924
18924
  ], Yt.prototype, "sendIframeEvent", 1);
@@ -18953,7 +18953,7 @@ xs([
18953
18953
  Yt = xs([
18954
18954
  _t("0600")
18955
18955
  ], Yt);
18956
- var We, xi;
18956
+ var We, Vi;
18957
18957
  class Gv extends Map {
18958
18958
  constructor(t) {
18959
18959
  const {
@@ -18963,11 +18963,11 @@ class Gv extends Map {
18963
18963
  } = t;
18964
18964
  super();
18965
18965
  v(this, We, void 0);
18966
- v(this, xi, void 0);
18966
+ v(this, Vi, void 0);
18967
18967
  f(this, "onAddEvent");
18968
18968
  f(this, "onDeleteEvent");
18969
18969
  f(this, "onClearEvent");
18970
- T(this, We, new ja()), this.onAddEvent = r, this.onDeleteEvent = i, this.onClearEvent = n, T(this, xi, /* @__PURE__ */ new Map());
18970
+ T(this, We, new ja()), this.onAddEvent = r, this.onDeleteEvent = i, this.onClearEvent = n, T(this, Vi, /* @__PURE__ */ new Map());
18971
18971
  }
18972
18972
  emit(t, ...r) {
18973
18973
  return o(this, We).emit(t, ...r);
@@ -19018,19 +19018,19 @@ class Gv extends Map {
19018
19018
  const n = super.set(t, r), a = (c, ...d) => {
19019
19019
  this.emit(c, r, ...d);
19020
19020
  };
19021
- return o(this, xi).set(t, a), r.on("*", a), i && o(this, We).emit(this.onAddEvent, r), n;
19021
+ return o(this, Vi).set(t, a), r.on("*", a), i && o(this, We).emit(this.onAddEvent, r), n;
19022
19022
  }
19023
19023
  delete(t, r = true, i = false) {
19024
19024
  const n = this.get(t);
19025
19025
  if (!n)
19026
19026
  return false;
19027
- n.removeListener("*", o(this, xi).get(t));
19027
+ n.removeListener("*", o(this, Vi).get(t));
19028
19028
  const a = super.delete(t);
19029
19029
  return i && n.removeAllListeners(), r && o(this, We).emit(this.onDeleteEvent, n), a;
19030
19030
  }
19031
19031
  clear(t = true, r = false) {
19032
19032
  this.forEach((n) => {
19033
- n.removeListener("*", o(this, xi).get(n.id)), r && n.removeAllListeners();
19033
+ n.removeListener("*", o(this, Vi).get(n.id)), r && n.removeAllListeners();
19034
19034
  });
19035
19035
  const i = super.clear();
19036
19036
  return t && o(this, We).emit(this.onClearEvent), i;
@@ -19039,7 +19039,7 @@ class Gv extends Map {
19039
19039
  return Array.from(this.values());
19040
19040
  }
19041
19041
  }
19042
- We = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap();
19042
+ We = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap();
19043
19043
  var V0 = Object.defineProperty, U0 = Object.getOwnPropertyDescriptor, Wv = (s, e, t, r) => {
19044
19044
  for (var i = r > 1 ? void 0 : r ? U0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
19045
19045
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
@@ -19084,14 +19084,14 @@ var H0 = Object.defineProperty, q0 = Object.getOwnPropertyDescriptor, qc = (s, e
19084
19084
  for (var i = r > 1 ? void 0 : r ? q0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
19085
19085
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
19086
19086
  return r && i && H0(e, t, i), i;
19087
- }, os, Yn, ec, Nf;
19087
+ }, os, Qn, ec, Nf;
19088
19088
  const Jv = (Nf = class {
19089
19089
  constructor(s, e, t, r) {
19090
19090
  f(this, "plugins");
19091
19091
  v(this, os, void 0);
19092
- v(this, Yn, void 0);
19092
+ v(this, Qn, void 0);
19093
19093
  v(this, ec, void 0);
19094
- T(this, os, e), T(this, Yn, t), T(this, ec, s), this.plugins = r, this.setupEvents();
19094
+ T(this, os, e), T(this, Qn, t), T(this, ec, s), this.plugins = r, this.setupEvents();
19095
19095
  }
19096
19096
  static init(s, e, t, r, i, n, a, c) {
19097
19097
  return u(this, null, function* () {
@@ -19252,7 +19252,7 @@ const Jv = (Nf = class {
19252
19252
  storeName: s.storeName
19253
19253
  });
19254
19254
  })
19255
- ), o(this, Yn).on(
19255
+ ), o(this, Qn).on(
19256
19256
  Le.sendMessageToPeers,
19257
19257
  (s) => {
19258
19258
  const e = zt == null ? void 0 : zt.formatSocketServiceMessage(
@@ -19260,7 +19260,7 @@ const Jv = (Nf = class {
19260
19260
  );
19261
19261
  this.broadcastIframeEvent(Ue.chatMessage, { message: e });
19262
19262
  }
19263
- ), o(this, Yn).on(
19263
+ ), o(this, Qn).on(
19264
19264
  Le.sendMessageToRoom,
19265
19265
  (s) => {
19266
19266
  const e = zt == null ? void 0 : zt.formatSocketServiceMessage(
@@ -19279,7 +19279,7 @@ const Jv = (Nf = class {
19279
19279
  this.broadcastIframeEvent(Ue.stageStatusUpdate, s);
19280
19280
  });
19281
19281
  }
19282
- }, os = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), Nf);
19282
+ }, os = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), Nf);
19283
19283
  let Ka = Jv;
19284
19284
  qc([
19285
19285
  h.trace("PluginController.getRoomPlugins")
@@ -19373,16 +19373,16 @@ var G0 = Object.defineProperty, W0 = Object.getOwnPropertyDescriptor, za = (s, e
19373
19373
  for (var i = r > 1 ? void 0 : r ? W0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
19374
19374
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
19375
19375
  return r && i && G0(e, t, i), i;
19376
- }, Qn, tc, Xn, gd, Lf;
19377
- let fi = (Lf = class extends Xt {
19376
+ }, Xn, tc, Zn, gd, Lf;
19377
+ let gi = (Lf = class extends Xt {
19378
19378
  constructor(e, t) {
19379
19379
  super();
19380
- v(this, Xn);
19381
- v(this, Qn, void 0);
19380
+ v(this, Zn);
19381
+ v(this, Xn, void 0);
19382
19382
  v(this, tc, void 0);
19383
19383
  f(this, "recordingPeerIds", []);
19384
19384
  f(this, "recordings", []);
19385
- T(this, tc, e), T(this, Qn, t);
19385
+ T(this, tc, e), T(this, Xn, t);
19386
19386
  }
19387
19387
  get recordingState() {
19388
19388
  return this.recordings.some((e) => e.state === "RECORDING") ? "RECORDING" : this.recordings.some((e) => e.state === "PAUSED") ? "PAUSED" : this.recordings.some((e) => e.state === "STARTING") ? "STARTING" : this.recordings.some((e) => e.state === "STOPPING") ? "STOPPING" : "IDLE";
@@ -19392,7 +19392,7 @@ let fi = (Lf = class extends Xt {
19392
19392
  }
19393
19393
  start(e) {
19394
19394
  return u(this, null, function* () {
19395
- if (!o(this, Qn).permissions.canRecord)
19395
+ if (!o(this, Xn).permissions.canRecord)
19396
19396
  throw p.error("DyteRecording::start::permission_denied"), new w("User does not have permission to start recording", "1001");
19397
19397
  if ((e == null ? void 0 : e.allowMultiple) !== true && (this.recordingState === "STARTING" || this.recordingState === "RECORDING" || this.recordingState === "STOPPING"))
19398
19398
  throw p.error("DyteRecording::start::recording_in_progress", {
@@ -19419,22 +19419,22 @@ let fi = (Lf = class extends Xt {
19419
19419
  }
19420
19420
  stop(e) {
19421
19421
  return u(this, null, function* () {
19422
- yield F(this, Xn, gd).call(this, "stop", ["RECORDING", "PAUSED"], e);
19422
+ yield F(this, Zn, gd).call(this, "stop", ["RECORDING", "PAUSED"], e);
19423
19423
  });
19424
19424
  }
19425
19425
  pause(e) {
19426
19426
  return u(this, null, function* () {
19427
- yield F(this, Xn, gd).call(this, "pause", ["RECORDING"], e);
19427
+ yield F(this, Zn, gd).call(this, "pause", ["RECORDING"], e);
19428
19428
  });
19429
19429
  }
19430
19430
  resume(e) {
19431
19431
  return u(this, null, function* () {
19432
- yield F(this, Xn, gd).call(this, "resume", ["PAUSED"], e);
19432
+ yield F(this, Zn, gd).call(this, "resume", ["PAUSED"], e);
19433
19433
  });
19434
19434
  }
19435
- }, Qn = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakSet(), gd = function(e, t, r) {
19435
+ }, Xn = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakSet(), gd = function(e, t, r) {
19436
19436
  return u(this, null, function* () {
19437
- if (!o(this, Qn).permissions.canRecord)
19437
+ if (!o(this, Xn).permissions.canRecord)
19438
19438
  throw p.error("DyteRecording::stop::permission_denied"), new w("User does not have permission to stop recording", "1001");
19439
19439
  let i = [];
19440
19440
  if (r !== void 0) {
@@ -19467,22 +19467,22 @@ let fi = (Lf = class extends Xt {
19467
19467
  }, Lf);
19468
19468
  za([
19469
19469
  h.trace("DyteRecording.updateRecordings")
19470
- ], fi.prototype, "updateRecordings", 1);
19470
+ ], gi.prototype, "updateRecordings", 1);
19471
19471
  za([
19472
19472
  h.trace("DyteRecording.start")
19473
- ], fi.prototype, "start", 1);
19473
+ ], gi.prototype, "start", 1);
19474
19474
  za([
19475
19475
  h.trace("DyteRecording.stop")
19476
- ], fi.prototype, "stop", 1);
19476
+ ], gi.prototype, "stop", 1);
19477
19477
  za([
19478
19478
  h.trace("DyteRecording.stop")
19479
- ], fi.prototype, "pause", 1);
19479
+ ], gi.prototype, "pause", 1);
19480
19480
  za([
19481
19481
  h.trace("DyteRecording.stop")
19482
- ], fi.prototype, "resume", 1);
19483
- fi = za([
19482
+ ], gi.prototype, "resume", 1);
19483
+ gi = za([
19484
19484
  _t("1000")
19485
- ], fi);
19485
+ ], gi);
19486
19486
  var J0 = Object.defineProperty, K0 = Object.getOwnPropertyDescriptor, z0 = (s, e, t, r) => {
19487
19487
  for (var i = r > 1 ? void 0 : r ? K0(e, t) : e, n = s.length - 1, a; n >= 0; n--)
19488
19488
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
@@ -19493,18 +19493,18 @@ class Kv {
19493
19493
  f(this, "recording");
19494
19494
  f(this, "room");
19495
19495
  v(this, Xd, void 0);
19496
- T(this, Xd, e), this.recording = new fi(e, t), this.room = r, this.setupEvents();
19496
+ T(this, Xd, e), this.recording = new gi(e, t), this.room = r, this.setupEvents();
19497
19497
  }
19498
19498
  getRecordingTypeFromProtoType(e) {
19499
19499
  let t;
19500
19500
  switch (e) {
19501
- case cn.BROWSER:
19501
+ case dn.BROWSER:
19502
19502
  t = "BROWSER";
19503
19503
  break;
19504
- case cn.COMPOSITE:
19504
+ case dn.COMPOSITE:
19505
19505
  t = "COMPOSITE";
19506
19506
  break;
19507
- case cn.TRACK:
19507
+ case dn.TRACK:
19508
19508
  t = "TRACK";
19509
19509
  break;
19510
19510
  default:
@@ -20041,15 +20041,15 @@ function oO(s, e) {
20041
20041
  return n.stream.getAudioTracks()[0];
20042
20042
  });
20043
20043
  }
20044
- var Vi;
20044
+ var Ui;
20045
20045
  class cO {
20046
20046
  constructor() {
20047
- v(this, Vi, void 0);
20047
+ v(this, Ui, void 0);
20048
20048
  }
20049
20049
  terminateMiddlewareWebWorker() {
20050
- if (o(this, Vi))
20050
+ if (o(this, Ui))
20051
20051
  try {
20052
- clearInterval$1(o(this, Vi)), T(this, Vi, void 0);
20052
+ clearInterval$1(o(this, Ui)), T(this, Ui, void 0);
20053
20053
  } catch (e) {
20054
20054
  p.debug("WorkerTimers::terminateMiddlewareWebWorker::failed");
20055
20055
  }
@@ -20100,7 +20100,7 @@ class cO {
20100
20100
  a.addEventListener(
20101
20101
  "play",
20102
20102
  () => {
20103
- i.width = a.width || t.getSettings().width, i.height = a.width || t.getSettings().height, T(this, Vi, setInterval$1(
20103
+ i.width = a.width || t.getSettings().width, i.height = a.width || t.getSettings().height, T(this, Ui, setInterval$1(
20104
20104
  l,
20105
20105
  50
20106
20106
  ));
@@ -20114,7 +20114,7 @@ class cO {
20114
20114
  });
20115
20115
  }
20116
20116
  }
20117
- Vi = /* @__PURE__ */ new WeakMap();
20117
+ Ui = /* @__PURE__ */ new WeakMap();
20118
20118
  const pf = {
20119
20119
  gross: { width: { ideal: 192 }, height: { ideal: 144 } },
20120
20120
  qvga: { width: { ideal: 384 }, height: { ideal: 288 } },
@@ -20191,7 +20191,7 @@ const pf = {
20191
20191
  }), t[n][1];
20192
20192
  };
20193
20193
  var ve = /* @__PURE__ */ ((s) => (s.WEBCAM = "webcam", s.WEBCAM_BACKUP = "webcam_backup", s.MIC = "mic", s.SCREENSHARE_VIDEO = "screenshare_video", s.SCREENSHARE_AUDIO = "screenshare_audio", s))(ve || {});
20194
- const uO = qC(), Sn = Ds(
20194
+ const uO = qC(), En = Ds(
20195
20195
  uO.config.media
20196
20196
  );
20197
20197
  function pO(s) {
@@ -20202,14 +20202,14 @@ function pO(s) {
20202
20202
  enableHighBitrate: (r = s.audio.enableHighBitrate) != null ? r : false
20203
20203
  }), e.video = s.video.quality, e;
20204
20204
  }
20205
- var Ui, el;
20205
+ var $i, el;
20206
20206
  class hO {
20207
20207
  constructor(e, t) {
20208
- v(this, Ui, void 0);
20208
+ v(this, $i, void 0);
20209
20209
  v(this, el, void 0);
20210
20210
  f(this, "getScreenShareConstraints", () => {
20211
20211
  var l, g, m, y, _, P, b, R, L, B, H;
20212
- const e2 = (l = o(this, Ui)) == null ? void 0 : l.screenshare, t2 = (m = (g = e2 == null ? void 0 : e2.width) == null ? void 0 : g.max) != null ? m : 1920, r = (_ = (y = e2 == null ? void 0 : e2.height) == null ? void 0 : y.max) != null ? _ : 1080, i = (b = (P = e2 == null ? void 0 : e2.frameRate) == null ? void 0 : P.max) != null ? b : 5;
20212
+ const e2 = (l = o(this, $i)) == null ? void 0 : l.screenshare, t2 = (m = (g = e2 == null ? void 0 : e2.width) == null ? void 0 : g.max) != null ? m : 1920, r = (_ = (y = e2 == null ? void 0 : e2.height) == null ? void 0 : y.max) != null ? _ : 1080, i = (b = (P = e2 == null ? void 0 : e2.frameRate) == null ? void 0 : P.max) != null ? b : 5;
20213
20213
  let n = (L = (R = e2 == null ? void 0 : e2.frameRate) == null ? void 0 : R.ideal) != null ? L : 5;
20214
20214
  const a = e2 == null ? void 0 : e2.displaySurface, c = e2 == null ? void 0 : e2.selfBrowserSurface;
20215
20215
  Y.getValue(se.VAL_MIN_FRAMERATE) && (n = parseInt(
@@ -20237,7 +20237,7 @@ class hO {
20237
20237
  });
20238
20238
  f(this, "getAudioConstraints", (e2) => {
20239
20239
  var n, a, c, d, l, g, m, y;
20240
- const t2 = {}, r = (n = o(this, Ui)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
20240
+ const t2 = {}, r = (n = o(this, $i)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
20241
20241
  return Re.isFirefox() || Re.isWebKitBased() ? (t2.audio = {
20242
20242
  deviceId: e2,
20243
20243
  autoGainControl: (a = r == null ? void 0 : r.autoGainControl) != null ? a : true,
@@ -20256,7 +20256,7 @@ class hO {
20256
20256
  });
20257
20257
  f(this, "getVideoConstraints", (e2) => {
20258
20258
  var n, a, c, d;
20259
- const t2 = {}, r = (n = o(this, Ui)) == null ? void 0 : n.video;
20259
+ const t2 = {}, r = (n = o(this, $i)) == null ? void 0 : n.video;
20260
20260
  let i = pf.vga;
20261
20261
  if (typeof r == "string" ? i = pf[r] : r !== void 0 && (i.height.ideal = r.height.ideal, i.width.ideal = r.width.ideal), i.frameRate = {
20262
20262
  ideal: (c = (a = i.frameRate) == null ? void 0 : a.ideal) != null ? c : 24
@@ -20268,13 +20268,13 @@ class hO {
20268
20268
  }
20269
20269
  return t2.video = i, typeof t2.video == "boolean" || (e2 ? t2.video.deviceId = { exact: e2 } : t2.video.facingMode = "user"), t2;
20270
20270
  });
20271
- T(this, el, e), T(this, Ui, t);
20271
+ T(this, el, e), T(this, $i, t);
20272
20272
  }
20273
20273
  getUpdatedVideoConstraints(e) {
20274
20274
  return e;
20275
20275
  }
20276
20276
  }
20277
- Ui = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap();
20277
+ $i = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap();
20278
20278
  class ju extends Error {
20279
20279
  constructor(t, r, i) {
20280
20280
  super(r);
@@ -20315,15 +20315,15 @@ var fO = Object.defineProperty, gO = Object.getOwnPropertyDescriptor, Vs = (s, e
20315
20315
  for (var i = r > 1 ? void 0 : r ? gO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
20316
20316
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
20317
20317
  return r && i && fO(e, t, i), i;
20318
- }, Zn, ds, tl, xf;
20318
+ }, ea, ds, tl, xf;
20319
20319
  let Qt = (xf = class extends mO {
20320
20320
  constructor(e, t) {
20321
20321
  super();
20322
20322
  f(this, "availableDevices");
20323
- v(this, Zn, void 0);
20323
+ v(this, ea, void 0);
20324
20324
  v(this, ds, void 0);
20325
20325
  v(this, tl, void 0);
20326
- T(this, tl, e), T(this, ds, new hO(e, t)), T(this, Zn, new AbortController()), this.availableDevices = [], this.getAvailableDevices();
20326
+ T(this, tl, e), T(this, ds, new hO(e, t)), T(this, ea, new AbortController()), this.availableDevices = [], this.getAvailableDevices();
20327
20327
  }
20328
20328
  get constraintsBuilder() {
20329
20329
  return o(this, ds);
@@ -20331,7 +20331,7 @@ let Qt = (xf = class extends mO {
20331
20331
  destruct() {
20332
20332
  return u(this, null, function* () {
20333
20333
  var e;
20334
- (e = o(this, Zn)) == null || e.abort();
20334
+ (e = o(this, ea)) == null || e.abort();
20335
20335
  });
20336
20336
  }
20337
20337
  handlePermissionErrors(e, t) {
@@ -20603,11 +20603,11 @@ let Qt = (xf = class extends mO {
20603
20603
  m.some((y) => y.kind === "audioinput") && J.devices("AUDIO", a == null ? void 0 : a.filter((y) => y.kind === "audioinput")), m.some((y) => y.kind === "videoinput") && J.devices("VIDEO", a == null ? void 0 : a.filter((y) => y.kind === "videoinput")), m.some((y) => y.kind === "audiooutput") && J.devices("SPEAKER", a == null ? void 0 : a.filter((y) => y.kind === "audiooutput")), e(t, d, false);
20604
20604
  }
20605
20605
  }),
20606
- { signal: o(this, Zn).signal }
20606
+ { signal: o(this, ea).signal }
20607
20607
  );
20608
20608
  });
20609
20609
  }
20610
- }, Zn = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), xf);
20610
+ }, ea = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), xf);
20611
20611
  Vs([
20612
20612
  h.trace("WebMediaInterface.destruct")
20613
20613
  ], Qt.prototype, "destruct", 1);
@@ -21061,20 +21061,20 @@ fh([
21061
21061
  h.trace("AudioMediaHandler.conditionallyChangeTrack")
21062
21062
  ], Xl.prototype, "conditionallyChangeTrack", 1);
21063
21063
  const bO = Xl;
21064
- var ea;
21064
+ var ta;
21065
21065
  class kO {
21066
21066
  constructor(e) {
21067
- v(this, ea, void 0);
21067
+ v(this, ta, void 0);
21068
21068
  f(this, "currentDevice");
21069
- T(this, ea, e);
21069
+ T(this, ta, e);
21070
21070
  }
21071
21071
  setupSpeaker(e) {
21072
21072
  return u(this, null, function* () {
21073
21073
  var i, n;
21074
- if (!(o(this, ea) instanceof Zv))
21074
+ if (!(o(this, ta) instanceof Zv))
21075
21075
  return;
21076
21076
  let t = e;
21077
- if (e || ([t] = (yield o(this, ea).getAvailableDevicesByKind(
21077
+ if (e || ([t] = (yield o(this, ta).getAvailableDevicesByKind(
21078
21078
  "audiooutput"
21079
21079
  )).filter((c) => !_p(c))), !t)
21080
21080
  throw new w("No speaker found", "1608");
@@ -21092,7 +21092,7 @@ class kO {
21092
21092
  });
21093
21093
  }
21094
21094
  }
21095
- ea = /* @__PURE__ */ new WeakMap();
21095
+ ta = /* @__PURE__ */ new WeakMap();
21096
21096
  const AO = kO;
21097
21097
  class IO extends ja {
21098
21098
  constructor(t) {
@@ -21165,15 +21165,15 @@ var MO = Object.defineProperty, OO = Object.getOwnPropertyDescriptor, Zl = (s, e
21165
21165
  for (var i = r > 1 ? void 0 : r ? OO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
21166
21166
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
21167
21167
  return r && i && MO(e, t, i), i;
21168
- }, ta, rc;
21168
+ }, sa, rc;
21169
21169
  class jc extends ty {
21170
21170
  constructor(t, r, i) {
21171
21171
  super(t, r, i);
21172
- v(this, ta, void 0);
21172
+ v(this, sa, void 0);
21173
21173
  v(this, rc, {
21174
21174
  disablePerFrameCanvasRendering: false
21175
21175
  });
21176
- T(this, ta, new cO());
21176
+ T(this, sa, new cO());
21177
21177
  }
21178
21178
  onSetDevice(t) {
21179
21179
  return u(this, null, function* () {
@@ -21225,7 +21225,7 @@ class jc extends ty {
21225
21225
  return;
21226
21226
  }
21227
21227
  try {
21228
- this.transformedMediaTrack = yield o(this, ta).getTransformedVideoTrack(
21228
+ this.transformedMediaTrack = yield o(this, sa).getTransformedVideoTrack(
21229
21229
  this.middlewares,
21230
21230
  this.mediaTrack,
21231
21231
  o(this, rc)
@@ -21261,7 +21261,7 @@ class jc extends ty {
21261
21261
  });
21262
21262
  }
21263
21263
  terminateMiddlewareWebWorker() {
21264
- o(this, ta).terminateMiddlewareWebWorker();
21264
+ o(this, sa).terminateMiddlewareWebWorker();
21265
21265
  }
21266
21266
  onTrackEnded() {
21267
21267
  return u(this, null, function* () {
@@ -21285,7 +21285,7 @@ class jc extends ty {
21285
21285
  });
21286
21286
  }
21287
21287
  }
21288
- ta = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap();
21288
+ sa = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap();
21289
21289
  Zl([
21290
21290
  h.trace("VideoMediaHandler.setTransformedTrack")
21291
21291
  ], jc.prototype, "setTransformedTrack", 1);
@@ -21307,16 +21307,16 @@ var LO = Object.defineProperty, xO = Object.getOwnPropertyDescriptor, gh = (s, e
21307
21307
  const ff = Ds(
21308
21308
  th()
21309
21309
  );
21310
- var Mt, $i, ic, sa, Vf;
21310
+ var Mt, Fi, ic, ra, Vf;
21311
21311
  const Eo = (Vf = class {
21312
21312
  constructor(s) {
21313
21313
  v(this, Mt, void 0);
21314
- v(this, $i, void 0);
21314
+ v(this, Fi, void 0);
21315
21315
  v(this, ic, void 0);
21316
- v(this, sa, void 0);
21316
+ v(this, ra, void 0);
21317
21317
  if (!s)
21318
21318
  throw new w("Could not load preset.", "0904");
21319
- T(this, Mt, s.config), T(this, ic, s.name), T(this, $i, s.ui || Ds(th().ui)), T(this, sa, s.permissions.plugins.config);
21319
+ T(this, Mt, s.config), T(this, ic, s.name), T(this, Fi, s.ui || Ds(th().ui)), T(this, ra, s.permissions.plugins.config);
21320
21320
  }
21321
21321
  static fromResponse(s) {
21322
21322
  return new Eo(s);
@@ -21357,7 +21357,7 @@ const Eo = (Vf = class {
21357
21357
  return {
21358
21358
  isEnabled: true,
21359
21359
  elements: {
21360
- logo: o(this, $i).designTokens.logo,
21360
+ logo: o(this, Fi).designTokens.logo,
21361
21361
  timer: true,
21362
21362
  title: true,
21363
21363
  participantCount: true,
@@ -21384,35 +21384,35 @@ const Eo = (Vf = class {
21384
21384
  return [];
21385
21385
  }
21386
21386
  get disabledPlugins() {
21387
- return Object.keys(o(this, sa)).filter((s) => o(this, sa)[s].disabled);
21387
+ return Object.keys(o(this, ra)).filter((s) => o(this, ra)[s].disabled);
21388
21388
  }
21389
21389
  get designTokens() {
21390
- return o(this, $i).designTokens;
21390
+ return o(this, Fi).designTokens;
21391
21391
  }
21392
21392
  get configDiff() {
21393
- return o(this, $i).configDiff;
21393
+ return o(this, Fi).configDiff;
21394
21394
  }
21395
21395
  get mediaConstraints() {
21396
21396
  var s, e, t, r, i, n, a, c, d, l, g, m, y, _, P, b, R, L, B, H, O, G, re, ce;
21397
21397
  return {
21398
21398
  audio: {
21399
- enableStereo: (r = (t = (e = (s = o(this, Mt)) == null ? void 0 : s.media) == null ? void 0 : e.audio) == null ? void 0 : t.enableStereo) != null ? r : Sn.audio.enableStereo,
21400
- enableHighBitrate: (c = (a = (n = (i = o(this, Mt)) == null ? void 0 : i.media) == null ? void 0 : n.audio) == null ? void 0 : a.enableHighBitrate) != null ? c : Sn.audio.enableHighBitrate
21399
+ enableStereo: (r = (t = (e = (s = o(this, Mt)) == null ? void 0 : s.media) == null ? void 0 : e.audio) == null ? void 0 : t.enableStereo) != null ? r : En.audio.enableStereo,
21400
+ enableHighBitrate: (c = (a = (n = (i = o(this, Mt)) == null ? void 0 : i.media) == null ? void 0 : n.audio) == null ? void 0 : a.enableHighBitrate) != null ? c : En.audio.enableHighBitrate
21401
21401
  },
21402
21402
  video: {
21403
- quality: (m = (g = (l = (d = o(this, Mt)) == null ? void 0 : d.media) == null ? void 0 : l.video) == null ? void 0 : g.quality) != null ? m : Sn.video.quality,
21404
- frameRate: (b = (P = (_ = (y = o(this, Mt)) == null ? void 0 : y.media) == null ? void 0 : _.video) == null ? void 0 : P.frameRate) != null ? b : Sn.video.frameRate
21403
+ quality: (m = (g = (l = (d = o(this, Mt)) == null ? void 0 : d.media) == null ? void 0 : l.video) == null ? void 0 : g.quality) != null ? m : En.video.quality,
21404
+ frameRate: (b = (P = (_ = (y = o(this, Mt)) == null ? void 0 : y.media) == null ? void 0 : _.video) == null ? void 0 : P.frameRate) != null ? b : En.video.frameRate
21405
21405
  },
21406
21406
  screenshare: {
21407
- quality: (H = (B = (L = (R = o(this, Mt)) == null ? void 0 : R.media) == null ? void 0 : L.screenshare) == null ? void 0 : B.quality) != null ? H : Sn.screenshare.quality,
21408
- frameRate: (ce = (re = (G = (O = o(this, Mt)) == null ? void 0 : O.media) == null ? void 0 : G.screenshare) == null ? void 0 : re.frameRate) != null ? ce : Sn.screenshare.frameRate
21407
+ quality: (H = (B = (L = (R = o(this, Mt)) == null ? void 0 : R.media) == null ? void 0 : L.screenshare) == null ? void 0 : B.quality) != null ? H : En.screenshare.quality,
21408
+ frameRate: (ce = (re = (G = (O = o(this, Mt)) == null ? void 0 : O.media) == null ? void 0 : G.screenshare) == null ? void 0 : re.frameRate) != null ? ce : En.screenshare.frameRate
21409
21409
  }
21410
21410
  };
21411
21411
  }
21412
21412
  get name() {
21413
21413
  return o(this, ic);
21414
21414
  }
21415
- }, Mt = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), Vf);
21415
+ }, Mt = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), Vf);
21416
21416
  let eu = Eo;
21417
21417
  gh([
21418
21418
  h.trace("DyteThemePreset.fromResponse")
@@ -21427,16 +21427,16 @@ var VO = Object.defineProperty, UO = Object.getOwnPropertyDescriptor, vh = (s, e
21427
21427
  for (var i = r > 1 ? void 0 : r ? UO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
21428
21428
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
21429
21429
  return r && i && VO(e, t, i), i;
21430
- }, ra;
21430
+ }, ia;
21431
21431
  class tu extends Xt {
21432
21432
  constructor(t) {
21433
21433
  super();
21434
- v(this, ra, void 0);
21434
+ v(this, ia, void 0);
21435
21435
  f(this, "state", "IDLE");
21436
21436
  f(this, "playbackUrl");
21437
21437
  f(this, "ingestionCredentials");
21438
21438
  f(this, "viewerCount");
21439
- T(this, ra, t), this.viewerCount = 0;
21439
+ T(this, ia, t), this.viewerCount = 0;
21440
21440
  }
21441
21441
  setLivestreamState(t) {
21442
21442
  const r = this.state;
@@ -21449,7 +21449,7 @@ class tu extends Xt {
21449
21449
  return u(this, arguments, function* (t = {
21450
21450
  manualIngestion: false
21451
21451
  }) {
21452
- if (!o(this, ra).permissions.canLivestream)
21452
+ if (!o(this, ia).permissions.canLivestream)
21453
21453
  throw p.error("DyteLivestream::start::permission_denied"), new w(
21454
21454
  "User does not have permission to start livestreaming",
21455
21455
  "1901"
@@ -21470,7 +21470,7 @@ class tu extends Xt {
21470
21470
  }
21471
21471
  stop() {
21472
21472
  return u(this, null, function* () {
21473
- if (!o(this, ra).permissions.canLivestream)
21473
+ if (!o(this, ia).permissions.canLivestream)
21474
21474
  throw p.error("DyteLivestream::stop::permission_denied"), new w(
21475
21475
  "User does not have permission to stop livestreaming",
21476
21476
  "1901"
@@ -21487,7 +21487,7 @@ class tu extends Xt {
21487
21487
  });
21488
21488
  }
21489
21489
  }
21490
- ra = /* @__PURE__ */ new WeakMap();
21490
+ ia = /* @__PURE__ */ new WeakMap();
21491
21491
  vh([
21492
21492
  h.trace("DyteLivestream.setLivestreamState")
21493
21493
  ], tu.prototype, "setLivestreamState", 1);
@@ -21501,14 +21501,14 @@ var $O = Object.defineProperty, FO = Object.getOwnPropertyDescriptor, BO = (s, e
21501
21501
  for (var i = r > 1 ? void 0 : r ? FO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
21502
21502
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
21503
21503
  return r && i && $O(e, t, i), i;
21504
- }, ia, na, dr;
21504
+ }, na, aa, dr;
21505
21505
  class sy {
21506
21506
  constructor(e, t) {
21507
21507
  f(this, "livestream");
21508
- v(this, ia, void 0);
21509
21508
  v(this, na, void 0);
21509
+ v(this, aa, void 0);
21510
21510
  v(this, dr, void 0);
21511
- T(this, na, e), this.livestream = new tu(e), T(this, dr, t), this.setupEvents();
21511
+ T(this, aa, e), this.livestream = new tu(e), T(this, dr, t), this.setupEvents();
21512
21512
  }
21513
21513
  fetchInitialLivestreamingState() {
21514
21514
  return u(this, null, function* () {
@@ -21527,7 +21527,7 @@ class sy {
21527
21527
  (e) => u(this, null, function* () {
21528
21528
  this.livestream.playbackUrl = e.playbackUrl, this.livestream.setLivestreamState("LIVESTREAMING");
21529
21529
  try {
21530
- o(this, na).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
21530
+ o(this, aa).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
21531
21531
  } catch (t) {
21532
21532
  p.error("Error: LivestreamController.fetchLivestream during startedLivestream re-fetch");
21533
21533
  }
@@ -21538,7 +21538,7 @@ class sy {
21538
21538
  if (e.manualIngest) {
21539
21539
  this.livestream.setLivestreamState("WAITING_ON_MANUAL_INGESTION");
21540
21540
  try {
21541
- o(this, na).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
21541
+ o(this, aa).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
21542
21542
  } catch (t) {
21543
21543
  p.error("Error: LivestreamController.fetchLivestream during livestreamingInvoked re-fetch");
21544
21544
  }
@@ -21557,10 +21557,10 @@ class sy {
21557
21557
  I.PEER_JOINED_INTERNAL,
21558
21558
  (e) => u(this, null, function* () {
21559
21559
  var t;
21560
- ((t = e.flags) == null ? void 0 : t.hiddenParticipant) === true && e.recorderType === "LIVESTREAMER" && (T(this, ia, e.id), this.livestream.setLivestreamState("LIVESTREAMING"));
21560
+ ((t = e.flags) == null ? void 0 : t.hiddenParticipant) === true && e.recorderType === "LIVESTREAMER" && (T(this, na, e.id), this.livestream.setLivestreamState("LIVESTREAMING"));
21561
21561
  })
21562
21562
  ), A.on(I.PEER_CLOSED, (e) => {
21563
- e.id === o(this, ia) && (T(this, ia, void 0), this.livestream.setLivestreamState("IDLE"));
21563
+ e.id === o(this, na) && (T(this, na, void 0), this.livestream.setLivestreamState("IDLE"));
21564
21564
  }), A.onAsync(I.LEAVE_MEDIA_ROOM, () => u(this, null, function* () {
21565
21565
  this.livestream.playbackUrl || (p.info("Fetching livestreaming state on leave stage"), yield this.fetchInitialLivestreamingState());
21566
21566
  })), A.on(I.SOCKET_SERVICE_ROOM_JOINED, () => u(this, null, function* () {
@@ -21572,7 +21572,7 @@ class sy {
21572
21572
  }));
21573
21573
  }
21574
21574
  }
21575
- ia = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap();
21575
+ na = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap();
21576
21576
  BO([
21577
21577
  h.trace("LivestreamController.setupEvents")
21578
21578
  ], sy.prototype, "setupEvents", 1);
@@ -21756,29 +21756,29 @@ var jO = Object.defineProperty, GO = Object.getOwnPropertyDescriptor, WO = (s, e
21756
21756
  for (var i = r > 1 ? void 0 : r ? GO(e, t) : e, n = s.length - 1, a; n >= 0; n--)
21757
21757
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
21758
21758
  return r && i && jO(e, t, i), i;
21759
- }, Fi, Bi, nc, Pp, ac, Gr, rl, ny;
21759
+ }, Bi, Hi, nc, Pp, ac, Gr, rl, ny;
21760
21760
  class iy {
21761
21761
  constructor(e, t) {
21762
21762
  v(this, nc);
21763
21763
  v(this, rl);
21764
21764
  f(this, "stores", /* @__PURE__ */ new Map());
21765
- v(this, Fi, void 0);
21766
- v(this, Bi, "");
21765
+ v(this, Bi, void 0);
21766
+ v(this, Hi, "");
21767
21767
  v(this, ac, void 0);
21768
21768
  v(this, Gr, /* @__PURE__ */ new Map());
21769
- T(this, Fi, t), T(this, Bi, e.getValue("meetingId")), T(this, ac, e), F(this, rl, ny).call(this);
21769
+ T(this, Bi, t), T(this, Hi, e.getValue("meetingId")), T(this, ac, e), F(this, rl, ny).call(this);
21770
21770
  }
21771
21771
  create(e) {
21772
21772
  const t = new Bt(
21773
- { name: e, socketHandler: o(this, Fi), meetingId: o(this, Bi) }
21773
+ { name: e, socketHandler: o(this, Bi), meetingId: o(this, Hi) }
21774
21774
  );
21775
- return o(this, Fi).storeGetKeys(o(this, Bi), e, []), new Promise((i, n) => {
21775
+ return o(this, Bi).storeGetKeys(o(this, Hi), e, []), new Promise((i, n) => {
21776
21776
  const a = setTimeout(() => n(Error("Failed")), 3e3);
21777
21777
  o(this, Gr).set(e, { rejectTimeout: a, resolve: i, store: t });
21778
21778
  });
21779
21779
  }
21780
21780
  }
21781
- Fi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakSet(), Pp = function() {
21781
+ Bi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakSet(), Pp = function() {
21782
21782
  return o(this, ac).getValue("peerId");
21783
21783
  }, ac = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), rl = /* @__PURE__ */ new WeakSet(), ny = function() {
21784
21784
  [
@@ -21786,11 +21786,11 @@ Fi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), nc = /*
21786
21786
  z.storeGetKeys,
21787
21787
  z.storeDeleteKeys
21788
21788
  ].forEach((e) => {
21789
- o(this, Fi).on(
21789
+ o(this, Bi).on(
21790
21790
  e,
21791
21791
  (t) => u(this, null, function* () {
21792
21792
  var n, a;
21793
- if (t.pluginId !== o(this, Bi))
21793
+ if (t.pluginId !== o(this, Hi))
21794
21794
  return;
21795
21795
  const r = (n = t.storeItems) == null ? void 0 : n.map((c) => {
21796
21796
  var d;
@@ -21823,7 +21823,7 @@ Fi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), nc = /*
21823
21823
  WO([
21824
21824
  h.trace("DyteStoreManager.create")
21825
21825
  ], iy.prototype, "create", 1);
21826
- function bi(s) {
21826
+ function ki(s) {
21827
21827
  var e, t, r, i, n, a, c, d, l, g, m, y, _;
21828
21828
  return s ? {
21829
21829
  media: {
@@ -21858,14 +21858,14 @@ var JO = Object.defineProperty, KO = Object.getOwnPropertyDescriptor, Ht = (s, e
21858
21858
  return r && i && JO(e, t, i), i;
21859
21859
  };
21860
21860
  const zO = 0.8, YO = 1.2;
21861
- var aa, oa, Wr, Hi, _o, qi, Po, il, ay, lr, oc, Jr, ca, vd, ur, nl, cc, Cp, Uf;
21861
+ var oa, ca, Wr, qi, _o, ji, Po, il, ay, lr, oc, Jr, da, vd, ur, nl, cc, Cp, Uf;
21862
21862
  let pt = (Uf = class extends Xt {
21863
21863
  constructor(e, t, r, i) {
21864
21864
  super();
21865
- v(this, Hi);
21866
21865
  v(this, qi);
21866
+ v(this, ji);
21867
21867
  v(this, il);
21868
- v(this, ca);
21868
+ v(this, da);
21869
21869
  v(this, cc);
21870
21870
  f(this, "id");
21871
21871
  f(this, "userId");
@@ -21883,9 +21883,9 @@ let pt = (Uf = class extends Xt {
21883
21883
  f(this, "screenShareEnabled");
21884
21884
  f(this, "producers");
21885
21885
  f(this, "manualProducerConfig");
21886
- v(this, aa, void 0);
21887
- f(this, "supportsRemoteControl", false);
21888
21886
  v(this, oa, void 0);
21887
+ f(this, "supportsRemoteControl", false);
21888
+ v(this, ca, void 0);
21889
21889
  f(this, "presetName");
21890
21890
  v(this, Wr, void 0);
21891
21891
  v(this, lr, void 0);
@@ -21926,25 +21926,25 @@ let pt = (Uf = class extends Xt {
21926
21926
  producers: H,
21927
21927
  metadata: O
21928
21928
  } = t;
21929
- this.id = n, this.userId = a, this.name = c, this.device = d, this.picture = l, this.isHost = g, this.flags = m, this.manualProducerConfig = Sw, T(this, oa, _ != null ? _ : "ON_STAGE"), this.customParticipantId = P != null ? P : y, this.audioEnabled = !b, this.audioTrack = R, this.videoEnabled = L, this.videoTrack = B, this.screenShareTracks = {
21929
+ this.id = n, this.userId = a, this.name = c, this.device = d, this.picture = l, this.isHost = g, this.flags = m, this.manualProducerConfig = Sw, T(this, ca, _ != null ? _ : "ON_STAGE"), this.customParticipantId = P != null ? P : y, this.audioEnabled = !b, this.audioTrack = R, this.videoEnabled = L, this.videoTrack = B, this.screenShareTracks = {
21930
21930
  audio: void 0,
21931
21931
  video: void 0
21932
- }, this.producers = H != null ? H : [], this.presetName = O == null ? void 0 : O.preset_name, T(this, aa, false), T(this, lr, r), T(this, oc, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this), F(this, cc, Cp).call(this);
21932
+ }, this.producers = H != null ? H : [], this.presetName = O == null ? void 0 : O.preset_name, T(this, oa, false), T(this, lr, r), T(this, oc, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this), F(this, cc, Cp).call(this);
21933
21933
  }
21934
21934
  get clientSpecificId() {
21935
21935
  return this.customParticipantId;
21936
21936
  }
21937
21937
  get stageStatus() {
21938
- return o(this, oa);
21938
+ return o(this, ca);
21939
21939
  }
21940
21940
  setVideoEnabled(e, t = true) {
21941
- this.videoEnabled = e, t && (p.info("DyteParticipant::setVideoEnabled::videoUpdate", N({}, bi(this))), this.emit("videoUpdate", {
21941
+ this.videoEnabled = e, t && (p.info("DyteParticipant::setVideoEnabled::videoUpdate", N({}, ki(this))), this.emit("videoUpdate", {
21942
21942
  videoEnabled: this.videoEnabled,
21943
21943
  videoTrack: this.videoTrack
21944
21944
  }));
21945
21945
  }
21946
21946
  setAudioEnabled(e, t = true) {
21947
- this.audioEnabled = e, t && (p.info("DyteParticipant::setAudioEnabled::audioUpdate", N({}, bi(this))), this.emit("audioUpdate", {
21947
+ this.audioEnabled = e, t && (p.info("DyteParticipant::setAudioEnabled::audioUpdate", N({}, ki(this))), this.emit("audioUpdate", {
21948
21948
  audioEnabled: this.audioEnabled,
21949
21949
  audioTrack: this.audioTrack
21950
21950
  }));
@@ -21960,40 +21960,40 @@ let pt = (Uf = class extends Xt {
21960
21960
  }
21961
21961
  pin() {
21962
21962
  return u(this, null, function* () {
21963
- if (!o(this, qi, Po))
21963
+ if (!o(this, ji, Po))
21964
21964
  throw new w("Can`t pin participant without joining room", "1205");
21965
21965
  if (!o(this, lr).permissions.pinParticipant)
21966
21966
  throw new w("You do not have permission to pin participants.", "1201");
21967
- return o(this, Hi, _o).pinPeer(this.id);
21967
+ return o(this, qi, _o).pinPeer(this.id);
21968
21968
  });
21969
21969
  }
21970
21970
  unpin() {
21971
21971
  return u(this, null, function* () {
21972
- if (!o(this, qi, Po))
21972
+ if (!o(this, ji, Po))
21973
21973
  throw new w("Can`t unpin participant without joining room", "1205");
21974
21974
  if (!o(this, lr).permissions.pinParticipant)
21975
21975
  throw new w("You do not have permission to unpin participants.", "1201");
21976
- return o(this, Hi, _o).pinPeer(null);
21976
+ return o(this, qi, _o).pinPeer(null);
21977
21977
  });
21978
21978
  }
21979
21979
  setIsPinned(e, t = true) {
21980
21980
  var i;
21981
- T(this, aa, e);
21981
+ T(this, oa, e);
21982
21982
  const r = e ? "pinned" : "unpinned";
21983
- (i = o(this, ca, vd)) == null || i.updateSource(this.id, { pinned: e }), t && this.emit(r, this);
21983
+ (i = o(this, da, vd)) == null || i.updateSource(this.id, { pinned: e }), t && this.emit(r, this);
21984
21984
  }
21985
21985
  disableAudio() {
21986
21986
  return u(this, null, function* () {
21987
21987
  const e = this.id;
21988
21988
  if (p.info("DyteParticipant::disable_audio", {
21989
21989
  dyteParticipant: { id: e }
21990
- }), !o(this, qi, Po))
21990
+ }), !o(this, ji, Po))
21991
21991
  throw new w(
21992
21992
  "Can`t disable participant audio without joining room",
21993
21993
  "1205"
21994
21994
  );
21995
21995
  if (o(this, lr).permissions.canDisableParticipantAudio)
21996
- return o(this, Hi, _o).disableAudio(e);
21996
+ return o(this, qi, _o).disableAudio(e);
21997
21997
  throw p.error("DyteParticipant::unauthorized_disable_audio", {
21998
21998
  dyteParticipant: { id: e }
21999
21999
  }), new w(
@@ -22028,13 +22028,13 @@ let pt = (Uf = class extends Xt {
22028
22028
  const e = this.id;
22029
22029
  if (p.info("DyteParticipant::disable_video", {
22030
22030
  dyteParticipant: { id: e }
22031
- }), !o(this, qi, Po))
22031
+ }), !o(this, ji, Po))
22032
22032
  throw new w(
22033
22033
  "Can`t disable participant video without joining room",
22034
22034
  "1205"
22035
22035
  );
22036
22036
  if (o(this, lr).permissions.canDisableParticipantVideo)
22037
- return o(this, Hi, _o).disableVideo(e);
22037
+ return o(this, qi, _o).disableVideo(e);
22038
22038
  throw p.error("DyteParticipant::unauthorized_disable_video", {
22039
22039
  dyteParticipant: { id: e }
22040
22040
  }), new w(
@@ -22049,15 +22049,15 @@ let pt = (Uf = class extends Xt {
22049
22049
  });
22050
22050
  }
22051
22051
  setStageStatus(e) {
22052
- T(this, oa, e), this.emit("stageStatusUpdate", this);
22052
+ T(this, ca, e), this.emit("stageStatusUpdate", this);
22053
22053
  }
22054
22054
  get isPinned() {
22055
- return o(this, aa);
22055
+ return o(this, oa);
22056
22056
  }
22057
22057
  registerVideoElement(e) {
22058
22058
  var r, i, n, a;
22059
22059
  let t;
22060
- (i = (r = o(this, Jr).get(e)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (t = new ResizeObserver(() => o(this, nl).call(this, e)), t.observe(e)), o(this, Jr).set(e, { observer: t }), this.updateVideo(e), (a = o(this, ca, vd)) == null || a.addSource(
22060
+ (i = (r = o(this, Jr).get(e)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (t = new ResizeObserver(() => o(this, nl).call(this, e)), t.observe(e)), o(this, Jr).set(e, { observer: t }), this.updateVideo(e), (a = o(this, da, vd)) == null || a.addSource(
22061
22061
  this.id,
22062
22062
  e,
22063
22063
  this.videoEnabled,
@@ -22069,7 +22069,7 @@ let pt = (Uf = class extends Xt {
22069
22069
  }
22070
22070
  deregisterVideoElement(e) {
22071
22071
  var t, r, i;
22072
- e.srcObject = void 0, (r = (t = o(this, Jr).get(e)) == null ? void 0 : t.observer) == null || r.disconnect(), o(this, Jr).delete(e), (i = o(this, ca, vd)) == null || i.removeSource(this.id);
22072
+ e.srcObject = void 0, (r = (t = o(this, Jr).get(e)) == null ? void 0 : t.observer) == null || r.disconnect(), o(this, Jr).delete(e), (i = o(this, da, vd)) == null || i.removeSource(this.id);
22073
22073
  }
22074
22074
  updateVideo(e) {
22075
22075
  var t;
@@ -22085,13 +22085,13 @@ let pt = (Uf = class extends Xt {
22085
22085
  e.srcObject = void 0;
22086
22086
  e.style.display = this.videoEnabled ? "block" : "none";
22087
22087
  }
22088
- }, aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakSet(), _o = function() {
22088
+ }, oa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakSet(), _o = function() {
22089
22089
  return o(this, Wr).getValue("roomNodeClient");
22090
- }, qi = /* @__PURE__ */ new WeakSet(), Po = function() {
22090
+ }, ji = /* @__PURE__ */ new WeakSet(), Po = function() {
22091
22091
  return o(this, Wr).getValue("connectionHandler").mediaJoined;
22092
22092
  }, il = /* @__PURE__ */ new WeakSet(), ay = function() {
22093
22093
  return o(this, Wr).getValue("connectionHandler").socketJoined;
22094
- }, lr = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakSet(), vd = function() {
22094
+ }, lr = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakSet(), vd = function() {
22095
22095
  return o(this, Wr).getValue("pip");
22096
22096
  }, ur = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), cc = /* @__PURE__ */ new WeakSet(), Cp = function() {
22097
22097
  Array.from(o(this, Jr).keys()).forEach(this.updateVideo);
@@ -22298,13 +22298,13 @@ var s1 = Object.defineProperty, r1 = Object.getOwnPropertyDescriptor, Fe = (s, e
22298
22298
  return r && i && s1(e, t, i), i;
22299
22299
  };
22300
22300
  const i1 = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
22301
- var ls, ji, Co, Gi, Ro, da, yd, Wi, Ot, $f;
22301
+ var ls, Gi, Co, Wi, Ro, la, yd, Ji, Ot, $f;
22302
22302
  let Ae = ($f = class extends Xt {
22303
22303
  constructor(e, t, r) {
22304
22304
  super();
22305
- v(this, ji);
22306
22305
  v(this, Gi);
22307
- v(this, da);
22306
+ v(this, Wi);
22307
+ v(this, la);
22308
22308
  f(this, "waitlisted");
22309
22309
  f(this, "joined");
22310
22310
  f(this, "active");
@@ -22313,7 +22313,7 @@ let Ae = ($f = class extends Xt {
22313
22313
  f(this, "pinned");
22314
22314
  f(this, "all");
22315
22315
  v(this, ls, void 0);
22316
- v(this, Wi, void 0);
22316
+ v(this, Ji, void 0);
22317
22317
  v(this, Ot, void 0);
22318
22318
  f(this, "rateLimitConfig", {
22319
22319
  maxInvocations: 5,
@@ -22323,7 +22323,7 @@ let Ae = ($f = class extends Xt {
22323
22323
  f(this, "currentPage");
22324
22324
  f(this, "lastActiveSpeaker");
22325
22325
  f(this, "selectedPeers", oy);
22326
- T(this, ls, e), T(this, Wi, t), T(this, Ot, r), this.waitlisted = new Ur(), this.joined = new Ur(), this.videoSubscribed = new Ur(), this.audioSubscribed = new Ur(), this.active = this.videoSubscribed, this.pinned = new Ur(), this.all = new ZO(), this.viewMode = "ACTIVE_GRID", this.currentPage = 0, this.setupEvents();
22326
+ T(this, ls, e), T(this, Ji, t), T(this, Ot, r), this.waitlisted = new Ur(), this.joined = new Ur(), this.videoSubscribed = new Ur(), this.audioSubscribed = new Ur(), this.active = this.videoSubscribed, this.pinned = new Ur(), this.all = new ZO(), this.viewMode = "ACTIVE_GRID", this.currentPage = 0, this.setupEvents();
22327
22327
  }
22328
22328
  get pip() {
22329
22329
  return o(this, ls).getValue("pip");
@@ -22353,7 +22353,7 @@ let Ae = ($f = class extends Xt {
22353
22353
  setMaxActiveParticipantsCount(e) {
22354
22354
  if (e < 0 || e > 24)
22355
22355
  throw new w("0 <= Max active participants count limit <= 24", "1203");
22356
- o(this, ls).setValue("maxPreferredStreams", e), o(this, da, yd) && A.emit(I.UPDATE_ACTIVE);
22356
+ o(this, ls).setValue("maxPreferredStreams", e), o(this, la, yd) && A.emit(I.UPDATE_ACTIVE);
22357
22357
  }
22358
22358
  get pageCount() {
22359
22359
  if (this.viewMode === "PAGINATED") {
@@ -22366,7 +22366,7 @@ let Ae = ($f = class extends Xt {
22366
22366
  }
22367
22367
  acceptWaitingRoomRequest(e) {
22368
22368
  var r, i;
22369
- if (!o(this, Gi, Ro))
22369
+ if (!o(this, Wi, Ro))
22370
22370
  throw new w(
22371
22371
  "Can`t accept waiting room request without joining room",
22372
22372
  "1205"
@@ -22386,7 +22386,7 @@ let Ae = ($f = class extends Xt {
22386
22386
  rejectWaitingRoomRequest(e) {
22387
22387
  return u(this, null, function* () {
22388
22388
  var r, i;
22389
- if (!o(this, Gi, Ro))
22389
+ if (!o(this, Wi, Ro))
22390
22390
  throw new w(
22391
22391
  "Can`t reject waiting room request without joining room",
22392
22392
  "1205"
@@ -22475,7 +22475,7 @@ let Ae = ($f = class extends Xt {
22475
22475
  i.push(c);
22476
22476
  }
22477
22477
  }
22478
- }), yield o(this, ji, Co).createConsumers(i);
22478
+ }), yield o(this, Gi, Co).createConsumers(i);
22479
22479
  });
22480
22480
  }
22481
22481
  unsubscribe(r) {
@@ -22519,7 +22519,7 @@ let Ae = ($f = class extends Xt {
22519
22519
  i.push(c);
22520
22520
  }
22521
22521
  }
22522
- }), yield o(this, ji, Co).closeConsumers(i);
22522
+ }), yield o(this, Gi, Co).closeConsumers(i);
22523
22523
  });
22524
22524
  }
22525
22525
  getPeerIdsForCurrentPage() {
@@ -22565,10 +22565,10 @@ let Ae = ($f = class extends Xt {
22565
22565
  return u(this, null, function* () {
22566
22566
  if (p.info("DyteParticipants::disable_all_audio", {
22567
22567
  actions: { disableAllAudio: { allowUnmute: e } }
22568
- }), !o(this, da, yd))
22568
+ }), !o(this, la, yd))
22569
22569
  throw new w("Can`t disable all audio without joining room", "1205");
22570
- if (o(this, Wi).permissions.canAllowParticipantAudio)
22571
- return o(this, ji, Co).muteAll(e);
22570
+ if (o(this, Ji).permissions.canAllowParticipantAudio)
22571
+ return o(this, Gi, Co).muteAll(e);
22572
22572
  throw p.error("DyteParticipants::unauthorized_disable_all_audio", {
22573
22573
  actions: { disableAllAudio: { allowUnmute: e } }
22574
22574
  }), new w(
@@ -22579,10 +22579,10 @@ let Ae = ($f = class extends Xt {
22579
22579
  }
22580
22580
  disableAllVideo() {
22581
22581
  return u(this, null, function* () {
22582
- if (p.info("DyteParticipants::disable_all_video"), !o(this, da, yd))
22582
+ if (p.info("DyteParticipants::disable_all_video"), !o(this, la, yd))
22583
22583
  throw new w("Can`t disable all video without joining room", "1205");
22584
- if (o(this, Wi).permissions.canAllowParticipantVideo)
22585
- return o(this, ji, Co).muteAllVideo();
22584
+ if (o(this, Ji).permissions.canAllowParticipantVideo)
22585
+ return o(this, Gi, Co).muteAllVideo();
22586
22586
  throw p.error("DyteParticipants::unauthorized_disable_all_video"), new w(
22587
22587
  "Unauthorized: User does not have permission to disable peer video.",
22588
22588
  "1201"
@@ -22608,9 +22608,9 @@ let Ae = ($f = class extends Xt {
22608
22608
  }
22609
22609
  kickAll() {
22610
22610
  return u(this, null, function* () {
22611
- if (p.info("DyteParticipants::kick_all"), o(this, ls).getValue("viewType") !== "LIVESTREAM" && !o(this, Gi, Ro))
22611
+ if (p.info("DyteParticipants::kick_all"), o(this, ls).getValue("viewType") !== "LIVESTREAM" && !o(this, Wi, Ro))
22612
22612
  throw new w("Can`t kick all without joining room", "1205");
22613
- if (!o(this, Wi).permissions.kickParticipant)
22613
+ if (!o(this, Ji).permissions.kickParticipant)
22614
22614
  throw p.error("DyteParticipants::unauthorized_kick_all"), new w(
22615
22615
  "Unauthorized: User does not have permission to kick peers.",
22616
22616
  "1201"
@@ -22621,7 +22621,7 @@ let Ae = ($f = class extends Xt {
22621
22621
  }
22622
22622
  broadcastMessage(e, t, r) {
22623
22623
  return u(this, null, function* () {
22624
- if (p.info("DyteParticipants::broadcastMessage"), !o(this, Gi, Ro))
22624
+ if (p.info("DyteParticipants::broadcastMessage"), !o(this, Wi, Ro))
22625
22625
  throw new w("Can`t broadcast message without joining room", "1205");
22626
22626
  if (!(e != null && e.trim()))
22627
22627
  throw new w("`type` must be a non-empty string.", "1209");
@@ -22659,15 +22659,15 @@ let Ae = ($f = class extends Xt {
22659
22659
  return o(this, Ot).getRoomPeersNonPaginated();
22660
22660
  });
22661
22661
  }
22662
- }, ls = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakSet(), Co = function() {
22662
+ }, ls = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakSet(), Co = function() {
22663
22663
  return o(this, ls).getValue("roomNodeClient");
22664
- }, Gi = /* @__PURE__ */ new WeakSet(), Ro = function() {
22664
+ }, Wi = /* @__PURE__ */ new WeakSet(), Ro = function() {
22665
22665
  var e;
22666
22666
  return ((e = o(this, ls).getValue("connectionHandler")) == null ? void 0 : e.socketJoined) === true;
22667
- }, da = /* @__PURE__ */ new WeakSet(), yd = function() {
22667
+ }, la = /* @__PURE__ */ new WeakSet(), yd = function() {
22668
22668
  var e;
22669
22669
  return ((e = o(this, ls).getValue("connectionHandler")) == null ? void 0 : e.mediaJoined) === true;
22670
- }, Wi = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), $f);
22670
+ }, Ji = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), $f);
22671
22671
  Fe([
22672
22672
  h.trace("DyteParticipants.updateRateLimits")
22673
22673
  ], Ae.prototype, "updateRateLimits", 1);
@@ -22737,7 +22737,7 @@ Fe([
22737
22737
  Ae = Fe([
22738
22738
  _t("1200")
22739
22739
  ], Ae);
22740
- var pi = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(pi || {}), nt = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(nt || {}), n1 = Object.defineProperty, a1 = Object.getOwnPropertyDescriptor, Be = (s, e, t, r) => {
22740
+ var hi = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(hi || {}), nt = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(nt || {}), n1 = Object.defineProperty, a1 = Object.getOwnPropertyDescriptor, Be = (s, e, t, r) => {
22741
22741
  for (var i = r > 1 ? void 0 : r ? a1(e, t) : e, n = s.length - 1, a; n >= 0; n--)
22742
22742
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
22743
22743
  return r && i && n1(e, t, i), i;
@@ -23674,14 +23674,14 @@ var o1 = Object.defineProperty, c1 = Object.getOwnPropertyDescriptor, Th = (s, e
23674
23674
  const ge = Ds(
23675
23675
  th().permissions
23676
23676
  );
23677
- var q, la, ua, al, wt, Gt, Ff;
23677
+ var q, ua, pa, al, wt, Gt, Ff;
23678
23678
  const wo = (Ff = class extends Xt {
23679
23679
  constructor(e, t, r, i = false) {
23680
23680
  super();
23681
23681
  v(this, wt);
23682
23682
  v(this, q, void 0);
23683
- v(this, la, void 0);
23684
23683
  v(this, ua, void 0);
23684
+ v(this, pa, void 0);
23685
23685
  v(this, al, (e2) => {
23686
23686
  var l, g, m;
23687
23687
  const d = e2, {
@@ -23700,13 +23700,13 @@ const wo = (Ff = class extends Xt {
23700
23700
  if (t2 && (t2.private && Dr(o(this, q).chat.private, t2.private), t2.public && Dr(o(this, q).chat.public, t2.public), this.emit("chatUpdate")), r2 && Dr(o(this, q).connectedMeetings, r2), a) {
23701
23701
  const y = (P) => {
23702
23702
  switch (P) {
23703
- case di.NONE:
23703
+ case li.NONE:
23704
23704
  return K.Allowed;
23705
- case di.ALLOWED:
23705
+ case li.ALLOWED:
23706
23706
  return K.Allowed;
23707
- case di.NOT_ALLOWED:
23707
+ case li.NOT_ALLOWED:
23708
23708
  return K.NotAllowed;
23709
- case di.CAN_REQUEST:
23709
+ case li.CAN_REQUEST:
23710
23710
  return K.CanRequest;
23711
23711
  default:
23712
23712
  return;
@@ -23728,7 +23728,7 @@ const wo = (Ff = class extends Xt {
23728
23728
  });
23729
23729
  if (!t)
23730
23730
  throw p.error("DytePermissionsPreset::load_preset_permissions_failed"), new w("Could not load preset permissions.", "0904");
23731
- T(this, ua, e), T(this, la, r), T(this, q, t), i && this.setupEvents();
23731
+ T(this, pa, e), T(this, ua, r), T(this, q, t), i && this.setupEvents();
23732
23732
  }
23733
23733
  setupEvents() {
23734
23734
  A.on(I.UPDATE_PERMISSIONS, o(this, al));
@@ -23744,12 +23744,12 @@ const wo = (Ff = class extends Xt {
23744
23744
  return r ? i = new wo(e, r, t, true) : i = new wo(e, ge, t), i;
23745
23745
  }
23746
23746
  get mediaRoomType() {
23747
- const { sfu: e } = o(this, ua).getValue("roomNodeOptions");
23747
+ const { sfu: e } = o(this, pa).getValue("roomNodeOptions");
23748
23748
  return e === nt.CF ? "CF" : "HIVE";
23749
23749
  }
23750
23750
  get stageEnabled() {
23751
23751
  var e;
23752
- return ((e = o(this, q)) == null ? void 0 : e.stageEnabled) || o(this, la) === Dt.Webinar || o(this, la) === Dt.Livestream;
23752
+ return ((e = o(this, q)) == null ? void 0 : e.stageEnabled) || o(this, ua) === Dt.Webinar || o(this, ua) === Dt.Livestream;
23753
23753
  }
23754
23754
  get acceptStageRequests() {
23755
23755
  var e, t;
@@ -23912,8 +23912,8 @@ const wo = (Ff = class extends Xt {
23912
23912
  get transcriptionEnabled() {
23913
23913
  return o(this, q).transcriptionEnabled;
23914
23914
  }
23915
- }, q = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakSet(), Gt = function() {
23916
- return o(this, ua).getValue("stageStatus");
23915
+ }, q = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakSet(), Gt = function() {
23916
+ return o(this, pa).getValue("stageStatus");
23917
23917
  }, Ff);
23918
23918
  let iu = wo;
23919
23919
  Th([
@@ -24290,7 +24290,7 @@ He([
24290
24290
  He([
24291
24291
  h.trace("DyteSelfMedia.setDevice")
24292
24292
  ], xe.prototype, "setDevice", 1);
24293
- const So = {}, yi = {
24293
+ const So = {}, Ti = {
24294
24294
  executeWithLock({
24295
24295
  methodName: s,
24296
24296
  lockName: e,
@@ -24331,7 +24331,7 @@ var u1 = Object.defineProperty, p1 = Object.getOwnPropertyDescriptor, Se = (s, e
24331
24331
  for (var i = r > 1 ? void 0 : r ? p1(e, t) : e, n = s.length - 1, a; n >= 0; n--)
24332
24332
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
24333
24333
  return r && i && u1(e, t, i), i;
24334
- }, pa, bt, ha, qs, zr, Pn, tt, ot, Ke, Ze, ma, fa, dc, Rp, Bf;
24334
+ }, ha, bt, ma, qs, zr, Cn, tt, ot, Ke, Ze, fa, ga, dc, Rp, Bf;
24335
24335
  let pe = (Bf = class extends xe {
24336
24336
  constructor(e, t, r, i, n) {
24337
24337
  var a;
@@ -24344,9 +24344,9 @@ let pe = (Bf = class extends xe {
24344
24344
  f(this, "picture");
24345
24345
  f(this, "customParticipantId");
24346
24346
  f(this, "waitlistStatus");
24347
- v(this, pa, void 0);
24348
- v(this, bt, void 0);
24349
24347
  v(this, ha, void 0);
24348
+ v(this, bt, void 0);
24349
+ v(this, ma, void 0);
24350
24350
  f(this, "role");
24351
24351
  f(this, "userId");
24352
24352
  f(this, "organizationId");
@@ -24356,9 +24356,9 @@ let pe = (Bf = class extends xe {
24356
24356
  f(this, "hidden", false);
24357
24357
  f(this, "presetName");
24358
24358
  f(this, "roomState", "init");
24359
- v(this, ma, /* @__PURE__ */ new Set());
24360
24359
  v(this, fa, /* @__PURE__ */ new Set());
24361
- T(this, qs, e), this.userId = t.id, this.name = t.name, this.picture = t.picture, this.customParticipantId = (a = t.customParticipantId) != null ? a : t.clientSpecificId, this.waitlistStatus = "none", T(this, bt, r), T(this, pa, i), this.hidden = false, T(this, ha, false), this.organizationId = t.organizationId, this.supportsRemoteControl = Re.isElectron(), this.device = Re.getDeviceInfo(), this.presetName = n, i.viewType !== Dt.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), F(this, dc, Rp).call(this);
24360
+ v(this, ga, /* @__PURE__ */ new Set());
24361
+ T(this, qs, e), this.userId = t.id, this.name = t.name, this.picture = t.picture, this.customParticipantId = (a = t.customParticipantId) != null ? a : t.clientSpecificId, this.waitlistStatus = "none", T(this, bt, r), T(this, ha, i), this.hidden = false, T(this, ma, false), this.organizationId = t.organizationId, this.supportsRemoteControl = Re.isElectron(), this.device = Re.getDeviceInfo(), this.presetName = n, i.viewType !== Dt.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), F(this, dc, Rp).call(this);
24362
24362
  }
24363
24363
  get stageStatus() {
24364
24364
  return o(this, qs).getValue("stageStatus");
@@ -24387,7 +24387,7 @@ let pe = (Bf = class extends xe {
24387
24387
  }
24388
24388
  setupEvents() {
24389
24389
  this.on("videoUpdate", F(this, dc, Rp)), this.localMediaHandler.on("AUDIO_TRACK_CHANGE", () => u(this, null, function* () {
24390
- if (p.info("DyteSelf::setupEvents::AUDIO_TRACK_CHANGE", N({}, bi(this))), o(this, Ke, Ze) && this.audioEnabled)
24390
+ if (p.info("DyteSelf::setupEvents::AUDIO_TRACK_CHANGE", N({}, ki(this))), o(this, Ke, Ze) && this.audioEnabled)
24391
24391
  try {
24392
24392
  yield o(this, tt, ot).shareMic(this.audioTrack);
24393
24393
  } catch (e) {
@@ -24400,7 +24400,7 @@ let pe = (Bf = class extends xe {
24400
24400
  audioTrack: this.audioTrack
24401
24401
  });
24402
24402
  })), this.localMediaHandler.on("VIDEO_TRACK_CHANGE", () => u(this, null, function* () {
24403
- if (p.info("DyteSelf::setupEvents::VIDEO_TRACK_CHANGE", N({}, bi(this))), o(this, Ke, Ze) && this.rawVideoTrack === void 0)
24403
+ if (p.info("DyteSelf::setupEvents::VIDEO_TRACK_CHANGE", N({}, ki(this))), o(this, Ke, Ze) && this.rawVideoTrack === void 0)
24404
24404
  p.info("DyteSelf::VIDEO_TRACK_CHANGE::Forcing_disable_video"), this.disableVideo();
24405
24405
  else if (this.videoEnabled && o(this, Ke, Ze))
24406
24406
  try {
@@ -24442,12 +24442,12 @@ let pe = (Bf = class extends xe {
24442
24442
  }
24443
24443
  ), this.screenShareEnabled && (yield this.localMediaHandler.disableScreenShare());
24444
24444
  }
24445
- p.info("DyteSelf::setupEvents::SCREENSHARE_TRACK_CHANGE", N({}, bi(this))), this.emit("screenShareUpdate", {
24445
+ p.info("DyteSelf::setupEvents::SCREENSHARE_TRACK_CHANGE", N({}, ki(this))), this.emit("screenShareUpdate", {
24446
24446
  screenShareEnabled: this.screenShareEnabled,
24447
24447
  screenShareTracks: this.screenShareTracks
24448
24448
  });
24449
24449
  })), this.localMediaHandler.on("SCREENSHARE_ENDED", () => u(this, null, function* () {
24450
- p.log("Disabling screenshare due to SCREENSHARE_ENDED"), yield this.disableScreenShare(), p.info("DyteSelf::setupEvents::SCREENSHARE_ENDED", N({}, bi(this)));
24450
+ p.log("Disabling screenshare due to SCREENSHARE_ENDED"), yield this.disableScreenShare(), p.info("DyteSelf::setupEvents::SCREENSHARE_ENDED", N({}, ki(this)));
24451
24451
  })), this.localMediaHandler.on("AUDIO_TRACK_SILENT", () => {
24452
24452
  J.mediaTrackMuted("AUDIO");
24453
24453
  }), this.localMediaHandler.on("FORCE_MUTE_AUDIO", () => {
@@ -24466,11 +24466,11 @@ let pe = (Bf = class extends xe {
24466
24466
  return o(this, bt);
24467
24467
  }
24468
24468
  get config() {
24469
- return o(this, pa);
24469
+ return o(this, ha);
24470
24470
  }
24471
24471
  get roomJoined() {
24472
24472
  var e;
24473
- return o(this, pa).viewType === Dt.Livestream && this.stageStatus !== "ON_STAGE" ? ((e = o(this, qs).getValue("connectionHandler")) == null ? void 0 : e.socketJoined) === true : o(this, Ke, Ze);
24473
+ return o(this, ha).viewType === Dt.Livestream && this.stageStatus !== "ON_STAGE" ? ((e = o(this, qs).getValue("connectionHandler")) == null ? void 0 : e.socketJoined) === true : o(this, Ke, Ze);
24474
24474
  }
24475
24475
  setName(e) {
24476
24476
  if (!e)
@@ -24529,7 +24529,7 @@ let pe = (Bf = class extends xe {
24529
24529
  this.emit("videoUpdate", {
24530
24530
  videoEnabled: this.videoEnabled,
24531
24531
  videoTrack: this.videoTrack
24532
- }), p.info("DyteSelf.enableVideo", N({}, bi(this)));
24532
+ }), p.info("DyteSelf.enableVideo", N({}, ki(this)));
24533
24533
  }
24534
24534
  });
24535
24535
  }
@@ -24598,12 +24598,12 @@ let pe = (Bf = class extends xe {
24598
24598
  }
24599
24599
  setIsPinned(e, t = true) {
24600
24600
  var i;
24601
- T(this, ha, e);
24601
+ T(this, ma, e);
24602
24602
  const r = e ? "pinned" : "unpinned";
24603
- (i = o(this, zr, Pn)) == null || i.updateSource(this.id, { pinned: e }), t && this.emit(r, this);
24603
+ (i = o(this, zr, Cn)) == null || i.updateSource(this.id, { pinned: e }), t && this.emit(r, this);
24604
24604
  }
24605
24605
  get isPinned() {
24606
- return o(this, ha);
24606
+ return o(this, ma);
24607
24607
  }
24608
24608
  pin() {
24609
24609
  return u(this, null, function* () {
@@ -24672,7 +24672,7 @@ let pe = (Bf = class extends xe {
24672
24672
  }
24673
24673
  registerVideoElement(e, t = false) {
24674
24674
  var r, i;
24675
- t ? o(this, ma).add(e) : o(this, fa).add(e), this.updateVideo(e), t || (i = o(this, zr, Pn)) == null || i.addSource(
24675
+ t ? o(this, fa).add(e) : o(this, ga).add(e), this.updateVideo(e), t || (i = o(this, zr, Cn)) == null || i.addSource(
24676
24676
  this.id,
24677
24677
  e,
24678
24678
  this.videoEnabled,
@@ -24683,7 +24683,7 @@ let pe = (Bf = class extends xe {
24683
24683
  );
24684
24684
  }
24685
24685
  deregisterVideoElement(e, t = false) {
24686
- e.srcObject = void 0, t ? o(this, ma).delete(e) : (o(this, fa).delete(e), o(this, zr, Pn).removeSource(this.id));
24686
+ e.srcObject = void 0, t ? o(this, fa).delete(e) : (o(this, ga).delete(e), o(this, zr, Cn).removeSource(this.id));
24687
24687
  }
24688
24688
  updateVideo(e, t = false) {
24689
24689
  var r, i, n;
@@ -24694,20 +24694,20 @@ let pe = (Bf = class extends xe {
24694
24694
  if ((a == null ? void 0 : a.id) === this.videoTrack.id)
24695
24695
  return;
24696
24696
  const c = new MediaStream();
24697
- c.addTrack(this.videoTrack), e.srcObject = c, t || (i = o(this, zr, Pn)) == null || i.enableSource(this.id);
24697
+ c.addTrack(this.videoTrack), e.srcObject = c, t || (i = o(this, zr, Cn)) == null || i.enableSource(this.id);
24698
24698
  } else
24699
- e.srcObject = void 0, t || (n = o(this, zr, Pn)) == null || n.disableSource(this.id);
24699
+ e.srcObject = void 0, t || (n = o(this, zr, Cn)) == null || n.disableSource(this.id);
24700
24700
  e.style.display = this.videoEnabled ? "block" : "none";
24701
24701
  }
24702
- }, pa = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakSet(), Pn = function() {
24702
+ }, ha = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ new WeakSet(), Cn = function() {
24703
24703
  return o(this, qs).getValue("pip");
24704
24704
  }, tt = /* @__PURE__ */ new WeakSet(), ot = function() {
24705
24705
  return o(this, qs).getValue("roomNodeClient");
24706
24706
  }, Ke = /* @__PURE__ */ new WeakSet(), Ze = function() {
24707
24707
  var e;
24708
24708
  return ((e = o(this, qs).getValue("connectionHandler")) == null ? void 0 : e.mediaJoined) === true;
24709
- }, ma = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), dc = /* @__PURE__ */ new WeakSet(), Rp = function() {
24710
- Array.from(o(this, fa)).forEach((e) => this.updateVideo(e, false)), Array.from(o(this, ma)).forEach((e) => this.updateVideo(e, true));
24709
+ }, fa = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), dc = /* @__PURE__ */ new WeakSet(), Rp = function() {
24710
+ Array.from(o(this, ga)).forEach((e) => this.updateVideo(e, false)), Array.from(o(this, fa)).forEach((e) => this.updateVideo(e, true));
24711
24711
  }, Bf);
24712
24712
  Se([
24713
24713
  h.trace("DyteSelf.cleanupEvents")
@@ -24728,7 +24728,7 @@ Se([
24728
24728
  h.trace("DyteSelf.removeDocumentEventListeners")
24729
24729
  ], pe.prototype, "removeDocumentEventListeners", 1);
24730
24730
  Se([
24731
- yi.executeWithLock({
24731
+ Ti.executeWithLock({
24732
24732
  methodName: "meeting.self.enableAudio",
24733
24733
  lockName: "DyteSelf.toggleAudio",
24734
24734
  timeout: 3e3
@@ -24736,7 +24736,7 @@ Se([
24736
24736
  h.trace("DyteSelf.enableAudio")
24737
24737
  ], pe.prototype, "enableAudio", 1);
24738
24738
  Se([
24739
- yi.executeWithLock({
24739
+ Ti.executeWithLock({
24740
24740
  methodName: "meeting.self.enableVideo",
24741
24741
  lockName: "DyteSelf.toggleVideo",
24742
24742
  timeout: 3e3
@@ -24748,7 +24748,7 @@ Se([
24748
24748
  ], pe.prototype, "updateVideoConstraints", 1);
24749
24749
  Se([
24750
24750
  h.trace("DyteSelf.enableScreenShare"),
24751
- yi.executeWithLock({
24751
+ Ti.executeWithLock({
24752
24752
  methodName: "meeting.self.enableScreenShare",
24753
24753
  lockName: "DyteSelf.toggleScreenShare",
24754
24754
  timeout: 3e3
@@ -24758,7 +24758,7 @@ Se([
24758
24758
  h.trace("DyteSelf.updateScreenshareConstraints")
24759
24759
  ], pe.prototype, "updateScreenshareConstraints", 1);
24760
24760
  Se([
24761
- yi.executeWithLock({
24761
+ Ti.executeWithLock({
24762
24762
  methodName: "meeting.self.disableAudio",
24763
24763
  lockName: "DyteSelf.toggleAudio",
24764
24764
  timeout: 3e3
@@ -24766,7 +24766,7 @@ Se([
24766
24766
  h.trace("DyteSelf.disableAudio")
24767
24767
  ], pe.prototype, "disableAudio", 1);
24768
24768
  Se([
24769
- yi.executeWithLock({
24769
+ Ti.executeWithLock({
24770
24770
  methodName: "meeting.self.disableVideo",
24771
24771
  lockName: "DyteSelf.toggleVideo",
24772
24772
  timeout: 3e3
@@ -24774,7 +24774,7 @@ Se([
24774
24774
  h.trace("DyteSelf.disableVideo")
24775
24775
  ], pe.prototype, "disableVideo", 1);
24776
24776
  Se([
24777
- yi.executeWithLock({
24777
+ Ti.executeWithLock({
24778
24778
  methodName: "meeting.self.disableScreenShare",
24779
24779
  lockName: "DyteSelf.toggleScreenShare",
24780
24780
  timeout: 3e3
@@ -24822,7 +24822,7 @@ var h1 = Object.defineProperty, m1 = Object.getOwnPropertyDescriptor, f1 = (s, e
24822
24822
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
24823
24823
  return r && i && h1(e, t, i), i;
24824
24824
  };
24825
- let Si;
24825
+ let Ei;
24826
24826
  var lc, Hf;
24827
24827
  const dy = (Hf = class {
24828
24828
  constructor(s, e) {
@@ -24831,16 +24831,16 @@ const dy = (Hf = class {
24831
24831
  T(this, lc, e), this.socket = s, this.handleSocketEvents();
24832
24832
  }
24833
24833
  static create(s, e) {
24834
- return Si || (Si = new dy(s, e)), Si;
24834
+ return Ei || (Ei = new dy(s, e)), Ei;
24835
24835
  }
24836
24836
  static cleanup() {
24837
24837
  var s;
24838
24838
  try {
24839
- (s = Si == null ? void 0 : Si.socket) == null || s.disconnect();
24839
+ (s = Ei == null ? void 0 : Ei.socket) == null || s.disconnect();
24840
24840
  } catch (e) {
24841
24841
  p.error("roomSocketHandler::cleanup");
24842
24842
  }
24843
- Si = void 0;
24843
+ Ei = void 0;
24844
24844
  }
24845
24845
  joinRoom(s) {
24846
24846
  return u(this, null, function* () {
@@ -24862,7 +24862,7 @@ const dy = (Hf = class {
24862
24862
  gA.toBinary(e)
24863
24863
  );
24864
24864
  try {
24865
- const { peer: i } = En.fromBinary((yield t).payload);
24865
+ const { peer: i } = _n.fromBinary((yield t).payload);
24866
24866
  o(this, lc).getValue("connectionHandler").socketJoined = true, A.emit(I.SOCKET_SERVICE_ROOM_JOINED, { peer: i });
24867
24867
  const n = this.getRoomState(), a = this.getRoomPeersNonPaginated(), [{ room: c }, { peers: d }] = yield Promise.all([n, a]);
24868
24868
  return A.emit(I.ROOM_STATE, c), A.emit(I.SOCKET_PEERS, d), { peer: i };
@@ -24948,7 +24948,7 @@ const dy = (Hf = class {
24948
24948
  U.getPeerInfo,
24949
24949
  Iv.toBinary({ peerId: s })
24950
24950
  );
24951
- e = En.fromBinary(t.payload);
24951
+ e = _n.fromBinary(t.payload);
24952
24952
  } catch (t) {
24953
24953
  p.error("getPeerInfo::binary_decode_error", { error: t });
24954
24954
  }
@@ -25122,7 +25122,7 @@ const dy = (Hf = class {
25122
25122
  case U.leaveRoom:
25123
25123
  case U.kick:
25124
25124
  case U.kickAll: {
25125
- t = En.fromBinary.bind(En), r = En.create();
25125
+ t = _n.fromBinary.bind(_n), r = _n.create();
25126
25126
  break;
25127
25127
  }
25128
25128
  case U.getWaitingRoomRequests: {
@@ -25205,7 +25205,7 @@ let Ud = dy;
25205
25205
  f1([
25206
25206
  h.trace("RoomSocketHandler.joinRoom")
25207
25207
  ], Ud.prototype, "joinRoom", 1);
25208
- var dn = {}, nu = {};
25208
+ var ln = {}, nu = {};
25209
25209
  Object.defineProperty(nu, "__esModule", { value: true });
25210
25210
  nu.Logger = void 0;
25211
25211
  class g1 {
@@ -25219,21 +25219,21 @@ class g1 {
25219
25219
  }
25220
25220
  }
25221
25221
  nu.Logger = g1;
25222
- Object.defineProperty(dn, "__esModule", { value: true });
25223
- var $d = dn.AwaitQueue = dn.AwaitQueueRemovedTaskError = dn.AwaitQueueStoppedError = void 0;
25222
+ Object.defineProperty(ln, "__esModule", { value: true });
25223
+ var $d = ln.AwaitQueue = ln.AwaitQueueRemovedTaskError = ln.AwaitQueueStoppedError = void 0;
25224
25224
  const v1 = nu, Ar = new v1.Logger();
25225
25225
  class Sh extends Error {
25226
25226
  constructor(e) {
25227
25227
  super(e != null ? e : "AwaitQueue stopped"), this.name = "AwaitQueueStoppedError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Sh);
25228
25228
  }
25229
25229
  }
25230
- dn.AwaitQueueStoppedError = Sh;
25230
+ ln.AwaitQueueStoppedError = Sh;
25231
25231
  class au extends Error {
25232
25232
  constructor(e) {
25233
25233
  super(e != null ? e : "AwaitQueue task removed"), this.name = "AwaitQueueRemovedTaskError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, au);
25234
25234
  }
25235
25235
  }
25236
- dn.AwaitQueueRemovedTaskError = au;
25236
+ ln.AwaitQueueRemovedTaskError = au;
25237
25237
  class y1 {
25238
25238
  constructor() {
25239
25239
  this.pendingTasks = /* @__PURE__ */ new Map(), this.nextTaskId = 0, this.stopping = false;
@@ -25316,7 +25316,7 @@ class y1 {
25316
25316
  });
25317
25317
  }
25318
25318
  }
25319
- $d = dn.AwaitQueue = y1;
25319
+ $d = ln.AwaitQueue = y1;
25320
25320
  function T1(s, e) {
25321
25321
  const t = new Error(e);
25322
25322
  return t.name = s, t;
@@ -25331,7 +25331,7 @@ class Vt extends w {
25331
25331
  super(e), this.name = "InvalidStateError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, Vt) : this.stack = new Error(e).stack;
25332
25332
  }
25333
25333
  }
25334
- class ki extends w {
25334
+ class Ai extends w {
25335
25335
  constructor(e) {
25336
25336
  super(e), this.name = "TransportConnectionError", Error.hasOwnProperty("captureStackTrace") ? Error.captureStackTrace(this, Vt) : this.stack = new Error(e).stack;
25337
25337
  }
@@ -26103,7 +26103,7 @@ class Ch extends _h {
26103
26103
  function C1(s, e) {
26104
26104
  return typeof s == "undefined" ? e : typeof window != "undefined" && Object.getOwnPropertyDescriptor(window, "structuredClone") ? structuredClone(s) : JSON.parse(JSON.stringify(s));
26105
26105
  }
26106
- var uc, Ji, js, Gs, Mr, pc, wp, ol, ly, cl, uy;
26106
+ var uc, Ki, js, Gs, Mr, pc, wp, ol, ly, cl, uy;
26107
26107
  class R1 extends Go {
26108
26108
  constructor(t) {
26109
26109
  var r;
@@ -26123,9 +26123,9 @@ class R1 extends Go {
26123
26123
  f(this, "appData");
26124
26124
  f(this, "transceiver");
26125
26125
  v(this, uc, void 0);
26126
- v(this, Ji, void 0);
26126
+ v(this, Ki, void 0);
26127
26127
  v(this, js, void 0);
26128
- this.id = t.id, this.localId = t.localId, T(this, uc, t.handler), this.appData = t.appData, this.peerId = t.producingPeerId, this.producingTransportId = t.producingTransportId, T(this, js, false), this.producerId = t.producerId, this.track = t.track, T(this, Ji, (r = t.paused) != null ? r : false), this.mimeType = t.mimeType, this.transceiver = t.transceiver, this.rtpReceiver = t.rtpReceiver, F(this, ol, ly).call(this);
26128
+ this.id = t.id, this.localId = t.localId, T(this, uc, t.handler), this.appData = t.appData, this.peerId = t.producingPeerId, this.producingTransportId = t.producingTransportId, T(this, js, false), this.producerId = t.producerId, this.track = t.track, T(this, Ki, (r = t.paused) != null ? r : false), this.mimeType = t.mimeType, this.transceiver = t.transceiver, this.rtpReceiver = t.rtpReceiver, F(this, ol, ly).call(this);
26129
26129
  }
26130
26130
  get closed() {
26131
26131
  return o(this, js);
@@ -26134,7 +26134,7 @@ class R1 extends Go {
26134
26134
  return this.track.kind;
26135
26135
  }
26136
26136
  get paused() {
26137
- return o(this, Ji);
26137
+ return o(this, Ki);
26138
26138
  }
26139
26139
  close(t, r) {
26140
26140
  o(this, js) || (p.debug(`Consumer::close() ${t ? `with reason ${t}` : ""}`, o(this, Gs, Mr)), T(this, js, true), r && (F(this, cl, uy).call(this), this.transceiver.stop()), this.safeEmit("close", t));
@@ -26151,17 +26151,17 @@ class R1 extends Go {
26151
26151
  p.error("consumer::pause() | Consumer closed", o(this, Gs, Mr));
26152
26152
  return;
26153
26153
  }
26154
- T(this, Ji, true), this.track.enabled = false, this.safeEmit("pause");
26154
+ T(this, Ki, true), this.track.enabled = false, this.safeEmit("pause");
26155
26155
  }
26156
26156
  resume() {
26157
26157
  if (p.debug("consumer::resume()", o(this, Gs, Mr)), o(this, js)) {
26158
26158
  p.error("Consumer::resume() | Consumer closed", o(this, Gs, Mr));
26159
26159
  return;
26160
26160
  }
26161
- T(this, Ji, false), this.track.enabled = true, this.safeEmit("resume");
26161
+ T(this, Ki, false), this.track.enabled = true, this.safeEmit("resume");
26162
26162
  }
26163
26163
  }
26164
- uc = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakSet(), Mr = function() {
26164
+ uc = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakSet(), Mr = function() {
26165
26165
  return {
26166
26166
  consumer: {
26167
26167
  id: this.id,
@@ -26183,7 +26183,7 @@ uc = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), js = /*
26183
26183
  }));
26184
26184
  }
26185
26185
  };
26186
- var Cs, ga, va, Ki, us, dt, Yr, ya, Jt, Ts;
26186
+ var Cs, va, ya, zi, us, dt, Yr, Ta, Jt, Ts;
26187
26187
  class w1 extends Go {
26188
26188
  constructor(t) {
26189
26189
  var r, i;
@@ -26195,14 +26195,14 @@ class w1 extends Go {
26195
26195
  f(this, "kind");
26196
26196
  f(this, "appData");
26197
26197
  f(this, "rtpSender");
26198
- v(this, ga, void 0);
26199
26198
  v(this, va, void 0);
26200
- v(this, Ki, void 0);
26199
+ v(this, ya, void 0);
26200
+ v(this, zi, void 0);
26201
26201
  v(this, us, false);
26202
26202
  v(this, dt, void 0);
26203
26203
  v(this, Yr, void 0);
26204
- v(this, ya, void 0);
26205
- this.id = t.id, this.localId = t.localId, T(this, dt, t.track), this.kind = (r = t.track) == null ? void 0 : r.kind, T(this, Yr, t.disableTrackOnPause ? !((i = t.track) != null && i.enabled) : false), T(this, ya, void 0), T(this, ga, t.stopTracks), T(this, va, t.disableTrackOnPause), T(this, Ki, t.zeroRtpOnPause), this.appData = t.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), T(this, Cs, t.handler), this.rtpSender = t.rtpSender, this._handleTrack();
26204
+ v(this, Ta, void 0);
26205
+ this.id = t.id, this.localId = t.localId, T(this, dt, t.track), this.kind = (r = t.track) == null ? void 0 : r.kind, T(this, Yr, t.disableTrackOnPause ? !((i = t.track) != null && i.enabled) : false), T(this, Ta, void 0), T(this, va, t.stopTracks), T(this, ya, t.disableTrackOnPause), T(this, zi, t.zeroRtpOnPause), this.appData = t.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), T(this, Cs, t.handler), this.rtpSender = t.rtpSender, this._handleTrack();
26206
26206
  }
26207
26207
  get closed() {
26208
26208
  return o(this, us);
@@ -26214,7 +26214,7 @@ class w1 extends Go {
26214
26214
  return o(this, Yr);
26215
26215
  }
26216
26216
  get maxSpatialLayer() {
26217
- return o(this, ya);
26217
+ return o(this, Ta);
26218
26218
  }
26219
26219
  close(t) {
26220
26220
  return u(this, null, function* () {
@@ -26236,21 +26236,21 @@ class w1 extends Go {
26236
26236
  });
26237
26237
  }
26238
26238
  pause() {
26239
- p.debug("Producer::pause()", o(this, Jt, Ts)), o(this, us) && p.error("Producer::pause() | Producer closed", o(this, Jt, Ts)), T(this, Yr, true), o(this, dt) && o(this, va) && (o(this, dt).enabled = false), o(this, Ki) && o(this, Cs).replaceTrack(this.localId, null), this.emit("pause");
26239
+ p.debug("Producer::pause()", o(this, Jt, Ts)), o(this, us) && p.error("Producer::pause() | Producer closed", o(this, Jt, Ts)), T(this, Yr, true), o(this, dt) && o(this, ya) && (o(this, dt).enabled = false), o(this, zi) && o(this, Cs).replaceTrack(this.localId, null), this.emit("pause");
26240
26240
  }
26241
26241
  resume() {
26242
26242
  if (p.debug("Producer::resume()", o(this, Jt, Ts)), o(this, us)) {
26243
26243
  p.error("Producer::resume() | Producer closed", o(this, Jt, Ts));
26244
26244
  return;
26245
26245
  }
26246
- T(this, Yr, false), o(this, dt) && o(this, va) && (o(this, dt).enabled = true), o(this, Ki) && o(this, Cs).replaceTrack(this.localId, o(this, dt)), this.emit("resume");
26246
+ T(this, Yr, false), o(this, dt) && o(this, ya) && (o(this, dt).enabled = true), o(this, zi) && o(this, Cs).replaceTrack(this.localId, o(this, dt)), this.emit("resume");
26247
26247
  }
26248
26248
  replaceTrack(r) {
26249
26249
  return u(this, arguments, function* ({
26250
26250
  track: t
26251
26251
  }) {
26252
26252
  if (p.debug(`Producer::replaceTrack() trackId: ${t == null ? void 0 : t.id}`, o(this, Jt, Ts)), o(this, us)) {
26253
- if (t && o(this, ga))
26253
+ if (t && o(this, va))
26254
26254
  try {
26255
26255
  t.stop();
26256
26256
  } catch (i) {
@@ -26265,7 +26265,7 @@ class w1 extends Go {
26265
26265
  p.debug(`replaceTrack() | same track, ignored trackId: ${t.id}`, o(this, Jt, Ts));
26266
26266
  return;
26267
26267
  }
26268
- (!o(this, Ki) || !o(this, Yr)) && (yield o(this, Cs).replaceTrack(this.localId, t)), this._destroyTrack(), T(this, dt, t), this._handleTrack();
26268
+ (!o(this, zi) || !o(this, Yr)) && (yield o(this, Cs).replaceTrack(this.localId, t)), this._destroyTrack(), T(this, dt, t), this._handleTrack();
26269
26269
  });
26270
26270
  }
26271
26271
  setMaxSpatialLayer(t) {
@@ -26276,7 +26276,7 @@ class w1 extends Go {
26276
26276
  throw new jo("not a video Producer");
26277
26277
  if (typeof t != "number")
26278
26278
  throw new TypeError("invalid spatialLayer");
26279
- yield o(this, Cs).setMaxSpatialLayer(this.localId, t), T(this, ya, t);
26279
+ yield o(this, Cs).setMaxSpatialLayer(this.localId, t), T(this, Ta, t);
26280
26280
  });
26281
26281
  }
26282
26282
  setRtpEncodingParameters(t) {
@@ -26298,7 +26298,7 @@ class w1 extends Go {
26298
26298
  var t;
26299
26299
  if (o(this, dt))
26300
26300
  try {
26301
- o(this, dt).removeEventListener("ended", this._onTrackEnded), o(this, ga) && o(this, dt).stop();
26301
+ o(this, dt).removeEventListener("ended", this._onTrackEnded), o(this, va) && o(this, dt).stop();
26302
26302
  } catch (r) {
26303
26303
  p.error(`Producer::_destroyTrack trackId: ${(t = this.track) == null ? void 0 : t.id}`, j(N({}, o(this, Jt, Ts)), {
26304
26304
  error: r
@@ -26306,7 +26306,7 @@ class w1 extends Go {
26306
26306
  }
26307
26307
  }
26308
26308
  }
26309
- Cs = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), us = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakSet(), Ts = function() {
26309
+ Cs = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), us = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakSet(), Ts = function() {
26310
26310
  return {
26311
26311
  producer: {
26312
26312
  id: this.id,
@@ -26334,7 +26334,7 @@ function hy(s) {
26334
26334
  return b1(s) && (t = (e = s.payload._bolt) == null ? void 0 : e.id) != null ? t : "";
26335
26335
  }
26336
26336
  var Qr;
26337
- const kn = class extends Et.EventEmitter {
26337
+ const An = class extends Et.EventEmitter {
26338
26338
  constructor(t, r, i) {
26339
26339
  super();
26340
26340
  f(this, "channel");
@@ -26343,14 +26343,14 @@ const kn = class extends Et.EventEmitter {
26343
26343
  v(this, Qr, /* @__PURE__ */ new Map());
26344
26344
  f(this, "respond", (t2, r2, i2 = false) => {
26345
26345
  let n;
26346
- i2 ? n = kn.createErrorResponse(t2, r2) : n = kn.createResponse(t2, r2), this.channel.send(JSON.stringify(n));
26346
+ i2 ? n = An.createErrorResponse(t2, r2) : n = An.createResponse(t2, r2), this.channel.send(JSON.stringify(n));
26347
26347
  });
26348
26348
  f(this, "notify", (t2) => {
26349
- const r2 = kn.createNotification(t2);
26349
+ const r2 = An.createNotification(t2);
26350
26350
  this.channel.send(JSON.stringify(r2));
26351
26351
  });
26352
26352
  f(this, "request", (t2) => u(this, null, function* () {
26353
- const r2 = kn.createRequest(t2), i2 = new Promise((n, a) => {
26353
+ const r2 = An.createRequest(t2), i2 = new Promise((n, a) => {
26354
26354
  const { id: d } = r2.payload._bolt, l = {
26355
26355
  id: d,
26356
26356
  method: r2.type,
@@ -26418,8 +26418,8 @@ const kn = class extends Et.EventEmitter {
26418
26418
  this.label = r, this.transportId = i, this.channel = t, this.queue = /* @__PURE__ */ new Map();
26419
26419
  }
26420
26420
  };
26421
- let Pi = kn;
26422
- Qr = /* @__PURE__ */ new WeakMap(), f(Pi, "createRequest", (t) => {
26421
+ let Ci = An;
26422
+ Qr = /* @__PURE__ */ new WeakMap(), f(Ci, "createRequest", (t) => {
26423
26423
  var r;
26424
26424
  if ((r = t.payload) != null && r._bolt)
26425
26425
  throw new Error("rpc fields are internal values");
@@ -26433,7 +26433,7 @@ Qr = /* @__PURE__ */ new WeakMap(), f(Pi, "createRequest", (t) => {
26433
26433
  }
26434
26434
  })
26435
26435
  };
26436
- }), f(Pi, "createResponse", (t, r) => {
26436
+ }), f(Ci, "createResponse", (t, r) => {
26437
26437
  var i;
26438
26438
  if ((i = r.payload) != null && i._bolt)
26439
26439
  throw new Error("rpc fields are internal values");
@@ -26447,7 +26447,7 @@ Qr = /* @__PURE__ */ new WeakMap(), f(Pi, "createRequest", (t) => {
26447
26447
  }
26448
26448
  })
26449
26449
  };
26450
- }), f(Pi, "createNotification", (t) => {
26450
+ }), f(Ci, "createNotification", (t) => {
26451
26451
  var r;
26452
26452
  if ((r = t.payload) != null && r._bolt)
26453
26453
  throw new Error("rpc fields are internal values");
@@ -26461,7 +26461,7 @@ Qr = /* @__PURE__ */ new WeakMap(), f(Pi, "createRequest", (t) => {
26461
26461
  }
26462
26462
  })
26463
26463
  };
26464
- }), f(Pi, "createErrorResponse", (t, r) => ({
26464
+ }), f(Ci, "createErrorResponse", (t, r) => ({
26465
26465
  type: "error",
26466
26466
  payload: {
26467
26467
  error: r.message,
@@ -26485,8 +26485,8 @@ function k1(s) {
26485
26485
  return Promise.all(e);
26486
26486
  }
26487
26487
  const Bd = "transport closed";
26488
- var Ta;
26489
- const An = class extends Go {
26488
+ var Sa;
26489
+ const In = class extends Go {
26490
26490
  constructor(t, {
26491
26491
  id: r,
26492
26492
  direction: i,
@@ -26502,7 +26502,7 @@ const An = class extends Go {
26502
26502
  super();
26503
26503
  f(this, "awaitQueue");
26504
26504
  f(this, "observer");
26505
- v(this, Ta, void 0);
26505
+ v(this, Sa, void 0);
26506
26506
  f(this, "id");
26507
26507
  f(this, "serverId");
26508
26508
  f(this, "direction");
@@ -26520,7 +26520,7 @@ const An = class extends Go {
26520
26520
  f(this, "consumerTrackEvents");
26521
26521
  f(this, "unknownTracksMap");
26522
26522
  f(this, "appData");
26523
- p.debug(`constructor() [id: ${r}, direction: ${i}]`), T(this, Ta, t), this.id = r, this.direction = i;
26523
+ p.debug(`constructor() [id: ${r}, direction: ${i}]`), T(this, Sa, t), this.id = r, this.direction = i;
26524
26524
  const y = C1(l, {});
26525
26525
  delete y.iceServers, delete y.iceTransportPolicy, delete y.bundlePolicy, delete y.rtcpMuxPolicy, delete y.sdpSemantics, this.producers = /* @__PURE__ */ new Map(), this.consumers = /* @__PURE__ */ new Map(), this.datachannels = /* @__PURE__ */ new Map(), this.consumerTrackEvents = /* @__PURE__ */ new Map(), this.unknownTracksMap = /* @__PURE__ */ new Map(), this.awaitQueue = new $d(), this.observer = new Go(), this.handler = n(), this.handler.enableHighBitrate = (_ = m == null ? void 0 : m.enableHighBitrate) != null ? _ : false, this.handler.enableStereo = (P = m == null ? void 0 : m.enableStereo) != null ? P : false, this.handler.enableDtx = (b = m == null ? void 0 : m.enableDtx) != null ? b : true, this.handler.init({
26526
26526
  onTrackHandler: this._ontrack.bind(this),
@@ -26551,7 +26551,7 @@ const An = class extends Go {
26551
26551
  }
26552
26552
  ), this.handler.on("dc_open", (R) => {
26553
26553
  let L = this.datachannels.get(R.label);
26554
- L || (L || (L = new Pi(R, R.label, this.serverId), this.datachannels.set(R.label, L)), this.eventsDCFailureTimer = setTimeout(() => {
26554
+ L || (L || (L = new Ci(R, R.label, this.serverId), this.datachannels.set(R.label, L)), this.eventsDCFailureTimer = setTimeout(() => {
26555
26555
  R.label === "events" && (this.eventsDCReadyPromiseResolver(false), this.safeEmit("dc_error", R.label));
26556
26556
  }, 5e3));
26557
26557
  }), this.handler.on("datachannel", (R, L) => {
@@ -26630,7 +26630,7 @@ const An = class extends Go {
26630
26630
  this.setServerId(n), yield i(a);
26631
26631
  })), !(yield this.transportConnectionPromise))
26632
26632
  throw new Error("ice connection failed");
26633
- if (o(this, Ta) === nt.HIVE && !(yield this.isEventsDCReady))
26633
+ if (o(this, Sa) === nt.HIVE && !(yield this.isEventsDCReady))
26634
26634
  throw new Error("events datachannel not open");
26635
26635
  } catch (r) {
26636
26636
  throw p.error("transport failed to connect:", { error: r }), r;
@@ -26659,7 +26659,7 @@ const An = class extends Go {
26659
26659
  } else
26660
26660
  throw new TypeError("missing track");
26661
26661
  if (!(yield this.transportConnectionPromise))
26662
- throw new ki("transport not connected");
26662
+ throw new Ai("transport not connected");
26663
26663
  return true;
26664
26664
  });
26665
26665
  }
@@ -26735,7 +26735,7 @@ const An = class extends Go {
26735
26735
  if (this.listenerCount("connect") === 0 && this.connectionState === "new")
26736
26736
  throw new TypeError('no "connect" listener set into this transport');
26737
26737
  if (!(yield this.transportConnectionPromise))
26738
- throw new ki("transport not connected");
26738
+ throw new Ai("transport not connected");
26739
26739
  return true;
26740
26740
  });
26741
26741
  }
@@ -26809,20 +26809,20 @@ const An = class extends Go {
26809
26809
  }
26810
26810
  closeConsumers(t, r) {
26811
26811
  return u(this, null, function* () {
26812
- const i = t.map((l) => l.transceiver.mid), n = An.parseHeaderExtensionMappings(
26812
+ const i = t.map((l) => l.transceiver.mid), n = In.parseHeaderExtensionMappings(
26813
26813
  this.handler.pc.remoteDescription,
26814
26814
  i
26815
- ), a = An.parseCodecAndFmtpMappings(
26815
+ ), a = In.parseCodecAndFmtpMappings(
26816
26816
  this.handler.pc.remoteDescription,
26817
26817
  i
26818
26818
  );
26819
26819
  t.forEach((l) => l.close(void 0, true));
26820
26820
  let c = yield this.handler.pc.createOffer();
26821
- c = An.setHeaderExtensionMappings(
26821
+ c = In.setHeaderExtensionMappings(
26822
26822
  c,
26823
26823
  i,
26824
26824
  n
26825
- ), c = An.setCodecAndFmtpMappings(
26825
+ ), c = In.setCodecAndFmtpMappings(
26826
26826
  c,
26827
26827
  i,
26828
26828
  a
@@ -26855,7 +26855,7 @@ const An = class extends Go {
26855
26855
  const { track: r, transceiver: i, streams: n } = t;
26856
26856
  p.info(`track event received [trackId: ${r.id}]`);
26857
26857
  let a;
26858
- o(this, Ta) === nt.HIVE ? a = `${n[0].id}:${r.kind}` : a = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
26858
+ o(this, Sa) === nt.HIVE ? a = `${n[0].id}:${r.kind}` : a = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
26859
26859
  p.info(`rtc consumer track ended [trackId: ${r.id}]`), this.unknownTracksMap.delete(a);
26860
26860
  });
26861
26861
  const c = this.consumerTrackEvents.get(a);
@@ -26973,8 +26973,8 @@ const An = class extends Go {
26973
26973
  });
26974
26974
  }
26975
26975
  };
26976
- let bp = An;
26977
- Ta = /* @__PURE__ */ new WeakMap();
26976
+ let bp = In;
26977
+ Sa = /* @__PURE__ */ new WeakMap();
26978
26978
  function A1() {
26979
26979
  if (typeof navigator == "object" && navigator.product === "ReactNative") {
26980
26980
  if (typeof RTCPeerConnection == "undefined") {
@@ -27061,11 +27061,11 @@ class I1 {
27061
27061
  }
27062
27062
  hc = /* @__PURE__ */ new WeakMap();
27063
27063
  const D1 = 2e3;
27064
- var pr, Sa, vt, yt, zi, Ea, _a, Pa, Yi, Xr, Ca, Ra, Td, mc, kp, dl, my, ll, fy, ul, gy, pl, vy, hl, yy, fc, Ap, gc, Ip;
27064
+ var pr, Ea, vt, yt, Yi, _a, Pa, Ca, Qi, Xr, Ra, wa, Td, mc, kp, dl, my, ll, fy, ul, gy, pl, vy, hl, yy, fc, Ap, gc, Ip;
27065
27065
  class M1 extends Et.EventEmitter {
27066
27066
  constructor(t, r, i) {
27067
27067
  super();
27068
- v(this, Ra);
27068
+ v(this, wa);
27069
27069
  v(this, mc);
27070
27070
  v(this, dl);
27071
27071
  v(this, ll);
@@ -27075,43 +27075,43 @@ class M1 extends Et.EventEmitter {
27075
27075
  v(this, fc);
27076
27076
  v(this, gc);
27077
27077
  v(this, pr, void 0);
27078
- v(this, Sa, void 0);
27078
+ v(this, Ea, void 0);
27079
27079
  v(this, vt, void 0);
27080
27080
  v(this, yt, void 0);
27081
- v(this, zi, void 0);
27082
- v(this, Ea, void 0);
27081
+ v(this, Yi, void 0);
27083
27082
  v(this, _a, void 0);
27084
- v(this, Pa, {
27083
+ v(this, Pa, void 0);
27084
+ v(this, Ca, {
27085
27085
  transportFailureCount: {
27086
27086
  send: 0,
27087
27087
  recv: 0
27088
27088
  },
27089
27089
  lastConnectionTime: 0
27090
27090
  });
27091
- v(this, Yi, void 0);
27091
+ v(this, Qi, void 0);
27092
27092
  v(this, Xr, "all");
27093
- v(this, Ca, void 0);
27094
- switch (T(this, pr, t), T(this, zi, r), T(this, Ca, i), T(this, Sa, new I1(i)), T(this, Ea, new P1(r, i)), i) {
27093
+ v(this, Ra, void 0);
27094
+ switch (T(this, pr, t), T(this, Yi, r), T(this, Ra, i), T(this, Ea, new I1(i)), T(this, _a, new P1(r, i)), i) {
27095
27095
  case nt.CF: {
27096
- T(this, _a, Is);
27096
+ T(this, Pa, Is);
27097
27097
  break;
27098
27098
  }
27099
27099
  case nt.HIVE:
27100
27100
  default: {
27101
- T(this, _a, ms);
27101
+ T(this, Pa, ms);
27102
27102
  break;
27103
27103
  }
27104
27104
  }
27105
- o(this, Ra, Td).mediaState = {
27106
- send: { state: pi.NEW, reconnected: false },
27107
- recv: { state: pi.NEW, reconnected: false }
27105
+ o(this, wa, Td).mediaState = {
27106
+ send: { state: hi.NEW, reconnected: false },
27107
+ recv: { state: hi.NEW, reconnected: false }
27108
27108
  }, Y.hasFeature(se.FORCE_RELAY) && T(this, Xr, "relay"), F(this, mc, kp).call(this);
27109
27109
  }
27110
27110
  get socket() {
27111
- return o(this, zi);
27111
+ return o(this, Yi);
27112
27112
  }
27113
27113
  get socketHandler() {
27114
- return o(this, Ea);
27114
+ return o(this, _a);
27115
27115
  }
27116
27116
  get sendTransport() {
27117
27117
  return o(this, vt);
@@ -27120,10 +27120,10 @@ class M1 extends Et.EventEmitter {
27120
27120
  return o(this, yt);
27121
27121
  }
27122
27122
  get events() {
27123
- return o(this, _a);
27123
+ return o(this, Pa);
27124
27124
  }
27125
27125
  get nodeType() {
27126
- return o(this, Ca);
27126
+ return o(this, Ra);
27127
27127
  }
27128
27128
  createTransports(t) {
27129
27129
  return u(this, null, function* () {
@@ -27141,7 +27141,7 @@ class M1 extends Et.EventEmitter {
27141
27141
  config: {
27142
27142
  enableHighBitrate: (l = (d = (c = o(this, pr).getValue("defaults").mediaConfiguration) == null ? void 0 : c.audio) == null ? void 0 : d.enableHighBitrate) != null ? l : false,
27143
27143
  enableStereo: (y = (m = (g = o(this, pr).getValue("defaults").mediaConfiguration) == null ? void 0 : g.audio) == null ? void 0 : m.enableStereo) != null ? y : false,
27144
- enableDtx: o(this, Ca) === nt.HIVE ? true : !!P
27144
+ enableDtx: o(this, Ra) === nt.HIVE ? true : !!P
27145
27145
  },
27146
27146
  iceTransportPolicy: o(this, Xr)
27147
27147
  });
@@ -27189,10 +27189,10 @@ class M1 extends Et.EventEmitter {
27189
27189
  });
27190
27190
  try {
27191
27191
  if (t.closed)
27192
- throw new ki("Cannot reconnect closed transport");
27192
+ throw new Ai("Cannot reconnect closed transport");
27193
27193
  yield F(this, dl, my).call(this, t);
27194
27194
  } catch (l) {
27195
- if (l instanceof ki) {
27195
+ if (l instanceof Ai) {
27196
27196
  d(l);
27197
27197
  return;
27198
27198
  }
@@ -27218,10 +27218,10 @@ class M1 extends Et.EventEmitter {
27218
27218
  throw new Error("Method not implemented.");
27219
27219
  }
27220
27220
  }
27221
- pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakSet(), Td = function() {
27221
+ pr = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakSet(), Td = function() {
27222
27222
  return o(this, pr).getValue("connectionHandler");
27223
27223
  }, mc = /* @__PURE__ */ new WeakSet(), kp = function() {
27224
- T(this, Yi, {
27224
+ T(this, Qi, {
27225
27225
  send: void 0,
27226
27226
  recv: void 0
27227
27227
  });
@@ -27230,10 +27230,10 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27230
27230
  const { id: r, direction: i } = t;
27231
27231
  if (p.info(`Connecting ${i} transport`, {
27232
27232
  transport: { id: r, type: i }
27233
- }), !o(this, zi).isConnected)
27234
- throw new ki("Socket is not connected");
27233
+ }), !o(this, Yi).isConnected)
27234
+ throw new Ai("Socket is not connected");
27235
27235
  if (t.connectionState === "closed")
27236
- throw new ki("Transport is closed");
27236
+ throw new Ai("Transport is closed");
27237
27237
  try {
27238
27238
  yield t.connect(
27239
27239
  (n) => F(this, hl, yy).call(this, i, n)
@@ -27241,7 +27241,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27241
27241
  transport: { id: r, serverId: t.serverId, type: i }
27242
27242
  });
27243
27243
  } catch (n) {
27244
- throw o(this, Pa).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new ki(n.message) : n;
27244
+ throw o(this, Ca).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new Ai(n.message) : n;
27245
27245
  }
27246
27246
  });
27247
27247
  }, ll = /* @__PURE__ */ new WeakSet(), fy = function(t) {
@@ -27257,7 +27257,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27257
27257
  });
27258
27258
  return;
27259
27259
  }
27260
- T(this, vt, o(this, Sa).createTransport(j(N({}, t), {
27260
+ T(this, vt, o(this, Ea).createTransport(j(N({}, t), {
27261
27261
  direction: "send"
27262
27262
  }))), J.configureSendTransport(o(this, vt));
27263
27263
  });
@@ -27274,7 +27274,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27274
27274
  });
27275
27275
  return;
27276
27276
  }
27277
- T(this, yt, o(this, Sa).createTransport(j(N({}, t), {
27277
+ T(this, yt, o(this, Ea).createTransport(j(N({}, t), {
27278
27278
  direction: "recv"
27279
27279
  }))), J.configureRecvTransport(o(this, yt));
27280
27280
  });
@@ -27293,15 +27293,15 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27293
27293
  }
27294
27294
  );
27295
27295
  const a = () => {
27296
- const c = o(this, Yi)[r];
27297
- c !== void 0 && (clearTimeout(c), o(this, Yi)[r] = void 0);
27296
+ const c = o(this, Qi)[r];
27297
+ c !== void 0 && (clearTimeout(c), o(this, Qi)[r] = void 0);
27298
27298
  };
27299
27299
  switch (n) {
27300
27300
  case "connected":
27301
- a(), o(this, Pa).lastConnectionTime = performance.now();
27301
+ a(), o(this, Ca).lastConnectionTime = performance.now();
27302
27302
  break;
27303
27303
  case "disconnected":
27304
- o(this, Yi)[r] = setTimeout(() => u(this, null, function* () {
27304
+ o(this, Qi)[r] = setTimeout(() => u(this, null, function* () {
27305
27305
  yield F(this, fc, Ap).call(this, t);
27306
27306
  }), D1);
27307
27307
  break;
@@ -27360,7 +27360,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27360
27360
  },
27361
27361
  producers: []
27362
27362
  };
27363
- return o(this, Ea).connectTransport(c);
27363
+ return o(this, _a).connectTransport(c);
27364
27364
  } catch (n) {
27365
27365
  throw p.error(
27366
27366
  `Error in ${t} transport connection:`,
@@ -27374,7 +27374,7 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27374
27374
  const { direction: r } = t;
27375
27375
  switch (Y.hasFeature(
27376
27376
  se.HIVE_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED
27377
- ) && o(this, zi).isConnected && o(this, Pa).transportFailureCount[r] > 2 && (p.warn(`Multiple disconnections in ${r} transport, forcing relay`), T(this, Xr, "relay")), yield this.createTransports({ [r]: true }), r) {
27377
+ ) && o(this, Yi).isConnected && o(this, Ca).transportFailureCount[r] > 2 && (p.warn(`Multiple disconnections in ${r} transport, forcing relay`), T(this, Xr, "relay")), yield this.createTransports({ [r]: true }), r) {
27378
27378
  case "send": {
27379
27379
  yield this.connectTransportWithRetry(o(this, vt)), p.info("Transport reconnected", { transport: o(this, vt) }), A.emit(I.RESET_PRODUCER_STATE);
27380
27380
  break;
@@ -27387,20 +27387,20 @@ pr = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vt = /*
27387
27387
  p.warn("Unknown transport direction", { transport: t });
27388
27388
  }
27389
27389
  F(this, gc, Ip).call(this, {
27390
- state: pi.CONNECTED,
27390
+ state: hi.CONNECTED,
27391
27391
  direction: r
27392
27392
  });
27393
27393
  });
27394
27394
  }, gc = /* @__PURE__ */ new WeakSet(), Ip = function(t) {
27395
27395
  const { state: r, direction: i } = t;
27396
- o(this, Ra, Td).mediaState[i] = {
27396
+ o(this, wa, Td).mediaState[i] = {
27397
27397
  state: r,
27398
27398
  reconnected: true
27399
27399
  }, A.emit(
27400
27400
  I.TRANSPORT_STATE_UPDATE,
27401
27401
  N({
27402
27402
  transport: i
27403
- }, o(this, Ra, Td).mediaState[i])
27403
+ }, o(this, wa, Td).mediaState[i])
27404
27404
  );
27405
27405
  };
27406
27406
  var ml, Ty;
@@ -27638,7 +27638,7 @@ class Rh {
27638
27638
  });
27639
27639
  }
27640
27640
  }
27641
- var wa, Qi, Zr, ba, vc, Ws, fl, hr, ka, gl, Sy, yc, Dp, vl, Ey, yl, _y, Tl, Py, Sl, Cy, El, Ry, _l, wy;
27641
+ var ba, Xi, Zr, ka, vc, Ws, fl, hr, Aa, gl, Sy, yc, Dp, vl, Ey, yl, _y, Tl, Py, Sl, Cy, El, Ry, _l, wy;
27642
27642
  class L1 extends M1 {
27643
27643
  constructor(t, r, i) {
27644
27644
  super(t, r, i);
@@ -27650,10 +27650,10 @@ class L1 extends M1 {
27650
27650
  v(this, Sl);
27651
27651
  v(this, El);
27652
27652
  v(this, _l);
27653
- v(this, wa, void 0);
27654
- v(this, Qi, void 0);
27655
- v(this, Zr, void 0);
27656
27653
  v(this, ba, void 0);
27654
+ v(this, Xi, void 0);
27655
+ v(this, Zr, void 0);
27656
+ v(this, ka, void 0);
27657
27657
  v(this, vc, void 0);
27658
27658
  v(this, Ws, void 0);
27659
27659
  v(this, fl, {
@@ -27662,26 +27662,26 @@ class L1 extends M1 {
27662
27662
  producerNotReadyFailureCount: 0
27663
27663
  });
27664
27664
  v(this, hr, []);
27665
- v(this, ka, void 0);
27666
- T(this, wa, t), o(this, gl, Sy).mediaState = {
27667
- send: { state: pi.NEW, reconnected: false },
27668
- recv: { state: pi.NEW, reconnected: false }
27665
+ v(this, Aa, void 0);
27666
+ T(this, ba, t), o(this, gl, Sy).mediaState = {
27667
+ send: { state: hi.NEW, reconnected: false },
27668
+ recv: { state: hi.NEW, reconnected: false }
27669
27669
  }, this.reset();
27670
27670
  }
27671
27671
  get socketHandler() {
27672
27672
  return super.socketHandler;
27673
27673
  }
27674
27674
  get producers() {
27675
- return o(this, Qi);
27675
+ return o(this, Xi);
27676
27676
  }
27677
27677
  get consumers() {
27678
27678
  return o(this, Zr);
27679
27679
  }
27680
27680
  get producerIdToConsumerIdMap() {
27681
- return o(this, ba);
27681
+ return o(this, ka);
27682
27682
  }
27683
27683
  reset() {
27684
- T(this, Qi, /* @__PURE__ */ new Map()), T(this, Zr, /* @__PURE__ */ new Map()), T(this, ba, /* @__PURE__ */ new Map());
27684
+ T(this, Xi, /* @__PURE__ */ new Map()), T(this, Zr, /* @__PURE__ */ new Map()), T(this, ka, /* @__PURE__ */ new Map());
27685
27685
  }
27686
27686
  setupTransports(t) {
27687
27687
  return u(this, null, function* () {
@@ -27716,21 +27716,21 @@ class L1 extends M1 {
27716
27716
  }
27717
27717
  r != null && r.stopTrack && i.track.stop();
27718
27718
  try {
27719
- yield this.sendTransport.closeProducer(i), (n = o(this, wa).getValue("modules").e2ee) != null && n.enabled && A.emit(I.E2EE_INACTIVE_PRODUCER, i);
27719
+ yield this.sendTransport.closeProducer(i), (n = o(this, ba).getValue("modules").e2ee) != null && n.enabled && A.emit(I.E2EE_INACTIVE_PRODUCER, i);
27720
27720
  } catch (a) {
27721
27721
  p.error("Failed to close producer on server", { error: a, producer: i });
27722
27722
  }
27723
27723
  });
27724
27724
  }
27725
27725
  closeAllProducers() {
27726
- return Promise.all(Array.from(o(this, Qi).entries()).map(([, t]) => t.close()));
27726
+ return Promise.all(Array.from(o(this, Xi).entries()).map(([, t]) => t.close()));
27727
27727
  }
27728
27728
  createConsumer(t) {
27729
27729
  return this.createConsumers([t]);
27730
27730
  }
27731
27731
  createConsumers(t) {
27732
27732
  return u(this, null, function* () {
27733
- o(this, ka) || clearTimeout(o(this, ka)), T(this, hr, o(this, hr).concat(t)), yield F(this, yc, Dp).call(this);
27733
+ o(this, Aa) || clearTimeout(o(this, Aa)), T(this, hr, o(this, hr).concat(t)), yield F(this, yc, Dp).call(this);
27734
27734
  });
27735
27735
  }
27736
27736
  closeConsumer(t) {
@@ -27768,8 +27768,8 @@ class L1 extends M1 {
27768
27768
  });
27769
27769
  }
27770
27770
  }
27771
- wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), fl = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), gl = /* @__PURE__ */ new WeakSet(), Sy = function() {
27772
- return o(this, wa).getValue("connectionHandler");
27771
+ ba = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), fl = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), gl = /* @__PURE__ */ new WeakSet(), Sy = function() {
27772
+ return o(this, ba).getValue("connectionHandler");
27773
27773
  }, yc = /* @__PURE__ */ new WeakSet(), Dp = function() {
27774
27774
  return u(this, null, function* () {
27775
27775
  if (!this.recvTransport || this.recvTransport.closed)
@@ -27784,7 +27784,7 @@ wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /*
27784
27784
  F(this, El, Ry).bind(this),
27785
27785
  o(this, Ws).negotiate.bind(o(this, Ws))
27786
27786
  );
27787
- n.forEach(F(this, _l, wy).bind(this)), a != null && a.length && (p.error("Failed to create consumers for producers", { producers: a }), T(this, hr, o(this, hr).concat(a)), T(this, ka, setTimeout(
27787
+ n.forEach(F(this, _l, wy).bind(this)), a != null && a.length && (p.error("Failed to create consumers for producers", { producers: a }), T(this, hr, o(this, hr).concat(a)), T(this, Aa, setTimeout(
27788
27788
  F(this, yc, Dp).bind(this),
27789
27789
  t
27790
27790
  )));
@@ -27799,7 +27799,7 @@ wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /*
27799
27799
  }, yl = /* @__PURE__ */ new WeakSet(), _y = function() {
27800
27800
  return u(this, null, function* () {
27801
27801
  switch (this.recvTransport.on("connect", () => {
27802
- o(this, ba).clear();
27802
+ o(this, ka).clear();
27803
27803
  }), yield this.connectTransportWithRetry(this.recvTransport), this.nodeType) {
27804
27804
  case nt.CF: {
27805
27805
  T(this, Ws, new N1(
@@ -27845,7 +27845,7 @@ wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /*
27845
27845
  this.producers.delete(t.id), r();
27846
27846
  })), t.on("trackended", () => {
27847
27847
  p.info("producer::trackended", { producer: j(N({}, t), { status: "UNKNOWN" }) });
27848
- }), o(this, Qi).set(t.id, t);
27848
+ }), o(this, Xi).set(t.id, t);
27849
27849
  }, El = /* @__PURE__ */ new WeakSet(), Ry = function(t) {
27850
27850
  return u(this, null, function* () {
27851
27851
  try {
@@ -27870,7 +27870,7 @@ wa = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Zr = /*
27870
27870
  peerId: t.peerId
27871
27871
  });
27872
27872
  };
27873
- var Tc, Sc, Ec, Aa, Ia, Da, _c, Pc, Ma, Nt, Rs, ws, Xi, Zi, mr, Cc, Pl, by, Cl, ky, Rl, Ay, wl, Iy;
27873
+ var Tc, Sc, Ec, Ia, Da, Ma, _c, Pc, Oa, Nt, Rs, ws, Zi, en, mr, Cc, Pl, by, Cl, ky, Rl, Ay, wl, Iy;
27874
27874
  const bl = class {
27875
27875
  constructor({
27876
27876
  initialEnergyThreshold: e = 0.015,
@@ -27889,20 +27889,20 @@ const bl = class {
27889
27889
  v(this, Tc, void 0);
27890
27890
  v(this, Sc, void 0);
27891
27891
  v(this, Ec, void 0);
27892
- v(this, Aa, void 0);
27893
27892
  v(this, Ia, void 0);
27894
27893
  v(this, Da, void 0);
27894
+ v(this, Ma, void 0);
27895
27895
  v(this, _c, void 0);
27896
27896
  v(this, Pc, void 0);
27897
- v(this, Ma, void 0);
27897
+ v(this, Oa, void 0);
27898
27898
  v(this, Nt, void 0);
27899
27899
  v(this, Rs, void 0);
27900
27900
  v(this, ws, false);
27901
- v(this, Xi, 0);
27902
27901
  v(this, Zi, 0);
27902
+ v(this, en, 0);
27903
27903
  v(this, mr, []);
27904
27904
  v(this, Cc, void 0);
27905
- T(this, Aa, e), T(this, Nt, e), T(this, Tc, t), T(this, Sc, r), T(this, Ec, i), T(this, Ia, n), T(this, Da, a), T(this, _c, c), T(this, Pc, d), T(this, Ma, l), T(this, Cc, g), T(this, Rs, e / 2);
27905
+ T(this, Ia, e), T(this, Nt, e), T(this, Tc, t), T(this, Sc, r), T(this, Ec, i), T(this, Da, n), T(this, Ma, a), T(this, _c, c), T(this, Pc, d), T(this, Oa, l), T(this, Cc, g), T(this, Rs, e / 2);
27906
27906
  }
27907
27907
  get voiceDetected() {
27908
27908
  return o(this, ws);
@@ -27910,22 +27910,22 @@ const bl = class {
27910
27910
  processAudioChunk(e) {
27911
27911
  var a, c;
27912
27912
  const t = F(a = bl, Rl, Ay).call(a, e), r = F(c = bl, wl, Iy).call(c, e);
27913
- return F(this, Pl, by).call(this, t), t / o(this, Rs) > o(this, Ma) && t > o(this, Nt) && r > o(this, Tc) ? (T(this, Xi, o(this, Xi) + 1), T(this, Zi, o(this, Ec)), o(this, Xi) >= o(this, Sc) && T(this, ws, true)) : (T(this, Xi, 0), o(this, Zi) > 0 ? T(this, Zi, o(this, Zi) - 1) : o(this, ws) && T(this, ws, false), o(this, ws) || F(this, Cl, ky).call(this, t)), { energy: t, isVoice: o(this, ws) };
27913
+ return F(this, Pl, by).call(this, t), t / o(this, Rs) > o(this, Oa) && t > o(this, Nt) && r > o(this, Tc) ? (T(this, Zi, o(this, Zi) + 1), T(this, en, o(this, Ec)), o(this, Zi) >= o(this, Sc) && T(this, ws, true)) : (T(this, Zi, 0), o(this, en) > 0 ? T(this, en, o(this, en) - 1) : o(this, ws) && T(this, ws, false), o(this, ws) || F(this, Cl, ky).call(this, t)), { energy: t, isVoice: o(this, ws) };
27914
27914
  }
27915
27915
  reset() {
27916
- T(this, ws, false), T(this, Xi, 0), T(this, Zi, 0), T(this, Nt, o(this, Aa)), T(this, Rs, o(this, Aa) / 2), T(this, mr, []);
27916
+ T(this, ws, false), T(this, Zi, 0), T(this, en, 0), T(this, Nt, o(this, Ia)), T(this, Rs, o(this, Ia) / 2), T(this, mr, []);
27917
27917
  }
27918
27918
  getThresholdInfo() {
27919
27919
  return {
27920
27920
  currentEnergyThreshold: o(this, Nt),
27921
27921
  backgroundNoiseEnergy: o(this, Rs),
27922
- energyRatioThreshold: o(this, Ma)
27922
+ energyRatioThreshold: o(this, Oa)
27923
27923
  };
27924
27924
  }
27925
27925
  };
27926
27926
  let bo = bl;
27927
- Tc = /* @__PURE__ */ new WeakMap(), Sc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), Cc = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakSet(), by = function(e) {
27928
- o(this, ws) ? T(this, Nt, o(this, Da) * o(this, Nt) + (1 - o(this, Da)) * e) : T(this, Nt, o(this, Ia) * o(this, Nt) + (1 - o(this, Ia)) * o(this, Rs)), T(this, Nt, Math.max(
27927
+ Tc = /* @__PURE__ */ new WeakMap(), Sc = /* @__PURE__ */ new WeakMap(), Ec = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), Cc = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakSet(), by = function(e) {
27928
+ o(this, ws) ? T(this, Nt, o(this, Ma) * o(this, Nt) + (1 - o(this, Ma)) * e) : T(this, Nt, o(this, Da) * o(this, Nt) + (1 - o(this, Da)) * o(this, Rs)), T(this, Nt, Math.max(
27929
27929
  o(this, _c),
27930
27930
  Math.min(o(this, Pc), o(this, Nt))
27931
27931
  ));
@@ -27947,7 +27947,7 @@ Tc = /* @__PURE__ */ new WeakMap(), Sc = /* @__PURE__ */ new WeakMap(), Ec = /*
27947
27947
  return t;
27948
27948
  }, v(bo, Rl), v(bo, wl);
27949
27949
  const x1 = 60, V1 = 400;
27950
- var ei, ti, bs, Oa, si, Na, en, La, fr, ri, xa, kl, Dy, Rc, Mp, Al, My, Il, Oy;
27950
+ var ei, ti, bs, si, ri, Na, tn, La, fr, ii, xa, kl, Dy, Rc, Mp, Al, My, Il, Oy;
27951
27951
  const Uo = class {
27952
27952
  constructor(e) {
27953
27953
  v(this, kl);
@@ -27955,15 +27955,15 @@ const Uo = class {
27955
27955
  v(this, ei, void 0);
27956
27956
  v(this, ti, void 0);
27957
27957
  v(this, bs, void 0);
27958
- v(this, Oa, void 0);
27959
27958
  v(this, si, void 0);
27959
+ v(this, ri, void 0);
27960
27960
  v(this, Na, void 0);
27961
- v(this, en, void 0);
27961
+ v(this, tn, void 0);
27962
27962
  v(this, La, void 0);
27963
27963
  v(this, fr, void 0);
27964
- v(this, ri, void 0);
27964
+ v(this, ii, void 0);
27965
27965
  v(this, xa, void 0);
27966
- this.reportRequest = e, T(this, Oa, new AudioContext()), T(this, si, o(this, Oa).createAnalyser()), o(this, si).fftSize = 2048, T(this, La, new bo());
27966
+ this.reportRequest = e, T(this, si, new AudioContext()), T(this, ri, o(this, si).createAnalyser()), o(this, ri).fftSize = 2048, T(this, La, new bo());
27967
27967
  }
27968
27968
  set producerId(e) {
27969
27969
  T(this, bs, e);
@@ -27971,7 +27971,7 @@ const Uo = class {
27971
27971
  set audioTrack(e) {
27972
27972
  T(this, Na, e);
27973
27973
  const t = new MediaStream();
27974
- t.addTrack(o(this, Na)), o(this, Oa).createMediaStreamSource(t).connect(o(this, si));
27974
+ t.addTrack(o(this, Na)), o(this, si).createMediaStreamSource(t).connect(o(this, ri));
27975
27975
  }
27976
27976
  start() {
27977
27977
  p.debug(`AudioActivityReporter: Starting audio activity reporter: ${o(this, bs)}`), o(this, ei) && clearInterval$1(o(this, ei)), T(this, ei, setInterval$1(() => u(this, null, function* () {
@@ -27980,7 +27980,7 @@ const Uo = class {
27980
27980
  return;
27981
27981
  const { energy: e } = F(this, kl, Dy).call(this), t = F(i = Uo, Rc, Mp).call(i, e);
27982
27982
  let r = 0.9;
27983
- o(this, xa) !== t && o(this, xa) ? r = 0.9 : t ? r = 0.3 : r = 0.5, T(this, en, (o(this, en) || 0) * (1 - r) + e * r);
27983
+ o(this, xa) !== t && o(this, xa) ? r = 0.9 : t ? r = 0.3 : r = 0.5, T(this, tn, (o(this, tn) || 0) * (1 - r) + e * r);
27984
27984
  }), x1)), o(this, ti) && clearInterval$1(o(this, ti)), T(this, ti, setInterval$1(
27985
27985
  F(this, Al, My).bind(this),
27986
27986
  V1
@@ -27991,19 +27991,24 @@ const Uo = class {
27991
27991
  }
27992
27992
  };
27993
27993
  let ko = Uo;
27994
- ei = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), kl = /* @__PURE__ */ new WeakSet(), Dy = function() {
27994
+ ei = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), kl = /* @__PURE__ */ new WeakSet(), Dy = function() {
27995
27995
  var a;
27996
- const e = new Float32Array(o(this, si).frequencyBinCount);
27997
- o(this, si).getFloatTimeDomainData(e);
27996
+ o(this, si).state === "suspended" && o(this, si).resume().then(() => {
27997
+ p.debug("AudioActivityReporter: AudioContext forced resumed");
27998
+ }).catch((c) => {
27999
+ p.error("AudioActivityReporter: Error resuming AudioContext", c);
28000
+ });
28001
+ const e = new Float32Array(o(this, ri).frequencyBinCount);
28002
+ o(this, ri).getFloatTimeDomainData(e);
27998
28003
  const { energy: t, isVoice: r } = o(this, La).processAudioChunk(e), i = F(a = Uo, Il, Oy).call(a, t);
27999
28004
  return Y.hasFeature(se.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && p.debug(
28000
- `AudioActivityReporter: producer: ${o(this, bs)}, energy: ${o(this, en)},
28005
+ `AudioActivityReporter: producer: ${o(this, bs)}, energy: ${o(this, tn)},
28001
28006
  slogScale: ${i}, isVoice: ${r}, minEnergy: ${o(this, fr)},
28002
- maxEnergy: ${o(this, ri)}`
28003
- ), i === -1 / 0 || t < 1e-6 ? { energy: 0, isVoice: false } : ((!o(this, fr) || i < o(this, fr)) && T(this, fr, i), (!o(this, ri) || i > o(this, ri)) && T(this, ri, i), { energy: (i - o(this, fr)) / (o(this, ri) - o(this, fr)) * 10 || 0, isVoice: r });
28007
+ maxEnergy: ${o(this, ii)}`
28008
+ ), i === -1 / 0 || t < 1e-6 ? { energy: 0, isVoice: false } : ((!o(this, fr) || i < o(this, fr)) && T(this, fr, i), (!o(this, ii) || i > o(this, ii)) && T(this, ii, i), { energy: (i - o(this, fr)) / (o(this, ii) - o(this, fr)) * 10 || 0, isVoice: r });
28004
28009
  }, Rc = /* @__PURE__ */ new WeakSet(), Mp = function(e) {
28005
28010
  return e < 5;
28006
- }, Al = /* @__PURE__ */ new WeakSet(), My = function(e = o(this, en)) {
28011
+ }, Al = /* @__PURE__ */ new WeakSet(), My = function(e = o(this, tn)) {
28007
28012
  var r;
28008
28013
  if (!o(this, bs) || !e) {
28009
28014
  Y.hasFeature(se.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && p.debug(`AudioActivityReporter: No producerId or energy to report: ${o(this, bs)}`);
@@ -28041,12 +28046,12 @@ var F1 = Object.defineProperty, B1 = Object.getOwnPropertyDescriptor, le = (s, e
28041
28046
  return r && i && F1(e, t, i), i;
28042
28047
  };
28043
28048
  const Us = ["video/VP9", "video/VP8"];
28044
- var wc, bc, Tt, W, Va, ii, kt, tn, sn, ni, kc, gr, Ua, rn, nn, At, Lt, ai, Cn, lt, Ct, an, Ao, Dl, Ny, Ml, Ly, Ol, xy;
28049
+ var wc, bc, Tt, W, Va, ni, kt, sn, rn, ai, kc, gr, Ua, nn, an, At, Lt, oi, Rn, lt, Ct, on, Ao, Dl, Ny, Ml, Ly, Ol, xy;
28045
28050
  class oe {
28046
28051
  constructor(e, t, r) {
28047
- v(this, ai);
28052
+ v(this, oi);
28048
28053
  v(this, lt);
28049
- v(this, an);
28054
+ v(this, on);
28050
28055
  v(this, Dl);
28051
28056
  v(this, Ml);
28052
28057
  v(this, Ol);
@@ -28058,16 +28063,16 @@ class oe {
28058
28063
  v(this, Tt, void 0);
28059
28064
  v(this, W, void 0);
28060
28065
  v(this, Va, void 0);
28061
- v(this, ii, void 0);
28066
+ v(this, ni, void 0);
28062
28067
  v(this, kt, void 0);
28063
- v(this, tn, void 0);
28064
28068
  v(this, sn, void 0);
28065
- v(this, ni, void 0);
28069
+ v(this, rn, void 0);
28070
+ v(this, ai, void 0);
28066
28071
  v(this, kc, void 0);
28067
28072
  v(this, gr, void 0);
28068
28073
  v(this, Ua, void 0);
28069
- v(this, rn, void 0);
28070
28074
  v(this, nn, void 0);
28075
+ v(this, an, void 0);
28071
28076
  v(this, At, void 0);
28072
28077
  v(this, Lt, void 0);
28073
28078
  f(this, "partialJoinRoomPromise");
@@ -28076,17 +28081,17 @@ class oe {
28076
28081
  const {
28077
28082
  socket: i
28078
28083
  } = r;
28079
- this.mediaJoined = false, T(this, rn, /* @__PURE__ */ new Map([
28084
+ this.mediaJoined = false, T(this, nn, /* @__PURE__ */ new Map([
28080
28085
  ["video/VP9", /* @__PURE__ */ new Set()],
28081
28086
  ["video/VP8", /* @__PURE__ */ new Set()]
28082
- ])), T(this, nn, /* @__PURE__ */ new Map([
28087
+ ])), T(this, an, /* @__PURE__ */ new Map([
28083
28088
  ["video/VP9", /* @__PURE__ */ new Set()],
28084
28089
  ["video/VP8", /* @__PURE__ */ new Set()]
28085
- ])), T(this, ii, t), T(this, Tt, i), T(this, tn, false), T(this, W, new L1(e, i, t)), T(this, kt, o(this, W).events), T(this, gr, /* @__PURE__ */ new Set()), T(this, At, /* @__PURE__ */ new Map()), T(this, sn, false), T(this, ni, new $d()), t === nt.CF && T(this, Lt, new ko(
28090
+ ])), T(this, ni, t), T(this, Tt, i), T(this, sn, false), T(this, W, new L1(e, i, t)), T(this, kt, o(this, W).events), T(this, gr, /* @__PURE__ */ new Set()), T(this, At, /* @__PURE__ */ new Map()), T(this, rn, false), T(this, ai, new $d()), t === nt.CF && T(this, Lt, new ko(
28086
28091
  o(this, W).socketHandler.audioActivity.bind(o(this, W).socketHandler)
28087
28092
  )), this.e2ee = (a = (n = e.getValue("modules").e2ee) == null ? void 0 : n.enabled) != null ? a : false, this.handleSocketEvents(), this.handleCallstatsEvents(), T(this, kc, Dd(
28088
28093
  () => u(this, null, function* () {
28089
- if (!o(this, ai, Cn).mediaJoinAttempted)
28094
+ if (!o(this, oi, Rn).mediaJoinAttempted)
28090
28095
  return;
28091
28096
  const { roomJoined: c } = yield this.joinRoom(
28092
28097
  o(this, bc),
@@ -28105,17 +28110,17 @@ class oe {
28105
28110
  return this.context.getValue("peerId");
28106
28111
  }
28107
28112
  get mediaJoined() {
28108
- return o(this, ai, Cn).mediaJoined;
28113
+ return o(this, oi, Rn).mediaJoined;
28109
28114
  }
28110
28115
  set mediaJoined(e) {
28111
- o(this, ai, Cn).mediaJoined = e;
28116
+ o(this, oi, Rn).mediaJoined = e;
28112
28117
  }
28113
28118
  reset(e = true) {
28114
- o(this, W).closeAllProducers(), o(this, W).closeAllConsumers(), o(this, At).clear(), o(this, gr).clear(), e && (this.partialJoinRoomPromise = void 0, o(this, ni).stop(), o(this, W).stopAllTransports(), o(this, W).reset(), T(this, ni, new $d()));
28119
+ o(this, W).closeAllProducers(), o(this, W).closeAllConsumers(), o(this, At).clear(), o(this, gr).clear(), e && (this.partialJoinRoomPromise = void 0, o(this, ai).stop(), o(this, W).stopAllTransports(), o(this, W).reset(), T(this, ai, new $d()));
28115
28120
  }
28116
28121
  joinRoom(a, c) {
28117
28122
  return u(this, arguments, function* (e, t, r = {}, i = false, n = false) {
28118
- o(this, ai, Cn).mediaJoinAttempted = true, T(this, tn, true), this.reset(i);
28123
+ o(this, oi, Rn).mediaJoinAttempted = true, T(this, sn, true), this.reset(i);
28119
28124
  const d = ut().ipInfo;
28120
28125
  if (d != null && d.loc && !o(this, Ua)) {
28121
28126
  const g = d.loc.split(",");
@@ -28126,7 +28131,7 @@ class oe {
28126
28131
  }
28127
28132
  let l;
28128
28133
  try {
28129
- return l = yield o(this, ni).push(
28134
+ return l = yield o(this, ai).push(
28130
28135
  () => this._joinRoom(
28131
28136
  e,
28132
28137
  t,
@@ -28181,12 +28186,12 @@ class oe {
28181
28186
  se.ENABLE_HIVE_INFINITE_RETRIES
28182
28187
  ) ? 1 / 0 : 3
28183
28188
  }
28184
- ), yield o(this, W).setupTransports({ send: true, recv: true }), o(this, ii) !== nt.HIVE && Y.hasFeature(se.PRECREATE_PRODUCERS) && (this.shareWebcam($1()), this.shareMic(U1()));
28189
+ ), yield o(this, W).setupTransports({ send: true, recv: true }), o(this, ni) !== nt.HIVE && Y.hasFeature(se.PRECREATE_PRODUCERS) && (this.shareWebcam($1()), this.shareMic(U1()));
28185
28190
  });
28186
28191
  }
28187
28192
  partialJoinRoom(e, t, r = false, i = void 0) {
28188
28193
  return u(this, null, function* () {
28189
- return this.partialJoinRoomPromise = o(this, ni).push(() => this._partialJoinRoom(
28194
+ return this.partialJoinRoomPromise = o(this, ai).push(() => this._partialJoinRoom(
28190
28195
  e,
28191
28196
  t,
28192
28197
  r,
@@ -28233,7 +28238,7 @@ class oe {
28233
28238
  try {
28234
28239
  this.mediaJoined = true;
28235
28240
  const { roomState: e } = yield o(this, W).socketHandler.notifySelfJoinComplete();
28236
- return T(this, wc, e.roomUuid), T(this, sn, true), T(this, tn, false), true;
28241
+ return T(this, wc, e.roomUuid), T(this, rn, true), T(this, sn, false), true;
28237
28242
  } catch (e) {
28238
28243
  return p.error("error on completing join room:", { error: e }), this.mediaJoined = false, false;
28239
28244
  }
@@ -28241,7 +28246,7 @@ class oe {
28241
28246
  }
28242
28247
  leaveRoom() {
28243
28248
  return u(this, null, function* () {
28244
- o(this, W).stopAllTransports(), T(this, sn, false), o(this, ai, Cn).mediaJoinAttempted = false;
28249
+ o(this, W).stopAllTransports(), T(this, rn, false), o(this, oi, Rn).mediaJoinAttempted = false;
28245
28250
  const e = {
28246
28251
  closeRoom: false
28247
28252
  };
@@ -28322,8 +28327,8 @@ class oe {
28322
28327
  }
28323
28328
  return this._shareWebcam(e, t);
28324
28329
  }
28325
- const n = F(this, Ol, xy).call(this, e, t), a = Od(this.context, "disableSimulcast"), c = o(this, ii) === nt.CF ? se.ENABLE_CF_SIMULCAST : se.ENABLE_HIVE_SIMULCAST;
28326
- !a && Y.hasFeature(c) ? (p.info(`Simulcast enabled for SFU: ${o(this, ii)}`), n.encodings = lO(e)) : p.info(`Simulcast disabled for webcam producer, SFU: ${o(this, ii)}`), Y.hasFeature(se.TRACK_HINT) && (n.track.contentHint = Y.getValue(
28330
+ const n = F(this, Ol, xy).call(this, e, t), a = Od(this.context, "disableSimulcast"), c = o(this, ni) === nt.CF ? se.ENABLE_CF_SIMULCAST : se.ENABLE_HIVE_SIMULCAST;
28331
+ !a && Y.hasFeature(c) ? (p.info(`Simulcast enabled for SFU: ${o(this, ni)}`), n.encodings = lO(e)) : p.info(`Simulcast disabled for webcam producer, SFU: ${o(this, ni)}`), Y.hasFeature(se.TRACK_HINT) && (n.track.contentHint = Y.getValue(
28327
28332
  se.TRACK_HINT
28328
28333
  ));
28329
28334
  const d = () => {
@@ -28332,7 +28337,7 @@ class oe {
28332
28337
  n,
28333
28338
  d
28334
28339
  );
28335
- return F(this, an, Ao).call(this, r, l.then((g) => g.id)), l.then((g) => g.track);
28340
+ return F(this, on, Ao).call(this, r, l.then((g) => g.id)), l.then((g) => g.track);
28336
28341
  });
28337
28342
  }
28338
28343
  shareWebcam(e) {
@@ -28349,7 +28354,7 @@ class oe {
28349
28354
  var r, i;
28350
28355
  return ((i = (r = o(this, Va).sender) == null ? void 0 : r.video) == null ? void 0 : i.codecs.findIndex(
28351
28356
  (n) => n.mimeType === t
28352
- )) >= 0 && o(this, nn).get(t).size > 0 ? (p.debug(
28357
+ )) >= 0 && o(this, an).get(t).size > 0 ? (p.debug(
28353
28358
  `Calling _shareWebcam with video codec: ${t}`
28354
28359
  ), this._shareWebcam(e, t)) : e;
28355
28360
  })
@@ -28380,7 +28385,7 @@ class oe {
28380
28385
  i,
28381
28386
  n
28382
28387
  );
28383
- F(this, an, Ao).call(this, ve.SCREENSHARE_VIDEO, a.then((d) => d.id));
28388
+ F(this, on, Ao).call(this, ve.SCREENSHARE_VIDEO, a.then((d) => d.id));
28384
28389
  let c;
28385
28390
  if (r) {
28386
28391
  const d = {
@@ -28398,7 +28403,7 @@ class oe {
28398
28403
  c = o(this, W).createProducer(
28399
28404
  d,
28400
28405
  l
28401
- ), F(this, an, Ao).call(this, ve.SCREENSHARE_AUDIO, c.then((g) => g.id));
28406
+ ), F(this, on, Ao).call(this, ve.SCREENSHARE_AUDIO, c.then((g) => g.id));
28402
28407
  }
28403
28408
  yield Promise.all([a, c || Promise.resolve()]), J.screenShareStart();
28404
28409
  });
@@ -28428,7 +28433,7 @@ class oe {
28428
28433
  r,
28429
28434
  i
28430
28435
  );
28431
- F(this, an, Ao).call(this, ve.MIC, n.then((a) => a.id)), yield n.then((a) => {
28436
+ F(this, on, Ao).call(this, ve.MIC, n.then((a) => a.id)), yield n.then((a) => {
28432
28437
  o(this, Lt) && (o(this, Lt).audioTrack = a.track, o(this, Lt).producerId = a.id, o(this, Lt).start());
28433
28438
  });
28434
28439
  } catch (t) {
@@ -28658,7 +28663,7 @@ class oe {
28658
28663
  return;
28659
28664
  if (n != null && n.mimeType || (n.mimeType = n.kind === Js.AUDIO ? "audio/opus" : "video/VP8"), n.kind === Js.VIDEO && !n.screenShare && ((r = (t = o(this, Va).receiver) == null ? void 0 : t.video) == null ? void 0 : r.codecs.findIndex(
28660
28665
  (a) => a.mimeType === Us[0]
28661
- )) >= 0 && o(this, rn).get(Us[0]).has(i) && n.mimeType !== Us[0]) {
28666
+ )) >= 0 && o(this, nn).get(Us[0]).has(i) && n.mimeType !== Us[0]) {
28662
28667
  p.warn(`Ignoring producer: ${n.producerId}`);
28663
28668
  return;
28664
28669
  }
@@ -28765,7 +28770,7 @@ class oe {
28765
28770
  ), o(this, Tt).on(
28766
28771
  o(this, kt).mediaRoomTerminationBroadcastResponse,
28767
28772
  () => {
28768
- !this.mediaJoined && !o(this, tn) && !o(this, sn) || (p.warn(
28773
+ !this.mediaJoined && !o(this, sn) && !o(this, rn) || (p.warn(
28769
28774
  "media hub termination broadcast received, rejoining room"
28770
28775
  ), A.emit(I.ROOM_NODE_DISCONNECTED), o(this, kc).call(this));
28771
28776
  }
@@ -28806,7 +28811,7 @@ class oe {
28806
28811
  if (((i = (r = t == null ? void 0 : t.receiver) == null ? void 0 : r.video) == null ? void 0 : i.codecs.findIndex(
28807
28812
  (l) => l.mimeType === d
28808
28813
  )) >= 0 || c === Us.length - 1) {
28809
- o(this, nn).get(d).add(e);
28814
+ o(this, an).get(d).add(e);
28810
28815
  break;
28811
28816
  }
28812
28817
  }
@@ -28815,22 +28820,22 @@ class oe {
28815
28820
  if (((a = (n = t == null ? void 0 : t.sender) == null ? void 0 : n.video) == null ? void 0 : a.codecs.findIndex(
28816
28821
  (l) => l.mimeType === d
28817
28822
  )) >= 0 || c === Us.length - 1) {
28818
- o(this, rn).get(d).add(e);
28823
+ o(this, nn).get(d).add(e);
28819
28824
  break;
28820
28825
  }
28821
28826
  }
28822
28827
  }
28823
28828
  handlePeerLeaving(e) {
28824
- Y.hasFeature(se.FORCE_VIDEO_CODEC) || (o(this, rn).forEach((t) => t.delete(e)), o(this, nn).forEach((t, r) => {
28829
+ Y.hasFeature(se.FORCE_VIDEO_CODEC) || (o(this, nn).forEach((t) => t.delete(e)), o(this, an).forEach((t, r) => {
28825
28830
  t.delete(e), t.size === 0 && this.disableWebcam(r);
28826
28831
  }));
28827
28832
  }
28828
28833
  }
28829
- wc = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), Va = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), kc = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Ua = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakSet(), Cn = function() {
28834
+ wc = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), Va = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), kc = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Ua = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakSet(), Rn = function() {
28830
28835
  return this.context.getValue("connectionHandler");
28831
28836
  }, lt = /* @__PURE__ */ new WeakSet(), Ct = function(e) {
28832
28837
  return o(this, At).get(e);
28833
- }, an = /* @__PURE__ */ new WeakSet(), Ao = function(e, t) {
28838
+ }, on = /* @__PURE__ */ new WeakSet(), Ao = function(e, t) {
28834
28839
  return o(this, At).set(e, t);
28835
28840
  }, Dl = /* @__PURE__ */ new WeakSet(), Ny = function(e) {
28836
28841
  return o(this, At).delete(e);
@@ -28977,22 +28982,22 @@ function Uy(s) {
28977
28982
  }
28978
28983
  s.setValue("roomNodeClient", void 0);
28979
28984
  }
28980
- var H1 = Object.defineProperty, q1 = Object.getOwnPropertyDescriptor, Ti = (s, e, t, r) => {
28985
+ var H1 = Object.defineProperty, q1 = Object.getOwnPropertyDescriptor, Si = (s, e, t, r) => {
28981
28986
  for (var i = r > 1 ? void 0 : r ? q1(e, t) : e, n = s.length - 1, a; n >= 0; n--)
28982
28987
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
28983
28988
  return r && i && H1(e, t, i), i;
28984
- }, oi, ks, St, Kt, Ss, qf;
28989
+ }, ci, ks, St, Kt, Ss, qf;
28985
28990
  const $y = (qf = class {
28986
28991
  constructor(s, e, t, r) {
28987
28992
  v(this, Kt);
28988
28993
  f(this, "self");
28989
28994
  f(this, "authToken");
28990
- v(this, oi, void 0);
28995
+ v(this, ci, void 0);
28991
28996
  f(this, "viewType");
28992
28997
  v(this, ks, void 0);
28993
28998
  v(this, St, void 0);
28994
28999
  const { socket: i } = t, n = s.getValue("authToken");
28995
- this.self = e, T(this, St, s), this.viewType = r, this.authToken = n, T(this, oi, i), T(this, ks, t), e.config.viewType !== Dt.Chat && this.setupEvents();
29000
+ this.self = e, T(this, St, s), this.viewType = r, this.authToken = n, T(this, ci, i), T(this, ks, t), e.config.viewType !== Dt.Chat && this.setupEvents();
28996
29001
  }
28997
29002
  get peerId() {
28998
29003
  return o(this, St).getValue("peerId");
@@ -29117,7 +29122,7 @@ const $y = (qf = class {
29117
29122
  if (this.self.roomState === "disconnected")
29118
29123
  return;
29119
29124
  let { peerId: e } = this;
29120
- s && Y.hasFeature(se.REFRESH_ID_ON_DISCONNECTION) && (e = v4()), o(this, oi).updateURL(e), h.resetPeerId(e), ut().setHeader("dyte-tracing-id", e), on.remapContext(e, o(this, St)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
29125
+ s && Y.hasFeature(se.REFRESH_ID_ON_DISCONNECTION) && (e = v4()), o(this, ci).updateURL(e), h.resetPeerId(e), ut().setHeader("dyte-tracing-id", e), cn.remapContext(e, o(this, St)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
29121
29126
  }), A.on(I.SOCKET_SERVICE_FAILED, () => {
29122
29127
  this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
29123
29128
  }), o(this, ks).on(U.waitingRoomRequestAccepted, () => {
@@ -29185,7 +29190,7 @@ const $y = (qf = class {
29185
29190
  var e, t;
29186
29191
  if (s === "rejected") {
29187
29192
  try {
29188
- (e = o(this, oi)) == null || e.disconnect();
29193
+ (e = o(this, ci)) == null || e.disconnect();
29189
29194
  } catch (r) {
29190
29195
  p.error("SelfController::leaveRoom::socketDisconnect");
29191
29196
  }
@@ -29194,7 +29199,7 @@ const $y = (qf = class {
29194
29199
  }
29195
29200
  this.self.setIsPinned(false), o(this, St).setValue("stageStatus", "OFF_STAGE", false), yield this.leaveMediaRoom(s), o(this, St).notify("stageStatus");
29196
29201
  try {
29197
- (t = o(this, oi)) == null || t.disconnect();
29202
+ (t = o(this, ci)) == null || t.disconnect();
29198
29203
  } catch (r) {
29199
29204
  p.error("SelfController::leaveRoom::socketDisconnect");
29200
29205
  }
@@ -29218,7 +29223,7 @@ const $y = (qf = class {
29218
29223
  return;
29219
29224
  }
29220
29225
  Vy(o(this, St), a, {
29221
- socket: o(this, oi),
29226
+ socket: o(this, ci),
29222
29227
  peerId: e
29223
29228
  });
29224
29229
  }
@@ -29252,32 +29257,32 @@ const $y = (qf = class {
29252
29257
  yield this.self.disableAudio(), yield this.self.disableVideo(), yield this.self.disableScreenShare(), this.self.cleanUpTracks(), this.self.destructMediaHandler(), navigator.isReactNative || this.self.removeDocumentEventListeners();
29253
29258
  });
29254
29259
  }
29255
- }, oi = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakSet(), Ss = function() {
29260
+ }, ci = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakSet(), Ss = function() {
29256
29261
  return o(this, St).getValue("roomNodeClient");
29257
29262
  }, qf);
29258
29263
  let kr = $y;
29259
- Ti([
29264
+ Si([
29260
29265
  h.trace("SelfController.shareMediaTracks")
29261
29266
  ], kr.prototype, "shareMediaTracks", 1);
29262
- Ti([
29267
+ Si([
29263
29268
  h.trace("SelfController.resetSelf")
29264
29269
  ], kr.prototype, "resetSelf", 1);
29265
- Ti([
29270
+ Si([
29266
29271
  h.trace("SelfController.setupEvents")
29267
29272
  ], kr.prototype, "setupEvents", 1);
29268
- Ti([
29273
+ Si([
29269
29274
  h.trace("SelfController.joinRoom")
29270
29275
  ], kr.prototype, "joinRoom", 1);
29271
- Ti([
29276
+ Si([
29272
29277
  h.trace("SelfController.leaveRoom")
29273
29278
  ], kr.prototype, "leaveRoom", 1);
29274
- Ti([
29279
+ Si([
29275
29280
  h.trace("SelfController.joinMediaRoom")
29276
29281
  ], kr.prototype, "joinMediaRoom", 1);
29277
- Ti([
29282
+ Si([
29278
29283
  h.trace("SelfController.leaveMediaRoom")
29279
29284
  ], kr.prototype, "leaveMediaRoom", 1);
29280
- Ti([
29285
+ Si([
29281
29286
  h.trace("SelfController.init")
29282
29287
  ], kr, "init", 1);
29283
29288
  var Ac;
@@ -29510,7 +29515,7 @@ class K1 {
29510
29515
  U.getPeerInfo,
29511
29516
  Iv.toBinary({ peerId: e })
29512
29517
  );
29513
- return En.fromBinary(t.payload);
29518
+ return _n.fromBinary(t.payload);
29514
29519
  });
29515
29520
  }
29516
29521
  }
@@ -29710,10 +29715,10 @@ var Y1 = Object.defineProperty, Q1 = (s, e, t) => e in s ? Y1(s, e, { enumerable
29710
29715
  set exports(s) {
29711
29716
  Hd = s;
29712
29717
  }
29713
- }, On = typeof Reflect == "object" ? Reflect : null, yf = On && typeof On.apply == "function" ? On.apply : function(s, e, t) {
29718
+ }, Nn = typeof Reflect == "object" ? Reflect : null, yf = Nn && typeof Nn.apply == "function" ? Nn.apply : function(s, e, t) {
29714
29719
  return Function.prototype.apply.call(s, e, t);
29715
29720
  }, Sd;
29716
- On && typeof On.ownKeys == "function" ? Sd = On.ownKeys : Object.getOwnPropertySymbols ? Sd = function(s) {
29721
+ Nn && typeof Nn.ownKeys == "function" ? Sd = Nn.ownKeys : Object.getOwnPropertySymbols ? Sd = function(s) {
29717
29722
  return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s));
29718
29723
  } : Sd = function(s) {
29719
29724
  return Object.getOwnPropertyNames(s);
@@ -30011,34 +30016,34 @@ const Ir = {
30011
30016
  warn: 2,
30012
30017
  error: 3
30013
30018
  };
30014
- var Ci, Ri;
30019
+ var Ri, wi;
30015
30020
  class dN {
30016
30021
  constructor(e) {
30017
- Ee(this, Ci, void 0), Ee(this, Ri, void 0), ue(this, Ci, console), ue(this, Ri, e);
30022
+ Ee(this, Ri, void 0), Ee(this, wi, void 0), ue(this, Ri, console), ue(this, wi, e);
30018
30023
  }
30019
30024
  debug(...e) {
30020
- Ir[M(this, Ri)] > Ir.debug || M(this, Ci).debug("[Sockrates]:", ...e);
30025
+ Ir[M(this, wi)] > Ir.debug || M(this, Ri).debug("[Sockrates]:", ...e);
30021
30026
  }
30022
30027
  info(...e) {
30023
- Ir[M(this, Ri)] > Ir.info || M(this, Ci).info("[Sockrates]:", ...e);
30028
+ Ir[M(this, wi)] > Ir.info || M(this, Ri).info("[Sockrates]:", ...e);
30024
30029
  }
30025
30030
  warn(...e) {
30026
- Ir[M(this, Ri)] > Ir.warn || M(this, Ci).warn("[Sockrates]:", ...e);
30031
+ Ir[M(this, wi)] > Ir.warn || M(this, Ri).warn("[Sockrates]:", ...e);
30027
30032
  }
30028
30033
  error(...e) {
30029
- Ir[M(this, Ri)] > Ir.error || M(this, Ci).error("[Sockrates]:", ...e);
30034
+ Ir[M(this, wi)] > Ir.error || M(this, Ri).error("[Sockrates]:", ...e);
30030
30035
  }
30031
30036
  }
30032
- Ci = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap();
30037
+ Ri = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap();
30033
30038
  var zy = /* @__PURE__ */ ((s) => (s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s))(zy || {});
30034
30039
  const lN = "2", uN = "3";
30035
- var $e, Rn, be, ze, Nr, it, Sr, li, As, wn, er, Op, Yy, Io, Ed, Np, Qy, Lp, Ef, qd, xp, Vp, Xy, No, _d, Lo, jd, Gd, Up, Nn, xo, Vo, Wd;
30040
+ var $e, wn, be, ze, Nr, it, Sr, ui, As, bn, er, Op, Yy, Io, Ed, Np, Qy, Lp, Ef, qd, xp, Vp, Xy, No, _d, Lo, jd, Gd, Up, Ln, xo, Vo, Wd;
30036
30041
  class pN {
30037
30042
  constructor(e, t) {
30038
30043
  var G;
30039
- Ee(this, Op), Ee(this, Io), Ee(this, Np), Ee(this, Lp), Ee(this, qd), Ee(this, Vp), Ee(this, No), Ee(this, Lo), Ee(this, Gd), Ee(this, Nn), Ee(this, Vo), Ee(this, $e, void 0), Ee(this, Rn, void 0), Ee(this, be, void 0), Ee(this, ze, void 0), Ee(this, Nr, void 0), Ee(this, it, void 0), Ee(this, Sr, void 0), Ee(this, li, void 0), Ee(this, As, void 0), Ee(this, wn, void 0), Ee(this, er, void 0);
30044
+ Ee(this, Op), Ee(this, Io), Ee(this, Np), Ee(this, Lp), Ee(this, qd), Ee(this, Vp), Ee(this, No), Ee(this, Lo), Ee(this, Gd), Ee(this, Ln), Ee(this, Vo), Ee(this, $e, void 0), Ee(this, wn, void 0), Ee(this, be, void 0), Ee(this, ze, void 0), Ee(this, Nr, void 0), Ee(this, it, void 0), Ee(this, Sr, void 0), Ee(this, ui, void 0), Ee(this, As, void 0), Ee(this, bn, void 0), Ee(this, er, void 0);
30040
30045
  var r, i, n, a, c, d, l, g, m;
30041
- ue(this, Rn, e), ue(this, Nr, []), ue(this, it, new Hd()), ue(this, Sr, true), ue(this, As, false), ue(this, be, t != null ? t : {}), (r = M(this, be)).autoReconnect != null || (r.autoReconnect = true), (i = M(this, be)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = M(this, be)).pingTimeout != null || (n.pingTimeout = 3e4), (a = M(this, be)).connectionTimeout != null || (a.connectionTimeout = 5e3), (c = M(this, be)).debug != null || (c.debug = true), (d = M(this, be)).maxReconnectionAttempts != null || (d.maxReconnectionAttempts = 10), (l = M(this, be)).disconnectOnPingTimeout != null || (l.disconnectOnPingTimeout = true), (g = M(this, be)).queueOnDisconnect != null || (g.queueOnDisconnect = false), (m = M(this, be)).flushOnReconnect != null || (m.flushOnReconnect = false), ue(this, li, {
30046
+ ue(this, wn, e), ue(this, Nr, []), ue(this, it, new Hd()), ue(this, Sr, true), ue(this, As, false), ue(this, be, t != null ? t : {}), (r = M(this, be)).autoReconnect != null || (r.autoReconnect = true), (i = M(this, be)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = M(this, be)).pingTimeout != null || (n.pingTimeout = 3e4), (a = M(this, be)).connectionTimeout != null || (a.connectionTimeout = 5e3), (c = M(this, be)).debug != null || (c.debug = true), (d = M(this, be)).maxReconnectionAttempts != null || (d.maxReconnectionAttempts = 10), (l = M(this, be)).disconnectOnPingTimeout != null || (l.disconnectOnPingTimeout = true), (g = M(this, be)).queueOnDisconnect != null || (g.queueOnDisconnect = false), (m = M(this, be)).flushOnReconnect != null || (m.flushOnReconnect = false), ue(this, ui, {
30042
30047
  code: void 0,
30043
30048
  reason: void 0
30044
30049
  }), ue(this, ze, (G = M(this, be).logger) != null ? G : new dN(M(this, be).debug ? "debug" : "info")), ue(this, er, new cN());
@@ -30048,10 +30053,10 @@ class pN {
30048
30053
  return (e = M(this, $e)) == null ? void 0 : e.readyState;
30049
30054
  }
30050
30055
  get url() {
30051
- return M(this, Rn);
30056
+ return M(this, wn);
30052
30057
  }
30053
30058
  updateURL(e) {
30054
- ue(this, Rn, e), ke(this, Vp, Xy).call(this);
30059
+ ue(this, wn, e), ke(this, Vp, Xy).call(this);
30055
30060
  }
30056
30061
  get config() {
30057
30062
  return M(this, be);
@@ -30078,16 +30083,16 @@ class pN {
30078
30083
  }
30079
30084
  if (M(this, Sr) !== false)
30080
30085
  return new Promise((t, r) => {
30081
- ke(this, Nn, xo).call(this), ke(this, Vo, Wd).call(this);
30086
+ ke(this, Ln, xo).call(this), ke(this, Vo, Wd).call(this);
30082
30087
  try {
30083
- ue(this, $e, new WebSocket(ke(this, Op, Yy).call(this, M(this, Rn)))), M(this, $e).binaryType = "arraybuffer", M(this, ze).debug("Connecting");
30088
+ ue(this, $e, new WebSocket(ke(this, Op, Yy).call(this, M(this, wn)))), M(this, $e).binaryType = "arraybuffer", M(this, ze).debug("Connecting");
30084
30089
  const i = setTimeout(() => {
30085
30090
  M(this, ze).debug("Connection timeout. Closing socket"), ue(this, Sr, true), ke(this, Vo, Wd).call(this), M(this, $e).close(3001, "Connection Timeout"), M(this, be).autoReconnect && !M(this, As) && (M(this, it).emit(
30086
30091
  "reconnecting"
30087
30092
  ), ke(this, No, _d).call(this)), r(new Error("Connection timed out!"));
30088
30093
  }, M(this, be).connectionTimeout);
30089
30094
  M(this, $e).onopen = () => {
30090
- M(this, ze).debug(`Ready State: ${zy[M(this, $e).readyState]}`), i && clearTimeout(i), ke(this, Gd, Up).call(this), ue(this, li, {
30095
+ M(this, ze).debug(`Ready State: ${zy[M(this, $e).readyState]}`), i && clearTimeout(i), ke(this, Gd, Up).call(this), ue(this, ui, {
30091
30096
  code: void 0,
30092
30097
  reason: void 0
30093
30098
  }), M(this, it).emit(
@@ -30151,13 +30156,13 @@ class pN {
30151
30156
  );
30152
30157
  }
30153
30158
  disconnect() {
30154
- ue(this, Sr, false), ke(this, Nn, xo).call(this), this.removeAllListeners(), ue(this, li, {
30159
+ ue(this, Sr, false), ke(this, Ln, xo).call(this), this.removeAllListeners(), ue(this, ui, {
30155
30160
  code: 1e3,
30156
30161
  reason: "Sockrates disconnect method called"
30157
30162
  }), M(this, $e).close(1e3, "Sockrates disconnect method called.");
30158
30163
  }
30159
30164
  }
30160
- $e = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), Op = /* @__PURE__ */ new WeakSet(), Yy = function(s) {
30165
+ $e = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), Op = /* @__PURE__ */ new WeakSet(), Yy = function(s) {
30161
30166
  if (s.startsWith("ws://") || s.startsWith("wss://"))
30162
30167
  return s;
30163
30168
  if (s.startsWith("https://"))
@@ -30177,9 +30182,9 @@ $e = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), be = /*
30177
30182
  }, Lp = /* @__PURE__ */ new WeakSet(), Ef = function() {
30178
30183
  return M(this, $e).readyState === 1;
30179
30184
  }, qd = /* @__PURE__ */ new WeakSet(), xp = function(s, e) {
30180
- ue(this, li, { reason: e, code: s }), M(this, it).emit("disconnected", { code: s, reason: e });
30185
+ ue(this, ui, { reason: e, code: s }), M(this, it).emit("disconnected", { code: s, reason: e });
30181
30186
  }, Vp = /* @__PURE__ */ new WeakSet(), Xy = function() {
30182
- const { reason: s, code: e } = M(this, li);
30187
+ const { reason: s, code: e } = M(this, ui);
30183
30188
  e && e !== 1e3 && M(this, Sr) && M(this, be).autoReconnect && !M(this, As) && (M(this, ze).debug(`Triggering reconnection due to ${s}.`), M(this, it).emit(
30184
30189
  "reconnecting"
30185
30190
  ), ke(this, No, _d).call(this));
@@ -30195,13 +30200,13 @@ $e = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), be = /*
30195
30200
  ), ue(this, As, false);
30196
30201
  return;
30197
30202
  }
30198
- ue(this, As, true), ke(this, Vo, Wd).call(this), ke(this, Nn, xo).call(this);
30203
+ ue(this, As, true), ke(this, Vo, Wd).call(this), ke(this, Ln, xo).call(this);
30199
30204
  try {
30200
30205
  if (yield M(this, er).wait(), M(this, Sr) === false)
30201
30206
  return;
30202
30207
  if (M(this, ze).debug(`Reconnection attempt ${M(this, er).getAttempts()}`), M(this, it).emit("reconnectAttempt", { attempt: M(this, er).getAttempts() }), yield this.connect(), !ke(this, Lp, Ef).call(this))
30203
30208
  throw Error("Reconnect Failed");
30204
- ue(this, As, false), ue(this, li, {
30209
+ ue(this, As, false), ue(this, ui, {
30205
30210
  code: void 0,
30206
30211
  reason: void 0
30207
30212
  }), M(this, it).emit(
@@ -30218,14 +30223,14 @@ $e = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), be = /*
30218
30223
  return M(this, ze).error(e.message), false;
30219
30224
  }
30220
30225
  }, Gd = /* @__PURE__ */ new WeakSet(), Up = function() {
30221
- this.config.disconnectOnPingTimeout && (M(this, ze).debug("Resetting ping timeout"), ke(this, Nn, xo).call(this), ue(this, wn, setTimeout(() => {
30226
+ this.config.disconnectOnPingTimeout && (M(this, ze).debug("Resetting ping timeout"), ke(this, Ln, xo).call(this), ue(this, bn, setTimeout(() => {
30222
30227
  var s;
30223
30228
  M(this, ze).debug("Disconnecting the socket due to ping timeout"), ue(this, Sr, true);
30224
30229
  const e = 3002, t = "Ping timeout";
30225
30230
  (s = M(this, $e)) == null || s.close(e, t), ke(this, qd, xp).call(this, e, t);
30226
30231
  }, M(this, be).pingTimeout)));
30227
- }, Nn = /* @__PURE__ */ new WeakSet(), xo = function() {
30228
- M(this, wn) && (clearTimeout(M(this, wn)), ue(this, wn, void 0));
30232
+ }, Ln = /* @__PURE__ */ new WeakSet(), xo = function() {
30233
+ M(this, bn) && (clearTimeout(M(this, bn)), ue(this, bn, void 0));
30229
30234
  }, Vo = /* @__PURE__ */ new WeakSet(), Wd = function() {
30230
30235
  M(this, $e) && (M(this, $e).onopen = void 0, M(this, $e).onerror = void 0, M(this, $e).onmessage = void 0, M(this, $e).onclose = void 0);
30231
30236
  };
@@ -30235,7 +30240,7 @@ var hN = Object.defineProperty, mN = Object.getOwnPropertyDescriptor, du = (s, e
30235
30240
  return r && i && hN(e, t, i), i;
30236
30241
  };
30237
30242
  const _f = 65535, fN = 3e3;
30238
- var ci, Oe, Ne, je, ps, yr, Dc, $p, Mc, Fp, jf;
30243
+ var di, Oe, Ne, je, ps, yr, Dc, $p, Mc, Fp, jf;
30239
30244
  const Zy = (jf = class {
30240
30245
  constructor(s, {
30241
30246
  peerId: e,
@@ -30246,7 +30251,7 @@ const Zy = (jf = class {
30246
30251
  v(this, Ne);
30247
30252
  v(this, Dc);
30248
30253
  v(this, Mc);
30249
- v(this, ci, void 0);
30254
+ v(this, di, void 0);
30250
30255
  v(this, Oe, void 0);
30251
30256
  f(this, "roomName");
30252
30257
  f(this, "authToken");
@@ -30256,7 +30261,7 @@ const Zy = (jf = class {
30256
30261
  var n;
30257
30262
  if (!e || !t || !r)
30258
30263
  throw new w("peerId, meetingId, or authToken can not be empty", "0404");
30259
- T(this, ps, void 0), T(this, yr, s), this.capabilities = i, this.roomName = t, this.authToken = r, T(this, ci, F(this, Dc, $p).call(this, e)), T(this, Oe, new pN(o(this, ci), {
30264
+ T(this, ps, void 0), T(this, yr, s), this.capabilities = i, this.roomName = t, this.authToken = r, T(this, di, F(this, Dc, $p).call(this, e)), T(this, Oe, new pN(o(this, di), {
30260
30265
  autoReconnect: true,
30261
30266
  disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
30262
30267
  queueOnDisconnect: true,
@@ -30274,13 +30279,13 @@ const Zy = (jf = class {
30274
30279
  return o(this, yr).getValue("peerId");
30275
30280
  }
30276
30281
  updateURL(s) {
30277
- s !== this.peerId && (T(this, ci, F(this, Dc, $p).call(this, s)), p.debug("SocketService:: Connection URL updated.")), o(this, Oe).updateURL(o(this, ci));
30282
+ s !== this.peerId && (T(this, di, F(this, Dc, $p).call(this, s)), p.debug("SocketService:: Connection URL updated.")), o(this, Oe).updateURL(o(this, di));
30278
30283
  }
30279
30284
  static getSocketEdgeDomain(s) {
30280
- return Mn({ servicePrefix: "socket-edge", baseURI: s });
30285
+ return On({ servicePrefix: "socket-edge", baseURI: s });
30281
30286
  }
30282
30287
  get url() {
30283
- return o(this, ci);
30288
+ return o(this, di);
30284
30289
  }
30285
30290
  connect() {
30286
30291
  return u(this, null, function* () {
@@ -30405,7 +30410,7 @@ const Zy = (jf = class {
30405
30410
  var i;
30406
30411
  p.info("SocketService::Disconnected from socket-edge", { error: { code: s, reason: e }, country: h.location.country });
30407
30412
  const { recv: t, send: r } = (i = o(this, Ne, je).mediaState) != null ? i : {};
30408
- t != null && t.state && (t == null ? void 0 : t.state) !== pi.CONNECTED || r != null && r.state && (r == null ? void 0 : r.state) !== pi.CONNECTED ? A.emit(
30413
+ t != null && t.state && (t == null ? void 0 : t.state) !== hi.CONNECTED || r != null && r.state && (r == null ? void 0 : r.state) !== hi.CONNECTED ? A.emit(
30409
30414
  I.SOCKET_SERVICE_DISCONNECTED,
30410
30415
  {
30411
30416
  joinAttempted: o(this, Ne, je).joinAttempted
@@ -30438,7 +30443,7 @@ const Zy = (jf = class {
30438
30443
  p.info("SocketService::Failed to connect to socket-edge", { country: h.location.country }), A.emit(I.SOCKET_SERVICE_FAILED), o(this, Ne, je).updateSocketConnectionState("failed");
30439
30444
  }));
30440
30445
  }
30441
- }, ci = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakSet(), je = function() {
30446
+ }, di = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakSet(), je = function() {
30442
30447
  return o(this, yr).getValue("connectionHandler");
30443
30448
  }, ps = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakSet(), $p = function(s) {
30444
30449
  let e = Zy.getSocketEdgeDomain(o(this, yr).getValue("baseURI"));
@@ -30573,7 +30578,7 @@ var gN = Object.defineProperty, vN = Object.getOwnPropertyDescriptor, lu = (s, e
30573
30578
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
30574
30579
  return r && i && gN(e, t, i), i;
30575
30580
  };
30576
- const bn = class {
30581
+ const kn = class {
30577
30582
  constructor(s, e) {
30578
30583
  f(this, "apiBase");
30579
30584
  f(this, "selfController");
@@ -30613,10 +30618,10 @@ const bn = class {
30613
30618
  c.setRoomName(i), c.setRoomUUID(i), c.setOrganizationId(n), c.setHeader("dyte-tracing-id", e), s.setValue("apiClient", c);
30614
30619
  const d = new j0();
30615
30620
  s.setValue("connectionHandler", d);
30616
- const l = bn.createSocketService(s), g = l.connect(), m = c.getUserDetails(), y = c.getPlugins();
30621
+ const l = kn.createSocketService(s), g = l.connect(), m = c.getUserDetails(), y = c.getPlugins();
30617
30622
  let _ = nt.HIVE, P, b = "";
30618
30623
  try {
30619
- yield bn.setupFlagsmith(s);
30624
+ yield kn.setupFlagsmith(s);
30620
30625
  } catch (G) {
30621
30626
  p.error("Failed to setup flagsmith", { error: G });
30622
30627
  }
@@ -30633,7 +30638,7 @@ const bn = class {
30633
30638
  } catch (G) {
30634
30639
  p.error("Failed to get room metadata", { error: G });
30635
30640
  }
30636
- const R = eu.init(P.preset, !s.getValue("modules").theme), L = bn.setupControllers(
30641
+ const R = eu.init(P.preset, !s.getValue("modules").theme), L = kn.setupControllers(
30637
30642
  l,
30638
30643
  s,
30639
30644
  P,
@@ -30641,7 +30646,7 @@ const bn = class {
30641
30646
  b,
30642
30647
  R
30643
30648
  );
30644
- D0(R) && ((H = bn.createRoomNodeClient(s, l).partialJoinRoom(
30649
+ D0(R) && ((H = kn.createRoomNodeClient(s, l).partialJoinRoom(
30645
30650
  P.participant.name,
30646
30651
  i,
30647
30652
  void 0
@@ -30652,7 +30657,7 @@ const bn = class {
30652
30657
  );
30653
30658
  })), h.location.country = (O = c.ipInfo) == null ? void 0 : O.country;
30654
30659
  const { controllers: B } = yield L;
30655
- return Ow(), new bn(t, B);
30660
+ return Ow(), new kn(t, B);
30656
30661
  });
30657
30662
  }
30658
30663
  static setupFlagsmith(s) {
@@ -30676,7 +30681,7 @@ const bn = class {
30676
30681
  isReactNative: navigator.isReactNative
30677
30682
  });
30678
30683
  try {
30679
- const l = (d = r == null ? void 0 : r.whitelabelled_flags_endpoint) == null || d ? Mn({ servicePrefix: "flags", baseURI: t }) : "edge.api.flagsmith.com";
30684
+ const l = (d = r == null ? void 0 : r.whitelabelled_flags_endpoint) == null || d ? On({ servicePrefix: "flags", baseURI: t }) : "edge.api.flagsmith.com";
30680
30685
  yield Y.identify(
30681
30686
  `${ap.PEER}_${e}`,
30682
30687
  JSON.parse(JSON.stringify(c)),
@@ -30715,7 +30720,7 @@ const bn = class {
30715
30720
  let P, b, R, L, B, H, O, G;
30716
30721
  const re = new G1(s);
30717
30722
  Ce.socketService = s;
30718
- const ce = new ou(s), at = new vs(s), qt = new K1(s), Me = Ud.create(s, e), Pt = new z1(s), D = new j1(s), E = new un(s), C = yield kr.init(
30723
+ const ce = new ou(s), at = new vs(s), qt = new K1(s), Me = Ud.create(s, e), Pt = new z1(s), D = new j1(s), E = new pn(s), C = yield kr.init(
30719
30724
  e,
30720
30725
  Me,
30721
30726
  d,
@@ -30824,7 +30829,7 @@ const bn = class {
30824
30829
  });
30825
30830
  }
30826
30831
  };
30827
- let Wc = bn;
30832
+ let Wc = kn;
30828
30833
  lu([
30829
30834
  h.trace("Controller.init")
30830
30835
  ], Wc, "init", 1);
@@ -30842,7 +30847,7 @@ var yN = Object.defineProperty, TN = Object.getOwnPropertyDescriptor, Qa = (s, e
30842
30847
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
30843
30848
  return r && i && yN(e, t, i), i;
30844
30849
  }, Oc, Nl;
30845
- class vn extends Xt {
30850
+ class yn extends Xt {
30846
30851
  constructor(t, r) {
30847
30852
  super();
30848
30853
  v(this, Oc, void 0);
@@ -30962,22 +30967,22 @@ Oc = /* @__PURE__ */ new WeakMap(), Nl = /* @__PURE__ */ new WeakMap();
30962
30967
  Qa([
30963
30968
  h.trace("DyteConnectedMeetings.getConnectedMeetings"),
30964
30969
  $t({ maxInvocations: 60, period: 60 })
30965
- ], vn.prototype, "getConnectedMeetings", 1);
30970
+ ], yn.prototype, "getConnectedMeetings", 1);
30966
30971
  Qa([
30967
30972
  h.trace("DyteConnectedMeetings.createMeetings")
30968
- ], vn.prototype, "createMeetings", 1);
30973
+ ], yn.prototype, "createMeetings", 1);
30969
30974
  Qa([
30970
30975
  h.trace("DyteConnectedMeetings.updateMeetings")
30971
- ], vn.prototype, "updateMeetings", 1);
30976
+ ], yn.prototype, "updateMeetings", 1);
30972
30977
  Qa([
30973
30978
  h.trace("DyteConnectedMeetings.deleteMeetings")
30974
- ], vn.prototype, "deleteMeetings", 1);
30979
+ ], yn.prototype, "deleteMeetings", 1);
30975
30980
  Qa([
30976
30981
  h.trace("DyteConnectedMeetings.moveParticipants")
30977
- ], vn.prototype, "moveParticipants", 1);
30982
+ ], yn.prototype, "moveParticipants", 1);
30978
30983
  Qa([
30979
30984
  h.trace("DyteConnectedMeetings.moveParticipantsWithCustomPreset")
30980
- ], vn.prototype, "moveParticipantsWithCustomPreset", 1);
30985
+ ], yn.prototype, "moveParticipantsWithCustomPreset", 1);
30981
30986
  var SN = Object.defineProperty, EN = Object.getOwnPropertyDescriptor, uu = (s, e, t, r) => {
30982
30987
  for (var i = r > 1 ? void 0 : r ? EN(e, t) : e, n = s.length - 1, a; n >= 0; n--)
30983
30988
  (a = s[n]) && (i = (r ? a(e, t, i) : a(i)) || i);
@@ -30989,7 +30994,7 @@ const Lr = (Ju = class {
30989
30994
  v(this, $a, void 0);
30990
30995
  v(this, hs, void 0);
30991
30996
  v(this, Ll, void 0);
30992
- T(this, Ll, s), T(this, $a, t), this.connectedMeetings = new vn(s, e), this.setCurrentMeeting(e);
30997
+ T(this, Ll, s), T(this, $a, t), this.connectedMeetings = new yn(s, e), this.setCurrentMeeting(e);
30993
30998
  }
30994
30999
  static init(s, e, t) {
30995
31000
  return Lr.instance || (Lr.instance = new Lr(
@@ -31214,9 +31219,9 @@ let Ys = (Gf = class {
31214
31219
  }
31215
31220
  static setupContext(e, t, r, i) {
31216
31221
  var c;
31217
- const n = on.createContext(e, t), a = N(N({}, Ew), t == null ? void 0 : t.modules);
31222
+ const n = cn.createContext(e, t), a = N(N({}, Ew), t == null ? void 0 : t.modules);
31218
31223
  return n.setValue("peerId", e), n.setValue("modules", a), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", t.authToken), n.setValue("overrides", (c = t.overrides) != null ? c : {}), n.setValue("env", _w({ baseURI: i.baseURI })), n.setValue("defaults", t.defaults || { audio: true, video: true }), n.setValue("onError", t.onError || (() => {
31219
- })), n.setValue("cachedUserDetails", Ds(t.cachedUserDetails)), n.setValue("sdkVersion", "2.5.0-staging.94"), n;
31224
+ })), n.setValue("cachedUserDetails", Ds(t.cachedUserDetails)), n.setValue("sdkVersion", "2.5.0-staging.95"), n;
31220
31225
  }
31221
31226
  join() {
31222
31227
  return u(this, null, function* () {
@@ -31302,7 +31307,7 @@ let Ys = (Gf = class {
31302
31307
  Xa([
31303
31308
  h.trace("DyteClient.join"),
31304
31309
  _t("0002"),
31305
- yi.executeWithLock({
31310
+ Ti.executeWithLock({
31306
31311
  methodName: "meeting.join",
31307
31312
  lockName: "DyteClient.join",
31308
31313
  timeout: 3e3
@@ -31321,7 +31326,7 @@ Xa([
31321
31326
  Xa([
31322
31327
  h.trace("DyteClient.init"),
31323
31328
  _t("0001"),
31324
- yi.executeWithLock({
31329
+ Ti.executeWithLock({
31325
31330
  methodName: "DyteClient.init",
31326
31331
  lockName: "DyteClient.init",
31327
31332
  timeout: 3e3