@cloudflare/realtimekit 1.5.0-staging.4 → 1.5.0-staging.9

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
@@ -44,7 +44,7 @@ var u = (s, t, e) => new Promise((r, i) => {
44
44
  }, c = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(n, o);
45
45
  c((e = e.apply(s, t)).next());
46
46
  });
47
- import { v4 as Ki, validate as Ig } from "uuid";
47
+ import { v4 as Ta, validate as Ig } from "uuid";
48
48
  import Ag from "bowser";
49
49
  import { MessageType as T, PbLong as ja, typeofJsonValue as VS } from "@protobuf-ts/runtime";
50
50
  import * as jc from "worker-timers";
@@ -571,10 +571,10 @@ var nt = {}, JS = {
571
571
  set exports(s) {
572
572
  nt = s;
573
573
  }
574
- }, mn = typeof Reflect == "object" ? Reflect : null, xh = mn && typeof mn.apply == "function" ? mn.apply : function(t, e, r) {
574
+ }, gn = typeof Reflect == "object" ? Reflect : null, xh = gn && typeof gn.apply == "function" ? gn.apply : function(t, e, r) {
575
575
  return Function.prototype.apply.call(t, e, r);
576
576
  }, Gc;
577
- mn && typeof mn.ownKeys == "function" ? Gc = mn.ownKeys : Object.getOwnPropertySymbols ? Gc = function(t) {
577
+ gn && typeof gn.ownKeys == "function" ? Gc = gn.ownKeys : Object.getOwnPropertySymbols ? Gc = function(t) {
578
578
  return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
579
579
  } : Gc = function(t) {
580
580
  return Object.getOwnPropertyNames(t);
@@ -3734,7 +3734,7 @@ function Mv(s) {
3734
3734
  return Av.call(s);
3735
3735
  }
3736
3736
  var Dv = "[object Null]", Ov = "[object Undefined]", jh = Ds ? Ds.toStringTag : void 0;
3737
- function Qi(s) {
3737
+ function Yi(s) {
3738
3738
  return s == null ? s === void 0 ? Ov : Dv : jh && jh in Object(s) ? kv(s) : Mv(s);
3739
3739
  }
3740
3740
  function Os(s) {
@@ -3742,7 +3742,7 @@ function Os(s) {
3742
3742
  }
3743
3743
  var Nv = "[object Symbol]";
3744
3744
  function vl(s) {
3745
- return typeof s == "symbol" || Os(s) && Qi(s) == Nv;
3745
+ return typeof s == "symbol" || Os(s) && Yi(s) == Nv;
3746
3746
  }
3747
3747
  function Lv(s, t) {
3748
3748
  for (var e = -1, r = s == null ? 0 : s.length, i = Array(r); ++e < r; )
@@ -3799,7 +3799,7 @@ var Wv = "[object AsyncFunction]", Jv = "[object Function]", Kv = "[object Gener
3799
3799
  function Xu(s) {
3800
3800
  if (!ss(s))
3801
3801
  return !1;
3802
- var t = Qi(s);
3802
+ var t = Yi(s);
3803
3803
  return t == Jv || t == Kv || t == Wv || t == zv;
3804
3804
  }
3805
3805
  var Yv = Ts["__core-js_shared__"];
@@ -3812,7 +3812,7 @@ function Qv(s) {
3812
3812
  return !!zh && zh in s;
3813
3813
  }
3814
3814
  var Xv = Function.prototype, Zv = Xv.toString;
3815
- function Xi(s) {
3815
+ function Qi(s) {
3816
3816
  if (s != null) {
3817
3817
  try {
3818
3818
  return Zv.call(s);
@@ -3832,16 +3832,16 @@ function oT(s) {
3832
3832
  if (!ss(s) || Qv(s))
3833
3833
  return !1;
3834
3834
  var t = Xu(s) ? aT : tT;
3835
- return t.test(Xi(s));
3835
+ return t.test(Qi(s));
3836
3836
  }
3837
3837
  function cT(s, t) {
3838
3838
  return s == null ? void 0 : s[t];
3839
3839
  }
3840
- function Zi(s, t) {
3840
+ function Xi(s, t) {
3841
3841
  var e = cT(s, t);
3842
3842
  return oT(e) ? e : void 0;
3843
3843
  }
3844
- var dT = Zi(Ts, "WeakMap");
3844
+ var dT = Xi(Ts, "WeakMap");
3845
3845
  const su = dT;
3846
3846
  var Yh = Object.create, lT = function() {
3847
3847
  function s() {
@@ -3898,7 +3898,7 @@ function vT(s) {
3898
3898
  }
3899
3899
  var TT = function() {
3900
3900
  try {
3901
- var s = Zi(Object, "defineProperty");
3901
+ var s = Xi(Object, "defineProperty");
3902
3902
  return s({}, "", {}), s;
3903
3903
  } catch (t) {
3904
3904
  }
@@ -4021,7 +4021,7 @@ function BT(s, t) {
4021
4021
  }
4022
4022
  var HT = "[object Arguments]";
4023
4023
  function Xh(s) {
4024
- return Os(s) && Qi(s) == HT;
4024
+ return Os(s) && Yi(s) == HT;
4025
4025
  }
4026
4026
  var mm = Object.prototype, FT = mm.hasOwnProperty, qT = mm.propertyIsEnumerable, jT = Xh(function() {
4027
4027
  return arguments;
@@ -4038,7 +4038,7 @@ var zT = "[object Arguments]", YT = "[object Array]", QT = "[object Boolean]", X
4038
4038
  fe[ly] = fe[uy] = fe[hy] = fe[py] = fe[gy] = fe[my] = fe[fy] = fe[Sy] = fe[vy] = !0;
4039
4039
  fe[zT] = fe[YT] = fe[cy] = fe[QT] = fe[dy] = fe[XT] = fe[ZT] = fe[ey] = fe[ty] = fe[sy] = fe[ry] = fe[iy] = fe[ny] = fe[ay] = fe[oy] = !1;
4040
4040
  function Ty(s) {
4041
- return Os(s) && th(s.length) && !!fe[Qi(s)];
4041
+ return Os(s) && th(s.length) && !!fe[Yi(s)];
4042
4042
  }
4043
4043
  function sh(s) {
4044
4044
  return function(t) {
@@ -4111,7 +4111,7 @@ function rh(s, t) {
4111
4111
  var e = typeof s;
4112
4112
  return e == "number" || e == "symbol" || e == "boolean" || s == null || vl(s) ? !0 : Ny.test(s) || !Oy.test(s) || t != null && s in Object(t);
4113
4113
  }
4114
- var Ly = Zi(Object, "create");
4114
+ var Ly = Xi(Object, "create");
4115
4115
  const mo = Ly;
4116
4116
  function Vy() {
4117
4117
  this.__data__ = mo ? mo(null) : {}, this.size = 0;
@@ -4139,18 +4139,18 @@ function Wy(s, t) {
4139
4139
  var e = this.__data__;
4140
4140
  return this.size += this.has(s) ? 0 : 1, e[s] = mo && t === void 0 ? Gy : t, this;
4141
4141
  }
4142
- function zi(s) {
4142
+ function Ki(s) {
4143
4143
  var t = -1, e = s == null ? 0 : s.length;
4144
4144
  for (this.clear(); ++t < e; ) {
4145
4145
  var r = s[t];
4146
4146
  this.set(r[0], r[1]);
4147
4147
  }
4148
4148
  }
4149
- zi.prototype.clear = Vy;
4150
- zi.prototype.delete = xy;
4151
- zi.prototype.get = Hy;
4152
- zi.prototype.has = jy;
4153
- zi.prototype.set = Wy;
4149
+ Ki.prototype.clear = Vy;
4150
+ Ki.prototype.delete = xy;
4151
+ Ki.prototype.get = Hy;
4152
+ Ki.prototype.has = jy;
4153
+ Ki.prototype.set = Wy;
4154
4154
  function Jy() {
4155
4155
  this.__data__ = [], this.size = 0;
4156
4156
  }
@@ -4191,13 +4191,13 @@ ur.prototype.delete = Yy;
4191
4191
  ur.prototype.get = Qy;
4192
4192
  ur.prototype.has = Xy;
4193
4193
  ur.prototype.set = Zy;
4194
- var eE = Zi(Ts, "Map");
4194
+ var eE = Xi(Ts, "Map");
4195
4195
  const fo = eE;
4196
4196
  function tE() {
4197
4197
  this.size = 0, this.__data__ = {
4198
- hash: new zi(),
4198
+ hash: new Ki(),
4199
4199
  map: new (fo || ur)(),
4200
- string: new zi()
4200
+ string: new Ki()
4201
4201
  };
4202
4202
  }
4203
4203
  function sE(s) {
@@ -4294,7 +4294,7 @@ var SE = Tm(Object.getPrototypeOf, Object);
4294
4294
  const nh = SE;
4295
4295
  var vE = "[object Object]", TE = Function.prototype, yE = Object.prototype, _m = TE.toString, EE = yE.hasOwnProperty, PE = _m.call(Object);
4296
4296
  function bE(s) {
4297
- if (!Os(s) || Qi(s) != vE)
4297
+ if (!Os(s) || Yi(s) != vE)
4298
4298
  return !1;
4299
4299
  var t = nh(s);
4300
4300
  if (t === null)
@@ -4386,15 +4386,15 @@ function ru(s) {
4386
4386
  function HE(s) {
4387
4387
  return Im(s, _c, km);
4388
4388
  }
4389
- var FE = Zi(Ts, "DataView");
4389
+ var FE = Xi(Ts, "DataView");
4390
4390
  const iu = FE;
4391
- var qE = Zi(Ts, "Promise");
4391
+ var qE = Xi(Ts, "Promise");
4392
4392
  const nu = qE;
4393
- var jE = Zi(Ts, "Set");
4394
- const fn = jE;
4395
- var ap = "[object Map]", GE = "[object Object]", op = "[object Promise]", cp = "[object Set]", dp = "[object WeakMap]", lp = "[object DataView]", WE = Xi(iu), JE = Xi(fo), KE = Xi(nu), zE = Xi(fn), YE = Xi(su), Zr = Qi;
4396
- (iu && Zr(new iu(new ArrayBuffer(1))) != lp || fo && Zr(new fo()) != ap || nu && Zr(nu.resolve()) != op || fn && Zr(new fn()) != cp || su && Zr(new su()) != dp) && (Zr = function(s) {
4397
- var t = Qi(s), e = t == GE ? s.constructor : void 0, r = e ? Xi(e) : "";
4393
+ var jE = Xi(Ts, "Set");
4394
+ const mn = jE;
4395
+ var ap = "[object Map]", GE = "[object Object]", op = "[object Promise]", cp = "[object Set]", dp = "[object WeakMap]", lp = "[object DataView]", WE = Qi(iu), JE = Qi(fo), KE = Qi(nu), zE = Qi(mn), YE = Qi(su), Zr = Yi;
4396
+ (iu && Zr(new iu(new ArrayBuffer(1))) != lp || fo && Zr(new fo()) != ap || nu && Zr(nu.resolve()) != op || mn && Zr(new mn()) != cp || su && Zr(new su()) != dp) && (Zr = function(s) {
4397
+ var t = Yi(s), e = t == GE ? s.constructor : void 0, r = e ? Qi(e) : "";
4398
4398
  if (r)
4399
4399
  switch (r) {
4400
4400
  case WE:
@@ -4912,8 +4912,8 @@ var m_ = UT(function(s, t, e) {
4912
4912
  $m(s, t, e);
4913
4913
  });
4914
4914
  const Sr = m_;
4915
- var f_ = 1 / 0, S_ = fn && 1 / dh(new fn([, -0]))[1] == f_ ? function(s) {
4916
- return new fn(s);
4915
+ var f_ = 1 / 0, S_ = mn && 1 / dh(new mn([, -0]))[1] == f_ ? function(s) {
4916
+ return new mn(s);
4917
4917
  } : pT;
4918
4918
  const v_ = S_;
4919
4919
  var T_ = 200;
@@ -4997,21 +4997,21 @@ function ba(s, t) {
4997
4997
  function __({ baseURI: s }) {
4998
4998
  return s.includes("staging.realtime") ? Tp.STAGING : Tp.PROD;
4999
4999
  }
5000
- function Sn({ servicePrefix: s, baseURI: t }) {
5000
+ function fn({ servicePrefix: s, baseURI: t }) {
5001
5001
  return `${s}.${t}`;
5002
5002
  }
5003
5003
  function w_(s) {
5004
5004
  const t = s.getValue("baseURI");
5005
5005
  return {
5006
- location: Sn({
5006
+ location: fn({
5007
5007
  servicePrefix: "location",
5008
5008
  baseURI: t
5009
5009
  }),
5010
- locationLegacy: Sn({
5010
+ locationLegacy: fn({
5011
5011
  servicePrefix: "location-legacy",
5012
5012
  baseURI: t
5013
5013
  }),
5014
- daCollector: Sn({
5014
+ daCollector: fn({
5015
5015
  servicePrefix: "da-collector",
5016
5016
  baseURI: t
5017
5017
  })
@@ -5193,7 +5193,7 @@ class P {
5193
5193
  }
5194
5194
  get logsEndpoint() {
5195
5195
  const t = Gr.getContext(this.meetingMetadata.peerId);
5196
- return `https://${Sn({
5196
+ return `https://${fn({
5197
5197
  servicePrefix: "api-silos",
5198
5198
  baseURI: t.getValue("baseURI")
5199
5199
  })}/otel/logs`;
@@ -5248,7 +5248,7 @@ class P {
5248
5248
  }
5249
5249
  injectContext(t) {
5250
5250
  var i;
5251
- const e = Ki().replace(/-/g, "").substring(0, 16), r = (i = this.meetingMetadata.peerId) == null ? void 0 : i.replace(/-/g, "");
5251
+ const e = Ta().replace(/-/g, "").substring(0, 16), r = (i = this.meetingMetadata.peerId) == null ? void 0 : i.replace(/-/g, "");
5252
5252
  t.TRACEPARENT = `00-${r}-${e}-01`;
5253
5253
  }
5254
5254
  addLogInCurrentSpan(t, e, r = {}, i = !1) {
@@ -6204,7 +6204,7 @@ const bp = 1080, _p = 1920, K_ = (s, t, e, r, i, n) => {
6204
6204
  let g = d * h, S = l * h, v, E, w, b, I = 1;
6205
6205
  return g < e && (I = e / g), Math.abs(I - 1) < 1e-14 && S < r && (I = r / S), g *= I, S *= I, w = d / (g / e), b = l / (S / r), v = (d - w) * o, E = (l - b) * c, v < 0 && (v = 0), E < 0 && (E = 0), w > d && (w = d), b > l && (b = l), [v, E, w, b, s, t, e, r];
6206
6206
  };
6207
- var qt, ai, Ze, jt, we, os, Bs, ot, Me, En, Pn, Hs, bn;
6207
+ var qt, ai, Ze, jt, we, os, Bs, ot, Me, yn, En, Hs, Pn;
6208
6208
  const Dh = class extends Ut {
6209
6209
  /**
6210
6210
  * @param {Context} context
@@ -6233,10 +6233,10 @@ const Dh = class extends Ut {
6233
6233
  m(this, Bs, void 0);
6234
6234
  m(this, ot, {});
6235
6235
  m(this, Me, void 0);
6236
+ m(this, yn, void 0);
6236
6237
  m(this, En, void 0);
6237
- m(this, Pn, void 0);
6238
6238
  m(this, Hs, void 0);
6239
- m(this, bn, !1);
6239
+ m(this, Pn, !1);
6240
6240
  p(this, "cleanupEventListeners", () => {
6241
6241
  a(this, ai).unsubscribe("stageStatus", this.handlePipMediaControls), a(this, Me).removeListener("videoUpdate", this.onSelfVideoUpdateListener), a(this, Me).removeListener("audioUpdate", this.onSelfAudioUpdateListener), a(this, Me).removeListener("roomLeft", () => this.disable());
6242
6242
  });
@@ -6297,10 +6297,10 @@ const Dh = class extends Ut {
6297
6297
  return u(this, null, function* () {
6298
6298
  switch (e) {
6299
6299
  case "handRaise":
6300
- f(this, Pn, r);
6300
+ f(this, En, r);
6301
6301
  break;
6302
6302
  case "pin":
6303
- f(this, En, r);
6303
+ f(this, yn, r);
6304
6304
  break;
6305
6305
  }
6306
6306
  });
@@ -6309,10 +6309,10 @@ const Dh = class extends Ut {
6309
6309
  return u(this, null, function* () {
6310
6310
  switch (e) {
6311
6311
  case "handRaise":
6312
- f(this, Pn, yield Lc(r));
6312
+ f(this, En, yield Lc(r));
6313
6313
  break;
6314
6314
  case "pin":
6315
- f(this, En, yield Lc(r));
6315
+ f(this, yn, yield Lc(r));
6316
6316
  break;
6317
6317
  }
6318
6318
  });
@@ -6396,7 +6396,7 @@ const Dh = class extends Ut {
6396
6396
  o - c * 2
6397
6397
  ), l += o + c, v.restore();
6398
6398
  };
6399
- e.pinned && g(a(this, En)), e.handRaised && g(a(this, Pn)), e.reaction && g(e.reaction);
6399
+ e.pinned && g(a(this, yn)), e.handRaised && g(a(this, En)), e.reaction && g(e.reaction);
6400
6400
  }
6401
6401
  drawTile(e, r, i) {
6402
6402
  var l, h;
@@ -6459,7 +6459,7 @@ const Dh = class extends Ut {
6459
6459
  return document.pictureInPictureElement !== null;
6460
6460
  }
6461
6461
  cleanup() {
6462
- if (f(this, bn, !1), this.isSupported() && document.exitPictureInPicture !== void 0 && document.pictureInPictureElement !== null && document.exitPictureInPicture(), a(this, Ze))
6462
+ if (f(this, Pn, !1), this.isSupported() && document.exitPictureInPicture !== void 0 && document.pictureInPictureElement !== null && document.exitPictureInPicture(), a(this, Ze))
6463
6463
  try {
6464
6464
  document.body.removeChild(a(this, Ze));
6465
6465
  } catch (e) {
@@ -6475,9 +6475,9 @@ const Dh = class extends Ut {
6475
6475
  init({ height: e, width: r } = {}) {
6476
6476
  if (!this.isSupported())
6477
6477
  throw this.logger.error("Pip.unsupported"), new Error("Picture-in-picture is not available in this environment");
6478
- if (a(this, bn))
6478
+ if (a(this, Pn))
6479
6479
  return;
6480
- f(this, bn, !0), this.createCanvas(), this.setupMediaSessionEvents();
6480
+ f(this, Pn, !0), this.createCanvas(), this.setupMediaSessionEvents();
6481
6481
  const i = document.createElement("video");
6482
6482
  f(this, we, {
6483
6483
  height: e != null ? e : bp,
@@ -6596,7 +6596,7 @@ const Dh = class extends Ut {
6596
6596
  }
6597
6597
  };
6598
6598
  let cu = Dh;
6599
- qt = new WeakMap(), ai = new WeakMap(), Ze = new WeakMap(), jt = new WeakMap(), we = new WeakMap(), os = new WeakMap(), Bs = new WeakMap(), ot = new WeakMap(), Me = new WeakMap(), En = new WeakMap(), Pn = new WeakMap(), Hs = new WeakMap(), bn = new WeakMap();
6599
+ qt = new WeakMap(), ai = new WeakMap(), Ze = new WeakMap(), jt = new WeakMap(), we = new WeakMap(), os = new WeakMap(), Bs = new WeakMap(), ot = new WeakMap(), Me = new WeakMap(), yn = new WeakMap(), En = new WeakMap(), Hs = new WeakMap(), Pn = new WeakMap();
6600
6600
  var dr;
6601
6601
  (function(s) {
6602
6602
  s[s.PUBLISHER = 0] = "PUBLISHER", s[s.SUBSCRIBER = 1] = "SUBSCRIBER";
@@ -8553,7 +8553,7 @@ class fR extends T {
8553
8553
  ]);
8554
8554
  }
8555
8555
  }
8556
- const nn = new fR();
8556
+ const rn = new fR();
8557
8557
  class SR extends T {
8558
8558
  constructor() {
8559
8559
  super("socket.room.PeerStatusUpdate", [
@@ -11747,26 +11747,26 @@ var i0 = Object.defineProperty, n0 = Object.getOwnPropertyDescriptor, zr = (s, t
11747
11747
  for (var i = r > 1 ? void 0 : r ? n0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
11748
11748
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
11749
11749
  return r && i && i0(t, e, i), i;
11750
- }, es = /* @__PURE__ */ ((s) => (s[s.TEXT = 0] = "TEXT", s[s.IMAGE = 1] = "IMAGE", s[s.FILE = 2] = "FILE", s[s.CUSTOM = 3] = "CUSTOM", s))(es || {}), kt, _n;
11750
+ }, es = /* @__PURE__ */ ((s) => (s[s.TEXT = 0] = "TEXT", s[s.IMAGE = 1] = "IMAGE", s[s.FILE = 2] = "FILE", s[s.CUSTOM = 3] = "CUSTOM", s))(es || {}), kt, bn;
11751
11751
  class pr {
11752
11752
  constructor(t, e) {
11753
11753
  m(this, kt, void 0);
11754
- m(this, _n, void 0);
11755
- f(this, kt, e), f(this, _n, t);
11754
+ m(this, bn, void 0);
11755
+ f(this, kt, e), f(this, bn, t);
11756
11756
  }
11757
11757
  /**
11758
11758
  * @access private
11759
11759
  * Not for external use
11760
11760
  */
11761
11761
  get telemetry() {
11762
- return a(this, _n).getValue("telemetry");
11762
+ return a(this, bn).getValue("telemetry");
11763
11763
  }
11764
11764
  /**
11765
11765
  * @private access
11766
11766
  * Not available for external use
11767
11767
  */
11768
11768
  get logger() {
11769
- return a(this, _n).getValue("logger");
11769
+ return a(this, bn).getValue("logger");
11770
11770
  }
11771
11771
  getChatMessages() {
11772
11772
  return a(this, kt).sendMessagePromise(Ve.getMessages);
@@ -11929,7 +11929,7 @@ class pr {
11929
11929
  });
11930
11930
  }
11931
11931
  }
11932
- kt = new WeakMap(), _n = new WeakMap();
11932
+ kt = new WeakMap(), bn = new WeakMap();
11933
11933
  zr([
11934
11934
  P.trace("SocketService.getChatMessages")
11935
11935
  ], pr.prototype, "getChatMessages", 1);
@@ -12473,7 +12473,7 @@ var m0 = Object.defineProperty, f0 = Object.getOwnPropertyDescriptor, Ps = (s, t
12473
12473
  return r && i && m0(t, e, i), i;
12474
12474
  };
12475
12475
  const S0 = ["text", "image", "file", "custom", "poll"], zc = { maxInvocations: 180, period: 60 };
12476
- var se, oi, Fe, wn, Ed, lf, yo, Tu, lg;
12476
+ var se, oi, Fe, _n, Ed, lf, yo, Tu, lg;
12477
12477
  let Vt = (lg = class extends Ut {
12478
12478
  /**
12479
12479
  * @param {Context} context
@@ -12503,16 +12503,16 @@ let Vt = (lg = class extends Ut {
12503
12503
  m(this, se, void 0);
12504
12504
  m(this, oi, void 0);
12505
12505
  m(this, Fe, void 0);
12506
- m(this, wn, void 0);
12506
+ m(this, _n, void 0);
12507
12507
  p(this, "maxTextLimit", 2e3);
12508
- f(this, wn, t), f(this, Fe, e), f(this, se, r), f(this, oi, i), this.messages = [];
12508
+ f(this, _n, t), f(this, Fe, e), f(this, se, r), f(this, oi, i), this.messages = [];
12509
12509
  }
12510
12510
  /**
12511
12511
  * @access private
12512
12512
  * Not for external use
12513
12513
  */
12514
12514
  get telemetry() {
12515
- return a(this, wn).getValue("telemetry");
12515
+ return a(this, _n).getValue("telemetry");
12516
12516
  }
12517
12517
  /**
12518
12518
  * Set the max character limit of a text message
@@ -12971,8 +12971,8 @@ let Vt = (lg = class extends Ut {
12971
12971
  get pinned() {
12972
12972
  return this.messages.filter((t) => t.pinned);
12973
12973
  }
12974
- }, se = new WeakMap(), oi = new WeakMap(), Fe = new WeakMap(), wn = new WeakMap(), Ed = new WeakSet(), lf = function() {
12975
- return a(this, wn).getValue("connectionHandler");
12974
+ }, se = new WeakMap(), oi = new WeakMap(), Fe = new WeakMap(), _n = new WeakMap(), Ed = new WeakSet(), lf = function() {
12975
+ return a(this, _n).getValue("connectionHandler");
12976
12976
  }, yo = new WeakSet(), Tu = function() {
12977
12977
  return a(this, Ed, lf).socketJoined === !0;
12978
12978
  }, lg);
@@ -13215,7 +13215,7 @@ var E0 = Object.defineProperty, P0 = Object.getOwnPropertyDescriptor, b0 = (s, t
13215
13215
  for (var i = r > 1 ? void 0 : r ? P0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
13216
13216
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
13217
13217
  return r && i && E0(t, e, i), i;
13218
- }, Pd, uf, bd, hf, Cn, Rn, Eo, hg;
13218
+ }, Pd, uf, bd, hf, wn, Cn, Eo, hg;
13219
13219
  let yu = (hg = class extends Ut {
13220
13220
  constructor(t, e, r) {
13221
13221
  const i = t.getValue("logger");
@@ -13230,10 +13230,10 @@ let yu = (hg = class extends Ut {
13230
13230
  * An array of poll items.
13231
13231
  */
13232
13232
  p(this, "items");
13233
+ m(this, wn, void 0);
13233
13234
  m(this, Cn, void 0);
13234
- m(this, Rn, void 0);
13235
13235
  m(this, Eo, void 0);
13236
- f(this, Eo, t), f(this, Cn, e), f(this, Rn, r), this.items = [];
13236
+ f(this, Eo, t), f(this, wn, e), f(this, Cn, r), this.items = [];
13237
13237
  }
13238
13238
  /**
13239
13239
  * Creates a poll in the meeting.
@@ -13246,7 +13246,7 @@ let yu = (hg = class extends Ut {
13246
13246
  return u(this, null, function* () {
13247
13247
  if (!a(this, bd, hf))
13248
13248
  throw new R("Can't create polls without joining room", "0705");
13249
- if (!a(this, Cn).permissions.polls.canCreate) {
13249
+ if (!a(this, wn).permissions.polls.canCreate) {
13250
13250
  this.logger.error("Polls::create::permission_denied");
13251
13251
  return;
13252
13252
  }
@@ -13265,7 +13265,7 @@ let yu = (hg = class extends Ut {
13265
13265
  });
13266
13266
  return;
13267
13267
  }
13268
- yield a(this, Rn).createPoll(
13268
+ yield a(this, Cn).createPoll(
13269
13269
  t,
13270
13270
  e,
13271
13271
  r,
@@ -13280,11 +13280,11 @@ let yu = (hg = class extends Ut {
13280
13280
  */
13281
13281
  vote(t, e) {
13282
13282
  return u(this, null, function* () {
13283
- if (!a(this, Cn).permissions.polls.canVote) {
13283
+ if (!a(this, wn).permissions.polls.canVote) {
13284
13284
  this.logger.error("Polls::vote::permission_denied");
13285
13285
  return;
13286
13286
  }
13287
- yield a(this, Rn).votePoll(t, e);
13287
+ yield a(this, Cn).votePoll(t, e);
13288
13288
  });
13289
13289
  }
13290
13290
  }, Pd = new WeakSet(), uf = function() {
@@ -13292,7 +13292,7 @@ let yu = (hg = class extends Ut {
13292
13292
  }, bd = new WeakSet(), hf = function() {
13293
13293
  var t;
13294
13294
  return ((t = a(this, Pd, uf)) == null ? void 0 : t.socketJoined) === !0;
13295
- }, Cn = new WeakMap(), Rn = new WeakMap(), Eo = new WeakMap(), hg);
13295
+ }, wn = new WeakMap(), Cn = new WeakMap(), Eo = new WeakMap(), hg);
13296
13296
  yu = b0([
13297
13297
  at("0700")
13298
13298
  ], yu);
@@ -13300,14 +13300,14 @@ var _0 = Object.defineProperty, w0 = Object.getOwnPropertyDescriptor, C0 = (s, t
13300
13300
  for (var i = r > 1 ? void 0 : r ? w0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
13301
13301
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
13302
13302
  return r && i && _0(t, e, i), i;
13303
- }, _r, kn, di, pg;
13304
- const an = (pg = class {
13303
+ }, _r, Rn, di, pg;
13304
+ const nn = (pg = class {
13305
13305
  constructor(s, t, e) {
13306
13306
  p(this, "polls");
13307
13307
  m(this, _r, void 0);
13308
- m(this, kn, void 0);
13308
+ m(this, Rn, void 0);
13309
13309
  m(this, di, void 0);
13310
- this.polls = new yu(s, t, e), f(this, kn, t), f(this, _r, s), f(this, di, e), this.setupEvents();
13310
+ this.polls = new yu(s, t, e), f(this, Rn, t), f(this, _r, s), f(this, di, e), this.setupEvents();
13311
13311
  }
13312
13312
  /**
13313
13313
  * @access private
@@ -13325,22 +13325,22 @@ const an = (pg = class {
13325
13325
  }
13326
13326
  static init(s, t, e) {
13327
13327
  return u(this, null, function* () {
13328
- return new an(s, t, e);
13328
+ return new nn(s, t, e);
13329
13329
  });
13330
13330
  }
13331
13331
  canViewPolls() {
13332
- return a(this, kn).permissions.polls.canView;
13332
+ return a(this, Rn).permissions.polls.canView;
13333
13333
  }
13334
13334
  setupEvents() {
13335
13335
  const s = {
13336
13336
  [xs.createPoll]: (r) => {
13337
- r.poll && this.updatePoll(an.formatSocketServicePoll(r.poll));
13337
+ r.poll && this.updatePoll(nn.formatSocketServicePoll(r.poll));
13338
13338
  },
13339
13339
  [xs.updatePoll]: (r) => {
13340
- r.poll && this.updatePoll(an.formatSocketServicePoll(r.poll));
13340
+ r.poll && this.updatePoll(nn.formatSocketServicePoll(r.poll));
13341
13341
  },
13342
13342
  [xs.votePoll]: (r) => {
13343
- r.poll && this.updatePoll(an.formatSocketServicePoll(r.poll));
13343
+ r.poll && this.updatePoll(nn.formatSocketServicePoll(r.poll));
13344
13344
  }
13345
13345
  }, t = () => {
13346
13346
  a(this, _r).getValue("peerSessionStore").on(C.SOCKET_SERVICE_ROOM_JOINED, () => {
@@ -13355,7 +13355,7 @@ const an = (pg = class {
13355
13355
  a(this, di).removeListeners(r);
13356
13356
  });
13357
13357
  };
13358
- a(this, kn).permissions.on("permissionsUpdate", (r) => u(this, null, function* () {
13358
+ a(this, Rn).permissions.on("permissionsUpdate", (r) => u(this, null, function* () {
13359
13359
  var i;
13360
13360
  r != null && r.polls && ((i = r == null ? void 0 : r.polls) != null && i.canView ? (yield this.getPolls(), t()) : (this.polls.items = [], e()));
13361
13361
  })), this.canViewPolls() && t();
@@ -13381,7 +13381,7 @@ const an = (pg = class {
13381
13381
  return;
13382
13382
  const { polls: t } = FA.fromBinary(s.payload);
13383
13383
  this.polls.items = t.map(
13384
- (e) => an.formatSocketServicePoll(e)
13384
+ (e) => nn.formatSocketServicePoll(e)
13385
13385
  );
13386
13386
  });
13387
13387
  }
@@ -13405,8 +13405,8 @@ const an = (pg = class {
13405
13405
  voted: s.votes
13406
13406
  };
13407
13407
  }
13408
- }, _r = new WeakMap(), kn = new WeakMap(), di = new WeakMap(), pg);
13409
- let pf = an;
13408
+ }, _r = new WeakMap(), Rn = new WeakMap(), di = new WeakMap(), pg);
13409
+ let pf = nn;
13410
13410
  C0([
13411
13411
  P.trace("PollController.setupEvents")
13412
13412
  ], pf.prototype, "setupEvents", 1);
@@ -13414,7 +13414,7 @@ var R0 = Object.defineProperty, k0 = Object.getOwnPropertyDescriptor, I0 = (s, t
13414
13414
  for (var i = r > 1 ? void 0 : r ? k0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
13415
13415
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
13416
13416
  return r && i && R0(t, e, i), i;
13417
- }, gf = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(gf || {}), In, Po, Pu, li, bo, gg;
13417
+ }, gf = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(gf || {}), kn, Po, Pu, li, bo, gg;
13418
13418
  let Eu = (gg = class extends Ut {
13419
13419
  /**
13420
13420
  * @param {Context} context
@@ -13435,7 +13435,7 @@ let Eu = (gg = class extends Ut {
13435
13435
  * Represents whether current user is spotlighted
13436
13436
  */
13437
13437
  p(this, "broadcastTabChanges");
13438
- m(this, In, void 0);
13438
+ m(this, kn, void 0);
13439
13439
  m(this, li, void 0);
13440
13440
  m(this, bo, void 0);
13441
13441
  /**
@@ -13455,7 +13455,7 @@ let Eu = (gg = class extends Ut {
13455
13455
  * (Experimental) The sessionId this meeting object is part of.
13456
13456
  */
13457
13457
  p(this, "sessionId");
13458
- f(this, In, t), f(this, li, e), this.viewType = r, f(this, bo, i), this.meetingTitle = n, this.broadcastTabChanges = e.permissions.canSpotlight;
13458
+ f(this, kn, t), f(this, li, e), this.viewType = r, f(this, bo, i), this.meetingTitle = n, this.broadcastTabChanges = e.permissions.canSpotlight;
13459
13459
  }
13460
13460
  get socketState() {
13461
13461
  return a(this, Po, Pu).socketState;
@@ -13467,7 +13467,7 @@ let Eu = (gg = class extends Ut {
13467
13467
  * The room name of the meeting.
13468
13468
  */
13469
13469
  get meetingId() {
13470
- return a(this, In).getValue("meetingId");
13470
+ return a(this, kn).getValue("meetingId");
13471
13471
  }
13472
13472
  /**
13473
13473
  * Sets current user as broadcasting tab changes
@@ -13500,8 +13500,8 @@ let Eu = (gg = class extends Ut {
13500
13500
  currentTab: this.selfActiveTab
13501
13501
  });
13502
13502
  }
13503
- }, In = new WeakMap(), Po = new WeakSet(), Pu = function() {
13504
- return a(this, In).getValue("connectionHandler");
13503
+ }, kn = new WeakMap(), Po = new WeakSet(), Pu = function() {
13504
+ return a(this, kn).getValue("connectionHandler");
13505
13505
  }, li = new WeakMap(), bo = new WeakMap(), gg);
13506
13506
  Eu = I0([
13507
13507
  at("0800")
@@ -13563,7 +13563,7 @@ let Wr = (mg = class extends Ut {
13563
13563
  d
13564
13564
  ]] = A0(t);
13565
13565
  return {
13566
- id: Ki(),
13566
+ id: Ta(),
13567
13567
  name: c,
13568
13568
  peerId: i,
13569
13569
  userId: n,
@@ -13616,13 +13616,13 @@ var O0 = Object.defineProperty, N0 = Object.getOwnPropertyDescriptor, L0 = (s, t
13616
13616
  for (var i = r > 1 ? void 0 : r ? N0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
13617
13617
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
13618
13618
  return r && i && O0(t, e, i), i;
13619
- }, wr, An, It, fg;
13619
+ }, wr, In, It, fg;
13620
13620
  const ff = (fg = class {
13621
13621
  constructor(s, t, e, r, i, n) {
13622
13622
  p(this, "meta");
13623
13623
  p(this, "ai");
13624
13624
  m(this, wr, void 0);
13625
- m(this, An, void 0);
13625
+ m(this, In, void 0);
13626
13626
  p(this, "aiSocketHandler");
13627
13627
  m(this, It, void 0);
13628
13628
  f(this, It, s), this.meta = new Eu(
@@ -13631,7 +13631,7 @@ const ff = (fg = class {
13631
13631
  t.config.viewType,
13632
13632
  e,
13633
13633
  n
13634
- ), this.ai = r, f(this, wr, t), f(this, An, e), this.aiSocketHandler = i, this.setupEvents();
13634
+ ), this.ai = r, f(this, wr, t), f(this, In, e), this.aiSocketHandler = i, this.setupEvents();
13635
13635
  }
13636
13636
  /**
13637
13637
  * @access private
@@ -13697,13 +13697,13 @@ const ff = (fg = class {
13697
13697
  ({ score: s }) => {
13698
13698
  s < 5 && this.meta.emit("poorConnection", { score: s });
13699
13699
  }
13700
- ), a(this, wr).permissions.canSpotlight && (this.logger.info("MetaController::Asserting Spotlight"), this.meta.selfActiveTab && a(this, An).broadcastMessage("spotlight", {
13700
+ ), a(this, wr).permissions.canSpotlight && (this.logger.info("MetaController::Asserting Spotlight"), this.meta.selfActiveTab && a(this, In).broadcastMessage("spotlight", {
13701
13701
  userId: a(this, wr).userId,
13702
13702
  currentTab: this.meta.selfActiveTab
13703
13703
  })), a(this, It).getValue("peerSessionStore").on(
13704
13704
  C.PEER_JOINED_INTERNAL,
13705
13705
  (s) => u(this, null, function* () {
13706
- a(this, wr).permissions.canSpotlight && this.meta.selfActiveTab && a(this, An).broadcastToPeers("spotlight", [s.id], {
13706
+ a(this, wr).permissions.canSpotlight && this.meta.selfActiveTab && a(this, In).broadcastToPeers("spotlight", [s.id], {
13707
13707
  userId: a(this, wr).userId,
13708
13708
  currentTab: this.meta.selfActiveTab
13709
13709
  });
@@ -13779,7 +13779,7 @@ const ff = (fg = class {
13779
13779
  this.logger.debug(`${t} Received transcript for peer ${n} - ${o}: ${c}`);
13780
13780
  });
13781
13781
  }
13782
- }, wr = new WeakMap(), An = new WeakMap(), It = new WeakMap(), fg);
13782
+ }, wr = new WeakMap(), In = new WeakMap(), It = new WeakMap(), fg);
13783
13783
  let Sf = ff;
13784
13784
  L0([
13785
13785
  P.trace("MetaController.setupEvents")
@@ -13842,11 +13842,11 @@ const Ka = {}, gr = {
13842
13842
  };
13843
13843
  }
13844
13844
  };
13845
- var V0 = Object.defineProperty, x0 = Object.getOwnPropertyDescriptor, en = (s, t, e, r) => {
13845
+ var V0 = Object.defineProperty, x0 = Object.getOwnPropertyDescriptor, Zi = (s, t, e, r) => {
13846
13846
  for (var i = r > 1 ? void 0 : r ? x0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
13847
13847
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
13848
13848
  return r && i && V0(t, e, i), i;
13849
- }, Gt, _d, re, wo, _s, qe, Co, bu, Mn, Yc;
13849
+ }, Gt, _d, re, wo, _s, qe, Co, bu, An, Yc;
13850
13850
  class Yr extends Ut {
13851
13851
  /**
13852
13852
  * @param {Context} context
@@ -13863,7 +13863,7 @@ class Yr extends Ut {
13863
13863
  /**
13864
13864
  * @param {StageStatus} status
13865
13865
  */
13866
- m(this, Mn);
13866
+ m(this, An);
13867
13867
  m(this, Gt, void 0);
13868
13868
  m(this, _d, void 0);
13869
13869
  m(this, re, void 0);
@@ -13942,17 +13942,17 @@ class Yr extends Ut {
13942
13942
  "2006"
13943
13943
  );
13944
13944
  if (a(this, re).permissions.stageAccess === q.Allowed) {
13945
- x(this, Mn, Yc).call(this, "ACCEPTED_TO_JOIN_STAGE");
13945
+ x(this, An, Yc).call(this, "ACCEPTED_TO_JOIN_STAGE");
13946
13946
  return;
13947
13947
  }
13948
- a(this, Gt).requestAccess(), x(this, Mn, Yc).call(this, "REQUESTED_TO_JOIN_STAGE");
13948
+ a(this, Gt).requestAccess(), x(this, An, Yc).call(this, "REQUESTED_TO_JOIN_STAGE");
13949
13949
  });
13950
13950
  }
13951
13951
  cancelRequestAccess() {
13952
13952
  return u(this, null, function* () {
13953
13953
  if (!a(this, re).permissions.stageEnabled)
13954
13954
  throw this.logger.error("Stage::stage_disabled"), new R("Stage is disabled", "2003");
13955
- a(this, Gt).cancelRequestAccess(), x(this, Mn, Yc).call(this, "OFF_STAGE");
13955
+ a(this, Gt).cancelRequestAccess(), x(this, An, Yc).call(this, "OFF_STAGE");
13956
13956
  });
13957
13957
  }
13958
13958
  /**
@@ -14042,27 +14042,27 @@ class Yr extends Ut {
14042
14042
  }
14043
14043
  Gt = new WeakMap(), _d = new WeakMap(), re = new WeakMap(), wo = new WeakMap(), _s = new WeakMap(), qe = new WeakMap(), Co = new WeakSet(), bu = function() {
14044
14044
  return a(this, qe).getValue("roomNodeClient");
14045
- }, Mn = new WeakSet(), Yc = function(e) {
14045
+ }, An = new WeakSet(), Yc = function(e) {
14046
14046
  return u(this, null, function* () {
14047
14047
  this.status !== e && a(this, qe).setValue("stageStatus", e);
14048
14048
  });
14049
14049
  };
14050
- en([
14050
+ Zi([
14051
14051
  P.trace("Stage.getStageRequests")
14052
14052
  ], Yr.prototype, "getAccessRequests", 1);
14053
- en([
14053
+ Zi([
14054
14054
  P.trace("Stage.requestAccess")
14055
14055
  ], Yr.prototype, "requestAccess", 1);
14056
- en([
14056
+ Zi([
14057
14057
  P.trace("Stage.cancelRequestAccess")
14058
14058
  ], Yr.prototype, "cancelRequestAccess", 1);
14059
- en([
14059
+ Zi([
14060
14060
  P.trace("Stage.grantAccess")
14061
14061
  ], Yr.prototype, "grantAccess", 1);
14062
- en([
14062
+ Zi([
14063
14063
  P.trace("Stage.denyAccess")
14064
14064
  ], Yr.prototype, "denyAccess", 1);
14065
- en([
14065
+ Zi([
14066
14066
  gr.executeWithLock({
14067
14067
  methodName: "joinStage",
14068
14068
  lockName: "Stage.join",
@@ -14070,7 +14070,7 @@ en([
14070
14070
  }),
14071
14071
  P.trace("Stage.joinStage")
14072
14072
  ], Yr.prototype, "join", 1);
14073
- en([
14073
+ Zi([
14074
14074
  P.trace("Stage.leaveStage")
14075
14075
  ], Yr.prototype, "leave", 1);
14076
14076
  function U0(s) {
@@ -14240,7 +14240,7 @@ const Re = {
14240
14240
  stageStatusUpdate: 25,
14241
14241
  peerStageStatusUpdate: 26
14242
14242
  };
14243
- var et, At, Dn, On, Fs, Nn, kr, Ln, Sg;
14243
+ var et, At, Mn, Dn, Fs, On, kr, Nn, Sg;
14244
14244
  let _a = (Sg = class extends wa {
14245
14245
  /**
14246
14246
  * @param {Context} context
@@ -14275,8 +14275,8 @@ let _a = (Sg = class extends wa {
14275
14275
  p(this, "id");
14276
14276
  p(this, "name");
14277
14277
  m(this, At, void 0);
14278
+ m(this, Mn, void 0);
14278
14279
  m(this, Dn, void 0);
14279
- m(this, On, void 0);
14280
14280
  p(this, "organizationId");
14281
14281
  p(this, "picture");
14282
14282
  p(this, "private");
@@ -14287,13 +14287,13 @@ let _a = (Sg = class extends wa {
14287
14287
  p(this, "updatedAt");
14288
14288
  m(this, Fs, void 0);
14289
14289
  p(this, "config");
14290
- m(this, Nn, void 0);
14290
+ m(this, On, void 0);
14291
14291
  p(this, "active");
14292
14292
  p(this, "iframes");
14293
14293
  p(this, "enabledBy");
14294
14294
  m(this, kr, void 0);
14295
- m(this, Ln, void 0);
14296
- f(this, kr, t), this.baseURL = e, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = o, f(this, At, b), this.organizationId = c, this.picture = d, this.private = l, this.published = h, this.staggered = g, this.tags = S, this.type = v, this.updatedAt = new Date(E), this.active = !1, this.iframes = /* @__PURE__ */ new Map(), f(this, et, w), f(this, Dn, I), f(this, On, D), this.enabledBy = "", f(this, Ln, $);
14295
+ m(this, Nn, void 0);
14296
+ f(this, kr, t), this.baseURL = e, this.createdAt = new Date(r), this.description = i, this.id = n, this.name = o, f(this, At, b), this.organizationId = c, this.picture = d, this.private = l, this.published = h, this.staggered = g, this.tags = S, this.type = v, this.updatedAt = new Date(E), this.active = !1, this.iframes = /* @__PURE__ */ new Map(), f(this, et, w), f(this, Mn, I), f(this, Dn, D), this.enabledBy = "", f(this, Nn, $);
14297
14297
  }
14298
14298
  /**
14299
14299
  * @access private
@@ -14400,7 +14400,7 @@ let _a = (Sg = class extends wa {
14400
14400
  messagePayload: c,
14401
14401
  peerIds: d
14402
14402
  } = r;
14403
- if (!a(this, On)) {
14403
+ if (!a(this, Dn)) {
14404
14404
  this.sendIframeEvent({
14405
14405
  type: Re.chatMessage,
14406
14406
  uuid: e.uuid,
@@ -14409,7 +14409,7 @@ let _a = (Sg = class extends wa {
14409
14409
  return;
14410
14410
  }
14411
14411
  try {
14412
- yield a(this, On).sendMessage(c, d), this.sendIframeEvent({
14412
+ yield a(this, Dn).sendMessage(c, d), this.sendIframeEvent({
14413
14413
  type: Re.chatMessage,
14414
14414
  uuid: e.uuid,
14415
14415
  payload: { success: !0 }
@@ -14433,7 +14433,7 @@ let _a = (Sg = class extends wa {
14433
14433
  isHidden: a(this, At).permissions.hiddenParticipant,
14434
14434
  stageStatus: a(this, At).stageStatus
14435
14435
  });
14436
- d ? (c = a(this, Dn).joined.get(r.peerId), a(this, At).id === d && (c = l)) : c = l, this.sendIframeEvent({
14436
+ d ? (c = a(this, Mn).joined.get(r.peerId), a(this, At).id === d && (c = l)) : c = l, this.sendIframeEvent({
14437
14437
  type: Re.getPeer,
14438
14438
  payload: { peer: c && ud(c) },
14439
14439
  uuid: e.uuid
@@ -14441,7 +14441,7 @@ let _a = (Sg = class extends wa {
14441
14441
  break;
14442
14442
  }
14443
14443
  case Re.getPeers: {
14444
- const c = a(this, Dn).joined.toArray().map((d) => ud(d));
14444
+ const c = a(this, Mn).joined.toArray().map((d) => ud(d));
14445
14445
  this.sendIframeEvent({
14446
14446
  type: Re.getPeers,
14447
14447
  payload: { peers: c },
@@ -14460,7 +14460,7 @@ let _a = (Sg = class extends wa {
14460
14460
  case Re.getDisplayTitle: {
14461
14461
  this.sendIframeEvent({
14462
14462
  type: Re.getDisplayTitle,
14463
- payload: { displayTitle: a(this, Ln) },
14463
+ payload: { displayTitle: a(this, Nn) },
14464
14464
  uuid: e.uuid
14465
14465
  });
14466
14466
  break;
@@ -14513,7 +14513,7 @@ let _a = (Sg = class extends wa {
14513
14513
  */
14514
14514
  addPluginView(t, e = "default") {
14515
14515
  var o;
14516
- if (!a(this, Nn))
14516
+ if (!a(this, On))
14517
14517
  throw this.logger.error(
14518
14518
  "Plugin::addPluginView::no_auth_token_set_for_plugin"
14519
14519
  ), new R("No auth token set for plugin.", "0602");
@@ -14521,12 +14521,12 @@ let _a = (Sg = class extends wa {
14521
14521
  throw this.logger.error("Plugin::addPluginView::iframe_was_not_provided"), new R("Iframe was not provided.", "0603");
14522
14522
  this.removePluginView(e);
14523
14523
  const r = t, i = new URL(this.baseURL), n = {
14524
- auth: a(this, Nn),
14524
+ auth: a(this, On),
14525
14525
  parent: navigator.isReactNative ? this.baseURL : window.location.origin,
14526
14526
  backend: a(this, kr).getValue("apiBase"),
14527
14527
  pluginId: this.id,
14528
14528
  roomName: (o = a(this, kr).getValue("meetingId")) != null ? o : "",
14529
- displayTitle: a(this, Ln)
14529
+ displayTitle: a(this, Nn)
14530
14530
  };
14531
14531
  if (Object.keys(n).forEach((c) => {
14532
14532
  i.searchParams.set(c, n[c]);
@@ -14569,7 +14569,7 @@ let _a = (Sg = class extends wa {
14569
14569
  activateForSelf() {
14570
14570
  return u(this, null, function* () {
14571
14571
  const t = mt(), e = yield t.authorizePlugin(this.id);
14572
- f(this, Nn, e), f(this, Fs, new Date());
14572
+ f(this, On, e), f(this, Fs, new Date());
14573
14573
  try {
14574
14574
  const r = yield t.getPluginConfig(this.baseURL);
14575
14575
  this.config = r;
@@ -14627,7 +14627,7 @@ let _a = (Sg = class extends wa {
14627
14627
  }), f(this, Fs, void 0)));
14628
14628
  });
14629
14629
  }
14630
- }, et = new WeakMap(), At = new WeakMap(), Dn = new WeakMap(), On = new WeakMap(), Fs = new WeakMap(), Nn = new WeakMap(), kr = new WeakMap(), Ln = new WeakMap(), Sg);
14630
+ }, et = new WeakMap(), At = new WeakMap(), Mn = new WeakMap(), Dn = new WeakMap(), Fs = new WeakMap(), On = new WeakMap(), kr = new WeakMap(), Nn = new WeakMap(), Sg);
14631
14631
  Rl([
14632
14632
  _t({ maxInvocations: 5, period: 1 })
14633
14633
  ], _a.prototype, "sendData", 1);
@@ -14769,14 +14769,14 @@ var J0 = Object.defineProperty, K0 = Object.getOwnPropertyDescriptor, kl = (s, t
14769
14769
  for (var i = r > 1 ? void 0 : r ? K0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
14770
14770
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
14771
14771
  return r && i && J0(t, e, i), i;
14772
- }, Wt, Vn, ds, vg;
14772
+ }, Wt, Ln, ds, vg;
14773
14773
  const yf = (vg = class {
14774
14774
  constructor(s, t, e, r) {
14775
14775
  p(this, "plugins");
14776
14776
  m(this, Wt, void 0);
14777
- m(this, Vn, void 0);
14777
+ m(this, Ln, void 0);
14778
14778
  m(this, ds, void 0);
14779
- f(this, Wt, t), f(this, Vn, e), f(this, ds, s), this.plugins = r, this.setupEvents();
14779
+ f(this, Wt, t), f(this, Ln, e), f(this, ds, s), this.plugins = r, this.setupEvents();
14780
14780
  }
14781
14781
  /**
14782
14782
  * @access private
@@ -14951,7 +14951,7 @@ const yf = (vg = class {
14951
14951
  storeName: s.storeName
14952
14952
  });
14953
14953
  })
14954
- ), a(this, Vn).on(
14954
+ ), a(this, Ln).on(
14955
14955
  Ve.sendMessageToPeers,
14956
14956
  (s) => {
14957
14957
  const t = ts == null ? void 0 : ts.formatSocketPeerMessage(
@@ -14959,7 +14959,7 @@ const yf = (vg = class {
14959
14959
  );
14960
14960
  this.broadcastIframeEvent(Re.chatMessage, { message: t });
14961
14961
  }
14962
- ), a(this, Vn).on(
14962
+ ), a(this, Ln).on(
14963
14963
  Ve.sendMessageToRoom,
14964
14964
  (s) => {
14965
14965
  const t = ts == null ? void 0 : ts.formatSocketPeerMessage(
@@ -14978,7 +14978,7 @@ const yf = (vg = class {
14978
14978
  this.broadcastIframeEvent(Re.stageStatusUpdate, s);
14979
14979
  });
14980
14980
  }
14981
- }, Wt = new WeakMap(), Vn = new WeakMap(), ds = new WeakMap(), vg);
14981
+ }, Wt = new WeakMap(), Ln = new WeakMap(), ds = new WeakMap(), vg);
14982
14982
  let Rc = yf;
14983
14983
  kl([
14984
14984
  P.trace("PluginController.getRoomPlugins")
@@ -15072,17 +15072,17 @@ var Y0 = Object.defineProperty, Q0 = Object.getOwnPropertyDescriptor, kc = (s, t
15072
15072
  for (var i = r > 1 ? void 0 : r ? Q0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
15073
15073
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
15074
15074
  return r && i && Y0(t, e, i), i;
15075
- }, xn, Un, $n, Qc, Tg;
15076
- let Yi = (Tg = class extends Ut {
15075
+ }, Vn, xn, Un, Qc, Tg;
15076
+ let zi = (Tg = class extends Ut {
15077
15077
  constructor(t, e) {
15078
15078
  const r = t.getValue("logger");
15079
15079
  super(r);
15080
- m(this, $n);
15080
+ m(this, Un);
15081
+ m(this, Vn, void 0);
15081
15082
  m(this, xn, void 0);
15082
- m(this, Un, void 0);
15083
15083
  p(this, "recordingPeerIds", []);
15084
15084
  p(this, "recordings", []);
15085
- f(this, Un, t), f(this, xn, e);
15085
+ f(this, xn, t), f(this, Vn, e);
15086
15086
  }
15087
15087
  get recordingState() {
15088
15088
  return this.recordings.some((t) => t.state === "RECORDING") ? "RECORDING" : this.recordings.some((t) => t.state === "PAUSED") ? "PAUSED" : this.recordings.some((t) => t.state === "STARTING") ? "STARTING" : this.recordings.some((t) => t.state === "STOPPING") ? "STOPPING" : "IDLE";
@@ -15092,14 +15092,14 @@ let Yi = (Tg = class extends Ut {
15092
15092
  * Not for external use
15093
15093
  */
15094
15094
  get telemetry() {
15095
- return a(this, Un).getValue("telemetry");
15095
+ return a(this, xn).getValue("telemetry");
15096
15096
  }
15097
15097
  updateRecordings(t) {
15098
15098
  this.recordings = t, this.emit("recordingUpdate", this.recordingState);
15099
15099
  }
15100
15100
  start(t) {
15101
15101
  return u(this, null, function* () {
15102
- if (!a(this, xn).permissions.canRecord)
15102
+ if (!a(this, Vn).permissions.canRecord)
15103
15103
  throw this.logger.error("Recording::start::permission_denied"), new R("User does not have permission to start recording", "1001");
15104
15104
  if ((t == null ? void 0 : t.allowMultiple) !== !0 && (this.recordingState === "STARTING" || this.recordingState === "RECORDING" || this.recordingState === "STOPPING"))
15105
15105
  throw this.logger.error("Recording::start::recording_in_progress", {
@@ -15111,7 +15111,7 @@ let Yi = (Tg = class extends Ut {
15111
15111
  "1005"
15112
15112
  );
15113
15113
  try {
15114
- const e = mt(), { recording: r = {} } = a(this, Un).getValue("defaults"), i = yield e.startRecording(r, t == null ? void 0 : t.allowMultiple);
15114
+ const e = mt(), { recording: r = {} } = a(this, xn).getValue("defaults"), i = yield e.startRecording(r, t == null ? void 0 : t.allowMultiple);
15115
15115
  this.updateRecordings([...this.recordings, {
15116
15116
  id: i,
15117
15117
  state: "STARTING",
@@ -15126,22 +15126,22 @@ let Yi = (Tg = class extends Ut {
15126
15126
  }
15127
15127
  stop(t) {
15128
15128
  return u(this, null, function* () {
15129
- yield x(this, $n, Qc).call(this, "stop", ["RECORDING", "PAUSED"], t);
15129
+ yield x(this, Un, Qc).call(this, "stop", ["RECORDING", "PAUSED"], t);
15130
15130
  });
15131
15131
  }
15132
15132
  pause(t) {
15133
15133
  return u(this, null, function* () {
15134
- yield x(this, $n, Qc).call(this, "pause", ["RECORDING"], t);
15134
+ yield x(this, Un, Qc).call(this, "pause", ["RECORDING"], t);
15135
15135
  });
15136
15136
  }
15137
15137
  resume(t) {
15138
15138
  return u(this, null, function* () {
15139
- yield x(this, $n, Qc).call(this, "resume", ["PAUSED"], t);
15139
+ yield x(this, Un, Qc).call(this, "resume", ["PAUSED"], t);
15140
15140
  });
15141
15141
  }
15142
- }, xn = new WeakMap(), Un = new WeakMap(), $n = new WeakSet(), Qc = function(t, e, r) {
15142
+ }, Vn = new WeakMap(), xn = new WeakMap(), Un = new WeakSet(), Qc = function(t, e, r) {
15143
15143
  return u(this, null, function* () {
15144
- if (!a(this, xn).permissions.canRecord)
15144
+ if (!a(this, Vn).permissions.canRecord)
15145
15145
  throw this.logger.error("Recording::stop::permission_denied"), new R("User does not have permission to stop recording", "1001");
15146
15146
  let i = [];
15147
15147
  if (r !== void 0) {
@@ -15174,19 +15174,19 @@ let Yi = (Tg = class extends Ut {
15174
15174
  }, Tg);
15175
15175
  kc([
15176
15176
  P.trace("Recording.start")
15177
- ], Yi.prototype, "start", 1);
15177
+ ], zi.prototype, "start", 1);
15178
15178
  kc([
15179
15179
  P.trace("Recording.stop")
15180
- ], Yi.prototype, "stop", 1);
15180
+ ], zi.prototype, "stop", 1);
15181
15181
  kc([
15182
15182
  P.trace("Recording.stop")
15183
- ], Yi.prototype, "pause", 1);
15183
+ ], zi.prototype, "pause", 1);
15184
15184
  kc([
15185
15185
  P.trace("Recording.stop")
15186
- ], Yi.prototype, "resume", 1);
15187
- Yi = kc([
15186
+ ], zi.prototype, "resume", 1);
15187
+ zi = kc([
15188
15188
  at("1000")
15189
- ], Yi);
15189
+ ], zi);
15190
15190
  var X0 = Object.defineProperty, Z0 = Object.getOwnPropertyDescriptor, eM = (s, t, e, r) => {
15191
15191
  for (var i = r > 1 ? void 0 : r ? Z0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
15192
15192
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
@@ -15197,7 +15197,7 @@ class Ef {
15197
15197
  p(this, "recording");
15198
15198
  p(this, "room");
15199
15199
  m(this, hi, void 0);
15200
- f(this, hi, t), this.recording = new Yi(t, e), this.room = r, this.setupEvents();
15200
+ f(this, hi, t), this.recording = new zi(t, e), this.room = r, this.setupEvents();
15201
15201
  }
15202
15202
  /**
15203
15203
  * @access private
@@ -15979,7 +15979,7 @@ const oM = {
15979
15979
  }), i[c][1];
15980
15980
  };
15981
15981
  var _e = /* @__PURE__ */ ((s) => (s.WEBCAM = "webcam", s.WEBCAM_BACKUP = "webcam_backup", s.MIC = "mic", s.SCREENSHARE_VIDEO = "screenshare_video", s.SCREENSHARE_AUDIO = "screenshare_audio", s))(_e || {});
15982
- const lM = j_(), rn = Ms(
15982
+ const lM = j_(), sn = Ms(
15983
15983
  lM.config.media
15984
15984
  );
15985
15985
  function uM(s) {
@@ -16088,14 +16088,14 @@ var gM = Object.defineProperty, mM = Object.getOwnPropertyDescriptor, bs = (s, t
16088
16088
  for (var i = r > 1 ? void 0 : r ? mM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
16089
16089
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
16090
16090
  return r && i && gM(t, e, i), i;
16091
- }, Bn, Kt, je, yg;
16091
+ }, $n, Kt, je, yg;
16092
16092
  let xt = (yg = class extends pM {
16093
16093
  constructor(t, e) {
16094
16094
  super();
16095
- m(this, Bn, void 0);
16095
+ m(this, $n, void 0);
16096
16096
  m(this, Kt, void 0);
16097
16097
  m(this, je, void 0);
16098
- f(this, je, t), f(this, Kt, new hM(t, e)), f(this, Bn, new AbortController());
16098
+ f(this, je, t), f(this, Kt, new hM(t, e)), f(this, $n, new AbortController());
16099
16099
  }
16100
16100
  /**
16101
16101
  * @access private
@@ -16117,7 +16117,7 @@ let xt = (yg = class extends pM {
16117
16117
  destruct() {
16118
16118
  return u(this, null, function* () {
16119
16119
  var t;
16120
- (t = a(this, Bn)) == null || t.abort();
16120
+ (t = a(this, $n)) == null || t.abort();
16121
16121
  });
16122
16122
  }
16123
16123
  handlePermissionErrors(t, e) {
@@ -16447,12 +16447,12 @@ let xt = (yg = class extends pM {
16447
16447
  g.some((S) => S.kind === "audioinput") && a(this, je).getValue("callstats").devices("AUDIO", o == null ? void 0 : o.filter((S) => S.kind === "audioinput")), g.some((S) => S.kind === "videoinput") && a(this, je).getValue("callstats").devices("VIDEO", o == null ? void 0 : o.filter((S) => S.kind === "videoinput")), g.some((S) => S.kind === "audiooutput") && a(this, je).getValue("callstats").devices("SPEAKER", o == null ? void 0 : o.filter((S) => S.kind === "audiooutput")), t(r, d, !1);
16448
16448
  }
16449
16449
  }),
16450
- { signal: a(this, Bn).signal }
16450
+ { signal: a(this, $n).signal }
16451
16451
  );
16452
16452
  }
16453
16453
  });
16454
16454
  }
16455
- }, Bn = new WeakMap(), Kt = new WeakMap(), je = new WeakMap(), yg);
16455
+ }, $n = new WeakMap(), Kt = new WeakMap(), je = new WeakMap(), yg);
16456
16456
  bs([
16457
16457
  P.trace("WebMediaInterface.destruct")
16458
16458
  ], xt.prototype, "destruct", 1);
@@ -17087,15 +17087,15 @@ var MM = Object.defineProperty, DM = Object.getOwnPropertyDescriptor, Al = (s, t
17087
17087
  for (var i = r > 1 ? void 0 : r ? DM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17088
17088
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17089
17089
  return r && i && MM(t, e, i), i;
17090
- }, Hn, Do;
17090
+ }, Bn, Do;
17091
17091
  class Ic extends _f {
17092
17092
  constructor(e, r, i, n) {
17093
17093
  super(e, r, i, n);
17094
- m(this, Hn, void 0);
17094
+ m(this, Bn, void 0);
17095
17095
  m(this, Do, {
17096
17096
  disablePerFrameCanvasRendering: !1
17097
17097
  });
17098
- f(this, Hn, new aM(e));
17098
+ f(this, Bn, new aM(e));
17099
17099
  }
17100
17100
  onSetDevice(e) {
17101
17101
  return u(this, null, function* () {
@@ -17153,7 +17153,7 @@ class Ic extends _f {
17153
17153
  return;
17154
17154
  }
17155
17155
  try {
17156
- this.transformedMediaTrack = yield a(this, Hn).getTransformedVideoTrack(
17156
+ this.transformedMediaTrack = yield a(this, Bn).getTransformedVideoTrack(
17157
17157
  this.middlewares,
17158
17158
  this.mediaTrack,
17159
17159
  a(this, Do)
@@ -17189,7 +17189,7 @@ class Ic extends _f {
17189
17189
  });
17190
17190
  }
17191
17191
  terminateMiddlewareWebWorker() {
17192
- a(this, Hn).terminateMiddlewareWebWorker();
17192
+ a(this, Bn).terminateMiddlewareWebWorker();
17193
17193
  }
17194
17194
  onTrackEnded() {
17195
17195
  return u(this, null, function* () {
@@ -17215,7 +17215,7 @@ class Ic extends _f {
17215
17215
  });
17216
17216
  }
17217
17217
  }
17218
- Hn = new WeakMap(), Do = new WeakMap();
17218
+ Bn = new WeakMap(), Do = new WeakMap();
17219
17219
  Al([
17220
17220
  P.trace("VideoMediaHandler.setTransformedTrack")
17221
17221
  ], Ic.prototype, "setTransformedTrack", 1);
@@ -17231,8 +17231,8 @@ Al([
17231
17231
  const OM = Ic, Xp = Ms(
17232
17232
  uh()
17233
17233
  );
17234
- var dt, Si, Oo, Fn;
17235
- const un = class {
17234
+ var dt, Si, Oo, Hn;
17235
+ const ln = class {
17236
17236
  /**
17237
17237
  * @param {PresetV2CamelCased} preset
17238
17238
  */
@@ -17240,28 +17240,28 @@ const un = class {
17240
17240
  m(this, dt, void 0);
17241
17241
  m(this, Si, void 0);
17242
17242
  m(this, Oo, void 0);
17243
- m(this, Fn, void 0);
17243
+ m(this, Hn, void 0);
17244
17244
  if (!t)
17245
17245
  throw new R("Could not load preset.", "0904");
17246
- f(this, dt, t.config), f(this, Oo, t.name), f(this, Si, t.ui || Ms(uh().ui)), f(this, Fn, t.permissions.plugins.config);
17246
+ f(this, dt, t.config), f(this, Oo, t.name), f(this, Si, t.ui || Ms(uh().ui)), f(this, Hn, t.permissions.plugins.config);
17247
17247
  }
17248
17248
  /**
17249
17249
  * @deprecated. Use init()
17250
17250
  * @param {PresetV2CamelCased} preset
17251
17251
  */
17252
17252
  static fromResponse(t) {
17253
- return new un(t);
17253
+ return new ln(t);
17254
17254
  }
17255
17255
  /** @deprecated. Use init() */
17256
17256
  static default() {
17257
- return new un(Xp);
17257
+ return new ln(Xp);
17258
17258
  }
17259
17259
  /**
17260
17260
  * @param {PresetV2CamelCased} [preset]
17261
17261
  * @param {boolean} [useDefault=true]
17262
17262
  */
17263
17263
  static init(t, e = !0) {
17264
- return !t || e ? new un(Xp) : new un(t);
17264
+ return !t || e ? new ln(Xp) : new ln(t);
17265
17265
  }
17266
17266
  /**
17267
17267
  * @deprecated
@@ -17372,7 +17372,7 @@ const un = class {
17372
17372
  * The `disabledPlugins` property returns id of all disabled plugins
17373
17373
  */
17374
17374
  get disabledPlugins() {
17375
- return Object.keys(a(this, Fn)).filter((t) => a(this, Fn)[t].disabled);
17375
+ return Object.keys(a(this, Hn)).filter((t) => a(this, Hn)[t].disabled);
17376
17376
  }
17377
17377
  get designTokens() {
17378
17378
  return a(this, Si).designTokens;
@@ -17388,16 +17388,16 @@ const un = class {
17388
17388
  var t, e, r, i, n, o, c, d, l, h, g, S, v, E, w, b, I, D, $, V, H, j, Z, He;
17389
17389
  return {
17390
17390
  audio: {
17391
- enableStereo: (i = (r = (e = (t = a(this, dt)) == null ? void 0 : t.media) == null ? void 0 : e.audio) == null ? void 0 : r.enableStereo) != null ? i : rn.audio.enableStereo,
17392
- enableHighBitrate: (d = (c = (o = (n = a(this, dt)) == null ? void 0 : n.media) == null ? void 0 : o.audio) == null ? void 0 : c.enableHighBitrate) != null ? d : rn.audio.enableHighBitrate
17391
+ enableStereo: (i = (r = (e = (t = a(this, dt)) == null ? void 0 : t.media) == null ? void 0 : e.audio) == null ? void 0 : r.enableStereo) != null ? i : sn.audio.enableStereo,
17392
+ enableHighBitrate: (d = (c = (o = (n = a(this, dt)) == null ? void 0 : n.media) == null ? void 0 : o.audio) == null ? void 0 : c.enableHighBitrate) != null ? d : sn.audio.enableHighBitrate
17393
17393
  },
17394
17394
  video: {
17395
- quality: (S = (g = (h = (l = a(this, dt)) == null ? void 0 : l.media) == null ? void 0 : h.video) == null ? void 0 : g.quality) != null ? S : rn.video.quality,
17396
- frameRate: (b = (w = (E = (v = a(this, dt)) == null ? void 0 : v.media) == null ? void 0 : E.video) == null ? void 0 : w.frameRate) != null ? b : rn.video.frameRate
17395
+ quality: (S = (g = (h = (l = a(this, dt)) == null ? void 0 : l.media) == null ? void 0 : h.video) == null ? void 0 : g.quality) != null ? S : sn.video.quality,
17396
+ frameRate: (b = (w = (E = (v = a(this, dt)) == null ? void 0 : v.media) == null ? void 0 : E.video) == null ? void 0 : w.frameRate) != null ? b : sn.video.frameRate
17397
17397
  },
17398
17398
  screenshare: {
17399
- quality: (V = ($ = (D = (I = a(this, dt)) == null ? void 0 : I.media) == null ? void 0 : D.screenshare) == null ? void 0 : $.quality) != null ? V : rn.screenshare.quality,
17400
- frameRate: (He = (Z = (j = (H = a(this, dt)) == null ? void 0 : H.media) == null ? void 0 : j.screenshare) == null ? void 0 : Z.frameRate) != null ? He : rn.screenshare.frameRate
17399
+ quality: (V = ($ = (D = (I = a(this, dt)) == null ? void 0 : I.media) == null ? void 0 : D.screenshare) == null ? void 0 : $.quality) != null ? V : sn.screenshare.quality,
17400
+ frameRate: (He = (Z = (j = (H = a(this, dt)) == null ? void 0 : H.media) == null ? void 0 : j.screenshare) == null ? void 0 : Z.frameRate) != null ? He : sn.screenshare.frameRate
17401
17401
  }
17402
17402
  };
17403
17403
  }
@@ -17405,13 +17405,13 @@ const un = class {
17405
17405
  return a(this, Oo);
17406
17406
  }
17407
17407
  };
17408
- let wu = un;
17409
- dt = new WeakMap(), Si = new WeakMap(), Oo = new WeakMap(), Fn = new WeakMap();
17408
+ let wu = ln;
17409
+ dt = new WeakMap(), Si = new WeakMap(), Oo = new WeakMap(), Hn = new WeakMap();
17410
17410
  var NM = Object.defineProperty, LM = Object.getOwnPropertyDescriptor, wf = (s, t, e, r) => {
17411
17411
  for (var i = r > 1 ? void 0 : r ? LM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17412
17412
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17413
17413
  return r && i && NM(t, e, i), i;
17414
- }, qn, No;
17414
+ }, Fn, No;
17415
17415
  class yh extends Ut {
17416
17416
  /**
17417
17417
  * @param {Context} context
@@ -17420,13 +17420,13 @@ class yh extends Ut {
17420
17420
  constructor(e, r) {
17421
17421
  const i = e.getValue("logger");
17422
17422
  super(i);
17423
- m(this, qn, void 0);
17423
+ m(this, Fn, void 0);
17424
17424
  p(this, "state", "IDLE");
17425
17425
  p(this, "playbackUrl");
17426
17426
  p(this, "ingestionCredentials");
17427
17427
  p(this, "viewerCount");
17428
17428
  m(this, No, void 0);
17429
- f(this, qn, r), f(this, No, e), this.viewerCount = 0;
17429
+ f(this, Fn, r), f(this, No, e), this.viewerCount = 0;
17430
17430
  }
17431
17431
  /**
17432
17432
  * @access private
@@ -17449,7 +17449,7 @@ class yh extends Ut {
17449
17449
  return u(this, arguments, function* (e = {
17450
17450
  manualIngestion: !1
17451
17451
  }) {
17452
- if (!a(this, qn).permissions.canLivestream)
17452
+ if (!a(this, Fn).permissions.canLivestream)
17453
17453
  throw this.logger.error("Livestream::start::permission_denied"), new R(
17454
17454
  "User does not have permission to start livestreaming",
17455
17455
  "1901"
@@ -17470,7 +17470,7 @@ class yh extends Ut {
17470
17470
  }
17471
17471
  stop() {
17472
17472
  return u(this, null, function* () {
17473
- if (!a(this, qn).permissions.canLivestream)
17473
+ if (!a(this, Fn).permissions.canLivestream)
17474
17474
  throw this.logger.error("Livestream::stop::permission_denied"), new R(
17475
17475
  "User does not have permission to stop livestreaming",
17476
17476
  "1901"
@@ -17487,7 +17487,7 @@ class yh extends Ut {
17487
17487
  });
17488
17488
  }
17489
17489
  }
17490
- qn = new WeakMap(), No = new WeakMap();
17490
+ Fn = new WeakMap(), No = new WeakMap();
17491
17491
  wf([
17492
17492
  P.trace("livestream.start")
17493
17493
  ], yh.prototype, "start", 1);
@@ -17498,15 +17498,15 @@ var VM = Object.defineProperty, xM = Object.getOwnPropertyDescriptor, UM = (s, t
17498
17498
  for (var i = r > 1 ? void 0 : r ? xM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17499
17499
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17500
17500
  return r && i && VM(t, e, i), i;
17501
- }, jn, Gn, js, ws;
17501
+ }, qn, jn, js, ws;
17502
17502
  class Cf {
17503
17503
  constructor(t, e, r) {
17504
17504
  p(this, "livestream");
17505
+ m(this, qn, void 0);
17505
17506
  m(this, jn, void 0);
17506
- m(this, Gn, void 0);
17507
17507
  m(this, js, void 0);
17508
17508
  m(this, ws, void 0);
17509
- f(this, ws, t), f(this, Gn, e), this.livestream = new yh(t, e), f(this, js, r), this.setupEvents();
17509
+ f(this, ws, t), f(this, jn, e), this.livestream = new yh(t, e), f(this, js, r), this.setupEvents();
17510
17510
  }
17511
17511
  /**
17512
17512
  * @access private
@@ -17539,7 +17539,7 @@ class Cf {
17539
17539
  (t) => u(this, null, function* () {
17540
17540
  this.livestream.playbackUrl = t.playbackUrl, this.livestream.setLivestreamState("LIVESTREAMING");
17541
17541
  try {
17542
- a(this, Gn).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
17542
+ a(this, jn).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
17543
17543
  } catch (e) {
17544
17544
  this.logger.error("Error: LivestreamController.fetchLivestream during startedLivestream re-fetch");
17545
17545
  }
@@ -17550,7 +17550,7 @@ class Cf {
17550
17550
  if (t.manualIngest) {
17551
17551
  this.livestream.setLivestreamState("WAITING_ON_MANUAL_INGESTION");
17552
17552
  try {
17553
- a(this, Gn).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
17553
+ a(this, jn).permissions.canLivestream && (yield this.fetchInitialLivestreamingState());
17554
17554
  } catch (e) {
17555
17555
  this.logger.error("Error: LivestreamController.fetchLivestream during livestreamingInvoked re-fetch");
17556
17556
  }
@@ -17569,10 +17569,10 @@ class Cf {
17569
17569
  C.PEER_JOINED_INTERNAL,
17570
17570
  (t) => u(this, null, function* () {
17571
17571
  var e;
17572
- ((e = t.flags) == null ? void 0 : e.hiddenParticipant) === !0 && t.recorderType === "LIVESTREAMER" && (f(this, jn, t.id), this.livestream.setLivestreamState("LIVESTREAMING"));
17572
+ ((e = t.flags) == null ? void 0 : e.hiddenParticipant) === !0 && t.recorderType === "LIVESTREAMER" && (f(this, qn, t.id), this.livestream.setLivestreamState("LIVESTREAMING"));
17573
17573
  })
17574
17574
  ), a(this, ws).getValue("peerSessionStore").on(C.PEER_CLOSED, (t) => {
17575
- t.id === a(this, jn) && (f(this, jn, void 0), this.livestream.setLivestreamState("IDLE"));
17575
+ t.id === a(this, qn) && (f(this, qn, void 0), this.livestream.setLivestreamState("IDLE"));
17576
17576
  }), a(this, ws).getValue("peerSessionStore").onAsync(C.LEAVE_MEDIA_ROOM, () => u(this, null, function* () {
17577
17577
  if (!this.livestream.playbackUrl) {
17578
17578
  this.logger.info("Fetching livestreaming state on leave stage");
@@ -17591,7 +17591,7 @@ class Cf {
17591
17591
  }));
17592
17592
  }
17593
17593
  }
17594
- jn = new WeakMap(), Gn = new WeakMap(), js = new WeakMap(), ws = new WeakMap();
17594
+ qn = new WeakMap(), jn = new WeakMap(), js = new WeakMap(), ws = new WeakMap();
17595
17595
  UM([
17596
17596
  P.trace("LivestreamController.setupEvents")
17597
17597
  ], Cf.prototype, "setupEvents", 1);
@@ -17891,7 +17891,7 @@ var FM = Object.defineProperty, qM = Object.getOwnPropertyDescriptor, ka = (s, t
17891
17891
  return r && i && FM(t, e, i), i;
17892
17892
  };
17893
17893
  const jM = 0.8, GM = 1.2;
17894
- var Wn, Jn, Mt, yi, Ya, Dr, on, Ei, Qa, kd, If, Gs, xo, Or, Pi, Xa, Ws, Id, Uo, Ru, Ad, Af, Md, Mf, Eg;
17894
+ var Gn, Wn, Mt, yi, Ya, Dr, an, Ei, Qa, kd, If, Gs, xo, Or, Pi, Xa, Ws, Id, Uo, Ru, Ad, Af, Md, Mf, Eg;
17895
17895
  let lr = (Eg = class extends Ut {
17896
17896
  /**
17897
17897
  * @param {Context} context
@@ -17979,7 +17979,7 @@ let lr = (Eg = class extends Ut {
17979
17979
  /**
17980
17980
  * This is true if the participant is pinned.
17981
17981
  */
17982
- m(this, Wn, void 0);
17982
+ m(this, Gn, void 0);
17983
17983
  /**
17984
17984
  * This is true if the participant supports remote control.
17985
17985
  */
@@ -17987,7 +17987,7 @@ let lr = (Eg = class extends Ut {
17987
17987
  /**
17988
17988
  * Represents the participants current stage status
17989
17989
  */
17990
- m(this, Jn, void 0);
17990
+ m(this, Wn, void 0);
17991
17991
  /**
17992
17992
  * The preset of the participant.
17993
17993
  */
@@ -18036,10 +18036,10 @@ let lr = (Eg = class extends Ut {
18036
18036
  producers: V,
18037
18037
  metadata: H
18038
18038
  } = e;
18039
- this.id = o, this.userId = c, this.name = d, this.device = l, this.picture = h, this.isHost = g, this.flags = S, this.manualProducerConfig = P_, f(this, Jn, E != null ? E : "ON_STAGE"), this.customParticipantId = w != null ? w : v, this.audioEnabled = !b, this.audioTrack = I, this.videoEnabled = D, this.videoTrack = $, this.screenShareTracks = {
18039
+ this.id = o, this.userId = c, this.name = d, this.device = l, this.picture = h, this.isHost = g, this.flags = S, this.manualProducerConfig = P_, f(this, Wn, E != null ? E : "ON_STAGE"), this.customParticipantId = w != null ? w : v, this.audioEnabled = !b, this.audioTrack = I, this.videoEnabled = D, this.videoTrack = $, this.screenShareTracks = {
18040
18040
  audio: void 0,
18041
18041
  video: void 0
18042
- }, this.producers = V != null ? V : [], this.presetName = H == null ? void 0 : H.preset_name, f(this, Wn, !1), f(this, Gs, r), f(this, xo, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this), x(this, Uo, Ru).call(this);
18042
+ }, this.producers = V != null ? V : [], this.presetName = H == null ? void 0 : H.preset_name, f(this, Gn, !1), f(this, Gs, r), f(this, xo, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this), x(this, Uo, Ru).call(this);
18043
18043
  }
18044
18044
  /**
18045
18045
  * @deprecated
@@ -18050,7 +18050,7 @@ let lr = (Eg = class extends Ut {
18050
18050
  }
18051
18051
  /** Denotes the participants's current stage status. */
18052
18052
  get stageStatus() {
18053
- return a(this, Jn);
18053
+ return a(this, Wn);
18054
18054
  }
18055
18055
  /**
18056
18056
  * @access private
@@ -18090,7 +18090,7 @@ let lr = (Eg = class extends Ut {
18090
18090
  });
18091
18091
  }
18092
18092
  setupEvents() {
18093
- this.on("videoUpdate", x(this, Uo, Ru)), a(this, Dr, on) && (this.on("audioUpdate", x(this, Ad, Af)), this.on("screenShareUpdate", x(this, Md, Mf)));
18093
+ this.on("videoUpdate", x(this, Uo, Ru)), a(this, Dr, an) && (this.on("audioUpdate", x(this, Ad, Af)), this.on("screenShareUpdate", x(this, Md, Mf)));
18094
18094
  }
18095
18095
  /**
18096
18096
  * Returns `participant.id` if user has permission
@@ -18126,7 +18126,7 @@ let lr = (Eg = class extends Ut {
18126
18126
  */
18127
18127
  setIsPinned(t, e = !0) {
18128
18128
  var i;
18129
- f(this, Wn, t);
18129
+ f(this, Gn, t);
18130
18130
  const r = t ? "pinned" : "unpinned";
18131
18131
  (i = a(this, Pi, Xa)) == null || i.updateSource(this.id, { pinned: t }), e && this.emit(r, this);
18132
18132
  }
@@ -18200,13 +18200,13 @@ let lr = (Eg = class extends Ut {
18200
18200
  * @param {StageStatus} stageStatus
18201
18201
  */
18202
18202
  setStageStatus(t) {
18203
- f(this, Jn, t), this.emit("stageStatusUpdate", this);
18203
+ f(this, Wn, t), this.emit("stageStatusUpdate", this);
18204
18204
  }
18205
18205
  /**
18206
18206
  * Returns true if the participant is pinned.
18207
18207
  */
18208
18208
  get isPinned() {
18209
- return a(this, Wn);
18209
+ return a(this, Gn);
18210
18210
  }
18211
18211
  /**
18212
18212
  * @param {HTMLVideoElement} videoElem
@@ -18255,9 +18255,9 @@ let lr = (Eg = class extends Ut {
18255
18255
  t.srcObject = void 0;
18256
18256
  t.style.display = this.videoEnabled ? "block" : "none";
18257
18257
  }
18258
- }, Wn = new WeakMap(), Jn = new WeakMap(), Mt = new WeakMap(), yi = new WeakSet(), Ya = function() {
18258
+ }, Gn = new WeakMap(), Wn = new WeakMap(), Mt = new WeakMap(), yi = new WeakSet(), Ya = function() {
18259
18259
  return a(this, Mt).getValue("roomNodeClient");
18260
- }, Dr = new WeakSet(), on = function() {
18260
+ }, Dr = new WeakSet(), an = function() {
18261
18261
  return a(this, Mt).getValue("audioPlayback");
18262
18262
  }, Ei = new WeakSet(), Qa = function() {
18263
18263
  return a(this, Mt).getValue("connectionHandler").mediaJoined;
@@ -18269,10 +18269,10 @@ let lr = (Eg = class extends Ut {
18269
18269
  Array.from(a(this, Or).keys()).forEach(this.updateVideo);
18270
18270
  }, Ad = new WeakSet(), Af = function() {
18271
18271
  var t, e;
18272
- this.audioEnabled && this.audioTrack ? (t = a(this, Dr, on)) == null || t.addParticipantTrack(this.id, this.audioTrack) : (e = a(this, Dr, on)) == null || e.removeParticipantTrack(this.id);
18272
+ this.audioEnabled && this.audioTrack ? (t = a(this, Dr, an)) == null || t.addParticipantTrack(this.id, this.audioTrack) : (e = a(this, Dr, an)) == null || e.removeParticipantTrack(this.id);
18273
18273
  }, Md = new WeakSet(), Mf = function() {
18274
18274
  var t, e;
18275
- this.screenShareEnabled && this.screenShareTracks.audio ? (t = a(this, Dr, on)) == null || t.addParticipantTrack(`screenshare-${this.id}`, this.screenShareTracks.audio) : (e = a(this, Dr, on)) == null || e.removeParticipantTrack(`screenshare-${this.id}`);
18275
+ this.screenShareEnabled && this.screenShareTracks.audio ? (t = a(this, Dr, an)) == null || t.addParticipantTrack(`screenshare-${this.id}`, this.screenShareTracks.audio) : (e = a(this, Dr, an)) == null || e.removeParticipantTrack(`screenshare-${this.id}`);
18276
18276
  }, Eg);
18277
18277
  ka([
18278
18278
  P.trace("Participant.disableAudio")
@@ -18440,7 +18440,7 @@ var zM = Object.defineProperty, YM = Object.getOwnPropertyDescriptor, Bt = (s, t
18440
18440
  return r && i && zM(t, e, i), i;
18441
18441
  };
18442
18442
  const QM = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
18443
- var Ee, $o, ku, bi, Za, Kn, Xc, _i, vt, Pg;
18443
+ var Ee, $o, ku, bi, Za, Jn, Xc, _i, vt, Pg;
18444
18444
  let ft = (Pg = class extends Ut {
18445
18445
  /**
18446
18446
  * This constructs a new Participant object and maintains
@@ -18466,7 +18466,7 @@ let ft = (Pg = class extends Ut {
18466
18466
  /**
18467
18467
  * Returns true if the local participant has joined the meeting.
18468
18468
  */
18469
- m(this, Kn);
18469
+ m(this, Jn);
18470
18470
  /**
18471
18471
  * Returns a list of participants waiting to join the meeting.
18472
18472
  */
@@ -18586,7 +18586,7 @@ let ft = (Pg = class extends Ut {
18586
18586
  setMaxActiveParticipantsCount(t) {
18587
18587
  if (t < 0 || t > 24)
18588
18588
  throw new R("0 <= Max active participants count limit <= 24", "1203");
18589
- a(this, Ee).setValue("maxPreferredStreams", t), a(this, Kn, Xc) && a(this, Ee).getValue("peerSessionStore").emit(C.UPDATE_ACTIVE, { viewMode: this.viewMode, page: this.currentPage });
18589
+ a(this, Ee).setValue("maxPreferredStreams", t), a(this, Jn, Xc) && a(this, Ee).getValue("peerSessionStore").emit(C.UPDATE_ACTIVE, { viewMode: this.viewMode, page: this.currentPage });
18590
18590
  }
18591
18591
  /**
18592
18592
  * Returns the number of pages that are available in the meeting in PAGINATED mode.
@@ -18769,7 +18769,7 @@ let ft = (Pg = class extends Ut {
18769
18769
  return u(this, null, function* () {
18770
18770
  if (this.logger.info("Participants::disable_all_audio", {
18771
18771
  actions: { disableAllAudio: { allowUnmute: t } }
18772
- }), !a(this, Kn, Xc))
18772
+ }), !a(this, Jn, Xc))
18773
18773
  throw new R("Can`t disable all audio without joining room", "1205");
18774
18774
  if (a(this, _i).permissions.canAllowParticipantAudio)
18775
18775
  return a(this, $o, ku).muteAll(t);
@@ -18783,7 +18783,7 @@ let ft = (Pg = class extends Ut {
18783
18783
  }
18784
18784
  disableAllVideo() {
18785
18785
  return u(this, null, function* () {
18786
- if (this.logger.info("Participants::disable_all_video"), !a(this, Kn, Xc))
18786
+ if (this.logger.info("Participants::disable_all_video"), !a(this, Jn, Xc))
18787
18787
  throw new R("Can`t disable all video without joining room", "1205");
18788
18788
  if (a(this, _i).permissions.canAllowParticipantVideo)
18789
18789
  return a(this, $o, ku).muteAllVideo();
@@ -18872,7 +18872,7 @@ let ft = (Pg = class extends Ut {
18872
18872
  }, bi = new WeakSet(), Za = function() {
18873
18873
  var t;
18874
18874
  return ((t = a(this, Ee).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === !0;
18875
- }, Kn = new WeakSet(), Xc = function() {
18875
+ }, Jn = new WeakSet(), Xc = function() {
18876
18876
  var t;
18877
18877
  return ((t = a(this, Ee).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === !0;
18878
18878
  }, _i = new WeakMap(), vt = new WeakMap(), Pg);
@@ -18918,11 +18918,11 @@ Bt([
18918
18918
  ft = Bt([
18919
18919
  at("1200")
18920
18920
  ], ft);
18921
- var XM = Object.defineProperty, ZM = Object.getOwnPropertyDescriptor, tn = (s, t, e, r) => {
18921
+ var XM = Object.defineProperty, ZM = Object.getOwnPropertyDescriptor, en = (s, t, e, r) => {
18922
18922
  for (var i = r > 1 ? void 0 : r ? ZM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
18923
18923
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
18924
18924
  return r && i && XM(t, e, i), i;
18925
- }, zt, ls, zn, bg;
18925
+ }, zt, ls, Kn, bg;
18926
18926
  const Of = (bg = class {
18927
18927
  constructor(s, t, e) {
18928
18928
  p(this, "participants");
@@ -18936,7 +18936,7 @@ const Of = (bg = class {
18936
18936
  p(this, "videoPeerConsumerMap", /* @__PURE__ */ new Map());
18937
18937
  m(this, zt, { mode: "ACTIVE_GRID", page: 0 });
18938
18938
  m(this, ls, !1);
18939
- m(this, zn, !1);
18939
+ m(this, Kn, !1);
18940
18940
  p(this, "updateConsumerSpatialLayers", lh(() => {
18941
18941
  const s = {}, t = new Map(this.maxSpatialLayerUpdates);
18942
18942
  this.maxSpatialLayerUpdates.clear(), Array.from(t.entries()).forEach(([e, r]) => {
@@ -19279,10 +19279,10 @@ const Of = (bg = class {
19279
19279
  return;
19280
19280
  }
19281
19281
  if (a(this, ls)) {
19282
- f(this, zn, !0), this.logger.info("syncConsumers: Sync in progress, marking resyncRequired=true and exiting.");
19282
+ f(this, Kn, !0), this.logger.info("syncConsumers: Sync in progress, marking resyncRequired=true and exiting.");
19283
19283
  return;
19284
19284
  }
19285
- this.logger.info("syncConsumers: Starting sync operation."), f(this, ls, !0), f(this, zn, !1);
19285
+ this.logger.info("syncConsumers: Starting sync operation."), f(this, ls, !0), f(this, Kn, !1);
19286
19286
  let s = [];
19287
19287
  this.participants.videoSubscribed.forEach((g) => {
19288
19288
  var E, w;
@@ -19330,7 +19330,7 @@ const Of = (bg = class {
19330
19330
  } finally {
19331
19331
  this.logger.info("syncConsumers: Setting consumersSyncing=false and completing sync."), f(this, ls, !1);
19332
19332
  }
19333
- a(this, zn) && (this.logger.info("syncConsumers: Resync required, calling syncConsumers again."), this.syncConsumers());
19333
+ a(this, Kn) && (this.logger.info("syncConsumers: Resync required, calling syncConsumers again."), this.syncConsumers());
19334
19334
  });
19335
19335
  }
19336
19336
  computeActivateParticipants(s, t) {
@@ -19900,41 +19900,41 @@ const Of = (bg = class {
19900
19900
  // priority
19901
19901
  })), t && this.context.getValue("peerSessionStore").emit(C.UPDATE_ACTIVE, { viewMode: this.participants.viewMode, page: this.participants.currentPage });
19902
19902
  }
19903
- }, zt = new WeakMap(), ls = new WeakMap(), zn = new WeakMap(), bg);
19903
+ }, zt = new WeakMap(), ls = new WeakMap(), Kn = new WeakMap(), bg);
19904
19904
  let mr = Of;
19905
- tn([
19905
+ en([
19906
19906
  P.trace("ParticipantController.setupEvents")
19907
19907
  ], mr.prototype, "setupEvents", 1);
19908
- tn([
19908
+ en([
19909
19909
  P.trace("ParticipantController.setupEvents")
19910
19910
  ], mr.prototype, "setupEventsGlobal", 1);
19911
- tn([
19911
+ en([
19912
19912
  P.trace("ParticipantController.processMedia")
19913
19913
  ], mr.prototype, "processMedia", 1);
19914
- tn([
19914
+ en([
19915
19915
  P.trace("ParticipantController.processConsumerClosed")
19916
19916
  ], mr.prototype, "processConsumerClosed", 1);
19917
- tn([
19917
+ en([
19918
19918
  P.trace("ParticipantController.processConsumerResumed")
19919
19919
  ], mr.prototype, "processConsumerResumed", 1);
19920
- tn([
19920
+ en([
19921
19921
  P.trace("ParticipantController.processConsumerPaused")
19922
19922
  ], mr.prototype, "processConsumerPaused", 1);
19923
- tn([
19923
+ en([
19924
19924
  P.trace("ParticipantController.processNewConsumer")
19925
19925
  ], mr.prototype, "processNewConsumer", 1);
19926
19926
  const pe = Ms(
19927
19927
  uh().permissions
19928
19928
  );
19929
- var F, Yn, Qn, Dd, lt, Ct;
19930
- const hn = class extends Ut {
19929
+ var F, zn, Yn, Dd, lt, Ct;
19930
+ const un = class extends Ut {
19931
19931
  constructor(e, r, i, n = !1) {
19932
19932
  const o = e.getValue("logger");
19933
19933
  super(o);
19934
19934
  m(this, lt);
19935
19935
  m(this, F, void 0);
19936
+ m(this, zn, void 0);
19936
19937
  m(this, Yn, void 0);
19937
- m(this, Qn, void 0);
19938
19938
  m(this, Dd, (e) => {
19939
19939
  var h, g, S;
19940
19940
  const l = e, {
@@ -19981,22 +19981,22 @@ const hn = class extends Ut {
19981
19981
  });
19982
19982
  if (!r)
19983
19983
  throw this.logger.error("PermissionPreset::load_preset_permissions_failed"), new R("Could not load preset permissions.", "0904");
19984
- f(this, Qn, e), f(this, Yn, i), f(this, F, r), n && this.setupEvents();
19984
+ f(this, Yn, e), f(this, zn, i), f(this, F, r), n && this.setupEvents();
19985
19985
  }
19986
19986
  setupEvents() {
19987
- a(this, Qn).getValue("peerSessionStore").on(C.UPDATE_PERMISSIONS, a(this, Dd));
19987
+ a(this, Yn).getValue("peerSessionStore").on(C.UPDATE_PERMISSIONS, a(this, Dd));
19988
19988
  }
19989
19989
  /** @deprecated. Use init() */
19990
19990
  static fromResponse(e, r, i) {
19991
- return new hn(i, e, r, !0);
19991
+ return new un(i, e, r, !0);
19992
19992
  }
19993
19993
  /** @deprecated. Use init() */
19994
19994
  static default(e, r) {
19995
- return new hn(e, pe, r);
19995
+ return new un(e, pe, r);
19996
19996
  }
19997
19997
  static init(e, r, i) {
19998
19998
  let n;
19999
- return i ? n = new hn(e, i, r, !0) : n = new hn(e, pe, r), n;
19999
+ return i ? n = new un(e, i, r, !0) : n = new un(e, pe, r), n;
20000
20000
  }
20001
20001
  // eslint-disable-next-line class-methods-use-this
20002
20002
  get mediaRoomType() {
@@ -20008,7 +20008,7 @@ const hn = class extends Ut {
20008
20008
  */
20009
20009
  get stageEnabled() {
20010
20010
  var e;
20011
- return ((e = a(this, F)) == null ? void 0 : e.stageEnabled) || a(this, Yn) === ar.Webinar || a(this, Yn) === ar.Livestream;
20011
+ return ((e = a(this, F)) == null ? void 0 : e.stageEnabled) || a(this, zn) === ar.Webinar || a(this, zn) === ar.Livestream;
20012
20012
  }
20013
20013
  get acceptStageRequests() {
20014
20014
  var e, r;
@@ -20321,9 +20321,9 @@ const hn = class extends Ut {
20321
20321
  return a(this, F).transcriptionEnabled;
20322
20322
  }
20323
20323
  };
20324
- let Iu = hn;
20325
- F = new WeakMap(), Yn = new WeakMap(), Qn = new WeakMap(), Dd = new WeakMap(), lt = new WeakSet(), Ct = function() {
20326
- return a(this, Qn).getValue("stageStatus");
20324
+ let Iu = un;
20325
+ F = new WeakMap(), zn = new WeakMap(), Yn = new WeakMap(), Dd = new WeakMap(), lt = new WeakSet(), Ct = function() {
20326
+ return a(this, Yn).getValue("stageStatus");
20327
20327
  };
20328
20328
  var Dt;
20329
20329
  class Nf extends Ut {
@@ -20738,7 +20738,7 @@ var eD = Object.defineProperty, tD = Object.getOwnPropertyDescriptor, St = (s, t
20738
20738
  for (var i = r > 1 ? void 0 : r ? tD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
20739
20739
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
20740
20740
  return r && i && eD(t, e, i), i;
20741
- }, Xn, ut, Zn, Ge, Js, ei, We, Xe, ea, Zc, Oe, xe, ta, sa, Bo, Au, _g;
20741
+ }, Qn, ut, Xn, Ge, Js, ei, We, Xe, Zn, Zc, Oe, xe, ea, ta, Bo, Au, _g;
20742
20742
  let Ye = (_g = class extends Nf {
20743
20743
  constructor(t, e, r, i, n) {
20744
20744
  var c;
@@ -20747,7 +20747,7 @@ let Ye = (_g = class extends Nf {
20747
20747
  m(this, Js);
20748
20748
  // eslint-disable-next-line class-methods-use-this
20749
20749
  m(this, We);
20750
- m(this, ea);
20750
+ m(this, Zn);
20751
20751
  /**
20752
20752
  * Returns true if the local participant has joined the meeting.
20753
20753
  */
@@ -20757,9 +20757,9 @@ let Ye = (_g = class extends Nf {
20757
20757
  p(this, "picture");
20758
20758
  p(this, "customParticipantId");
20759
20759
  p(this, "waitlistStatus");
20760
- m(this, Xn, void 0);
20760
+ m(this, Qn, void 0);
20761
20761
  m(this, ut, void 0);
20762
- m(this, Zn, void 0);
20762
+ m(this, Xn, void 0);
20763
20763
  p(this, "role");
20764
20764
  p(this, "userId");
20765
20765
  p(this, "organizationId");
@@ -20780,9 +20780,9 @@ let Ye = (_g = class extends Nf {
20780
20780
  * ended - The meeting was ended
20781
20781
  */
20782
20782
  p(this, "roomState", "init");
20783
+ m(this, ea, /* @__PURE__ */ new Set());
20783
20784
  m(this, ta, /* @__PURE__ */ new Set());
20784
- m(this, sa, /* @__PURE__ */ new Set());
20785
- f(this, Ge, t), this.userId = e.id, this.name = e.name, this.picture = e.picture, this.customParticipantId = (c = e.customParticipantId) != null ? c : e.clientSpecificId, this.waitlistStatus = "none", f(this, ut, r), f(this, Xn, i), this.hidden = !1, f(this, Zn, !1), this.organizationId = e.organizationId, this.supportsRemoteControl = Se.isElectron(), this.device = Se.getDeviceInfo(), this.presetName = n, this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), x(this, Bo, Au).call(this);
20785
+ f(this, Ge, t), this.userId = e.id, this.name = e.name, this.picture = e.picture, this.customParticipantId = (c = e.customParticipantId) != null ? c : e.clientSpecificId, this.waitlistStatus = "none", f(this, ut, r), f(this, Qn, i), this.hidden = !1, f(this, Xn, !1), this.organizationId = e.organizationId, this.supportsRemoteControl = Se.isElectron(), this.device = Se.getDeviceInfo(), this.presetName = n, this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), x(this, Bo, Au).call(this);
20786
20786
  }
20787
20787
  /**
20788
20788
  * @access private
@@ -20827,7 +20827,7 @@ let Ye = (_g = class extends Nf {
20827
20827
  }
20828
20828
  setupEvents() {
20829
20829
  this.on("videoUpdate", x(this, Bo, Au));
20830
- const t = a(this, ea, Zc);
20830
+ const t = a(this, Zn, Zc);
20831
20831
  t && t.onError((e) => {
20832
20832
  this.emit("autoplayError", e);
20833
20833
  }), this.localMediaHandler.on("AUDIO_TRACK_CHANGE", () => u(this, null, function* () {
@@ -20864,7 +20864,7 @@ let Ye = (_g = class extends Nf {
20864
20864
  var i;
20865
20865
  this.emit("deviceUpdate", {
20866
20866
  device: e
20867
- }), e.kind === "audiooutput" && typeof HTMLAudioElement.prototype.setSinkId == "function" && ((i = a(this, ea, Zc)) == null || i.setSpeakerDevice(e.deviceId));
20867
+ }), e.kind === "audiooutput" && typeof HTMLAudioElement.prototype.setSinkId == "function" && ((i = a(this, Zn, Zc)) == null || i.setSpeakerDevice(e.deviceId));
20868
20868
  })
20869
20869
  ), this.localMediaHandler.on("DEVICE_LIST_UPDATED", (e) => {
20870
20870
  this.emit("deviceListUpdate", e);
@@ -20918,14 +20918,14 @@ let Ye = (_g = class extends Nf {
20918
20918
  * Returns configuration for the meeting.
20919
20919
  */
20920
20920
  get config() {
20921
- return a(this, Xn);
20921
+ return a(this, Qn);
20922
20922
  }
20923
20923
  /**
20924
20924
  * Returns true if the local participant has joined the meeting.
20925
20925
  */
20926
20926
  get roomJoined() {
20927
20927
  var t;
20928
- return a(this, Xn).viewType === ar.Livestream && this.stageStatus !== "ON_STAGE" ? ((t = a(this, Ge).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === !0 : a(this, Oe, xe);
20928
+ return a(this, Qn).viewType === ar.Livestream && this.stageStatus !== "ON_STAGE" ? ((t = a(this, Ge).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === !0 : a(this, Oe, xe);
20929
20929
  }
20930
20930
  /**
20931
20931
  * The name of the user can be set by calling this method.
@@ -21069,7 +21069,7 @@ let Ye = (_g = class extends Nf {
21069
21069
  */
21070
21070
  setIsPinned(t, e = !0) {
21071
21071
  var i;
21072
- f(this, Zn, t);
21072
+ f(this, Xn, t);
21073
21073
  const r = t ? "pinned" : "unpinned";
21074
21074
  (i = a(this, Js, ei)) == null || i.updateSource(this.id, { pinned: t }), e && this.emit(r, this);
21075
21075
  }
@@ -21077,7 +21077,7 @@ let Ye = (_g = class extends Nf {
21077
21077
  * Returns true if the current user is pinned.
21078
21078
  */
21079
21079
  get isPinned() {
21080
- return a(this, Zn);
21080
+ return a(this, Xn);
21081
21081
  }
21082
21082
  /**
21083
21083
  * Returns `self.id` if user has permission
@@ -21158,11 +21158,11 @@ let Ye = (_g = class extends Nf {
21158
21158
  }
21159
21159
  playAudio() {
21160
21160
  var t;
21161
- return (t = a(this, ea, Zc)) == null ? void 0 : t.play();
21161
+ return (t = a(this, Zn, Zc)) == null ? void 0 : t.play();
21162
21162
  }
21163
21163
  registerVideoElement(t, e = !1) {
21164
21164
  var r, i;
21165
- t && (e ? a(this, ta).add(t) : a(this, sa).add(t), this.updateVideo(t), e || (i = a(this, Js, ei)) == null || i.addSource(
21165
+ t && (e ? a(this, ea).add(t) : a(this, ta).add(t), this.updateVideo(t), e || (i = a(this, Js, ei)) == null || i.addSource(
21166
21166
  this.id,
21167
21167
  t,
21168
21168
  this.videoEnabled,
@@ -21177,7 +21177,7 @@ let Ye = (_g = class extends Nf {
21177
21177
  a(this, Js, ei).removeSource(this.id);
21178
21178
  return;
21179
21179
  }
21180
- t.srcObject = void 0, e ? a(this, ta).delete(t) : (a(this, sa).delete(t), a(this, Js, ei).removeSource(this.id));
21180
+ t.srcObject = void 0, e ? a(this, ea).delete(t) : (a(this, ta).delete(t), a(this, Js, ei).removeSource(this.id));
21181
21181
  }
21182
21182
  /**
21183
21183
  * Internal method, do not use
@@ -21196,17 +21196,17 @@ let Ye = (_g = class extends Nf {
21196
21196
  t.srcObject = void 0, e || (n = a(this, Js, ei)) == null || n.disableSource(this.id);
21197
21197
  t.style.display = this.videoEnabled ? "block" : "none";
21198
21198
  }
21199
- }, Xn = new WeakMap(), ut = new WeakMap(), Zn = new WeakMap(), Ge = new WeakMap(), Js = new WeakSet(), ei = function() {
21199
+ }, Qn = new WeakMap(), ut = new WeakMap(), Xn = new WeakMap(), Ge = new WeakMap(), Js = new WeakSet(), ei = function() {
21200
21200
  return a(this, Ge).getValue("pip");
21201
21201
  }, We = new WeakSet(), Xe = function() {
21202
21202
  return a(this, Ge).getValue("roomNodeClient");
21203
- }, ea = new WeakSet(), Zc = function() {
21203
+ }, Zn = new WeakSet(), Zc = function() {
21204
21204
  return a(this, Ge).getValue("audioPlayback");
21205
21205
  }, Oe = new WeakSet(), xe = function() {
21206
21206
  var t;
21207
21207
  return ((t = a(this, Ge).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === !0;
21208
- }, ta = new WeakMap(), sa = new WeakMap(), Bo = new WeakSet(), Au = function() {
21209
- Array.from(a(this, sa)).forEach((t) => this.updateVideo(t, !1)), Array.from(a(this, ta)).forEach((t) => this.updateVideo(t, !0));
21208
+ }, ea = new WeakMap(), ta = new WeakMap(), Bo = new WeakSet(), Au = function() {
21209
+ Array.from(a(this, ta)).forEach((t) => this.updateVideo(t, !1)), Array.from(a(this, ea)).forEach((t) => this.updateVideo(t, !0));
21210
21210
  }, _g);
21211
21211
  St([
21212
21212
  P.trace("Self.cleanupEvents")
@@ -21666,7 +21666,7 @@ class aD {
21666
21666
  }
21667
21667
  }
21668
21668
  Je = new WeakMap();
21669
- var vn = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(vn || {}), Fo;
21669
+ var Sn = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(Sn || {}), Fo;
21670
21670
  class Ml extends nt.EventEmitter {
21671
21671
  constructor(e) {
21672
21672
  super();
@@ -22365,7 +22365,7 @@ qo = new WeakMap(), wi = new WeakMap(), Cs = new WeakMap(), Od = new WeakMap(),
22365
22365
  }));
22366
22366
  }
22367
22367
  };
22368
- var us, ra, ia, Ci, Yt, Qe, Lr, na, Vd, Ot, ns;
22368
+ var us, sa, ra, Ci, Yt, Qe, Lr, ia, Vd, Ot, ns;
22369
22369
  class dD extends Ml {
22370
22370
  /**
22371
22371
  * @emits transportclose
@@ -22406,11 +22406,11 @@ class dD extends Ml {
22406
22406
  /**
22407
22407
  * Whether the Producer should call stop() in given tracks.
22408
22408
  */
22409
- m(this, ra, void 0);
22409
+ m(this, sa, void 0);
22410
22410
  /**
22411
22411
  * Specify if the Producer track should be disabled with track.enabled = false when paused.
22412
22412
  */
22413
- m(this, ia, void 0);
22413
+ m(this, ra, void 0);
22414
22414
  /**
22415
22415
  * Specify if we should replace the RTCRtpSender.track with null when paused.
22416
22416
  */
@@ -22418,9 +22418,9 @@ class dD extends Ml {
22418
22418
  m(this, Yt, !1);
22419
22419
  m(this, Qe, void 0);
22420
22420
  m(this, Lr, void 0);
22421
- m(this, na, void 0);
22421
+ m(this, ia, void 0);
22422
22422
  m(this, Vd, void 0);
22423
- this.id = r.id, this.localId = r.localId, f(this, Qe, r.track), this.kind = (i = r.track) == null ? void 0 : i.kind, f(this, Lr, r.disableTrackOnPause ? !((n = r.track) != null && n.enabled) : !1), f(this, na, void 0), f(this, ra, r.stopTracks), f(this, ia, r.disableTrackOnPause), f(this, Ci, r.zeroRtpOnPause), this.appData = r.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), f(this, us, r.handler), this.rtpSender = r.rtpSender, this._handleTrack(), f(this, Vd, e);
22423
+ this.id = r.id, this.localId = r.localId, f(this, Qe, r.track), this.kind = (i = r.track) == null ? void 0 : i.kind, f(this, Lr, r.disableTrackOnPause ? !((n = r.track) != null && n.enabled) : !1), f(this, ia, void 0), f(this, sa, r.stopTracks), f(this, ra, r.disableTrackOnPause), f(this, Ci, r.zeroRtpOnPause), this.appData = r.appData || {}, this._onTrackEnded = this._onTrackEnded.bind(this), f(this, us, r.handler), this.rtpSender = r.rtpSender, this._handleTrack(), f(this, Vd, e);
22424
22424
  }
22425
22425
  /**
22426
22426
  * Whether the Producer is closed.
@@ -22446,7 +22446,7 @@ class dD extends Ml {
22446
22446
  * @type {Number | undefined}
22447
22447
  */
22448
22448
  get maxSpatialLayer() {
22449
- return a(this, na);
22449
+ return a(this, ia);
22450
22450
  }
22451
22451
  /**
22452
22452
  * Closes the Producer.
@@ -22477,7 +22477,7 @@ class dD extends Ml {
22477
22477
  * Pauses sending media.
22478
22478
  */
22479
22479
  pause() {
22480
- this.logger.debug("Producer::pause()", a(this, Ot, ns)), a(this, Yt) && this.logger.error("Producer::pause() | Producer closed", a(this, Ot, ns)), f(this, Lr, !0), a(this, Qe) && a(this, ia) && (a(this, Qe).enabled = !1), a(this, Ci) && a(this, us).replaceTrack(this.localId, null), this.emit("pause");
22480
+ this.logger.debug("Producer::pause()", a(this, Ot, ns)), a(this, Yt) && this.logger.error("Producer::pause() | Producer closed", a(this, Ot, ns)), f(this, Lr, !0), a(this, Qe) && a(this, ra) && (a(this, Qe).enabled = !1), a(this, Ci) && a(this, us).replaceTrack(this.localId, null), this.emit("pause");
22481
22481
  }
22482
22482
  /**
22483
22483
  * Resumes sending media.
@@ -22487,7 +22487,7 @@ class dD extends Ml {
22487
22487
  this.logger.error("Producer::resume() | Producer closed", a(this, Ot, ns));
22488
22488
  return;
22489
22489
  }
22490
- f(this, Lr, !1), a(this, Qe) && a(this, ia) && (a(this, Qe).enabled = !0), a(this, Ci) && a(this, us).replaceTrack(this.localId, a(this, Qe)), this.emit("resume");
22490
+ f(this, Lr, !1), a(this, Qe) && a(this, ra) && (a(this, Qe).enabled = !0), a(this, Ci) && a(this, us).replaceTrack(this.localId, a(this, Qe)), this.emit("resume");
22491
22491
  }
22492
22492
  /**
22493
22493
  * Replaces the current track with a new one or null.
@@ -22497,7 +22497,7 @@ class dD extends Ml {
22497
22497
  track: e
22498
22498
  }) {
22499
22499
  if (this.logger.debug(`Producer::replaceTrack() trackId: ${e == null ? void 0 : e.id}`, a(this, Ot, ns)), a(this, Yt)) {
22500
- if (e && a(this, ra))
22500
+ if (e && a(this, sa))
22501
22501
  try {
22502
22502
  e.stop();
22503
22503
  } catch (i) {
@@ -22526,7 +22526,7 @@ class dD extends Ml {
22526
22526
  throw new vo("not a video Producer");
22527
22527
  if (typeof e != "number")
22528
22528
  throw new TypeError("invalid spatialLayer");
22529
- yield a(this, us).setMaxSpatialLayer(this.localId, e), f(this, na, e);
22529
+ yield a(this, us).setMaxSpatialLayer(this.localId, e), f(this, ia, e);
22530
22530
  });
22531
22531
  }
22532
22532
  /**
@@ -22551,7 +22551,7 @@ class dD extends Ml {
22551
22551
  var e;
22552
22552
  if (a(this, Qe))
22553
22553
  try {
22554
- a(this, Qe).removeEventListener("ended", this._onTrackEnded), a(this, ra) && a(this, Qe).stop();
22554
+ a(this, Qe).removeEventListener("ended", this._onTrackEnded), a(this, sa) && a(this, Qe).stop();
22555
22555
  } catch (r) {
22556
22556
  this.logger.error(`Producer::_destroyTrack trackId: ${(e = this.track) == null ? void 0 : e.id}`, G(O({}, a(this, Ot, ns)), {
22557
22557
  error: r
@@ -22559,7 +22559,7 @@ class dD extends Ml {
22559
22559
  }
22560
22560
  }
22561
22561
  }
22562
- us = new WeakMap(), ra = new WeakMap(), ia = new WeakMap(), Ci = new WeakMap(), Yt = new WeakMap(), Qe = new WeakMap(), Lr = new WeakMap(), na = new WeakMap(), Vd = new WeakMap(), Ot = new WeakSet(), ns = function() {
22562
+ us = new WeakMap(), sa = new WeakMap(), ra = new WeakMap(), Ci = new WeakMap(), Yt = new WeakMap(), Qe = new WeakMap(), Lr = new WeakMap(), ia = new WeakMap(), Vd = new WeakMap(), Ot = new WeakSet(), ns = function() {
22563
22563
  return {
22564
22564
  producer: {
22565
22565
  id: this.id,
@@ -22587,7 +22587,7 @@ function uD(s) {
22587
22587
  return lD(s) && (e = (t = s.payload._bolt) == null ? void 0 : t.id) != null ? e : "";
22588
22588
  }
22589
22589
  var Vr, xd, Ri;
22590
- const pn = class extends nt.EventEmitter {
22590
+ const hn = class extends nt.EventEmitter {
22591
22591
  constructor(e, r, i, n) {
22592
22592
  super();
22593
22593
  p(this, "channel");
@@ -22598,14 +22598,14 @@ const pn = class extends nt.EventEmitter {
22598
22598
  m(this, Ri, void 0);
22599
22599
  p(this, "respond", (e, r, i = !1) => {
22600
22600
  let n;
22601
- i ? n = pn.createErrorResponse(e, r) : n = pn.createResponse(e, r), this.channel.send(JSON.stringify(n));
22601
+ i ? n = hn.createErrorResponse(e, r) : n = hn.createResponse(e, r), this.channel.send(JSON.stringify(n));
22602
22602
  });
22603
22603
  p(this, "notify", (e) => {
22604
- const r = pn.createNotification(e);
22604
+ const r = hn.createNotification(e);
22605
22605
  this.channel.send(JSON.stringify(r));
22606
22606
  });
22607
22607
  p(this, "request", (e) => u(this, null, function* () {
22608
- const r = pn.createRequest(e), i = new Promise((n, o) => {
22608
+ const r = hn.createRequest(e), i = new Promise((n, o) => {
22609
22609
  const { id: d } = r.payload._bolt, l = {
22610
22610
  id: d,
22611
22611
  method: r.type,
@@ -22631,7 +22631,7 @@ const pn = class extends nt.EventEmitter {
22631
22631
  const h = l * n, g = (l + 1) * n;
22632
22632
  c.push(r.slice(h, g));
22633
22633
  }
22634
- const d = Ki();
22634
+ const d = Ta();
22635
22635
  for (let l = 0; l < o; l += 1) {
22636
22636
  const h = c[l], S = JSON.stringify({
22637
22637
  id: d,
@@ -22673,7 +22673,7 @@ const pn = class extends nt.EventEmitter {
22673
22673
  this.label = i, this.transportId = n, f(this, xd, e), f(this, Ri, e.getValue("logger")), this.channel = r, this.queue = /* @__PURE__ */ new Map();
22674
22674
  }
22675
22675
  };
22676
- let ti = pn;
22676
+ let ti = hn;
22677
22677
  Vr = new WeakMap(), xd = new WeakMap(), Ri = new WeakMap(), p(ti, "createRequest", (e) => {
22678
22678
  var r;
22679
22679
  if ((r = e.payload) != null && r._bolt)
@@ -22729,7 +22729,7 @@ Vr = new WeakMap(), xd = new WeakMap(), Ri = new WeakMap(), p(ti, "createRequest
22729
22729
  }));
22730
22730
  const md = "transport closed";
22731
22731
  var ki;
22732
- const gn = class extends Ml {
22732
+ const pn = class extends Ml {
22733
22733
  constructor(e, {
22734
22734
  id: r,
22735
22735
  direction: i,
@@ -23071,19 +23071,19 @@ const gn = class extends Ml {
23071
23071
  closeConsumers(e, r) {
23072
23072
  return u(this, null, function* () {
23073
23073
  try {
23074
- const i = e.map((l) => l.transceiver.mid), n = gn.parseCodecAndFmtpMappings(
23074
+ const i = e.map((l) => l.transceiver.mid), n = pn.parseCodecAndFmtpMappings(
23075
23075
  this.handler.pc.remoteDescription,
23076
23076
  i
23077
- ), o = gn.parseHeaderExtensionMappings(
23077
+ ), o = pn.parseHeaderExtensionMappings(
23078
23078
  this.handler.pc.remoteDescription
23079
23079
  );
23080
23080
  this.logger.info("Stopping transceivers", { consumerIds: e.map(({ id: l }) => l) }), e.forEach((l) => l.close(void 0, !0));
23081
23081
  let c = yield this.handler.pc.createOffer();
23082
- this.logger.info("[SDP] Created offer for closing consumers", { sdp: c.sdp }), c = gn.setCodecAndFmtpMappings(
23082
+ this.logger.info("[SDP] Created offer for closing consumers", { sdp: c.sdp }), c = pn.setCodecAndFmtpMappings(
23083
23083
  c,
23084
23084
  i,
23085
23085
  n
23086
- ), c = gn.setHeaderExtensionMappings(
23086
+ ), c = pn.setHeaderExtensionMappings(
23087
23087
  c,
23088
23088
  o
23089
23089
  ), this.logger.info("[SDP] Updated codec and fmtp mappings in close consumer offer", { sdp: c.sdp }), yield this.setLocalDescription(c), this.logger.info("Successfully set local description in close consumers");
@@ -23229,7 +23229,7 @@ const gn = class extends Ml {
23229
23229
  });
23230
23230
  }
23231
23231
  };
23232
- let Ou = gn;
23232
+ let Ou = pn;
23233
23233
  ki = new WeakMap();
23234
23234
  function hD(s) {
23235
23235
  if (typeof navigator == "object" && navigator.product === "ReactNative") {
@@ -23322,7 +23322,7 @@ class pD {
23322
23322
  * @throws {TypeError} if wrong arguments.
23323
23323
  */
23324
23324
  createTransport(t) {
23325
- const e = Ki();
23325
+ const e = Ta();
23326
23326
  return new Ou(a(this, Ks), G(O({
23327
23327
  id: e
23328
23328
  }, t), {
@@ -23332,11 +23332,11 @@ class pD {
23332
23332
  }
23333
23333
  Ks = new WeakMap(), Ii = new WeakMap();
23334
23334
  const gD = 2e3;
23335
- var aa, st, rt, Go, Wo, Ai, oa, Jo, ca, Mi, ks, da, ed, Ko, Nu, Ud, $f, zo, Lu, $d, Bf, Bd, Hf, Hd, Ff, Fd, qf, qd, jf, Yo, Vu, Qo, xu;
23335
+ var na, st, rt, Go, Wo, Ai, aa, Jo, oa, Mi, ks, ca, ed, Ko, Nu, Ud, $f, zo, Lu, $d, Bf, Bd, Hf, Hd, Ff, Fd, qf, qd, jf, Yo, Vu, Qo, xu;
23336
23336
  class mD extends nt.EventEmitter {
23337
23337
  constructor(e, r) {
23338
23338
  super();
23339
- m(this, da);
23339
+ m(this, ca);
23340
23340
  m(this, Ko);
23341
23341
  m(this, Ud);
23342
23342
  m(this, zo);
@@ -23348,15 +23348,15 @@ class mD extends nt.EventEmitter {
23348
23348
  m(this, Yo);
23349
23349
  m(this, Qo);
23350
23350
  p(this, "context");
23351
- m(this, aa, void 0);
23351
+ m(this, na, void 0);
23352
23352
  m(this, st, void 0);
23353
23353
  m(this, rt, void 0);
23354
23354
  m(this, Go, void 0);
23355
23355
  m(this, Wo, void 0);
23356
23356
  m(this, Ai, void 0);
23357
- m(this, oa, void 0);
23357
+ m(this, aa, void 0);
23358
23358
  m(this, Jo, void 0);
23359
- m(this, ca, {
23359
+ m(this, oa, {
23360
23360
  transportFailureCount: {
23361
23361
  send: 0,
23362
23362
  recv: 0
@@ -23365,9 +23365,9 @@ class mD extends nt.EventEmitter {
23365
23365
  });
23366
23366
  m(this, Mi, void 0);
23367
23367
  m(this, ks, "all");
23368
- this.context = e, f(this, Ai, r), f(this, aa, new pD(e)), f(this, oa, new aD(r)), f(this, Jo, Ss), a(this, da, ed).mediaState = {
23369
- send: { state: vn.NEW },
23370
- recv: { state: vn.NEW }
23368
+ this.context = e, f(this, Ai, r), f(this, na, new pD(e)), f(this, aa, new aD(r)), f(this, Jo, Ss), a(this, ca, ed).mediaState = {
23369
+ send: { state: Sn.NEW },
23370
+ recv: { state: Sn.NEW }
23371
23371
  }, ba(this.context, "forceRelay") && f(this, ks, "relay"), this.logger.info(`ICE Transport Policy initially set to ${a(this, ks)}`), x(this, Ko, Nu).call(this);
23372
23372
  }
23373
23373
  /**
@@ -23388,7 +23388,7 @@ class mD extends nt.EventEmitter {
23388
23388
  return a(this, Ai);
23389
23389
  }
23390
23390
  get socketHandler() {
23391
- return a(this, oa);
23391
+ return a(this, aa);
23392
23392
  }
23393
23393
  get sendTransport() {
23394
23394
  return a(this, st);
@@ -23445,7 +23445,7 @@ class mD extends nt.EventEmitter {
23445
23445
  throw new Error("Method not implemented.");
23446
23446
  }
23447
23447
  }
23448
- aa = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(), Wo = new WeakMap(), Ai = new WeakMap(), oa = new WeakMap(), Jo = new WeakMap(), ca = new WeakMap(), Mi = new WeakMap(), ks = new WeakMap(), da = new WeakSet(), ed = function() {
23448
+ na = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(), Wo = new WeakMap(), Ai = new WeakMap(), aa = new WeakMap(), Jo = new WeakMap(), oa = new WeakMap(), Mi = new WeakMap(), ks = new WeakMap(), ca = new WeakSet(), ed = function() {
23449
23449
  return this.context.getValue("connectionHandler");
23450
23450
  }, Ko = new WeakSet(), Nu = function() {
23451
23451
  f(this, Mi, {
@@ -23527,7 +23527,7 @@ aa = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(),
23527
23527
  transport: { id: r, serverId: e.serverId, type: i }
23528
23528
  });
23529
23529
  } catch (n) {
23530
- throw a(this, ca).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new br(n.message) : n;
23530
+ throw a(this, oa).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new br(n.message) : n;
23531
23531
  }
23532
23532
  });
23533
23533
  }, Bd = new WeakSet(), Hf = function(e) {
@@ -23542,7 +23542,7 @@ aa = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(),
23542
23542
  });
23543
23543
  return;
23544
23544
  }
23545
- f(this, st, a(this, aa).createTransport(G(O({}, e), {
23545
+ f(this, st, a(this, na).createTransport(G(O({}, e), {
23546
23546
  direction: "send"
23547
23547
  }))), this.context.getValue("callstats").configureSendTransport(a(this, st));
23548
23548
  }, Hd = new WeakSet(), Ff = function(e) {
@@ -23557,7 +23557,7 @@ aa = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(),
23557
23557
  });
23558
23558
  return;
23559
23559
  }
23560
- f(this, rt, a(this, aa).createTransport(G(O({}, e), {
23560
+ f(this, rt, a(this, na).createTransport(G(O({}, e), {
23561
23561
  direction: "recv"
23562
23562
  }))), this.context.getValue("callstats").configureRecvTransport(a(this, rt));
23563
23563
  }, Fd = new WeakSet(), qf = function(e) {
@@ -23580,7 +23580,7 @@ aa = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(),
23580
23580
  };
23581
23581
  switch (n) {
23582
23582
  case "connected":
23583
- o(), a(this, ca).lastConnectionTime = performance.now();
23583
+ o(), a(this, oa).lastConnectionTime = performance.now();
23584
23584
  break;
23585
23585
  case "disconnected":
23586
23586
  a(this, Mi)[r] = setTimeout(() => u(this, null, function* () {
@@ -23642,7 +23642,7 @@ aa = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(),
23642
23642
  },
23643
23643
  producers: []
23644
23644
  };
23645
- return a(this, oa).connectTransport(c);
23645
+ return a(this, aa).connectTransport(c);
23646
23646
  } catch (n) {
23647
23647
  throw this.logger.error(
23648
23648
  `Error in ${e} transport connection:`,
@@ -23652,7 +23652,7 @@ aa = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(),
23652
23652
  });
23653
23653
  }, Yo = new WeakSet(), Vu = function(e) {
23654
23654
  return u(this, null, function* () {
23655
- switch (this.logger.info("Called reconnect transport", { transport: { type: e } }), this.stopTransports({ [e]: !0 }), a(this, Ai).isConnected && a(this, ca).transportFailureCount[e] > 2 && (this.logger.warn(`Multiple disconnections in ${e} transport, forcing relay`), f(this, ks, "relay")), yield this.setupTransports({ [e]: !0 }), e) {
23655
+ switch (this.logger.info("Called reconnect transport", { transport: { type: e } }), this.stopTransports({ [e]: !0 }), a(this, Ai).isConnected && a(this, oa).transportFailureCount[e] > 2 && (this.logger.warn(`Multiple disconnections in ${e} transport, forcing relay`), f(this, ks, "relay")), yield this.setupTransports({ [e]: !0 }), e) {
23656
23656
  case "send": {
23657
23657
  this.logger.info("Transport reconnected", { transport: a(this, st) }), this.context.getValue("peerSessionStore").emit(C.RESET_PRODUCER_STATE);
23658
23658
  break;
@@ -23665,19 +23665,19 @@ aa = new WeakMap(), st = new WeakMap(), rt = new WeakMap(), Go = new WeakMap(),
23665
23665
  this.logger.warn("Unknown transport direction", { transport: { type: e } });
23666
23666
  }
23667
23667
  x(this, Qo, xu).call(this, {
23668
- state: vn.CONNECTED,
23668
+ state: Sn.CONNECTED,
23669
23669
  direction: e
23670
23670
  });
23671
23671
  });
23672
23672
  }, Qo = new WeakSet(), xu = function(e) {
23673
23673
  const { state: r, direction: i } = e;
23674
- a(this, da, ed).mediaState[i] = {
23674
+ a(this, ca, ed).mediaState[i] = {
23675
23675
  state: r
23676
23676
  }, this.context.getValue("peerSessionStore").emit(
23677
23677
  C.TRANSPORT_STATE_UPDATE,
23678
23678
  O({
23679
23679
  transport: i
23680
- }, a(this, da, ed).mediaState[i])
23680
+ }, a(this, ca, ed).mediaState[i])
23681
23681
  );
23682
23682
  };
23683
23683
  var jd, Qt;
@@ -23853,7 +23853,7 @@ class Ch {
23853
23853
  });
23854
23854
  }
23855
23855
  }
23856
- var Di, xr, la, Xo, Is, Gd, zs, ua, Zo, Uu, Wd, Gf, Jd, Wf, Kd, Jf, zd, Kf;
23856
+ var Di, xr, da, Xo, Is, Gd, zs, la, Zo, Uu, Wd, Gf, Jd, Wf, Kd, Jf, zd, Kf;
23857
23857
  class SD extends mD {
23858
23858
  constructor(e, r) {
23859
23859
  super(e, r);
@@ -23864,7 +23864,7 @@ class SD extends mD {
23864
23864
  m(this, zd);
23865
23865
  m(this, Di, void 0);
23866
23866
  m(this, xr, void 0);
23867
- m(this, la, void 0);
23867
+ m(this, da, void 0);
23868
23868
  m(this, Xo, void 0);
23869
23869
  m(this, Is, void 0);
23870
23870
  m(this, Gd, {
@@ -23873,11 +23873,11 @@ class SD extends mD {
23873
23873
  producerNotReadyFailureCount: 0
23874
23874
  });
23875
23875
  m(this, zs, []);
23876
- m(this, ua, void 0);
23876
+ m(this, la, void 0);
23877
23877
  this.context = e, this.sendTransportConnectedCallback = () => u(this, null, function* () {
23878
23878
  f(this, Xo, new Ch(this.socketHandler));
23879
23879
  }), this.recvTransportConnectedCallback = (i) => u(this, null, function* () {
23880
- a(this, la).clear(), f(this, Is, new fD(
23880
+ a(this, da).clear(), f(this, Is, new fD(
23881
23881
  this.context,
23882
23882
  this.events,
23883
23883
  i,
@@ -23896,7 +23896,7 @@ class SD extends mD {
23896
23896
  return a(this, xr);
23897
23897
  }
23898
23898
  get producerIdToConsumerIdMap() {
23899
- return a(this, la);
23899
+ return a(this, da);
23900
23900
  }
23901
23901
  /**
23902
23902
  * @access private
@@ -23906,7 +23906,7 @@ class SD extends mD {
23906
23906
  return this.context.getValue("logger");
23907
23907
  }
23908
23908
  reset() {
23909
- f(this, Di, /* @__PURE__ */ new Map()), f(this, xr, /* @__PURE__ */ new Map()), f(this, la, /* @__PURE__ */ new Map());
23909
+ f(this, Di, /* @__PURE__ */ new Map()), f(this, xr, /* @__PURE__ */ new Map()), f(this, da, /* @__PURE__ */ new Map());
23910
23910
  }
23911
23911
  createProducer(e, r) {
23912
23912
  return u(this, null, function* () {
@@ -23948,7 +23948,7 @@ class SD extends mD {
23948
23948
  }
23949
23949
  createConsumers(e) {
23950
23950
  return u(this, null, function* () {
23951
- a(this, ua) || clearTimeout(a(this, ua)), f(this, zs, a(this, zs).concat(e)), yield x(this, Zo, Uu).call(this);
23951
+ a(this, la) || clearTimeout(a(this, la)), f(this, zs, a(this, zs).concat(e)), yield x(this, Zo, Uu).call(this);
23952
23952
  });
23953
23953
  }
23954
23954
  closeConsumer(e) {
@@ -23974,7 +23974,7 @@ class SD extends mD {
23974
23974
  });
23975
23975
  }
23976
23976
  }
23977
- Di = new WeakMap(), xr = new WeakMap(), la = new WeakMap(), Xo = new WeakMap(), Is = new WeakMap(), Gd = new WeakMap(), zs = new WeakMap(), ua = new WeakMap(), Zo = new WeakSet(), Uu = function() {
23977
+ Di = new WeakMap(), xr = new WeakMap(), da = new WeakMap(), Xo = new WeakMap(), Is = new WeakMap(), Gd = new WeakMap(), zs = new WeakMap(), la = new WeakMap(), Zo = new WeakSet(), Uu = function() {
23978
23978
  return u(this, null, function* () {
23979
23979
  if (!this.recvTransport || this.recvTransport.closed)
23980
23980
  throw new Error("Recv transport is closed");
@@ -23991,7 +23991,7 @@ Di = new WeakMap(), xr = new WeakMap(), la = new WeakMap(), Xo = new WeakMap(),
23991
23991
  if (o.forEach(x(this, zd, Kf).bind(this)), c != null && c.length) {
23992
23992
  this.logger.error("Failed to create consumers for producers", { producers: c });
23993
23993
  const d = c.filter(({ errorCode: l, producerId: h }) => l === "not_found_track_error" ? (this.logger.error(`Track not found for producer: ${h}. This will not be retried.`), !1) : l === "backend_error" ? (this.logger.error("Unrecoverable error: backend error"), !1) : !0);
23994
- f(this, zs, a(this, zs).concat(d)), f(this, ua, setTimeout(
23994
+ f(this, zs, a(this, zs).concat(d)), f(this, la, setTimeout(
23995
23995
  x(this, Zo, Uu).bind(this),
23996
23996
  e
23997
23997
  ));
@@ -24068,7 +24068,7 @@ Di = new WeakMap(), xr = new WeakMap(), la = new WeakMap(), Xo = new WeakMap(),
24068
24068
  peerId: e.peerId
24069
24069
  });
24070
24070
  };
24071
- var ec, tc, sc, ha, pa, ga, rc, ic, ma, Tt, hs, ps, Oi, Ni, Ys, nc, Yd, zf, Qd, Yf, Xd, Qf, Zd, Xf;
24071
+ var ec, tc, sc, ua, ha, pa, rc, ic, ga, Tt, hs, ps, Oi, Ni, Ys, nc, Yd, zf, Qd, Yf, Xd, Qf, Zd, Xf;
24072
24072
  const el = class {
24073
24073
  constructor({
24074
24074
  initialEnergyThreshold: t = 0.015,
@@ -24096,12 +24096,12 @@ const el = class {
24096
24096
  // in frames
24097
24097
  m(this, sc, void 0);
24098
24098
  // Adaptive energy threshold parameters
24099
+ m(this, ua, void 0);
24099
24100
  m(this, ha, void 0);
24100
24101
  m(this, pa, void 0);
24101
- m(this, ga, void 0);
24102
24102
  m(this, rc, void 0);
24103
24103
  m(this, ic, void 0);
24104
- m(this, ma, void 0);
24104
+ m(this, ga, void 0);
24105
24105
  // State variables
24106
24106
  m(this, Tt, void 0);
24107
24107
  m(this, hs, void 0);
@@ -24110,7 +24110,7 @@ const el = class {
24110
24110
  m(this, Ni, 0);
24111
24111
  m(this, Ys, []);
24112
24112
  m(this, nc, void 0);
24113
- f(this, ha, t), f(this, Tt, t), f(this, ec, e), f(this, tc, r), f(this, sc, i), f(this, pa, n), f(this, ga, o), f(this, rc, c), f(this, ic, d), f(this, ma, l), f(this, nc, h), f(this, hs, t / 2);
24113
+ f(this, ua, t), f(this, Tt, t), f(this, ec, e), f(this, tc, r), f(this, sc, i), f(this, ha, n), f(this, pa, o), f(this, rc, c), f(this, ic, d), f(this, ga, l), f(this, nc, h), f(this, hs, t / 2);
24114
24114
  }
24115
24115
  get voiceDetected() {
24116
24116
  return a(this, ps);
@@ -24123,13 +24123,13 @@ const el = class {
24123
24123
  processAudioChunk(t) {
24124
24124
  var o, c;
24125
24125
  const e = x(o = el, Xd, Qf).call(o, t), r = x(c = el, Zd, Xf).call(c, t);
24126
- return x(this, Yd, zf).call(this, e), e / a(this, hs) > a(this, ma) && e > a(this, Tt) && r > a(this, ec) ? (f(this, Oi, a(this, Oi) + 1), f(this, Ni, a(this, sc)), a(this, Oi) >= a(this, tc) && f(this, ps, !0)) : (f(this, Oi, 0), a(this, Ni) > 0 ? f(this, Ni, a(this, Ni) - 1) : a(this, ps) && f(this, ps, !1), a(this, ps) || x(this, Qd, Yf).call(this, e)), { energy: e, isVoice: a(this, ps) };
24126
+ return x(this, Yd, zf).call(this, e), e / a(this, hs) > a(this, ga) && e > a(this, Tt) && r > a(this, ec) ? (f(this, Oi, a(this, Oi) + 1), f(this, Ni, a(this, sc)), a(this, Oi) >= a(this, tc) && f(this, ps, !0)) : (f(this, Oi, 0), a(this, Ni) > 0 ? f(this, Ni, a(this, Ni) - 1) : a(this, ps) && f(this, ps, !1), a(this, ps) || x(this, Qd, Yf).call(this, e)), { energy: e, isVoice: a(this, ps) };
24127
24127
  }
24128
24128
  /**
24129
24129
  * Reset the detector state
24130
24130
  */
24131
24131
  reset() {
24132
- f(this, ps, !1), f(this, Oi, 0), f(this, Ni, 0), f(this, Tt, a(this, ha)), f(this, hs, a(this, ha) / 2), f(this, Ys, []);
24132
+ f(this, ps, !1), f(this, Oi, 0), f(this, Ni, 0), f(this, Tt, a(this, ua)), f(this, hs, a(this, ua) / 2), f(this, Ys, []);
24133
24133
  }
24134
24134
  /**
24135
24135
  * Get current adaptive threshold values for debugging/visualization
@@ -24138,13 +24138,13 @@ const el = class {
24138
24138
  return {
24139
24139
  currentEnergyThreshold: a(this, Tt),
24140
24140
  backgroundNoiseEnergy: a(this, hs),
24141
- energyRatioThreshold: a(this, ma)
24141
+ energyRatioThreshold: a(this, ga)
24142
24142
  };
24143
24143
  }
24144
24144
  };
24145
24145
  let eo = el;
24146
- ec = new WeakMap(), tc = new WeakMap(), sc = new WeakMap(), ha = new WeakMap(), pa = new WeakMap(), ga = new WeakMap(), rc = new WeakMap(), ic = new WeakMap(), ma = new WeakMap(), Tt = new WeakMap(), hs = new WeakMap(), ps = new WeakMap(), Oi = new WeakMap(), Ni = new WeakMap(), Ys = new WeakMap(), nc = new WeakMap(), Yd = new WeakSet(), zf = function(t) {
24147
- a(this, ps) ? f(this, Tt, a(this, ga) * a(this, Tt) + (1 - a(this, ga)) * t) : f(this, Tt, a(this, pa) * a(this, Tt) + (1 - a(this, pa)) * a(this, hs)), f(this, Tt, Math.max(
24146
+ ec = new WeakMap(), tc = new WeakMap(), sc = new WeakMap(), ua = new WeakMap(), ha = new WeakMap(), pa = new WeakMap(), rc = new WeakMap(), ic = new WeakMap(), ga = new WeakMap(), Tt = new WeakMap(), hs = new WeakMap(), ps = new WeakMap(), Oi = new WeakMap(), Ni = new WeakMap(), Ys = new WeakMap(), nc = new WeakMap(), Yd = new WeakSet(), zf = function(t) {
24147
+ a(this, ps) ? f(this, Tt, a(this, pa) * a(this, Tt) + (1 - a(this, pa)) * t) : f(this, Tt, a(this, ha) * a(this, Tt) + (1 - a(this, ha)) * a(this, hs)), f(this, Tt, Math.max(
24148
24148
  a(this, rc),
24149
24149
  Math.min(a(this, ic), a(this, Tt))
24150
24150
  ));
@@ -24242,7 +24242,7 @@ class vD {
24242
24242
  }
24243
24243
  }
24244
24244
  const TD = 60, yD = 400;
24245
- var Qs, Xs, Zs, cc, fa, Sa, Ur, Li, va, Vi, er, As, tl, Zf, dc, $u, sl, eS, rl, tS;
24245
+ var Qs, Xs, Zs, cc, ma, fa, Ur, Li, Sa, Vi, er, As, tl, Zf, dc, $u, sl, eS, rl, tS;
24246
24246
  const ho = class {
24247
24247
  constructor(t, e) {
24248
24248
  m(this, tl);
@@ -24251,15 +24251,15 @@ const ho = class {
24251
24251
  m(this, Xs, void 0);
24252
24252
  m(this, Zs, void 0);
24253
24253
  m(this, cc, void 0);
24254
+ m(this, ma, void 0);
24254
24255
  m(this, fa, void 0);
24255
- m(this, Sa, void 0);
24256
24256
  m(this, Ur, void 0);
24257
24257
  m(this, Li, void 0);
24258
- m(this, va, void 0);
24258
+ m(this, Sa, void 0);
24259
24259
  m(this, Vi, void 0);
24260
24260
  m(this, er, void 0);
24261
24261
  m(this, As, void 0);
24262
- this.reportRequest = e, f(this, Vi, t), f(this, Sa, new eo());
24262
+ this.reportRequest = e, f(this, Vi, t), f(this, fa, new eo());
24263
24263
  const { isReactNative: r } = navigator;
24264
24264
  f(this, er, r ? new tg(a(this, Vi)) : new sg(a(this, Vi))), f(this, As, r ? vD : jc);
24265
24265
  }
@@ -24283,7 +24283,7 @@ const ho = class {
24283
24283
  return;
24284
24284
  const { energy: t } = x(this, tl, Zf).call(this), e = x(i = ho, dc, $u).call(i, t);
24285
24285
  let r = 0.9;
24286
- a(this, va) !== e && a(this, va) ? r = 0.9 : e ? r = 0.3 : r = 0.5, f(this, fa, (a(this, fa) || 0) * (1 - r) + t * r);
24286
+ a(this, Sa) !== e && a(this, Sa) ? r = 0.9 : e ? r = 0.3 : r = 0.5, f(this, ma, (a(this, ma) || 0) * (1 - r) + t * r);
24287
24287
  }), TD)), a(this, Xs) && a(this, As).clearInterval(a(this, Xs)), f(this, Xs, a(this, As).setInterval(
24288
24288
  x(this, sl, eS).bind(this),
24289
24289
  yD
@@ -24294,17 +24294,17 @@ const ho = class {
24294
24294
  this.logger.debug(`AudioActivityReporter: Stopping audio activity reporter: ${a(this, Zs)}`), a(this, Qs) && (a(this, As).clearInterval(a(this, Qs)), f(this, Qs, void 0)), a(this, Xs) && (a(this, As).clearInterval(a(this, Xs)), f(this, Xs, void 0));
24295
24295
  } catch (t) {
24296
24296
  }
24297
- a(this, Sa).reset(), a(this, er) instanceof tg && a(this, er).stop();
24297
+ a(this, fa).reset(), a(this, er) instanceof tg && a(this, er).stop();
24298
24298
  }
24299
24299
  };
24300
24300
  let to = ho;
24301
- Qs = new WeakMap(), Xs = new WeakMap(), Zs = new WeakMap(), cc = new WeakMap(), fa = new WeakMap(), Sa = new WeakMap(), Ur = new WeakMap(), Li = new WeakMap(), va = new WeakMap(), Vi = new WeakMap(), er = new WeakMap(), As = new WeakMap(), tl = new WeakSet(), Zf = function() {
24301
+ Qs = new WeakMap(), Xs = new WeakMap(), Zs = new WeakMap(), cc = new WeakMap(), ma = new WeakMap(), fa = new WeakMap(), Ur = new WeakMap(), Li = new WeakMap(), Sa = new WeakMap(), Vi = new WeakMap(), er = new WeakMap(), As = new WeakMap(), tl = new WeakSet(), Zf = function() {
24302
24302
  var o;
24303
- const { samples: t } = a(this, er), { energy: e, isVoice: r } = a(this, Sa).processAudioChunk(t), i = x(o = ho, rl, tS).call(o, e);
24303
+ const { samples: t } = a(this, er), { energy: e, isVoice: r } = a(this, fa).processAudioChunk(t), i = x(o = ho, rl, tS).call(o, e);
24304
24304
  return i === -1 / 0 || e < 1e-6 ? { energy: 0, isVoice: !1 } : ((!a(this, Ur) || i < a(this, Ur)) && f(this, Ur, i), (!a(this, Li) || i > a(this, Li)) && f(this, Li, i), { energy: (i - a(this, Ur)) / (a(this, Li) - a(this, Ur)) * 10 || 0, isVoice: r });
24305
24305
  }, dc = new WeakSet(), $u = function(t) {
24306
24306
  return t < 5;
24307
- }, sl = new WeakSet(), eS = function(t = a(this, fa)) {
24307
+ }, sl = new WeakSet(), eS = function(t = a(this, ma)) {
24308
24308
  var r;
24309
24309
  if (!a(this, Zs) || !t)
24310
24310
  return;
@@ -24313,7 +24313,7 @@ Qs = new WeakMap(), Xs = new WeakMap(), Zs = new WeakMap(), cc = new WeakMap(),
24313
24313
  energy: Math.round(t),
24314
24314
  silent: x(r = ho, dc, $u).call(r, t)
24315
24315
  };
24316
- f(this, va, e.silent), this.reportRequest(e);
24316
+ f(this, Sa, e.silent), this.reportRequest(e);
24317
24317
  }, rl = new WeakSet(), tS = function(t) {
24318
24318
  const e = Math.log10(t);
24319
24319
  return Math.round(e);
@@ -24322,7 +24322,7 @@ var ED = Object.defineProperty, PD = Object.getOwnPropertyDescriptor, ce = (s, t
24322
24322
  for (var i = r > 1 ? void 0 : r ? PD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
24323
24323
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
24324
24324
  return r && i && ED(t, e, i), i;
24325
- }, lc, uc, it, J, il, ht, xi, Ui, $i, hc, Xt, tr, pt, yt, $r, cn, nl, sS, al, rS, ol, iS, pc, Bu, cl, nS, dl, aS, gt, Rt, Bi, so, ll, oS, ul, cS, hl, dS;
24325
+ }, lc, uc, it, J, il, ht, xi, Ui, $i, hc, Xt, tr, pt, yt, $r, on, nl, sS, al, rS, ol, iS, pc, Bu, cl, nS, dl, aS, gt, Rt, Bi, so, ll, oS, ul, cS, hl, dS;
24326
24326
  class ne {
24327
24327
  constructor(t, e) {
24328
24328
  m(this, $r);
@@ -24385,7 +24385,7 @@ class ne {
24385
24385
  a(this, J).socketHandler.audioActivity.bind(a(this, J).socketHandler)
24386
24386
  )), this.e2ee = (n = (i = t.getValue("modules").e2ee) == null ? void 0 : i.enabled) != null ? n : !1, this.handleSocketEvents(), this.handleCallstatsEvents(), f(this, hc, lh(
24387
24387
  () => u(this, null, function* () {
24388
- if (!a(this, $r, cn).mediaJoinAttempted)
24388
+ if (!a(this, $r, on).mediaJoinAttempted)
24389
24389
  return;
24390
24390
  const { roomJoined: o } = yield this.joinRoom(
24391
24391
  a(this, uc),
@@ -24417,17 +24417,17 @@ class ne {
24417
24417
  return this.context.getValue("logger");
24418
24418
  }
24419
24419
  get mediaJoined() {
24420
- return a(this, $r, cn).mediaJoined;
24420
+ return a(this, $r, on).mediaJoined;
24421
24421
  }
24422
24422
  set mediaJoined(t) {
24423
- a(this, $r, cn).mediaJoined = t;
24423
+ a(this, $r, on).mediaJoined = t;
24424
24424
  }
24425
24425
  reset() {
24426
24426
  a(this, J).closeAllProducers(), a(this, J).closeAllConsumers(), a(this, pt).clear(), a(this, tr).clear(), f(this, Xt, null), a(this, $i).stop(), a(this, J).stopAllTransports(), a(this, J).reset(), f(this, $i, new Mu());
24427
24427
  }
24428
24428
  joinRoom(o, c) {
24429
24429
  return u(this, arguments, function* (t, e, r = !1, i = !1, n = {}) {
24430
- a(this, $r, cn).mediaJoinAttempted = !0, f(this, xi, !0), r && this.reset();
24430
+ a(this, $r, on).mediaJoinAttempted = !0, f(this, xi, !0), r && this.reset();
24431
24431
  try {
24432
24432
  return yield a(this, $i).push(
24433
24433
  () => x(this, nl, sS).call(this, t, e, i, n),
@@ -24462,7 +24462,7 @@ class ne {
24462
24462
  }
24463
24463
  leaveRoom() {
24464
24464
  return u(this, null, function* () {
24465
- a(this, J).stopAllTransports(), f(this, Ui, !1), a(this, $r, cn).mediaJoinAttempted = !1;
24465
+ a(this, J).stopAllTransports(), f(this, Ui, !1), a(this, $r, on).mediaJoinAttempted = !1;
24466
24466
  const t = {
24467
24467
  closeRoom: !1
24468
24468
  };
@@ -24967,7 +24967,7 @@ class ne {
24967
24967
  });
24968
24968
  }
24969
24969
  }
24970
- lc = new WeakMap(), uc = new WeakMap(), it = new WeakMap(), J = new WeakMap(), il = new WeakMap(), ht = new WeakMap(), xi = new WeakMap(), Ui = new WeakMap(), $i = new WeakMap(), hc = new WeakMap(), Xt = new WeakMap(), tr = new WeakMap(), pt = new WeakMap(), yt = new WeakMap(), $r = new WeakSet(), cn = function() {
24970
+ lc = new WeakMap(), uc = new WeakMap(), it = new WeakMap(), J = new WeakMap(), il = new WeakMap(), ht = new WeakMap(), xi = new WeakMap(), Ui = new WeakMap(), $i = new WeakMap(), hc = new WeakMap(), Xt = new WeakMap(), tr = new WeakMap(), pt = new WeakMap(), yt = new WeakMap(), $r = new WeakSet(), on = function() {
24971
24971
  return this.context.getValue("connectionHandler");
24972
24972
  }, nl = new WeakSet(), sS = function(t, e, r, i) {
24973
24973
  return u(this, null, function* () {
@@ -25195,7 +25195,7 @@ function uS(s) {
25195
25195
  }
25196
25196
  s.setValue("roomNodeClient", void 0);
25197
25197
  }
25198
- var bD = Object.defineProperty, _D = Object.getOwnPropertyDescriptor, sn = (s, t, e, r) => {
25198
+ var bD = Object.defineProperty, _D = Object.getOwnPropertyDescriptor, tn = (s, t, e, r) => {
25199
25199
  for (var i = r > 1 ? void 0 : r ? _D(t, e) : t, n = s.length - 1, o; n >= 0; n--)
25200
25200
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
25201
25201
  return r && i && bD(t, e, i), i;
@@ -25361,8 +25361,8 @@ const hS = (wg = class {
25361
25361
  }), a(this, te).getValue("peerSessionStore").on(C.SOCKET_SERVICE_DISCONNECTED, ({ joinAttempted: s }) => {
25362
25362
  if (this.self.roomState === "disconnected")
25363
25363
  return;
25364
- let { peerId: t } = this;
25365
- s && (t = Ki()), a(this, Hi).updateURL(t), a(this, te).getValue("telemetry").resetPeerId(t), mt().setHeader("tracing-id", t), Gr.remapContext(t, a(this, te)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
25364
+ const { peerId: t } = this;
25365
+ a(this, Hi).updateURL(t), a(this, te).getValue("telemetry").resetPeerId(t), mt().setHeader("tracing-id", t), Gr.remapContext(t, a(this, te)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
25366
25366
  }), a(this, te).getValue("peerSessionStore").on(C.SOCKET_SERVICE_FAILED, () => {
25367
25367
  this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
25368
25368
  }), a(this, gs).on(U.waitingRoomRequestAccepted, () => {
@@ -25502,25 +25502,25 @@ const hS = (wg = class {
25502
25502
  return a(this, te).getValue("roomNodeClient");
25503
25503
  }, wg);
25504
25504
  let Qr = hS;
25505
- sn([
25505
+ tn([
25506
25506
  P.trace("SelfController.resetSelf")
25507
25507
  ], Qr.prototype, "resetSelf", 1);
25508
- sn([
25508
+ tn([
25509
25509
  P.trace("SelfController.setupEvents")
25510
25510
  ], Qr.prototype, "setupEvents", 1);
25511
- sn([
25511
+ tn([
25512
25512
  P.trace("SelfController.joinRoom")
25513
25513
  ], Qr.prototype, "joinRoom", 1);
25514
- sn([
25514
+ tn([
25515
25515
  P.trace("SelfController.leaveRoom")
25516
25516
  ], Qr.prototype, "leaveRoom", 1);
25517
- sn([
25517
+ tn([
25518
25518
  P.trace("SelfController.joinMediaRoom")
25519
25519
  ], Qr.prototype, "joinMediaRoom", 1);
25520
- sn([
25520
+ tn([
25521
25521
  P.trace("SelfController.leaveMediaRoom")
25522
25522
  ], Qr.prototype, "leaveMediaRoom", 1);
25523
- sn([
25523
+ tn([
25524
25524
  P.trace("SelfController.init")
25525
25525
  ], Qr, "init", 1);
25526
25526
  var gc;
@@ -25586,26 +25586,26 @@ var RD = Object.defineProperty, kD = Object.getOwnPropertyDescriptor, Rh = (s, t
25586
25586
  for (var i = r > 1 ? void 0 : r ? kD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
25587
25587
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
25588
25588
  return r && i && RD(t, e, i), i;
25589
- }, sr, Ta;
25589
+ }, sr, va;
25590
25590
  class Dl {
25591
25591
  constructor(t, e) {
25592
25592
  m(this, sr, void 0);
25593
- m(this, Ta, void 0);
25594
- f(this, sr, e), f(this, Ta, t);
25593
+ m(this, va, void 0);
25594
+ f(this, sr, e), f(this, va, t);
25595
25595
  }
25596
25596
  /**
25597
25597
  * @access private
25598
25598
  * Not for external use
25599
25599
  */
25600
25600
  get logger() {
25601
- return a(this, Ta).getValue("logger");
25601
+ return a(this, va).getValue("logger");
25602
25602
  }
25603
25603
  /**
25604
25604
  * @access private
25605
25605
  * Not for external use
25606
25606
  */
25607
25607
  get telemetry() {
25608
- return a(this, Ta).getValue("telemetry");
25608
+ return a(this, va).getValue("telemetry");
25609
25609
  }
25610
25610
  getPolls() {
25611
25611
  return a(this, sr).sendMessagePromise(xs.getPolls);
@@ -25658,7 +25658,7 @@ class Dl {
25658
25658
  a(this, sr).removeListeners(t);
25659
25659
  }
25660
25660
  }
25661
- sr = new WeakMap(), Ta = new WeakMap();
25661
+ sr = new WeakMap(), va = new WeakMap();
25662
25662
  Rh([
25663
25663
  P.trace("PollSocketHandler.getPolls")
25664
25664
  ], Dl.prototype, "getPolls", 1);
@@ -25721,7 +25721,7 @@ class pS {
25721
25721
  IR.toBinary(e)
25722
25722
  );
25723
25723
  try {
25724
- const { peer: n } = nn.fromBinary((yield r).payload);
25724
+ const { peer: n } = rn.fromBinary((yield r).payload);
25725
25725
  a(this, Nt).getValue("connectionHandler").socketJoined = !0, a(this, Nt).getValue("peerSessionStore").emit(C.SOCKET_SERVICE_ROOM_JOINED, { peer: n });
25726
25726
  const o = this.getRoomState(), c = this.getRoomPeersNonPaginated(), [{ room: d }, { peers: l }] = yield Promise.all([o, c]);
25727
25727
  return a(this, Nt).getValue("peerSessionStore").emit(C.ROOM_STATE, d), a(this, Nt).getValue("peerSessionStore").emit(C.SOCKET_PEERS, l), { peer: n };
@@ -25808,7 +25808,7 @@ class pS {
25808
25808
  U.getPeerInfo,
25809
25809
  ef.toBinary({ peerId: t })
25810
25810
  );
25811
- e = nn.fromBinary(r.payload);
25811
+ e = rn.fromBinary(r.payload);
25812
25812
  } catch (r) {
25813
25813
  this.logger.error("getPeerInfo::binary_decode_error", { error: r });
25814
25814
  }
@@ -25987,7 +25987,7 @@ class pS {
25987
25987
  case U.leaveRoom:
25988
25988
  case U.kick:
25989
25989
  case U.kickAll: {
25990
- r = nn.fromBinary.bind(nn), i = nn.create();
25990
+ r = rn.fromBinary.bind(rn), i = rn.create();
25991
25991
  break;
25992
25992
  }
25993
25993
  case U.getWaitingRoomRequests: {
@@ -26180,7 +26180,7 @@ class DD {
26180
26180
  U.getPeerInfo,
26181
26181
  ef.toBinary({ peerId: t })
26182
26182
  );
26183
- return nn.fromBinary(e.payload);
26183
+ return rn.fromBinary(e.payload);
26184
26184
  });
26185
26185
  }
26186
26186
  }
@@ -26395,10 +26395,10 @@ var ND = Object.defineProperty, LD = (s, t, e) => t in s ? ND(s, t, { enumerable
26395
26395
  set exports(s) {
26396
26396
  fd = s;
26397
26397
  }
26398
- }, Tn = typeof Reflect == "object" ? Reflect : null, rg = Tn && typeof Tn.apply == "function" ? Tn.apply : function(s, t, e) {
26398
+ }, vn = typeof Reflect == "object" ? Reflect : null, rg = vn && typeof vn.apply == "function" ? vn.apply : function(s, t, e) {
26399
26399
  return Function.prototype.apply.call(s, t, e);
26400
26400
  }, td;
26401
- Tn && typeof Tn.ownKeys == "function" ? td = Tn.ownKeys : Object.getOwnPropertySymbols ? td = function(s) {
26401
+ vn && typeof vn.ownKeys == "function" ? td = vn.ownKeys : Object.getOwnPropertySymbols ? td = function(s) {
26402
26402
  return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s));
26403
26403
  } : td = function(s) {
26404
26404
  return Object.getOwnPropertyNames(s);
@@ -26721,13 +26721,13 @@ class JD {
26721
26721
  si = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap();
26722
26722
  var bS = /* @__PURE__ */ ((s) => (s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s))(bS || {});
26723
26723
  const KD = "2", zD = "3";
26724
- var ke, dn, Te, Ne, Er, ze, ir, qr, fs, ln, Vs, Hu, _S, ro, sd, Fu, wS, qu, ag, Sd, ju, Gu, CS, oo, rd, co, vd, Td, Wu, yn, lo, uo, yd;
26724
+ var ke, cn, Te, Ne, Er, ze, ir, qr, fs, dn, Vs, Hu, _S, ro, sd, Fu, wS, qu, ag, Sd, ju, Gu, CS, oo, rd, co, vd, Td, Wu, Tn, lo, uo, yd;
26725
26725
  class YD {
26726
26726
  constructor(t, e) {
26727
26727
  var S, v, E, w, b, I, D, $, V, H;
26728
- ge(this, Hu), ge(this, ro), ge(this, Fu), ge(this, qu), ge(this, Sd), ge(this, Gu), ge(this, oo), ge(this, co), ge(this, Td), ge(this, yn), ge(this, uo), ge(this, ke, void 0), ge(this, dn, void 0), ge(this, Te, void 0), ge(this, Ne, void 0), ge(this, Er, void 0), ge(this, ze, void 0), ge(this, ir, void 0), ge(this, qr, void 0), ge(this, fs, void 0), ge(this, ln, void 0), ge(this, Vs, void 0);
26728
+ ge(this, Hu), ge(this, ro), ge(this, Fu), ge(this, qu), ge(this, Sd), ge(this, Gu), ge(this, oo), ge(this, co), ge(this, Td), ge(this, Tn), ge(this, uo), ge(this, ke, void 0), ge(this, cn, void 0), ge(this, Te, void 0), ge(this, Ne, void 0), ge(this, Er, void 0), ge(this, ze, void 0), ge(this, ir, void 0), ge(this, qr, void 0), ge(this, fs, void 0), ge(this, dn, void 0), ge(this, Vs, void 0);
26729
26729
  var r, i, n, o, c, d, l, h, g;
26730
- ie(this, dn, t), ie(this, Er, []), ie(this, ze, new fd()), ie(this, ir, !0), ie(this, fs, !1), ie(this, Te, e != null ? e : {}), (S = (r = M(this, Te)).autoReconnect) != null || (r.autoReconnect = !0), (v = (i = M(this, Te)).retryConnectionInterval) != null || (i.retryConnectionInterval = 1e3), (E = (n = M(this, Te)).pingTimeout) != null || (n.pingTimeout = 3e4), (w = (o = M(this, Te)).connectionTimeout) != null || (o.connectionTimeout = 5e3), (b = (c = M(this, Te)).debug) != null || (c.debug = !0), (I = (d = M(this, Te)).maxReconnectionAttempts) != null || (d.maxReconnectionAttempts = 10), (D = (l = M(this, Te)).disconnectOnPingTimeout) != null || (l.disconnectOnPingTimeout = !0), ($ = (h = M(this, Te)).queueOnDisconnect) != null || (h.queueOnDisconnect = !1), (V = (g = M(this, Te)).flushOnReconnect) != null || (g.flushOnReconnect = !1), ie(this, qr, {
26730
+ ie(this, cn, t), ie(this, Er, []), ie(this, ze, new fd()), ie(this, ir, !0), ie(this, fs, !1), ie(this, Te, e != null ? e : {}), (S = (r = M(this, Te)).autoReconnect) != null || (r.autoReconnect = !0), (v = (i = M(this, Te)).retryConnectionInterval) != null || (i.retryConnectionInterval = 1e3), (E = (n = M(this, Te)).pingTimeout) != null || (n.pingTimeout = 3e4), (w = (o = M(this, Te)).connectionTimeout) != null || (o.connectionTimeout = 5e3), (b = (c = M(this, Te)).debug) != null || (c.debug = !0), (I = (d = M(this, Te)).maxReconnectionAttempts) != null || (d.maxReconnectionAttempts = 10), (D = (l = M(this, Te)).disconnectOnPingTimeout) != null || (l.disconnectOnPingTimeout = !0), ($ = (h = M(this, Te)).queueOnDisconnect) != null || (h.queueOnDisconnect = !1), (V = (g = M(this, Te)).flushOnReconnect) != null || (g.flushOnReconnect = !1), ie(this, qr, {
26731
26731
  code: void 0,
26732
26732
  reason: void 0
26733
26733
  }), ie(this, Ne, (H = M(this, Te).logger) != null ? H : new JD(M(this, Te).debug ? "debug" : "info")), ie(this, Vs, new WD());
@@ -26743,13 +26743,13 @@ class YD {
26743
26743
  * Sockrates connection URL.
26744
26744
  */
26745
26745
  get url() {
26746
- return M(this, dn);
26746
+ return M(this, cn);
26747
26747
  }
26748
26748
  /**
26749
26749
  * Update connection URL.
26750
26750
  */
26751
26751
  updateURL(t) {
26752
- ie(this, dn, t), ye(this, Gu, CS).call(this);
26752
+ ie(this, cn, t), ye(this, Gu, CS).call(this);
26753
26753
  }
26754
26754
  /**
26755
26755
  * Configuration options passed to Sockrates.
@@ -26788,9 +26788,9 @@ class YD {
26788
26788
  }
26789
26789
  if (M(this, ir) !== !1)
26790
26790
  return new Promise((e, r) => {
26791
- ye(this, yn, lo).call(this), ye(this, uo, yd).call(this);
26791
+ ye(this, Tn, lo).call(this), ye(this, uo, yd).call(this);
26792
26792
  try {
26793
- ie(this, ke, new WebSocket(ye(this, Hu, _S).call(this, M(this, dn)))), M(this, ke).binaryType = "arraybuffer", M(this, Ne).debug("Connecting");
26793
+ ie(this, ke, new WebSocket(ye(this, Hu, _S).call(this, M(this, cn)))), M(this, ke).binaryType = "arraybuffer", M(this, Ne).debug("Connecting");
26794
26794
  const i = setTimeout(() => {
26795
26795
  M(this, Ne).debug("Connection timeout. Closing socket"), ie(this, ir, !0), ye(this, uo, yd).call(this), M(this, ke).close(3001, "Connection Timeout"), M(this, Te).autoReconnect && !M(this, fs) && (M(this, ze).emit(
26796
26796
  "reconnecting"
@@ -26897,13 +26897,13 @@ class YD {
26897
26897
  * Disconnect the socket.
26898
26898
  */
26899
26899
  disconnect() {
26900
- ie(this, ir, !1), ye(this, yn, lo).call(this), this.removeAllListeners(), ie(this, qr, {
26900
+ ie(this, ir, !1), ye(this, Tn, lo).call(this), this.removeAllListeners(), ie(this, qr, {
26901
26901
  code: 1e3,
26902
26902
  reason: "Sockrates disconnect method called"
26903
26903
  }), M(this, ke).close(1e3, "Sockrates disconnect method called.");
26904
26904
  }
26905
26905
  }
26906
- ke = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), Hu = /* @__PURE__ */ new WeakSet(), _S = function(s) {
26906
+ ke = /* @__PURE__ */ new WeakMap(), cn = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), Hu = /* @__PURE__ */ new WeakSet(), _S = function(s) {
26907
26907
  if (s.startsWith("ws://") || s.startsWith("wss://"))
26908
26908
  return s;
26909
26909
  if (s.startsWith("https://"))
@@ -26943,7 +26943,7 @@ ke = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Te = /*
26943
26943
  ), ie(this, fs, !1);
26944
26944
  return;
26945
26945
  }
26946
- ie(this, fs, !0), ye(this, uo, yd).call(this), ye(this, yn, lo).call(this);
26946
+ ie(this, fs, !0), ye(this, uo, yd).call(this), ye(this, Tn, lo).call(this);
26947
26947
  try {
26948
26948
  if (yield M(this, Vs).wait(), M(this, ir) === !1)
26949
26949
  return;
@@ -26967,14 +26967,14 @@ ke = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Te = /*
26967
26967
  return M(this, Ne).error(t.message), !1;
26968
26968
  }
26969
26969
  }, Td = /* @__PURE__ */ new WeakSet(), Wu = function() {
26970
- this.config.disconnectOnPingTimeout && (M(this, Ne).debug("Resetting ping timeout"), ye(this, yn, lo).call(this), ie(this, ln, setTimeout(() => {
26970
+ this.config.disconnectOnPingTimeout && (M(this, Ne).debug("Resetting ping timeout"), ye(this, Tn, lo).call(this), ie(this, dn, setTimeout(() => {
26971
26971
  var s;
26972
26972
  M(this, Ne).debug("Disconnecting the socket due to ping timeout"), ie(this, ir, !0);
26973
26973
  const t = 3002, e = "Ping timeout";
26974
26974
  (s = M(this, ke)) == null || s.close(t, e), ye(this, Sd, ju).call(this, t, e);
26975
26975
  }, M(this, Te).pingTimeout)));
26976
- }, yn = /* @__PURE__ */ new WeakSet(), lo = function() {
26977
- M(this, ln) && (clearTimeout(M(this, ln)), ie(this, ln, void 0));
26976
+ }, Tn = /* @__PURE__ */ new WeakSet(), lo = function() {
26977
+ M(this, dn) && (clearTimeout(M(this, dn)), ie(this, dn, void 0));
26978
26978
  }, uo = /* @__PURE__ */ new WeakSet(), yd = function() {
26979
26979
  M(this, ke) && (M(this, ke).onopen = void 0, M(this, ke).onerror = void 0, M(this, ke).onmessage = void 0, M(this, ke).onclose = void 0);
26980
26980
  };
@@ -27040,7 +27040,7 @@ const RS = (Cg = class {
27040
27040
  s !== this.peerId && (f(this, Br, x(this, vc, Ju).call(this, s)), this.logger.debug("SocketService:: Connection URL updated.")), a(this, Pe).updateURL(a(this, Br));
27041
27041
  }
27042
27042
  static getSocketEdgeDomain(s) {
27043
- return Sn({ servicePrefix: "socket-edge", baseURI: s });
27043
+ return fn({ servicePrefix: "socket-edge", baseURI: s });
27044
27044
  }
27045
27045
  get url() {
27046
27046
  return a(this, Br);
@@ -27166,7 +27166,7 @@ const RS = (Cg = class {
27166
27166
  var i;
27167
27167
  this.logger.info("SocketService::Disconnected from socket-edge", { error: { code: s, reason: t } });
27168
27168
  const { recv: e, send: r } = (i = a(this, be, Ae).mediaState) != null ? i : {};
27169
- e != null && e.state && (e == null ? void 0 : e.state) !== vn.CONNECTED || r != null && r.state && (r == null ? void 0 : r.state) !== vn.CONNECTED ? a(this, Ke).getValue("peerSessionStore").emit(
27169
+ e != null && e.state && (e == null ? void 0 : e.state) !== Sn.CONNECTED || r != null && r.state && (r == null ? void 0 : r.state) !== Sn.CONNECTED ? a(this, Ke).getValue("peerSessionStore").emit(
27170
27170
  C.SOCKET_SERVICE_DISCONNECTED,
27171
27171
  {
27172
27172
  joinAttempted: a(this, be, Ae).joinAttempted
@@ -27937,7 +27937,7 @@ function d1(s, t) {
27937
27937
  throw Error(`Received V1 auth token ${s}`);
27938
27938
  let n = ni.baseURI.prod;
27939
27939
  t && (n = t);
27940
- const o = `https://${Sn({ servicePrefix: "api", baseURI: n })}`;
27940
+ const o = `https://${fn({ servicePrefix: "api", baseURI: n })}`;
27941
27941
  return {
27942
27942
  meetingId: e,
27943
27943
  orgId: r,
@@ -28034,7 +28034,7 @@ let Jr = (kg = class {
28034
28034
  static initMedia() {
28035
28035
  return u(this, arguments, function* (t = {}, e = !1, r = void 0) {
28036
28036
  var d;
28037
- const i = (d = r == null ? void 0 : r.peerId) != null ? d : Ki(), n = Gr.createContext(i, {
28037
+ const i = (d = r == null ? void 0 : r.peerId) != null ? d : Ta(), n = Gr.createContext(i, {
28038
28038
  peerId: i
28039
28039
  }), o = n.getValue("logger");
28040
28040
  o.init(n);
@@ -28046,7 +28046,7 @@ let Jr = (kg = class {
28046
28046
  return u(this, null, function* () {
28047
28047
  var S, v, w, b, I, D, $, V, H;
28048
28048
  Se.init();
28049
- const e = (v = (S = t == null ? void 0 : t.cachedUserDetails) == null ? void 0 : S.peerId) != null ? v : Ki(), { authToken: r, baseURI: i } = t, E = d1(r, i), { meetingId: n } = E, o = Oc(E, ["meetingId"]);
28049
+ const e = (v = (S = t == null ? void 0 : t.cachedUserDetails) == null ? void 0 : S.peerId) != null ? v : Ta(), { authToken: r, baseURI: i } = t, E = d1(r, i), { meetingId: n } = E, o = Oc(E, ["meetingId"]);
28050
28050
  if ((w = o.baseURI) != null && w.includes("dyte.io"))
28051
28051
  throw new R("Dyte Base URIs are no longer supported. Use RealtimeKit Base URIs.", "0001");
28052
28052
  window.__zone_symbol__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION = !0;
@@ -28089,7 +28089,7 @@ let Jr = (kg = class {
28089
28089
  video: !0
28090
28090
  };
28091
28091
  return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (d = e.overrides) != null ? d : {}), n.setValue("env", __({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
28092
- })), n.setValue("cachedUserDetails", Ms(e.cachedUserDetails)), n.setValue("sdkVersion", "1.5.0-staging.4"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new u1()), n;
28092
+ })), n.setValue("cachedUserDetails", Ms(e.cachedUserDetails)), n.setValue("sdkVersion", "1.5.0-staging.9"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new u1()), n;
28093
28093
  }
28094
28094
  join() {
28095
28095
  return u(this, null, function* () {