aliyun-rtc-sdk 6.14.2-beta.0 → 6.14.2-beta.2
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/aliyun-rtc-sdk.es.js +985 -973
- package/dist/aliyun-rtc-sdk.umd.js +14 -14
- package/dist/plugins/beautyPlugin.d.ts +1 -1
- package/dist/types/index.d.ts +10 -7
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var Un = Object.defineProperty, Hn = Object.defineProperties;
|
|
2
|
+
var jn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var di = Object.getOwnPropertySymbols, zn = Object.getPrototypeOf, gs = Object.prototype.hasOwnProperty, ms = Object.prototype.propertyIsEnumerable, Wn = Reflect.get;
|
|
4
|
+
var Pi = (r, a, e) => a in r ? Un(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, G = (r, a) => {
|
|
5
5
|
for (var e in a || (a = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
6
|
+
gs.call(a, e) && Pi(r, e, a[e]);
|
|
7
|
+
if (di)
|
|
8
|
+
for (var e of di(a))
|
|
9
|
+
ms.call(a, e) && Pi(r, e, a[e]);
|
|
10
10
|
return r;
|
|
11
|
-
}, ut = (r, a) =>
|
|
12
|
-
var
|
|
11
|
+
}, ut = (r, a) => Hn(r, jn(a));
|
|
12
|
+
var wt = (r, a) => {
|
|
13
13
|
var e = {};
|
|
14
14
|
for (var t in r)
|
|
15
|
-
|
|
16
|
-
if (r != null &&
|
|
17
|
-
for (var t of
|
|
18
|
-
a.indexOf(t) < 0 &&
|
|
15
|
+
gs.call(r, t) && a.indexOf(t) < 0 && (e[t] = r[t]);
|
|
16
|
+
if (r != null && di)
|
|
17
|
+
for (var t of di(r))
|
|
18
|
+
a.indexOf(t) < 0 && ms.call(r, t) && (e[t] = r[t]);
|
|
19
19
|
return e;
|
|
20
20
|
};
|
|
21
|
-
var m = (r, a, e) => (
|
|
22
|
-
var
|
|
21
|
+
var m = (r, a, e) => (Pi(r, typeof a != "symbol" ? a + "" : a, e), e);
|
|
22
|
+
var ki = (r, a, e) => Wn(zn(r), e, a);
|
|
23
23
|
var w = (r, a, e) => new Promise((t, i) => {
|
|
24
24
|
var s = (o) => {
|
|
25
25
|
try {
|
|
@@ -36,13 +36,13 @@ var w = (r, a, e) => new Promise((t, i) => {
|
|
|
36
36
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
|
|
37
37
|
c((e = e.apply(r, a)).next());
|
|
38
38
|
});
|
|
39
|
-
import { AliRTS as le, EConnectStatus as
|
|
39
|
+
import { AliRTS as le, EConnectStatus as Bi, EDatachannelStatus as xs } from "aliyun-rts-sdk";
|
|
40
40
|
import De from "eventemitter3";
|
|
41
|
-
var
|
|
41
|
+
var $n = Object.defineProperty, Kn = (r, a, e) => a in r ? $n(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, Dt = (r, a, e) => (Kn(r, typeof a != "symbol" ? a + "" : a, e), e), Ni = { exports: {} }, Mi = { exports: {} }, Li, Ss;
|
|
42
42
|
function Ve() {
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
45
|
-
|
|
43
|
+
if (Ss)
|
|
44
|
+
return Li;
|
|
45
|
+
Ss = 1, Date.now = Date.now || function() {
|
|
46
46
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
47
47
|
};
|
|
48
48
|
var r = Date.now(), a = function() {
|
|
@@ -479,26 +479,26 @@ function Ve() {
|
|
|
479
479
|
return c;
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
|
-
return
|
|
482
|
+
return Li = t, Li;
|
|
483
483
|
}
|
|
484
|
-
var
|
|
485
|
-
function
|
|
486
|
-
if (
|
|
487
|
-
return
|
|
488
|
-
|
|
484
|
+
var Vi = { exports: {} }, Fi = { exports: {} }, Oi, vs;
|
|
485
|
+
function qn() {
|
|
486
|
+
if (vs)
|
|
487
|
+
return Oi;
|
|
488
|
+
vs = 1;
|
|
489
489
|
var r = Ve();
|
|
490
|
-
return
|
|
490
|
+
return Oi = function(a, e, t) {
|
|
491
491
|
typeof a == "object" && (a = r.serialize(a));
|
|
492
492
|
var i = e + a + (t ? "&post_res=" : "");
|
|
493
493
|
window && window.navigator && typeof window.navigator.sendBeacon == "function" ? window.navigator.sendBeacon(i, t || "&post_res=") : r.warn("[arms] navigator.sendBeacon not surported");
|
|
494
|
-
},
|
|
494
|
+
}, Oi;
|
|
495
495
|
}
|
|
496
|
-
var
|
|
497
|
-
function
|
|
498
|
-
if (
|
|
499
|
-
return
|
|
500
|
-
|
|
501
|
-
var r = Ve(), a =
|
|
496
|
+
var bs;
|
|
497
|
+
function Jn() {
|
|
498
|
+
if (bs)
|
|
499
|
+
return Fi.exports;
|
|
500
|
+
bs = 1;
|
|
501
|
+
var r = Ve(), a = qn(), e = "aokcdqn3ly@e629dabd48a9933", t = function(s, n) {
|
|
502
502
|
var c;
|
|
503
503
|
if (n.t === "error" && (c = s.requestQueue[0]) && c.t === "error" && n.msg === c.msg)
|
|
504
504
|
return n.times = c.times + 1, void (s.requestQueue[0] = n);
|
|
@@ -726,14 +726,14 @@ function Xn() {
|
|
|
726
726
|
return !(c = h && h.length <= 20) && r.warn("[retcode] invalid key: " + h), o["x-" + h] = u, c;
|
|
727
727
|
}), c ? this._lg("custom", o, n || 1) : this;
|
|
728
728
|
}
|
|
729
|
-
},
|
|
729
|
+
}, Fi.exports = i, Fi.exports;
|
|
730
730
|
}
|
|
731
|
-
var
|
|
732
|
-
function
|
|
733
|
-
if (
|
|
734
|
-
return
|
|
735
|
-
|
|
736
|
-
var r = Ve(), a =
|
|
731
|
+
var Es;
|
|
732
|
+
function Gn() {
|
|
733
|
+
if (Es)
|
|
734
|
+
return Vi.exports;
|
|
735
|
+
Es = 1;
|
|
736
|
+
var r = Ve(), a = Jn(), e = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], t = function(s) {
|
|
737
737
|
var n = (s.key || "default").split("::");
|
|
738
738
|
return n.length > 1 ? r.ext(s, {
|
|
739
739
|
group: n[0],
|
|
@@ -918,15 +918,15 @@ function Yn() {
|
|
|
918
918
|
c.success = s.success === !1 ? 0 : 1, this._lg("event", c, n);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
}), i._super = a, i._root = a, a.Reporter = i,
|
|
921
|
+
}), i._super = a, i._root = a, a.Reporter = i, Vi.exports = i, Vi.exports;
|
|
922
922
|
}
|
|
923
|
-
var
|
|
924
|
-
function
|
|
925
|
-
if (
|
|
926
|
-
return
|
|
927
|
-
|
|
923
|
+
var Ui = { exports: {} }, _s;
|
|
924
|
+
function Xn() {
|
|
925
|
+
if (_s)
|
|
926
|
+
return Ui.exports;
|
|
927
|
+
_s = 1;
|
|
928
928
|
var r = Ve(), a = typeof window == "object" ? window : {}, e = "catch", t = a.__oFetch_ || a.fetch;
|
|
929
|
-
return t = typeof t == "function" ? t : void 0,
|
|
929
|
+
return t = typeof t == "function" ? t : void 0, Ui.exports = function(i, s) {
|
|
930
930
|
var n = -1;
|
|
931
931
|
typeof i == "object" && (n = i.z, i = r.serialize(i));
|
|
932
932
|
var c = s + i;
|
|
@@ -941,15 +941,15 @@ function Zn() {
|
|
|
941
941
|
a[o] = void 0;
|
|
942
942
|
}, u.src = c, u = null;
|
|
943
943
|
}
|
|
944
|
-
},
|
|
944
|
+
}, Ui.exports;
|
|
945
945
|
}
|
|
946
|
-
var
|
|
947
|
-
function
|
|
948
|
-
if (
|
|
949
|
-
return
|
|
950
|
-
|
|
946
|
+
var Hi = { exports: {} }, As;
|
|
947
|
+
function Yn() {
|
|
948
|
+
if (As)
|
|
949
|
+
return Hi.exports;
|
|
950
|
+
As = 1;
|
|
951
951
|
var r = Ve(), a = typeof window == "object" ? window : {}, e = a.__oXMLHttpRequest_ || a.XMLHttpRequest;
|
|
952
|
-
return e = typeof e == "function" ? e : void 0,
|
|
952
|
+
return e = typeof e == "function" ? e : void 0, Hi.exports = function(t, i) {
|
|
953
953
|
try {
|
|
954
954
|
var s = new e();
|
|
955
955
|
s.open("POST", i, !0), s.setRequestHeader("Content-Type", "text/plain"), s.send(JSON.stringify(t));
|
|
@@ -957,15 +957,15 @@ function Qn() {
|
|
|
957
957
|
r.warn(`[retcode] Failed to log, exception is :
|
|
958
958
|
` + n);
|
|
959
959
|
}
|
|
960
|
-
},
|
|
960
|
+
}, Hi.exports;
|
|
961
961
|
}
|
|
962
|
-
var
|
|
963
|
-
function
|
|
964
|
-
if (
|
|
965
|
-
return
|
|
966
|
-
|
|
962
|
+
var ji, ys;
|
|
963
|
+
function Zn() {
|
|
964
|
+
if (ys)
|
|
965
|
+
return ji;
|
|
966
|
+
ys = 1;
|
|
967
967
|
var r = Ve();
|
|
968
|
-
return
|
|
968
|
+
return ji = function(a, e) {
|
|
969
969
|
var t = [], i = null, s = e && e.location && e.location.href, n = void 0, c = null, o = function(d, f, g) {
|
|
970
970
|
if (d !== null) {
|
|
971
971
|
var l = d[f];
|
|
@@ -1137,19 +1137,19 @@ function eo() {
|
|
|
1137
1137
|
return this;
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
1140
|
-
},
|
|
1140
|
+
}, ji;
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1142
|
+
var Cs = {}, Rs;
|
|
1143
|
+
function Wr() {
|
|
1144
|
+
return Rs || (Rs = 1, Cs.TIMING_KEYS = ["startTime", "fetchStart", "domainLookupStart", "domainLookupEnd", "connectStart", "connectEnd", "requestStart", "responseStart", "responseEnd", "", "domInteractive", "", "domContentLoadedEventEnd", "", "loadEventStart", "", "msFirstPaint", "secureConnectionStart", "redirectStart", "redirectEnd"]), Cs;
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1147
|
-
function
|
|
1148
|
-
if (
|
|
1149
|
-
return
|
|
1150
|
-
|
|
1151
|
-
var r = Ve(), a =
|
|
1152
|
-
return
|
|
1146
|
+
var zi, Is;
|
|
1147
|
+
function Qn() {
|
|
1148
|
+
if (Is)
|
|
1149
|
+
return zi;
|
|
1150
|
+
Is = 1;
|
|
1151
|
+
var r = Ve(), a = Wr(), e = a.TIMING_KEYS;
|
|
1152
|
+
return zi = function() {
|
|
1153
1153
|
var t = r.win || {}, i = t.performance;
|
|
1154
1154
|
if (!i || typeof i != "object" || typeof i.getEntriesByType != "function")
|
|
1155
1155
|
return null;
|
|
@@ -1168,15 +1168,15 @@ function to() {
|
|
|
1168
1168
|
f >= 0 && f < 6e5 && (s[h] = f);
|
|
1169
1169
|
}
|
|
1170
1170
|
}), s.res = JSON.stringify(c), s;
|
|
1171
|
-
},
|
|
1171
|
+
}, zi;
|
|
1172
1172
|
}
|
|
1173
|
-
var
|
|
1174
|
-
function
|
|
1175
|
-
if (
|
|
1176
|
-
return
|
|
1177
|
-
|
|
1178
|
-
var r = Ve(), a =
|
|
1179
|
-
return
|
|
1173
|
+
var Wi, ws;
|
|
1174
|
+
function eo() {
|
|
1175
|
+
if (ws)
|
|
1176
|
+
return Wi;
|
|
1177
|
+
ws = 1;
|
|
1178
|
+
var r = Ve(), a = Wr(), e = a.TIMING_KEYS;
|
|
1179
|
+
return Wi = function() {
|
|
1180
1180
|
var t = r.win || {}, i = t.performance;
|
|
1181
1181
|
if (!i || typeof i != "object")
|
|
1182
1182
|
return null;
|
|
@@ -1213,12 +1213,12 @@ function io() {
|
|
|
1213
1213
|
f >= 0 && f < 36e5 && (s.fpt = f);
|
|
1214
1214
|
}
|
|
1215
1215
|
return o === 1 && n[e[1]] > 0 ? s.begin = n[e[1]] : o === 2 && s.load > 0 ? s.begin = c - s.load : s.begin = c, s;
|
|
1216
|
-
},
|
|
1216
|
+
}, Wi;
|
|
1217
1217
|
}
|
|
1218
|
-
var
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
1221
|
-
var t = Ve(), i =
|
|
1218
|
+
var Ds, Ts;
|
|
1219
|
+
function to() {
|
|
1220
|
+
return Ts || (Ts = 1, Ds = function(r, a, e) {
|
|
1221
|
+
var t = Ve(), i = Qn(), s = eo(), n = null, c = e.documentElement, o = a.innerWidth || c.clientWidth || e.body.clientWidth, u = a.innerHeight || c.clientHeight || e.body.clientHeight, h = a.navigator.connection, p = {
|
|
1222
1222
|
sr: screen.width + "x" + screen.height,
|
|
1223
1223
|
vp: o + "x" + u,
|
|
1224
1224
|
ct: h ? h.effectiveType || h.type : ""
|
|
@@ -1385,15 +1385,15 @@ function ro() {
|
|
|
1385
1385
|
}, !1, !0).on(a, "unhandledrejection", function(l) {
|
|
1386
1386
|
n && n.errorHandler(l);
|
|
1387
1387
|
}), r;
|
|
1388
|
-
}),
|
|
1388
|
+
}), Ds;
|
|
1389
1389
|
}
|
|
1390
|
-
var
|
|
1391
|
-
function
|
|
1392
|
-
if (
|
|
1393
|
-
return
|
|
1394
|
-
|
|
1390
|
+
var $i, Ps;
|
|
1391
|
+
function io() {
|
|
1392
|
+
if (Ps)
|
|
1393
|
+
return $i;
|
|
1394
|
+
Ps = 1;
|
|
1395
1395
|
var r = Ve(), a = 500;
|
|
1396
|
-
return
|
|
1396
|
+
return $i = function(e, t, i) {
|
|
1397
1397
|
function s(p, d, f) {
|
|
1398
1398
|
var g = 0, l = p.tagName;
|
|
1399
1399
|
if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
|
|
@@ -1472,11 +1472,11 @@ function so() {
|
|
|
1472
1472
|
}, a);
|
|
1473
1473
|
}
|
|
1474
1474
|
});
|
|
1475
|
-
},
|
|
1475
|
+
}, $i;
|
|
1476
1476
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1477
|
+
var ks, Bs;
|
|
1478
|
+
function ro() {
|
|
1479
|
+
return Bs || (Bs = 1, ks = function(r, a) {
|
|
1480
1480
|
var e = Ve(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, g, l, S, v, x, b, E, _, y) {
|
|
1481
1481
|
var A = e.J(g) || null, R = e.safetyCall(p, [A, f], null);
|
|
1482
1482
|
if (!R)
|
|
@@ -1511,8 +1511,8 @@ function ao() {
|
|
|
1511
1511
|
} catch (J) {
|
|
1512
1512
|
q = "";
|
|
1513
1513
|
}
|
|
1514
|
-
var
|
|
1515
|
-
if (l.getConfig("enableApiCors") ||
|
|
1514
|
+
var X = e.checkSameOrigin(E, q);
|
|
1515
|
+
if (l.getConfig("enableApiCors") || X)
|
|
1516
1516
|
if (d && typeof d != "string")
|
|
1517
1517
|
try {
|
|
1518
1518
|
if (g[0].headers && typeof g[0].headers.get == "function" && typeof g[0].headers.append == "function")
|
|
@@ -1573,8 +1573,8 @@ function ao() {
|
|
|
1573
1573
|
return J;
|
|
1574
1574
|
var j = J.clone(), ce = j.headers;
|
|
1575
1575
|
if (ce && typeof ce.get == "function") {
|
|
1576
|
-
var
|
|
1577
|
-
if (
|
|
1576
|
+
var Z = ce.get("content-type");
|
|
1577
|
+
if (Z && !/(text)|(json)/.test(Z))
|
|
1578
1578
|
return J;
|
|
1579
1579
|
if (!R) {
|
|
1580
1580
|
var Fe = e.parseFetchHeaders(ce);
|
|
@@ -1582,19 +1582,19 @@ function ao() {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
var ze = x();
|
|
1585
|
-
return j.text().then(function(
|
|
1585
|
+
return j.text().then(function(Qe) {
|
|
1586
1586
|
if (!R && e.isFunction(y)) {
|
|
1587
|
-
var
|
|
1588
|
-
|
|
1587
|
+
var et = y(j, Qe);
|
|
1588
|
+
et && e.isString(et) && (R = et);
|
|
1589
1589
|
}
|
|
1590
|
-
var Se = e.getFetchSnapshot(g,
|
|
1591
|
-
j.ok ? s(l, v.parseResponse, b, E,
|
|
1590
|
+
var Se = e.getFetchSnapshot(g, Qe, ce);
|
|
1591
|
+
j.ok ? s(l, v.parseResponse, b, E, Qe, j.status || 200, ze, S, R, M, Se, I, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, S, R, M, Se, i, I, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1592
1592
|
src: j.url,
|
|
1593
1593
|
res_type: "api"
|
|
1594
1594
|
}));
|
|
1595
1595
|
}), J;
|
|
1596
|
-
} catch (
|
|
1597
|
-
return e.warn("[ARMS] fetch response error :",
|
|
1596
|
+
} catch (Qe) {
|
|
1597
|
+
return e.warn("[ARMS] fetch response error :", Qe), J;
|
|
1598
1598
|
}
|
|
1599
1599
|
}).catch(function(J) {
|
|
1600
1600
|
if (!l || !l.api)
|
|
@@ -1615,8 +1615,8 @@ function ao() {
|
|
|
1615
1615
|
var l = new d(g), S = t;
|
|
1616
1616
|
if (!S || !S.api || !l.addEventListener)
|
|
1617
1617
|
return l;
|
|
1618
|
-
var v, x, b, E, _ = l.send, y = l.open, A = l.setRequestHeader, R = S._conf, M = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = S.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null,
|
|
1619
|
-
return
|
|
1618
|
+
var v, x, b, E, _ = l.send, y = l.open, A = l.setRequestHeader, R = S._conf, M = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = S.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null, X = S.getConfig("sample"), ae = S.getConfig("linkType"), Q = 1;
|
|
1619
|
+
return X && !S.sampling(X) && (Q = 0), l.open = function(te, ee) {
|
|
1620
1620
|
p = te;
|
|
1621
1621
|
var k = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1622
1622
|
y.apply(l, k), E = ee || "", b = e.cutUrlSearch(E);
|
|
@@ -1685,11 +1685,11 @@ function ao() {
|
|
|
1685
1685
|
return this.hasInitHook ? this : (this.getConfig("disableHook") || this.addHook(), this.hasInitHook = !0, this);
|
|
1686
1686
|
}
|
|
1687
1687
|
}), r;
|
|
1688
|
-
}),
|
|
1688
|
+
}), ks;
|
|
1689
1689
|
}
|
|
1690
|
-
var
|
|
1691
|
-
function
|
|
1692
|
-
return
|
|
1690
|
+
var Ns, Ms;
|
|
1691
|
+
function so() {
|
|
1692
|
+
return Ms || (Ms = 1, Ns = function(r, a) {
|
|
1693
1693
|
var e = Ve(), t = a.history || {}, i = a.document, s = function(c, o) {
|
|
1694
1694
|
var u;
|
|
1695
1695
|
a.CustomEvent ? u = new CustomEvent(c, {
|
|
@@ -1715,15 +1715,15 @@ function no() {
|
|
|
1715
1715
|
return this.hasHackedHistoryState ? this : (n("pushState"), n("replaceState"), this.hasHackedHistoryState = !0, this);
|
|
1716
1716
|
}
|
|
1717
1717
|
});
|
|
1718
|
-
}),
|
|
1718
|
+
}), Ns;
|
|
1719
1719
|
}
|
|
1720
|
-
var
|
|
1721
|
-
function
|
|
1722
|
-
if (
|
|
1723
|
-
return
|
|
1724
|
-
|
|
1725
|
-
var r = Ve(), a =
|
|
1726
|
-
return
|
|
1720
|
+
var Ki, Ls;
|
|
1721
|
+
function ao() {
|
|
1722
|
+
if (Ls)
|
|
1723
|
+
return Ki;
|
|
1724
|
+
Ls = 1;
|
|
1725
|
+
var r = Ve(), a = Wr(), e = a.TIMING_KEYS;
|
|
1726
|
+
return Ki = function(t, i) {
|
|
1727
1727
|
function s(o, u, h) {
|
|
1728
1728
|
if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
|
|
1729
1729
|
var p = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
|
|
@@ -1837,14 +1837,14 @@ function oo() {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
|
-
},
|
|
1840
|
+
}, Ki;
|
|
1841
1841
|
}
|
|
1842
|
-
var
|
|
1843
|
-
function
|
|
1844
|
-
if (
|
|
1845
|
-
return
|
|
1846
|
-
|
|
1847
|
-
var r = Ve(), a =
|
|
1842
|
+
var Vs;
|
|
1843
|
+
function no() {
|
|
1844
|
+
if (Vs)
|
|
1845
|
+
return Mi.exports;
|
|
1846
|
+
Vs = 1;
|
|
1847
|
+
var r = Ve(), a = Gn(), e = Xn(), t = Yn(), i = r.win, s = i.document, n = /^(error|api|speed|sum|avg|percent|custom|msg|setPage|setConfig|behavior|performance)$/, c = function(o) {
|
|
1848
1848
|
var u = this;
|
|
1849
1849
|
return a.call(u, o), u._initialPage = o.page && r.safetyCall(o.page, [], o.page + "") || null, u._isRobot = r.isRobot(), u._health = {
|
|
1850
1850
|
errcount: 0,
|
|
@@ -1980,13 +1980,13 @@ function co() {
|
|
|
1980
1980
|
var u = this.__proto__.constructor(o);
|
|
1981
1981
|
return o.page && u.sendPV(), u;
|
|
1982
1982
|
}
|
|
1983
|
-
}),
|
|
1983
|
+
}), Zn()(c, i), to()(c, i, s), io()(c, i, s), ro()(c, i), so()(c, i), ao()(c, i), c._super = a, c._root = a._root, a.Browser = c, Mi.exports = c, Mi.exports;
|
|
1984
1984
|
}
|
|
1985
|
-
var
|
|
1986
|
-
function
|
|
1987
|
-
if (
|
|
1988
|
-
return
|
|
1989
|
-
|
|
1985
|
+
var Fs;
|
|
1986
|
+
function oo() {
|
|
1987
|
+
if (Fs)
|
|
1988
|
+
return Ni.exports;
|
|
1989
|
+
Fs = 1;
|
|
1990
1990
|
function r(c, o) {
|
|
1991
1991
|
var u = e[i] = new t(c);
|
|
1992
1992
|
u.sendPipe(o);
|
|
@@ -1999,7 +1999,7 @@ function uo() {
|
|
|
1999
1999
|
var c = {}, o = [];
|
|
2000
2000
|
return i in e && (c = e[i].config || {}, o = e[i].pipe || []), r(c, o);
|
|
2001
2001
|
}
|
|
2002
|
-
var e = window, t = e.BrowserLogger =
|
|
2002
|
+
var e = window, t = e.BrowserLogger = no(), i = Ve().key, s = "__hasInitBlSdk";
|
|
2003
2003
|
t.singleton = function(c, o) {
|
|
2004
2004
|
return e[s] ? e[i] : r(c, o);
|
|
2005
2005
|
}, t.createExtraInstance = function(c) {
|
|
@@ -2008,41 +2008,41 @@ function uo() {
|
|
|
2008
2008
|
return u.enableInstanceAutoSend && (u.autoSendPv !== !1 && o.sendPV(), u && u.useFmp || o.sendPerformance(), u && u.sendResource && o.sendResources()), o;
|
|
2009
2009
|
};
|
|
2010
2010
|
var n = typeof window == "object" && !!window.navigator;
|
|
2011
|
-
return n && e[i] && (t.bl = a()),
|
|
2011
|
+
return n && e[i] && (t.bl = a()), Ni.exports = t, Ni.exports;
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2014
|
-
return
|
|
2013
|
+
function co() {
|
|
2014
|
+
return oo();
|
|
2015
2015
|
}
|
|
2016
|
-
var
|
|
2017
|
-
getArmsLogger:
|
|
2016
|
+
var uo = {
|
|
2017
|
+
getArmsLogger: co
|
|
2018
2018
|
};
|
|
2019
|
-
const
|
|
2019
|
+
const Os = "https://arms-retcode.aliyuncs.com/r.png?", Us = "https://arms-retcode-sg.aliyuncs.com/r.png?", Hs = "https://retcode-us-west-1.arms.aliyuncs.com/r.png?", js = "e1iftji1w7@7ec1cef2cc88733", zs = "e1iftji1w7@10a06d1ec260adc", Ws = "e1iftji1w7@10a06d1ec260adc", qi = {
|
|
2020
2020
|
cn: {
|
|
2021
|
+
reportUrl: Os,
|
|
2022
|
+
pid: js
|
|
2023
|
+
},
|
|
2024
|
+
"cn-hangzhou": {
|
|
2025
|
+
reportUrl: Os,
|
|
2026
|
+
pid: js
|
|
2027
|
+
},
|
|
2028
|
+
sg: {
|
|
2021
2029
|
reportUrl: Us,
|
|
2022
2030
|
pid: zs
|
|
2023
2031
|
},
|
|
2024
|
-
"
|
|
2032
|
+
"ap-southeast-1": {
|
|
2025
2033
|
reportUrl: Us,
|
|
2026
2034
|
pid: zs
|
|
2027
2035
|
},
|
|
2028
|
-
|
|
2036
|
+
usw: {
|
|
2029
2037
|
reportUrl: Hs,
|
|
2030
2038
|
pid: Ws
|
|
2031
2039
|
},
|
|
2032
|
-
"
|
|
2040
|
+
"us-west-1": {
|
|
2033
2041
|
reportUrl: Hs,
|
|
2034
2042
|
pid: Ws
|
|
2035
|
-
},
|
|
2036
|
-
usw: {
|
|
2037
|
-
reportUrl: js,
|
|
2038
|
-
pid: $s
|
|
2039
|
-
},
|
|
2040
|
-
"us-west-1": {
|
|
2041
|
-
reportUrl: js,
|
|
2042
|
-
pid: $s
|
|
2043
2043
|
}
|
|
2044
|
-
},
|
|
2045
|
-
function
|
|
2044
|
+
}, ho = (r) => r !== null && typeof r == "object", lo = (r) => Object.prototype.toString.call(r).slice(8, -1), fo = (r) => Object.isExtensible(r) ? lo(r) === "Object" : !1;
|
|
2045
|
+
function po(r, a, e) {
|
|
2046
2046
|
var n;
|
|
2047
2047
|
if (Reflect.get(r, "__v_skip") === !0)
|
|
2048
2048
|
return r;
|
|
@@ -2076,7 +2076,7 @@ function mo(r, a, e) {
|
|
|
2076
2076
|
set: s.MediaboxWrapperObjectSetter
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2079
|
+
function go(r, a, e) {
|
|
2080
2080
|
const t = {
|
|
2081
2081
|
MediaboxWrapperFunctionApply(i, s, n) {
|
|
2082
2082
|
let c;
|
|
@@ -2107,7 +2107,7 @@ function xo(r, a, e) {
|
|
|
2107
2107
|
construct: t.MediaboxWrapperClassConstructor
|
|
2108
2108
|
});
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function mo(r, a) {
|
|
2111
2111
|
if (typeof r != "string")
|
|
2112
2112
|
return a;
|
|
2113
2113
|
if (an(r, a))
|
|
@@ -2127,36 +2127,36 @@ function an(r, a) {
|
|
|
2127
2127
|
return t < 0 ? !0 : e < t;
|
|
2128
2128
|
}
|
|
2129
2129
|
function ft(r, a, e) {
|
|
2130
|
-
return typeof r == "function" ?
|
|
2130
|
+
return typeof r == "function" ? go(r, a + 1, e) : r instanceof Promise ? r.then((t) => ft(t, a + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? (r.forEach((t, i) => {
|
|
2131
2131
|
r[i] = ft(t, a + 1, e);
|
|
2132
|
-
}), r) :
|
|
2132
|
+
}), r) : ho(r) && fo(r) ? po(r, a + 1, e) : r;
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function xo(r) {
|
|
2135
2135
|
return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1;
|
|
2136
2136
|
}
|
|
2137
|
-
function
|
|
2137
|
+
function $s(r) {
|
|
2138
2138
|
return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1 || r.indexOf("MediaboxWrapper") > -1;
|
|
2139
2139
|
}
|
|
2140
|
-
class
|
|
2140
|
+
class Ks extends Error {
|
|
2141
2141
|
constructor(a) {
|
|
2142
2142
|
super(a), this.name = "MQTError";
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
let
|
|
2146
|
-
class
|
|
2145
|
+
let So = 1;
|
|
2146
|
+
class $r {
|
|
2147
2147
|
constructor(a) {
|
|
2148
2148
|
var e, t;
|
|
2149
|
-
|
|
2149
|
+
Dt(this, "armsLogger"), Dt(this, "isReady", !1), Dt(this, "isDestroyed", !1), Dt(this, "options"), Dt(this, "queue", []), Dt(this, "marker"), Dt(this, "helper", {
|
|
2150
2150
|
MediaboxWrapperQueue(i) {
|
|
2151
|
-
return new
|
|
2151
|
+
return new Ks(i);
|
|
2152
2152
|
},
|
|
2153
2153
|
MediaboxWrapperInitiative(i) {
|
|
2154
|
-
return new
|
|
2154
|
+
return new Ks(i);
|
|
2155
2155
|
}
|
|
2156
|
-
}), this.options = ut(
|
|
2156
|
+
}), this.options = ut(G({}, a), {
|
|
2157
2157
|
region: a.deferRegionSet ? void 0 : (e = a.region) != null ? e : "cn",
|
|
2158
2158
|
env: (t = a.env) != null ? t : "prod"
|
|
2159
|
-
}), this.marker = `-${
|
|
2159
|
+
}), this.marker = `-${So++}-`, this.initArmsLogger();
|
|
2160
2160
|
}
|
|
2161
2161
|
static get version() {
|
|
2162
2162
|
return "0.23.0";
|
|
@@ -2169,29 +2169,29 @@ class Kr {
|
|
|
2169
2169
|
throw new Error("region is required");
|
|
2170
2170
|
if (!e)
|
|
2171
2171
|
return;
|
|
2172
|
-
if (!
|
|
2172
|
+
if (!qi[e])
|
|
2173
2173
|
throw new Error(`region ${e} is not supported`);
|
|
2174
2174
|
const s = (c) => {
|
|
2175
2175
|
var o;
|
|
2176
2176
|
if (this.isDestroyed || an(c.stack, this.marker) || c.t !== "pv" && c.t !== "error")
|
|
2177
2177
|
return !1;
|
|
2178
|
-
if (c.c1 = (o = this.options.cid) != null ? o : window.location.host, c.c2 =
|
|
2179
|
-
if (
|
|
2178
|
+
if (c.c1 = (o = this.options.cid) != null ? o : window.location.host, c.c2 = $r.version, this.options.customData && (c.c3 = new URLSearchParams(this.options.customData).toString()), c.t === "error") {
|
|
2179
|
+
if (xo(c.file) || $s(c.stack)) {
|
|
2180
2180
|
let u = c;
|
|
2181
2181
|
return this.options.beforeSend && (u = this.options.beforeSend(c)), this.isReady ? u : (u && this.queue.push(u), !1);
|
|
2182
2182
|
}
|
|
2183
2183
|
return !1;
|
|
2184
2184
|
}
|
|
2185
2185
|
return c;
|
|
2186
|
-
}, n =
|
|
2186
|
+
}, n = uo.getArmsLogger();
|
|
2187
2187
|
this.armsLogger = n.createExtraInstance({
|
|
2188
2188
|
enableInstanceAutoSend: !0,
|
|
2189
|
-
pid:
|
|
2189
|
+
pid: qi[e].pid,
|
|
2190
2190
|
tag: this.options.businessName,
|
|
2191
2191
|
release: `${this.options.businessName}_${this.options.version}`,
|
|
2192
2192
|
// release 参数只能初始化时设置
|
|
2193
2193
|
// appType: "web",
|
|
2194
|
-
imgUrl:
|
|
2194
|
+
imgUrl: qi[e].reportUrl,
|
|
2195
2195
|
// sendResource: true,
|
|
2196
2196
|
behavior: !0,
|
|
2197
2197
|
sample: 1,
|
|
@@ -2206,11 +2206,11 @@ class Kr {
|
|
|
2206
2206
|
wrap(a) {
|
|
2207
2207
|
return this.options.disabled || typeof Proxy > "u" ? a : ft(a, 0, (e) => {
|
|
2208
2208
|
var t;
|
|
2209
|
-
e instanceof Error && typeof e.stack == "string" &&
|
|
2209
|
+
e instanceof Error && typeof e.stack == "string" && $s(e.stack) && ((t = this.armsLogger) == null || t.error(e), e.stack = mo(e.stack, this.marker));
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
2212
2212
|
updateOptions(a) {
|
|
2213
|
-
this.options =
|
|
2213
|
+
this.options = G(G({}, this.options), a);
|
|
2214
2214
|
}
|
|
2215
2215
|
setReady() {
|
|
2216
2216
|
this.initArmsLogger(!0), this.isReady = !0, this.queue.length && this.queue.forEach((a) => {
|
|
@@ -2234,43 +2234,43 @@ class Kr {
|
|
|
2234
2234
|
this.isDestroyed = !0;
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
var oe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(oe || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), T = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(T || {}),
|
|
2238
|
-
for (var
|
|
2239
|
-
Ie.push((
|
|
2240
|
-
function
|
|
2237
|
+
var oe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(oe || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), T = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(T || {}), Kr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(Kr || {}), St = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(St || {}), qt = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))(qt || {}), xi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(xi || {}), de = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(de || {}), nt = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(nt || {}), Ie = [];
|
|
2238
|
+
for (var Ji = 0; Ji < 256; ++Ji)
|
|
2239
|
+
Ie.push((Ji + 256).toString(16).slice(1));
|
|
2240
|
+
function vo(r, a = 0) {
|
|
2241
2241
|
return (Ie[r[a + 0]] + Ie[r[a + 1]] + Ie[r[a + 2]] + Ie[r[a + 3]] + "-" + Ie[r[a + 4]] + Ie[r[a + 5]] + "-" + Ie[r[a + 6]] + Ie[r[a + 7]] + "-" + Ie[r[a + 8]] + Ie[r[a + 9]] + "-" + Ie[r[a + 10]] + Ie[r[a + 11]] + Ie[r[a + 12]] + Ie[r[a + 13]] + Ie[r[a + 14]] + Ie[r[a + 15]]).toLowerCase();
|
|
2242
2242
|
}
|
|
2243
|
-
var
|
|
2244
|
-
function
|
|
2245
|
-
if (!
|
|
2243
|
+
var li, bo = new Uint8Array(16);
|
|
2244
|
+
function Eo() {
|
|
2245
|
+
if (!li && (li = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !li))
|
|
2246
2246
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2247
|
-
return
|
|
2247
|
+
return li(bo);
|
|
2248
2248
|
}
|
|
2249
|
-
var
|
|
2250
|
-
const
|
|
2251
|
-
randomUUID:
|
|
2249
|
+
var _o = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
2250
|
+
const qs = {
|
|
2251
|
+
randomUUID: _o
|
|
2252
2252
|
};
|
|
2253
|
-
function
|
|
2254
|
-
if (
|
|
2255
|
-
return
|
|
2253
|
+
function rt(r, a, e) {
|
|
2254
|
+
if (qs.randomUUID && !a && !r)
|
|
2255
|
+
return qs.randomUUID();
|
|
2256
2256
|
r = r || {};
|
|
2257
|
-
var t = r.random || (r.rng ||
|
|
2257
|
+
var t = r.random || (r.rng || Eo)();
|
|
2258
2258
|
if (t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, a) {
|
|
2259
2259
|
e = e || 0;
|
|
2260
2260
|
for (var i = 0; i < 16; ++i)
|
|
2261
2261
|
a[e + i] = t[i];
|
|
2262
2262
|
return a;
|
|
2263
2263
|
}
|
|
2264
|
-
return
|
|
2264
|
+
return vo(t);
|
|
2265
2265
|
}
|
|
2266
|
-
var
|
|
2267
|
-
const
|
|
2266
|
+
var Si = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(Si || {});
|
|
2267
|
+
const _i = "6.14.2-beta.2", Js = "web";
|
|
2268
2268
|
class He {
|
|
2269
2269
|
/**
|
|
2270
2270
|
* 将版本号转换为number
|
|
2271
2271
|
*/
|
|
2272
2272
|
static getVersionNumber() {
|
|
2273
|
-
let a =
|
|
2273
|
+
let a = _i.split("."), e = "";
|
|
2274
2274
|
return a.forEach((t) => {
|
|
2275
2275
|
t.length === 1 ? e += "0" + t : e += t;
|
|
2276
2276
|
}), parseInt(e);
|
|
@@ -2306,7 +2306,7 @@ class He {
|
|
|
2306
2306
|
* @returns
|
|
2307
2307
|
*/
|
|
2308
2308
|
static createCallid(a = "") {
|
|
2309
|
-
const e =
|
|
2309
|
+
const e = rt();
|
|
2310
2310
|
return a && e && e.length > a.length ? `${a}${e.substring(a.length)}` : e;
|
|
2311
2311
|
}
|
|
2312
2312
|
/**
|
|
@@ -2328,7 +2328,7 @@ class He {
|
|
|
2328
2328
|
*/
|
|
2329
2329
|
static isNetworkAvailable() {
|
|
2330
2330
|
return w(this, null, function* () {
|
|
2331
|
-
const a =
|
|
2331
|
+
const a = Si.prod, { onLine: e } = navigator;
|
|
2332
2332
|
if (!e)
|
|
2333
2333
|
return !1;
|
|
2334
2334
|
try {
|
|
@@ -2374,7 +2374,7 @@ class He {
|
|
|
2374
2374
|
return e;
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2377
|
+
function Gs(r, a, e) {
|
|
2378
2378
|
Object.defineProperty(r, a, {
|
|
2379
2379
|
writable: !0,
|
|
2380
2380
|
enumerable: !0,
|
|
@@ -2384,11 +2384,11 @@ function Xs(r, a, e) {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
function nn(r, a, e, t) {
|
|
2386
2386
|
t ? t(() => {
|
|
2387
|
-
|
|
2388
|
-
}) :
|
|
2387
|
+
Gs(r, a, e);
|
|
2388
|
+
}) : Gs(r, a, e);
|
|
2389
2389
|
}
|
|
2390
2390
|
Array(32);
|
|
2391
|
-
class
|
|
2391
|
+
class Ao {
|
|
2392
2392
|
constructor(a) {
|
|
2393
2393
|
this.timer = null, this.time = 10, this.count = 10, this.arr = [];
|
|
2394
2394
|
var e, t;
|
|
@@ -2450,7 +2450,7 @@ class Co {
|
|
|
2450
2450
|
return this.opt;
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
|
-
var
|
|
2453
|
+
var yo = (r, a, e) => new Promise((t, i) => {
|
|
2454
2454
|
var s = (o) => {
|
|
2455
2455
|
try {
|
|
2456
2456
|
c(e.next(o));
|
|
@@ -2466,27 +2466,27 @@ var Ro = (r, a, e) => new Promise((t, i) => {
|
|
|
2466
2466
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
|
|
2467
2467
|
c((e = e.apply(r, a)).next());
|
|
2468
2468
|
});
|
|
2469
|
-
function
|
|
2469
|
+
function Co(r, a) {
|
|
2470
2470
|
return navigator && navigator.sendBeacon ? navigator.sendBeacon(`${r}?APIVersion=0.6.0`, a) : !1;
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function Xs(r, a) {
|
|
2473
2473
|
const e = new window.XMLHttpRequest();
|
|
2474
2474
|
e.open("POST", `${r}?APIVersion=0.6.0`, !0), e.send(a);
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function Ro(r, a) {
|
|
2477
2477
|
try {
|
|
2478
2478
|
if (a.length >= 32768) {
|
|
2479
|
-
|
|
2479
|
+
Xs(r, a);
|
|
2480
2480
|
return;
|
|
2481
2481
|
}
|
|
2482
|
-
|
|
2482
|
+
Co(r, a) || Xs(r, a);
|
|
2483
2483
|
} catch (e) {
|
|
2484
2484
|
window && window.console && typeof window.console.error == "function" && (console.error(`Failed to log to ali log service because of this exception:
|
|
2485
2485
|
` + e), console.error("Failed log data:", r));
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2489
|
-
return
|
|
2488
|
+
function Io(r, a, e) {
|
|
2489
|
+
return yo(this, null, function* () {
|
|
2490
2490
|
try {
|
|
2491
2491
|
r = r.slice(0, -6);
|
|
2492
2492
|
const { data: t, header: i } = yield e.process(r, a), s = new window.XMLHttpRequest();
|
|
@@ -2500,7 +2500,7 @@ function Do(r, a, e) {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
});
|
|
2502
2502
|
}
|
|
2503
|
-
class
|
|
2503
|
+
class qr extends Ao {
|
|
2504
2504
|
constructor(a) {
|
|
2505
2505
|
const e = Object.assign({}, a, {
|
|
2506
2506
|
installUnloadHook: (t) => {
|
|
@@ -2509,23 +2509,23 @@ class Jr extends Co {
|
|
|
2509
2509
|
});
|
|
2510
2510
|
},
|
|
2511
2511
|
sendPayload: (t, i) => {
|
|
2512
|
-
|
|
2512
|
+
Ro(t, i);
|
|
2513
2513
|
}
|
|
2514
2514
|
});
|
|
2515
2515
|
super(e);
|
|
2516
2516
|
}
|
|
2517
2517
|
useStsPlugin(a) {
|
|
2518
2518
|
this.getOpt().sendPayload = (e, t) => {
|
|
2519
|
-
|
|
2519
|
+
Io(e, t, a);
|
|
2520
2520
|
}, this.overwriteTransString(a);
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
|
-
nn(window, "SLS_Tracker",
|
|
2523
|
+
nn(window, "SLS_Tracker", qr);
|
|
2524
2524
|
var ie = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
2525
|
-
function
|
|
2525
|
+
function wo(r) {
|
|
2526
2526
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function Do(r) {
|
|
2529
2529
|
if (r.__esModule)
|
|
2530
2530
|
return r;
|
|
2531
2531
|
var a = r.default;
|
|
@@ -2547,25 +2547,25 @@ function Po(r) {
|
|
|
2547
2547
|
}), e;
|
|
2548
2548
|
}
|
|
2549
2549
|
var on = { exports: {} };
|
|
2550
|
-
function
|
|
2550
|
+
function To(r) {
|
|
2551
2551
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2552
2552
|
}
|
|
2553
|
-
var
|
|
2554
|
-
const
|
|
2553
|
+
var Gi = { exports: {} };
|
|
2554
|
+
const Po = {}, ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2555
2555
|
__proto__: null,
|
|
2556
|
-
default:
|
|
2557
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2558
|
-
var
|
|
2556
|
+
default: Po
|
|
2557
|
+
}, Symbol.toStringTag, { value: "Module" })), Bo = /* @__PURE__ */ Do(ko);
|
|
2558
|
+
var Ys;
|
|
2559
2559
|
function ne() {
|
|
2560
|
-
return
|
|
2560
|
+
return Ys || (Ys = 1, function(r, a) {
|
|
2561
2561
|
(function(e, t) {
|
|
2562
2562
|
r.exports = t();
|
|
2563
2563
|
})(ie, function() {
|
|
2564
2564
|
var e = e || function(t, i) {
|
|
2565
2565
|
var s;
|
|
2566
|
-
if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof ie != "undefined" && ie.crypto && (s = ie.crypto), !s && typeof
|
|
2566
|
+
if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof ie != "undefined" && ie.crypto && (s = ie.crypto), !s && typeof To == "function")
|
|
2567
2567
|
try {
|
|
2568
|
-
s =
|
|
2568
|
+
s = Bo;
|
|
2569
2569
|
} catch (x) {
|
|
2570
2570
|
}
|
|
2571
2571
|
var n = function() {
|
|
@@ -3054,11 +3054,11 @@ function ne() {
|
|
|
3054
3054
|
}(Math);
|
|
3055
3055
|
return e;
|
|
3056
3056
|
});
|
|
3057
|
-
}(
|
|
3057
|
+
}(Gi)), Gi.exports;
|
|
3058
3058
|
}
|
|
3059
|
-
var
|
|
3060
|
-
function
|
|
3061
|
-
return
|
|
3059
|
+
var Xi = { exports: {} }, Zs;
|
|
3060
|
+
function Ai() {
|
|
3061
|
+
return Zs || (Zs = 1, function(r, a) {
|
|
3062
3062
|
(function(e, t) {
|
|
3063
3063
|
r.exports = t(ne());
|
|
3064
3064
|
})(ie, function(e) {
|
|
@@ -3284,11 +3284,11 @@ function Ci() {
|
|
|
3284
3284
|
});
|
|
3285
3285
|
}(), e;
|
|
3286
3286
|
});
|
|
3287
|
-
}(
|
|
3287
|
+
}(Xi)), Xi.exports;
|
|
3288
3288
|
}
|
|
3289
|
-
var
|
|
3290
|
-
function
|
|
3291
|
-
return
|
|
3289
|
+
var Yi = { exports: {} }, Qs;
|
|
3290
|
+
function No() {
|
|
3291
|
+
return Qs || (Qs = 1, function(r, a) {
|
|
3292
3292
|
(function(e, t) {
|
|
3293
3293
|
r.exports = t(ne());
|
|
3294
3294
|
})(ie, function(e) {
|
|
@@ -3306,11 +3306,11 @@ function Lo() {
|
|
|
3306
3306
|
}
|
|
3307
3307
|
}(), e.lib.WordArray;
|
|
3308
3308
|
});
|
|
3309
|
-
}(
|
|
3309
|
+
}(Yi)), Yi.exports;
|
|
3310
3310
|
}
|
|
3311
|
-
var
|
|
3312
|
-
function
|
|
3313
|
-
return
|
|
3311
|
+
var Zi = { exports: {} }, ea;
|
|
3312
|
+
function Mo() {
|
|
3313
|
+
return ea || (ea = 1, function(r, a) {
|
|
3314
3314
|
(function(e, t) {
|
|
3315
3315
|
r.exports = t(ne());
|
|
3316
3316
|
})(ie, function(e) {
|
|
@@ -3400,11 +3400,11 @@ function Vo() {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
}(), e.enc.Utf16;
|
|
3402
3402
|
});
|
|
3403
|
-
}(
|
|
3403
|
+
}(Zi)), Zi.exports;
|
|
3404
3404
|
}
|
|
3405
|
-
var
|
|
3406
|
-
function
|
|
3407
|
-
return
|
|
3405
|
+
var Qi = { exports: {} }, ta;
|
|
3406
|
+
function Ft() {
|
|
3407
|
+
return ta || (ta = 1, function(r, a) {
|
|
3408
3408
|
(function(e, t) {
|
|
3409
3409
|
r.exports = t(ne());
|
|
3410
3410
|
})(ie, function(e) {
|
|
@@ -3475,11 +3475,11 @@ function Vt() {
|
|
|
3475
3475
|
}
|
|
3476
3476
|
}(), e.enc.Base64;
|
|
3477
3477
|
});
|
|
3478
|
-
}(
|
|
3478
|
+
}(Qi)), Qi.exports;
|
|
3479
3479
|
}
|
|
3480
|
-
var
|
|
3481
|
-
function
|
|
3482
|
-
return
|
|
3480
|
+
var er = { exports: {} }, ia;
|
|
3481
|
+
function Lo() {
|
|
3482
|
+
return ia || (ia = 1, function(r, a) {
|
|
3483
3483
|
(function(e, t) {
|
|
3484
3484
|
r.exports = t(ne());
|
|
3485
3485
|
})(ie, function(e) {
|
|
@@ -3557,11 +3557,11 @@ function Fo() {
|
|
|
3557
3557
|
}
|
|
3558
3558
|
}(), e.enc.Base64url;
|
|
3559
3559
|
});
|
|
3560
|
-
}(
|
|
3560
|
+
}(er)), er.exports;
|
|
3561
3561
|
}
|
|
3562
|
-
var
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3562
|
+
var tr = { exports: {} }, ra;
|
|
3563
|
+
function Ot() {
|
|
3564
|
+
return ra || (ra = 1, function(r, a) {
|
|
3565
3565
|
(function(e, t) {
|
|
3566
3566
|
r.exports = t(ne());
|
|
3567
3567
|
})(ie, function(e) {
|
|
@@ -3585,8 +3585,8 @@ function Ft() {
|
|
|
3585
3585
|
var x = S + v, b = l[x];
|
|
3586
3586
|
l[x] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
3587
3587
|
}
|
|
3588
|
-
var E = this._hash.words, _ = l[S + 0], y = l[S + 1], A = l[S + 2], R = l[S + 3], M = l[S + 4], C = l[S + 5], I = l[S + 6], P = l[S + 7], B = l[S + 8], $ = l[S + 9], q = l[S + 10],
|
|
3589
|
-
k = p(k, L, V, N, _, 7, u[0]), N = p(N, k, L, V, y, 12, u[1]), V = p(V, N, k, L, A, 17, u[2]), L = p(L, V, N, k, R, 22, u[3]), k = p(k, L, V, N, M, 7, u[4]), N = p(N, k, L, V, C, 12, u[5]), V = p(V, N, k, L, I, 17, u[6]), L = p(L, V, N, k, P, 22, u[7]), k = p(k, L, V, N, B, 7, u[8]), N = p(N, k, L, V, $, 12, u[9]), V = p(V, N, k, L, q, 17, u[10]), L = p(L, V, N, k,
|
|
3588
|
+
var E = this._hash.words, _ = l[S + 0], y = l[S + 1], A = l[S + 2], R = l[S + 3], M = l[S + 4], C = l[S + 5], I = l[S + 6], P = l[S + 7], B = l[S + 8], $ = l[S + 9], q = l[S + 10], X = l[S + 11], ae = l[S + 12], Q = l[S + 13], te = l[S + 14], ee = l[S + 15], k = E[0], L = E[1], V = E[2], N = E[3];
|
|
3589
|
+
k = p(k, L, V, N, _, 7, u[0]), N = p(N, k, L, V, y, 12, u[1]), V = p(V, N, k, L, A, 17, u[2]), L = p(L, V, N, k, R, 22, u[3]), k = p(k, L, V, N, M, 7, u[4]), N = p(N, k, L, V, C, 12, u[5]), V = p(V, N, k, L, I, 17, u[6]), L = p(L, V, N, k, P, 22, u[7]), k = p(k, L, V, N, B, 7, u[8]), N = p(N, k, L, V, $, 12, u[9]), V = p(V, N, k, L, q, 17, u[10]), L = p(L, V, N, k, X, 22, u[11]), k = p(k, L, V, N, ae, 7, u[12]), N = p(N, k, L, V, Q, 12, u[13]), V = p(V, N, k, L, te, 17, u[14]), L = p(L, V, N, k, ee, 22, u[15]), k = d(k, L, V, N, y, 5, u[16]), N = d(N, k, L, V, I, 9, u[17]), V = d(V, N, k, L, X, 14, u[18]), L = d(L, V, N, k, _, 20, u[19]), k = d(k, L, V, N, C, 5, u[20]), N = d(N, k, L, V, q, 9, u[21]), V = d(V, N, k, L, ee, 14, u[22]), L = d(L, V, N, k, M, 20, u[23]), k = d(k, L, V, N, $, 5, u[24]), N = d(N, k, L, V, te, 9, u[25]), V = d(V, N, k, L, R, 14, u[26]), L = d(L, V, N, k, B, 20, u[27]), k = d(k, L, V, N, Q, 5, u[28]), N = d(N, k, L, V, A, 9, u[29]), V = d(V, N, k, L, P, 14, u[30]), L = d(L, V, N, k, ae, 20, u[31]), k = f(k, L, V, N, C, 4, u[32]), N = f(N, k, L, V, B, 11, u[33]), V = f(V, N, k, L, X, 16, u[34]), L = f(L, V, N, k, te, 23, u[35]), k = f(k, L, V, N, y, 4, u[36]), N = f(N, k, L, V, M, 11, u[37]), V = f(V, N, k, L, P, 16, u[38]), L = f(L, V, N, k, q, 23, u[39]), k = f(k, L, V, N, Q, 4, u[40]), N = f(N, k, L, V, _, 11, u[41]), V = f(V, N, k, L, R, 16, u[42]), L = f(L, V, N, k, I, 23, u[43]), k = f(k, L, V, N, $, 4, u[44]), N = f(N, k, L, V, ae, 11, u[45]), V = f(V, N, k, L, ee, 16, u[46]), L = f(L, V, N, k, A, 23, u[47]), k = g(k, L, V, N, _, 6, u[48]), N = g(N, k, L, V, P, 10, u[49]), V = g(V, N, k, L, te, 15, u[50]), L = g(L, V, N, k, C, 21, u[51]), k = g(k, L, V, N, ae, 6, u[52]), N = g(N, k, L, V, R, 10, u[53]), V = g(V, N, k, L, q, 15, u[54]), L = g(L, V, N, k, y, 21, u[55]), k = g(k, L, V, N, B, 6, u[56]), N = g(N, k, L, V, ee, 10, u[57]), V = g(V, N, k, L, I, 15, u[58]), L = g(L, V, N, k, Q, 21, u[59]), k = g(k, L, V, N, M, 6, u[60]), N = g(N, k, L, V, X, 10, u[61]), V = g(V, N, k, L, A, 15, u[62]), L = g(L, V, N, k, $, 21, u[63]), E[0] = E[0] + k | 0, E[1] = E[1] + L | 0, E[2] = E[2] + V | 0, E[3] = E[3] + N | 0;
|
|
3590
3590
|
},
|
|
3591
3591
|
_doFinalize: function() {
|
|
3592
3592
|
var l = this._data, S = l.words, v = this._nDataBytes * 8, x = l.sigBytes * 8;
|
|
@@ -3623,11 +3623,11 @@ function Ft() {
|
|
|
3623
3623
|
i.MD5 = c._createHelper(h), i.HmacMD5 = c._createHmacHelper(h);
|
|
3624
3624
|
}(Math), e.MD5;
|
|
3625
3625
|
});
|
|
3626
|
-
}(
|
|
3626
|
+
}(tr)), tr.exports;
|
|
3627
3627
|
}
|
|
3628
|
-
var
|
|
3628
|
+
var ir = { exports: {} }, sa;
|
|
3629
3629
|
function cn() {
|
|
3630
|
-
return
|
|
3630
|
+
return sa || (sa = 1, function(r, a) {
|
|
3631
3631
|
(function(e, t) {
|
|
3632
3632
|
r.exports = t(ne());
|
|
3633
3633
|
})(ie, function(e) {
|
|
@@ -3667,11 +3667,11 @@ function cn() {
|
|
|
3667
3667
|
t.SHA1 = n._createHelper(u), t.HmacSHA1 = n._createHmacHelper(u);
|
|
3668
3668
|
}(), e.SHA1;
|
|
3669
3669
|
});
|
|
3670
|
-
}(
|
|
3670
|
+
}(ir)), ir.exports;
|
|
3671
3671
|
}
|
|
3672
|
-
var
|
|
3673
|
-
function
|
|
3674
|
-
return
|
|
3672
|
+
var rr = { exports: {} }, aa;
|
|
3673
|
+
function Jr() {
|
|
3674
|
+
return aa || (aa = 1, function(r, a) {
|
|
3675
3675
|
(function(e, t) {
|
|
3676
3676
|
r.exports = t(ne());
|
|
3677
3677
|
})(ie, function(e) {
|
|
@@ -3702,7 +3702,7 @@ function Gr() {
|
|
|
3702
3702
|
var M = p[R - 15], C = (M << 25 | M >>> 7) ^ (M << 14 | M >>> 18) ^ M >>> 3, I = p[R - 2], P = (I << 15 | I >>> 17) ^ (I << 13 | I >>> 19) ^ I >>> 10;
|
|
3703
3703
|
p[R] = C + p[R - 7] + P + p[R - 16];
|
|
3704
3704
|
}
|
|
3705
|
-
var B = E & _ ^ ~E & y, $ = S & v ^ S & x ^ v & x, q = (S << 30 | S >>> 2) ^ (S << 19 | S >>> 13) ^ (S << 10 | S >>> 22),
|
|
3705
|
+
var B = E & _ ^ ~E & y, $ = S & v ^ S & x ^ v & x, q = (S << 30 | S >>> 2) ^ (S << 19 | S >>> 13) ^ (S << 10 | S >>> 22), X = (E << 26 | E >>> 6) ^ (E << 21 | E >>> 11) ^ (E << 7 | E >>> 25), ae = A + X + B + h[R] + p[R], Q = q + $;
|
|
3706
3706
|
A = y, y = _, _ = E, E = b + ae | 0, b = x, x = v, v = S, S = ae + Q | 0;
|
|
3707
3707
|
}
|
|
3708
3708
|
l[0] = l[0] + S | 0, l[1] = l[1] + v | 0, l[2] = l[2] + x | 0, l[3] = l[3] + b | 0, l[4] = l[4] + E | 0, l[5] = l[5] + _ | 0, l[6] = l[6] + y | 0, l[7] = l[7] + A | 0;
|
|
@@ -3719,13 +3719,13 @@ function Gr() {
|
|
|
3719
3719
|
i.SHA256 = c._createHelper(d), i.HmacSHA256 = c._createHmacHelper(d);
|
|
3720
3720
|
}(Math), e.SHA256;
|
|
3721
3721
|
});
|
|
3722
|
-
}(
|
|
3722
|
+
}(rr)), rr.exports;
|
|
3723
3723
|
}
|
|
3724
|
-
var
|
|
3725
|
-
function
|
|
3726
|
-
return
|
|
3724
|
+
var sr = { exports: {} }, na;
|
|
3725
|
+
function Vo() {
|
|
3726
|
+
return na || (na = 1, function(r, a) {
|
|
3727
3727
|
(function(e, t, i) {
|
|
3728
|
-
r.exports = t(ne(),
|
|
3728
|
+
r.exports = t(ne(), Jr());
|
|
3729
3729
|
})(ie, function(e) {
|
|
3730
3730
|
return function() {
|
|
3731
3731
|
var t = e, i = t.lib, s = i.WordArray, n = t.algo, c = n.SHA256, o = n.SHA224 = c.extend({
|
|
@@ -3749,13 +3749,13 @@ function Oo() {
|
|
|
3749
3749
|
t.SHA224 = c._createHelper(o), t.HmacSHA224 = c._createHmacHelper(o);
|
|
3750
3750
|
}(), e.SHA224;
|
|
3751
3751
|
});
|
|
3752
|
-
}(
|
|
3752
|
+
}(sr)), sr.exports;
|
|
3753
3753
|
}
|
|
3754
|
-
var
|
|
3754
|
+
var ar = { exports: {} }, oa;
|
|
3755
3755
|
function un() {
|
|
3756
|
-
return
|
|
3756
|
+
return oa || (oa = 1, function(r, a) {
|
|
3757
3757
|
(function(e, t, i) {
|
|
3758
|
-
r.exports = t(ne(),
|
|
3758
|
+
r.exports = t(ne(), Ai());
|
|
3759
3759
|
})(ie, function(e) {
|
|
3760
3760
|
return function() {
|
|
3761
3761
|
var t = e, i = t.lib, s = i.Hasher, n = t.x64, c = n.Word, o = n.WordArray, u = t.algo;
|
|
@@ -3862,18 +3862,18 @@ function un() {
|
|
|
3862
3862
|
]);
|
|
3863
3863
|
},
|
|
3864
3864
|
_doProcessBlock: function(g, l) {
|
|
3865
|
-
for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], E = S[3], _ = S[4], y = S[5], A = S[6], R = S[7], M = v.high, C = v.low, I = x.high, P = x.low, B = b.high, $ = b.low, q = E.high,
|
|
3866
|
-
var Re,
|
|
3865
|
+
for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], E = S[3], _ = S[4], y = S[5], A = S[6], R = S[7], M = v.high, C = v.low, I = x.high, P = x.low, B = b.high, $ = b.low, q = E.high, X = E.low, ae = _.high, Q = _.low, te = y.high, ee = y.low, k = A.high, L = A.low, V = R.high, N = R.low, J = M, j = C, ce = I, Z = P, Fe = B, ze = $, Qe = q, et = X, Se = ae, ke = Q, ot = te, yt = ee, Ut = k, Ct = L, Xt = V, Rt = N, Be = 0; Be < 80; Be++) {
|
|
3866
|
+
var Re, tt, It = d[Be];
|
|
3867
3867
|
if (Be < 16)
|
|
3868
|
-
|
|
3868
|
+
tt = It.high = g[l + Be * 2] | 0, Re = It.low = g[l + Be * 2 + 1] | 0;
|
|
3869
3869
|
else {
|
|
3870
|
-
var gt = d[Be - 15],
|
|
3871
|
-
Re =
|
|
3870
|
+
var gt = d[Be - 15], it = gt.high, ct = gt.low, Ti = (it >>> 1 | ct << 31) ^ (it >>> 8 | ct << 24) ^ it >>> 7, ci = (ct >>> 1 | it << 31) ^ (ct >>> 8 | it << 24) ^ (ct >>> 7 | it << 25), ui = d[Be - 2], We = ui.high, mt = ui.low, hi = (We >>> 19 | mt << 13) ^ (We << 3 | mt >>> 29) ^ We >>> 6, Yt = (mt >>> 19 | We << 13) ^ (mt << 3 | We >>> 29) ^ (mt >>> 6 | We << 26), os = d[Be - 7], Dn = os.high, Tn = os.low, cs = d[Be - 16], Pn = cs.high, us = cs.low;
|
|
3871
|
+
Re = ci + Tn, tt = Ti + Dn + (Re >>> 0 < ci >>> 0 ? 1 : 0), Re = Re + Yt, tt = tt + hi + (Re >>> 0 < Yt >>> 0 ? 1 : 0), Re = Re + us, tt = tt + Pn + (Re >>> 0 < us >>> 0 ? 1 : 0), It.high = tt, It.low = Re;
|
|
3872
3872
|
}
|
|
3873
|
-
var
|
|
3874
|
-
Xt =
|
|
3873
|
+
var kn = Se & ot ^ ~Se & Ut, hs = ke & yt ^ ~ke & Ct, Bn = J & ce ^ J & Fe ^ ce & Fe, Nn = j & Z ^ j & ze ^ Z & ze, Mn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), ds = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Ln = (Se >>> 14 | ke << 18) ^ (Se >>> 18 | ke << 14) ^ (Se << 23 | ke >>> 9), Vn = (ke >>> 14 | Se << 18) ^ (ke >>> 18 | Se << 14) ^ (ke << 23 | Se >>> 9), ls = p[Be], Fn = ls.high, fs = ls.low, $e = Rt + Vn, xt = Xt + Ln + ($e >>> 0 < Rt >>> 0 ? 1 : 0), $e = $e + hs, xt = xt + kn + ($e >>> 0 < hs >>> 0 ? 1 : 0), $e = $e + fs, xt = xt + Fn + ($e >>> 0 < fs >>> 0 ? 1 : 0), $e = $e + Re, xt = xt + tt + ($e >>> 0 < Re >>> 0 ? 1 : 0), ps = ds + Nn, On = Mn + Bn + (ps >>> 0 < ds >>> 0 ? 1 : 0);
|
|
3874
|
+
Xt = Ut, Rt = Ct, Ut = ot, Ct = yt, ot = Se, yt = ke, ke = et + $e | 0, Se = Qe + xt + (ke >>> 0 < et >>> 0 ? 1 : 0) | 0, Qe = Fe, et = ze, Fe = ce, ze = Z, ce = J, Z = j, j = $e + ps | 0, J = xt + On + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
|
|
3875
3875
|
}
|
|
3876
|
-
C = v.low = C + j, v.high = M + J + (C >>> 0 < j >>> 0 ? 1 : 0), P = x.low = P +
|
|
3876
|
+
C = v.low = C + j, v.high = M + J + (C >>> 0 < j >>> 0 ? 1 : 0), P = x.low = P + Z, x.high = I + ce + (P >>> 0 < Z >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Fe + ($ >>> 0 < ze >>> 0 ? 1 : 0), X = E.low = X + et, E.high = q + Qe + (X >>> 0 < et >>> 0 ? 1 : 0), Q = _.low = Q + ke, _.high = ae + Se + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = y.low = ee + yt, y.high = te + ot + (ee >>> 0 < yt >>> 0 ? 1 : 0), L = A.low = L + Ct, A.high = k + Ut + (L >>> 0 < Ct >>> 0 ? 1 : 0), N = R.low = N + Rt, R.high = V + Xt + (N >>> 0 < Rt >>> 0 ? 1 : 0);
|
|
3877
3877
|
},
|
|
3878
3878
|
_doFinalize: function() {
|
|
3879
3879
|
var g = this._data, l = g.words, S = this._nDataBytes * 8, v = g.sigBytes * 8;
|
|
@@ -3890,13 +3890,13 @@ function un() {
|
|
|
3890
3890
|
t.SHA512 = s._createHelper(f), t.HmacSHA512 = s._createHmacHelper(f);
|
|
3891
3891
|
}(), e.SHA512;
|
|
3892
3892
|
});
|
|
3893
|
-
}(
|
|
3893
|
+
}(ar)), ar.exports;
|
|
3894
3894
|
}
|
|
3895
|
-
var
|
|
3896
|
-
function
|
|
3897
|
-
return
|
|
3895
|
+
var nr = { exports: {} }, ca;
|
|
3896
|
+
function Fo() {
|
|
3897
|
+
return ca || (ca = 1, function(r, a) {
|
|
3898
3898
|
(function(e, t, i) {
|
|
3899
|
-
r.exports = t(ne(),
|
|
3899
|
+
r.exports = t(ne(), Ai(), un());
|
|
3900
3900
|
})(ie, function(e) {
|
|
3901
3901
|
return function() {
|
|
3902
3902
|
var t = e, i = t.x64, s = i.Word, n = i.WordArray, c = t.algo, o = c.SHA512, u = c.SHA384 = o.extend({
|
|
@@ -3920,13 +3920,13 @@ function Uo() {
|
|
|
3920
3920
|
t.SHA384 = o._createHelper(u), t.HmacSHA384 = o._createHmacHelper(u);
|
|
3921
3921
|
}(), e.SHA384;
|
|
3922
3922
|
});
|
|
3923
|
-
}(
|
|
3923
|
+
}(nr)), nr.exports;
|
|
3924
3924
|
}
|
|
3925
|
-
var
|
|
3926
|
-
function
|
|
3927
|
-
return
|
|
3925
|
+
var or = { exports: {} }, ua;
|
|
3926
|
+
function Oo() {
|
|
3927
|
+
return ua || (ua = 1, function(r, a) {
|
|
3928
3928
|
(function(e, t, i) {
|
|
3929
|
-
r.exports = t(ne(),
|
|
3929
|
+
r.exports = t(ne(), Ai());
|
|
3930
3930
|
})(ie, function(e) {
|
|
3931
3931
|
return function(t) {
|
|
3932
3932
|
var i = e, s = i.lib, n = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo, p = [], d = [], f = [];
|
|
@@ -3989,7 +3989,7 @@ function Ho() {
|
|
|
3989
3989
|
B.high = C, B.low = I;
|
|
3990
3990
|
}
|
|
3991
3991
|
for (var M = 0; M < 5; M++)
|
|
3992
|
-
for (var $ = g[(M + 4) % 5], q = g[(M + 1) % 5],
|
|
3992
|
+
for (var $ = g[(M + 4) % 5], q = g[(M + 1) % 5], X = q.high, ae = q.low, C = $.high ^ (X << 1 | ae >>> 31), I = $.low ^ (ae << 1 | X >>> 31), P = 0; P < 5; P++) {
|
|
3993
3993
|
var A = x[M + 5 * P];
|
|
3994
3994
|
A.high ^= C, A.low ^= I;
|
|
3995
3995
|
}
|
|
@@ -4006,8 +4006,8 @@ function Ho() {
|
|
|
4006
4006
|
var Q = M + 5 * P, A = x[Q], J = g[Q], j = g[(M + 1) % 5 + 5 * P], ce = g[(M + 2) % 5 + 5 * P];
|
|
4007
4007
|
A.high = J.high ^ ~j.high & ce.high, A.low = J.low ^ ~j.low & ce.low;
|
|
4008
4008
|
}
|
|
4009
|
-
var A = x[0],
|
|
4010
|
-
A.high ^=
|
|
4009
|
+
var A = x[0], Z = f[R];
|
|
4010
|
+
A.high ^= Z.high, A.low ^= Z.low;
|
|
4011
4011
|
}
|
|
4012
4012
|
},
|
|
4013
4013
|
_doFinalize: function() {
|
|
@@ -4030,11 +4030,11 @@ function Ho() {
|
|
|
4030
4030
|
i.SHA3 = c._createHelper(l), i.HmacSHA3 = c._createHmacHelper(l);
|
|
4031
4031
|
}(Math), e.SHA3;
|
|
4032
4032
|
});
|
|
4033
|
-
}(
|
|
4033
|
+
}(or)), or.exports;
|
|
4034
4034
|
}
|
|
4035
|
-
var
|
|
4036
|
-
function
|
|
4037
|
-
return
|
|
4035
|
+
var cr = { exports: {} }, ha;
|
|
4036
|
+
function Uo() {
|
|
4037
|
+
return ha || (ha = 1, function(r, a) {
|
|
4038
4038
|
(function(e, t) {
|
|
4039
4039
|
r.exports = t(ne());
|
|
4040
4040
|
})(ie, function(e) {
|
|
@@ -4382,11 +4382,11 @@ function jo() {
|
|
|
4382
4382
|
var M = A + R, C = y[M];
|
|
4383
4383
|
y[M] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
|
|
4384
4384
|
}
|
|
4385
|
-
var I = this._hash.words, P = f.words, B = g.words, $ = u.words, q = h.words,
|
|
4385
|
+
var I = this._hash.words, P = f.words, B = g.words, $ = u.words, q = h.words, X = p.words, ae = d.words, Q, te, ee, k, L, V, N, J, j, ce;
|
|
4386
4386
|
V = Q = I[0], N = te = I[1], J = ee = I[2], j = k = I[3], ce = L = I[4];
|
|
4387
|
-
for (var
|
|
4388
|
-
|
|
4389
|
-
|
|
4387
|
+
for (var Z, R = 0; R < 80; R += 1)
|
|
4388
|
+
Z = Q + y[A + $[R]] | 0, R < 16 ? Z += S(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += x(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, X[R]), Z = Z + L | 0, Q = L, L = k, k = _(ee, 10), ee = te, te = Z, Z = V + y[A + q[R]] | 0, R < 16 ? Z += E(N, J, j) + B[0] : R < 32 ? Z += b(N, J, j) + B[1] : R < 48 ? Z += x(N, J, j) + B[2] : R < 64 ? Z += v(N, J, j) + B[3] : Z += S(N, J, j) + B[4], Z = Z | 0, Z = _(Z, ae[R]), Z = Z + ce | 0, V = ce, ce = j, j = _(J, 10), J = N, N = Z;
|
|
4389
|
+
Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] + L + V | 0, I[3] = I[4] + Q + N | 0, I[4] = I[0] + te + J | 0, I[0] = Z;
|
|
4390
4390
|
},
|
|
4391
4391
|
_doFinalize: function() {
|
|
4392
4392
|
var y = this._data, A = y.words, R = this._nDataBytes * 8, M = y.sigBytes * 8;
|
|
@@ -4423,11 +4423,11 @@ function jo() {
|
|
|
4423
4423
|
i.RIPEMD160 = c._createHelper(l), i.HmacRIPEMD160 = c._createHmacHelper(l);
|
|
4424
4424
|
}(), e.RIPEMD160;
|
|
4425
4425
|
});
|
|
4426
|
-
}(
|
|
4426
|
+
}(cr)), cr.exports;
|
|
4427
4427
|
}
|
|
4428
|
-
var
|
|
4429
|
-
function
|
|
4430
|
-
return
|
|
4428
|
+
var ur = { exports: {} }, da;
|
|
4429
|
+
function Gr() {
|
|
4430
|
+
return da || (da = 1, function(r, a) {
|
|
4431
4431
|
(function(e, t) {
|
|
4432
4432
|
r.exports = t(ne());
|
|
4433
4433
|
})(ie, function(e) {
|
|
@@ -4501,13 +4501,13 @@ function Xr() {
|
|
|
4501
4501
|
});
|
|
4502
4502
|
})();
|
|
4503
4503
|
});
|
|
4504
|
-
}(
|
|
4504
|
+
}(ur)), ur.exports;
|
|
4505
4505
|
}
|
|
4506
|
-
var
|
|
4507
|
-
function
|
|
4508
|
-
return
|
|
4506
|
+
var hr = { exports: {} }, la;
|
|
4507
|
+
function Ho() {
|
|
4508
|
+
return la || (la = 1, function(r, a) {
|
|
4509
4509
|
(function(e, t, i) {
|
|
4510
|
-
r.exports = t(ne(),
|
|
4510
|
+
r.exports = t(ne(), Jr(), Gr());
|
|
4511
4511
|
})(ie, function(e) {
|
|
4512
4512
|
return function() {
|
|
4513
4513
|
var t = e, i = t.lib, s = i.Base, n = i.WordArray, c = t.algo, o = c.SHA256, u = c.HMAC, h = c.PBKDF2 = s.extend({
|
|
@@ -4568,13 +4568,13 @@ function zo() {
|
|
|
4568
4568
|
};
|
|
4569
4569
|
}(), e.PBKDF2;
|
|
4570
4570
|
});
|
|
4571
|
-
}(
|
|
4571
|
+
}(hr)), hr.exports;
|
|
4572
4572
|
}
|
|
4573
|
-
var
|
|
4573
|
+
var dr = { exports: {} }, fa;
|
|
4574
4574
|
function At() {
|
|
4575
|
-
return
|
|
4575
|
+
return fa || (fa = 1, function(r, a) {
|
|
4576
4576
|
(function(e, t, i) {
|
|
4577
|
-
r.exports = t(ne(), cn(),
|
|
4577
|
+
r.exports = t(ne(), cn(), Gr());
|
|
4578
4578
|
})(ie, function(e) {
|
|
4579
4579
|
return function() {
|
|
4580
4580
|
var t = e, i = t.lib, s = i.Base, n = i.WordArray, c = t.algo, o = c.MD5, u = c.EvpKDF = s.extend({
|
|
@@ -4631,11 +4631,11 @@ function At() {
|
|
|
4631
4631
|
};
|
|
4632
4632
|
}(), e.EvpKDF;
|
|
4633
4633
|
});
|
|
4634
|
-
}(
|
|
4634
|
+
}(dr)), dr.exports;
|
|
4635
4635
|
}
|
|
4636
|
-
var
|
|
4636
|
+
var lr = { exports: {} }, pa;
|
|
4637
4637
|
function ye() {
|
|
4638
|
-
return
|
|
4638
|
+
return pa || (pa = 1, function(r, a) {
|
|
4639
4639
|
(function(e, t, i) {
|
|
4640
4640
|
r.exports = t(ne(), At());
|
|
4641
4641
|
})(ie, function(e) {
|
|
@@ -4854,13 +4854,13 @@ function ye() {
|
|
|
4854
4854
|
* mode.processBlock(data.words, offset);
|
|
4855
4855
|
*/
|
|
4856
4856
|
processBlock: function(P, B) {
|
|
4857
|
-
var $ = this._cipher, q = $.blockSize,
|
|
4858
|
-
$.decryptBlock(P, B), I.call(this, P, B, q), this._prevBlock =
|
|
4857
|
+
var $ = this._cipher, q = $.blockSize, X = P.slice(B, B + q);
|
|
4858
|
+
$.decryptBlock(P, B), I.call(this, P, B, q), this._prevBlock = X;
|
|
4859
4859
|
}
|
|
4860
4860
|
});
|
|
4861
4861
|
function I(P, B, $) {
|
|
4862
|
-
var q,
|
|
4863
|
-
|
|
4862
|
+
var q, X = this._iv;
|
|
4863
|
+
X ? (q = X, this._iv = t) : q = this._prevBlock;
|
|
4864
4864
|
for (var ae = 0; ae < $; ae++)
|
|
4865
4865
|
P[B + ae] ^= q[ae];
|
|
4866
4866
|
}
|
|
@@ -4879,7 +4879,7 @@ function ye() {
|
|
|
4879
4879
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
4880
4880
|
*/
|
|
4881
4881
|
pad: function(C, I) {
|
|
4882
|
-
for (var P = I * 4, B = P - C.sigBytes % P, $ = B << 24 | B << 16 | B << 8 | B, q = [],
|
|
4882
|
+
for (var P = I * 4, B = P - C.sigBytes % P, $ = B << 24 | B << 16 | B << 8 | B, q = [], X = 0; X < B; X += 4)
|
|
4883
4883
|
q.push($);
|
|
4884
4884
|
var ae = c.create(q, B);
|
|
4885
4885
|
C.concat(ae);
|
|
@@ -5031,14 +5031,14 @@ function ye() {
|
|
|
5031
5031
|
*/
|
|
5032
5032
|
encrypt: function(C, I, P, B) {
|
|
5033
5033
|
B = this.cfg.extend(B);
|
|
5034
|
-
var $ = C.createEncryptor(P, B), q = $.finalize(I),
|
|
5034
|
+
var $ = C.createEncryptor(P, B), q = $.finalize(I), X = $.cfg;
|
|
5035
5035
|
return b.create({
|
|
5036
5036
|
ciphertext: q,
|
|
5037
5037
|
key: P,
|
|
5038
|
-
iv:
|
|
5038
|
+
iv: X.iv,
|
|
5039
5039
|
algorithm: C,
|
|
5040
|
-
mode:
|
|
5041
|
-
padding:
|
|
5040
|
+
mode: X.mode,
|
|
5041
|
+
padding: X.padding,
|
|
5042
5042
|
blockSize: C.blockSize,
|
|
5043
5043
|
formatter: B.format
|
|
5044
5044
|
});
|
|
@@ -5106,8 +5106,8 @@ function ye() {
|
|
|
5106
5106
|
var q = d.create({ keySize: I + P, hasher: $ }).compute(C, B);
|
|
5107
5107
|
else
|
|
5108
5108
|
var q = d.create({ keySize: I + P }).compute(C, B);
|
|
5109
|
-
var
|
|
5110
|
-
return q.sigBytes = I * 4, b.create({ key: q, iv:
|
|
5109
|
+
var X = c.create(q.words.slice(I), P * 4);
|
|
5110
|
+
return q.sigBytes = I * 4, b.create({ key: q, iv: X, salt: B });
|
|
5111
5111
|
}
|
|
5112
5112
|
}, M = s.PasswordBasedCipher = y.extend({
|
|
5113
5113
|
/**
|
|
@@ -5169,11 +5169,11 @@ function ye() {
|
|
|
5169
5169
|
});
|
|
5170
5170
|
}();
|
|
5171
5171
|
});
|
|
5172
|
-
}(
|
|
5172
|
+
}(lr)), lr.exports;
|
|
5173
5173
|
}
|
|
5174
|
-
var
|
|
5175
|
-
function
|
|
5176
|
-
return
|
|
5174
|
+
var fr = { exports: {} }, ga;
|
|
5175
|
+
function jo() {
|
|
5176
|
+
return ga || (ga = 1, function(r, a) {
|
|
5177
5177
|
(function(e, t, i) {
|
|
5178
5178
|
r.exports = t(ne(), ye());
|
|
5179
5179
|
})(ie, function(e) {
|
|
@@ -5199,11 +5199,11 @@ function Wo() {
|
|
|
5199
5199
|
return t;
|
|
5200
5200
|
}(), e.mode.CFB;
|
|
5201
5201
|
});
|
|
5202
|
-
}(
|
|
5202
|
+
}(fr)), fr.exports;
|
|
5203
5203
|
}
|
|
5204
|
-
var
|
|
5205
|
-
function
|
|
5206
|
-
return
|
|
5204
|
+
var pr = { exports: {} }, ma;
|
|
5205
|
+
function zo() {
|
|
5206
|
+
return ma || (ma = 1, function(r, a) {
|
|
5207
5207
|
(function(e, t, i) {
|
|
5208
5208
|
r.exports = t(ne(), ye());
|
|
5209
5209
|
})(ie, function(e) {
|
|
@@ -5221,11 +5221,11 @@ function $o() {
|
|
|
5221
5221
|
return t.Decryptor = i, t;
|
|
5222
5222
|
}(), e.mode.CTR;
|
|
5223
5223
|
});
|
|
5224
|
-
}(
|
|
5224
|
+
}(pr)), pr.exports;
|
|
5225
5225
|
}
|
|
5226
|
-
var
|
|
5227
|
-
function
|
|
5228
|
-
return
|
|
5226
|
+
var gr = { exports: {} }, xa;
|
|
5227
|
+
function Wo() {
|
|
5228
|
+
return xa || (xa = 1, function(r, a) {
|
|
5229
5229
|
(function(e, t, i) {
|
|
5230
5230
|
r.exports = t(ne(), ye());
|
|
5231
5231
|
})(ie, function(e) {
|
|
@@ -5260,11 +5260,11 @@ function Ko() {
|
|
|
5260
5260
|
return t.Decryptor = n, t;
|
|
5261
5261
|
}(), e.mode.CTRGladman;
|
|
5262
5262
|
});
|
|
5263
|
-
}(
|
|
5263
|
+
}(gr)), gr.exports;
|
|
5264
5264
|
}
|
|
5265
|
-
var
|
|
5266
|
-
function
|
|
5267
|
-
return
|
|
5265
|
+
var mr = { exports: {} }, Sa;
|
|
5266
|
+
function $o() {
|
|
5267
|
+
return Sa || (Sa = 1, function(r, a) {
|
|
5268
5268
|
(function(e, t, i) {
|
|
5269
5269
|
r.exports = t(ne(), ye());
|
|
5270
5270
|
})(ie, function(e) {
|
|
@@ -5280,11 +5280,11 @@ function qo() {
|
|
|
5280
5280
|
return t.Decryptor = i, t;
|
|
5281
5281
|
}(), e.mode.OFB;
|
|
5282
5282
|
});
|
|
5283
|
-
}(
|
|
5283
|
+
}(mr)), mr.exports;
|
|
5284
5284
|
}
|
|
5285
|
-
var
|
|
5286
|
-
function
|
|
5287
|
-
return
|
|
5285
|
+
var xr = { exports: {} }, va;
|
|
5286
|
+
function Ko() {
|
|
5287
|
+
return va || (va = 1, function(r, a) {
|
|
5288
5288
|
(function(e, t, i) {
|
|
5289
5289
|
r.exports = t(ne(), ye());
|
|
5290
5290
|
})(ie, function(e) {
|
|
@@ -5301,11 +5301,11 @@ function Jo() {
|
|
|
5301
5301
|
}), t;
|
|
5302
5302
|
}(), e.mode.ECB;
|
|
5303
5303
|
});
|
|
5304
|
-
}(
|
|
5304
|
+
}(xr)), xr.exports;
|
|
5305
5305
|
}
|
|
5306
|
-
var
|
|
5307
|
-
function
|
|
5308
|
-
return
|
|
5306
|
+
var Sr = { exports: {} }, ba;
|
|
5307
|
+
function qo() {
|
|
5308
|
+
return ba || (ba = 1, function(r, a) {
|
|
5309
5309
|
(function(e, t, i) {
|
|
5310
5310
|
r.exports = t(ne(), ye());
|
|
5311
5311
|
})(ie, function(e) {
|
|
@@ -5320,11 +5320,11 @@ function Go() {
|
|
|
5320
5320
|
}
|
|
5321
5321
|
}, e.pad.Ansix923;
|
|
5322
5322
|
});
|
|
5323
|
-
}(
|
|
5323
|
+
}(Sr)), Sr.exports;
|
|
5324
5324
|
}
|
|
5325
|
-
var
|
|
5326
|
-
function
|
|
5327
|
-
return
|
|
5325
|
+
var vr = { exports: {} }, Ea;
|
|
5326
|
+
function Jo() {
|
|
5327
|
+
return Ea || (Ea = 1, function(r, a) {
|
|
5328
5328
|
(function(e, t, i) {
|
|
5329
5329
|
r.exports = t(ne(), ye());
|
|
5330
5330
|
})(ie, function(e) {
|
|
@@ -5339,11 +5339,11 @@ function Xo() {
|
|
|
5339
5339
|
}
|
|
5340
5340
|
}, e.pad.Iso10126;
|
|
5341
5341
|
});
|
|
5342
|
-
}(
|
|
5342
|
+
}(vr)), vr.exports;
|
|
5343
5343
|
}
|
|
5344
|
-
var
|
|
5345
|
-
function
|
|
5346
|
-
return
|
|
5344
|
+
var br = { exports: {} }, _a;
|
|
5345
|
+
function Go() {
|
|
5346
|
+
return _a || (_a = 1, function(r, a) {
|
|
5347
5347
|
(function(e, t, i) {
|
|
5348
5348
|
r.exports = t(ne(), ye());
|
|
5349
5349
|
})(ie, function(e) {
|
|
@@ -5356,11 +5356,11 @@ function Yo() {
|
|
|
5356
5356
|
}
|
|
5357
5357
|
}, e.pad.Iso97971;
|
|
5358
5358
|
});
|
|
5359
|
-
}(
|
|
5359
|
+
}(br)), br.exports;
|
|
5360
5360
|
}
|
|
5361
|
-
var
|
|
5362
|
-
function
|
|
5363
|
-
return
|
|
5361
|
+
var Er = { exports: {} }, Aa;
|
|
5362
|
+
function Xo() {
|
|
5363
|
+
return Aa || (Aa = 1, function(r, a) {
|
|
5364
5364
|
(function(e, t, i) {
|
|
5365
5365
|
r.exports = t(ne(), ye());
|
|
5366
5366
|
})(ie, function(e) {
|
|
@@ -5378,11 +5378,11 @@ function Zo() {
|
|
|
5378
5378
|
}
|
|
5379
5379
|
}, e.pad.ZeroPadding;
|
|
5380
5380
|
});
|
|
5381
|
-
}(
|
|
5381
|
+
}(Er)), Er.exports;
|
|
5382
5382
|
}
|
|
5383
|
-
var
|
|
5384
|
-
function
|
|
5385
|
-
return
|
|
5383
|
+
var _r = { exports: {} }, ya;
|
|
5384
|
+
function Yo() {
|
|
5385
|
+
return ya || (ya = 1, function(r, a) {
|
|
5386
5386
|
(function(e, t, i) {
|
|
5387
5387
|
r.exports = t(ne(), ye());
|
|
5388
5388
|
})(ie, function(e) {
|
|
@@ -5393,11 +5393,11 @@ function Qo() {
|
|
|
5393
5393
|
}
|
|
5394
5394
|
}, e.pad.NoPadding;
|
|
5395
5395
|
});
|
|
5396
|
-
}(
|
|
5396
|
+
}(_r)), _r.exports;
|
|
5397
5397
|
}
|
|
5398
|
-
var
|
|
5399
|
-
function
|
|
5400
|
-
return
|
|
5398
|
+
var Ar = { exports: {} }, Ca;
|
|
5399
|
+
function Zo() {
|
|
5400
|
+
return Ca || (Ca = 1, function(r, a) {
|
|
5401
5401
|
(function(e, t, i) {
|
|
5402
5402
|
r.exports = t(ne(), ye());
|
|
5403
5403
|
})(ie, function(e) {
|
|
@@ -5440,13 +5440,13 @@ function e0() {
|
|
|
5440
5440
|
};
|
|
5441
5441
|
}(), e.format.Hex;
|
|
5442
5442
|
});
|
|
5443
|
-
}(
|
|
5443
|
+
}(Ar)), Ar.exports;
|
|
5444
5444
|
}
|
|
5445
|
-
var
|
|
5446
|
-
function
|
|
5447
|
-
return
|
|
5445
|
+
var yr = { exports: {} }, Ra;
|
|
5446
|
+
function Qo() {
|
|
5447
|
+
return Ra || (Ra = 1, function(r, a) {
|
|
5448
5448
|
(function(e, t, i) {
|
|
5449
|
-
r.exports = t(ne(),
|
|
5449
|
+
r.exports = t(ne(), Ft(), Ot(), At(), ye());
|
|
5450
5450
|
})(ie, function(e) {
|
|
5451
5451
|
return function() {
|
|
5452
5452
|
var t = e, i = t.lib, s = i.BlockCipher, n = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [];
|
|
@@ -5488,11 +5488,11 @@ function t0() {
|
|
|
5488
5488
|
b[E + 1] = b[E + 3], b[E + 3] = _;
|
|
5489
5489
|
},
|
|
5490
5490
|
_doCryptBlock: function(b, E, _, y, A, R, M, C) {
|
|
5491
|
-
for (var I = this._nRounds, P = b[E] ^ _[0], B = b[E + 1] ^ _[1], $ = b[E + 2] ^ _[2], q = b[E + 3] ^ _[3],
|
|
5492
|
-
var Q = y[P >>> 24] ^ A[B >>> 16 & 255] ^ R[$ >>> 8 & 255] ^ M[q & 255] ^ _[
|
|
5491
|
+
for (var I = this._nRounds, P = b[E] ^ _[0], B = b[E + 1] ^ _[1], $ = b[E + 2] ^ _[2], q = b[E + 3] ^ _[3], X = 4, ae = 1; ae < I; ae++) {
|
|
5492
|
+
var Q = y[P >>> 24] ^ A[B >>> 16 & 255] ^ R[$ >>> 8 & 255] ^ M[q & 255] ^ _[X++], te = y[B >>> 24] ^ A[$ >>> 16 & 255] ^ R[q >>> 8 & 255] ^ M[P & 255] ^ _[X++], ee = y[$ >>> 24] ^ A[q >>> 16 & 255] ^ R[P >>> 8 & 255] ^ M[B & 255] ^ _[X++], k = y[q >>> 24] ^ A[P >>> 16 & 255] ^ R[B >>> 8 & 255] ^ M[$ & 255] ^ _[X++];
|
|
5493
5493
|
P = Q, B = te, $ = ee, q = k;
|
|
5494
5494
|
}
|
|
5495
|
-
var Q = (C[P >>> 24] << 24 | C[B >>> 16 & 255] << 16 | C[$ >>> 8 & 255] << 8 | C[q & 255]) ^ _[
|
|
5495
|
+
var Q = (C[P >>> 24] << 24 | C[B >>> 16 & 255] << 16 | C[$ >>> 8 & 255] << 8 | C[q & 255]) ^ _[X++], te = (C[B >>> 24] << 24 | C[$ >>> 16 & 255] << 16 | C[q >>> 8 & 255] << 8 | C[P & 255]) ^ _[X++], ee = (C[$ >>> 24] << 24 | C[q >>> 16 & 255] << 16 | C[P >>> 8 & 255] << 8 | C[B & 255]) ^ _[X++], k = (C[q >>> 24] << 24 | C[P >>> 16 & 255] << 16 | C[B >>> 8 & 255] << 8 | C[$ & 255]) ^ _[X++];
|
|
5496
5496
|
b[E] = Q, b[E + 1] = te, b[E + 2] = ee, b[E + 3] = k;
|
|
5497
5497
|
},
|
|
5498
5498
|
keySize: 256 / 32
|
|
@@ -5500,13 +5500,13 @@ function t0() {
|
|
|
5500
5500
|
t.AES = s._createHelper(x);
|
|
5501
5501
|
}(), e.AES;
|
|
5502
5502
|
});
|
|
5503
|
-
}(
|
|
5503
|
+
}(yr)), yr.exports;
|
|
5504
5504
|
}
|
|
5505
|
-
var
|
|
5506
|
-
function
|
|
5507
|
-
return
|
|
5505
|
+
var Cr = { exports: {} }, Ia;
|
|
5506
|
+
function e0() {
|
|
5507
|
+
return Ia || (Ia = 1, function(r, a) {
|
|
5508
5508
|
(function(e, t, i) {
|
|
5509
|
-
r.exports = t(ne(),
|
|
5509
|
+
r.exports = t(ne(), Ft(), Ot(), At(), ye());
|
|
5510
5510
|
})(ie, function(e) {
|
|
5511
5511
|
return function() {
|
|
5512
5512
|
var t = e, i = t.lib, s = i.WordArray, n = i.BlockCipher, c = t.algo, o = [
|
|
@@ -6220,13 +6220,13 @@ function i0() {
|
|
|
6220
6220
|
t.TripleDES = n._createHelper(S);
|
|
6221
6221
|
}(), e.TripleDES;
|
|
6222
6222
|
});
|
|
6223
|
-
}(
|
|
6223
|
+
}(Cr)), Cr.exports;
|
|
6224
6224
|
}
|
|
6225
|
-
var
|
|
6226
|
-
function
|
|
6227
|
-
return
|
|
6225
|
+
var Rr = { exports: {} }, wa;
|
|
6226
|
+
function t0() {
|
|
6227
|
+
return wa || (wa = 1, function(r, a) {
|
|
6228
6228
|
(function(e, t, i) {
|
|
6229
|
-
r.exports = t(ne(),
|
|
6229
|
+
r.exports = t(ne(), Ft(), Ot(), At(), ye());
|
|
6230
6230
|
})(ie, function(e) {
|
|
6231
6231
|
return function() {
|
|
6232
6232
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = n.RC4 = s.extend({
|
|
@@ -6274,13 +6274,13 @@ function r0() {
|
|
|
6274
6274
|
t.RC4Drop = s._createHelper(u);
|
|
6275
6275
|
}(), e.RC4;
|
|
6276
6276
|
});
|
|
6277
|
-
}(
|
|
6277
|
+
}(Rr)), Rr.exports;
|
|
6278
6278
|
}
|
|
6279
|
-
var
|
|
6280
|
-
function
|
|
6281
|
-
return
|
|
6279
|
+
var Ir = { exports: {} }, Da;
|
|
6280
|
+
function i0() {
|
|
6281
|
+
return Da || (Da = 1, function(r, a) {
|
|
6282
6282
|
(function(e, t, i) {
|
|
6283
|
-
r.exports = t(ne(),
|
|
6283
|
+
r.exports = t(ne(), Ft(), Ot(), At(), ye());
|
|
6284
6284
|
})(ie, function(e) {
|
|
6285
6285
|
return function() {
|
|
6286
6286
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = [], o = [], u = [], h = n.Rabbit = s.extend({
|
|
@@ -6340,13 +6340,13 @@ function s0() {
|
|
|
6340
6340
|
t.Rabbit = s._createHelper(h);
|
|
6341
6341
|
}(), e.Rabbit;
|
|
6342
6342
|
});
|
|
6343
|
-
}(
|
|
6343
|
+
}(Ir)), Ir.exports;
|
|
6344
6344
|
}
|
|
6345
|
-
var
|
|
6346
|
-
function
|
|
6347
|
-
return
|
|
6345
|
+
var wr = { exports: {} }, Ta;
|
|
6346
|
+
function r0() {
|
|
6347
|
+
return Ta || (Ta = 1, function(r, a) {
|
|
6348
6348
|
(function(e, t, i) {
|
|
6349
|
-
r.exports = t(ne(),
|
|
6349
|
+
r.exports = t(ne(), Ft(), Ot(), At(), ye());
|
|
6350
6350
|
})(ie, function(e) {
|
|
6351
6351
|
return function() {
|
|
6352
6352
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = [], o = [], u = [], h = n.RabbitLegacy = s.extend({
|
|
@@ -6404,13 +6404,13 @@ function a0() {
|
|
|
6404
6404
|
t.RabbitLegacy = s._createHelper(h);
|
|
6405
6405
|
}(), e.RabbitLegacy;
|
|
6406
6406
|
});
|
|
6407
|
-
}(
|
|
6407
|
+
}(wr)), wr.exports;
|
|
6408
6408
|
}
|
|
6409
|
-
var
|
|
6410
|
-
function
|
|
6411
|
-
return
|
|
6409
|
+
var Dr = { exports: {} }, Pa;
|
|
6410
|
+
function s0() {
|
|
6411
|
+
return Pa || (Pa = 1, function(r, a) {
|
|
6412
6412
|
(function(e, t, i) {
|
|
6413
|
-
r.exports = t(ne(),
|
|
6413
|
+
r.exports = t(ne(), Ft(), Ot(), At(), ye());
|
|
6414
6414
|
})(ie, function(e) {
|
|
6415
6415
|
return function() {
|
|
6416
6416
|
var t = e, i = t.lib, s = i.BlockCipher, n = t.algo;
|
|
@@ -7526,21 +7526,21 @@ function n0() {
|
|
|
7526
7526
|
t.Blowfish = s._createHelper(l);
|
|
7527
7527
|
}(), e.Blowfish;
|
|
7528
7528
|
});
|
|
7529
|
-
}(
|
|
7529
|
+
}(Dr)), Dr.exports;
|
|
7530
7530
|
}
|
|
7531
7531
|
(function(r, a) {
|
|
7532
7532
|
(function(e, t, i) {
|
|
7533
|
-
r.exports = t(ne(),
|
|
7533
|
+
r.exports = t(ne(), Ai(), No(), Mo(), Ft(), Lo(), Ot(), cn(), Jr(), Vo(), un(), Fo(), Oo(), Uo(), Gr(), Ho(), At(), ye(), jo(), zo(), Wo(), $o(), Ko(), qo(), Jo(), Go(), Xo(), Yo(), Zo(), Qo(), e0(), t0(), i0(), r0(), s0());
|
|
7534
7534
|
})(ie, function(e) {
|
|
7535
7535
|
return e;
|
|
7536
7536
|
});
|
|
7537
7537
|
})(on);
|
|
7538
|
-
var
|
|
7539
|
-
const
|
|
7540
|
-
function
|
|
7541
|
-
return
|
|
7538
|
+
var a0 = on.exports;
|
|
7539
|
+
const si = /* @__PURE__ */ wo(a0);
|
|
7540
|
+
function n0(r) {
|
|
7541
|
+
return si.MD5(r).toString().toUpperCase();
|
|
7542
7542
|
}
|
|
7543
|
-
function
|
|
7543
|
+
function o0(r, a, e, t, i, s, n, c) {
|
|
7544
7544
|
var o;
|
|
7545
7545
|
let u = "";
|
|
7546
7546
|
s.set("x-log-apiversion", "0.6.0"), s.set("x-log-signaturemethod", "hmac-sha1"), u += r + `
|
|
@@ -7560,10 +7560,10 @@ function u0(r, a, e, t, i, s, n, c) {
|
|
|
7560
7560
|
u += [...i.entries()].sort(h).map((g) => g[0] + "=" + g[1]).join("&");
|
|
7561
7561
|
} catch (g) {
|
|
7562
7562
|
}
|
|
7563
|
-
const d =
|
|
7563
|
+
const d = si.HmacSHA1(u, t).toString(si.enc.Base64), f = "LOG " + e + ":" + d;
|
|
7564
7564
|
return s.set("Authorization", f), s.set("x-log-date", c), f;
|
|
7565
7565
|
}
|
|
7566
|
-
var
|
|
7566
|
+
var c0 = (r, a, e) => new Promise((t, i) => {
|
|
7567
7567
|
var s = (o) => {
|
|
7568
7568
|
try {
|
|
7569
7569
|
c(e.next(o));
|
|
@@ -7579,8 +7579,8 @@ var h0 = (r, a, e) => new Promise((t, i) => {
|
|
|
7579
7579
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
|
|
7580
7580
|
c((e = e.apply(r, a)).next());
|
|
7581
7581
|
});
|
|
7582
|
-
function
|
|
7583
|
-
return
|
|
7582
|
+
function u0(r) {
|
|
7583
|
+
return c0(this, null, function* () {
|
|
7584
7584
|
const a = /* @__PURE__ */ new Date();
|
|
7585
7585
|
if (r.refreshSTSTokenInterval || (r.refreshSTSTokenInterval = 3e5), !r.stsTokenFreshTime || +a - r.stsTokenFreshTime >= r.refreshSTSTokenInterval) {
|
|
7586
7586
|
r.stsTokenFreshTime = a;
|
|
@@ -7594,7 +7594,7 @@ function d0(r) {
|
|
|
7594
7594
|
return null;
|
|
7595
7595
|
});
|
|
7596
7596
|
}
|
|
7597
|
-
var
|
|
7597
|
+
var h0 = (r, a, e) => new Promise((t, i) => {
|
|
7598
7598
|
var s = (o) => {
|
|
7599
7599
|
try {
|
|
7600
7600
|
c(e.next(o));
|
|
@@ -7610,7 +7610,7 @@ var l0 = (r, a, e) => new Promise((t, i) => {
|
|
|
7610
7610
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
|
|
7611
7611
|
c((e = e.apply(r, a)).next());
|
|
7612
7612
|
});
|
|
7613
|
-
function
|
|
7613
|
+
function Xr(r) {
|
|
7614
7614
|
return {
|
|
7615
7615
|
transString: function(a) {
|
|
7616
7616
|
let e = {}, t = 0, i = !1;
|
|
@@ -7624,14 +7624,14 @@ function Yr(r) {
|
|
|
7624
7624
|
return e.__time__ = i ? t : Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3), e;
|
|
7625
7625
|
},
|
|
7626
7626
|
process: function(a, e) {
|
|
7627
|
-
return
|
|
7628
|
-
yield
|
|
7629
|
-
let t = a.slice(a.indexOf("/logstores")), i = e.length, s =
|
|
7627
|
+
return h0(this, null, function* () {
|
|
7628
|
+
yield u0(r);
|
|
7629
|
+
let t = a.slice(a.indexOf("/logstores")), i = e.length, s = n0(e), n = (/* @__PURE__ */ new Date()).toUTCString(), c = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map([
|
|
7630
7630
|
["Content-Type", "application/json"],
|
|
7631
7631
|
["Content-MD5", s],
|
|
7632
7632
|
["x-log-bodyrawsize", i.toString()]
|
|
7633
7633
|
]);
|
|
7634
|
-
r.securityToken && o.set("x-acs-security-token", r.securityToken),
|
|
7634
|
+
r.securityToken && o.set("x-acs-security-token", r.securityToken), o0("POST", t, r.accessKeyId, r.accessKeySecret, c, o, s, n);
|
|
7635
7635
|
let u = Object.fromEntries(o);
|
|
7636
7636
|
return {
|
|
7637
7637
|
data: e,
|
|
@@ -7641,12 +7641,12 @@ function Yr(r) {
|
|
|
7641
7641
|
}
|
|
7642
7642
|
};
|
|
7643
7643
|
}
|
|
7644
|
-
typeof window != "undefined" && nn(window, "stsPlugin",
|
|
7645
|
-
var
|
|
7646
|
-
function
|
|
7644
|
+
typeof window != "undefined" && nn(window, "stsPlugin", Xr);
|
|
7645
|
+
var d0 = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, l0 = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, f0 = /[^-+\dA-Z]/g;
|
|
7646
|
+
function Yr(r, a, e, t) {
|
|
7647
7647
|
if (arguments.length === 1 && typeof r == "string" && !/\d/.test(r) && (a = r, r = void 0), r = r || r === 0 ? r : /* @__PURE__ */ new Date(), r instanceof Date || (r = new Date(r)), isNaN(r))
|
|
7648
7648
|
throw TypeError("Invalid date");
|
|
7649
|
-
a = String(
|
|
7649
|
+
a = String(ka[a] || a || ka.default);
|
|
7650
7650
|
var i = a.slice(0, 4);
|
|
7651
7651
|
(i === "UTC:" || i === "GMT:") && (a = a.slice(4), e = !0, i === "GMT:" && (t = !0));
|
|
7652
7652
|
var s = function() {
|
|
@@ -7670,9 +7670,9 @@ function Zr(r, a, e, t) {
|
|
|
7670
7670
|
}, g = function() {
|
|
7671
7671
|
return e ? 0 : r.getTimezoneOffset();
|
|
7672
7672
|
}, l = function() {
|
|
7673
|
-
return
|
|
7673
|
+
return p0(r);
|
|
7674
7674
|
}, S = function() {
|
|
7675
|
-
return
|
|
7675
|
+
return g0(r);
|
|
7676
7676
|
}, v = { d: function() {
|
|
7677
7677
|
return n();
|
|
7678
7678
|
}, dd: function() {
|
|
@@ -7680,11 +7680,11 @@ function Zr(r, a, e, t) {
|
|
|
7680
7680
|
}, ddd: function() {
|
|
7681
7681
|
return Oe.dayNames[c()];
|
|
7682
7682
|
}, DDD: function() {
|
|
7683
|
-
return
|
|
7683
|
+
return Ba({ y: u(), m: o(), d: n(), _: s(), dayName: Oe.dayNames[c()], short: !0 });
|
|
7684
7684
|
}, dddd: function() {
|
|
7685
7685
|
return Oe.dayNames[c() + 7];
|
|
7686
7686
|
}, DDDD: function() {
|
|
7687
|
-
return
|
|
7687
|
+
return Ba({ y: u(), m: o(), d: n(), _: s(), dayName: Oe.dayNames[c() + 7] });
|
|
7688
7688
|
}, m: function() {
|
|
7689
7689
|
return o() + 1;
|
|
7690
7690
|
}, mm: function() {
|
|
@@ -7726,7 +7726,7 @@ function Zr(r, a, e, t) {
|
|
|
7726
7726
|
}, TT: function() {
|
|
7727
7727
|
return h() < 12 ? Oe.timeNames[6] : Oe.timeNames[7];
|
|
7728
7728
|
}, Z: function() {
|
|
7729
|
-
return t ? "GMT" : e ? "UTC" :
|
|
7729
|
+
return t ? "GMT" : e ? "UTC" : m0(r);
|
|
7730
7730
|
}, o: function() {
|
|
7731
7731
|
return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60) * 100 + Math.abs(g()) % 60, 4);
|
|
7732
7732
|
}, p: function() {
|
|
@@ -7740,14 +7740,14 @@ function Zr(r, a, e, t) {
|
|
|
7740
7740
|
}, N: function() {
|
|
7741
7741
|
return S();
|
|
7742
7742
|
} };
|
|
7743
|
-
return a.replace(
|
|
7743
|
+
return a.replace(d0, function(x) {
|
|
7744
7744
|
return x in v ? v[x]() : x.slice(1, x.length - 1);
|
|
7745
7745
|
});
|
|
7746
7746
|
}
|
|
7747
|
-
var
|
|
7747
|
+
var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Oe = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, Ke = function(a) {
|
|
7748
7748
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
7749
7749
|
return String(a).padStart(e, "0");
|
|
7750
|
-
},
|
|
7750
|
+
}, Ba = function(a) {
|
|
7751
7751
|
var e = a.y, t = a.m, i = a.d, s = a._, n = a.dayName, c = a.short, o = c === void 0 ? !1 : c, u = /* @__PURE__ */ new Date(), h = /* @__PURE__ */ new Date();
|
|
7752
7752
|
h.setDate(h[s + "Date"]() - 1);
|
|
7753
7753
|
var p = /* @__PURE__ */ new Date();
|
|
@@ -7772,7 +7772,7 @@ var Ba = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
7772
7772
|
return p[s + "FullYear"]();
|
|
7773
7773
|
};
|
|
7774
7774
|
return g() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && S() === t && l() === i ? o ? "Ysd" : "Yesterday" : E() === e && b() === t && x() === i ? o ? "Tmw" : "Tomorrow" : n;
|
|
7775
|
-
},
|
|
7775
|
+
}, p0 = function(a) {
|
|
7776
7776
|
var e = new Date(a.getFullYear(), a.getMonth(), a.getDate());
|
|
7777
7777
|
e.setDate(e.getDate() - (e.getDay() + 6) % 7 + 3);
|
|
7778
7778
|
var t = new Date(e.getFullYear(), 0, 4);
|
|
@@ -7781,22 +7781,22 @@ var Ba = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
7781
7781
|
e.setHours(e.getHours() - i);
|
|
7782
7782
|
var s = (e - t) / (864e5 * 7);
|
|
7783
7783
|
return 1 + Math.floor(s);
|
|
7784
|
-
},
|
|
7784
|
+
}, g0 = function(a) {
|
|
7785
7785
|
var e = a.getDay();
|
|
7786
7786
|
return e === 0 && (e = 7), e;
|
|
7787
|
-
},
|
|
7788
|
-
return (String(a).match(
|
|
7787
|
+
}, m0 = function(a) {
|
|
7788
|
+
return (String(a).match(l0) || [""]).pop().replace(f0, "").replace(/GMT\+0000/g, "UTC");
|
|
7789
7789
|
};
|
|
7790
|
-
const { BrowserUtil:
|
|
7790
|
+
const { BrowserUtil: x0 } = le, Ht = {
|
|
7791
7791
|
EdgeHTML: "EdgeHTML",
|
|
7792
7792
|
Blink: "Blink",
|
|
7793
7793
|
Trident: "Trident",
|
|
7794
7794
|
Gecko: "Gecko",
|
|
7795
7795
|
WebKit: "WebKit"
|
|
7796
|
-
},
|
|
7796
|
+
}, fi = (r, a) => {
|
|
7797
7797
|
const e = a.match(r);
|
|
7798
7798
|
return e && e.length > 0 && e[1] || "";
|
|
7799
|
-
},
|
|
7799
|
+
}, S0 = [
|
|
7800
7800
|
/* EdgeHTML */
|
|
7801
7801
|
{
|
|
7802
7802
|
test: [/\sedg\//i, [/edg([ea]|ios)/i]],
|
|
@@ -7805,7 +7805,7 @@ const { BrowserUtil: v0 } = le, Ht = {
|
|
|
7805
7805
|
return {
|
|
7806
7806
|
name: Ht.Blink
|
|
7807
7807
|
};
|
|
7808
|
-
const e =
|
|
7808
|
+
const e = fi(/edge\/(\d+(\.?_?\d+)+)/i, r);
|
|
7809
7809
|
return {
|
|
7810
7810
|
name: Ht.EdgeHTML,
|
|
7811
7811
|
version: e
|
|
@@ -7818,7 +7818,7 @@ const { BrowserUtil: v0 } = le, Ht = {
|
|
|
7818
7818
|
describe(r) {
|
|
7819
7819
|
const a = {
|
|
7820
7820
|
name: Ht.Trident
|
|
7821
|
-
}, e =
|
|
7821
|
+
}, e = fi(/trident\/(\d+(\.?_?\d+)+)/i, r);
|
|
7822
7822
|
return e && (a.version = e), a;
|
|
7823
7823
|
}
|
|
7824
7824
|
},
|
|
@@ -7831,7 +7831,7 @@ const { BrowserUtil: v0 } = le, Ht = {
|
|
|
7831
7831
|
describe(r) {
|
|
7832
7832
|
const a = {
|
|
7833
7833
|
name: Ht.Gecko
|
|
7834
|
-
}, e =
|
|
7834
|
+
}, e = fi(/gecko\/(\d+(\.?_?\d+)+)/i, r);
|
|
7835
7835
|
return e && (a.version = e), a;
|
|
7836
7836
|
}
|
|
7837
7837
|
},
|
|
@@ -7850,26 +7850,26 @@ const { BrowserUtil: v0 } = le, Ht = {
|
|
|
7850
7850
|
describe(r) {
|
|
7851
7851
|
const a = {
|
|
7852
7852
|
name: Ht.WebKit
|
|
7853
|
-
}, e =
|
|
7853
|
+
}, e = fi(/webkit\/(\d+(\.?_?\d+)+)/i, r);
|
|
7854
7854
|
return e && (a.version = e), a;
|
|
7855
7855
|
}
|
|
7856
7856
|
}
|
|
7857
|
-
],
|
|
7857
|
+
], Zr = (r, a) => r.find((e) => {
|
|
7858
7858
|
if (typeof e.test == "function")
|
|
7859
7859
|
return e.test(a);
|
|
7860
7860
|
if (Array.isArray(e.test))
|
|
7861
7861
|
return e.test.some((t) => typeof t == "string" ? a.indexOf(t) > -1 : t instanceof RegExp ? t.test(a) : !1);
|
|
7862
|
-
}),
|
|
7862
|
+
}), v0 = () => {
|
|
7863
7863
|
try {
|
|
7864
|
-
const r = navigator.userAgent || "", a =
|
|
7864
|
+
const r = navigator.userAgent || "", a = Zr(S0, r);
|
|
7865
7865
|
if (a) {
|
|
7866
7866
|
const e = a.describe(r);
|
|
7867
|
-
return `${e.name}/${e.version ||
|
|
7867
|
+
return `${e.name}/${e.version || x0.browserVersion}`;
|
|
7868
7868
|
}
|
|
7869
7869
|
} catch (r) {
|
|
7870
7870
|
}
|
|
7871
7871
|
return navigator.userAgent;
|
|
7872
|
-
},
|
|
7872
|
+
}, b0 = [
|
|
7873
7873
|
{
|
|
7874
7874
|
test: ["wow64", "win64", "x64"],
|
|
7875
7875
|
describe() {
|
|
@@ -7897,14 +7897,14 @@ const { BrowserUtil: v0 } = le, Ht = {
|
|
|
7897
7897
|
], hn = () => {
|
|
7898
7898
|
let r = "unknown";
|
|
7899
7899
|
try {
|
|
7900
|
-
const a = navigator.userAgent || "", e =
|
|
7900
|
+
const a = navigator.userAgent || "", e = Zr(b0, a);
|
|
7901
7901
|
if (!e)
|
|
7902
7902
|
return r;
|
|
7903
7903
|
r = e.describe(a);
|
|
7904
7904
|
} catch (a) {
|
|
7905
7905
|
}
|
|
7906
7906
|
return r;
|
|
7907
|
-
},
|
|
7907
|
+
}, E0 = [
|
|
7908
7908
|
{
|
|
7909
7909
|
test: [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i],
|
|
7910
7910
|
describe() {
|
|
@@ -7993,17 +7993,17 @@ const { BrowserUtil: v0 } = le, Ht = {
|
|
|
7993
7993
|
return "Meizu";
|
|
7994
7994
|
}
|
|
7995
7995
|
}
|
|
7996
|
-
],
|
|
7996
|
+
], _0 = () => {
|
|
7997
7997
|
let r = "Unknown";
|
|
7998
7998
|
try {
|
|
7999
|
-
const a = navigator.userAgent || "", e =
|
|
7999
|
+
const a = navigator.userAgent || "", e = Zr(E0, a);
|
|
8000
8000
|
if (!e)
|
|
8001
8001
|
return r;
|
|
8002
8002
|
r = e.describe(a);
|
|
8003
8003
|
} catch (a) {
|
|
8004
8004
|
}
|
|
8005
8005
|
return r;
|
|
8006
|
-
}, { BrowserUtil:
|
|
8006
|
+
}, { BrowserUtil: Na, SystenUtil: Ma } = le, A0 = hn(), y0 = "woMMssV6jmyol9fr", C0 = 200, pi = 10 * 60 * 1e3, gi = {
|
|
8007
8007
|
host: "cn-hangzhou.log.aliyuncs.com",
|
|
8008
8008
|
// 所在地域的服务入口。例如cn-hangzhou.log.aliyuncs.com
|
|
8009
8009
|
project: "alivc-aio",
|
|
@@ -8015,21 +8015,21 @@ const { BrowserUtil: v0 } = le, Ht = {
|
|
|
8015
8015
|
count: 10
|
|
8016
8016
|
// 发送日志的数量大小,默认是10条。
|
|
8017
8017
|
};
|
|
8018
|
-
function
|
|
8019
|
-
return
|
|
8018
|
+
function Tr() {
|
|
8019
|
+
return Yr(/* @__PURE__ */ new Date(), "HH:MM:ss.l");
|
|
8020
8020
|
}
|
|
8021
|
-
function
|
|
8022
|
-
return
|
|
8021
|
+
function La() {
|
|
8022
|
+
return Yr(/* @__PURE__ */ new Date(), "isoDate");
|
|
8023
8023
|
}
|
|
8024
8024
|
var dn = /* @__PURE__ */ ((r) => (r[r.DEBUG = 0] = "DEBUG", r[r.INFO = 1] = "INFO", r[r.API = 2] = "API", r[r.WARNING = 3] = "WARNING", r[r.ERROR = 4] = "ERROR", r[r.NONE = 5] = "NONE", r))(dn || {});
|
|
8025
|
-
class
|
|
8025
|
+
class R0 {
|
|
8026
8026
|
constructor() {
|
|
8027
8027
|
m(this, "tracker");
|
|
8028
8028
|
m(this, "slsPlugin");
|
|
8029
8029
|
m(this, "stsData");
|
|
8030
8030
|
m(this, "stsExpiration", Date.now());
|
|
8031
|
-
m(this, "clientId",
|
|
8032
|
-
m(this, "bSesid",
|
|
8031
|
+
m(this, "clientId", rt());
|
|
8032
|
+
m(this, "bSesid", rt());
|
|
8033
8033
|
m(this, "logLevel", 3);
|
|
8034
8034
|
m(this, "appId", "");
|
|
8035
8035
|
m(this, "sessionId", "");
|
|
@@ -8043,11 +8043,11 @@ class w0 {
|
|
|
8043
8043
|
return;
|
|
8044
8044
|
this.logSequence += 1, a.unshift(
|
|
8045
8045
|
this.getLogParams(710203, {
|
|
8046
|
-
log: `[${
|
|
8046
|
+
log: `[${La()} ${Tr()}] [INF] beforeunload`,
|
|
8047
8047
|
stat_log_seq: this.logSequence
|
|
8048
8048
|
})
|
|
8049
8049
|
);
|
|
8050
|
-
const e = `https://${
|
|
8050
|
+
const e = `https://${gi.project}.${gi.host}/logstores/${gi.logstore}`, t = {
|
|
8051
8051
|
__logs__: a.map((n) => this.slsPlugin.transString(n))
|
|
8052
8052
|
}, { data: i, header: s } = yield this.slsPlugin.process(e, JSON.stringify(t));
|
|
8053
8053
|
fetch(e, {
|
|
@@ -8058,7 +8058,7 @@ class w0 {
|
|
|
8058
8058
|
});
|
|
8059
8059
|
}));
|
|
8060
8060
|
m(this, "logMethod", (a, e = console.log) => (...t) => {
|
|
8061
|
-
let i =
|
|
8061
|
+
let i = Tr();
|
|
8062
8062
|
this.logLevel <= a && e(i, ...t);
|
|
8063
8063
|
let s = He.paramArrayToString(t);
|
|
8064
8064
|
a > 0 && this.addLog(s);
|
|
@@ -8105,7 +8105,7 @@ class w0 {
|
|
|
8105
8105
|
this.updateTaskTimer && clearTimeout(this.updateTaskTimer);
|
|
8106
8106
|
}
|
|
8107
8107
|
reset() {
|
|
8108
|
-
this.bSesid =
|
|
8108
|
+
this.bSesid = rt(), this.endReported = !0, this.logSequence = 0, this.appId = "", this.sessionId = "";
|
|
8109
8109
|
}
|
|
8110
8110
|
startSTSUpdateTask() {
|
|
8111
8111
|
return w(this, null, function* () {
|
|
@@ -8117,22 +8117,22 @@ class w0 {
|
|
|
8117
8117
|
}
|
|
8118
8118
|
this.updateTaskTimer = setTimeout(() => {
|
|
8119
8119
|
this.startSTSUpdateTask();
|
|
8120
|
-
},
|
|
8120
|
+
}, pi);
|
|
8121
8121
|
});
|
|
8122
8122
|
}
|
|
8123
8123
|
refreshSTSToken() {
|
|
8124
8124
|
return w(this, null, function* () {
|
|
8125
|
-
if (!this.stsData || this.stsExpiration <= Date.now() -
|
|
8126
|
-
const a = yield this.requestSTSToken(), e = new Date(a == null ? void 0 : a.Expiration).getTime() || 0, t = Date.now() +
|
|
8125
|
+
if (!this.stsData || this.stsExpiration <= Date.now() - pi) {
|
|
8126
|
+
const a = yield this.requestSTSToken(), e = new Date(a == null ? void 0 : a.Expiration).getTime() || 0, t = Date.now() + pi;
|
|
8127
8127
|
this.stsExpiration = Math.max(e, t), this.stsData = a;
|
|
8128
8128
|
}
|
|
8129
8129
|
return this.stsData;
|
|
8130
8130
|
});
|
|
8131
8131
|
}
|
|
8132
8132
|
requestSTSToken() {
|
|
8133
|
-
const a = Date.now(), e = `${this.clientId}|${
|
|
8133
|
+
const a = Date.now(), e = `${this.clientId}|${y0}|${a}`, i = {
|
|
8134
8134
|
Action: "AssumeSlsRoleV2",
|
|
8135
|
-
AuthInfo:
|
|
8135
|
+
AuthInfo: si.MD5(e).toString(si.enc.Hex),
|
|
8136
8136
|
ClientId: this.clientId,
|
|
8137
8137
|
BusinessType: "logger",
|
|
8138
8138
|
AppVersion: "1.0",
|
|
@@ -8143,7 +8143,7 @@ class w0 {
|
|
|
8143
8143
|
Format: "JSON",
|
|
8144
8144
|
SignatureMethod: "HMAC-SHA1",
|
|
8145
8145
|
SignatureVersion: "1.0",
|
|
8146
|
-
Timestamp:
|
|
8146
|
+
Timestamp: Yr(a, "isoUtcDateTime")
|
|
8147
8147
|
// SignatureNonce: generateRandomString(64),
|
|
8148
8148
|
}, n = `https://slsrole.alicdn.com/?${new URLSearchParams(i).toString()}`;
|
|
8149
8149
|
return fetch(n).then((c) => c.json()).then((c) => JSON.parse(window.atob(c.SlsAuthResult)));
|
|
@@ -8154,7 +8154,7 @@ class w0 {
|
|
|
8154
8154
|
accessKeyId: a.AccessKeyId,
|
|
8155
8155
|
accessKeySecret: a.AccessKeySecret,
|
|
8156
8156
|
securityToken: a.SecurityToken,
|
|
8157
|
-
refreshSTSTokenInterval:
|
|
8157
|
+
refreshSTSTokenInterval: pi,
|
|
8158
8158
|
stsTokenFreshTime: void 0,
|
|
8159
8159
|
refreshSTSToken: () => {
|
|
8160
8160
|
this.refreshSTSToken().then((s) => {
|
|
@@ -8162,7 +8162,7 @@ class w0 {
|
|
|
8162
8162
|
}).catch(() => {
|
|
8163
8163
|
});
|
|
8164
8164
|
}
|
|
8165
|
-
}, t = new
|
|
8165
|
+
}, t = new qr(gi), i = Xr(e);
|
|
8166
8166
|
t.useStsPlugin(i), this.slsPlugin = i, this.tracker = t, this.reportStartAndCache();
|
|
8167
8167
|
}
|
|
8168
8168
|
}
|
|
@@ -8207,7 +8207,7 @@ class w0 {
|
|
|
8207
8207
|
a ? this.sendLogBeforeUnload(t) : (this.tracker.sendBatchLogsImmediate(t), this.endReported = !0), this.reset();
|
|
8208
8208
|
}
|
|
8209
8209
|
getLogParams(a, e) {
|
|
8210
|
-
return
|
|
8210
|
+
return G({
|
|
8211
8211
|
appid: `${window.location.host}`,
|
|
8212
8212
|
// 其他端是应用的包id,不是rtcsdk的appId
|
|
8213
8213
|
appid_list: this.appId,
|
|
@@ -8216,16 +8216,16 @@ class w0 {
|
|
|
8216
8216
|
b_sesid: this.bSesid,
|
|
8217
8217
|
// 与其他端对齐,用于该字段标记某个上传任务
|
|
8218
8218
|
biz_type: "rtc",
|
|
8219
|
-
cpu_info:
|
|
8220
|
-
db:
|
|
8221
|
-
dm:
|
|
8219
|
+
cpu_info: A0,
|
|
8220
|
+
db: Na.browserName,
|
|
8221
|
+
dm: Na.browserVersion,
|
|
8222
8222
|
install_uuid: this.clientId,
|
|
8223
8223
|
logger_v: "0.0.1",
|
|
8224
|
-
os:
|
|
8225
|
-
osv:
|
|
8224
|
+
os: Ma.systemName,
|
|
8225
|
+
osv: Ma.systemVersion,
|
|
8226
8226
|
p_sesid: this.bSesid,
|
|
8227
8227
|
// 与其他端对齐,用于该字段标记某个上传任务
|
|
8228
|
-
sdk_version:
|
|
8228
|
+
sdk_version: _i,
|
|
8229
8229
|
sdkname: "AliRTCSdk",
|
|
8230
8230
|
stm: Date.now(),
|
|
8231
8231
|
tar_pf: "web",
|
|
@@ -8245,13 +8245,13 @@ class w0 {
|
|
|
8245
8245
|
this.tracker.send(e);
|
|
8246
8246
|
}
|
|
8247
8247
|
addLog(a) {
|
|
8248
|
-
const e =
|
|
8249
|
-
!this.sessionId || !this.tracker ? (this.logCache.push(i), this.logCache.length >=
|
|
8248
|
+
const e = Tr(), i = `[${La()} ${e}] ${a}`;
|
|
8249
|
+
!this.sessionId || !this.tracker ? (this.logCache.push(i), this.logCache.length >= C0 && this.logCache.shift()) : this.sendLog(i);
|
|
8250
8250
|
}
|
|
8251
8251
|
}
|
|
8252
8252
|
class O {
|
|
8253
8253
|
static getLogger() {
|
|
8254
|
-
return this.logger || (this.logger = new
|
|
8254
|
+
return this.logger || (this.logger = new R0()), this.logger;
|
|
8255
8255
|
}
|
|
8256
8256
|
static init() {
|
|
8257
8257
|
this.getLogger().init();
|
|
@@ -8295,7 +8295,7 @@ class O {
|
|
|
8295
8295
|
}
|
|
8296
8296
|
}
|
|
8297
8297
|
m(O, "logger");
|
|
8298
|
-
const
|
|
8298
|
+
const I0 = (r) => w(void 0, null, function* () {
|
|
8299
8299
|
const a = new le.SupportUtil();
|
|
8300
8300
|
let e = {
|
|
8301
8301
|
support: !1,
|
|
@@ -8317,10 +8317,10 @@ const D0 = (r) => w(void 0, null, function* () {
|
|
|
8317
8317
|
e.detail.isH264EncodeSupported = t, e.support = e.support && t;
|
|
8318
8318
|
}
|
|
8319
8319
|
return e.detail.isScreenShareSupported = a.checkWebRtcSupport() && a.checkScreenCapture() && !le.SystenUtil.isAndroid && !le.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = a.checkWebRtcSupport() && a.checkEncodedTransformSupport(), e;
|
|
8320
|
-
}),
|
|
8321
|
-
var
|
|
8320
|
+
}), w0 = () => new le.SupportUtil().checkScreenCapture();
|
|
8321
|
+
var be = /* @__PURE__ */ ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(be || {}), D0 = /* @__PURE__ */ ((r) => (r[r.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", r[r.POST_PROCESSOR = 1] = "POST_PROCESSOR", r))(D0 || {}), yi = /* @__PURE__ */ ((r) => (r[r.AUDIO = 0] = "AUDIO", r[r.VIDEO = 1] = "VIDEO", r[r.BOTH = 2] = "BOTH", r))(yi || {});
|
|
8322
8322
|
class Jt extends De {
|
|
8323
|
-
constructor(e, t =
|
|
8323
|
+
constructor(e, t = be.AliRtcSdkStreamTypeCapture, i = 1) {
|
|
8324
8324
|
super();
|
|
8325
8325
|
// 扩展名
|
|
8326
8326
|
m(this, "name");
|
|
@@ -8382,13 +8382,13 @@ class Jt extends De {
|
|
|
8382
8382
|
this._hasCleared = !0, this.lastInputAudioTrack = void 0, this.lastInputVideoTrack = void 0, this.lastOutputAudioTrack = void 0, this.lastOutputVideoTrack = void 0;
|
|
8383
8383
|
}
|
|
8384
8384
|
}
|
|
8385
|
-
var
|
|
8386
|
-
const
|
|
8385
|
+
var vi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingSingle = 0] = "LiveTranscodingSingle", r[r.LiveTranscodingMix = 1] = "LiveTranscodingMix", r))(vi || {}), ln = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingAudio = 1] = "LiveTranscodingAudio", r[r.LiveTranscodingVideo = 2] = "LiveTranscodingVideo", r))(ln || {}), ai = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingCamera = 0] = "LiveTranscodingCamera", r[r.LiveTranscodingShareScreen = 1] = "LiveTranscodingShareScreen", r))(ai || {});
|
|
8386
|
+
const ti = {
|
|
8387
8387
|
0: "camera",
|
|
8388
8388
|
1: "shareScreen"
|
|
8389
8389
|
};
|
|
8390
8390
|
var fn = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_Profile_1IN_1080P = 0] = "LiveTranscoding_Profile_1IN_1080P", r[r.LiveTranscoding_Profile_1IN_720P = 1] = "LiveTranscoding_Profile_1IN_720P", r[r.LiveTranscoding_Profile_1IN_360P = 2] = "LiveTranscoding_Profile_1IN_360P", r[r.LiveTranscoding_Profile_2IN_1080P = 3] = "LiveTranscoding_Profile_2IN_1080P", r[r.LiveTranscoding_Profile_2IN_720P = 4] = "LiveTranscoding_Profile_2IN_720P", r[r.LiveTranscoding_Profile_2IN_360P = 5] = "LiveTranscoding_Profile_2IN_360P", r[r.LiveTranscoding_Profile_4IN_1080P = 6] = "LiveTranscoding_Profile_4IN_1080P", r[r.LiveTranscoding_Profile_4IN_720P = 7] = "LiveTranscoding_Profile_4IN_720P", r[r.LiveTranscoding_Profile_4IN_360P = 8] = "LiveTranscoding_Profile_4IN_360P", r[r.LiveTranscoding_Profile_9IN_1080P = 9] = "LiveTranscoding_Profile_9IN_1080P", r[r.LiveTranscoding_Profile_9IN_720P = 10] = "LiveTranscoding_Profile_9IN_720P", r[r.LiveTranscoding_Profile_9IN_360P = 11] = "LiveTranscoding_Profile_9IN_360P", r[r.LiveTranscoding_Profile_12IN_1080P = 12] = "LiveTranscoding_Profile_12IN_1080P", r[r.LiveTranscoding_Profile_12IN_720P = 13] = "LiveTranscoding_Profile_12IN_720P", r[r.LiveTranscoding_Profile_12IN_360P = 14] = "LiveTranscoding_Profile_12IN_360P", r[r.LiveTranscoding_Profile_16IN_1080P = 15] = "LiveTranscoding_Profile_16IN_1080P", r[r.LiveTranscoding_Profile_16IN_720P = 16] = "LiveTranscoding_Profile_16IN_720P", r[r.LiveTranscoding_Profile_16IN_360P = 17] = "LiveTranscoding_Profile_16IN_360P", r[r.LiveTranscoding_Profile_Mixed = 9999] = "LiveTranscoding_Profile_Mixed", r))(fn || {});
|
|
8391
|
-
const
|
|
8391
|
+
const T0 = {
|
|
8392
8392
|
0: "1IN_1080P",
|
|
8393
8393
|
1: "1IN_720P",
|
|
8394
8394
|
2: "1IN_360P",
|
|
@@ -8409,8 +8409,8 @@ const k0 = {
|
|
|
8409
8409
|
17: "16IN_360P",
|
|
8410
8410
|
9999: "Mixed_Audio"
|
|
8411
8411
|
};
|
|
8412
|
-
var
|
|
8413
|
-
const
|
|
8412
|
+
var Qr = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(Qr || {}), bi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(bi || {}), Ci = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(Ci || {}), pn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(pn || {}), es = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(es || {}), gn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(gn || {}), ht = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ht || {}), mn = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(mn || {}), Ue = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Ue || {});
|
|
8413
|
+
const P0 = {
|
|
8414
8414
|
0: "/libra/v1/sdk/start-task",
|
|
8415
8415
|
1: "/libra/v1/sdk/update-task",
|
|
8416
8416
|
2: "/libra/v1/sdk/stop-task",
|
|
@@ -8432,23 +8432,23 @@ class xn {
|
|
|
8432
8432
|
//[1kbps,10000kbps]
|
|
8433
8433
|
m(this, "videoGop", 30);
|
|
8434
8434
|
//[1,60]
|
|
8435
|
-
m(this, "audioSamplerate",
|
|
8435
|
+
m(this, "audioSamplerate", Qr.LiveTranscoding_HZ_44100);
|
|
8436
8436
|
m(this, "audioBitrate", 500);
|
|
8437
8437
|
//[8kbps,500kbps]
|
|
8438
8438
|
m(this, "audioChannels", 1);
|
|
8439
8439
|
this.videoWidth = a, this.videoHeight = e, t && (this.videoFramerate = t), i && (this.videoBitrate = i), s && (this.videoGop = s), n && (this.audioSamplerate = n), c && (this.audioBitrate = c), o && (this.audioChannels = o);
|
|
8440
8440
|
}
|
|
8441
8441
|
}
|
|
8442
|
-
const
|
|
8442
|
+
const ts = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Ye = (r = 0, a) => {
|
|
8443
8443
|
if (a == 0)
|
|
8444
8444
|
return 0;
|
|
8445
8445
|
let e = r / a;
|
|
8446
8446
|
return e < 0 && (e = 0), e > 1 && (e = 1), e;
|
|
8447
8447
|
};
|
|
8448
|
-
class
|
|
8448
|
+
class Mr {
|
|
8449
8449
|
constructor(a, e, t) {
|
|
8450
8450
|
/*! 旁路模式 */
|
|
8451
|
-
m(this, "mixMode",
|
|
8451
|
+
m(this, "mixMode", vi.LiveTranscodingSingle);
|
|
8452
8452
|
/*! 路模式单路参数 */
|
|
8453
8453
|
m(this, "singleParam");
|
|
8454
8454
|
/*! 旁路模式混流参数 */
|
|
@@ -8463,17 +8463,17 @@ class Vr {
|
|
|
8463
8463
|
if (a === Ue.MPU_TASK_TRANSACTION_POLLING || a === Ue.MPU_TASK_TRANSACTION_LIST || a === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE)
|
|
8464
8464
|
return a === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE && (n.messageid = s), n;
|
|
8465
8465
|
if (n.taskid = t, a !== Ue.MPU_TASK_TRANSACTION_STOP) {
|
|
8466
|
-
if (n.mixmode = this.mixMode, i && (n.streamurl = i), this.mixMode ===
|
|
8466
|
+
if (n.mixmode = this.mixMode, i && (n.streamurl = i), this.mixMode === vi.LiveTranscodingSingle) {
|
|
8467
8467
|
const c = this.singleParam;
|
|
8468
8468
|
if (c) {
|
|
8469
|
-
n.streamtype = c.streamType, c.sourceType ===
|
|
8469
|
+
n.streamtype = c.streamType, c.sourceType === ai.LiveTranscodingShareScreen ? n.sourcetype = ti[c.sourceType] : n.sourcetype = ti[ai.LiveTranscodingCamera];
|
|
8470
8470
|
const o = [];
|
|
8471
8471
|
c.userId && o.push(c.userId), n.subspecusers = o;
|
|
8472
8472
|
}
|
|
8473
8473
|
} else if (a === Ue.MPU_TASK_TRANSACTION_START || a === Ue.MPU_TASK_TRANSACTION_UPDATE) {
|
|
8474
8474
|
const c = this.mixParam;
|
|
8475
8475
|
if (c) {
|
|
8476
|
-
c.taskProfile && (n.taskprofile =
|
|
8476
|
+
c.taskProfile && (n.taskprofile = T0[c.taskProfile]);
|
|
8477
8477
|
const o = c.encodeParam || new xn(1280, 720);
|
|
8478
8478
|
let u = o.videoWidth, h = o.videoHeight;
|
|
8479
8479
|
const p = {};
|
|
@@ -8489,15 +8489,15 @@ class Vr {
|
|
|
8489
8489
|
(f, g) => f.toJson(g, u, h, c.mediaProcessMode)
|
|
8490
8490
|
)
|
|
8491
8491
|
}
|
|
8492
|
-
], n.layoutids = ["0"], n.cropmode = c.cropMode, n.backgroundcolor =
|
|
8492
|
+
], n.layoutids = ["0"], n.cropmode = c.cropMode, n.backgroundcolor = ts(c.backgroundColor), n.taskmode = c.mediaProcessMode;
|
|
8493
8493
|
}
|
|
8494
8494
|
}
|
|
8495
8495
|
}
|
|
8496
8496
|
return n;
|
|
8497
8497
|
}
|
|
8498
8498
|
}
|
|
8499
|
-
var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}),
|
|
8500
|
-
const
|
|
8499
|
+
var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}), Bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Bt || {}), dt = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(dt || {}), _e = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(_e || {}), ue = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(ue || {}), zt = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(zt || {}), is = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(is || {}), Gt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(Gt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Y = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Y || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(he || {}), we = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(we || {}), ni = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ni || {});
|
|
8500
|
+
const Va = 12, Fa = 5e3, Wt = class Wt extends De {
|
|
8501
8501
|
constructor(e) {
|
|
8502
8502
|
super();
|
|
8503
8503
|
m(this, "ws");
|
|
@@ -8508,7 +8508,7 @@ const Fa = 12, Oa = 5e3, Wt = class Wt extends De {
|
|
|
8508
8508
|
// 建立连接时候使用的url
|
|
8509
8509
|
m(this, "lastConnectStartTime", 0);
|
|
8510
8510
|
// 上一次开始连接的时间
|
|
8511
|
-
m(this, "maxConnectRetryCount",
|
|
8511
|
+
m(this, "maxConnectRetryCount", Va);
|
|
8512
8512
|
m(this, "connectRetryCount", 0);
|
|
8513
8513
|
// 尝试重连了多少次
|
|
8514
8514
|
m(this, "gotErr", !1);
|
|
@@ -8517,7 +8517,7 @@ const Fa = 12, Oa = 5e3, Wt = class Wt extends De {
|
|
|
8517
8517
|
m(this, "isReconnecting", !1);
|
|
8518
8518
|
m(this, "networkAvailableChecked", !0);
|
|
8519
8519
|
m(this, "reconnectTimeoutId", 0);
|
|
8520
|
-
this.maxConnectRetryCount = e != null ? e :
|
|
8520
|
+
this.maxConnectRetryCount = e != null ? e : Va, this.onOpen = this.onOpen.bind(this), this.onMessage = this.onMessage.bind(this), this.onError = this.onError.bind(this), this.onClose = this.onClose.bind(this);
|
|
8521
8521
|
}
|
|
8522
8522
|
get connectUrl() {
|
|
8523
8523
|
return this.wsUrl;
|
|
@@ -8591,9 +8591,9 @@ const Fa = 12, Oa = 5e3, Wt = class Wt extends De {
|
|
|
8591
8591
|
this.reconnect(), this.networkAvailableChecked = !0;
|
|
8592
8592
|
return;
|
|
8593
8593
|
} else
|
|
8594
|
-
this.connectRetryCount || this.emit("onNetworkError"), this.reconnectTimeoutId || (this.connectRetryCount += 1, this.connectRetryCount > this.maxConnectRetryCount ? this.emit("onConnectFail") : Date.now() - this.lastConnectStartTime >=
|
|
8594
|
+
this.connectRetryCount || this.emit("onNetworkError"), this.reconnectTimeoutId || (this.connectRetryCount += 1, this.connectRetryCount > this.maxConnectRetryCount ? this.emit("onConnectFail") : Date.now() - this.lastConnectStartTime >= Fa ? this.reconnect() : this.reconnectTimeoutId = window.setTimeout(() => {
|
|
8595
8595
|
this.reconnect();
|
|
8596
|
-
},
|
|
8596
|
+
}, Fa));
|
|
8597
8597
|
this.socketStatus = 0, this.emit("onClose", e);
|
|
8598
8598
|
});
|
|
8599
8599
|
}
|
|
@@ -8614,9 +8614,9 @@ const Fa = 12, Oa = 5e3, Wt = class Wt extends De {
|
|
|
8614
8614
|
* @ignore
|
|
8615
8615
|
*/
|
|
8616
8616
|
m(Wt, "logName", "Socket");
|
|
8617
|
-
let
|
|
8617
|
+
let Lr = Wt;
|
|
8618
8618
|
var ve = /* @__PURE__ */ ((r) => (r.KEEPALIVE = "keepalive", r.JOINCHANNEL = "joinchannel", r.NOTIFYJOIN = "notifyjoin", r.NOTIFYSTATUS = "notifystatus", r.STATUSREPORT = "statusreport", r.LEAVECHANNEL = "leavechannel", r.NOTIFYLEAVE = "notifyleave", r.NOTIFYPUBLISH = "notifypublish", r.BYE = "bye", r.RECONNECT = "reconnect", r.PUBLISH = "publish", r.REFRESHURL = "refreshurl", r.UNSUBSCRIBE = "unsubscribe", r.ROLEUPDATE = "roleupdate", r))(ve || {});
|
|
8619
|
-
class
|
|
8619
|
+
class k0 {
|
|
8620
8620
|
constructor(a, e) {
|
|
8621
8621
|
m(this, "authInfo");
|
|
8622
8622
|
m(this, "userName");
|
|
@@ -8654,7 +8654,7 @@ class N0 {
|
|
|
8654
8654
|
"joinchannel"
|
|
8655
8655
|
/* JOINCHANNEL */
|
|
8656
8656
|
);
|
|
8657
|
-
return a.header.displayName = this.userName, a.header.clientversion = He.getVersionNumber().toString(), a.header.platform =
|
|
8657
|
+
return a.header.displayName = this.userName, a.header.clientversion = He.getVersionNumber().toString(), a.header.platform = Js, this.roleAuth && (a.data.auth = this.roleAuth), a;
|
|
8658
8658
|
}
|
|
8659
8659
|
/**
|
|
8660
8660
|
* 创建一个用于发送离会消息的Package
|
|
@@ -8696,7 +8696,7 @@ class N0 {
|
|
|
8696
8696
|
"reconnect"
|
|
8697
8697
|
/* RECONNECT */
|
|
8698
8698
|
);
|
|
8699
|
-
return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform =
|
|
8699
|
+
return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform = Js, e.data = G(G({}, e.data), a != null ? a : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
|
|
8700
8700
|
}
|
|
8701
8701
|
createRefreshUrlPackage() {
|
|
8702
8702
|
let a = this.createBaseSendPackage(
|
|
@@ -8729,7 +8729,7 @@ class N0 {
|
|
|
8729
8729
|
return ++this.seqIndex, {
|
|
8730
8730
|
version: 1,
|
|
8731
8731
|
msgtype: a,
|
|
8732
|
-
tid:
|
|
8732
|
+
tid: rt(),
|
|
8733
8733
|
header: {
|
|
8734
8734
|
appid: this.authInfo.appId,
|
|
8735
8735
|
channelid: this.authInfo.channelId,
|
|
@@ -8769,7 +8769,7 @@ class F extends Error {
|
|
|
8769
8769
|
return this._extra;
|
|
8770
8770
|
}
|
|
8771
8771
|
}
|
|
8772
|
-
const
|
|
8772
|
+
const B0 = 3e4, qe = class qe extends De {
|
|
8773
8773
|
// 发送重连信令时,房间信令凭这些信息找回 session
|
|
8774
8774
|
constructor(e, t, i, s, n, c) {
|
|
8775
8775
|
super();
|
|
@@ -8792,7 +8792,7 @@ const M0 = 3e4, qe = class qe extends De {
|
|
|
8792
8792
|
m(this, "aliveChecker", 0);
|
|
8793
8793
|
// 心跳检查定时器
|
|
8794
8794
|
m(this, "reconnectData");
|
|
8795
|
-
this.authInfo = e, this.userName = t, this.packageCreater = new
|
|
8795
|
+
this.authInfo = e, this.userName = t, this.packageCreater = new k0(e, t), this.channelProfile = i, this.clientRole = s, this.slsReporter = n, this.wsClient = new Lr(c), this.wsClient.on("onOpen", this.onOpen.bind(this)), this.wsClient.on("onMessage", this.onMessage.bind(this)), this.wsClient.on("onError", this.onError.bind(this)), this.wsClient.on("onClose", this.onClose.bind(this)), this.wsClient.on("onConnectFail", this.onConnectFail.bind(this)), this.wsClient.on("onAuthInvalid", this.onAuthInvalid.bind(this)), this.wsClient.on("onNetworkError", this.onNetworkError.bind(this)), this.wsClient.on("onReconnectStart", this.onReconnectStart.bind(this)), this.wsClient.on("onReconnectFail", this.onReconnectFail.bind(this));
|
|
8796
8796
|
}
|
|
8797
8797
|
get retryCount() {
|
|
8798
8798
|
return this.wsClient.connectRetryCount;
|
|
@@ -8846,7 +8846,7 @@ const M0 = 3e4, qe = class qe extends De {
|
|
|
8846
8846
|
* 发送推流消息
|
|
8847
8847
|
*/
|
|
8848
8848
|
publish(e) {
|
|
8849
|
-
const o = e, { l1ip: t } = o, i =
|
|
8849
|
+
const o = e, { l1ip: t } = o, i = wt(o, ["l1ip"]);
|
|
8850
8850
|
let s = this.packageCreater.createPublishPackage();
|
|
8851
8851
|
s.data.users = [], s.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
|
|
8852
8852
|
const { tracks: n, resume: c } = i;
|
|
@@ -8872,7 +8872,7 @@ const M0 = 3e4, qe = class qe extends De {
|
|
|
8872
8872
|
*/
|
|
8873
8873
|
refreshUrl(e) {
|
|
8874
8874
|
const t = this.packageCreater.createRefreshUrlPackage();
|
|
8875
|
-
t.data =
|
|
8875
|
+
t.data = G(ut(G({}, t.data), {
|
|
8876
8876
|
sessionid: t.header.sessionid
|
|
8877
8877
|
}), e), this.sendPackage(t);
|
|
8878
8878
|
}
|
|
@@ -8980,7 +8980,7 @@ const M0 = 3e4, qe = class qe extends De {
|
|
|
8980
8980
|
checkAlive() {
|
|
8981
8981
|
window.clearTimeout(this.aliveChecker), this.aliveChecker = window.setTimeout(() => {
|
|
8982
8982
|
O.info(`[${qe.logName}] not alive, reconnect`), this.stopKeepAlive(), this.emit("onReconnectStart"), this.wsClient.reconnect();
|
|
8983
|
-
},
|
|
8983
|
+
}, B0);
|
|
8984
8984
|
}
|
|
8985
8985
|
/**
|
|
8986
8986
|
* 处理收到的业务信令
|
|
@@ -9127,7 +9127,7 @@ const M0 = 3e4, qe = class qe extends De {
|
|
|
9127
9127
|
}
|
|
9128
9128
|
};
|
|
9129
9129
|
m(qe, "logName", "RSMessageCenter");
|
|
9130
|
-
let
|
|
9130
|
+
let Vr = qe;
|
|
9131
9131
|
const D = (r, a) => (e, t, i) => {
|
|
9132
9132
|
const s = i.value;
|
|
9133
9133
|
return i.value = function(...n) {
|
|
@@ -9171,12 +9171,12 @@ const D = (r, a) => (e, t, i) => {
|
|
|
9171
9171
|
}), h;
|
|
9172
9172
|
}, i;
|
|
9173
9173
|
}, H = (r) => r;
|
|
9174
|
-
var
|
|
9175
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
9174
|
+
var N0 = Object.defineProperty, M0 = Object.getOwnPropertyDescriptor, rs = (r, a, e, t) => {
|
|
9175
|
+
for (var i = t > 1 ? void 0 : t ? M0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
9176
9176
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
9177
|
-
return t && i &&
|
|
9177
|
+
return t && i && N0(a, e, i), i;
|
|
9178
9178
|
}, Ne;
|
|
9179
|
-
const
|
|
9179
|
+
const Ri = (Ne = class extends De {
|
|
9180
9180
|
constructor(e, t, i, s = pt.prod) {
|
|
9181
9181
|
super();
|
|
9182
9182
|
m(this, "messageCenter");
|
|
@@ -9194,7 +9194,7 @@ const wi = (Ne = class extends De {
|
|
|
9194
9194
|
clientrole: t
|
|
9195
9195
|
}
|
|
9196
9196
|
};
|
|
9197
|
-
const n = s === pt.pre ?
|
|
9197
|
+
const n = s === pt.pre ? Si.pre : Si.prod;
|
|
9198
9198
|
this.roomServerUri = `wss://${n}/roomserver/v1/ws`;
|
|
9199
9199
|
}
|
|
9200
9200
|
/**
|
|
@@ -9215,7 +9215,7 @@ const wi = (Ne = class extends De {
|
|
|
9215
9215
|
return w(this, null, function* () {
|
|
9216
9216
|
return new Promise((s, n) => {
|
|
9217
9217
|
const c = {};
|
|
9218
|
-
this.authInfo = e, this.userName = t, this.messageCenter = new
|
|
9218
|
+
this.authInfo = e, this.userName = t, this.messageCenter = new Vr(
|
|
9219
9219
|
e,
|
|
9220
9220
|
t,
|
|
9221
9221
|
this.channelProfile,
|
|
@@ -9245,7 +9245,7 @@ const wi = (Ne = class extends De {
|
|
|
9245
9245
|
timestamp: this.authInfo.timestamp,
|
|
9246
9246
|
token: this.authInfo.token,
|
|
9247
9247
|
authtype: "app",
|
|
9248
|
-
tid:
|
|
9248
|
+
tid: rt()
|
|
9249
9249
|
};
|
|
9250
9250
|
e.role && (o.tokenrole = e.role), c.est = Date.now(), this.messageCenter.start(this.roomServerUri + "?" + He.queryingParam(o));
|
|
9251
9251
|
});
|
|
@@ -9266,12 +9266,12 @@ const wi = (Ne = class extends De {
|
|
|
9266
9266
|
return new Promise((t, i) => {
|
|
9267
9267
|
var s;
|
|
9268
9268
|
this.messageCenter ? (this.messageCenter.once("onPublishResult", (n, c, o) => {
|
|
9269
|
-
O.info(`[${Ne.logName}]`, "recv pubish response " + n), n === 200 ? (this.updateReconnectData(ut(
|
|
9269
|
+
O.info(`[${Ne.logName}]`, "recv pubish response " + n), n === 200 ? (this.updateReconnectData(ut(G({}, this.reconnectData), {
|
|
9270
9270
|
publish: {
|
|
9271
9271
|
users: [e]
|
|
9272
9272
|
}
|
|
9273
9273
|
})), t({ tid: c })) : i(this.handleSignalError(n, `publish error, ${o}`));
|
|
9274
|
-
}), this.authInfo && (e.sessionid = (s = this.authInfo.sessionId) != null ? s : ""), e.callid || (e.callid =
|
|
9274
|
+
}), this.authInfo && (e.sessionid = (s = this.authInfo.sessionId) != null ? s : ""), e.callid || (e.callid = rt()), O.info(
|
|
9275
9275
|
`[${Ne.logName}]`,
|
|
9276
9276
|
"assign callid " + e.callid + " and send publish request"
|
|
9277
9277
|
), this.messageCenter.publish(e)) : i(this.handleSignalError(-1, "publish error, no message center"));
|
|
@@ -9363,17 +9363,17 @@ const wi = (Ne = class extends De {
|
|
|
9363
9363
|
* @ignore
|
|
9364
9364
|
*/
|
|
9365
9365
|
m(Ne, "logName", "RoomServerSignaling"), Ne);
|
|
9366
|
-
|
|
9366
|
+
rs([
|
|
9367
9367
|
D()
|
|
9368
|
-
],
|
|
9369
|
-
|
|
9368
|
+
], Ri.prototype, "join", 1);
|
|
9369
|
+
rs([
|
|
9370
9370
|
D()
|
|
9371
|
-
],
|
|
9372
|
-
|
|
9371
|
+
], Ri.prototype, "publish", 1);
|
|
9372
|
+
rs([
|
|
9373
9373
|
D()
|
|
9374
|
-
],
|
|
9375
|
-
let
|
|
9376
|
-
const
|
|
9374
|
+
], Ri.prototype, "roleUpdate", 1);
|
|
9375
|
+
let L0 = Ri;
|
|
9376
|
+
const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", Oa = 10 * 60 * 1e3, O0 = 12, ii = class ii extends De {
|
|
9377
9377
|
constructor(e, t) {
|
|
9378
9378
|
super();
|
|
9379
9379
|
m(this, "env");
|
|
@@ -9386,19 +9386,19 @@ const O0 = "https://pgw.rtn.aliyuncs.com", U0 = "https://gw.rtn.aliyuncs.com", U
|
|
|
9386
9386
|
if (this.skipTime = 0, !this.authInfo)
|
|
9387
9387
|
return;
|
|
9388
9388
|
const { appId: e, channelId: t, userId: i, nonce: s = "", token: n, timestamp: c, sessionId: o, role: u } = this.authInfo;
|
|
9389
|
-
let h =
|
|
9390
|
-
this.env === pt.pre && (h =
|
|
9389
|
+
let h = F0;
|
|
9390
|
+
this.env === pt.pre && (h = V0);
|
|
9391
9391
|
const p = `${h}/gslb/v1/stsupdate?appid=${e}&channelid=${t}&userid=${i}&nonce=${s}&token=${n}×tamp=${c}&session=${o}${u ? `&tokenrole=${u}` : ""}&slstoken=true&osstoken=true&tokensid=false`, d = Date.now();
|
|
9392
9392
|
fetch(p).then((f) => f.json()).then((f) => {
|
|
9393
9393
|
var g, l;
|
|
9394
9394
|
if (f.code === 0) {
|
|
9395
9395
|
const S = (g = f.data) == null ? void 0 : g.oss, v = (l = f.data) == null ? void 0 : l.sls;
|
|
9396
|
-
this.expiration = S.expiration || v.expiration, this.emit("onTokenUpdate", S, v), O.event(`[${
|
|
9396
|
+
this.expiration = S.expiration || v.expiration, this.emit("onTokenUpdate", S, v), O.event(`[${ii.logName}]`, "getToken", S, v);
|
|
9397
9397
|
} else
|
|
9398
9398
|
throw new Error();
|
|
9399
9399
|
this.slsReporter.reportSTSResult(200, d);
|
|
9400
9400
|
}).catch((f) => {
|
|
9401
|
-
this.slsReporter.reportSTSResult(-1, d), O.error(`[${
|
|
9401
|
+
this.slsReporter.reportSTSResult(-1, d), O.error(`[${ii.logName}]`, "getToken", f.message);
|
|
9402
9402
|
});
|
|
9403
9403
|
}));
|
|
9404
9404
|
this.slsReporter = e, this.env = t;
|
|
@@ -9408,25 +9408,25 @@ const O0 = "https://pgw.rtn.aliyuncs.com", U0 = "https://gw.rtn.aliyuncs.com", U
|
|
|
9408
9408
|
}
|
|
9409
9409
|
startSTSUpdate(e) {
|
|
9410
9410
|
this.authInfo = e, this.requestToken(), this.timer && clearInterval(this.timer), this.timer = window.setInterval(() => {
|
|
9411
|
-
if (this.expiration && Math.floor((Date.now() +
|
|
9411
|
+
if (this.expiration && Math.floor((Date.now() + Oa * 1.5) / 1e3) < this.expiration && this.skipTime < O0) {
|
|
9412
9412
|
this.skipTime += 1;
|
|
9413
9413
|
return;
|
|
9414
9414
|
}
|
|
9415
9415
|
this.requestToken();
|
|
9416
|
-
},
|
|
9416
|
+
}, Oa);
|
|
9417
9417
|
}
|
|
9418
9418
|
clear() {
|
|
9419
9419
|
this.timer && clearInterval(this.timer);
|
|
9420
9420
|
}
|
|
9421
9421
|
};
|
|
9422
|
-
m(
|
|
9423
|
-
let
|
|
9424
|
-
var
|
|
9425
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
9422
|
+
m(ii, "logName", "StsManager");
|
|
9423
|
+
let Fr = ii;
|
|
9424
|
+
var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, j0 = (r, a, e, t) => {
|
|
9425
|
+
for (var i = t > 1 ? void 0 : t ? H0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
9426
9426
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
9427
|
-
return t && i &&
|
|
9427
|
+
return t && i && U0(a, e, i), i;
|
|
9428
9428
|
};
|
|
9429
|
-
class
|
|
9429
|
+
class ss extends De {
|
|
9430
9430
|
constructor(e, t, i, s = pt.prod) {
|
|
9431
9431
|
super();
|
|
9432
9432
|
m(this, "signaling");
|
|
@@ -9438,7 +9438,7 @@ class as extends De {
|
|
|
9438
9438
|
m(this, "maxConnectRetryCount");
|
|
9439
9439
|
m(this, "stsManager");
|
|
9440
9440
|
m(this, "slsReporter");
|
|
9441
|
-
this.channelProfile = e, this.clientRole = t, this.env = s, this.slsReporter = i, this.stsManager = new
|
|
9441
|
+
this.channelProfile = e, this.clientRole = t, this.env = s, this.slsReporter = i, this.stsManager = new Fr(i, s);
|
|
9442
9442
|
}
|
|
9443
9443
|
reset() {
|
|
9444
9444
|
var e;
|
|
@@ -9451,7 +9451,7 @@ class as extends De {
|
|
|
9451
9451
|
*/
|
|
9452
9452
|
join(e, t = e.userId, i, s) {
|
|
9453
9453
|
return this.maxConnectRetryCount = i, this.userName = t, new Promise((n, c) => {
|
|
9454
|
-
this.signaling ? c(new F(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new
|
|
9454
|
+
this.signaling ? c(new F(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new L0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
|
|
9455
9455
|
this.authInfo = e, s && (s.re = Date.now()), n(o);
|
|
9456
9456
|
}).catch((o) => {
|
|
9457
9457
|
this.reset(), c(o);
|
|
@@ -9539,7 +9539,7 @@ class as extends De {
|
|
|
9539
9539
|
return w(this, null, function* () {
|
|
9540
9540
|
var t;
|
|
9541
9541
|
try {
|
|
9542
|
-
this.authInfo && (this.authInfo =
|
|
9542
|
+
this.authInfo && (this.authInfo = G(G({}, this.authInfo), e), (t = this.signaling) == null || t.refreshAuthInfo(this.authInfo), this.stsManager.refreshAuthInfo(this.authInfo));
|
|
9543
9543
|
} catch (i) {
|
|
9544
9544
|
throw i;
|
|
9545
9545
|
}
|
|
@@ -9641,18 +9641,18 @@ class as extends De {
|
|
|
9641
9641
|
/**
|
|
9642
9642
|
* @ignore
|
|
9643
9643
|
*/
|
|
9644
|
-
m(
|
|
9645
|
-
|
|
9644
|
+
m(ss, "logName", "SignalingManager");
|
|
9645
|
+
j0([
|
|
9646
9646
|
D(H)
|
|
9647
|
-
],
|
|
9648
|
-
const
|
|
9647
|
+
], ss.prototype, "publish", 1);
|
|
9648
|
+
const Nt = class Nt {
|
|
9649
9649
|
static getInstance() {
|
|
9650
|
-
return
|
|
9650
|
+
return Nt.instance || (Nt.instance = new AudioContext()), Nt.instance.resume(), Nt.instance;
|
|
9651
9651
|
}
|
|
9652
9652
|
};
|
|
9653
|
-
m(
|
|
9654
|
-
let $t =
|
|
9655
|
-
function
|
|
9653
|
+
m(Nt, "instance");
|
|
9654
|
+
let $t = Nt;
|
|
9655
|
+
function z0(r, a, e, t, i) {
|
|
9656
9656
|
let s = t, n = 0, c;
|
|
9657
9657
|
const o = r.createAnalyser();
|
|
9658
9658
|
o.fftSize = 256;
|
|
@@ -9677,7 +9677,7 @@ function $0(r, a, e, t, i) {
|
|
|
9677
9677
|
}
|
|
9678
9678
|
};
|
|
9679
9679
|
}
|
|
9680
|
-
class
|
|
9680
|
+
class W0 extends De {
|
|
9681
9681
|
constructor() {
|
|
9682
9682
|
super();
|
|
9683
9683
|
m(this, "audioContext");
|
|
@@ -9698,7 +9698,7 @@ class K0 extends De {
|
|
|
9698
9698
|
start(e, t = 1e3) {
|
|
9699
9699
|
this.sourceNode && this.stop(), this.stream.addTrack(e), this.sourceNode = this.audioContext.createMediaStreamSource(this.stream);
|
|
9700
9700
|
const i = this.audioContext.createMediaStreamDestination();
|
|
9701
|
-
this.analyser =
|
|
9701
|
+
this.analyser = z0(this.audioContext, this.sourceNode, i, t, (s) => {
|
|
9702
9702
|
this.emit("audioLevel", s);
|
|
9703
9703
|
});
|
|
9704
9704
|
}
|
|
@@ -9721,7 +9721,7 @@ class Sn extends De {
|
|
|
9721
9721
|
// 本地音量检测
|
|
9722
9722
|
m(this, "audioLevelMonitor");
|
|
9723
9723
|
m(this, "audioVolumeIndicationInterval", 0);
|
|
9724
|
-
this.uid = e, this.name = t, this.rtsManager = i, this.audioVolumeIndicationInterval = s, this.audioLevelMonitor = new
|
|
9724
|
+
this.uid = e, this.name = t, this.rtsManager = i, this.audioVolumeIndicationInterval = s, this.audioLevelMonitor = new W0();
|
|
9725
9725
|
}
|
|
9726
9726
|
get userId() {
|
|
9727
9727
|
return this.uid;
|
|
@@ -9787,35 +9787,35 @@ class vn {
|
|
|
9787
9787
|
};
|
|
9788
9788
|
}
|
|
9789
9789
|
}
|
|
9790
|
-
const
|
|
9790
|
+
const $0 = "customVideoProfile", K0 = "customScreenProfile", Or = {
|
|
9791
9791
|
width: 1280,
|
|
9792
9792
|
height: 720,
|
|
9793
9793
|
frameRate: 30,
|
|
9794
9794
|
maxBitrate: 2e3
|
|
9795
|
-
},
|
|
9795
|
+
}, Ua = {
|
|
9796
9796
|
width: 1920,
|
|
9797
9797
|
height: 1080,
|
|
9798
9798
|
frameRate: 30,
|
|
9799
9799
|
maxBitrate: 2600
|
|
9800
9800
|
};
|
|
9801
|
-
var
|
|
9801
|
+
var ei = /* @__PURE__ */ ((r) => (r[r.ERROR_DEVICE_UNKNOWNERROR = 1e4] = "ERROR_DEVICE_UNKNOWNERROR", r[r.ERROR_DEVICE_AUDIODEVICE_NOTFOUND = 10001] = "ERROR_DEVICE_AUDIODEVICE_NOTFOUND", r[r.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED = 10002] = "ERROR_DEVICE_AUDIODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_AUDIODEVICE_NOTREADABLE = 10003] = "ERROR_DEVICE_AUDIODEVICE_NOTREADABLE", r[r.ERROR_DEVICE_VIDEODEVICE_NOTFOUND = 10004] = "ERROR_DEVICE_VIDEODEVICE_NOTFOUND", r[r.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED = 10005] = "ERROR_DEVICE_VIDEODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_VIDEODEVICE_NOTREADABLE = 10006] = "ERROR_DEVICE_VIDEODEVICE_NOTREADABLE", r[r.ERROR_SCREENSHARE_NOTSUPPORT = 10010] = "ERROR_SCREENSHARE_NOTSUPPORT", r[r.ERROR_SCREENSHARE_NOTALLOWED = 10011] = "ERROR_SCREENSHARE_NOTALLOWED", r[r.ERROR_SCREENSHARE_ENDED = 10012] = "ERROR_SCREENSHARE_ENDED", r[r.ERROR_SCREENSHARE_NOPERMISSION = 10013] = "ERROR_SCREENSHARE_NOPERMISSION", r[r.ERROR_SCREENSHARE_SAFARI_INVALIDACCESS = 10014] = "ERROR_SCREENSHARE_SAFARI_INVALIDACCESS", r[r.ERROR_SCREENSHARE_UNKNOWNERRO = 10019] = "ERROR_SCREENSHARE_UNKNOWNERRO", r[r.ERROR_DEVICE_NOTSUPPORT = 2e4] = "ERROR_DEVICE_NOTSUPPORT", r))(ei || {});
|
|
9802
9802
|
const q0 = {
|
|
9803
|
-
1e4:
|
|
9804
|
-
2e4:
|
|
9805
|
-
10001:
|
|
9806
|
-
10002:
|
|
9807
|
-
10003:
|
|
9808
|
-
10005:
|
|
9809
|
-
10004:
|
|
9810
|
-
10006:
|
|
9811
|
-
10010:
|
|
9812
|
-
10011:
|
|
9813
|
-
10012:
|
|
9814
|
-
10013:
|
|
9815
|
-
10014:
|
|
9816
|
-
10019:
|
|
9803
|
+
1e4: _e.AliEngineLocalDeviceExceptionTypeUnknown,
|
|
9804
|
+
2e4: _e.AliEngineLocalDeviceExceptionTypeUnknown,
|
|
9805
|
+
10001: _e.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
|
|
9806
|
+
10002: _e.AliEngineLocalDeviceExceptionTypeMicAuthFail,
|
|
9807
|
+
10003: _e.AliEngineLocalDeviceExceptionTypeMicOpenFail,
|
|
9808
|
+
10005: _e.AliEngineLocalDeviceExceptionTypeCameraAuthFail,
|
|
9809
|
+
10004: _e.AliEngineLocalDeviceExceptionTypeVideoDeviceException,
|
|
9810
|
+
10006: _e.AliEngineLocalDeviceExceptionTypeCameraOpenFail,
|
|
9811
|
+
10010: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
9812
|
+
10011: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
9813
|
+
10012: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
9814
|
+
10013: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
9815
|
+
10014: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
9816
|
+
10019: _e.AliEngineLocalDeviceExceptionTypeDisplayException
|
|
9817
9817
|
};
|
|
9818
|
-
var
|
|
9818
|
+
var Je = /* @__PURE__ */ ((r) => (r.CREATE_ENGINE = "create_engine", r.JOIN = "join", r.WANT_INSERT_PUB_TASK = "wantInsertPubTask", r.INSERT_PUB_TASK = "InsertPubTask", r.HANDLE_PUB_TASK = "HandlePubTask", r.RECV_NOTIFY_PUBLISH = "RecvNotifyPublish", r.INSERT_SUB_TASK = "InsertSubTask", r.HANDLE_SUB_TASK = "HandleSubTask", r.FIRST_REMOTE = "first_remote", r))(Je || {}), Xe = /* @__PURE__ */ ((r) => (r.START = "start", r.SEND_SIG = "send_sig", r.RECV_RST = "recv_rst", r.END = "end", r.RECEIVED = "received", r.DECODED = "decoded", r.PLAYED = "played", r))(Xe || {});
|
|
9819
9819
|
const J0 = (r) => r.getAudioTracks()[0];
|
|
9820
9820
|
function Ha(r) {
|
|
9821
9821
|
var a;
|
|
@@ -9832,7 +9832,7 @@ function Ha(r) {
|
|
|
9832
9832
|
} else
|
|
9833
9833
|
throw new F(U.ERR_INVALID_ARGUMENTS, "element id should be string");
|
|
9834
9834
|
}
|
|
9835
|
-
function
|
|
9835
|
+
function Ur(r) {
|
|
9836
9836
|
var e;
|
|
9837
9837
|
const a = [];
|
|
9838
9838
|
if (Array.isArray(r))
|
|
@@ -9892,7 +9892,7 @@ function za(r, a) {
|
|
|
9892
9892
|
let e = a;
|
|
9893
9893
|
return typeof window.__ali_prefer_media_server == "string" && window.__ali_prefer_media_server !== "" && (e = window.__ali_prefer_media_server), e ? `${r}&ali_prefer_media_server=${e}` : r;
|
|
9894
9894
|
}
|
|
9895
|
-
const
|
|
9895
|
+
const bn = (r, a, e = !1) => {
|
|
9896
9896
|
const t = () => (r.muted = !0, Promise.race([Et(500), r._playPromise || Promise.resolve()]).catch(() => {
|
|
9897
9897
|
}).then(() => {
|
|
9898
9898
|
let i;
|
|
@@ -9915,14 +9915,14 @@ const _n = (r, a, e = !1) => {
|
|
|
9915
9915
|
i(t());
|
|
9916
9916
|
}, 0);
|
|
9917
9917
|
});
|
|
9918
|
-
},
|
|
9918
|
+
}, at = (r) => {
|
|
9919
9919
|
Promise.race([Et(100), r._playPromise || Promise.resolve()]).catch(() => {
|
|
9920
9920
|
}).then(() => {
|
|
9921
9921
|
r.srcObject = null, r._playPromise = void 0;
|
|
9922
9922
|
});
|
|
9923
9923
|
};
|
|
9924
|
-
var
|
|
9925
|
-
class
|
|
9924
|
+
var En = /* @__PURE__ */ ((r) => (r[r.AliEngineDataMsgNone = 0] = "AliEngineDataMsgNone", r[r.AliEngineDataMsgMusicProgress = 1] = "AliEngineDataMsgMusicProgress", r[r.AliEngineDataMsgCustom = 2] = "AliEngineDataMsgCustom", r))(En || {});
|
|
9925
|
+
class Ii {
|
|
9926
9926
|
constructor(a, e, t, i = 0) {
|
|
9927
9927
|
m(this, "msgType");
|
|
9928
9928
|
m(this, "msgId");
|
|
@@ -9936,32 +9936,32 @@ class Di {
|
|
|
9936
9936
|
}
|
|
9937
9937
|
static parse(a) {
|
|
9938
9938
|
const e = new DataView(a), t = e.getUint8(0), i = e.getUint8(1) >> 4, s = e.getUint8(1) & 15, n = e.getUint16(2);
|
|
9939
|
-
return new
|
|
9939
|
+
return new Ii(s, n, t, i);
|
|
9940
9940
|
}
|
|
9941
9941
|
}
|
|
9942
|
-
const
|
|
9943
|
-
class
|
|
9942
|
+
const Tt = 5;
|
|
9943
|
+
class mi {
|
|
9944
9944
|
constructor(a, e, t) {
|
|
9945
9945
|
m(this, "_byteArray");
|
|
9946
9946
|
if (this._byteArray = new Uint8Array(0), a !== void 0 && e !== void 0 && t !== void 0) {
|
|
9947
|
-
const s = new
|
|
9947
|
+
const s = new Ii(a, e, t).build();
|
|
9948
9948
|
this._byteArray = new Uint8Array(s.byteLength + this._byteArray.byteLength), this._byteArray.set(s, 0);
|
|
9949
9949
|
}
|
|
9950
9950
|
}
|
|
9951
9951
|
write(a, e) {
|
|
9952
|
-
const t = this._byteArray, i = new ArrayBuffer(
|
|
9952
|
+
const t = this._byteArray, i = new ArrayBuffer(Tt), s = new DataView(i);
|
|
9953
9953
|
s.setUint8(0, a), s.setUint32(1, e.byteLength);
|
|
9954
|
-
const n = new Uint8Array(t.byteLength +
|
|
9955
|
-
n.set(t, 0), n.set(new Uint8Array(i), t.byteLength), n.set(new Uint8Array(e), t.byteLength +
|
|
9954
|
+
const n = new Uint8Array(t.byteLength + Tt + e.byteLength);
|
|
9955
|
+
n.set(t, 0), n.set(new Uint8Array(i), t.byteLength), n.set(new Uint8Array(e), t.byteLength + Tt), this._byteArray = n;
|
|
9956
9956
|
}
|
|
9957
9957
|
static parse(a) {
|
|
9958
9958
|
const e = {}, t = new DataView(a);
|
|
9959
9959
|
let i = 0;
|
|
9960
9960
|
for (; i < a.byteLength; ) {
|
|
9961
9961
|
const s = t.getUint8(i), n = t.getUint32(i + 1);
|
|
9962
|
-
if (i +
|
|
9963
|
-
const c = a.slice(i +
|
|
9964
|
-
e[s] = c, i +=
|
|
9962
|
+
if (i + Tt + n <= a.byteLength) {
|
|
9963
|
+
const c = a.slice(i + Tt, i + Tt + n);
|
|
9964
|
+
e[s] = c, i += Tt + n;
|
|
9965
9965
|
} else
|
|
9966
9966
|
break;
|
|
9967
9967
|
}
|
|
@@ -9971,7 +9971,7 @@ class Si {
|
|
|
9971
9971
|
return this._byteArray.buffer;
|
|
9972
9972
|
}
|
|
9973
9973
|
}
|
|
9974
|
-
class
|
|
9974
|
+
class oi {
|
|
9975
9975
|
constructor(a = 0, e = !0, t = 1, i = !1, s = 0, n = !1, c = !1, o = 3) {
|
|
9976
9976
|
m(this, "_fin", !0);
|
|
9977
9977
|
m(this, "_hasExtension", !1);
|
|
@@ -10019,7 +10019,7 @@ class ui {
|
|
|
10019
10019
|
}
|
|
10020
10020
|
static parse(a) {
|
|
10021
10021
|
const e = new DataView(a), t = e.getUint8(0) >> 7 === 1, i = (e.getUint8(0) & 64) >> 6 === 1, s = (e.getUint8(0) & 48) >> 4, n = e.getUint8(0) & 15, c = e.getUint8(1) >> 7 === 1, o = (e.getUint8(1) & 64) >> 6 === 1, u = e.getUint8(1) & 15, h = e.getUint16(2);
|
|
10022
|
-
return new
|
|
10022
|
+
return new oi(
|
|
10023
10023
|
h,
|
|
10024
10024
|
t,
|
|
10025
10025
|
n,
|
|
@@ -10031,10 +10031,10 @@ class ui {
|
|
|
10031
10031
|
);
|
|
10032
10032
|
}
|
|
10033
10033
|
}
|
|
10034
|
-
class
|
|
10034
|
+
class wi {
|
|
10035
10035
|
constructor(a, e) {
|
|
10036
10036
|
m(this, "_body");
|
|
10037
|
-
m(this, "_header", new
|
|
10037
|
+
m(this, "_header", new oi());
|
|
10038
10038
|
this._header = a, this._body = e;
|
|
10039
10039
|
}
|
|
10040
10040
|
get header() {
|
|
@@ -10053,12 +10053,12 @@ class Ti {
|
|
|
10053
10053
|
return i.set(new Uint8Array(t), 0), i.set(new Uint8Array(a), t.byteLength), i.set(new Uint8Array(e), t.byteLength + a.byteLength), i.buffer;
|
|
10054
10054
|
}
|
|
10055
10055
|
static parse(a) {
|
|
10056
|
-
const e = a.slice(0, 4), t =
|
|
10056
|
+
const e = a.slice(0, 4), t = oi.parse(e);
|
|
10057
10057
|
let i = new ArrayBuffer(0);
|
|
10058
|
-
return a.byteLength - 4 >= t.payloadLength && (i = a.slice(4, 4 + t.payloadLength)), new
|
|
10058
|
+
return a.byteLength - 4 >= t.payloadLength && (i = a.slice(4, 4 + t.payloadLength)), new wi(t, i);
|
|
10059
10059
|
}
|
|
10060
10060
|
}
|
|
10061
|
-
const
|
|
10061
|
+
const Pr = (r) => {
|
|
10062
10062
|
const a = r.byteLength, e = new DataView(r);
|
|
10063
10063
|
let t = 0;
|
|
10064
10064
|
for (let i = 0; i < a; i++)
|
|
@@ -10075,9 +10075,9 @@ class Kt {
|
|
|
10075
10075
|
this.data = a, this.type = e, this.networkTime = t, this.futureOrProgress = i;
|
|
10076
10076
|
}
|
|
10077
10077
|
toBuffer() {
|
|
10078
|
-
const a = new
|
|
10078
|
+
const a = new mi(0, 0, 0);
|
|
10079
10079
|
a.write(1, Uint8Array.from([0]).buffer), a.write(2, Uint16Array.from([0]).buffer), Wa++, a.write(3, Uint32Array.from([Wa]).buffer);
|
|
10080
|
-
const e = new
|
|
10080
|
+
const e = new mi();
|
|
10081
10081
|
return e.write(1, Uint8Array.from([0]).buffer), e.write(2, Uint8Array.from([this.type]).buffer), e.write(3, Uint32Array.from([this.futureOrProgress]).buffer), e.write(
|
|
10082
10082
|
4,
|
|
10083
10083
|
Uint32Array.from([Number(this.networkTime >> 32 & 4294967295), Number(this.networkTime & 4294967295)]).buffer
|
|
@@ -10086,14 +10086,14 @@ class Kt {
|
|
|
10086
10086
|
static parse(a) {
|
|
10087
10087
|
if (!a || a.byteLength < 4)
|
|
10088
10088
|
return;
|
|
10089
|
-
|
|
10090
|
-
const t =
|
|
10089
|
+
Ii.parse(a.slice(0, 4));
|
|
10090
|
+
const t = mi.parse(a.slice(4))[
|
|
10091
10091
|
30
|
|
10092
10092
|
/* TLV_TAG_Music */
|
|
10093
10093
|
];
|
|
10094
10094
|
if (!t)
|
|
10095
10095
|
return;
|
|
10096
|
-
const i =
|
|
10096
|
+
const i = mi.parse(t), s = i[
|
|
10097
10097
|
2
|
|
10098
10098
|
/* TLV_TAG_Command */
|
|
10099
10099
|
], n = i[
|
|
@@ -10109,9 +10109,9 @@ class Kt {
|
|
|
10109
10109
|
if (o.byteLength !== 0)
|
|
10110
10110
|
return new Kt(
|
|
10111
10111
|
o,
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10112
|
+
Pr(s),
|
|
10113
|
+
Pr(c),
|
|
10114
|
+
Pr(n)
|
|
10115
10115
|
);
|
|
10116
10116
|
}
|
|
10117
10117
|
}
|
|
@@ -10126,7 +10126,7 @@ class Zt extends De {
|
|
|
10126
10126
|
super();
|
|
10127
10127
|
m(this, "_state");
|
|
10128
10128
|
m(this, "time");
|
|
10129
|
-
this._state =
|
|
10129
|
+
this._state = Y.AliRtcStatePublishIdle, this.time = Date.now();
|
|
10130
10130
|
}
|
|
10131
10131
|
get state() {
|
|
10132
10132
|
return this._state;
|
|
@@ -10156,7 +10156,7 @@ const ge = (lt = class extends Sn {
|
|
|
10156
10156
|
m(this, "dc");
|
|
10157
10157
|
m(this, "streamTracks");
|
|
10158
10158
|
// 本地流 track 信息
|
|
10159
|
-
m(this, "publishId",
|
|
10159
|
+
m(this, "publishId", rt());
|
|
10160
10160
|
m(this, "signalingManager");
|
|
10161
10161
|
m(this, "traceId", "");
|
|
10162
10162
|
m(this, "monitorTimerId");
|
|
@@ -10278,9 +10278,9 @@ const ge = (lt = class extends Sn {
|
|
|
10278
10278
|
initInfo(e, t) {
|
|
10279
10279
|
this.joinTime = Date.now(), this.rtsManager.localJoinTime = this.joinTime, this.setUserInfo(e.userId, e.userId), this.url = t, this.callId = e.sessionId || He.createCallid(), this.updatePubId();
|
|
10280
10280
|
}
|
|
10281
|
-
setVideoProfile(e
|
|
10281
|
+
setVideoProfile(e) {
|
|
10282
10282
|
return w(this, null, function* () {
|
|
10283
|
-
yield this.streamManager.setVideoProfile(
|
|
10283
|
+
yield this.streamManager.setVideoProfile($0, e);
|
|
10284
10284
|
});
|
|
10285
10285
|
}
|
|
10286
10286
|
setVideoContentHint(e) {
|
|
@@ -10294,17 +10294,17 @@ const ge = (lt = class extends Sn {
|
|
|
10294
10294
|
yield this.streamManager.setAudioProfile(e);
|
|
10295
10295
|
});
|
|
10296
10296
|
}
|
|
10297
|
-
setScreenProfile(e
|
|
10297
|
+
setScreenProfile(e) {
|
|
10298
10298
|
return w(this, null, function* () {
|
|
10299
|
-
yield this.streamManager.setScreenProfile(
|
|
10299
|
+
yield this.streamManager.setScreenProfile(K0, e);
|
|
10300
10300
|
});
|
|
10301
10301
|
}
|
|
10302
10302
|
setCameraDirection(e) {
|
|
10303
|
-
if (e ===
|
|
10303
|
+
if (e === ni.CAMERA_FRONT)
|
|
10304
10304
|
this.streamManager.setCameraVideoConstraints({
|
|
10305
10305
|
facingMode: "user"
|
|
10306
10306
|
});
|
|
10307
|
-
else if (e ===
|
|
10307
|
+
else if (e === ni.CAMERA_REAR)
|
|
10308
10308
|
this.streamManager.setCameraVideoConstraints({
|
|
10309
10309
|
facingMode: "environment"
|
|
10310
10310
|
});
|
|
@@ -10334,7 +10334,7 @@ const ge = (lt = class extends Sn {
|
|
|
10334
10334
|
this.streamManager.setMicAudioConstraints(e);
|
|
10335
10335
|
}
|
|
10336
10336
|
updatePubId() {
|
|
10337
|
-
this.publishId =
|
|
10337
|
+
this.publishId = rt();
|
|
10338
10338
|
}
|
|
10339
10339
|
clearPublishState() {
|
|
10340
10340
|
this.streamTracks = void 0;
|
|
@@ -10347,11 +10347,11 @@ const ge = (lt = class extends Sn {
|
|
|
10347
10347
|
}
|
|
10348
10348
|
clear() {
|
|
10349
10349
|
return w(this, null, function* () {
|
|
10350
|
-
|
|
10350
|
+
ki(lt.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
|
|
10351
10351
|
});
|
|
10352
10352
|
}
|
|
10353
10353
|
resetElement(e) {
|
|
10354
|
-
this.previewElements.includes(e) && (
|
|
10354
|
+
this.previewElements.includes(e) && (at(e), this.previewElements.splice(this.previewElements.indexOf(e), 1)), this.screenPreviewElements.includes(e) && (at(e), this.screenPreviewElements.splice(this.screenPreviewElements.indexOf(e), 1));
|
|
10355
10355
|
}
|
|
10356
10356
|
setPreviewElement(e) {
|
|
10357
10357
|
const { videoElement: t, screen: i } = e;
|
|
@@ -10366,7 +10366,7 @@ const ge = (lt = class extends Sn {
|
|
|
10366
10366
|
} catch (n) {
|
|
10367
10367
|
const c = n.errorCode;
|
|
10368
10368
|
let o = U.ERR_CAMERA_OPEN_FAIL;
|
|
10369
|
-
throw c ===
|
|
10369
|
+
throw c === ei.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? o = U.ERR_CAMERA_NOT_AVAILABLE : c === ei.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (o = U.ERR_CAMERA_AUTH_FAIL), new F(o, `camera open fail: ${n.message}`);
|
|
10370
10370
|
}
|
|
10371
10371
|
});
|
|
10372
10372
|
}
|
|
@@ -10379,7 +10379,7 @@ const ge = (lt = class extends Sn {
|
|
|
10379
10379
|
} catch (s) {
|
|
10380
10380
|
const n = s.errorCode;
|
|
10381
10381
|
let c = U.ERR_MIC_OPEN_FAIL;
|
|
10382
|
-
throw n ===
|
|
10382
|
+
throw n === ei.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? c = U.ERR_MIC_NOT_AVAILABLE : n === ei.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (c = U.ERR_MIC_AUTH_FAIL), new F(c, `mic open fail: ${s.message}`);
|
|
10383
10383
|
}
|
|
10384
10384
|
});
|
|
10385
10385
|
}
|
|
@@ -10449,7 +10449,7 @@ const ge = (lt = class extends Sn {
|
|
|
10449
10449
|
O.info(`[${lt.logName}]`, "preview no stream founded");
|
|
10450
10450
|
return;
|
|
10451
10451
|
}
|
|
10452
|
-
return
|
|
10452
|
+
return bn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
|
|
10453
10453
|
} catch (s) {
|
|
10454
10454
|
const n = U.ERR_INNER;
|
|
10455
10455
|
throw F.fromError(s, n, "preview failed");
|
|
@@ -10479,17 +10479,17 @@ const ge = (lt = class extends Sn {
|
|
|
10479
10479
|
const { videoElement: t, primary: i = !0, screen: s = !0 } = e || {};
|
|
10480
10480
|
if (!t)
|
|
10481
10481
|
i && (this.previewElements.forEach((n) => {
|
|
10482
|
-
|
|
10482
|
+
at(n);
|
|
10483
10483
|
}), this.previewElements = []), s && (this.screenPreviewElements.forEach((n) => {
|
|
10484
|
-
|
|
10484
|
+
at(n);
|
|
10485
10485
|
}), this.screenPreviewElements = []);
|
|
10486
10486
|
else {
|
|
10487
10487
|
const n = this.previewElements.findIndex((c) => c === t);
|
|
10488
10488
|
if (n >= 0)
|
|
10489
|
-
this.previewElements.splice(n, 1),
|
|
10489
|
+
this.previewElements.splice(n, 1), at(t);
|
|
10490
10490
|
else {
|
|
10491
10491
|
const c = this.screenPreviewElements.findIndex((o) => o === t);
|
|
10492
|
-
c >= 0 && (this.screenPreviewElements.splice(c, 1),
|
|
10492
|
+
c >= 0 && (this.screenPreviewElements.splice(c, 1), at(t));
|
|
10493
10493
|
}
|
|
10494
10494
|
}
|
|
10495
10495
|
}
|
|
@@ -10504,12 +10504,12 @@ const ge = (lt = class extends Sn {
|
|
|
10504
10504
|
if (e.video)
|
|
10505
10505
|
for (let i = 0; i < this.previewElements.length; i++) {
|
|
10506
10506
|
const s = this.previewElements[i];
|
|
10507
|
-
|
|
10507
|
+
at(s);
|
|
10508
10508
|
}
|
|
10509
10509
|
else if (e.screen)
|
|
10510
10510
|
for (let i = 0; i < this.screenPreviewElements.length; i++) {
|
|
10511
10511
|
const s = this.screenPreviewElements[i];
|
|
10512
|
-
|
|
10512
|
+
at(s);
|
|
10513
10513
|
}
|
|
10514
10514
|
const t = yield this.streamManager.createLocalStream(e);
|
|
10515
10515
|
return t != null && t.audioTrack && this.audioVolumeIndicationInterval > 0 && this.audioLevelMonitor.start(t.audioTrack, this.audioVolumeIndicationInterval), e.video ? this.previewAll({ primary: !0 }) : e.screen && this.previewAll({ screen: !0 }), t;
|
|
@@ -10597,13 +10597,13 @@ const ge = (lt = class extends Sn {
|
|
|
10597
10597
|
}
|
|
10598
10598
|
publishDataChannel() {
|
|
10599
10599
|
return w(this, null, function* () {
|
|
10600
|
-
if (this.dataPubState.state !==
|
|
10601
|
-
this.dataPubState.setState(
|
|
10600
|
+
if (this.dataPubState.state !== Y.AliRtcStatePublishing) {
|
|
10601
|
+
this.dataPubState.setState(Y.AliRtcStatePublishing);
|
|
10602
10602
|
try {
|
|
10603
10603
|
const e = yield this.rtsManager.publishAddDataChannel(this.url);
|
|
10604
|
-
e ? (this.updateDataChannel(e), this.dataPubState.setState(
|
|
10604
|
+
e ? (this.updateDataChannel(e), this.dataPubState.setState(Y.AliRtcStatePublished)) : (this.dataPubState.setState(Y.AliRtcStateNoPublish), this.emit("publishDataError", new F(U.ERR_INNER, "publishDataError")));
|
|
10605
10605
|
} catch (e) {
|
|
10606
|
-
this.dataPubState.setState(
|
|
10606
|
+
this.dataPubState.setState(Y.AliRtcStateNoPublish);
|
|
10607
10607
|
}
|
|
10608
10608
|
}
|
|
10609
10609
|
});
|
|
@@ -10621,7 +10621,7 @@ const ge = (lt = class extends Sn {
|
|
|
10621
10621
|
this.createCallId();
|
|
10622
10622
|
try {
|
|
10623
10623
|
const h = (/* @__PURE__ */ new Date()).getTime();
|
|
10624
|
-
s && this.audioPubState.setState(
|
|
10624
|
+
s && this.audioPubState.setState(Y.AliRtcStatePublishing), n && this.videoPubState.setState(Y.AliRtcStatePublishing), c && this.videoSmallPubState.setState(Y.AliRtcStatePublishing), o && this.screenPubState.setState(Y.AliRtcStatePublishing), this.publishPromise = this.rtsManager.publish(this.url, this.callId, e, t);
|
|
10625
10625
|
const { traceId: p, l1ip: d } = yield this.publishPromise;
|
|
10626
10626
|
this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = p, (u = this.parameter.data) != null && u.enablePubDataChannel && (yield this.publishDataChannel()), s && (this.trackTraceIdMap[T.Audio] = p, this.reportAudioProfile()), c && (this.trackTraceIdMap[T.VideoSmall] = p), n && (this.trackTraceIdMap[T.VideoLarge] = p, this.reportVideoProfile()), o && (this.trackTraceIdMap[T.Screen] = p, this.reportScreenProfile());
|
|
10627
10627
|
const f = {
|
|
@@ -10640,9 +10640,9 @@ const ge = (lt = class extends Sn {
|
|
|
10640
10640
|
tracks: this.streamTracks,
|
|
10641
10641
|
traceid: p
|
|
10642
10642
|
};
|
|
10643
|
-
yield this.syncPublishToRoomServer(f, i, h), s && this.audioPubState.setState(
|
|
10643
|
+
yield this.syncPublishToRoomServer(f, i, h), s && this.audioPubState.setState(Y.AliRtcStatePublished), n && this.videoPubState.setState(Y.AliRtcStatePublished), c && this.videoSmallPubState.setState(Y.AliRtcStatePublished), o && this.screenPubState.setState(Y.AliRtcStatePublished);
|
|
10644
10644
|
} catch (h) {
|
|
10645
|
-
throw s && this.audioPubState.setState(
|
|
10645
|
+
throw s && this.audioPubState.setState(Y.AliRtcStateNoPublish), n && this.videoPubState.setState(Y.AliRtcStateNoPublish), c && this.videoSmallPubState.setState(Y.AliRtcStateNoPublish), o && this.screenPubState.setState(Y.AliRtcStateNoPublish), h;
|
|
10646
10646
|
}
|
|
10647
10647
|
});
|
|
10648
10648
|
}
|
|
@@ -10726,8 +10726,8 @@ const ge = (lt = class extends Sn {
|
|
|
10726
10726
|
throw new F(U.ERR_INNER, "sync publish to room server failed because no publishInfo");
|
|
10727
10727
|
let s = e;
|
|
10728
10728
|
if (this.dc) {
|
|
10729
|
-
const c = e, { tracks: u } = c, h =
|
|
10730
|
-
s = ut(
|
|
10729
|
+
const c = e, { tracks: u } = c, h = wt(c, ["tracks"]);
|
|
10730
|
+
s = ut(G({}, h), {
|
|
10731
10731
|
tracks: [
|
|
10732
10732
|
...u,
|
|
10733
10733
|
{
|
|
@@ -10760,10 +10760,10 @@ const ge = (lt = class extends Sn {
|
|
|
10760
10760
|
return w(this, null, function* () {
|
|
10761
10761
|
this.createCallId();
|
|
10762
10762
|
const n = (t == null ? void 0 : t.aMsid) === T.Audio, c = (t == null ? void 0 : t.vMsid) === T.VideoLarge, o = (t == null ? void 0 : t.vMsid) === T.VideoSmall, u = (t == null ? void 0 : t.vMsid) === T.Screen;
|
|
10763
|
-
n && this.audioPubState.setState(
|
|
10763
|
+
n && this.audioPubState.setState(Y.AliRtcStatePublishing), c && this.videoPubState.setState(Y.AliRtcStatePublishing), o && this.videoSmallPubState.setState(Y.AliRtcStatePublishing), u && this.screenPubState.setState(Y.AliRtcStatePublishing);
|
|
10764
10764
|
try {
|
|
10765
10765
|
const h = yield this.rtsManager.publishAdd(this.url, e, this.callId, t, !1, !0);
|
|
10766
|
-
n && (this.audioPubState.setState(
|
|
10766
|
+
n && (this.audioPubState.setState(Y.AliRtcStatePublished), this.reportAudioProfile(), this.trackTraceIdMap[T.Audio] = h), c && (this.videoPubState.setState(Y.AliRtcStatePublished), this.reportVideoProfile(), this.trackTraceIdMap[T.VideoLarge] = h), o && (this.videoSmallPubState.setState(Y.AliRtcStatePublished), this.trackTraceIdMap[T.VideoSmall] = h), u && (this.screenPubState.setState(Y.AliRtcStatePublished), this.reportScreenProfile(), this.trackTraceIdMap[T.Screen] = h), this.streamTracks = this.rtsManager.publishingTracks;
|
|
10767
10767
|
const p = {
|
|
10768
10768
|
type: St.Add,
|
|
10769
10769
|
userid: this.userId,
|
|
@@ -10782,7 +10782,7 @@ const ge = (lt = class extends Sn {
|
|
|
10782
10782
|
return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), p;
|
|
10783
10783
|
} catch (h) {
|
|
10784
10784
|
let p = U.ERR_SDK_PUBLISH_INVAILD;
|
|
10785
|
-
if (n && (this.audioPubState.setState(
|
|
10785
|
+
if (n && (this.audioPubState.setState(Y.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(Y.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(Y.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(Y.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
|
|
10786
10786
|
return this.publishAdd(e, t, i, s + 1);
|
|
10787
10787
|
throw F.fromError(h, p, "publish add failed");
|
|
10788
10788
|
}
|
|
@@ -10831,7 +10831,7 @@ const ge = (lt = class extends Sn {
|
|
|
10831
10831
|
tracks: []
|
|
10832
10832
|
};
|
|
10833
10833
|
try {
|
|
10834
|
-
return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(
|
|
10834
|
+
return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(Y.AliRtcStateNoPublish), e.video && (e.vMsid === T.VideoSmall ? this.videoSmallPubState.setState(Y.AliRtcStateNoPublish) : this.videoPubState.setState(Y.AliRtcStateNoPublish)), e.screen && this.screenPubState.setState(Y.AliRtcStateNoPublish), t.tracks = this.streamTracks, this.reportSelfDeviceStatus(), t;
|
|
10835
10835
|
} catch (i) {
|
|
10836
10836
|
throw F.fromError(i, U.ERR_INNER, "publish delete tracks failed");
|
|
10837
10837
|
}
|
|
@@ -10848,7 +10848,7 @@ const ge = (lt = class extends Sn {
|
|
|
10848
10848
|
const e = (/* @__PURE__ */ new Date()).getTime();
|
|
10849
10849
|
try {
|
|
10850
10850
|
const t = this.hasAudioTrackInMS, i = this.hasCameraTrackInMS, s = this.hasCameraDualTrackInMS, n = this.hasScreenTrackInMS;
|
|
10851
|
-
yield this.rtsManager.publishStop(this.url), t && this.audioPubState.setState(
|
|
10851
|
+
yield this.rtsManager.publishStop(this.url), t && this.audioPubState.setState(Y.AliRtcStateNoPublish), i && this.videoPubState.setState(Y.AliRtcStateNoPublish), s && this.videoSmallPubState.setState(Y.AliRtcStateNoPublish), n && this.screenPubState.setState(Y.AliRtcStateNoPublish), this.traceId = "", Object.keys(this.monitorDataCache).forEach((o) => {
|
|
10852
10852
|
this.reportPublishMonitor(o);
|
|
10853
10853
|
}), this.streamTracks = [];
|
|
10854
10854
|
const c = {
|
|
@@ -10889,9 +10889,9 @@ const ge = (lt = class extends Sn {
|
|
|
10889
10889
|
try {
|
|
10890
10890
|
if (this._isPublishing) {
|
|
10891
10891
|
const i = this.hasAudioTrackInMS, s = this.hasCameraTrackInMS, n = this.hasCameraDualTrackInMS, c = this.hasScreenTrackInMS;
|
|
10892
|
-
yield this.rtsManager.unpublish(), this.streamTracks = [], this.stopStreamMonitor(), i && this.audioPubState.setState(
|
|
10892
|
+
yield this.rtsManager.unpublish(), this.streamTracks = [], this.stopStreamMonitor(), i && this.audioPubState.setState(Y.AliRtcStateNoPublish), s && this.videoPubState.setState(Y.AliRtcStateNoPublish), n && this.videoSmallPubState.setState(Y.AliRtcStateNoPublish), c && this.screenPubState.setState(Y.AliRtcStateNoPublish), this._isPublishing = !1, this.traceId = "", this.clearStream();
|
|
10893
10893
|
}
|
|
10894
|
-
return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(
|
|
10894
|
+
return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(Y.AliRtcStateNoPublish), this.dc = void 0), this.slsReporter.reportUnpublish(this.callId || "", e, 0, ""), t;
|
|
10895
10895
|
} catch (i) {
|
|
10896
10896
|
throw F.fromError(i, U.ERR_INNER, "unpublish failed");
|
|
10897
10897
|
}
|
|
@@ -10972,7 +10972,7 @@ const ge = (lt = class extends Sn {
|
|
|
10972
10972
|
let c;
|
|
10973
10973
|
if (((e = this.candidateDataCache) == null ? void 0 : e.length) > 0) {
|
|
10974
10974
|
const t = this.candidateDataCache[this.candidateDataCache.length - 1] || {}, { _last: h } = t;
|
|
10975
|
-
c =
|
|
10975
|
+
c = wt(t, ["_last"]);
|
|
10976
10976
|
}
|
|
10977
10977
|
((i = this.candidateDataCache) == null ? void 0 : i.length) >= $a && this.reportNetwork(), n && (n._last = c, this.candidateDataCache.push(n));
|
|
10978
10978
|
let o = Object.keys(this.monitorDataCache).filter((u) => {
|
|
@@ -10995,7 +10995,7 @@ const ge = (lt = class extends Sn {
|
|
|
10995
10995
|
let S;
|
|
10996
10996
|
if ((l == null ? void 0 : l.length) > 0) {
|
|
10997
10997
|
const v = l[l.length - 1] || {}, { _last: b } = v;
|
|
10998
|
-
S =
|
|
10998
|
+
S = wt(v, ["_last"]);
|
|
10999
10999
|
}
|
|
11000
11000
|
(l == null ? void 0 : l.length) >= $a && this.reportPublishMonitor(h), f._last = S, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
|
|
11001
11001
|
});
|
|
@@ -11019,7 +11019,7 @@ const ge = (lt = class extends Sn {
|
|
|
11019
11019
|
* @returns {void}
|
|
11020
11020
|
*/
|
|
11021
11021
|
clearStream() {
|
|
11022
|
-
this.streamManager.stop(), this.audioPubState.setState(
|
|
11022
|
+
this.streamManager.stop(), this.audioPubState.setState(Y.AliRtcStatePublishIdle), this.videoPubState.setState(Y.AliRtcStatePublishIdle), this.videoSmallPubState.setState(Y.AliRtcStatePublishIdle), this.screenPubState.setState(Y.AliRtcStatePublishIdle);
|
|
11023
11023
|
}
|
|
11024
11024
|
/**
|
|
11025
11025
|
* 获取当前使用的摄像头 deviceId
|
|
@@ -11057,8 +11057,8 @@ const ge = (lt = class extends Sn {
|
|
|
11057
11057
|
throw new F(U.ERR_INNER, "data channel is not ready");
|
|
11058
11058
|
const t = e.toBuffer(), i = G0(t, 1156);
|
|
11059
11059
|
i.forEach((n, c) => {
|
|
11060
|
-
const o = new
|
|
11061
|
-
new
|
|
11060
|
+
const o = new wi(
|
|
11061
|
+
new oi(n.byteLength, c === i.length - 1, c === 0 ? 1 : 0),
|
|
11062
11062
|
n
|
|
11063
11063
|
);
|
|
11064
11064
|
this.dc.send(o.toGRTNBuffer());
|
|
@@ -11180,30 +11180,30 @@ me([
|
|
|
11180
11180
|
D(([r, a, e]) => [r.length, a, e])
|
|
11181
11181
|
], ge.prototype, "sendSEI", 1);
|
|
11182
11182
|
let Q0 = ge;
|
|
11183
|
-
var vt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(vt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}),
|
|
11183
|
+
var vt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(vt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), Lt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(Lt || {});
|
|
11184
11184
|
const ec = (r) => {
|
|
11185
11185
|
const a = new MediaStream();
|
|
11186
11186
|
return a.addTrack(r), a;
|
|
11187
|
-
},
|
|
11187
|
+
}, _n = (r) => w(void 0, null, function* () {
|
|
11188
11188
|
return yield le.createStream({
|
|
11189
11189
|
custom: !0,
|
|
11190
11190
|
mediaStream: r
|
|
11191
11191
|
});
|
|
11192
11192
|
}), Qt = (r) => w(void 0, null, function* () {
|
|
11193
11193
|
const a = ec(r);
|
|
11194
|
-
return yield
|
|
11194
|
+
return yield _n(a);
|
|
11195
11195
|
}), tc = (r) => {
|
|
11196
11196
|
const { audio: a, video: e, screen: t } = r;
|
|
11197
11197
|
if (e && t)
|
|
11198
11198
|
throw new F(U.ERR_INNER, "create stream error, cannot create video && screen together");
|
|
11199
11199
|
return !(!e && !a && !t);
|
|
11200
|
-
}, ic = (r) => r === T.Audio || r ===
|
|
11200
|
+
}, ic = (r) => r === T.Audio || r === Kr.Audio, rc = (r) => r === T.VideoLarge || r === Kr.VideoLarge, sc = (r) => r === T.VideoSmall, ac = (r) => r === T.Screen, nc = (r) => r === T.Data;
|
|
11201
11201
|
var oc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, uc = (r, a, e, t) => {
|
|
11202
11202
|
for (var i = t > 1 ? void 0 : t ? cc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
11203
11203
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
11204
11204
|
return t && i && oc(a, e, i), i;
|
|
11205
11205
|
};
|
|
11206
|
-
class
|
|
11206
|
+
class Ei extends De {
|
|
11207
11207
|
constructor() {
|
|
11208
11208
|
super();
|
|
11209
11209
|
m(this, "audioInfo", {
|
|
@@ -11441,10 +11441,10 @@ class Ai extends De {
|
|
|
11441
11441
|
/**
|
|
11442
11442
|
* @ignore
|
|
11443
11443
|
*/
|
|
11444
|
-
m(
|
|
11444
|
+
m(Ei, "logName", "RemoteStreamInfo");
|
|
11445
11445
|
uc([
|
|
11446
11446
|
D()
|
|
11447
|
-
],
|
|
11447
|
+
], Ei.prototype, "updateRemoteTrackSubState", 1);
|
|
11448
11448
|
class hc {
|
|
11449
11449
|
constructor(a) {
|
|
11450
11450
|
m(this, "remoteUser");
|
|
@@ -11585,7 +11585,7 @@ const Ce = (Me = class extends Sn {
|
|
|
11585
11585
|
});
|
|
11586
11586
|
m(this, "onDataChannelMessage", (e) => {
|
|
11587
11587
|
var s;
|
|
11588
|
-
const t =
|
|
11588
|
+
const t = wi.parse(e.slice(4));
|
|
11589
11589
|
let i;
|
|
11590
11590
|
if (t.body)
|
|
11591
11591
|
if (t.isFin) {
|
|
@@ -11629,7 +11629,7 @@ const Ce = (Me = class extends Sn {
|
|
|
11629
11629
|
m(this, "handleAudioPaused", () => {
|
|
11630
11630
|
this.emit("remoteAudioPlayError", this.uid, "paused");
|
|
11631
11631
|
});
|
|
11632
|
-
this.streamInfo = new
|
|
11632
|
+
this.streamInfo = new Ei(), this.remoteUserInfo = new hc(this), this.parameter = d, this.streamInfo.on(Le.Remote, (g) => {
|
|
11633
11633
|
this.emit(Le.Remote, g, this.userId);
|
|
11634
11634
|
}), this.signalingManager = o, this.viewMap = (f = n[t]) != null ? f : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new jt(), this.audioSubState.on("change", (g, l, S) => {
|
|
11635
11635
|
this.emit("audioSubscribeStateChanged", this.uid, g, l, S);
|
|
@@ -11765,14 +11765,14 @@ const Ce = (Me = class extends Sn {
|
|
|
11765
11765
|
U.ERR_INVALID_ARGUMENTS,
|
|
11766
11766
|
"track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
|
|
11767
11767
|
);
|
|
11768
|
-
e ?
|
|
11768
|
+
e ? Ur(e).forEach((s) => {
|
|
11769
11769
|
s.setAttribute("playsinline", ""), le.BrowserUtil.isMicroMessenger && (s.setAttribute("x5-video-player-type", "h5-page"), s.setAttribute("x5-playsinline", ""), le.SystenUtil.isAndroid || le.SystenUtil.isIos && s.setAttribute("x-webkit-airplay", "allow")), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(s) : this.viewMap.cameraViews.push(s), this.play(s, t === se.AliRtcVideoTrackScreen);
|
|
11770
11770
|
}) : (this.stopPlayAll(t === se.AliRtcVideoTrackScreen), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews = [] : this.viewMap.cameraViews = []);
|
|
11771
11771
|
}
|
|
11772
11772
|
clear(e = !0) {
|
|
11773
11773
|
return w(this, null, function* () {
|
|
11774
11774
|
var t;
|
|
11775
|
-
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl),
|
|
11775
|
+
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), ki(Me.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, $t.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Le.Remote);
|
|
11776
11776
|
});
|
|
11777
11777
|
}
|
|
11778
11778
|
updateRemoteUserDeviceStatus(e) {
|
|
@@ -11782,7 +11782,7 @@ const Ce = (Me = class extends Sn {
|
|
|
11782
11782
|
updateRemoteTracks(e, t, i, s) {
|
|
11783
11783
|
return w(this, null, function* () {
|
|
11784
11784
|
var c;
|
|
11785
|
-
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new
|
|
11785
|
+
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new Ei()), (c = this.streamInfo) == null ? void 0 : c.updateTracks(s);
|
|
11786
11786
|
});
|
|
11787
11787
|
}
|
|
11788
11788
|
subscribe(s, n) {
|
|
@@ -12171,7 +12171,7 @@ const Ce = (Me = class extends Sn {
|
|
|
12171
12171
|
}
|
|
12172
12172
|
play(e, t = !1, i = !1) {
|
|
12173
12173
|
const s = t ? this.screenStream : this.stream;
|
|
12174
|
-
!e || !s || !s.mediaStream ||
|
|
12174
|
+
!e || !s || !s.mediaStream || bn(e, s.mediaStream, i).catch((n) => {
|
|
12175
12175
|
n.code === 20 || n.name === "AbortError" || this.handleVideoPlayFailded(
|
|
12176
12176
|
e,
|
|
12177
12177
|
t ? se.AliRtcVideoTrackScreen : se.AliRtcVideoTrackCamera
|
|
@@ -12180,9 +12180,9 @@ const Ce = (Me = class extends Sn {
|
|
|
12180
12180
|
}
|
|
12181
12181
|
stopPlayAll(e = !1) {
|
|
12182
12182
|
e ? this.viewMap.screenViews.forEach((t) => {
|
|
12183
|
-
|
|
12183
|
+
at(t);
|
|
12184
12184
|
}) : this.viewMap.cameraViews.forEach((t) => {
|
|
12185
|
-
|
|
12185
|
+
at(t);
|
|
12186
12186
|
});
|
|
12187
12187
|
}
|
|
12188
12188
|
/**
|
|
@@ -12300,7 +12300,7 @@ const Ce = (Me = class extends Sn {
|
|
|
12300
12300
|
let u;
|
|
12301
12301
|
if ((o == null ? void 0 : o.length) > 0) {
|
|
12302
12302
|
const h = o[o.length - 1] || {}, { _last: f } = h;
|
|
12303
|
-
u =
|
|
12303
|
+
u = wt(h, ["_last"]);
|
|
12304
12304
|
}
|
|
12305
12305
|
(o == null ? void 0 : o.length) >= fc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, n && (c._source = (p = this.localUser) == null ? void 0 : p.getMediaStats(c.playoutId)), this.monitorDataCache[i].push(c);
|
|
12306
12306
|
});
|
|
@@ -12411,17 +12411,17 @@ class gc extends De {
|
|
|
12411
12411
|
return Array.from(this.plugins.values());
|
|
12412
12412
|
}
|
|
12413
12413
|
}
|
|
12414
|
-
var mc = Object.defineProperty, xc = Object.getOwnPropertyDescriptor,
|
|
12414
|
+
var mc = Object.defineProperty, xc = Object.getOwnPropertyDescriptor, Ee = (r, a, e, t) => {
|
|
12415
12415
|
for (var i = t > 1 ? void 0 : t ? xc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
12416
12416
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
12417
12417
|
return t && i && mc(a, e, i), i;
|
|
12418
12418
|
};
|
|
12419
|
-
const
|
|
12419
|
+
const Di = ([r]) => {
|
|
12420
12420
|
const { remoteUser: a, options: e } = r;
|
|
12421
12421
|
return [`user(${a.userId})`, e];
|
|
12422
12422
|
}, Ka = 5, qa = 17, Ja = 5e3;
|
|
12423
|
-
var
|
|
12424
|
-
const xe = (
|
|
12423
|
+
var Ae;
|
|
12424
|
+
const xe = (Ae = class extends De {
|
|
12425
12425
|
constructor(e, t, i) {
|
|
12426
12426
|
super();
|
|
12427
12427
|
m(this, "rts");
|
|
@@ -12451,31 +12451,31 @@ const xe = (_e = class extends De {
|
|
|
12451
12451
|
addRTSListener() {
|
|
12452
12452
|
this.rts.on("connectStatusChange", (e) => {
|
|
12453
12453
|
var t, i, s, n;
|
|
12454
|
-
if (O.event(`[${
|
|
12454
|
+
if (O.event(`[${Ae.logName}]`, "rts connectStatusChange to:", e.status), e.status === Bi.CONNECT_STATUS_DISCONNECTED)
|
|
12455
12455
|
this.dcReject && this.dcReject(), this.setConnected(!1), this.slsReporter.reportWarning("rts disconnected"), this.emit("disconnected");
|
|
12456
|
-
else if (e.status ===
|
|
12456
|
+
else if (e.status === Bi.CONNECT_STATUS_RECONNECTING)
|
|
12457
12457
|
this._rtsReconnecting = !0;
|
|
12458
|
-
else if (e.status ===
|
|
12458
|
+
else if (e.status === Bi.CONNECT_STATUS_CONNECTED) {
|
|
12459
12459
|
const c = (n = (s = (i = (t = this.rts.commonController) == null ? void 0 : t.peerCore) == null ? void 0 : i.getSignal()) == null ? void 0 : s.getDatachannelCore()) == null ? void 0 : n.readyState;
|
|
12460
|
-
O.event(`[${
|
|
12460
|
+
O.event(`[${Ae.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList()), this.setConnected(!0);
|
|
12461
12461
|
}
|
|
12462
12462
|
}), this.rts.on("reconnectFinish", () => {
|
|
12463
|
-
O.event(`[${
|
|
12463
|
+
O.event(`[${Ae.logName}]`, "rts reconnectFinish");
|
|
12464
12464
|
try {
|
|
12465
12465
|
this.emit("connected", !0, this._rtsPeerConnectionType);
|
|
12466
12466
|
} catch (e) {
|
|
12467
|
-
O.error(`[${
|
|
12467
|
+
O.error(`[${Ae.logName}]`, "emit connected error:", e);
|
|
12468
12468
|
}
|
|
12469
12469
|
}), this.rts.on("datachannelStatusChange", (e) => {
|
|
12470
|
-
O.event(`[${
|
|
12470
|
+
O.event(`[${Ae.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === xs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === xs.DATACHANNEL_STATUS_CLOSE && (this.dcReject && this.dcReject(), this.dcConnectingPromise = new Promise((t, i) => {
|
|
12471
12471
|
this.dcResolve = t, this.dcReject = i;
|
|
12472
12472
|
}));
|
|
12473
12473
|
}), this.rts.on("receivedSEI", (e) => {
|
|
12474
12474
|
this.emit("seimessage", e.url, e.sei.payloadType, e.sei.data);
|
|
12475
12475
|
}), this.rts.on("onError", (e) => {
|
|
12476
|
-
O.event(`[${
|
|
12476
|
+
O.event(`[${Ae.logName}]`, "rts onError event:", e);
|
|
12477
12477
|
}), this.rts.on("reconnect", (e) => {
|
|
12478
|
-
O.event(`[${
|
|
12478
|
+
O.event(`[${Ae.logName}]`, "rts reconnect event:", e);
|
|
12479
12479
|
});
|
|
12480
12480
|
}
|
|
12481
12481
|
/**
|
|
@@ -12566,7 +12566,7 @@ const xe = (_e = class extends De {
|
|
|
12566
12566
|
let o;
|
|
12567
12567
|
const u = Date.now(), { publishStream: h, videoSmallStream: p, screenStream: d, vMsid: f } = yield this.localStreamManager.createHTTPPublishStream();
|
|
12568
12568
|
if (!h)
|
|
12569
|
-
return O.warn(`[${
|
|
12569
|
+
return O.warn(`[${Ae.logName}]`, "publishStream is null"), {
|
|
12570
12570
|
traceId: "",
|
|
12571
12571
|
l1ip: o
|
|
12572
12572
|
};
|
|
@@ -12601,7 +12601,7 @@ const xe = (_e = class extends De {
|
|
|
12601
12601
|
x
|
|
12602
12602
|
), F.fromRtsError(_);
|
|
12603
12603
|
}
|
|
12604
|
-
O.event(`[${
|
|
12604
|
+
O.event(`[${Ae.logName}]`, "rts publish success", v), this.slsReporter.reportPublish(
|
|
12605
12605
|
i,
|
|
12606
12606
|
e,
|
|
12607
12607
|
t,
|
|
@@ -12614,14 +12614,14 @@ const xe = (_e = class extends De {
|
|
|
12614
12614
|
v,
|
|
12615
12615
|
x
|
|
12616
12616
|
), this.slsReporter.reportConnectionLatencyEvent(
|
|
12617
|
-
|
|
12618
|
-
|
|
12617
|
+
Je.HANDLE_PUB_TASK,
|
|
12618
|
+
Xe.START,
|
|
12619
12619
|
t,
|
|
12620
12620
|
v,
|
|
12621
12621
|
u
|
|
12622
12622
|
), this.slsReporter.reportConnectionLatencyEvent(
|
|
12623
|
-
|
|
12624
|
-
|
|
12623
|
+
Je.HANDLE_PUB_TASK,
|
|
12624
|
+
Xe.END,
|
|
12625
12625
|
t,
|
|
12626
12626
|
v,
|
|
12627
12627
|
Date.now()
|
|
@@ -12691,8 +12691,8 @@ const xe = (_e = class extends De {
|
|
|
12691
12691
|
try {
|
|
12692
12692
|
const A = yield ja(
|
|
12693
12693
|
(R) => w(this, null, function* () {
|
|
12694
|
-
return R > 0 && O.event(`[${
|
|
12695
|
-
|
|
12694
|
+
return R > 0 && O.event(`[${Ae.logName}]`, `publishAdd retry times: ${R}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
|
|
12695
|
+
G({
|
|
12696
12696
|
url: e,
|
|
12697
12697
|
stream: t,
|
|
12698
12698
|
updateSourceStream: !1
|
|
@@ -12754,7 +12754,7 @@ const xe = (_e = class extends De {
|
|
|
12754
12754
|
const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === T.Audio)) == null ? void 0 : h.msid, s = (d = (p = this.publishingTracks) == null ? void 0 : p.find(({ msid: v }) => v === T.VideoLarge)) == null ? void 0 : d.msid, n = (g = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === T.Screen)) == null ? void 0 : g.msid, c = [];
|
|
12755
12755
|
t.screen && n ? c.push(n) : t.video && c.push(t.vMsid || s);
|
|
12756
12756
|
const o = [];
|
|
12757
|
-
t.audio && i && o.push(i), O.event(
|
|
12757
|
+
t.audio && i && o.push(i), O.event(Ae.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
|
|
12758
12758
|
try {
|
|
12759
12759
|
const [v] = (yield this.rts.publishDeleteTracks([
|
|
12760
12760
|
{
|
|
@@ -12763,7 +12763,7 @@ const xe = (_e = class extends De {
|
|
|
12763
12763
|
vMsid: c
|
|
12764
12764
|
}
|
|
12765
12765
|
])) || [];
|
|
12766
|
-
return O.event(
|
|
12766
|
+
return O.event(Ae.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((S = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : S.trackId) || "";
|
|
12767
12767
|
} catch (v) {
|
|
12768
12768
|
throw F.fromRtsError(v);
|
|
12769
12769
|
}
|
|
@@ -12870,7 +12870,7 @@ const xe = (_e = class extends De {
|
|
|
12870
12870
|
subscribeAdd(e) {
|
|
12871
12871
|
return w(this, null, function* () {
|
|
12872
12872
|
var n, c, o, u;
|
|
12873
|
-
const { remoteUser: t, options: i } = e, s = ut(
|
|
12873
|
+
const { remoteUser: t, options: i } = e, s = ut(G({
|
|
12874
12874
|
url: t.streamUrl,
|
|
12875
12875
|
subAudio: !!i.audio,
|
|
12876
12876
|
subVideo: !!(i.screen || i.video)
|
|
@@ -12880,7 +12880,7 @@ const xe = (_e = class extends De {
|
|
|
12880
12880
|
try {
|
|
12881
12881
|
return (yield ja(
|
|
12882
12882
|
(p) => w(this, null, function* () {
|
|
12883
|
-
return yield this.dcConnectingPromise, p > 0 && O.event(`[${
|
|
12883
|
+
return yield this.dcConnectingPromise, p > 0 && O.event(`[${Ae.logName}]`, `subscribeAdd retry times: ${p}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
|
|
12884
12884
|
}),
|
|
12885
12885
|
Ka,
|
|
12886
12886
|
0,
|
|
@@ -12898,7 +12898,7 @@ const xe = (_e = class extends De {
|
|
|
12898
12898
|
return w(this, null, function* () {
|
|
12899
12899
|
var n, c, o, u;
|
|
12900
12900
|
yield this.dcConnectingPromise;
|
|
12901
|
-
const { remoteUser: t, options: i } = e, s = ut(
|
|
12901
|
+
const { remoteUser: t, options: i } = e, s = ut(G({
|
|
12902
12902
|
url: t.streamUrl,
|
|
12903
12903
|
subAudio: !!i.audio,
|
|
12904
12904
|
subVideo: !!(i.screen || i.video)
|
|
@@ -13010,6 +13010,28 @@ const xe = (_e = class extends De {
|
|
|
13010
13010
|
};
|
|
13011
13011
|
});
|
|
13012
13012
|
}
|
|
13013
|
+
reportSubscribeLatency(e, t, i, s) {
|
|
13014
|
+
const n = [];
|
|
13015
|
+
e.audio && n.push(e.aMsid || T.Audio), e.video ? n.push(e.vMsid || T.VideoLarge) : e.screen && n.push(T.Screen), n.forEach((c) => {
|
|
13016
|
+
this.slsReporter.reportConnectionLatencyEvent(
|
|
13017
|
+
Je.HANDLE_SUB_TASK,
|
|
13018
|
+
Xe.START,
|
|
13019
|
+
t,
|
|
13020
|
+
c,
|
|
13021
|
+
i,
|
|
13022
|
+
0,
|
|
13023
|
+
s
|
|
13024
|
+
), this.slsReporter.reportConnectionLatencyEvent(
|
|
13025
|
+
Je.HANDLE_SUB_TASK,
|
|
13026
|
+
Xe.END,
|
|
13027
|
+
t,
|
|
13028
|
+
c,
|
|
13029
|
+
Date.now(),
|
|
13030
|
+
0,
|
|
13031
|
+
s
|
|
13032
|
+
);
|
|
13033
|
+
});
|
|
13034
|
+
}
|
|
13013
13035
|
subscribe(e, t, i, s, n) {
|
|
13014
13036
|
return w(this, null, function* () {
|
|
13015
13037
|
let c = !1;
|
|
@@ -13021,7 +13043,7 @@ const xe = (_e = class extends De {
|
|
|
13021
13043
|
);
|
|
13022
13044
|
this.connecting && (yield this.connectingPromise);
|
|
13023
13045
|
let h, p = Date.now();
|
|
13024
|
-
this.connected ?
|
|
13046
|
+
this.connected ? h = yield this.subscribeAdd(e) : (c = !0, h = yield this.httpSubscribe(e)), this.reportSubscribeLatency(o, i, p, c);
|
|
13025
13047
|
const d = Date.now();
|
|
13026
13048
|
let f = T.VideoLarge, g = o.video || o.screen, l = o.audio;
|
|
13027
13049
|
o.video && o.vMsid ? f = o.vMsid : o.screen && (f = T.Screen);
|
|
@@ -13040,7 +13062,7 @@ const xe = (_e = class extends De {
|
|
|
13040
13062
|
if (C.packetsReceived > 0 && (v = Date.now()), C.framesDecoded > 0)
|
|
13041
13063
|
x = Date.now();
|
|
13042
13064
|
else
|
|
13043
|
-
return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : (O.event(`[${
|
|
13065
|
+
return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : (O.event(`[${Ae.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
|
|
13044
13066
|
return !0;
|
|
13045
13067
|
})), Promise.resolve(M);
|
|
13046
13068
|
};
|
|
@@ -13075,8 +13097,8 @@ const xe = (_e = class extends De {
|
|
|
13075
13097
|
fvfdtc: x - p
|
|
13076
13098
|
}
|
|
13077
13099
|
), S && (this.slsReporter.reportConnectionLatencyEvent(
|
|
13078
|
-
|
|
13079
|
-
|
|
13100
|
+
Je.FIRST_REMOTE,
|
|
13101
|
+
Xe.DECODED,
|
|
13080
13102
|
i,
|
|
13081
13103
|
T.Audio
|
|
13082
13104
|
), this.slsReporter.reportSubscribeFirstPacket(
|
|
@@ -13132,77 +13154,79 @@ const xe = (_e = class extends De {
|
|
|
13132
13154
|
}, /**
|
|
13133
13155
|
* @ignore
|
|
13134
13156
|
*/
|
|
13135
|
-
m(
|
|
13136
|
-
|
|
13157
|
+
m(Ae, "logName", "RtsManager"), Ae);
|
|
13158
|
+
Ee([
|
|
13137
13159
|
D(H)
|
|
13138
13160
|
], xe.prototype, "startConnect", 1);
|
|
13139
|
-
|
|
13161
|
+
Ee([
|
|
13140
13162
|
D()
|
|
13141
13163
|
], xe.prototype, "updatePublishingTracks", 1);
|
|
13142
|
-
|
|
13164
|
+
Ee([
|
|
13143
13165
|
D(H, H)
|
|
13144
13166
|
], xe.prototype, "httpPublish", 1);
|
|
13145
|
-
|
|
13167
|
+
Ee([
|
|
13146
13168
|
D(H, H)
|
|
13147
13169
|
], xe.prototype, "waitPublishSender", 1);
|
|
13148
|
-
|
|
13170
|
+
Ee([
|
|
13149
13171
|
D(([r, a, e]) => [r, JSON.stringify(e)], H)
|
|
13150
13172
|
], xe.prototype, "publishAdd", 1);
|
|
13151
|
-
|
|
13173
|
+
Ee([
|
|
13152
13174
|
D(H, H)
|
|
13153
13175
|
], xe.prototype, "publishDelete", 1);
|
|
13154
|
-
|
|
13176
|
+
Ee([
|
|
13155
13177
|
D(([r, a, e]) => [r, JSON.stringify(e)])
|
|
13156
13178
|
], xe.prototype, "publishReplace", 1);
|
|
13157
|
-
|
|
13179
|
+
Ee([
|
|
13158
13180
|
D(H)
|
|
13159
13181
|
], xe.prototype, "publishStop", 1);
|
|
13160
|
-
|
|
13182
|
+
Ee([
|
|
13161
13183
|
D(H)
|
|
13162
13184
|
], xe.prototype, "publishAddDataChannel", 1);
|
|
13163
|
-
|
|
13185
|
+
Ee([
|
|
13164
13186
|
D(H)
|
|
13165
13187
|
], xe.prototype, "publishStopDataChannel", 1);
|
|
13166
|
-
|
|
13188
|
+
Ee([
|
|
13167
13189
|
D()
|
|
13168
13190
|
], xe.prototype, "unpublish", 1);
|
|
13169
|
-
|
|
13170
|
-
D(
|
|
13191
|
+
Ee([
|
|
13192
|
+
D(Di, ({ traceId: r }) => r)
|
|
13171
13193
|
], xe.prototype, "httpSubscribe", 1);
|
|
13172
|
-
|
|
13173
|
-
D(
|
|
13194
|
+
Ee([
|
|
13195
|
+
D(Di, ({ traceId: r }) => r)
|
|
13174
13196
|
], xe.prototype, "subscribeAdd", 1);
|
|
13175
|
-
|
|
13176
|
-
D(
|
|
13197
|
+
Ee([
|
|
13198
|
+
D(Di)
|
|
13177
13199
|
], xe.prototype, "subscribeDelete", 1);
|
|
13178
|
-
|
|
13200
|
+
Ee([
|
|
13179
13201
|
D(H)
|
|
13180
13202
|
], xe.prototype, "subscibeStop", 1);
|
|
13181
|
-
|
|
13203
|
+
Ee([
|
|
13182
13204
|
D(H)
|
|
13183
13205
|
], xe.prototype, "subscribeAddDataChannel", 1);
|
|
13184
|
-
|
|
13206
|
+
Ee([
|
|
13185
13207
|
D(H)
|
|
13186
13208
|
], xe.prototype, "subscribeStopDatachannel", 1);
|
|
13187
|
-
|
|
13209
|
+
Ee([
|
|
13188
13210
|
D(H)
|
|
13189
13211
|
], xe.prototype, "publish", 1);
|
|
13190
|
-
|
|
13191
|
-
D(
|
|
13212
|
+
Ee([
|
|
13213
|
+
D(Di)
|
|
13192
13214
|
], xe.prototype, "subscribe", 1);
|
|
13193
|
-
|
|
13215
|
+
Ee([
|
|
13194
13216
|
D()
|
|
13195
13217
|
], xe.prototype, "sendSEI", 1);
|
|
13196
13218
|
let Sc = xe;
|
|
13197
|
-
class
|
|
13198
|
-
constructor() {
|
|
13219
|
+
class kr {
|
|
13220
|
+
constructor(a = Or) {
|
|
13221
|
+
m(this, "defaultProfile");
|
|
13199
13222
|
m(this, "profile");
|
|
13200
13223
|
m(this, "profileMap", /* @__PURE__ */ new Map());
|
|
13201
13224
|
m(this, "audioProfile");
|
|
13202
13225
|
m(this, "contentHint");
|
|
13226
|
+
this.defaultProfile = a;
|
|
13203
13227
|
}
|
|
13204
13228
|
updateProfile(a, e) {
|
|
13205
|
-
e && this.profileMap.set(a, e), this.profile = a;
|
|
13229
|
+
e && this.profileMap.set(a, G(G(G({}, this.defaultProfile), this.profileMap.get(a) || {}), e)), this.profile = a;
|
|
13206
13230
|
}
|
|
13207
13231
|
get videoProfile() {
|
|
13208
13232
|
return this.profile;
|
|
@@ -13285,7 +13309,7 @@ class Ga extends De {
|
|
|
13285
13309
|
return w(this, null, function* () {
|
|
13286
13310
|
var c, o, u, h, p, d;
|
|
13287
13311
|
const { videoTrack: s, audioTrack: n } = e;
|
|
13288
|
-
s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), n && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type ===
|
|
13312
|
+
s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), n && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === be.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), n && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (p = this.originVideoTrack) == null || p.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t || qt.Camera, this.updateVideoTrack(s)), n && (this.originAudioTrack = n, (d = this.originAudioTrack) == null || d.addEventListener("ended", this.onAudioTrackEnded), this.audioSource = i || xi.Microphone, this.updateAudioTrack(n));
|
|
13289
13313
|
});
|
|
13290
13314
|
}
|
|
13291
13315
|
get currentProfile() {
|
|
@@ -13403,10 +13427,12 @@ class Ga extends De {
|
|
|
13403
13427
|
*/
|
|
13404
13428
|
updateVideoProfile(e, t) {
|
|
13405
13429
|
return w(this, null, function* () {
|
|
13406
|
-
this._profileManager || (this._profileManager = new
|
|
13430
|
+
this._profileManager || (this._profileManager = new kr(
|
|
13431
|
+
this.type === be.AliRtcSdkStreamTypeScreen ? Ua : Or
|
|
13432
|
+
)), e && this._profileManager.updateProfile(e, t), yield this._profileManager.setVideoProfile(
|
|
13407
13433
|
this.originVideoTrack,
|
|
13408
13434
|
this._publishVideoStream,
|
|
13409
|
-
this.type ===
|
|
13435
|
+
this.type === be.AliRtcSdkStreamTypeScreen
|
|
13410
13436
|
);
|
|
13411
13437
|
});
|
|
13412
13438
|
}
|
|
@@ -13415,7 +13441,9 @@ class Ga extends De {
|
|
|
13415
13441
|
return (e = this.profileManager) == null ? void 0 : e.videoProfile;
|
|
13416
13442
|
}
|
|
13417
13443
|
setVideoContentHint(e) {
|
|
13418
|
-
this._profileManager || (this._profileManager = new
|
|
13444
|
+
this._profileManager || (this._profileManager = new kr(
|
|
13445
|
+
this.type === be.AliRtcSdkStreamTypeScreen ? Ua : Or
|
|
13446
|
+
)), this._profileManager.setContentHint(this.currentVideoTrack, e);
|
|
13419
13447
|
}
|
|
13420
13448
|
/**
|
|
13421
13449
|
* 应该在执行完 plugin 后调用
|
|
@@ -13423,7 +13451,7 @@ class Ga extends De {
|
|
|
13423
13451
|
*/
|
|
13424
13452
|
updateAudioProfile(e) {
|
|
13425
13453
|
return w(this, null, function* () {
|
|
13426
|
-
this._profileManager || (this._profileManager = new
|
|
13454
|
+
this._profileManager || (this._profileManager = new kr()), this._profileManager.updateAudioProfile(e);
|
|
13427
13455
|
});
|
|
13428
13456
|
}
|
|
13429
13457
|
/**
|
|
@@ -13447,12 +13475,12 @@ class Ga extends De {
|
|
|
13447
13475
|
return t > -1 ? (e.clear(this), this.plugins.splice(t, 1), !0) : !1;
|
|
13448
13476
|
}
|
|
13449
13477
|
}
|
|
13450
|
-
var vc = Object.defineProperty, bc = Object.getOwnPropertyDescriptor,
|
|
13478
|
+
var vc = Object.defineProperty, bc = Object.getOwnPropertyDescriptor, st = (r, a, e, t) => {
|
|
13451
13479
|
for (var i = t > 1 ? void 0 : t ? bc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
13452
13480
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
13453
13481
|
return t && i && vc(a, e, i), i;
|
|
13454
|
-
},
|
|
13455
|
-
const
|
|
13482
|
+
}, Vt;
|
|
13483
|
+
const Ze = (Vt = class extends De {
|
|
13456
13484
|
// 设置是否发布屏幕流
|
|
13457
13485
|
constructor(e, t) {
|
|
13458
13486
|
super();
|
|
@@ -13461,8 +13489,8 @@ const Xe = (Lt = class extends De {
|
|
|
13461
13489
|
// 当前正在推流的流,只有在使用 HTTP 推流的时候才有值,用于设置 peerconnection 的参数
|
|
13462
13490
|
m(this, "publishingCameraVideoStream");
|
|
13463
13491
|
m(this, "publishingScreenVideoStream");
|
|
13464
|
-
m(this, "cameraStreamInfo", new Ga(
|
|
13465
|
-
m(this, "screenStreamInfo", new Ga(
|
|
13492
|
+
m(this, "cameraStreamInfo", new Ga(be.AliRtcSdkStreamTypeCapture));
|
|
13493
|
+
m(this, "screenStreamInfo", new Ga(be.AliRtcSdkStreamTypeScreen));
|
|
13466
13494
|
m(this, "streamInfos", [this.cameraStreamInfo, this.screenStreamInfo]);
|
|
13467
13495
|
m(this, "_audioCaptureDisabled", !1);
|
|
13468
13496
|
// 离会再入会,若不另外设置,则保持音频采集关闭
|
|
@@ -13475,7 +13503,7 @@ const Xe = (Lt = class extends De {
|
|
|
13475
13503
|
m(this, "_publishLocalScreenStreamEnabled", !0);
|
|
13476
13504
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
13477
13505
|
const i = (s) => w(this, null, function* () {
|
|
13478
|
-
if (O.info(`[${
|
|
13506
|
+
if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.2-beta.2")) {
|
|
13479
13507
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13480
13508
|
return;
|
|
13481
13509
|
}
|
|
@@ -13484,20 +13512,20 @@ const Xe = (Lt = class extends De {
|
|
|
13484
13512
|
} catch (n) {
|
|
13485
13513
|
s.emit("error", F.fromError(n, _t.AliRtcPluginErrorInitError));
|
|
13486
13514
|
}
|
|
13487
|
-
s.streamType ===
|
|
13515
|
+
s.streamType === be.AliRtcSdkStreamTypeCapture && (this.cameraStreamInfo.addPlugin(s), yield this.cameraStreamInfo.process(this.streamInfos)), s.streamType === be.AliRtcSdkStreamTypeScreen && (this.screenStreamInfo.addPlugin(s), yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
|
|
13488
13516
|
});
|
|
13489
|
-
this.cameraStreamInfo.
|
|
13517
|
+
this.cameraStreamInfo.on("videotrackended", () => w(this, null, function* () {
|
|
13490
13518
|
yield this.stopLocalStream({
|
|
13491
13519
|
video: !0
|
|
13492
|
-
}), this.emit("trackended",
|
|
13520
|
+
}), this.emit("trackended", Lt.VideoTrackEnded);
|
|
13493
13521
|
})), this.cameraStreamInfo.on("audiotrackended", () => w(this, null, function* () {
|
|
13494
13522
|
yield this.stopLocalStream({
|
|
13495
13523
|
audio: !0
|
|
13496
|
-
}), this.emit("trackended",
|
|
13497
|
-
})), this.screenStreamInfo.
|
|
13524
|
+
}), this.emit("trackended", Lt.AudioTrackEnded);
|
|
13525
|
+
})), this.screenStreamInfo.on("videotrackended", () => w(this, null, function* () {
|
|
13498
13526
|
yield this.stopLocalStream({
|
|
13499
13527
|
screen: !0
|
|
13500
|
-
}), this.emit("trackended",
|
|
13528
|
+
}), this.emit("trackended", Lt.ScreenTrackEnded);
|
|
13501
13529
|
})), this.pluginManager.on("added", i), this.pluginManager.on("removed", (s) => w(this, null, function* () {
|
|
13502
13530
|
this.cameraStreamInfo.removePlugin(s) && (yield this.cameraStreamInfo.process(this.streamInfos)), this.screenStreamInfo.removePlugin(s) && (yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
|
|
13503
13531
|
})), this.pluginManager.on("updated", () => w(this, null, function* () {
|
|
@@ -13590,7 +13618,7 @@ const Xe = (Lt = class extends De {
|
|
|
13590
13618
|
const u = tc(e);
|
|
13591
13619
|
let h;
|
|
13592
13620
|
if (u) {
|
|
13593
|
-
i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c =
|
|
13621
|
+
i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c = G({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof c == "object" && (yield this.setAvailableCameraDeviceId(), c = G(G({}, c), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = G({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = G(G({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
|
|
13594
13622
|
const d = Date.now();
|
|
13595
13623
|
try {
|
|
13596
13624
|
h = yield le.createStream({
|
|
@@ -13605,8 +13633,8 @@ const Xe = (Lt = class extends De {
|
|
|
13605
13633
|
throw o && !i && this.slsReporter.reportAudio(f, Date.now() - d, ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d), f;
|
|
13606
13634
|
}
|
|
13607
13635
|
if (t)
|
|
13608
|
-
yield this.screenStreamInfo.updateSource(h, qt.Screen,
|
|
13609
|
-
else if (yield this.cameraStreamInfo.updateSource(h, qt.Camera,
|
|
13636
|
+
yield this.screenStreamInfo.updateSource(h, qt.Screen, xi.Screen), yield this.setScreenProfile(n), this.setScreenContentHint(), this.publishingScreenVideoStream = void 0;
|
|
13637
|
+
else if (yield this.cameraStreamInfo.updateSource(h, qt.Camera, xi.Microphone), h.hasVideo && (yield this.setVideoProfile(s), this.setVideoContentHint(), this.publishingCameraVideoStream = void 0), h.hasAudio && typeof o == "boolean") {
|
|
13610
13638
|
const f = this.cameraStreamInfo.audioProfile;
|
|
13611
13639
|
f && (yield h.setAudioProfile(f));
|
|
13612
13640
|
}
|
|
@@ -13641,9 +13669,9 @@ const Xe = (Lt = class extends De {
|
|
|
13641
13669
|
const c = this.publishStreams;
|
|
13642
13670
|
try {
|
|
13643
13671
|
if (!c.audio && !c.video && !c.videoSmall && !c.screen)
|
|
13644
|
-
throw O.error(`[${
|
|
13672
|
+
throw O.error(`[${Vt.logName}]`, "no tracks founded"), new F(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
|
|
13645
13673
|
const d = new MediaStream();
|
|
13646
|
-
(o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, n = c.screen) : (h = c.screen) != null && h.videoTrack && (i = T.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield
|
|
13674
|
+
(o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, n = c.screen) : (h = c.screen) != null && h.videoTrack && (i = T.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield _n(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
|
|
13647
13675
|
} catch (d) {
|
|
13648
13676
|
}
|
|
13649
13677
|
return { publishStream: e, videoSmallStream: s, screenStream: n, vMsid: i };
|
|
@@ -13676,17 +13704,17 @@ const Xe = (Lt = class extends De {
|
|
|
13676
13704
|
}
|
|
13677
13705
|
setCameraVideoConstraints(e) {
|
|
13678
13706
|
var t;
|
|
13679
|
-
this.cameraStreamInfo.cameraVideoConstraints =
|
|
13707
|
+
this.cameraStreamInfo.cameraVideoConstraints = G(G({}, (t = this.cameraStreamInfo.cameraVideoConstraints) != null ? t : {}), e);
|
|
13680
13708
|
}
|
|
13681
13709
|
setMicAudioConstraints(e) {
|
|
13682
13710
|
var t;
|
|
13683
|
-
this.cameraStreamInfo.micAudioConstraints =
|
|
13711
|
+
this.cameraStreamInfo.micAudioConstraints = G(G({}, (t = this.cameraStreamInfo.micAudioConstraints) != null ? t : {}), e);
|
|
13684
13712
|
}
|
|
13685
13713
|
}, /**
|
|
13686
13714
|
* @ignore
|
|
13687
13715
|
*/
|
|
13688
|
-
m(
|
|
13689
|
-
|
|
13716
|
+
m(Vt, "logName", "LocalStreamManager"), Vt);
|
|
13717
|
+
st([
|
|
13690
13718
|
D(([r]) => {
|
|
13691
13719
|
const { audio: a, video: e, screen: t, custom: i, skipProfile: s, videoProfile: n, screenProfile: c } = r;
|
|
13692
13720
|
return [
|
|
@@ -13701,41 +13729,41 @@ rt([
|
|
|
13701
13729
|
}
|
|
13702
13730
|
];
|
|
13703
13731
|
})
|
|
13704
|
-
],
|
|
13705
|
-
|
|
13732
|
+
], Ze.prototype, "createLocalStream", 1);
|
|
13733
|
+
st([
|
|
13706
13734
|
D(H)
|
|
13707
|
-
],
|
|
13708
|
-
|
|
13735
|
+
], Ze.prototype, "stopLocalStream", 1);
|
|
13736
|
+
st([
|
|
13709
13737
|
D()
|
|
13710
|
-
],
|
|
13711
|
-
|
|
13738
|
+
], Ze.prototype, "createHTTPPublishStream", 1);
|
|
13739
|
+
st([
|
|
13712
13740
|
D()
|
|
13713
|
-
],
|
|
13714
|
-
|
|
13741
|
+
], Ze.prototype, "stop", 1);
|
|
13742
|
+
st([
|
|
13715
13743
|
D(H)
|
|
13716
|
-
],
|
|
13717
|
-
|
|
13744
|
+
], Ze.prototype, "setVideoProfile", 1);
|
|
13745
|
+
st([
|
|
13718
13746
|
D(H)
|
|
13719
|
-
],
|
|
13720
|
-
|
|
13747
|
+
], Ze.prototype, "setVideoContentHint", 1);
|
|
13748
|
+
st([
|
|
13721
13749
|
D(H)
|
|
13722
|
-
],
|
|
13723
|
-
|
|
13750
|
+
], Ze.prototype, "setAudioProfile", 1);
|
|
13751
|
+
st([
|
|
13724
13752
|
D(H)
|
|
13725
|
-
],
|
|
13726
|
-
|
|
13753
|
+
], Ze.prototype, "setScreenProfile", 1);
|
|
13754
|
+
st([
|
|
13727
13755
|
D(H)
|
|
13728
|
-
],
|
|
13729
|
-
|
|
13756
|
+
], Ze.prototype, "setScreenContentHint", 1);
|
|
13757
|
+
st([
|
|
13730
13758
|
D(H)
|
|
13731
|
-
],
|
|
13732
|
-
|
|
13759
|
+
], Ze.prototype, "setCameraVideoConstraints", 1);
|
|
13760
|
+
st([
|
|
13733
13761
|
D(H)
|
|
13734
|
-
],
|
|
13735
|
-
let Ec =
|
|
13762
|
+
], Ze.prototype, "setMicAudioConstraints", 1);
|
|
13763
|
+
let Ec = Ze;
|
|
13736
13764
|
class _c extends Jt {
|
|
13737
13765
|
constructor() {
|
|
13738
|
-
super("AliRtcScreenStandardize",
|
|
13766
|
+
super("AliRtcScreenStandardize", be.AliRtcSdkStreamTypeScreen);
|
|
13739
13767
|
m(this, "canvas");
|
|
13740
13768
|
m(this, "lastWidth");
|
|
13741
13769
|
m(this, "lastHeight");
|
|
@@ -13809,7 +13837,7 @@ class _c extends Jt {
|
|
|
13809
13837
|
}
|
|
13810
13838
|
class Ac extends Jt {
|
|
13811
13839
|
constructor() {
|
|
13812
|
-
super("blankAudio",
|
|
13840
|
+
super("blankAudio", be.AliRtcSdkStreamTypeCapture, yi.BOTH);
|
|
13813
13841
|
m(this, "hasTrack", !1);
|
|
13814
13842
|
m(this, "oscillator", null);
|
|
13815
13843
|
m(this, "audioTrack", null);
|
|
@@ -13842,7 +13870,7 @@ class Ac extends Jt {
|
|
|
13842
13870
|
});
|
|
13843
13871
|
}
|
|
13844
13872
|
}
|
|
13845
|
-
class
|
|
13873
|
+
class An {
|
|
13846
13874
|
constructor(a) {
|
|
13847
13875
|
m(this, "name", "COMMON");
|
|
13848
13876
|
this.name = a || this.name;
|
|
@@ -13856,10 +13884,10 @@ class Cn {
|
|
|
13856
13884
|
t && console[t](`[${a}][${this.name}]`, ...e);
|
|
13857
13885
|
}
|
|
13858
13886
|
}
|
|
13859
|
-
m(
|
|
13887
|
+
m(An, "LEVEL", 0);
|
|
13860
13888
|
class yc {
|
|
13861
13889
|
constructor() {
|
|
13862
|
-
m(this, "logger", new
|
|
13890
|
+
m(this, "logger", new An("AudioMixer"));
|
|
13863
13891
|
m(this, "audioContext", new AudioContext());
|
|
13864
13892
|
m(this, "audioDestination", this.audioContext.createMediaStreamDestination());
|
|
13865
13893
|
m(this, "audioTrack", J0(this.audioDestination.stream));
|
|
@@ -13927,7 +13955,7 @@ class yc {
|
|
|
13927
13955
|
const Cc = 4;
|
|
13928
13956
|
class Rc extends Jt {
|
|
13929
13957
|
constructor() {
|
|
13930
|
-
super("audioMixer",
|
|
13958
|
+
super("audioMixer", be.AliRtcSdkStreamTypeCapture, yi.AUDIO);
|
|
13931
13959
|
m(this, "audioMixer");
|
|
13932
13960
|
m(this, "primaryAudioTrackId");
|
|
13933
13961
|
m(this, "screenAudioTrackId");
|
|
@@ -13950,12 +13978,12 @@ class Rc extends Jt {
|
|
|
13950
13978
|
}
|
|
13951
13979
|
shouldUpdate(e, t) {
|
|
13952
13980
|
var n, c;
|
|
13953
|
-
if (e.type !==
|
|
13981
|
+
if (e.type !== be.AliRtcSdkStreamTypeCapture)
|
|
13954
13982
|
return !1;
|
|
13955
13983
|
const i = t.find(
|
|
13956
|
-
(o) => o.type ===
|
|
13984
|
+
(o) => o.type === be.AliRtcSdkStreamTypeCapture
|
|
13957
13985
|
), s = t.find(
|
|
13958
|
-
(o) => o.type ===
|
|
13986
|
+
(o) => o.type === be.AliRtcSdkStreamTypeScreen
|
|
13959
13987
|
);
|
|
13960
13988
|
return !(this.primaryAudioTrackId === ((n = i == null ? void 0 : i.currentAudioTrack) == null ? void 0 : n.id) && this.screenAudioTrackId === ((c = s == null ? void 0 : s.currentAudioTrack) == null ? void 0 : c.id) && !this.dirty);
|
|
13961
13989
|
}
|
|
@@ -13964,7 +13992,7 @@ class Rc extends Jt {
|
|
|
13964
13992
|
var c, o;
|
|
13965
13993
|
this.dirty = !1;
|
|
13966
13994
|
const i = t.find(
|
|
13967
|
-
(u) => u.type ===
|
|
13995
|
+
(u) => u.type === be.AliRtcSdkStreamTypeScreen
|
|
13968
13996
|
), s = e.currentAudioTrack, n = i == null ? void 0 : i.currentAudioTrack;
|
|
13969
13997
|
if (!n && this.options.audio === 1) {
|
|
13970
13998
|
this.audioMixer && (this.audioMixer.dispose(), this.audioMixer = void 0), this.primaryAudioTrackId = s == null ? void 0 : s.id, e.updateAudioTrack(s);
|
|
@@ -13984,7 +14012,7 @@ class Rc extends Jt {
|
|
|
13984
14012
|
(t = this.audioMixer) == null || t.dispose(), super.clear(e);
|
|
13985
14013
|
}
|
|
13986
14014
|
}
|
|
13987
|
-
class
|
|
14015
|
+
class as {
|
|
13988
14016
|
constructor(a, e) {
|
|
13989
14017
|
m(this, "originTrack");
|
|
13990
14018
|
m(this, "originVideo");
|
|
@@ -14017,7 +14045,7 @@ class ns {
|
|
|
14017
14045
|
return n > s ? (c = Math.round(o / s), u = Math.round((t - c) / 2)) : n < s && (o = Math.round(c * s), h = Math.round((i - o) / 2)), { x: u, y: h, width: c, height: o };
|
|
14018
14046
|
}
|
|
14019
14047
|
}
|
|
14020
|
-
class Ic extends
|
|
14048
|
+
class Ic extends as {
|
|
14021
14049
|
constructor(e, t) {
|
|
14022
14050
|
super(e, t);
|
|
14023
14051
|
m(this, "targetCtx");
|
|
@@ -14131,7 +14159,7 @@ function Bc(r, a, e, t = 0, i = 0) {
|
|
|
14131
14159
|
const n = t, c = i, o = a + t, u = e + i, h = [n, c, o, c, n, u, n, u, o, c, o, u];
|
|
14132
14160
|
return r.bufferData(r.ARRAY_BUFFER, new Float32Array(h), r.STATIC_DRAW), s;
|
|
14133
14161
|
}
|
|
14134
|
-
class Ya extends
|
|
14162
|
+
class Ya extends as {
|
|
14135
14163
|
constructor(e, t) {
|
|
14136
14164
|
super(e, t);
|
|
14137
14165
|
m(this, "targetCtx");
|
|
@@ -14300,7 +14328,7 @@ onmessage = function(evt) {
|
|
|
14300
14328
|
}
|
|
14301
14329
|
}
|
|
14302
14330
|
`;
|
|
14303
|
-
class Za extends
|
|
14331
|
+
class Za extends as {
|
|
14304
14332
|
constructor(e, t) {
|
|
14305
14333
|
super(e, t);
|
|
14306
14334
|
m(this, "processor");
|
|
@@ -14328,7 +14356,7 @@ class Za extends ns {
|
|
|
14328
14356
|
);
|
|
14329
14357
|
}
|
|
14330
14358
|
updateOptions(e) {
|
|
14331
|
-
super.updateOptions(e), this.worker && this.worker.postMessage(
|
|
14359
|
+
super.updateOptions(e), this.worker && this.worker.postMessage(G({
|
|
14332
14360
|
type: "updateOptions"
|
|
14333
14361
|
}, e));
|
|
14334
14362
|
}
|
|
@@ -14342,7 +14370,7 @@ class Za extends ns {
|
|
|
14342
14370
|
return this.trackGenerator;
|
|
14343
14371
|
}
|
|
14344
14372
|
}
|
|
14345
|
-
class
|
|
14373
|
+
class Hr {
|
|
14346
14374
|
static isSupport() {
|
|
14347
14375
|
return typeof HTMLCanvasElement.prototype.captureStream == "function";
|
|
14348
14376
|
}
|
|
@@ -14374,7 +14402,7 @@ class Mc extends Jt {
|
|
|
14374
14402
|
this.options = e, (t = this.videoScaler) == null || t.updateOptions(e);
|
|
14375
14403
|
}
|
|
14376
14404
|
isSupported() {
|
|
14377
|
-
return
|
|
14405
|
+
return Hr.isSupport();
|
|
14378
14406
|
}
|
|
14379
14407
|
shouldUpdate(e) {
|
|
14380
14408
|
return this.hasVideoTrack !== !!e.currentVideoTrack;
|
|
@@ -14384,7 +14412,7 @@ class Mc extends Jt {
|
|
|
14384
14412
|
if (e.currentVideoTrack) {
|
|
14385
14413
|
if (this.hasVideoTrack = !0, !this.videoScaler) {
|
|
14386
14414
|
const i = this.options || this.initOptions;
|
|
14387
|
-
this.videoScaler =
|
|
14415
|
+
this.videoScaler = Hr.getInstance(e.currentVideoTrack, i);
|
|
14388
14416
|
}
|
|
14389
14417
|
const t = this.videoScaler.getVideoTrack();
|
|
14390
14418
|
t && e.updateDualVideoTrack(t);
|
|
@@ -14441,11 +14469,11 @@ class Pe extends De {
|
|
|
14441
14469
|
pluginManager: this.pluginManager,
|
|
14442
14470
|
audioVolumeIndicationInterval: this.audioVolumeIndicationInterval,
|
|
14443
14471
|
parameter: this.parameter
|
|
14444
|
-
}), this.audioMixerPlugin = new Rc(), this.pluginManager.add(this.audioMixerPlugin), this.dualVideoPlugin = new Mc("dualVideoPlugin"),
|
|
14472
|
+
}), this.audioMixerPlugin = new Rc(), this.pluginManager.add(this.audioMixerPlugin), this.dualVideoPlugin = new Mc("dualVideoPlugin"), w0() && this.pluginManager.add(new _c());
|
|
14445
14473
|
}
|
|
14446
14474
|
addSignalingManagerListener() {
|
|
14447
14475
|
this.signalingManager.on("onNotifyPublish", (e) => {
|
|
14448
|
-
this.slsReporter.reportConnectionLatencyEvent(
|
|
14476
|
+
this.slsReporter.reportConnectionLatencyEvent(Je.RECV_NOTIFY_PUBLISH, "", "", ""), O.event("[Signaling] Notify Publish ", e), e.forEach((t) => {
|
|
14449
14477
|
this.onRemotePublishStateChange(t);
|
|
14450
14478
|
});
|
|
14451
14479
|
}), this.signalingManager.stsManager.on("onTokenUpdate", (e, t) => {
|
|
@@ -14513,7 +14541,7 @@ class Pe extends De {
|
|
|
14513
14541
|
var s;
|
|
14514
14542
|
if (!e)
|
|
14515
14543
|
return (s = this.publisher) == null ? void 0 : s.setViewConfig(null, t);
|
|
14516
|
-
const i =
|
|
14544
|
+
const i = Ur(e);
|
|
14517
14545
|
i.length !== 0 && i.forEach((n) => {
|
|
14518
14546
|
var c, o;
|
|
14519
14547
|
(c = this.publisher) == null || c.resetElement(n), Object.values(this.usersViewMap).forEach(({ cameraViews: u = [], screenViews: h = [] }) => {
|
|
@@ -14526,7 +14554,7 @@ class Pe extends De {
|
|
|
14526
14554
|
var n, c;
|
|
14527
14555
|
if (!t)
|
|
14528
14556
|
return (n = this.userMap[e]) == null ? void 0 : n.setViewConfig(null, i);
|
|
14529
|
-
const s =
|
|
14557
|
+
const s = Ur(t);
|
|
14530
14558
|
s.length !== 0 && (s.forEach((o) => {
|
|
14531
14559
|
var u;
|
|
14532
14560
|
(u = this.publisher) == null || u.resetElement(o), Object.values(this.usersViewMap).forEach(({ cameraViews: h = [], screenViews: p = [] }) => {
|
|
@@ -14745,7 +14773,7 @@ class Pe extends De {
|
|
|
14745
14773
|
s[o] || c.push({
|
|
14746
14774
|
userid: o,
|
|
14747
14775
|
reason: "",
|
|
14748
|
-
leavecode:
|
|
14776
|
+
leavecode: is.AliRtcUserOfflineQuit
|
|
14749
14777
|
});
|
|
14750
14778
|
}), this.userMap = s, { joinList: t, leaveList: c, presentList: i };
|
|
14751
14779
|
}
|
|
@@ -14821,7 +14849,7 @@ class Pe extends De {
|
|
|
14821
14849
|
});
|
|
14822
14850
|
}
|
|
14823
14851
|
refreshAuthInfo(e) {
|
|
14824
|
-
this.authInfo && (this.authInfo =
|
|
14852
|
+
this.authInfo && (this.authInfo = G(G({}, this.authInfo), e)), e.userId && this.self.refreshUserInfo(e.userId);
|
|
14825
14853
|
}
|
|
14826
14854
|
setEnableMediaExtensionMsg(e) {
|
|
14827
14855
|
this.rtsManager.setEncodedInsertableStreams(e);
|
|
@@ -14834,7 +14862,7 @@ class Pe extends De {
|
|
|
14834
14862
|
const t = JSON.parse(e);
|
|
14835
14863
|
Object.keys(t).forEach((c) => {
|
|
14836
14864
|
const o = this.parameter[c], u = t[c];
|
|
14837
|
-
typeof o == "object" && typeof u == "object" ? this.parameter[c] =
|
|
14865
|
+
typeof o == "object" && typeof u == "object" ? this.parameter[c] = G(G({}, o), u) : this.parameter[c] = u;
|
|
14838
14866
|
}), t.enableBlankAudio === !0 ? (this.blankAudioPlugin || (this.blankAudioPlugin = new Ac()), this.pluginManager.has((i = this.blankAudioPlugin) == null ? void 0 : i.name) || this.pluginManager.add(this.blankAudioPlugin)) : t.enableBlankAudio === !1 && (this.blankAudioPlugin && this.pluginManager.remove((s = this.blankAudioPlugin) == null ? void 0 : s.name), (n = this.blankAudioPlugin) == null || n.clear(), this.blankAudioPlugin = void 0);
|
|
14839
14867
|
}
|
|
14840
14868
|
getParameter() {
|
|
@@ -14890,7 +14918,7 @@ je([
|
|
|
14890
14918
|
je([
|
|
14891
14919
|
D()
|
|
14892
14920
|
], Pe.prototype, "enableAudioVolumeIndication", 1);
|
|
14893
|
-
const
|
|
14921
|
+
const Br = (r) => w(void 0, null, function* () {
|
|
14894
14922
|
const a = new Uint8Array(160).fill(170), e = new TextEncoder().encode(r), t = yield window.crypto.subtle.importKey(
|
|
14895
14923
|
"raw",
|
|
14896
14924
|
// 密钥格式
|
|
@@ -14921,7 +14949,7 @@ class Fc {
|
|
|
14921
14949
|
const t = this.authInfo;
|
|
14922
14950
|
if (!t)
|
|
14923
14951
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
14924
|
-
const i = "https://gw.rtn.aliyuncs.com", s =
|
|
14952
|
+
const i = "https://gw.rtn.aliyuncs.com", s = P0[a], n = {
|
|
14925
14953
|
appid: t.appId,
|
|
14926
14954
|
userid: t.userId,
|
|
14927
14955
|
channelid: t.channelId,
|
|
@@ -14954,7 +14982,7 @@ class Fc {
|
|
|
14954
14982
|
return w(this, null, function* () {
|
|
14955
14983
|
if (!this.authInfo)
|
|
14956
14984
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
14957
|
-
const t = yield
|
|
14985
|
+
const t = yield Br(a.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, a);
|
|
14958
14986
|
return this.doRequest(i, s);
|
|
14959
14987
|
});
|
|
14960
14988
|
}
|
|
@@ -14970,7 +14998,7 @@ class Fc {
|
|
|
14970
14998
|
return w(this, null, function* () {
|
|
14971
14999
|
if (!this.authInfo)
|
|
14972
15000
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
14973
|
-
const t = yield
|
|
15001
|
+
const t = yield Br(a.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, a);
|
|
14974
15002
|
return this.doRequest(i, s);
|
|
14975
15003
|
});
|
|
14976
15004
|
}
|
|
@@ -14986,21 +15014,21 @@ class Fc {
|
|
|
14986
15014
|
return w(this, null, function* () {
|
|
14987
15015
|
if (!this.authInfo)
|
|
14988
15016
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
14989
|
-
const e = yield
|
|
15017
|
+
const e = yield Br(a.split("?")[0]), t = Ue.MPU_TASK_TRANSACTION_STOP, i = new Mr().toJson(t, this.authInfo, e, a);
|
|
14990
15018
|
return this.doRequest(t, i);
|
|
14991
15019
|
});
|
|
14992
15020
|
}
|
|
14993
15021
|
stopPublishLiveStreamWithTaskId(a) {
|
|
14994
15022
|
if (!this.authInfo)
|
|
14995
15023
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
14996
|
-
const e = Ue.MPU_TASK_TRANSACTION_STOP, t = new
|
|
15024
|
+
const e = Ue.MPU_TASK_TRANSACTION_STOP, t = new Mr().toJson(e, this.authInfo, a);
|
|
14997
15025
|
return this.doRequest(e, t);
|
|
14998
15026
|
}
|
|
14999
15027
|
refreshAuthInfo(a) {
|
|
15000
|
-
this.authInfo && this.setAuthInfo(
|
|
15028
|
+
this.authInfo && this.setAuthInfo(G(G({}, this.authInfo), a));
|
|
15001
15029
|
}
|
|
15002
15030
|
}
|
|
15003
|
-
class
|
|
15031
|
+
class ns {
|
|
15004
15032
|
/**
|
|
15005
15033
|
* 检测是否是string类型
|
|
15006
15034
|
* @param {any} param
|
|
@@ -15048,7 +15076,7 @@ class os {
|
|
|
15048
15076
|
if (!a.userId)
|
|
15049
15077
|
return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
|
|
15050
15078
|
if (a.timestamp) {
|
|
15051
|
-
if (!
|
|
15079
|
+
if (!ns.checkNumber(a.timestamp))
|
|
15052
15080
|
return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
|
|
15053
15081
|
} else
|
|
15054
15082
|
return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
|
|
@@ -15094,7 +15122,7 @@ class Uc {
|
|
|
15094
15122
|
}
|
|
15095
15123
|
}
|
|
15096
15124
|
class Hc {
|
|
15097
|
-
constructor(a, e, t, i = 0, s = 16777215, n =
|
|
15125
|
+
constructor(a, e, t, i = 0, s = 16777215, n = Ci.NOTO_SERIF_CJKSC_REGULAR) {
|
|
15098
15126
|
m(this, "x");
|
|
15099
15127
|
m(this, "y");
|
|
15100
15128
|
m(this, "fontSize");
|
|
@@ -15105,17 +15133,17 @@ class Hc {
|
|
|
15105
15133
|
}
|
|
15106
15134
|
toJson(a, e) {
|
|
15107
15135
|
return {
|
|
15108
|
-
x:
|
|
15109
|
-
y:
|
|
15136
|
+
x: Ye(this.x, a),
|
|
15137
|
+
y: Ye(this.y, e),
|
|
15110
15138
|
fonttype: this.fontType,
|
|
15111
15139
|
fontsize: this.fontSize,
|
|
15112
|
-
fontcolor:
|
|
15140
|
+
fontcolor: ts(this.fontColor),
|
|
15113
15141
|
zorder: this.zOrder
|
|
15114
15142
|
};
|
|
15115
15143
|
}
|
|
15116
15144
|
}
|
|
15117
|
-
var
|
|
15118
|
-
class
|
|
15145
|
+
var yn = /* @__PURE__ */ ((r) => (r[r.NOT_DISPLAY = 0] = "NOT_DISPLAY", r[r.ALWAYS = 1] = "ALWAYS", r[r.WHEN_NO_VIDEO = 2] = "WHEN_NO_VIDEO", r))(yn || {});
|
|
15146
|
+
class Cn {
|
|
15119
15147
|
constructor(a, e, t, i, s, n = 0, c = 1, o = 1) {
|
|
15120
15148
|
m(this, "url");
|
|
15121
15149
|
m(this, "x");
|
|
@@ -15132,17 +15160,17 @@ class In {
|
|
|
15132
15160
|
url: this.url,
|
|
15133
15161
|
alpha: this.alpha,
|
|
15134
15162
|
display: this.display,
|
|
15135
|
-
x:
|
|
15136
|
-
y:
|
|
15137
|
-
width:
|
|
15138
|
-
height:
|
|
15163
|
+
x: Ye(this.x, a),
|
|
15164
|
+
y: Ye(this.y, e),
|
|
15165
|
+
width: Ye(this.width, a),
|
|
15166
|
+
height: Ye(this.height, e),
|
|
15139
15167
|
zorder: this.zOrder
|
|
15140
15168
|
};
|
|
15141
15169
|
}
|
|
15142
15170
|
}
|
|
15143
|
-
m(
|
|
15171
|
+
m(Cn, "DisplayType", yn);
|
|
15144
15172
|
class jc {
|
|
15145
|
-
constructor(a, e, t, i, s = 0, n = 16777215, c =
|
|
15173
|
+
constructor(a, e, t, i, s = 0, n = 16777215, c = Ci.NOTO_SERIF_CJKSC_REGULAR) {
|
|
15146
15174
|
m(this, "text");
|
|
15147
15175
|
m(this, "x");
|
|
15148
15176
|
m(this, "y");
|
|
@@ -15155,11 +15183,11 @@ class jc {
|
|
|
15155
15183
|
toJson(a, e) {
|
|
15156
15184
|
return {
|
|
15157
15185
|
text: this.text,
|
|
15158
|
-
x:
|
|
15159
|
-
y:
|
|
15186
|
+
x: Ye(this.x, a),
|
|
15187
|
+
y: Ye(this.y, e),
|
|
15160
15188
|
fonttype: this.fontType,
|
|
15161
15189
|
fontsize: this.fontSize,
|
|
15162
|
-
fontcolor:
|
|
15190
|
+
fontcolor: ts(this.fontColor),
|
|
15163
15191
|
zorder: this.zOrder
|
|
15164
15192
|
};
|
|
15165
15193
|
}
|
|
@@ -15173,7 +15201,7 @@ class zc {
|
|
|
15173
15201
|
m(this, "height");
|
|
15174
15202
|
m(this, "zOrder");
|
|
15175
15203
|
m(this, "sourceType");
|
|
15176
|
-
m(this, "segmentType",
|
|
15204
|
+
m(this, "segmentType", bi.LiveTranscodingNoBody);
|
|
15177
15205
|
m(this, "images", []);
|
|
15178
15206
|
m(this, "texts", []);
|
|
15179
15207
|
typeof a == "number" ? this.userId = a.toString() : this.userId = a, this.x = e, this.y = t, this.width = i, this.height = s, this.zOrder = n, c && (this.sourceType = c);
|
|
@@ -15182,34 +15210,34 @@ class zc {
|
|
|
15182
15210
|
const s = {
|
|
15183
15211
|
paneid: a,
|
|
15184
15212
|
majorpane: 0,
|
|
15185
|
-
x:
|
|
15186
|
-
y:
|
|
15187
|
-
width:
|
|
15188
|
-
height:
|
|
15213
|
+
x: Ye(this.x, e),
|
|
15214
|
+
y: Ye(this.y, t),
|
|
15215
|
+
width: Ye(this.width, e),
|
|
15216
|
+
height: Ye(this.height, t),
|
|
15189
15217
|
zorder: this.zOrder,
|
|
15190
15218
|
userid: this.userId,
|
|
15191
15219
|
images: this.images.map((n) => n.toJson(e, t)),
|
|
15192
15220
|
texts: this.texts.map((n) => n.toJson(e, t))
|
|
15193
15221
|
};
|
|
15194
|
-
return this.sourceType &&
|
|
15222
|
+
return this.sourceType && ti[this.sourceType] ? s.sourcetype = ti[this.sourceType] : s.sourcetype = ti[ai.LiveTranscodingCamera], this.segmentType && i === es.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = bi.LiveTranscodingNoBody, s;
|
|
15195
15223
|
}
|
|
15196
15224
|
}
|
|
15197
|
-
const
|
|
15225
|
+
const Mt = class Mt {
|
|
15198
15226
|
constructor() {
|
|
15199
15227
|
// 使用 static 声明实例
|
|
15200
15228
|
m(this, "ntpClock");
|
|
15201
15229
|
this.ntpClock = new le.Clock();
|
|
15202
15230
|
}
|
|
15203
15231
|
static getInstance() {
|
|
15204
|
-
return
|
|
15232
|
+
return Mt.instance || (Mt.instance = new Mt()), Mt.instance;
|
|
15205
15233
|
}
|
|
15206
15234
|
now() {
|
|
15207
15235
|
return this.ntpClock.now();
|
|
15208
15236
|
}
|
|
15209
15237
|
};
|
|
15210
|
-
m(
|
|
15211
|
-
let
|
|
15212
|
-
const
|
|
15238
|
+
m(Mt, "instance");
|
|
15239
|
+
let jr = Mt;
|
|
15240
|
+
const Rn = () => jr.getInstance(), { BrowserUtil: Nr, SystenUtil: Qa } = le;
|
|
15213
15241
|
class en {
|
|
15214
15242
|
constructor() {
|
|
15215
15243
|
m(this, "tracker");
|
|
@@ -15220,13 +15248,13 @@ class en {
|
|
|
15220
15248
|
m(this, "slsToken");
|
|
15221
15249
|
m(this, "ossToken");
|
|
15222
15250
|
m(this, "ntpClock");
|
|
15223
|
-
this.ntpClock =
|
|
15251
|
+
this.ntpClock = Rn();
|
|
15224
15252
|
}
|
|
15225
15253
|
createTracker() {
|
|
15226
15254
|
if (!this.tracker && this.slsToken && this.param) {
|
|
15227
15255
|
const a = this.slsToken;
|
|
15228
15256
|
this.ossToken && (this.param.ossbn = this.ossToken.bucket_name, this.param.ossep = this.ossToken.region_endpoint);
|
|
15229
|
-
const e = new
|
|
15257
|
+
const e = new qr({
|
|
15230
15258
|
host: a.region_endpoint,
|
|
15231
15259
|
project: a.project,
|
|
15232
15260
|
logstore: a.log_store_stats
|
|
@@ -15240,10 +15268,10 @@ class en {
|
|
|
15240
15268
|
}
|
|
15241
15269
|
};
|
|
15242
15270
|
this.stsOpt = t;
|
|
15243
|
-
const i =
|
|
15271
|
+
const i = Xr(t);
|
|
15244
15272
|
e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((s, n) => {
|
|
15245
15273
|
var c, o;
|
|
15246
|
-
(o = this.tracker) == null || o.send(
|
|
15274
|
+
(o = this.tracker) == null || o.send(G(ut(G({}, this.param), { stat_log_id: `${((c = this.param) == null ? void 0 : c.sesid) || "nosession"}-${n}` }), s));
|
|
15247
15275
|
}), this.index = this.index + this.msgCacheArr.length, this.msgCacheArr = [];
|
|
15248
15276
|
}
|
|
15249
15277
|
}
|
|
@@ -15269,8 +15297,8 @@ class en {
|
|
|
15269
15297
|
let e;
|
|
15270
15298
|
try {
|
|
15271
15299
|
e = JSON.parse(
|
|
15272
|
-
JSON.stringify(
|
|
15273
|
-
bt:
|
|
15300
|
+
JSON.stringify(G(ut(G({
|
|
15301
|
+
bt: Nr.browserName || "unknown",
|
|
15274
15302
|
ntptm: this.ntpClock.now(),
|
|
15275
15303
|
// NTP时间
|
|
15276
15304
|
ntpofs: this.ntpClock.now() - Date.now()
|
|
@@ -15293,7 +15321,7 @@ class en {
|
|
|
15293
15321
|
*/
|
|
15294
15322
|
initParam(a) {
|
|
15295
15323
|
let e = localStorage == null ? void 0 : localStorage.getItem("AliRtcUUID");
|
|
15296
|
-
e || (e =
|
|
15324
|
+
e || (e = rt(), localStorage == null || localStorage.setItem("AliRtcUUID", e)), this.param || (this.param = {
|
|
15297
15325
|
apid: a.appId,
|
|
15298
15326
|
usrid: a.userId,
|
|
15299
15327
|
statsvrs: "0.6.1",
|
|
@@ -15304,19 +15332,19 @@ class en {
|
|
|
15304
15332
|
usrn: a.userId,
|
|
15305
15333
|
osn: Qa.systemName,
|
|
15306
15334
|
osv: Qa.systemVersion,
|
|
15307
|
-
deb:
|
|
15308
|
-
den:
|
|
15335
|
+
deb: _0(),
|
|
15336
|
+
den: v0(),
|
|
15309
15337
|
udid: e,
|
|
15310
|
-
sdkvrs:
|
|
15338
|
+
sdkvrs: _i,
|
|
15311
15339
|
acs: "Unknown",
|
|
15312
15340
|
cput: hn(),
|
|
15313
15341
|
dm: `${window.location.protocol}//${window.location.host}`,
|
|
15314
15342
|
// bt 需要保证不为空
|
|
15315
|
-
bt:
|
|
15316
|
-
bv:
|
|
15343
|
+
bt: Nr.browserName,
|
|
15344
|
+
bv: Nr.browserVersion,
|
|
15317
15345
|
envir: "PRODUCT",
|
|
15318
15346
|
args: "",
|
|
15319
|
-
instid:
|
|
15347
|
+
instid: rt()
|
|
15320
15348
|
// SDK 的实例ID
|
|
15321
15349
|
});
|
|
15322
15350
|
}
|
|
@@ -15324,12 +15352,12 @@ class en {
|
|
|
15324
15352
|
const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
15325
15353
|
let i = r;
|
|
15326
15354
|
return i || (i = 0), Math.min(e, Math.max(t, Math.round(i * a)));
|
|
15327
|
-
},
|
|
15355
|
+
}, Ge = (r, a, e = 2e7, t = 0) => {
|
|
15328
15356
|
let i = a;
|
|
15329
15357
|
(!a || a < 0 || a > 1e4) && (i = 1e3);
|
|
15330
15358
|
let s = r;
|
|
15331
15359
|
return s || (s = 0), Math.min(e, Math.max(t, Math.round(s / (i / 1e3))));
|
|
15332
|
-
},
|
|
15360
|
+
}, Pt = (r, a) => {
|
|
15333
15361
|
if (a === 0 || !a)
|
|
15334
15362
|
return "0.00";
|
|
15335
15363
|
let e = r;
|
|
@@ -15341,19 +15369,19 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15341
15369
|
}, Wc = (r, a) => {
|
|
15342
15370
|
var e, t, i;
|
|
15343
15371
|
return (((e = r == null ? void 0 : r._source) == null ? void 0 : e[a]) || 0) - (((i = (t = r == null ? void 0 : r._last) == null ? void 0 : t._source) == null ? void 0 : i[a]) || 0);
|
|
15344
|
-
}, rn = (r, a) => fe(pe(r, a), 1e3, 1e4),
|
|
15372
|
+
}, rn = (r, a) => fe(pe(r, a), 1e3, 1e4), kt = (r, a = 2e7) => fe(r, 1, a), ri = class ri {
|
|
15345
15373
|
constructor(a) {
|
|
15346
15374
|
m(this, "engine");
|
|
15347
15375
|
m(this, "logClient");
|
|
15348
15376
|
m(this, "authInfo");
|
|
15349
15377
|
m(this, "ntpClock");
|
|
15350
|
-
this.logClient = new en(), this.engine = a, this.ntpClock =
|
|
15378
|
+
this.logClient = new en(), this.engine = a, this.ntpClock = Rn();
|
|
15351
15379
|
}
|
|
15352
15380
|
static getLogClient() {
|
|
15353
15381
|
return this.staticClient || (this.staticClient = new en()), this.staticClient;
|
|
15354
15382
|
}
|
|
15355
15383
|
static reportOSSUpload(a, e, t = 0) {
|
|
15356
|
-
|
|
15384
|
+
ri.getLogClient().sendReport({
|
|
15357
15385
|
errmsg: `${e}/${a}.log`,
|
|
15358
15386
|
errtype: t,
|
|
15359
15387
|
evetid: 70017,
|
|
@@ -15370,7 +15398,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15370
15398
|
this.authInfo = a, this.logClient.start(a);
|
|
15371
15399
|
}
|
|
15372
15400
|
updateToken(a, e) {
|
|
15373
|
-
this.logClient.updateToken(a, e),
|
|
15401
|
+
this.logClient.updateToken(a, e), ri.getLogClient().updateToken(a, e);
|
|
15374
15402
|
}
|
|
15375
15403
|
/**
|
|
15376
15404
|
* 断开连接
|
|
@@ -15388,24 +15416,24 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15388
15416
|
}, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [];
|
|
15389
15417
|
try {
|
|
15390
15418
|
if (s.forEach((I) => {
|
|
15391
|
-
var V, N, J, j, ce,
|
|
15419
|
+
var V, N, J, j, ce, Z;
|
|
15392
15420
|
if (!I || !I.timestamp)
|
|
15393
15421
|
return;
|
|
15394
|
-
const P = (V = I._last) != null && V.timestamp ? I.timestamp - I._last.timestamp : 1e3, B = pe(I, "bytesSent"), $ = pe(I, "headerBytesSent"), q =
|
|
15422
|
+
const P = (V = I._last) != null && V.timestamp ? I.timestamp - I._last.timestamp : 1e3, B = pe(I, "bytesSent"), $ = pe(I, "headerBytesSent"), q = Ge(fe(B + $, 8, 2e7), P);
|
|
15395
15423
|
o.push(q);
|
|
15396
|
-
const
|
|
15397
|
-
u.push(
|
|
15398
|
-
const ae =
|
|
15424
|
+
const X = Ge(fe(B, 8, 2e7), P);
|
|
15425
|
+
u.push(X);
|
|
15426
|
+
const ae = Ge(fe($, 8, 2e7), P);
|
|
15399
15427
|
h.push(ae);
|
|
15400
|
-
const Q = pe(I, "packetsSent"), te =
|
|
15428
|
+
const Q = pe(I, "packetsSent"), te = Ge(Q, P);
|
|
15401
15429
|
p.push(te);
|
|
15402
|
-
const ee = pe(I, "packetsLost"), k =
|
|
15430
|
+
const ee = pe(I, "packetsLost"), k = Ge(ee, P);
|
|
15403
15431
|
d.push(k);
|
|
15404
|
-
const L =
|
|
15432
|
+
const L = Pt(ee, Q);
|
|
15405
15433
|
if (f.push(L), n)
|
|
15406
15434
|
(N = I._source) != null && N.audioLevel && g.push(tn(I._source.audioLevel)), l.push(0);
|
|
15407
15435
|
else {
|
|
15408
|
-
S.push(rn(I, "totalEncodeTime")), v.push(
|
|
15436
|
+
S.push(rn(I, "totalEncodeTime")), v.push(kt((J = I._source) == null ? void 0 : J.framesPerSecond, 100)), x.push(kt((j = I._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(kt(I.framesPerSecond, 100)), E.push(kt((ce = I._source) == null ? void 0 : ce.height, 4400)), _.push(kt((Z = I._source) == null ? void 0 : Z.width, 7700)), y.push(kt(I.frameHeight, 4400)), A.push(kt(I.frameWidth, 7700));
|
|
15409
15437
|
const Fe = pe(I, "totalPacketSendDelay");
|
|
15410
15438
|
R.push(fe(Fe, 1 / (ee || 1), 2e3));
|
|
15411
15439
|
const ze = pe(I, "qpSum");
|
|
@@ -15422,7 +15450,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15422
15450
|
evetid: 10070,
|
|
15423
15451
|
traceid: e,
|
|
15424
15452
|
calid: a,
|
|
15425
|
-
args: this.data2String(
|
|
15453
|
+
args: this.data2String(G({
|
|
15426
15454
|
calid: a,
|
|
15427
15455
|
tckid: t,
|
|
15428
15456
|
traceid: e
|
|
@@ -15436,24 +15464,24 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15436
15464
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15437
15465
|
src: s[0].ssrc || "",
|
|
15438
15466
|
codec: s[0]._codec || ""
|
|
15439
|
-
}, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [], I = [], P = [], B = [], $ = [], q = [],
|
|
15467
|
+
}, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], y = [], A = [], R = [], M = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], L = [], V = [], N = [], J = [];
|
|
15440
15468
|
try {
|
|
15441
15469
|
s.forEach((j) => {
|
|
15442
|
-
var
|
|
15470
|
+
var tt, It;
|
|
15443
15471
|
if (!j || !j.timestamp)
|
|
15444
15472
|
return;
|
|
15445
|
-
const ce = (
|
|
15473
|
+
const ce = (tt = j._last) != null && tt.timestamp ? j.timestamp - j._last.timestamp : 1e3, Z = pe(j, "bytesReceived"), Fe = pe(j, "headerBytesReceived"), ze = Ge(fe(Z + Fe, 8, 2e7), ce);
|
|
15446
15474
|
o.push(ze);
|
|
15447
|
-
const
|
|
15448
|
-
u.push(
|
|
15449
|
-
const
|
|
15450
|
-
h.push(
|
|
15451
|
-
const Se = pe(j, "packetsReceived"), ke =
|
|
15475
|
+
const Qe = Ge(fe(Z, 8, 2e7), ce);
|
|
15476
|
+
u.push(Qe);
|
|
15477
|
+
const et = Ge(fe(Fe, 8, 2e7), ce);
|
|
15478
|
+
h.push(et);
|
|
15479
|
+
const Se = pe(j, "packetsReceived"), ke = Ge(Se, ce);
|
|
15452
15480
|
p.push(ke);
|
|
15453
|
-
const ot = pe(j, "packetsLost"), yt =
|
|
15481
|
+
const ot = pe(j, "packetsLost"), yt = Ge(ot, ce);
|
|
15454
15482
|
d.push(yt);
|
|
15455
|
-
const
|
|
15456
|
-
f.push(
|
|
15483
|
+
const Ut = Pt(ot, Se);
|
|
15484
|
+
f.push(Ut);
|
|
15457
15485
|
const Ct = pe(j, "jitterBufferDelay"), Xt = pe(j, "jitterBufferEmittedCount");
|
|
15458
15486
|
if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
|
|
15459
15487
|
const gt = fe(Ct, 1e3 / Xt, 1e4);
|
|
@@ -15461,37 +15489,37 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15461
15489
|
} else
|
|
15462
15490
|
g.push(0);
|
|
15463
15491
|
const Rt = pe(j, "fecPacketsReceived");
|
|
15464
|
-
b.push(
|
|
15492
|
+
b.push(Pt(Rt, Se));
|
|
15465
15493
|
const Be = pe(j, "retransmittedPacketsReceived"), Re = Se + ot - Be;
|
|
15466
|
-
if (S.push(
|
|
15494
|
+
if (S.push(Pt(Se - Be, Re)), v.push(Pt(ot, Re)), l.push(Pt(Be, Re)), x.push(Re), N.push(0), J.push(""), n) {
|
|
15467
15495
|
_.push(tn(j.audioLevel));
|
|
15468
15496
|
const gt = Wc(j, "synthesizedSamplesEvents");
|
|
15469
15497
|
y.push(gt);
|
|
15470
|
-
const
|
|
15471
|
-
A.push(
|
|
15472
|
-
const ct =
|
|
15498
|
+
const it = rn(j, "synthesizedSamplesDuration");
|
|
15499
|
+
A.push(it);
|
|
15500
|
+
const ct = Pt(it, ce);
|
|
15473
15501
|
E.push(ct), R.push(0);
|
|
15474
15502
|
} else {
|
|
15475
15503
|
const gt = (It = j._last) != null && It.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
|
|
15476
15504
|
M.push(fe(gt, 1e3 / (j.framesDecoded || 30), 500)), C.push(fe(j.framesPerSecond, 1, 100)), I.push(pe(j, "framesReceived")), V.push(pe(j, "framesRendered")), P.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
|
|
15477
|
-
const
|
|
15478
|
-
$.push(fe(
|
|
15505
|
+
const it = pe(j, "totalProcessingDelay");
|
|
15506
|
+
$.push(fe(it, 1e3 / (j.framesDecoded || 30), 12e4));
|
|
15479
15507
|
const ct = pe(j, "nackCount");
|
|
15480
|
-
|
|
15481
|
-
const
|
|
15482
|
-
q.push(
|
|
15483
|
-
const
|
|
15484
|
-
ae.push(fe(
|
|
15485
|
-
const
|
|
15486
|
-
te.push(fe(
|
|
15508
|
+
X.push(ct);
|
|
15509
|
+
const Ti = pe(j, "pliCount");
|
|
15510
|
+
q.push(Ti);
|
|
15511
|
+
const ci = pe(j, "qpSum");
|
|
15512
|
+
ae.push(fe(ci, 1 / (j.framesPerSecond || 1), 51)), Q.push(fe(j.framesDropped));
|
|
15513
|
+
const ui = pe(j, "totalFreezesDuration");
|
|
15514
|
+
te.push(fe(ui, 1e3, 3e4));
|
|
15487
15515
|
const We = pe(j, "jitterBufferEmittedCount"), mt = pe(j, "jitterBufferDelay");
|
|
15488
15516
|
mt && We ? ee.push(fe(mt, 1e3 / We, 3e4)) : ee.push(0);
|
|
15489
|
-
const
|
|
15490
|
-
|
|
15517
|
+
const hi = pe(j, "jitterBufferTargetDelay");
|
|
15518
|
+
hi && We ? k.push(fe(hi, 1e3 / We, 3e4)) : k.push(0);
|
|
15491
15519
|
const Yt = pe(j, "jitterBufferMinimumDelay");
|
|
15492
15520
|
Yt && We ? L.push(fe(Yt, 1e3 / We, 3e4)) : L.push(0);
|
|
15493
15521
|
}
|
|
15494
|
-
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = g.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = S.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = x.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm = M.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt = J.join(","), c.ns =
|
|
15522
|
+
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = g.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = S.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = x.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm = M.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt = J.join(","), c.ns = X.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = N.join(","), c.ofimin = N.join(","), c.dfimax = N.join(","), c.dfimin = N.join(","), c.rfimax = N.join(","), c.rfimin = N.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = k.join(","), c.pdm = L.join(","), c.ofps = V.join(","), c.dfbd = Q.join(","));
|
|
15495
15523
|
} catch (j) {
|
|
15496
15524
|
}
|
|
15497
15525
|
this.log({
|
|
@@ -15499,7 +15527,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15499
15527
|
traceid: t,
|
|
15500
15528
|
rmtid: e,
|
|
15501
15529
|
calid: a,
|
|
15502
|
-
args: this.data2String(
|
|
15530
|
+
args: this.data2String(G({
|
|
15503
15531
|
calid: a,
|
|
15504
15532
|
rmtid: e,
|
|
15505
15533
|
tckid: i,
|
|
@@ -15516,7 +15544,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15516
15544
|
if (!f.timestamp)
|
|
15517
15545
|
return;
|
|
15518
15546
|
const l = (S = f._last) != null && S.timestamp ? f.timestamp - f._last.timestamp : 1e3;
|
|
15519
|
-
e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(
|
|
15547
|
+
e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(Ge(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(Ge(fe(f.bytesReceived, 8, 2e7), l, 25e6)), n.push(0), c.push(0), g % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
|
|
15520
15548
|
});
|
|
15521
15549
|
const d = {
|
|
15522
15550
|
ctm: Math.floor(a[0].timestamp || 0),
|
|
@@ -15531,14 +15559,14 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15531
15559
|
};
|
|
15532
15560
|
this.log({
|
|
15533
15561
|
evetid: 10071,
|
|
15534
|
-
args: this.data2String(
|
|
15562
|
+
args: this.data2String(G({
|
|
15535
15563
|
asb: t.join(","),
|
|
15536
15564
|
abms: n.join(","),
|
|
15537
15565
|
vbms: c.join(",")
|
|
15538
15566
|
}, d))
|
|
15539
15567
|
}), this.log({
|
|
15540
15568
|
evetid: 10081,
|
|
15541
|
-
args: this.data2String(
|
|
15569
|
+
args: this.data2String(G({}, d))
|
|
15542
15570
|
});
|
|
15543
15571
|
}
|
|
15544
15572
|
/**
|
|
@@ -15587,7 +15615,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15587
15615
|
reportJoinConnection(a) {
|
|
15588
15616
|
this.log({
|
|
15589
15617
|
evetid: 20002,
|
|
15590
|
-
args: this.data2String(
|
|
15618
|
+
args: this.data2String(G({
|
|
15591
15619
|
transretrynum: 0,
|
|
15592
15620
|
ldnstc: 0,
|
|
15593
15621
|
tcptc: 0,
|
|
@@ -15720,7 +15748,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15720
15748
|
evetid: 10050,
|
|
15721
15749
|
calid: a,
|
|
15722
15750
|
rmtid: e,
|
|
15723
|
-
args: this.data2String(
|
|
15751
|
+
args: this.data2String(G({
|
|
15724
15752
|
calid: a,
|
|
15725
15753
|
rmtid: e,
|
|
15726
15754
|
isvl: t ? 1 : 0,
|
|
@@ -15744,7 +15772,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15744
15772
|
evetid: a ? 10054 : 10051,
|
|
15745
15773
|
calid: e,
|
|
15746
15774
|
rmtid: t,
|
|
15747
|
-
args: this.data2String(
|
|
15775
|
+
args: this.data2String(G({
|
|
15748
15776
|
calid: e,
|
|
15749
15777
|
rmtid: t,
|
|
15750
15778
|
tckid: i,
|
|
@@ -15761,14 +15789,14 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15761
15789
|
evetid: a ? 10055 : 10052,
|
|
15762
15790
|
calid: e,
|
|
15763
15791
|
rmtid: t,
|
|
15764
|
-
args: this.data2String(
|
|
15792
|
+
args: this.data2String(G({
|
|
15765
15793
|
calid: e,
|
|
15766
15794
|
rmtid: t,
|
|
15767
15795
|
tckid: i
|
|
15768
15796
|
}, s))
|
|
15769
15797
|
}), this.log({
|
|
15770
15798
|
evetid: a ? 10058 : 10057,
|
|
15771
|
-
args: this.data2String(
|
|
15799
|
+
args: this.data2String(G({
|
|
15772
15800
|
calid: e,
|
|
15773
15801
|
rmtid: t,
|
|
15774
15802
|
tckid: i
|
|
@@ -15996,7 +16024,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15996
16024
|
reportPublishProfile(a, e) {
|
|
15997
16025
|
this.log({
|
|
15998
16026
|
evetid: 10201,
|
|
15999
|
-
args: this.data2String(
|
|
16027
|
+
args: this.data2String(G({
|
|
16000
16028
|
tckid: a
|
|
16001
16029
|
}, e))
|
|
16002
16030
|
});
|
|
@@ -16058,7 +16086,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
16058
16086
|
* @param calid
|
|
16059
16087
|
* @param tckid
|
|
16060
16088
|
*/
|
|
16061
|
-
reportConnectionLatencyEvent(a, e, t, i, s, n) {
|
|
16089
|
+
reportConnectionLatencyEvent(a, e, t, i, s, n, c = !1) {
|
|
16062
16090
|
this.log({
|
|
16063
16091
|
evetid: 12001,
|
|
16064
16092
|
args: this.data2String({
|
|
@@ -16068,8 +16096,9 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
16068
16096
|
status: e,
|
|
16069
16097
|
calid: t,
|
|
16070
16098
|
tckid: i,
|
|
16071
|
-
cltp: 1
|
|
16099
|
+
cltp: 1,
|
|
16072
16100
|
// AI场景profile:0,非ai场景;1,真人;2,机器人。
|
|
16101
|
+
http: c ? 1 : 0
|
|
16073
16102
|
})
|
|
16074
16103
|
});
|
|
16075
16104
|
}
|
|
@@ -16093,8 +16122,8 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
16093
16122
|
return e;
|
|
16094
16123
|
}
|
|
16095
16124
|
};
|
|
16096
|
-
m(
|
|
16097
|
-
let
|
|
16125
|
+
m(ri, "staticClient");
|
|
16126
|
+
let zr = ri;
|
|
16098
16127
|
var $c = Object.defineProperty, Kc = Object.getOwnPropertyDescriptor, W = (r, a, e, t) => {
|
|
16099
16128
|
for (var i = t > 1 ? void 0 : t ? Kc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
16100
16129
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
@@ -16119,7 +16148,7 @@ const z = (K = class extends De {
|
|
|
16119
16148
|
m(this, "_serverCheckAuthInfoTimestamp", null);
|
|
16120
16149
|
m(this, "_localCheckAuthInfoTimestamp", null);
|
|
16121
16150
|
const t = Date.now();
|
|
16122
|
-
O.init(), this.slsReporter = new
|
|
16151
|
+
O.init(), this.slsReporter = new zr(this), this.channelProfile = bt.AliRtcSdkCommunication, this.clientRole = Bt.AliRtcSdkLive, this.liveTranscoding = new Fc(this.slsReporter), this.signalingManager = new ss(
|
|
16123
16152
|
this.channelProfile,
|
|
16124
16153
|
this.clientRole,
|
|
16125
16154
|
this.slsReporter,
|
|
@@ -16128,21 +16157,21 @@ const z = (K = class extends De {
|
|
|
16128
16157
|
slsReporter: this.slsReporter,
|
|
16129
16158
|
signalingManager: this.signalingManager
|
|
16130
16159
|
}), this.addBizControlListeners(), this.addPublisherListeners(), this.slsReporter.reportConnectionLatencyEvent(
|
|
16131
|
-
|
|
16132
|
-
|
|
16160
|
+
Je.CREATE_ENGINE,
|
|
16161
|
+
Xe.START,
|
|
16133
16162
|
"",
|
|
16134
16163
|
"",
|
|
16135
16164
|
t
|
|
16136
16165
|
), this.slsReporter.reportConnectionLatencyEvent(
|
|
16137
|
-
|
|
16138
|
-
|
|
16166
|
+
Je.CREATE_ENGINE,
|
|
16167
|
+
Xe.END,
|
|
16139
16168
|
"",
|
|
16140
16169
|
"",
|
|
16141
16170
|
Date.now()
|
|
16142
16171
|
), this.slsReporter.reportSDKCreated(t);
|
|
16143
16172
|
}
|
|
16144
16173
|
static getSdkVersion() {
|
|
16145
|
-
return
|
|
16174
|
+
return _i;
|
|
16146
16175
|
}
|
|
16147
16176
|
static setLogLevel(e) {
|
|
16148
16177
|
O.setLogLevel(e);
|
|
@@ -16187,7 +16216,7 @@ const z = (K = class extends De {
|
|
|
16187
16216
|
return e ? e.isPublishing : !1;
|
|
16188
16217
|
}
|
|
16189
16218
|
get currentRoleCanPublish() {
|
|
16190
|
-
return this.channelProfile === bt.AliRtcSdkCommunication || this.clientRole ===
|
|
16219
|
+
return this.channelProfile === bt.AliRtcSdkCommunication || this.clientRole === Bt.AliRtcSdkInteractive;
|
|
16191
16220
|
}
|
|
16192
16221
|
/**
|
|
16193
16222
|
* 监听 Publisher 事件
|
|
@@ -16196,25 +16225,25 @@ const z = (K = class extends De {
|
|
|
16196
16225
|
var e, t, i, s, n, c, o, u, h, p;
|
|
16197
16226
|
(e = this.publisher) == null || e.on(Le.Local, (d) => {
|
|
16198
16227
|
O.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
|
|
16199
|
-
}), (t = this.publisher) == null || t.on(
|
|
16228
|
+
}), (t = this.publisher) == null || t.on(Lt.VideoTrackEnded, () => {
|
|
16200
16229
|
O.event("[Publisher] VideoTrack Ended"), this.emit(
|
|
16201
16230
|
"localDeviceException",
|
|
16202
16231
|
dt.AliEngineLocalDeviceTypeCamera,
|
|
16203
|
-
|
|
16232
|
+
_e.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
|
|
16204
16233
|
""
|
|
16205
16234
|
);
|
|
16206
|
-
}), (i = this.publisher) == null || i.on(
|
|
16235
|
+
}), (i = this.publisher) == null || i.on(Lt.ScreenTrackEnded, () => {
|
|
16207
16236
|
O.event("[Publisher] ScreenTrack Ended"), this.emit(
|
|
16208
16237
|
"localDeviceException",
|
|
16209
16238
|
dt.AliEngineLocalDeviceTypeDisplay,
|
|
16210
|
-
|
|
16239
|
+
_e.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
16211
16240
|
""
|
|
16212
16241
|
);
|
|
16213
|
-
}), (s = this.publisher) == null || s.on(
|
|
16242
|
+
}), (s = this.publisher) == null || s.on(Lt.AudioTrackEnded, () => {
|
|
16214
16243
|
O.event("[Publisher] AudioTrack Ended"), this.emit(
|
|
16215
16244
|
"localDeviceException",
|
|
16216
16245
|
dt.AliEngineLocalDeviceTypeMic,
|
|
16217
|
-
|
|
16246
|
+
_e.AliEngineLocalDeviceExceptionTypeMicInterrupt,
|
|
16218
16247
|
""
|
|
16219
16248
|
);
|
|
16220
16249
|
}), (n = this.publisher) == null || n.on(
|
|
@@ -16434,7 +16463,7 @@ const z = (K = class extends De {
|
|
|
16434
16463
|
leaveList: i,
|
|
16435
16464
|
presentList: s
|
|
16436
16465
|
}), this.handleUsersJoin(t), i.forEach((n) => {
|
|
16437
|
-
O.event(K.logName, oe.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid,
|
|
16466
|
+
O.event(K.logName, oe.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid, is.AliRtcUserOfflineQuit);
|
|
16438
16467
|
});
|
|
16439
16468
|
for (let n = 0; n < s.length; n++) {
|
|
16440
16469
|
const c = s[n], o = c.userid, u = this.bizControl.getRemoteUser(o);
|
|
@@ -16504,7 +16533,7 @@ const z = (K = class extends De {
|
|
|
16504
16533
|
ue.AliRtcConnectionStatusFailed
|
|
16505
16534
|
].includes(this.connectState))
|
|
16506
16535
|
throw new F(U.ERR_INNER, "cannot set channel profile in call");
|
|
16507
|
-
this.channelProfile = e, this.channelProfile === bt.AliRtcSdkCommunication && (this.clientRole =
|
|
16536
|
+
this.channelProfile = e, this.channelProfile === bt.AliRtcSdkCommunication && (this.clientRole = Bt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
|
|
16508
16537
|
}
|
|
16509
16538
|
startAndPublishDefaultDevices(e) {
|
|
16510
16539
|
return w(this, null, function* () {
|
|
@@ -16553,14 +16582,14 @@ const z = (K = class extends De {
|
|
|
16553
16582
|
try {
|
|
16554
16583
|
if (this.channelProfile === bt.AliRtcSdkCommunication)
|
|
16555
16584
|
return;
|
|
16556
|
-
if (!Object.values(
|
|
16585
|
+
if (!Object.values(Bt).includes(e))
|
|
16557
16586
|
throw new F(
|
|
16558
16587
|
U.ERR_INVALID_ARGUMENTS,
|
|
16559
16588
|
`set client role error, role value(${e}) is invalid`
|
|
16560
16589
|
);
|
|
16561
16590
|
if (this.clientRole === e)
|
|
16562
16591
|
return;
|
|
16563
|
-
this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole ===
|
|
16592
|
+
this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Bt.AliRtcSdkInteractive ? (this.bizControl.isSubscribing ? yield (t = this.publisher) == null ? void 0 : t.clearStream() : yield (i = this.publisher) == null ? void 0 : i.unPublish(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startAndPublishDefaultDevices(nt.ROLE_CHANGE)) : yield this.signalingManager.setClientRole(e), this.clientRole = e;
|
|
16564
16593
|
} catch (s) {
|
|
16565
16594
|
throw s.code === 403 && this.emit("authInfoExpired"), s;
|
|
16566
16595
|
}
|
|
@@ -16624,11 +16653,11 @@ const z = (K = class extends De {
|
|
|
16624
16653
|
const c = {
|
|
16625
16654
|
start: Date.now()
|
|
16626
16655
|
};
|
|
16627
|
-
let o =
|
|
16656
|
+
let o = ns.checkAuthInfo(s);
|
|
16628
16657
|
if (ue.AliRtcConnectionStatusInit === this.connectState || ue.AliRtcConnectionStatusDisconnected === this.connectState || ue.AliRtcConnectionStatusFailed === this.connectState) {
|
|
16629
16658
|
if (s.sessionId = He.createCallid("web"), this.slsReporter.start(s), this.slsReporter.reportConnectionLatencyEvent(
|
|
16630
|
-
|
|
16631
|
-
|
|
16659
|
+
Je.JOIN,
|
|
16660
|
+
Xe.START,
|
|
16632
16661
|
"",
|
|
16633
16662
|
"",
|
|
16634
16663
|
i
|
|
@@ -16643,18 +16672,18 @@ const z = (K = class extends De {
|
|
|
16643
16672
|
c
|
|
16644
16673
|
), f = Date.now();
|
|
16645
16674
|
this.connectState = ue.AliRtcConnectionStatusConnected, (u = this.publisher) == null || u.reportSelfDeviceStatus(), this.bizControl.init(s, d), this.setCheckAuthInfoTimer(s.timestamp, d.timestamp), this.liveTranscoding.setAuthInfo(s), this.slsReporter.reportJoin(0, c, d.tid), this.slsReporter.reportJoinResult(null), this.slsReporter.reportConnectionLatencyEvent(
|
|
16646
|
-
|
|
16647
|
-
|
|
16675
|
+
Je.JOIN,
|
|
16676
|
+
Xe.SEND_SIG,
|
|
16648
16677
|
"",
|
|
16649
16678
|
"",
|
|
16650
16679
|
p
|
|
16651
16680
|
), this.slsReporter.reportConnectionLatencyEvent(
|
|
16652
|
-
|
|
16653
|
-
|
|
16681
|
+
Je.JOIN,
|
|
16682
|
+
Xe.RECV_RST,
|
|
16654
16683
|
"",
|
|
16655
16684
|
"",
|
|
16656
16685
|
f
|
|
16657
|
-
), this.slsReporter.reportConnectionLatencyEvent(
|
|
16686
|
+
), this.slsReporter.reportConnectionLatencyEvent(Je.JOIN, Xe.END, "", "");
|
|
16658
16687
|
} catch (p) {
|
|
16659
16688
|
const d = (h = p.code) != null ? h : -1, f = p.reason || p.message || "";
|
|
16660
16689
|
throw this.connectState = ue.AliRtcConnectionStatusDisconnected, this.slsReporter.reportJoin(d, c, ""), this.slsReporter.reportJoinResult(p), new F(d, f);
|
|
@@ -16895,14 +16924,9 @@ const z = (K = class extends De {
|
|
|
16895
16924
|
}
|
|
16896
16925
|
setScreenShareConfiguration(e) {
|
|
16897
16926
|
return w(this, null, function* () {
|
|
16898
|
-
var
|
|
16899
|
-
const { frameRate: t
|
|
16900
|
-
|
|
16901
|
-
width: ti.width,
|
|
16902
|
-
height: ti.height,
|
|
16903
|
-
frameRate: t,
|
|
16904
|
-
maxBitrate: i
|
|
16905
|
-
});
|
|
16927
|
+
var n;
|
|
16928
|
+
const { frameRate: t, bitrate: i } = e, s = {};
|
|
16929
|
+
t && (s.frameRate = t), i && (s.maxBitrate = i), yield (n = this.publisher) == null ? void 0 : n.setScreenProfile(s);
|
|
16906
16930
|
});
|
|
16907
16931
|
}
|
|
16908
16932
|
setScreenShareContentHint(e) {
|
|
@@ -17035,20 +17059,8 @@ const z = (K = class extends De {
|
|
|
17035
17059
|
setCameraCapturerConfiguration(e) {
|
|
17036
17060
|
return w(this, null, function* () {
|
|
17037
17061
|
var u, h, p;
|
|
17038
|
-
const {
|
|
17039
|
-
|
|
17040
|
-
height: i = ei.height,
|
|
17041
|
-
frameRate: s = ei.frameRate,
|
|
17042
|
-
bitrate: n = ei.maxBitrate,
|
|
17043
|
-
cameraDirection: c,
|
|
17044
|
-
deviceId: o
|
|
17045
|
-
} = e;
|
|
17046
|
-
yield (u = this.publisher) == null ? void 0 : u.setVideoProfile(bn, {
|
|
17047
|
-
width: t,
|
|
17048
|
-
height: i,
|
|
17049
|
-
frameRate: s,
|
|
17050
|
-
maxBitrate: n
|
|
17051
|
-
}), c !== void 0 && ((h = this.publisher) == null || h.setCameraDirection(c)), o && ((p = this.publisher) == null || p.setCameraDeviceId(o));
|
|
17062
|
+
const o = e, { cameraDirection: t, deviceId: i, bitrate: s } = o, n = wt(o, ["cameraDirection", "deviceId", "bitrate"]), c = G({}, n);
|
|
17063
|
+
s && (c.maxBitrate = s), Object.keys(c).length > 0 && (yield (u = this.publisher) == null ? void 0 : u.setVideoProfile(c)), t !== void 0 && ((h = this.publisher) == null || h.setCameraDirection(t)), i && ((p = this.publisher) == null || p.setCameraDeviceId(i));
|
|
17052
17064
|
});
|
|
17053
17065
|
}
|
|
17054
17066
|
setCameraCapturerContentHint(e) {
|
|
@@ -17097,7 +17109,7 @@ const z = (K = class extends De {
|
|
|
17097
17109
|
if (this._audioOnlyMode)
|
|
17098
17110
|
throw new F(U.ERR_INNER, "Cannot switch camera in audio only mode");
|
|
17099
17111
|
const i = {};
|
|
17100
|
-
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ?
|
|
17112
|
+
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? ni.CAMERA_FRONT : ni.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
|
|
17101
17113
|
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (p = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : p.video) == null || d.disableVideo(), (S = (l = (g = (f = this.publisher) == null ? void 0 : f.publishStreams) == null ? void 0 : g.video) == null ? void 0 : l.videoTrack) == null || S.stop());
|
|
17102
17114
|
const x = {
|
|
17103
17115
|
video: !0
|
|
@@ -17163,9 +17175,9 @@ const z = (K = class extends De {
|
|
|
17163
17175
|
var n, c, o, u;
|
|
17164
17176
|
const { userId: t, streamType: i } = e;
|
|
17165
17177
|
if (!t)
|
|
17166
|
-
return i ===
|
|
17178
|
+
return i === be.AliRtcSdkStreamTypeCapture ? (n = this.publisher) == null ? void 0 : n.cameraTrack : (c = this.publisher) == null ? void 0 : c.screenTrack;
|
|
17167
17179
|
const s = this.bizControl.getRemoteUser(t);
|
|
17168
|
-
return i ===
|
|
17180
|
+
return i === be.AliRtcSdkStreamTypeCapture ? (o = s == null ? void 0 : s.getCameraStream) == null ? void 0 : o.videoTrack : (u = s == null ? void 0 : s.getScreenStream) == null ? void 0 : u.videoTrack;
|
|
17169
17181
|
});
|
|
17170
17182
|
}
|
|
17171
17183
|
startPublishLiveStream(e, t) {
|
|
@@ -17331,11 +17343,11 @@ m(K, "logError", !0), /**
|
|
|
17331
17343
|
* @param {string} direction
|
|
17332
17344
|
* @returns {Promise<AliRtcCheckResult>}
|
|
17333
17345
|
*/
|
|
17334
|
-
m(K, "isSupported",
|
|
17346
|
+
m(K, "isSupported", I0), /**
|
|
17335
17347
|
* 检查浏览器是否支持开启大小流
|
|
17336
17348
|
* @returns {boolean}
|
|
17337
17349
|
*/
|
|
17338
|
-
m(K, "isDualVideoStreamSupported",
|
|
17350
|
+
m(K, "isDualVideoStreamSupported", Hr.isSupport), /**
|
|
17339
17351
|
* 获取摄像头列表
|
|
17340
17352
|
* @returns {Promise<string[]>}
|
|
17341
17353
|
*/
|
|
@@ -17345,7 +17357,7 @@ m(K, "getCameraList", () => w(K, null, function* () {
|
|
|
17345
17357
|
return (yield le.getMicList()).filter((t) => t.deviceId);
|
|
17346
17358
|
})), m(K, "getSpeakerList", () => w(K, null, function* () {
|
|
17347
17359
|
return (yield le.getSpeakerList()).filter((t) => t.deviceId);
|
|
17348
|
-
})), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", bt), m(K, "AliRtcSdkClientRole",
|
|
17360
|
+
})), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", bt), m(K, "AliRtcSdkClientRole", Bt), m(K, "AliRtcVideoStreamType", we), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", Gt), m(K, "AliRtcPublishState", Y), m(K, "AliRtcSubscribeState", he), m(K, "AliRtcRawDataStreamType", be), m(K, "AliRtcLogLevel", dn), m(K, "AliRtcEngineLocalDeviceType", dt), m(K, "AliRtcEngineLocalDeviceExceptionType", _e), m(K, "AliRtcConnectionStatus", ue), m(K, "AliRtcConnectionStatusChangeReason", zt), m(K, "AliRtcPlugin", Jt), m(K, "AliRtcPluginTrackType", yi), m(K, "AliRtcLiveTranscodingParam", Mr), m(K, "AliRtcLiveTranscodingEncodeParam", xn), m(K, "AliRtcLiveTranscodingMixParam", Oc), m(K, "AliRtcLiveTranscodingSingleParam", Uc), m(K, "AliRtcTranscodingClockWidget", Hc), m(K, "AliRtcTranscodingImage", Cn), m(K, "AliRtcTranscodingText", jc), m(K, "AliRtcTranscodingUser", zc), m(K, "AliRtcLiveTranscodingMixMode", vi), m(K, "AliRtcLiveTranscodingStreamType", ln), m(K, "AliRtcLiveTranscodingSourceType", ai), m(K, "AliRtcLiveTranscodingTaskProfile", fn), m(K, "AliRtcLiveTranscodingAudioSampleRate", Qr), m(K, "AliRtcLiveTranscodingSegmentType", bi), m(K, "AliRtcLiveTranscodingFontType", Ci), m(K, "AliRtcLiveTranscodingCropMode", pn), m(K, "AliRtcLiveTranscodingMediaProcessMode", es), m(K, "AliRtcLiveTranscodingState", gn), m(K, "AliRtcLiveTranscodingErrorCode", ht), m(K, "AliRtcTrascodingPublishTaskStatus", mn), m(K, "AliRtcDataChannelMsg", Kt), m(K, "AliRtcDataMsgType", En), m(K, "Plugin", Jt), K);
|
|
17349
17361
|
W([
|
|
17350
17362
|
D()
|
|
17351
17363
|
], z.prototype, "destroy", 1);
|
|
@@ -17574,52 +17586,52 @@ W([
|
|
|
17574
17586
|
W([
|
|
17575
17587
|
D(H)
|
|
17576
17588
|
], z, "setLogLevel", 1);
|
|
17577
|
-
let
|
|
17589
|
+
let In = z;
|
|
17578
17590
|
var sn;
|
|
17579
|
-
const
|
|
17591
|
+
const wn = new $r({
|
|
17580
17592
|
businessName: "imp-web-rtc",
|
|
17581
|
-
version: (sn =
|
|
17593
|
+
version: (sn = In.getSdkVersion()) != null ? sn : "unknown",
|
|
17582
17594
|
env: "prod",
|
|
17583
17595
|
disabled: window.AliRtcOptionsDisableProxy === !0
|
|
17584
17596
|
});
|
|
17585
|
-
|
|
17586
|
-
const Xc =
|
|
17597
|
+
wn.setReady();
|
|
17598
|
+
const Xc = wn.wrap(In);
|
|
17587
17599
|
export {
|
|
17588
17600
|
ue as AliRtcConnectionStatus,
|
|
17589
17601
|
zt as AliRtcConnectionStatusChangeReason,
|
|
17590
17602
|
Kt as AliRtcDataChannelMsg,
|
|
17591
|
-
|
|
17592
|
-
|
|
17603
|
+
En as AliRtcDataMsgType,
|
|
17604
|
+
_e as AliRtcEngineLocalDeviceExceptionType,
|
|
17593
17605
|
dt as AliRtcEngineLocalDeviceType,
|
|
17594
17606
|
U as AliRtcErrorCode,
|
|
17595
|
-
|
|
17607
|
+
Qr as AliRtcLiveTranscodingAudioSampleRate,
|
|
17596
17608
|
pn as AliRtcLiveTranscodingCropMode,
|
|
17597
17609
|
xn as AliRtcLiveTranscodingEncodeParam,
|
|
17598
17610
|
ht as AliRtcLiveTranscodingErrorCode,
|
|
17599
|
-
|
|
17600
|
-
|
|
17601
|
-
|
|
17611
|
+
Ci as AliRtcLiveTranscodingFontType,
|
|
17612
|
+
es as AliRtcLiveTranscodingMediaProcessMode,
|
|
17613
|
+
vi as AliRtcLiveTranscodingMixMode,
|
|
17602
17614
|
Oc as AliRtcLiveTranscodingMixParam,
|
|
17603
|
-
|
|
17604
|
-
|
|
17615
|
+
Mr as AliRtcLiveTranscodingParam,
|
|
17616
|
+
bi as AliRtcLiveTranscodingSegmentType,
|
|
17605
17617
|
Uc as AliRtcLiveTranscodingSingleParam,
|
|
17606
|
-
|
|
17618
|
+
ai as AliRtcLiveTranscodingSourceType,
|
|
17607
17619
|
gn as AliRtcLiveTranscodingState,
|
|
17608
17620
|
ln as AliRtcLiveTranscodingStreamType,
|
|
17609
17621
|
fn as AliRtcLiveTranscodingTaskProfile,
|
|
17610
17622
|
Ga as AliRtcLocalStreamInfo,
|
|
17611
17623
|
dn as AliRtcLogLevel,
|
|
17612
17624
|
Jt as AliRtcPlugin,
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
|
|
17625
|
+
yi as AliRtcPluginTrackType,
|
|
17626
|
+
D0 as AliRtcPluginType,
|
|
17627
|
+
Y as AliRtcPublishState,
|
|
17628
|
+
be as AliRtcRawDataStreamType,
|
|
17617
17629
|
hc as AliRtcRemoteUserInfo,
|
|
17618
17630
|
bt as AliRtcSdkChannelProfile,
|
|
17619
|
-
|
|
17631
|
+
Bt as AliRtcSdkClientRole,
|
|
17620
17632
|
he as AliRtcSubscribeState,
|
|
17621
17633
|
Hc as AliRtcTranscodingClockWidget,
|
|
17622
|
-
|
|
17634
|
+
Cn as AliRtcTranscodingImage,
|
|
17623
17635
|
jc as AliRtcTranscodingText,
|
|
17624
17636
|
zc as AliRtcTranscodingUser,
|
|
17625
17637
|
mn as AliRtcTrascodingPublishTaskStatus,
|