aliyun-rtc-sdk 6.13.1-beta.0 → 6.13.2-beta.0
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 +483 -465
- package/dist/aliyun-rtc-sdk.umd.js +15 -15
- package/dist/types/index.d.ts +12 -5
- package/package.json +1 -1
|
@@ -48,13 +48,13 @@ var O = (s, c, e) => new Promise((t, i) => {
|
|
|
48
48
|
}, i = (n) => r[n] = (a) => new Promise((o, u) => t(n, a, o, u)), r = {};
|
|
49
49
|
return e = e.apply(s, c), r[Symbol.asyncIterator] = () => r, i("next"), i("throw"), i("return"), r;
|
|
50
50
|
};
|
|
51
|
-
import { AliRTS as Re, EConnectStatus as Ts, EDatachannelStatus as
|
|
51
|
+
import { AliRTS as Re, EConnectStatus as Ts, EDatachannelStatus as Bs } from "aliyun-rts-sdk";
|
|
52
52
|
import Ge from "eventemitter3";
|
|
53
|
-
var ho = Object.defineProperty, lo = (s, c, e) => c in s ? ho(s, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[c] = e, Jt = (s, c, e) => (lo(s, typeof c != "symbol" ? c + "" : c, e), e), $i = { exports: {} }, qi = { exports: {} }, Gi,
|
|
53
|
+
var ho = Object.defineProperty, lo = (s, c, e) => c in s ? ho(s, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[c] = e, Jt = (s, c, e) => (lo(s, typeof c != "symbol" ? c + "" : c, e), e), $i = { exports: {} }, qi = { exports: {} }, Gi, Ps;
|
|
54
54
|
function tt() {
|
|
55
|
-
if (
|
|
55
|
+
if (Ps)
|
|
56
56
|
return Gi;
|
|
57
|
-
|
|
57
|
+
Ps = 1, Date.now = Date.now || function() {
|
|
58
58
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
59
59
|
};
|
|
60
60
|
var s = Date.now(), c = function() {
|
|
@@ -1523,8 +1523,8 @@ function Eo() {
|
|
|
1523
1523
|
} catch (K) {
|
|
1524
1524
|
U = "";
|
|
1525
1525
|
}
|
|
1526
|
-
var
|
|
1527
|
-
if (d.getConfig("enableApiCors") ||
|
|
1526
|
+
var ie = e.checkSameOrigin(y, U);
|
|
1527
|
+
if (d.getConfig("enableApiCors") || ie)
|
|
1528
1528
|
if (f && typeof f != "string")
|
|
1529
1529
|
try {
|
|
1530
1530
|
if (p[0].headers && typeof p[0].headers.get == "function" && typeof p[0].headers.append == "function")
|
|
@@ -1545,8 +1545,8 @@ function Eo() {
|
|
|
1545
1545
|
break;
|
|
1546
1546
|
case "tracing":
|
|
1547
1547
|
default:
|
|
1548
|
-
var
|
|
1549
|
-
|
|
1548
|
+
var B = p[0].headers.get("uber-trace-id");
|
|
1549
|
+
B ? R = B.split(":")[0] : (B = d.getUberTraceId(E), p[0].headers.append("uber-trace-id", B["uber-trace-id"]), R = B.traceId), L = d.pageview;
|
|
1550
1550
|
}
|
|
1551
1551
|
} catch (K) {
|
|
1552
1552
|
e.warn(`[retcode] fetch failed to set header, exception is :
|
|
@@ -1627,13 +1627,13 @@ function Eo() {
|
|
|
1627
1627
|
var d = new f(p), g = t;
|
|
1628
1628
|
if (!g || !g.api || !d.addEventListener)
|
|
1629
1629
|
return d;
|
|
1630
|
-
var v, b, x, y, A = d.send, I = d.open, w = d.setRequestHeader, R = g._conf, L = (R.ignore || {}).ignoreApis, D = R.parseTraceId, N = g.getConfig("enableLinkTrace"), C = "", M = "", E = "", U = null,
|
|
1631
|
-
return
|
|
1630
|
+
var v, b, x, y, A = d.send, I = d.open, w = d.setRequestHeader, R = g._conf, L = (R.ignore || {}).ignoreApis, D = R.parseTraceId, N = g.getConfig("enableLinkTrace"), C = "", M = "", E = "", U = null, ie = g.getConfig("sample"), q = g.getConfig("linkType"), oe = 1;
|
|
1631
|
+
return ie && !g.sampling(ie) && (oe = 0), d.open = function($, se) {
|
|
1632
1632
|
m = $;
|
|
1633
1633
|
var T = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1634
1634
|
I.apply(d, T), y = se || "", x = e.cutUrlSearch(y);
|
|
1635
|
-
var
|
|
1636
|
-
if (x = x ? e.filterByRule(x, y, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !
|
|
1635
|
+
var B = !e.checkAPI(x, !0) || e.ignoreByRule(x, L);
|
|
1636
|
+
if (x = x ? e.filterByRule(x, y, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !B && N) {
|
|
1637
1637
|
var z = "";
|
|
1638
1638
|
try {
|
|
1639
1639
|
z = location.origin ? location.origin : location.protocol + "//" + location.hostname + (location.port ? ":" + location.port : "");
|
|
@@ -1668,8 +1668,8 @@ function Eo() {
|
|
|
1668
1668
|
typeof T == "object" && T["eagleeye-traceid"] && (C = T["eagleeye-traceid"], U = "response");
|
|
1669
1669
|
}
|
|
1670
1670
|
if (!C && e.isFunction(D)) {
|
|
1671
|
-
var
|
|
1672
|
-
|
|
1671
|
+
var B = D(d);
|
|
1672
|
+
B && e.isString(B) && (C = B);
|
|
1673
1673
|
}
|
|
1674
1674
|
if (d.status >= 200 && d.status <= 299) {
|
|
1675
1675
|
var z = d.status || 200;
|
|
@@ -2094,7 +2094,7 @@ function To(s, c, e) {
|
|
|
2094
2094
|
set: r.MediaboxWrapperObjectSetter
|
|
2095
2095
|
});
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function Bo(s, c, e) {
|
|
2098
2098
|
const t = {
|
|
2099
2099
|
MediaboxWrapperFunctionApply(i, r, n) {
|
|
2100
2100
|
let a;
|
|
@@ -2126,7 +2126,7 @@ function Po(s, c, e) {
|
|
|
2126
2126
|
});
|
|
2127
2127
|
}
|
|
2128
2128
|
const Vt = "-c-";
|
|
2129
|
-
function
|
|
2129
|
+
function Po(s) {
|
|
2130
2130
|
if (typeof s != "string")
|
|
2131
2131
|
return Vt;
|
|
2132
2132
|
if (cs(s))
|
|
@@ -2149,7 +2149,7 @@ function cs(s) {
|
|
|
2149
2149
|
return e < 0 ? c === s.length - Vt.length : c === e - Vt.length;
|
|
2150
2150
|
}
|
|
2151
2151
|
function vt(s, c, e) {
|
|
2152
|
-
return typeof s == "function" ?
|
|
2152
|
+
return typeof s == "function" ? Bo(s, c + 1, e) : s instanceof Promise ? s.then((t) => vt(t, c + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(s) ? s.map((t) => vt(t, c + 1, e)) : _a(s) && ya(s) ? To(s, c + 1, e) : s;
|
|
2153
2153
|
}
|
|
2154
2154
|
function Mo(s) {
|
|
2155
2155
|
return typeof s != "string" ? !1 : s.indexOf("g.alicdn.com/apsara-media-") > -1 || s.indexOf("g.alicdn.com/thor-server") > -1;
|
|
@@ -2212,7 +2212,7 @@ class us {
|
|
|
2212
2212
|
}
|
|
2213
2213
|
wrap(c) {
|
|
2214
2214
|
return this.options.disabled || typeof Proxy > "u" ? c : vt(c, 0, (e) => {
|
|
2215
|
-
e instanceof Error && typeof e.stack == "string" && on(e.stack) && (e.stack = Lo(e.stack), this.armsLogger.error(e), e.stack =
|
|
2215
|
+
e instanceof Error && typeof e.stack == "string" && on(e.stack) && (e.stack = Lo(e.stack), this.armsLogger.error(e), e.stack = Po(e.stack));
|
|
2216
2216
|
});
|
|
2217
2217
|
}
|
|
2218
2218
|
updateOptions(c) {
|
|
@@ -2268,7 +2268,7 @@ function jt(s, c, e) {
|
|
|
2268
2268
|
return No(t);
|
|
2269
2269
|
}
|
|
2270
2270
|
var Ri = /* @__PURE__ */ ((s) => (s.prod = "rs.rtn.aliyuncs.com", s.pre = "prs.rtn.aliyuncs.com", s))(Ri || {});
|
|
2271
|
-
const ds = "6.13.
|
|
2271
|
+
const ds = "6.13.2-beta.0", hn = "web";
|
|
2272
2272
|
class ft {
|
|
2273
2273
|
/**
|
|
2274
2274
|
* 将版本号转换为number
|
|
@@ -2510,20 +2510,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2510
2510
|
return g;
|
|
2511
2511
|
}
|
|
2512
2512
|
function n(l, p, d, g, v, b) {
|
|
2513
|
-
var x, y, A = l.file, I = l.compression, w = b !== u.utf8encode, R = a.transformTo("string", b(A.name)), L = a.transformTo("string", u.utf8encode(A.name)), D = A.comment, N = a.transformTo("string", b(D)), C = a.transformTo("string", u.utf8encode(D)), M = L.length !== A.name.length, E = C.length !== D.length, U = "",
|
|
2513
|
+
var x, y, A = l.file, I = l.compression, w = b !== u.utf8encode, R = a.transformTo("string", b(A.name)), L = a.transformTo("string", u.utf8encode(A.name)), D = A.comment, N = a.transformTo("string", b(D)), C = a.transformTo("string", u.utf8encode(D)), M = L.length !== A.name.length, E = C.length !== D.length, U = "", ie = "", q = "", oe = A.dir, $ = A.date, se = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
2514
2514
|
p && !d || (se.crc32 = l.crc32, se.compressedSize = l.compressedSize, se.uncompressedSize = l.uncompressedSize);
|
|
2515
2515
|
var T = 0;
|
|
2516
2516
|
p && (T |= 8), w || !M && !E || (T |= 2048);
|
|
2517
|
-
var
|
|
2518
|
-
oe && (
|
|
2517
|
+
var B = 0, z = 0;
|
|
2518
|
+
oe && (B |= 16), v === "UNIX" ? (z = 798, B |= function(K, Q) {
|
|
2519
2519
|
var pe = K;
|
|
2520
2520
|
return K || (pe = Q ? 16893 : 33204), (65535 & pe) << 16;
|
|
2521
|
-
}(A.unixPermissions, oe)) : (z = 20,
|
|
2521
|
+
}(A.unixPermissions, oe)) : (z = 20, B |= function(K) {
|
|
2522
2522
|
return 63 & (K || 0);
|
|
2523
|
-
}(A.dosPermissions)), x = $.getUTCHours(), x <<= 6, x |= $.getUTCMinutes(), x <<= 5, x |= $.getUTCSeconds() / 2, y = $.getUTCFullYear() - 1980, y <<= 4, y |= $.getUTCMonth() + 1, y <<= 5, y |= $.getUTCDate(), M && (
|
|
2523
|
+
}(A.dosPermissions)), x = $.getUTCHours(), x <<= 6, x |= $.getUTCMinutes(), x <<= 5, x |= $.getUTCSeconds() / 2, y = $.getUTCFullYear() - 1980, y <<= 4, y |= $.getUTCMonth() + 1, y <<= 5, y |= $.getUTCDate(), M && (ie = r(1, 1) + r(h(R), 4) + L, U += "up" + r(ie.length, 2) + ie), E && (q = r(1, 1) + r(h(N), 4) + C, U += "uc" + r(q.length, 2) + q);
|
|
2524
2524
|
var F = "";
|
|
2525
2525
|
return F += `
|
|
2526
|
-
\0`, F += r(T, 2), F += I.magic, F += r(x, 2), F += r(y, 2), F += r(se.crc32, 4), F += r(se.compressedSize, 4), F += r(se.uncompressedSize, 4), F += r(R.length, 2), F += r(U.length, 2), { fileRecord: m.LOCAL_FILE_HEADER + F + R + U, dirRecord: m.CENTRAL_FILE_HEADER + r(z, 2) + F + r(N.length, 2) + "\0\0\0\0" + r(
|
|
2526
|
+
\0`, F += r(T, 2), F += I.magic, F += r(x, 2), F += r(y, 2), F += r(se.crc32, 4), F += r(se.compressedSize, 4), F += r(se.uncompressedSize, 4), F += r(R.length, 2), F += r(U.length, 2), { fileRecord: m.LOCAL_FILE_HEADER + F + R + U, dirRecord: m.CENTRAL_FILE_HEADER + r(z, 2) + F + r(N.length, 2) + "\0\0\0\0" + r(B, 4) + r(g, 4) + R + U + N };
|
|
2527
2527
|
}
|
|
2528
2528
|
var a = e("../utils"), o = e("../stream/GenericWorker"), u = e("../utf8"), h = e("../crc32"), m = e("../signature");
|
|
2529
2529
|
function f(l, p, d, g) {
|
|
@@ -3885,7 +3885,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3885
3885
|
return -1 ^ n;
|
|
3886
3886
|
};
|
|
3887
3887
|
}, {}], 46: [function(e, t, i) {
|
|
3888
|
-
var r, n = e("../utils/common"), a = e("./trees"), o = e("./adler32"), u = e("./crc32"), h = e("./messages"), m = 0, f = 4, l = 0, p = -2, d = -1, g = 4, v = 2, b = 8, x = 9, y = 286, A = 30, I = 19, w = 2 * y + 1, R = 15, L = 3, D = 258, N = D + L + 1, C = 42, M = 113, E = 1, U = 2,
|
|
3888
|
+
var r, n = e("../utils/common"), a = e("./trees"), o = e("./adler32"), u = e("./crc32"), h = e("./messages"), m = 0, f = 4, l = 0, p = -2, d = -1, g = 4, v = 2, b = 8, x = 9, y = 286, A = 30, I = 19, w = 2 * y + 1, R = 15, L = 3, D = 258, N = D + L + 1, C = 42, M = 113, E = 1, U = 2, ie = 3, q = 4;
|
|
3889
3889
|
function oe(S, J) {
|
|
3890
3890
|
return S.msg = h[J], J;
|
|
3891
3891
|
}
|
|
@@ -3900,7 +3900,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3900
3900
|
var J = S.state, W = J.pending;
|
|
3901
3901
|
W > S.avail_out && (W = S.avail_out), W !== 0 && (n.arraySet(S.output, J.pending_buf, J.pending_out, W, S.next_out), S.next_out += W, J.pending_out += W, S.total_out += W, S.avail_out -= W, J.pending -= W, J.pending === 0 && (J.pending_out = 0));
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function B(S, J) {
|
|
3904
3904
|
a._tr_flush_block(S, 0 <= S.block_start ? S.block_start : -1, S.strstart - S.block_start, J), S.block_start = S.strstart, T(S.strm);
|
|
3905
3905
|
}
|
|
3906
3906
|
function z(S, J) {
|
|
@@ -3910,7 +3910,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3910
3910
|
S.pending_buf[S.pending++] = J >>> 8 & 255, S.pending_buf[S.pending++] = 255 & J;
|
|
3911
3911
|
}
|
|
3912
3912
|
function K(S, J) {
|
|
3913
|
-
var W,
|
|
3913
|
+
var W, P, k = S.max_chain_length, V = S.strstart, Z = S.prev_length, X = S.nice_match, H = S.strstart > S.w_size - N ? S.strstart - (S.w_size - N) : 0, ee = S.window, he = S.w_mask, re = S.prev, fe = S.strstart + D, _e = ee[V + Z - 1], xe = ee[V + Z];
|
|
3914
3914
|
S.prev_length >= S.good_match && (k >>= 2), X > S.lookahead && (X = S.lookahead);
|
|
3915
3915
|
do
|
|
3916
3916
|
if (ee[(W = J) + Z] === xe && ee[W + Z - 1] === _e && ee[W] === ee[V] && ee[++W] === ee[V + 1]) {
|
|
@@ -3918,24 +3918,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3918
3918
|
do
|
|
3919
3919
|
;
|
|
3920
3920
|
while (ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && ee[++V] === ee[++W] && V < fe);
|
|
3921
|
-
if (
|
|
3922
|
-
if (S.match_start = J, X <= (Z =
|
|
3921
|
+
if (P = D - (fe - V), V = fe - D, Z < P) {
|
|
3922
|
+
if (S.match_start = J, X <= (Z = P))
|
|
3923
3923
|
break;
|
|
3924
3924
|
_e = ee[V + Z - 1], xe = ee[V + Z];
|
|
3925
3925
|
}
|
|
3926
3926
|
}
|
|
3927
|
-
while ((J =
|
|
3927
|
+
while ((J = re[J & he]) > H && --k != 0);
|
|
3928
3928
|
return Z <= S.lookahead ? Z : S.lookahead;
|
|
3929
3929
|
}
|
|
3930
3930
|
function Q(S) {
|
|
3931
|
-
var J, W,
|
|
3931
|
+
var J, W, P, k, V, Z, X, H, ee, he, re = S.w_size;
|
|
3932
3932
|
do {
|
|
3933
|
-
if (k = S.window_size - S.lookahead - S.strstart, S.strstart >=
|
|
3934
|
-
for (n.arraySet(S.window, S.window,
|
|
3933
|
+
if (k = S.window_size - S.lookahead - S.strstart, S.strstart >= re + (re - N)) {
|
|
3934
|
+
for (n.arraySet(S.window, S.window, re, re, 0), S.match_start -= re, S.strstart -= re, S.block_start -= re, J = W = S.hash_size; P = S.head[--J], S.head[J] = re <= P ? P - re : 0, --W; )
|
|
3935
3935
|
;
|
|
3936
|
-
for (J = W =
|
|
3936
|
+
for (J = W = re; P = S.prev[--J], S.prev[J] = re <= P ? P - re : 0, --W; )
|
|
3937
3937
|
;
|
|
3938
|
-
k +=
|
|
3938
|
+
k += re;
|
|
3939
3939
|
}
|
|
3940
3940
|
if (S.strm.avail_in === 0)
|
|
3941
3941
|
break;
|
|
@@ -3945,7 +3945,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3945
3945
|
} while (S.lookahead < N && S.strm.avail_in !== 0);
|
|
3946
3946
|
}
|
|
3947
3947
|
function pe(S, J) {
|
|
3948
|
-
for (var W,
|
|
3948
|
+
for (var W, P; ; ) {
|
|
3949
3949
|
if (S.lookahead < N) {
|
|
3950
3950
|
if (Q(S), S.lookahead < N && J === m)
|
|
3951
3951
|
return E;
|
|
@@ -3953,21 +3953,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3953
3953
|
break;
|
|
3954
3954
|
}
|
|
3955
3955
|
if (W = 0, S.lookahead >= L && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + L - 1]) & S.hash_mask, W = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), W !== 0 && S.strstart - W <= S.w_size - N && (S.match_length = K(S, W)), S.match_length >= L)
|
|
3956
|
-
if (
|
|
3956
|
+
if (P = a._tr_tally(S, S.strstart - S.match_start, S.match_length - L), S.lookahead -= S.match_length, S.match_length <= S.max_lazy_match && S.lookahead >= L) {
|
|
3957
3957
|
for (S.match_length--; S.strstart++, S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + L - 1]) & S.hash_mask, W = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart, --S.match_length != 0; )
|
|
3958
3958
|
;
|
|
3959
3959
|
S.strstart++;
|
|
3960
3960
|
} else
|
|
3961
3961
|
S.strstart += S.match_length, S.match_length = 0, S.ins_h = S.window[S.strstart], S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + 1]) & S.hash_mask;
|
|
3962
3962
|
else
|
|
3963
|
-
|
|
3964
|
-
if (
|
|
3963
|
+
P = a._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++;
|
|
3964
|
+
if (P && (B(S, !1), S.strm.avail_out === 0))
|
|
3965
3965
|
return E;
|
|
3966
3966
|
}
|
|
3967
|
-
return S.insert = S.strstart < L - 1 ? S.strstart : L - 1, J === f ? (
|
|
3967
|
+
return S.insert = S.strstart < L - 1 ? S.strstart : L - 1, J === f ? (B(S, !0), S.strm.avail_out === 0 ? ie : q) : S.last_lit && (B(S, !1), S.strm.avail_out === 0) ? E : U;
|
|
3968
3968
|
}
|
|
3969
3969
|
function ce(S, J) {
|
|
3970
|
-
for (var W,
|
|
3970
|
+
for (var W, P, k; ; ) {
|
|
3971
3971
|
if (S.lookahead < N) {
|
|
3972
3972
|
if (Q(S), S.lookahead < N && J === m)
|
|
3973
3973
|
return E;
|
|
@@ -3975,20 +3975,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3975
3975
|
break;
|
|
3976
3976
|
}
|
|
3977
3977
|
if (W = 0, S.lookahead >= L && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + L - 1]) & S.hash_mask, W = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), S.prev_length = S.match_length, S.prev_match = S.match_start, S.match_length = L - 1, W !== 0 && S.prev_length < S.max_lazy_match && S.strstart - W <= S.w_size - N && (S.match_length = K(S, W), S.match_length <= 5 && (S.strategy === 1 || S.match_length === L && 4096 < S.strstart - S.match_start) && (S.match_length = L - 1)), S.prev_length >= L && S.match_length <= S.prev_length) {
|
|
3978
|
-
for (k = S.strstart + S.lookahead - L,
|
|
3978
|
+
for (k = S.strstart + S.lookahead - L, P = a._tr_tally(S, S.strstart - 1 - S.prev_match, S.prev_length - L), S.lookahead -= S.prev_length - 1, S.prev_length -= 2; ++S.strstart <= k && (S.ins_h = (S.ins_h << S.hash_shift ^ S.window[S.strstart + L - 1]) & S.hash_mask, W = S.prev[S.strstart & S.w_mask] = S.head[S.ins_h], S.head[S.ins_h] = S.strstart), --S.prev_length != 0; )
|
|
3979
3979
|
;
|
|
3980
|
-
if (S.match_available = 0, S.match_length = L - 1, S.strstart++,
|
|
3980
|
+
if (S.match_available = 0, S.match_length = L - 1, S.strstart++, P && (B(S, !1), S.strm.avail_out === 0))
|
|
3981
3981
|
return E;
|
|
3982
3982
|
} else if (S.match_available) {
|
|
3983
|
-
if ((
|
|
3983
|
+
if ((P = a._tr_tally(S, 0, S.window[S.strstart - 1])) && B(S, !1), S.strstart++, S.lookahead--, S.strm.avail_out === 0)
|
|
3984
3984
|
return E;
|
|
3985
3985
|
} else
|
|
3986
3986
|
S.match_available = 1, S.strstart++, S.lookahead--;
|
|
3987
3987
|
}
|
|
3988
|
-
return S.match_available && (
|
|
3988
|
+
return S.match_available && (P = a._tr_tally(S, 0, S.window[S.strstart - 1]), S.match_available = 0), S.insert = S.strstart < L - 1 ? S.strstart : L - 1, J === f ? (B(S, !0), S.strm.avail_out === 0 ? ie : q) : S.last_lit && (B(S, !1), S.strm.avail_out === 0) ? E : U;
|
|
3989
3989
|
}
|
|
3990
|
-
function be(S, J, W,
|
|
3991
|
-
this.good_length = S, this.max_lazy = J, this.nice_length = W, this.max_chain =
|
|
3990
|
+
function be(S, J, W, P, k) {
|
|
3991
|
+
this.good_length = S, this.max_lazy = J, this.nice_length = W, this.max_chain = P, this.func = k;
|
|
3992
3992
|
}
|
|
3993
3993
|
function we() {
|
|
3994
3994
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = b, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new n.Buf16(2 * w), this.dyn_dtree = new n.Buf16(2 * (2 * A + 1)), this.bl_tree = new n.Buf16(2 * (2 * I + 1)), se(this.dyn_ltree), se(this.dyn_dtree), se(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new n.Buf16(R + 1), this.heap = new n.Buf16(2 * y + 1), se(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new n.Buf16(2 * y + 1), se(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
@@ -4003,15 +4003,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4003
4003
|
W.window_size = 2 * W.w_size, se(W.head), W.max_lazy_match = r[W.level].max_lazy, W.good_match = r[W.level].good_length, W.nice_match = r[W.level].nice_length, W.max_chain_length = r[W.level].max_chain, W.strstart = 0, W.block_start = 0, W.lookahead = 0, W.insert = 0, W.match_length = W.prev_length = L - 1, W.match_available = 0, W.ins_h = 0;
|
|
4004
4004
|
}(S.state), J;
|
|
4005
4005
|
}
|
|
4006
|
-
function Ce(S, J, W,
|
|
4006
|
+
function Ce(S, J, W, P, k, V) {
|
|
4007
4007
|
if (!S)
|
|
4008
4008
|
return p;
|
|
4009
4009
|
var Z = 1;
|
|
4010
|
-
if (J === d && (J = 6),
|
|
4010
|
+
if (J === d && (J = 6), P < 0 ? (Z = 0, P = -P) : 15 < P && (Z = 2, P -= 16), k < 1 || x < k || W !== b || P < 8 || 15 < P || J < 0 || 9 < J || V < 0 || g < V)
|
|
4011
4011
|
return oe(S, p);
|
|
4012
|
-
|
|
4012
|
+
P === 8 && (P = 9);
|
|
4013
4013
|
var X = new we();
|
|
4014
|
-
return (S.state = X).strm = S, X.wrap = Z, X.gzhead = null, X.w_bits =
|
|
4014
|
+
return (S.state = X).strm = S, X.wrap = Z, X.gzhead = null, X.w_bits = P, X.w_size = 1 << X.w_bits, X.w_mask = X.w_size - 1, X.hash_bits = k + 7, X.hash_size = 1 << X.hash_bits, X.hash_mask = X.hash_size - 1, X.hash_shift = ~~((X.hash_bits + L - 1) / L), X.window = new n.Buf8(2 * X.w_size), X.head = new n.Buf16(X.hash_size), X.prev = new n.Buf16(X.w_size), X.lit_bufsize = 1 << k + 6, X.pending_buf_size = 4 * X.lit_bufsize, X.pending_buf = new n.Buf8(X.pending_buf_size), X.d_buf = 1 * X.lit_bufsize, X.l_buf = 3 * X.lit_bufsize, X.level = J, X.strategy = V, X.method = W, Fe(S);
|
|
4015
4015
|
}
|
|
4016
4016
|
r = [new be(0, 0, 0, 0, function(S, J) {
|
|
4017
4017
|
var W = 65535;
|
|
@@ -4023,117 +4023,117 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4023
4023
|
break;
|
|
4024
4024
|
}
|
|
4025
4025
|
S.strstart += S.lookahead, S.lookahead = 0;
|
|
4026
|
-
var
|
|
4027
|
-
if ((S.strstart === 0 || S.strstart >=
|
|
4026
|
+
var P = S.block_start + W;
|
|
4027
|
+
if ((S.strstart === 0 || S.strstart >= P) && (S.lookahead = S.strstart - P, S.strstart = P, B(S, !1), S.strm.avail_out === 0) || S.strstart - S.block_start >= S.w_size - N && (B(S, !1), S.strm.avail_out === 0))
|
|
4028
4028
|
return E;
|
|
4029
4029
|
}
|
|
4030
|
-
return S.insert = 0, J === f ? (
|
|
4030
|
+
return S.insert = 0, J === f ? (B(S, !0), S.strm.avail_out === 0 ? ie : q) : (S.strstart > S.block_start && (B(S, !1), S.strm.avail_out), E);
|
|
4031
4031
|
}), new be(4, 4, 8, 4, pe), new be(4, 5, 16, 8, pe), new be(4, 6, 32, 32, pe), new be(4, 4, 16, 16, ce), new be(8, 16, 32, 32, ce), new be(8, 16, 128, 128, ce), new be(8, 32, 128, 256, ce), new be(32, 128, 258, 1024, ce), new be(32, 258, 258, 4096, ce)], i.deflateInit = function(S, J) {
|
|
4032
4032
|
return Ce(S, J, b, 15, 8, 0);
|
|
4033
4033
|
}, i.deflateInit2 = Ce, i.deflateReset = Fe, i.deflateResetKeep = Ae, i.deflateSetHeader = function(S, J) {
|
|
4034
4034
|
return S && S.state ? S.state.wrap !== 2 ? p : (S.state.gzhead = J, l) : p;
|
|
4035
4035
|
}, i.deflate = function(S, J) {
|
|
4036
|
-
var W,
|
|
4036
|
+
var W, P, k, V;
|
|
4037
4037
|
if (!S || !S.state || 5 < J || J < 0)
|
|
4038
4038
|
return S ? oe(S, p) : p;
|
|
4039
|
-
if (
|
|
4039
|
+
if (P = S.state, !S.output || !S.input && S.avail_in !== 0 || P.status === 666 && J !== f)
|
|
4040
4040
|
return oe(S, S.avail_out === 0 ? -5 : p);
|
|
4041
|
-
if (
|
|
4042
|
-
if (
|
|
4043
|
-
S.adler = 0, z(
|
|
4041
|
+
if (P.strm = S, W = P.last_flush, P.last_flush = J, P.status === C)
|
|
4042
|
+
if (P.wrap === 2)
|
|
4043
|
+
S.adler = 0, z(P, 31), z(P, 139), z(P, 8), P.gzhead ? (z(P, (P.gzhead.text ? 1 : 0) + (P.gzhead.hcrc ? 2 : 0) + (P.gzhead.extra ? 4 : 0) + (P.gzhead.name ? 8 : 0) + (P.gzhead.comment ? 16 : 0)), z(P, 255 & P.gzhead.time), z(P, P.gzhead.time >> 8 & 255), z(P, P.gzhead.time >> 16 & 255), z(P, P.gzhead.time >> 24 & 255), z(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), z(P, 255 & P.gzhead.os), P.gzhead.extra && P.gzhead.extra.length && (z(P, 255 & P.gzhead.extra.length), z(P, P.gzhead.extra.length >> 8 & 255)), P.gzhead.hcrc && (S.adler = u(S.adler, P.pending_buf, P.pending, 0)), P.gzindex = 0, P.status = 69) : (z(P, 0), z(P, 0), z(P, 0), z(P, 0), z(P, 0), z(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), z(P, 3), P.status = M);
|
|
4044
4044
|
else {
|
|
4045
|
-
var Z = b + (
|
|
4046
|
-
Z |= (2 <=
|
|
4045
|
+
var Z = b + (P.w_bits - 8 << 4) << 8;
|
|
4046
|
+
Z |= (2 <= P.strategy || P.level < 2 ? 0 : P.level < 6 ? 1 : P.level === 6 ? 2 : 3) << 6, P.strstart !== 0 && (Z |= 32), Z += 31 - Z % 31, P.status = M, F(P, Z), P.strstart !== 0 && (F(P, S.adler >>> 16), F(P, 65535 & S.adler)), S.adler = 1;
|
|
4047
4047
|
}
|
|
4048
|
-
if (
|
|
4049
|
-
if (
|
|
4050
|
-
for (k =
|
|
4051
|
-
z(
|
|
4052
|
-
|
|
4048
|
+
if (P.status === 69)
|
|
4049
|
+
if (P.gzhead.extra) {
|
|
4050
|
+
for (k = P.pending; P.gzindex < (65535 & P.gzhead.extra.length) && (P.pending !== P.pending_buf_size || (P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), T(S), k = P.pending, P.pending !== P.pending_buf_size)); )
|
|
4051
|
+
z(P, 255 & P.gzhead.extra[P.gzindex]), P.gzindex++;
|
|
4052
|
+
P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), P.gzindex === P.gzhead.extra.length && (P.gzindex = 0, P.status = 73);
|
|
4053
4053
|
} else
|
|
4054
|
-
|
|
4055
|
-
if (
|
|
4056
|
-
if (
|
|
4057
|
-
k =
|
|
4054
|
+
P.status = 73;
|
|
4055
|
+
if (P.status === 73)
|
|
4056
|
+
if (P.gzhead.name) {
|
|
4057
|
+
k = P.pending;
|
|
4058
4058
|
do {
|
|
4059
|
-
if (
|
|
4059
|
+
if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), T(S), k = P.pending, P.pending === P.pending_buf_size)) {
|
|
4060
4060
|
V = 1;
|
|
4061
4061
|
break;
|
|
4062
4062
|
}
|
|
4063
|
-
V =
|
|
4063
|
+
V = P.gzindex < P.gzhead.name.length ? 255 & P.gzhead.name.charCodeAt(P.gzindex++) : 0, z(P, V);
|
|
4064
4064
|
} while (V !== 0);
|
|
4065
|
-
|
|
4065
|
+
P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), V === 0 && (P.gzindex = 0, P.status = 91);
|
|
4066
4066
|
} else
|
|
4067
|
-
|
|
4068
|
-
if (
|
|
4069
|
-
if (
|
|
4070
|
-
k =
|
|
4067
|
+
P.status = 91;
|
|
4068
|
+
if (P.status === 91)
|
|
4069
|
+
if (P.gzhead.comment) {
|
|
4070
|
+
k = P.pending;
|
|
4071
4071
|
do {
|
|
4072
|
-
if (
|
|
4072
|
+
if (P.pending === P.pending_buf_size && (P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), T(S), k = P.pending, P.pending === P.pending_buf_size)) {
|
|
4073
4073
|
V = 1;
|
|
4074
4074
|
break;
|
|
4075
4075
|
}
|
|
4076
|
-
V =
|
|
4076
|
+
V = P.gzindex < P.gzhead.comment.length ? 255 & P.gzhead.comment.charCodeAt(P.gzindex++) : 0, z(P, V);
|
|
4077
4077
|
} while (V !== 0);
|
|
4078
|
-
|
|
4078
|
+
P.gzhead.hcrc && P.pending > k && (S.adler = u(S.adler, P.pending_buf, P.pending - k, k)), V === 0 && (P.status = 103);
|
|
4079
4079
|
} else
|
|
4080
|
-
|
|
4081
|
-
if (
|
|
4080
|
+
P.status = 103;
|
|
4081
|
+
if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size && T(S), P.pending + 2 <= P.pending_buf_size && (z(P, 255 & S.adler), z(P, S.adler >> 8 & 255), S.adler = 0, P.status = M)) : P.status = M), P.pending !== 0) {
|
|
4082
4082
|
if (T(S), S.avail_out === 0)
|
|
4083
|
-
return
|
|
4083
|
+
return P.last_flush = -1, l;
|
|
4084
4084
|
} else if (S.avail_in === 0 && $(J) <= $(W) && J !== f)
|
|
4085
4085
|
return oe(S, -5);
|
|
4086
|
-
if (
|
|
4086
|
+
if (P.status === 666 && S.avail_in !== 0)
|
|
4087
4087
|
return oe(S, -5);
|
|
4088
|
-
if (S.avail_in !== 0 ||
|
|
4089
|
-
var X =
|
|
4088
|
+
if (S.avail_in !== 0 || P.lookahead !== 0 || J !== m && P.status !== 666) {
|
|
4089
|
+
var X = P.strategy === 2 ? function(H, ee) {
|
|
4090
4090
|
for (var he; ; ) {
|
|
4091
4091
|
if (H.lookahead === 0 && (Q(H), H.lookahead === 0)) {
|
|
4092
4092
|
if (ee === m)
|
|
4093
4093
|
return E;
|
|
4094
4094
|
break;
|
|
4095
4095
|
}
|
|
4096
|
-
if (H.match_length = 0, he = a._tr_tally(H, 0, H.window[H.strstart]), H.lookahead--, H.strstart++, he && (
|
|
4096
|
+
if (H.match_length = 0, he = a._tr_tally(H, 0, H.window[H.strstart]), H.lookahead--, H.strstart++, he && (B(H, !1), H.strm.avail_out === 0))
|
|
4097
4097
|
return E;
|
|
4098
4098
|
}
|
|
4099
|
-
return H.insert = 0, ee === f ? (
|
|
4100
|
-
}(
|
|
4101
|
-
for (var he,
|
|
4099
|
+
return H.insert = 0, ee === f ? (B(H, !0), H.strm.avail_out === 0 ? ie : q) : H.last_lit && (B(H, !1), H.strm.avail_out === 0) ? E : U;
|
|
4100
|
+
}(P, J) : P.strategy === 3 ? function(H, ee) {
|
|
4101
|
+
for (var he, re, fe, _e, xe = H.window; ; ) {
|
|
4102
4102
|
if (H.lookahead <= D) {
|
|
4103
4103
|
if (Q(H), H.lookahead <= D && ee === m)
|
|
4104
4104
|
return E;
|
|
4105
4105
|
if (H.lookahead === 0)
|
|
4106
4106
|
break;
|
|
4107
4107
|
}
|
|
4108
|
-
if (H.match_length = 0, H.lookahead >= L && 0 < H.strstart && (
|
|
4108
|
+
if (H.match_length = 0, H.lookahead >= L && 0 < H.strstart && (re = xe[fe = H.strstart - 1]) === xe[++fe] && re === xe[++fe] && re === xe[++fe]) {
|
|
4109
4109
|
_e = H.strstart + D;
|
|
4110
4110
|
do
|
|
4111
4111
|
;
|
|
4112
|
-
while (
|
|
4112
|
+
while (re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && re === xe[++fe] && fe < _e);
|
|
4113
4113
|
H.match_length = D - (_e - fe), H.match_length > H.lookahead && (H.match_length = H.lookahead);
|
|
4114
4114
|
}
|
|
4115
|
-
if (H.match_length >= L ? (he = a._tr_tally(H, 1, H.match_length - L), H.lookahead -= H.match_length, H.strstart += H.match_length, H.match_length = 0) : (he = a._tr_tally(H, 0, H.window[H.strstart]), H.lookahead--, H.strstart++), he && (
|
|
4115
|
+
if (H.match_length >= L ? (he = a._tr_tally(H, 1, H.match_length - L), H.lookahead -= H.match_length, H.strstart += H.match_length, H.match_length = 0) : (he = a._tr_tally(H, 0, H.window[H.strstart]), H.lookahead--, H.strstart++), he && (B(H, !1), H.strm.avail_out === 0))
|
|
4116
4116
|
return E;
|
|
4117
4117
|
}
|
|
4118
|
-
return H.insert = 0, ee === f ? (
|
|
4119
|
-
}(
|
|
4120
|
-
if (X !==
|
|
4121
|
-
return S.avail_out === 0 && (
|
|
4122
|
-
if (X === U && (J === 1 ? a._tr_align(
|
|
4123
|
-
return
|
|
4118
|
+
return H.insert = 0, ee === f ? (B(H, !0), H.strm.avail_out === 0 ? ie : q) : H.last_lit && (B(H, !1), H.strm.avail_out === 0) ? E : U;
|
|
4119
|
+
}(P, J) : r[P.level].func(P, J);
|
|
4120
|
+
if (X !== ie && X !== q || (P.status = 666), X === E || X === ie)
|
|
4121
|
+
return S.avail_out === 0 && (P.last_flush = -1), l;
|
|
4122
|
+
if (X === U && (J === 1 ? a._tr_align(P) : J !== 5 && (a._tr_stored_block(P, 0, 0, !1), J === 3 && (se(P.head), P.lookahead === 0 && (P.strstart = 0, P.block_start = 0, P.insert = 0))), T(S), S.avail_out === 0))
|
|
4123
|
+
return P.last_flush = -1, l;
|
|
4124
4124
|
}
|
|
4125
|
-
return J !== f ? l :
|
|
4125
|
+
return J !== f ? l : P.wrap <= 0 ? 1 : (P.wrap === 2 ? (z(P, 255 & S.adler), z(P, S.adler >> 8 & 255), z(P, S.adler >> 16 & 255), z(P, S.adler >> 24 & 255), z(P, 255 & S.total_in), z(P, S.total_in >> 8 & 255), z(P, S.total_in >> 16 & 255), z(P, S.total_in >> 24 & 255)) : (F(P, S.adler >>> 16), F(P, 65535 & S.adler)), T(S), 0 < P.wrap && (P.wrap = -P.wrap), P.pending !== 0 ? l : 1);
|
|
4126
4126
|
}, i.deflateEnd = function(S) {
|
|
4127
4127
|
var J;
|
|
4128
4128
|
return S && S.state ? (J = S.state.status) !== C && J !== 69 && J !== 73 && J !== 91 && J !== 103 && J !== M && J !== 666 ? oe(S, p) : (S.state = null, J === M ? oe(S, -3) : l) : p;
|
|
4129
4129
|
}, i.deflateSetDictionary = function(S, J) {
|
|
4130
|
-
var W,
|
|
4130
|
+
var W, P, k, V, Z, X, H, ee, he = J.length;
|
|
4131
4131
|
if (!S || !S.state || (V = (W = S.state).wrap) === 2 || V === 1 && W.status !== C || W.lookahead)
|
|
4132
4132
|
return p;
|
|
4133
4133
|
for (V === 1 && (S.adler = o(S.adler, J, he, 0)), W.wrap = 0, he >= W.w_size && (V === 0 && (se(W.head), W.strstart = 0, W.block_start = 0, W.insert = 0), ee = new n.Buf8(W.w_size), n.arraySet(ee, J, he - W.w_size, W.w_size, 0), J = ee, he = W.w_size), Z = S.avail_in, X = S.next_in, H = S.input, S.avail_in = he, S.next_in = 0, S.input = J, Q(W); W.lookahead >= L; ) {
|
|
4134
|
-
for (
|
|
4134
|
+
for (P = W.strstart, k = W.lookahead - (L - 1); W.ins_h = (W.ins_h << W.hash_shift ^ W.window[P + L - 1]) & W.hash_mask, W.prev[P & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = P, P++, --k; )
|
|
4135
4135
|
;
|
|
4136
|
-
W.strstart =
|
|
4136
|
+
W.strstart = P, W.lookahead = L - 1, Q(W);
|
|
4137
4137
|
}
|
|
4138
4138
|
return W.strstart += W.lookahead, W.block_start = W.strstart, W.insert = W.lookahead, W.lookahead = 0, W.match_length = W.prev_length = L - 1, W.match_available = 0, S.next_in = X, S.input = H, S.avail_in = Z, W.wrap = V, l;
|
|
4139
4139
|
}, i.deflateInfo = "pako deflate (from Nodeca project)";
|
|
@@ -4265,16 +4265,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4265
4265
|
C.lencode = w, C.lenbits = 9, C.distcode = R, C.distbits = 5;
|
|
4266
4266
|
}
|
|
4267
4267
|
function N(C, M, E, U) {
|
|
4268
|
-
var
|
|
4269
|
-
return q.window === null && (q.wsize = 1 << q.wbits, q.wnext = 0, q.whave = 0, q.window = new r.Buf8(q.wsize)), U >= q.wsize ? (r.arraySet(q.window, M, E - q.wsize, q.wsize, 0), q.wnext = 0, q.whave = q.wsize) : (U < (
|
|
4268
|
+
var ie, q = C.state;
|
|
4269
|
+
return q.window === null && (q.wsize = 1 << q.wbits, q.wnext = 0, q.whave = 0, q.window = new r.Buf8(q.wsize)), U >= q.wsize ? (r.arraySet(q.window, M, E - q.wsize, q.wsize, 0), q.wnext = 0, q.whave = q.wsize) : (U < (ie = q.wsize - q.wnext) && (ie = U), r.arraySet(q.window, M, E - U, ie, q.wnext), (U -= ie) ? (r.arraySet(q.window, M, E - U, U, 0), q.wnext = U, q.whave = q.wsize) : (q.wnext += ie, q.wnext === q.wsize && (q.wnext = 0), q.whave < q.wsize && (q.whave += ie))), 0;
|
|
4270
4270
|
}
|
|
4271
4271
|
i.inflateReset = y, i.inflateReset2 = A, i.inflateResetKeep = x, i.inflateInit = function(C) {
|
|
4272
4272
|
return I(C, 15);
|
|
4273
4273
|
}, i.inflateInit2 = I, i.inflate = function(C, M) {
|
|
4274
|
-
var E, U,
|
|
4274
|
+
var E, U, ie, q, oe, $, se, T, B, z, F, K, Q, pe, ce, be, we, Ae, Fe, Ce, S, J, W, P, k = 0, V = new r.Buf8(4), Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
4275
4275
|
if (!C || !C.state || !C.output || !C.input && C.avail_in !== 0)
|
|
4276
4276
|
return l;
|
|
4277
|
-
(E = C.state).mode === 12 && (E.mode = 13), oe = C.next_out,
|
|
4277
|
+
(E = C.state).mode === 12 && (E.mode = 13), oe = C.next_out, ie = C.output, se = C.avail_out, q = C.next_in, U = C.input, $ = C.avail_in, T = E.hold, B = E.bits, z = $, F = se, J = f;
|
|
4278
4278
|
e:
|
|
4279
4279
|
for (; ; )
|
|
4280
4280
|
switch (E.mode) {
|
|
@@ -4283,13 +4283,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4283
4283
|
E.mode = 13;
|
|
4284
4284
|
break;
|
|
4285
4285
|
}
|
|
4286
|
-
for (;
|
|
4286
|
+
for (; B < 16; ) {
|
|
4287
4287
|
if ($ === 0)
|
|
4288
4288
|
break e;
|
|
4289
|
-
$--, T += U[q++] <<
|
|
4289
|
+
$--, T += U[q++] << B, B += 8;
|
|
4290
4290
|
}
|
|
4291
4291
|
if (2 & E.wrap && T === 35615) {
|
|
4292
|
-
V[E.check = 0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0),
|
|
4292
|
+
V[E.check = 0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0), B = T = 0, E.mode = 2;
|
|
4293
4293
|
break;
|
|
4294
4294
|
}
|
|
4295
4295
|
if (E.flags = 0, E.head && (E.head.done = !1), !(1 & E.wrap) || (((255 & T) << 8) + (T >> 8)) % 31) {
|
|
@@ -4300,19 +4300,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4300
4300
|
C.msg = "unknown compression method", E.mode = 30;
|
|
4301
4301
|
break;
|
|
4302
4302
|
}
|
|
4303
|
-
if (
|
|
4303
|
+
if (B -= 4, S = 8 + (15 & (T >>>= 4)), E.wbits === 0)
|
|
4304
4304
|
E.wbits = S;
|
|
4305
4305
|
else if (S > E.wbits) {
|
|
4306
4306
|
C.msg = "invalid window size", E.mode = 30;
|
|
4307
4307
|
break;
|
|
4308
4308
|
}
|
|
4309
|
-
E.dmax = 1 << S, C.adler = E.check = 1, E.mode = 512 & T ? 10 : 12,
|
|
4309
|
+
E.dmax = 1 << S, C.adler = E.check = 1, E.mode = 512 & T ? 10 : 12, B = T = 0;
|
|
4310
4310
|
break;
|
|
4311
4311
|
case 2:
|
|
4312
|
-
for (;
|
|
4312
|
+
for (; B < 16; ) {
|
|
4313
4313
|
if ($ === 0)
|
|
4314
4314
|
break e;
|
|
4315
|
-
$--, T += U[q++] <<
|
|
4315
|
+
$--, T += U[q++] << B, B += 8;
|
|
4316
4316
|
}
|
|
4317
4317
|
if (E.flags = T, (255 & E.flags) != 8) {
|
|
4318
4318
|
C.msg = "unknown compression method", E.mode = 30;
|
|
@@ -4322,29 +4322,29 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4322
4322
|
C.msg = "unknown header flags set", E.mode = 30;
|
|
4323
4323
|
break;
|
|
4324
4324
|
}
|
|
4325
|
-
E.head && (E.head.text = T >> 8 & 1), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)),
|
|
4325
|
+
E.head && (E.head.text = T >> 8 & 1), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)), B = T = 0, E.mode = 3;
|
|
4326
4326
|
case 3:
|
|
4327
|
-
for (;
|
|
4327
|
+
for (; B < 32; ) {
|
|
4328
4328
|
if ($ === 0)
|
|
4329
4329
|
break e;
|
|
4330
|
-
$--, T += U[q++] <<
|
|
4330
|
+
$--, T += U[q++] << B, B += 8;
|
|
4331
4331
|
}
|
|
4332
|
-
E.head && (E.head.time = T), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, V[2] = T >>> 16 & 255, V[3] = T >>> 24 & 255, E.check = a(E.check, V, 4, 0)),
|
|
4332
|
+
E.head && (E.head.time = T), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, V[2] = T >>> 16 & 255, V[3] = T >>> 24 & 255, E.check = a(E.check, V, 4, 0)), B = T = 0, E.mode = 4;
|
|
4333
4333
|
case 4:
|
|
4334
|
-
for (;
|
|
4334
|
+
for (; B < 16; ) {
|
|
4335
4335
|
if ($ === 0)
|
|
4336
4336
|
break e;
|
|
4337
|
-
$--, T += U[q++] <<
|
|
4337
|
+
$--, T += U[q++] << B, B += 8;
|
|
4338
4338
|
}
|
|
4339
|
-
E.head && (E.head.xflags = 255 & T, E.head.os = T >> 8), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)),
|
|
4339
|
+
E.head && (E.head.xflags = 255 & T, E.head.os = T >> 8), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)), B = T = 0, E.mode = 5;
|
|
4340
4340
|
case 5:
|
|
4341
4341
|
if (1024 & E.flags) {
|
|
4342
|
-
for (;
|
|
4342
|
+
for (; B < 16; ) {
|
|
4343
4343
|
if ($ === 0)
|
|
4344
4344
|
break e;
|
|
4345
|
-
$--, T += U[q++] <<
|
|
4345
|
+
$--, T += U[q++] << B, B += 8;
|
|
4346
4346
|
}
|
|
4347
|
-
E.length = T, E.head && (E.head.extra_len = T), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)),
|
|
4347
|
+
E.length = T, E.head && (E.head.extra_len = T), 512 & E.flags && (V[0] = 255 & T, V[1] = T >>> 8 & 255, E.check = a(E.check, V, 2, 0)), B = T = 0;
|
|
4348
4348
|
} else
|
|
4349
4349
|
E.head && (E.head.extra = null);
|
|
4350
4350
|
E.mode = 6;
|
|
@@ -4376,51 +4376,51 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4376
4376
|
E.mode = 9;
|
|
4377
4377
|
case 9:
|
|
4378
4378
|
if (512 & E.flags) {
|
|
4379
|
-
for (;
|
|
4379
|
+
for (; B < 16; ) {
|
|
4380
4380
|
if ($ === 0)
|
|
4381
4381
|
break e;
|
|
4382
|
-
$--, T += U[q++] <<
|
|
4382
|
+
$--, T += U[q++] << B, B += 8;
|
|
4383
4383
|
}
|
|
4384
4384
|
if (T !== (65535 & E.check)) {
|
|
4385
4385
|
C.msg = "header crc mismatch", E.mode = 30;
|
|
4386
4386
|
break;
|
|
4387
4387
|
}
|
|
4388
|
-
|
|
4388
|
+
B = T = 0;
|
|
4389
4389
|
}
|
|
4390
4390
|
E.head && (E.head.hcrc = E.flags >> 9 & 1, E.head.done = !0), C.adler = E.check = 0, E.mode = 12;
|
|
4391
4391
|
break;
|
|
4392
4392
|
case 10:
|
|
4393
|
-
for (;
|
|
4393
|
+
for (; B < 32; ) {
|
|
4394
4394
|
if ($ === 0)
|
|
4395
4395
|
break e;
|
|
4396
|
-
$--, T += U[q++] <<
|
|
4396
|
+
$--, T += U[q++] << B, B += 8;
|
|
4397
4397
|
}
|
|
4398
|
-
C.adler = E.check = v(T),
|
|
4398
|
+
C.adler = E.check = v(T), B = T = 0, E.mode = 11;
|
|
4399
4399
|
case 11:
|
|
4400
4400
|
if (E.havedict === 0)
|
|
4401
|
-
return C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits =
|
|
4401
|
+
return C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits = B, 2;
|
|
4402
4402
|
C.adler = E.check = 1, E.mode = 12;
|
|
4403
4403
|
case 12:
|
|
4404
4404
|
if (M === 5 || M === 6)
|
|
4405
4405
|
break e;
|
|
4406
4406
|
case 13:
|
|
4407
4407
|
if (E.last) {
|
|
4408
|
-
T >>>= 7 &
|
|
4408
|
+
T >>>= 7 & B, B -= 7 & B, E.mode = 27;
|
|
4409
4409
|
break;
|
|
4410
4410
|
}
|
|
4411
|
-
for (;
|
|
4411
|
+
for (; B < 3; ) {
|
|
4412
4412
|
if ($ === 0)
|
|
4413
4413
|
break e;
|
|
4414
|
-
$--, T += U[q++] <<
|
|
4414
|
+
$--, T += U[q++] << B, B += 8;
|
|
4415
4415
|
}
|
|
4416
|
-
switch (E.last = 1 & T,
|
|
4416
|
+
switch (E.last = 1 & T, B -= 1, 3 & (T >>>= 1)) {
|
|
4417
4417
|
case 0:
|
|
4418
4418
|
E.mode = 14;
|
|
4419
4419
|
break;
|
|
4420
4420
|
case 1:
|
|
4421
4421
|
if (D(E), E.mode = 20, M !== 6)
|
|
4422
4422
|
break;
|
|
4423
|
-
T >>>= 2,
|
|
4423
|
+
T >>>= 2, B -= 2;
|
|
4424
4424
|
break e;
|
|
4425
4425
|
case 2:
|
|
4426
4426
|
E.mode = 17;
|
|
@@ -4428,19 +4428,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4428
4428
|
case 3:
|
|
4429
4429
|
C.msg = "invalid block type", E.mode = 30;
|
|
4430
4430
|
}
|
|
4431
|
-
T >>>= 2,
|
|
4431
|
+
T >>>= 2, B -= 2;
|
|
4432
4432
|
break;
|
|
4433
4433
|
case 14:
|
|
4434
|
-
for (T >>>= 7 &
|
|
4434
|
+
for (T >>>= 7 & B, B -= 7 & B; B < 32; ) {
|
|
4435
4435
|
if ($ === 0)
|
|
4436
4436
|
break e;
|
|
4437
|
-
$--, T += U[q++] <<
|
|
4437
|
+
$--, T += U[q++] << B, B += 8;
|
|
4438
4438
|
}
|
|
4439
4439
|
if ((65535 & T) != (T >>> 16 ^ 65535)) {
|
|
4440
4440
|
C.msg = "invalid stored block lengths", E.mode = 30;
|
|
4441
4441
|
break;
|
|
4442
4442
|
}
|
|
4443
|
-
if (E.length = 65535 & T,
|
|
4443
|
+
if (E.length = 65535 & T, B = T = 0, E.mode = 15, M === 6)
|
|
4444
4444
|
break e;
|
|
4445
4445
|
case 15:
|
|
4446
4446
|
E.mode = 16;
|
|
@@ -4448,30 +4448,30 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4448
4448
|
if (K = E.length) {
|
|
4449
4449
|
if ($ < K && (K = $), se < K && (K = se), K === 0)
|
|
4450
4450
|
break e;
|
|
4451
|
-
r.arraySet(
|
|
4451
|
+
r.arraySet(ie, U, q, K, oe), $ -= K, q += K, se -= K, oe += K, E.length -= K;
|
|
4452
4452
|
break;
|
|
4453
4453
|
}
|
|
4454
4454
|
E.mode = 12;
|
|
4455
4455
|
break;
|
|
4456
4456
|
case 17:
|
|
4457
|
-
for (;
|
|
4457
|
+
for (; B < 14; ) {
|
|
4458
4458
|
if ($ === 0)
|
|
4459
4459
|
break e;
|
|
4460
|
-
$--, T += U[q++] <<
|
|
4460
|
+
$--, T += U[q++] << B, B += 8;
|
|
4461
4461
|
}
|
|
4462
|
-
if (E.nlen = 257 + (31 & T), T >>>= 5,
|
|
4462
|
+
if (E.nlen = 257 + (31 & T), T >>>= 5, B -= 5, E.ndist = 1 + (31 & T), T >>>= 5, B -= 5, E.ncode = 4 + (15 & T), T >>>= 4, B -= 4, 286 < E.nlen || 30 < E.ndist) {
|
|
4463
4463
|
C.msg = "too many length or distance symbols", E.mode = 30;
|
|
4464
4464
|
break;
|
|
4465
4465
|
}
|
|
4466
4466
|
E.have = 0, E.mode = 18;
|
|
4467
4467
|
case 18:
|
|
4468
4468
|
for (; E.have < E.ncode; ) {
|
|
4469
|
-
for (;
|
|
4469
|
+
for (; B < 3; ) {
|
|
4470
4470
|
if ($ === 0)
|
|
4471
4471
|
break e;
|
|
4472
|
-
$--, T += U[q++] <<
|
|
4472
|
+
$--, T += U[q++] << B, B += 8;
|
|
4473
4473
|
}
|
|
4474
|
-
E.lens[Z[E.have++]] = 7 & T, T >>>= 3,
|
|
4474
|
+
E.lens[Z[E.have++]] = 7 & T, T >>>= 3, B -= 3;
|
|
4475
4475
|
}
|
|
4476
4476
|
for (; E.have < 19; )
|
|
4477
4477
|
E.lens[Z[E.have++]] = 0;
|
|
@@ -4482,39 +4482,39 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4482
4482
|
E.have = 0, E.mode = 19;
|
|
4483
4483
|
case 19:
|
|
4484
4484
|
for (; E.have < E.nlen + E.ndist; ) {
|
|
4485
|
-
for (; be = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <=
|
|
4485
|
+
for (; be = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <= B); ) {
|
|
4486
4486
|
if ($ === 0)
|
|
4487
4487
|
break e;
|
|
4488
|
-
$--, T += U[q++] <<
|
|
4488
|
+
$--, T += U[q++] << B, B += 8;
|
|
4489
4489
|
}
|
|
4490
4490
|
if (we < 16)
|
|
4491
|
-
T >>>= ce,
|
|
4491
|
+
T >>>= ce, B -= ce, E.lens[E.have++] = we;
|
|
4492
4492
|
else {
|
|
4493
4493
|
if (we === 16) {
|
|
4494
|
-
for (
|
|
4494
|
+
for (P = ce + 2; B < P; ) {
|
|
4495
4495
|
if ($ === 0)
|
|
4496
4496
|
break e;
|
|
4497
|
-
$--, T += U[q++] <<
|
|
4497
|
+
$--, T += U[q++] << B, B += 8;
|
|
4498
4498
|
}
|
|
4499
|
-
if (T >>>= ce,
|
|
4499
|
+
if (T >>>= ce, B -= ce, E.have === 0) {
|
|
4500
4500
|
C.msg = "invalid bit length repeat", E.mode = 30;
|
|
4501
4501
|
break;
|
|
4502
4502
|
}
|
|
4503
|
-
S = E.lens[E.have - 1], K = 3 + (3 & T), T >>>= 2,
|
|
4503
|
+
S = E.lens[E.have - 1], K = 3 + (3 & T), T >>>= 2, B -= 2;
|
|
4504
4504
|
} else if (we === 17) {
|
|
4505
|
-
for (
|
|
4505
|
+
for (P = ce + 3; B < P; ) {
|
|
4506
4506
|
if ($ === 0)
|
|
4507
4507
|
break e;
|
|
4508
|
-
$--, T += U[q++] <<
|
|
4508
|
+
$--, T += U[q++] << B, B += 8;
|
|
4509
4509
|
}
|
|
4510
|
-
|
|
4510
|
+
B -= ce, S = 0, K = 3 + (7 & (T >>>= ce)), T >>>= 3, B -= 3;
|
|
4511
4511
|
} else {
|
|
4512
|
-
for (
|
|
4512
|
+
for (P = ce + 7; B < P; ) {
|
|
4513
4513
|
if ($ === 0)
|
|
4514
4514
|
break e;
|
|
4515
|
-
$--, T += U[q++] <<
|
|
4515
|
+
$--, T += U[q++] << B, B += 8;
|
|
4516
4516
|
}
|
|
4517
|
-
|
|
4517
|
+
B -= ce, S = 0, K = 11 + (127 & (T >>>= ce)), T >>>= 7, B -= 7;
|
|
4518
4518
|
}
|
|
4519
4519
|
if (E.have + K > E.nlen + E.ndist) {
|
|
4520
4520
|
C.msg = "invalid bit length repeat", E.mode = 30;
|
|
@@ -4544,23 +4544,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4544
4544
|
E.mode = 21;
|
|
4545
4545
|
case 21:
|
|
4546
4546
|
if (6 <= $ && 258 <= se) {
|
|
4547
|
-
C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits =
|
|
4547
|
+
C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits = B, o(C, F), oe = C.next_out, ie = C.output, se = C.avail_out, q = C.next_in, U = C.input, $ = C.avail_in, T = E.hold, B = E.bits, E.mode === 12 && (E.back = -1);
|
|
4548
4548
|
break;
|
|
4549
4549
|
}
|
|
4550
|
-
for (E.back = 0; be = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <=
|
|
4550
|
+
for (E.back = 0; be = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <= B); ) {
|
|
4551
4551
|
if ($ === 0)
|
|
4552
4552
|
break e;
|
|
4553
|
-
$--, T += U[q++] <<
|
|
4553
|
+
$--, T += U[q++] << B, B += 8;
|
|
4554
4554
|
}
|
|
4555
4555
|
if (be && !(240 & be)) {
|
|
4556
|
-
for (Ae = ce, Fe = be, Ce = we; be = (k = E.lencode[Ce + ((T & (1 << Ae + Fe) - 1) >> Ae)]) >>> 16 & 255, we = 65535 & k, !(Ae + (ce = k >>> 24) <=
|
|
4556
|
+
for (Ae = ce, Fe = be, Ce = we; be = (k = E.lencode[Ce + ((T & (1 << Ae + Fe) - 1) >> Ae)]) >>> 16 & 255, we = 65535 & k, !(Ae + (ce = k >>> 24) <= B); ) {
|
|
4557
4557
|
if ($ === 0)
|
|
4558
4558
|
break e;
|
|
4559
|
-
$--, T += U[q++] <<
|
|
4559
|
+
$--, T += U[q++] << B, B += 8;
|
|
4560
4560
|
}
|
|
4561
|
-
T >>>= Ae,
|
|
4561
|
+
T >>>= Ae, B -= Ae, E.back += Ae;
|
|
4562
4562
|
}
|
|
4563
|
-
if (T >>>= ce,
|
|
4563
|
+
if (T >>>= ce, B -= ce, E.back += ce, E.length = we, be === 0) {
|
|
4564
4564
|
E.mode = 26;
|
|
4565
4565
|
break;
|
|
4566
4566
|
}
|
|
@@ -4575,41 +4575,41 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4575
4575
|
E.extra = 15 & be, E.mode = 22;
|
|
4576
4576
|
case 22:
|
|
4577
4577
|
if (E.extra) {
|
|
4578
|
-
for (
|
|
4578
|
+
for (P = E.extra; B < P; ) {
|
|
4579
4579
|
if ($ === 0)
|
|
4580
4580
|
break e;
|
|
4581
|
-
$--, T += U[q++] <<
|
|
4581
|
+
$--, T += U[q++] << B, B += 8;
|
|
4582
4582
|
}
|
|
4583
|
-
E.length += T & (1 << E.extra) - 1, T >>>= E.extra,
|
|
4583
|
+
E.length += T & (1 << E.extra) - 1, T >>>= E.extra, B -= E.extra, E.back += E.extra;
|
|
4584
4584
|
}
|
|
4585
4585
|
E.was = E.length, E.mode = 23;
|
|
4586
4586
|
case 23:
|
|
4587
|
-
for (; be = (k = E.distcode[T & (1 << E.distbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <=
|
|
4587
|
+
for (; be = (k = E.distcode[T & (1 << E.distbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <= B); ) {
|
|
4588
4588
|
if ($ === 0)
|
|
4589
4589
|
break e;
|
|
4590
|
-
$--, T += U[q++] <<
|
|
4590
|
+
$--, T += U[q++] << B, B += 8;
|
|
4591
4591
|
}
|
|
4592
4592
|
if (!(240 & be)) {
|
|
4593
|
-
for (Ae = ce, Fe = be, Ce = we; be = (k = E.distcode[Ce + ((T & (1 << Ae + Fe) - 1) >> Ae)]) >>> 16 & 255, we = 65535 & k, !(Ae + (ce = k >>> 24) <=
|
|
4593
|
+
for (Ae = ce, Fe = be, Ce = we; be = (k = E.distcode[Ce + ((T & (1 << Ae + Fe) - 1) >> Ae)]) >>> 16 & 255, we = 65535 & k, !(Ae + (ce = k >>> 24) <= B); ) {
|
|
4594
4594
|
if ($ === 0)
|
|
4595
4595
|
break e;
|
|
4596
|
-
$--, T += U[q++] <<
|
|
4596
|
+
$--, T += U[q++] << B, B += 8;
|
|
4597
4597
|
}
|
|
4598
|
-
T >>>= Ae,
|
|
4598
|
+
T >>>= Ae, B -= Ae, E.back += Ae;
|
|
4599
4599
|
}
|
|
4600
|
-
if (T >>>= ce,
|
|
4600
|
+
if (T >>>= ce, B -= ce, E.back += ce, 64 & be) {
|
|
4601
4601
|
C.msg = "invalid distance code", E.mode = 30;
|
|
4602
4602
|
break;
|
|
4603
4603
|
}
|
|
4604
4604
|
E.offset = we, E.extra = 15 & be, E.mode = 24;
|
|
4605
4605
|
case 24:
|
|
4606
4606
|
if (E.extra) {
|
|
4607
|
-
for (
|
|
4607
|
+
for (P = E.extra; B < P; ) {
|
|
4608
4608
|
if ($ === 0)
|
|
4609
4609
|
break e;
|
|
4610
|
-
$--, T += U[q++] <<
|
|
4610
|
+
$--, T += U[q++] << B, B += 8;
|
|
4611
4611
|
}
|
|
4612
|
-
E.offset += T & (1 << E.extra) - 1, T >>>= E.extra,
|
|
4612
|
+
E.offset += T & (1 << E.extra) - 1, T >>>= E.extra, B -= E.extra, E.back += E.extra;
|
|
4613
4613
|
}
|
|
4614
4614
|
if (E.offset > E.dmax) {
|
|
4615
4615
|
C.msg = "invalid distance too far back", E.mode = 30;
|
|
@@ -4626,42 +4626,42 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4626
4626
|
}
|
|
4627
4627
|
Q = K > E.wnext ? (K -= E.wnext, E.wsize - K) : E.wnext - K, K > E.length && (K = E.length), pe = E.window;
|
|
4628
4628
|
} else
|
|
4629
|
-
pe =
|
|
4630
|
-
for (se < K && (K = se), se -= K, E.length -= K;
|
|
4629
|
+
pe = ie, Q = oe - E.offset, K = E.length;
|
|
4630
|
+
for (se < K && (K = se), se -= K, E.length -= K; ie[oe++] = pe[Q++], --K; )
|
|
4631
4631
|
;
|
|
4632
4632
|
E.length === 0 && (E.mode = 21);
|
|
4633
4633
|
break;
|
|
4634
4634
|
case 26:
|
|
4635
4635
|
if (se === 0)
|
|
4636
4636
|
break e;
|
|
4637
|
-
|
|
4637
|
+
ie[oe++] = E.length, se--, E.mode = 21;
|
|
4638
4638
|
break;
|
|
4639
4639
|
case 27:
|
|
4640
4640
|
if (E.wrap) {
|
|
4641
|
-
for (;
|
|
4641
|
+
for (; B < 32; ) {
|
|
4642
4642
|
if ($ === 0)
|
|
4643
4643
|
break e;
|
|
4644
|
-
$--, T |= U[q++] <<
|
|
4644
|
+
$--, T |= U[q++] << B, B += 8;
|
|
4645
4645
|
}
|
|
4646
|
-
if (F -= se, C.total_out += F, E.total += F, F && (C.adler = E.check = E.flags ? a(E.check,
|
|
4646
|
+
if (F -= se, C.total_out += F, E.total += F, F && (C.adler = E.check = E.flags ? a(E.check, ie, F, oe - F) : n(E.check, ie, F, oe - F)), F = se, (E.flags ? T : v(T)) !== E.check) {
|
|
4647
4647
|
C.msg = "incorrect data check", E.mode = 30;
|
|
4648
4648
|
break;
|
|
4649
4649
|
}
|
|
4650
|
-
|
|
4650
|
+
B = T = 0;
|
|
4651
4651
|
}
|
|
4652
4652
|
E.mode = 28;
|
|
4653
4653
|
case 28:
|
|
4654
4654
|
if (E.wrap && E.flags) {
|
|
4655
|
-
for (;
|
|
4655
|
+
for (; B < 32; ) {
|
|
4656
4656
|
if ($ === 0)
|
|
4657
4657
|
break e;
|
|
4658
|
-
$--, T += U[q++] <<
|
|
4658
|
+
$--, T += U[q++] << B, B += 8;
|
|
4659
4659
|
}
|
|
4660
4660
|
if (T !== (4294967295 & E.total)) {
|
|
4661
4661
|
C.msg = "incorrect length check", E.mode = 30;
|
|
4662
4662
|
break;
|
|
4663
4663
|
}
|
|
4664
|
-
|
|
4664
|
+
B = T = 0;
|
|
4665
4665
|
}
|
|
4666
4666
|
E.mode = 29;
|
|
4667
4667
|
case 29:
|
|
@@ -4676,7 +4676,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4676
4676
|
default:
|
|
4677
4677
|
return l;
|
|
4678
4678
|
}
|
|
4679
|
-
return C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits =
|
|
4679
|
+
return C.next_out = oe, C.avail_out = se, C.next_in = q, C.avail_in = $, E.hold = T, E.bits = B, (E.wsize || F !== C.avail_out && E.mode < 30 && (E.mode < 27 || M !== 4)) && N(C, C.output, C.next_out, F - C.avail_out) ? (E.mode = 31, -4) : (z -= C.avail_in, F -= C.avail_out, C.total_in += z, C.total_out += F, E.total += F, E.wrap && F && (C.adler = E.check = E.flags ? a(E.check, ie, F, C.next_out - F) : n(E.check, ie, F, C.next_out - F)), C.data_type = E.bits + (E.last ? 64 : 0) + (E.mode === 12 ? 128 : 0) + (E.mode === 20 || E.mode === 15 ? 256 : 0), (z == 0 && F === 0 || M === 4) && J === f && (J = -5), J);
|
|
4680
4680
|
}, i.inflateEnd = function(C) {
|
|
4681
4681
|
if (!C || !C.state)
|
|
4682
4682
|
return l;
|
|
@@ -4692,18 +4692,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4692
4692
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, i) {
|
|
4693
4693
|
var r = e("../utils/common"), n = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], a = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], o = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], u = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
4694
4694
|
t.exports = function(h, m, f, l, p, d, g, v) {
|
|
4695
|
-
var b, x, y, A, I, w, R, L, D, N = v.bits, C = 0, M = 0, E = 0, U = 0,
|
|
4695
|
+
var b, x, y, A, I, w, R, L, D, N = v.bits, C = 0, M = 0, E = 0, U = 0, ie = 0, q = 0, oe = 0, $ = 0, se = 0, T = 0, B = null, z = 0, F = new r.Buf16(16), K = new r.Buf16(16), Q = null, pe = 0;
|
|
4696
4696
|
for (C = 0; C <= 15; C++)
|
|
4697
4697
|
F[C] = 0;
|
|
4698
4698
|
for (M = 0; M < l; M++)
|
|
4699
4699
|
F[m[f + M]]++;
|
|
4700
|
-
for (
|
|
4700
|
+
for (ie = N, U = 15; 1 <= U && F[U] === 0; U--)
|
|
4701
4701
|
;
|
|
4702
|
-
if (U <
|
|
4702
|
+
if (U < ie && (ie = U), U === 0)
|
|
4703
4703
|
return p[d++] = 20971520, p[d++] = 20971520, v.bits = 1, 0;
|
|
4704
4704
|
for (E = 1; E < U && F[E] === 0; E++)
|
|
4705
4705
|
;
|
|
4706
|
-
for (
|
|
4706
|
+
for (ie < E && (ie = E), C = $ = 1; C <= 15; C++)
|
|
4707
4707
|
if ($ <<= 1, ($ -= F[C]) < 0)
|
|
4708
4708
|
return -1;
|
|
4709
4709
|
if (0 < $ && (h === 0 || U !== 1))
|
|
@@ -4712,10 +4712,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4712
4712
|
K[C + 1] = K[C] + F[C];
|
|
4713
4713
|
for (M = 0; M < l; M++)
|
|
4714
4714
|
m[f + M] !== 0 && (g[K[m[f + M]]++] = M);
|
|
4715
|
-
if (w = h === 0 ? (
|
|
4715
|
+
if (w = h === 0 ? (B = Q = g, 19) : h === 1 ? (B = n, z -= 257, Q = a, pe -= 257, 256) : (B = o, Q = u, -1), C = E, I = d, oe = M = T = 0, y = -1, A = (se = 1 << (q = ie)) - 1, h === 1 && 852 < se || h === 2 && 592 < se)
|
|
4716
4716
|
return 1;
|
|
4717
4717
|
for (; ; ) {
|
|
4718
|
-
for (R = C - oe, D = g[M] < w ? (L = 0, g[M]) : g[M] > w ? (L = Q[pe + g[M]],
|
|
4718
|
+
for (R = C - oe, D = g[M] < w ? (L = 0, g[M]) : g[M] > w ? (L = Q[pe + g[M]], B[z + g[M]]) : (L = 96, 0), b = 1 << C - oe, E = x = 1 << q; p[I + (T >> oe) + (x -= b)] = R << 24 | L << 16 | D | 0, x !== 0; )
|
|
4719
4719
|
;
|
|
4720
4720
|
for (b = 1 << C - 1; T & b; )
|
|
4721
4721
|
b >>= 1;
|
|
@@ -4724,15 +4724,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4724
4724
|
break;
|
|
4725
4725
|
C = m[f + g[M]];
|
|
4726
4726
|
}
|
|
4727
|
-
if (
|
|
4728
|
-
for (oe === 0 && (oe =
|
|
4727
|
+
if (ie < C && (T & A) !== y) {
|
|
4728
|
+
for (oe === 0 && (oe = ie), I += E, $ = 1 << (q = C - oe); q + oe < U && !(($ -= F[q + oe]) <= 0); )
|
|
4729
4729
|
q++, $ <<= 1;
|
|
4730
4730
|
if (se += 1 << q, h === 1 && 852 < se || h === 2 && 592 < se)
|
|
4731
4731
|
return 1;
|
|
4732
|
-
p[y = T & A] =
|
|
4732
|
+
p[y = T & A] = ie << 24 | q << 16 | I - d | 0;
|
|
4733
4733
|
}
|
|
4734
4734
|
}
|
|
4735
|
-
return T !== 0 && (p[I + T] = C - oe << 24 | 64 << 16 | 0), v.bits =
|
|
4735
|
+
return T !== 0 && (p[I + T] = C - oe << 24 | 64 << 16 | 0), v.bits = ie, 0;
|
|
4736
4736
|
};
|
|
4737
4737
|
}, { "../utils/common": 41 }], 51: [function(e, t, i) {
|
|
4738
4738
|
t.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
@@ -4752,14 +4752,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4752
4752
|
o(E);
|
|
4753
4753
|
var U = new Array(h);
|
|
4754
4754
|
o(U);
|
|
4755
|
-
var
|
|
4755
|
+
var ie, q, oe, $ = new Array(l);
|
|
4756
4756
|
function se(k, V, Z, X, H) {
|
|
4757
4757
|
this.static_tree = k, this.extra_bits = V, this.extra_base = Z, this.elems = X, this.max_length = H, this.has_stree = k && k.length;
|
|
4758
4758
|
}
|
|
4759
4759
|
function T(k, V) {
|
|
4760
4760
|
this.dyn_tree = k, this.max_code = 0, this.stat_desc = V;
|
|
4761
4761
|
}
|
|
4762
|
-
function
|
|
4762
|
+
function B(k) {
|
|
4763
4763
|
return k < 256 ? M[k] : M[256 + (k >>> 7)];
|
|
4764
4764
|
}
|
|
4765
4765
|
function z(k, V) {
|
|
@@ -4781,8 +4781,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4781
4781
|
for (X = 1; X <= g; X++)
|
|
4782
4782
|
ee[X] = he = he + Z[X - 1] << 1;
|
|
4783
4783
|
for (H = 0; H <= V; H++) {
|
|
4784
|
-
var
|
|
4785
|
-
|
|
4784
|
+
var re = k[2 * H + 1];
|
|
4785
|
+
re !== 0 && (k[2 * H] = Q(ee[re]++, re));
|
|
4786
4786
|
}
|
|
4787
4787
|
}
|
|
4788
4788
|
function ce(k) {
|
|
@@ -4808,62 +4808,62 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4808
4808
|
k.heap[Z] = X;
|
|
4809
4809
|
}
|
|
4810
4810
|
function Fe(k, V, Z) {
|
|
4811
|
-
var X, H, ee, he,
|
|
4811
|
+
var X, H, ee, he, re = 0;
|
|
4812
4812
|
if (k.last_lit !== 0)
|
|
4813
|
-
for (; X = k.pending_buf[k.d_buf + 2 *
|
|
4813
|
+
for (; X = k.pending_buf[k.d_buf + 2 * re] << 8 | k.pending_buf[k.d_buf + 2 * re + 1], H = k.pending_buf[k.l_buf + re], re++, X === 0 ? K(k, H, V) : (K(k, (ee = E[H]) + m + 1, V), (he = w[ee]) !== 0 && F(k, H -= U[ee], he), K(k, ee = B(--X), Z), (he = R[ee]) !== 0 && F(k, X -= $[ee], he)), re < k.last_lit; )
|
|
4814
4814
|
;
|
|
4815
4815
|
K(k, x, V);
|
|
4816
4816
|
}
|
|
4817
4817
|
function Ce(k, V) {
|
|
4818
|
-
var Z, X, H, ee = V.dyn_tree, he = V.stat_desc.static_tree,
|
|
4818
|
+
var Z, X, H, ee = V.dyn_tree, he = V.stat_desc.static_tree, re = V.stat_desc.has_stree, fe = V.stat_desc.elems, _e = -1;
|
|
4819
4819
|
for (k.heap_len = 0, k.heap_max = d, Z = 0; Z < fe; Z++)
|
|
4820
4820
|
ee[2 * Z] !== 0 ? (k.heap[++k.heap_len] = _e = Z, k.depth[Z] = 0) : ee[2 * Z + 1] = 0;
|
|
4821
4821
|
for (; k.heap_len < 2; )
|
|
4822
|
-
ee[2 * (H = k.heap[++k.heap_len] = _e < 2 ? ++_e : 0)] = 1, k.depth[H] = 0, k.opt_len--,
|
|
4822
|
+
ee[2 * (H = k.heap[++k.heap_len] = _e < 2 ? ++_e : 0)] = 1, k.depth[H] = 0, k.opt_len--, re && (k.static_len -= he[2 * H + 1]);
|
|
4823
4823
|
for (V.max_code = _e, Z = k.heap_len >> 1; 1 <= Z; Z--)
|
|
4824
4824
|
Ae(k, ee, Z);
|
|
4825
4825
|
for (H = fe; Z = k.heap[1], k.heap[1] = k.heap[k.heap_len--], Ae(k, ee, 1), X = k.heap[1], k.heap[--k.heap_max] = Z, k.heap[--k.heap_max] = X, ee[2 * H] = ee[2 * Z] + ee[2 * X], k.depth[H] = (k.depth[Z] >= k.depth[X] ? k.depth[Z] : k.depth[X]) + 1, ee[2 * Z + 1] = ee[2 * X + 1] = H, k.heap[1] = H++, Ae(k, ee, 1), 2 <= k.heap_len; )
|
|
4826
4826
|
;
|
|
4827
4827
|
k.heap[--k.heap_max] = k.heap[1], function(xe, Ke) {
|
|
4828
|
-
var mt, Me, it,
|
|
4829
|
-
for (
|
|
4830
|
-
xe.bl_count[
|
|
4828
|
+
var mt, Me, it, Pe, gt, $t, lt = Ke.dyn_tree, vi = Ke.max_code, xi = Ke.stat_desc.static_tree, ji = Ke.stat_desc.has_stree, Si = Ke.stat_desc.extra_bits, _i = Ke.stat_desc.extra_base, Et = Ke.stat_desc.max_length, qt = 0;
|
|
4829
|
+
for (Pe = 0; Pe <= g; Pe++)
|
|
4830
|
+
xe.bl_count[Pe] = 0;
|
|
4831
4831
|
for (lt[2 * xe.heap[xe.heap_max] + 1] = 0, mt = xe.heap_max + 1; mt < d; mt++)
|
|
4832
|
-
Et < (
|
|
4832
|
+
Et < (Pe = lt[2 * lt[2 * (Me = xe.heap[mt]) + 1] + 1] + 1) && (Pe = Et, qt++), lt[2 * Me + 1] = Pe, vi < Me || (xe.bl_count[Pe]++, gt = 0, _i <= Me && (gt = Si[Me - _i]), $t = lt[2 * Me], xe.opt_len += $t * (Pe + gt), ji && (xe.static_len += $t * (xi[2 * Me + 1] + gt)));
|
|
4833
4833
|
if (qt !== 0) {
|
|
4834
4834
|
do {
|
|
4835
|
-
for (
|
|
4836
|
-
|
|
4837
|
-
xe.bl_count[
|
|
4835
|
+
for (Pe = Et - 1; xe.bl_count[Pe] === 0; )
|
|
4836
|
+
Pe--;
|
|
4837
|
+
xe.bl_count[Pe]--, xe.bl_count[Pe + 1] += 2, xe.bl_count[Et]--, qt -= 2;
|
|
4838
4838
|
} while (0 < qt);
|
|
4839
|
-
for (
|
|
4840
|
-
for (Me = xe.bl_count[
|
|
4841
|
-
vi < (it = xe.heap[--mt]) || (lt[2 * it + 1] !==
|
|
4839
|
+
for (Pe = Et; Pe !== 0; Pe--)
|
|
4840
|
+
for (Me = xe.bl_count[Pe]; Me !== 0; )
|
|
4841
|
+
vi < (it = xe.heap[--mt]) || (lt[2 * it + 1] !== Pe && (xe.opt_len += (Pe - lt[2 * it + 1]) * lt[2 * it], lt[2 * it + 1] = Pe), Me--);
|
|
4842
4842
|
}
|
|
4843
4843
|
}(k, V), pe(ee, _e, k.bl_count);
|
|
4844
4844
|
}
|
|
4845
4845
|
function S(k, V, Z) {
|
|
4846
|
-
var X, H, ee = -1, he = V[1],
|
|
4846
|
+
var X, H, ee = -1, he = V[1], re = 0, fe = 7, _e = 4;
|
|
4847
4847
|
for (he === 0 && (fe = 138, _e = 3), V[2 * (Z + 1) + 1] = 65535, X = 0; X <= Z; X++)
|
|
4848
|
-
H = he, he = V[2 * (X + 1) + 1], ++
|
|
4848
|
+
H = he, he = V[2 * (X + 1) + 1], ++re < fe && H === he || (re < _e ? k.bl_tree[2 * H] += re : H !== 0 ? (H !== ee && k.bl_tree[2 * H]++, k.bl_tree[2 * y]++) : re <= 10 ? k.bl_tree[2 * A]++ : k.bl_tree[2 * I]++, ee = H, _e = (re = 0) === he ? (fe = 138, 3) : H === he ? (fe = 6, 3) : (fe = 7, 4));
|
|
4849
4849
|
}
|
|
4850
4850
|
function J(k, V, Z) {
|
|
4851
|
-
var X, H, ee = -1, he = V[1],
|
|
4851
|
+
var X, H, ee = -1, he = V[1], re = 0, fe = 7, _e = 4;
|
|
4852
4852
|
for (he === 0 && (fe = 138, _e = 3), X = 0; X <= Z; X++)
|
|
4853
|
-
if (H = he, he = V[2 * (X + 1) + 1], !(++
|
|
4854
|
-
if (
|
|
4855
|
-
for (; K(k, H, k.bl_tree), --
|
|
4853
|
+
if (H = he, he = V[2 * (X + 1) + 1], !(++re < fe && H === he)) {
|
|
4854
|
+
if (re < _e)
|
|
4855
|
+
for (; K(k, H, k.bl_tree), --re != 0; )
|
|
4856
4856
|
;
|
|
4857
4857
|
else
|
|
4858
|
-
H !== 0 ? (H !== ee && (K(k, H, k.bl_tree),
|
|
4859
|
-
ee = H, _e = (
|
|
4858
|
+
H !== 0 ? (H !== ee && (K(k, H, k.bl_tree), re--), K(k, y, k.bl_tree), F(k, re - 3, 2)) : re <= 10 ? (K(k, A, k.bl_tree), F(k, re - 3, 3)) : (K(k, I, k.bl_tree), F(k, re - 11, 7));
|
|
4859
|
+
ee = H, _e = (re = 0) === he ? (fe = 138, 3) : H === he ? (fe = 6, 3) : (fe = 7, 4);
|
|
4860
4860
|
}
|
|
4861
4861
|
}
|
|
4862
4862
|
o($);
|
|
4863
4863
|
var W = !1;
|
|
4864
|
-
function
|
|
4865
|
-
F(k, (u << 1) + (X ? 1 : 0), 3), function(H, ee, he,
|
|
4866
|
-
be(H),
|
|
4864
|
+
function P(k, V, Z, X) {
|
|
4865
|
+
F(k, (u << 1) + (X ? 1 : 0), 3), function(H, ee, he, re) {
|
|
4866
|
+
be(H), re && (z(H, he), z(H, ~he)), r.arraySet(H.pending_buf, H.window, ee, he, H.pending), H.pending += he;
|
|
4867
4867
|
}(k, V, Z, !0);
|
|
4868
4868
|
}
|
|
4869
4869
|
i._tr_init = function(k) {
|
|
@@ -4890,34 +4890,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4890
4890
|
N[2 * V + 1] = 8, V++, he[8]++;
|
|
4891
4891
|
for (pe(N, f + 1, he), V = 0; V < l; V++)
|
|
4892
4892
|
C[2 * V + 1] = 5, C[2 * V] = Q(V, 5);
|
|
4893
|
-
|
|
4894
|
-
}(), W = !0), k.l_desc = new T(k.dyn_ltree,
|
|
4895
|
-
}, i._tr_stored_block =
|
|
4893
|
+
ie = new se(N, w, m + 1, f, g), q = new se(C, R, 0, l, g), oe = new se(new Array(0), L, 0, p, b);
|
|
4894
|
+
}(), W = !0), k.l_desc = new T(k.dyn_ltree, ie), k.d_desc = new T(k.dyn_dtree, q), k.bl_desc = new T(k.bl_tree, oe), k.bi_buf = 0, k.bi_valid = 0, ce(k);
|
|
4895
|
+
}, i._tr_stored_block = P, i._tr_flush_block = function(k, V, Z, X) {
|
|
4896
4896
|
var H, ee, he = 0;
|
|
4897
|
-
0 < k.level ? (k.strm.data_type === 2 && (k.strm.data_type = function(
|
|
4897
|
+
0 < k.level ? (k.strm.data_type === 2 && (k.strm.data_type = function(re) {
|
|
4898
4898
|
var fe, _e = 4093624447;
|
|
4899
4899
|
for (fe = 0; fe <= 31; fe++, _e >>>= 1)
|
|
4900
|
-
if (1 & _e &&
|
|
4900
|
+
if (1 & _e && re.dyn_ltree[2 * fe] !== 0)
|
|
4901
4901
|
return n;
|
|
4902
|
-
if (
|
|
4902
|
+
if (re.dyn_ltree[18] !== 0 || re.dyn_ltree[20] !== 0 || re.dyn_ltree[26] !== 0)
|
|
4903
4903
|
return a;
|
|
4904
4904
|
for (fe = 32; fe < m; fe++)
|
|
4905
|
-
if (
|
|
4905
|
+
if (re.dyn_ltree[2 * fe] !== 0)
|
|
4906
4906
|
return a;
|
|
4907
4907
|
return n;
|
|
4908
|
-
}(k)), Ce(k, k.l_desc), Ce(k, k.d_desc), he = function(
|
|
4908
|
+
}(k)), Ce(k, k.l_desc), Ce(k, k.d_desc), he = function(re) {
|
|
4909
4909
|
var fe;
|
|
4910
|
-
for (S(
|
|
4910
|
+
for (S(re, re.dyn_ltree, re.l_desc.max_code), S(re, re.dyn_dtree, re.d_desc.max_code), Ce(re, re.bl_desc), fe = p - 1; 3 <= fe && re.bl_tree[2 * D[fe] + 1] === 0; fe--)
|
|
4911
4911
|
;
|
|
4912
|
-
return
|
|
4913
|
-
}(k), H = k.opt_len + 3 + 7 >>> 3, (ee = k.static_len + 3 + 7 >>> 3) <= H && (H = ee)) : H = ee = Z + 5, Z + 4 <= H && V !== -1 ?
|
|
4912
|
+
return re.opt_len += 3 * (fe + 1) + 5 + 5 + 4, fe;
|
|
4913
|
+
}(k), H = k.opt_len + 3 + 7 >>> 3, (ee = k.static_len + 3 + 7 >>> 3) <= H && (H = ee)) : H = ee = Z + 5, Z + 4 <= H && V !== -1 ? P(k, V, Z, X) : k.strategy === 4 || ee === H ? (F(k, 2 + (X ? 1 : 0), 3), Fe(k, N, C)) : (F(k, 4 + (X ? 1 : 0), 3), function(re, fe, _e, xe) {
|
|
4914
4914
|
var Ke;
|
|
4915
|
-
for (F(
|
|
4916
|
-
F(
|
|
4917
|
-
J(
|
|
4915
|
+
for (F(re, fe - 257, 5), F(re, _e - 1, 5), F(re, xe - 4, 4), Ke = 0; Ke < xe; Ke++)
|
|
4916
|
+
F(re, re.bl_tree[2 * D[Ke] + 1], 3);
|
|
4917
|
+
J(re, re.dyn_ltree, fe - 1), J(re, re.dyn_dtree, _e - 1);
|
|
4918
4918
|
}(k, k.l_desc.max_code + 1, k.d_desc.max_code + 1, he + 1), Fe(k, k.dyn_ltree, k.dyn_dtree)), ce(k), X && be(k);
|
|
4919
4919
|
}, i._tr_tally = function(k, V, Z) {
|
|
4920
|
-
return k.pending_buf[k.d_buf + 2 * k.last_lit] = V >>> 8 & 255, k.pending_buf[k.d_buf + 2 * k.last_lit + 1] = 255 & V, k.pending_buf[k.l_buf + k.last_lit] = 255 & Z, k.last_lit++, V === 0 ? k.dyn_ltree[2 * Z]++ : (k.matches++, V--, k.dyn_ltree[2 * (E[Z] + m + 1)]++, k.dyn_dtree[2 *
|
|
4920
|
+
return k.pending_buf[k.d_buf + 2 * k.last_lit] = V >>> 8 & 255, k.pending_buf[k.d_buf + 2 * k.last_lit + 1] = 255 & V, k.pending_buf[k.l_buf + k.last_lit] = 255 & Z, k.last_lit++, V === 0 ? k.dyn_ltree[2 * Z]++ : (k.matches++, V--, k.dyn_ltree[2 * (E[Z] + m + 1)]++, k.dyn_dtree[2 * B(V)]++), k.last_lit === k.lit_bufsize - 1;
|
|
4921
4921
|
}, i._tr_align = function(k) {
|
|
4922
4922
|
F(k, 2, 3), K(k, x, N), function(V) {
|
|
4923
4923
|
V.bi_valid === 16 ? (z(V, V.bi_buf), V.bi_buf = 0, V.bi_valid = 0) : 8 <= V.bi_valid && (V.pending_buf[V.pending++] = 255 & V.bi_buf, V.bi_buf >>= 8, V.bi_valid -= 8);
|
|
@@ -5027,7 +5027,7 @@ function Wo() {
|
|
|
5027
5027
|
IDBCursor.prototype.continuePrimaryKey
|
|
5028
5028
|
]);
|
|
5029
5029
|
}
|
|
5030
|
-
const Zr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(),
|
|
5030
|
+
const Zr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap();
|
|
5031
5031
|
function Ko(s) {
|
|
5032
5032
|
const c = new Promise((e, t) => {
|
|
5033
5033
|
const i = () => {
|
|
@@ -5039,7 +5039,7 @@ function Ko(s) {
|
|
|
5039
5039
|
};
|
|
5040
5040
|
s.addEventListener("success", r), s.addEventListener("error", n);
|
|
5041
5041
|
});
|
|
5042
|
-
return
|
|
5042
|
+
return Pi.set(c, s), c;
|
|
5043
5043
|
}
|
|
5044
5044
|
function $o(s) {
|
|
5045
5045
|
if (Zr.has(s))
|
|
@@ -5092,9 +5092,9 @@ function Ut(s) {
|
|
|
5092
5092
|
if (or.has(s))
|
|
5093
5093
|
return or.get(s);
|
|
5094
5094
|
const c = Go(s);
|
|
5095
|
-
return c !== s && (or.set(s, c),
|
|
5095
|
+
return c !== s && (or.set(s, c), Pi.set(c, s)), c;
|
|
5096
5096
|
}
|
|
5097
|
-
const Qr = (s) =>
|
|
5097
|
+
const Qr = (s) => Pi.get(s);
|
|
5098
5098
|
function Jo(s, c, { blocked: e, upgrade: t, blocking: i, terminated: r } = {}) {
|
|
5099
5099
|
const n = indexedDB.open(s, c), a = Ut(n);
|
|
5100
5100
|
return t && n.addEventListener("upgradeneeded", (o) => {
|
|
@@ -5154,7 +5154,7 @@ function ec(...s) {
|
|
|
5154
5154
|
return;
|
|
5155
5155
|
c = c;
|
|
5156
5156
|
const e = new Proxy(c, Qo);
|
|
5157
|
-
for (Ca.set(e, c),
|
|
5157
|
+
for (Ca.set(e, c), Pi.set(e, Qr(c)); c; )
|
|
5158
5158
|
yield e, c = yield new Ei(es.get(e) || c.continue()), es.delete(e);
|
|
5159
5159
|
});
|
|
5160
5160
|
}
|
|
@@ -6236,8 +6236,8 @@ function Kt() {
|
|
|
6236
6236
|
var b = g + v, x = d[b];
|
|
6237
6237
|
d[b] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
6238
6238
|
}
|
|
6239
|
-
var y = this._hash.words, A = d[g + 0], I = d[g + 1], w = d[g + 2], R = d[g + 3], L = d[g + 4], D = d[g + 5], N = d[g + 6], C = d[g + 7], M = d[g + 8], E = d[g + 9], U = d[g + 10],
|
|
6240
|
-
T = m(T,
|
|
6239
|
+
var y = this._hash.words, A = d[g + 0], I = d[g + 1], w = d[g + 2], R = d[g + 3], L = d[g + 4], D = d[g + 5], N = d[g + 6], C = d[g + 7], M = d[g + 8], E = d[g + 9], U = d[g + 10], ie = d[g + 11], q = d[g + 12], oe = d[g + 13], $ = d[g + 14], se = d[g + 15], T = y[0], B = y[1], z = y[2], F = y[3];
|
|
6240
|
+
T = m(T, B, z, F, A, 7, u[0]), F = m(F, T, B, z, I, 12, u[1]), z = m(z, F, T, B, w, 17, u[2]), B = m(B, z, F, T, R, 22, u[3]), T = m(T, B, z, F, L, 7, u[4]), F = m(F, T, B, z, D, 12, u[5]), z = m(z, F, T, B, N, 17, u[6]), B = m(B, z, F, T, C, 22, u[7]), T = m(T, B, z, F, M, 7, u[8]), F = m(F, T, B, z, E, 12, u[9]), z = m(z, F, T, B, U, 17, u[10]), B = m(B, z, F, T, ie, 22, u[11]), T = m(T, B, z, F, q, 7, u[12]), F = m(F, T, B, z, oe, 12, u[13]), z = m(z, F, T, B, $, 17, u[14]), B = m(B, z, F, T, se, 22, u[15]), T = f(T, B, z, F, I, 5, u[16]), F = f(F, T, B, z, N, 9, u[17]), z = f(z, F, T, B, ie, 14, u[18]), B = f(B, z, F, T, A, 20, u[19]), T = f(T, B, z, F, D, 5, u[20]), F = f(F, T, B, z, U, 9, u[21]), z = f(z, F, T, B, se, 14, u[22]), B = f(B, z, F, T, L, 20, u[23]), T = f(T, B, z, F, E, 5, u[24]), F = f(F, T, B, z, $, 9, u[25]), z = f(z, F, T, B, R, 14, u[26]), B = f(B, z, F, T, M, 20, u[27]), T = f(T, B, z, F, oe, 5, u[28]), F = f(F, T, B, z, w, 9, u[29]), z = f(z, F, T, B, C, 14, u[30]), B = f(B, z, F, T, q, 20, u[31]), T = l(T, B, z, F, D, 4, u[32]), F = l(F, T, B, z, M, 11, u[33]), z = l(z, F, T, B, ie, 16, u[34]), B = l(B, z, F, T, $, 23, u[35]), T = l(T, B, z, F, I, 4, u[36]), F = l(F, T, B, z, L, 11, u[37]), z = l(z, F, T, B, C, 16, u[38]), B = l(B, z, F, T, U, 23, u[39]), T = l(T, B, z, F, oe, 4, u[40]), F = l(F, T, B, z, A, 11, u[41]), z = l(z, F, T, B, R, 16, u[42]), B = l(B, z, F, T, N, 23, u[43]), T = l(T, B, z, F, E, 4, u[44]), F = l(F, T, B, z, q, 11, u[45]), z = l(z, F, T, B, se, 16, u[46]), B = l(B, z, F, T, w, 23, u[47]), T = p(T, B, z, F, A, 6, u[48]), F = p(F, T, B, z, C, 10, u[49]), z = p(z, F, T, B, $, 15, u[50]), B = p(B, z, F, T, D, 21, u[51]), T = p(T, B, z, F, q, 6, u[52]), F = p(F, T, B, z, R, 10, u[53]), z = p(z, F, T, B, U, 15, u[54]), B = p(B, z, F, T, I, 21, u[55]), T = p(T, B, z, F, M, 6, u[56]), F = p(F, T, B, z, se, 10, u[57]), z = p(z, F, T, B, N, 15, u[58]), B = p(B, z, F, T, oe, 21, u[59]), T = p(T, B, z, F, L, 6, u[60]), F = p(F, T, B, z, ie, 10, u[61]), z = p(z, F, T, B, w, 15, u[62]), B = p(B, z, F, T, E, 21, u[63]), y[0] = y[0] + T | 0, y[1] = y[1] + B | 0, y[2] = y[2] + z | 0, y[3] = y[3] + F | 0;
|
|
6241
6241
|
},
|
|
6242
6242
|
_doFinalize: function() {
|
|
6243
6243
|
var d = this._data, g = d.words, v = this._nDataBytes * 8, b = d.sigBytes * 8;
|
|
@@ -6353,7 +6353,7 @@ function ls() {
|
|
|
6353
6353
|
var L = m[R - 15], D = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, N = m[R - 2], C = (N << 15 | N >>> 17) ^ (N << 13 | N >>> 19) ^ N >>> 10;
|
|
6354
6354
|
m[R] = D + m[R - 7] + C + m[R - 16];
|
|
6355
6355
|
}
|
|
6356
|
-
var M = y & A ^ ~y & I, E = g & v ^ g & b ^ v & b, U = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22),
|
|
6356
|
+
var M = y & A ^ ~y & I, E = g & v ^ g & b ^ v & b, U = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22), ie = (y << 26 | y >>> 6) ^ (y << 21 | y >>> 11) ^ (y << 7 | y >>> 25), q = w + ie + M + h[R] + m[R], oe = U + E;
|
|
6357
6357
|
w = I, I = A, A = y, y = x + q | 0, x = b, b = v, v = g, g = q + oe | 0;
|
|
6358
6358
|
}
|
|
6359
6359
|
d[0] = d[0] + g | 0, d[1] = d[1] + v | 0, d[2] = d[2] + b | 0, d[3] = d[3] + x | 0, d[4] = d[4] + y | 0, d[5] = d[5] + A | 0, d[6] = d[6] + I | 0, d[7] = d[7] + w | 0;
|
|
@@ -6513,18 +6513,18 @@ function Da() {
|
|
|
6513
6513
|
]);
|
|
6514
6514
|
},
|
|
6515
6515
|
_doProcessBlock: function(p, d) {
|
|
6516
|
-
for (var g = this._hash.words, v = g[0], b = g[1], x = g[2], y = g[3], A = g[4], I = g[5], w = g[6], R = g[7], L = v.high, D = v.low, N = b.high, C = b.low, M = x.high, E = x.low, U = y.high,
|
|
6516
|
+
for (var g = this._hash.words, v = g[0], b = g[1], x = g[2], y = g[3], A = g[4], I = g[5], w = g[6], R = g[7], L = v.high, D = v.low, N = b.high, C = b.low, M = x.high, E = x.low, U = y.high, ie = y.low, q = A.high, oe = A.low, $ = I.high, se = I.low, T = w.high, B = w.low, z = R.high, F = R.low, K = L, Q = D, pe = N, ce = C, be = M, we = E, Ae = U, Fe = ie, Ce = q, S = oe, J = $, W = se, P = T, k = B, V = z, Z = F, X = 0; X < 80; X++) {
|
|
6517
6517
|
var H, ee, he = f[X];
|
|
6518
6518
|
if (X < 16)
|
|
6519
6519
|
ee = he.high = p[d + X * 2] | 0, H = he.low = p[d + X * 2 + 1] | 0;
|
|
6520
6520
|
else {
|
|
6521
|
-
var
|
|
6522
|
-
H = Ke + vi, ee = xe + lt + (H >>> 0 < Ke >>> 0 ? 1 : 0), H = H + gt, ee = ee +
|
|
6521
|
+
var re = f[X - 15], fe = re.high, _e = re.low, xe = (fe >>> 1 | _e << 31) ^ (fe >>> 8 | _e << 24) ^ fe >>> 7, Ke = (_e >>> 1 | fe << 31) ^ (_e >>> 8 | fe << 24) ^ (_e >>> 7 | fe << 25), mt = f[X - 2], Me = mt.high, it = mt.low, Pe = (Me >>> 19 | it << 13) ^ (Me << 3 | it >>> 29) ^ Me >>> 6, gt = (it >>> 19 | Me << 13) ^ (it << 3 | Me >>> 29) ^ (it >>> 6 | Me << 26), $t = f[X - 7], lt = $t.high, vi = $t.low, xi = f[X - 16], ji = xi.high, Si = xi.low;
|
|
6522
|
+
H = Ke + vi, ee = xe + lt + (H >>> 0 < Ke >>> 0 ? 1 : 0), H = H + gt, ee = ee + Pe + (H >>> 0 < gt >>> 0 ? 1 : 0), H = H + Si, ee = ee + ji + (H >>> 0 < Si >>> 0 ? 1 : 0), he.high = ee, he.low = H;
|
|
6523
6523
|
}
|
|
6524
|
-
var _i = Ce & J ^ ~Ce &
|
|
6525
|
-
V =
|
|
6524
|
+
var _i = Ce & J ^ ~Ce & P, Et = S & W ^ ~S & k, qt = K & pe ^ K & be ^ pe & be, Qa = Q & ce ^ Q & we ^ ce & we, eo = (K >>> 28 | Q << 4) ^ (K << 30 | Q >>> 2) ^ (K << 25 | Q >>> 7), As = (Q >>> 28 | K << 4) ^ (Q << 30 | K >>> 2) ^ (Q << 25 | K >>> 7), to = (Ce >>> 14 | S << 18) ^ (Ce >>> 18 | S << 14) ^ (Ce << 23 | S >>> 9), io = (S >>> 14 | Ce << 18) ^ (S >>> 18 | Ce << 14) ^ (S << 23 | Ce >>> 9), ws = m[X], ro = ws.high, Cs = ws.low, at = Z + io, At = V + to + (at >>> 0 < Z >>> 0 ? 1 : 0), at = at + Et, At = At + _i + (at >>> 0 < Et >>> 0 ? 1 : 0), at = at + Cs, At = At + ro + (at >>> 0 < Cs >>> 0 ? 1 : 0), at = at + H, At = At + ee + (at >>> 0 < H >>> 0 ? 1 : 0), Is = As + Qa, so = eo + qt + (Is >>> 0 < As >>> 0 ? 1 : 0);
|
|
6525
|
+
V = P, Z = k, P = J, k = W, J = Ce, W = S, S = Fe + at | 0, Ce = Ae + At + (S >>> 0 < Fe >>> 0 ? 1 : 0) | 0, Ae = be, Fe = we, be = pe, we = ce, pe = K, ce = Q, Q = at + Is | 0, K = At + so + (Q >>> 0 < at >>> 0 ? 1 : 0) | 0;
|
|
6526
6526
|
}
|
|
6527
|
-
D = v.low = D + Q, v.high = L + K + (D >>> 0 < Q >>> 0 ? 1 : 0), C = b.low = C + ce, b.high = N + pe + (C >>> 0 < ce >>> 0 ? 1 : 0), E = x.low = E + we, x.high = M + be + (E >>> 0 < we >>> 0 ? 1 : 0),
|
|
6527
|
+
D = v.low = D + Q, v.high = L + K + (D >>> 0 < Q >>> 0 ? 1 : 0), C = b.low = C + ce, b.high = N + pe + (C >>> 0 < ce >>> 0 ? 1 : 0), E = x.low = E + we, x.high = M + be + (E >>> 0 < we >>> 0 ? 1 : 0), ie = y.low = ie + Fe, y.high = U + Ae + (ie >>> 0 < Fe >>> 0 ? 1 : 0), oe = A.low = oe + S, A.high = q + Ce + (oe >>> 0 < S >>> 0 ? 1 : 0), se = I.low = se + W, I.high = $ + J + (se >>> 0 < W >>> 0 ? 1 : 0), B = w.low = B + k, w.high = T + P + (B >>> 0 < k >>> 0 ? 1 : 0), F = R.low = F + Z, R.high = z + V + (F >>> 0 < Z >>> 0 ? 1 : 0);
|
|
6528
6528
|
},
|
|
6529
6529
|
_doFinalize: function() {
|
|
6530
6530
|
var p = this._data, d = p.words, g = this._nDataBytes * 8, v = p.sigBytes * 8;
|
|
@@ -6640,15 +6640,15 @@ function pc() {
|
|
|
6640
6640
|
M.high = D, M.low = N;
|
|
6641
6641
|
}
|
|
6642
6642
|
for (var L = 0; L < 5; L++)
|
|
6643
|
-
for (var E = p[(L + 4) % 5], U = p[(L + 1) % 5],
|
|
6643
|
+
for (var E = p[(L + 4) % 5], U = p[(L + 1) % 5], ie = U.high, q = U.low, D = E.high ^ (ie << 1 | q >>> 31), N = E.low ^ (q << 1 | ie >>> 31), C = 0; C < 5; C++) {
|
|
6644
6644
|
var w = b[L + 5 * C];
|
|
6645
6645
|
w.high ^= D, w.low ^= N;
|
|
6646
6646
|
}
|
|
6647
6647
|
for (var oe = 1; oe < 25; oe++) {
|
|
6648
6648
|
var D, N, w = b[oe], $ = w.high, se = w.low, T = m[oe];
|
|
6649
6649
|
T < 32 ? (D = $ << T | se >>> 32 - T, N = se << T | $ >>> 32 - T) : (D = se << T - 32 | $ >>> 64 - T, N = $ << T - 32 | se >>> 64 - T);
|
|
6650
|
-
var
|
|
6651
|
-
|
|
6650
|
+
var B = p[f[oe]];
|
|
6651
|
+
B.high = D, B.low = N;
|
|
6652
6652
|
}
|
|
6653
6653
|
var z = p[0], F = b[0];
|
|
6654
6654
|
z.high = F.high, z.low = F.low;
|
|
@@ -7033,11 +7033,11 @@ function mc() {
|
|
|
7033
7033
|
var L = w + R, D = I[L];
|
|
7034
7034
|
I[L] = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360;
|
|
7035
7035
|
}
|
|
7036
|
-
var N = this._hash.words, C = l.words, M = p.words, E = u.words, U = h.words,
|
|
7037
|
-
z = oe = N[0], F = $ = N[1], K = se = N[2], Q = T = N[3], pe =
|
|
7036
|
+
var N = this._hash.words, C = l.words, M = p.words, E = u.words, U = h.words, ie = m.words, q = f.words, oe, $, se, T, B, z, F, K, Q, pe;
|
|
7037
|
+
z = oe = N[0], F = $ = N[1], K = se = N[2], Q = T = N[3], pe = B = N[4];
|
|
7038
7038
|
for (var ce, R = 0; R < 80; R += 1)
|
|
7039
|
-
ce = oe + I[w + E[R]] | 0, R < 16 ? ce += g($, se, T) + C[0] : R < 32 ? ce += v($, se, T) + C[1] : R < 48 ? ce += b($, se, T) + C[2] : R < 64 ? ce += x($, se, T) + C[3] : ce += y($, se, T) + C[4], ce = ce | 0, ce = A(ce,
|
|
7040
|
-
ce = N[1] + se + Q | 0, N[1] = N[2] + T + pe | 0, N[2] = N[3] +
|
|
7039
|
+
ce = oe + I[w + E[R]] | 0, R < 16 ? ce += g($, se, T) + C[0] : R < 32 ? ce += v($, se, T) + C[1] : R < 48 ? ce += b($, se, T) + C[2] : R < 64 ? ce += x($, se, T) + C[3] : ce += y($, se, T) + C[4], ce = ce | 0, ce = A(ce, ie[R]), ce = ce + B | 0, oe = B, B = T, T = A(se, 10), se = $, $ = ce, ce = z + I[w + U[R]] | 0, R < 16 ? ce += y(F, K, Q) + M[0] : R < 32 ? ce += x(F, K, Q) + M[1] : R < 48 ? ce += b(F, K, Q) + M[2] : R < 64 ? ce += v(F, K, Q) + M[3] : ce += g(F, K, Q) + M[4], ce = ce | 0, ce = A(ce, q[R]), ce = ce + pe | 0, z = pe, pe = Q, Q = A(K, 10), K = F, F = ce;
|
|
7040
|
+
ce = N[1] + se + Q | 0, N[1] = N[2] + T + pe | 0, N[2] = N[3] + B + z | 0, N[3] = N[4] + oe + F | 0, N[4] = N[0] + $ + K | 0, N[0] = ce;
|
|
7041
7041
|
},
|
|
7042
7042
|
_doFinalize: function() {
|
|
7043
7043
|
var I = this._data, w = I.words, R = this._nDataBytes * 8, L = I.sigBytes * 8;
|
|
@@ -7076,9 +7076,9 @@ function mc() {
|
|
|
7076
7076
|
});
|
|
7077
7077
|
}(Er)), Er.exports;
|
|
7078
7078
|
}
|
|
7079
|
-
var Ar = { exports: {} },
|
|
7079
|
+
var Ar = { exports: {} }, Bn;
|
|
7080
7080
|
function fs() {
|
|
7081
|
-
return
|
|
7081
|
+
return Bn || (Bn = 1, function(s, c) {
|
|
7082
7082
|
(function(e, t) {
|
|
7083
7083
|
s.exports = t(Ee());
|
|
7084
7084
|
})(ve, function(e) {
|
|
@@ -7154,9 +7154,9 @@ function fs() {
|
|
|
7154
7154
|
});
|
|
7155
7155
|
}(Ar)), Ar.exports;
|
|
7156
7156
|
}
|
|
7157
|
-
var wr = { exports: {} },
|
|
7157
|
+
var wr = { exports: {} }, Pn;
|
|
7158
7158
|
function gc() {
|
|
7159
|
-
return
|
|
7159
|
+
return Pn || (Pn = 1, function(s, c) {
|
|
7160
7160
|
(function(e, t, i) {
|
|
7161
7161
|
s.exports = t(Ee(), ls(), fs());
|
|
7162
7162
|
})(ve, function(e) {
|
|
@@ -7222,7 +7222,7 @@ function gc() {
|
|
|
7222
7222
|
}(wr)), wr.exports;
|
|
7223
7223
|
}
|
|
7224
7224
|
var Cr = { exports: {} }, Ln;
|
|
7225
|
-
function
|
|
7225
|
+
function Bt() {
|
|
7226
7226
|
return Ln || (Ln = 1, function(s, c) {
|
|
7227
7227
|
(function(e, t, i) {
|
|
7228
7228
|
s.exports = t(Ee(), Ra(), fs());
|
|
@@ -7288,7 +7288,7 @@ var Ir = { exports: {} }, Mn;
|
|
|
7288
7288
|
function We() {
|
|
7289
7289
|
return Mn || (Mn = 1, function(s, c) {
|
|
7290
7290
|
(function(e, t, i) {
|
|
7291
|
-
s.exports = t(Ee(),
|
|
7291
|
+
s.exports = t(Ee(), Bt());
|
|
7292
7292
|
})(ve, function(e) {
|
|
7293
7293
|
e.lib.Cipher || function(t) {
|
|
7294
7294
|
var i = e, r = i.lib, n = r.Base, a = r.WordArray, o = r.BufferedBlockAlgorithm, u = i.enc;
|
|
@@ -7505,13 +7505,13 @@ function We() {
|
|
|
7505
7505
|
* mode.processBlock(data.words, offset);
|
|
7506
7506
|
*/
|
|
7507
7507
|
processBlock: function(C, M) {
|
|
7508
|
-
var E = this._cipher, U = E.blockSize,
|
|
7509
|
-
E.decryptBlock(C, M), N.call(this, C, M, U), this._prevBlock =
|
|
7508
|
+
var E = this._cipher, U = E.blockSize, ie = C.slice(M, M + U);
|
|
7509
|
+
E.decryptBlock(C, M), N.call(this, C, M, U), this._prevBlock = ie;
|
|
7510
7510
|
}
|
|
7511
7511
|
});
|
|
7512
7512
|
function N(C, M, E) {
|
|
7513
|
-
var U,
|
|
7514
|
-
|
|
7513
|
+
var U, ie = this._iv;
|
|
7514
|
+
ie ? (U = ie, this._iv = t) : U = this._prevBlock;
|
|
7515
7515
|
for (var q = 0; q < E; q++)
|
|
7516
7516
|
C[M + q] ^= U[q];
|
|
7517
7517
|
}
|
|
@@ -7530,7 +7530,7 @@ function We() {
|
|
|
7530
7530
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
7531
7531
|
*/
|
|
7532
7532
|
pad: function(D, N) {
|
|
7533
|
-
for (var C = N * 4, M = C - D.sigBytes % C, E = M << 24 | M << 16 | M << 8 | M, U = [],
|
|
7533
|
+
for (var C = N * 4, M = C - D.sigBytes % C, E = M << 24 | M << 16 | M << 8 | M, U = [], ie = 0; ie < M; ie += 4)
|
|
7534
7534
|
U.push(E);
|
|
7535
7535
|
var q = a.create(U, M);
|
|
7536
7536
|
D.concat(q);
|
|
@@ -7682,14 +7682,14 @@ function We() {
|
|
|
7682
7682
|
*/
|
|
7683
7683
|
encrypt: function(D, N, C, M) {
|
|
7684
7684
|
M = this.cfg.extend(M);
|
|
7685
|
-
var E = D.createEncryptor(C, M), U = E.finalize(N),
|
|
7685
|
+
var E = D.createEncryptor(C, M), U = E.finalize(N), ie = E.cfg;
|
|
7686
7686
|
return x.create({
|
|
7687
7687
|
ciphertext: U,
|
|
7688
7688
|
key: C,
|
|
7689
|
-
iv:
|
|
7689
|
+
iv: ie.iv,
|
|
7690
7690
|
algorithm: D,
|
|
7691
|
-
mode:
|
|
7692
|
-
padding:
|
|
7691
|
+
mode: ie.mode,
|
|
7692
|
+
padding: ie.padding,
|
|
7693
7693
|
blockSize: D.blockSize,
|
|
7694
7694
|
formatter: M.format
|
|
7695
7695
|
});
|
|
@@ -7757,8 +7757,8 @@ function We() {
|
|
|
7757
7757
|
var U = f.create({ keySize: N + C, hasher: E }).compute(D, M);
|
|
7758
7758
|
else
|
|
7759
7759
|
var U = f.create({ keySize: N + C }).compute(D, M);
|
|
7760
|
-
var
|
|
7761
|
-
return U.sigBytes = N * 4, x.create({ key: U, iv:
|
|
7760
|
+
var ie = a.create(U.words.slice(N), C * 4);
|
|
7761
|
+
return U.sigBytes = N * 4, x.create({ key: U, iv: ie, salt: M });
|
|
7762
7762
|
}
|
|
7763
7763
|
}, L = r.PasswordBasedCipher = I.extend({
|
|
7764
7764
|
/**
|
|
@@ -7933,7 +7933,7 @@ function Sc() {
|
|
|
7933
7933
|
});
|
|
7934
7934
|
}(Tr)), Tr.exports;
|
|
7935
7935
|
}
|
|
7936
|
-
var
|
|
7936
|
+
var Br = { exports: {} }, Un;
|
|
7937
7937
|
function _c() {
|
|
7938
7938
|
return Un || (Un = 1, function(s, c) {
|
|
7939
7939
|
(function(e, t, i) {
|
|
@@ -7952,9 +7952,9 @@ function _c() {
|
|
|
7952
7952
|
}), t;
|
|
7953
7953
|
}(), e.mode.ECB;
|
|
7954
7954
|
});
|
|
7955
|
-
}(
|
|
7955
|
+
}(Br)), Br.exports;
|
|
7956
7956
|
}
|
|
7957
|
-
var
|
|
7957
|
+
var Pr = { exports: {} }, Hn;
|
|
7958
7958
|
function yc() {
|
|
7959
7959
|
return Hn || (Hn = 1, function(s, c) {
|
|
7960
7960
|
(function(e, t, i) {
|
|
@@ -7971,7 +7971,7 @@ function yc() {
|
|
|
7971
7971
|
}
|
|
7972
7972
|
}, e.pad.Ansix923;
|
|
7973
7973
|
});
|
|
7974
|
-
}(
|
|
7974
|
+
}(Pr)), Pr.exports;
|
|
7975
7975
|
}
|
|
7976
7976
|
var Lr = { exports: {} }, zn;
|
|
7977
7977
|
function Ec() {
|
|
@@ -8097,7 +8097,7 @@ var Vr = { exports: {} }, qn;
|
|
|
8097
8097
|
function Rc() {
|
|
8098
8098
|
return qn || (qn = 1, function(s, c) {
|
|
8099
8099
|
(function(e, t, i) {
|
|
8100
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
8100
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
8101
8101
|
})(ve, function(e) {
|
|
8102
8102
|
return function() {
|
|
8103
8103
|
var t = e, i = t.lib, r = i.BlockCipher, n = t.algo, a = [], o = [], u = [], h = [], m = [], f = [], l = [], p = [], d = [], g = [];
|
|
@@ -8139,11 +8139,11 @@ function Rc() {
|
|
|
8139
8139
|
x[y + 1] = x[y + 3], x[y + 3] = A;
|
|
8140
8140
|
},
|
|
8141
8141
|
_doCryptBlock: function(x, y, A, I, w, R, L, D) {
|
|
8142
|
-
for (var N = this._nRounds, C = x[y] ^ A[0], M = x[y + 1] ^ A[1], E = x[y + 2] ^ A[2], U = x[y + 3] ^ A[3],
|
|
8143
|
-
var oe = I[C >>> 24] ^ w[M >>> 16 & 255] ^ R[E >>> 8 & 255] ^ L[U & 255] ^ A[
|
|
8142
|
+
for (var N = this._nRounds, C = x[y] ^ A[0], M = x[y + 1] ^ A[1], E = x[y + 2] ^ A[2], U = x[y + 3] ^ A[3], ie = 4, q = 1; q < N; q++) {
|
|
8143
|
+
var oe = I[C >>> 24] ^ w[M >>> 16 & 255] ^ R[E >>> 8 & 255] ^ L[U & 255] ^ A[ie++], $ = I[M >>> 24] ^ w[E >>> 16 & 255] ^ R[U >>> 8 & 255] ^ L[C & 255] ^ A[ie++], se = I[E >>> 24] ^ w[U >>> 16 & 255] ^ R[C >>> 8 & 255] ^ L[M & 255] ^ A[ie++], T = I[U >>> 24] ^ w[C >>> 16 & 255] ^ R[M >>> 8 & 255] ^ L[E & 255] ^ A[ie++];
|
|
8144
8144
|
C = oe, M = $, E = se, U = T;
|
|
8145
8145
|
}
|
|
8146
|
-
var oe = (D[C >>> 24] << 24 | D[M >>> 16 & 255] << 16 | D[E >>> 8 & 255] << 8 | D[U & 255]) ^ A[
|
|
8146
|
+
var oe = (D[C >>> 24] << 24 | D[M >>> 16 & 255] << 16 | D[E >>> 8 & 255] << 8 | D[U & 255]) ^ A[ie++], $ = (D[M >>> 24] << 24 | D[E >>> 16 & 255] << 16 | D[U >>> 8 & 255] << 8 | D[C & 255]) ^ A[ie++], se = (D[E >>> 24] << 24 | D[U >>> 16 & 255] << 16 | D[C >>> 8 & 255] << 8 | D[M & 255]) ^ A[ie++], T = (D[U >>> 24] << 24 | D[C >>> 16 & 255] << 16 | D[M >>> 8 & 255] << 8 | D[E & 255]) ^ A[ie++];
|
|
8147
8147
|
x[y] = oe, x[y + 1] = $, x[y + 2] = se, x[y + 3] = T;
|
|
8148
8148
|
},
|
|
8149
8149
|
keySize: 256 / 32
|
|
@@ -8157,7 +8157,7 @@ var Ur = { exports: {} }, Gn;
|
|
|
8157
8157
|
function Dc() {
|
|
8158
8158
|
return Gn || (Gn = 1, function(s, c) {
|
|
8159
8159
|
(function(e, t, i) {
|
|
8160
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
8160
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
8161
8161
|
})(ve, function(e) {
|
|
8162
8162
|
return function() {
|
|
8163
8163
|
var t = e, i = t.lib, r = i.WordArray, n = i.BlockCipher, a = t.algo, o = [
|
|
@@ -8877,7 +8877,7 @@ var Hr = { exports: {} }, Jn;
|
|
|
8877
8877
|
function kc() {
|
|
8878
8878
|
return Jn || (Jn = 1, function(s, c) {
|
|
8879
8879
|
(function(e, t, i) {
|
|
8880
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
8880
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
8881
8881
|
})(ve, function(e) {
|
|
8882
8882
|
return function() {
|
|
8883
8883
|
var t = e, i = t.lib, r = i.StreamCipher, n = t.algo, a = n.RC4 = r.extend({
|
|
@@ -8931,7 +8931,7 @@ var zr = { exports: {} }, Xn;
|
|
|
8931
8931
|
function Tc() {
|
|
8932
8932
|
return Xn || (Xn = 1, function(s, c) {
|
|
8933
8933
|
(function(e, t, i) {
|
|
8934
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
8934
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
8935
8935
|
})(ve, function(e) {
|
|
8936
8936
|
return function() {
|
|
8937
8937
|
var t = e, i = t.lib, r = i.StreamCipher, n = t.algo, a = [], o = [], u = [], h = n.Rabbit = r.extend({
|
|
@@ -8994,10 +8994,10 @@ function Tc() {
|
|
|
8994
8994
|
}(zr)), zr.exports;
|
|
8995
8995
|
}
|
|
8996
8996
|
var jr = { exports: {} }, Zn;
|
|
8997
|
-
function
|
|
8997
|
+
function Bc() {
|
|
8998
8998
|
return Zn || (Zn = 1, function(s, c) {
|
|
8999
8999
|
(function(e, t, i) {
|
|
9000
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
9000
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
9001
9001
|
})(ve, function(e) {
|
|
9002
9002
|
return function() {
|
|
9003
9003
|
var t = e, i = t.lib, r = i.StreamCipher, n = t.algo, a = [], o = [], u = [], h = n.RabbitLegacy = r.extend({
|
|
@@ -9058,10 +9058,10 @@ function Pc() {
|
|
|
9058
9058
|
}(jr)), jr.exports;
|
|
9059
9059
|
}
|
|
9060
9060
|
var Wr = { exports: {} }, Yn;
|
|
9061
|
-
function
|
|
9061
|
+
function Pc() {
|
|
9062
9062
|
return Yn || (Yn = 1, function(s, c) {
|
|
9063
9063
|
(function(e, t, i) {
|
|
9064
|
-
s.exports = t(Ee(), Wt(), Kt(),
|
|
9064
|
+
s.exports = t(Ee(), Wt(), Kt(), Bt(), We());
|
|
9065
9065
|
})(ve, function(e) {
|
|
9066
9066
|
return function() {
|
|
9067
9067
|
var t = e, i = t.lib, r = i.BlockCipher, n = t.algo;
|
|
@@ -10181,7 +10181,7 @@ function Bc() {
|
|
|
10181
10181
|
}
|
|
10182
10182
|
(function(s, c) {
|
|
10183
10183
|
(function(e, t, i) {
|
|
10184
|
-
s.exports = t(Ee(), Ni(), uc(), hc(), Wt(), dc(), Kt(), Ra(), ls(), lc(), Da(), fc(), pc(), mc(), fs(), gc(),
|
|
10184
|
+
s.exports = t(Ee(), Ni(), uc(), hc(), Wt(), dc(), Kt(), Ra(), ls(), lc(), Da(), fc(), pc(), mc(), fs(), gc(), Bt(), We(), bc(), vc(), xc(), Sc(), _c(), yc(), Ec(), Ac(), wc(), Cc(), Ic(), Rc(), Dc(), kc(), Tc(), Bc(), Pc());
|
|
10185
10185
|
})(ve, function(e) {
|
|
10186
10186
|
return e;
|
|
10187
10187
|
});
|
|
@@ -10480,7 +10480,7 @@ function Gc(s, c, e) {
|
|
|
10480
10480
|
}
|
|
10481
10481
|
});
|
|
10482
10482
|
}
|
|
10483
|
-
class
|
|
10483
|
+
class Ba extends Wc {
|
|
10484
10484
|
constructor(c) {
|
|
10485
10485
|
const e = Object.assign({}, c, {
|
|
10486
10486
|
installUnloadHook: (t) => {
|
|
@@ -10500,7 +10500,7 @@ class Pa extends Wc {
|
|
|
10500
10500
|
}, this.overwriteTransString(c);
|
|
10501
10501
|
}
|
|
10502
10502
|
}
|
|
10503
|
-
Ta(window, "SLS_Tracker",
|
|
10503
|
+
Ta(window, "SLS_Tracker", Ba);
|
|
10504
10504
|
function Jc(s) {
|
|
10505
10505
|
return fi.MD5(s).toString().toUpperCase();
|
|
10506
10506
|
}
|
|
@@ -10574,7 +10574,7 @@ var Qc = (s, c, e) => new Promise((t, i) => {
|
|
|
10574
10574
|
}, a = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(r, n);
|
|
10575
10575
|
a((e = e.apply(s, c)).next());
|
|
10576
10576
|
});
|
|
10577
|
-
function
|
|
10577
|
+
function Pa(s) {
|
|
10578
10578
|
return {
|
|
10579
10579
|
transString: function(c) {
|
|
10580
10580
|
let e = {}, t = 0, i = !1;
|
|
@@ -10605,7 +10605,7 @@ function Ba(s) {
|
|
|
10605
10605
|
}
|
|
10606
10606
|
};
|
|
10607
10607
|
}
|
|
10608
|
-
typeof window != "undefined" && Ta(window, "stsPlugin",
|
|
10608
|
+
typeof window != "undefined" && Ta(window, "stsPlugin", Pa);
|
|
10609
10609
|
const { BrowserUtil: e0 } = Re, Xt = {
|
|
10610
10610
|
EdgeHTML: "EdgeHTML",
|
|
10611
10611
|
Blink: "Blink",
|
|
@@ -10837,7 +10837,7 @@ class sa {
|
|
|
10837
10837
|
if (!this.tracker && this.slsToken && this.param) {
|
|
10838
10838
|
const c = this.slsToken;
|
|
10839
10839
|
this.ossToken && (this.param.ossbn = this.ossToken.bucket_name, this.param.ossep = this.ossToken.region_endpoint);
|
|
10840
|
-
const e = new
|
|
10840
|
+
const e = new Ba({
|
|
10841
10841
|
host: c.region_endpoint,
|
|
10842
10842
|
project: c.project,
|
|
10843
10843
|
logstore: c.log_store_stats
|
|
@@ -10851,7 +10851,7 @@ class sa {
|
|
|
10851
10851
|
}
|
|
10852
10852
|
};
|
|
10853
10853
|
this.stsOpt = t;
|
|
10854
|
-
const i =
|
|
10854
|
+
const i = Pa(t);
|
|
10855
10855
|
e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((r, n) => {
|
|
10856
10856
|
var a, o;
|
|
10857
10857
|
(o = this.tracker) == null || o.send(me(bt(me({}, this.param), { stat_log_id: `${((a = this.param) == null ? void 0 : a.sesid) || "nosession"}-${n}` }), r));
|
|
@@ -10927,7 +10927,7 @@ class sa {
|
|
|
10927
10927
|
});
|
|
10928
10928
|
}
|
|
10929
10929
|
}
|
|
10930
|
-
const
|
|
10930
|
+
const Be = (s, c = 1, e = 6e4, t = 0) => {
|
|
10931
10931
|
let i = s;
|
|
10932
10932
|
return i || (i = 0), Math.min(e, Math.max(t, Math.round(i * c)));
|
|
10933
10933
|
}, ut = (s, c, e = 2e7, t = 0) => {
|
|
@@ -10935,19 +10935,19 @@ const Pe = (s, c = 1, e = 6e4, t = 0) => {
|
|
|
10935
10935
|
(!c || c < 0 || c > 1e4) && (i = 1e3);
|
|
10936
10936
|
let r = s;
|
|
10937
10937
|
return r || (r = 0), Math.min(e, Math.max(t, Math.round(r / (i / 1e3))));
|
|
10938
|
-
},
|
|
10938
|
+
}, Pt = (s, c) => {
|
|
10939
10939
|
if (c === 0 || !c)
|
|
10940
10940
|
return "0.00";
|
|
10941
10941
|
let e = s;
|
|
10942
10942
|
return (!e || e < 0) && (e = 0), (e / c * 100).toFixed(2);
|
|
10943
|
-
}, na = (s) => s >= 0 && s <= 1 ?
|
|
10943
|
+
}, na = (s) => s >= 0 && s <= 1 ? Be(Math.floor(32767 * s), 1, 32767) : 0, Le = (s, c) => {
|
|
10944
10944
|
var t, i, r;
|
|
10945
10945
|
let e = ((t = s._last) == null ? void 0 : t[c]) || 0;
|
|
10946
10946
|
return s.ssrc && ((i = s._last) != null && i.ssrc) && s.ssrc !== ((r = s._last) == null ? void 0 : r.ssrc) && (e = 0), ((s == null ? void 0 : s[c]) || 0) - e;
|
|
10947
10947
|
}, o0 = (s, c) => {
|
|
10948
10948
|
var e, t, i;
|
|
10949
10949
|
return (((e = s == null ? void 0 : s._source) == null ? void 0 : e[c]) || 0) - (((i = (t = s == null ? void 0 : s._last) == null ? void 0 : t._source) == null ? void 0 : i[c]) || 0);
|
|
10950
|
-
}, aa = (s, c) =>
|
|
10950
|
+
}, aa = (s, c) => Be(Le(s, c), 1e3, 1e4), Lt = (s, c = 2e7) => Be(s, 1, c), di = class di {
|
|
10951
10951
|
constructor(c) {
|
|
10952
10952
|
_(this, "engine");
|
|
10953
10953
|
_(this, "logClient");
|
|
@@ -10996,25 +10996,25 @@ const Pe = (s, c = 1, e = 6e4, t = 0) => {
|
|
|
10996
10996
|
var z, F, K, Q, pe, ce;
|
|
10997
10997
|
if (!N || !N.timestamp)
|
|
10998
10998
|
return;
|
|
10999
|
-
const C = (z = N._last) != null && z.timestamp ? N.timestamp - N._last.timestamp : 1e3, M = Le(N, "bytesSent"), E = Le(N, "headerBytesSent"), U = ut(
|
|
10999
|
+
const C = (z = N._last) != null && z.timestamp ? N.timestamp - N._last.timestamp : 1e3, M = Le(N, "bytesSent"), E = Le(N, "headerBytesSent"), U = ut(Be(M + E, 8, 2e7), C);
|
|
11000
11000
|
o.push(U);
|
|
11001
|
-
const
|
|
11002
|
-
u.push(
|
|
11003
|
-
const q = ut(
|
|
11001
|
+
const ie = ut(Be(M, 8, 2e7), C);
|
|
11002
|
+
u.push(ie);
|
|
11003
|
+
const q = ut(Be(E, 8, 2e7), C);
|
|
11004
11004
|
h.push(q);
|
|
11005
11005
|
const oe = Le(N, "packetsSent"), $ = ut(oe, C);
|
|
11006
11006
|
m.push($);
|
|
11007
11007
|
const se = Le(N, "packetsLost"), T = ut(se, C);
|
|
11008
11008
|
f.push(T);
|
|
11009
|
-
const
|
|
11010
|
-
if (l.push(
|
|
11009
|
+
const B = Pt(se, oe);
|
|
11010
|
+
if (l.push(B), n)
|
|
11011
11011
|
(F = N._source) != null && F.audioLevel && p.push(na(N._source.audioLevel)), d.push(0);
|
|
11012
11012
|
else {
|
|
11013
11013
|
g.push(aa(N, "totalEncodeTime")), v.push(Lt((K = N._source) == null ? void 0 : K.framesPerSecond, 100)), b.push(Lt((Q = N._source) == null ? void 0 : Q.framesPerSecond, 100)), x.push(Lt(N.framesPerSecond, 100)), y.push(Lt((pe = N._source) == null ? void 0 : pe.height, 4400)), A.push(Lt((ce = N._source) == null ? void 0 : ce.width, 7700)), I.push(Lt(N.frameHeight, 4400)), w.push(Lt(N.frameWidth, 7700));
|
|
11014
11014
|
const be = Le(N, "totalPacketSendDelay");
|
|
11015
|
-
R.push(
|
|
11015
|
+
R.push(Be(be, 1 / (se || 1), 2e3));
|
|
11016
11016
|
const we = Le(N, "qpSum");
|
|
11017
|
-
L.push(
|
|
11017
|
+
L.push(Be(we, 1 / (N.framesPerSecond || 1), 51)), D.push(0);
|
|
11018
11018
|
}
|
|
11019
11019
|
}), a.sbr = o.join(","), a.mbrs = u.join(","), a.pbrs = h.join(","), a.ps = m.join(","), a.pl = f.join(","), a.plr = l.join(","), n) {
|
|
11020
11020
|
const N = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
|
|
@@ -11041,62 +11041,62 @@ const Pe = (s, c = 1, e = 6e4, t = 0) => {
|
|
|
11041
11041
|
ctm: Math.floor(r[0].timestamp || 0),
|
|
11042
11042
|
src: r[0].ssrc || "",
|
|
11043
11043
|
codec: r[0]._codec || ""
|
|
11044
|
-
}, o = [], u = [], h = [], m = [], f = [], l = [], p = [], d = [], g = [], v = [], b = [], x = [], y = [], A = [], I = [], w = [], R = [], L = [], D = [], N = [], C = [], M = [], E = [], U = [],
|
|
11044
|
+
}, o = [], u = [], h = [], m = [], f = [], l = [], p = [], d = [], g = [], v = [], b = [], x = [], y = [], A = [], I = [], w = [], R = [], L = [], D = [], N = [], C = [], M = [], E = [], U = [], ie = [], q = [], oe = [], $ = [], se = [], T = [], B = [], z = [], F = [], K = [];
|
|
11045
11045
|
try {
|
|
11046
11046
|
r.forEach((Q) => {
|
|
11047
11047
|
var ee, he;
|
|
11048
11048
|
if (!Q || !Q.timestamp)
|
|
11049
11049
|
return;
|
|
11050
|
-
const pe = (ee = Q._last) != null && ee.timestamp ? Q.timestamp - Q._last.timestamp : 1e3, ce = Le(Q, "bytesReceived"), be = Le(Q, "headerBytesReceived"), we = ut(
|
|
11050
|
+
const pe = (ee = Q._last) != null && ee.timestamp ? Q.timestamp - Q._last.timestamp : 1e3, ce = Le(Q, "bytesReceived"), be = Le(Q, "headerBytesReceived"), we = ut(Be(ce + be, 8, 2e7), pe);
|
|
11051
11051
|
o.push(we);
|
|
11052
|
-
const Ae = ut(
|
|
11052
|
+
const Ae = ut(Be(ce, 8, 2e7), pe);
|
|
11053
11053
|
u.push(Ae);
|
|
11054
|
-
const Fe = ut(
|
|
11054
|
+
const Fe = ut(Be(be, 8, 2e7), pe);
|
|
11055
11055
|
h.push(Fe);
|
|
11056
11056
|
const Ce = Le(Q, "packetsReceived"), S = ut(Ce, pe);
|
|
11057
11057
|
m.push(S);
|
|
11058
11058
|
const J = Le(Q, "packetsLost"), W = ut(J, pe);
|
|
11059
11059
|
f.push(W);
|
|
11060
|
-
const
|
|
11061
|
-
l.push(
|
|
11060
|
+
const P = Pt(J, Ce);
|
|
11061
|
+
l.push(P);
|
|
11062
11062
|
const k = Le(Q, "jitterBufferDelay"), V = Le(Q, "jitterBufferEmittedCount");
|
|
11063
11063
|
if (Q.jitterBufferDelay && Q.jitterBufferEmittedCount) {
|
|
11064
|
-
const
|
|
11065
|
-
p.push(
|
|
11064
|
+
const re = Be(k, 1e3 / V, 1e4);
|
|
11065
|
+
p.push(re);
|
|
11066
11066
|
} else
|
|
11067
11067
|
p.push(0);
|
|
11068
11068
|
const Z = Le(Q, "fecPacketsReceived");
|
|
11069
|
-
x.push(
|
|
11069
|
+
x.push(Pt(Z, Ce));
|
|
11070
11070
|
const X = Le(Q, "retransmittedPacketsReceived"), H = Ce + J - X;
|
|
11071
|
-
if (g.push(
|
|
11071
|
+
if (g.push(Pt(Ce - X, H)), v.push(Pt(J, H)), d.push(Pt(X, H)), b.push(H), F.push(0), K.push(""), n) {
|
|
11072
11072
|
A.push(na(Q.audioLevel));
|
|
11073
|
-
const
|
|
11074
|
-
I.push(
|
|
11073
|
+
const re = o0(Q, "synthesizedSamplesEvents");
|
|
11074
|
+
I.push(re);
|
|
11075
11075
|
const fe = aa(Q, "synthesizedSamplesDuration");
|
|
11076
11076
|
w.push(fe);
|
|
11077
|
-
const _e =
|
|
11077
|
+
const _e = Pt(fe, pe);
|
|
11078
11078
|
y.push(_e), R.push(0);
|
|
11079
11079
|
} else {
|
|
11080
|
-
const
|
|
11081
|
-
L.push(
|
|
11080
|
+
const re = (he = Q._last) != null && he.totalInterFrameDelay ? Q.totalInterFrameDelay - Q._last.totalInterFrameDelay : 0;
|
|
11081
|
+
L.push(Be(re, 1e3 / (Q.framesDecoded || 30), 500)), D.push(Be(Q.framesPerSecond, 1, 100)), N.push(Le(Q, "framesReceived")), z.push(Le(Q, "framesRendered")), C.push(Be(Q.frameHeight, 1, 4400)), M.push(Be(Q.frameWidth, 1, 7700));
|
|
11082
11082
|
const fe = Le(Q, "totalProcessingDelay");
|
|
11083
|
-
E.push(
|
|
11083
|
+
E.push(Be(fe, 1e3 / (Q.framesDecoded || 30), 12e4));
|
|
11084
11084
|
const _e = Le(Q, "nackCount");
|
|
11085
|
-
|
|
11085
|
+
ie.push(_e);
|
|
11086
11086
|
const xe = Le(Q, "pliCount");
|
|
11087
11087
|
U.push(xe);
|
|
11088
11088
|
const Ke = Le(Q, "qpSum");
|
|
11089
|
-
q.push(
|
|
11089
|
+
q.push(Be(Ke, 1 / (Q.framesPerSecond || 1), 51)), oe.push(Be(Q.framesDropped));
|
|
11090
11090
|
const mt = Le(Q, "totalFreezesDuration");
|
|
11091
|
-
$.push(
|
|
11091
|
+
$.push(Be(mt, 1e3, 3e4));
|
|
11092
11092
|
const Me = Le(Q, "jitterBufferEmittedCount"), it = Le(Q, "jitterBufferDelay");
|
|
11093
|
-
it && Me ? se.push(
|
|
11094
|
-
const
|
|
11095
|
-
|
|
11093
|
+
it && Me ? se.push(Be(it, 1e3 / Me, 3e4)) : se.push(0);
|
|
11094
|
+
const Pe = Le(Q, "jitterBufferTargetDelay");
|
|
11095
|
+
Pe && Me ? T.push(Be(Pe, 1e3 / Me, 3e4)) : T.push(0);
|
|
11096
11096
|
const gt = Le(Q, "jitterBufferMinimumDelay");
|
|
11097
|
-
gt && Me ?
|
|
11097
|
+
gt && Me ? B.push(Be(gt, 1e3 / Me, 3e4)) : B.push(0);
|
|
11098
11098
|
}
|
|
11099
|
-
}), a.rbr = o.join(","), a.mbrs = u.join(","), a.pbrs = h.join(","), a.pr = m.join(","), a.pl = f.join(","), a.plr = l.join(","), a.jd = p.join(","), a.fecr = x.join(","), a.retransr = d.join(","), a.baser = g.join(","), a.basel = v.join(","), a.recoverr = F.join(","), a.alll = v.join(","), a.totalc = b.join(","), n ? (a.er = y.join(","), a.aolevel = A.join(","), a.asrc = R.join(","), a.scnt = I.join(","), a.sdura = w.join(",")) : (a.dm = L.join(","), a.dfps = D.join(","), a.rfps = N.join(","), a.rh = C.join(","), a.rw = M.join(","), a.fpt = K.join(","), a.ns =
|
|
11099
|
+
}), a.rbr = o.join(","), a.mbrs = u.join(","), a.pbrs = h.join(","), a.pr = m.join(","), a.pl = f.join(","), a.plr = l.join(","), a.jd = p.join(","), a.fecr = x.join(","), a.retransr = d.join(","), a.baser = g.join(","), a.basel = v.join(","), a.recoverr = F.join(","), a.alll = v.join(","), a.totalc = b.join(","), n ? (a.er = y.join(","), a.aolevel = A.join(","), a.asrc = R.join(","), a.scnt = I.join(","), a.sdura = w.join(",")) : (a.dm = L.join(","), a.dfps = D.join(","), a.rfps = N.join(","), a.rh = C.join(","), a.rw = M.join(","), a.fpt = K.join(","), a.ns = ie.join(","), a.pliss = U.join(","), a.aqp = q.join(","), a.ofimax = F.join(","), a.ofimin = F.join(","), a.dfimax = F.join(","), a.dfimin = F.join(","), a.rfimax = F.join(","), a.rfimin = F.join(","), a.vrstutter = $.join(","), a.cdm = se.join(","), a.tdm = T.join(","), a.pdm = B.join(","), a.ofps = z.join(","), a.dfbd = oe.join(","));
|
|
11100
11100
|
} catch (Q) {
|
|
11101
11101
|
}
|
|
11102
11102
|
this.log({
|
|
@@ -11121,7 +11121,7 @@ const Pe = (s, c = 1, e = 6e4, t = 0) => {
|
|
|
11121
11121
|
if (!l.timestamp)
|
|
11122
11122
|
return;
|
|
11123
11123
|
const d = (g = l._last) != null && g.timestamp ? l.timestamp - l._last.timestamp : 1e3;
|
|
11124
|
-
e.push(
|
|
11124
|
+
e.push(Be(l.currentRoundTripTime, 1e3)), t.push(Be(l.availableOutgoingBitrate, 8, 2e8)), i.push(ut(Be(l.bytesSent, 8, 2e7), d, 25e6)), r.push(ut(Be(l.bytesReceived, 8, 2e7), d, 25e6)), n.push(0), a.push(0), p % 5 === 0 && (o.push(""), u.push(""), h.push(""), m.push(""));
|
|
11125
11125
|
});
|
|
11126
11126
|
const f = {
|
|
11127
11127
|
ctm: Math.floor(c[0].timestamp || 0),
|
|
@@ -12367,7 +12367,7 @@ class m0 {
|
|
|
12367
12367
|
};
|
|
12368
12368
|
}
|
|
12369
12369
|
}
|
|
12370
|
-
var
|
|
12370
|
+
var te = /* @__PURE__ */ ((s) => (s[s.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", s[s.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", s[s.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", s[s.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", s[s.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", s[s.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", s[s.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", s[s.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", s[s.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", s[s.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", s[s.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", s[s.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", s[s.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", s[s.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", s[s.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", s[s.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", s[s.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", s[s.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", s[s.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", s[s.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", s[s.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", s[s.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", s[s.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", s[s.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", s[s.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", s[s.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", s[s.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", s[s.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", s[s.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", s[s.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", s[s.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", s[s.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", s[s.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", s[s.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", s[s.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", s[s.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", s[s.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", s[s.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", s[s.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", s[s.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", s[s.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", s[s.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", s[s.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", s[s.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", s[s.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", s[s.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", s[s.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", s[s.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", s[s.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", s[s.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", s[s.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", s[s.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", s[s.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", s[s.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", s[s.ERR_INNER = -1] = "ERR_INNER", s[s.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", s[s.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", s[s.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", s[s.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", s[s.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", s[s.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", s[s.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", s[s.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", s[s.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", s[s.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", s[s.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", s[s.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", s[s.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", s[s.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", s[s.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", s[s.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", s))(te || {});
|
|
12371
12371
|
class Y extends Error {
|
|
12372
12372
|
constructor(e, t, i) {
|
|
12373
12373
|
super(t);
|
|
@@ -12376,14 +12376,10 @@ class Y extends Error {
|
|
|
12376
12376
|
this._code = e, this._extra = i;
|
|
12377
12377
|
}
|
|
12378
12378
|
static fromRtsError(e) {
|
|
12379
|
-
return e instanceof Y ? e : new Y(
|
|
12380
|
-
(e == null ? void 0 : e.errorCode) || -1,
|
|
12381
|
-
(e == null ? void 0 : e.message) || (e == null ? void 0 : e.errorCodeName) || "rts error",
|
|
12382
|
-
e == null ? void 0 : e.extraInfo
|
|
12383
|
-
);
|
|
12379
|
+
return e instanceof Y ? e : new Y((e == null ? void 0 : e.errorCode) || -1, (e == null ? void 0 : e.message) || (e == null ? void 0 : e.errorCodeName) || "rts error", e);
|
|
12384
12380
|
}
|
|
12385
12381
|
static fromError(e, t = -1, i = "") {
|
|
12386
|
-
return new Y(t, (e == null ? void 0 : e.message) || (e == null ? void 0 : e.reason) || i || "error", e
|
|
12382
|
+
return new Y(t, (e == null ? void 0 : e.message) || (e == null ? void 0 : e.reason) || i || "error", e);
|
|
12387
12383
|
}
|
|
12388
12384
|
get code() {
|
|
12389
12385
|
return this._code;
|
|
@@ -12570,7 +12566,7 @@ const g0 = 3e4, ct = class ct extends Ge {
|
|
|
12570
12566
|
*/
|
|
12571
12567
|
onConnectFail() {
|
|
12572
12568
|
ae.warn(`[${ct.logName}] onConnectFail`);
|
|
12573
|
-
const e = new Y(
|
|
12569
|
+
const e = new Y(te.ERR_INNER, "Signaling connect failed.");
|
|
12574
12570
|
this.isFirstConnect ? this.emit("onJoinChannelResult", e) : this.emit("onConnectFail", e);
|
|
12575
12571
|
}
|
|
12576
12572
|
/**
|
|
@@ -12584,7 +12580,7 @@ const g0 = 3e4, ct = class ct extends Ge {
|
|
|
12584
12580
|
*/
|
|
12585
12581
|
onNetworkError() {
|
|
12586
12582
|
ae.warn(`[${ct.logName}] onNetworkError`);
|
|
12587
|
-
const e = new Y(
|
|
12583
|
+
const e = new Y(te.ERR_INNER, "Network error, signaling connect failed.");
|
|
12588
12584
|
this.emit("onNetworkError", e);
|
|
12589
12585
|
}
|
|
12590
12586
|
/**
|
|
@@ -12601,7 +12597,7 @@ const g0 = 3e4, ct = class ct extends Ge {
|
|
|
12601
12597
|
this.emit("onReconnectStart");
|
|
12602
12598
|
}
|
|
12603
12599
|
onReconnectFail() {
|
|
12604
|
-
this.emit("onReconnectFail", new Y(
|
|
12600
|
+
this.emit("onReconnectFail", new Y(te.ERR_INNER, "signaling reconnect failed."));
|
|
12605
12601
|
}
|
|
12606
12602
|
/**
|
|
12607
12603
|
* 处理 Keepalive 心跳,加速判断网络异常
|
|
@@ -12702,7 +12698,7 @@ const g0 = 3e4, ct = class ct extends Ge {
|
|
|
12702
12698
|
this.sendPkgCache(), this.startKeepAlive(), this.emit("onReconnectSuccess", e.data.users);
|
|
12703
12699
|
else {
|
|
12704
12700
|
const t = new Y(
|
|
12705
|
-
|
|
12701
|
+
te.ERR_INNER,
|
|
12706
12702
|
`reconnect failed, code: ${e.code};description: ${e.description}`
|
|
12707
12703
|
);
|
|
12708
12704
|
e.code === 403 && (t.code = 403), this.emit("onReconnectFail", t), this.close();
|
|
@@ -12858,9 +12854,9 @@ const Vi = (Ye = class extends Ge {
|
|
|
12858
12854
|
let l = u.data;
|
|
12859
12855
|
l.tid = u.tid, l.users = u.data.users, l.timestamp = u.timestamp, a.est && (a.joinconnecttc = Date.now() - a.est), this.slsReporter.reportJoinConnection(a), r(l);
|
|
12860
12856
|
} else
|
|
12861
|
-
this.reset(), n(this.handleSignalError(u.code, u.reason,
|
|
12857
|
+
this.reset(), n(this.handleSignalError(u.code, u.reason, te.ERR_JOIN_CHANNEL_FAILED));
|
|
12862
12858
|
}), this.messageCenter.once("onAuthInvalid", () => {
|
|
12863
|
-
this.reset(), n(new Y(
|
|
12859
|
+
this.reset(), n(new Y(te.ERR_JOIN_BAD_TOKEN, "join failed because authentication failed"));
|
|
12864
12860
|
}), ae.info(
|
|
12865
12861
|
`[${Ye.logName}]`,
|
|
12866
12862
|
"start ws connecting roomserver and auto join when connected"
|
|
@@ -12947,7 +12943,7 @@ const Vi = (Ye = class extends Ge {
|
|
|
12947
12943
|
}), this.messageCenter.reportStatus(e)) : i(new Y(-1, "No messageCenter"));
|
|
12948
12944
|
});
|
|
12949
12945
|
}
|
|
12950
|
-
handleSignalError(e, t, i =
|
|
12946
|
+
handleSignalError(e, t, i = te.ERR_INNER) {
|
|
12951
12947
|
const r = `signal error: code - ${e}; description - ${t}`;
|
|
12952
12948
|
return new Y(i, r);
|
|
12953
12949
|
}
|
|
@@ -13080,7 +13076,7 @@ class _s extends Ge {
|
|
|
13080
13076
|
*/
|
|
13081
13077
|
join(e, t = e.userId, i, r) {
|
|
13082
13078
|
return this.maxConnectRetryCount = i, this.userName = t, new Promise((n, a) => {
|
|
13083
|
-
this.signaling ? a(new Y(
|
|
13079
|
+
this.signaling ? a(new Y(te.ERR_JOIN_ALREADY_JOINED, "already joined")) : (ae.info("[signalingmanager] create signaling"), this.signaling = new x0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), r && (r.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
|
|
13084
13080
|
this.authInfo = e, r && (r.re = Date.now()), n(o);
|
|
13085
13081
|
}).catch((o) => {
|
|
13086
13082
|
this.reset(), a(o);
|
|
@@ -13111,7 +13107,7 @@ class _s extends Ge {
|
|
|
13111
13107
|
t(n);
|
|
13112
13108
|
}).catch((n) => {
|
|
13113
13109
|
i(n);
|
|
13114
|
-
})) : i(new Y(
|
|
13110
|
+
})) : i(new Y(te.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL, "no signaling"));
|
|
13115
13111
|
});
|
|
13116
13112
|
}
|
|
13117
13113
|
/**
|
|
@@ -13162,7 +13158,7 @@ class _s extends Ge {
|
|
|
13162
13158
|
* @returns
|
|
13163
13159
|
*/
|
|
13164
13160
|
refreshUrl(e) {
|
|
13165
|
-
return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new Y(
|
|
13161
|
+
return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new Y(te.ERR_SDK_INVALID_STATE, "should join first"));
|
|
13166
13162
|
}
|
|
13167
13163
|
refreshAuthInfo(e) {
|
|
13168
13164
|
return O(this, null, function* () {
|
|
@@ -13452,11 +13448,11 @@ function ha(s) {
|
|
|
13452
13448
|
if (e) {
|
|
13453
13449
|
if (e.nodeName.toLocaleLowerCase() === "video")
|
|
13454
13450
|
return e.setAttribute("playsinline", ""), e;
|
|
13455
|
-
throw new Y(
|
|
13451
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "element should be HtmlVideoElement");
|
|
13456
13452
|
} else
|
|
13457
|
-
throw new Y(
|
|
13453
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "element not founded");
|
|
13458
13454
|
} else
|
|
13459
|
-
throw new Y(
|
|
13455
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "element id should be string");
|
|
13460
13456
|
}
|
|
13461
13457
|
function ns(s) {
|
|
13462
13458
|
var e;
|
|
@@ -13723,8 +13719,8 @@ class ti {
|
|
|
13723
13719
|
);
|
|
13724
13720
|
}
|
|
13725
13721
|
}
|
|
13726
|
-
var T0 = Object.defineProperty,
|
|
13727
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
13722
|
+
var T0 = Object.defineProperty, B0 = Object.getOwnPropertyDescriptor, Oe = (s, c, e, t) => {
|
|
13723
|
+
for (var i = t > 1 ? void 0 : t ? B0(c, e) : c, r = s.length - 1, n; r >= 0; r--)
|
|
13728
13724
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
13729
13725
|
return t && i && T0(c, e, i), i;
|
|
13730
13726
|
};
|
|
@@ -13905,7 +13901,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
13905
13901
|
facingMode: "environment"
|
|
13906
13902
|
});
|
|
13907
13903
|
else
|
|
13908
|
-
throw new Y(
|
|
13904
|
+
throw new Y(te.ERR_CAMERA_OPEN_FAIL, `camera direction set to ${e} failed`);
|
|
13909
13905
|
}
|
|
13910
13906
|
setCameraDeviceId(e) {
|
|
13911
13907
|
this.streamManager.setCameraVideoConstraints({
|
|
@@ -13958,10 +13954,10 @@ const Ne = (Tt = class extends Ha {
|
|
|
13958
13954
|
try {
|
|
13959
13955
|
n = yield Re.getCameraList(), n.length && (yield this.startCameraCapture());
|
|
13960
13956
|
} catch (a) {
|
|
13961
|
-
throw a.code === Re.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new Y(
|
|
13957
|
+
throw a.code === Re.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new Y(te.ERR_CAMERA_AUTH_FAIL, "camera auth fail") : new Y(te.ERR_CAMERA_OPEN_FAIL, `camera open fail: ${a.message}`);
|
|
13962
13958
|
}
|
|
13963
13959
|
if (!n.length)
|
|
13964
|
-
throw new Y(
|
|
13960
|
+
throw new Y(te.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
|
|
13965
13961
|
}
|
|
13966
13962
|
});
|
|
13967
13963
|
}
|
|
@@ -13973,10 +13969,10 @@ const Ne = (Tt = class extends Ha {
|
|
|
13973
13969
|
try {
|
|
13974
13970
|
r = yield Re.getMicList(), r.length && (yield this.startAudioCapture());
|
|
13975
13971
|
} catch (n) {
|
|
13976
|
-
throw n.code === Re.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new Y(
|
|
13972
|
+
throw n.code === Re.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new Y(te.ERR_MIC_AUTH_FAIL, "microphone auth fail") : new Y(te.ERR_MIC_OPEN_FAIL, `microphone open fail: ${n.message}`);
|
|
13977
13973
|
}
|
|
13978
13974
|
if (!r.length)
|
|
13979
|
-
throw new Y(
|
|
13975
|
+
throw new Y(te.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
|
|
13980
13976
|
}
|
|
13981
13977
|
});
|
|
13982
13978
|
}
|
|
@@ -13992,7 +13988,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
13992
13988
|
return;
|
|
13993
13989
|
}
|
|
13994
13990
|
if (![ye.AliRtcVideoTrackCamera, ye.AliRtcVideoTrackScreen].includes(t))
|
|
13995
|
-
throw new Y(
|
|
13991
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "set view config invalid track", { track: t });
|
|
13996
13992
|
e.forEach((i) => {
|
|
13997
13993
|
this.setPreviewElement({
|
|
13998
13994
|
videoElement: i,
|
|
@@ -14039,7 +14035,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14039
14035
|
try {
|
|
14040
14036
|
let r = i ? this.streamManager.screenStreamInfo.previewStream : this.streamManager.cameraStreamInfo.previewStream;
|
|
14041
14037
|
if (!t)
|
|
14042
|
-
throw new Y(
|
|
14038
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "no video element found", {
|
|
14043
14039
|
videoElement: t
|
|
14044
14040
|
});
|
|
14045
14041
|
if (!r) {
|
|
@@ -14048,7 +14044,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14048
14044
|
}
|
|
14049
14045
|
return Ka(t, r.mediaStream), this.setPreviewElement(e), r.mediaStream;
|
|
14050
14046
|
} catch (r) {
|
|
14051
|
-
const n =
|
|
14047
|
+
const n = te.ERR_INNER;
|
|
14052
14048
|
throw Y.fromError(r, n, "preview failed");
|
|
14053
14049
|
}
|
|
14054
14050
|
});
|
|
@@ -14193,7 +14189,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14193
14189
|
if (this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = m, (u = this.parameter.data) != null && u.enablePubDataChannel) {
|
|
14194
14190
|
this.dataPubState.setState(ge.AliRtcStatePublishing);
|
|
14195
14191
|
const p = yield this.rtsManager.publishAddDataChannel(this.url);
|
|
14196
|
-
p ? (this.dc = p, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(ge.AliRtcStatePublished)) : this.emit("publishDataError", new Y(
|
|
14192
|
+
p ? (this.dc = p, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(ge.AliRtcStatePublished)) : this.emit("publishDataError", new Y(te.ERR_INNER, "publishDataError"));
|
|
14197
14193
|
}
|
|
14198
14194
|
r && (this.trackTraceIdMap[G.Audio] = m, this.reportAudioProfile()), a && (this.trackTraceIdMap[G.VideoSmall] = m), n && (this.trackTraceIdMap[G.VideoLarge] = m, this.reportVideoProfile()), o && (this.trackTraceIdMap[G.Screen] = m, this.reportScreenProfile());
|
|
14199
14195
|
const l = {
|
|
@@ -14273,7 +14269,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14273
14269
|
return O(this, null, function* () {
|
|
14274
14270
|
var o;
|
|
14275
14271
|
if (!e)
|
|
14276
|
-
throw new Y(
|
|
14272
|
+
throw new Y(te.ERR_INNER, "sync publish to room server failed because no publishInfo");
|
|
14277
14273
|
let r = e;
|
|
14278
14274
|
if (this.dc) {
|
|
14279
14275
|
const a = e, { tracks: u } = a, h = Gt(a, ["tracks"]);
|
|
@@ -14295,7 +14291,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14295
14291
|
}
|
|
14296
14292
|
refreshPushStreamUrl() {
|
|
14297
14293
|
return O(this, null, function* () {
|
|
14298
|
-
const e = new Y(
|
|
14294
|
+
const e = new Y(te.ERR_INNER, "refresh push stream url error"), t = this.url;
|
|
14299
14295
|
if (!t)
|
|
14300
14296
|
throw e;
|
|
14301
14297
|
const i = yield this.signalingManager.refreshUrl({
|
|
@@ -14331,8 +14327,8 @@ const Ne = (Tt = class extends Ha {
|
|
|
14331
14327
|
};
|
|
14332
14328
|
return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), m;
|
|
14333
14329
|
} catch (h) {
|
|
14334
|
-
let m =
|
|
14335
|
-
if (n && (this.audioPubState.setState(ge.AliRtcStateNoPublish), m =
|
|
14330
|
+
let m = te.ERR_SDK_PUBLISH_INVAILD;
|
|
14331
|
+
if (n && (this.audioPubState.setState(ge.AliRtcStateNoPublish), m = te.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a && (this.videoPubState.setState(ge.AliRtcStateNoPublish), m = te.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(ge.AliRtcStateNoPublish), m = te.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(ge.AliRtcStateNoPublish), m = te.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && r < 3)
|
|
14336
14332
|
return this.publishAdd(e, t, i, r + 1);
|
|
14337
14333
|
throw Y.fromError(h, m, "publish add failed");
|
|
14338
14334
|
}
|
|
@@ -14359,7 +14355,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14359
14355
|
} catch (i) {
|
|
14360
14356
|
throw Y.fromError(
|
|
14361
14357
|
i,
|
|
14362
|
-
|
|
14358
|
+
te.ERR_INNER,
|
|
14363
14359
|
`publish replace failed, vMsid: ${t == null ? void 0 : t.vMsid} aMsid: ${t == null ? void 0 : t.aMsid}`
|
|
14364
14360
|
);
|
|
14365
14361
|
}
|
|
@@ -14383,7 +14379,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14383
14379
|
try {
|
|
14384
14380
|
return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(ge.AliRtcStateNoPublish), e.video && (e.vMsid === G.VideoSmall ? this.videoSmallPubState.setState(ge.AliRtcStateNoPublish) : this.videoPubState.setState(ge.AliRtcStateNoPublish)), e.screen && this.screenPubState.setState(ge.AliRtcStateNoPublish), t.tracks = this.streamTracks, this.reportSelfDeviceStatus(), t;
|
|
14385
14381
|
} catch (i) {
|
|
14386
|
-
throw Y.fromError(i,
|
|
14382
|
+
throw Y.fromError(i, te.ERR_INNER, "publish delete tracks failed");
|
|
14387
14383
|
}
|
|
14388
14384
|
});
|
|
14389
14385
|
}
|
|
@@ -14391,7 +14387,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14391
14387
|
return O(this, null, function* () {
|
|
14392
14388
|
if (!this._isPublishing)
|
|
14393
14389
|
throw new Y(
|
|
14394
|
-
|
|
14390
|
+
te.ERR_INNER,
|
|
14395
14391
|
"publish stop failed, previous localStream is required for publishing stopping"
|
|
14396
14392
|
);
|
|
14397
14393
|
ae.info(`[${Tt.logName}]`, "publishStop", { url: this.url });
|
|
@@ -14416,7 +14412,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14416
14412
|
};
|
|
14417
14413
|
return this.syncPublishToRoomServer(a, {}, e), a;
|
|
14418
14414
|
} catch (t) {
|
|
14419
|
-
throw Y.fromError(t,
|
|
14415
|
+
throw Y.fromError(t, te.ERR_INNER, "publish stop failed");
|
|
14420
14416
|
}
|
|
14421
14417
|
});
|
|
14422
14418
|
}
|
|
@@ -14443,7 +14439,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14443
14439
|
}
|
|
14444
14440
|
return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(ge.AliRtcStateNoPublish), this.dc = void 0), this.slsReporter.reportUnpublish(this.callId || "", e, 0, ""), t;
|
|
14445
14441
|
} catch (i) {
|
|
14446
|
-
throw Y.fromError(i,
|
|
14442
|
+
throw Y.fromError(i, te.ERR_INNER, "unpublish failed");
|
|
14447
14443
|
}
|
|
14448
14444
|
});
|
|
14449
14445
|
}
|
|
@@ -14602,9 +14598,9 @@ const Ne = (Tt = class extends Ha {
|
|
|
14602
14598
|
return O(this, null, function* () {
|
|
14603
14599
|
var r;
|
|
14604
14600
|
if (!((r = this.parameter.data) != null && r.enablePubDataChannel))
|
|
14605
|
-
throw new Y(
|
|
14601
|
+
throw new Y(te.ERR_INNER, "data channel publish is not enabled");
|
|
14606
14602
|
if (!this.dc)
|
|
14607
|
-
throw new Y(
|
|
14603
|
+
throw new Y(te.ERR_INNER, "data channel is not ready");
|
|
14608
14604
|
const t = e.toBuffer(), i = k0(t, 1156);
|
|
14609
14605
|
i.forEach((n, a) => {
|
|
14610
14606
|
const o = new Hi(
|
|
@@ -14725,7 +14721,7 @@ Oe([
|
|
|
14725
14721
|
], Ne.prototype, "sendSEI", 1);
|
|
14726
14722
|
let pa = Ne;
|
|
14727
14723
|
var wt = /* @__PURE__ */ ((s) => (s.OPUS = "opus", s.H264 = "H264", s.UNKNOWN = "", s))(wt || {}), Se = /* @__PURE__ */ ((s) => (s[s.NotSubscribe = 0] = "NotSubscribe", s[s.Subscribing = 1] = "Subscribing", s[s.Subscribed = 2] = "Subscribed", s))(Se || {}), Ht = /* @__PURE__ */ ((s) => (s.VideoTrackEnded = "videoTrackEnded", s.AudioTrackEnded = "audioTrackEnded", s.ScreenTrackEnded = "screenTrackEnded", s))(Ht || {});
|
|
14728
|
-
const
|
|
14724
|
+
const P0 = (s) => {
|
|
14729
14725
|
const c = new MediaStream();
|
|
14730
14726
|
return c.addTrack(s), c;
|
|
14731
14727
|
}, qa = (s) => O(void 0, null, function* () {
|
|
@@ -14734,12 +14730,12 @@ const B0 = (s) => {
|
|
|
14734
14730
|
mediaStream: s
|
|
14735
14731
|
});
|
|
14736
14732
|
}), ai = (s) => O(void 0, null, function* () {
|
|
14737
|
-
const c =
|
|
14733
|
+
const c = P0(s);
|
|
14738
14734
|
return yield qa(c);
|
|
14739
14735
|
}), L0 = (s) => {
|
|
14740
14736
|
const { audio: c, video: e, screen: t } = s;
|
|
14741
14737
|
if (e && t)
|
|
14742
|
-
throw new Y(
|
|
14738
|
+
throw new Y(te.ERR_INNER, "create stream error, cannot create video && screen together");
|
|
14743
14739
|
return !(!e && !c && !t);
|
|
14744
14740
|
}, M0 = (s) => s === G.Audio || s === hs.Audio, N0 = (s) => s === G.VideoLarge || s === hs.VideoLarge, F0 = (s) => s === G.VideoSmall, O0 = (s) => s === G.Screen, V0 = (s) => s === G.Data;
|
|
14745
14741
|
var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, z0 = (s, c, e, t) => {
|
|
@@ -14747,7 +14743,7 @@ var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, z0 = (s, c
|
|
|
14747
14743
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
14748
14744
|
return t && i && U0(c, e, i), i;
|
|
14749
14745
|
};
|
|
14750
|
-
class
|
|
14746
|
+
class Bi extends Ge {
|
|
14751
14747
|
constructor() {
|
|
14752
14748
|
super();
|
|
14753
14749
|
_(this, "audioInfo", {
|
|
@@ -14985,10 +14981,10 @@ class Pi extends Ge {
|
|
|
14985
14981
|
/**
|
|
14986
14982
|
* @ignore
|
|
14987
14983
|
*/
|
|
14988
|
-
_(
|
|
14984
|
+
_(Bi, "logName", "RemoteStreamInfo");
|
|
14989
14985
|
z0([
|
|
14990
14986
|
j()
|
|
14991
|
-
],
|
|
14987
|
+
], Bi.prototype, "updateRemoteTrackSubState", 1);
|
|
14992
14988
|
class j0 {
|
|
14993
14989
|
constructor(c) {
|
|
14994
14990
|
_(this, "remoteUser");
|
|
@@ -15033,6 +15029,9 @@ class j0 {
|
|
|
15033
15029
|
get isScreenSubscribing() {
|
|
15034
15030
|
return this.remoteUser.isScreenSubscribing;
|
|
15035
15031
|
}
|
|
15032
|
+
get audioElement() {
|
|
15033
|
+
return this.remoteUser.getAudioElement();
|
|
15034
|
+
}
|
|
15036
15035
|
}
|
|
15037
15036
|
var W0 = Object.defineProperty, K0 = Object.getOwnPropertyDescriptor, Xe = (s, c, e, t) => {
|
|
15038
15037
|
for (var i = t > 1 ? void 0 : t ? K0(c, e) : c, r = s.length - 1, n; r >= 0; r--)
|
|
@@ -15161,10 +15160,13 @@ const Je = (_t = class extends Ha {
|
|
|
15161
15160
|
`receive data channel message, length: ${(r = i.data) == null ? void 0 : r.byteLength}`
|
|
15162
15161
|
), this.emit("remoteDataChannelMessage", this.uid, i));
|
|
15163
15162
|
});
|
|
15163
|
+
_(this, "onDataChannelError", (e) => {
|
|
15164
|
+
this.emit("occurError", Y.fromError(e, te.ERR_SDK_SUBSCRIBE_DATA_ERROR));
|
|
15165
|
+
});
|
|
15164
15166
|
_(this, "handleAudioPaused", () => {
|
|
15165
15167
|
this.emit("remoteAudioPlayError", "paused");
|
|
15166
15168
|
});
|
|
15167
|
-
this.streamInfo = new
|
|
15169
|
+
this.streamInfo = new Bi(), this.remoteUserInfo = new j0(this), this.parameter = f, this.streamInfo.on(et.Remote, (p) => {
|
|
15168
15170
|
this.emit(et.Remote, p, this.userId);
|
|
15169
15171
|
}), this.signalingManager = o, this.viewMap = (l = n[t]) != null ? l : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = a, this.localUser = u, this.audioSubState = new Zt(), this.audioSubState.on("change", (p, d, g) => {
|
|
15170
15172
|
this.emit("audioSubscribeStateChanged", this.uid, p, d, g);
|
|
@@ -15200,6 +15202,9 @@ const Je = (_t = class extends Ha {
|
|
|
15200
15202
|
setAudioMuted(e) {
|
|
15201
15203
|
this.audioMuted = e, this.toggleAudio(!e);
|
|
15202
15204
|
}
|
|
15205
|
+
getAudioElement() {
|
|
15206
|
+
return this.audioElement;
|
|
15207
|
+
}
|
|
15203
15208
|
setPlayoutVolume(e) {
|
|
15204
15209
|
if (this.playoutVolume = e, this.audioElement)
|
|
15205
15210
|
if (this.parameter.enableAudioContextPlayoutVolume)
|
|
@@ -15288,7 +15293,7 @@ const Je = (_t = class extends Ha {
|
|
|
15288
15293
|
setViewConfig(e, t) {
|
|
15289
15294
|
if (t !== ye.AliRtcVideoTrackScreen && t !== ye.AliRtcVideoTrackCamera)
|
|
15290
15295
|
throw new Y(
|
|
15291
|
-
|
|
15296
|
+
te.ERR_INVALID_ARGUMENTS,
|
|
15292
15297
|
"track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
|
|
15293
15298
|
);
|
|
15294
15299
|
e ? ns(e).forEach((r) => {
|
|
@@ -15308,7 +15313,7 @@ const Je = (_t = class extends Ha {
|
|
|
15308
15313
|
updateRemoteTracks(e, t, i, r) {
|
|
15309
15314
|
return O(this, null, function* () {
|
|
15310
15315
|
var a;
|
|
15311
|
-
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t != null ? t : ""), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new
|
|
15316
|
+
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t != null ? t : ""), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new Bi()), (a = this.streamInfo) == null ? void 0 : a.updateTracks(r);
|
|
15312
15317
|
});
|
|
15313
15318
|
}
|
|
15314
15319
|
subscribe(r, n) {
|
|
@@ -15381,8 +15386,8 @@ const Je = (_t = class extends Ha {
|
|
|
15381
15386
|
} catch (m) {
|
|
15382
15387
|
const f = (/* @__PURE__ */ new Date()).getTime() - r;
|
|
15383
15388
|
e.audio && this.audioSubState.setState(ke.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(ke.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(ke.AliRtcStateNoSubscribe), m && (m.message = `user(${this.uid}) subscribe error, ${(m == null ? void 0 : m.message) || ""}`);
|
|
15384
|
-
let l =
|
|
15385
|
-
e.audio && (l =
|
|
15389
|
+
let l = te.ERR_INNER;
|
|
15390
|
+
e.audio && (l = te.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === G.VideoSmall ? l = te.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : l = te.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (l = te.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
|
|
15386
15391
|
((h = this.localUser) == null ? void 0 : h.callId) || "",
|
|
15387
15392
|
this.callId,
|
|
15388
15393
|
!!e.video && e.vMsid === G.VideoLarge,
|
|
@@ -15442,7 +15447,7 @@ const Je = (_t = class extends Ha {
|
|
|
15442
15447
|
vMsid: e.vMsid
|
|
15443
15448
|
}), o;
|
|
15444
15449
|
} catch (t) {
|
|
15445
|
-
throw Y.fromError(t,
|
|
15450
|
+
throw Y.fromError(t, te.ERR_INNER, "subscribe delete failed");
|
|
15446
15451
|
}
|
|
15447
15452
|
});
|
|
15448
15453
|
}
|
|
@@ -15504,7 +15509,7 @@ const Je = (_t = class extends Ha {
|
|
|
15504
15509
|
return this.callId = "", u;
|
|
15505
15510
|
} catch (u) {
|
|
15506
15511
|
if (((o = (a = (n = (r = u == null ? void 0 : u.extraInfo) == null ? void 0 : r.parsedData) == null ? void 0 : n.streams) == null ? void 0 : a[0]) == null ? void 0 : o.res_code) !== 404)
|
|
15507
|
-
throw Y.fromError(u,
|
|
15512
|
+
throw Y.fromError(u, te.ERR_INNER, "subscribe stop failed");
|
|
15508
15513
|
}
|
|
15509
15514
|
});
|
|
15510
15515
|
}
|
|
@@ -15547,14 +15552,14 @@ const Je = (_t = class extends Ha {
|
|
|
15547
15552
|
}
|
|
15548
15553
|
!this.streamInfo.hasAudio && !this.streamInfo.hasVideo && !this.streamInfo.hasScreen || (this.dataSubState.setState(ke.AliRtcStateSubscribing), this.rtsManager.subscribeAddDataChannel(this.streamUrl).then((e) => {
|
|
15549
15554
|
if (e) {
|
|
15550
|
-
this.dc = e, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dc.on("message", this.onDataChannelMessage), this.dataSubState.setState(ke.AliRtcStateSubscribed), this.streamInfo.updateRemoteTrackSubState({
|
|
15555
|
+
this.dc = e, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dc.on("message", this.onDataChannelMessage), this.dc.on("error", this.onDataChannelError), this.dataSubState.setState(ke.AliRtcStateSubscribed), this.streamInfo.updateRemoteTrackSubState({
|
|
15551
15556
|
data: !0
|
|
15552
15557
|
});
|
|
15553
15558
|
return;
|
|
15554
15559
|
} else
|
|
15555
15560
|
throw new Error("no dc founded");
|
|
15556
15561
|
}).catch((e) => {
|
|
15557
|
-
const t = Y.fromError(e,
|
|
15562
|
+
const t = Y.fromError(e, te.ERR_INNER, "subscribe data failed");
|
|
15558
15563
|
this.emit("remoteSubscribeError", t), this.dataSubState.setState(ke.AliRtcStateNoSubscribe);
|
|
15559
15564
|
}));
|
|
15560
15565
|
}
|
|
@@ -15564,7 +15569,7 @@ const Je = (_t = class extends Ha {
|
|
|
15564
15569
|
this.rtsManager.subscribeStopDatachannel(this.streamUrl, this.dc);
|
|
15565
15570
|
} catch (e) {
|
|
15566
15571
|
}
|
|
15567
|
-
this.dcMsgWaitingPieces = [], this.dc.off("message", this.onDataChannelMessage), this.dataSubState.setState(ke.AliRtcStateNoSubscribe), this.dc = void 0, this.streamInfo.updateRemoteTrackSubState({
|
|
15572
|
+
this.dcMsgWaitingPieces = [], this.dc.off("message", this.onDataChannelMessage), this.dc.off("error", this.onDataChannelError), this.dataSubState.setState(ke.AliRtcStateNoSubscribe), this.dc = void 0, this.streamInfo.updateRemoteTrackSubState({
|
|
15568
15573
|
data: !1
|
|
15569
15574
|
});
|
|
15570
15575
|
}
|
|
@@ -15665,7 +15670,7 @@ const Je = (_t = class extends Ha {
|
|
|
15665
15670
|
});
|
|
15666
15671
|
}
|
|
15667
15672
|
stopPlayAudio() {
|
|
15668
|
-
this.audioElement && (this.audioElement.pause(), this.audioElement.srcObject = null, this.audioElement.removeEventListener("pause", this.handleAudioPaused)
|
|
15673
|
+
this.audioElement && (this.audioElement.pause(), this.audioElement.srcObject = null, this.audioElement.removeEventListener("pause", this.handleAudioPaused));
|
|
15669
15674
|
}
|
|
15670
15675
|
playAll(e = !1, t = !1) {
|
|
15671
15676
|
e ? (this.viewMap.screenViews || []).forEach((i) => {
|
|
@@ -15716,37 +15721,46 @@ const Je = (_t = class extends Ha {
|
|
|
15716
15721
|
}
|
|
15717
15722
|
getStats() {
|
|
15718
15723
|
return O(this, null, function* () {
|
|
15719
|
-
var i, r;
|
|
15724
|
+
var i, r, n, a, o;
|
|
15720
15725
|
const e = [];
|
|
15721
15726
|
if (this.isAudioSubscribing) {
|
|
15722
|
-
const
|
|
15723
|
-
|
|
15727
|
+
const u = yield this.rtsManager.getSubscribeAudioStats(this.streamUrl);
|
|
15728
|
+
u && e.push({ uid: this.uid, track: si.AliRtcAudioTrackMic, stats: u });
|
|
15724
15729
|
}
|
|
15725
15730
|
const t = [];
|
|
15726
15731
|
if ((i = this.streamInfo) != null && i.isVideoLargeSubscribed) {
|
|
15727
|
-
const
|
|
15728
|
-
|
|
15732
|
+
const u = yield this.rtsManager.getSubscribeVideoStats(
|
|
15733
|
+
this.streamUrl,
|
|
15734
|
+
((r = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : r.msid) || G.VideoLarge
|
|
15735
|
+
);
|
|
15736
|
+
u && t.push({
|
|
15729
15737
|
uid: this.uid,
|
|
15730
15738
|
track: ye.AliRtcVideoTrackCamera,
|
|
15731
15739
|
streamType: qe.AliRtcVideoStreamTypeHigh,
|
|
15732
|
-
stats:
|
|
15740
|
+
stats: u
|
|
15733
15741
|
});
|
|
15734
15742
|
}
|
|
15735
|
-
if ((
|
|
15736
|
-
const
|
|
15737
|
-
|
|
15743
|
+
if ((n = this.streamInfo) != null && n.isVideoSmallSubscribed) {
|
|
15744
|
+
const u = yield this.rtsManager.getSubscribeVideoStats(
|
|
15745
|
+
this.streamUrl,
|
|
15746
|
+
((a = this.streamInfo.getVideoSmallInfo()) == null ? void 0 : a.msid) || G.VideoSmall
|
|
15747
|
+
);
|
|
15748
|
+
u && t.push({
|
|
15738
15749
|
uid: this.uid,
|
|
15739
15750
|
track: ye.AliRtcVideoTrackCamera,
|
|
15740
15751
|
streamType: qe.AliRtcVideoStreamTypeLow,
|
|
15741
|
-
stats:
|
|
15752
|
+
stats: u
|
|
15742
15753
|
});
|
|
15743
15754
|
}
|
|
15744
15755
|
if (this.isScreenSubscribing) {
|
|
15745
|
-
const
|
|
15746
|
-
|
|
15756
|
+
const u = yield this.rtsManager.getSubscribeVideoStats(
|
|
15757
|
+
this.streamUrl,
|
|
15758
|
+
((o = this.streamInfo.getScreenInfo()) == null ? void 0 : o.msid) || G.Screen
|
|
15759
|
+
);
|
|
15760
|
+
u && t.push({
|
|
15747
15761
|
uid: this.uid,
|
|
15748
15762
|
track: ye.AliRtcVideoTrackScreen,
|
|
15749
|
-
stats:
|
|
15763
|
+
stats: u
|
|
15750
15764
|
});
|
|
15751
15765
|
}
|
|
15752
15766
|
return { audio: e, video: t };
|
|
@@ -15953,7 +15967,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
15953
15967
|
this.setConnected(!0);
|
|
15954
15968
|
}
|
|
15955
15969
|
}), this.rts.on("datachannelStatusChange", (e) => {
|
|
15956
|
-
ae.event(`[${Qe.logName}]`, "rts datachannelStatusChange to:", e.status), e.status ===
|
|
15970
|
+
ae.event(`[${Qe.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === Bs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === Bs.DATACHANNEL_STATUS_CLOSE && (this.dcConnectingPromise = new Promise((t) => {
|
|
15957
15971
|
this.dcResolve = t;
|
|
15958
15972
|
}));
|
|
15959
15973
|
}), this.rts.on("receivedSEI", (e) => {
|
|
@@ -16171,7 +16185,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
16171
16185
|
stream: t,
|
|
16172
16186
|
updateSourceStream: !1
|
|
16173
16187
|
}, p)
|
|
16174
|
-
])) : Promise.reject(new Y(
|
|
16188
|
+
])) : Promise.reject(new Y(te.ERR_INNER, "rts not connected"));
|
|
16175
16189
|
}),
|
|
16176
16190
|
ma,
|
|
16177
16191
|
0,
|
|
@@ -16510,7 +16524,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
16510
16524
|
const { options: o, remoteUser: u } = e;
|
|
16511
16525
|
if (o.video && o.screen)
|
|
16512
16526
|
throw new Y(
|
|
16513
|
-
|
|
16527
|
+
te.ERR_INNER,
|
|
16514
16528
|
"subscribe error, video and screen cannot be subscribed at the same time"
|
|
16515
16529
|
);
|
|
16516
16530
|
this.connecting && (yield this.connectingPromise);
|
|
@@ -16958,7 +16972,7 @@ const dt = (zt = class extends Ge {
|
|
|
16958
16972
|
_(this, "_publishLocalScreenStreamEnabled", !0);
|
|
16959
16973
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
16960
16974
|
const i = (r) => O(this, null, function* () {
|
|
16961
|
-
if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.
|
|
16975
|
+
if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.2-beta.0")) {
|
|
16962
16976
|
console.warn(`${r.name} is not supported!!!`), r.emit("unsupported");
|
|
16963
16977
|
return;
|
|
16964
16978
|
}
|
|
@@ -17124,7 +17138,7 @@ const dt = (zt = class extends Ge {
|
|
|
17124
17138
|
const a = yield this.publishStreams;
|
|
17125
17139
|
try {
|
|
17126
17140
|
if (!a.audio && !a.video && !a.videoSmall && !a.screen)
|
|
17127
|
-
throw ae.error(`[${zt.logName}]`, "no tracks founded"), new Y(
|
|
17141
|
+
throw ae.error(`[${zt.logName}]`, "no tracks founded"), new Y(te.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
|
|
17128
17142
|
const f = new MediaStream();
|
|
17129
17143
|
(o = a.audio) != null && o.audioTrack && f.addTrack(a.audio.audioTrack), (u = a.video) != null && u.videoTrack ? (f.addTrack(a.video.videoTrack), r = a.videoSmall, n = a.screen) : (h = a.screen) != null && h.videoTrack && (i = G.Screen, f.addTrack((m = a.screen) == null ? void 0 : m.videoTrack), t = !0), e = yield qa(f), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
|
|
17130
17144
|
} catch (f) {
|
|
@@ -18187,7 +18201,9 @@ class Ze extends Ge {
|
|
|
18187
18201
|
}), r.on("remoteVideoPlayError", (n, a) => {
|
|
18188
18202
|
this.emit("remoteVideoPlayError", n, a);
|
|
18189
18203
|
}), r.on("remoteSubscribeError", (n) => {
|
|
18190
|
-
this.emit("remoteSubscribeError", n);
|
|
18204
|
+
this.emit("remoteSubscribeError", n, r.userId);
|
|
18205
|
+
}), r.on("occurError", (n) => {
|
|
18206
|
+
this.emit("occurError", n, r.userId);
|
|
18191
18207
|
}), r.on("remoteDataChannelMessage", (n, a) => {
|
|
18192
18208
|
this.emit("remoteDataChannelMessage", n, a);
|
|
18193
18209
|
}), r.setWantSubAudio(this.autoSubAudio && this.wantSubAudio), r.setWantSubVideo(this.autoSubVideo && this.wantSubVideo), r.setWantSubScreen(this.autoSubScreen && this.wantSubScreen), r.setRemoteDefaultVideoStreamType(this.defaultStreamType), r.setAudioMuted(this.audioMuted), (this.autoSubAudio || this.autoSubVideo || this.autoSubScreen) && r.updateSubscribe(i), r;
|
|
@@ -18251,19 +18267,19 @@ class Ze extends Ge {
|
|
|
18251
18267
|
updateAudioWant(e, t) {
|
|
18252
18268
|
const i = this.userMap[e];
|
|
18253
18269
|
if (!i)
|
|
18254
|
-
throw new Y(
|
|
18270
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
18255
18271
|
i.setWantSubAudio(t), t ? i.updateSubscribe(Te.User) : i.stopSubscribe({ audio: !0 });
|
|
18256
18272
|
}
|
|
18257
18273
|
updateVideoWant(e, t) {
|
|
18258
18274
|
const i = this.userMap[e];
|
|
18259
18275
|
if (!i)
|
|
18260
|
-
throw new Y(
|
|
18276
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
18261
18277
|
i.setWantSubVideo(t), t ? i.updateSubscribe(Te.User) : i.stopSubscribe({ video: !0 });
|
|
18262
18278
|
}
|
|
18263
18279
|
updateScreenWant(e, t) {
|
|
18264
18280
|
const i = this.userMap[e];
|
|
18265
18281
|
if (!i)
|
|
18266
|
-
throw new Y(
|
|
18282
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
18267
18283
|
i.setWantSubScreen(t), t ? i.updateSubscribe(Te.User) : i.stopSubscribe({ screen: !0 });
|
|
18268
18284
|
}
|
|
18269
18285
|
stopIndication() {
|
|
@@ -18426,9 +18442,9 @@ class bu {
|
|
|
18426
18442
|
},
|
|
18427
18443
|
body: JSON.stringify(e)
|
|
18428
18444
|
}).then((h) => h.status !== 200 ? (this.slsReporter.reportTranscodingError(h.status, e.taskid || ""), Promise.reject(
|
|
18429
|
-
new Y(
|
|
18445
|
+
new Y(te.ERR_INNER, `transcoding request failed, status: ${h.status}`)
|
|
18430
18446
|
)) : h).catch((h) => Promise.reject(
|
|
18431
|
-
new Y(
|
|
18447
|
+
new Y(te.ERR_INNER, `transcoding request failed, err: ${h.message}`)
|
|
18432
18448
|
));
|
|
18433
18449
|
}
|
|
18434
18450
|
setAuthInfo(c) {
|
|
@@ -18527,19 +18543,19 @@ class Es {
|
|
|
18527
18543
|
*/
|
|
18528
18544
|
static checkAuthInfo(c) {
|
|
18529
18545
|
if (!c)
|
|
18530
|
-
return new Y(
|
|
18546
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no authInfo founded");
|
|
18531
18547
|
if (!c.appId)
|
|
18532
|
-
return new Y(
|
|
18548
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no appId founded");
|
|
18533
18549
|
if (!c.channelId)
|
|
18534
|
-
return new Y(
|
|
18550
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no channelId founded");
|
|
18535
18551
|
if (!c.userId)
|
|
18536
|
-
return new Y(
|
|
18552
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
|
|
18537
18553
|
if (c.timestamp) {
|
|
18538
18554
|
if (!Es.checkNumber(c.timestamp))
|
|
18539
|
-
return new Y(
|
|
18555
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
|
|
18540
18556
|
} else
|
|
18541
|
-
return new Y(
|
|
18542
|
-
return c.token ? null : new Y(
|
|
18557
|
+
return new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
|
|
18558
|
+
return c.token ? null : new Y(te.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no token founded");
|
|
18543
18559
|
}
|
|
18544
18560
|
/**
|
|
18545
18561
|
* 检测是否是MediaStreamTrack类型
|
|
@@ -18813,8 +18829,8 @@ const ue = (le = class extends Ge {
|
|
|
18813
18829
|
this.emit("dataPublishStateChanged", f, l, p, (d = this.channel) != null ? d : "");
|
|
18814
18830
|
});
|
|
18815
18831
|
}
|
|
18816
|
-
occurError(e) {
|
|
18817
|
-
this.emit("onOccurError", e), this.emit("occurError", e);
|
|
18832
|
+
occurError(e, t) {
|
|
18833
|
+
this.emit("onOccurError", e, t), this.emit("occurError", e, t);
|
|
18818
18834
|
}
|
|
18819
18835
|
/**
|
|
18820
18836
|
* 监听 UM 事件
|
|
@@ -18870,8 +18886,10 @@ const ue = (le = class extends Ge {
|
|
|
18870
18886
|
this.emit("rtcRemoteAudioStats", e);
|
|
18871
18887
|
}), this.bizControl.on("rtcRemoteVideoStats", (e) => {
|
|
18872
18888
|
this.emit("rtcRemoteVideoStats", e);
|
|
18873
|
-
}), this.bizControl.on("remoteSubscribeError", (e) => {
|
|
18874
|
-
this.occurError(e), this.slsReporter.reportError(e);
|
|
18889
|
+
}), this.bizControl.on("remoteSubscribeError", (e, t) => {
|
|
18890
|
+
this.occurError(e, t), this.slsReporter.reportError(e);
|
|
18891
|
+
}), this.bizControl.on("occurError", (e, t) => {
|
|
18892
|
+
this.occurError(e, t), this.slsReporter.reportError(e);
|
|
18875
18893
|
}), this.bizControl.on("remoteDataChannelMessage", (e, t) => {
|
|
18876
18894
|
this.emit("dataChannelMsg", e, t);
|
|
18877
18895
|
});
|
|
@@ -19026,7 +19044,7 @@ const ue = (le = class extends Ge {
|
|
|
19026
19044
|
return O(this, null, function* () {
|
|
19027
19045
|
const t = this.bizControl.getRemoteUser(e);
|
|
19028
19046
|
if (!t)
|
|
19029
|
-
throw new Y(
|
|
19047
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19030
19048
|
t.restore(), t.updateSubscribe(Te.Retry);
|
|
19031
19049
|
});
|
|
19032
19050
|
}
|
|
@@ -19059,7 +19077,7 @@ const ue = (le = class extends Ge {
|
|
|
19059
19077
|
// @ts-ignore
|
|
19060
19078
|
hadPushStream(e) {
|
|
19061
19079
|
if (!(this.publisher && e))
|
|
19062
|
-
throw new Y(
|
|
19080
|
+
throw new Y(te.ERR_INNER, "stream is not publishing");
|
|
19063
19081
|
}
|
|
19064
19082
|
/**
|
|
19065
19083
|
* 获取当前使用的麦克风 deviceId
|
|
@@ -19075,7 +19093,7 @@ const ue = (le = class extends Ge {
|
|
|
19075
19093
|
De.AliRtcConnectionStatusDisconnected,
|
|
19076
19094
|
De.AliRtcConnectionStatusFailed
|
|
19077
19095
|
].includes(this.connectState))
|
|
19078
|
-
throw new Y(
|
|
19096
|
+
throw new Y(te.ERR_INNER, "cannot set channel profile in call");
|
|
19079
19097
|
this.channelProfile = e, this.channelProfile === It.AliRtcSdkCommunication && (this.clientRole = Ft.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
|
|
19080
19098
|
}
|
|
19081
19099
|
startAndPublishDefaultDevices(e) {
|
|
@@ -19091,7 +19109,7 @@ const ue = (le = class extends Ge {
|
|
|
19091
19109
|
} catch (f) {
|
|
19092
19110
|
ae.warn(`[${le.logName}]`, "startDefaultCamera failed", f.code, f.message), f instanceof Y && this.occurError(f), this.occurError(
|
|
19093
19111
|
new Y(
|
|
19094
|
-
|
|
19112
|
+
te.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
|
|
19095
19113
|
`auto start video failed, ${f.message || ""}`
|
|
19096
19114
|
)
|
|
19097
19115
|
);
|
|
@@ -19101,7 +19119,7 @@ const ue = (le = class extends Ge {
|
|
|
19101
19119
|
} catch (f) {
|
|
19102
19120
|
ae.warn(`[${le.logName}]`, "startDefaultAUdio failed", f.code, f.message), f instanceof Y && this.occurError(f), this.occurError(
|
|
19103
19121
|
new Y(
|
|
19104
|
-
|
|
19122
|
+
te.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
|
|
19105
19123
|
`auto start audio failed, ${f.message || ""}`
|
|
19106
19124
|
)
|
|
19107
19125
|
);
|
|
@@ -19113,7 +19131,7 @@ const ue = (le = class extends Ge {
|
|
|
19113
19131
|
yield (m = this.publisher) == null ? void 0 : m.startPublish(!1, e);
|
|
19114
19132
|
} catch (f) {
|
|
19115
19133
|
const l = [];
|
|
19116
|
-
n != null && n.audio && l.push(
|
|
19134
|
+
n != null && n.audio && l.push(te.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), n != null && n.video && l.push(te.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), l.forEach((p) => {
|
|
19117
19135
|
this.occurError(new Y(p, `auto publish stream failed, ${f.message || ""}`));
|
|
19118
19136
|
});
|
|
19119
19137
|
}
|
|
@@ -19127,7 +19145,7 @@ const ue = (le = class extends Ge {
|
|
|
19127
19145
|
return;
|
|
19128
19146
|
if (!Object.values(Ft).includes(e))
|
|
19129
19147
|
throw new Y(
|
|
19130
|
-
|
|
19148
|
+
te.ERR_INVALID_ARGUMENTS,
|
|
19131
19149
|
`set client role error, role value(${e}) is invalid`
|
|
19132
19150
|
);
|
|
19133
19151
|
if (this.clientRole === e)
|
|
@@ -19147,12 +19165,12 @@ const ue = (le = class extends Ge {
|
|
|
19147
19165
|
}
|
|
19148
19166
|
setAudioOnlyMode(e) {
|
|
19149
19167
|
if (this.isInCall())
|
|
19150
|
-
throw new Y(
|
|
19168
|
+
throw new Y(te.ERR_INNER, "can not change audioOnly mode in call");
|
|
19151
19169
|
this._audioOnlyMode = e;
|
|
19152
19170
|
}
|
|
19153
19171
|
setAudioRedEnabled(e) {
|
|
19154
19172
|
if (this.isInCall())
|
|
19155
|
-
throw new Y(
|
|
19173
|
+
throw new Y(te.ERR_INNER, "can not change audioRedEnabled in call");
|
|
19156
19174
|
this.bizControl.setAudioRedEnabled(e);
|
|
19157
19175
|
}
|
|
19158
19176
|
/**
|
|
@@ -19187,7 +19205,7 @@ const ue = (le = class extends Ge {
|
|
|
19187
19205
|
token: h.token
|
|
19188
19206
|
};
|
|
19189
19207
|
} catch (h) {
|
|
19190
|
-
throw new Y(
|
|
19208
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
|
|
19191
19209
|
}
|
|
19192
19210
|
else
|
|
19193
19211
|
i = e;
|
|
@@ -19216,7 +19234,7 @@ const ue = (le = class extends Ge {
|
|
|
19216
19234
|
h.updateSubscribe(Te.Join);
|
|
19217
19235
|
});
|
|
19218
19236
|
} else {
|
|
19219
|
-
const h = new Y(
|
|
19237
|
+
const h = new Y(te.ERR_JOIN_ALREADY_JOINED, "already joined");
|
|
19220
19238
|
throw this.connectState === De.AliRtcConnectionStatusConnecting && (h.message = "Repeated operation during login"), this.slsReporter.reportJoin(h.code, n, ""), h;
|
|
19221
19239
|
}
|
|
19222
19240
|
});
|
|
@@ -19264,7 +19282,7 @@ const ue = (le = class extends Ge {
|
|
|
19264
19282
|
token: h.token
|
|
19265
19283
|
};
|
|
19266
19284
|
} catch (h) {
|
|
19267
|
-
throw new Y(
|
|
19285
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
|
|
19268
19286
|
}
|
|
19269
19287
|
else
|
|
19270
19288
|
t = e;
|
|
@@ -19314,7 +19332,7 @@ const ue = (le = class extends Ge {
|
|
|
19314
19332
|
subscribeRemoteAudioStream(e, t) {
|
|
19315
19333
|
if (t && !this.bizControl.isWantSubAudio)
|
|
19316
19334
|
throw new Y(
|
|
19317
|
-
|
|
19335
|
+
te.ERR_INVALID_ARGUMENTS,
|
|
19318
19336
|
"subscribeAllRemoteAudioStreams(true) must be called first"
|
|
19319
19337
|
);
|
|
19320
19338
|
this.bizControl.updateAudioWant(e, t);
|
|
@@ -19322,13 +19340,13 @@ const ue = (le = class extends Ge {
|
|
|
19322
19340
|
resumeRemoteAudioStream(e) {
|
|
19323
19341
|
const t = this.bizControl.getRemoteUser(e);
|
|
19324
19342
|
if (!t)
|
|
19325
|
-
throw new Y(
|
|
19343
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19326
19344
|
t.resumeAudio();
|
|
19327
19345
|
}
|
|
19328
19346
|
stopRemoteAudioPlay(e) {
|
|
19329
19347
|
const t = this.bizControl.getRemoteUser(e);
|
|
19330
19348
|
if (!t)
|
|
19331
|
-
throw new Y(
|
|
19349
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19332
19350
|
t.stopPlayAudio();
|
|
19333
19351
|
}
|
|
19334
19352
|
publishLocalVideoStream(e) {
|
|
@@ -19363,7 +19381,7 @@ const ue = (le = class extends Ge {
|
|
|
19363
19381
|
subscribeRemoteMediaStream(e, t, i, r) {
|
|
19364
19382
|
const n = this.bizControl.getRemoteUser(e);
|
|
19365
19383
|
if (!n)
|
|
19366
|
-
throw new Y(
|
|
19384
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19367
19385
|
i && (t === ye.AliRtcVideoTrackScreen || t === ye.AliRtcVideoTrackBoth) ? n.setWantSubScreen(!0) : n.setWantSubScreen(!1), i && (t === ye.AliRtcVideoTrackCamera || t === ye.AliRtcVideoTrackBoth) ? n.setWantSubVideo(!0) : n.setWantSubVideo(!1), n.setWantSubAudio(r), n.updateSubscribe(Te.User);
|
|
19368
19386
|
}
|
|
19369
19387
|
resumeRemoteMediaStream(e, t) {
|
|
@@ -19483,7 +19501,7 @@ const ue = (le = class extends Ge {
|
|
|
19483
19501
|
}
|
|
19484
19502
|
setAudioShareVolume(e) {
|
|
19485
19503
|
if (typeof e != "number")
|
|
19486
|
-
throw new Y(
|
|
19504
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "volume must be a number");
|
|
19487
19505
|
this.bizControl.setAudioVolume({
|
|
19488
19506
|
screen: Math.max(0, Math.min(e, 400)) / 100
|
|
19489
19507
|
});
|
|
@@ -19498,7 +19516,7 @@ const ue = (le = class extends Ge {
|
|
|
19498
19516
|
muteRemoteAudioPlaying(e, t = !1) {
|
|
19499
19517
|
const i = this.bizControl.getRemoteUser(e);
|
|
19500
19518
|
if (!i)
|
|
19501
|
-
throw new Y(
|
|
19519
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19502
19520
|
i.setAudioMuted(t);
|
|
19503
19521
|
}
|
|
19504
19522
|
muteAllRemoteAudioPlaying(e = !1) {
|
|
@@ -19538,22 +19556,22 @@ const ue = (le = class extends Ge {
|
|
|
19538
19556
|
}
|
|
19539
19557
|
setRecordingVolume(e) {
|
|
19540
19558
|
if (typeof e != "number")
|
|
19541
|
-
throw new Y(
|
|
19559
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "volume must be a number");
|
|
19542
19560
|
this.bizControl.setAudioVolume({
|
|
19543
19561
|
audio: Math.max(0, Math.min(e, 400)) / 100
|
|
19544
19562
|
});
|
|
19545
19563
|
}
|
|
19546
19564
|
setPlayoutVolume(e) {
|
|
19547
19565
|
if (typeof e != "number")
|
|
19548
|
-
throw new Y(
|
|
19566
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "volume must be a number");
|
|
19549
19567
|
this.bizControl.setPlayoutVolume(Math.max(0, Math.min(e, 100)) / 100);
|
|
19550
19568
|
}
|
|
19551
19569
|
setRemoteAudioVolume(e, t) {
|
|
19552
19570
|
const i = this.bizControl.getRemoteUser(e);
|
|
19553
19571
|
if (!i)
|
|
19554
|
-
throw new Y(
|
|
19572
|
+
throw new Y(te.ERR_INNER, `no remote user(${e}) founded`);
|
|
19555
19573
|
if (typeof t != "number")
|
|
19556
|
-
throw new Y(
|
|
19574
|
+
throw new Y(te.ERR_INVALID_ARGUMENTS, "volume must be a number");
|
|
19557
19575
|
i.setPlayoutVolume(Math.max(0, Math.min(t, 100)) / 100);
|
|
19558
19576
|
}
|
|
19559
19577
|
setAudioProfile(e) {
|
|
@@ -19575,7 +19593,7 @@ const ue = (le = class extends Ge {
|
|
|
19575
19593
|
return O(this, null, function* () {
|
|
19576
19594
|
var i, r, n;
|
|
19577
19595
|
if (this._audioOnlyMode)
|
|
19578
|
-
throw new Y(
|
|
19596
|
+
throw new Y(te.ERR_INNER, "Cannot set local view in audio only mode");
|
|
19579
19597
|
(i = this.bizControl) == null || i.setLocalViewConfig(e, t), t === ye.AliRtcVideoTrackCamera && ((r = this.publisher) != null && r.hasCamera) ? yield this.startPreview() : t === ye.AliRtcVideoTrackScreen && ((n = this.publisher) != null && n.hasScreenShare) && (yield this.startPreviewScreen());
|
|
19580
19598
|
});
|
|
19581
19599
|
}
|
|
@@ -19608,7 +19626,7 @@ const ue = (le = class extends Ge {
|
|
|
19608
19626
|
return O(this, null, function* () {
|
|
19609
19627
|
var t, i, r, n, a, o, u, h, m, f, l;
|
|
19610
19628
|
if (this._audioOnlyMode)
|
|
19611
|
-
throw new Y(
|
|
19629
|
+
throw new Y(te.ERR_INNER, "Cannot enable local video in audio only mode");
|
|
19612
19630
|
e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((a = (n = (r = this.publisher) == null ? void 0 : r.publishStreams) == null ? void 0 : n.video) == null || a.disableVideo(), (m = (h = (u = (o = this.publisher) == null ? void 0 : o.publishStreams) == null ? void 0 : u.video) == null ? void 0 : h.videoTrack) == null || m.stop()), yield (f = this.publisher) == null ? void 0 : f.startCameraCapture()) : yield (l = this.publisher) == null ? void 0 : l.stopCameraCapture();
|
|
19613
19631
|
});
|
|
19614
19632
|
}
|
|
@@ -19642,7 +19660,7 @@ const ue = (le = class extends Ge {
|
|
|
19642
19660
|
return O(this, null, function* () {
|
|
19643
19661
|
var r, n, a, o, u, h, m, f, l, p, d, g, v;
|
|
19644
19662
|
if (this._audioOnlyMode)
|
|
19645
|
-
throw new Y(
|
|
19663
|
+
throw new Y(te.ERR_INNER, "Cannot switch camera in audio only mode");
|
|
19646
19664
|
const i = {};
|
|
19647
19665
|
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((r = this.publisher) == null ? void 0 : r.cameraDirection) === "environment" ? gi.CAMERA_FRONT : gi.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((a = this.publisher) != null && a.cameraCaptureDisabled)) {
|
|
19648
19666
|
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((f = (m = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : m.video) == null || f.disableVideo(), (g = (d = (p = (l = this.publisher) == null ? void 0 : l.publishStreams) == null ? void 0 : p.video) == null ? void 0 : d.videoTrack) == null || g.stop());
|
|
@@ -19665,7 +19683,7 @@ const ue = (le = class extends Ge {
|
|
|
19665
19683
|
return O(this, null, function* () {
|
|
19666
19684
|
var e, t;
|
|
19667
19685
|
if (this._audioOnlyMode)
|
|
19668
|
-
throw new Y(
|
|
19686
|
+
throw new Y(te.ERR_INNER, "Cannot start preview camera in audio only mode");
|
|
19669
19687
|
(e = this.publisher) != null && e.hasCamera || (yield this.enableLocalVideo(!0)), yield (t = this.publisher) == null ? void 0 : t.previewAll({
|
|
19670
19688
|
screen: !1
|
|
19671
19689
|
});
|
|
@@ -19675,7 +19693,7 @@ const ue = (le = class extends Ge {
|
|
|
19675
19693
|
return O(this, null, function* () {
|
|
19676
19694
|
var t, i;
|
|
19677
19695
|
if (this._audioOnlyMode)
|
|
19678
|
-
throw new Y(
|
|
19696
|
+
throw new Y(te.ERR_INNER, "Cannot start preview screen share in audio only mode");
|
|
19679
19697
|
(t = this.publisher) != null && t.hasScreenShare || (yield this.startScreenShare(e)), yield (i = this.publisher) == null ? void 0 : i.previewAll({
|
|
19680
19698
|
primary: !1
|
|
19681
19699
|
});
|
|
@@ -19768,7 +19786,7 @@ const ue = (le = class extends Ge {
|
|
|
19768
19786
|
return O(this, null, function* () {
|
|
19769
19787
|
var r;
|
|
19770
19788
|
if (!this.publisher || !this.isPublishing)
|
|
19771
|
-
throw new Y(
|
|
19789
|
+
throw new Y(te.ERR_INNER, "you should publish first");
|
|
19772
19790
|
return this.slsReporter.reportSEIMessage(i, e.byteLength, t, 0, !1), (r = this.publisher) == null ? void 0 : r.sendSEI(e, t, i);
|
|
19773
19791
|
});
|
|
19774
19792
|
}
|
|
@@ -20135,7 +20153,7 @@ export {
|
|
|
20135
20153
|
$a as AliRtcDataMsgType,
|
|
20136
20154
|
He as AliRtcEngineLocalDeviceExceptionType,
|
|
20137
20155
|
St as AliRtcEngineLocalDeviceType,
|
|
20138
|
-
|
|
20156
|
+
te as AliRtcErrorCode,
|
|
20139
20157
|
gs as AliRtcLiveTranscodingAudioSampleRate,
|
|
20140
20158
|
Fa as AliRtcLiveTranscodingCropMode,
|
|
20141
20159
|
Ua as AliRtcLiveTranscodingEncodeParam,
|