@cloudflare/realtimekit 2.0.2-staging.2 → 2.0.2-staging.3
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/browser.js +2 -2
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +10 -11
- package/dist/index.es5.js +363 -361
- package/dist/index.rn.js +2 -2
- package/package.json +1 -1
package/dist/index.es5.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { v4 as fo, validate as
|
|
2
|
-
import
|
|
1
|
+
import { v4 as fo, validate as pv } from "uuid";
|
|
2
|
+
import vv from "bowser";
|
|
3
3
|
import { MessageType as I, PbLong as Io, typeofJsonValue as Zg } from "@protobuf-ts/runtime";
|
|
4
4
|
import * as fc from "worker-timers";
|
|
5
5
|
import * as kn from "sdp-transform";
|
|
6
|
-
var
|
|
6
|
+
var Lg = ["chat", "connectedMeetings", "plugins", "polls", "media"], Ng = ["id"], Vg = ["meetingId"], Z, An, Fe, ra, Cc, js, In, Rc, ec, Vi, $i, io, Kr, Ui, Mn, na, Fs, On, Hs, Bs, zr, ji, bt, Dn, fr, qs, Gs, Ln, Qt, ua, Yr, Hn, tc, ao, so, oo, ia, Fi, Hi, Bi, Vt, Me, qi, Gi, Ct, Nn, tn, Vn, rc, gr, Ws, Xr, $n, mr, nc, Js, ic, ac, ye, Ks, Un, Wi, jn, ft, $t, Wt, Ji, Ki, rt, zi, De, yr, Oe, Qi, Pe, aa, sa, zs, rh, Yi, Jt, Y, gt, Qr, fe, ge, Ut, Le, Qs, Ys, de, Ae, Fn;
|
|
7
7
|
function nh(s, r) {
|
|
8
8
|
if (s == null)
|
|
9
9
|
return {};
|
|
10
|
-
var e, t, n =
|
|
10
|
+
var e, t, n = $g(s, r);
|
|
11
11
|
if (Object.getOwnPropertySymbols) {
|
|
12
12
|
var i = Object.getOwnPropertySymbols(s);
|
|
13
13
|
for (t = 0; t < i.length; t++)
|
|
@@ -15,7 +15,7 @@ function nh(s, r) {
|
|
|
15
15
|
}
|
|
16
16
|
return n;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function $g(s, r) {
|
|
19
19
|
if (s == null)
|
|
20
20
|
return {};
|
|
21
21
|
var e = {};
|
|
@@ -30,7 +30,7 @@ function Ug(s, r) {
|
|
|
30
30
|
function En(s) {
|
|
31
31
|
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
32
32
|
return En = function(t) {
|
|
33
|
-
if (t === null || !
|
|
33
|
+
if (t === null || !jg(t))
|
|
34
34
|
return t;
|
|
35
35
|
if (typeof t != "function")
|
|
36
36
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -40,12 +40,12 @@ function En(s) {
|
|
|
40
40
|
r.set(t, n);
|
|
41
41
|
}
|
|
42
42
|
function n() {
|
|
43
|
-
return
|
|
43
|
+
return Ug(t, arguments, As(this).constructor);
|
|
44
44
|
}
|
|
45
45
|
return n.prototype = Object.create(t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), Ou(n, t);
|
|
46
46
|
}, En(s);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ug(s, r, e) {
|
|
49
49
|
if (ah())
|
|
50
50
|
return Reflect.construct.apply(null, arguments);
|
|
51
51
|
var t = [null];
|
|
@@ -53,7 +53,7 @@ function jg(s, r, e) {
|
|
|
53
53
|
var n = new (s.bind.apply(s, t))();
|
|
54
54
|
return e && Ou(n, e.prototype), n;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function jg(s) {
|
|
57
57
|
try {
|
|
58
58
|
return Function.toString.call(s).indexOf("[native code]") !== -1;
|
|
59
59
|
} catch (r) {
|
|
@@ -65,22 +65,22 @@ function c(s, r) {
|
|
|
65
65
|
throw new TypeError("attempted to use private field on non-instance");
|
|
66
66
|
return s;
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var Fg = 0;
|
|
69
69
|
function E(s) {
|
|
70
|
-
return "__private_" +
|
|
70
|
+
return "__private_" + Fg++ + "_" + s;
|
|
71
71
|
}
|
|
72
72
|
function _e(s) {
|
|
73
|
-
return
|
|
73
|
+
return qg(s) || Bg(s) || ih(s) || Hg();
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Hg() {
|
|
76
76
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
77
77
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Bg(s) {
|
|
80
80
|
if (typeof Symbol != "undefined" && s[Symbol.iterator] != null || s["@@iterator"] != null)
|
|
81
81
|
return Array.from(s);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function qg(s) {
|
|
84
84
|
if (Array.isArray(s))
|
|
85
85
|
return Xl(s);
|
|
86
86
|
}
|
|
@@ -98,15 +98,15 @@ function N(s) {
|
|
|
98
98
|
for (var r = 1; r < arguments.length; r++) {
|
|
99
99
|
var e = arguments[r] != null ? arguments[r] : {};
|
|
100
100
|
r % 2 ? Uh(Object(e), !0).forEach(function(t) {
|
|
101
|
-
|
|
101
|
+
Gg(s, t, e[t]);
|
|
102
102
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(e)) : Uh(Object(e)).forEach(function(t) {
|
|
103
103
|
Object.defineProperty(s, t, Object.getOwnPropertyDescriptor(e, t));
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
return s;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return (r =
|
|
108
|
+
function Gg(s, r, e) {
|
|
109
|
+
return (r = hv(r)) in s ? Object.defineProperty(s, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[r] = e, s;
|
|
110
110
|
}
|
|
111
111
|
function Pn(s, r) {
|
|
112
112
|
var e = typeof Symbol != "undefined" && s[Symbol.iterator] || s["@@iterator"];
|
|
@@ -149,22 +149,22 @@ function we(s, r, e, t) {
|
|
|
149
149
|
}
|
|
150
150
|
function Yl() {
|
|
151
151
|
return Yl = typeof Reflect != "undefined" && Reflect.get ? Reflect.get.bind() : function(s, r, e) {
|
|
152
|
-
var t =
|
|
152
|
+
var t = Wg(s, r);
|
|
153
153
|
if (t) {
|
|
154
154
|
var n = Object.getOwnPropertyDescriptor(t, r);
|
|
155
155
|
return n.get ? n.get.call(arguments.length < 3 ? s : e) : n.value;
|
|
156
156
|
}
|
|
157
157
|
}, Yl.apply(null, arguments);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Wg(s, r) {
|
|
160
160
|
for (; !{}.hasOwnProperty.call(s, r) && (s = As(s)) !== null; )
|
|
161
161
|
;
|
|
162
162
|
return s;
|
|
163
163
|
}
|
|
164
164
|
function Ne(s, r) {
|
|
165
|
-
return
|
|
165
|
+
return zg(s) || Kg(s, r) || ih(s, r) || Jg();
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Jg() {
|
|
168
168
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
169
169
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
170
170
|
}
|
|
@@ -182,7 +182,7 @@ function Xl(s, r) {
|
|
|
182
182
|
t[e] = s[e];
|
|
183
183
|
return t;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Kg(s, r) {
|
|
186
186
|
var e = s == null ? null : typeof Symbol != "undefined" && s[Symbol.iterator] || s["@@iterator"];
|
|
187
187
|
if (e != null) {
|
|
188
188
|
var t, n, i, a, o = [], u = !0, l = !1;
|
|
@@ -208,7 +208,7 @@ function zg(s, r) {
|
|
|
208
208
|
return o;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function zg(s) {
|
|
212
212
|
if (Array.isArray(s))
|
|
213
213
|
return s;
|
|
214
214
|
}
|
|
@@ -320,16 +320,16 @@ function m(s) {
|
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
function C(s, r, e) {
|
|
323
|
-
return r = As(r),
|
|
323
|
+
return r = As(r), Qg(s, ah() ? Reflect.construct(r, e || [], As(s).constructor) : r.apply(s, e));
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Qg(s, r) {
|
|
326
326
|
if (r && (me(r) == "object" || typeof r == "function"))
|
|
327
327
|
return r;
|
|
328
328
|
if (r !== void 0)
|
|
329
329
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
330
|
-
return
|
|
330
|
+
return Yg(s);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Yg(s) {
|
|
333
333
|
if (s === void 0)
|
|
334
334
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
335
335
|
return s;
|
|
@@ -373,13 +373,13 @@ function b(s, r) {
|
|
|
373
373
|
function Fh(s, r) {
|
|
374
374
|
for (var e = 0; e < r.length; e++) {
|
|
375
375
|
var t = r[e];
|
|
376
|
-
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(s,
|
|
376
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(s, hv(t.key), t);
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
function P(s, r, e) {
|
|
380
380
|
return r && Fh(s.prototype, r), e && Fh(s, e), Object.defineProperty(s, "prototype", { writable: !1 }), s;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function hv(s) {
|
|
383
383
|
var r = Xg(s, "string");
|
|
384
384
|
return me(r) == "symbol" ? r : r + "";
|
|
385
385
|
}
|
|
@@ -425,7 +425,7 @@ var tm = function(r) {
|
|
|
425
425
|
}), window.addEventListener("online", function() {
|
|
426
426
|
r.info("window::online");
|
|
427
427
|
}));
|
|
428
|
-
}, Du = "chrome",
|
|
428
|
+
}, Du = "chrome", fv = "opera", gv = "firefox", mv = "iexplorer", yv = "safari", kv = "nwjs", Tv = "electron", wv = "react-native", sh = "unknown", _c = { Chrome: Du, Chromium: Du, Opera: fv, Firefox: gv, "Internet Explorer": mv, Safari: yv };
|
|
429
429
|
function rm() {
|
|
430
430
|
var s = navigator, r = s.userAgent, e = { name: sh, version: void 0 };
|
|
431
431
|
if (r.match(/Chrome/) && !r.match(/Edge/))
|
|
@@ -440,7 +440,7 @@ function nm() {
|
|
|
440
440
|
var s = navigator, r = s.userAgent;
|
|
441
441
|
if (r.match(/Electron/)) {
|
|
442
442
|
var e = r.match(/Electron\/([\d.]+)/)[1];
|
|
443
|
-
return { name:
|
|
443
|
+
return { name: Tv, version: e };
|
|
444
444
|
}
|
|
445
445
|
return null;
|
|
446
446
|
}
|
|
@@ -448,13 +448,13 @@ function im() {
|
|
|
448
448
|
var s = navigator, r = s.userAgent;
|
|
449
449
|
if (r.match(/JitsiMeetNW/)) {
|
|
450
450
|
var e = r.match(/JitsiMeetNW\/([\d.]+)/)[1];
|
|
451
|
-
return { name:
|
|
451
|
+
return { name: kv, version: e };
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
function am() {
|
|
455
455
|
var s = navigator.userAgent.match(/\b(react[ \t_-]*native)(?:\/(\S+))?/i), r;
|
|
456
456
|
if (s || navigator.product === "ReactNative")
|
|
457
|
-
return s && s.length > 2 && (s[1], r = s[2]), r || (r = "unknown"), { name:
|
|
457
|
+
return s && s.length > 2 && (s[1], r = s[2]), r || (r = "unknown"), { name: wv, version: r };
|
|
458
458
|
}
|
|
459
459
|
function sm(s) {
|
|
460
460
|
for (var r, e = [am, nm, im], t = 0; t < e.length; t += 1)
|
|
@@ -482,7 +482,7 @@ var om = /* @__PURE__ */ function() {
|
|
|
482
482
|
*/
|
|
483
483
|
function(e) {
|
|
484
484
|
var t, n;
|
|
485
|
-
if (this._bowser =
|
|
485
|
+
if (this._bowser = vv.getParser(navigator.userAgent), typeof e == "undefined") {
|
|
486
486
|
var i = sm(this._bowser);
|
|
487
487
|
t = i.name, n = i.version;
|
|
488
488
|
} else
|
|
@@ -515,7 +515,7 @@ var om = /* @__PURE__ */ function() {
|
|
|
515
515
|
}, {
|
|
516
516
|
key: "isOpera",
|
|
517
517
|
value: function() {
|
|
518
|
-
return this._name ===
|
|
518
|
+
return this._name === fv;
|
|
519
519
|
}
|
|
520
520
|
/**
|
|
521
521
|
* Checks if current browser is Firefox.
|
|
@@ -524,7 +524,7 @@ var om = /* @__PURE__ */ function() {
|
|
|
524
524
|
}, {
|
|
525
525
|
key: "isFirefox",
|
|
526
526
|
value: function() {
|
|
527
|
-
return this._name ===
|
|
527
|
+
return this._name === gv;
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
530
|
* Checks if current browser is Internet Explorer.
|
|
@@ -533,7 +533,7 @@ var om = /* @__PURE__ */ function() {
|
|
|
533
533
|
}, {
|
|
534
534
|
key: "isIExplorer",
|
|
535
535
|
value: function() {
|
|
536
|
-
return this._name ===
|
|
536
|
+
return this._name === mv;
|
|
537
537
|
}
|
|
538
538
|
/**
|
|
539
539
|
* Checks if current browser is Safari.
|
|
@@ -542,7 +542,7 @@ var om = /* @__PURE__ */ function() {
|
|
|
542
542
|
}, {
|
|
543
543
|
key: "isSafari",
|
|
544
544
|
value: function() {
|
|
545
|
-
return this._name ===
|
|
545
|
+
return this._name === yv;
|
|
546
546
|
}
|
|
547
547
|
/**
|
|
548
548
|
* Checks if current environment is NWJS.
|
|
@@ -551,7 +551,7 @@ var om = /* @__PURE__ */ function() {
|
|
|
551
551
|
}, {
|
|
552
552
|
key: "isNWJS",
|
|
553
553
|
value: function() {
|
|
554
|
-
return this._name ===
|
|
554
|
+
return this._name === kv;
|
|
555
555
|
}
|
|
556
556
|
/**
|
|
557
557
|
* Checks if current environment is Electron.
|
|
@@ -560,7 +560,7 @@ var om = /* @__PURE__ */ function() {
|
|
|
560
560
|
}, {
|
|
561
561
|
key: "isElectron",
|
|
562
562
|
value: function() {
|
|
563
|
-
return this._name ===
|
|
563
|
+
return this._name === Tv;
|
|
564
564
|
}
|
|
565
565
|
/**
|
|
566
566
|
* Checks if current environment is React Native.
|
|
@@ -569,7 +569,7 @@ var om = /* @__PURE__ */ function() {
|
|
|
569
569
|
}, {
|
|
570
570
|
key: "isReactNative",
|
|
571
571
|
value: function() {
|
|
572
|
-
return this._name ===
|
|
572
|
+
return this._name === wv || navigator.isReactNative === !0;
|
|
573
573
|
}
|
|
574
574
|
/**
|
|
575
575
|
* Returns the version of the current browser.
|
|
@@ -942,7 +942,7 @@ uo && typeof uo.ownKeys == "function" ? gc = uo.ownKeys : Object.getOwnPropertyS
|
|
|
942
942
|
function lm(s) {
|
|
943
943
|
console && console.warn && console.warn(s);
|
|
944
944
|
}
|
|
945
|
-
var
|
|
945
|
+
var bv = Number.isNaN || function(r) {
|
|
946
946
|
return r !== r;
|
|
947
947
|
};
|
|
948
948
|
function Ke() {
|
|
@@ -962,7 +962,7 @@ function Hc(s) {
|
|
|
962
962
|
Object.defineProperty(Ke, "defaultMaxListeners", { enumerable: !0, get: function() {
|
|
963
963
|
return Bh;
|
|
964
964
|
}, set: function(r) {
|
|
965
|
-
if (typeof r != "number" || r < 0 ||
|
|
965
|
+
if (typeof r != "number" || r < 0 || bv(r))
|
|
966
966
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + r + ".");
|
|
967
967
|
Bh = r;
|
|
968
968
|
} });
|
|
@@ -970,15 +970,15 @@ Ke.init = function() {
|
|
|
970
970
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
971
971
|
};
|
|
972
972
|
Ke.prototype.setMaxListeners = function(r) {
|
|
973
|
-
if (typeof r != "number" || r < 0 ||
|
|
973
|
+
if (typeof r != "number" || r < 0 || bv(r))
|
|
974
974
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + r + ".");
|
|
975
975
|
return this._maxListeners = r, this;
|
|
976
976
|
};
|
|
977
|
-
function
|
|
977
|
+
function Pv(s) {
|
|
978
978
|
return s._maxListeners === void 0 ? Ke.defaultMaxListeners : s._maxListeners;
|
|
979
979
|
}
|
|
980
980
|
Ke.prototype.getMaxListeners = function() {
|
|
981
|
-
return
|
|
981
|
+
return Pv(this);
|
|
982
982
|
};
|
|
983
983
|
Ke.prototype.emit = function(r) {
|
|
984
984
|
for (var e = [], t = 1; t < arguments.length; t++)
|
|
@@ -1001,15 +1001,15 @@ Ke.prototype.emit = function(r) {
|
|
|
1001
1001
|
if (typeof u == "function")
|
|
1002
1002
|
Hh(u, this, e);
|
|
1003
1003
|
else
|
|
1004
|
-
for (var l = u.length, d =
|
|
1004
|
+
for (var l = u.length, d = _v(u, l), t = 0; t < l; ++t)
|
|
1005
1005
|
Hh(d[t], this, e);
|
|
1006
1006
|
return !0;
|
|
1007
1007
|
};
|
|
1008
|
-
function
|
|
1008
|
+
function Sv(s, r, e, t) {
|
|
1009
1009
|
var n, i, a;
|
|
1010
1010
|
if (Hc(e), i = s._events, i === void 0 ? (i = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (i.newListener !== void 0 && (s.emit("newListener", r, e.listener ? e.listener : e), i = s._events), a = i[r]), a === void 0)
|
|
1011
1011
|
a = i[r] = e, ++s._eventsCount;
|
|
1012
|
-
else if (typeof a == "function" ? a = i[r] = t ? [e, a] : [a, e] : t ? a.unshift(e) : a.push(e), n =
|
|
1012
|
+
else if (typeof a == "function" ? a = i[r] = t ? [e, a] : [a, e] : t ? a.unshift(e) : a.push(e), n = Pv(s), n > 0 && a.length > n && !a.warned) {
|
|
1013
1013
|
a.warned = !0;
|
|
1014
1014
|
var o = new Error("Possible EventEmitter memory leak detected. " + a.length + " " + String(r) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1015
1015
|
o.name = "MaxListenersExceededWarning", o.emitter = s, o.type = r, o.count = a.length, lm(o);
|
|
@@ -1017,25 +1017,25 @@ function Ev(s, r, e, t) {
|
|
|
1017
1017
|
return s;
|
|
1018
1018
|
}
|
|
1019
1019
|
Ke.prototype.addListener = function(r, e) {
|
|
1020
|
-
return
|
|
1020
|
+
return Sv(this, r, e, !1);
|
|
1021
1021
|
};
|
|
1022
1022
|
Ke.prototype.on = Ke.prototype.addListener;
|
|
1023
1023
|
Ke.prototype.prependListener = function(r, e) {
|
|
1024
|
-
return
|
|
1024
|
+
return Sv(this, r, e, !0);
|
|
1025
1025
|
};
|
|
1026
1026
|
function dm() {
|
|
1027
1027
|
if (!this.fired)
|
|
1028
1028
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Ev(s, r, e) {
|
|
1031
1031
|
var t = { fired: !1, wrapFn: void 0, target: s, type: r, listener: e }, n = dm.bind(t);
|
|
1032
1032
|
return n.listener = e, t.wrapFn = n, n;
|
|
1033
1033
|
}
|
|
1034
1034
|
Ke.prototype.once = function(r, e) {
|
|
1035
|
-
return Hc(e), this.on(r,
|
|
1035
|
+
return Hc(e), this.on(r, Ev(this, r, e)), this;
|
|
1036
1036
|
};
|
|
1037
1037
|
Ke.prototype.prependOnceListener = function(r, e) {
|
|
1038
|
-
return Hc(e), this.prependListener(r,
|
|
1038
|
+
return Hc(e), this.prependListener(r, Ev(this, r, e)), this;
|
|
1039
1039
|
};
|
|
1040
1040
|
Ke.prototype.removeListener = function(r, e) {
|
|
1041
1041
|
var t, n, i, a, o;
|
|
@@ -1077,24 +1077,24 @@ Ke.prototype.removeAllListeners = function(r) {
|
|
|
1077
1077
|
this.removeListener(r, e[n]);
|
|
1078
1078
|
return this;
|
|
1079
1079
|
};
|
|
1080
|
-
function
|
|
1080
|
+
function Cv(s, r, e) {
|
|
1081
1081
|
var t = s._events;
|
|
1082
1082
|
if (t === void 0)
|
|
1083
1083
|
return [];
|
|
1084
1084
|
var n = t[r];
|
|
1085
|
-
return n === void 0 ? [] : typeof n == "function" ? e ? [n.listener || n] : [n] : e ? pm(n) :
|
|
1085
|
+
return n === void 0 ? [] : typeof n == "function" ? e ? [n.listener || n] : [n] : e ? pm(n) : _v(n, n.length);
|
|
1086
1086
|
}
|
|
1087
1087
|
Ke.prototype.listeners = function(r) {
|
|
1088
|
-
return
|
|
1088
|
+
return Cv(this, r, !0);
|
|
1089
1089
|
};
|
|
1090
1090
|
Ke.prototype.rawListeners = function(r) {
|
|
1091
|
-
return
|
|
1091
|
+
return Cv(this, r, !1);
|
|
1092
1092
|
};
|
|
1093
1093
|
Ke.listenerCount = function(s, r) {
|
|
1094
|
-
return typeof s.listenerCount == "function" ? s.listenerCount(r) :
|
|
1094
|
+
return typeof s.listenerCount == "function" ? s.listenerCount(r) : Rv.call(s, r);
|
|
1095
1095
|
};
|
|
1096
|
-
Ke.prototype.listenerCount =
|
|
1097
|
-
function
|
|
1096
|
+
Ke.prototype.listenerCount = Rv;
|
|
1097
|
+
function Rv(s) {
|
|
1098
1098
|
var r = this._events;
|
|
1099
1099
|
if (r !== void 0) {
|
|
1100
1100
|
var e = r[s];
|
|
@@ -1108,7 +1108,7 @@ function _v(s) {
|
|
|
1108
1108
|
Ke.prototype.eventNames = function() {
|
|
1109
1109
|
return this._eventsCount > 0 ? gc(this._events) : [];
|
|
1110
1110
|
};
|
|
1111
|
-
function
|
|
1111
|
+
function _v(s, r) {
|
|
1112
1112
|
for (var e = new Array(r), t = 0; t < r; ++t)
|
|
1113
1113
|
e[t] = s[t];
|
|
1114
1114
|
return e;
|
|
@@ -1131,13 +1131,13 @@ function vm(s, r) {
|
|
|
1131
1131
|
function i() {
|
|
1132
1132
|
typeof s.removeListener == "function" && s.removeListener("error", n), e([].slice.call(arguments));
|
|
1133
1133
|
}
|
|
1134
|
-
|
|
1134
|
+
Av(s, r, i, { once: !0 }), r !== "error" && fm(s, n, { once: !0 });
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
1137
|
function fm(s, r, e) {
|
|
1138
|
-
typeof s.on == "function" &&
|
|
1138
|
+
typeof s.on == "function" && Av(s, "error", r, e);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Av(s, r, e, t) {
|
|
1141
1141
|
if (typeof s.on == "function")
|
|
1142
1142
|
t.once ? s.once(r, e) : s.on(r, e);
|
|
1143
1143
|
else if (typeof s.addEventListener == "function")
|
|
@@ -1279,7 +1279,7 @@ var gm = /* @__PURE__ */ new Map([
|
|
|
1279
1279
|
(function(s) {
|
|
1280
1280
|
s.CHROMIUM = "chromum", s.FIREFOX = "firefox", s.SAFARI = "safari";
|
|
1281
1281
|
})(qh || (qh = {}));
|
|
1282
|
-
var
|
|
1282
|
+
var Iv = { DEVEL: "devel", PREPROD: "preprod", PROD: "prod" }, Zr;
|
|
1283
1283
|
(function(s) {
|
|
1284
1284
|
s.AUDIO = "AUDIO", s.VIDEO = "VIDEO", s.SPEAKER = "SPEAKER", s.SCREENSHARE = "SCREENSHARE";
|
|
1285
1285
|
})(Zr || (Zr = {}));
|
|
@@ -1298,45 +1298,45 @@ function Ic(s) {
|
|
|
1298
1298
|
var r = s.packetsLost, e = s.packetsReceived;
|
|
1299
1299
|
return e + r > 0 ? r * 100 / (e + r) : 0;
|
|
1300
1300
|
}
|
|
1301
|
-
var
|
|
1301
|
+
var Mv = 240, Ov = 720, Dv = 8, Lv = 3, Bc = 10, qc = 0.02, Gc = 0.03;
|
|
1302
1302
|
function Ei(s) {
|
|
1303
1303
|
var r = s.stat, e = s.weight, t = s.rangeMin, n = s.rangeMax, i = s.rangeRankingDirection;
|
|
1304
1304
|
return r == null ? e : t === n ? i === "UP" ? r <= t ? e : 0 : r >= n ? e : 0 : i === "UP" ? (1 - Math.max(Math.min(n, Math.abs(r)) - t, 0) / (n - t)) * e : i === "DOWN" ? Math.max(Math.min(n, Math.abs(r)) - t, 0) / (n - t) * e : e;
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function Nv(s) {
|
|
1307
1307
|
var r = s.isLowQualityVideo, e = s.isVideoStuck, t = s.isVideoLagging, n = s.jitterQuality, i = s.packetsLostQuality, a = 0.8 * ((r ? 0.85 : 1) * (t ? 0.7 : 1) * (e ? 0.5 : 1)) + 0.2 * (n * i);
|
|
1308
1308
|
return Math.round((a + Number.EPSILON) * 100) / 100;
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function Vv(s) {
|
|
1311
1311
|
var r = s.packetsLost, e = s.packetsSent;
|
|
1312
1312
|
return e > 0 ? r * 100 / e : 0;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1315
|
-
var r = s.packetsLost, e = s.packetsSent, t = s.jitter, n = 0.7, i = Ei({ stat:
|
|
1314
|
+
function $v(s) {
|
|
1315
|
+
var r = s.packetsLost, e = s.packetsSent, t = s.jitter, n = 0.7, i = Ei({ stat: Vv({ packetsLost: r, packetsSent: e }), weight: n, rangeMin: 0, rangeMax: Bc, rangeRankingDirection: "UP" }), a = 0.3, o = Ei({ stat: t, weight: a, rangeMin: qc, rangeMax: Gc, rangeRankingDirection: "UP" });
|
|
1316
1316
|
return i + o;
|
|
1317
1317
|
}
|
|
1318
1318
|
function km(s) {
|
|
1319
|
-
var r = s.frameWidth, e = s.isScreenShare, t = e ?
|
|
1319
|
+
var r = s.frameWidth, e = s.isScreenShare, t = e ? Ov : Mv;
|
|
1320
1320
|
return r < t;
|
|
1321
1321
|
}
|
|
1322
1322
|
function Tm(s) {
|
|
1323
|
-
var r = s.framesPerSecond, e = s.isScreenShare, t = e ?
|
|
1323
|
+
var r = s.framesPerSecond, e = s.isScreenShare, t = e ? Lv : Dv;
|
|
1324
1324
|
return r < t;
|
|
1325
1325
|
}
|
|
1326
1326
|
function wm(s) {
|
|
1327
1327
|
var r = s.framesEncoded;
|
|
1328
1328
|
return r === 0;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1331
|
-
var r = s.frameWidth, e = s.framesPerSecond, t = s.packetsLost, n = s.packetsSent, i = s.jitter, a = s.isScreenShare, o = s.framesEncoded, u = Ei({ stat:
|
|
1332
|
-
return
|
|
1330
|
+
function Uv(s) {
|
|
1331
|
+
var r = s.frameWidth, e = s.framesPerSecond, t = s.packetsLost, n = s.packetsSent, i = s.jitter, a = s.isScreenShare, o = s.framesEncoded, u = Ei({ stat: Vv({ packetsLost: t, packetsSent: n }), weight: 1, rangeMin: 0, rangeMax: Bc, rangeRankingDirection: "UP" }), l = Ei({ stat: i, weight: 1, rangeMin: qc, rangeMax: Gc, rangeRankingDirection: "UP" }), d = km({ frameWidth: r, isScreenShare: a }), p = Tm({ framesPerSecond: e, isScreenShare: a }), v = wm({ framesEncoded: o, isScreenShare: a });
|
|
1332
|
+
return Nv({ isLowQualityVideo: d, isVideoLagging: p, isVideoStuck: v, jitterQuality: l, packetsLostQuality: u });
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function jv(s) {
|
|
1335
1335
|
var r = s.packetsLost, e = s.packetsReceived;
|
|
1336
1336
|
return e + r > 0 ? r * 100 / (e + r) : 0;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
var r = s.concealmentEvents, e = s.packetsLost, t = s.packetsReceived, n = s.jitter, i = 0.2, a = Ei({ stat: r, weight: i, rangeMin: 0, rangeMax: 3, rangeRankingDirection: "UP" }), o = 0.5, u = Ei({ stat:
|
|
1338
|
+
function Fv(s) {
|
|
1339
|
+
var r = s.concealmentEvents, e = s.packetsLost, t = s.packetsReceived, n = s.jitter, i = 0.2, a = Ei({ stat: r, weight: i, rangeMin: 0, rangeMax: 3, rangeRankingDirection: "UP" }), o = 0.5, u = Ei({ stat: jv({ packetsLost: e, packetsReceived: t }), weight: o, rangeMin: 0, rangeMax: Bc, rangeRankingDirection: "UP" }), l = 0.3, d = Ei({ stat: n, weight: l, rangeMin: qc, rangeMax: Gc, rangeRankingDirection: "UP" });
|
|
1340
1340
|
return a + u + d;
|
|
1341
1341
|
}
|
|
1342
1342
|
function bm(s) {
|
|
@@ -1344,16 +1344,16 @@ function bm(s) {
|
|
|
1344
1344
|
return r === 0;
|
|
1345
1345
|
}
|
|
1346
1346
|
function Pm(s) {
|
|
1347
|
-
var r = s.framesPerSecond, e = s.isScreenShare, t = e ?
|
|
1347
|
+
var r = s.framesPerSecond, e = s.isScreenShare, t = e ? Lv : Dv;
|
|
1348
1348
|
return r < t;
|
|
1349
1349
|
}
|
|
1350
1350
|
function Sm(s) {
|
|
1351
|
-
var r = s.frameWidth, e = s.isScreenShare, t = e ?
|
|
1351
|
+
var r = s.frameWidth, e = s.isScreenShare, t = e ? Ov : Mv;
|
|
1352
1352
|
return r < t;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1355
|
-
var r = s.frameWidth, e = s.framesPerSecond, t = s.packetsLost, n = s.packetsReceived, i = s.jitter, a = s.isScreenShare, o = s.framesDecoded, u = Ei({ stat:
|
|
1356
|
-
return
|
|
1354
|
+
function Hv(s) {
|
|
1355
|
+
var r = s.frameWidth, e = s.framesPerSecond, t = s.packetsLost, n = s.packetsReceived, i = s.jitter, a = s.isScreenShare, o = s.framesDecoded, u = Ei({ stat: jv({ packetsLost: t, packetsReceived: n }), weight: 1, rangeMin: 0, rangeMax: Bc, rangeRankingDirection: "UP" }), l = Ei({ stat: i, weight: 1, rangeMin: qc, rangeMax: Gc, rangeRankingDirection: "UP" }), d = Sm({ frameWidth: r, isScreenShare: a }), p = Pm({ framesPerSecond: e, isScreenShare: a }), v = bm({ framesDecoded: o, isScreenShare: a });
|
|
1356
|
+
return Nv({ isLowQualityVideo: d, isVideoLagging: p, isVideoStuck: v, jitterQuality: l, packetsLostQuality: u });
|
|
1357
1357
|
}
|
|
1358
1358
|
var To = /* @__PURE__ */ function() {
|
|
1359
1359
|
function s(r) {
|
|
@@ -1446,7 +1446,7 @@ b=AS:`.concat(this.constrainVideoBitrateKbps, `\r
|
|
|
1446
1446
|
} }, { key: "noFilter", value: function(e) {
|
|
1447
1447
|
return !0;
|
|
1448
1448
|
} }]);
|
|
1449
|
-
}(),
|
|
1449
|
+
}(), Bv = /* @__PURE__ */ function(s) {
|
|
1450
1450
|
function r(e) {
|
|
1451
1451
|
var t;
|
|
1452
1452
|
return b(this, r), t = C(this, r), t.call = void 0, t.timeOut = void 0, t.call = new To(e), t;
|
|
@@ -1499,7 +1499,7 @@ b=AS:`.concat(this.constrainVideoBitrateKbps, `\r
|
|
|
1499
1499
|
} }, { key: "onRecieverChannel", value: function(t) {
|
|
1500
1500
|
this.recieveChannel = t.channel, this.recieveChannel.addEventListener("message", this.onMessageRecieved.bind(this));
|
|
1501
1501
|
} }]);
|
|
1502
|
-
}(
|
|
1502
|
+
}(Bv), oh = /* @__PURE__ */ function(s) {
|
|
1503
1503
|
function r(e) {
|
|
1504
1504
|
var t, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : To.noFilter;
|
|
1505
1505
|
b(this, r), t = C(this, r, [e]), t.ch1 = void 0, t.ch2 = void 0, t.call.setIceCandidateFilter(n);
|
|
@@ -1524,7 +1524,7 @@ b=AS:`.concat(this.constrainVideoBitrateKbps, `\r
|
|
|
1524
1524
|
} }, { key: "hangup", value: function(t) {
|
|
1525
1525
|
this.testFailed(t);
|
|
1526
1526
|
} }]);
|
|
1527
|
-
}(
|
|
1527
|
+
}(Bv), _m = /* @__PURE__ */ function(s) {
|
|
1528
1528
|
function r(e) {
|
|
1529
1529
|
return b(this, r), C(this, r, [e, To.isHost]);
|
|
1530
1530
|
}
|
|
@@ -1588,14 +1588,14 @@ b=AS:`.concat(this.constrainVideoBitrateKbps, `\r
|
|
|
1588
1588
|
}() }, { key: "resetCache", value: function() {
|
|
1589
1589
|
this.ipInformation = null;
|
|
1590
1590
|
} }]);
|
|
1591
|
-
}(),
|
|
1591
|
+
}(), qv = new Mm(), Wh = [{ urls: "turn:turn.dyte.in:443?transport=tcp", username: "dyte", credential: "dytein", credentialType: "password" }, { urls: "turn:turn.dyte.in:3478?transport=udp", username: "dyte", credential: "dytein", credentialType: "password" }];
|
|
1592
1592
|
function Jh(s) {
|
|
1593
1593
|
var r = s.split(","), e = Ne(r, 2), t = e[0], n = e[1];
|
|
1594
1594
|
return { coords: { latitude: Number(t), longitude: Number(n) } };
|
|
1595
1595
|
}
|
|
1596
|
-
var
|
|
1596
|
+
var Gv = /* @__PURE__ */ P(function s() {
|
|
1597
1597
|
b(this, s), this.transport = void 0, this.candidatePair = void 0, this.outboundVideoRtp = /* @__PURE__ */ new Map(), this.inboundVideoRtp = /* @__PURE__ */ new Map(), this.outboundAudioRtp = /* @__PURE__ */ new Map(), this.inboundAudioRtp = /* @__PURE__ */ new Map(), this.remoteInboundRtp = /* @__PURE__ */ new Map(), this.producerStreamMap = /* @__PURE__ */ new Map(), this.consumerStreamMap = /* @__PURE__ */ new Map(), this.staleProducerStreamMap = !1, this.staleConsumerStreamMap = !1;
|
|
1598
|
-
}),
|
|
1598
|
+
}), Wv = /* @__PURE__ */ function(s) {
|
|
1599
1599
|
function r() {
|
|
1600
1600
|
var e;
|
|
1601
1601
|
return b(this, r), e = C(this, r), e.observer = void 0, e.outboundProducerMap = /* @__PURE__ */ new Map(), e.inboundConsumerMap = /* @__PURE__ */ new Map(), e.consumerPeerIdMap = /* @__PURE__ */ new Map(), e.pausedConsumerMap = /* @__PURE__ */ new Map(), e.pausedProducerMap = /* @__PURE__ */ new Map(), e.overallProducingTransportsStatsMap = {}, e.overallConsumingTransportsStatsMap = {}, e.overallConsumersStatsMap = {}, e.overallProducersStatsMap = {}, e.videoProducerToStatsMap = /* @__PURE__ */ new Map(), e.audioProducerToStatsMap = /* @__PURE__ */ new Map(), e.videoConsumerToStatsMap = /* @__PURE__ */ new Map(), e.audioConsumerToStatsMap = /* @__PURE__ */ new Map(), e.consumerIdsWithFreezedVideo = /* @__PURE__ */ new Set(), e.consumerIdsWithFreezedAudio = /* @__PURE__ */ new Set(), e.producerIdsWithFreezedVideo = /* @__PURE__ */ new Set(), e.producerIdsWithFreezedAudio = /* @__PURE__ */ new Set(), e.freezedProducingTransportIds = /* @__PURE__ */ new Set(), e.freezedConsumingTransportIds = /* @__PURE__ */ new Set(), e.screenShareProducers = /* @__PURE__ */ new Set(), e.screenShareConsumers = /* @__PURE__ */ new Set(), e.ipDetails = void 0, e.callStatsInstance = void 0, e.observer = new nr(), e;
|
|
@@ -1768,7 +1768,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
1768
1768
|
});
|
|
1769
1769
|
return n || t[t.length - 1];
|
|
1770
1770
|
} }, { key: "parseRTCReport", value: function(t) {
|
|
1771
|
-
var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : void 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, l = t, d = new
|
|
1771
|
+
var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : void 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, l = t, d = new Gv(), p = i.length ? new Set(i) : void 0, v = [], f = [], g = [], y = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), w = Pn(l.values()), T;
|
|
1772
1772
|
try {
|
|
1773
1773
|
for (w.s(); !(T = w.n()).done; ) {
|
|
1774
1774
|
var S = T.value;
|
|
@@ -1904,7 +1904,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
1904
1904
|
var Ro = { bytesReceived: re.bytesReceived, packetsReceived: re.packetsReceived, packetsLost: re.packetsLost >= 0 ? re.packetsLost : 0, jitter: re.jitter, nackCount: re.nackCount, jitterBufferDelay: re.jitterBufferDelay, jitterBufferEmittedCount: re.jitterBufferEmittedCount, lastPacketReceivedTimestamp: re.lastPacketReceivedTimestamp, ssrc: re.ssrc, mid: re.mid, codecId: re.codecId, headerBytesReceived: re.headerBytesReceived || 0, packetsDiscarded: re.packetsDiscarded || 0, jitterBufferMinimumDelay: re.jitterBufferMinimumDelay || 0, jitterBufferTargetDelay: re.jitterBufferTargetDelay || 0 };
|
|
1905
1905
|
if (re.mediaType === "video" || re.kind === "video") {
|
|
1906
1906
|
var wa, ba, Pa, Sa, Ea, Ca, he = re, Se = N({ frameHeight: he.frameHeight, frameWidth: he.frameWidth, framesDecoded: he.framesDecoded, framesDropped: he.framesDropped, framesPerSecond: he.framesPerSecond, framesReceived: he.framesReceived, keyFramesDecoded: he.keyFramesDecoded, firCount: he.firCount, decoderImplementation: he.decoderImplementation, pliCount: he.pliCount, totalProcessingDelay: he.totalProcessingDelay, qpSum: he.qpSum || 0, totalAssemblyTime: he.totalAssemblyTime || 0, totalDecodeTime: he.totalDecodeTime || 0, totalFreezesDuration: he.totalFreezesDuration || 0, totalInterFrameDelay: he.totalInterFrameDelay || 0, totalPausesDuration: he.totalPausesDuration || 0, totalSquaredInterFrameDelay: he.totalSquaredInterFrameDelay || 0, freezeCount: he.freezeCount || 0, pauseCount: he.pauseCount || 0, powerEfficientDecoder: he.powerEfficientDecoder }, Ro);
|
|
1907
|
-
Se.score =
|
|
1907
|
+
Se.score = Hv({ frameWidth: Se.frameWidth || 0, framesDecoded: (Se.framesDecoded || 0) - (((wa = this.videoConsumerToStatsMap.get(K)) === null || wa === void 0 ? void 0 : wa.framesDecoded) || 0), framesPerSecond: Se.framesPerSecond || 0, packetsLost: (Se.packetsLost || 0) - (((ba = this.videoConsumerToStatsMap.get(K)) === null || ba === void 0 ? void 0 : ba.packetsLost) || 0), packetsReceived: (Se.packetsReceived || 0) - (((Pa = this.videoConsumerToStatsMap.get(K)) === null || Pa === void 0 ? void 0 : Pa.packetsReceived) || 0), jitter: Se.jitter || 0, isScreenShare: this.screenShareConsumers.has(K) }), k.set(K, {
|
|
1908
1908
|
score: +(Se.score * 10).toFixed(),
|
|
1909
1909
|
frameWidth: Se.frameWidth || 0,
|
|
1910
1910
|
frameHeight: Se.frameHeight || 0,
|
|
@@ -1917,7 +1917,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
1917
1917
|
}), this.videoConsumerToStatsMap.set(K, Se), d.inboundVideoRtp.set(S.id, Se), d.consumerStreamMap.get(K).inboundVideoRtpId.push(S.id), this.processInboundConsumerVideoStats(K, Co, Se);
|
|
1918
1918
|
} else if (re.mediaType === "audio" || re.kind === "audio") {
|
|
1919
1919
|
var Ra, _a, Aa, Ia, Ma, Oa, it = re, Ye = N({ audioLevel: it.audioLevel, concealedSamples: it.concealedSamples, concealmentEvents: it.concealmentEvents, totalAudioEnergy: it.totalAudioEnergy, totalSamplesDuration: it.totalSamplesDuration, totalSamplesReceived: it.totalSamplesReceived, fecPacketsDiscarded: it.fecPacketsDiscarded || 0, fecPacketsReceived: it.fecPacketsReceived || 0, insertedSamplesForDeceleration: it.insertedSamplesForDeceleration || 0, removedSamplesForAcceleration: it.removedSamplesForAcceleration || 0, silentConcealedSamples: it.silentConcealedSamples || 0, playoutId: it.playoutId }, Ro);
|
|
1920
|
-
Ye.score =
|
|
1920
|
+
Ye.score = Fv({ concealmentEvents: (Ye.concealmentEvents || 0) - (((Ra = this.audioConsumerToStatsMap.get(K)) === null || Ra === void 0 ? void 0 : Ra.concealmentEvents) || 0), packetsLost: (Ye.packetsLost || 0) - (((_a = this.audioConsumerToStatsMap.get(K)) === null || _a === void 0 ? void 0 : _a.packetsLost) || 0), packetsReceived: (Ye.packetsReceived || 0) - (((Aa = this.audioConsumerToStatsMap.get(K)) === null || Aa === void 0 ? void 0 : Aa.packetsReceived) || 0), jitter: Ye.jitter || 0 }), k.set(K, {
|
|
1921
1921
|
score: +(Ye.score * 10).toFixed(),
|
|
1922
1922
|
packetsLostPercentage: Ic({ packetsLost: (Ye.packetsLost || 0) - (((Ia = this.audioConsumerToStatsMap.get(K)) === null || Ia === void 0 ? void 0 : Ia.packetsLost) || 0), packetsReceived: (Ye.packetsReceived || 0) - (((Ma = this.audioConsumerToStatsMap.get(K)) === null || Ma === void 0 ? void 0 : Ma.packetsReceived) || 0) }),
|
|
1923
1923
|
jitter: Ye.jitter || 0,
|
|
@@ -1944,7 +1944,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
1944
1944
|
Ao.push(d.outboundVideoRtp.get(dl));
|
|
1945
1945
|
});
|
|
1946
1946
|
var Ee = n.getWorkingSimulcastVideoStats(Ao);
|
|
1947
|
-
Ee.score =
|
|
1947
|
+
Ee.score = Uv({ frameWidth: Ee.frameWidth || 0, framesPerSecond: Ee.framesPerSecond || 0, jitter: ((_t = Ee.remoteData) === null || _t === void 0 ? void 0 : _t.jitter) || 0, isScreenShare: n.screenShareProducers.has(te), packetsSent: (Ee.packetsSent || 0) - (((mt = n.videoProducerToStatsMap.get(te)) === null || mt === void 0 ? void 0 : mt.packetsSent) || 0), packetsLost: (((La = Ee.remoteData) === null || La === void 0 ? void 0 : La.packetsLost) || 0) - (((br = n.videoProducerToStatsMap.get(te)) === null || br === void 0 || (br = br.remoteData) === null || br === void 0 ? void 0 : br.packetsLost) || 0), framesEncoded: (Ee.framesEncoded || 0) - (((Na = n.videoProducerToStatsMap.get(te)) === null || Na === void 0 ? void 0 : Na.framesEncoded) || 0) }), y.set(te, {
|
|
1948
1948
|
score: +(Ee.score * 10).toFixed(),
|
|
1949
1949
|
frameWidth: Ee.frameWidth || 0,
|
|
1950
1950
|
frameHeight: Ee.frameHeight || 0,
|
|
@@ -1959,7 +1959,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
1959
1959
|
}), n.videoProducerToStatsMap.set(te, Ee);
|
|
1960
1960
|
} else if (ee.outboundAudioRtpId.length > 0) {
|
|
1961
1961
|
var Fa, Ha, Sr, Ba, qa, Ga, Wa, Er, Ja, At = d.outboundAudioRtp.get(ee.outboundAudioRtpId[0]);
|
|
1962
|
-
At.score =
|
|
1962
|
+
At.score = $v({ packetsSent: (At.packetsSent || 0) - (((Fa = n.audioProducerToStatsMap.get(te)) === null || Fa === void 0 ? void 0 : Fa.packetsSent) || 0), packetsLost: (((Ha = At.remoteData) === null || Ha === void 0 ? void 0 : Ha.packetsLost) || 0) - (((Sr = n.audioProducerToStatsMap.get(te)) === null || Sr === void 0 || (Sr = Sr.remoteData) === null || Sr === void 0 ? void 0 : Sr.packetsLost) || 0), jitter: ((Ba = At.remoteData) === null || Ba === void 0 ? void 0 : Ba.jitter) || 0 }), y.set(te, {
|
|
1963
1963
|
score: +(At.score * 10).toFixed(),
|
|
1964
1964
|
bitrate: ((At.bytesSent || 0) - (((qa = n.audioProducerToStatsMap.get(te)) === null || qa === void 0 ? void 0 : qa.bytesSent) || 0)) * 8 / 7,
|
|
1965
1965
|
// Bytes received in last 7 seconds
|
|
@@ -2226,7 +2226,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
2226
2226
|
u.n = 2;
|
|
2227
2227
|
break;
|
|
2228
2228
|
}
|
|
2229
|
-
return u.n = 1,
|
|
2229
|
+
return u.n = 1, qv.getIPDetails({ peerId: (i = this.callStatsInstance) === null || i === void 0 ? void 0 : i.peerId, apiHostnames: (a = this.callStatsInstance) === null || a === void 0 ? void 0 : a.apiHostnames, logger: this.callStatsInstance.logger });
|
|
2230
2230
|
case 1:
|
|
2231
2231
|
this.ipDetails = u.v;
|
|
2232
2232
|
case 2:
|
|
@@ -2305,7 +2305,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
2305
2305
|
return b(this, r), C(this, r, arguments);
|
|
2306
2306
|
}
|
|
2307
2307
|
return R(r, s), P(r);
|
|
2308
|
-
}(
|
|
2308
|
+
}(Wv), Jv = /* @__PURE__ */ function(s) {
|
|
2309
2309
|
function r() {
|
|
2310
2310
|
var e;
|
|
2311
2311
|
b(this, r);
|
|
@@ -2405,7 +2405,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
2405
2405
|
var n;
|
|
2406
2406
|
return { id: t.id, type: t.candidateType || t.type, address: t.address, port: t.port, url: t.url, protocol: (n = t.relayProtocol) !== null && n !== void 0 ? n : t.protocol, networkType: t.networkType, relatedAddress: t.relatedAddress, relatedPort: t.relatedPort };
|
|
2407
2407
|
} }, { key: "parseRTCReport", value: function(t) {
|
|
2408
|
-
var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : void 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, l = t, d = new
|
|
2408
|
+
var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : void 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, l = t, d = new Gv(), p = i.length ? new Set(i) : void 0, v = [], f = [], g = [], y = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), w = Pn(l.values()), T;
|
|
2409
2409
|
try {
|
|
2410
2410
|
for (w.s(); !(T = w.n()).done; ) {
|
|
2411
2411
|
var S = T.value;
|
|
@@ -2507,7 +2507,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
2507
2507
|
var Ro = { bytesReceived: re.bytesReceived, packetsReceived: re.packetsReceived, packetsLost: re.packetsLost >= 0 ? re.packetsLost : 0, jitter: re.jitter, nackCount: re.nackCount, jitterBufferDelay: re.jitterBufferDelay, jitterBufferEmittedCount: re.jitterBufferEmittedCount, lastPacketReceivedTimestamp: re.lastPacketReceivedTimestamp, ssrc: re.ssrc, mid: re.mid, codecId: re.codecId, headerBytesReceived: re.headerBytesReceived || 0, packetsDiscarded: re.packetsDiscarded || 0, jitterBufferMinimumDelay: re.jitterBufferMinimumDelay || 0, jitterBufferTargetDelay: re.jitterBufferTargetDelay || 0 };
|
|
2508
2508
|
if (re.mediaType === "video" || re.kind === "video") {
|
|
2509
2509
|
var wa, ba, Pa, Sa, Ea, Ca, he = re, Se = N({ frameHeight: he.frameHeight, frameWidth: he.frameWidth, framesDecoded: he.framesDecoded, framesDropped: he.framesDropped ? he.framesDropped : he.droppedFrames, framesPerSecond: he.framesPerSecond ? he.framesPerSecond : he.framerateMean, framesReceived: he.framesReceived, keyFramesDecoded: he.keyFramesDecoded, firCount: he.firCount, decoderImplementation: he.decoderImplementation, pliCount: he.pliCount, totalProcessingDelay: he.totalProcessingDelay, qpSum: he.qpSum || 0, totalAssemblyTime: he.totalAssemblyTime || 0, totalDecodeTime: he.totalDecodeTime || 0, totalFreezesDuration: he.totalFreezesDuration || 0, totalInterFrameDelay: he.totalInterFrameDelay || 0, totalPausesDuration: he.totalPausesDuration || 0, totalSquaredInterFrameDelay: he.totalSquaredInterFrameDelay || 0, freezeCount: he.freezeCount || 0, pauseCount: he.pauseCount || 0, powerEfficientDecoder: he.powerEfficientDecoder }, Ro);
|
|
2510
|
-
Se.score =
|
|
2510
|
+
Se.score = Hv({ frameWidth: Se.frameWidth || 0, framesDecoded: (Se.framesDecoded || 0) - (((wa = this.videoConsumerToStatsMap.get(K)) === null || wa === void 0 ? void 0 : wa.framesDecoded) || 0), framesPerSecond: Se.framesPerSecond || 0, packetsLost: (Se.packetsLost || 0) - (((ba = this.videoConsumerToStatsMap.get(K)) === null || ba === void 0 ? void 0 : ba.packetsLost) || 0), packetsReceived: (Se.packetsReceived || 0) - (((Pa = this.videoConsumerToStatsMap.get(K)) === null || Pa === void 0 ? void 0 : Pa.packetsReceived) || 0), jitter: Se.jitter || 0, isScreenShare: this.screenShareConsumers.has(K) }), k.set(K, {
|
|
2511
2511
|
score: +(Se.score * 10).toFixed(),
|
|
2512
2512
|
frameWidth: Se.frameWidth || 0,
|
|
2513
2513
|
frameHeight: Se.frameHeight || 0,
|
|
@@ -2520,7 +2520,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
2520
2520
|
}), this.videoConsumerToStatsMap.set(K, Se), d.inboundVideoRtp.set(S.id, Se), d.consumerStreamMap.get(K).inboundVideoRtpId.push(S.id), this.processInboundConsumerVideoStats(K, Co, Se);
|
|
2521
2521
|
} else if (re.mediaType === "audio" || re.kind === "audio") {
|
|
2522
2522
|
var Ra, _a, Aa, Ia, Ma, Oa, it = re, Ye = N({ audioLevel: it.audioLevel, concealedSamples: it.concealedSamples, concealmentEvents: it.concealmentEvents, totalAudioEnergy: it.totalAudioEnergy, totalSamplesDuration: it.totalSamplesDuration, totalSamplesReceived: it.totalSamplesReceived, fecPacketsDiscarded: it.fecPacketsDiscarded || 0, fecPacketsReceived: it.fecPacketsReceived || 0, insertedSamplesForDeceleration: it.insertedSamplesForDeceleration || 0, removedSamplesForAcceleration: it.removedSamplesForAcceleration || 0, silentConcealedSamples: it.silentConcealedSamples || 0, playoutId: it.playoutId }, Ro);
|
|
2523
|
-
Ye.score =
|
|
2523
|
+
Ye.score = Fv({ concealmentEvents: (Ye.concealmentEvents || 0) - (((Ra = this.audioConsumerToStatsMap.get(K)) === null || Ra === void 0 ? void 0 : Ra.concealmentEvents) || 0), packetsLost: (Ye.packetsLost || 0) - (((_a = this.audioConsumerToStatsMap.get(K)) === null || _a === void 0 ? void 0 : _a.packetsLost) || 0), packetsReceived: (Ye.packetsReceived || 0) - (((Aa = this.audioConsumerToStatsMap.get(K)) === null || Aa === void 0 ? void 0 : Aa.packetsReceived) || 0), jitter: Ye.jitter || 0 }), k.set(K, {
|
|
2524
2524
|
score: +(Ye.score * 10).toFixed(),
|
|
2525
2525
|
packetsLostPercentage: Ic({ packetsLost: (Ye.packetsLost || 0) - (((Ia = this.audioConsumerToStatsMap.get(K)) === null || Ia === void 0 ? void 0 : Ia.packetsLost) || 0), packetsReceived: (Ye.packetsReceived || 0) - (((Ma = this.audioConsumerToStatsMap.get(K)) === null || Ma === void 0 ? void 0 : Ma.packetsReceived) || 0) }),
|
|
2526
2526
|
jitter: Ye.jitter || 0,
|
|
@@ -2547,7 +2547,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
2547
2547
|
Ao.push(d.outboundVideoRtp.get(dl));
|
|
2548
2548
|
});
|
|
2549
2549
|
var Ee = n.getWorkingSimulcastVideoStats(Ao);
|
|
2550
|
-
Ee.score =
|
|
2550
|
+
Ee.score = Uv({ frameWidth: Ee.frameWidth || 0, framesPerSecond: Ee.framesPerSecond || 0, jitter: ((_t = Ee.remoteData) === null || _t === void 0 ? void 0 : _t.jitter) || 0, isScreenShare: n.screenShareProducers.has(te), packetsSent: (Ee.packetsSent || 0) - (((mt = n.videoProducerToStatsMap.get(te)) === null || mt === void 0 ? void 0 : mt.packetsSent) || 0), packetsLost: (((La = Ee.remoteData) === null || La === void 0 ? void 0 : La.packetsLost) || 0) - (((br = n.videoProducerToStatsMap.get(te)) === null || br === void 0 || (br = br.remoteData) === null || br === void 0 ? void 0 : br.packetsLost) || 0), framesEncoded: (Ee.framesEncoded || 0) - (((Na = n.videoProducerToStatsMap.get(te)) === null || Na === void 0 ? void 0 : Na.framesEncoded) || 0) }), y.set(te, {
|
|
2551
2551
|
score: +(Ee.score * 10).toFixed(),
|
|
2552
2552
|
frameWidth: Ee.frameWidth || 0,
|
|
2553
2553
|
frameHeight: Ee.frameHeight || 0,
|
|
@@ -2562,7 +2562,7 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
2562
2562
|
}), n.videoProducerToStatsMap.set(te, Ee);
|
|
2563
2563
|
} else if (ee.outboundAudioRtpId.length > 0) {
|
|
2564
2564
|
var Fa, Ha, Sr, Ba, qa, Ga, Wa, Er, Ja, At = d.outboundAudioRtp.get(ee.outboundAudioRtpId[0]);
|
|
2565
|
-
At.score =
|
|
2565
|
+
At.score = $v({ packetsSent: (At.packetsSent || 0) - (((Fa = n.audioProducerToStatsMap.get(te)) === null || Fa === void 0 ? void 0 : Fa.packetsSent) || 0), packetsLost: (((Ha = At.remoteData) === null || Ha === void 0 ? void 0 : Ha.packetsLost) || 0) - (((Sr = n.audioProducerToStatsMap.get(te)) === null || Sr === void 0 || (Sr = Sr.remoteData) === null || Sr === void 0 ? void 0 : Sr.packetsLost) || 0), jitter: ((Ba = At.remoteData) === null || Ba === void 0 ? void 0 : Ba.jitter) || 0 }), y.set(te, {
|
|
2566
2566
|
score: +(At.score * 10).toFixed(),
|
|
2567
2567
|
bitrate: ((At.bytesSent || 0) - (((qa = n.audioProducerToStatsMap.get(te)) === null || qa === void 0 ? void 0 : qa.bytesSent) || 0)) * 8 / 7,
|
|
2568
2568
|
// Bytes received in last 7 seconds
|
|
@@ -2644,12 +2644,12 @@ var Wv = /* @__PURE__ */ P(function s() {
|
|
|
2644
2644
|
}
|
|
2645
2645
|
return i;
|
|
2646
2646
|
} }]);
|
|
2647
|
-
}(
|
|
2647
|
+
}(Wv), Dm = /* @__PURE__ */ function(s) {
|
|
2648
2648
|
function r() {
|
|
2649
2649
|
return b(this, r), C(this, r, arguments);
|
|
2650
2650
|
}
|
|
2651
2651
|
return R(r, s), P(r);
|
|
2652
|
-
}(
|
|
2652
|
+
}(Jv);
|
|
2653
2653
|
function Mc(s, r, e, t) {
|
|
2654
2654
|
if (s != null && s.logger && s.logger.error("Callstats::handleError", { error: t }), typeof e == "function" && t instanceof r)
|
|
2655
2655
|
e.call(null, t, s);
|
|
@@ -2719,7 +2719,7 @@ var le = function(r, e) {
|
|
|
2719
2719
|
return n > 3 && i && Object.defineProperty(r, e, i), i;
|
|
2720
2720
|
}, ce = console, ae = /* @__PURE__ */ function(s) {
|
|
2721
2721
|
function r() {
|
|
2722
|
-
var e, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "https://api.testingv3.dyte.in", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Blink", i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
2722
|
+
var e, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "https://api.testingv3.dyte.in", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Blink", i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Iv.PROD, a = arguments.length > 3 ? arguments[3] : void 0, o = arguments.length > 4 ? arguments[4] : void 0, u = arguments.length > 5 ? arguments[5] : void 0, l = arguments.length > 6 ? arguments[6] : void 0, d = arguments.length > 7 ? arguments[7] : void 0;
|
|
2723
2723
|
if (b(this, r), e = C(this, r), e.observer = void 0, e.eventHandler = void 0, e.measurements = void 0, e.producingTransport = void 0, e.consumingTransport = void 0, e.producers = /* @__PURE__ */ new Map(), e.consumers = /* @__PURE__ */ new Map(), e.iceServers = void 0, e.connectionInfoPromise = void 0, e.pingStatsTimeout = void 0, e.logger = void 0, e.env = void 0, e.apiHostnames = void 0, e.peerId = void 0, e.consumerSharedMediaStatesMap = /* @__PURE__ */ new Map(), e.currentUserMediaStates = {}, !d)
|
|
2724
2724
|
throw Error("authToken is missing but required to initialize CallStats!");
|
|
2725
2725
|
switch (e.env = i, e.apiHostnames = l, e.logger = o, e.peerId = u, e.eventHandler = new ym({ logger: o, peerId: u, apiHostnames: l, authToken: d }), e.logger.debug("callStats::engineName: ", { engineName: n }), n) {
|
|
@@ -2727,7 +2727,7 @@ var le = function(r, e) {
|
|
|
2727
2727
|
e.measurements = new Om();
|
|
2728
2728
|
break;
|
|
2729
2729
|
case "Gecko":
|
|
2730
|
-
e.measurements = new
|
|
2730
|
+
e.measurements = new Jv();
|
|
2731
2731
|
break;
|
|
2732
2732
|
case "WebKit":
|
|
2733
2733
|
e.measurements = new Dm();
|
|
@@ -3162,7 +3162,7 @@ ue([le(TypeError, function(s, r) {
|
|
|
3162
3162
|
ae = ue([Lm(TypeError, function(s, r) {
|
|
3163
3163
|
return ce.error(r, s);
|
|
3164
3164
|
})], ae);
|
|
3165
|
-
var Nm = ae,
|
|
3165
|
+
var Nm = ae, Kv = /* @__PURE__ */ function(s) {
|
|
3166
3166
|
function r() {
|
|
3167
3167
|
var e;
|
|
3168
3168
|
b(this, r);
|
|
@@ -3177,13 +3177,13 @@ var Nm = ae, zv = /* @__PURE__ */ function(s) {
|
|
|
3177
3177
|
for (; ; )
|
|
3178
3178
|
switch (O.p = O.n) {
|
|
3179
3179
|
case 0:
|
|
3180
|
-
if (a = i.peerId, o = i.engineName, u = i.env, l = u === void 0 ?
|
|
3180
|
+
if (a = i.peerId, o = i.engineName, u = i.env, l = u === void 0 ? Iv.PROD : u, d = i.iceServers, p = i.apiBase, v = p === void 0 ? "https://api.cluster.dyte.in" : p, f = i.flags, g = i.logger, y = g === void 0 ? console : g, k = i.apiHostnames, w = i.skipConnectivityChecks, T = w === void 0 ? !1 : w, S = i.authToken, O.p = 1, this.peerId = a, this.logger = y, S) {
|
|
3181
3181
|
O.n = 2;
|
|
3182
3182
|
break;
|
|
3183
3183
|
}
|
|
3184
3184
|
return this.logger.error("callStats::initialize", { event: "auth_token_missing", peerId: this.peerId }), this.stallCallStats(), O.a(2);
|
|
3185
3185
|
case 2:
|
|
3186
|
-
return O.n = 3,
|
|
3186
|
+
return O.n = 3, qv.getIPDetails({ peerId: a, apiHostnames: k, logger: y });
|
|
3187
3187
|
case 3:
|
|
3188
3188
|
this.ipInformation = O.v, this.backend = new Nm(v, o, l, f, y, a, k, S), this.iceServers = d, (A = this.backend) === null || A === void 0 || A.registerIceServers(this.iceServers), this.initialized = !0, (M = this.backend) === null || M === void 0 || (M = M.eventHandler) === null || M === void 0 || M.emit("initialized", this.ipInformation), this.emit("initialized", this.ipInformation), this.startPreCallTest(T), O.n = 5;
|
|
3189
3189
|
break;
|
|
@@ -3520,7 +3520,7 @@ var Nm = ae, zv = /* @__PURE__ */ function(s) {
|
|
|
3520
3520
|
(o = i.backend) === null || o === void 0 || o.expectedScreenshareResolution(t, n, a);
|
|
3521
3521
|
});
|
|
3522
3522
|
} }]);
|
|
3523
|
-
}(nr), Vm = new
|
|
3523
|
+
}(nr), Vm = new Kv();
|
|
3524
3524
|
Vm.setMaxListeners(30);
|
|
3525
3525
|
var Mo = /* @__PURE__ */ E("context"), $m = /* @__PURE__ */ function() {
|
|
3526
3526
|
function s() {
|
|
@@ -3622,7 +3622,7 @@ var Mo = /* @__PURE__ */ E("context"), $m = /* @__PURE__ */ function() {
|
|
|
3622
3622
|
}, { key: "reset", value: function() {
|
|
3623
3623
|
c(this, Cr)[Cr] = /* @__PURE__ */ new Map(), c(this, Rr)[Rr] = /* @__PURE__ */ new Map(), we(r, "removeAllListeners", this, 3)([]);
|
|
3624
3624
|
} }]);
|
|
3625
|
-
}(nr.EventEmitter), jm = (typeof global == "undefined" ? "undefined" : me(global)) == "object" && global && global.Object === Object && global,
|
|
3625
|
+
}(nr.EventEmitter), jm = (typeof global == "undefined" ? "undefined" : me(global)) == "object" && global && global.Object === Object && global, zv = jm, Fm = (typeof self == "undefined" ? "undefined" : me(self)) == "object" && self && self.Object === Object && self, Hm = zv || Fm || Function("return this")(), Cn = Hm, Bm = Cn.Symbol, qn = Bm, Qv = Object.prototype, qm = Qv.hasOwnProperty, Gm = Qv.toString, Oo = qn ? qn.toStringTag : void 0;
|
|
3626
3626
|
function Wm(s) {
|
|
3627
3627
|
var r = qm.call(s, Oo), e = s[Oo];
|
|
3628
3628
|
try {
|
|
@@ -3654,11 +3654,11 @@ function Zm(s, r) {
|
|
|
3654
3654
|
return n;
|
|
3655
3655
|
}
|
|
3656
3656
|
var xm = Array.isArray, Br = xm, ey = 1 / 0, Qh = qn ? qn.prototype : void 0, Yh = Qh ? Qh.toString : void 0;
|
|
3657
|
-
function
|
|
3657
|
+
function Yv(s) {
|
|
3658
3658
|
if (typeof s == "string")
|
|
3659
3659
|
return s;
|
|
3660
3660
|
if (Br(s))
|
|
3661
|
-
return Zm(s,
|
|
3661
|
+
return Zm(s, Yv) + "";
|
|
3662
3662
|
if (Wc(s))
|
|
3663
3663
|
return Yh ? Yh.call(s) : "";
|
|
3664
3664
|
var r = s + "";
|
|
@@ -3767,7 +3767,7 @@ function Ay(s, r, e) {
|
|
|
3767
3767
|
}
|
|
3768
3768
|
function Iy() {
|
|
3769
3769
|
}
|
|
3770
|
-
function
|
|
3770
|
+
function Xv(s, r) {
|
|
3771
3771
|
var e = -1, t = s.length;
|
|
3772
3772
|
for (r || (r = Array(t)); ++e < t; )
|
|
3773
3773
|
r[e] = s[e];
|
|
@@ -3839,7 +3839,7 @@ function qu(s, r) {
|
|
|
3839
3839
|
return s === r || s !== s && r !== r;
|
|
3840
3840
|
}
|
|
3841
3841
|
var Qy = Object.prototype, Yy = Qy.hasOwnProperty;
|
|
3842
|
-
function
|
|
3842
|
+
function Zv(s, r, e) {
|
|
3843
3843
|
var t = s[r];
|
|
3844
3844
|
(!(Yy.call(s, r) && qu(t, e)) || e === void 0 && !(r in s)) && dh(s, r, e);
|
|
3845
3845
|
}
|
|
@@ -3848,7 +3848,7 @@ function Gu(s, r, e, t) {
|
|
|
3848
3848
|
e || (e = {});
|
|
3849
3849
|
for (var i = -1, a = r.length; ++i < a; ) {
|
|
3850
3850
|
var o = r[i], u = t ? t(e[o], s[o], o, e, s) : void 0;
|
|
3851
|
-
u === void 0 && (u = s[o]), n ? dh(e, o, u) :
|
|
3851
|
+
u === void 0 && (u = s[o]), n ? dh(e, o, u) : Zv(e, o, u);
|
|
3852
3852
|
}
|
|
3853
3853
|
return e;
|
|
3854
3854
|
}
|
|
@@ -3903,7 +3903,7 @@ var ik = "[object Arguments]";
|
|
|
3903
3903
|
function rp(s) {
|
|
3904
3904
|
return Gn(s) && Ds(s) == ik;
|
|
3905
3905
|
}
|
|
3906
|
-
var
|
|
3906
|
+
var xv = Object.prototype, ak = xv.hasOwnProperty, sk = xv.propertyIsEnumerable, ok = rp(function() {
|
|
3907
3907
|
return arguments;
|
|
3908
3908
|
}()) ? rp : function(s) {
|
|
3909
3909
|
return Gn(s) && ak.call(s, "callee") && !sk.call(s, "callee");
|
|
@@ -3911,7 +3911,7 @@ var ef = Object.prototype, ak = ef.hasOwnProperty, sk = ef.propertyIsEnumerable,
|
|
|
3911
3911
|
function uk() {
|
|
3912
3912
|
return !1;
|
|
3913
3913
|
}
|
|
3914
|
-
var
|
|
3914
|
+
var ef = (typeof exports == "undefined" ? "undefined" : me(exports)) == "object" && exports && !exports.nodeType && exports, np = ef && (typeof module == "undefined" ? "undefined" : me(module)) == "object" && module && !module.nodeType && module, ck = np && np.exports === ef, ip = ck ? Cn.Buffer : void 0, lk = ip ? ip.isBuffer : void 0, dk = lk || uk, go = dk, hk = "[object Arguments]", pk = "[object Array]", vk = "[object Boolean]", fk = "[object Date]", gk = "[object Error]", mk = "[object Function]", yk = "[object Map]", kk = "[object Number]", Tk = "[object Object]", wk = "[object RegExp]", bk = "[object Set]", Pk = "[object String]", Sk = "[object WeakMap]", Ek = "[object ArrayBuffer]", Ck = "[object DataView]", Rk = "[object Float32Array]", _k = "[object Float64Array]", Ak = "[object Int8Array]", Ik = "[object Int16Array]", Mk = "[object Int32Array]", Ok = "[object Uint8Array]", Dk = "[object Uint8ClampedArray]", Lk = "[object Uint16Array]", Nk = "[object Uint32Array]", dt = {};
|
|
3915
3915
|
dt[Rk] = dt[_k] = dt[Ak] = dt[Ik] = dt[Mk] = dt[Ok] = dt[Dk] = dt[Lk] = dt[Nk] = !0;
|
|
3916
3916
|
dt[hk] = dt[pk] = dt[Ek] = dt[vk] = dt[Ck] = dt[fk] = dt[gk] = dt[mk] = dt[yk] = dt[kk] = dt[Tk] = dt[wk] = dt[bk] = dt[Pk] = dt[Sk] = !1;
|
|
3917
3917
|
function Vk(s) {
|
|
@@ -3922,14 +3922,14 @@ function ph(s) {
|
|
|
3922
3922
|
return s(r);
|
|
3923
3923
|
};
|
|
3924
3924
|
}
|
|
3925
|
-
var
|
|
3925
|
+
var tf = (typeof exports == "undefined" ? "undefined" : me(exports)) == "object" && exports && !exports.nodeType && exports, vu = tf && (typeof module == "undefined" ? "undefined" : me(module)) == "object" && module && !module.nodeType && module, $k = vu && vu.exports === tf, pl = $k && zv.process, Uk = function() {
|
|
3926
3926
|
try {
|
|
3927
3927
|
var s = vu && vu.require && vu.require("util").types;
|
|
3928
3928
|
return s || pl && pl.binding && pl.binding("util");
|
|
3929
3929
|
} catch (r) {
|
|
3930
3930
|
}
|
|
3931
3931
|
}(), mo = Uk, ap = mo && mo.isTypedArray, jk = ap ? ph(ap) : Vk, Kc = jk, Fk = Object.prototype, Hk = Fk.hasOwnProperty;
|
|
3932
|
-
function
|
|
3932
|
+
function rf(s, r) {
|
|
3933
3933
|
var e = Br(s), t = !e && Lu(s), n = !e && !t && go(s), i = !e && !t && !n && Kc(s), a = e || t || n || i, o = a ? nk(s.length, String) : [], u = o.length;
|
|
3934
3934
|
for (var l in s)
|
|
3935
3935
|
(r || Hk.call(s, l)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
@@ -3939,13 +3939,13 @@ function nf(s, r) {
|
|
|
3939
3939
|
lh(l, u))) && o.push(l);
|
|
3940
3940
|
return o;
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3942
|
+
function nf(s, r) {
|
|
3943
3943
|
return function(e) {
|
|
3944
3944
|
return s(r(e));
|
|
3945
3945
|
};
|
|
3946
3946
|
}
|
|
3947
|
-
var Bk =
|
|
3948
|
-
function
|
|
3947
|
+
var Bk = nf(Object.keys, Object), qk = Bk, Gk = Object.prototype, Wk = Gk.hasOwnProperty;
|
|
3948
|
+
function af(s) {
|
|
3949
3949
|
if (!Jc(s))
|
|
3950
3950
|
return qk(s);
|
|
3951
3951
|
var r = [];
|
|
@@ -3954,7 +3954,7 @@ function sf(s) {
|
|
|
3954
3954
|
return r;
|
|
3955
3955
|
}
|
|
3956
3956
|
function zc(s) {
|
|
3957
|
-
return Wu(s) ?
|
|
3957
|
+
return Wu(s) ? rf(s) : af(s);
|
|
3958
3958
|
}
|
|
3959
3959
|
function Jk(s) {
|
|
3960
3960
|
var r = [];
|
|
@@ -3973,7 +3973,7 @@ function Qk(s) {
|
|
|
3973
3973
|
return e;
|
|
3974
3974
|
}
|
|
3975
3975
|
function Ju(s) {
|
|
3976
|
-
return Wu(s) ?
|
|
3976
|
+
return Wu(s) ? rf(s, !0) : Qk(s);
|
|
3977
3977
|
}
|
|
3978
3978
|
var Yk = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Xk = /^\w*$/;
|
|
3979
3979
|
function vh(s, r) {
|
|
@@ -4127,9 +4127,9 @@ var R0 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
4127
4127
|
}), r;
|
|
4128
4128
|
}), I0 = A0;
|
|
4129
4129
|
function M0(s) {
|
|
4130
|
-
return s == null ? "" :
|
|
4130
|
+
return s == null ? "" : Yv(s);
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function sf(s, r) {
|
|
4133
4133
|
return Br(s) ? s : vh(s, r) ? [s] : I0(M0(s));
|
|
4134
4134
|
}
|
|
4135
4135
|
var O0 = 1 / 0;
|
|
@@ -4139,22 +4139,22 @@ function Xc(s) {
|
|
|
4139
4139
|
var r = s + "";
|
|
4140
4140
|
return r == "0" && 1 / s == -O0 ? "-0" : r;
|
|
4141
4141
|
}
|
|
4142
|
-
function
|
|
4143
|
-
r =
|
|
4142
|
+
function of(s, r) {
|
|
4143
|
+
r = sf(r, s);
|
|
4144
4144
|
for (var e = 0, t = r.length; s != null && e < t; )
|
|
4145
4145
|
s = s[Xc(r[e++])];
|
|
4146
4146
|
return e && e == t ? s : void 0;
|
|
4147
4147
|
}
|
|
4148
4148
|
function D0(s, r, e) {
|
|
4149
|
-
var t = s == null ? void 0 :
|
|
4149
|
+
var t = s == null ? void 0 : of(s, r);
|
|
4150
4150
|
return t === void 0 ? e : t;
|
|
4151
4151
|
}
|
|
4152
|
-
function
|
|
4152
|
+
function uf(s, r) {
|
|
4153
4153
|
for (var e = -1, t = r.length, n = s.length; ++e < t; )
|
|
4154
4154
|
s[n + e] = r[e];
|
|
4155
4155
|
return s;
|
|
4156
4156
|
}
|
|
4157
|
-
var L0 =
|
|
4157
|
+
var L0 = nf(Object.getPrototypeOf, Object), gh = L0, N0 = "[object Object]", V0 = Function.prototype, $0 = Object.prototype, cf = V0.toString, U0 = $0.hasOwnProperty, j0 = cf.call(Object);
|
|
4158
4158
|
function F0(s) {
|
|
4159
4159
|
if (!Gn(s) || Ds(s) != N0)
|
|
4160
4160
|
return !1;
|
|
@@ -4162,7 +4162,7 @@ function F0(s) {
|
|
|
4162
4162
|
if (r === null)
|
|
4163
4163
|
return !0;
|
|
4164
4164
|
var e = U0.call(r, "constructor") && r.constructor;
|
|
4165
|
-
return typeof e == "function" && e instanceof e &&
|
|
4165
|
+
return typeof e == "function" && e instanceof e && cf.call(e) == j0;
|
|
4166
4166
|
}
|
|
4167
4167
|
function H0() {
|
|
4168
4168
|
this.__data__ = new Ii(), this.size = 0;
|
|
@@ -4203,8 +4203,8 @@ function K0(s, r) {
|
|
|
4203
4203
|
function z0(s, r) {
|
|
4204
4204
|
return s && Gu(r, Ju(r), s);
|
|
4205
4205
|
}
|
|
4206
|
-
var
|
|
4207
|
-
function
|
|
4206
|
+
var lf = (typeof exports == "undefined" ? "undefined" : me(exports)) == "object" && exports && !exports.nodeType && exports, sp = lf && (typeof module == "undefined" ? "undefined" : me(module)) == "object" && module && !module.nodeType && module, Q0 = sp && sp.exports === lf, op = Q0 ? Cn.Buffer : void 0, up = op ? op.allocUnsafe : void 0;
|
|
4207
|
+
function df(s, r) {
|
|
4208
4208
|
if (r)
|
|
4209
4209
|
return s.slice();
|
|
4210
4210
|
var e = s.length, t = up ? up(e) : new s.constructor(e);
|
|
@@ -4217,34 +4217,34 @@ function Y0(s, r) {
|
|
|
4217
4217
|
}
|
|
4218
4218
|
return i;
|
|
4219
4219
|
}
|
|
4220
|
-
function
|
|
4220
|
+
function hf() {
|
|
4221
4221
|
return [];
|
|
4222
4222
|
}
|
|
4223
4223
|
var X0 = Object.prototype, Z0 = X0.propertyIsEnumerable, cp = Object.getOwnPropertySymbols, x0 = cp ? function(s) {
|
|
4224
4224
|
return s == null ? [] : (s = Object(s), Y0(cp(s), function(r) {
|
|
4225
4225
|
return Z0.call(s, r);
|
|
4226
4226
|
}));
|
|
4227
|
-
} :
|
|
4227
|
+
} : hf, mh = x0;
|
|
4228
4228
|
function eT(s, r) {
|
|
4229
4229
|
return Gu(s, mh(s), r);
|
|
4230
4230
|
}
|
|
4231
4231
|
var tT = Object.getOwnPropertySymbols, rT = tT ? function(s) {
|
|
4232
4232
|
for (var r = []; s; )
|
|
4233
|
-
|
|
4233
|
+
uf(r, mh(s)), s = gh(s);
|
|
4234
4234
|
return r;
|
|
4235
|
-
} :
|
|
4235
|
+
} : hf, pf = rT;
|
|
4236
4236
|
function nT(s, r) {
|
|
4237
|
-
return Gu(s,
|
|
4237
|
+
return Gu(s, pf(s), r);
|
|
4238
4238
|
}
|
|
4239
|
-
function
|
|
4239
|
+
function vf(s, r, e) {
|
|
4240
4240
|
var t = r(s);
|
|
4241
|
-
return Br(s) ? t :
|
|
4241
|
+
return Br(s) ? t : uf(t, e(s));
|
|
4242
4242
|
}
|
|
4243
4243
|
function xl(s) {
|
|
4244
|
-
return
|
|
4244
|
+
return vf(s, zc, mh);
|
|
4245
4245
|
}
|
|
4246
4246
|
function iT(s) {
|
|
4247
|
-
return
|
|
4247
|
+
return vf(s, Ju, pf);
|
|
4248
4248
|
}
|
|
4249
4249
|
var aT = Ns(Cn, "DataView"), ed = aT, sT = Ns(Cn, "Promise"), td = sT, oT = Ns(Cn, "Set"), co = oT, lp = "[object Map]", uT = "[object Object]", dp = "[object Promise]", hp = "[object Set]", pp = "[object WeakMap]", vp = "[object DataView]", cT = Ls(ed), lT = Ls(Vu), dT = Ls(td), hT = Ls(co), pT = Ls(Zl), hs = Ds;
|
|
4250
4250
|
(ed && hs(new ed(new ArrayBuffer(1))) != vp || Vu && hs(new Vu()) != lp || td && hs(td.resolve()) != dp || co && hs(new co()) != hp || Zl && hs(new Zl()) != pp) && (hs = function(r) {
|
|
@@ -4287,7 +4287,7 @@ var fp = qn ? qn.prototype : void 0, gp = fp ? fp.valueOf : void 0;
|
|
|
4287
4287
|
function wT(s) {
|
|
4288
4288
|
return gp ? Object(gp.call(s)) : {};
|
|
4289
4289
|
}
|
|
4290
|
-
function
|
|
4290
|
+
function ff(s, r) {
|
|
4291
4291
|
var e = r ? yh(s.buffer) : s.buffer;
|
|
4292
4292
|
return new s.constructor(e, s.byteOffset, s.length);
|
|
4293
4293
|
}
|
|
@@ -4311,7 +4311,7 @@ function HT(s, r, e) {
|
|
|
4311
4311
|
case UT:
|
|
4312
4312
|
case jT:
|
|
4313
4313
|
case FT:
|
|
4314
|
-
return
|
|
4314
|
+
return ff(s, e);
|
|
4315
4315
|
case ST:
|
|
4316
4316
|
return new t();
|
|
4317
4317
|
case ET:
|
|
@@ -4325,7 +4325,7 @@ function HT(s, r, e) {
|
|
|
4325
4325
|
return wT(s);
|
|
4326
4326
|
}
|
|
4327
4327
|
}
|
|
4328
|
-
function
|
|
4328
|
+
function gf(s) {
|
|
4329
4329
|
return typeof s.constructor == "function" && !Jc(s) ? _y(gh(s)) : {};
|
|
4330
4330
|
}
|
|
4331
4331
|
var BT = "[object Map]";
|
|
@@ -4336,9 +4336,9 @@ var mp = mo && mo.isMap, GT = mp ? ph(mp) : qT, WT = GT, JT = "[object Set]";
|
|
|
4336
4336
|
function KT(s) {
|
|
4337
4337
|
return Gn(s) && yo(s) == JT;
|
|
4338
4338
|
}
|
|
4339
|
-
var yp = mo && mo.isSet, zT = yp ? ph(yp) : KT, QT = zT, YT = 1, XT = 2, ZT = 4,
|
|
4340
|
-
nt[
|
|
4341
|
-
nt[rw] = nt[
|
|
4339
|
+
var yp = mo && mo.isSet, zT = yp ? ph(yp) : KT, QT = zT, YT = 1, XT = 2, ZT = 4, mf = "[object Arguments]", xT = "[object Array]", ew = "[object Boolean]", tw = "[object Date]", rw = "[object Error]", yf = "[object Function]", nw = "[object GeneratorFunction]", iw = "[object Map]", aw = "[object Number]", kf = "[object Object]", sw = "[object RegExp]", ow = "[object Set]", uw = "[object String]", cw = "[object Symbol]", lw = "[object WeakMap]", dw = "[object ArrayBuffer]", hw = "[object DataView]", pw = "[object Float32Array]", vw = "[object Float64Array]", fw = "[object Int8Array]", gw = "[object Int16Array]", mw = "[object Int32Array]", yw = "[object Uint8Array]", kw = "[object Uint8ClampedArray]", Tw = "[object Uint16Array]", ww = "[object Uint32Array]", nt = {};
|
|
4340
|
+
nt[mf] = nt[xT] = nt[dw] = nt[hw] = nt[ew] = nt[tw] = nt[pw] = nt[vw] = nt[fw] = nt[gw] = nt[mw] = nt[iw] = nt[aw] = nt[kf] = nt[sw] = nt[ow] = nt[uw] = nt[cw] = nt[yw] = nt[kw] = nt[Tw] = nt[ww] = !0;
|
|
4341
|
+
nt[rw] = nt[yf] = nt[lw] = !1;
|
|
4342
4342
|
function fu(s, r, e, t, n, i) {
|
|
4343
4343
|
var a, o = r & YT, u = r & XT, l = r & ZT;
|
|
4344
4344
|
if (e && (a = n ? e(s, t, n, i) : e(s)), a !== void 0)
|
|
@@ -4348,13 +4348,13 @@ function fu(s, r, e, t, n, i) {
|
|
|
4348
4348
|
var d = Br(s);
|
|
4349
4349
|
if (d) {
|
|
4350
4350
|
if (a = gT(s), !o)
|
|
4351
|
-
return
|
|
4351
|
+
return Xv(s, a);
|
|
4352
4352
|
} else {
|
|
4353
|
-
var p = yo(s), v = p ==
|
|
4353
|
+
var p = yo(s), v = p == yf || p == nw;
|
|
4354
4354
|
if (go(s))
|
|
4355
|
-
return
|
|
4356
|
-
if (p ==
|
|
4357
|
-
if (a = u || v ? {} :
|
|
4355
|
+
return df(s, o);
|
|
4356
|
+
if (p == kf || p == mf || v && !n) {
|
|
4357
|
+
if (a = u || v ? {} : gf(s), !o)
|
|
4358
4358
|
return u ? nT(s, z0(a, s)) : eT(s, K0(a, s));
|
|
4359
4359
|
} else {
|
|
4360
4360
|
if (!nt[p])
|
|
@@ -4373,7 +4373,7 @@ function fu(s, r, e, t, n, i) {
|
|
|
4373
4373
|
});
|
|
4374
4374
|
var g = l ? u ? iT : xl : u ? Ju : zc, y = d ? void 0 : g(s);
|
|
4375
4375
|
return Hy(y || s, function(k, w) {
|
|
4376
|
-
y && (w = k, k = s[w]),
|
|
4376
|
+
y && (w = k, k = s[w]), Zv(a, w, fu(k, r, e, w, s, i));
|
|
4377
4377
|
}), a;
|
|
4378
4378
|
}
|
|
4379
4379
|
var bw = 4;
|
|
@@ -4404,11 +4404,11 @@ function Aw(s, r) {
|
|
|
4404
4404
|
return !0;
|
|
4405
4405
|
return !1;
|
|
4406
4406
|
}
|
|
4407
|
-
function
|
|
4407
|
+
function Tf(s, r) {
|
|
4408
4408
|
return s.has(r);
|
|
4409
4409
|
}
|
|
4410
4410
|
var Iw = 1, Mw = 2;
|
|
4411
|
-
function
|
|
4411
|
+
function wf(s, r, e, t, n, i) {
|
|
4412
4412
|
var a = e & Iw, o = s.length, u = r.length;
|
|
4413
4413
|
if (o != u && !(a && u > o))
|
|
4414
4414
|
return !1;
|
|
@@ -4428,7 +4428,7 @@ function bf(s, r, e, t, n, i) {
|
|
|
4428
4428
|
}
|
|
4429
4429
|
if (f) {
|
|
4430
4430
|
if (!Aw(r, function(w, T) {
|
|
4431
|
-
if (!
|
|
4431
|
+
if (!Tf(f, T) && (g === w || n(g, w, e, t, i)))
|
|
4432
4432
|
return f.push(T);
|
|
4433
4433
|
})) {
|
|
4434
4434
|
v = !1;
|
|
@@ -4481,7 +4481,7 @@ function Jw(s, r, e, t, n, i, a) {
|
|
|
4481
4481
|
if (l)
|
|
4482
4482
|
return l == r;
|
|
4483
4483
|
t |= Lw, a.set(s, r);
|
|
4484
|
-
var d =
|
|
4484
|
+
var d = wf(o(s), o(r), t, n, i, a);
|
|
4485
4485
|
return a.delete(s), d;
|
|
4486
4486
|
case qw:
|
|
4487
4487
|
if (vl)
|
|
@@ -4532,7 +4532,7 @@ function xw(s, r, e, t, n, i) {
|
|
|
4532
4532
|
a = !0, d = !1;
|
|
4533
4533
|
}
|
|
4534
4534
|
if (v && !d)
|
|
4535
|
-
return i || (i = new Sn()), a || Kc(s) ?
|
|
4535
|
+
return i || (i = new Sn()), a || Kc(s) ? wf(s, r, e, t, n, i) : Jw(s, r, u, e, t, n, i);
|
|
4536
4536
|
if (!(e & Xw)) {
|
|
4537
4537
|
var f = d && bp.call(s, "__wrapped__"), g = p && bp.call(r, "__wrapped__");
|
|
4538
4538
|
if (f || g) {
|
|
@@ -4571,24 +4571,24 @@ function rb(s, r, e, t) {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
return !0;
|
|
4573
4573
|
}
|
|
4574
|
-
function
|
|
4574
|
+
function bf(s) {
|
|
4575
4575
|
return s === s && !rn(s);
|
|
4576
4576
|
}
|
|
4577
4577
|
function nb(s) {
|
|
4578
4578
|
for (var r = zc(s), e = r.length; e--; ) {
|
|
4579
4579
|
var t = r[e], n = s[t];
|
|
4580
|
-
r[e] = [t, n,
|
|
4580
|
+
r[e] = [t, n, bf(n)];
|
|
4581
4581
|
}
|
|
4582
4582
|
return r;
|
|
4583
4583
|
}
|
|
4584
|
-
function
|
|
4584
|
+
function Pf(s, r) {
|
|
4585
4585
|
return function(e) {
|
|
4586
4586
|
return e == null ? !1 : e[s] === r && (r !== void 0 || s in Object(e));
|
|
4587
4587
|
};
|
|
4588
4588
|
}
|
|
4589
4589
|
function ib(s) {
|
|
4590
4590
|
var r = nb(s);
|
|
4591
|
-
return r.length == 1 && r[0][2] ?
|
|
4591
|
+
return r.length == 1 && r[0][2] ? Pf(r[0][0], r[0][1]) : function(e) {
|
|
4592
4592
|
return e === s || rb(e, s, r);
|
|
4593
4593
|
};
|
|
4594
4594
|
}
|
|
@@ -4596,7 +4596,7 @@ function ab(s, r) {
|
|
|
4596
4596
|
return s != null && r in Object(s);
|
|
4597
4597
|
}
|
|
4598
4598
|
function sb(s, r, e) {
|
|
4599
|
-
r =
|
|
4599
|
+
r = sf(r, s);
|
|
4600
4600
|
for (var t = -1, n = r.length, i = !1; ++t < n; ) {
|
|
4601
4601
|
var a = Xc(r[t]);
|
|
4602
4602
|
if (!(i = s != null && e(s, a)))
|
|
@@ -4610,7 +4610,7 @@ function ob(s, r) {
|
|
|
4610
4610
|
}
|
|
4611
4611
|
var ub = 1, cb = 2;
|
|
4612
4612
|
function lb(s, r) {
|
|
4613
|
-
return vh(s) &&
|
|
4613
|
+
return vh(s) && bf(r) ? Pf(Xc(s), r) : function(e) {
|
|
4614
4614
|
var t = D0(e, s);
|
|
4615
4615
|
return t === void 0 && t === r ? ob(e, s) : Zc(r, t, ub | cb);
|
|
4616
4616
|
};
|
|
@@ -4622,7 +4622,7 @@ function db(s) {
|
|
|
4622
4622
|
}
|
|
4623
4623
|
function hb(s) {
|
|
4624
4624
|
return function(r) {
|
|
4625
|
-
return
|
|
4625
|
+
return of(r, s);
|
|
4626
4626
|
};
|
|
4627
4627
|
}
|
|
4628
4628
|
function pb(s) {
|
|
@@ -4713,14 +4713,14 @@ function Sb(s, r, e, t, n, i, a) {
|
|
|
4713
4713
|
var d = i ? i(o, u, e + "", s, r, a) : void 0, p = d === void 0;
|
|
4714
4714
|
if (p) {
|
|
4715
4715
|
var v = Br(u), f = !v && go(u), g = !v && !f && Kc(u);
|
|
4716
|
-
d = u, v || f || g ? Br(o) ? d = o : bb(o) ? d =
|
|
4716
|
+
d = u, v || f || g ? Br(o) ? d = o : bb(o) ? d = Xv(o) : f ? (p = !1, d = df(u, !0)) : g ? (p = !1, d = ff(u, !0)) : d = [] : F0(u) || Lu(u) ? (d = o, Lu(o) ? d = Pb(o) : (!rn(o) || ch(o)) && (d = gf(u))) : p = !1;
|
|
4717
4717
|
}
|
|
4718
4718
|
p && (a.set(u, d), n(d, u, t, i, a), a.delete(u)), rd(s, e, d);
|
|
4719
4719
|
}
|
|
4720
|
-
function
|
|
4720
|
+
function Sf(s, r, e, t, n) {
|
|
4721
4721
|
s !== r && mb(r, function(i, a) {
|
|
4722
4722
|
if (n || (n = new Sn()), rn(i))
|
|
4723
|
-
Sb(s, r, a, e,
|
|
4723
|
+
Sb(s, r, a, e, Sf, t, n);
|
|
4724
4724
|
else {
|
|
4725
4725
|
var o = t ? t(nd(s, a), i, a + "", s, r, n) : void 0;
|
|
4726
4726
|
o === void 0 && (o = i), rd(s, a, o);
|
|
@@ -4743,7 +4743,7 @@ function Ib(s) {
|
|
|
4743
4743
|
if (r == Cb || r == Rb)
|
|
4744
4744
|
return !s.size;
|
|
4745
4745
|
if (Jc(s))
|
|
4746
|
-
return !
|
|
4746
|
+
return !af(s).length;
|
|
4747
4747
|
for (var e in s)
|
|
4748
4748
|
if (Ab.call(s, e))
|
|
4749
4749
|
return !1;
|
|
@@ -4753,11 +4753,11 @@ function Mb(s, r) {
|
|
|
4753
4753
|
return Zc(s, r);
|
|
4754
4754
|
}
|
|
4755
4755
|
var Ob = tk(function(s, r, e) {
|
|
4756
|
-
|
|
4756
|
+
Sf(s, r, e);
|
|
4757
4757
|
}), Zi = Ob, Db = 1 / 0, Lb = co && 1 / Th(new co([, -0]))[1] == Db ? function(s) {
|
|
4758
4758
|
return new co(s);
|
|
4759
4759
|
} : Iy, Nb = Lb, Vb = 200;
|
|
4760
|
-
function
|
|
4760
|
+
function Ef(s, r, e) {
|
|
4761
4761
|
var t = -1, n = Jy, i = s.length, a = !0, o = [], u = o;
|
|
4762
4762
|
if (e)
|
|
4763
4763
|
a = !1, n = Eb;
|
|
@@ -4765,7 +4765,7 @@ function Cf(s, r, e) {
|
|
|
4765
4765
|
var l = r ? null : Nb(s);
|
|
4766
4766
|
if (l)
|
|
4767
4767
|
return Th(l);
|
|
4768
|
-
a = !1, n =
|
|
4768
|
+
a = !1, n = Tf, u = new $u();
|
|
4769
4769
|
} else
|
|
4770
4770
|
u = r ? [] : o;
|
|
4771
4771
|
e:
|
|
@@ -4782,10 +4782,10 @@ function Cf(s, r, e) {
|
|
|
4782
4782
|
return o;
|
|
4783
4783
|
}
|
|
4784
4784
|
function $b(s) {
|
|
4785
|
-
return s && s.length ?
|
|
4785
|
+
return s && s.length ? Ef(s) : [];
|
|
4786
4786
|
}
|
|
4787
4787
|
function Ub(s, r) {
|
|
4788
|
-
return s && s.length ?
|
|
4788
|
+
return s && s.length ? Ef(s, vb(r)) : [];
|
|
4789
4789
|
}
|
|
4790
4790
|
function mc(s) {
|
|
4791
4791
|
var r = {};
|
|
@@ -4825,7 +4825,7 @@ var qb = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m
|
|
|
4825
4825
|
});
|
|
4826
4826
|
}
|
|
4827
4827
|
}, bs = { logs: "https://api.realtime.cloudflare.com/logs/otel/logs", mock: { url: "https://api.realtime.cloudflare.com/mock", domain: "mock.realtime.cloudflare.com", app: "https://examples.realtime.cloudflare.com/meeting", stagingApp: "https://examples.staging.realtime.cloudflare.com/meeting" }, apiBase: { prod: "https://api.realtime.cloudflare.com", staging: "https://api.staging.realtime.cloudflare.com", prodAlternate: "https://api.realtime.cloudflare.com" }, baseURI: { prod: "realtime.cloudflare.com", staging: "staging.realtime.cloudflare.com" } }, Wb = /\b(?:1[7-9](?:\.\d+)?|[2-9]\d(?:\.\d+)?|[1-9]\d{2,}(?:\.\d+)?)\b/, bh = "__rtk_plugins__", Jb = [bh];
|
|
4828
|
-
function
|
|
4828
|
+
function Cf(s) {
|
|
4829
4829
|
var r, e, t = typeof navigator != "undefined" && !navigator.isReactNative && typeof window != "undefined" && ((r = window.location.host) === null || r === void 0 ? void 0 : r.includes(bs.baseURI.staging)), n = !!(s != null && (e = s.getValue("modules")) !== null && e !== void 0 && (e = e.devTools) !== null && e !== void 0 && e.logs);
|
|
4830
4830
|
return t || n;
|
|
4831
4831
|
}
|
|
@@ -4840,23 +4840,23 @@ function Kb(s, r) {
|
|
|
4840
4840
|
}
|
|
4841
4841
|
return !0;
|
|
4842
4842
|
}
|
|
4843
|
-
function
|
|
4843
|
+
function Rf(s, r) {
|
|
4844
4844
|
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4845
4845
|
return Object.getOwnPropertyNames(s).forEach(function(t) {
|
|
4846
4846
|
var n;
|
|
4847
4847
|
if (![null, void 0, NaN].includes(s[t]) && !(r && (((n = r.match(/\./g)) === null || n === void 0 ? void 0 : n.length) || 0) >= 10)) {
|
|
4848
4848
|
var i = r ? "".concat(r, ".").concat(t) : t;
|
|
4849
|
-
me(s[t]) === "object" ?
|
|
4849
|
+
me(s[t]) === "object" ? Rf(s[t], i, e) : ["number", "string", "boolean"].includes(me(s[t])) && (e[i] = s[t]);
|
|
4850
4850
|
}
|
|
4851
4851
|
}), e;
|
|
4852
4852
|
}
|
|
4853
4853
|
function Sp(s, r) {
|
|
4854
4854
|
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "", n = {};
|
|
4855
4855
|
try {
|
|
4856
|
-
var i = JSON.stringify(e), a = JSON.parse(i), o =
|
|
4856
|
+
var i = JSON.stringify(e), a = JSON.parse(i), o = Rf(a, t), u = JSON.stringify(o), l = r == null ? void 0 : r.startsWith("[SDP]");
|
|
4857
4857
|
if (!l && u.length > 5e3) {
|
|
4858
4858
|
var d = 'Log named: "'.concat(r, `" is trying to log an flattened object of size
|
|
4859
|
-
`).concat(u.length, " chars that is beyond permitted limit of 5000 chars. Please optimize."), p =
|
|
4859
|
+
`).concat(u.length, " chars that is beyond permitted limit of 5000 chars. Please optimize."), p = Cf(s);
|
|
4860
4860
|
throw p && console.error(d, { log: e, flattened: u }), new Error(d);
|
|
4861
4861
|
}
|
|
4862
4862
|
return JSON.parse(u);
|
|
@@ -4915,7 +4915,7 @@ var L = /* @__PURE__ */ function() {
|
|
|
4915
4915
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
4916
4916
|
n != null && n.error && Object.assign(n, { error: mc(n.error) });
|
|
4917
4917
|
var a = ha.getContext(this.meetingMetadata.peerId);
|
|
4918
|
-
|
|
4918
|
+
Cf(a) && (Ib(n) ? console[e]("InternalLogs:: ", e, t) : console[e]("InternalLogs:: ", e, t, n));
|
|
4919
4919
|
var o = Kb(a, e);
|
|
4920
4920
|
if (o)
|
|
4921
4921
|
try {
|
|
@@ -5082,7 +5082,7 @@ var Qb = /* @__PURE__ */ function() {
|
|
|
5082
5082
|
return this.contexts.get(e);
|
|
5083
5083
|
var n = new L(), i = new $m();
|
|
5084
5084
|
this.contexts.set(e, zb(t)), this.contexts.get(e).setValue("peerSessionStore", new Um(i));
|
|
5085
|
-
var a = new
|
|
5085
|
+
var a = new Kv();
|
|
5086
5086
|
return a.setMaxListeners(50), this.contexts.get(e).setValue("logger", i), this.contexts.get(e).setValue("telemetry", n), this.contexts.get(e).setValue("callstats", a), this.mostRecentPeerId = e, this.contexts.get(e);
|
|
5087
5087
|
}
|
|
5088
5088
|
/**
|
|
@@ -5321,7 +5321,7 @@ if (typeof process != "undefined") {
|
|
|
5321
5321
|
var Xs;
|
|
5322
5322
|
(Xs = process) !== null && Xs !== void 0 && (Xs = Xs.env) !== null && Xs !== void 0 && Xs.FLAGSMITH_ENVIRONMENT_KEY && process.env.FLAGSMITH_ENVIRONMENT_KEY;
|
|
5323
5323
|
}
|
|
5324
|
-
var
|
|
5324
|
+
var _f = [-2, -1, 0, 1, 2], Zb = [0, 1, 2, 3, 4];
|
|
5325
5325
|
function xb(s) {
|
|
5326
5326
|
s = s.trim();
|
|
5327
5327
|
var r = "0", e = "0", t = "0";
|
|
@@ -5364,8 +5364,8 @@ var eP = function(r, e, t) {
|
|
|
5364
5364
|
return a.toString(16).padStart(2, "0");
|
|
5365
5365
|
};
|
|
5366
5366
|
return "#".concat(n(r)).concat(n(e)).concat(n(t));
|
|
5367
|
-
},
|
|
5368
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
5367
|
+
}, Af = function(r) {
|
|
5368
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _f, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0.4, n = [], i = xb(r), a = Ne(i, 3), o = a[0], u = a[1], l = a[2], d = tP(o, u, l), p = Ne(d, 3), v = p[0], f = p[1], g = p[2], y = Math.round(g * 100);
|
|
5369
5369
|
y > 70 ? t = 0.8 : y > 60 ? t = 0.9 : y < 10 ? t = 0.075 : y < 42 && (t = 0.3);
|
|
5370
5370
|
var k = e.findIndex(function(F) {
|
|
5371
5371
|
return F === 0;
|
|
@@ -5387,17 +5387,17 @@ var eP = function(r, e, t) {
|
|
|
5387
5387
|
}
|
|
5388
5388
|
return n;
|
|
5389
5389
|
}, Cp = { dark: { background: { 1e3: "#252525", 900: "#2F2F2F", 800: "#323232", 700: "#3E3E3E", 600: "#4A4A4A" }, text: "#F5F5F5", "video-bg": "#1C1C1C" }, light: { background: { 1e3: "#FFFFFF", 900: "#F5F5F5", 800: "#EBEBEB", 700: "#E0E0E0", 600: "#D6D6D6" }, text: "#111111", "text-on-brand": "#ffffff", "video-bg": "#DADADA" } }, nP = function(r) {
|
|
5390
|
-
var e =
|
|
5390
|
+
var e = Af(r, _f), t = Ne(e, 5), n = t[0], i = t[1], a = t[2], o = t[3], u = t[4];
|
|
5391
5391
|
return { 300: n, 400: i, 500: a, 600: o, 700: u };
|
|
5392
5392
|
}, iP = function(r) {
|
|
5393
5393
|
if (r === "#FFFFFF")
|
|
5394
5394
|
return Cp.light.background;
|
|
5395
5395
|
if (r === "#000000")
|
|
5396
5396
|
return Cp.dark.background;
|
|
5397
|
-
var e =
|
|
5397
|
+
var e = Af(r, Zb), t = Ne(e, 5), n = t[0], i = t[1], a = t[2], o = t[3], u = t[4];
|
|
5398
5398
|
return { 1e3: n, 900: i, 800: a, 700: o, 600: u };
|
|
5399
5399
|
}, aP = { border_radius: "rounded", border_width: "thin", spacing_base: 4, theme: "dark", colors: { brand: nP("#2160FD"), background: iP("#141414"), danger: "#FF2D2D", text: "#EEEEEE", text_on_brand: "#EEEEEE", success: "#62A504", video_bg: "#191919", warning: "#FFCD07" } };
|
|
5400
|
-
function
|
|
5400
|
+
function If() {
|
|
5401
5401
|
return kh(aP);
|
|
5402
5402
|
}
|
|
5403
5403
|
var sP = { permissions: {
|
|
@@ -5453,7 +5453,7 @@ var sP = { permissions: {
|
|
|
5453
5453
|
stage_enabled: !1,
|
|
5454
5454
|
stage_access: void 0,
|
|
5455
5455
|
accept_stage_requests: !1
|
|
5456
|
-
}, ui: { oldTheme: { setup_screen: { is_enabled: !1 }, alone_here: { is_enabled: !1 }, waiting_room: { is_enabled: !1, enable_preview: !0 }, control_bar: { is_enabled: !0, elements: { plugins: !0, screenshare: !0, invite: !1, participants: !0, chat: !0, reactions: !1, polls: !0, fullscreen: !0, layout: !0 } }, header: { is_enabled: !0, elements: { timer: !0, title: !0, participant_count: !0, change_layout: !0 } }, pip_mode: !0, auto_tune: !0, colors: { primary: "#2160FD", secondary: "#1A1A1A", text: "#EEEEEE", background: "#1A1A1A", textPrimary: "#EEEEEE", videoBackground: "#1A1A1A" }, dimensions: { mode: "fillParent" }, grid: { multi: { maxVideoCount: 6, videoFit: "cover" }, single: { maxVideoCount: 6, videoFit: "cover" }, defaultView: "MULTI" }, controls: { pip_toggle: !1 }, plugins: [] }, design_tokens:
|
|
5456
|
+
}, ui: { oldTheme: { setup_screen: { is_enabled: !1 }, alone_here: { is_enabled: !1 }, waiting_room: { is_enabled: !1, enable_preview: !0 }, control_bar: { is_enabled: !0, elements: { plugins: !0, screenshare: !0, invite: !1, participants: !0, chat: !0, reactions: !1, polls: !0, fullscreen: !0, layout: !0 } }, header: { is_enabled: !0, elements: { timer: !0, title: !0, participant_count: !0, change_layout: !0 } }, pip_mode: !0, auto_tune: !0, colors: { primary: "#2160FD", secondary: "#1A1A1A", text: "#EEEEEE", background: "#1A1A1A", textPrimary: "#EEEEEE", videoBackground: "#1A1A1A" }, dimensions: { mode: "fillParent" }, grid: { multi: { maxVideoCount: 6, videoFit: "cover" }, single: { maxVideoCount: 6, videoFit: "cover" }, defaultView: "MULTI" }, controls: { pip_toggle: !1 }, plugins: [] }, design_tokens: If(), config_diff: {} }, config: { view_type: "GROUP_CALL", media: { audio: { enable_stereo: !1, enable_high_bitrate: !1 }, video: { quality: "vga", frame_rate: 30, simulcast: !1 }, screenshare: { quality: "hd", frame_rate: 5 } }, max_video_streams: { mobile: 6, desktop: 6 }, max_screenshare_count: 1, track_recording: { subscriptions: [] } }, version: "hybrid" };
|
|
5457
5457
|
function oP() {
|
|
5458
5458
|
return kh(sP);
|
|
5459
5459
|
}
|
|
@@ -5494,7 +5494,7 @@ var uP = { permissions: {
|
|
|
5494
5494
|
stage_enabled: !1,
|
|
5495
5495
|
stage_access: void 0,
|
|
5496
5496
|
accept_stage_requests: !1
|
|
5497
|
-
}, ui: { design_tokens:
|
|
5497
|
+
}, ui: { design_tokens: If(), config_diff: {} }, config: { view_type: "GROUP_CALL", media: { audio: { enable_stereo: !1, enable_high_bitrate: !1 }, video: { quality: "vga", frame_rate: 30, simulcast: !1 }, screenshare: { quality: "hd", frame_rate: 5 } }, max_video_streams: { mobile: 6, desktop: 6 }, max_screenshare_count: 1, track_recording: { subscriptions: [] } }, version: "2.0.0" };
|
|
5498
5498
|
function Ph() {
|
|
5499
5499
|
return kh(uP);
|
|
5500
5500
|
}
|
|
@@ -6078,7 +6078,7 @@ var pP = /* @__PURE__ */ function(s) {
|
|
|
6078
6078
|
}]]);
|
|
6079
6079
|
}
|
|
6080
6080
|
return R(r, s), P(r);
|
|
6081
|
-
}(I),
|
|
6081
|
+
}(I), Mf = new pP(), vP = /* @__PURE__ */ function(s) {
|
|
6082
6082
|
function r() {
|
|
6083
6083
|
return b(this, r), C(this, r, ["media.HeaderExtension", [{
|
|
6084
6084
|
no: 1,
|
|
@@ -6256,7 +6256,7 @@ var mP = /* @__PURE__ */ function(s) {
|
|
|
6256
6256
|
}]]);
|
|
6257
6257
|
}
|
|
6258
6258
|
return R(r, s), P(r);
|
|
6259
|
-
}(I),
|
|
6259
|
+
}(I), Of = new SP(), EP = /* @__PURE__ */ function(s) {
|
|
6260
6260
|
function r() {
|
|
6261
6261
|
return b(this, r), C(this, r, ["media.RenegotiateRequest", [{
|
|
6262
6262
|
no: 1,
|
|
@@ -6419,7 +6419,7 @@ var LP = /* @__PURE__ */ function(s) {
|
|
|
6419
6419
|
T: 9
|
|
6420
6420
|
/*ScalarType.STRING*/
|
|
6421
6421
|
}, { no: 8, name: "codec", kind: "message", T: function() {
|
|
6422
|
-
return
|
|
6422
|
+
return Mf;
|
|
6423
6423
|
} }]]);
|
|
6424
6424
|
}
|
|
6425
6425
|
return R(r, s), P(r);
|
|
@@ -6452,7 +6452,7 @@ var LP = /* @__PURE__ */ function(s) {
|
|
|
6452
6452
|
} } }]]);
|
|
6453
6453
|
}
|
|
6454
6454
|
return R(r, s), P(r);
|
|
6455
|
-
}(I),
|
|
6455
|
+
}(I), Df = new $P(), UP = /* @__PURE__ */ function(s) {
|
|
6456
6456
|
function r() {
|
|
6457
6457
|
return b(this, r), C(this, r, ["media.PeerRtpCapabilitites", [{ no: 1, name: "sender", kind: "message", T: function() {
|
|
6458
6458
|
return Ip;
|
|
@@ -6461,10 +6461,10 @@ var LP = /* @__PURE__ */ function(s) {
|
|
|
6461
6461
|
} }]]);
|
|
6462
6462
|
}
|
|
6463
6463
|
return R(r, s), P(r);
|
|
6464
|
-
}(I),
|
|
6464
|
+
}(I), Lf = new UP(), jP = /* @__PURE__ */ function(s) {
|
|
6465
6465
|
function r() {
|
|
6466
6466
|
return b(this, r), C(this, r, ["media.RtpCapability", [{ no: 1, name: "codecs", kind: "message", repeat: 1, T: function() {
|
|
6467
|
-
return
|
|
6467
|
+
return Mf;
|
|
6468
6468
|
} }, { no: 2, name: "header_extensions", kind: "message", repeat: 1, T: function() {
|
|
6469
6469
|
return fP;
|
|
6470
6470
|
} }]]);
|
|
@@ -6524,7 +6524,7 @@ var LP = /* @__PURE__ */ function(s) {
|
|
|
6524
6524
|
}]]);
|
|
6525
6525
|
}
|
|
6526
6526
|
return R(r, s), P(r);
|
|
6527
|
-
}(I),
|
|
6527
|
+
}(I), Nf = new qP(), GP = /* @__PURE__ */ function(s) {
|
|
6528
6528
|
function r() {
|
|
6529
6529
|
return b(this, r), C(this, r, ["media.edge.GeoLocation", [{
|
|
6530
6530
|
no: 1,
|
|
@@ -6600,7 +6600,7 @@ var LP = /* @__PURE__ */ function(s) {
|
|
|
6600
6600
|
}, { no: 8, name: "location", kind: "message", T: function() {
|
|
6601
6601
|
return WP;
|
|
6602
6602
|
} }, { no: 9, name: "capabilities", kind: "message", T: function() {
|
|
6603
|
-
return
|
|
6603
|
+
return Lf;
|
|
6604
6604
|
} }]]);
|
|
6605
6605
|
}
|
|
6606
6606
|
return R(r, s), P(r);
|
|
@@ -6673,7 +6673,7 @@ var xP = /* @__PURE__ */ function(s) {
|
|
|
6673
6673
|
T: 9
|
|
6674
6674
|
/*ScalarType.STRING*/
|
|
6675
6675
|
}, { no: 6, name: "simulcast", kind: "message", T: function() {
|
|
6676
|
-
return
|
|
6676
|
+
return Nf;
|
|
6677
6677
|
} }]]);
|
|
6678
6678
|
}
|
|
6679
6679
|
return R(r, s), P(r);
|
|
@@ -6700,7 +6700,7 @@ var xP = /* @__PURE__ */ function(s) {
|
|
|
6700
6700
|
T: 9
|
|
6701
6701
|
/*ScalarType.STRING*/
|
|
6702
6702
|
}, { no: 2, name: "simulcast", kind: "message", T: function() {
|
|
6703
|
-
return
|
|
6703
|
+
return Nf;
|
|
6704
6704
|
} }, {
|
|
6705
6705
|
no: 3,
|
|
6706
6706
|
name: "producing_transport_id",
|
|
@@ -6901,7 +6901,7 @@ var kS = /* @__PURE__ */ function(s) {
|
|
|
6901
6901
|
}]]);
|
|
6902
6902
|
}
|
|
6903
6903
|
return R(r, s), P(r);
|
|
6904
|
-
}(I),
|
|
6904
|
+
}(I), Vf = new kS(), TS = /* @__PURE__ */ function(s) {
|
|
6905
6905
|
function r() {
|
|
6906
6906
|
return b(this, r), C(this, r, ["media.edge.PeerDisplayNameEditRequest", [{
|
|
6907
6907
|
no: 1,
|
|
@@ -7074,11 +7074,11 @@ var MS = /* @__PURE__ */ function(s) {
|
|
|
7074
7074
|
T: 9
|
|
7075
7075
|
/*ScalarType.STRING*/
|
|
7076
7076
|
}, { no: 5, name: "capabilities", kind: "message", T: function() {
|
|
7077
|
-
return
|
|
7077
|
+
return Lf;
|
|
7078
7078
|
} }]]);
|
|
7079
7079
|
}
|
|
7080
7080
|
return R(r, s), P(r);
|
|
7081
|
-
}(I),
|
|
7081
|
+
}(I), $f = new MS(), OS = /* @__PURE__ */ function(s) {
|
|
7082
7082
|
function r() {
|
|
7083
7083
|
return b(this, r), C(this, r, ["media.edge.SelectedPeersResponse", [{
|
|
7084
7084
|
no: 1,
|
|
@@ -7133,7 +7133,7 @@ var $S = /* @__PURE__ */ function(s) {
|
|
|
7133
7133
|
return b(this, r), C(this, r, ["media.edge.PeerJoinCompleteResponse", [{ no: 1, name: "room_state", kind: "message", T: function() {
|
|
7134
7134
|
return RS;
|
|
7135
7135
|
} }, { no: 2, name: "participants", kind: "message", repeat: 1, T: function() {
|
|
7136
|
-
return
|
|
7136
|
+
return $f;
|
|
7137
7137
|
} }, { no: 3, name: "selected_peers", kind: "message", T: function() {
|
|
7138
7138
|
return id;
|
|
7139
7139
|
} }, {
|
|
@@ -7165,7 +7165,7 @@ var $S = /* @__PURE__ */ function(s) {
|
|
|
7165
7165
|
T: 8
|
|
7166
7166
|
/*ScalarType.BOOL*/
|
|
7167
7167
|
}, { no: 2, name: "consumer_ids_map", kind: "message", T: function() {
|
|
7168
|
-
return
|
|
7168
|
+
return Df;
|
|
7169
7169
|
} }]]);
|
|
7170
7170
|
}
|
|
7171
7171
|
return R(r, s), P(r);
|
|
@@ -7180,7 +7180,7 @@ var HS = /* @__PURE__ */ function(s) {
|
|
|
7180
7180
|
T: 8
|
|
7181
7181
|
/*ScalarType.BOOL*/
|
|
7182
7182
|
}, { no: 2, name: "consumer_ids_map", kind: "message", T: function() {
|
|
7183
|
-
return
|
|
7183
|
+
return Df;
|
|
7184
7184
|
} }, { no: 3, name: "description", kind: "message", T: function() {
|
|
7185
7185
|
return Rn;
|
|
7186
7186
|
} }]]);
|
|
@@ -7343,7 +7343,7 @@ var nE = /* @__PURE__ */ function(s) {
|
|
|
7343
7343
|
}(I), uE = new oE(), cE = /* @__PURE__ */ function(s) {
|
|
7344
7344
|
function r() {
|
|
7345
7345
|
return b(this, r), C(this, r, ["media.edge.PeerJoinBroadcastResponse", [{ no: 1, name: "participant", kind: "message", T: function() {
|
|
7346
|
-
return
|
|
7346
|
+
return $f;
|
|
7347
7347
|
} }]]);
|
|
7348
7348
|
}
|
|
7349
7349
|
return R(r, s), P(r);
|
|
@@ -7388,7 +7388,7 @@ var nE = /* @__PURE__ */ function(s) {
|
|
|
7388
7388
|
T: 9
|
|
7389
7389
|
/*ScalarType.STRING*/
|
|
7390
7390
|
}, { no: 2, name: "transport_details", kind: "message", T: function() {
|
|
7391
|
-
return
|
|
7391
|
+
return Of;
|
|
7392
7392
|
} }, { no: 3, name: "track_subscriptions", kind: "message", repeat: 1, T: function() {
|
|
7393
7393
|
return hE;
|
|
7394
7394
|
} }]]);
|
|
@@ -7844,7 +7844,7 @@ var ME = /* @__PURE__ */ function(s) {
|
|
|
7844
7844
|
}]]);
|
|
7845
7845
|
}
|
|
7846
7846
|
return R(r, s), P(r);
|
|
7847
|
-
}(I),
|
|
7847
|
+
}(I), Uf = new FE(), HE = /* @__PURE__ */ function(s) {
|
|
7848
7848
|
function r() {
|
|
7849
7849
|
return b(this, r), C(this, r, ["socket.room.ActiveRecording", [{
|
|
7850
7850
|
no: 1,
|
|
@@ -7866,7 +7866,7 @@ var ME = /* @__PURE__ */ function(s) {
|
|
|
7866
7866
|
}(I), BE = new HE(), qE = /* @__PURE__ */ function(s) {
|
|
7867
7867
|
function r() {
|
|
7868
7868
|
return b(this, r), C(this, r, ["socket.room.RoomInfoResponse", [{ no: 1, name: "room", kind: "message", T: function() {
|
|
7869
|
-
return
|
|
7869
|
+
return Uf;
|
|
7870
7870
|
} }]]);
|
|
7871
7871
|
}
|
|
7872
7872
|
return R(r, s), P(r);
|
|
@@ -7881,7 +7881,7 @@ var ME = /* @__PURE__ */ function(s) {
|
|
|
7881
7881
|
}]]);
|
|
7882
7882
|
}
|
|
7883
7883
|
return R(r, s), P(r);
|
|
7884
|
-
}(I),
|
|
7884
|
+
}(I), jf = new GE(), WE = /* @__PURE__ */ function(s) {
|
|
7885
7885
|
function r() {
|
|
7886
7886
|
return b(this, r), C(this, r, ["socket.room.UpdatePeerInfoRequest", [{
|
|
7887
7887
|
no: 1,
|
|
@@ -7963,7 +7963,7 @@ var JE = /* @__PURE__ */ function(s) {
|
|
|
7963
7963
|
}(I), QE = new zE(), YE = /* @__PURE__ */ function(s) {
|
|
7964
7964
|
function r() {
|
|
7965
7965
|
return b(this, r), C(this, r, ["socket.room.UpdateRoomInfoRequest", [{ no: 1, name: "room", kind: "message", T: function() {
|
|
7966
|
-
return
|
|
7966
|
+
return Uf;
|
|
7967
7967
|
} }]]);
|
|
7968
7968
|
}
|
|
7969
7969
|
return R(r, s), P(r);
|
|
@@ -8255,10 +8255,10 @@ var vC = /* @__PURE__ */ function(s) {
|
|
|
8255
8255
|
} }]]);
|
|
8256
8256
|
}
|
|
8257
8257
|
return R(r, s), P(r);
|
|
8258
|
-
}(I),
|
|
8258
|
+
}(I), Ff = new CC(), RC = /* @__PURE__ */ function(s) {
|
|
8259
8259
|
function r() {
|
|
8260
8260
|
return b(this, r), C(this, r, ["socket.room.MovePeersBetweenRoomsResponse", [{ no: 1, name: "payloads", kind: "message", repeat: 1, T: function() {
|
|
8261
|
-
return
|
|
8261
|
+
return Ff;
|
|
8262
8262
|
} }]]);
|
|
8263
8263
|
}
|
|
8264
8264
|
return R(r, s), P(r);
|
|
@@ -8333,7 +8333,7 @@ var _C = /* @__PURE__ */ function(s) {
|
|
|
8333
8333
|
}]]);
|
|
8334
8334
|
}
|
|
8335
8335
|
return R(r, s), P(r);
|
|
8336
|
-
}(I),
|
|
8336
|
+
}(I), Hf = new LC(), NC = /* @__PURE__ */ function(s) {
|
|
8337
8337
|
function r() {
|
|
8338
8338
|
return b(this, r), C(this, r, ["socket.room.BroadcastMessage", [{
|
|
8339
8339
|
no: 1,
|
|
@@ -8820,17 +8820,17 @@ var GC = /* @__PURE__ */ function(s) {
|
|
|
8820
8820
|
} }]]);
|
|
8821
8821
|
}
|
|
8822
8822
|
return R(r, s), P(r);
|
|
8823
|
-
}(I),
|
|
8823
|
+
}(I), Bf = new hR(), pR = /* @__PURE__ */ function(s) {
|
|
8824
8824
|
function r() {
|
|
8825
8825
|
return b(this, r), C(this, r, ["socket.preset.UpdatePeersPresetRequest", [{ no: 1, name: "update_peers_presets", kind: "message", repeat: 1, T: function() {
|
|
8826
|
-
return
|
|
8826
|
+
return Bf;
|
|
8827
8827
|
} }]]);
|
|
8828
8828
|
}
|
|
8829
8829
|
return R(r, s), P(r);
|
|
8830
8830
|
}(I), vR = new pR(), fR = /* @__PURE__ */ function(s) {
|
|
8831
8831
|
function r() {
|
|
8832
8832
|
return b(this, r), C(this, r, ["socket.preset.UpdatePeersPresetResponse", [{ no: 1, name: "update_peers_presets", kind: "message", repeat: 1, T: function() {
|
|
8833
|
-
return
|
|
8833
|
+
return Bf;
|
|
8834
8834
|
} }]]);
|
|
8835
8835
|
}
|
|
8836
8836
|
return R(r, s), P(r);
|
|
@@ -9038,7 +9038,7 @@ var TR = /* @__PURE__ */ function(s) {
|
|
|
9038
9038
|
} }]]);
|
|
9039
9039
|
}
|
|
9040
9040
|
return R(r, s), P(r);
|
|
9041
|
-
}(I),
|
|
9041
|
+
}(I), qf = new RR(), _R = /* @__PURE__ */ function(s) {
|
|
9042
9042
|
function r() {
|
|
9043
9043
|
return b(this, r), C(this, r, ["socket.chat.SendChatMessageToRoomRequest", [{
|
|
9044
9044
|
no: 1,
|
|
@@ -10110,7 +10110,7 @@ var M1 = /* @__PURE__ */ function(s) {
|
|
|
10110
10110
|
}]]);
|
|
10111
10111
|
}
|
|
10112
10112
|
return R(r, s), P(r);
|
|
10113
|
-
}(I),
|
|
10113
|
+
}(I), Gf = new H1(), B1 = /* @__PURE__ */ function(s) {
|
|
10114
10114
|
function r() {
|
|
10115
10115
|
return b(this, r), C(this, r, ["socket.polls.PollOption", [{
|
|
10116
10116
|
no: 1,
|
|
@@ -10213,14 +10213,14 @@ var M1 = /* @__PURE__ */ function(s) {
|
|
|
10213
10213
|
}(I), Q1 = new z1(), Y1 = /* @__PURE__ */ function(s) {
|
|
10214
10214
|
function r() {
|
|
10215
10215
|
return b(this, r), C(this, r, ["socket.polls.UpdatePollResponse", [{ no: 1, name: "poll", kind: "message", T: function() {
|
|
10216
|
-
return
|
|
10216
|
+
return Gf;
|
|
10217
10217
|
} }]]);
|
|
10218
10218
|
}
|
|
10219
10219
|
return R(r, s), P(r);
|
|
10220
10220
|
}(I), bl = new Y1(), X1 = /* @__PURE__ */ function(s) {
|
|
10221
10221
|
function r() {
|
|
10222
10222
|
return b(this, r), C(this, r, ["socket.polls.GetPollsResponse", [{ no: 1, name: "polls", kind: "message", repeat: 1, T: function() {
|
|
10223
|
-
return
|
|
10223
|
+
return Gf;
|
|
10224
10224
|
} }]]);
|
|
10225
10225
|
}
|
|
10226
10226
|
return R(r, s), P(r);
|
|
@@ -10475,7 +10475,7 @@ var i_ = 0, a_ = 1, s_ = 2, o_ = 3, u_ = 5, c_ = {
|
|
|
10475
10475
|
recordingPaused: 42,
|
|
10476
10476
|
getRoomStageState: 43,
|
|
10477
10477
|
livestreamingInvoked: 44
|
|
10478
|
-
}, l_ = { getMessages: 0, sendMessageToRoom: 1, sendMessageToPeers: 2, editMessage: 3, deleteMessage: 4, getPaginatedMessages: 5, searchChannelMessages: 7, pinMessage: 10 }, d_ = { getPlugins: 0, addPlugin: 1, enablePluginForRoom: 2, disablePluginForPeers: 3, enablePluginForPeers: 4, disablePluginForRoom: 5, removePlugin: 6, customPluginEventToRoom: 7, customPluginEventToPeers: 8, storeInsertKeys: 9, storeGetKeys: 10, storeDeleteKeys: 11, storeDelete: 12 }, h_ = { createPoll: 0, getPolls: 1, votePoll: 2, updatePoll: 3 },
|
|
10478
|
+
}, l_ = { getMessages: 0, sendMessageToRoom: 1, sendMessageToPeers: 2, editMessage: 3, deleteMessage: 4, getPaginatedMessages: 5, searchChannelMessages: 7, pinMessage: 10 }, d_ = { getPlugins: 0, addPlugin: 1, enablePluginForRoom: 2, disablePluginForPeers: 3, enablePluginForPeers: 4, disablePluginForRoom: 5, removePlugin: 6, customPluginEventToRoom: 7, customPluginEventToPeers: 8, storeInsertKeys: 9, storeGetKeys: 10, storeDeleteKeys: 11, storeDelete: 12 }, h_ = { createPoll: 0, getPolls: 1, votePoll: 2, updatePoll: 3 }, Wf = {
|
|
10479
10479
|
unknown: 0,
|
|
10480
10480
|
createWebRTCTransport: 1,
|
|
10481
10481
|
produce: 2,
|
|
@@ -10518,12 +10518,12 @@ function zu(s, r) {
|
|
|
10518
10518
|
return e[t] = (s << 16) + r[t], e;
|
|
10519
10519
|
}, {});
|
|
10520
10520
|
}
|
|
10521
|
-
function
|
|
10521
|
+
function Jf(s, r) {
|
|
10522
10522
|
return Object.keys(s).reduce(function(e, t) {
|
|
10523
10523
|
return e[t] = r | s[t], e;
|
|
10524
10524
|
}, {});
|
|
10525
10525
|
}
|
|
10526
|
-
var z = zu(i_, c_), Kt = zu(a_, l_), ki = zu(s_, d_), Ti = zu(o_, h_), oa =
|
|
10526
|
+
var z = zu(i_, c_), Kt = zu(a_, l_), ki = zu(s_, d_), Ti = zu(o_, h_), oa = Jf(Wf, 16777216), bn = Jf(Wf, 50331648), kc = zu(u_, p_), v_ = Object.defineProperty, f_ = Object.getOwnPropertyDescriptor, ya = function(r, e, t, n) {
|
|
10527
10527
|
for (var i = n > 1 ? void 0 : n ? f_(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
10528
10528
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
10529
10529
|
return n && i && v_(e, t, i), i;
|
|
@@ -10636,7 +10636,7 @@ var z = zu(i_, c_), Kt = zu(a_, l_), ki = zu(s_, d_), Ti = zu(o_, h_), oa = Kf(J
|
|
|
10636
10636
|
case 0:
|
|
10637
10637
|
return d = { searchTerm: n, timeStamp: (a = i.timestamp) !== null && a !== void 0 ? a : Date.now(), size: (o = i.limit) !== null && o !== void 0 ? o : 75, from: (u = i.offset) !== null && u !== void 0 ? u : 0, reversed: (l = i.reversed) !== null && l !== void 0 ? l : !0 }, f.p = 1, f.n = 2, c(this, It)[It].sendMessagePromise(Kt.searchChannelMessages, JR.toBinary(d));
|
|
10638
10638
|
case 2:
|
|
10639
|
-
return p = f.v, f.a(2,
|
|
10639
|
+
return p = f.v, f.a(2, qf.fromBinary(p.payload).messages);
|
|
10640
10640
|
case 3:
|
|
10641
10641
|
return f.p = 3, v = f.v, f.a(2, []);
|
|
10642
10642
|
}
|
|
@@ -10724,7 +10724,7 @@ function Bn(s) {
|
|
|
10724
10724
|
});
|
|
10725
10725
|
var r = {};
|
|
10726
10726
|
return Object.keys(s).forEach(function(e) {
|
|
10727
|
-
var t =
|
|
10727
|
+
var t = pv(e) ? e : g_(e);
|
|
10728
10728
|
r[t] = Bn(s[e]);
|
|
10729
10729
|
}), r;
|
|
10730
10730
|
}
|
|
@@ -10733,23 +10733,25 @@ function m_(s) {
|
|
|
10733
10733
|
return "_".concat(r.toLowerCase());
|
|
10734
10734
|
});
|
|
10735
10735
|
}
|
|
10736
|
-
function
|
|
10736
|
+
function Kf(s) {
|
|
10737
10737
|
if (!s || me(s) !== "object")
|
|
10738
10738
|
return s;
|
|
10739
10739
|
if (Array.isArray(s))
|
|
10740
10740
|
return s.map(function(e) {
|
|
10741
|
-
return
|
|
10741
|
+
return Kf(e);
|
|
10742
10742
|
});
|
|
10743
10743
|
var r = {};
|
|
10744
10744
|
return Object.keys(s).forEach(function(e) {
|
|
10745
|
-
var t =
|
|
10745
|
+
var t = pv(e) ? e : m_(e);
|
|
10746
10746
|
r[t] = s[e];
|
|
10747
10747
|
}), r;
|
|
10748
10748
|
}
|
|
10749
10749
|
var dd = /* @__PURE__ */ function(s) {
|
|
10750
10750
|
function r(e) {
|
|
10751
10751
|
var t;
|
|
10752
|
-
|
|
10752
|
+
b(this, r);
|
|
10753
|
+
var n = e instanceof Error ? e.message : "Request failed with status ".concat(e.status);
|
|
10754
|
+
return t = C(this, r, [n]), t.status = void 0, t.response = void 0, t.isTimeout = void 0, e instanceof Error ? (t.stack = e.stack, t.isTimeout = e.name === "AbortError") : (t.status = e.status, t.response = e, t.isTimeout = !1), t.name = "RequestError", t;
|
|
10753
10755
|
}
|
|
10754
10756
|
return R(r, s), P(r, [{
|
|
10755
10757
|
key: "isHttpError",
|
|
@@ -11119,7 +11121,7 @@ var dd = /* @__PURE__ */ function(s) {
|
|
|
11119
11121
|
for (; ; )
|
|
11120
11122
|
switch (u.n) {
|
|
11121
11123
|
case 0:
|
|
11122
|
-
return u.n = 1, this.requests.post("/v2/recordings", N(N({},
|
|
11124
|
+
return u.n = 1, this.requests.post("/v2/recordings", N(N({}, Kf(i)), {}, { meeting_id: this.context.getValue("meetingId"), allow_multiple_recordings: !!a }));
|
|
11123
11125
|
case 1:
|
|
11124
11126
|
return o = u.v, u.a(2, o.data.data.id);
|
|
11125
11127
|
}
|
|
@@ -11957,7 +11959,7 @@ var I_ = Object.defineProperty, M_ = Object.getOwnPropertyDescriptor, O_ = funct
|
|
|
11957
11959
|
}
|
|
11958
11960
|
return a.a(2);
|
|
11959
11961
|
case 3:
|
|
11960
|
-
i =
|
|
11962
|
+
i = qf.fromBinary(n.payload).messages, this.chat.messages = i.map(function(o) {
|
|
11961
11963
|
return xi.formatSocketPeerMessage(o);
|
|
11962
11964
|
});
|
|
11963
11965
|
case 4:
|
|
@@ -12285,15 +12287,15 @@ var U_ = Object.defineProperty, j_ = Object.getOwnPropertyDescriptor, F_ = funct
|
|
|
12285
12287
|
});
|
|
12286
12288
|
return { anonymous: e.anonymous, createdBy: e.createdBy, createdByUserId: e.createdByUserId, hideVotes: e.hideVotes, id: e.pollId, options: t, question: e.question, voted: e.votes };
|
|
12287
12289
|
} }]);
|
|
12288
|
-
}()),
|
|
12289
|
-
F_([L.trace("PollController.setupEvents")],
|
|
12290
|
+
}()), zf = eo;
|
|
12291
|
+
F_([L.trace("PollController.setupEvents")], zf.prototype, "setupEvents", 1);
|
|
12290
12292
|
var H_ = Object.defineProperty, B_ = Object.getOwnPropertyDescriptor, q_ = function(r, e, t, n) {
|
|
12291
12293
|
for (var i = n > 1 ? void 0 : n ? B_(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
12292
12294
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
12293
12295
|
return n && i && H_(e, t, i), i;
|
|
12294
|
-
},
|
|
12296
|
+
}, Qf = /* @__PURE__ */ function(s) {
|
|
12295
12297
|
return s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s;
|
|
12296
|
-
}(
|
|
12298
|
+
}(Qf || {}), vd = (na = /* @__PURE__ */ E("context"), Fs = /* @__PURE__ */ E("connectionHandler"), On = /* @__PURE__ */ E("self"), Hs = /* @__PURE__ */ E("roomSocketHandler"), /* @__PURE__ */ function(s) {
|
|
12297
12299
|
function r(e, t, n, i, a) {
|
|
12298
12300
|
var o;
|
|
12299
12301
|
b(this, r);
|
|
@@ -12353,7 +12355,7 @@ function W_(s) {
|
|
|
12353
12355
|
}
|
|
12354
12356
|
return t;
|
|
12355
12357
|
}
|
|
12356
|
-
var J_ = Object.defineProperty, K_ = Object.getOwnPropertyDescriptor,
|
|
12358
|
+
var J_ = Object.defineProperty, K_ = Object.getOwnPropertyDescriptor, Yf = function(r, e, t, n) {
|
|
12357
12359
|
for (var i = n > 1 ? void 0 : n ? K_(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
12358
12360
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
12359
12361
|
return n && i && J_(e, t, i), i;
|
|
@@ -12475,13 +12477,13 @@ var J_ = Object.defineProperty, K_ = Object.getOwnPropertyDescriptor, Xf = funct
|
|
|
12475
12477
|
}).filter(Boolean) : [];
|
|
12476
12478
|
} }]);
|
|
12477
12479
|
}(Gr));
|
|
12478
|
-
|
|
12479
|
-
pa =
|
|
12480
|
+
Yf([L.trace("Ai.getActiveTranscript")], pa.prototype, "getActiveTranscript", 1);
|
|
12481
|
+
pa = Yf([ir("0000")], pa);
|
|
12480
12482
|
var z_ = Object.defineProperty, Q_ = Object.getOwnPropertyDescriptor, Y_ = function(r, e, t, n) {
|
|
12481
12483
|
for (var i = n > 1 ? void 0 : n ? Q_(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
12482
12484
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
12483
12485
|
return n && i && z_(e, t, i), i;
|
|
12484
|
-
},
|
|
12486
|
+
}, Xf = (zr = /* @__PURE__ */ E("self"), ji = /* @__PURE__ */ E("roomSocketHandler"), bt = /* @__PURE__ */ E("context"), /* @__PURE__ */ function() {
|
|
12485
12487
|
function s(r, e, t, n, i, a) {
|
|
12486
12488
|
b(this, s), this.meta = void 0, this.ai = void 0, Object.defineProperty(this, zr, { writable: !0, value: void 0 }), Object.defineProperty(this, ji, { writable: !0, value: void 0 }), this.aiSocketHandler = void 0, Object.defineProperty(this, bt, { writable: !0, value: void 0 }), c(this, bt)[bt] = r, this.meta = new vd(r, e, e.config.viewType, t, a), this.ai = n, c(this, zr)[zr] = e, c(this, ji)[ji] = t, this.aiSocketHandler = i, this.setupEvents();
|
|
12487
12489
|
}
|
|
@@ -12504,7 +12506,7 @@ var z_ = Object.defineProperty, Q_ = Object.getOwnPropertyDescriptor, Y_ = funct
|
|
|
12504
12506
|
return c(this, bt)[bt].getValue("logger");
|
|
12505
12507
|
} }, { key: "conditionallySetActiveTab", value: function(e) {
|
|
12506
12508
|
var t;
|
|
12507
|
-
e != null && e.currentTab && ((t = this.meta.selfActiveTab) === null || t === void 0 ? void 0 : t.id) !== e.currentTab.id && (this.meta.setSelfActiveTab(e.currentTab,
|
|
12509
|
+
e != null && e.currentTab && ((t = this.meta.selfActiveTab) === null || t === void 0 ? void 0 : t.id) !== e.currentTab.id && (this.meta.setSelfActiveTab(e.currentTab, Qf.Meeting), this.meta.emit("activeTabUpdate", e.currentTab));
|
|
12508
12510
|
} }, { key: "setupEvents", value: function() {
|
|
12509
12511
|
var e = this;
|
|
12510
12512
|
c(this, bt)[bt].getValue("peerSessionStore").on(V.TRANSPORT_STATE_UPDATE, function(t) {
|
|
@@ -12585,7 +12587,7 @@ var z_ = Object.defineProperty, Q_ = Object.getOwnPropertyDescriptor, Y_ = funct
|
|
|
12585
12587
|
case 0:
|
|
12586
12588
|
return d.n = 1, pa.init(n, i.permissions.transcriptionEnabled);
|
|
12587
12589
|
case 1:
|
|
12588
|
-
return l = d.v, d.a(2, new
|
|
12590
|
+
return l = d.v, d.a(2, new Xf(n, i, a, l, o, u));
|
|
12589
12591
|
}
|
|
12590
12592
|
}, t);
|
|
12591
12593
|
}));
|
|
@@ -12594,8 +12596,8 @@ var z_ = Object.defineProperty, Q_ = Object.getOwnPropertyDescriptor, Y_ = funct
|
|
|
12594
12596
|
}
|
|
12595
12597
|
return e;
|
|
12596
12598
|
}() }]);
|
|
12597
|
-
}()),
|
|
12598
|
-
Y_([L.trace("MetaController.setupEvents")],
|
|
12599
|
+
}()), Zf = Xf;
|
|
12600
|
+
Y_([L.trace("MetaController.setupEvents")], Zf.prototype, "setupEvents", 1);
|
|
12599
12601
|
var Lo = {}, Li = {
|
|
12600
12602
|
/**
|
|
12601
12603
|
* Lock a method to prevent concurrency
|
|
@@ -12999,7 +13001,7 @@ var rA = Object.defineProperty, nA = Object.getOwnPropertyDescriptor, iA = funct
|
|
|
12999
13001
|
for (var i = n > 1 ? void 0 : n ? nA(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
13000
13002
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
13001
13003
|
return n && i && rA(e, t, i), i;
|
|
13002
|
-
}, sn = /* @__PURE__ */ E("self"), Zt = /* @__PURE__ */ E("participants"), on = /* @__PURE__ */ E("stageSocketHandler"), $o = /* @__PURE__ */ E("stageRequestCount"), st = /* @__PURE__ */ E("context"),
|
|
13004
|
+
}, sn = /* @__PURE__ */ E("self"), Zt = /* @__PURE__ */ E("participants"), on = /* @__PURE__ */ E("stageSocketHandler"), $o = /* @__PURE__ */ E("stageRequestCount"), st = /* @__PURE__ */ E("context"), xf = /* @__PURE__ */ function() {
|
|
13003
13005
|
function s(r, e, t, n, i) {
|
|
13004
13006
|
b(this, s), this.stage = void 0, Object.defineProperty(this, sn, { writable: !0, value: void 0 }), Object.defineProperty(this, Zt, { writable: !0, value: void 0 }), Object.defineProperty(this, on, { writable: !0, value: void 0 }), Object.defineProperty(this, $o, { writable: !0, value: 0 }), Object.defineProperty(this, st, { writable: !0, value: void 0 }), c(this, st)[st] = r, this.stage = new ka(r, n, i, e, t), c(this, on)[on] = e, c(this, sn)[sn] = n, c(this, Zt)[Zt] = i, this.setupEvents();
|
|
13005
13007
|
}
|
|
@@ -13151,7 +13153,7 @@ var rA = Object.defineProperty, nA = Object.getOwnPropertyDescriptor, iA = funct
|
|
|
13151
13153
|
return e;
|
|
13152
13154
|
}() }]);
|
|
13153
13155
|
}();
|
|
13154
|
-
iA([L.trace("Stage.setupEvents")],
|
|
13156
|
+
iA([L.trace("Stage.setupEvents")], xf.prototype, "setupEvents", 1);
|
|
13155
13157
|
var aA = Object.defineProperty, sA = Object.getOwnPropertyDescriptor, _h = function(r, e, t, n) {
|
|
13156
13158
|
for (var i = n > 1 ? void 0 : n ? sA(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
13157
13159
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
@@ -13274,7 +13276,7 @@ var aA = Object.defineProperty, sA = Object.getOwnPropertyDescriptor, _h = funct
|
|
|
13274
13276
|
_h([L.trace("Plugin.activatePlugin")], Uu.prototype, "activate", 1);
|
|
13275
13277
|
_h([L.trace("Plugin.deactivatePlugin")], Uu.prototype, "deactivate", 1);
|
|
13276
13278
|
Uu = _h([ir("0600")], Uu);
|
|
13277
|
-
var Re = /* @__PURE__ */ E("eventEmitter"), Qn = /* @__PURE__ */ E("listeners"),
|
|
13279
|
+
var Re = /* @__PURE__ */ E("eventEmitter"), Qn = /* @__PURE__ */ E("listeners"), eg = /* @__PURE__ */ function(s) {
|
|
13278
13280
|
function r(e) {
|
|
13279
13281
|
var t, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0;
|
|
13280
13282
|
b(this, r);
|
|
@@ -13349,7 +13351,7 @@ var Re = /* @__PURE__ */ E("eventEmitter"), Qn = /* @__PURE__ */ E("listeners"),
|
|
|
13349
13351
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
13350
13352
|
return we(r, "delete", this, 3)([t, n, i]);
|
|
13351
13353
|
} }]);
|
|
13352
|
-
}(
|
|
13354
|
+
}(eg), oA = Object.defineProperty, uA = Object.getOwnPropertyDescriptor, cA = function(r, e, t, n) {
|
|
13353
13355
|
for (var i = n > 1 ? void 0 : n ? uA(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
13354
13356
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
13355
13357
|
return n && i && oA(e, t, i), i;
|
|
@@ -13361,7 +13363,7 @@ var lA = Object.defineProperty, dA = Object.getOwnPropertyDescriptor, hA = funct
|
|
|
13361
13363
|
for (var i = n > 1 ? void 0 : n ? dA(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
13362
13364
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
13363
13365
|
return n && i && lA(e, t, i), i;
|
|
13364
|
-
},
|
|
13366
|
+
}, tg = (Qt = /* @__PURE__ */ E("activePluginsStore"), ua = /* @__PURE__ */ E("storesManager"), Yr = /* @__PURE__ */ E("context"), Hn = /* @__PURE__ */ E("socketStateCleanup"), tc = /* @__PURE__ */ E("createStoreOnSocketConnected"), ao = /* @__PURE__ */ E("removeSocketStateListener"), so = /* @__PURE__ */ E("syncActivePlugins"), oo = /* @__PURE__ */ E("subscribeToStore"), /* @__PURE__ */ function() {
|
|
13365
13367
|
function s(r, e, t, n) {
|
|
13366
13368
|
b(this, s), Object.defineProperty(this, oo, { value: gA }), Object.defineProperty(this, so, { value: fA }), Object.defineProperty(this, ao, { value: vA }), Object.defineProperty(this, tc, { value: pA }), this.plugins = void 0, Object.defineProperty(this, Qt, { writable: !0, value: void 0 }), Object.defineProperty(this, ua, { writable: !0, value: void 0 }), Object.defineProperty(this, Yr, { writable: !0, value: void 0 }), Object.defineProperty(this, Hn, { writable: !0, value: null }), c(this, Yr)[Yr] = r, this.plugins = e, c(this, ua)[ua] = t, c(this, Qt)[Qt] = n, this.setupEvents();
|
|
13367
13369
|
}
|
|
@@ -13436,7 +13438,7 @@ var lA = Object.defineProperty, dA = Object.getOwnPropertyDescriptor, hA = funct
|
|
|
13436
13438
|
return i.forEach(function(g) {
|
|
13437
13439
|
var y = new Uu(n, g, p, a);
|
|
13438
13440
|
d.all.add(y);
|
|
13439
|
-
}), v = new
|
|
13441
|
+
}), v = new tg(n, d, o, p), p ? c(v, oo)[oo]() : c(v, tc)[tc](), f.a(2, v);
|
|
13440
13442
|
}
|
|
13441
13443
|
}, t);
|
|
13442
13444
|
}));
|
|
@@ -13539,8 +13541,8 @@ function gA() {
|
|
|
13539
13541
|
});
|
|
13540
13542
|
});
|
|
13541
13543
|
}
|
|
13542
|
-
var
|
|
13543
|
-
hA([L.trace("PluginController.setupEvents")],
|
|
13544
|
+
var rg = tg;
|
|
13545
|
+
hA([L.trace("PluginController.setupEvents")], rg.prototype, "setupEvents", 1);
|
|
13544
13546
|
var Uo = /* @__PURE__ */ E("context"), mA = /* @__PURE__ */ function() {
|
|
13545
13547
|
function s(r) {
|
|
13546
13548
|
b(this, s), this.mediaJoined = void 0, this.socketJoined = void 0, this.socketJoinAttempted = void 0, this.mediaJoinAttempted = void 0, this.socketState = void 0, this.mediaState = void 0, Object.defineProperty(this, Uo, { writable: !0, value: void 0 }), this.mediaJoined = !1, this.socketJoined = !1, this.socketJoinAttempted = !1, this.mediaJoinAttempted = !1, this.socketState = { state: void 0, reconnected: !1, reconnectionAttempt: void 0 }, this.mediaState = { recv: void 0, send: void 0 }, c(this, Uo)[Uo] = r;
|
|
@@ -13760,7 +13762,7 @@ var wA = Object.defineProperty, bA = Object.getOwnPropertyDescriptor, PA = funct
|
|
|
13760
13762
|
for (var i = n > 1 ? void 0 : n ? bA(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
13761
13763
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
13762
13764
|
return n && i && wA(e, t, i), i;
|
|
13763
|
-
}, Yn = /* @__PURE__ */ E("context"),
|
|
13765
|
+
}, Yn = /* @__PURE__ */ E("context"), ng = /* @__PURE__ */ function() {
|
|
13764
13766
|
function s(r, e, t) {
|
|
13765
13767
|
b(this, s), this.recording = void 0, this.room = void 0, Object.defineProperty(this, Yn, { writable: !0, value: void 0 }), c(this, Yn)[Yn] = r, this.recording = new Ms(r, e), this.room = t, this.setupEvents();
|
|
13766
13768
|
}
|
|
@@ -13826,7 +13828,7 @@ var wA = Object.defineProperty, bA = Object.getOwnPropertyDescriptor, PA = funct
|
|
|
13826
13828
|
});
|
|
13827
13829
|
} }]);
|
|
13828
13830
|
}();
|
|
13829
|
-
PA([L.trace("RecordingController.setupEvents")],
|
|
13831
|
+
PA([L.trace("RecordingController.setupEvents")], ng.prototype, "setupEvents", 1);
|
|
13830
13832
|
var Xn = /* @__PURE__ */ E("context"), SA = /* @__PURE__ */ function() {
|
|
13831
13833
|
function s(r) {
|
|
13832
13834
|
b(this, s), Object.defineProperty(this, Xn, { writable: !0, value: void 0 }), c(this, Xn)[Xn] = r;
|
|
@@ -13882,7 +13884,7 @@ var Xn = /* @__PURE__ */ E("context"), SA = /* @__PURE__ */ function() {
|
|
|
13882
13884
|
var n, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nc, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0;
|
|
13883
13885
|
b(this, r);
|
|
13884
13886
|
var o = e.getValue("logger");
|
|
13885
|
-
return n = C(this, r, [o]), Object.defineProperty(n, Ie, { writable: !0, value: void 0 }), Object.defineProperty(n, ve, { writable: !0, value: void 0 }), Object.defineProperty(n, pe, { writable: !0, value: void 0 }), Object.defineProperty(n, Ir, { writable: !0, value: void 0 }), Object.defineProperty(n, Bt, { writable: !0, value: void 0 }), Object.defineProperty(n, jo, { writable: !0, value: void 0 }), Object.defineProperty(n, Te, { writable: !0, value: void 0 }), n.audioUpdateInProgress = void 0, n.videoUpdateInProgress = void 0, c(n, Te)[Te] = e, n.audioUpdateInProgress = !1, n.videoUpdateInProgress = !1, c(n, Ie)[Ie] = new
|
|
13887
|
+
return n = C(this, r, [o]), Object.defineProperty(n, Ie, { writable: !0, value: void 0 }), Object.defineProperty(n, ve, { writable: !0, value: void 0 }), Object.defineProperty(n, pe, { writable: !0, value: void 0 }), Object.defineProperty(n, Ir, { writable: !0, value: void 0 }), Object.defineProperty(n, Bt, { writable: !0, value: void 0 }), Object.defineProperty(n, jo, { writable: !0, value: void 0 }), Object.defineProperty(n, Te, { writable: !0, value: void 0 }), n.audioUpdateInProgress = void 0, n.videoUpdateInProgress = void 0, c(n, Te)[Te] = e, n.audioUpdateInProgress = !1, n.videoUpdateInProgress = !1, c(n, Ie)[Ie] = new ig(e, t), c(n, ve)[ve] = new ZA(e, c(n, Ie)[Ie], void 0, i), c(n, pe)[pe] = new aI(e, c(n, Ie)[Ie], void 0, i), c(n, Bt)[Bt] = new rI(c(n, Te)[Te], c(n, Ie)[Ie]), c(n, Ir)[Ir] = new eI(e, c(n, Ie)[Ie]), c(n, jo)[jo] = a, c(n, ve)[ve].on("trackMuted", n.onAudioTrackMuted.bind(n)), c(n, ve)[ve].on("trackChanged", n.onAudioTrackChanged.bind(n)), c(n, pe)[pe].on("trackChanged", n.onVideoTrackChanged.bind(n)), c(n, pe)[pe].on("trackEnded", n.onVideoTrackEnded.bind(n)), c(n, Bt)[Bt].on("trackEnded", n.onScreenShareEnded.bind(n)), n.onVisibilityChange = n.onVisibilityChange.bind(n), document.addEventListener("visibilitychange", n.onVisibilityChange), n;
|
|
13886
13888
|
}
|
|
13887
13889
|
return R(r, s), P(r, [{ key: "telemetry", get: (
|
|
13888
13890
|
/**
|
|
@@ -15306,7 +15308,7 @@ _n([L.trace("WebMediaInterface.getAvailableDevicesByKind")], qr.prototype, "getA
|
|
|
15306
15308
|
_n([L.trace("WebMediaInterface.getDevice")], qr.prototype, "getDevice", 1);
|
|
15307
15309
|
_n([L.trace("WebMediaInterface.onDeviceChange")], qr.prototype, "onDeviceChange", 1);
|
|
15308
15310
|
qr = _n([ir("1600")], qr);
|
|
15309
|
-
var
|
|
15311
|
+
var ig = qr, Rs = { setItem: function(r, e, t) {
|
|
15310
15312
|
try {
|
|
15311
15313
|
localStorage.setItem(r, e);
|
|
15312
15314
|
} catch (n) {
|
|
@@ -15401,7 +15403,7 @@ function Td() {
|
|
|
15401
15403
|
}, s, null, [[1, 4, 5, 6]]);
|
|
15402
15404
|
})), Td.apply(this, arguments);
|
|
15403
15405
|
}
|
|
15404
|
-
var zA = Object.defineProperty, QA = Object.getOwnPropertyDescriptor,
|
|
15406
|
+
var zA = Object.defineProperty, QA = Object.getOwnPropertyDescriptor, ag = function(r, e, t, n) {
|
|
15405
15407
|
for (var i = n > 1 ? void 0 : n ? QA(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
15406
15408
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
15407
15409
|
return n && i && zA(e, t, i), i;
|
|
@@ -15696,9 +15698,9 @@ var zA = Object.defineProperty, QA = Object.getOwnPropertyDescriptor, sg = funct
|
|
|
15696
15698
|
this.mediaTrack && (this.logger.info("".concat(this.constructorName, ".removeMediaTrackListeners for deviceId ").concat((t = this.mediaTrack) === null || t === void 0 || (t = t.getSettings()) === null || t === void 0 ? void 0 : t.deviceId, " of type ").concat((n = this.mediaTrack) === null || n === void 0 ? void 0 : n.kind)), this.logger.info("".concat(this.constructorName, ".removeMediaTrackListeners")), this.mediaTrack.removeEventListener("ended", this.onTrackEnded), this.mediaTrack.removeEventListener("mute", this.onTrackMuted));
|
|
15697
15699
|
} }]);
|
|
15698
15700
|
}(wo);
|
|
15699
|
-
|
|
15700
|
-
Vc =
|
|
15701
|
-
var
|
|
15701
|
+
ag([L.trace("BaseMediaHandler.unmuteTrack")], Vc.prototype, "unmuteTrack", 1);
|
|
15702
|
+
Vc = ag([ir("1600")], Vc);
|
|
15703
|
+
var sg = Vc, YA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, Ah = function(r, e, t, n) {
|
|
15702
15704
|
for (var i = n > 1 ? void 0 : n ? XA(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
15703
15705
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
15704
15706
|
return n && i && YA(e, t, i), i;
|
|
@@ -15916,7 +15918,7 @@ var og = Vc, YA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, A
|
|
|
15916
15918
|
}
|
|
15917
15919
|
return t;
|
|
15918
15920
|
}() }]);
|
|
15919
|
-
}(
|
|
15921
|
+
}(sg);
|
|
15920
15922
|
Ah([L.trace("AudioMediaHandler.setTransformedTrack")], el.prototype, "setTransformedTrack", 1);
|
|
15921
15923
|
Ah([L.trace("AudioMediaHandler.onTrackEnded")], el.prototype, "onTrackEnded", 1);
|
|
15922
15924
|
Ah([L.trace("AudioMediaHandler.conditionallyChangeTrack")], el.prototype, "conditionallyChangeTrack", 1);
|
|
@@ -15957,7 +15959,7 @@ var ZA = el, ei = /* @__PURE__ */ E("mediaInterface"), xA = /* @__PURE__ */ func
|
|
|
15957
15959
|
for (; ; )
|
|
15958
15960
|
switch (y.n) {
|
|
15959
15961
|
case 0:
|
|
15960
|
-
if (l = i.saveDevicePreference, c(this, ei)[ei] instanceof
|
|
15962
|
+
if (l = i.saveDevicePreference, c(this, ei)[ei] instanceof ig) {
|
|
15961
15963
|
y.n = 1;
|
|
15962
15964
|
break;
|
|
15963
15965
|
}
|
|
@@ -16350,7 +16352,7 @@ var ZA = el, ei = /* @__PURE__ */ E("mediaInterface"), xA = /* @__PURE__ */ func
|
|
|
16350
16352
|
}
|
|
16351
16353
|
return t;
|
|
16352
16354
|
}() }]);
|
|
16353
|
-
}(
|
|
16355
|
+
}(sg);
|
|
16354
16356
|
tl([L.trace("VideoMediaHandler.setTransformedTrack")], Yu.prototype, "setTransformedTrack", 1);
|
|
16355
16357
|
tl([L.trace("VideoMediaHandler.setVideoMiddlewareGlobalConfig")], Yu.prototype, "setVideoMiddlewareGlobalConfig", 1);
|
|
16356
16358
|
tl([L.trace("VideoMediaHandler.onTrackEnded")], Yu.prototype, "onTrackEnded", 1);
|
|
@@ -16504,7 +16506,7 @@ var aI = Yu, xp = Bn(Ph()), ot = /* @__PURE__ */ E("config"), ti = /* @__PURE__
|
|
|
16504
16506
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
16505
16507
|
return !e || t ? new s(xp) : new s(e);
|
|
16506
16508
|
} }]);
|
|
16507
|
-
}(), oI = Object.defineProperty, uI = Object.getOwnPropertyDescriptor,
|
|
16509
|
+
}(), oI = Object.defineProperty, uI = Object.getOwnPropertyDescriptor, og = function(r, e, t, n) {
|
|
16508
16510
|
for (var i = n > 1 ? void 0 : n ? uI(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
16509
16511
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
16510
16512
|
return n && i && oI(e, t, i), i;
|
|
@@ -16596,13 +16598,13 @@ var aI = Yu, xp = Bn(Ph()), ot = /* @__PURE__ */ E("config"), ti = /* @__PURE__
|
|
|
16596
16598
|
return t;
|
|
16597
16599
|
}() }]);
|
|
16598
16600
|
}(Gr);
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
+
og([L.trace("livestream.start")], Ih.prototype, "start", 1);
|
|
16602
|
+
og([L.trace("livestream.stop")], Ih.prototype, "stop", 1);
|
|
16601
16603
|
var cI = Object.defineProperty, lI = Object.getOwnPropertyDescriptor, dI = function(r, e, t, n) {
|
|
16602
16604
|
for (var i = n > 1 ? void 0 : n ? lI(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
16603
16605
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
16604
16606
|
return n && i && cI(e, t, i), i;
|
|
16605
|
-
}, ts = /* @__PURE__ */ E("livestreamingPeerId"), rs = /* @__PURE__ */ E("self"), Mr = /* @__PURE__ */ E("livestreamSocketHandler"), or = /* @__PURE__ */ E("context"),
|
|
16607
|
+
}, ts = /* @__PURE__ */ E("livestreamingPeerId"), rs = /* @__PURE__ */ E("self"), Mr = /* @__PURE__ */ E("livestreamSocketHandler"), or = /* @__PURE__ */ E("context"), ug = /* @__PURE__ */ function() {
|
|
16606
16608
|
function s(r, e, t) {
|
|
16607
16609
|
b(this, s), this.livestream = void 0, Object.defineProperty(this, ts, { writable: !0, value: void 0 }), Object.defineProperty(this, rs, { writable: !0, value: void 0 }), Object.defineProperty(this, Mr, { writable: !0, value: void 0 }), Object.defineProperty(this, or, { writable: !0, value: void 0 }), c(this, or)[or] = r, c(this, rs)[rs] = e, this.livestream = new Ih(r, e), c(this, Mr)[Mr] = t, this.setupEvents();
|
|
16608
16610
|
}
|
|
@@ -16765,7 +16767,7 @@ var cI = Object.defineProperty, lI = Object.getOwnPropertyDescriptor, dI = funct
|
|
|
16765
16767
|
})));
|
|
16766
16768
|
} }]);
|
|
16767
16769
|
}();
|
|
16768
|
-
dI([L.trace("LivestreamController.setupEvents")],
|
|
16770
|
+
dI([L.trace("LivestreamController.setupEvents")], ug.prototype, "setupEvents", 1);
|
|
16769
16771
|
var hI = Object.defineProperty, pI = Object.getOwnPropertyDescriptor, Xu = function(r, e, t, n) {
|
|
16770
16772
|
for (var i = n > 1 ? void 0 : n ? pI(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
16771
16773
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
@@ -17474,7 +17476,7 @@ var Wo = /* @__PURE__ */ function(s) {
|
|
|
17474
17476
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
17475
17477
|
return we(r, "delete", this, 3)([t, n, i]);
|
|
17476
17478
|
} }]);
|
|
17477
|
-
}(
|
|
17479
|
+
}(eg), ln = /* @__PURE__ */ E("map"), II = /* @__PURE__ */ function(s) {
|
|
17478
17480
|
function r(e) {
|
|
17479
17481
|
var t;
|
|
17480
17482
|
return b(this, r), t = C(this, r, [e]), Object.defineProperty(t, ln, { writable: !0, value: void 0 }), c(t, ln)[ln] = /* @__PURE__ */ new Map(), t;
|
|
@@ -17552,7 +17554,7 @@ var Wo = /* @__PURE__ */ function(s) {
|
|
|
17552
17554
|
}, { key: "_removeFromCompulsoryPeer", value: function(e) {
|
|
17553
17555
|
this._compulsoryPeers.delete(e);
|
|
17554
17556
|
} }]);
|
|
17555
|
-
}(),
|
|
17557
|
+
}(), cg = new OI(), DI = Object.defineProperty, LI = Object.getOwnPropertyDescriptor, Kn = function(r, e, t, n) {
|
|
17556
17558
|
for (var i = n > 1 ? void 0 : n ? LI(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
17557
17559
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
17558
17560
|
return n && i && DI(e, t, i), i;
|
|
@@ -17561,7 +17563,7 @@ var Wo = /* @__PURE__ */ function(s) {
|
|
|
17561
17563
|
var i;
|
|
17562
17564
|
b(this, r);
|
|
17563
17565
|
var a = e.getValue("logger");
|
|
17564
|
-
return i = C(this, r, [a]), Object.defineProperty(i, Wi, { get: UI, set: void 0 }), Object.defineProperty(i, Un, { get: $I, set: void 0 }), Object.defineProperty(i, Ks, { get: VI, set: void 0 }), i.waitlisted = void 0, i.joined = void 0, i.active = void 0, i.videoSubscribed = void 0, i.audioSubscribed = void 0, i.pinned = void 0, i.all = void 0, Object.defineProperty(i, ye, { writable: !0, value: void 0 }), Object.defineProperty(i, jn, { writable: !0, value: void 0 }), Object.defineProperty(i, ft, { writable: !0, value: void 0 }), i.rateLimitConfig = { maxInvocations: 5, period: 1 }, i.viewMode = void 0, i.currentPage = void 0, i.lastActiveSpeaker = void 0, i.selectedPeers =
|
|
17566
|
+
return i = C(this, r, [a]), Object.defineProperty(i, Wi, { get: UI, set: void 0 }), Object.defineProperty(i, Un, { get: $I, set: void 0 }), Object.defineProperty(i, Ks, { get: VI, set: void 0 }), i.waitlisted = void 0, i.joined = void 0, i.active = void 0, i.videoSubscribed = void 0, i.audioSubscribed = void 0, i.pinned = void 0, i.all = void 0, Object.defineProperty(i, ye, { writable: !0, value: void 0 }), Object.defineProperty(i, jn, { writable: !0, value: void 0 }), Object.defineProperty(i, ft, { writable: !0, value: void 0 }), i.rateLimitConfig = { maxInvocations: 5, period: 1 }, i.viewMode = void 0, i.currentPage = void 0, i.lastActiveSpeaker = void 0, i.selectedPeers = cg, c(i, ye)[ye] = e, c(i, jn)[jn] = t, c(i, ft)[ft] = n, i.waitlisted = new Wo(a), i.joined = new Wo(a), i.videoSubscribed = new Wo(a), i.audioSubscribed = new Wo(a), i.active = i.videoSubscribed, i.pinned = new Wo(a), i.all = new II(a), i.viewMode = "ACTIVE_GRID", i.currentPage = 0, i.setupEvents(), i;
|
|
17565
17567
|
}
|
|
17566
17568
|
return R(r, s), P(r, [{ key: "pip", get: (
|
|
17567
17569
|
/**
|
|
@@ -18063,10 +18065,10 @@ var jI = Object.defineProperty, FI = Object.getOwnPropertyDescriptor, $s = funct
|
|
|
18063
18065
|
for (var i = n > 1 ? void 0 : n ? FI(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
18064
18066
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
18065
18067
|
return n && i && jI(e, t, i), i;
|
|
18066
|
-
},
|
|
18068
|
+
}, lg = ($t = /* @__PURE__ */ E("currentView"), Wt = /* @__PURE__ */ E("consumersSyncing"), Ji = /* @__PURE__ */ E("resyncRequired"), /* @__PURE__ */ function() {
|
|
18067
18069
|
function s(r, e, t) {
|
|
18068
18070
|
var n = this;
|
|
18069
|
-
b(this, s), this.participants = void 0, this.self = void 0, this.selectedPeers =
|
|
18071
|
+
b(this, s), this.participants = void 0, this.self = void 0, this.selectedPeers = cg, this.maxSpatialLayerUpdates = /* @__PURE__ */ new Map(), this.consumerPeerMap = void 0, this.events = void 0, this.roomSocketHandler = void 0, this.context = void 0, this.videoPeerConsumerMap = /* @__PURE__ */ new Map(), Object.defineProperty(this, $t, { writable: !0, value: { mode: "ACTIVE_GRID", page: 0 } }), Object.defineProperty(this, Wt, { writable: !0, value: !1 }), Object.defineProperty(this, Ji, { writable: !0, value: !1 }), this.updateConsumerSpatialLayers = wh(function() {
|
|
18070
18072
|
var i = {}, a = new Map(n.maxSpatialLayerUpdates);
|
|
18071
18073
|
n.maxSpatialLayerUpdates.clear(), Array.from(a.entries()).forEach(function(o) {
|
|
18072
18074
|
var u = Ne(o, 2), l = u[0], d = u[1];
|
|
@@ -18443,7 +18445,7 @@ var jI = Object.defineProperty, FI = Object.getOwnPropertyDescriptor, $s = funct
|
|
|
18443
18445
|
});
|
|
18444
18446
|
n.push.apply(n, _e(i != null ? i : [])), n.length > 0 && this.updateActiveParticipantsWithPriorities(n);
|
|
18445
18447
|
} }, { key: "createParticipantObjFromSocketPeer", value: function(e) {
|
|
18446
|
-
var t =
|
|
18448
|
+
var t = lg.formatSocketPeerMessage(e);
|
|
18447
18449
|
return new Ai(this.context, N(N({}, t), {}, { isHost: !1, videoEnabled: !1, audioMuted: !0, videoTrack: void 0, audioTrack: void 0 }), this.self, this.roomSocketHandler);
|
|
18448
18450
|
} }, {
|
|
18449
18451
|
key: "updatePipSource",
|
|
@@ -18805,7 +18807,7 @@ var jI = Object.defineProperty, FI = Object.getOwnPropertyDescriptor, $s = funct
|
|
|
18805
18807
|
return { id: e.peerId, userId: e.userId, name: e.displayName, displayName: e.displayName, stageType: l, customParticipantId: e.customParticipantId, presetId: e.presetId, picture: e.displayPictureUrl, waitlisted: e.waitlisted, stageStatus: l, metadata: { preset_name: (t = e.flags) === null || t === void 0 ? void 0 : t.presetName }, recorderType: (n = e.flags) === null || n === void 0 ? void 0 : n.recorderType, flags: { hiddenParticipant: (i = e.flags) === null || i === void 0 ? void 0 : i.hiddenParticipant, hidden_participant: (a = e.flags) === null || a === void 0 ? void 0 : a.hiddenParticipant, recorder: ((o = e.flags) === null || o === void 0 ? void 0 : o.recorderType) !== void 0 && ((u = e.flags) === null || u === void 0 ? void 0 : u.recorderType) !== "NONE" } };
|
|
18806
18808
|
}
|
|
18807
18809
|
} }]);
|
|
18808
|
-
}()), Ni =
|
|
18810
|
+
}()), Ni = lg;
|
|
18809
18811
|
$s([L.trace("ParticipantController.setupEvents")], Ni.prototype, "setupEvents", 1);
|
|
18810
18812
|
$s([L.trace("ParticipantController.setupEvents")], Ni.prototype, "setupEventsGlobal", 1);
|
|
18811
18813
|
$s([L.trace("ParticipantController.processMedia")], Ni.prototype, "processMedia", 1);
|
|
@@ -18819,7 +18821,7 @@ var Pt = Bn(Ph().permissions), G = /* @__PURE__ */ E("permissions"), ns = /* @__
|
|
|
18819
18821
|
b(this, r);
|
|
18820
18822
|
var o = e.getValue("logger");
|
|
18821
18823
|
if (i = C(this, r, [o]), Object.defineProperty(i, ut, { get: BI, set: void 0 }), Object.defineProperty(i, G, { writable: !0, value: void 0 }), Object.defineProperty(i, ns, { writable: !0, value: void 0 }), Object.defineProperty(i, gs, { writable: !0, value: void 0 }), Object.defineProperty(i, Al, { writable: !0, value: function(l) {
|
|
18822
|
-
var d = l.chat, p = l.connectedMeetings, v = l.plugins, f = l.polls, g = l.media, y = nh(l,
|
|
18824
|
+
var d = l.chat, p = l.connectedMeetings, v = l.plugins, f = l.polls, g = l.media, y = nh(l, Lg);
|
|
18823
18825
|
if (d && (d.private && Zi(c(i, G)[G].chat.private, d.private), d.public && Zi(c(i, G)[G].chat.public, d.public), i.emit("chatUpdate")), p && Zi(c(i, G)[G].connectedMeetings, p), g) {
|
|
18824
18826
|
var k, w, T, S = function(_) {
|
|
18825
18827
|
switch (_) {
|
|
@@ -19142,7 +19144,7 @@ var Pt = Bn(Ph().permissions), G = /* @__PURE__ */ E("permissions"), ns = /* @__
|
|
|
19142
19144
|
function BI() {
|
|
19143
19145
|
return c(this, gs)[gs].getValue("stageStatus");
|
|
19144
19146
|
}
|
|
19145
|
-
var Mt = /* @__PURE__ */ E("context"),
|
|
19147
|
+
var Mt = /* @__PURE__ */ E("context"), dg = /* @__PURE__ */ function(s) {
|
|
19146
19148
|
function r(e, t) {
|
|
19147
19149
|
var n;
|
|
19148
19150
|
return b(this, r), n = C(this, r, [t]), n.localMediaHandler = void 0, Object.defineProperty(n, Mt, { writable: !0, value: void 0 }), c(n, Mt)[Mt] = e, n;
|
|
@@ -20548,7 +20550,7 @@ var Mt = /* @__PURE__ */ E("context"), hg = /* @__PURE__ */ function(s) {
|
|
|
20548
20550
|
}
|
|
20549
20551
|
return t;
|
|
20550
20552
|
}() }]);
|
|
20551
|
-
}(
|
|
20553
|
+
}(dg));
|
|
20552
20554
|
function WI() {
|
|
20553
20555
|
return c(this, De)[De].getValue("pip");
|
|
20554
20556
|
}
|
|
@@ -20726,7 +20728,7 @@ var bd = /* @__PURE__ */ function(s) {
|
|
|
20726
20728
|
return setTimeout(e, r);
|
|
20727
20729
|
});
|
|
20728
20730
|
};
|
|
20729
|
-
function
|
|
20731
|
+
function hg(s, r) {
|
|
20730
20732
|
return Pd.apply(this, arguments);
|
|
20731
20733
|
}
|
|
20732
20734
|
function Pd() {
|
|
@@ -20857,7 +20859,7 @@ var Ve = /* @__PURE__ */ E("socket"), rM = /* @__PURE__ */ function() {
|
|
|
20857
20859
|
case 0:
|
|
20858
20860
|
return p.n = 1, c(this, Ve)[Ve].sendMessagePromise(this.events.createWebRTCTransport, wP.toBinary(n));
|
|
20859
20861
|
case 1:
|
|
20860
|
-
return i = p.v.payload, a =
|
|
20862
|
+
return i = p.v.payload, a = Of.fromBinary(i), o = a.transportId, u = a.description, l = a.producerIds, d = { sdp: u == null ? void 0 : u.sdp, type: u.type }, p.a(2, { transportId: o, answer: d, producerIds: l });
|
|
20861
20863
|
}
|
|
20862
20864
|
}, t, this);
|
|
20863
20865
|
}));
|
|
@@ -21014,7 +21016,7 @@ var Ve = /* @__PURE__ */ E("socket"), rM = /* @__PURE__ */ function() {
|
|
|
21014
21016
|
* Does not use mediaEventSlugs is the same irrespective of the SFU
|
|
21015
21017
|
*/
|
|
21016
21018
|
z.kickAll,
|
|
21017
|
-
|
|
21019
|
+
Vf.toBinary(n)
|
|
21018
21020
|
);
|
|
21019
21021
|
case 1:
|
|
21020
21022
|
return i.a(2);
|
|
@@ -21036,7 +21038,7 @@ var Ve = /* @__PURE__ */ E("socket"), rM = /* @__PURE__ */ function() {
|
|
|
21036
21038
|
* Does not use mediaEventSlugs is the same irrespective of the SFU
|
|
21037
21039
|
*/
|
|
21038
21040
|
z.kick,
|
|
21039
|
-
|
|
21041
|
+
Hf.toBinary(n)
|
|
21040
21042
|
);
|
|
21041
21043
|
case 1:
|
|
21042
21044
|
return i.a(2);
|
|
@@ -22105,7 +22107,7 @@ var xt = /* @__PURE__ */ E("handler"), is = /* @__PURE__ */ E("stopTracks"), as
|
|
|
22105
22107
|
function hM() {
|
|
22106
22108
|
return { producer: { id: this.id, appData: this.appData, kind: this.kind } };
|
|
22107
22109
|
}
|
|
22108
|
-
function
|
|
22110
|
+
function pg(s) {
|
|
22109
22111
|
return me(s) === "object" && !Array.isArray(s) && s !== null;
|
|
22110
22112
|
}
|
|
22111
22113
|
function Oh(s) {
|
|
@@ -22117,7 +22119,7 @@ function rv(s) {
|
|
|
22117
22119
|
return delete r.payload._bolt, r;
|
|
22118
22120
|
}
|
|
22119
22121
|
function pM(s) {
|
|
22120
|
-
return s.payload &&
|
|
22122
|
+
return s.payload && pg(s.payload);
|
|
22121
22123
|
}
|
|
22122
22124
|
function vM(s) {
|
|
22123
22125
|
var r, e;
|
|
@@ -22179,7 +22181,7 @@ var hn = /* @__PURE__ */ E("datachannelCache"), Ll = /* @__PURE__ */ E("context"
|
|
|
22179
22181
|
}, "");
|
|
22180
22182
|
c(a, hn)[hn].delete(o.id);
|
|
22181
22183
|
var v = JSON.parse(p);
|
|
22182
|
-
if (!v.payload || !
|
|
22184
|
+
if (!v.payload || !pg(v.payload))
|
|
22183
22185
|
throw new Error("corrupted incoming message over dc", { cause: { code: "CORRUPT_DC_MESSAGE", values: v } });
|
|
22184
22186
|
if (a.processBoltHandshake(v))
|
|
22185
22187
|
return;
|
|
@@ -22822,7 +22824,7 @@ function gM(s) {
|
|
|
22822
22824
|
return s.debug("Device::this._detectDevice() | ReactNative handler chosen"), "Chrome74";
|
|
22823
22825
|
}
|
|
22824
22826
|
if ((typeof navigator == "undefined" ? "undefined" : me(navigator)) === "object" && typeof navigator.userAgent == "string") {
|
|
22825
|
-
var r = navigator.userAgent, e =
|
|
22827
|
+
var r = navigator.userAgent, e = vv.getParser(r), t = e.getEngine();
|
|
22826
22828
|
if (e.satisfies({ chrome: ">=74", chromium: ">=74", "microsoft edge": ">=88" }))
|
|
22827
22829
|
return "Chrome74";
|
|
22828
22830
|
if (e.satisfies({ chrome: ">=55", chromium: ">=55" }))
|
|
@@ -23016,7 +23018,7 @@ function Id() {
|
|
|
23016
23018
|
for (; ; )
|
|
23017
23019
|
switch (u.p = u.n) {
|
|
23018
23020
|
case 0:
|
|
23019
|
-
return t = r.id, n = r.serverId, i = r.direction, c(this, Rd)[Rd](r), u.p = 1, a = 15, u.n = 2,
|
|
23021
|
+
return t = r.id, n = r.serverId, i = r.direction, c(this, Rd)[Rd](r), u.p = 1, a = 15, u.n = 2, hg(/* @__PURE__ */ function() {
|
|
23020
23022
|
var l = m(/* @__PURE__ */ h().m(function d(p, v) {
|
|
23021
23023
|
var f;
|
|
23022
23024
|
return h().w(function(g) {
|
|
@@ -25033,7 +25035,7 @@ function Qd() {
|
|
|
25033
25035
|
for (; ; )
|
|
25034
25036
|
switch (a.n) {
|
|
25035
25037
|
case 0:
|
|
25036
|
-
return a.n = 1,
|
|
25038
|
+
return a.n = 1, hg(/* @__PURE__ */ function() {
|
|
25037
25039
|
var o = m(/* @__PURE__ */ h().m(function u(l, d) {
|
|
25038
25040
|
var p;
|
|
25039
25041
|
return h().w(function(v) {
|
|
@@ -25110,7 +25112,7 @@ Qe([L.trace("MediaNodeClient.disableAudio")], Ge.prototype, "disableAudio", 1);
|
|
|
25110
25112
|
Qe([L.trace("MediaNodeClient.disableVideo")], Ge.prototype, "disableVideo", 1);
|
|
25111
25113
|
Qe([L.trace("MediaNodeClient.pinPeer")], Ge.prototype, "pinPeer", 1);
|
|
25112
25114
|
Qe([L.trace("MediaNodeClient.validateScreenShare")], Ge.prototype, "validateScreenShare", 1);
|
|
25113
|
-
function
|
|
25115
|
+
function vg(s, r) {
|
|
25114
25116
|
var e = s.getValue("roomNodeClient");
|
|
25115
25117
|
if (e) {
|
|
25116
25118
|
if (e)
|
|
@@ -25133,7 +25135,7 @@ var dO = Object.defineProperty, hO = Object.getOwnPropertyDescriptor, Us = funct
|
|
|
25133
25135
|
for (var i = n > 1 ? void 0 : n ? hO(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
25134
25136
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
25135
25137
|
return n && i && dO(e, t, i), i;
|
|
25136
|
-
},
|
|
25138
|
+
}, fg = (Yi = /* @__PURE__ */ E("socketService"), Jt = /* @__PURE__ */ E("roomSocketHandler"), Y = /* @__PURE__ */ E("context"), gt = /* @__PURE__ */ E("roomNodeClient"), /* @__PURE__ */ function() {
|
|
25137
25139
|
function s(r, e, t, n) {
|
|
25138
25140
|
b(this, s), Object.defineProperty(this, gt, { get: pO, set: void 0 }), this.self = void 0, this.authToken = void 0, Object.defineProperty(this, Yi, { writable: !0, value: void 0 }), this.viewType = void 0, Object.defineProperty(this, Jt, { writable: !0, value: void 0 }), Object.defineProperty(this, Y, { writable: !0, value: void 0 });
|
|
25139
25141
|
var i = t.socket, a = r.getValue("authToken");
|
|
@@ -25467,7 +25469,7 @@ var dO = Object.defineProperty, hO = Object.getOwnPropertyDescriptor, Us = funct
|
|
|
25467
25469
|
}
|
|
25468
25470
|
return this.self.roomState = "joined", this.self.emit("roomJoined", { reconnected: n }), D.a(2);
|
|
25469
25471
|
case 2:
|
|
25470
|
-
|
|
25472
|
+
vg(c(this, Y)[Y], { socket: c(this, Yi)[Yi], peerId: a });
|
|
25471
25473
|
case 3:
|
|
25472
25474
|
return v = this.self.permissions, f = v.canProduceAudio, g = v.canProduceVideo, y = v.canProduceScreenshare, D.n = 4, (p = c(this, gt)[gt]) === null || p === void 0 ? void 0 : p.joinRoom(this.self.name, u, n, { canProduceAudio: f, canProduceVideo: g, canProduceScreenshare: y });
|
|
25473
25475
|
case 4:
|
|
@@ -25615,7 +25617,7 @@ var dO = Object.defineProperty, hO = Object.getOwnPropertyDescriptor, Us = funct
|
|
|
25615
25617
|
return F.a(2);
|
|
25616
25618
|
}
|
|
25617
25619
|
}, k, null, [[2, 5]]);
|
|
25618
|
-
})), 0)) : f.info("Callstats:: Skipped initialization due to navigator product being ReactNative."), y.a(2, new
|
|
25620
|
+
})), 0)) : f.info("Callstats:: Skipped initialization due to navigator product being ReactNative."), y.a(2, new fg(n, v, i, u.viewType));
|
|
25619
25621
|
}
|
|
25620
25622
|
}, t);
|
|
25621
25623
|
}));
|
|
@@ -25628,7 +25630,7 @@ var dO = Object.defineProperty, hO = Object.getOwnPropertyDescriptor, Us = funct
|
|
|
25628
25630
|
function pO() {
|
|
25629
25631
|
return c(this, Y)[Y].getValue("roomNodeClient");
|
|
25630
25632
|
}
|
|
25631
|
-
var Ta =
|
|
25633
|
+
var Ta = fg;
|
|
25632
25634
|
Us([L.trace("SelfController.resetSelf")], Ta.prototype, "resetSelf", 1);
|
|
25633
25635
|
Us([L.trace("SelfController.setupEvents")], Ta.prototype, "setupEvents", 1);
|
|
25634
25636
|
Us([L.trace("SelfController.joinRoom")], Ta.prototype, "joinRoom", 1);
|
|
@@ -25747,7 +25749,7 @@ var yO = Object.defineProperty, kO = Object.getOwnPropertyDescriptor, TO = funct
|
|
|
25747
25749
|
for (var i = n > 1 ? void 0 : n ? kO(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
25748
25750
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
25749
25751
|
return n && i && yO(e, t, i), i;
|
|
25750
|
-
}, Dt = /* @__PURE__ */ E("context"),
|
|
25752
|
+
}, Dt = /* @__PURE__ */ E("context"), gg = /* @__PURE__ */ function() {
|
|
25751
25753
|
function s(r, e) {
|
|
25752
25754
|
b(this, s), this.socket = void 0, Object.defineProperty(this, Dt, { writable: !0, value: void 0 }), c(this, Dt)[Dt] = r, this.socket = e, this.handleSocketEvents(), c(this, Dt)[Dt].setValue("roomSocketHandler", this);
|
|
25753
25755
|
}
|
|
@@ -25808,7 +25810,7 @@ var yO = Object.defineProperty, kO = Object.getOwnPropertyDescriptor, TO = funct
|
|
|
25808
25810
|
return o.p = 0, i = MC, o.n = 1, this.socket.sendMessagePromise(z.getAllAddedParticipants);
|
|
25809
25811
|
case 1:
|
|
25810
25812
|
return n = i.fromBinary.call(i, o.v.payload), o.a(2, n.participants.map(function(u) {
|
|
25811
|
-
var l = u.id, d = nh(u,
|
|
25813
|
+
var l = u.id, d = nh(u, Ng);
|
|
25812
25814
|
return N(N({}, d), {}, { userId: l });
|
|
25813
25815
|
}));
|
|
25814
25816
|
case 2:
|
|
@@ -25905,7 +25907,7 @@ var yO = Object.defineProperty, kO = Object.getOwnPropertyDescriptor, TO = funct
|
|
|
25905
25907
|
for (; ; )
|
|
25906
25908
|
switch (u.p = u.n) {
|
|
25907
25909
|
case 0:
|
|
25908
|
-
return u.p = 0, u.n = 1, this.socket.sendMessagePromise(z.getPeerInfo,
|
|
25910
|
+
return u.p = 0, u.n = 1, this.socket.sendMessagePromise(z.getPeerInfo, jf.toBinary({ peerId: n }));
|
|
25909
25911
|
case 1:
|
|
25910
25912
|
a = u.v, i = xs.fromBinary(a.payload), u.n = 3;
|
|
25911
25913
|
break;
|
|
@@ -26054,7 +26056,7 @@ var yO = Object.defineProperty, kO = Object.getOwnPropertyDescriptor, TO = funct
|
|
|
26054
26056
|
for (; ; )
|
|
26055
26057
|
switch (a.n) {
|
|
26056
26058
|
case 0:
|
|
26057
|
-
i = { peerIds: [n] }, this.socket.sendMessage(z.kick,
|
|
26059
|
+
i = { peerIds: [n] }, this.socket.sendMessage(z.kick, Hf.toBinary(i));
|
|
26058
26060
|
case 1:
|
|
26059
26061
|
return a.a(2);
|
|
26060
26062
|
}
|
|
@@ -26071,7 +26073,7 @@ var yO = Object.defineProperty, kO = Object.getOwnPropertyDescriptor, TO = funct
|
|
|
26071
26073
|
for (; ; )
|
|
26072
26074
|
switch (o.n) {
|
|
26073
26075
|
case 0:
|
|
26074
|
-
n = a.length > 0 && a[0] !== void 0 ? a[0] : !1, i = { propagateKickAcrossRooms: n }, this.socket.sendMessage(z.kickAll,
|
|
26076
|
+
n = a.length > 0 && a[0] !== void 0 ? a[0] : !1, i = { propagateKickAcrossRooms: n }, this.socket.sendMessage(z.kickAll, Vf.toBinary(i));
|
|
26075
26077
|
case 1:
|
|
26076
26078
|
return o.a(2);
|
|
26077
26079
|
}
|
|
@@ -26216,7 +26218,7 @@ var yO = Object.defineProperty, kO = Object.getOwnPropertyDescriptor, TO = funct
|
|
|
26216
26218
|
return e;
|
|
26217
26219
|
}() }]);
|
|
26218
26220
|
}();
|
|
26219
|
-
TO([L.trace("RoomSocketHandler.joinRoom")],
|
|
26221
|
+
TO([L.trace("RoomSocketHandler.joinRoom")], gg.prototype, "joinRoom", 1);
|
|
26220
26222
|
var kt = /* @__PURE__ */ E("socket"), wO = /* @__PURE__ */ function() {
|
|
26221
26223
|
function s(r) {
|
|
26222
26224
|
b(this, s), Object.defineProperty(this, kt, { writable: !0, value: void 0 }), c(this, kt)[kt] = r;
|
|
@@ -26321,7 +26323,7 @@ var kt = /* @__PURE__ */ E("socket"), wO = /* @__PURE__ */ function() {
|
|
|
26321
26323
|
for (; ; )
|
|
26322
26324
|
switch (a.n) {
|
|
26323
26325
|
case 0:
|
|
26324
|
-
return a.n = 1, c(this, kt)[kt].sendMessagePromise(z.getPeerInfo,
|
|
26326
|
+
return a.n = 1, c(this, kt)[kt].sendMessagePromise(z.getPeerInfo, jf.toBinary({ peerId: n }));
|
|
26325
26327
|
case 1:
|
|
26326
26328
|
return i = a.v, a.a(2, xs.fromBinary(i.payload));
|
|
26327
26329
|
}
|
|
@@ -26401,7 +26403,7 @@ ho && typeof ho.ownKeys == "function" ? wc = ho.ownKeys : Object.getOwnPropertyS
|
|
|
26401
26403
|
function RO(s) {
|
|
26402
26404
|
console && console.warn && console.warn(s);
|
|
26403
26405
|
}
|
|
26404
|
-
var
|
|
26406
|
+
var mg = Number.isNaN || function(s) {
|
|
26405
26407
|
return s !== s;
|
|
26406
26408
|
};
|
|
26407
26409
|
function ze() {
|
|
@@ -26421,7 +26423,7 @@ function sl(s) {
|
|
|
26421
26423
|
Object.defineProperty(ze, "defaultMaxListeners", { enumerable: !0, get: function() {
|
|
26422
26424
|
return sv;
|
|
26423
26425
|
}, set: function(r) {
|
|
26424
|
-
if (typeof r != "number" || r < 0 ||
|
|
26426
|
+
if (typeof r != "number" || r < 0 || mg(r))
|
|
26425
26427
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + r + ".");
|
|
26426
26428
|
sv = r;
|
|
26427
26429
|
} });
|
|
@@ -26429,15 +26431,15 @@ ze.init = function() {
|
|
|
26429
26431
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
26430
26432
|
};
|
|
26431
26433
|
ze.prototype.setMaxListeners = function(s) {
|
|
26432
|
-
if (typeof s != "number" || s < 0 ||
|
|
26434
|
+
if (typeof s != "number" || s < 0 || mg(s))
|
|
26433
26435
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + s + ".");
|
|
26434
26436
|
return this._maxListeners = s, this;
|
|
26435
26437
|
};
|
|
26436
|
-
function
|
|
26438
|
+
function yg(s) {
|
|
26437
26439
|
return s._maxListeners === void 0 ? ze.defaultMaxListeners : s._maxListeners;
|
|
26438
26440
|
}
|
|
26439
26441
|
ze.prototype.getMaxListeners = function() {
|
|
26440
|
-
return
|
|
26442
|
+
return yg(this);
|
|
26441
26443
|
};
|
|
26442
26444
|
ze.prototype.emit = function(s) {
|
|
26443
26445
|
for (var r = [], e = 1; e < arguments.length; e++)
|
|
@@ -26460,15 +26462,15 @@ ze.prototype.emit = function(s) {
|
|
|
26460
26462
|
if (typeof o == "function")
|
|
26461
26463
|
av(o, this, r);
|
|
26462
26464
|
else
|
|
26463
|
-
for (var u = o.length, l =
|
|
26465
|
+
for (var u = o.length, l = Pg(o, u), e = 0; e < u; ++e)
|
|
26464
26466
|
av(l[e], this, r);
|
|
26465
26467
|
return !0;
|
|
26466
26468
|
};
|
|
26467
|
-
function
|
|
26469
|
+
function kg(s, r, e, t) {
|
|
26468
26470
|
var n, i, a;
|
|
26469
26471
|
if (sl(e), i = s._events, i === void 0 ? (i = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (i.newListener !== void 0 && (s.emit("newListener", r, e.listener ? e.listener : e), i = s._events), a = i[r]), a === void 0)
|
|
26470
26472
|
a = i[r] = e, ++s._eventsCount;
|
|
26471
|
-
else if (typeof a == "function" ? a = i[r] = t ? [e, a] : [a, e] : t ? a.unshift(e) : a.push(e), n =
|
|
26473
|
+
else if (typeof a == "function" ? a = i[r] = t ? [e, a] : [a, e] : t ? a.unshift(e) : a.push(e), n = yg(s), n > 0 && a.length > n && !a.warned) {
|
|
26472
26474
|
a.warned = !0;
|
|
26473
26475
|
var o = new Error("Possible EventEmitter memory leak detected. " + a.length + " " + String(r) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
26474
26476
|
o.name = "MaxListenersExceededWarning", o.emitter = s, o.type = r, o.count = a.length, RO(o);
|
|
@@ -26476,25 +26478,25 @@ function Tg(s, r, e, t) {
|
|
|
26476
26478
|
return s;
|
|
26477
26479
|
}
|
|
26478
26480
|
ze.prototype.addListener = function(s, r) {
|
|
26479
|
-
return
|
|
26481
|
+
return kg(this, s, r, !1);
|
|
26480
26482
|
};
|
|
26481
26483
|
ze.prototype.on = ze.prototype.addListener;
|
|
26482
26484
|
ze.prototype.prependListener = function(s, r) {
|
|
26483
|
-
return
|
|
26485
|
+
return kg(this, s, r, !0);
|
|
26484
26486
|
};
|
|
26485
26487
|
function _O() {
|
|
26486
26488
|
if (!this.fired)
|
|
26487
26489
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
26488
26490
|
}
|
|
26489
|
-
function
|
|
26491
|
+
function Tg(s, r, e) {
|
|
26490
26492
|
var t = { fired: !1, wrapFn: void 0, target: s, type: r, listener: e }, n = _O.bind(t);
|
|
26491
26493
|
return n.listener = e, t.wrapFn = n, n;
|
|
26492
26494
|
}
|
|
26493
26495
|
ze.prototype.once = function(s, r) {
|
|
26494
|
-
return sl(r), this.on(s,
|
|
26496
|
+
return sl(r), this.on(s, Tg(this, s, r)), this;
|
|
26495
26497
|
};
|
|
26496
26498
|
ze.prototype.prependOnceListener = function(s, r) {
|
|
26497
|
-
return sl(r), this.prependListener(s,
|
|
26499
|
+
return sl(r), this.prependListener(s, Tg(this, s, r)), this;
|
|
26498
26500
|
};
|
|
26499
26501
|
ze.prototype.removeListener = function(s, r) {
|
|
26500
26502
|
var e, t, n, i, a;
|
|
@@ -26536,24 +26538,24 @@ ze.prototype.removeAllListeners = function(s) {
|
|
|
26536
26538
|
this.removeListener(s, r[t]);
|
|
26537
26539
|
return this;
|
|
26538
26540
|
};
|
|
26539
|
-
function
|
|
26541
|
+
function wg(s, r, e) {
|
|
26540
26542
|
var t = s._events;
|
|
26541
26543
|
if (t === void 0)
|
|
26542
26544
|
return [];
|
|
26543
26545
|
var n = t[r];
|
|
26544
|
-
return n === void 0 ? [] : typeof n == "function" ? e ? [n.listener || n] : [n] : e ? IO(n) :
|
|
26546
|
+
return n === void 0 ? [] : typeof n == "function" ? e ? [n.listener || n] : [n] : e ? IO(n) : Pg(n, n.length);
|
|
26545
26547
|
}
|
|
26546
26548
|
ze.prototype.listeners = function(s) {
|
|
26547
|
-
return
|
|
26549
|
+
return wg(this, s, !0);
|
|
26548
26550
|
};
|
|
26549
26551
|
ze.prototype.rawListeners = function(s) {
|
|
26550
|
-
return
|
|
26552
|
+
return wg(this, s, !1);
|
|
26551
26553
|
};
|
|
26552
26554
|
ze.listenerCount = function(s, r) {
|
|
26553
|
-
return typeof s.listenerCount == "function" ? s.listenerCount(r) :
|
|
26555
|
+
return typeof s.listenerCount == "function" ? s.listenerCount(r) : bg.call(s, r);
|
|
26554
26556
|
};
|
|
26555
|
-
ze.prototype.listenerCount =
|
|
26556
|
-
function
|
|
26557
|
+
ze.prototype.listenerCount = bg;
|
|
26558
|
+
function bg(s) {
|
|
26557
26559
|
var r = this._events;
|
|
26558
26560
|
if (r !== void 0) {
|
|
26559
26561
|
var e = r[s];
|
|
@@ -26567,7 +26569,7 @@ function Pg(s) {
|
|
|
26567
26569
|
ze.prototype.eventNames = function() {
|
|
26568
26570
|
return this._eventsCount > 0 ? wc(this._events) : [];
|
|
26569
26571
|
};
|
|
26570
|
-
function
|
|
26572
|
+
function Pg(s, r) {
|
|
26571
26573
|
for (var e = new Array(r), t = 0; t < r; ++t)
|
|
26572
26574
|
e[t] = s[t];
|
|
26573
26575
|
return e;
|
|
@@ -26590,13 +26592,13 @@ function MO(s, r) {
|
|
|
26590
26592
|
function i() {
|
|
26591
26593
|
typeof s.removeListener == "function" && s.removeListener("error", n), e([].slice.call(arguments));
|
|
26592
26594
|
}
|
|
26593
|
-
|
|
26595
|
+
Sg(s, r, i, { once: !0 }), r !== "error" && OO(s, n, { once: !0 });
|
|
26594
26596
|
});
|
|
26595
26597
|
}
|
|
26596
26598
|
function OO(s, r, e) {
|
|
26597
|
-
typeof s.on == "function" &&
|
|
26599
|
+
typeof s.on == "function" && Sg(s, "error", r, e);
|
|
26598
26600
|
}
|
|
26599
|
-
function
|
|
26601
|
+
function Sg(s, r, e, t) {
|
|
26600
26602
|
if (typeof s.on == "function")
|
|
26601
26603
|
t.once ? s.once(r, e) : s.on(r, e);
|
|
26602
26604
|
else if (typeof s.addEventListener == "function")
|
|
@@ -26638,7 +26640,7 @@ var DO = /* @__PURE__ */ function(s) {
|
|
|
26638
26640
|
}]]);
|
|
26639
26641
|
}
|
|
26640
26642
|
return R(r, s), P(r);
|
|
26641
|
-
}(I), ov = new DO(),
|
|
26643
|
+
}(I), ov = new DO(), Eg = /* @__PURE__ */ function() {
|
|
26642
26644
|
function s() {
|
|
26643
26645
|
b(this, s);
|
|
26644
26646
|
}
|
|
@@ -26705,9 +26707,9 @@ var Xi = { debug: 0, info: 1, warn: 2, error: 3 }, ps, vs, VO = /* @__PURE__ */
|
|
|
26705
26707
|
} }]);
|
|
26706
26708
|
}();
|
|
26707
26709
|
ps = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap();
|
|
26708
|
-
var
|
|
26710
|
+
var Cg = /* @__PURE__ */ function(s) {
|
|
26709
26711
|
return s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s;
|
|
26710
|
-
}(
|
|
26712
|
+
}(Cg || {}), uv = "2", cv = "3", Et, to, Je, Tt, ta, zt, Si, la, wn, ro, no, yi, Yd, Rg, hu, bc, Xd, _g, Pc, zl, Uc, Zd, xd, Ag, Cu, Sc, po, Ru, jc, eh, vo, _u, th, Ig, Au, Ec, Iu, Fc, $O = /* @__PURE__ */ function() {
|
|
26711
26713
|
function s(r, e) {
|
|
26712
26714
|
var t, n, i, a, o, u, l, d, p, v, f, g;
|
|
26713
26715
|
b(this, s), We(this, Yd), We(this, hu), We(this, Xd), We(this, Pc), We(this, Uc), We(this, xd), We(this, Cu), We(this, po), We(this, jc), We(this, vo), We(this, th), We(this, Au), We(this, Iu), We(this, Et, void 0), We(this, to, void 0), We(this, Je, void 0), We(this, Tt, void 0), We(this, ta, void 0), We(this, zt, void 0), We(this, Si, void 0), We(this, la, void 0), We(this, wn, void 0), We(this, ro, void 0), We(this, no, void 0), We(this, yi, void 0);
|
|
@@ -26734,7 +26736,7 @@ var Rg = /* @__PURE__ */ function(s) {
|
|
|
26734
26736
|
}, {
|
|
26735
26737
|
key: "updateURL",
|
|
26736
26738
|
value: function(e) {
|
|
26737
|
-
Ue(this, to, e), He(this, xd,
|
|
26739
|
+
Ue(this, to, e), He(this, xd, Ag).call(this);
|
|
26738
26740
|
}
|
|
26739
26741
|
/**
|
|
26740
26742
|
* Configuration options passed to Sockrates.
|
|
@@ -26791,7 +26793,7 @@ var Rg = /* @__PURE__ */ function(s) {
|
|
|
26791
26793
|
return o.a(2, new Promise(function(u, l) {
|
|
26792
26794
|
He(n, vo, _u).call(n), He(n, Iu, Fc).call(n);
|
|
26793
26795
|
try {
|
|
26794
|
-
Ue(n, Et, new WebSocket(He(n, Yd,
|
|
26796
|
+
Ue(n, Et, new WebSocket(He(n, Yd, Rg).call(n, j(n, to)))), j(n, Et).binaryType = "arraybuffer", j(n, Tt).debug("Connecting");
|
|
26795
26797
|
var d = setTimeout(function() {
|
|
26796
26798
|
j(n, Tt).debug("Connection timeout. Closing socket"), Ue(n, Si, !0), He(n, Iu, Fc).call(n), j(n, Et).close(3001, "Connection Timeout"), j(n, Je).autoReconnect && !j(n, wn) && (j(n, zt).emit(
|
|
26797
26799
|
"reconnecting"
|
|
@@ -26799,7 +26801,7 @@ var Rg = /* @__PURE__ */ function(s) {
|
|
|
26799
26801
|
), He(n, Cu, Sc).call(n)), l(new Error("Connection timed out!"));
|
|
26800
26802
|
}, j(n, Je).connectionTimeout);
|
|
26801
26803
|
j(n, Et).onopen = function() {
|
|
26802
|
-
j(n, Tt).debug("Ready State: ".concat(
|
|
26804
|
+
j(n, Tt).debug("Ready State: ".concat(Cg[j(n, Et).readyState])), d && clearTimeout(d), He(n, jc, eh).call(n), He(n, th, Ig).call(n), Ue(n, la, { code: void 0, reason: void 0 }), j(n, zt).emit(
|
|
26803
26805
|
"connected"
|
|
26804
26806
|
/* connected */
|
|
26805
26807
|
), j(n, Je).flushOnReconnect && n.flush(), u();
|
|
@@ -26814,7 +26816,7 @@ var Rg = /* @__PURE__ */ function(s) {
|
|
|
26814
26816
|
}, j(n, Et).onerror = function(p) {
|
|
26815
26817
|
He(n, hu, bc).call(n, p);
|
|
26816
26818
|
}, j(n, Et).onmessage = function(p) {
|
|
26817
|
-
return He(n, Xd,
|
|
26819
|
+
return He(n, Xd, _g).call(n, p);
|
|
26818
26820
|
};
|
|
26819
26821
|
} catch (p) {
|
|
26820
26822
|
He(n, hu, bc).call(n, p, l);
|
|
@@ -26840,7 +26842,7 @@ var Rg = /* @__PURE__ */ function(s) {
|
|
|
26840
26842
|
var a = { event: e, id: t, payload: n, metadata: i };
|
|
26841
26843
|
if (j(this, Je).queueOnDisconnect && (!j(this, Et) || j(this, Et).readyState !== 1))
|
|
26842
26844
|
return j(this, Tt).debug("Queuing message since socket is not connected!", a), j(this, ta).push(a), !1;
|
|
26843
|
-
var o =
|
|
26845
|
+
var o = Eg.encode(a);
|
|
26844
26846
|
return He(this, po, Ru).call(this, o);
|
|
26845
26847
|
}
|
|
26846
26848
|
/**
|
|
@@ -26929,7 +26931,7 @@ var Rg = /* @__PURE__ */ function(s) {
|
|
|
26929
26931
|
Ue(this, Si, !1), He(this, vo, _u).call(this), He(this, Au, Ec).call(this), this.removeAllListeners(), Ue(this, la, { code: 1e3, reason: "Sockrates disconnect method called" }), j(this, Et).close(1e3, "Sockrates disconnect method called.");
|
|
26930
26932
|
} }]);
|
|
26931
26933
|
}();
|
|
26932
|
-
Et = /* @__PURE__ */ new WeakMap(), to = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), ro = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Yd = /* @__PURE__ */ new WeakSet(),
|
|
26934
|
+
Et = /* @__PURE__ */ new WeakMap(), to = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), ro = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Yd = /* @__PURE__ */ new WeakSet(), Rg = function(r) {
|
|
26933
26935
|
if (r.startsWith("ws://") || r.startsWith("wss://"))
|
|
26934
26936
|
return r;
|
|
26935
26937
|
if (r.startsWith("https://"))
|
|
@@ -26939,7 +26941,7 @@ Et = /* @__PURE__ */ new WeakMap(), to = /* @__PURE__ */ new WeakMap(), Je = /*
|
|
|
26939
26941
|
throw new Error("Invalid URL. URL must start with http(s):// or ws(s)://.");
|
|
26940
26942
|
}, hu = /* @__PURE__ */ new WeakSet(), bc = function(r, e) {
|
|
26941
26943
|
j(this, Tt).error("Error:", { error: r }), j(this, zt).emit("errored", { error: r }), e == null || e(r);
|
|
26942
|
-
}, Xd = /* @__PURE__ */ new WeakSet(),
|
|
26944
|
+
}, Xd = /* @__PURE__ */ new WeakSet(), _g = function(r) {
|
|
26943
26945
|
if (He(this, jc, eh).call(this), r.data === uv) {
|
|
26944
26946
|
j(this, Tt).debug("Received ping from server"), He(this, po, Ru).call(this, cv);
|
|
26945
26947
|
return;
|
|
@@ -26948,13 +26950,13 @@ Et = /* @__PURE__ */ new WeakMap(), to = /* @__PURE__ */ new WeakMap(), Je = /*
|
|
|
26948
26950
|
j(this, Tt).debug("Received pong from server");
|
|
26949
26951
|
return;
|
|
26950
26952
|
}
|
|
26951
|
-
var e =
|
|
26953
|
+
var e = Eg.decode(r.data), t = e.id, n = e.payload;
|
|
26952
26954
|
j(this, Tt).debug("Received message", { event: e.event, messageID: t }), j(this, zt).emit(e.event.toString(), { id: t, payload: n });
|
|
26953
26955
|
}, Pc = /* @__PURE__ */ new WeakSet(), zl = function() {
|
|
26954
26956
|
return j(this, Et).readyState === 1;
|
|
26955
26957
|
}, Uc = /* @__PURE__ */ new WeakSet(), Zd = function(r, e) {
|
|
26956
26958
|
Ue(this, la, { reason: e, code: r }), j(this, zt).emit("disconnected", { code: r, reason: e });
|
|
26957
|
-
}, xd = /* @__PURE__ */ new WeakSet(),
|
|
26959
|
+
}, xd = /* @__PURE__ */ new WeakSet(), Ag = function() {
|
|
26958
26960
|
var r = j(this, la), e = r.reason, t = r.code;
|
|
26959
26961
|
t && t !== 1e3 && j(this, Si) && j(this, Je).autoReconnect && !j(this, wn) && (j(this, Tt).debug("Triggering reconnection due to ".concat(e, ".")), j(this, zt).emit(
|
|
26960
26962
|
"reconnecting"
|
|
@@ -27029,7 +27031,7 @@ Et = /* @__PURE__ */ new WeakMap(), to = /* @__PURE__ */ new WeakMap(), Je = /*
|
|
|
27029
27031
|
}, j(this, Je).pingTimeout)));
|
|
27030
27032
|
}, vo = /* @__PURE__ */ new WeakSet(), _u = function() {
|
|
27031
27033
|
j(this, ro) && (clearTimeout(j(this, ro)), Ue(this, ro, void 0));
|
|
27032
|
-
}, th = /* @__PURE__ */ new WeakSet(),
|
|
27034
|
+
}, th = /* @__PURE__ */ new WeakSet(), Ig = function() {
|
|
27033
27035
|
var r = this;
|
|
27034
27036
|
He(this, Au, Ec).call(this), j(this, Je).clientInitiatedPings && Ue(this, no, setInterval(function() {
|
|
27035
27037
|
He(r, Pc, zl).call(r) && (j(r, Tt).debug("Sending client-initiated ping"), He(r, po, Ru).call(r, uv));
|
|
@@ -27043,7 +27045,7 @@ var UO = Object.defineProperty, jO = Object.getOwnPropertyDescriptor, ol = funct
|
|
|
27043
27045
|
for (var i = n > 1 ? void 0 : n ? jO(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
27044
27046
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
27045
27047
|
return n && i && UO(e, t, i), i;
|
|
27046
|
-
}, lv = 65535, FO = 3e3,
|
|
27048
|
+
}, lv = 65535, FO = 3e3, Mg = (Qr = /* @__PURE__ */ E("url"), fe = /* @__PURE__ */ E("sockrates"), ge = /* @__PURE__ */ E("connectionHandler"), Ut = /* @__PURE__ */ E("socketDisconnectionTimeout"), Le = /* @__PURE__ */ E("context"), Qs = /* @__PURE__ */ E("getSocketURL"), Ys = /* @__PURE__ */ E("generateId"), /* @__PURE__ */ function() {
|
|
27047
27049
|
function s(r, e) {
|
|
27048
27050
|
var t = e.peerId, n = e.meetingId, i = e.authToken, a = e.capabilities;
|
|
27049
27051
|
if (b(this, s), Object.defineProperty(this, Ys, { value: qO }), Object.defineProperty(this, Qs, { value: BO }), Object.defineProperty(this, ge, { get: HO, set: void 0 }), Object.defineProperty(this, Qr, { writable: !0, value: void 0 }), Object.defineProperty(this, fe, { writable: !0, value: void 0 }), this.roomName = void 0, this.authToken = void 0, this.capabilities = void 0, Object.defineProperty(this, Ut, { writable: !0, value: void 0 }), Object.defineProperty(this, Le, { writable: !0, value: void 0 }), !t || !n || !i)
|
|
@@ -27258,7 +27260,7 @@ function HO() {
|
|
|
27258
27260
|
return c(this, Le)[Le].getValue("connectionHandler");
|
|
27259
27261
|
}
|
|
27260
27262
|
function BO(s) {
|
|
27261
|
-
var r = c(this, Le)[Le].getValue("socketBaseURI") || c(this, Le)[Le].getValue("baseURI"), e =
|
|
27263
|
+
var r = c(this, Le)[Le].getValue("socketBaseURI") || c(this, Le)[Le].getValue("baseURI"), e = Mg.getSocketEdgeDomain(r);
|
|
27262
27264
|
typeof ko(c(this, Le)[Le], "socket_server_base") == "string" && (e = ko(c(this, Le)[Le], "socket_server_base"));
|
|
27263
27265
|
var t = "wss://".concat(e), n = new URL("".concat(t, "/ws")), i = this.peerId, a = N(N({ roomID: this.roomName, peerID: s, authToken: this.authToken, useMediaV2: !0 }, i !== s && { oldPeerID: i }), {}, { ping: this.capabilities.includes("PING"), capabilities: this.capabilities.map(function(o) {
|
|
27264
27266
|
return Lc[o];
|
|
@@ -27271,7 +27273,7 @@ function BO(s) {
|
|
|
27271
27273
|
function qO() {
|
|
27272
27274
|
return "".concat(this.peerId, "-").concat((Math.random() + 1).toString(36).substring(7));
|
|
27273
27275
|
}
|
|
27274
|
-
var xu =
|
|
27276
|
+
var xu = Mg;
|
|
27275
27277
|
ol([L.trace("SocketService.connect")], xu.prototype, "connect", 1);
|
|
27276
27278
|
ol([L.trace("SocketService.disconnect")], xu.prototype, "disconnect", 1);
|
|
27277
27279
|
ol([L.trace("SocketService.sendMessagePromise")], xu.prototype, "sendMessagePromise", 1);
|
|
@@ -27300,7 +27302,7 @@ var GO = /* @__PURE__ */ function() {
|
|
|
27300
27302
|
}, {
|
|
27301
27303
|
key: "handleMovedPeerRaw",
|
|
27302
27304
|
value: function(e) {
|
|
27303
|
-
var t = e.payload, n =
|
|
27305
|
+
var t = e.payload, n = Ff.fromBinary(t);
|
|
27304
27306
|
return { meetingId: n.meetingId, customParticipantId: n.customParticipantId };
|
|
27305
27307
|
}
|
|
27306
27308
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -27419,7 +27421,7 @@ var GO = /* @__PURE__ */ function() {
|
|
|
27419
27421
|
for (var i = n > 1 ? void 0 : n ? JO(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
27420
27422
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
27421
27423
|
return n && i && WO(e, t, i), i;
|
|
27422
|
-
}, Lt = /* @__PURE__ */ E("context"),
|
|
27424
|
+
}, Lt = /* @__PURE__ */ E("context"), Og = /* @__PURE__ */ function(s) {
|
|
27423
27425
|
function r(e) {
|
|
27424
27426
|
var t;
|
|
27425
27427
|
b(this, r);
|
|
@@ -27613,14 +27615,14 @@ var GO = /* @__PURE__ */ function() {
|
|
|
27613
27615
|
});
|
|
27614
27616
|
} }]);
|
|
27615
27617
|
}(Gr);
|
|
27616
|
-
KO([Wr({ maxInvocations: 60, period: 60 })],
|
|
27618
|
+
KO([Wr({ maxInvocations: 60, period: 60 })], Og.prototype, "getConnectedMeetings", 1);
|
|
27617
27619
|
var zO = Object.defineProperty, QO = Object.getOwnPropertyDescriptor, Vh = function(r, e, t, n) {
|
|
27618
27620
|
for (var i = n > 1 ? void 0 : n ? QO(e, t) : e, a = r.length - 1, o; a >= 0; a--)
|
|
27619
27621
|
(o = r[a]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
|
27620
27622
|
return n && i && zO(e, t, i), i;
|
|
27621
|
-
},
|
|
27623
|
+
}, Dg = (de = /* @__PURE__ */ E("context"), /* @__PURE__ */ function() {
|
|
27622
27624
|
function s(r) {
|
|
27623
|
-
b(this, s), this.connectedMeetings = void 0, Object.defineProperty(this, de, { writable: !0, value: void 0 }), c(this, de)[de] = r, this.connectedMeetings = new
|
|
27625
|
+
b(this, s), this.connectedMeetings = void 0, Object.defineProperty(this, de, { writable: !0, value: void 0 }), c(this, de)[de] = r, this.connectedMeetings = new Og(r);
|
|
27624
27626
|
}
|
|
27625
27627
|
return P(s, [{
|
|
27626
27628
|
key: "telemetry",
|
|
@@ -27723,12 +27725,12 @@ var zO = Object.defineProperty, QO = Object.getOwnPropertyDescriptor, Vh = funct
|
|
|
27723
27725
|
} }, { key: "emitStateUpdate", value: function() {
|
|
27724
27726
|
this.connectedMeetings.emit("stateUpdate", { meetings: this.connectedMeetings.meetings, parentMeeting: this.connectedMeetings.parentMeeting });
|
|
27725
27727
|
} }], [{ key: "init", value: function(e) {
|
|
27726
|
-
var t = new
|
|
27728
|
+
var t = new Dg(e);
|
|
27727
27729
|
return e.getValue("self").once("roomJoined", function() {
|
|
27728
27730
|
return t.getConnectedMeetings();
|
|
27729
27731
|
}), t.setupEvents(), t;
|
|
27730
27732
|
} }]);
|
|
27731
|
-
}()), ul =
|
|
27733
|
+
}()), ul = Dg;
|
|
27732
27734
|
Vh([L.trace("ConnectedMeetingsController.getConnectedMeetings")], ul.prototype, "getConnectedMeetings", 1);
|
|
27733
27735
|
Vh([L.trace("ConnectedMeetingsController.setupEvents")], ul.prototype, "setupEvents", 1);
|
|
27734
27736
|
Vh([L.trace("ConnectedMeetingsController.switchMeeting")], ul.prototype, "switchMeeting", 1);
|
|
@@ -27828,9 +27830,9 @@ var YO = Object.defineProperty, XO = Object.getOwnPropertyDescriptor, $h = funct
|
|
|
27828
27830
|
for (; ; )
|
|
27829
27831
|
switch (K.n) {
|
|
27830
27832
|
case 0:
|
|
27831
|
-
return f = i.getValue("modules"), g = a.participant, y = i.getValue("defaults"), k = i.getValue("logger"), w = u.viewType, T = u.mediaConstraints.audio, i.setValue("viewType", w), i.setValue("defaults", N({ mediaConfiguration: { audio: { enableHighBitrate: (d = T.enableHighBitrate) !== null && d !== void 0 ? d : !1, enableStereo: (p = T.enableStereo) !== null && p !== void 0 ? p : !1 } } }, y)), i.setValue("maxPreferredStreams", ht.isMobile() ? u.maxVideoStreams.mobile : u.maxVideoStreams.desktop), J = new fO(i, n), x = new GO(n), i.setValue("connectedMeetingsSocketHandler", x), F = new al(i, n), U = new Oi(i, n), ne = new wO(n), be = new
|
|
27833
|
+
return f = i.getValue("modules"), g = a.participant, y = i.getValue("defaults"), k = i.getValue("logger"), w = u.viewType, T = u.mediaConstraints.audio, i.setValue("viewType", w), i.setValue("defaults", N({ mediaConfiguration: { audio: { enableHighBitrate: (d = T.enableHighBitrate) !== null && d !== void 0 ? d : !1, enableStereo: (p = T.enableStereo) !== null && p !== void 0 ? p : !1 } } }, y)), i.setValue("maxPreferredStreams", ht.isMobile() ? u.maxVideoStreams.mobile : u.maxVideoStreams.desktop), J = new fO(i, n), x = new GO(n), i.setValue("connectedMeetingsSocketHandler", x), F = new al(i, n), U = new Oi(i, n), ne = new wO(n), be = new gg(i, n), pt = new bO(i, n), je = new vO(n), K.n = 1, Ta.init(i, be, g, l, u);
|
|
27832
27834
|
case 1:
|
|
27833
|
-
return vt = K.v, i.setValue("selfController", vt), K.n = 2,
|
|
27835
|
+
return vt = K.v, i.setValue("selfController", vt), K.n = 2, Zf.init(i, vt.self, be, J, o);
|
|
27834
27836
|
case 2:
|
|
27835
27837
|
if (X = K.v, f.participant && (Q = new Ni(i, vt.self, be)), (v = f.e2ee) !== null && v !== void 0 && v.enabled && f.e2ee.manager.init(k, i.getValue("peerSessionStore")), !f.chat) {
|
|
27836
27838
|
K.n = 4;
|
|
@@ -27848,15 +27850,15 @@ var YO = Object.defineProperty, XO = Object.getOwnPropertyDescriptor, $h = funct
|
|
|
27848
27850
|
case 5:
|
|
27849
27851
|
O = K.v;
|
|
27850
27852
|
case 6:
|
|
27851
|
-
if (f.livestream && u.viewType === Ci.Livestream && (B = new
|
|
27853
|
+
if (f.livestream && u.viewType === Ci.Livestream && (B = new ug(i, vt.self, je)), !f.poll) {
|
|
27852
27854
|
K.n = 8;
|
|
27853
27855
|
break;
|
|
27854
27856
|
}
|
|
27855
|
-
return K.n = 7,
|
|
27857
|
+
return K.n = 7, zf.init(i, vt.self, F);
|
|
27856
27858
|
case 7:
|
|
27857
27859
|
S = K.v;
|
|
27858
27860
|
case 8:
|
|
27859
|
-
if (f.recording && (D = new
|
|
27861
|
+
if (f.recording && (D = new ng(i, vt.self, be)), f.stage && (M = new xf(i, ne, be, vt.self, Q.participants)), wr = new fI(i, pt), !f.plugin) {
|
|
27860
27862
|
K.n = 11;
|
|
27861
27863
|
break;
|
|
27862
27864
|
}
|
|
@@ -27866,7 +27868,7 @@ var YO = Object.defineProperty, XO = Object.getOwnPropertyDescriptor, $h = funct
|
|
|
27866
27868
|
}
|
|
27867
27869
|
throw new $("The plugin module cannot be initialized without the `participant` module", "0102");
|
|
27868
27870
|
case 9:
|
|
27869
|
-
return ar = y.plugins || [], K.n = 10,
|
|
27871
|
+
return ar = y.plugins || [], K.n = 10, rg.init(i, ar, vt.self, wr);
|
|
27870
27872
|
case 10:
|
|
27871
27873
|
_ = K.v;
|
|
27872
27874
|
case 11:
|
|
@@ -27896,7 +27898,7 @@ var YO = Object.defineProperty, XO = Object.getOwnPropertyDescriptor, $h = funct
|
|
|
27896
27898
|
return e;
|
|
27897
27899
|
}() }, { key: "createRoomNodeClient", value: function(e, t) {
|
|
27898
27900
|
var n = e.getAllValues(), i = n.peerId;
|
|
27899
|
-
return
|
|
27901
|
+
return vg(e, { socket: t, peerId: i });
|
|
27900
27902
|
} }, { key: "createSocketService", value: function(e) {
|
|
27901
27903
|
var t, n = e.getAllValues(), i = n.peerId, a = n.meetingId, o = n.authToken, u = (t = e.getValue("socketBaseURI")) !== null && t !== void 0 ? t : "", l = u.includes("realtime.cloudflare.com"), d = l ? [] : ["PING"];
|
|
27902
27904
|
e.getValue("logger").info("Socket service capabilities: ".concat(JSON.stringify(d)));
|
|
@@ -28205,7 +28207,7 @@ var vi = /* @__PURE__ */ E("trackMap"), rD = /* @__PURE__ */ function(s) {
|
|
|
28205
28207
|
for (; ; )
|
|
28206
28208
|
switch (f.n) {
|
|
28207
28209
|
case 0:
|
|
28208
|
-
return i = v.length > 0 && v[0] !== void 0 ? v[0] : {}, a = v.length > 1 && v[1] !== void 0 ? v[1] : !1, o = v.length > 2 && v[2] !== void 0 ? v[2] : void 0, u = (n = o == null ? void 0 : o.peerId) !== null && n !== void 0 ? n : fo(), l = ha.createContext(u, { peerId: u }), d = l.getValue("logger"), d.init(l), p = new
|
|
28210
|
+
return i = v.length > 0 && v[0] !== void 0 ? v[0] : {}, a = v.length > 1 && v[1] !== void 0 ? v[1] : !1, o = v.length > 2 && v[2] !== void 0 ? v[2] : void 0, u = (n = o == null ? void 0 : o.peerId) !== null && n !== void 0 ? n : fo(), l = ha.createContext(u, { peerId: u }), d = l.getValue("logger"), d.init(l), p = new dg(l, d), f.n = 1, p.init(i, a, l);
|
|
28209
28211
|
case 1:
|
|
28210
28212
|
return l.setValue("defaults", { mediaHandler: p }), f.a(2, p);
|
|
28211
28213
|
}
|
|
@@ -28224,7 +28226,7 @@ var vi = /* @__PURE__ */ E("trackMap"), rD = /* @__PURE__ */ function(s) {
|
|
|
28224
28226
|
for (; ; )
|
|
28225
28227
|
switch (D.n) {
|
|
28226
28228
|
case 0:
|
|
28227
|
-
if (ht.init(), f = (i = n == null || (a = n.cachedUserDetails) === null || a === void 0 ? void 0 : a.peerId) !== null && i !== void 0 ? i : fo(), g = n.authToken, y = n.baseURI, k = xO(g, y), w = k.meetingId, T = nh(k,
|
|
28229
|
+
if (ht.init(), f = (i = n == null || (a = n.cachedUserDetails) === null || a === void 0 ? void 0 : a.peerId) !== null && i !== void 0 ? i : fo(), g = n.authToken, y = n.baseURI, k = xO(g, y), w = k.meetingId, T = nh(k, Vg), !((o = T.baseURI) !== null && o !== void 0 && o.includes("dyte.io"))) {
|
|
28228
28230
|
D.n = 1;
|
|
28229
28231
|
break;
|
|
28230
28232
|
}
|
|
@@ -28252,7 +28254,7 @@ var vi = /* @__PURE__ */ E("trackMap"), rD = /* @__PURE__ */ function(s) {
|
|
|
28252
28254
|
}, { key: "setupContext", value: function(e, t, n, i) {
|
|
28253
28255
|
var a, o, u = ha.createContext(e, t), l = N(N({}, Fb), t == null ? void 0 : t.modules), d = t.defaults || { audio: !0, video: !0 };
|
|
28254
28256
|
return u.setValue("options", t), u.setValue("peerId", e), u.setValue("modules", l), u.setValue("sdkName", "web-core"), u.setValue("meetingId", n), u.setValue("apiBase", i.apiBase), u.setValue("baseURI", i.baseURI), u.setValue("userId", i.participantId), u.setValue("organizationId", i.orgId), u.setValue("authToken", t.authToken), u.setValue("overrides", (a = t.overrides) !== null && a !== void 0 ? a : {}), u.setValue("env", Hb({ baseURI: i.baseURI })), u.setValue("defaults", d), u.setValue("onError", t.onError || function() {
|
|
28255
|
-
}), u.setValue("cachedUserDetails", Bn(t.cachedUserDetails)), u.setValue("sdkVersion", "2.0.2-staging.
|
|
28257
|
+
}), u.setValue("cachedUserDetails", Bn(t.cachedUserDetails)), u.setValue("sdkVersion", "2.0.2-staging.3"), (o = t.modules) !== null && o !== void 0 && o.experimentalAudioPlayback && u.setValue("audioPlayback", new rD()), u;
|
|
28256
28258
|
} }]);
|
|
28257
28259
|
}());
|
|
28258
28260
|
ll([ir("0002"), Li.executeWithLock({ methodName: "meeting.join", lockName: "Client.join", timeout: 3e3 })], ga.prototype, "join", 1);
|