@cloudflare/realtimekit-react 0.5.0-staging.103 → 0.5.0-staging.105
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.cjs.js +13 -13
- package/dist/index.es.js +641 -641
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -4487,12 +4487,12 @@ parser.parseImageAttributes;
|
|
|
4487
4487
|
parser.parseSimulcastStreamList;
|
|
4488
4488
|
var lv = Object.defineProperty, uv = Object.defineProperties;
|
|
4489
4489
|
var hv = Object.getOwnPropertyDescriptors;
|
|
4490
|
-
var
|
|
4490
|
+
var Cc = Object.getOwnPropertySymbols, pv = Object.getPrototypeOf, Rh = Object.prototype.hasOwnProperty, wh = Object.prototype.propertyIsEnumerable, mv = Reflect.get;
|
|
4491
4491
|
var bh = Math.pow, Ol = (s, t, e) => t in s ? lv(s, t, { enumerable: true, configurable: true, writable: true, value: e }) : s[t] = e, O = (s, t) => {
|
|
4492
4492
|
for (var e in t || (t = {}))
|
|
4493
4493
|
Rh.call(t, e) && Ol(s, e, t[e]);
|
|
4494
|
-
if (
|
|
4495
|
-
for (var e of
|
|
4494
|
+
if (Cc)
|
|
4495
|
+
for (var e of Cc(t))
|
|
4496
4496
|
wh.call(t, e) && Ol(s, e, t[e]);
|
|
4497
4497
|
return s;
|
|
4498
4498
|
}, G = (s, t) => uv(s, hv(t));
|
|
@@ -4500,8 +4500,8 @@ var za = (s, t) => {
|
|
|
4500
4500
|
var e = {};
|
|
4501
4501
|
for (var r in s)
|
|
4502
4502
|
Rh.call(s, r) && t.indexOf(r) < 0 && (e[r] = s[r]);
|
|
4503
|
-
if (s != null &&
|
|
4504
|
-
for (var r of
|
|
4503
|
+
if (s != null && Cc)
|
|
4504
|
+
for (var r of Cc(s))
|
|
4505
4505
|
t.indexOf(r) < 0 && wh.call(s, r) && (e[r] = s[r]);
|
|
4506
4506
|
return e;
|
|
4507
4507
|
};
|
|
@@ -4540,10 +4540,10 @@ var ut = {}, fv = {
|
|
|
4540
4540
|
}
|
|
4541
4541
|
}, gn = typeof Reflect == "object" ? Reflect : null, Ih = gn && typeof gn.apply == "function" ? gn.apply : function(t, e, r) {
|
|
4542
4542
|
return Function.prototype.apply.call(t, e, r);
|
|
4543
|
-
},
|
|
4544
|
-
gn && typeof gn.ownKeys == "function" ?
|
|
4543
|
+
}, Vc;
|
|
4544
|
+
gn && typeof gn.ownKeys == "function" ? Vc = gn.ownKeys : Object.getOwnPropertySymbols ? Vc = function(t) {
|
|
4545
4545
|
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
|
|
4546
|
-
} :
|
|
4546
|
+
} : Vc = function(t) {
|
|
4547
4547
|
return Object.getOwnPropertyNames(t);
|
|
4548
4548
|
};
|
|
4549
4549
|
function vv(s) {
|
|
@@ -4562,7 +4562,7 @@ ue.prototype._events = void 0;
|
|
|
4562
4562
|
ue.prototype._eventsCount = 0;
|
|
4563
4563
|
ue.prototype._maxListeners = void 0;
|
|
4564
4564
|
var Ah = 10;
|
|
4565
|
-
function
|
|
4565
|
+
function ll(s) {
|
|
4566
4566
|
if (typeof s != "function")
|
|
4567
4567
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof s);
|
|
4568
4568
|
}
|
|
@@ -4618,7 +4618,7 @@ ue.prototype.emit = function(t) {
|
|
|
4618
4618
|
};
|
|
4619
4619
|
function Sm(s, t, e, r) {
|
|
4620
4620
|
var i, n, o;
|
|
4621
|
-
if (
|
|
4621
|
+
if (ll(e), n = s._events, n === void 0 ? (n = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (n.newListener !== void 0 && (s.emit(
|
|
4622
4622
|
"newListener",
|
|
4623
4623
|
t,
|
|
4624
4624
|
e.listener ? e.listener : e
|
|
@@ -4647,14 +4647,14 @@ function Em(s, t, e) {
|
|
|
4647
4647
|
return i.listener = e, r.wrapFn = i, i;
|
|
4648
4648
|
}
|
|
4649
4649
|
ue.prototype.once = function(t, e) {
|
|
4650
|
-
return
|
|
4650
|
+
return ll(e), this.on(t, Em(this, t, e)), this;
|
|
4651
4651
|
};
|
|
4652
4652
|
ue.prototype.prependOnceListener = function(t, e) {
|
|
4653
|
-
return
|
|
4653
|
+
return ll(e), this.prependListener(t, Em(this, t, e)), this;
|
|
4654
4654
|
};
|
|
4655
4655
|
ue.prototype.removeListener = function(t, e) {
|
|
4656
4656
|
var r, i, n, o, d;
|
|
4657
|
-
if (
|
|
4657
|
+
if (ll(e), i = this._events, i === void 0)
|
|
4658
4658
|
return this;
|
|
4659
4659
|
if (r = i[t], r === void 0)
|
|
4660
4660
|
return this;
|
|
@@ -4721,7 +4721,7 @@ function Pm(s) {
|
|
|
4721
4721
|
return 0;
|
|
4722
4722
|
}
|
|
4723
4723
|
ue.prototype.eventNames = function() {
|
|
4724
|
-
return this._eventsCount > 0 ?
|
|
4724
|
+
return this._eventsCount > 0 ? Vc(this._events) : [];
|
|
4725
4725
|
};
|
|
4726
4726
|
function Cm(s, t) {
|
|
4727
4727
|
for (var e = new Array(t), r = 0; r < t; ++r)
|
|
@@ -4893,13 +4893,13 @@ var Dh;
|
|
|
4893
4893
|
function Jr(s) {
|
|
4894
4894
|
return s ? s.split(".").slice(0, 2).concat(["0", "0"]).join(".") : "";
|
|
4895
4895
|
}
|
|
4896
|
-
function
|
|
4896
|
+
function Qc({ packetsLost: s, packetsSent: t }) {
|
|
4897
4897
|
return t > 0 ? s * 100 / t : 0;
|
|
4898
4898
|
}
|
|
4899
|
-
function
|
|
4899
|
+
function Xc({ packetsLost: s, packetsReceived: t }) {
|
|
4900
4900
|
return t + s > 0 ? s * 100 / (t + s) : 0;
|
|
4901
4901
|
}
|
|
4902
|
-
const wm = 240, bm = 720, km = 8, Im = 3,
|
|
4902
|
+
const wm = 240, bm = 720, km = 8, Im = 3, ul = 10, hl = 0.02, pl = 0.03;
|
|
4903
4903
|
function nr({ stat: s, weight: t, rangeMin: e, rangeMax: r, rangeRankingDirection: i }) {
|
|
4904
4904
|
return s == null ? t : e === r ? i === "UP" ? s <= e ? t : 0 : s >= r ? t : 0 : i === "UP" ? (1 - Math.max(Math.min(r, Math.abs(s)) - e, 0) / (r - e)) * t : i === "DOWN" ? Math.max(Math.min(r, Math.abs(s)) - e, 0) / (r - e) * t : t;
|
|
4905
4905
|
}
|
|
@@ -4918,13 +4918,13 @@ function Dm({ packetsLost: s, packetsSent: t, jitter: e }) {
|
|
|
4918
4918
|
}),
|
|
4919
4919
|
weight: 0.7,
|
|
4920
4920
|
rangeMin: 0,
|
|
4921
|
-
rangeMax:
|
|
4921
|
+
rangeMax: ul,
|
|
4922
4922
|
rangeRankingDirection: "UP"
|
|
4923
4923
|
}), o = nr({
|
|
4924
4924
|
stat: e,
|
|
4925
4925
|
weight: 0.3,
|
|
4926
|
-
rangeMin:
|
|
4927
|
-
rangeMax:
|
|
4926
|
+
rangeMin: hl,
|
|
4927
|
+
rangeMax: pl,
|
|
4928
4928
|
rangeRankingDirection: "UP"
|
|
4929
4929
|
});
|
|
4930
4930
|
return i + o;
|
|
@@ -4946,13 +4946,13 @@ function Om({ frameWidth: s, framesPerSecond: t, packetsLost: e, packetsSent: r,
|
|
|
4946
4946
|
}),
|
|
4947
4947
|
weight: 1,
|
|
4948
4948
|
rangeMin: 0,
|
|
4949
|
-
rangeMax:
|
|
4949
|
+
rangeMax: ul,
|
|
4950
4950
|
rangeRankingDirection: "UP"
|
|
4951
4951
|
}), c = nr({
|
|
4952
4952
|
stat: i,
|
|
4953
4953
|
weight: 1,
|
|
4954
|
-
rangeMin:
|
|
4955
|
-
rangeMax:
|
|
4954
|
+
rangeMin: hl,
|
|
4955
|
+
rangeMax: pl,
|
|
4956
4956
|
rangeRankingDirection: "UP"
|
|
4957
4957
|
}), h = wv({
|
|
4958
4958
|
frameWidth: s,
|
|
@@ -4989,13 +4989,13 @@ function Lm({ concealmentEvents: s, packetsLost: t, packetsReceived: e, jitter:
|
|
|
4989
4989
|
}),
|
|
4990
4990
|
weight: o,
|
|
4991
4991
|
rangeMin: 0,
|
|
4992
|
-
rangeMax:
|
|
4992
|
+
rangeMax: ul,
|
|
4993
4993
|
rangeRankingDirection: "UP"
|
|
4994
4994
|
}), h = nr({
|
|
4995
4995
|
stat: r,
|
|
4996
4996
|
weight: 0.3,
|
|
4997
|
-
rangeMin:
|
|
4998
|
-
rangeMax:
|
|
4997
|
+
rangeMin: hl,
|
|
4998
|
+
rangeMax: pl,
|
|
4999
4999
|
rangeRankingDirection: "UP"
|
|
5000
5000
|
});
|
|
5001
5001
|
return n + d + h;
|
|
@@ -5017,13 +5017,13 @@ function Vm({ frameWidth: s, framesPerSecond: t, packetsLost: e, packetsReceived
|
|
|
5017
5017
|
}),
|
|
5018
5018
|
weight: 1,
|
|
5019
5019
|
rangeMin: 0,
|
|
5020
|
-
rangeMax:
|
|
5020
|
+
rangeMax: ul,
|
|
5021
5021
|
rangeRankingDirection: "UP"
|
|
5022
5022
|
}), c = nr({
|
|
5023
5023
|
stat: i,
|
|
5024
5024
|
weight: 1,
|
|
5025
|
-
rangeMin:
|
|
5026
|
-
rangeMax:
|
|
5025
|
+
rangeMin: hl,
|
|
5026
|
+
rangeMax: pl,
|
|
5027
5027
|
rangeRankingDirection: "UP"
|
|
5028
5028
|
}), h = Mv({
|
|
5029
5029
|
frameWidth: s,
|
|
@@ -5711,7 +5711,7 @@ class $m extends ut {
|
|
|
5711
5711
|
frameWidth: k.frameWidth || 0,
|
|
5712
5712
|
frameHeight: k.frameHeight || 0,
|
|
5713
5713
|
framesPerSecond: k.framesPerSecond || 0,
|
|
5714
|
-
packetsLostPercentage:
|
|
5714
|
+
packetsLostPercentage: Xc({
|
|
5715
5715
|
packetsLost: (k.packetsLost || 0) - (((B = this.videoConsumerToStatsMap.get(C)) == null ? void 0 : B.packetsLost) || 0),
|
|
5716
5716
|
packetsReceived: (k.packetsReceived || 0) - (((F = this.videoConsumerToStatsMap.get(C)) == null ? void 0 : F.packetsReceived) || 0)
|
|
5717
5717
|
}),
|
|
@@ -5741,7 +5741,7 @@ class $m extends ut {
|
|
|
5741
5741
|
jitter: k.jitter || 0
|
|
5742
5742
|
}), P.set(C, {
|
|
5743
5743
|
score: +(k.score * 10).toFixed(),
|
|
5744
|
-
packetsLostPercentage:
|
|
5744
|
+
packetsLostPercentage: Xc({
|
|
5745
5745
|
packetsLost: (k.packetsLost || 0) - (((Ss = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Ss.packetsLost) || 0),
|
|
5746
5746
|
packetsReceived: (k.packetsReceived || 0) - (((ts = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ts.packetsReceived) || 0)
|
|
5747
5747
|
}),
|
|
@@ -5779,7 +5779,7 @@ class $m extends ut {
|
|
|
5779
5779
|
framesPerSecond: ne.framesPerSecond || 0,
|
|
5780
5780
|
jitter: ((Fe = ne.remoteData) == null ? void 0 : Fe.jitter) || 0,
|
|
5781
5781
|
isScreenShare: this.screenShareProducers.has(E),
|
|
5782
|
-
packetsLostPercentage:
|
|
5782
|
+
packetsLostPercentage: Qc({
|
|
5783
5783
|
packetsSent: (ne.packetsSent || 0) - (((Os = this.videoProducerToStatsMap.get(E)) == null ? void 0 : Os.packetsSent) || 0),
|
|
5784
5784
|
packetsLost: (((Na = ne.remoteData) == null ? void 0 : Na.packetsLost) || 0) - (((Va = (La = this.videoProducerToStatsMap.get(E)) == null ? void 0 : La.remoteData) == null ? void 0 : Va.packetsLost) || 0)
|
|
5785
5785
|
}),
|
|
@@ -5796,7 +5796,7 @@ class $m extends ut {
|
|
|
5796
5796
|
}), _.set(E, {
|
|
5797
5797
|
score: +(me.score * 10).toFixed(),
|
|
5798
5798
|
bitrate: ((me.bytesSent || 0) - (((qa = this.audioProducerToStatsMap.get(E)) == null ? void 0 : qa.bytesSent) || 0)) * 8 / 7,
|
|
5799
|
-
packetsLostPercentage:
|
|
5799
|
+
packetsLostPercentage: Qc({
|
|
5800
5800
|
packetsSent: (me.packetsSent || 0) - (((ja = this.audioProducerToStatsMap.get(E)) == null ? void 0 : ja.packetsSent) || 0),
|
|
5801
5801
|
packetsLost: (((Ga = me.remoteData) == null ? void 0 : Ga.packetsLost) || 0) - (((Ja = (Wa = this.audioProducerToStatsMap.get(E)) == null ? void 0 : Wa.remoteData) == null ? void 0 : Ja.packetsLost) || 0)
|
|
5802
5802
|
}),
|
|
@@ -6344,7 +6344,7 @@ class Fm extends $m {
|
|
|
6344
6344
|
frameWidth: k.frameWidth || 0,
|
|
6345
6345
|
frameHeight: k.frameHeight || 0,
|
|
6346
6346
|
framesPerSecond: k.framesPerSecond || 0,
|
|
6347
|
-
packetsLostPercentage:
|
|
6347
|
+
packetsLostPercentage: Xc({
|
|
6348
6348
|
packetsLost: (k.packetsLost || 0) - (((B = this.videoConsumerToStatsMap.get(C)) == null ? void 0 : B.packetsLost) || 0),
|
|
6349
6349
|
packetsReceived: (k.packetsReceived || 0) - (((F = this.videoConsumerToStatsMap.get(C)) == null ? void 0 : F.packetsReceived) || 0)
|
|
6350
6350
|
}),
|
|
@@ -6374,7 +6374,7 @@ class Fm extends $m {
|
|
|
6374
6374
|
jitter: k.jitter || 0
|
|
6375
6375
|
}), P.set(C, {
|
|
6376
6376
|
score: +(k.score * 10).toFixed(),
|
|
6377
|
-
packetsLostPercentage:
|
|
6377
|
+
packetsLostPercentage: Xc({
|
|
6378
6378
|
packetsLost: (k.packetsLost || 0) - (((Ss = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Ss.packetsLost) || 0),
|
|
6379
6379
|
packetsReceived: (k.packetsReceived || 0) - (((ts = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ts.packetsReceived) || 0)
|
|
6380
6380
|
}),
|
|
@@ -6412,7 +6412,7 @@ class Fm extends $m {
|
|
|
6412
6412
|
framesPerSecond: ne.framesPerSecond || 0,
|
|
6413
6413
|
jitter: ((Fe = ne.remoteData) == null ? void 0 : Fe.jitter) || 0,
|
|
6414
6414
|
isScreenShare: this.screenShareProducers.has(E),
|
|
6415
|
-
packetsLostPercentage:
|
|
6415
|
+
packetsLostPercentage: Qc({
|
|
6416
6416
|
packetsSent: (ne.packetsSent || 0) - (((Os = this.videoProducerToStatsMap.get(E)) == null ? void 0 : Os.packetsSent) || 0),
|
|
6417
6417
|
packetsLost: (((Na = ne.remoteData) == null ? void 0 : Na.packetsLost) || 0) - (((Va = (La = this.videoProducerToStatsMap.get(E)) == null ? void 0 : La.remoteData) == null ? void 0 : Va.packetsLost) || 0)
|
|
6418
6418
|
}),
|
|
@@ -6429,7 +6429,7 @@ class Fm extends $m {
|
|
|
6429
6429
|
}), _.set(E, {
|
|
6430
6430
|
score: +(me.score * 10).toFixed(),
|
|
6431
6431
|
bitrate: ((me.bytesSent || 0) - (((qa = this.audioProducerToStatsMap.get(E)) == null ? void 0 : qa.bytesSent) || 0)) * 8 / 7,
|
|
6432
|
-
packetsLostPercentage:
|
|
6432
|
+
packetsLostPercentage: Qc({
|
|
6433
6433
|
packetsSent: (me.packetsSent || 0) - (((ja = this.audioProducerToStatsMap.get(E)) == null ? void 0 : ja.packetsSent) || 0),
|
|
6434
6434
|
packetsLost: (((Ga = me.remoteData) == null ? void 0 : Ga.packetsLost) || 0) - (((Ja = (Wa = this.audioProducerToStatsMap.get(E)) == null ? void 0 : Wa.remoteData) == null ? void 0 : Ja.packetsLost) || 0)
|
|
6435
6435
|
}),
|
|
@@ -6519,7 +6519,7 @@ class Fm extends $m {
|
|
|
6519
6519
|
}
|
|
6520
6520
|
class Fv extends Fm {
|
|
6521
6521
|
}
|
|
6522
|
-
function
|
|
6522
|
+
function Zc(s, t, e, r) {
|
|
6523
6523
|
if (s != null && s.logger && s.logger.error("Callstats::handleError", { error: r }), typeof e == "function" && r instanceof t)
|
|
6524
6524
|
e.call(null, r, s);
|
|
6525
6525
|
else
|
|
@@ -6531,10 +6531,10 @@ function Lh(s, t, e) {
|
|
|
6531
6531
|
try {
|
|
6532
6532
|
const n = r.apply(this, i);
|
|
6533
6533
|
return n && n instanceof Promise ? n.catch((o) => {
|
|
6534
|
-
|
|
6534
|
+
Zc(this, t, e, o);
|
|
6535
6535
|
}) : n;
|
|
6536
6536
|
} catch (n) {
|
|
6537
|
-
|
|
6537
|
+
Zc(this, t, e, n);
|
|
6538
6538
|
}
|
|
6539
6539
|
return null;
|
|
6540
6540
|
}, s;
|
|
@@ -6545,10 +6545,10 @@ const te = (s, t) => (e, r, i) => {
|
|
|
6545
6545
|
try {
|
|
6546
6546
|
const d = n.apply(this, o);
|
|
6547
6547
|
return d && d instanceof Promise ? d.catch((c) => {
|
|
6548
|
-
|
|
6548
|
+
Zc(this, s, t, c);
|
|
6549
6549
|
}) : d;
|
|
6550
6550
|
} catch (d) {
|
|
6551
|
-
|
|
6551
|
+
Zc(this, s, t, d);
|
|
6552
6552
|
}
|
|
6553
6553
|
return null;
|
|
6554
6554
|
}, i;
|
|
@@ -6626,19 +6626,19 @@ let Q = class extends ut {
|
|
|
6626
6626
|
}
|
|
6627
6627
|
registerProducingTransport(e) {
|
|
6628
6628
|
var i;
|
|
6629
|
-
this.producingTransport = e, e.
|
|
6629
|
+
this.producingTransport = e, e.on("close", this.disconnectProducingTransport.bind(this, e)), e.on("disconnect", this.disconnectProducingTransport.bind(this, e)), Array.from(
|
|
6630
6630
|
((i = e._producers) == null ? void 0 : i.values()) || []
|
|
6631
6631
|
).forEach((n) => {
|
|
6632
6632
|
this.registerProducer(n);
|
|
6633
|
-
}), e.
|
|
6633
|
+
}), e.on("newproducer", this.registerProducer);
|
|
6634
6634
|
}
|
|
6635
6635
|
registerConsumingTransport(e) {
|
|
6636
6636
|
var i;
|
|
6637
|
-
this.consumingTransport = e, e.
|
|
6637
|
+
this.consumingTransport = e, e.on("close", this.disconnectConsumingTransport.bind(this, e)), e.on("disconnect", this.disconnectConsumingTransport.bind(this, e)), Array.from(
|
|
6638
6638
|
((i = e._consumers) == null ? void 0 : i.values()) || []
|
|
6639
6639
|
).forEach((n) => {
|
|
6640
6640
|
this.registerConsumer(n);
|
|
6641
|
-
}), e.
|
|
6641
|
+
}), e.on("newconsumer", this.registerConsumer);
|
|
6642
6642
|
}
|
|
6643
6643
|
deRegisterConsumer(e) {
|
|
6644
6644
|
this.consumers.delete(e.id);
|
|
@@ -7556,18 +7556,18 @@ function Jv(s) {
|
|
|
7556
7556
|
}
|
|
7557
7557
|
}
|
|
7558
7558
|
}
|
|
7559
|
-
var ir = [], fn = false, ui,
|
|
7559
|
+
var ir = [], fn = false, ui, xc = -1;
|
|
7560
7560
|
function Kv() {
|
|
7561
|
-
!fn || !ui || (fn = false, ui.length ? ir = ui.concat(ir) :
|
|
7561
|
+
!fn || !ui || (fn = false, ui.length ? ir = ui.concat(ir) : xc = -1, ir.length && qm());
|
|
7562
7562
|
}
|
|
7563
7563
|
function qm() {
|
|
7564
7564
|
if (!fn) {
|
|
7565
7565
|
var s = Hm(Kv);
|
|
7566
7566
|
fn = true;
|
|
7567
7567
|
for (var t = ir.length; t; ) {
|
|
7568
|
-
for (ui = ir, ir = []; ++
|
|
7569
|
-
ui && ui[
|
|
7570
|
-
|
|
7568
|
+
for (ui = ir, ir = []; ++xc < t; )
|
|
7569
|
+
ui && ui[xc].run();
|
|
7570
|
+
xc = -1, t = ir.length;
|
|
7571
7571
|
}
|
|
7572
7572
|
ui = null, fn = false, Jv(s);
|
|
7573
7573
|
}
|
|
@@ -7622,32 +7622,32 @@ const rn = /* @__PURE__ */ Wv(zv);
|
|
|
7622
7622
|
function Yv() {
|
|
7623
7623
|
this.__data__ = [], this.size = 0;
|
|
7624
7624
|
}
|
|
7625
|
-
function
|
|
7625
|
+
function pc(s, t) {
|
|
7626
7626
|
return s === t || s !== s && t !== t;
|
|
7627
7627
|
}
|
|
7628
|
-
function
|
|
7628
|
+
function ml(s, t) {
|
|
7629
7629
|
for (var e = s.length; e--; )
|
|
7630
|
-
if (
|
|
7630
|
+
if (pc(s[e][0], t))
|
|
7631
7631
|
return e;
|
|
7632
7632
|
return -1;
|
|
7633
7633
|
}
|
|
7634
7634
|
var Qv = Array.prototype, Xv = Qv.splice;
|
|
7635
7635
|
function Zv(s) {
|
|
7636
|
-
var t = this.__data__, e =
|
|
7636
|
+
var t = this.__data__, e = ml(t, s);
|
|
7637
7637
|
if (e < 0)
|
|
7638
7638
|
return false;
|
|
7639
7639
|
var r = t.length - 1;
|
|
7640
7640
|
return e == r ? t.pop() : Xv.call(t, e, 1), --this.size, true;
|
|
7641
7641
|
}
|
|
7642
7642
|
function eT(s) {
|
|
7643
|
-
var t = this.__data__, e =
|
|
7643
|
+
var t = this.__data__, e = ml(t, s);
|
|
7644
7644
|
return e < 0 ? void 0 : t[e][1];
|
|
7645
7645
|
}
|
|
7646
7646
|
function tT(s) {
|
|
7647
|
-
return
|
|
7647
|
+
return ml(this.__data__, s) > -1;
|
|
7648
7648
|
}
|
|
7649
7649
|
function sT(s, t) {
|
|
7650
|
-
var e = this.__data__, r =
|
|
7650
|
+
var e = this.__data__, r = ml(e, s);
|
|
7651
7651
|
return r < 0 ? (++this.size, e.push([s, t])) : e[r][1] = t, this;
|
|
7652
7652
|
}
|
|
7653
7653
|
function lr(s) {
|
|
@@ -7675,8 +7675,8 @@ function nT(s) {
|
|
|
7675
7675
|
function aT(s) {
|
|
7676
7676
|
return this.__data__.has(s);
|
|
7677
7677
|
}
|
|
7678
|
-
const
|
|
7679
|
-
var oT = typeof
|
|
7678
|
+
const Rc = globalThis || void 0 || self;
|
|
7679
|
+
var oT = typeof Rc == "object" && Rc && Rc.Object === Object && Rc;
|
|
7680
7680
|
const Gm = oT;
|
|
7681
7681
|
var cT = typeof self == "object" && self && self.Object === Object && self, dT = Gm || cT || Function("return this")();
|
|
7682
7682
|
const fs = dT;
|
|
@@ -7804,22 +7804,22 @@ function YT(s) {
|
|
|
7804
7804
|
var t = typeof s;
|
|
7805
7805
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? s !== "__proto__" : s === null;
|
|
7806
7806
|
}
|
|
7807
|
-
function
|
|
7807
|
+
function gl(s, t) {
|
|
7808
7808
|
var e = s.__data__;
|
|
7809
7809
|
return YT(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
|
|
7810
7810
|
}
|
|
7811
7811
|
function QT(s) {
|
|
7812
|
-
var t =
|
|
7812
|
+
var t = gl(this, s).delete(s);
|
|
7813
7813
|
return this.size -= t ? 1 : 0, t;
|
|
7814
7814
|
}
|
|
7815
7815
|
function XT(s) {
|
|
7816
|
-
return
|
|
7816
|
+
return gl(this, s).get(s);
|
|
7817
7817
|
}
|
|
7818
7818
|
function ZT(s) {
|
|
7819
|
-
return
|
|
7819
|
+
return gl(this, s).has(s);
|
|
7820
7820
|
}
|
|
7821
7821
|
function ey(s, t) {
|
|
7822
|
-
var e =
|
|
7822
|
+
var e = gl(this, s), r = e.size;
|
|
7823
7823
|
return e.set(s, t), this.size += e.size == r ? 0 : 1, this;
|
|
7824
7824
|
}
|
|
7825
7825
|
function Qi(s) {
|
|
@@ -7866,9 +7866,9 @@ var iy = function() {
|
|
|
7866
7866
|
} catch (t) {
|
|
7867
7867
|
}
|
|
7868
7868
|
}();
|
|
7869
|
-
const
|
|
7869
|
+
const ed = iy;
|
|
7870
7870
|
function zu(s, t, e) {
|
|
7871
|
-
t == "__proto__" &&
|
|
7871
|
+
t == "__proto__" && ed ? ed(s, t, {
|
|
7872
7872
|
configurable: true,
|
|
7873
7873
|
enumerable: true,
|
|
7874
7874
|
value: e,
|
|
@@ -7878,9 +7878,9 @@ function zu(s, t, e) {
|
|
|
7878
7878
|
var ny = Object.prototype, ay = ny.hasOwnProperty;
|
|
7879
7879
|
function Jm(s, t, e) {
|
|
7880
7880
|
var r = s[t];
|
|
7881
|
-
(!(ay.call(s, t) &&
|
|
7881
|
+
(!(ay.call(s, t) && pc(r, e)) || e === void 0 && !(t in s)) && zu(s, t, e);
|
|
7882
7882
|
}
|
|
7883
|
-
function
|
|
7883
|
+
function mc(s, t, e, r) {
|
|
7884
7884
|
var i = !e;
|
|
7885
7885
|
e || (e = {});
|
|
7886
7886
|
for (var n = -1, o = t.length; ++n < o; ) {
|
|
@@ -7906,7 +7906,7 @@ var Km = Object.prototype, dy = Km.hasOwnProperty, ly = Km.propertyIsEnumerable,
|
|
|
7906
7906
|
}()) ? Uh : function(s) {
|
|
7907
7907
|
return Ds(s) && dy.call(s, "callee") && !ly.call(s, "callee");
|
|
7908
7908
|
};
|
|
7909
|
-
const
|
|
7909
|
+
const td = uy;
|
|
7910
7910
|
var hy = Array.isArray;
|
|
7911
7911
|
const Qr = hy;
|
|
7912
7912
|
function py() {
|
|
@@ -7943,16 +7943,16 @@ var Xm = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
7943
7943
|
}();
|
|
7944
7944
|
const Ra = Wy;
|
|
7945
7945
|
var Bh = Ra && Ra.isTypedArray, Jy = Bh ? Yu(Bh) : jy;
|
|
7946
|
-
const
|
|
7946
|
+
const fl = Jy;
|
|
7947
7947
|
var Ky = Object.prototype, zy = Ky.hasOwnProperty;
|
|
7948
7948
|
function Zm(s, t) {
|
|
7949
|
-
var e = Qr(s), r = !e &&
|
|
7949
|
+
var e = Qr(s), r = !e && td(s), i = !e && !r && Ca(s), n = !e && !r && !i && fl(s), o = e || r || i || n, d = o ? oy(s.length, String) : [], c = d.length;
|
|
7950
7950
|
for (var h in s)
|
|
7951
7951
|
(t || zy.call(s, h)) && !(o && (h == "length" || i && (h == "offset" || h == "parent") || n && (h == "buffer" || h == "byteLength" || h == "byteOffset") || Ym(h, c))) && d.push(h);
|
|
7952
7952
|
return d;
|
|
7953
7953
|
}
|
|
7954
7954
|
var Yy = Object.prototype;
|
|
7955
|
-
function
|
|
7955
|
+
function vl(s) {
|
|
7956
7956
|
var t = s && s.constructor, e = typeof t == "function" && t.prototype || Yy;
|
|
7957
7957
|
return s === e;
|
|
7958
7958
|
}
|
|
@@ -7965,21 +7965,21 @@ var Qy = eg(Object.keys, Object);
|
|
|
7965
7965
|
const Xy = Qy;
|
|
7966
7966
|
var Zy = Object.prototype, eS = Zy.hasOwnProperty;
|
|
7967
7967
|
function tg(s) {
|
|
7968
|
-
if (!
|
|
7968
|
+
if (!vl(s))
|
|
7969
7969
|
return Xy(s);
|
|
7970
7970
|
var t = [];
|
|
7971
7971
|
for (var e in Object(s))
|
|
7972
7972
|
eS.call(s, e) && e != "constructor" && t.push(e);
|
|
7973
7973
|
return t;
|
|
7974
7974
|
}
|
|
7975
|
-
function
|
|
7975
|
+
function gc(s) {
|
|
7976
7976
|
return s != null && Qm(s.length) && !Ku(s);
|
|
7977
7977
|
}
|
|
7978
7978
|
function Qu(s) {
|
|
7979
|
-
return
|
|
7979
|
+
return gc(s) ? Zm(s) : tg(s);
|
|
7980
7980
|
}
|
|
7981
7981
|
function tS(s, t) {
|
|
7982
|
-
return s &&
|
|
7982
|
+
return s && mc(t, Qu(t), s);
|
|
7983
7983
|
}
|
|
7984
7984
|
function sS(s) {
|
|
7985
7985
|
var t = [];
|
|
@@ -7992,16 +7992,16 @@ var rS = Object.prototype, iS = rS.hasOwnProperty;
|
|
|
7992
7992
|
function nS(s) {
|
|
7993
7993
|
if (!gs(s))
|
|
7994
7994
|
return sS(s);
|
|
7995
|
-
var t =
|
|
7995
|
+
var t = vl(s), e = [];
|
|
7996
7996
|
for (var r in s)
|
|
7997
7997
|
r == "constructor" && (t || !iS.call(s, r)) || e.push(r);
|
|
7998
7998
|
return e;
|
|
7999
7999
|
}
|
|
8000
|
-
function
|
|
8001
|
-
return
|
|
8000
|
+
function fc(s) {
|
|
8001
|
+
return gc(s) ? Zm(s, true) : nS(s);
|
|
8002
8002
|
}
|
|
8003
8003
|
function aS(s, t) {
|
|
8004
|
-
return s &&
|
|
8004
|
+
return s && mc(t, fc(t), s);
|
|
8005
8005
|
}
|
|
8006
8006
|
var sg = typeof exports == "object" && exports && !exports.nodeType && exports, Hh = sg && typeof module == "object" && module && !module.nodeType && module, oS = Hh && Hh.exports === sg, qh = oS ? fs.Buffer : void 0, jh = qh ? qh.allocUnsafe : void 0;
|
|
8007
8007
|
function rg(s, t) {
|
|
@@ -8033,7 +8033,7 @@ var dS = Object.prototype, lS = dS.propertyIsEnumerable, Gh = Object.getOwnPrope
|
|
|
8033
8033
|
} : ng;
|
|
8034
8034
|
const Xu = uS;
|
|
8035
8035
|
function hS(s, t) {
|
|
8036
|
-
return
|
|
8036
|
+
return mc(s, Xu(s), t);
|
|
8037
8037
|
}
|
|
8038
8038
|
function ag(s, t) {
|
|
8039
8039
|
for (var e = -1, r = t.length, i = s.length; ++e < r; )
|
|
@@ -8049,7 +8049,7 @@ var mS = Object.getOwnPropertySymbols, gS = mS ? function(s) {
|
|
|
8049
8049
|
} : ng;
|
|
8050
8050
|
const og = gS;
|
|
8051
8051
|
function fS(s, t) {
|
|
8052
|
-
return
|
|
8052
|
+
return mc(s, og(s), t);
|
|
8053
8053
|
}
|
|
8054
8054
|
function cg(s, t, e) {
|
|
8055
8055
|
var r = t(s);
|
|
@@ -8059,7 +8059,7 @@ function Xl(s) {
|
|
|
8059
8059
|
return cg(s, Qu, Xu);
|
|
8060
8060
|
}
|
|
8061
8061
|
function vS(s) {
|
|
8062
|
-
return cg(s,
|
|
8062
|
+
return cg(s, fc, og);
|
|
8063
8063
|
}
|
|
8064
8064
|
var TS = Yi(fs, "DataView");
|
|
8065
8065
|
const Zl = TS;
|
|
@@ -8094,10 +8094,10 @@ function AS(s) {
|
|
|
8094
8094
|
return t && typeof s[0] == "string" && IS.call(s, "index") && (e.index = s.index, e.input = s.input), e;
|
|
8095
8095
|
}
|
|
8096
8096
|
var MS = fs.Uint8Array;
|
|
8097
|
-
const
|
|
8097
|
+
const sd = MS;
|
|
8098
8098
|
function eh(s) {
|
|
8099
8099
|
var t = new s.constructor(s.byteLength);
|
|
8100
|
-
return new
|
|
8100
|
+
return new sd(t).set(new sd(s)), t;
|
|
8101
8101
|
}
|
|
8102
8102
|
function DS(s, t) {
|
|
8103
8103
|
var e = t ? eh(s.buffer) : s.buffer;
|
|
@@ -8165,7 +8165,7 @@ var Zh = Object.create, sE = function() {
|
|
|
8165
8165
|
}();
|
|
8166
8166
|
const rE = sE;
|
|
8167
8167
|
function lg(s) {
|
|
8168
|
-
return typeof s.constructor == "function" && !
|
|
8168
|
+
return typeof s.constructor == "function" && !vl(s) ? rE(Zu(s)) : {};
|
|
8169
8169
|
}
|
|
8170
8170
|
var iE = "[object Map]";
|
|
8171
8171
|
function nE(s) {
|
|
@@ -8182,7 +8182,7 @@ const uE = lE;
|
|
|
8182
8182
|
var hE = 1, pE = 2, mE = 4, ug = "[object Arguments]", gE = "[object Array]", fE = "[object Boolean]", vE = "[object Date]", TE = "[object Error]", hg = "[object Function]", yE = "[object GeneratorFunction]", SE = "[object Map]", EE = "[object Number]", pg = "[object Object]", _E = "[object RegExp]", PE = "[object Set]", CE = "[object String]", RE = "[object Symbol]", wE = "[object WeakMap]", bE = "[object ArrayBuffer]", kE = "[object DataView]", IE = "[object Float32Array]", AE = "[object Float64Array]", ME = "[object Int8Array]", DE = "[object Int16Array]", OE = "[object Int32Array]", NE = "[object Uint8Array]", LE = "[object Uint8ClampedArray]", VE = "[object Uint16Array]", xE = "[object Uint32Array]", ve = {};
|
|
8183
8183
|
ve[ug] = ve[gE] = ve[bE] = ve[kE] = ve[fE] = ve[vE] = ve[IE] = ve[AE] = ve[ME] = ve[DE] = ve[OE] = ve[SE] = ve[EE] = ve[pg] = ve[_E] = ve[PE] = ve[CE] = ve[RE] = ve[NE] = ve[LE] = ve[VE] = ve[xE] = true;
|
|
8184
8184
|
ve[TE] = ve[hg] = ve[wE] = false;
|
|
8185
|
-
function
|
|
8185
|
+
function Uc(s, t, e, r, i, n) {
|
|
8186
8186
|
var o, d = t & hE, c = t & pE, h = t & mE;
|
|
8187
8187
|
if (e && (o = i ? e(s, r, i, n) : e(s)), o !== void 0)
|
|
8188
8188
|
return o;
|
|
@@ -8210,18 +8210,18 @@ function $c(s, t, e, r, i, n) {
|
|
|
8210
8210
|
if (_)
|
|
8211
8211
|
return _;
|
|
8212
8212
|
n.set(s, o), uE(s) ? s.forEach(function(R) {
|
|
8213
|
-
o.add(
|
|
8213
|
+
o.add(Uc(R, t, e, R, s, n));
|
|
8214
8214
|
}) : oE(s) && s.forEach(function(R, L) {
|
|
8215
|
-
o.set(L,
|
|
8215
|
+
o.set(L, Uc(R, t, e, L, s, n));
|
|
8216
8216
|
});
|
|
8217
|
-
var P = h ? c ? vS : Xl : c ?
|
|
8217
|
+
var P = h ? c ? vS : Xl : c ? fc : Qu, b = m ? void 0 : P(s);
|
|
8218
8218
|
return ry(b || s, function(R, L) {
|
|
8219
|
-
b && (L = R, R = s[L]), Jm(o, L,
|
|
8219
|
+
b && (L = R, R = s[L]), Jm(o, L, Uc(R, t, e, L, s, n));
|
|
8220
8220
|
}), o;
|
|
8221
8221
|
}
|
|
8222
8222
|
var UE = 1, $E = 4;
|
|
8223
8223
|
function th(s) {
|
|
8224
|
-
return
|
|
8224
|
+
return Uc(s, UE | $E);
|
|
8225
8225
|
}
|
|
8226
8226
|
var FE = "[object Symbol]";
|
|
8227
8227
|
function BE(s) {
|
|
@@ -8868,8 +8868,8 @@ function y_(s) {
|
|
|
8868
8868
|
return s;
|
|
8869
8869
|
};
|
|
8870
8870
|
}
|
|
8871
|
-
var S_ =
|
|
8872
|
-
return
|
|
8871
|
+
var S_ = ed ? function(s, t) {
|
|
8872
|
+
return ed(s, "toString", {
|
|
8873
8873
|
configurable: true,
|
|
8874
8874
|
enumerable: false,
|
|
8875
8875
|
value: y_(t),
|
|
@@ -8897,7 +8897,7 @@ function w_(s, t, e) {
|
|
|
8897
8897
|
if (!gs(e))
|
|
8898
8898
|
return false;
|
|
8899
8899
|
var r = typeof t;
|
|
8900
|
-
return (r == "number" ?
|
|
8900
|
+
return (r == "number" ? gc(e) && Ym(t, e.length) : r == "string" && t in e) ? pc(e[t], s) : false;
|
|
8901
8901
|
}
|
|
8902
8902
|
function b_(s) {
|
|
8903
8903
|
return R_(function(t, e) {
|
|
@@ -8926,13 +8926,13 @@ function L_(s) {
|
|
|
8926
8926
|
function V_(s) {
|
|
8927
8927
|
return this.__data__.has(s);
|
|
8928
8928
|
}
|
|
8929
|
-
function
|
|
8929
|
+
function rd(s) {
|
|
8930
8930
|
var t = -1, e = s == null ? 0 : s.length;
|
|
8931
8931
|
for (this.__data__ = new Qi(); ++t < e; )
|
|
8932
8932
|
this.add(s[t]);
|
|
8933
8933
|
}
|
|
8934
|
-
|
|
8935
|
-
|
|
8934
|
+
rd.prototype.add = rd.prototype.push = L_;
|
|
8935
|
+
rd.prototype.has = V_;
|
|
8936
8936
|
function x_(s, t) {
|
|
8937
8937
|
for (var e = -1, r = s == null ? 0 : s.length; ++e < r; )
|
|
8938
8938
|
if (t(s[e], e, s))
|
|
@@ -8950,7 +8950,7 @@ function Sg(s, t, e, r, i, n) {
|
|
|
8950
8950
|
var h = n.get(s), m = n.get(t);
|
|
8951
8951
|
if (h && m)
|
|
8952
8952
|
return h == t && m == s;
|
|
8953
|
-
var g = -1, T = true, _ = e & F_ ? new
|
|
8953
|
+
var g = -1, T = true, _ = e & F_ ? new rd() : void 0;
|
|
8954
8954
|
for (n.set(s, t), n.set(t, s); ++g < d; ) {
|
|
8955
8955
|
var P = s[g], b = t[g];
|
|
8956
8956
|
if (r)
|
|
@@ -8996,11 +8996,11 @@ function sP(s, t, e, r, i, n, o) {
|
|
|
8996
8996
|
return false;
|
|
8997
8997
|
s = s.buffer, t = t.buffer;
|
|
8998
8998
|
case eP:
|
|
8999
|
-
return !(s.byteLength != t.byteLength || !n(new
|
|
8999
|
+
return !(s.byteLength != t.byteLength || !n(new sd(s), new sd(t)));
|
|
9000
9000
|
case G_:
|
|
9001
9001
|
case W_:
|
|
9002
9002
|
case z_:
|
|
9003
|
-
return
|
|
9003
|
+
return pc(+s, +t);
|
|
9004
9004
|
case J_:
|
|
9005
9005
|
return s.name == t.name && s.message == t.message;
|
|
9006
9006
|
case Y_:
|
|
@@ -9056,18 +9056,18 @@ function aP(s, t, e, r, i, n) {
|
|
|
9056
9056
|
}
|
|
9057
9057
|
return n.delete(s), n.delete(t), b;
|
|
9058
9058
|
}
|
|
9059
|
-
var oP = 1, op = "[object Arguments]", cp = "[object Array]",
|
|
9059
|
+
var oP = 1, op = "[object Arguments]", cp = "[object Array]", wc = "[object Object]", cP = Object.prototype, dp = cP.hasOwnProperty;
|
|
9060
9060
|
function dP(s, t, e, r, i, n) {
|
|
9061
9061
|
var o = Qr(s), d = Qr(t), c = o ? cp : wa(s), h = d ? cp : wa(t);
|
|
9062
|
-
c = c == op ?
|
|
9063
|
-
var m = c ==
|
|
9062
|
+
c = c == op ? wc : c, h = h == op ? wc : h;
|
|
9063
|
+
var m = c == wc, g = h == wc, T = c == h;
|
|
9064
9064
|
if (T && Ca(s)) {
|
|
9065
9065
|
if (!Ca(t))
|
|
9066
9066
|
return false;
|
|
9067
9067
|
o = true, m = false;
|
|
9068
9068
|
}
|
|
9069
9069
|
if (T && !m)
|
|
9070
|
-
return n || (n = new Ms()), o ||
|
|
9070
|
+
return n || (n = new Ms()), o || fl(s) ? Sg(s, t, e, r, i, n) : sP(s, t, c, e, r, i, n);
|
|
9071
9071
|
if (!(e & oP)) {
|
|
9072
9072
|
var _ = m && dp.call(s, "__wrapped__"), P = g && dp.call(t, "__wrapped__");
|
|
9073
9073
|
if (_ || P) {
|
|
@@ -9097,7 +9097,7 @@ var pP = function() {
|
|
|
9097
9097
|
};
|
|
9098
9098
|
const Ul = pP;
|
|
9099
9099
|
var mP = "Expected a function", gP = Math.max, fP = Math.min;
|
|
9100
|
-
function
|
|
9100
|
+
function id(s, t, e) {
|
|
9101
9101
|
var r, i, n, o, d, c, h = 0, m = false, g = false, T = true;
|
|
9102
9102
|
if (typeof s != "function")
|
|
9103
9103
|
throw new TypeError(mP);
|
|
@@ -9145,17 +9145,17 @@ function nd(s, t, e) {
|
|
|
9145
9145
|
return q.cancel = B, q.flush = F, q;
|
|
9146
9146
|
}
|
|
9147
9147
|
function ru(s, t, e) {
|
|
9148
|
-
(e !== void 0 && !
|
|
9148
|
+
(e !== void 0 && !pc(s[t], e) || e === void 0 && !(t in s)) && zu(s, t, e);
|
|
9149
9149
|
}
|
|
9150
9150
|
function vP(s) {
|
|
9151
|
-
return Ds(s) &&
|
|
9151
|
+
return Ds(s) && gc(s);
|
|
9152
9152
|
}
|
|
9153
9153
|
function iu(s, t) {
|
|
9154
9154
|
if (!(t === "constructor" && typeof s[t] == "function") && t != "__proto__")
|
|
9155
9155
|
return s[t];
|
|
9156
9156
|
}
|
|
9157
9157
|
function TP(s) {
|
|
9158
|
-
return
|
|
9158
|
+
return mc(s, fc(s));
|
|
9159
9159
|
}
|
|
9160
9160
|
function yP(s, t, e, r, i, n, o) {
|
|
9161
9161
|
var d = iu(s, e), c = iu(t, e), h = o.get(c);
|
|
@@ -9165,8 +9165,8 @@ function yP(s, t, e, r, i, n, o) {
|
|
|
9165
9165
|
}
|
|
9166
9166
|
var m = n ? n(d, c, e + "", s, t, o) : void 0, g = m === void 0;
|
|
9167
9167
|
if (g) {
|
|
9168
|
-
var T = Qr(c), _ = !T && Ca(c), P = !T && !_ &&
|
|
9169
|
-
m = c, T || _ || P ? Qr(d) ? m = d : vP(d) ? m = ig(d) : _ ? (g = false, m = rg(c, true)) : P ? (g = false, m = dg(c, true)) : m = [] : O_(c) ||
|
|
9168
|
+
var T = Qr(c), _ = !T && Ca(c), P = !T && !_ && fl(c);
|
|
9169
|
+
m = c, T || _ || P ? Qr(d) ? m = d : vP(d) ? m = ig(d) : _ ? (g = false, m = rg(c, true)) : P ? (g = false, m = dg(c, true)) : m = [] : O_(c) || td(c) ? (m = d, td(d) ? m = TP(d) : (!gs(d) || Ku(d)) && (m = lg(c))) : g = false;
|
|
9170
9170
|
}
|
|
9171
9171
|
g && (o.set(c, m), i(m, c, r, n, o), o.delete(c)), ru(s, e, m);
|
|
9172
9172
|
}
|
|
@@ -9178,18 +9178,18 @@ function _g(s, t, e, r, i) {
|
|
|
9178
9178
|
var d = r ? r(iu(s, o), n, o + "", s, t, i) : void 0;
|
|
9179
9179
|
d === void 0 && (d = n), ru(s, o, d);
|
|
9180
9180
|
}
|
|
9181
|
-
},
|
|
9181
|
+
}, fc);
|
|
9182
9182
|
}
|
|
9183
9183
|
var SP = "[object Map]", EP = "[object Set]", _P = Object.prototype, PP = _P.hasOwnProperty;
|
|
9184
9184
|
function CP(s) {
|
|
9185
9185
|
if (s == null)
|
|
9186
9186
|
return true;
|
|
9187
|
-
if (
|
|
9187
|
+
if (gc(s) && (Qr(s) || typeof s == "string" || typeof s.splice == "function" || Ca(s) || fl(s) || td(s)))
|
|
9188
9188
|
return !s.length;
|
|
9189
9189
|
var t = wa(s);
|
|
9190
9190
|
if (t == SP || t == EP)
|
|
9191
9191
|
return !s.size;
|
|
9192
|
-
if (
|
|
9192
|
+
if (vl(s))
|
|
9193
9193
|
return !tg(s).length;
|
|
9194
9194
|
for (var e in s)
|
|
9195
9195
|
if (PP.call(s, e))
|
|
@@ -9271,7 +9271,7 @@ const se = {
|
|
|
9271
9271
|
DISABLE_OPUS_DTX_CF: "disable_opus_dtx_cf",
|
|
9272
9272
|
ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS: "enable_audio_activity_debug_logs"
|
|
9273
9273
|
};
|
|
9274
|
-
function
|
|
9274
|
+
function $c(s) {
|
|
9275
9275
|
const t = {};
|
|
9276
9276
|
return typeof (s == null ? void 0 : s.code) == "number" && (t.code = s.code), typeof (s == null ? void 0 : s.code) == "string" && (t.code = s.code.substring(0, 100)), typeof (s == null ? void 0 : s.name) == "string" && (t.name = s.name.substring(0, 500)), typeof (s == null ? void 0 : s.message) == "string" && (t.message = s.message.substring(0, 500)), typeof (s == null ? void 0 : s.reason) == "string" && (t.reason = s.reason.substring(0, 500)), typeof (s == null ? void 0 : s.stack) == "string" && (t.stack = s.stack.substring(0, 500)), t;
|
|
9277
9277
|
}
|
|
@@ -9314,12 +9314,12 @@ function lp(s, t, e = {}, r = "") {
|
|
|
9314
9314
|
), c = JSON.stringify(d);
|
|
9315
9315
|
return JSON.parse(c);
|
|
9316
9316
|
} catch (n) {
|
|
9317
|
-
const o =
|
|
9317
|
+
const o = $c(n);
|
|
9318
9318
|
i[`${r}.error.message`] = o.message || "", i[`${r}.error.stack`] = o.stack || "", i[`${r}.error.reason`] = o.reason || "", i[`${r}.error.source`] = "safelyFlattenObjForOpenTelemetry";
|
|
9319
9319
|
}
|
|
9320
9320
|
return i;
|
|
9321
9321
|
}
|
|
9322
|
-
const Eo = "chrome", Cg = "opera", Rg = "firefox", wg = "iexplorer", bg = "safari", kg = "nwjs", Ig = "electron", Ag = "react-native", rh = "unknown",
|
|
9322
|
+
const Eo = "chrome", Cg = "opera", Rg = "firefox", wg = "iexplorer", bg = "safari", kg = "nwjs", Ig = "electron", Ag = "react-native", rh = "unknown", nd = {
|
|
9323
9323
|
Chrome: Eo,
|
|
9324
9324
|
Chromium: Eo,
|
|
9325
9325
|
Opera: Cg,
|
|
@@ -9379,8 +9379,8 @@ function OP(s) {
|
|
|
9379
9379
|
if (t = e[i](), t)
|
|
9380
9380
|
return t;
|
|
9381
9381
|
const r = s.getBrowserName();
|
|
9382
|
-
return r in
|
|
9383
|
-
name:
|
|
9382
|
+
return r in nd ? {
|
|
9383
|
+
name: nd[r],
|
|
9384
9384
|
version: s.getBrowserVersion()
|
|
9385
9385
|
} : (t = IP(), t || {
|
|
9386
9386
|
name: rh,
|
|
@@ -9407,7 +9407,7 @@ class NP {
|
|
|
9407
9407
|
const i = OP(this._bowser);
|
|
9408
9408
|
e = i.name, r = i.version;
|
|
9409
9409
|
} else
|
|
9410
|
-
t.name in
|
|
9410
|
+
t.name in nd ? (e = nd[t.name], r = t.version) : (e = rh, r = void 0);
|
|
9411
9411
|
this._name = e, this._version = r;
|
|
9412
9412
|
}
|
|
9413
9413
|
getName() {
|
|
@@ -9596,7 +9596,7 @@ const _e = new LP(), VP = {
|
|
|
9596
9596
|
logs: false
|
|
9597
9597
|
}
|
|
9598
9598
|
};
|
|
9599
|
-
function
|
|
9599
|
+
function ad(s, t) {
|
|
9600
9600
|
const e = s.getValue("overrides");
|
|
9601
9601
|
return e && e[t] ? e[t] : false;
|
|
9602
9602
|
}
|
|
@@ -9623,7 +9623,7 @@ function Mg(s) {
|
|
|
9623
9623
|
})
|
|
9624
9624
|
};
|
|
9625
9625
|
}
|
|
9626
|
-
const $P = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m16.242 2.932 4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561 4.06 21H3v-1.06l4.44-4.44-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.44a.75.75 0 0 0 .426-.373l2.435-4.87a2.75 2.75 0 0 1 4.405-.715Zm3.766 5.886-4.826-4.826a1.25 1.25 0 0 0-2.002.325l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31 6.705 6.704 1.308-3.789a2.25 2.25 0 0 1 1.12-1.277l4.872-2.436a1.25 1.25 0 0 0 .325-2.002Z" fill="currentColor"/></svg>', FP = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 12.02c0 1.06.2 2.1.6 3.08l.6 1.42c.22.55.64 1.01 1.17 1.29.27.14.56.21.86.21h2.55c.77 0 1.49-.41 1.87-1.08.5-.87 1.02-1.7 1.72-2.43l1.32-1.39c.44-.46.97-.84 1.49-1.23l.59-.45a.6.6 0 0 0 .23-.47c0-.75-.54-1.57-1.22-1.79a3.34 3.34 0 0 0-2.78.29V4.5a1.5 1.5 0 0 0-2.05-1.4 1.5 1.5 0 0 0-2.9 0A1.5 1.5 0 0 0 6 4.5v.09A1.5 1.5 0 0 0 4 6v6.02ZM8 4.5v4a.5.5 0 0 0 1 0v-5a.5.5 0 0 1 1 0v5a.5.5 0 0 0 1 0v-4a.5.5 0 0 1 1 0v6a.5.5 0 0 0 .85.37h.01c.22-.22.44-.44.72-.58.7-.35 2.22-.57 2.4.5l-.53.4c-.52.4-1.04.78-1.48 1.24l-1.33 1.38c-.75.79-1.31 1.7-1.85 2.63-.21.36-.6.58-1.01.58H7.23a.87.87 0 0 1-.4-.1 1.55 1.55 0 0 1-.71-.78l-.59-1.42a7.09 7.09 0 0 1-.53-2.7V6a.5.5 0 0 1 1 0v3.5a.5.5 0 0 0 1 0v-5a.5.5 0 0 1 1 0Z" fill="currentColor"></path></svg>',
|
|
9626
|
+
const $P = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m16.242 2.932 4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561 4.06 21H3v-1.06l4.44-4.44-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.44a.75.75 0 0 0 .426-.373l2.435-4.87a2.75 2.75 0 0 1 4.405-.715Zm3.766 5.886-4.826-4.826a1.25 1.25 0 0 0-2.002.325l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31 6.705 6.704 1.308-3.789a2.25 2.25 0 0 1 1.12-1.277l4.872-2.436a1.25 1.25 0 0 0 .325-2.002Z" fill="currentColor"/></svg>', FP = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 12.02c0 1.06.2 2.1.6 3.08l.6 1.42c.22.55.64 1.01 1.17 1.29.27.14.56.21.86.21h2.55c.77 0 1.49-.41 1.87-1.08.5-.87 1.02-1.7 1.72-2.43l1.32-1.39c.44-.46.97-.84 1.49-1.23l.59-.45a.6.6 0 0 0 .23-.47c0-.75-.54-1.57-1.22-1.79a3.34 3.34 0 0 0-2.78.29V4.5a1.5 1.5 0 0 0-2.05-1.4 1.5 1.5 0 0 0-2.9 0A1.5 1.5 0 0 0 6 4.5v.09A1.5 1.5 0 0 0 4 6v6.02ZM8 4.5v4a.5.5 0 0 0 1 0v-5a.5.5 0 0 1 1 0v5a.5.5 0 0 0 1 0v-4a.5.5 0 0 1 1 0v6a.5.5 0 0 0 .85.37h.01c.22-.22.44-.44.72-.58.7-.35 2.22-.57 2.4.5l-.53.4c-.52.4-1.04.78-1.48 1.24l-1.33 1.38c-.75.79-1.31 1.7-1.85 2.63-.21.36-.6.58-1.01.58H7.23a.87.87 0 0 1-.4-.1 1.55 1.55 0 0 1-.71-.78l-.59-1.42a7.09 7.09 0 0 1-.53-2.7V6a.5.5 0 0 1 1 0v3.5a.5.5 0 0 0 1 0v-5a.5.5 0 0 1 1 0Z" fill="currentColor"></path></svg>', bc = (s) => {
|
|
9627
9627
|
if (!s)
|
|
9628
9628
|
return;
|
|
9629
9629
|
if (!s.startsWith("<svg"))
|
|
@@ -9736,7 +9736,7 @@ const Hi = new HP(), ae = class {
|
|
|
9736
9736
|
t.TRACEPARENT = `00-${r}-${e}-01`;
|
|
9737
9737
|
}
|
|
9738
9738
|
static addLogInCurrentSpan(t, e, r = {}, i = false) {
|
|
9739
|
-
r != null && r.error && Object.assign(r, { error:
|
|
9739
|
+
r != null && r.error && Object.assign(r, { error: $c(r.error) });
|
|
9740
9740
|
const n = Hi.getContext(ae.meetingMetadata.peerId);
|
|
9741
9741
|
if (bP(n) && (CP(r) ? console[t]("DyteInternalLogs:: ", t, e) : console[t](
|
|
9742
9742
|
"DyteInternalLogs:: ",
|
|
@@ -9763,7 +9763,7 @@ const Hi = new HP(), ae = class {
|
|
|
9763
9763
|
"error",
|
|
9764
9764
|
"opentelemetry::addLogInCurrentSpan_failed",
|
|
9765
9765
|
{
|
|
9766
|
-
error:
|
|
9766
|
+
error: $c(d)
|
|
9767
9767
|
}
|
|
9768
9768
|
);
|
|
9769
9769
|
}
|
|
@@ -9790,7 +9790,7 @@ const Hi = new HP(), ae = class {
|
|
|
9790
9790
|
"error",
|
|
9791
9791
|
"opentelemetry::sendOtelLogToNewRelic_failed",
|
|
9792
9792
|
{
|
|
9793
|
-
error:
|
|
9793
|
+
error: $c(r)
|
|
9794
9794
|
}
|
|
9795
9795
|
), ae.logsCache.push(...t);
|
|
9796
9796
|
});
|
|
@@ -9926,7 +9926,7 @@ const qP = () => {
|
|
|
9926
9926
|
18: "AI",
|
|
9927
9927
|
19: "Livestream",
|
|
9928
9928
|
20: "Stage"
|
|
9929
|
-
},
|
|
9929
|
+
}, Fc = {
|
|
9930
9930
|
"0000": "Internal exception.",
|
|
9931
9931
|
"0001": "Failed to initialize.",
|
|
9932
9932
|
"0002": "Failed to join room.",
|
|
@@ -10015,14 +10015,14 @@ const qP = () => {
|
|
|
10015
10015
|
2006: "Action not permitted in current stage status",
|
|
10016
10016
|
9900: "Internal exception"
|
|
10017
10017
|
};
|
|
10018
|
-
Object.keys(
|
|
10019
|
-
|
|
10018
|
+
Object.keys(Fc).forEach((s) => {
|
|
10019
|
+
Fc[s] = `{${jP[s.slice(0, 2)]}} ${Fc[s]}`;
|
|
10020
10020
|
});
|
|
10021
10021
|
class w extends Error {
|
|
10022
10022
|
constructor(e, r, i = false) {
|
|
10023
10023
|
super(e);
|
|
10024
10024
|
p(this, "code");
|
|
10025
|
-
this.code = r, this.name = "DyteError", this.message = `[ERR${this.code}]: ${
|
|
10025
|
+
this.code = r, this.name = "DyteError", this.message = `[ERR${this.code}]: ${Fc[this.code]}
|
|
10026
10026
|
${this.message}`;
|
|
10027
10027
|
try {
|
|
10028
10028
|
let n = i;
|
|
@@ -10044,7 +10044,7 @@ ${this.message}`;
|
|
|
10044
10044
|
}
|
|
10045
10045
|
}
|
|
10046
10046
|
}
|
|
10047
|
-
function
|
|
10047
|
+
function kc(s, t, e, r) {
|
|
10048
10048
|
if (r instanceof w)
|
|
10049
10049
|
throw r;
|
|
10050
10050
|
if (r instanceof t) {
|
|
@@ -10060,13 +10060,13 @@ function up(s, t, e) {
|
|
|
10060
10060
|
try {
|
|
10061
10061
|
return i.apply(this);
|
|
10062
10062
|
} catch (o) {
|
|
10063
|
-
|
|
10063
|
+
kc(this, t, e, o);
|
|
10064
10064
|
}
|
|
10065
10065
|
}), n && (s.set = function(o) {
|
|
10066
10066
|
try {
|
|
10067
10067
|
return n.apply(this, [o]);
|
|
10068
10068
|
} catch (d) {
|
|
10069
|
-
|
|
10069
|
+
kc(this, t, e, d);
|
|
10070
10070
|
}
|
|
10071
10071
|
}), s;
|
|
10072
10072
|
}
|
|
@@ -10075,10 +10075,10 @@ function up(s, t, e) {
|
|
|
10075
10075
|
try {
|
|
10076
10076
|
const n = r.apply(this, i);
|
|
10077
10077
|
return n && n instanceof Promise ? n.catch((o) => {
|
|
10078
|
-
|
|
10078
|
+
kc(this, t, e, o);
|
|
10079
10079
|
}) : n;
|
|
10080
10080
|
} catch (n) {
|
|
10081
|
-
|
|
10081
|
+
kc(this, t, e, n);
|
|
10082
10082
|
}
|
|
10083
10083
|
}, s;
|
|
10084
10084
|
}
|
|
@@ -10384,7 +10384,7 @@ const Ch = class extends xt {
|
|
|
10384
10384
|
return l(this, null, function* () {
|
|
10385
10385
|
let i, n;
|
|
10386
10386
|
try {
|
|
10387
|
-
i = yield
|
|
10387
|
+
i = yield bc($P), n = yield bc(FP);
|
|
10388
10388
|
} catch (o) {
|
|
10389
10389
|
}
|
|
10390
10390
|
return new Ch(e, r, i, n);
|
|
@@ -10406,10 +10406,10 @@ const Ch = class extends xt {
|
|
|
10406
10406
|
return l(this, null, function* () {
|
|
10407
10407
|
switch (e) {
|
|
10408
10408
|
case "handRaise":
|
|
10409
|
-
v(this, _n, yield
|
|
10409
|
+
v(this, _n, yield bc(r));
|
|
10410
10410
|
break;
|
|
10411
10411
|
case "pin":
|
|
10412
|
-
v(this, En, yield
|
|
10412
|
+
v(this, En, yield bc(r));
|
|
10413
10413
|
break;
|
|
10414
10414
|
}
|
|
10415
10415
|
});
|
|
@@ -11062,7 +11062,7 @@ class vC extends MessageType {
|
|
|
11062
11062
|
]);
|
|
11063
11063
|
}
|
|
11064
11064
|
}
|
|
11065
|
-
const
|
|
11065
|
+
const vc = new vC();
|
|
11066
11066
|
class TC extends MessageType {
|
|
11067
11067
|
constructor() {
|
|
11068
11068
|
super("media.ConsumerState", [
|
|
@@ -11072,7 +11072,7 @@ class TC extends MessageType {
|
|
|
11072
11072
|
kind: "scalar",
|
|
11073
11073
|
T: 9
|
|
11074
11074
|
},
|
|
11075
|
-
{ no: 2, name: "producer_state", kind: "message", T: () =>
|
|
11075
|
+
{ no: 2, name: "producer_state", kind: "message", T: () => vc },
|
|
11076
11076
|
{ no: 3, name: "producer_track", kind: "message", T: () => mC },
|
|
11077
11077
|
{
|
|
11078
11078
|
no: 4,
|
|
@@ -11403,7 +11403,7 @@ class jC extends MessageType {
|
|
|
11403
11403
|
]);
|
|
11404
11404
|
}
|
|
11405
11405
|
}
|
|
11406
|
-
const
|
|
11406
|
+
const Ic = new jC();
|
|
11407
11407
|
class GC extends MessageType {
|
|
11408
11408
|
constructor() {
|
|
11409
11409
|
super("media.edge.ConsumerToggleRequest", [
|
|
@@ -11659,7 +11659,7 @@ class dR extends MessageType {
|
|
|
11659
11659
|
kind: "scalar",
|
|
11660
11660
|
T: 9
|
|
11661
11661
|
},
|
|
11662
|
-
{ no: 2, name: "producer_states", kind: "message", repeat: 1, T: () =>
|
|
11662
|
+
{ no: 2, name: "producer_states", kind: "message", repeat: 1, T: () => vc },
|
|
11663
11663
|
{
|
|
11664
11664
|
no: 3,
|
|
11665
11665
|
name: "display_name",
|
|
@@ -12014,7 +12014,7 @@ class WR extends MessageType {
|
|
|
12014
12014
|
kind: "scalar",
|
|
12015
12015
|
T: 9
|
|
12016
12016
|
},
|
|
12017
|
-
{ no: 2, name: "producer_state", kind: "message", T: () =>
|
|
12017
|
+
{ no: 2, name: "producer_state", kind: "message", T: () => vc }
|
|
12018
12018
|
]);
|
|
12019
12019
|
}
|
|
12020
12020
|
}
|
|
@@ -12028,7 +12028,7 @@ class KR extends MessageType {
|
|
|
12028
12028
|
kind: "scalar",
|
|
12029
12029
|
T: 9
|
|
12030
12030
|
},
|
|
12031
|
-
{ no: 2, name: "producer_state", kind: "message", T: () =>
|
|
12031
|
+
{ no: 2, name: "producer_state", kind: "message", T: () => vc },
|
|
12032
12032
|
{
|
|
12033
12033
|
no: 3,
|
|
12034
12034
|
name: "initiator_participant_id",
|
|
@@ -12049,7 +12049,7 @@ class zR extends MessageType {
|
|
|
12049
12049
|
kind: "scalar",
|
|
12050
12050
|
T: 9
|
|
12051
12051
|
},
|
|
12052
|
-
{ no: 2, name: "producer_state", kind: "message", T: () =>
|
|
12052
|
+
{ no: 2, name: "producer_state", kind: "message", T: () => vc }
|
|
12053
12053
|
]);
|
|
12054
12054
|
}
|
|
12055
12055
|
}
|
|
@@ -12282,10 +12282,10 @@ var hu;
|
|
|
12282
12282
|
(function(s) {
|
|
12283
12283
|
s[s.PEERS = 0] = "PEERS", s[s.ROOMS = 1] = "ROOMS";
|
|
12284
12284
|
})(hu || (hu = {}));
|
|
12285
|
-
var
|
|
12285
|
+
var od;
|
|
12286
12286
|
(function(s) {
|
|
12287
12287
|
s[s.HIVE = 0] = "HIVE", s[s.CHAT = 1] = "CHAT", s[s.PING = 2] = "PING";
|
|
12288
|
-
})(
|
|
12288
|
+
})(od || (od = {}));
|
|
12289
12289
|
class dw extends MessageType {
|
|
12290
12290
|
constructor() {
|
|
12291
12291
|
super("socket.room.PeerFlags", [
|
|
@@ -12364,11 +12364,11 @@ class uw extends MessageType {
|
|
|
12364
12364
|
]);
|
|
12365
12365
|
}
|
|
12366
12366
|
}
|
|
12367
|
-
const
|
|
12367
|
+
const Tl = new uw();
|
|
12368
12368
|
class hw extends MessageType {
|
|
12369
12369
|
constructor() {
|
|
12370
12370
|
super("socket.room.PeerInfoResponse", [
|
|
12371
|
-
{ no: 1, name: "peer", kind: "message", T: () =>
|
|
12371
|
+
{ no: 1, name: "peer", kind: "message", T: () => Tl }
|
|
12372
12372
|
]);
|
|
12373
12373
|
}
|
|
12374
12374
|
}
|
|
@@ -12421,7 +12421,7 @@ const gw = new mw();
|
|
|
12421
12421
|
class fw extends MessageType {
|
|
12422
12422
|
constructor() {
|
|
12423
12423
|
super("socket.room.RoomPeersInfoResponse", [
|
|
12424
|
-
{ no: 1, name: "peers", kind: "message", repeat: 1, T: () =>
|
|
12424
|
+
{ no: 1, name: "peers", kind: "message", repeat: 1, T: () => Tl }
|
|
12425
12425
|
]);
|
|
12426
12426
|
}
|
|
12427
12427
|
}
|
|
@@ -12538,7 +12538,7 @@ new Pw();
|
|
|
12538
12538
|
class Cw extends MessageType {
|
|
12539
12539
|
constructor() {
|
|
12540
12540
|
super("socket.room.JoinRoomRequest", [
|
|
12541
|
-
{ no: 1, name: "peer", kind: "message", T: () =>
|
|
12541
|
+
{ no: 1, name: "peer", kind: "message", T: () => Tl },
|
|
12542
12542
|
{
|
|
12543
12543
|
no: 3,
|
|
12544
12544
|
name: "room_uuid",
|
|
@@ -12566,7 +12566,7 @@ class Cw extends MessageType {
|
|
|
12566
12566
|
opt: true,
|
|
12567
12567
|
T: 12
|
|
12568
12568
|
},
|
|
12569
|
-
{ no: 7, name: "capabilities", kind: "enum", repeat: 1, T: () => ["socket.room.Capabilities",
|
|
12569
|
+
{ no: 7, name: "capabilities", kind: "enum", repeat: 1, T: () => ["socket.room.Capabilities", od, "CAPABILITIES_"] },
|
|
12570
12570
|
{
|
|
12571
12571
|
no: 8,
|
|
12572
12572
|
name: "timestamp",
|
|
@@ -12582,7 +12582,7 @@ const Rw = new Cw();
|
|
|
12582
12582
|
class ww extends MessageType {
|
|
12583
12583
|
constructor() {
|
|
12584
12584
|
super("socket.room.LeaveRoomRequest", [
|
|
12585
|
-
{ no: 1, name: "peer", kind: "message", T: () =>
|
|
12585
|
+
{ no: 1, name: "peer", kind: "message", T: () => Tl },
|
|
12586
12586
|
{
|
|
12587
12587
|
no: 2,
|
|
12588
12588
|
name: "timestamp",
|
|
@@ -13889,7 +13889,7 @@ class vk extends MessageType {
|
|
|
13889
13889
|
]);
|
|
13890
13890
|
}
|
|
13891
13891
|
}
|
|
13892
|
-
const
|
|
13892
|
+
const Ac = new vk();
|
|
13893
13893
|
class Tk extends MessageType {
|
|
13894
13894
|
constructor() {
|
|
13895
13895
|
super("socket.chat.EditChatMessageResponse", [
|
|
@@ -13897,7 +13897,7 @@ class Tk extends MessageType {
|
|
|
13897
13897
|
]);
|
|
13898
13898
|
}
|
|
13899
13899
|
}
|
|
13900
|
-
const
|
|
13900
|
+
const Mc = new Tk();
|
|
13901
13901
|
class yk extends MessageType {
|
|
13902
13902
|
constructor() {
|
|
13903
13903
|
super("socket.chat.DeleteChatMessageRequest", [
|
|
@@ -13937,7 +13937,7 @@ class Ek extends MessageType {
|
|
|
13937
13937
|
]);
|
|
13938
13938
|
}
|
|
13939
13939
|
}
|
|
13940
|
-
const
|
|
13940
|
+
const Dc = new Ek();
|
|
13941
13941
|
class _k extends MessageType {
|
|
13942
13942
|
constructor() {
|
|
13943
13943
|
super("socket.chat.SearchChatMessagesRequest", [
|
|
@@ -15236,7 +15236,7 @@ const x = Aa(zI, tA), ke = Aa(YI, sA), z = Aa(
|
|
|
15236
15236
|
), xs = Aa(XI, iA), ci = Aa(
|
|
15237
15237
|
ZI,
|
|
15238
15238
|
nA
|
|
15239
|
-
), Xt = Wg(Gg, 16777216), hs = Wg(Gg, 50331648),
|
|
15239
|
+
), Xt = Wg(Gg, 16777216), hs = Wg(Gg, 50331648), Bc = Aa(
|
|
15240
15240
|
eA,
|
|
15241
15241
|
aA
|
|
15242
15242
|
);
|
|
@@ -15442,7 +15442,7 @@ class Zt {
|
|
|
15442
15442
|
ke.editMessage,
|
|
15443
15443
|
mk.toBinary(o)
|
|
15444
15444
|
);
|
|
15445
|
-
return
|
|
15445
|
+
return Mc.fromBinary(d.payload).message;
|
|
15446
15446
|
});
|
|
15447
15447
|
}
|
|
15448
15448
|
deleteMessage(t, e) {
|
|
@@ -15454,7 +15454,7 @@ class Zt {
|
|
|
15454
15454
|
const i = yield a(this, it).sendMessagePromise(
|
|
15455
15455
|
ke.deleteMessage,
|
|
15456
15456
|
Sk.toBinary(r)
|
|
15457
|
-
), n =
|
|
15457
|
+
), n = Dc.fromBinary(i.payload);
|
|
15458
15458
|
return O({
|
|
15459
15459
|
id: n.chatId
|
|
15460
15460
|
}, n.channelId ? { channelId: n.channelId } : {});
|
|
@@ -15517,7 +15517,7 @@ class Zt {
|
|
|
15517
15517
|
ke.pinMessage,
|
|
15518
15518
|
fk.toBinary(r)
|
|
15519
15519
|
);
|
|
15520
|
-
return
|
|
15520
|
+
return Ac.fromBinary(i.payload);
|
|
15521
15521
|
});
|
|
15522
15522
|
}
|
|
15523
15523
|
on(t, e) {
|
|
@@ -15536,21 +15536,21 @@ class Zt {
|
|
|
15536
15536
|
break;
|
|
15537
15537
|
}
|
|
15538
15538
|
case ke.editMessage: {
|
|
15539
|
-
r = Dc.fromBinary.bind(
|
|
15540
|
-
Dc
|
|
15541
|
-
), i = Dc.create();
|
|
15542
|
-
break;
|
|
15543
|
-
}
|
|
15544
|
-
case ke.pinMessage: {
|
|
15545
15539
|
r = Mc.fromBinary.bind(
|
|
15546
15540
|
Mc
|
|
15547
15541
|
), i = Mc.create();
|
|
15548
15542
|
break;
|
|
15549
15543
|
}
|
|
15544
|
+
case ke.pinMessage: {
|
|
15545
|
+
r = Ac.fromBinary.bind(
|
|
15546
|
+
Ac
|
|
15547
|
+
), i = Ac.create();
|
|
15548
|
+
break;
|
|
15549
|
+
}
|
|
15550
15550
|
case ke.deleteMessage: {
|
|
15551
|
-
r =
|
|
15552
|
-
|
|
15553
|
-
), i =
|
|
15551
|
+
r = Dc.fromBinary.bind(
|
|
15552
|
+
Dc
|
|
15553
|
+
), i = Dc.create();
|
|
15554
15554
|
break;
|
|
15555
15555
|
}
|
|
15556
15556
|
}
|
|
@@ -15643,11 +15643,11 @@ function Jg(s) {
|
|
|
15643
15643
|
t[r] = s[e];
|
|
15644
15644
|
}), t;
|
|
15645
15645
|
}
|
|
15646
|
-
function
|
|
15646
|
+
function cd(s, t = {}) {
|
|
15647
15647
|
return s == null ? {} : (Object.getOwnPropertyNames(s).forEach((e) => {
|
|
15648
15648
|
if (typeof s[e] != "function") {
|
|
15649
15649
|
if (typeof s[e] == "object") {
|
|
15650
|
-
|
|
15650
|
+
cd(s[e], t[e] = {});
|
|
15651
15651
|
return;
|
|
15652
15652
|
}
|
|
15653
15653
|
t[e] = s[e];
|
|
@@ -15919,7 +15919,7 @@ class Ut extends fA {
|
|
|
15919
15919
|
}
|
|
15920
15920
|
getPresignedUrls(t, e) {
|
|
15921
15921
|
return l(this, null, function* () {
|
|
15922
|
-
const r =
|
|
15922
|
+
const r = ad(this.context, "chat_upload_expiry"), i = {
|
|
15923
15923
|
roomUUID: this.roomUUID,
|
|
15924
15924
|
filename: t,
|
|
15925
15925
|
expiry: typeof r == "number" ? r : void 0
|
|
@@ -16141,22 +16141,22 @@ var EA = Object.defineProperty, _A = Object.getOwnPropertyDescriptor, pt = (s, t
|
|
|
16141
16141
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
16142
16142
|
return r && i && EA(t, e, i), i;
|
|
16143
16143
|
};
|
|
16144
|
-
const PA = ["text", "image", "file", "custom", "poll"],
|
|
16145
|
-
var re, hi, Be, pi,
|
|
16144
|
+
const PA = ["text", "image", "file", "custom", "poll"], Hc = { maxInvocations: 180, period: 60 };
|
|
16145
|
+
var re, hi, Be, pi, Po, yd, Kg, Co, Tu, Zp;
|
|
16146
16146
|
let ze = (Zp = class extends xt {
|
|
16147
16147
|
constructor(t, e, r, i, n) {
|
|
16148
16148
|
super();
|
|
16149
|
-
f(this,
|
|
16150
|
-
f(this,
|
|
16149
|
+
f(this, yd);
|
|
16150
|
+
f(this, Co);
|
|
16151
16151
|
p(this, "messages");
|
|
16152
16152
|
p(this, "channels", []);
|
|
16153
16153
|
f(this, re, void 0);
|
|
16154
16154
|
f(this, hi, void 0);
|
|
16155
16155
|
f(this, Be, void 0);
|
|
16156
16156
|
f(this, pi, void 0);
|
|
16157
|
-
f(this,
|
|
16157
|
+
f(this, Po, void 0);
|
|
16158
16158
|
p(this, "maxTextLimit", 2e3);
|
|
16159
|
-
v(this,
|
|
16159
|
+
v(this, Po, t), v(this, Be, e), v(this, pi, r), v(this, re, i), v(this, hi, n), this.messages = [];
|
|
16160
16160
|
}
|
|
16161
16161
|
setMaxTextLimit(t) {
|
|
16162
16162
|
this.maxTextLimit = t;
|
|
@@ -16302,10 +16302,10 @@ let ze = (Zp = class extends xt {
|
|
|
16302
16302
|
});
|
|
16303
16303
|
}
|
|
16304
16304
|
get rateLimits() {
|
|
16305
|
-
return
|
|
16305
|
+
return Hc;
|
|
16306
16306
|
}
|
|
16307
16307
|
updateRateLimits(t, e) {
|
|
16308
|
-
|
|
16308
|
+
Hc.maxInvocations = t, Hc.period = e;
|
|
16309
16309
|
}
|
|
16310
16310
|
sendTextMessage(t, e) {
|
|
16311
16311
|
return l(this, null, function* () {
|
|
@@ -16496,7 +16496,7 @@ let ze = (Zp = class extends xt {
|
|
|
16496
16496
|
}
|
|
16497
16497
|
pin(t) {
|
|
16498
16498
|
return l(this, null, function* () {
|
|
16499
|
-
if (!a(this,
|
|
16499
|
+
if (!a(this, Co, Tu))
|
|
16500
16500
|
throw new w("Can`t pin message without joining room", "0505");
|
|
16501
16501
|
if (!a(this, re).permissions.pinParticipant)
|
|
16502
16502
|
throw new w("You do not have permission to pin messages.", "0501");
|
|
@@ -16510,7 +16510,7 @@ let ze = (Zp = class extends xt {
|
|
|
16510
16510
|
}
|
|
16511
16511
|
unpin(t) {
|
|
16512
16512
|
return l(this, null, function* () {
|
|
16513
|
-
if (!a(this,
|
|
16513
|
+
if (!a(this, Co, Tu))
|
|
16514
16514
|
throw new w("Can`t unpin message without joining room", "0505");
|
|
16515
16515
|
if (!a(this, re).permissions.pinParticipant)
|
|
16516
16516
|
throw new w("You do not have permission to unpin messages.", "0501");
|
|
@@ -16606,14 +16606,14 @@ let ze = (Zp = class extends xt {
|
|
|
16606
16606
|
get pinned() {
|
|
16607
16607
|
return this.messages.filter((t) => t.pinned);
|
|
16608
16608
|
}
|
|
16609
|
-
}, re = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(),
|
|
16610
|
-
return a(this,
|
|
16611
|
-
},
|
|
16612
|
-
return a(this,
|
|
16609
|
+
}, re = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), pi = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), yd = /* @__PURE__ */ new WeakSet(), Kg = function() {
|
|
16610
|
+
return a(this, Po).getValue("connectionHandler");
|
|
16611
|
+
}, Co = /* @__PURE__ */ new WeakSet(), Tu = function() {
|
|
16612
|
+
return a(this, yd, Kg).socketJoined === true;
|
|
16613
16613
|
}, Zp);
|
|
16614
16614
|
pt([
|
|
16615
16615
|
y.trace("DyteChat.sendTextMessage"),
|
|
16616
|
-
At(
|
|
16616
|
+
At(Hc)
|
|
16617
16617
|
], ze.prototype, "sendTextMessage", 1);
|
|
16618
16618
|
pt([
|
|
16619
16619
|
y.trace("DyteChat.sendImageMessage"),
|
|
@@ -16667,15 +16667,15 @@ var CA = Object.defineProperty, RA = Object.getOwnPropertyDescriptor, wA = (s, t
|
|
|
16667
16667
|
for (var i = r > 1 ? void 0 : r ? RA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
16668
16668
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
16669
16669
|
return r && i && CA(t, e, i), i;
|
|
16670
|
-
},
|
|
16670
|
+
}, Sd, em;
|
|
16671
16671
|
const ii = (em = class {
|
|
16672
16672
|
constructor(s, t, e, r, i) {
|
|
16673
16673
|
p(this, "chat");
|
|
16674
16674
|
p(this, "chatSocketHandler");
|
|
16675
16675
|
p(this, "chatChannelSocketHandler");
|
|
16676
16676
|
p(this, "self");
|
|
16677
|
-
f(this,
|
|
16678
|
-
v(this,
|
|
16677
|
+
f(this, Sd, void 0);
|
|
16678
|
+
v(this, Sd, s), this.chatSocketHandler = t, this.chatChannelSocketHandler = e, this.chat = new ze(
|
|
16679
16679
|
s,
|
|
16680
16680
|
t,
|
|
16681
16681
|
e,
|
|
@@ -16870,7 +16870,7 @@ const ii = (em = class {
|
|
|
16870
16870
|
}
|
|
16871
16871
|
);
|
|
16872
16872
|
}
|
|
16873
|
-
},
|
|
16873
|
+
}, Sd = /* @__PURE__ */ new WeakMap(), em);
|
|
16874
16874
|
let ps = ii;
|
|
16875
16875
|
wA([
|
|
16876
16876
|
y.trace("ChatController.setupEvents")
|
|
@@ -16879,21 +16879,21 @@ var bA = Object.defineProperty, kA = Object.getOwnPropertyDescriptor, IA = (s, t
|
|
|
16879
16879
|
for (var i = r > 1 ? void 0 : r ? kA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
16880
16880
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
16881
16881
|
return r && i && bA(t, e, i), i;
|
|
16882
|
-
},
|
|
16882
|
+
}, Ed, zg, _d, Yg, Cn, Rn, Ro, tm;
|
|
16883
16883
|
let yu = (tm = class extends xt {
|
|
16884
16884
|
constructor(t, e, r) {
|
|
16885
16885
|
super();
|
|
16886
|
+
f(this, Ed);
|
|
16886
16887
|
f(this, _d);
|
|
16887
|
-
f(this, Pd);
|
|
16888
16888
|
p(this, "items");
|
|
16889
16889
|
f(this, Cn, void 0);
|
|
16890
16890
|
f(this, Rn, void 0);
|
|
16891
|
-
f(this,
|
|
16892
|
-
v(this,
|
|
16891
|
+
f(this, Ro, void 0);
|
|
16892
|
+
v(this, Ro, t), v(this, Cn, e), v(this, Rn, r), this.items = [];
|
|
16893
16893
|
}
|
|
16894
16894
|
create(t, e, r = false, i = false) {
|
|
16895
16895
|
return l(this, null, function* () {
|
|
16896
|
-
if (!a(this,
|
|
16896
|
+
if (!a(this, _d, Yg))
|
|
16897
16897
|
throw new w("Can't create polls without joining room", "0705");
|
|
16898
16898
|
if (!a(this, Cn).permissions.polls.canCreate) {
|
|
16899
16899
|
u.error("DytePolls::create::permission_denied");
|
|
@@ -16931,12 +16931,12 @@ let yu = (tm = class extends xt {
|
|
|
16931
16931
|
yield a(this, Rn).votePoll(t, e);
|
|
16932
16932
|
});
|
|
16933
16933
|
}
|
|
16934
|
-
},
|
|
16935
|
-
return a(this,
|
|
16936
|
-
},
|
|
16934
|
+
}, Ed = /* @__PURE__ */ new WeakSet(), zg = function() {
|
|
16935
|
+
return a(this, Ro).getValue("connectionHandler");
|
|
16936
|
+
}, _d = /* @__PURE__ */ new WeakSet(), Yg = function() {
|
|
16937
16937
|
var t;
|
|
16938
|
-
return ((t = a(this,
|
|
16939
|
-
}, Cn = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(),
|
|
16938
|
+
return ((t = a(this, Ed, zg)) == null ? void 0 : t.socketJoined) === true;
|
|
16939
|
+
}, Cn = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), Ro = /* @__PURE__ */ new WeakMap(), tm);
|
|
16940
16940
|
yu = IA([
|
|
16941
16941
|
ht("0700")
|
|
16942
16942
|
], yu);
|
|
@@ -17043,27 +17043,27 @@ var OA = Object.defineProperty, NA = Object.getOwnPropertyDescriptor, LA = (s, t
|
|
|
17043
17043
|
for (var i = r > 1 ? void 0 : r ? NA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
17044
17044
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17045
17045
|
return r && i && OA(t, e, i), i;
|
|
17046
|
-
}, Xg = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Xg || {}), bn,
|
|
17046
|
+
}, Xg = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Xg || {}), bn, wo, Eu, gi, bo, rm;
|
|
17047
17047
|
let Su = (rm = class extends xt {
|
|
17048
17048
|
constructor(t, e, r, i, n) {
|
|
17049
17049
|
super();
|
|
17050
|
-
f(this,
|
|
17050
|
+
f(this, wo);
|
|
17051
17051
|
p(this, "selfActiveTab");
|
|
17052
17052
|
p(this, "broadcastTabChanges");
|
|
17053
17053
|
f(this, bn, void 0);
|
|
17054
17054
|
f(this, gi, void 0);
|
|
17055
|
-
f(this,
|
|
17055
|
+
f(this, bo, void 0);
|
|
17056
17056
|
p(this, "viewType");
|
|
17057
17057
|
p(this, "meetingStartedTimestamp");
|
|
17058
17058
|
p(this, "meetingTitle");
|
|
17059
17059
|
p(this, "sessionId");
|
|
17060
|
-
v(this, bn, t), v(this, gi, e), this.viewType = r, v(this,
|
|
17060
|
+
v(this, bn, t), v(this, gi, e), this.viewType = r, v(this, bo, i), this.meetingTitle = n, this.broadcastTabChanges = e.permissions.canSpotlight;
|
|
17061
17061
|
}
|
|
17062
17062
|
get socketState() {
|
|
17063
|
-
return a(this,
|
|
17063
|
+
return a(this, wo, Eu).socketState;
|
|
17064
17064
|
}
|
|
17065
17065
|
get mediaState() {
|
|
17066
|
-
return a(this,
|
|
17066
|
+
return a(this, wo, Eu).mediaState;
|
|
17067
17067
|
}
|
|
17068
17068
|
get meetingId() {
|
|
17069
17069
|
return a(this, bn).getValue("meetingId");
|
|
@@ -17085,14 +17085,14 @@ let Su = (rm = class extends xt {
|
|
|
17085
17085
|
}), this.selfActiveTab = t, e === 0 && this.emit("selfTabUpdate", t), (r = a(this, gi).permissions) != null && r.canSpotlight && this.broadcastTabChanges && e === 0 && this.assertActiveTabToRoom();
|
|
17086
17086
|
}
|
|
17087
17087
|
assertActiveTabToRoom() {
|
|
17088
|
-
a(this,
|
|
17088
|
+
a(this, bo).broadcastMessage("spotlight", {
|
|
17089
17089
|
userId: a(this, gi).userId,
|
|
17090
17090
|
currentTab: this.selfActiveTab
|
|
17091
17091
|
});
|
|
17092
17092
|
}
|
|
17093
|
-
}, bn = /* @__PURE__ */ new WeakMap(),
|
|
17093
|
+
}, bn = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakSet(), Eu = function() {
|
|
17094
17094
|
return a(this, bn).getValue("connectionHandler");
|
|
17095
|
-
}, gi = /* @__PURE__ */ new WeakMap(),
|
|
17095
|
+
}, gi = /* @__PURE__ */ new WeakMap(), bo = /* @__PURE__ */ new WeakMap(), rm);
|
|
17096
17096
|
Su = LA([
|
|
17097
17097
|
ht("0800")
|
|
17098
17098
|
], Su);
|
|
@@ -17190,7 +17190,7 @@ var $A = Object.defineProperty, FA = Object.getOwnPropertyDescriptor, BA = (s, t
|
|
|
17190
17190
|
for (var i = r > 1 ? void 0 : r ? FA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
17191
17191
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17192
17192
|
return r && i && $A(t, e, i), i;
|
|
17193
|
-
}, Pr, kn,
|
|
17193
|
+
}, Pr, kn, Pd, im;
|
|
17194
17194
|
const ef = (im = class {
|
|
17195
17195
|
constructor(s, t, e, r, i, n) {
|
|
17196
17196
|
p(this, "meta");
|
|
@@ -17198,8 +17198,8 @@ const ef = (im = class {
|
|
|
17198
17198
|
f(this, Pr, void 0);
|
|
17199
17199
|
f(this, kn, void 0);
|
|
17200
17200
|
p(this, "aiSocketHandler");
|
|
17201
|
-
f(this,
|
|
17202
|
-
v(this,
|
|
17201
|
+
f(this, Pd, void 0);
|
|
17202
|
+
v(this, Pd, s), this.meta = new Su(
|
|
17203
17203
|
s,
|
|
17204
17204
|
t,
|
|
17205
17205
|
t.config.viewType,
|
|
@@ -17330,7 +17330,7 @@ const ef = (im = class {
|
|
|
17330
17330
|
u.debug(`${t} Received transcript for peer ${n} - ${o}: ${d}`);
|
|
17331
17331
|
});
|
|
17332
17332
|
}
|
|
17333
|
-
}, Pr = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(),
|
|
17333
|
+
}, Pr = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), Pd = /* @__PURE__ */ new WeakMap(), im);
|
|
17334
17334
|
let tf = ef;
|
|
17335
17335
|
BA([
|
|
17336
17336
|
y.trace("MetaController.setupEvents")
|
|
@@ -17339,19 +17339,19 @@ var HA = Object.defineProperty, qA = Object.getOwnPropertyDescriptor, Zi = (s, t
|
|
|
17339
17339
|
for (var i = r > 1 ? void 0 : r ? qA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
17340
17340
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17341
17341
|
return r && i && HA(t, e, i), i;
|
|
17342
|
-
}, jt, In, ce,
|
|
17342
|
+
}, jt, In, ce, ko, Cs, ns, Io, _u, An, qc;
|
|
17343
17343
|
class Zr extends xt {
|
|
17344
17344
|
constructor(e, r, i, n, o) {
|
|
17345
17345
|
super();
|
|
17346
|
-
f(this,
|
|
17346
|
+
f(this, Io);
|
|
17347
17347
|
f(this, An);
|
|
17348
17348
|
f(this, jt, void 0);
|
|
17349
17349
|
f(this, In, void 0);
|
|
17350
17350
|
f(this, ce, void 0);
|
|
17351
|
-
f(this,
|
|
17351
|
+
f(this, ko, void 0);
|
|
17352
17352
|
f(this, Cs, void 0);
|
|
17353
17353
|
f(this, ns, void 0);
|
|
17354
|
-
v(this, ns, e), v(this, jt, n), v(this, In, o), v(this, ce, r), v(this,
|
|
17354
|
+
v(this, ns, e), v(this, jt, n), v(this, In, o), v(this, ce, r), v(this, ko, i), v(this, Cs, []), this.setupEvents();
|
|
17355
17355
|
}
|
|
17356
17356
|
get status() {
|
|
17357
17357
|
return a(this, ns).getValue("stageStatus");
|
|
@@ -17390,7 +17390,7 @@ class Zr extends xt {
|
|
|
17390
17390
|
throw u.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
|
|
17391
17391
|
if (!a(this, ce).permissions.acceptStageRequests)
|
|
17392
17392
|
throw u.error("DyteStage::get_access_request::permission_denied"), new w("You do not have permission to perform this action", "2001");
|
|
17393
|
-
const e = a(this,
|
|
17393
|
+
const e = a(this, ko).joined.toArray().filter(
|
|
17394
17394
|
(r) => r.stageStatus === "REQUESTED_TO_JOIN_STAGE"
|
|
17395
17395
|
).map((r) => ({
|
|
17396
17396
|
displayName: r.name,
|
|
@@ -17409,17 +17409,17 @@ class Zr extends xt {
|
|
|
17409
17409
|
"2006"
|
|
17410
17410
|
);
|
|
17411
17411
|
if (a(this, ce).permissions.stageAccess === K.Allowed) {
|
|
17412
|
-
$(this, An,
|
|
17412
|
+
$(this, An, qc).call(this, "ACCEPTED_TO_JOIN_STAGE");
|
|
17413
17413
|
return;
|
|
17414
17414
|
}
|
|
17415
|
-
a(this, jt).requestAccess(), $(this, An,
|
|
17415
|
+
a(this, jt).requestAccess(), $(this, An, qc).call(this, "REQUESTED_TO_JOIN_STAGE");
|
|
17416
17416
|
});
|
|
17417
17417
|
}
|
|
17418
17418
|
cancelRequestAccess() {
|
|
17419
17419
|
return l(this, null, function* () {
|
|
17420
17420
|
if (!a(this, ce).permissions.stageEnabled)
|
|
17421
17421
|
throw u.error("DyteStage::stage_disabled"), new w("Stage is disabled", "2003");
|
|
17422
|
-
a(this, jt).cancelRequestAccess(), $(this, An,
|
|
17422
|
+
a(this, jt).cancelRequestAccess(), $(this, An, qc).call(this, "OFF_STAGE");
|
|
17423
17423
|
});
|
|
17424
17424
|
}
|
|
17425
17425
|
grantAccess(e) {
|
|
@@ -17457,7 +17457,7 @@ class Zr extends xt {
|
|
|
17457
17457
|
const { peers: r } = yield a(this, In).getStagePeers();
|
|
17458
17458
|
I.emit(A.SOCKET_PEERS, r);
|
|
17459
17459
|
}
|
|
17460
|
-
a(this, ns).setValue("stageStatus", "ON_STAGE"), a(this, ce).audioEnabled && a(this,
|
|
17460
|
+
a(this, ns).setValue("stageStatus", "ON_STAGE"), a(this, ce).audioEnabled && a(this, Io, _u).shareMic(a(this, ce).audioTrack), a(this, ce).videoEnabled && a(this, Io, _u).shareWebcam(a(this, ce).videoTrack);
|
|
17461
17461
|
});
|
|
17462
17462
|
}
|
|
17463
17463
|
leave() {
|
|
@@ -17484,9 +17484,9 @@ class Zr extends xt {
|
|
|
17484
17484
|
});
|
|
17485
17485
|
}
|
|
17486
17486
|
}
|
|
17487
|
-
jt = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(),
|
|
17487
|
+
jt = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakSet(), _u = function() {
|
|
17488
17488
|
return a(this, ns).getValue("roomNodeClient");
|
|
17489
|
-
}, An = /* @__PURE__ */ new WeakSet(),
|
|
17489
|
+
}, An = /* @__PURE__ */ new WeakSet(), qc = function(e) {
|
|
17490
17490
|
return l(this, null, function* () {
|
|
17491
17491
|
this.status !== e && a(this, ns).setValue("stageStatus", e);
|
|
17492
17492
|
});
|
|
@@ -17535,14 +17535,14 @@ var GA = Object.defineProperty, WA = Object.getOwnPropertyDescriptor, JA = (s, t
|
|
|
17535
17535
|
for (var i = r > 1 ? void 0 : r ? WA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
17536
17536
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17537
17537
|
return r && i && GA(t, e, i), i;
|
|
17538
|
-
}, Cr, fi, Rr,
|
|
17538
|
+
}, Cr, fi, Rr, Ao, Hs;
|
|
17539
17539
|
class sf {
|
|
17540
17540
|
constructor(t, e, r, i, n) {
|
|
17541
17541
|
p(this, "stage");
|
|
17542
17542
|
f(this, Cr, void 0);
|
|
17543
17543
|
f(this, fi, void 0);
|
|
17544
17544
|
f(this, Rr, void 0);
|
|
17545
|
-
f(this,
|
|
17545
|
+
f(this, Ao, 0);
|
|
17546
17546
|
f(this, Hs, void 0);
|
|
17547
17547
|
v(this, Hs, t), this.stage = new Zr(
|
|
17548
17548
|
t,
|
|
@@ -17568,7 +17568,7 @@ class sf {
|
|
|
17568
17568
|
if (a(this, Cr).permissions.stageAccess !== K.Allowed)
|
|
17569
17569
|
return;
|
|
17570
17570
|
const e = (r = t == null ? void 0 : t.stageRequests) != null ? r : [];
|
|
17571
|
-
yield I.emitAsync(A.GET_STAGE_REQUESTS, e), a(this,
|
|
17571
|
+
yield I.emitAsync(A.GET_STAGE_REQUESTS, e), a(this, Ao) < e.length && e.length > 0 && this.stage.emit("newStageRequest", { count: e.length }), v(this, Ao, e.length), this.stage.emit("stageAccessRequestUpdate", e);
|
|
17572
17572
|
})
|
|
17573
17573
|
);
|
|
17574
17574
|
}
|
|
@@ -17634,11 +17634,11 @@ class sf {
|
|
|
17634
17634
|
});
|
|
17635
17635
|
}
|
|
17636
17636
|
}
|
|
17637
|
-
Cr = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(),
|
|
17637
|
+
Cr = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap();
|
|
17638
17638
|
JA([
|
|
17639
17639
|
y.trace("DyteStage.setupEvents")
|
|
17640
17640
|
], sf.prototype, "setupEvents", 1);
|
|
17641
|
-
var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor,
|
|
17641
|
+
var KA = Object.defineProperty, zA = Object.getOwnPropertyDescriptor, yl = (s, t, e, r) => {
|
|
17642
17642
|
for (var i = r > 1 ? void 0 : r ? zA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
17643
17643
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
17644
17644
|
return r && i && KA(t, e, i), i;
|
|
@@ -17827,13 +17827,13 @@ let ba = (nm = class extends Ia {
|
|
|
17827
17827
|
});
|
|
17828
17828
|
c ? (d = a(this, Mn).joined.get(r.peerId), a(this, Ot).id === c && (d = h)) : d = h, this.sendIframeEvent({
|
|
17829
17829
|
type: Ae.getPeer,
|
|
17830
|
-
payload: { peer: d &&
|
|
17830
|
+
payload: { peer: d && cd(d) },
|
|
17831
17831
|
uuid: e.uuid
|
|
17832
17832
|
});
|
|
17833
17833
|
break;
|
|
17834
17834
|
}
|
|
17835
17835
|
case Ae.getPeers: {
|
|
17836
|
-
const d = a(this, Mn).joined.toArray().map((c) =>
|
|
17836
|
+
const d = a(this, Mn).joined.toArray().map((c) => cd(c));
|
|
17837
17837
|
this.sendIframeEvent({
|
|
17838
17838
|
type: Ae.getPeers,
|
|
17839
17839
|
payload: { peers: d },
|
|
@@ -17990,16 +17990,16 @@ let ba = (nm = class extends Ia {
|
|
|
17990
17990
|
});
|
|
17991
17991
|
}
|
|
17992
17992
|
}, nt = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), nm);
|
|
17993
|
-
|
|
17993
|
+
yl([
|
|
17994
17994
|
At({ maxInvocations: 5, period: 1 })
|
|
17995
17995
|
], ba.prototype, "sendData", 1);
|
|
17996
|
-
|
|
17996
|
+
yl([
|
|
17997
17997
|
y.trace("DytePlugin.activatePlugin")
|
|
17998
17998
|
], ba.prototype, "activate", 1);
|
|
17999
|
-
|
|
17999
|
+
yl([
|
|
18000
18000
|
y.trace("DytePlugin.deactivatePlugin")
|
|
18001
18001
|
], ba.prototype, "deactivate", 1);
|
|
18002
|
-
ba =
|
|
18002
|
+
ba = yl([
|
|
18003
18003
|
ht("0600")
|
|
18004
18004
|
], ba);
|
|
18005
18005
|
var Le, Ti;
|
|
@@ -18118,18 +18118,18 @@ let Pu = class {
|
|
|
18118
18118
|
Pu = XA([
|
|
18119
18119
|
ht("0600")
|
|
18120
18120
|
], Pu);
|
|
18121
|
-
var ZA = Object.defineProperty, eM = Object.getOwnPropertyDescriptor,
|
|
18121
|
+
var ZA = Object.defineProperty, eM = Object.getOwnPropertyDescriptor, Sl = (s, t, e, r) => {
|
|
18122
18122
|
for (var i = r > 1 ? void 0 : r ? eM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
18123
18123
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18124
18124
|
return r && i && ZA(t, e, i), i;
|
|
18125
|
-
}, Gt, Ln,
|
|
18125
|
+
}, Gt, Ln, Mo, am;
|
|
18126
18126
|
const nf = (am = class {
|
|
18127
18127
|
constructor(s, t, e, r) {
|
|
18128
18128
|
p(this, "plugins");
|
|
18129
18129
|
f(this, Gt, void 0);
|
|
18130
18130
|
f(this, Ln, void 0);
|
|
18131
|
-
f(this,
|
|
18132
|
-
v(this, Gt, t), v(this, Ln, e), v(this,
|
|
18131
|
+
f(this, Mo, void 0);
|
|
18132
|
+
v(this, Gt, t), v(this, Ln, e), v(this, Mo, s), this.plugins = r, this.setupEvents();
|
|
18133
18133
|
}
|
|
18134
18134
|
static init(s, t, e, r, i, n, o, d) {
|
|
18135
18135
|
return l(this, null, function* () {
|
|
@@ -18307,30 +18307,30 @@ const nf = (am = class {
|
|
|
18307
18307
|
this.broadcastIframeEvent(Ae.chatMessage, { message: t });
|
|
18308
18308
|
}
|
|
18309
18309
|
), I.on(A.PEER_JOINED_INTERNAL, (s) => {
|
|
18310
|
-
const t =
|
|
18310
|
+
const t = cd(s);
|
|
18311
18311
|
this.broadcastIframeEvent(Ae.peerJoined, t);
|
|
18312
18312
|
}), I.on(A.PEER_CLOSED, (s) => {
|
|
18313
18313
|
this.broadcastIframeEvent(Ae.peerLeft, s);
|
|
18314
18314
|
}), I.on(A.UPDATE_PEER_STAGE_STATUS, (s) => {
|
|
18315
18315
|
this.broadcastIframeEvent(Ae.peerStageStatusUpdate, s);
|
|
18316
|
-
}), a(this,
|
|
18316
|
+
}), a(this, Mo).subscribe("stageStatus", (s) => {
|
|
18317
18317
|
this.broadcastIframeEvent(Ae.stageStatusUpdate, s);
|
|
18318
18318
|
});
|
|
18319
18319
|
}
|
|
18320
|
-
}, Gt = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(),
|
|
18321
|
-
let
|
|
18322
|
-
|
|
18320
|
+
}, Gt = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), am);
|
|
18321
|
+
let Tc = nf;
|
|
18322
|
+
Sl([
|
|
18323
18323
|
y.trace("PluginController.getRoomPlugins")
|
|
18324
|
-
],
|
|
18325
|
-
|
|
18324
|
+
], Tc.prototype, "getRoomPlugins", 1);
|
|
18325
|
+
Sl([
|
|
18326
18326
|
y.trace("PluginController.enableForSelf")
|
|
18327
|
-
],
|
|
18328
|
-
|
|
18327
|
+
], Tc.prototype, "enablePlugin", 1);
|
|
18328
|
+
Sl([
|
|
18329
18329
|
y.trace("PluginController.disableForSelf")
|
|
18330
|
-
],
|
|
18331
|
-
|
|
18330
|
+
], Tc.prototype, "disablePlugin", 1);
|
|
18331
|
+
Sl([
|
|
18332
18332
|
y.trace("PluginController.setupEvents")
|
|
18333
|
-
],
|
|
18333
|
+
], Tc.prototype, "setupEvents", 1);
|
|
18334
18334
|
class tM {
|
|
18335
18335
|
constructor() {
|
|
18336
18336
|
p(this, "mediaJoined");
|
|
@@ -18404,20 +18404,20 @@ class tM {
|
|
|
18404
18404
|
r && (I.emit(A.SOCKET_STATE_UPDATE, r), this.socketState = r);
|
|
18405
18405
|
}
|
|
18406
18406
|
}
|
|
18407
|
-
var sM = Object.defineProperty, rM = Object.getOwnPropertyDescriptor,
|
|
18407
|
+
var sM = Object.defineProperty, rM = Object.getOwnPropertyDescriptor, yc = (s, t, e, r) => {
|
|
18408
18408
|
for (var i = r > 1 ? void 0 : r ? rM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
18409
18409
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18410
18410
|
return r && i && sM(t, e, i), i;
|
|
18411
|
-
}, Vn,
|
|
18411
|
+
}, Vn, Do, xn, jc, om;
|
|
18412
18412
|
let Ji = (om = class extends xt {
|
|
18413
18413
|
constructor(t, e) {
|
|
18414
18414
|
super();
|
|
18415
18415
|
f(this, xn);
|
|
18416
18416
|
f(this, Vn, void 0);
|
|
18417
|
-
f(this,
|
|
18417
|
+
f(this, Do, void 0);
|
|
18418
18418
|
p(this, "recordingPeerIds", []);
|
|
18419
18419
|
p(this, "recordings", []);
|
|
18420
|
-
v(this,
|
|
18420
|
+
v(this, Do, t), v(this, Vn, e);
|
|
18421
18421
|
}
|
|
18422
18422
|
get recordingState() {
|
|
18423
18423
|
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";
|
|
@@ -18439,7 +18439,7 @@ let Ji = (om = class extends xt {
|
|
|
18439
18439
|
"1005"
|
|
18440
18440
|
);
|
|
18441
18441
|
try {
|
|
18442
|
-
const e = st(), { recording: r = {} } = a(this,
|
|
18442
|
+
const e = st(), { recording: r = {} } = a(this, Do).getValue("defaults"), i = yield e.startRecording(r, t == null ? void 0 : t.allowMultiple);
|
|
18443
18443
|
this.updateRecordings([...this.recordings, {
|
|
18444
18444
|
id: i,
|
|
18445
18445
|
state: "STARTING",
|
|
@@ -18454,20 +18454,20 @@ let Ji = (om = class extends xt {
|
|
|
18454
18454
|
}
|
|
18455
18455
|
stop(t) {
|
|
18456
18456
|
return l(this, null, function* () {
|
|
18457
|
-
yield $(this, xn,
|
|
18457
|
+
yield $(this, xn, jc).call(this, "stop", ["RECORDING", "PAUSED"], t);
|
|
18458
18458
|
});
|
|
18459
18459
|
}
|
|
18460
18460
|
pause(t) {
|
|
18461
18461
|
return l(this, null, function* () {
|
|
18462
|
-
yield $(this, xn,
|
|
18462
|
+
yield $(this, xn, jc).call(this, "pause", ["RECORDING"], t);
|
|
18463
18463
|
});
|
|
18464
18464
|
}
|
|
18465
18465
|
resume(t) {
|
|
18466
18466
|
return l(this, null, function* () {
|
|
18467
|
-
yield $(this, xn,
|
|
18467
|
+
yield $(this, xn, jc).call(this, "resume", ["PAUSED"], t);
|
|
18468
18468
|
});
|
|
18469
18469
|
}
|
|
18470
|
-
}, Vn = /* @__PURE__ */ new WeakMap(),
|
|
18470
|
+
}, Vn = /* @__PURE__ */ new WeakMap(), Do = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakSet(), jc = function(t, e, r) {
|
|
18471
18471
|
return l(this, null, function* () {
|
|
18472
18472
|
if (!a(this, Vn).permissions.canRecord)
|
|
18473
18473
|
throw u.error("DyteRecording::stop::permission_denied"), new w("User does not have permission to stop recording", "1001");
|
|
@@ -18500,32 +18500,32 @@ let Ji = (om = class extends xt {
|
|
|
18500
18500
|
}));
|
|
18501
18501
|
});
|
|
18502
18502
|
}, om);
|
|
18503
|
-
|
|
18503
|
+
yc([
|
|
18504
18504
|
y.trace("DyteRecording.start")
|
|
18505
18505
|
], Ji.prototype, "start", 1);
|
|
18506
|
-
|
|
18506
|
+
yc([
|
|
18507
18507
|
y.trace("DyteRecording.stop")
|
|
18508
18508
|
], Ji.prototype, "stop", 1);
|
|
18509
|
-
|
|
18509
|
+
yc([
|
|
18510
18510
|
y.trace("DyteRecording.stop")
|
|
18511
18511
|
], Ji.prototype, "pause", 1);
|
|
18512
|
-
|
|
18512
|
+
yc([
|
|
18513
18513
|
y.trace("DyteRecording.stop")
|
|
18514
18514
|
], Ji.prototype, "resume", 1);
|
|
18515
|
-
Ji =
|
|
18515
|
+
Ji = yc([
|
|
18516
18516
|
ht("1000")
|
|
18517
18517
|
], Ji);
|
|
18518
18518
|
var iM = Object.defineProperty, nM = Object.getOwnPropertyDescriptor, aM = (s, t, e, r) => {
|
|
18519
18519
|
for (var i = r > 1 ? void 0 : r ? nM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
18520
18520
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18521
18521
|
return r && i && iM(t, e, i), i;
|
|
18522
|
-
},
|
|
18522
|
+
}, Cd;
|
|
18523
18523
|
class af {
|
|
18524
18524
|
constructor(t, e, r) {
|
|
18525
18525
|
p(this, "recording");
|
|
18526
18526
|
p(this, "room");
|
|
18527
|
-
f(this,
|
|
18528
|
-
v(this,
|
|
18527
|
+
f(this, Cd, void 0);
|
|
18528
|
+
v(this, Cd, t), this.recording = new Ji(t, e), this.room = r, this.setupEvents();
|
|
18529
18529
|
}
|
|
18530
18530
|
getRecordingTypeFromProtoType(t) {
|
|
18531
18531
|
let e;
|
|
@@ -18577,7 +18577,7 @@ class af {
|
|
|
18577
18577
|
});
|
|
18578
18578
|
}
|
|
18579
18579
|
}
|
|
18580
|
-
|
|
18580
|
+
Cd = /* @__PURE__ */ new WeakMap();
|
|
18581
18581
|
aM([
|
|
18582
18582
|
y.trace("RecordingController.setupEvents")
|
|
18583
18583
|
], af.prototype, "setupEvents", 1);
|
|
@@ -18621,7 +18621,7 @@ var cM = Object.defineProperty, dM = Object.getOwnPropertyDescriptor, $t = (s, t
|
|
|
18621
18621
|
for (var i = r > 1 ? void 0 : r ? dM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
18622
18622
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
18623
18623
|
return r && i && cM(t, e, i), i;
|
|
18624
|
-
}, qe, Ve, ye, Rs, Wt,
|
|
18624
|
+
}, qe, Ve, ye, Rs, Wt, Oo, Rd;
|
|
18625
18625
|
class Mt extends Ia {
|
|
18626
18626
|
constructor(e, r, i = Cu, n = true) {
|
|
18627
18627
|
super();
|
|
@@ -18630,11 +18630,11 @@ class Mt extends Ia {
|
|
|
18630
18630
|
f(this, ye, void 0);
|
|
18631
18631
|
f(this, Rs, void 0);
|
|
18632
18632
|
f(this, Wt, void 0);
|
|
18633
|
-
f(this,
|
|
18634
|
-
f(this,
|
|
18633
|
+
f(this, Oo, void 0);
|
|
18634
|
+
f(this, Rd, void 0);
|
|
18635
18635
|
p(this, "audioUpdateInProgress");
|
|
18636
18636
|
p(this, "videoUpdateInProgress");
|
|
18637
|
-
v(this,
|
|
18637
|
+
v(this, Rd, e), this.audioUpdateInProgress = false, this.videoUpdateInProgress = false, v(this, qe, new of(e, r)), v(this, Ve, new MM(
|
|
18638
18638
|
a(this, qe),
|
|
18639
18639
|
void 0,
|
|
18640
18640
|
i
|
|
@@ -18646,7 +18646,7 @@ class Mt extends Ia {
|
|
|
18646
18646
|
a(this, qe)
|
|
18647
18647
|
)), v(this, Rs, new OM(
|
|
18648
18648
|
a(this, qe)
|
|
18649
|
-
)), v(this,
|
|
18649
|
+
)), v(this, Oo, n), a(this, Ve).on("trackMuted", this.onAudioTrackMuted.bind(this)), a(this, Ve).on(
|
|
18650
18650
|
"trackChanged",
|
|
18651
18651
|
this.onAudioTrackChanged.bind(this)
|
|
18652
18652
|
), a(this, ye).on(
|
|
@@ -18893,7 +18893,7 @@ class Mt extends Ia {
|
|
|
18893
18893
|
onDeviceChange(e, r) {
|
|
18894
18894
|
return l(this, null, function* () {
|
|
18895
18895
|
var i, n;
|
|
18896
|
-
this.emit("DEVICE_LIST_UPDATED", e), !(r || !a(this,
|
|
18896
|
+
this.emit("DEVICE_LIST_UPDATED", e), !(r || !a(this, Oo)) && ((i = e == null ? void 0 : e.added) == null || i.forEach((o) => l(this, null, function* () {
|
|
18897
18897
|
var d;
|
|
18898
18898
|
o && !Cu(o) && (o.kind === "audioinput" && ((d = this.audioTrack) == null ? void 0 : d.enabled) === true ? yield this.setAudioDevice(o) : o.kind === "audiooutput" && (yield this.setSpeakerDevice(o)));
|
|
18899
18899
|
})), (n = e == null ? void 0 : e.removed) == null || n.forEach((o) => l(this, null, function* () {
|
|
@@ -18920,7 +18920,7 @@ class Mt extends Ia {
|
|
|
18920
18920
|
});
|
|
18921
18921
|
}
|
|
18922
18922
|
}
|
|
18923
|
-
qe = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(),
|
|
18923
|
+
qe = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), Rd = /* @__PURE__ */ new WeakMap();
|
|
18924
18924
|
$t([
|
|
18925
18925
|
y.trace("MediaHandler.setupStreams")
|
|
18926
18926
|
], Mt.prototype, "setupStreams", 1);
|
|
@@ -18960,7 +18960,7 @@ $t([
|
|
|
18960
18960
|
$t([
|
|
18961
18961
|
y.trace("MediaHandler.onDeviceChange")
|
|
18962
18962
|
], Mt.prototype, "onDeviceChange", 1);
|
|
18963
|
-
function
|
|
18963
|
+
function Oc(s, t, e) {
|
|
18964
18964
|
switch (true) {
|
|
18965
18965
|
case _e.isChromiumBased():
|
|
18966
18966
|
switch (t) {
|
|
@@ -19202,11 +19202,11 @@ function fM(s) {
|
|
|
19202
19202
|
enableHighBitrate: (r = s.audio.enableHighBitrate) != null ? r : false
|
|
19203
19203
|
}), t.video = s.video.quality, t;
|
|
19204
19204
|
}
|
|
19205
|
-
var Si,
|
|
19205
|
+
var Si, wd;
|
|
19206
19206
|
class vM {
|
|
19207
19207
|
constructor(t, e) {
|
|
19208
19208
|
f(this, Si, void 0);
|
|
19209
|
-
f(this,
|
|
19209
|
+
f(this, wd, void 0);
|
|
19210
19210
|
p(this, "getScreenShareConstraints", () => {
|
|
19211
19211
|
var h, m, g, T, _, P, b, R, L, H, B;
|
|
19212
19212
|
const t2 = (h = a(this, Si)) == null ? void 0 : h.screenshare, e2 = (g = (m = t2 == null ? void 0 : t2.width) == null ? void 0 : m.max) != null ? g : 1920, r = (_ = (T = t2 == null ? void 0 : t2.height) == null ? void 0 : T.max) != null ? _ : 1080, i = (b = (P = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : P.max) != null ? b : 5;
|
|
@@ -19268,13 +19268,13 @@ class vM {
|
|
|
19268
19268
|
}
|
|
19269
19269
|
return e2.video = i, typeof e2.video == "boolean" || (t2 ? e2.video.deviceId = { exact: t2 } : e2.video.facingMode = "user"), e2;
|
|
19270
19270
|
});
|
|
19271
|
-
v(this,
|
|
19271
|
+
v(this, wd, t), v(this, Si, e);
|
|
19272
19272
|
}
|
|
19273
19273
|
getUpdatedVideoConstraints(t) {
|
|
19274
19274
|
return t;
|
|
19275
19275
|
}
|
|
19276
19276
|
}
|
|
19277
|
-
Si = /* @__PURE__ */ new WeakMap(),
|
|
19277
|
+
Si = /* @__PURE__ */ new WeakMap(), wd = /* @__PURE__ */ new WeakMap();
|
|
19278
19278
|
class Wl extends Error {
|
|
19279
19279
|
constructor(e, r, i) {
|
|
19280
19280
|
super(r);
|
|
@@ -19315,15 +19315,15 @@ var yM = Object.defineProperty, SM = Object.getOwnPropertyDescriptor, ys = (s, t
|
|
|
19315
19315
|
for (var i = r > 1 ? void 0 : r ? SM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
19316
19316
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
19317
19317
|
return r && i && yM(t, e, i), i;
|
|
19318
|
-
}, Un, Jt,
|
|
19318
|
+
}, Un, Jt, bd, cm;
|
|
19319
19319
|
let Vt = (cm = class extends TM {
|
|
19320
19320
|
constructor(t, e) {
|
|
19321
19321
|
super();
|
|
19322
19322
|
p(this, "availableDevices");
|
|
19323
19323
|
f(this, Un, void 0);
|
|
19324
19324
|
f(this, Jt, void 0);
|
|
19325
|
-
f(this,
|
|
19326
|
-
v(this,
|
|
19325
|
+
f(this, bd, void 0);
|
|
19326
|
+
v(this, bd, t), v(this, Jt, new vM(t, e)), v(this, Un, new AbortController()), this.availableDevices = [], this.getAvailableDevices();
|
|
19327
19327
|
}
|
|
19328
19328
|
get constraintsBuilder() {
|
|
19329
19329
|
return a(this, Jt);
|
|
@@ -19335,7 +19335,7 @@ let Vt = (cm = class extends TM {
|
|
|
19335
19335
|
});
|
|
19336
19336
|
}
|
|
19337
19337
|
handlePermissionErrors(t, e) {
|
|
19338
|
-
const r =
|
|
19338
|
+
const r = Oc(t, e.name, e.message);
|
|
19339
19339
|
return this.permissions[t] = r, I.emit(A.MEDIA_PERMISSION_ERROR, {
|
|
19340
19340
|
message: r,
|
|
19341
19341
|
constraints: e.constraints,
|
|
@@ -19395,7 +19395,7 @@ let Vt = (cm = class extends TM {
|
|
|
19395
19395
|
constraints: JSON.stringify(o)
|
|
19396
19396
|
}), d;
|
|
19397
19397
|
} catch (d) {
|
|
19398
|
-
const c =
|
|
19398
|
+
const c = Oc(
|
|
19399
19399
|
"audio",
|
|
19400
19400
|
d.name,
|
|
19401
19401
|
d.message
|
|
@@ -19460,7 +19460,7 @@ let Vt = (cm = class extends TM {
|
|
|
19460
19460
|
constraints: JSON.stringify(h)
|
|
19461
19461
|
}), g;
|
|
19462
19462
|
} catch (h) {
|
|
19463
|
-
const m =
|
|
19463
|
+
const m = Oc(
|
|
19464
19464
|
"video",
|
|
19465
19465
|
h.name,
|
|
19466
19466
|
h.message
|
|
@@ -19508,7 +19508,7 @@ let Vt = (cm = class extends TM {
|
|
|
19508
19508
|
constraints: JSON.stringify(e)
|
|
19509
19509
|
}), r;
|
|
19510
19510
|
} catch (r) {
|
|
19511
|
-
const i =
|
|
19511
|
+
const i = Oc(
|
|
19512
19512
|
"video",
|
|
19513
19513
|
r.name,
|
|
19514
19514
|
r.message
|
|
@@ -19607,7 +19607,7 @@ let Vt = (cm = class extends TM {
|
|
|
19607
19607
|
);
|
|
19608
19608
|
});
|
|
19609
19609
|
}
|
|
19610
|
-
}, Un = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(),
|
|
19610
|
+
}, Un = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), bd = /* @__PURE__ */ new WeakMap(), cm);
|
|
19611
19611
|
ys([
|
|
19612
19612
|
y.trace("WebMediaInterface.destruct")
|
|
19613
19613
|
], Vt.prototype, "destruct", 1);
|
|
@@ -19754,7 +19754,7 @@ var bM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, cf = (s, t
|
|
|
19754
19754
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
19755
19755
|
return r && i && bM(t, e, i), i;
|
|
19756
19756
|
};
|
|
19757
|
-
let
|
|
19757
|
+
let dd = class extends Ia {
|
|
19758
19758
|
constructor(t, e, r) {
|
|
19759
19759
|
var i;
|
|
19760
19760
|
super();
|
|
@@ -19924,18 +19924,18 @@ let ld = class extends Ia {
|
|
|
19924
19924
|
};
|
|
19925
19925
|
cf([
|
|
19926
19926
|
y.trace("BaseMediaHandler.unmuteTrack")
|
|
19927
|
-
],
|
|
19928
|
-
|
|
19927
|
+
], dd.prototype, "unmuteTrack", 1);
|
|
19928
|
+
dd = cf([
|
|
19929
19929
|
ht("1600")
|
|
19930
|
-
],
|
|
19931
|
-
const df =
|
|
19930
|
+
], dd);
|
|
19931
|
+
const df = dd;
|
|
19932
19932
|
var IM = Object.defineProperty, AM = Object.getOwnPropertyDescriptor, hh = (s, t, e, r) => {
|
|
19933
19933
|
for (var i = r > 1 ? void 0 : r ? AM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
19934
19934
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
19935
19935
|
return r && i && IM(t, e, i), i;
|
|
19936
19936
|
};
|
|
19937
19937
|
const Jl = "[Dyte]nonSilentDeviceLabels";
|
|
19938
|
-
class
|
|
19938
|
+
class El extends df {
|
|
19939
19939
|
onSetDevice(t) {
|
|
19940
19940
|
return l(this, null, function* () {
|
|
19941
19941
|
if (!t)
|
|
@@ -20053,14 +20053,14 @@ class _l extends df {
|
|
|
20053
20053
|
}
|
|
20054
20054
|
hh([
|
|
20055
20055
|
y.trace("AudioMediaHandler.setTransformedTrack")
|
|
20056
|
-
],
|
|
20056
|
+
], El.prototype, "setTransformedTrack", 1);
|
|
20057
20057
|
hh([
|
|
20058
20058
|
y.trace("AudioMediaHandler.onTrackEnded")
|
|
20059
|
-
],
|
|
20059
|
+
], El.prototype, "onTrackEnded", 1);
|
|
20060
20060
|
hh([
|
|
20061
20061
|
y.trace("AudioMediaHandler.conditionallyChangeTrack")
|
|
20062
|
-
],
|
|
20063
|
-
const MM =
|
|
20062
|
+
], El.prototype, "conditionallyChangeTrack", 1);
|
|
20063
|
+
const MM = El;
|
|
20064
20064
|
var $n;
|
|
20065
20065
|
class DM {
|
|
20066
20066
|
constructor(t) {
|
|
@@ -20161,16 +20161,16 @@ class NM extends Ia {
|
|
|
20161
20161
|
}
|
|
20162
20162
|
}
|
|
20163
20163
|
const LM = NM;
|
|
20164
|
-
var VM = Object.defineProperty, xM = Object.getOwnPropertyDescriptor,
|
|
20164
|
+
var VM = Object.defineProperty, xM = Object.getOwnPropertyDescriptor, _l = (s, t, e, r) => {
|
|
20165
20165
|
for (var i = r > 1 ? void 0 : r ? xM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
20166
20166
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
20167
20167
|
return r && i && VM(t, e, i), i;
|
|
20168
|
-
}, Fn,
|
|
20169
|
-
class
|
|
20168
|
+
}, Fn, No;
|
|
20169
|
+
class Sc extends df {
|
|
20170
20170
|
constructor(e, r, i) {
|
|
20171
20171
|
super(e, r, i);
|
|
20172
20172
|
f(this, Fn, void 0);
|
|
20173
|
-
f(this,
|
|
20173
|
+
f(this, No, {
|
|
20174
20174
|
disablePerFrameCanvasRendering: false
|
|
20175
20175
|
});
|
|
20176
20176
|
v(this, Fn, new hM());
|
|
@@ -20228,7 +20228,7 @@ class Ec extends df {
|
|
|
20228
20228
|
this.transformedMediaTrack = yield a(this, Fn).getTransformedVideoTrack(
|
|
20229
20229
|
this.middlewares,
|
|
20230
20230
|
this.mediaTrack,
|
|
20231
|
-
a(this,
|
|
20231
|
+
a(this, No)
|
|
20232
20232
|
), this.emit("trackChanged");
|
|
20233
20233
|
} catch (i) {
|
|
20234
20234
|
u.error("VideoMediaHandler.setTransformedTrack", {
|
|
@@ -20239,7 +20239,7 @@ class Ec extends df {
|
|
|
20239
20239
|
}
|
|
20240
20240
|
setVideoMiddlewareGlobalConfig(e) {
|
|
20241
20241
|
return l(this, null, function* () {
|
|
20242
|
-
v(this,
|
|
20242
|
+
v(this, No, e);
|
|
20243
20243
|
});
|
|
20244
20244
|
}
|
|
20245
20245
|
updateConstraints(e) {
|
|
@@ -20285,32 +20285,32 @@ class Ec extends df {
|
|
|
20285
20285
|
});
|
|
20286
20286
|
}
|
|
20287
20287
|
}
|
|
20288
|
-
Fn = /* @__PURE__ */ new WeakMap(),
|
|
20289
|
-
|
|
20288
|
+
Fn = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap();
|
|
20289
|
+
_l([
|
|
20290
20290
|
y.trace("VideoMediaHandler.setTransformedTrack")
|
|
20291
|
-
],
|
|
20292
|
-
|
|
20291
|
+
], Sc.prototype, "setTransformedTrack", 1);
|
|
20292
|
+
_l([
|
|
20293
20293
|
y.trace("VideoMediaHandler.setVideoMiddlewareGlobalConfig")
|
|
20294
|
-
],
|
|
20295
|
-
|
|
20294
|
+
], Sc.prototype, "setVideoMiddlewareGlobalConfig", 1);
|
|
20295
|
+
_l([
|
|
20296
20296
|
y.trace("VideoMediaHandler.onTrackEnded")
|
|
20297
|
-
],
|
|
20298
|
-
|
|
20297
|
+
], Sc.prototype, "onTrackEnded", 1);
|
|
20298
|
+
_l([
|
|
20299
20299
|
y.trace("VideoMediaHandler.conditionallyChangeTrack")
|
|
20300
|
-
],
|
|
20301
|
-
const UM =
|
|
20300
|
+
], Sc.prototype, "conditionallyChangeTrack", 1);
|
|
20301
|
+
const UM = Sc, Hp = ms(
|
|
20302
20302
|
sh()
|
|
20303
20303
|
);
|
|
20304
|
-
var Ct, Ei,
|
|
20304
|
+
var Ct, Ei, Lo, Bn;
|
|
20305
20305
|
const hn = class {
|
|
20306
20306
|
constructor(t) {
|
|
20307
20307
|
f(this, Ct, void 0);
|
|
20308
20308
|
f(this, Ei, void 0);
|
|
20309
|
-
f(this,
|
|
20309
|
+
f(this, Lo, void 0);
|
|
20310
20310
|
f(this, Bn, void 0);
|
|
20311
20311
|
if (!t)
|
|
20312
20312
|
throw new w("Could not load preset.", "0904");
|
|
20313
|
-
v(this, Ct, t.config), v(this,
|
|
20313
|
+
v(this, Ct, t.config), v(this, Lo, t.name), v(this, Ei, t.ui || ms(sh().ui)), v(this, Bn, t.permissions.plugins.config);
|
|
20314
20314
|
}
|
|
20315
20315
|
static fromResponse(t) {
|
|
20316
20316
|
return new hn(t);
|
|
@@ -20404,11 +20404,11 @@ const hn = class {
|
|
|
20404
20404
|
};
|
|
20405
20405
|
}
|
|
20406
20406
|
get name() {
|
|
20407
|
-
return a(this,
|
|
20407
|
+
return a(this, Lo);
|
|
20408
20408
|
}
|
|
20409
20409
|
};
|
|
20410
20410
|
let Ru = hn;
|
|
20411
|
-
Ct = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakMap(),
|
|
20411
|
+
Ct = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap();
|
|
20412
20412
|
var $M = Object.defineProperty, FM = Object.getOwnPropertyDescriptor, lf = (s, t, e, r) => {
|
|
20413
20413
|
for (var i = r > 1 ? void 0 : r ? FM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
20414
20414
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
@@ -20559,14 +20559,14 @@ qn = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), js = /*
|
|
|
20559
20559
|
qM([
|
|
20560
20560
|
y.trace("LivestreamController.setupEvents")
|
|
20561
20561
|
], uf.prototype, "setupEvents", 1);
|
|
20562
|
-
var jM = Object.defineProperty, GM = Object.getOwnPropertyDescriptor,
|
|
20562
|
+
var jM = Object.defineProperty, GM = Object.getOwnPropertyDescriptor, Ec = (s, t, e, r) => {
|
|
20563
20563
|
for (var i = r > 1 ? void 0 : r ? GM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
20564
20564
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
20565
20565
|
return r && i && jM(t, e, i), i;
|
|
20566
|
-
}, at, wr, br,
|
|
20566
|
+
}, at, wr, br, kd, hf;
|
|
20567
20567
|
class Da {
|
|
20568
20568
|
constructor({ name: t, socketHandler: e, meetingId: r }) {
|
|
20569
|
-
f(this,
|
|
20569
|
+
f(this, kd);
|
|
20570
20570
|
p(this, "name", "");
|
|
20571
20571
|
f(this, at, {});
|
|
20572
20572
|
f(this, wr, "");
|
|
@@ -20603,7 +20603,7 @@ class Da {
|
|
|
20603
20603
|
}
|
|
20604
20604
|
update(t, e, r = true) {
|
|
20605
20605
|
return l(this, null, function* () {
|
|
20606
|
-
$(this,
|
|
20606
|
+
$(this, kd, hf).call(this, t, e, r);
|
|
20607
20607
|
});
|
|
20608
20608
|
}
|
|
20609
20609
|
delete(t, e = true, r = false) {
|
|
@@ -20666,7 +20666,7 @@ class Da {
|
|
|
20666
20666
|
v(this, at, t);
|
|
20667
20667
|
}
|
|
20668
20668
|
}
|
|
20669
|
-
at = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(),
|
|
20669
|
+
at = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), kd = /* @__PURE__ */ new WeakSet(), hf = function(t, e, r = true) {
|
|
20670
20670
|
let i;
|
|
20671
20671
|
const n = a(this, at)[t], o = Object.prototype.toString.call(e), d = Object.prototype.toString.call(n);
|
|
20672
20672
|
if (o !== d) {
|
|
@@ -20692,32 +20692,32 @@ at = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), br = /*
|
|
|
20692
20692
|
}
|
|
20693
20693
|
this.set(t, i, r);
|
|
20694
20694
|
};
|
|
20695
|
-
|
|
20695
|
+
Ec([
|
|
20696
20696
|
At(Ma, "rateLimitConfig")
|
|
20697
20697
|
], Da.prototype, "remoteSet", 1);
|
|
20698
|
-
|
|
20698
|
+
Ec([
|
|
20699
20699
|
At(Ma, "bulkRateLimitConfig")
|
|
20700
20700
|
], Da.prototype, "bulkSet", 1);
|
|
20701
|
-
|
|
20701
|
+
Ec([
|
|
20702
20702
|
At(Ma, "rateLimitConfig")
|
|
20703
20703
|
], Da.prototype, "update", 1);
|
|
20704
|
-
|
|
20704
|
+
Ec([
|
|
20705
20705
|
At(Ma, "rateLimitConfig")
|
|
20706
20706
|
], Da.prototype, "delete", 1);
|
|
20707
|
-
|
|
20707
|
+
Ec([
|
|
20708
20708
|
At(Ma, "bulkRateLimitConfig")
|
|
20709
20709
|
], Da.prototype, "bulkDelete", 1);
|
|
20710
|
-
var _i, Pi,
|
|
20710
|
+
var _i, Pi, Vo, wu, xo, kr, Id, pf;
|
|
20711
20711
|
class WM {
|
|
20712
20712
|
constructor(t, e) {
|
|
20713
|
-
f(this,
|
|
20714
|
-
f(this,
|
|
20713
|
+
f(this, Vo);
|
|
20714
|
+
f(this, Id);
|
|
20715
20715
|
p(this, "stores", /* @__PURE__ */ new Map());
|
|
20716
20716
|
f(this, _i, void 0);
|
|
20717
20717
|
f(this, Pi, "");
|
|
20718
|
-
f(this,
|
|
20718
|
+
f(this, xo, void 0);
|
|
20719
20719
|
f(this, kr, /* @__PURE__ */ new Map());
|
|
20720
|
-
v(this, _i, e), v(this, Pi, t.getValue("meetingId")), v(this,
|
|
20720
|
+
v(this, _i, e), v(this, Pi, t.getValue("meetingId")), v(this, xo, t), $(this, Id, pf).call(this);
|
|
20721
20721
|
}
|
|
20722
20722
|
create(t) {
|
|
20723
20723
|
const e = new Da(
|
|
@@ -20729,9 +20729,9 @@ class WM {
|
|
|
20729
20729
|
});
|
|
20730
20730
|
}
|
|
20731
20731
|
}
|
|
20732
|
-
_i = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(),
|
|
20733
|
-
return a(this,
|
|
20734
|
-
},
|
|
20732
|
+
_i = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new WeakSet(), wu = function() {
|
|
20733
|
+
return a(this, xo).getValue("peerId");
|
|
20734
|
+
}, xo = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Id = /* @__PURE__ */ new WeakSet(), pf = function() {
|
|
20735
20735
|
[
|
|
20736
20736
|
z.storeInsertKeys,
|
|
20737
20737
|
z.storeGetKeys,
|
|
@@ -20763,9 +20763,9 @@ _i = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), xo = /*
|
|
|
20763
20763
|
}
|
|
20764
20764
|
const i = this.stores.get(e.storeName) || ((o = a(this, kr).get(e.storeName)) == null ? void 0 : o.store);
|
|
20765
20765
|
i !== void 0 && (t === z.storeInsertKeys && r.forEach(({ key: d, peerId: c, payload: h }) => {
|
|
20766
|
-
c !== a(this,
|
|
20766
|
+
c !== a(this, Vo, wu) && i.set(d, h, false, true);
|
|
20767
20767
|
}), t === z.storeDeleteKeys && r.forEach(({ key: d, peerId: c }) => {
|
|
20768
|
-
c !== a(this,
|
|
20768
|
+
c !== a(this, Vo, wu) && i.delete(d, false, true);
|
|
20769
20769
|
}));
|
|
20770
20770
|
})
|
|
20771
20771
|
);
|
|
@@ -20806,15 +20806,15 @@ var JM = Object.defineProperty, KM = Object.getOwnPropertyDescriptor, Oa = (s, t
|
|
|
20806
20806
|
return r && i && JM(t, e, i), i;
|
|
20807
20807
|
};
|
|
20808
20808
|
const zM = 0.8, YM = 1.2;
|
|
20809
|
-
var Gn, Wn, Ir, Ci, so, Ri, ro,
|
|
20809
|
+
var Gn, Wn, Ir, Ci, so, Ri, ro, Ad, mf, Gs, Uo, Ar, Jn, Gc, Ws, Md, $o, bu, dm;
|
|
20810
20810
|
let cr = (dm = class extends xt {
|
|
20811
20811
|
constructor(t, e, r, i) {
|
|
20812
20812
|
super();
|
|
20813
20813
|
f(this, Ci);
|
|
20814
20814
|
f(this, Ri);
|
|
20815
|
-
f(this,
|
|
20815
|
+
f(this, Ad);
|
|
20816
20816
|
f(this, Jn);
|
|
20817
|
-
f(this,
|
|
20817
|
+
f(this, $o);
|
|
20818
20818
|
p(this, "id");
|
|
20819
20819
|
p(this, "userId");
|
|
20820
20820
|
p(this, "name");
|
|
@@ -20837,10 +20837,10 @@ let cr = (dm = class extends xt {
|
|
|
20837
20837
|
p(this, "presetName");
|
|
20838
20838
|
f(this, Ir, void 0);
|
|
20839
20839
|
f(this, Gs, void 0);
|
|
20840
|
-
f(this,
|
|
20840
|
+
f(this, Uo, void 0);
|
|
20841
20841
|
f(this, Ar, /* @__PURE__ */ new Map());
|
|
20842
20842
|
f(this, Ws, 1);
|
|
20843
|
-
f(this,
|
|
20843
|
+
f(this, Md, id((t2) => {
|
|
20844
20844
|
if (!this.videoTrack)
|
|
20845
20845
|
return;
|
|
20846
20846
|
const { clientWidth: e2, clientHeight: r2 } = t2, { width: i2, height: n2 } = this.videoTrack.getSettings();
|
|
@@ -20877,7 +20877,7 @@ let cr = (dm = class extends xt {
|
|
|
20877
20877
|
this.id = n, this.userId = o, this.name = d, this.device = c, this.picture = h, this.isHost = m, this.flags = g, this.manualProducerConfig = VP, v(this, Wn, _ != null ? _ : "ON_STAGE"), this.customParticipantId = P != null ? P : T, this.audioEnabled = !b, this.audioTrack = R, this.videoEnabled = L, this.videoTrack = H, this.screenShareTracks = {
|
|
20878
20878
|
audio: void 0,
|
|
20879
20879
|
video: void 0
|
|
20880
|
-
}, this.producers = B != null ? B : [], this.presetName = F == null ? void 0 : F.preset_name, v(this, Gn, false), v(this, Gs, r), v(this,
|
|
20880
|
+
}, this.producers = B != null ? B : [], this.presetName = F == null ? void 0 : F.preset_name, v(this, Gn, false), v(this, Gs, r), v(this, Uo, i), this.setupEvents(), this.updateVideo = this.updateVideo.bind(this), $(this, $o, bu).call(this);
|
|
20881
20881
|
}
|
|
20882
20882
|
get clientSpecificId() {
|
|
20883
20883
|
return this.customParticipantId;
|
|
@@ -20904,7 +20904,7 @@ let cr = (dm = class extends xt {
|
|
|
20904
20904
|
});
|
|
20905
20905
|
}
|
|
20906
20906
|
setupEvents() {
|
|
20907
|
-
this.on("videoUpdate", $(this,
|
|
20907
|
+
this.on("videoUpdate", $(this, $o, bu));
|
|
20908
20908
|
}
|
|
20909
20909
|
pin() {
|
|
20910
20910
|
return l(this, null, function* () {
|
|
@@ -20928,7 +20928,7 @@ let cr = (dm = class extends xt {
|
|
|
20928
20928
|
var i;
|
|
20929
20929
|
v(this, Gn, t);
|
|
20930
20930
|
const r = t ? "pinned" : "unpinned";
|
|
20931
|
-
(i = a(this, Jn,
|
|
20931
|
+
(i = a(this, Jn, Gc)) == null || i.updateSource(this.id, { pinned: t }), e && this.emit(r, this);
|
|
20932
20932
|
}
|
|
20933
20933
|
disableAudio() {
|
|
20934
20934
|
return l(this, null, function* () {
|
|
@@ -20955,7 +20955,7 @@ let cr = (dm = class extends xt {
|
|
|
20955
20955
|
const t = this.id;
|
|
20956
20956
|
if (u.info("DyteParticipant::kick", {
|
|
20957
20957
|
dyteParticipant: { id: t }
|
|
20958
|
-
}), !a(this,
|
|
20958
|
+
}), !a(this, Ad, mf))
|
|
20959
20959
|
throw new w("Can`t kick participant without joining room", "1205");
|
|
20960
20960
|
if (a(this, Gs).permissions.kickParticipant) {
|
|
20961
20961
|
yield I.emitAsync(A.KICK_PEER, {
|
|
@@ -20993,7 +20993,7 @@ let cr = (dm = class extends xt {
|
|
|
20993
20993
|
}
|
|
20994
20994
|
getPermissions() {
|
|
20995
20995
|
return l(this, null, function* () {
|
|
20996
|
-
return a(this,
|
|
20996
|
+
return a(this, Uo).getUserPermissions(this.userId);
|
|
20997
20997
|
});
|
|
20998
20998
|
}
|
|
20999
20999
|
setStageStatus(t) {
|
|
@@ -21005,7 +21005,7 @@ let cr = (dm = class extends xt {
|
|
|
21005
21005
|
registerVideoElement(t) {
|
|
21006
21006
|
var r, i, n, o;
|
|
21007
21007
|
let e;
|
|
21008
|
-
(i = (r = a(this, Ar).get(t)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (e = new ResizeObserver(() => a(this,
|
|
21008
|
+
(i = (r = a(this, Ar).get(t)) == null ? void 0 : r.observer) == null || i.disconnect(), "ResizeObserver" in window && (e = new ResizeObserver(() => a(this, Md).call(this, t)), e.observe(t)), a(this, Ar).set(t, { observer: e }), this.updateVideo(t), (o = a(this, Jn, Gc)) == null || o.addSource(
|
|
21009
21009
|
this.id,
|
|
21010
21010
|
t,
|
|
21011
21011
|
this.videoEnabled,
|
|
@@ -21017,7 +21017,7 @@ let cr = (dm = class extends xt {
|
|
|
21017
21017
|
}
|
|
21018
21018
|
deregisterVideoElement(t) {
|
|
21019
21019
|
var e, r, i;
|
|
21020
|
-
t.srcObject = void 0, (r = (e = a(this, Ar).get(t)) == null ? void 0 : e.observer) == null || r.disconnect(), a(this, Ar).delete(t), (i = a(this, Jn,
|
|
21020
|
+
t.srcObject = void 0, (r = (e = a(this, Ar).get(t)) == null ? void 0 : e.observer) == null || r.disconnect(), a(this, Ar).delete(t), (i = a(this, Jn, Gc)) == null || i.removeSource(this.id);
|
|
21021
21021
|
}
|
|
21022
21022
|
updateVideo(t) {
|
|
21023
21023
|
var e;
|
|
@@ -21037,11 +21037,11 @@ let cr = (dm = class extends xt {
|
|
|
21037
21037
|
return a(this, Ir).getValue("roomNodeClient");
|
|
21038
21038
|
}, Ri = /* @__PURE__ */ new WeakSet(), ro = function() {
|
|
21039
21039
|
return a(this, Ir).getValue("connectionHandler").mediaJoined;
|
|
21040
|
-
},
|
|
21040
|
+
}, Ad = /* @__PURE__ */ new WeakSet(), mf = function() {
|
|
21041
21041
|
return a(this, Ir).getValue("connectionHandler").socketJoined;
|
|
21042
|
-
}, Gs = /* @__PURE__ */ new WeakMap(),
|
|
21042
|
+
}, Gs = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakSet(), Gc = function() {
|
|
21043
21043
|
return a(this, Ir).getValue("pip");
|
|
21044
|
-
}, Ws = /* @__PURE__ */ new WeakMap(),
|
|
21044
|
+
}, Ws = /* @__PURE__ */ new WeakMap(), Md = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakSet(), bu = function() {
|
|
21045
21045
|
Array.from(a(this, Ar).keys()).forEach(this.updateVideo);
|
|
21046
21046
|
}, dm);
|
|
21047
21047
|
Oa([
|
|
@@ -21185,7 +21185,7 @@ var e0 = Object.defineProperty, t0 = Object.getOwnPropertyDescriptor, Ft = (s, t
|
|
|
21185
21185
|
return r && i && e0(t, e, i), i;
|
|
21186
21186
|
};
|
|
21187
21187
|
const s0 = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
|
|
21188
|
-
var Kt, wi, io, bi, no, Kn,
|
|
21188
|
+
var Kt, wi, io, bi, no, Kn, Wc, ki, Rt, lm;
|
|
21189
21189
|
let _t = (lm = class extends xt {
|
|
21190
21190
|
constructor(t, e, r) {
|
|
21191
21191
|
super();
|
|
@@ -21240,7 +21240,7 @@ let _t = (lm = class extends xt {
|
|
|
21240
21240
|
setMaxActiveParticipantsCount(t) {
|
|
21241
21241
|
if (t < 0 || t > 24)
|
|
21242
21242
|
throw new w("0 <= Max active participants count limit <= 24", "1203");
|
|
21243
|
-
a(this, Kt).setValue("maxPreferredStreams", t), a(this, Kn,
|
|
21243
|
+
a(this, Kt).setValue("maxPreferredStreams", t), a(this, Kn, Wc) && I.emit(A.UPDATE_ACTIVE);
|
|
21244
21244
|
}
|
|
21245
21245
|
get pageCount() {
|
|
21246
21246
|
if (this.viewMode === "PAGINATED") {
|
|
@@ -21452,7 +21452,7 @@ let _t = (lm = class extends xt {
|
|
|
21452
21452
|
return l(this, null, function* () {
|
|
21453
21453
|
if (u.info("DyteParticipants::disable_all_audio", {
|
|
21454
21454
|
actions: { disableAllAudio: { allowUnmute: t } }
|
|
21455
|
-
}), !a(this, Kn,
|
|
21455
|
+
}), !a(this, Kn, Wc))
|
|
21456
21456
|
throw new w("Can`t disable all audio without joining room", "1205");
|
|
21457
21457
|
if (a(this, ki).permissions.canAllowParticipantAudio)
|
|
21458
21458
|
return a(this, wi, io).muteAll(t);
|
|
@@ -21466,7 +21466,7 @@ let _t = (lm = class extends xt {
|
|
|
21466
21466
|
}
|
|
21467
21467
|
disableAllVideo() {
|
|
21468
21468
|
return l(this, null, function* () {
|
|
21469
|
-
if (u.info("DyteParticipants::disable_all_video"), !a(this, Kn,
|
|
21469
|
+
if (u.info("DyteParticipants::disable_all_video"), !a(this, Kn, Wc))
|
|
21470
21470
|
throw new w("Can`t disable all video without joining room", "1205");
|
|
21471
21471
|
if (a(this, ki).permissions.canAllowParticipantVideo)
|
|
21472
21472
|
return a(this, wi, io).muteAllVideo();
|
|
@@ -21551,7 +21551,7 @@ let _t = (lm = class extends xt {
|
|
|
21551
21551
|
}, bi = /* @__PURE__ */ new WeakSet(), no = function() {
|
|
21552
21552
|
var t;
|
|
21553
21553
|
return ((t = a(this, Kt).getValue("connectionHandler")) == null ? void 0 : t.socketJoined) === true;
|
|
21554
|
-
}, Kn = /* @__PURE__ */ new WeakSet(),
|
|
21554
|
+
}, Kn = /* @__PURE__ */ new WeakSet(), Wc = function() {
|
|
21555
21555
|
var t;
|
|
21556
21556
|
return ((t = a(this, Kt).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === true;
|
|
21557
21557
|
}, ki = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), lm);
|
|
@@ -21613,7 +21613,7 @@ const ff = class {
|
|
|
21613
21613
|
p(this, "roomSocketHandler");
|
|
21614
21614
|
p(this, "context");
|
|
21615
21615
|
p(this, "videoPeerConsumerMap", /* @__PURE__ */ new Map());
|
|
21616
|
-
p(this, "updateConsumerSpatialLayers",
|
|
21616
|
+
p(this, "updateConsumerSpatialLayers", id(() => {
|
|
21617
21617
|
const s2 = {}, t2 = new Map(this.maxSpatialLayerUpdates);
|
|
21618
21618
|
this.maxSpatialLayerUpdates.clear(), Array.from(t2.entries()).forEach(([e2, r2]) => {
|
|
21619
21619
|
s2[r2] === void 0 && (s2[r2] = {
|
|
@@ -21631,7 +21631,7 @@ const ff = class {
|
|
|
21631
21631
|
s2.length !== 0 && (u.info("Consuming producers", { producers: s2 }), this.roomNodeClient.createConsumers(s2).catch((r2) => u.error("Error activating peers", { error: r2 })));
|
|
21632
21632
|
}).catch((r2) => u.error("Error deactivating peers", { error: r2 }));
|
|
21633
21633
|
});
|
|
21634
|
-
p(this, "updateConsumersDebounced",
|
|
21634
|
+
p(this, "updateConsumersDebounced", id(this.updateConsumers, 200, { trailing: true }));
|
|
21635
21635
|
switch (this.context = s, this.roomSocketHandler = e, this.participants = new _t(s, t, this.roomSocketHandler), this.self = t, this.consumerPeerMap = /* @__PURE__ */ new Map(), r) {
|
|
21636
21636
|
case Ke.HIVE: {
|
|
21637
21637
|
this.events = Xt;
|
|
@@ -22484,7 +22484,7 @@ en([
|
|
|
22484
22484
|
const ge = ms(
|
|
22485
22485
|
sh().permissions
|
|
22486
22486
|
);
|
|
22487
|
-
var j, zn, Yn,
|
|
22487
|
+
var j, zn, Yn, Dd, ft, Dt;
|
|
22488
22488
|
const pn = class extends xt {
|
|
22489
22489
|
constructor(e, r, i, n = false) {
|
|
22490
22490
|
super();
|
|
@@ -22492,7 +22492,7 @@ const pn = class extends xt {
|
|
|
22492
22492
|
f(this, j, void 0);
|
|
22493
22493
|
f(this, zn, void 0);
|
|
22494
22494
|
f(this, Yn, void 0);
|
|
22495
|
-
f(this,
|
|
22495
|
+
f(this, Dd, (e2) => {
|
|
22496
22496
|
var m, g, T;
|
|
22497
22497
|
const h = e2, {
|
|
22498
22498
|
chat: r2,
|
|
@@ -22541,7 +22541,7 @@ const pn = class extends xt {
|
|
|
22541
22541
|
v(this, Yn, e), v(this, zn, i), v(this, j, r), n && this.setupEvents();
|
|
22542
22542
|
}
|
|
22543
22543
|
setupEvents() {
|
|
22544
|
-
I.on(A.UPDATE_PERMISSIONS, a(this,
|
|
22544
|
+
I.on(A.UPDATE_PERMISSIONS, a(this, Dd));
|
|
22545
22545
|
}
|
|
22546
22546
|
static fromResponse(e, r, i) {
|
|
22547
22547
|
return new pn(i, e, r, true);
|
|
@@ -22724,7 +22724,7 @@ const pn = class extends xt {
|
|
|
22724
22724
|
}
|
|
22725
22725
|
};
|
|
22726
22726
|
let ku = pn;
|
|
22727
|
-
j = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(),
|
|
22727
|
+
j = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Dd = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakSet(), Dt = function() {
|
|
22728
22728
|
return a(this, Yn).getValue("stageStatus");
|
|
22729
22729
|
};
|
|
22730
22730
|
var Gu;
|
|
@@ -23063,7 +23063,7 @@ var a0 = Object.defineProperty, o0 = Object.getOwnPropertyDescriptor, Pt = (s, t
|
|
|
23063
23063
|
for (var i = r > 1 ? void 0 : r ? o0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
23064
23064
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
23065
23065
|
return r && i && a0(t, e, i), i;
|
|
23066
|
-
}, Qn, vt, Xn, ws, Dr, on, je, Xe, xe, He, Zn, ea,
|
|
23066
|
+
}, Qn, vt, Xn, ws, Dr, on, je, Xe, xe, He, Zn, ea, Fo, Iu, um;
|
|
23067
23067
|
let Ye = (um = class extends n0 {
|
|
23068
23068
|
constructor(t, e, r, i, n) {
|
|
23069
23069
|
var o;
|
|
@@ -23071,7 +23071,7 @@ let Ye = (um = class extends n0 {
|
|
|
23071
23071
|
f(this, Dr);
|
|
23072
23072
|
f(this, je);
|
|
23073
23073
|
f(this, xe);
|
|
23074
|
-
f(this,
|
|
23074
|
+
f(this, Fo);
|
|
23075
23075
|
p(this, "name");
|
|
23076
23076
|
p(this, "picture");
|
|
23077
23077
|
p(this, "customParticipantId");
|
|
@@ -23090,7 +23090,7 @@ let Ye = (um = class extends n0 {
|
|
|
23090
23090
|
p(this, "roomState", "init");
|
|
23091
23091
|
f(this, Zn, /* @__PURE__ */ new Set());
|
|
23092
23092
|
f(this, ea, /* @__PURE__ */ new Set());
|
|
23093
|
-
v(this, ws, t), this.userId = e.id, this.name = e.name, this.picture = e.picture, this.customParticipantId = (o = e.customParticipantId) != null ? o : e.clientSpecificId, this.waitlistStatus = "none", v(this, vt, r), v(this, Qn, i), this.hidden = false, v(this, Xn, false), this.organizationId = e.organizationId, this.supportsRemoteControl = _e.isElectron(), this.device = _e.getDeviceInfo(), this.presetName = n, i.viewType !== Et.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), $(this,
|
|
23093
|
+
v(this, ws, t), this.userId = e.id, this.name = e.name, this.picture = e.picture, this.customParticipantId = (o = e.customParticipantId) != null ? o : e.clientSpecificId, this.waitlistStatus = "none", v(this, vt, r), v(this, Qn, i), this.hidden = false, v(this, Xn, false), this.organizationId = e.organizationId, this.supportsRemoteControl = _e.isElectron(), this.device = _e.getDeviceInfo(), this.presetName = n, i.viewType !== Et.Chat && this.updatePermission(), this.updateVideo = this.updateVideo.bind(this), $(this, Fo, Iu).call(this);
|
|
23094
23094
|
}
|
|
23095
23095
|
get stageStatus() {
|
|
23096
23096
|
return a(this, ws).getValue("stageStatus");
|
|
@@ -23118,7 +23118,7 @@ let Ye = (um = class extends n0 {
|
|
|
23118
23118
|
this.removeAllListeners("videoUpdate"), this.localMediaHandler.removeAllListeners("AUDIO_TRACK_CHANGE"), this.localMediaHandler.removeAllListeners("VIDEO_TRACK_CHANGE"), this.localMediaHandler.removeAllListeners("DEVICE_CHANGE"), this.localMediaHandler.removeAllListeners("DEVICE_LIST_UPDATED"), this.localMediaHandler.removeAllListeners("SCREENSHARE_TRACK_CHANGE"), this.localMediaHandler.removeAllListeners("SCREENSHARE_ENDED"), this.localMediaHandler.removeAllListeners("AUDIO_TRACK_SILENT"), this.localMediaHandler.removeAllListeners("FORCE_MUTE_AUDIO"), this.localMediaHandler.removeAllListeners("FORCE_MUTE_VIDEO"), a(this, vt).removeAllListeners("permissionsUpdate");
|
|
23119
23119
|
}
|
|
23120
23120
|
setupEvents() {
|
|
23121
|
-
this.on("videoUpdate", $(this,
|
|
23121
|
+
this.on("videoUpdate", $(this, Fo, Iu)), this.localMediaHandler.on("AUDIO_TRACK_CHANGE", () => l(this, null, function* () {
|
|
23122
23122
|
if (u.info("DyteSelf::setupEvents::AUDIO_TRACK_CHANGE", O({}, di(this))), a(this, xe, He) && this.audioEnabled)
|
|
23123
23123
|
try {
|
|
23124
23124
|
yield a(this, je, Xe).shareMic(this.audioTrack);
|
|
@@ -23438,7 +23438,7 @@ let Ye = (um = class extends n0 {
|
|
|
23438
23438
|
}, xe = /* @__PURE__ */ new WeakSet(), He = function() {
|
|
23439
23439
|
var t;
|
|
23440
23440
|
return ((t = a(this, ws).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === true;
|
|
23441
|
-
}, Zn = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(),
|
|
23441
|
+
}, Zn = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakSet(), Iu = function() {
|
|
23442
23442
|
Array.from(a(this, ea)).forEach((t) => this.updateVideo(t, false)), Array.from(a(this, Zn)).forEach((t) => this.updateVideo(t, true));
|
|
23443
23443
|
}, um);
|
|
23444
23444
|
Pt([
|
|
@@ -23522,12 +23522,12 @@ var c0 = Object.defineProperty, d0 = Object.getOwnPropertyDescriptor, l0 = (s, t
|
|
|
23522
23522
|
return r && i && c0(t, e, i), i;
|
|
23523
23523
|
};
|
|
23524
23524
|
let si;
|
|
23525
|
-
var
|
|
23525
|
+
var Bo, hm;
|
|
23526
23526
|
const vf = (hm = class {
|
|
23527
23527
|
constructor(s, t) {
|
|
23528
23528
|
p(this, "socket");
|
|
23529
|
-
f(this,
|
|
23530
|
-
v(this,
|
|
23529
|
+
f(this, Bo, void 0);
|
|
23530
|
+
v(this, Bo, t), this.socket = s, this.handleSocketEvents();
|
|
23531
23531
|
}
|
|
23532
23532
|
static create(s, t) {
|
|
23533
23533
|
return si || (si = new vf(s, t)), si;
|
|
@@ -23562,7 +23562,7 @@ const vf = (hm = class {
|
|
|
23562
23562
|
);
|
|
23563
23563
|
try {
|
|
23564
23564
|
const { peer: i } = nn.fromBinary((yield e).payload);
|
|
23565
|
-
a(this,
|
|
23565
|
+
a(this, Bo).getValue("connectionHandler").socketJoined = true, I.emit(A.SOCKET_SERVICE_ROOM_JOINED, { peer: i });
|
|
23566
23566
|
const n = this.getRoomState(), o = this.getRoomPeersNonPaginated(), [{ room: d }, { peers: c }] = yield Promise.all([n, o]);
|
|
23567
23567
|
return I.emit(A.ROOM_STATE, d), I.emit(A.SOCKET_PEERS, c), { peer: i };
|
|
23568
23568
|
} catch (i) {
|
|
@@ -23784,7 +23784,7 @@ const vf = (hm = class {
|
|
|
23784
23784
|
patch: t
|
|
23785
23785
|
});
|
|
23786
23786
|
}), this.socket.sendMessagePromise(
|
|
23787
|
-
|
|
23787
|
+
Bc.updateUserPreset,
|
|
23788
23788
|
Wb.toBinary(e)
|
|
23789
23789
|
);
|
|
23790
23790
|
});
|
|
@@ -23834,7 +23834,7 @@ const vf = (hm = class {
|
|
|
23834
23834
|
e = Vp.fromBinary.bind(Vp);
|
|
23835
23835
|
break;
|
|
23836
23836
|
}
|
|
23837
|
-
case
|
|
23837
|
+
case Bc.updateUserPreset: {
|
|
23838
23838
|
e = kp.fromBinary.bind(kp);
|
|
23839
23839
|
break;
|
|
23840
23840
|
}
|
|
@@ -23890,7 +23890,7 @@ const vf = (hm = class {
|
|
|
23890
23890
|
};
|
|
23891
23891
|
try {
|
|
23892
23892
|
const e = yield this.socket.sendMessagePromise(
|
|
23893
|
-
|
|
23893
|
+
Bc.getUserPresets,
|
|
23894
23894
|
$b.toBinary(t)
|
|
23895
23895
|
), r = qb.fromBinary(e.payload).peerPresets[0], i = new TextDecoder().decode(r.preset), n = JSON.parse(i).permissions;
|
|
23896
23896
|
return { chat: n.chat, polls: n.polls, plugins: n.plugins };
|
|
@@ -23899,14 +23899,14 @@ const vf = (hm = class {
|
|
|
23899
23899
|
}
|
|
23900
23900
|
});
|
|
23901
23901
|
}
|
|
23902
|
-
},
|
|
23903
|
-
let
|
|
23902
|
+
}, Bo = /* @__PURE__ */ new WeakMap(), hm);
|
|
23903
|
+
let ld = vf;
|
|
23904
23904
|
l0([
|
|
23905
23905
|
y.trace("RoomSocketHandler.joinRoom")
|
|
23906
|
-
],
|
|
23907
|
-
var ji = {},
|
|
23908
|
-
Object.defineProperty(
|
|
23909
|
-
|
|
23906
|
+
], ld.prototype, "joinRoom", 1);
|
|
23907
|
+
var ji = {}, Pl = {};
|
|
23908
|
+
Object.defineProperty(Pl, "__esModule", { value: true });
|
|
23909
|
+
Pl.Logger = void 0;
|
|
23910
23910
|
class u0 {
|
|
23911
23911
|
constructor(t) {
|
|
23912
23912
|
}
|
|
@@ -23917,22 +23917,22 @@ class u0 {
|
|
|
23917
23917
|
error() {
|
|
23918
23918
|
}
|
|
23919
23919
|
}
|
|
23920
|
-
|
|
23920
|
+
Pl.Logger = u0;
|
|
23921
23921
|
Object.defineProperty(ji, "__esModule", { value: true });
|
|
23922
|
-
var
|
|
23923
|
-
const h0 =
|
|
23922
|
+
var ud = ji.AwaitQueue = ji.AwaitQueueRemovedTaskError = ji.AwaitQueueStoppedError = void 0;
|
|
23923
|
+
const h0 = Pl, pr = new h0.Logger();
|
|
23924
23924
|
class mh extends Error {
|
|
23925
23925
|
constructor(t) {
|
|
23926
23926
|
super(t != null ? t : "AwaitQueue stopped"), this.name = "AwaitQueueStoppedError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, mh);
|
|
23927
23927
|
}
|
|
23928
23928
|
}
|
|
23929
23929
|
ji.AwaitQueueStoppedError = mh;
|
|
23930
|
-
class
|
|
23930
|
+
class Cl extends Error {
|
|
23931
23931
|
constructor(t) {
|
|
23932
|
-
super(t != null ? t : "AwaitQueue task removed"), this.name = "AwaitQueueRemovedTaskError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this,
|
|
23932
|
+
super(t != null ? t : "AwaitQueue task removed"), this.name = "AwaitQueueRemovedTaskError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Cl);
|
|
23933
23933
|
}
|
|
23934
23934
|
}
|
|
23935
|
-
ji.AwaitQueueRemovedTaskError =
|
|
23935
|
+
ji.AwaitQueueRemovedTaskError = Cl;
|
|
23936
23936
|
class p0 {
|
|
23937
23937
|
constructor() {
|
|
23938
23938
|
this.pendingTasks = /* @__PURE__ */ new Map(), this.nextTaskId = 0, this.stopping = false;
|
|
@@ -23988,7 +23988,7 @@ class p0 {
|
|
|
23988
23988
|
pr.debug(`stop() | no task with given idx [taskIdx:${t}]`);
|
|
23989
23989
|
return;
|
|
23990
23990
|
}
|
|
23991
|
-
e.reject(new
|
|
23991
|
+
e.reject(new Cl());
|
|
23992
23992
|
}
|
|
23993
23993
|
dump() {
|
|
23994
23994
|
const t = Date.now();
|
|
@@ -24015,7 +24015,7 @@ class p0 {
|
|
|
24015
24015
|
});
|
|
24016
24016
|
}
|
|
24017
24017
|
}
|
|
24018
|
-
|
|
24018
|
+
ud = ji.AwaitQueue = p0;
|
|
24019
24019
|
function m0(s, t) {
|
|
24020
24020
|
const e = new Error(t);
|
|
24021
24021
|
return e.name = s, e;
|
|
@@ -24079,7 +24079,7 @@ function f0(s) {
|
|
|
24079
24079
|
uri: t.uri
|
|
24080
24080
|
}));
|
|
24081
24081
|
}
|
|
24082
|
-
function
|
|
24082
|
+
function Nc(s) {
|
|
24083
24083
|
return {
|
|
24084
24084
|
codecs: g0(s.codecs),
|
|
24085
24085
|
headerExtensions: f0(s.headerExtensions ? s.headerExtensions : [])
|
|
@@ -24089,13 +24089,13 @@ function v0(s) {
|
|
|
24089
24089
|
const t = RTCRtpReceiver.getCapabilities("audio"), e = RTCRtpReceiver.getCapabilities("video"), r = RTCRtpSender.getCapabilities("audio"), i = RTCRtpSender.getCapabilities("video");
|
|
24090
24090
|
s && (e.codecs = e.codecs.filter(({ mimeType: c }) => s === c), i.codecs = i.codecs.filter(({ mimeType: c }) => s === c));
|
|
24091
24091
|
const n = {
|
|
24092
|
-
audio:
|
|
24093
|
-
video:
|
|
24092
|
+
audio: Nc(t),
|
|
24093
|
+
video: Nc(e)
|
|
24094
24094
|
};
|
|
24095
24095
|
return {
|
|
24096
24096
|
sender: {
|
|
24097
|
-
audio:
|
|
24098
|
-
video:
|
|
24097
|
+
audio: Nc(r),
|
|
24098
|
+
video: Nc(i)
|
|
24099
24099
|
},
|
|
24100
24100
|
receiver: n
|
|
24101
24101
|
};
|
|
@@ -24268,7 +24268,7 @@ class T0 {
|
|
|
24268
24268
|
}
|
|
24269
24269
|
}
|
|
24270
24270
|
Ze = /* @__PURE__ */ new WeakMap();
|
|
24271
|
-
class
|
|
24271
|
+
class Rl extends ut.EventEmitter {
|
|
24272
24272
|
constructor() {
|
|
24273
24273
|
super(), this.setMaxListeners(1 / 0);
|
|
24274
24274
|
}
|
|
@@ -24309,7 +24309,7 @@ class Po extends ut.EventEmitter {
|
|
|
24309
24309
|
});
|
|
24310
24310
|
}
|
|
24311
24311
|
}
|
|
24312
|
-
class fh extends
|
|
24312
|
+
class fh extends Rl {
|
|
24313
24313
|
constructor() {
|
|
24314
24314
|
super(...arguments);
|
|
24315
24315
|
p(this, "_sendWebStream", new MediaStream());
|
|
@@ -24641,14 +24641,14 @@ class vh extends fh {
|
|
|
24641
24641
|
});
|
|
24642
24642
|
}
|
|
24643
24643
|
}
|
|
24644
|
-
class
|
|
24644
|
+
class hd extends fh {
|
|
24645
24645
|
constructor(e) {
|
|
24646
24646
|
super();
|
|
24647
24647
|
p(this, "supportsSendEncodings", false);
|
|
24648
24648
|
this.supportsSendEncodings = e.supportsSendEncodings;
|
|
24649
24649
|
}
|
|
24650
24650
|
static createFactory(e) {
|
|
24651
|
-
return () => new
|
|
24651
|
+
return () => new hd(e);
|
|
24652
24652
|
}
|
|
24653
24653
|
get name() {
|
|
24654
24654
|
return "Firefox60";
|
|
@@ -24795,15 +24795,15 @@ class Th extends fh {
|
|
|
24795
24795
|
function y0(s, t) {
|
|
24796
24796
|
return typeof s == "undefined" ? t : typeof window != "undefined" && Object.getOwnPropertyDescriptor(window, "structuredClone") ? structuredClone(s) : JSON.parse(JSON.stringify(s));
|
|
24797
24797
|
}
|
|
24798
|
-
var
|
|
24799
|
-
class S0 extends
|
|
24798
|
+
var Ho, Ii, bs, ks, fr, qo, Au, Od, Tf, Nd, yf;
|
|
24799
|
+
class S0 extends Rl {
|
|
24800
24800
|
constructor(e) {
|
|
24801
24801
|
var r;
|
|
24802
24802
|
super();
|
|
24803
24803
|
f(this, ks);
|
|
24804
|
-
f(this,
|
|
24804
|
+
f(this, qo);
|
|
24805
|
+
f(this, Od);
|
|
24805
24806
|
f(this, Nd);
|
|
24806
|
-
f(this, Ld);
|
|
24807
24807
|
p(this, "rtpReceiver");
|
|
24808
24808
|
p(this, "id");
|
|
24809
24809
|
p(this, "localId");
|
|
@@ -24814,10 +24814,10 @@ class S0 extends Po {
|
|
|
24814
24814
|
p(this, "peerId");
|
|
24815
24815
|
p(this, "appData");
|
|
24816
24816
|
p(this, "transceiver");
|
|
24817
|
-
f(this,
|
|
24817
|
+
f(this, Ho, void 0);
|
|
24818
24818
|
f(this, Ii, void 0);
|
|
24819
24819
|
f(this, bs, void 0);
|
|
24820
|
-
this.id = e.id, this.localId = e.localId, v(this,
|
|
24820
|
+
this.id = e.id, this.localId = e.localId, v(this, Ho, e.handler), this.appData = e.appData, this.peerId = e.producingPeerId, this.producingTransportId = e.producingTransportId, v(this, bs, false), this.producerId = e.producerId, this.track = e.track, v(this, Ii, (r = e.paused) != null ? r : false), this.mimeType = e.mimeType, this.transceiver = e.transceiver, this.rtpReceiver = e.rtpReceiver, $(this, Od, Tf).call(this);
|
|
24821
24821
|
}
|
|
24822
24822
|
get closed() {
|
|
24823
24823
|
return a(this, bs);
|
|
@@ -24829,13 +24829,13 @@ class S0 extends Po {
|
|
|
24829
24829
|
return a(this, Ii);
|
|
24830
24830
|
}
|
|
24831
24831
|
close(e, r) {
|
|
24832
|
-
a(this, bs) || (u.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, ks, fr)), v(this, bs, true), r && ($(this,
|
|
24832
|
+
a(this, bs) || (u.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, ks, fr)), v(this, bs, true), r && ($(this, Nd, yf).call(this), this.transceiver.stop()), this.safeEmit("close", e));
|
|
24833
24833
|
}
|
|
24834
24834
|
getStats() {
|
|
24835
24835
|
return l(this, null, function* () {
|
|
24836
24836
|
if (a(this, bs))
|
|
24837
24837
|
throw new It("closed");
|
|
24838
|
-
return a(this,
|
|
24838
|
+
return a(this, Ho).getReceiverStats(this.localId);
|
|
24839
24839
|
});
|
|
24840
24840
|
}
|
|
24841
24841
|
pause() {
|
|
@@ -24853,7 +24853,7 @@ class S0 extends Po {
|
|
|
24853
24853
|
v(this, Ii, false), this.track.enabled = true, this.safeEmit("resume");
|
|
24854
24854
|
}
|
|
24855
24855
|
}
|
|
24856
|
-
|
|
24856
|
+
Ho = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakSet(), fr = function() {
|
|
24857
24857
|
return {
|
|
24858
24858
|
consumer: {
|
|
24859
24859
|
id: this.id,
|
|
@@ -24862,13 +24862,13 @@ qo = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), bs = /*
|
|
|
24862
24862
|
kind: this.kind
|
|
24863
24863
|
}
|
|
24864
24864
|
};
|
|
24865
|
-
},
|
|
24865
|
+
}, qo = /* @__PURE__ */ new WeakSet(), Au = function() {
|
|
24866
24866
|
u.debug('Consumer::track "ended" event', a(this, ks, fr)), this.safeEmit("trackended");
|
|
24867
|
-
},
|
|
24868
|
-
this.track.addEventListener("ended", $(this,
|
|
24869
|
-
},
|
|
24867
|
+
}, Od = /* @__PURE__ */ new WeakSet(), Tf = function() {
|
|
24868
|
+
this.track.addEventListener("ended", $(this, qo, Au).bind(this));
|
|
24869
|
+
}, Nd = /* @__PURE__ */ new WeakSet(), yf = function() {
|
|
24870
24870
|
try {
|
|
24871
|
-
this.track.removeEventListener("ended", $(this,
|
|
24871
|
+
this.track.removeEventListener("ended", $(this, qo, Au)), this.track.stop();
|
|
24872
24872
|
} catch (e) {
|
|
24873
24873
|
u.error("Consumer::destroyTrack()", G(O({}, a(this, ks, fr)), {
|
|
24874
24874
|
error: e
|
|
@@ -24876,7 +24876,7 @@ qo = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), bs = /*
|
|
|
24876
24876
|
}
|
|
24877
24877
|
};
|
|
24878
24878
|
var as, ta, sa, Ai, zt, et, Or, ra, Nt, ss;
|
|
24879
|
-
class E0 extends
|
|
24879
|
+
class E0 extends Rl {
|
|
24880
24880
|
constructor(e) {
|
|
24881
24881
|
var r, i;
|
|
24882
24882
|
super();
|
|
@@ -24912,7 +24912,7 @@ class E0 extends Po {
|
|
|
24912
24912
|
return l(this, null, function* () {
|
|
24913
24913
|
if (a(this, zt))
|
|
24914
24914
|
return;
|
|
24915
|
-
if (u.debug(`Producer::close() ${e ? `with reason ${e}` : ""}`, a(this, Nt, ss)), v(this, zt, true), this._destroyTrack(), e ===
|
|
24915
|
+
if (u.debug(`Producer::close() ${e ? `with reason ${e}` : ""}`, a(this, Nt, ss)), v(this, zt, true), this._destroyTrack(), e === pd) {
|
|
24916
24916
|
this.safeEmit("close", { reason: e });
|
|
24917
24917
|
return;
|
|
24918
24918
|
}
|
|
@@ -25013,7 +25013,7 @@ function Sf(s) {
|
|
|
25013
25013
|
function Kl(s) {
|
|
25014
25014
|
return Math.random().toString(36).substring(2, 2 + s);
|
|
25015
25015
|
}
|
|
25016
|
-
const
|
|
25016
|
+
const Lc = 1;
|
|
25017
25017
|
function jp(s) {
|
|
25018
25018
|
const t = s;
|
|
25019
25019
|
return delete t.payload._bolt, t;
|
|
@@ -25121,7 +25121,7 @@ Nr = /* @__PURE__ */ new WeakMap(), p(ni, "createRequest", (e) => {
|
|
|
25121
25121
|
_bolt: {
|
|
25122
25122
|
id: Kl(8),
|
|
25123
25123
|
type: "REQUEST",
|
|
25124
|
-
version:
|
|
25124
|
+
version: Lc
|
|
25125
25125
|
}
|
|
25126
25126
|
})
|
|
25127
25127
|
};
|
|
@@ -25135,7 +25135,7 @@ Nr = /* @__PURE__ */ new WeakMap(), p(ni, "createRequest", (e) => {
|
|
|
25135
25135
|
_bolt: {
|
|
25136
25136
|
id: e,
|
|
25137
25137
|
type: "RESPONSE",
|
|
25138
|
-
version:
|
|
25138
|
+
version: Lc
|
|
25139
25139
|
}
|
|
25140
25140
|
})
|
|
25141
25141
|
};
|
|
@@ -25149,7 +25149,7 @@ Nr = /* @__PURE__ */ new WeakMap(), p(ni, "createRequest", (e) => {
|
|
|
25149
25149
|
bolt: {
|
|
25150
25150
|
id: Kl(8),
|
|
25151
25151
|
type: "NOTIFY",
|
|
25152
|
-
version:
|
|
25152
|
+
version: Lc
|
|
25153
25153
|
}
|
|
25154
25154
|
})
|
|
25155
25155
|
};
|
|
@@ -25160,7 +25160,7 @@ Nr = /* @__PURE__ */ new WeakMap(), p(ni, "createRequest", (e) => {
|
|
|
25160
25160
|
_bolt: {
|
|
25161
25161
|
id: e,
|
|
25162
25162
|
type: "RESPONSE",
|
|
25163
|
-
version:
|
|
25163
|
+
version: Lc
|
|
25164
25164
|
}
|
|
25165
25165
|
}
|
|
25166
25166
|
}));
|
|
@@ -25176,9 +25176,9 @@ function P0(s) {
|
|
|
25176
25176
|
})));
|
|
25177
25177
|
return Promise.all(t);
|
|
25178
25178
|
}
|
|
25179
|
-
const
|
|
25179
|
+
const pd = "transport closed";
|
|
25180
25180
|
var ia;
|
|
25181
|
-
const
|
|
25181
|
+
const Ld = class extends Rl {
|
|
25182
25182
|
constructor(e, {
|
|
25183
25183
|
id: r,
|
|
25184
25184
|
direction: i,
|
|
@@ -25214,7 +25214,7 @@ const Vd = class extends Po {
|
|
|
25214
25214
|
p(this, "appData");
|
|
25215
25215
|
u.debug(`constructor() [id: ${r}, direction: ${i}]`), v(this, ia, e), this.id = r, this.direction = i;
|
|
25216
25216
|
const T = y0(h, {});
|
|
25217
|
-
delete T.iceServers, delete T.iceTransportPolicy, delete T.bundlePolicy, delete T.rtcpMuxPolicy, delete T.sdpSemantics, this.producers = /* @__PURE__ */ new Map(), this.consumers = /* @__PURE__ */ new Map(), this.datachannels = /* @__PURE__ */ new Map(), this.consumerTrackEvents = /* @__PURE__ */ new Map(), this.unknownTracksMap = /* @__PURE__ */ new Map(), this.awaitQueue = new
|
|
25217
|
+
delete T.iceServers, delete T.iceTransportPolicy, delete T.bundlePolicy, delete T.rtcpMuxPolicy, delete T.sdpSemantics, this.producers = /* @__PURE__ */ new Map(), this.consumers = /* @__PURE__ */ new Map(), this.datachannels = /* @__PURE__ */ new Map(), this.consumerTrackEvents = /* @__PURE__ */ new Map(), this.unknownTracksMap = /* @__PURE__ */ new Map(), this.awaitQueue = new ud(), this.handler = n(), this.handler.enableHighBitrate = (_ = g == null ? void 0 : g.enableHighBitrate) != null ? _ : false, this.handler.enableStereo = (P = g == null ? void 0 : g.enableStereo) != null ? P : false, this.handler.enableDtx = (b = g == null ? void 0 : g.enableDtx) != null ? b : true, this.handler.init({
|
|
25218
25218
|
onTrackHandler: this._ontrack.bind(this),
|
|
25219
25219
|
direction: i,
|
|
25220
25220
|
iceServers: o,
|
|
@@ -25222,11 +25222,11 @@ const Vd = class extends Po {
|
|
|
25222
25222
|
additionalSettings: h,
|
|
25223
25223
|
proprietaryConstraints: c
|
|
25224
25224
|
}), this.appData = m || {}, this.transportConnectionPromise = new Promise((R) => {
|
|
25225
|
-
this.
|
|
25225
|
+
this.once("connected", () => {
|
|
25226
25226
|
R(true);
|
|
25227
|
-
}), this.
|
|
25227
|
+
}), this.once("disconnect", () => {
|
|
25228
25228
|
R(false);
|
|
25229
|
-
}), this.
|
|
25229
|
+
}), this.once("close", () => {
|
|
25230
25230
|
R(false);
|
|
25231
25231
|
});
|
|
25232
25232
|
}), this.eventsDCReadyPromise = new Promise((R) => {
|
|
@@ -25234,7 +25234,7 @@ const Vd = class extends Po {
|
|
|
25234
25234
|
}), this.handler.on(
|
|
25235
25235
|
"@connectionstatechange",
|
|
25236
25236
|
(R) => {
|
|
25237
|
-
R !== this.connectionState && (u.debug(`connection state changed to ${R}`), this.connectionState = R, R === "connected" && (this.connected = true, this.
|
|
25237
|
+
R !== this.connectionState && (u.debug(`connection state changed to ${R}`), this.connectionState = R, R === "connected" && (this.connected = true, this.emit("connected")), R === "disconnected" && (this.connected = false, this.emit("disconnect")), (R === "failed" || R === "closed") && (this.connected = false, this.emit("close")), this.closed || this.safeEmit("connectionstatechange", R));
|
|
25238
25238
|
}
|
|
25239
25239
|
), this.handler.on(
|
|
25240
25240
|
"@icecandidate",
|
|
@@ -25297,12 +25297,12 @@ const Vd = class extends Po {
|
|
|
25297
25297
|
close() {
|
|
25298
25298
|
this.closed || (u.debug("Transport close called"), this.connectionState = "closed", this.connected = false, this.handler.close(), Array.from(this.producers.values()).forEach(
|
|
25299
25299
|
(e) => {
|
|
25300
|
-
e.close(
|
|
25300
|
+
e.close(pd).catch(() => {
|
|
25301
25301
|
});
|
|
25302
25302
|
}
|
|
25303
25303
|
), this.producers.clear(), Array.from(this.consumers.values()).forEach((e) => {
|
|
25304
|
-
e.close(
|
|
25305
|
-
}), this.consumers.clear(), this.consumerTrackEvents.clear(), this.emit("close")
|
|
25304
|
+
e.close(pd);
|
|
25305
|
+
}), this.consumers.clear(), this.consumerTrackEvents.clear(), this.emit("close"));
|
|
25306
25306
|
}
|
|
25307
25307
|
getStats() {
|
|
25308
25308
|
return l(this, null, function* () {
|
|
@@ -25410,7 +25410,7 @@ const Vd = class extends Po {
|
|
|
25410
25410
|
const r = new E0(e);
|
|
25411
25411
|
return this.producers.set(r.id, r), r.once("close", () => {
|
|
25412
25412
|
this.producers.delete(r.id);
|
|
25413
|
-
}), r;
|
|
25413
|
+
}), this.emit("newproducer", r), r;
|
|
25414
25414
|
});
|
|
25415
25415
|
}
|
|
25416
25416
|
closeProducer(e) {
|
|
@@ -25484,13 +25484,13 @@ const Vd = class extends Po {
|
|
|
25484
25484
|
closeConsumers(e, r) {
|
|
25485
25485
|
return l(this, null, function* () {
|
|
25486
25486
|
try {
|
|
25487
|
-
const i = e.map((c) => c.transceiver.mid), n =
|
|
25487
|
+
const i = e.map((c) => c.transceiver.mid), n = Ld.parseCodecAndFmtpMappings(
|
|
25488
25488
|
this.handler.pc.remoteDescription,
|
|
25489
25489
|
i
|
|
25490
25490
|
);
|
|
25491
25491
|
u.info("Stopping transceivers", { consumerIds: e.map(({ id: c }) => c) }), e.forEach((c) => c.close(void 0, true));
|
|
25492
25492
|
let o = yield this.handler.pc.createOffer();
|
|
25493
|
-
u.info("Created offer for closing consumers", { sdp: o.sdp }), o =
|
|
25493
|
+
u.info("Created offer for closing consumers", { sdp: o.sdp }), o = Ld.setCodecAndFmtpMappings(
|
|
25494
25494
|
o,
|
|
25495
25495
|
i,
|
|
25496
25496
|
n
|
|
@@ -25607,7 +25607,7 @@ const Vd = class extends Po {
|
|
|
25607
25607
|
peerId: n,
|
|
25608
25608
|
producerId: i
|
|
25609
25609
|
}
|
|
25610
|
-
}), this.
|
|
25610
|
+
}), this.emit("newconsumer", pe), clearTimeout(L), b(pe);
|
|
25611
25611
|
}
|
|
25612
25612
|
} catch (ie) {
|
|
25613
25613
|
u.warn("error while creating consumer:", ie), clearTimeout(L), R(P);
|
|
@@ -25650,7 +25650,7 @@ const Vd = class extends Po {
|
|
|
25650
25650
|
});
|
|
25651
25651
|
}
|
|
25652
25652
|
};
|
|
25653
|
-
let Mu =
|
|
25653
|
+
let Mu = Ld;
|
|
25654
25654
|
ia = /* @__PURE__ */ new WeakMap();
|
|
25655
25655
|
function C0() {
|
|
25656
25656
|
if (typeof navigator == "object" && navigator.product === "ReactNative") {
|
|
@@ -25691,12 +25691,12 @@ function C0() {
|
|
|
25691
25691
|
}
|
|
25692
25692
|
u.warn("Device::this._detectDevice() | unknown device");
|
|
25693
25693
|
}
|
|
25694
|
-
var
|
|
25694
|
+
var jo;
|
|
25695
25695
|
class R0 {
|
|
25696
25696
|
constructor(t, { handlerName: e, handlerFactory: r } = {}) {
|
|
25697
25697
|
p(this, "handlerFactory");
|
|
25698
|
-
f(this,
|
|
25699
|
-
if (u.debug("constructor()"), v(this,
|
|
25698
|
+
f(this, jo, void 0);
|
|
25699
|
+
if (u.debug("constructor()"), v(this, jo, t), e && r)
|
|
25700
25700
|
throw new TypeError(
|
|
25701
25701
|
"just one of handlerName or handlerInterface can be given"
|
|
25702
25702
|
);
|
|
@@ -25717,10 +25717,10 @@ class R0 {
|
|
|
25717
25717
|
this.handlerFactory = Th.createFactory();
|
|
25718
25718
|
break;
|
|
25719
25719
|
case "Firefox60":
|
|
25720
|
-
this.handlerFactory =
|
|
25720
|
+
this.handlerFactory = hd.createFactory({ supportsSendEncodings: false });
|
|
25721
25721
|
break;
|
|
25722
25722
|
case "Firefox110":
|
|
25723
|
-
this.handlerFactory =
|
|
25723
|
+
this.handlerFactory = hd.createFactory({ supportsSendEncodings: true });
|
|
25724
25724
|
break;
|
|
25725
25725
|
default:
|
|
25726
25726
|
throw new TypeError(`unknown handlerName "${e}"`);
|
|
@@ -25729,28 +25729,28 @@ class R0 {
|
|
|
25729
25729
|
}
|
|
25730
25730
|
createTransport(t) {
|
|
25731
25731
|
const e = v4();
|
|
25732
|
-
return new Mu(a(this,
|
|
25732
|
+
return new Mu(a(this, jo), G(O({
|
|
25733
25733
|
id: e
|
|
25734
25734
|
}, t), {
|
|
25735
25735
|
handlerFactory: this.handlerFactory
|
|
25736
25736
|
}));
|
|
25737
25737
|
}
|
|
25738
25738
|
}
|
|
25739
|
-
|
|
25739
|
+
jo = /* @__PURE__ */ new WeakMap();
|
|
25740
25740
|
const w0 = 2e3;
|
|
25741
|
-
var Js, na, ot, ct, Mi, aa, oa, ca, Di, Lr, da, la,
|
|
25741
|
+
var Js, na, ot, ct, Mi, aa, oa, ca, Di, Lr, da, la, Jc, Go, Du, Vd, _f, xd, Pf, Ud, Cf, $d, Rf, Fd, wf, Wo, Ou, Jo, Nu;
|
|
25742
25742
|
class b0 extends ut.EventEmitter {
|
|
25743
25743
|
constructor(e, r, i) {
|
|
25744
25744
|
super();
|
|
25745
25745
|
f(this, la);
|
|
25746
|
-
f(this,
|
|
25746
|
+
f(this, Go);
|
|
25747
|
+
f(this, Vd);
|
|
25747
25748
|
f(this, xd);
|
|
25748
25749
|
f(this, Ud);
|
|
25749
25750
|
f(this, $d);
|
|
25750
25751
|
f(this, Fd);
|
|
25751
|
-
f(this,
|
|
25752
|
+
f(this, Wo);
|
|
25752
25753
|
f(this, Jo);
|
|
25753
|
-
f(this, Ko);
|
|
25754
25754
|
f(this, Js, void 0);
|
|
25755
25755
|
f(this, na, void 0);
|
|
25756
25756
|
f(this, ot, void 0);
|
|
@@ -25779,10 +25779,10 @@ class b0 extends ut.EventEmitter {
|
|
|
25779
25779
|
break;
|
|
25780
25780
|
}
|
|
25781
25781
|
}
|
|
25782
|
-
a(this, la,
|
|
25782
|
+
a(this, la, Jc).mediaState = {
|
|
25783
25783
|
send: { state: zr.NEW, reconnected: false },
|
|
25784
25784
|
recv: { state: zr.NEW, reconnected: false }
|
|
25785
|
-
}, Y.hasFeature(se.FORCE_RELAY) && v(this, Lr, "relay"), $(this,
|
|
25785
|
+
}, Y.hasFeature(se.FORCE_RELAY) && v(this, Lr, "relay"), $(this, Go, Du).call(this);
|
|
25786
25786
|
}
|
|
25787
25787
|
get socket() {
|
|
25788
25788
|
return a(this, Mi);
|
|
@@ -25810,7 +25810,7 @@ class b0 extends ut.EventEmitter {
|
|
|
25810
25810
|
if (e.send) {
|
|
25811
25811
|
const P = Y.hasFeature(
|
|
25812
25812
|
se.DISABLE_OPUS_DTX_CF
|
|
25813
|
-
), b = $(this,
|
|
25813
|
+
), b = $(this, xd, Pf).call(this, {
|
|
25814
25814
|
iceServers: i,
|
|
25815
25815
|
additionalSettings: {
|
|
25816
25816
|
encodedInsertableStreams: (o = a(this, Js).getValue("modules").e2ee) == null ? void 0 : o.enabled
|
|
@@ -25825,7 +25825,7 @@ class b0 extends ut.EventEmitter {
|
|
|
25825
25825
|
n.push(b);
|
|
25826
25826
|
}
|
|
25827
25827
|
if (e.recv) {
|
|
25828
|
-
const P = $(this,
|
|
25828
|
+
const P = $(this, Ud, Cf).call(this, {
|
|
25829
25829
|
iceServers: i,
|
|
25830
25830
|
additionalSettings: {
|
|
25831
25831
|
encodedInsertableStreams: (_ = a(this, Js).getValue("modules").e2ee) == null ? void 0 : _.enabled
|
|
@@ -25847,7 +25847,7 @@ class b0 extends ut.EventEmitter {
|
|
|
25847
25847
|
const { id: n, serverId: o, direction: d } = a(this, ct);
|
|
25848
25848
|
u.info("Closing recv transport", { transport: { id: n, serverId: o, type: d } }), (r = a(this, ct)) == null || r.close(), (i = a(this, ct)) == null || i.removeAllListeners(), v(this, ct, void 0);
|
|
25849
25849
|
}
|
|
25850
|
-
$(this,
|
|
25850
|
+
$(this, Go, Du).call(this);
|
|
25851
25851
|
}
|
|
25852
25852
|
stopAllTransports() {
|
|
25853
25853
|
u.info("Closing all transports"), this.stopTransports({ send: true, recv: true });
|
|
@@ -25855,7 +25855,7 @@ class b0 extends ut.EventEmitter {
|
|
|
25855
25855
|
connectTransportWithRetry(e) {
|
|
25856
25856
|
return l(this, null, function* () {
|
|
25857
25857
|
const { id: r, serverId: i, direction: n } = e;
|
|
25858
|
-
$(this,
|
|
25858
|
+
$(this, $d, Rf).call(this, e);
|
|
25859
25859
|
try {
|
|
25860
25860
|
const o = Y.hasFeature(
|
|
25861
25861
|
se.ENABLE_HIVE_INFINITE_RETRIES
|
|
@@ -25867,7 +25867,7 @@ class b0 extends ut.EventEmitter {
|
|
|
25867
25867
|
try {
|
|
25868
25868
|
if (e.closed)
|
|
25869
25869
|
throw new li("Cannot reconnect closed transport");
|
|
25870
|
-
yield $(this,
|
|
25870
|
+
yield $(this, Vd, _f).call(this, e);
|
|
25871
25871
|
} catch (h) {
|
|
25872
25872
|
if (h instanceof li) {
|
|
25873
25873
|
c(h);
|
|
@@ -25895,14 +25895,14 @@ class b0 extends ut.EventEmitter {
|
|
|
25895
25895
|
throw new Error("Method not implemented.");
|
|
25896
25896
|
}
|
|
25897
25897
|
}
|
|
25898
|
-
Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakSet(),
|
|
25898
|
+
Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakSet(), Jc = function() {
|
|
25899
25899
|
return a(this, Js).getValue("connectionHandler");
|
|
25900
|
-
},
|
|
25900
|
+
}, Go = /* @__PURE__ */ new WeakSet(), Du = function() {
|
|
25901
25901
|
v(this, Di, {
|
|
25902
25902
|
send: void 0,
|
|
25903
25903
|
recv: void 0
|
|
25904
25904
|
});
|
|
25905
|
-
},
|
|
25905
|
+
}, Vd = /* @__PURE__ */ new WeakSet(), _f = function(e) {
|
|
25906
25906
|
return l(this, null, function* () {
|
|
25907
25907
|
const { id: r, direction: i } = e;
|
|
25908
25908
|
if (u.info(`Connecting ${i} transport`, {
|
|
@@ -25913,7 +25913,7 @@ Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /*
|
|
|
25913
25913
|
throw new li("Transport is closed");
|
|
25914
25914
|
try {
|
|
25915
25915
|
yield e.connect(
|
|
25916
|
-
(n) => $(this,
|
|
25916
|
+
(n) => $(this, Fd, wf).call(this, i, n)
|
|
25917
25917
|
), u.info(`Connected ${i} transport`, {
|
|
25918
25918
|
transport: { id: r, serverId: e.serverId, type: i }
|
|
25919
25919
|
});
|
|
@@ -25921,7 +25921,7 @@ Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /*
|
|
|
25921
25921
|
throw a(this, ca).transportFailureCount[i] += 1, n.message === "ice connection failed" ? new li(n.message) : n;
|
|
25922
25922
|
}
|
|
25923
25923
|
});
|
|
25924
|
-
},
|
|
25924
|
+
}, xd = /* @__PURE__ */ new WeakSet(), Pf = function(e) {
|
|
25925
25925
|
return l(this, null, function* () {
|
|
25926
25926
|
var r, i;
|
|
25927
25927
|
if (a(this, ot) && a(this, ot).connected) {
|
|
@@ -25938,7 +25938,7 @@ Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /*
|
|
|
25938
25938
|
direction: "send"
|
|
25939
25939
|
}))), J.configureSendTransport(a(this, ot));
|
|
25940
25940
|
});
|
|
25941
|
-
},
|
|
25941
|
+
}, Ud = /* @__PURE__ */ new WeakSet(), Cf = function(e) {
|
|
25942
25942
|
return l(this, null, function* () {
|
|
25943
25943
|
var r, i;
|
|
25944
25944
|
if (a(this, ct) && a(this, ct).connected) {
|
|
@@ -25955,10 +25955,10 @@ Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /*
|
|
|
25955
25955
|
direction: "recv"
|
|
25956
25956
|
}))), J.configureRecvTransport(a(this, ct));
|
|
25957
25957
|
});
|
|
25958
|
-
},
|
|
25958
|
+
}, $d = /* @__PURE__ */ new WeakSet(), Rf = function(e) {
|
|
25959
25959
|
const { direction: r, id: i } = e;
|
|
25960
25960
|
e.on("connectionstatechange", (n) => l(this, null, function* () {
|
|
25961
|
-
$(this,
|
|
25961
|
+
$(this, Jo, Nu).call(this, { state: n, direction: r }), u.info(
|
|
25962
25962
|
`Transport connection state changed for ${r} transport`,
|
|
25963
25963
|
{
|
|
25964
25964
|
transport: {
|
|
@@ -25979,13 +25979,13 @@ Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /*
|
|
|
25979
25979
|
break;
|
|
25980
25980
|
case "disconnected":
|
|
25981
25981
|
a(this, Di)[r] = setTimeout(() => l(this, null, function* () {
|
|
25982
|
-
yield $(this,
|
|
25982
|
+
yield $(this, Wo, Ou).call(this, e);
|
|
25983
25983
|
}), w0);
|
|
25984
25984
|
break;
|
|
25985
25985
|
case "failed":
|
|
25986
25986
|
if (e.closed)
|
|
25987
25987
|
return;
|
|
25988
|
-
o(), yield $(this,
|
|
25988
|
+
o(), yield $(this, Wo, Ou).call(this, e);
|
|
25989
25989
|
break;
|
|
25990
25990
|
}
|
|
25991
25991
|
})), e.on("icecandidate", (n) => l(this, null, function* () {
|
|
@@ -26024,7 +26024,7 @@ Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /*
|
|
|
26024
26024
|
})), e.on("dc_error", () => {
|
|
26025
26025
|
e.direction === "recv" && (u.warn("Events datachannel did not open in 5s", { country: y.location.country }), this.handleErrors("reconnectRecvTransport"));
|
|
26026
26026
|
});
|
|
26027
|
-
},
|
|
26027
|
+
}, Fd = /* @__PURE__ */ new WeakSet(), wf = function(e, r) {
|
|
26028
26028
|
return l(this, null, function* () {
|
|
26029
26029
|
const i = e === "recv";
|
|
26030
26030
|
try {
|
|
@@ -26045,7 +26045,7 @@ Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /*
|
|
|
26045
26045
|
), n;
|
|
26046
26046
|
}
|
|
26047
26047
|
});
|
|
26048
|
-
},
|
|
26048
|
+
}, Wo = /* @__PURE__ */ new WeakSet(), Ou = function(e) {
|
|
26049
26049
|
return l(this, null, function* () {
|
|
26050
26050
|
u.info("Called reconnect transport", { transport: e }), e.close(), e.removeAllListeners();
|
|
26051
26051
|
const { direction: r } = e;
|
|
@@ -26063,28 +26063,28 @@ Js = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ot = /*
|
|
|
26063
26063
|
default:
|
|
26064
26064
|
u.warn("Unknown transport direction", { transport: e });
|
|
26065
26065
|
}
|
|
26066
|
-
$(this,
|
|
26066
|
+
$(this, Jo, Nu).call(this, {
|
|
26067
26067
|
state: zr.CONNECTED,
|
|
26068
26068
|
direction: r
|
|
26069
26069
|
});
|
|
26070
26070
|
});
|
|
26071
|
-
},
|
|
26071
|
+
}, Jo = /* @__PURE__ */ new WeakSet(), Nu = function(e) {
|
|
26072
26072
|
const { state: r, direction: i } = e;
|
|
26073
|
-
a(this, la,
|
|
26073
|
+
a(this, la, Jc).mediaState[i] = {
|
|
26074
26074
|
state: r,
|
|
26075
26075
|
reconnected: true
|
|
26076
26076
|
}, I.emit(
|
|
26077
26077
|
A.TRANSPORT_STATE_UPDATE,
|
|
26078
26078
|
O({
|
|
26079
26079
|
transport: i
|
|
26080
|
-
}, a(this, la,
|
|
26080
|
+
}, a(this, la, Jc).mediaState[i])
|
|
26081
26081
|
);
|
|
26082
26082
|
};
|
|
26083
|
-
var
|
|
26083
|
+
var Bd, bf;
|
|
26084
26084
|
class k0 {
|
|
26085
26085
|
constructor(t) {
|
|
26086
|
-
f(this,
|
|
26087
|
-
this.recvTransport = t, $(this,
|
|
26086
|
+
f(this, Bd);
|
|
26087
|
+
this.recvTransport = t, $(this, Bd, bf).call(this);
|
|
26088
26088
|
}
|
|
26089
26089
|
create(t) {
|
|
26090
26090
|
return l(this, null, function* () {
|
|
@@ -26157,7 +26157,7 @@ class k0 {
|
|
|
26157
26157
|
});
|
|
26158
26158
|
}
|
|
26159
26159
|
}
|
|
26160
|
-
|
|
26160
|
+
Bd = /* @__PURE__ */ new WeakSet(), bf = function() {
|
|
26161
26161
|
this.recvTransport.on("datachannel:events", (e, r) => l(this, null, function* () {
|
|
26162
26162
|
try {
|
|
26163
26163
|
switch (r.type) {
|
|
@@ -26320,32 +26320,32 @@ class yh {
|
|
|
26320
26320
|
});
|
|
26321
26321
|
}
|
|
26322
26322
|
}
|
|
26323
|
-
var ua, Oi, Vr, ha,
|
|
26323
|
+
var ua, Oi, Vr, ha, Ko, Is, Hd, Ks, pa, qd, kf, zo, Lu, jd, If, Gd, Af, Wd, Mf, Jd, Df, Kd, Of, zd, Nf;
|
|
26324
26324
|
class A0 extends b0 {
|
|
26325
26325
|
constructor(e, r, i) {
|
|
26326
26326
|
super(e, r, i);
|
|
26327
|
+
f(this, qd);
|
|
26328
|
+
f(this, zo);
|
|
26327
26329
|
f(this, jd);
|
|
26328
|
-
f(this, Yo);
|
|
26329
26330
|
f(this, Gd);
|
|
26330
26331
|
f(this, Wd);
|
|
26331
26332
|
f(this, Jd);
|
|
26332
26333
|
f(this, Kd);
|
|
26333
26334
|
f(this, zd);
|
|
26334
|
-
f(this, Yd);
|
|
26335
26335
|
f(this, ua, void 0);
|
|
26336
26336
|
f(this, Oi, void 0);
|
|
26337
26337
|
f(this, Vr, void 0);
|
|
26338
26338
|
f(this, ha, void 0);
|
|
26339
|
-
f(this,
|
|
26339
|
+
f(this, Ko, void 0);
|
|
26340
26340
|
f(this, Is, void 0);
|
|
26341
|
-
f(this,
|
|
26341
|
+
f(this, Hd, {
|
|
26342
26342
|
producerCreationFailureCount: 0,
|
|
26343
26343
|
consumerCreationFailureCount: 0,
|
|
26344
26344
|
producerNotReadyFailureCount: 0
|
|
26345
26345
|
});
|
|
26346
26346
|
f(this, Ks, []);
|
|
26347
26347
|
f(this, pa, void 0);
|
|
26348
|
-
v(this, ua, e), a(this,
|
|
26348
|
+
v(this, ua, e), a(this, qd, kf).mediaState = {
|
|
26349
26349
|
send: { state: zr.NEW, reconnected: false },
|
|
26350
26350
|
recv: { state: zr.NEW, reconnected: false }
|
|
26351
26351
|
}, this.reset();
|
|
@@ -26369,7 +26369,7 @@ class A0 extends b0 {
|
|
|
26369
26369
|
return l(this, null, function* () {
|
|
26370
26370
|
yield this.createTransports(e);
|
|
26371
26371
|
let r, i;
|
|
26372
|
-
e.send && (r = $(this,
|
|
26372
|
+
e.send && (r = $(this, jd, If).call(this)), e.recv && (i = $(this, Gd, Af).call(this)), yield Promise.all([r, i]);
|
|
26373
26373
|
});
|
|
26374
26374
|
}
|
|
26375
26375
|
createProducer(e, r) {
|
|
@@ -26380,11 +26380,11 @@ class A0 extends b0 {
|
|
|
26380
26380
|
try {
|
|
26381
26381
|
const n = yield this.sendTransport.produce(
|
|
26382
26382
|
e,
|
|
26383
|
-
$(this,
|
|
26383
|
+
$(this, Wd, Mf).bind(this)
|
|
26384
26384
|
);
|
|
26385
|
-
return (i = e.appData) != null && i.e2ee && I.emit(A.E2EE_ACTIVE_PRODUCER, n), $(this,
|
|
26385
|
+
return (i = e.appData) != null && i.e2ee && I.emit(A.E2EE_ACTIVE_PRODUCER, n), $(this, Jd, Df).call(this, n, r), n;
|
|
26386
26386
|
} catch (n) {
|
|
26387
|
-
throw u.error("Failed to create producer", { error: n }), a(this,
|
|
26387
|
+
throw u.error("Failed to create producer", { error: n }), a(this, Hd).producerCreationFailureCount += 1, n;
|
|
26388
26388
|
}
|
|
26389
26389
|
});
|
|
26390
26390
|
}
|
|
@@ -26412,7 +26412,7 @@ class A0 extends b0 {
|
|
|
26412
26412
|
}
|
|
26413
26413
|
createConsumers(e) {
|
|
26414
26414
|
return l(this, null, function* () {
|
|
26415
|
-
a(this, pa) || clearTimeout(a(this, pa)), v(this, Ks, a(this, Ks).concat(e)), yield $(this,
|
|
26415
|
+
a(this, pa) || clearTimeout(a(this, pa)), v(this, Ks, a(this, Ks).concat(e)), yield $(this, zo, Lu).call(this);
|
|
26416
26416
|
});
|
|
26417
26417
|
}
|
|
26418
26418
|
closeConsumer(e) {
|
|
@@ -26450,9 +26450,9 @@ class A0 extends b0 {
|
|
|
26450
26450
|
});
|
|
26451
26451
|
}
|
|
26452
26452
|
}
|
|
26453
|
-
ua = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(),
|
|
26453
|
+
ua = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Hd = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), qd = /* @__PURE__ */ new WeakSet(), kf = function() {
|
|
26454
26454
|
return a(this, ua).getValue("connectionHandler");
|
|
26455
|
-
},
|
|
26455
|
+
}, zo = /* @__PURE__ */ new WeakSet(), Lu = function() {
|
|
26456
26456
|
return l(this, null, function* () {
|
|
26457
26457
|
if (!this.recvTransport || this.recvTransport.closed)
|
|
26458
26458
|
throw new Error("Recv transport is closed");
|
|
@@ -26463,22 +26463,22 @@ ua = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Vr = /*
|
|
|
26463
26463
|
return;
|
|
26464
26464
|
const { consumers: n, failedProducers: o } = yield this.recvTransport.consume(
|
|
26465
26465
|
i,
|
|
26466
|
-
$(this,
|
|
26466
|
+
$(this, Kd, Of).bind(this),
|
|
26467
26467
|
a(this, Is).negotiate.bind(a(this, Is))
|
|
26468
26468
|
);
|
|
26469
|
-
n.forEach($(this,
|
|
26470
|
-
$(this,
|
|
26469
|
+
n.forEach($(this, zd, Nf).bind(this)), o != null && o.length && (u.error("Failed to create consumers for producers", { producers: o }), v(this, Ks, a(this, Ks).concat(o)), v(this, pa, setTimeout(
|
|
26470
|
+
$(this, zo, Lu).bind(this),
|
|
26471
26471
|
e
|
|
26472
26472
|
)));
|
|
26473
26473
|
} catch (i) {
|
|
26474
26474
|
u.error("failed to consume on transport", { error: i });
|
|
26475
26475
|
}
|
|
26476
26476
|
});
|
|
26477
|
-
},
|
|
26477
|
+
}, jd = /* @__PURE__ */ new WeakSet(), If = function() {
|
|
26478
26478
|
return l(this, null, function* () {
|
|
26479
|
-
yield this.connectTransportWithRetry(this.sendTransport), v(this,
|
|
26479
|
+
yield this.connectTransportWithRetry(this.sendTransport), v(this, Ko, new yh(this.socketHandler));
|
|
26480
26480
|
});
|
|
26481
|
-
},
|
|
26481
|
+
}, Gd = /* @__PURE__ */ new WeakSet(), Af = function() {
|
|
26482
26482
|
return l(this, null, function* () {
|
|
26483
26483
|
switch (this.recvTransport.on("connect", () => {
|
|
26484
26484
|
a(this, ha).clear();
|
|
@@ -26497,15 +26497,15 @@ ua = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Vr = /*
|
|
|
26497
26497
|
v(this, Is, new k0(this.recvTransport));
|
|
26498
26498
|
}
|
|
26499
26499
|
});
|
|
26500
|
-
},
|
|
26501
|
-
return a(this,
|
|
26502
|
-
},
|
|
26500
|
+
}, Wd = /* @__PURE__ */ new WeakSet(), Mf = function(e) {
|
|
26501
|
+
return a(this, Ko).create(e);
|
|
26502
|
+
}, Jd = /* @__PURE__ */ new WeakSet(), Df = function(e, r) {
|
|
26503
26503
|
e.on("close", (i, n) => l(this, null, function* () {
|
|
26504
26504
|
const { offer: o, reason: d } = i;
|
|
26505
26505
|
if (u.info("producer::closing", {
|
|
26506
26506
|
debuggingHint: d,
|
|
26507
26507
|
producer: G(O({}, e), { status: "closing" })
|
|
26508
|
-
}), d !==
|
|
26508
|
+
}), d !== pd) {
|
|
26509
26509
|
const c = {
|
|
26510
26510
|
producerId: e.id,
|
|
26511
26511
|
description: {
|
|
@@ -26528,7 +26528,7 @@ ua = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Vr = /*
|
|
|
26528
26528
|
})), e.on("trackended", () => {
|
|
26529
26529
|
u.info("producer::trackended", { producer: G(O({}, e), { status: "UNKNOWN" }) });
|
|
26530
26530
|
}), a(this, Oi).set(e.id, e);
|
|
26531
|
-
},
|
|
26531
|
+
}, Kd = /* @__PURE__ */ new WeakSet(), Of = function(e) {
|
|
26532
26532
|
return l(this, null, function* () {
|
|
26533
26533
|
try {
|
|
26534
26534
|
return yield this.recvTransport.canConsume(), yield a(this, Is).create(e);
|
|
@@ -26536,7 +26536,7 @@ ua = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Vr = /*
|
|
|
26536
26536
|
throw u.error("Error in consume request", { error: r }), r;
|
|
26537
26537
|
}
|
|
26538
26538
|
});
|
|
26539
|
-
},
|
|
26539
|
+
}, zd = /* @__PURE__ */ new WeakSet(), Nf = function(e) {
|
|
26540
26540
|
e.on("close", (r) => l(this, null, function* () {
|
|
26541
26541
|
u.debug("consumer closed", {
|
|
26542
26542
|
consumer: {
|
|
@@ -26552,8 +26552,8 @@ ua = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), Vr = /*
|
|
|
26552
26552
|
peerId: e.peerId
|
|
26553
26553
|
});
|
|
26554
26554
|
};
|
|
26555
|
-
var Qo, Xo,
|
|
26556
|
-
const
|
|
26555
|
+
var Yo, Qo, Xo, ma, ga, fa, Zo, ec, va, wt, os, cs, Ni, Li, zs, tc, Yd, Lf, Qd, Vf, Xd, xf, Zd, Uf;
|
|
26556
|
+
const el = class {
|
|
26557
26557
|
constructor({
|
|
26558
26558
|
initialEnergyThreshold: t = 0.015,
|
|
26559
26559
|
zeroCrossingThreshold: e = 20,
|
|
@@ -26566,16 +26566,16 @@ const tl = class {
|
|
|
26566
26566
|
energyRatioThreshold: h = 1.5,
|
|
26567
26567
|
noiseHistorySize: m = 50
|
|
26568
26568
|
} = {}) {
|
|
26569
|
+
f(this, Yd);
|
|
26569
26570
|
f(this, Qd);
|
|
26570
|
-
f(this,
|
|
26571
|
+
f(this, Yo, void 0);
|
|
26571
26572
|
f(this, Qo, void 0);
|
|
26572
26573
|
f(this, Xo, void 0);
|
|
26573
|
-
f(this, Zo, void 0);
|
|
26574
26574
|
f(this, ma, void 0);
|
|
26575
26575
|
f(this, ga, void 0);
|
|
26576
26576
|
f(this, fa, void 0);
|
|
26577
|
+
f(this, Zo, void 0);
|
|
26577
26578
|
f(this, ec, void 0);
|
|
26578
|
-
f(this, tc, void 0);
|
|
26579
26579
|
f(this, va, void 0);
|
|
26580
26580
|
f(this, wt, void 0);
|
|
26581
26581
|
f(this, os, void 0);
|
|
@@ -26583,16 +26583,16 @@ const tl = class {
|
|
|
26583
26583
|
f(this, Ni, 0);
|
|
26584
26584
|
f(this, Li, 0);
|
|
26585
26585
|
f(this, zs, []);
|
|
26586
|
-
f(this,
|
|
26587
|
-
v(this, ma, t), v(this, wt, t), v(this,
|
|
26586
|
+
f(this, tc, void 0);
|
|
26587
|
+
v(this, ma, t), v(this, wt, t), v(this, Yo, e), v(this, Qo, r), v(this, Xo, i), v(this, ga, n), v(this, fa, o), v(this, Zo, d), v(this, ec, c), v(this, va, h), v(this, tc, m), v(this, os, t / 2);
|
|
26588
26588
|
}
|
|
26589
26589
|
get voiceDetected() {
|
|
26590
26590
|
return a(this, cs);
|
|
26591
26591
|
}
|
|
26592
26592
|
processAudioChunk(t) {
|
|
26593
26593
|
var o, d;
|
|
26594
|
-
const e = $(o =
|
|
26595
|
-
return $(this,
|
|
26594
|
+
const e = $(o = el, Xd, xf).call(o, t), r = $(d = el, Zd, Uf).call(d, t);
|
|
26595
|
+
return $(this, Yd, Lf).call(this, e), e / a(this, os) > a(this, va) && e > a(this, wt) && r > a(this, Yo) ? (v(this, Ni, a(this, Ni) + 1), v(this, Li, a(this, Xo)), a(this, Ni) >= a(this, Qo) && v(this, cs, true)) : (v(this, Ni, 0), a(this, Li) > 0 ? v(this, Li, a(this, Li) - 1) : a(this, cs) && v(this, cs, false), a(this, cs) || $(this, Qd, Vf).call(this, e)), { energy: e, isVoice: a(this, cs) };
|
|
26596
26596
|
}
|
|
26597
26597
|
reset() {
|
|
26598
26598
|
v(this, cs, false), v(this, Ni, 0), v(this, Li, 0), v(this, wt, a(this, ma)), v(this, os, a(this, ma) / 2), v(this, zs, []);
|
|
@@ -26605,35 +26605,35 @@ const tl = class {
|
|
|
26605
26605
|
};
|
|
26606
26606
|
}
|
|
26607
26607
|
};
|
|
26608
|
-
let ao =
|
|
26609
|
-
|
|
26608
|
+
let ao = el;
|
|
26609
|
+
Yo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), os = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(), Yd = /* @__PURE__ */ new WeakSet(), Lf = function(t) {
|
|
26610
26610
|
a(this, cs) ? v(this, wt, a(this, fa) * a(this, wt) + (1 - a(this, fa)) * t) : v(this, wt, a(this, ga) * a(this, wt) + (1 - a(this, ga)) * a(this, os)), v(this, wt, Math.max(
|
|
26611
|
-
a(this,
|
|
26612
|
-
Math.min(a(this,
|
|
26611
|
+
a(this, Zo),
|
|
26612
|
+
Math.min(a(this, ec), a(this, wt))
|
|
26613
26613
|
));
|
|
26614
|
-
},
|
|
26614
|
+
}, Qd = /* @__PURE__ */ new WeakSet(), Vf = function(t) {
|
|
26615
26615
|
if (t < a(this, wt) * 1.2)
|
|
26616
|
-
if (a(this, zs).push(t), a(this, zs).length > a(this,
|
|
26616
|
+
if (a(this, zs).push(t), a(this, zs).length > a(this, tc) && a(this, zs).shift(), a(this, zs).length >= 10) {
|
|
26617
26617
|
const e = [...a(this, zs)].sort((i, n) => i - n), r = Math.floor(e.length / 2);
|
|
26618
26618
|
v(this, os, e[r]);
|
|
26619
26619
|
} else
|
|
26620
26620
|
v(this, os, 0.95 * a(this, os) + 0.05 * t);
|
|
26621
|
-
},
|
|
26621
|
+
}, Xd = /* @__PURE__ */ new WeakSet(), xf = function(t) {
|
|
26622
26622
|
return Math.sqrt(
|
|
26623
26623
|
t.map((e) => e * e).reduce((e, r) => e + r) / t.length
|
|
26624
26624
|
);
|
|
26625
|
-
},
|
|
26625
|
+
}, Zd = /* @__PURE__ */ new WeakSet(), Uf = function(t) {
|
|
26626
26626
|
let e = 0;
|
|
26627
26627
|
for (let r = 1; r < t.length; r += 1)
|
|
26628
26628
|
(t[r] >= 0 && t[r - 1] < 0 || t[r] < 0 && t[r - 1] >= 0) && (e += 1);
|
|
26629
26629
|
return e;
|
|
26630
|
-
}, f(ao,
|
|
26630
|
+
}, f(ao, Xd), f(ao, Zd);
|
|
26631
26631
|
const M0 = 60, D0 = 400;
|
|
26632
|
-
var Ys, Qs, ds, xr, Ur, Ta, Vi, ya, Xs, $r, Sa,
|
|
26632
|
+
var Ys, Qs, ds, xr, Ur, Ta, Vi, ya, Xs, $r, Sa, tl, $f, sc, Vu, sl, Ff, rl, Bf;
|
|
26633
26633
|
const To = class {
|
|
26634
26634
|
constructor(t) {
|
|
26635
|
+
f(this, tl);
|
|
26635
26636
|
f(this, sl);
|
|
26636
|
-
f(this, rl);
|
|
26637
26637
|
f(this, Ys, void 0);
|
|
26638
26638
|
f(this, Qs, void 0);
|
|
26639
26639
|
f(this, ds, void 0);
|
|
@@ -26660,11 +26660,11 @@ const To = class {
|
|
|
26660
26660
|
var i;
|
|
26661
26661
|
if (!a(this, Ta) || !a(this, ds))
|
|
26662
26662
|
return;
|
|
26663
|
-
const { energy: t } = $(this,
|
|
26663
|
+
const { energy: t } = $(this, tl, $f).call(this), e = $(i = To, sc, Vu).call(i, t);
|
|
26664
26664
|
let r = 0.9;
|
|
26665
26665
|
a(this, Sa) !== e && a(this, Sa) ? r = 0.9 : e ? r = 0.3 : r = 0.5, v(this, Vi, (a(this, Vi) || 0) * (1 - r) + t * r);
|
|
26666
26666
|
}), M0)), a(this, Qs) && clearInterval$1(a(this, Qs)), v(this, Qs, setInterval$1(
|
|
26667
|
-
$(this,
|
|
26667
|
+
$(this, sl, Ff).bind(this),
|
|
26668
26668
|
D0
|
|
26669
26669
|
));
|
|
26670
26670
|
}
|
|
@@ -26677,7 +26677,7 @@ const To = class {
|
|
|
26677
26677
|
}
|
|
26678
26678
|
};
|
|
26679
26679
|
let oo = To;
|
|
26680
|
-
Ys = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(),
|
|
26680
|
+
Ys = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakSet(), $f = function() {
|
|
26681
26681
|
var o;
|
|
26682
26682
|
a(this, xr).state === "suspended" && a(this, xr).resume().then(() => {
|
|
26683
26683
|
u.debug("AudioActivityReporter: AudioContext forced resumed");
|
|
@@ -26686,15 +26686,15 @@ Ys = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), ds = /*
|
|
|
26686
26686
|
});
|
|
26687
26687
|
const t = new Float32Array(a(this, Ur).frequencyBinCount);
|
|
26688
26688
|
a(this, Ur).getFloatTimeDomainData(t);
|
|
26689
|
-
const { energy: e, isVoice: r } = a(this, ya).processAudioChunk(t), i = $(o = To,
|
|
26689
|
+
const { energy: e, isVoice: r } = a(this, ya).processAudioChunk(t), i = $(o = To, rl, Bf).call(o, e);
|
|
26690
26690
|
return Y.hasFeature(se.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && u.debug(
|
|
26691
26691
|
`AudioActivityReporter: producer: ${a(this, ds)}, energy: ${a(this, Vi)},
|
|
26692
26692
|
slogScale: ${i}, isVoice: ${r}, minEnergy: ${a(this, Xs)},
|
|
26693
26693
|
maxEnergy: ${a(this, $r)}`
|
|
26694
26694
|
), i === -1 / 0 || e < 1e-6 ? { energy: 0, isVoice: false } : ((!a(this, Xs) || i < a(this, Xs)) && v(this, Xs, i), (!a(this, $r) || i > a(this, $r)) && v(this, $r, i), { energy: (i - a(this, Xs)) / (a(this, $r) - a(this, Xs)) * 10 || 0, isVoice: r });
|
|
26695
|
-
},
|
|
26695
|
+
}, sc = /* @__PURE__ */ new WeakSet(), Vu = function(t) {
|
|
26696
26696
|
return t < 5;
|
|
26697
|
-
},
|
|
26697
|
+
}, sl = /* @__PURE__ */ new WeakSet(), Ff = function(t = a(this, Vi)) {
|
|
26698
26698
|
var r;
|
|
26699
26699
|
if (!a(this, ds) || !t) {
|
|
26700
26700
|
Y.hasFeature(se.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && u.debug(`AudioActivityReporter: No producerId or energy to report: ${a(this, ds)}`);
|
|
@@ -26703,13 +26703,13 @@ Ys = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), ds = /*
|
|
|
26703
26703
|
const e = {
|
|
26704
26704
|
producerId: a(this, ds),
|
|
26705
26705
|
energy: Math.round(t),
|
|
26706
|
-
silent: $(r = To,
|
|
26706
|
+
silent: $(r = To, sc, Vu).call(r, t)
|
|
26707
26707
|
};
|
|
26708
26708
|
v(this, Sa, e.silent), this.reportRequest(e);
|
|
26709
|
-
},
|
|
26709
|
+
}, rl = /* @__PURE__ */ new WeakSet(), Bf = function(t) {
|
|
26710
26710
|
const e = Math.log10(t);
|
|
26711
26711
|
return Math.round(e);
|
|
26712
|
-
}, f(oo,
|
|
26712
|
+
}, f(oo, sc), f(oo, rl);
|
|
26713
26713
|
const O0 = (s = false) => {
|
|
26714
26714
|
const t = new window.AudioContext(), e = t.createOscillator();
|
|
26715
26715
|
e.type = "triangle", e.frequency.setValueAtTime(20, t.currentTime);
|
|
@@ -26736,20 +26736,20 @@ var L0 = Object.defineProperty, V0 = Object.getOwnPropertyDescriptor, de = (s, t
|
|
|
26736
26736
|
return r && i && L0(t, e, i), i;
|
|
26737
26737
|
};
|
|
26738
26738
|
const Es = ["video/VP9", "video/VP8"];
|
|
26739
|
-
var
|
|
26739
|
+
var rc, ic, dt, W, Ea, Fr, Tt, xi, Ui, Br, nc, Zs, _a, $i, Fi, yt, bt, Hr, cn, tt, mt, Bi, co, il, Hf, nl, qf, al, jf;
|
|
26740
26740
|
class oe {
|
|
26741
26741
|
constructor(t, e, r) {
|
|
26742
26742
|
f(this, Hr);
|
|
26743
26743
|
f(this, tt);
|
|
26744
26744
|
f(this, Bi);
|
|
26745
|
+
f(this, il);
|
|
26745
26746
|
f(this, nl);
|
|
26746
26747
|
f(this, al);
|
|
26747
|
-
f(this, ol);
|
|
26748
26748
|
p(this, "context");
|
|
26749
26749
|
p(this, "authToken");
|
|
26750
26750
|
p(this, "e2ee");
|
|
26751
|
+
f(this, rc, void 0);
|
|
26751
26752
|
f(this, ic, void 0);
|
|
26752
|
-
f(this, nc, void 0);
|
|
26753
26753
|
f(this, dt, void 0);
|
|
26754
26754
|
f(this, W, void 0);
|
|
26755
26755
|
f(this, Ea, void 0);
|
|
@@ -26758,7 +26758,7 @@ class oe {
|
|
|
26758
26758
|
f(this, xi, void 0);
|
|
26759
26759
|
f(this, Ui, void 0);
|
|
26760
26760
|
f(this, Br, void 0);
|
|
26761
|
-
f(this,
|
|
26761
|
+
f(this, nc, void 0);
|
|
26762
26762
|
f(this, Zs, void 0);
|
|
26763
26763
|
f(this, _a, void 0);
|
|
26764
26764
|
f(this, $i, void 0);
|
|
@@ -26777,15 +26777,15 @@ class oe {
|
|
|
26777
26777
|
])), v(this, Fi, /* @__PURE__ */ new Map([
|
|
26778
26778
|
["video/VP9", /* @__PURE__ */ new Set()],
|
|
26779
26779
|
["video/VP8", /* @__PURE__ */ new Set()]
|
|
26780
|
-
])), v(this, Fr, e), v(this, dt, i), v(this, xi, false), v(this, W, new A0(t, i, e)), v(this, Tt, a(this, W).events), v(this, Zs, /* @__PURE__ */ new Set()), v(this, yt, /* @__PURE__ */ new Map()), v(this, Ui, false), v(this, Br, new
|
|
26780
|
+
])), v(this, Fr, e), v(this, dt, i), v(this, xi, false), v(this, W, new A0(t, i, e)), v(this, Tt, a(this, W).events), v(this, Zs, /* @__PURE__ */ new Set()), v(this, yt, /* @__PURE__ */ new Map()), v(this, Ui, false), v(this, Br, new ud()), e === Ke.CF && !navigator.isReactNative && v(this, bt, new oo(
|
|
26781
26781
|
a(this, W).socketHandler.audioActivity.bind(a(this, W).socketHandler)
|
|
26782
|
-
)), this.e2ee = (o = (n = t.getValue("modules").e2ee) == null ? void 0 : n.enabled) != null ? o : false, this.handleSocketEvents(), this.handleCallstatsEvents(), v(this,
|
|
26782
|
+
)), this.e2ee = (o = (n = t.getValue("modules").e2ee) == null ? void 0 : n.enabled) != null ? o : false, this.handleSocketEvents(), this.handleCallstatsEvents(), v(this, nc, id(
|
|
26783
26783
|
() => l(this, null, function* () {
|
|
26784
26784
|
if (!a(this, Hr, cn).mediaJoinAttempted)
|
|
26785
26785
|
return;
|
|
26786
26786
|
const { roomJoined: d } = yield this.joinRoom(
|
|
26787
|
-
a(this, nc),
|
|
26788
26787
|
a(this, ic),
|
|
26788
|
+
a(this, rc),
|
|
26789
26789
|
{},
|
|
26790
26790
|
true,
|
|
26791
26791
|
true
|
|
@@ -26806,7 +26806,7 @@ class oe {
|
|
|
26806
26806
|
a(this, Hr, cn).mediaJoined = t;
|
|
26807
26807
|
}
|
|
26808
26808
|
reset(t = true) {
|
|
26809
|
-
a(this, W).closeAllProducers(), a(this, W).closeAllConsumers(), a(this, yt).clear(), a(this, Zs).clear(), t && (this.partialJoinRoomPromise = void 0, a(this, Br).stop(), a(this, W).stopAllTransports(), a(this, W).reset(), v(this, Br, new
|
|
26809
|
+
a(this, W).closeAllProducers(), a(this, W).closeAllConsumers(), a(this, yt).clear(), a(this, Zs).clear(), t && (this.partialJoinRoomPromise = void 0, a(this, Br).stop(), a(this, W).stopAllTransports(), a(this, W).reset(), v(this, Br, new ud()));
|
|
26810
26810
|
}
|
|
26811
26811
|
joinRoom(o, d) {
|
|
26812
26812
|
return l(this, arguments, function* (t, e, r = {}, i = false, n = false) {
|
|
@@ -26891,7 +26891,7 @@ class oe {
|
|
|
26891
26891
|
}
|
|
26892
26892
|
_joinRoom(o, d) {
|
|
26893
26893
|
return l(this, arguments, function* (t, e, r = {}, i = false, n = null) {
|
|
26894
|
-
v(this,
|
|
26894
|
+
v(this, ic, t);
|
|
26895
26895
|
try {
|
|
26896
26896
|
this.partialJoinRoomPromise ? yield this.partialJoinRoomPromise : yield this._partialJoinRoom(t, e, i, n);
|
|
26897
26897
|
} catch (c) {
|
|
@@ -26928,7 +26928,7 @@ class oe {
|
|
|
26928
26928
|
try {
|
|
26929
26929
|
this.mediaJoined = true;
|
|
26930
26930
|
const { roomState: t } = yield a(this, W).socketHandler.notifySelfJoinComplete();
|
|
26931
|
-
return v(this,
|
|
26931
|
+
return v(this, rc, t.roomUuid), v(this, Ui, true), v(this, xi, false), true;
|
|
26932
26932
|
} catch (t) {
|
|
26933
26933
|
return u.error("error on completing join room:", { error: t }), this.mediaJoined = false, false;
|
|
26934
26934
|
}
|
|
@@ -27017,7 +27017,7 @@ class oe {
|
|
|
27017
27017
|
}
|
|
27018
27018
|
return this._shareWebcam(t, e);
|
|
27019
27019
|
}
|
|
27020
|
-
const n = $(this,
|
|
27020
|
+
const n = $(this, al, jf).call(this, t, e), o = ad(this.context, "disableSimulcast"), d = a(this, Fr) === Ke.CF ? se.ENABLE_CF_SIMULCAST : se.ENABLE_HIVE_SIMULCAST;
|
|
27021
27021
|
!o && Y.hasFeature(d) ? (u.info(`Simulcast enabled for SFU: ${a(this, Fr)}`), n.encodings = mM(t)) : u.info(`Simulcast disabled for webcam producer, SFU: ${a(this, Fr)}`), Y.hasFeature(se.TRACK_HINT) && (n.track.contentHint = Y.getValue(
|
|
27022
27022
|
se.TRACK_HINT
|
|
27023
27023
|
));
|
|
@@ -27117,7 +27117,7 @@ class oe {
|
|
|
27117
27117
|
yield this.shareMic(t);
|
|
27118
27118
|
return;
|
|
27119
27119
|
}
|
|
27120
|
-
const r = $(this,
|
|
27120
|
+
const r = $(this, nl, qf).call(this, t), i = () => {
|
|
27121
27121
|
a(this, yt).delete(fe.MIC);
|
|
27122
27122
|
}, n = a(this, W).createProducer(
|
|
27123
27123
|
r,
|
|
@@ -27150,7 +27150,7 @@ class oe {
|
|
|
27150
27150
|
};
|
|
27151
27151
|
a(this, dt).sendMessage(
|
|
27152
27152
|
a(this, Tt).toggleProducer,
|
|
27153
|
-
|
|
27153
|
+
Ic.toBinary(r)
|
|
27154
27154
|
);
|
|
27155
27155
|
});
|
|
27156
27156
|
}
|
|
@@ -27168,7 +27168,7 @@ class oe {
|
|
|
27168
27168
|
};
|
|
27169
27169
|
a(this, dt).sendMessage(
|
|
27170
27170
|
a(this, Tt).toggleProducer,
|
|
27171
|
-
|
|
27171
|
+
Ic.toBinary(d)
|
|
27172
27172
|
);
|
|
27173
27173
|
};
|
|
27174
27174
|
r && (r.pause(), n(r)), i && (i.pause(), n(i));
|
|
@@ -27192,7 +27192,7 @@ class oe {
|
|
|
27192
27192
|
};
|
|
27193
27193
|
a(this, dt).sendMessage(
|
|
27194
27194
|
a(this, Tt).toggleProducer,
|
|
27195
|
-
|
|
27195
|
+
Ic.toBinary(r)
|
|
27196
27196
|
);
|
|
27197
27197
|
});
|
|
27198
27198
|
}
|
|
@@ -27214,14 +27214,14 @@ class oe {
|
|
|
27214
27214
|
};
|
|
27215
27215
|
a(this, dt).sendMessage(
|
|
27216
27216
|
a(this, Tt).toggleProducer,
|
|
27217
|
-
|
|
27217
|
+
Ic.toBinary(i)
|
|
27218
27218
|
);
|
|
27219
27219
|
});
|
|
27220
27220
|
}
|
|
27221
27221
|
disableWebcam(t) {
|
|
27222
27222
|
return l(this, null, function* () {
|
|
27223
27223
|
const e = t === "video/VP9" ? fe.WEBCAM : fe.WEBCAM_BACKUP, r = yield $(this, tt, mt).call(this, e);
|
|
27224
|
-
$(this,
|
|
27224
|
+
$(this, il, Hf).call(this, e), r && (yield a(this, W).closeProducer(r));
|
|
27225
27225
|
});
|
|
27226
27226
|
}
|
|
27227
27227
|
disableMic() {
|
|
@@ -27456,7 +27456,7 @@ class oe {
|
|
|
27456
27456
|
() => {
|
|
27457
27457
|
!this.mediaJoined && !a(this, xi) && !a(this, Ui) || (u.warn(
|
|
27458
27458
|
"media hub termination broadcast received, rejoining room"
|
|
27459
|
-
), I.emit(A.ROOM_NODE_DISCONNECTED), a(this,
|
|
27459
|
+
), I.emit(A.ROOM_NODE_DISCONNECTED), a(this, nc).call(this));
|
|
27460
27460
|
}
|
|
27461
27461
|
);
|
|
27462
27462
|
});
|
|
@@ -27515,15 +27515,15 @@ class oe {
|
|
|
27515
27515
|
}));
|
|
27516
27516
|
}
|
|
27517
27517
|
}
|
|
27518
|
-
|
|
27518
|
+
rc = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), Fr = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakSet(), cn = function() {
|
|
27519
27519
|
return this.context.getValue("connectionHandler");
|
|
27520
27520
|
}, tt = /* @__PURE__ */ new WeakSet(), mt = function(t) {
|
|
27521
27521
|
return a(this, yt).get(t);
|
|
27522
27522
|
}, Bi = /* @__PURE__ */ new WeakSet(), co = function(t, e) {
|
|
27523
27523
|
return a(this, yt).set(t, e);
|
|
27524
|
-
},
|
|
27524
|
+
}, il = /* @__PURE__ */ new WeakSet(), Hf = function(t) {
|
|
27525
27525
|
return a(this, yt).delete(t);
|
|
27526
|
-
},
|
|
27526
|
+
}, nl = /* @__PURE__ */ new WeakSet(), qf = function(t) {
|
|
27527
27527
|
return {
|
|
27528
27528
|
track: t,
|
|
27529
27529
|
encodings: [
|
|
@@ -27542,7 +27542,7 @@ ic = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakMap(), dt = /*
|
|
|
27542
27542
|
stopTracks: false,
|
|
27543
27543
|
zeroRtpOnPause: true
|
|
27544
27544
|
};
|
|
27545
|
-
},
|
|
27545
|
+
}, al = /* @__PURE__ */ new WeakSet(), jf = function(t, e) {
|
|
27546
27546
|
return {
|
|
27547
27547
|
track: t,
|
|
27548
27548
|
codecOptions: [
|
|
@@ -27811,7 +27811,7 @@ const Jf = (pm = class {
|
|
|
27811
27811
|
this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
|
|
27812
27812
|
}), a(this, ls).on(x.waitingRoomRequestAccepted, () => {
|
|
27813
27813
|
this.waitlistAcceptHandler();
|
|
27814
|
-
}), a(this, ls).on(
|
|
27814
|
+
}), a(this, ls).on(Bc.updateUserPreset, (s) => {
|
|
27815
27815
|
s.updatePeersPresets.forEach((t) => {
|
|
27816
27816
|
t.userIds === this.self.userId && I.emit(A.UPDATE_PERMISSIONS, t.patch);
|
|
27817
27817
|
});
|
|
@@ -27887,7 +27887,7 @@ const Jf = (pm = class {
|
|
|
27887
27887
|
} catch (r) {
|
|
27888
27888
|
u.error("SelfController::leaveRoom::socketDisconnect");
|
|
27889
27889
|
}
|
|
27890
|
-
Wf(a(this, lt)),
|
|
27890
|
+
Wf(a(this, lt)), ld.cleanup(), this.self.roomState = s, this.self.emit("roomLeft", { state: s });
|
|
27891
27891
|
});
|
|
27892
27892
|
}
|
|
27893
27893
|
joinMediaRoom(s = false) {
|
|
@@ -27966,26 +27966,26 @@ tn([
|
|
|
27966
27966
|
tn([
|
|
27967
27967
|
y.trace("SelfController.init")
|
|
27968
27968
|
], ti, "init", 1);
|
|
27969
|
-
var
|
|
27969
|
+
var ac;
|
|
27970
27970
|
class $0 {
|
|
27971
27971
|
constructor(t) {
|
|
27972
|
-
f(this,
|
|
27973
|
-
v(this,
|
|
27972
|
+
f(this, ac, void 0);
|
|
27973
|
+
v(this, ac, t);
|
|
27974
27974
|
}
|
|
27975
27975
|
on(t, e) {
|
|
27976
27976
|
let r;
|
|
27977
|
-
t === x.roomPeerCount ? r = _p.fromBinary.bind(_p) : r = Op.fromBinary.bind(Op), a(this,
|
|
27977
|
+
t === x.roomPeerCount ? r = _p.fromBinary.bind(_p) : r = Op.fromBinary.bind(Op), a(this, ac).on(t, ({ payload: i }) => {
|
|
27978
27978
|
const n = r(i);
|
|
27979
27979
|
return e(n);
|
|
27980
27980
|
});
|
|
27981
27981
|
}
|
|
27982
27982
|
}
|
|
27983
|
-
|
|
27984
|
-
var
|
|
27983
|
+
ac = /* @__PURE__ */ new WeakMap();
|
|
27984
|
+
var oc;
|
|
27985
27985
|
class F0 {
|
|
27986
27986
|
constructor(t) {
|
|
27987
|
-
f(this,
|
|
27988
|
-
v(this,
|
|
27987
|
+
f(this, oc, void 0);
|
|
27988
|
+
v(this, oc, t);
|
|
27989
27989
|
}
|
|
27990
27990
|
on(t, e) {
|
|
27991
27991
|
let r, i;
|
|
@@ -28001,7 +28001,7 @@ class F0 {
|
|
|
28001
28001
|
break;
|
|
28002
28002
|
}
|
|
28003
28003
|
}
|
|
28004
|
-
a(this,
|
|
28004
|
+
a(this, oc).on(t, ({ payload: n }) => {
|
|
28005
28005
|
let o = i;
|
|
28006
28006
|
try {
|
|
28007
28007
|
o = r(n);
|
|
@@ -28014,7 +28014,7 @@ class F0 {
|
|
|
28014
28014
|
});
|
|
28015
28015
|
}
|
|
28016
28016
|
}
|
|
28017
|
-
|
|
28017
|
+
oc = /* @__PURE__ */ new WeakMap();
|
|
28018
28018
|
var B0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, Sh = (s, t, e, r) => {
|
|
28019
28019
|
for (var i = r > 1 ? void 0 : r ? H0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
28020
28020
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
@@ -28389,19 +28389,19 @@ var G0 = Object.defineProperty, W0 = (s, t, e) => t in s ? G0(s, t, { enumerable
|
|
|
28389
28389
|
if (t.has(s))
|
|
28390
28390
|
throw TypeError("Cannot add the same private member more than once");
|
|
28391
28391
|
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
28392
|
-
}, le = (s, t, e, r) => (Eh(s, t, "write to private field"), r ? r.call(s, e) : t.set(s, e), e), Re = (s, t, e) => (Eh(s, t, "access private method"), e),
|
|
28392
|
+
}, le = (s, t, e, r) => (Eh(s, t, "write to private field"), r ? r.call(s, e) : t.set(s, e), e), Re = (s, t, e) => (Eh(s, t, "access private method"), e), md = {}, K0 = {
|
|
28393
28393
|
get exports() {
|
|
28394
|
-
return
|
|
28394
|
+
return md;
|
|
28395
28395
|
},
|
|
28396
28396
|
set exports(s) {
|
|
28397
|
-
|
|
28397
|
+
md = s;
|
|
28398
28398
|
}
|
|
28399
28399
|
}, Tn = typeof Reflect == "object" ? Reflect : null, Gp = Tn && typeof Tn.apply == "function" ? Tn.apply : function(s, t, e) {
|
|
28400
28400
|
return Function.prototype.apply.call(s, t, e);
|
|
28401
|
-
},
|
|
28402
|
-
Tn && typeof Tn.ownKeys == "function" ?
|
|
28401
|
+
}, Kc;
|
|
28402
|
+
Tn && typeof Tn.ownKeys == "function" ? Kc = Tn.ownKeys : Object.getOwnPropertySymbols ? Kc = function(s) {
|
|
28403
28403
|
return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s));
|
|
28404
|
-
} :
|
|
28404
|
+
} : Kc = function(s) {
|
|
28405
28405
|
return Object.getOwnPropertyNames(s);
|
|
28406
28406
|
};
|
|
28407
28407
|
function z0(s) {
|
|
@@ -28414,7 +28414,7 @@ function he() {
|
|
|
28414
28414
|
he.init.call(this);
|
|
28415
28415
|
}
|
|
28416
28416
|
K0.exports = he;
|
|
28417
|
-
|
|
28417
|
+
md.once = Z0;
|
|
28418
28418
|
he.EventEmitter = he;
|
|
28419
28419
|
he.prototype._events = void 0;
|
|
28420
28420
|
he.prototype._eventsCount = 0;
|
|
@@ -28579,7 +28579,7 @@ function Zf(s) {
|
|
|
28579
28579
|
return 0;
|
|
28580
28580
|
}
|
|
28581
28581
|
he.prototype.eventNames = function() {
|
|
28582
|
-
return this._eventsCount > 0 ?
|
|
28582
|
+
return this._eventsCount > 0 ? Kc(this._events) : [];
|
|
28583
28583
|
};
|
|
28584
28584
|
function ev(s, t) {
|
|
28585
28585
|
for (var e = new Array(t), r = 0; r < t; ++r)
|
|
@@ -28718,13 +28718,13 @@ class iD {
|
|
|
28718
28718
|
ai = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap();
|
|
28719
28719
|
var rv = /* @__PURE__ */ ((s) => (s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s))(rv || {});
|
|
28720
28720
|
const nD = "2", aD = "3";
|
|
28721
|
-
var Me, dn, Ce, Ue, Tr, Je, rr, Wr, us, ln, Ls, xu, iv, lo,
|
|
28721
|
+
var Me, dn, Ce, Ue, Tr, Je, rr, Wr, us, ln, Ls, xu, iv, lo, zc, Uu, nv, $u, Kp, gd, Fu, Bu, av, mo, Yc, go, fd, vd, Hu, yn, fo, vo, Td;
|
|
28722
28722
|
class oD {
|
|
28723
28723
|
constructor(t, e) {
|
|
28724
28724
|
var q;
|
|
28725
|
-
Te(this, xu), Te(this, lo), Te(this, Uu), Te(this, $u), Te(this,
|
|
28725
|
+
Te(this, xu), Te(this, lo), Te(this, Uu), Te(this, $u), Te(this, gd), Te(this, Bu), Te(this, mo), Te(this, go), Te(this, vd), Te(this, yn), Te(this, vo), Te(this, Me, void 0), Te(this, dn, void 0), Te(this, Ce, void 0), Te(this, Ue, void 0), Te(this, Tr, void 0), Te(this, Je, void 0), Te(this, rr, void 0), Te(this, Wr, void 0), Te(this, us, void 0), Te(this, ln, void 0), Te(this, Ls, void 0);
|
|
28726
28726
|
var r, i, n, o, d, c, h, m, g;
|
|
28727
|
-
le(this, dn, t), le(this, Tr, []), le(this, Je, new
|
|
28727
|
+
le(this, dn, t), le(this, Tr, []), le(this, Je, new md()), le(this, rr, true), le(this, us, false), le(this, Ce, e != null ? e : {}), (r = D(this, Ce)).autoReconnect != null || (r.autoReconnect = true), (i = D(this, Ce)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = D(this, Ce)).pingTimeout != null || (n.pingTimeout = 3e4), (o = D(this, Ce)).connectionTimeout != null || (o.connectionTimeout = 5e3), (d = D(this, Ce)).debug != null || (d.debug = true), (c = D(this, Ce)).maxReconnectionAttempts != null || (c.maxReconnectionAttempts = 10), (h = D(this, Ce)).disconnectOnPingTimeout != null || (h.disconnectOnPingTimeout = true), (m = D(this, Ce)).queueOnDisconnect != null || (m.queueOnDisconnect = false), (g = D(this, Ce)).flushOnReconnect != null || (g.flushOnReconnect = false), le(this, Wr, {
|
|
28728
28728
|
code: void 0,
|
|
28729
28729
|
reason: void 0
|
|
28730
28730
|
}), le(this, Ue, (q = D(this, Ce).logger) != null ? q : new iD(D(this, Ce).debug ? "debug" : "info")), le(this, Ls, new rD());
|
|
@@ -28764,16 +28764,16 @@ class oD {
|
|
|
28764
28764
|
}
|
|
28765
28765
|
if (D(this, rr) !== false)
|
|
28766
28766
|
return new Promise((e, r) => {
|
|
28767
|
-
Re(this, yn, fo).call(this), Re(this, vo,
|
|
28767
|
+
Re(this, yn, fo).call(this), Re(this, vo, Td).call(this);
|
|
28768
28768
|
try {
|
|
28769
28769
|
le(this, Me, new WebSocket(Re(this, xu, iv).call(this, D(this, dn)))), D(this, Me).binaryType = "arraybuffer", D(this, Ue).debug("Connecting");
|
|
28770
28770
|
const i = setTimeout(() => {
|
|
28771
|
-
D(this, Ue).debug("Connection timeout. Closing socket"), le(this, rr, true), Re(this, vo,
|
|
28771
|
+
D(this, Ue).debug("Connection timeout. Closing socket"), le(this, rr, true), Re(this, vo, Td).call(this), D(this, Me).close(3001, "Connection Timeout"), D(this, Ce).autoReconnect && !D(this, us) && (D(this, Je).emit(
|
|
28772
28772
|
"reconnecting"
|
|
28773
|
-
), Re(this, mo,
|
|
28773
|
+
), Re(this, mo, Yc).call(this)), r(new Error("Connection timed out!"));
|
|
28774
28774
|
}, D(this, Ce).connectionTimeout);
|
|
28775
28775
|
D(this, Me).onopen = () => {
|
|
28776
|
-
D(this, Ue).debug(`Ready State: ${rv[D(this, Me).readyState]}`), i && clearTimeout(i), Re(this,
|
|
28776
|
+
D(this, Ue).debug(`Ready State: ${rv[D(this, Me).readyState]}`), i && clearTimeout(i), Re(this, vd, Hu).call(this), le(this, Wr, {
|
|
28777
28777
|
code: void 0,
|
|
28778
28778
|
reason: void 0
|
|
28779
28779
|
}), D(this, Je).emit(
|
|
@@ -28783,15 +28783,15 @@ class oD {
|
|
|
28783
28783
|
try {
|
|
28784
28784
|
i && clearTimeout(i);
|
|
28785
28785
|
const { code: o, reason: d } = n;
|
|
28786
|
-
r(d), D(this, Ue).debug("Socket closed. Close event:", { event: n }), D(this, Ue).debug(`Connection closed code: ${o}`), D(this, Ue).debug(`Connection closed reason: ${d}`), D(this, us) || Re(this,
|
|
28786
|
+
r(d), D(this, Ue).debug("Socket closed. Close event:", { event: n }), D(this, Ue).debug(`Connection closed code: ${o}`), D(this, Ue).debug(`Connection closed reason: ${d}`), D(this, us) || Re(this, gd, Fu).call(this, o, d);
|
|
28787
28787
|
} catch (o) {
|
|
28788
|
-
Re(this, lo,
|
|
28788
|
+
Re(this, lo, zc).call(this, o);
|
|
28789
28789
|
}
|
|
28790
28790
|
}, D(this, Me).onerror = (n) => {
|
|
28791
|
-
Re(this, lo,
|
|
28791
|
+
Re(this, lo, zc).call(this, n);
|
|
28792
28792
|
}, D(this, Me).onmessage = (n) => Re(this, Uu, nv).call(this, n);
|
|
28793
28793
|
} catch (i) {
|
|
28794
|
-
Re(this, lo,
|
|
28794
|
+
Re(this, lo, zc).call(this, i, r);
|
|
28795
28795
|
}
|
|
28796
28796
|
});
|
|
28797
28797
|
});
|
|
@@ -28801,13 +28801,13 @@ class oD {
|
|
|
28801
28801
|
if (D(this, Ce).queueOnDisconnect && (!D(this, Me) || D(this, Me).readyState !== 1))
|
|
28802
28802
|
return D(this, Ue).debug("Queuing message since socket is not connected!", n), D(this, Tr).push(n), false;
|
|
28803
28803
|
const o = sv.encode(n);
|
|
28804
|
-
return Re(this, go,
|
|
28804
|
+
return Re(this, go, fd).call(this, o);
|
|
28805
28805
|
}
|
|
28806
28806
|
emit(t, e, r, i) {
|
|
28807
28807
|
return this.send(t, e, r, i);
|
|
28808
28808
|
}
|
|
28809
28809
|
sendRaw(t) {
|
|
28810
|
-
return Re(this, go,
|
|
28810
|
+
return Re(this, go, fd).call(this, t);
|
|
28811
28811
|
}
|
|
28812
28812
|
receive(t, e) {
|
|
28813
28813
|
return D(this, Je).on(t.toString(), e);
|
|
@@ -28851,25 +28851,25 @@ Me = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Ce = /*
|
|
|
28851
28851
|
if (s.startsWith("http://"))
|
|
28852
28852
|
return `ws://${s.substring(7)}`;
|
|
28853
28853
|
throw new Error("Invalid URL. URL must start with http(s):// or ws(s)://.");
|
|
28854
|
-
}, lo = /* @__PURE__ */ new WeakSet(),
|
|
28854
|
+
}, lo = /* @__PURE__ */ new WeakSet(), zc = function(s, t) {
|
|
28855
28855
|
D(this, Ue).error("Error:", { error: s }), D(this, Je).emit("errored", { error: s }), t == null || t(s);
|
|
28856
28856
|
}, Uu = /* @__PURE__ */ new WeakSet(), nv = function(s) {
|
|
28857
|
-
if (Re(this,
|
|
28858
|
-
D(this, Ue).debug("Received ping from server"), Re(this, go,
|
|
28857
|
+
if (Re(this, vd, Hu).call(this), s.data === nD) {
|
|
28858
|
+
D(this, Ue).debug("Received ping from server"), Re(this, go, fd).call(this, aD);
|
|
28859
28859
|
return;
|
|
28860
28860
|
}
|
|
28861
28861
|
const t = sv.decode(s.data), { id: e, payload: r } = t;
|
|
28862
28862
|
D(this, Ue).debug("Received message", { event: t.event, messageID: e }), D(this, Je).emit(t.event.toString(), { id: e, payload: r });
|
|
28863
28863
|
}, $u = /* @__PURE__ */ new WeakSet(), Kp = function() {
|
|
28864
28864
|
return D(this, Me).readyState === 1;
|
|
28865
|
-
},
|
|
28865
|
+
}, gd = /* @__PURE__ */ new WeakSet(), Fu = function(s, t) {
|
|
28866
28866
|
le(this, Wr, { reason: t, code: s }), D(this, Je).emit("disconnected", { code: s, reason: t });
|
|
28867
28867
|
}, Bu = /* @__PURE__ */ new WeakSet(), av = function() {
|
|
28868
28868
|
const { reason: s, code: t } = D(this, Wr);
|
|
28869
28869
|
t && t !== 1e3 && D(this, rr) && D(this, Ce).autoReconnect && !D(this, us) && (D(this, Ue).debug(`Triggering reconnection due to ${s}.`), D(this, Je).emit(
|
|
28870
28870
|
"reconnecting"
|
|
28871
|
-
), Re(this, mo,
|
|
28872
|
-
}, mo = /* @__PURE__ */ new WeakSet(),
|
|
28871
|
+
), Re(this, mo, Yc).call(this));
|
|
28872
|
+
}, mo = /* @__PURE__ */ new WeakSet(), Yc = function(s = true) {
|
|
28873
28873
|
return l(this, null, function* () {
|
|
28874
28874
|
if (s && D(this, us)) {
|
|
28875
28875
|
D(this, Ue).debug("Reconnect called when already in a reconnect loop. Ignoring.");
|
|
@@ -28881,7 +28881,7 @@ Me = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Ce = /*
|
|
|
28881
28881
|
), le(this, us, false);
|
|
28882
28882
|
return;
|
|
28883
28883
|
}
|
|
28884
|
-
le(this, us, true), Re(this, vo,
|
|
28884
|
+
le(this, us, true), Re(this, vo, Td).call(this), Re(this, yn, fo).call(this);
|
|
28885
28885
|
try {
|
|
28886
28886
|
if (yield D(this, Ls).wait(), D(this, rr) === false)
|
|
28887
28887
|
return;
|
|
@@ -28894,25 +28894,25 @@ Me = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Ce = /*
|
|
|
28894
28894
|
"reconnected"
|
|
28895
28895
|
);
|
|
28896
28896
|
} catch (t) {
|
|
28897
|
-
D(this, Ue).debug("Failed to reconnect."), D(this, Je).emit("reconnectFailure", { attempt: D(this, Ls).getAttempts() }), Re(this, mo,
|
|
28897
|
+
D(this, Ue).debug("Failed to reconnect."), D(this, Je).emit("reconnectFailure", { attempt: D(this, Ls).getAttempts() }), Re(this, mo, Yc).call(this, false);
|
|
28898
28898
|
}
|
|
28899
28899
|
});
|
|
28900
|
-
}, go = /* @__PURE__ */ new WeakSet(),
|
|
28900
|
+
}, go = /* @__PURE__ */ new WeakSet(), fd = function(s) {
|
|
28901
28901
|
try {
|
|
28902
28902
|
return D(this, Me).send(s), true;
|
|
28903
28903
|
} catch (t) {
|
|
28904
28904
|
return D(this, Ue).error(t.message), false;
|
|
28905
28905
|
}
|
|
28906
|
-
},
|
|
28906
|
+
}, vd = /* @__PURE__ */ new WeakSet(), Hu = function() {
|
|
28907
28907
|
this.config.disconnectOnPingTimeout && (D(this, Ue).debug("Resetting ping timeout"), Re(this, yn, fo).call(this), le(this, ln, setTimeout(() => {
|
|
28908
28908
|
var s;
|
|
28909
28909
|
D(this, Ue).debug("Disconnecting the socket due to ping timeout"), le(this, rr, true);
|
|
28910
28910
|
const t = 3002, e = "Ping timeout";
|
|
28911
|
-
(s = D(this, Me)) == null || s.close(t, e), Re(this,
|
|
28911
|
+
(s = D(this, Me)) == null || s.close(t, e), Re(this, gd, Fu).call(this, t, e);
|
|
28912
28912
|
}, D(this, Ce).pingTimeout)));
|
|
28913
28913
|
}, yn = /* @__PURE__ */ new WeakSet(), fo = function() {
|
|
28914
28914
|
D(this, ln) && (clearTimeout(D(this, ln)), le(this, ln, void 0));
|
|
28915
|
-
}, vo = /* @__PURE__ */ new WeakSet(),
|
|
28915
|
+
}, vo = /* @__PURE__ */ new WeakSet(), Td = function() {
|
|
28916
28916
|
D(this, Me) && (D(this, Me).onopen = void 0, D(this, Me).onerror = void 0, D(this, Me).onmessage = void 0, D(this, Me).onclose = void 0);
|
|
28917
28917
|
};
|
|
28918
28918
|
var cD = Object.defineProperty, dD = Object.getOwnPropertyDescriptor, kl = (s, t, e, r) => {
|
|
@@ -28921,7 +28921,7 @@ var cD = Object.defineProperty, dD = Object.getOwnPropertyDescriptor, kl = (s, t
|
|
|
28921
28921
|
return r && i && cD(t, e, i), i;
|
|
28922
28922
|
};
|
|
28923
28923
|
const zp = 65535, lD = 3e3;
|
|
28924
|
-
var jr, we, be, Oe, Yt, tr,
|
|
28924
|
+
var jr, we, be, Oe, Yt, tr, cc, qu, dc, ju, mm;
|
|
28925
28925
|
const ov = (mm = class {
|
|
28926
28926
|
constructor(s, {
|
|
28927
28927
|
peerId: t,
|
|
@@ -28930,8 +28930,8 @@ const ov = (mm = class {
|
|
|
28930
28930
|
capabilities: i
|
|
28931
28931
|
}) {
|
|
28932
28932
|
f(this, be);
|
|
28933
|
+
f(this, cc);
|
|
28933
28934
|
f(this, dc);
|
|
28934
|
-
f(this, lc);
|
|
28935
28935
|
f(this, jr, void 0);
|
|
28936
28936
|
f(this, we, void 0);
|
|
28937
28937
|
p(this, "roomName");
|
|
@@ -28942,7 +28942,7 @@ const ov = (mm = class {
|
|
|
28942
28942
|
var n;
|
|
28943
28943
|
if (!t || !e || !r)
|
|
28944
28944
|
throw new w("peerId, meetingId, or authToken can not be empty", "0404");
|
|
28945
|
-
v(this, Yt, void 0), v(this, tr, s), this.capabilities = i, this.roomName = e, this.authToken = r, v(this, jr, $(this,
|
|
28945
|
+
v(this, Yt, void 0), v(this, tr, s), this.capabilities = i, this.roomName = e, this.authToken = r, v(this, jr, $(this, cc, qu).call(this, t)), v(this, we, new oD(a(this, jr), {
|
|
28946
28946
|
autoReconnect: true,
|
|
28947
28947
|
disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
|
|
28948
28948
|
queueOnDisconnect: true,
|
|
@@ -28960,7 +28960,7 @@ const ov = (mm = class {
|
|
|
28960
28960
|
return a(this, tr).getValue("peerId");
|
|
28961
28961
|
}
|
|
28962
28962
|
updateURL(s) {
|
|
28963
|
-
s !== this.peerId && (v(this, jr, $(this,
|
|
28963
|
+
s !== this.peerId && (v(this, jr, $(this, cc, qu).call(this, s)), u.debug("SocketService:: Connection URL updated.")), a(this, we).updateURL(a(this, jr));
|
|
28964
28964
|
}
|
|
28965
28965
|
static getSocketEdgeDomain(s) {
|
|
28966
28966
|
return vn({ servicePrefix: "socket-edge", baseURI: s });
|
|
@@ -28997,7 +28997,7 @@ const ov = (mm = class {
|
|
|
28997
28997
|
const r = {};
|
|
28998
28998
|
return y.injectContext(r), a(this, we).send(
|
|
28999
28999
|
s,
|
|
29000
|
-
e != null ? e : $(this,
|
|
29000
|
+
e != null ? e : $(this, dc, ju).call(this),
|
|
29001
29001
|
t,
|
|
29002
29002
|
new TextEncoder().encode(JSON.stringify(r))
|
|
29003
29003
|
);
|
|
@@ -29030,7 +29030,7 @@ const ov = (mm = class {
|
|
|
29030
29030
|
hs.errorResponse,
|
|
29031
29031
|
P
|
|
29032
29032
|
);
|
|
29033
|
-
}, h = r != null ? r : $(this,
|
|
29033
|
+
}, h = r != null ? r : $(this, dc, ju).call(this), m = {};
|
|
29034
29034
|
y.injectContext(m);
|
|
29035
29035
|
const g = ({
|
|
29036
29036
|
id: _,
|
|
@@ -29126,9 +29126,9 @@ const ov = (mm = class {
|
|
|
29126
29126
|
}
|
|
29127
29127
|
}, jr = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakSet(), Oe = function() {
|
|
29128
29128
|
return a(this, tr).getValue("connectionHandler");
|
|
29129
|
-
}, Yt = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(),
|
|
29129
|
+
}, Yt = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), cc = /* @__PURE__ */ new WeakSet(), qu = function(s) {
|
|
29130
29130
|
let t = ov.getSocketEdgeDomain(a(this, tr).getValue("baseURI"));
|
|
29131
|
-
typeof
|
|
29131
|
+
typeof ad(a(this, tr), "socket_server_base") == "string" && (t = ad(a(this, tr), "socket_server_base"));
|
|
29132
29132
|
const e = `wss://${t}`, r = new URL(`${e}/ws`), i = this.peerId, n = G(O({
|
|
29133
29133
|
roomID: this.roomName,
|
|
29134
29134
|
peerID: s,
|
|
@@ -29136,29 +29136,29 @@ const ov = (mm = class {
|
|
|
29136
29136
|
useMediaV2: true
|
|
29137
29137
|
}, i !== s && { oldPeerID: i }), {
|
|
29138
29138
|
ping: this.capabilities.includes("PING"),
|
|
29139
|
-
capabilities: this.capabilities.map((o) =>
|
|
29139
|
+
capabilities: this.capabilities.map((o) => od[o]).join(" "),
|
|
29140
29140
|
joinWithDetails: true,
|
|
29141
29141
|
useCfWorker: true
|
|
29142
29142
|
});
|
|
29143
29143
|
return Object.entries(n).forEach(([o, d]) => {
|
|
29144
29144
|
r.searchParams.append(o, d.toString());
|
|
29145
29145
|
}), r.href;
|
|
29146
|
-
},
|
|
29146
|
+
}, dc = /* @__PURE__ */ new WeakSet(), ju = function() {
|
|
29147
29147
|
return `${this.peerId}-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
29148
29148
|
}, mm);
|
|
29149
|
-
let
|
|
29149
|
+
let _c = ov;
|
|
29150
29150
|
kl([
|
|
29151
29151
|
y.trace("SocketService.connect")
|
|
29152
|
-
],
|
|
29152
|
+
], _c.prototype, "connect", 1);
|
|
29153
29153
|
kl([
|
|
29154
29154
|
y.trace("SocketService.disconnect")
|
|
29155
|
-
],
|
|
29155
|
+
], _c.prototype, "disconnect", 1);
|
|
29156
29156
|
kl([
|
|
29157
29157
|
y.trace("SocketService.sendMessagePromise")
|
|
29158
|
-
],
|
|
29158
|
+
], _c.prototype, "sendMessagePromise", 1);
|
|
29159
29159
|
kl([
|
|
29160
29160
|
y.trace("SocketService.sendMessagePromiseWithTimeout")
|
|
29161
|
-
],
|
|
29161
|
+
], _c.prototype, "sendMessagePromiseWithTimeout", 1);
|
|
29162
29162
|
const Sr = class {
|
|
29163
29163
|
static handleConnectedRoomsDumpRaw({ payload: t }) {
|
|
29164
29164
|
var n;
|
|
@@ -29286,7 +29286,7 @@ const un = class {
|
|
|
29286
29286
|
organizationId: n,
|
|
29287
29287
|
cachedUserDetails: o
|
|
29288
29288
|
} = s.getAllValues();
|
|
29289
|
-
if (I.reset(),
|
|
29289
|
+
if (I.reset(), ld.cleanup(), Wf(s), _e.isSupported() === false)
|
|
29290
29290
|
throw new w("Browser not supported", "0010", true);
|
|
29291
29291
|
const d = yA(
|
|
29292
29292
|
s,
|
|
@@ -29401,7 +29401,7 @@ const un = class {
|
|
|
29401
29401
|
let P, b, R, L, H, B, F, q;
|
|
29402
29402
|
const ie = new F0(s);
|
|
29403
29403
|
Ee.socketService = s;
|
|
29404
|
-
const pe = new wl(s), Qe = new Zt(s), Ss = new q0(s), ts =
|
|
29404
|
+
const pe = new wl(s), Qe = new Zt(s), Ss = new q0(s), ts = ld.create(s, t), hr = new j0(s), M = new $0(s), E = new Wi(s), C = yield ti.init(
|
|
29405
29405
|
t,
|
|
29406
29406
|
ts,
|
|
29407
29407
|
c,
|
|
@@ -29450,7 +29450,7 @@ const un = class {
|
|
|
29450
29450
|
"0102"
|
|
29451
29451
|
);
|
|
29452
29452
|
const Os = yield r;
|
|
29453
|
-
L = yield
|
|
29453
|
+
L = yield Tc.init(
|
|
29454
29454
|
t,
|
|
29455
29455
|
Os,
|
|
29456
29456
|
hr,
|
|
@@ -29502,7 +29502,7 @@ const un = class {
|
|
|
29502
29502
|
meetingId: e,
|
|
29503
29503
|
authToken: r
|
|
29504
29504
|
} = s.getAllValues(), i = ["PING"];
|
|
29505
|
-
return new
|
|
29505
|
+
return new _c(s, {
|
|
29506
29506
|
peerId: t,
|
|
29507
29507
|
meetingId: e,
|
|
29508
29508
|
authToken: r,
|
|
@@ -29510,35 +29510,35 @@ const un = class {
|
|
|
29510
29510
|
});
|
|
29511
29511
|
}
|
|
29512
29512
|
};
|
|
29513
|
-
let
|
|
29513
|
+
let Pc = un;
|
|
29514
29514
|
Il([
|
|
29515
29515
|
y.trace("Controller.init")
|
|
29516
|
-
],
|
|
29516
|
+
], Pc, "init", 1);
|
|
29517
29517
|
Il([
|
|
29518
29518
|
y.trace("setupFlagsmith")
|
|
29519
|
-
],
|
|
29519
|
+
], Pc, "setupFlagsmith", 1);
|
|
29520
29520
|
Il([
|
|
29521
29521
|
y.trace("Controller.createRoomNodeClient")
|
|
29522
|
-
],
|
|
29522
|
+
], Pc, "createRoomNodeClient", 1);
|
|
29523
29523
|
Il([
|
|
29524
29524
|
y.trace("Controller.createSocketService")
|
|
29525
|
-
],
|
|
29525
|
+
], Pc, "createSocketService", 1);
|
|
29526
29526
|
var pD = Object.defineProperty, mD = Object.getOwnPropertyDescriptor, gD = (s, t, e, r) => {
|
|
29527
29527
|
for (var i = r > 1 ? void 0 : r ? mD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
29528
29528
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
29529
29529
|
return r && i && pD(t, e, i), i;
|
|
29530
|
-
},
|
|
29530
|
+
}, lc, ol;
|
|
29531
29531
|
class cv extends xt {
|
|
29532
29532
|
constructor(e, r) {
|
|
29533
29533
|
super();
|
|
29534
|
-
f(this,
|
|
29534
|
+
f(this, lc, void 0);
|
|
29535
29535
|
p(this, "meetings", []);
|
|
29536
29536
|
p(this, "parentMeeting", null);
|
|
29537
|
-
f(this,
|
|
29538
|
-
v(this,
|
|
29537
|
+
f(this, ol, void 0);
|
|
29538
|
+
v(this, ol, e), v(this, lc, r.self);
|
|
29539
29539
|
}
|
|
29540
29540
|
get supportsConnectedMeetings() {
|
|
29541
|
-
return a(this,
|
|
29541
|
+
return a(this, lc).id !== "";
|
|
29542
29542
|
}
|
|
29543
29543
|
get isActive() {
|
|
29544
29544
|
return this.meetings.length !== 0;
|
|
@@ -29644,7 +29644,7 @@ class cv extends xt {
|
|
|
29644
29644
|
});
|
|
29645
29645
|
}
|
|
29646
29646
|
}
|
|
29647
|
-
|
|
29647
|
+
lc = /* @__PURE__ */ new WeakMap(), ol = /* @__PURE__ */ new WeakMap();
|
|
29648
29648
|
gD([
|
|
29649
29649
|
At({ maxInvocations: 60, period: 60 })
|
|
29650
29650
|
], cv.prototype, "getConnectedMeetings", 1);
|
|
@@ -29652,14 +29652,14 @@ var fD = Object.defineProperty, vD = Object.getOwnPropertyDescriptor, _h = (s, t
|
|
|
29652
29652
|
for (var i = r > 1 ? void 0 : r ? vD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
29653
29653
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
29654
29654
|
return r && i && fD(t, e, i), i;
|
|
29655
|
-
}, Pa, Qt, zl,
|
|
29655
|
+
}, Pa, Qt, zl, cl;
|
|
29656
29656
|
const yr = (zl = class {
|
|
29657
29657
|
constructor(s, t, e) {
|
|
29658
29658
|
p(this, "connectedMeetings");
|
|
29659
29659
|
f(this, Pa, void 0);
|
|
29660
29660
|
f(this, Qt, void 0);
|
|
29661
|
-
f(this,
|
|
29662
|
-
v(this,
|
|
29661
|
+
f(this, cl, void 0);
|
|
29662
|
+
v(this, cl, s), v(this, Pa, e), this.connectedMeetings = new cv(s, t), this.setCurrentMeeting(t);
|
|
29663
29663
|
}
|
|
29664
29664
|
static init(s, t, e) {
|
|
29665
29665
|
return yr.instance || (yr.instance = new yr(
|
|
@@ -29771,7 +29771,7 @@ const yr = (zl = class {
|
|
|
29771
29771
|
parentMeeting: this.connectedMeetings.parentMeeting
|
|
29772
29772
|
});
|
|
29773
29773
|
}
|
|
29774
|
-
}, Pa = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(),
|
|
29774
|
+
}, Pa = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), cl = /* @__PURE__ */ new WeakMap(), p(zl, "instance"), zl);
|
|
29775
29775
|
let Al = yr;
|
|
29776
29776
|
_h([
|
|
29777
29777
|
y.trace("ConnectedMeetingsController.getConnectedMeetings")
|
|
@@ -29846,14 +29846,14 @@ var SD = Object.defineProperty, ED = Object.getOwnPropertyDescriptor, Ml = (s, t
|
|
|
29846
29846
|
for (var i = r > 1 ? void 0 : r ? ED(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
29847
29847
|
(o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
|
|
29848
29848
|
return r && i && SD(t, e, i), i;
|
|
29849
|
-
}, We,
|
|
29849
|
+
}, We, uc, hc, dl, dv, gm;
|
|
29850
29850
|
let Xr = (gm = class {
|
|
29851
29851
|
constructor(t, e) {
|
|
29852
|
-
f(this,
|
|
29852
|
+
f(this, dl);
|
|
29853
29853
|
f(this, We, void 0);
|
|
29854
|
+
f(this, uc, void 0);
|
|
29854
29855
|
f(this, hc, void 0);
|
|
29855
|
-
|
|
29856
|
-
v(this, pc, t), v(this, We, e);
|
|
29856
|
+
v(this, hc, t), v(this, We, e);
|
|
29857
29857
|
}
|
|
29858
29858
|
static init(t) {
|
|
29859
29859
|
return l(this, null, function* () {
|
|
@@ -29875,8 +29875,8 @@ let Xr = (gm = class {
|
|
|
29875
29875
|
${(R = t.authToken) == null ? void 0 : R.slice(-10)}`
|
|
29876
29876
|
})
|
|
29877
29877
|
});
|
|
29878
|
-
const c = yield
|
|
29879
|
-
return $(L = h,
|
|
29878
|
+
const c = yield Pc.init(d), h = new Xr(d, c);
|
|
29879
|
+
return $(L = h, dl, dv).call(L, t), h;
|
|
29880
29880
|
});
|
|
29881
29881
|
}
|
|
29882
29882
|
static setupContext(t, e, r, i) {
|
|
@@ -29928,7 +29928,7 @@ let Xr = (gm = class {
|
|
|
29928
29928
|
}
|
|
29929
29929
|
get connectedMeetings() {
|
|
29930
29930
|
var t;
|
|
29931
|
-
return (t = a(this,
|
|
29931
|
+
return (t = a(this, uc)) == null ? void 0 : t.connectedMeetings;
|
|
29932
29932
|
}
|
|
29933
29933
|
get recording() {
|
|
29934
29934
|
var t;
|
|
@@ -29959,9 +29959,9 @@ let Xr = (gm = class {
|
|
|
29959
29959
|
return this.leave(t);
|
|
29960
29960
|
});
|
|
29961
29961
|
}
|
|
29962
|
-
}, We = /* @__PURE__ */ new WeakMap(),
|
|
29963
|
-
v(this,
|
|
29964
|
-
a(this,
|
|
29962
|
+
}, We = /* @__PURE__ */ new WeakMap(), uc = /* @__PURE__ */ new WeakMap(), hc = /* @__PURE__ */ new WeakMap(), dl = /* @__PURE__ */ new WeakSet(), dv = function(t) {
|
|
29963
|
+
v(this, uc, Al.init(
|
|
29964
|
+
a(this, hc),
|
|
29965
29965
|
this,
|
|
29966
29966
|
t
|
|
29967
29967
|
));
|