aliyun-rtc-sdk 6.13.2-beta.1 → 6.13.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aliyun-rtc-sdk.es.js +476 -464
- package/dist/aliyun-rtc-sdk.umd.js +11 -11
- 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
|
|
52
|
-
import
|
|
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,
|
|
51
|
+
import { AliRTS as Re, EConnectStatus as Ts, EDatachannelStatus as Ps } from "aliyun-rts-sdk";
|
|
52
|
+
import Je 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, Bs;
|
|
54
54
|
function tt() {
|
|
55
|
-
if (
|
|
55
|
+
if (Bs)
|
|
56
56
|
return Gi;
|
|
57
|
-
|
|
57
|
+
Bs = 1, Date.now = Date.now || function() {
|
|
58
58
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
59
59
|
};
|
|
60
60
|
var s = Date.now(), c = function() {
|
|
@@ -1545,8 +1545,8 @@ function Eo() {
|
|
|
1545
1545
|
break;
|
|
1546
1546
|
case "tracing":
|
|
1547
1547
|
default:
|
|
1548
|
-
var
|
|
1549
|
-
|
|
1548
|
+
var P = p[0].headers.get("uber-trace-id");
|
|
1549
|
+
P ? R = P.split(":")[0] : (P = d.getUberTraceId(E), p[0].headers.append("uber-trace-id", P["uber-trace-id"]), R = P.traceId), L = d.pageview;
|
|
1550
1550
|
}
|
|
1551
1551
|
} catch (K) {
|
|
1552
1552
|
e.warn(`[retcode] fetch failed to set header, exception is :
|
|
@@ -1593,14 +1593,14 @@ function Eo() {
|
|
|
1593
1593
|
typeof ve == "object" && ve["eagleeye-traceid"] && (R = ve["eagleeye-traceid"], N = "response");
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
|
-
var
|
|
1596
|
+
var we = v();
|
|
1597
1597
|
return Q.text().then(function(Ae) {
|
|
1598
1598
|
if (!R && e.isFunction(I)) {
|
|
1599
1599
|
var Fe = I(Q, Ae);
|
|
1600
1600
|
Fe && e.isString(Fe) && (R = Fe);
|
|
1601
1601
|
}
|
|
1602
|
-
var
|
|
1603
|
-
Q.ok ? r(d, b.parseResponse, x, y, Ae, Q.status || 200,
|
|
1602
|
+
var Ce = e.getFetchSnapshot(p, Ae, pe);
|
|
1603
|
+
Q.ok ? r(d, b.parseResponse, x, y, Ae, Q.status || 200, we, g, R, L, Ce, N, E) : (d.api(x, !1, we, Q.status || 404, Q.statusText, g, R, L, Ce, i, N, E), b.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1604
1604
|
src: Q.url,
|
|
1605
1605
|
res_type: "api"
|
|
1606
1606
|
}));
|
|
@@ -1632,8 +1632,8 @@ function Eo() {
|
|
|
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 P = !e.checkAPI(x, !0) || e.ignoreByRule(x, L);
|
|
1636
|
+
if (x = x ? e.filterByRule(x, y, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !P && 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 P = D(d);
|
|
1672
|
+
P && e.isString(P) && (C = P);
|
|
1673
1673
|
}
|
|
1674
1674
|
if (d.status >= 200 && d.status <= 299) {
|
|
1675
1675
|
var z = d.status || 200;
|
|
@@ -2067,7 +2067,7 @@ function To(s, c, e) {
|
|
|
2067
2067
|
} catch (m) {
|
|
2068
2068
|
throw e(m), m;
|
|
2069
2069
|
}
|
|
2070
|
-
return
|
|
2070
|
+
return xt(h, c + 1, e);
|
|
2071
2071
|
}
|
|
2072
2072
|
let o = () => {
|
|
2073
2073
|
};
|
|
@@ -2080,13 +2080,13 @@ function To(s, c, e) {
|
|
|
2080
2080
|
} catch (f) {
|
|
2081
2081
|
throw e(f), f;
|
|
2082
2082
|
}
|
|
2083
|
-
return
|
|
2083
|
+
return xt(m, c + 1, e);
|
|
2084
2084
|
}
|
|
2085
2085
|
};
|
|
2086
|
-
return typeof n[a] == "function" ? u.MediaboxWrapperObjectMethod : c > 10 ? n[a] :
|
|
2086
|
+
return typeof n[a] == "function" ? u.MediaboxWrapperObjectMethod : c > 10 ? n[a] : xt(n[a], c + 1, e);
|
|
2087
2087
|
},
|
|
2088
2088
|
MediaboxWrapperObjectSetter(n, a, o) {
|
|
2089
|
-
return n[a] =
|
|
2089
|
+
return n[a] = xt(o, c + 1, e), !0;
|
|
2090
2090
|
}
|
|
2091
2091
|
};
|
|
2092
2092
|
return new Proxy(s, {
|
|
@@ -2094,7 +2094,7 @@ function To(s, c, e) {
|
|
|
2094
2094
|
set: r.MediaboxWrapperObjectSetter
|
|
2095
2095
|
});
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function Po(s, c, e) {
|
|
2098
2098
|
const t = {
|
|
2099
2099
|
MediaboxWrapperFunctionApply(i, r, n) {
|
|
2100
2100
|
let a;
|
|
@@ -2103,11 +2103,11 @@ function Bo(s, c, e) {
|
|
|
2103
2103
|
} catch (o) {
|
|
2104
2104
|
throw e(o), o;
|
|
2105
2105
|
}
|
|
2106
|
-
return
|
|
2106
|
+
return xt(a, c + 1, e);
|
|
2107
2107
|
},
|
|
2108
2108
|
MediaboxWrapperFunctionGet(i, r) {
|
|
2109
2109
|
const n = Object.getOwnPropertyDescriptor(i, r);
|
|
2110
|
-
return n && !n.writable && !n.configurable ? i[r] :
|
|
2110
|
+
return n && !n.writable && !n.configurable ? i[r] : xt(i[r], c + 1, e);
|
|
2111
2111
|
},
|
|
2112
2112
|
MediaboxWrapperClassConstructor(i, r) {
|
|
2113
2113
|
let n;
|
|
@@ -2116,7 +2116,7 @@ function Bo(s, c, e) {
|
|
|
2116
2116
|
} catch (a) {
|
|
2117
2117
|
throw e(a), a;
|
|
2118
2118
|
}
|
|
2119
|
-
return
|
|
2119
|
+
return xt(n, c + 1, e);
|
|
2120
2120
|
}
|
|
2121
2121
|
};
|
|
2122
2122
|
return new Proxy(s, {
|
|
@@ -2126,7 +2126,7 @@ function Bo(s, c, e) {
|
|
|
2126
2126
|
});
|
|
2127
2127
|
}
|
|
2128
2128
|
const Vt = "-c-";
|
|
2129
|
-
function
|
|
2129
|
+
function Bo(s) {
|
|
2130
2130
|
if (typeof s != "string")
|
|
2131
2131
|
return Vt;
|
|
2132
2132
|
if (cs(s))
|
|
@@ -2148,8 +2148,8 @@ function cs(s) {
|
|
|
2148
2148
|
`);
|
|
2149
2149
|
return e < 0 ? c === s.length - Vt.length : c === e - Vt.length;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2152
|
-
return typeof s == "function" ?
|
|
2151
|
+
function xt(s, c, e) {
|
|
2152
|
+
return typeof s == "function" ? Po(s, c + 1, e) : s instanceof Promise ? s.then((t) => xt(t, c + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(s) ? s.map((t) => xt(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;
|
|
@@ -2211,8 +2211,8 @@ class us {
|
|
|
2211
2211
|
return "0.19.0";
|
|
2212
2212
|
}
|
|
2213
2213
|
wrap(c) {
|
|
2214
|
-
return this.options.disabled || typeof Proxy > "u" ? c :
|
|
2215
|
-
e instanceof Error && typeof e.stack == "string" && on(e.stack) && (e.stack = Lo(e.stack), this.armsLogger.error(e), e.stack =
|
|
2214
|
+
return this.options.disabled || typeof Proxy > "u" ? c : xt(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 = Bo(e.stack));
|
|
2216
2216
|
});
|
|
2217
2217
|
}
|
|
2218
2218
|
updateOptions(c) {
|
|
@@ -2238,11 +2238,11 @@ class us {
|
|
|
2238
2238
|
this.isDestroyed = !0;
|
|
2239
2239
|
}
|
|
2240
2240
|
}
|
|
2241
|
-
var
|
|
2241
|
+
var Ie = /* @__PURE__ */ ((s) => (s.PullStreamStats = "remoteStat", s.RtsSubscribeExceeds = "rtsSubscribeExceeds", s.UserJoined = "userJoined", s.UserLeft = "userLeft", s.Bye = "bye", s.MuteAudio = "muteAudio", s.UnmuteAudio = "unmuteAudio", s.MuteVideo = "muteVideo", s.UnmuteVideo = "unmuteVideo", s.MuteScreen = "muteScreen", s.UnmuteScreen = "unmuteScreen", s.Error = "error", s))(Ie || {}), et = /* @__PURE__ */ ((s) => (s.Local = "local-device-status-change", s.Remote = "remote-device-status-change", s))(et || {}), G = /* @__PURE__ */ ((s) => (s.Audio = "sophon_audio", s.VideoLarge = "sophon_video_camera_large", s.VideoSmall = "sophon_video_camera_small", s.Screen = "sophon_video_screen_share", s.Data = "sophon_data", s))(G || {}), hs = /* @__PURE__ */ ((s) => (s.Audio = "rts audio", s.VideoLarge = "rts video", s))(hs || {}), Nt = /* @__PURE__ */ ((s) => (s.Add = "add", s.Delete = "delete", s.Replace = "replace", s.Stop = "stop", s.UnPublish = "unpublish", s))(Nt || {}), ii = /* @__PURE__ */ ((s) => (s[s.Camera = 0] = "Camera", s[s.Screen = 1] = "Screen", s[s.Image = 2] = "Image", s))(ii || {}), Ii = /* @__PURE__ */ ((s) => (s[s.Microphone = 0] = "Microphone", s[s.Screen = 1] = "Screen", s[s.Mixed = 2] = "Mixed", s))(Ii || {}), Te = /* @__PURE__ */ ((s) => (s.InRoom = "inRoom", s.Join = "join", s.Publish = "publish", s.User = "user", s.Resume = "resume", s.Retry = "retry", s.Reconnect = "reconnect", s))(Te || {}), kt = /* @__PURE__ */ ((s) => (s[s.MANUAL = 0] = "MANUAL", s[s.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", s[s.ROLE_CHANGE = 2] = "ROLE_CHANGE", s))(kt || {}), qe = [];
|
|
2242
2242
|
for (var ar = 0; ar < 256; ++ar)
|
|
2243
|
-
|
|
2243
|
+
qe.push((ar + 256).toString(16).slice(1));
|
|
2244
2244
|
function No(s, c = 0) {
|
|
2245
|
-
return (
|
|
2245
|
+
return (qe[s[c + 0]] + qe[s[c + 1]] + qe[s[c + 2]] + qe[s[c + 3]] + "-" + qe[s[c + 4]] + qe[s[c + 5]] + "-" + qe[s[c + 6]] + qe[s[c + 7]] + "-" + qe[s[c + 8]] + qe[s[c + 9]] + "-" + qe[s[c + 10]] + qe[s[c + 11]] + qe[s[c + 12]] + qe[s[c + 13]] + qe[s[c + 14]] + qe[s[c + 15]]).toLowerCase();
|
|
2246
2246
|
}
|
|
2247
2247
|
var Ai, Fo = new Uint8Array(16);
|
|
2248
2248
|
function Oo() {
|
|
@@ -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.2-beta.
|
|
2271
|
+
const ds = "6.13.2-beta.3", hn = "web";
|
|
2272
2272
|
class ft {
|
|
2273
2273
|
/**
|
|
2274
2274
|
* 将版本号转换为number
|
|
@@ -2514,16 +2514,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
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 P = 0, z = 0;
|
|
2518
|
+
oe && (P |= 16), b === "UNIX" ? (z = 798, P |= 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, P |= function(K) {
|
|
2522
2522
|
return 63 & (K || 0);
|
|
2523
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(P, 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) {
|
|
@@ -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 P(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, B, 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,8 +3918,8 @@ 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 (B = D - (fe - V), V = fe - D, Z < B) {
|
|
3922
|
+
if (S.match_start = J, X <= (Z = B))
|
|
3923
3923
|
break;
|
|
3924
3924
|
_e = ee[V + Z - 1], xe = ee[V + Z];
|
|
3925
3925
|
}
|
|
@@ -3928,12 +3928,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
3928
3928
|
return Z <= S.lookahead ? Z : S.lookahead;
|
|
3929
3929
|
}
|
|
3930
3930
|
function Q(S) {
|
|
3931
|
-
var J, W,
|
|
3931
|
+
var J, W, B, k, V, Z, X, H, ee, he, re = S.w_size;
|
|
3932
3932
|
do {
|
|
3933
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;
|
|
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; B = S.head[--J], S.head[J] = re <= B ? B - re : 0, --W; )
|
|
3935
3935
|
;
|
|
3936
|
-
for (J = W = re;
|
|
3936
|
+
for (J = W = re; B = S.prev[--J], S.prev[J] = re <= B ? B - re : 0, --W; )
|
|
3937
3937
|
;
|
|
3938
3938
|
k += re;
|
|
3939
3939
|
}
|
|
@@ -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, B; ; ) {
|
|
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 (B = 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
|
+
B = a._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++;
|
|
3964
|
+
if (B && (P(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 ? (P(S, !0), S.strm.avail_out === 0 ? ie : q) : S.last_lit && (P(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, B, k; ; ) {
|
|
3971
3971
|
if (S.lookahead < N) {
|
|
3972
3972
|
if (Q(S), S.lookahead < N && J === m)
|
|
3973
3973
|
return E;
|
|
@@ -3975,22 +3975,22 @@ 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, B = 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++, B && (P(S, !1), S.strm.avail_out === 0))
|
|
3981
3981
|
return E;
|
|
3982
3982
|
} else if (S.match_available) {
|
|
3983
|
-
if ((
|
|
3983
|
+
if ((B = a._tr_tally(S, 0, S.window[S.strstart - 1])) && P(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 && (B = 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 ? (P(S, !0), S.strm.avail_out === 0 ? ie : q) : S.last_lit && (P(S, !1), S.strm.avail_out === 0) ? E : U;
|
|
3989
3989
|
}
|
|
3990
|
-
function ve(S, J, W,
|
|
3991
|
-
this.good_length = S, this.max_lazy = J, this.nice_length = W, this.max_chain =
|
|
3990
|
+
function ve(S, J, W, B, k) {
|
|
3991
|
+
this.good_length = S, this.max_lazy = J, this.nice_length = W, this.max_chain = B, this.func = k;
|
|
3992
3992
|
}
|
|
3993
|
-
function
|
|
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 = v, 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;
|
|
3995
3995
|
}
|
|
3996
3996
|
function Ae(S) {
|
|
@@ -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
|
|
4006
|
+
function Ce(S, J, W, B, 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), B < 0 ? (Z = 0, B = -B) : 15 < B && (Z = 2, B -= 16), k < 1 || x < k || W !== v || B < 8 || 15 < B || J < 0 || 9 < J || V < 0 || g < V)
|
|
4011
4011
|
return oe(S, p);
|
|
4012
|
-
|
|
4013
|
-
var X = new
|
|
4014
|
-
return (S.state = X).strm = S, X.wrap = Z, X.gzhead = null, X.w_bits =
|
|
4012
|
+
B === 8 && (B = 9);
|
|
4013
|
+
var X = new we();
|
|
4014
|
+
return (S.state = X).strm = S, X.wrap = Z, X.gzhead = null, X.w_bits = B, 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 ve(0, 0, 0, 0, function(S, J) {
|
|
4017
4017
|
var W = 65535;
|
|
@@ -4023,81 +4023,81 @@ 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 B = S.block_start + W;
|
|
4027
|
+
if ((S.strstart === 0 || S.strstart >= B) && (S.lookahead = S.strstart - B, S.strstart = B, P(S, !1), S.strm.avail_out === 0) || S.strstart - S.block_start >= S.w_size - N && (P(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 ? (P(S, !0), S.strm.avail_out === 0 ? ie : q) : (S.strstart > S.block_start && (P(S, !1), S.strm.avail_out), E);
|
|
4031
4031
|
}), new ve(4, 4, 8, 4, pe), new ve(4, 5, 16, 8, pe), new ve(4, 6, 32, 32, pe), new ve(4, 4, 16, 16, ce), new ve(8, 16, 32, 32, ce), new ve(8, 16, 128, 128, ce), new ve(8, 32, 128, 256, ce), new ve(32, 128, 258, 1024, ce), new ve(32, 258, 258, 4096, ce)], i.deflateInit = function(S, J) {
|
|
4032
|
-
return
|
|
4033
|
-
}, i.deflateInit2 =
|
|
4032
|
+
return Ce(S, J, v, 15, 8, 0);
|
|
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, B, k, V;
|
|
4037
4037
|
if (!S || !S.state || 5 < J || J < 0)
|
|
4038
4038
|
return S ? oe(S, p) : p;
|
|
4039
|
-
if (
|
|
4039
|
+
if (B = S.state, !S.output || !S.input && S.avail_in !== 0 || B.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 (B.strm = S, W = B.last_flush, B.last_flush = J, B.status === C)
|
|
4042
|
+
if (B.wrap === 2)
|
|
4043
|
+
S.adler = 0, z(B, 31), z(B, 139), z(B, 8), B.gzhead ? (z(B, (B.gzhead.text ? 1 : 0) + (B.gzhead.hcrc ? 2 : 0) + (B.gzhead.extra ? 4 : 0) + (B.gzhead.name ? 8 : 0) + (B.gzhead.comment ? 16 : 0)), z(B, 255 & B.gzhead.time), z(B, B.gzhead.time >> 8 & 255), z(B, B.gzhead.time >> 16 & 255), z(B, B.gzhead.time >> 24 & 255), z(B, B.level === 9 ? 2 : 2 <= B.strategy || B.level < 2 ? 4 : 0), z(B, 255 & B.gzhead.os), B.gzhead.extra && B.gzhead.extra.length && (z(B, 255 & B.gzhead.extra.length), z(B, B.gzhead.extra.length >> 8 & 255)), B.gzhead.hcrc && (S.adler = u(S.adler, B.pending_buf, B.pending, 0)), B.gzindex = 0, B.status = 69) : (z(B, 0), z(B, 0), z(B, 0), z(B, 0), z(B, 0), z(B, B.level === 9 ? 2 : 2 <= B.strategy || B.level < 2 ? 4 : 0), z(B, 3), B.status = M);
|
|
4044
4044
|
else {
|
|
4045
|
-
var Z = v + (
|
|
4046
|
-
Z |= (2 <=
|
|
4045
|
+
var Z = v + (B.w_bits - 8 << 4) << 8;
|
|
4046
|
+
Z |= (2 <= B.strategy || B.level < 2 ? 0 : B.level < 6 ? 1 : B.level === 6 ? 2 : 3) << 6, B.strstart !== 0 && (Z |= 32), Z += 31 - Z % 31, B.status = M, F(B, Z), B.strstart !== 0 && (F(B, S.adler >>> 16), F(B, 65535 & S.adler)), S.adler = 1;
|
|
4047
4047
|
}
|
|
4048
|
-
if (
|
|
4049
|
-
if (
|
|
4050
|
-
for (k =
|
|
4051
|
-
z(
|
|
4052
|
-
|
|
4048
|
+
if (B.status === 69)
|
|
4049
|
+
if (B.gzhead.extra) {
|
|
4050
|
+
for (k = B.pending; B.gzindex < (65535 & B.gzhead.extra.length) && (B.pending !== B.pending_buf_size || (B.gzhead.hcrc && B.pending > k && (S.adler = u(S.adler, B.pending_buf, B.pending - k, k)), T(S), k = B.pending, B.pending !== B.pending_buf_size)); )
|
|
4051
|
+
z(B, 255 & B.gzhead.extra[B.gzindex]), B.gzindex++;
|
|
4052
|
+
B.gzhead.hcrc && B.pending > k && (S.adler = u(S.adler, B.pending_buf, B.pending - k, k)), B.gzindex === B.gzhead.extra.length && (B.gzindex = 0, B.status = 73);
|
|
4053
4053
|
} else
|
|
4054
|
-
|
|
4055
|
-
if (
|
|
4056
|
-
if (
|
|
4057
|
-
k =
|
|
4054
|
+
B.status = 73;
|
|
4055
|
+
if (B.status === 73)
|
|
4056
|
+
if (B.gzhead.name) {
|
|
4057
|
+
k = B.pending;
|
|
4058
4058
|
do {
|
|
4059
|
-
if (
|
|
4059
|
+
if (B.pending === B.pending_buf_size && (B.gzhead.hcrc && B.pending > k && (S.adler = u(S.adler, B.pending_buf, B.pending - k, k)), T(S), k = B.pending, B.pending === B.pending_buf_size)) {
|
|
4060
4060
|
V = 1;
|
|
4061
4061
|
break;
|
|
4062
4062
|
}
|
|
4063
|
-
V =
|
|
4063
|
+
V = B.gzindex < B.gzhead.name.length ? 255 & B.gzhead.name.charCodeAt(B.gzindex++) : 0, z(B, V);
|
|
4064
4064
|
} while (V !== 0);
|
|
4065
|
-
|
|
4065
|
+
B.gzhead.hcrc && B.pending > k && (S.adler = u(S.adler, B.pending_buf, B.pending - k, k)), V === 0 && (B.gzindex = 0, B.status = 91);
|
|
4066
4066
|
} else
|
|
4067
|
-
|
|
4068
|
-
if (
|
|
4069
|
-
if (
|
|
4070
|
-
k =
|
|
4067
|
+
B.status = 91;
|
|
4068
|
+
if (B.status === 91)
|
|
4069
|
+
if (B.gzhead.comment) {
|
|
4070
|
+
k = B.pending;
|
|
4071
4071
|
do {
|
|
4072
|
-
if (
|
|
4072
|
+
if (B.pending === B.pending_buf_size && (B.gzhead.hcrc && B.pending > k && (S.adler = u(S.adler, B.pending_buf, B.pending - k, k)), T(S), k = B.pending, B.pending === B.pending_buf_size)) {
|
|
4073
4073
|
V = 1;
|
|
4074
4074
|
break;
|
|
4075
4075
|
}
|
|
4076
|
-
V =
|
|
4076
|
+
V = B.gzindex < B.gzhead.comment.length ? 255 & B.gzhead.comment.charCodeAt(B.gzindex++) : 0, z(B, V);
|
|
4077
4077
|
} while (V !== 0);
|
|
4078
|
-
|
|
4078
|
+
B.gzhead.hcrc && B.pending > k && (S.adler = u(S.adler, B.pending_buf, B.pending - k, k)), V === 0 && (B.status = 103);
|
|
4079
4079
|
} else
|
|
4080
|
-
|
|
4081
|
-
if (
|
|
4080
|
+
B.status = 103;
|
|
4081
|
+
if (B.status === 103 && (B.gzhead.hcrc ? (B.pending + 2 > B.pending_buf_size && T(S), B.pending + 2 <= B.pending_buf_size && (z(B, 255 & S.adler), z(B, S.adler >> 8 & 255), S.adler = 0, B.status = M)) : B.status = M), B.pending !== 0) {
|
|
4082
4082
|
if (T(S), S.avail_out === 0)
|
|
4083
|
-
return
|
|
4083
|
+
return B.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 (B.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 || B.lookahead !== 0 || J !== m && B.status !== 666) {
|
|
4089
|
+
var X = B.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 && (P(H, !1), H.strm.avail_out === 0))
|
|
4097
4097
|
return E;
|
|
4098
4098
|
}
|
|
4099
|
-
return H.insert = 0, ee === f ? (
|
|
4100
|
-
}(
|
|
4099
|
+
return H.insert = 0, ee === f ? (P(H, !0), H.strm.avail_out === 0 ? ie : q) : H.last_lit && (P(H, !1), H.strm.avail_out === 0) ? E : U;
|
|
4100
|
+
}(B, J) : B.strategy === 3 ? function(H, ee) {
|
|
4101
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)
|
|
@@ -4112,28 +4112,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4112
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 && (P(H, !1), H.strm.avail_out === 0))
|
|
4116
4116
|
return E;
|
|
4117
4117
|
}
|
|
4118
|
-
return H.insert = 0, ee === f ? (
|
|
4119
|
-
}(
|
|
4120
|
-
if (X !== ie && X !== q || (
|
|
4121
|
-
return S.avail_out === 0 && (
|
|
4122
|
-
if (X === U && (J === 1 ? a._tr_align(
|
|
4123
|
-
return
|
|
4118
|
+
return H.insert = 0, ee === f ? (P(H, !0), H.strm.avail_out === 0 ? ie : q) : H.last_lit && (P(H, !1), H.strm.avail_out === 0) ? E : U;
|
|
4119
|
+
}(B, J) : r[B.level].func(B, J);
|
|
4120
|
+
if (X !== ie && X !== q || (B.status = 666), X === E || X === ie)
|
|
4121
|
+
return S.avail_out === 0 && (B.last_flush = -1), l;
|
|
4122
|
+
if (X === U && (J === 1 ? a._tr_align(B) : J !== 5 && (a._tr_stored_block(B, 0, 0, !1), J === 3 && (se(B.head), B.lookahead === 0 && (B.strstart = 0, B.block_start = 0, B.insert = 0))), T(S), S.avail_out === 0))
|
|
4123
|
+
return B.last_flush = -1, l;
|
|
4124
4124
|
}
|
|
4125
|
-
return J !== f ? l :
|
|
4125
|
+
return J !== f ? l : B.wrap <= 0 ? 1 : (B.wrap === 2 ? (z(B, 255 & S.adler), z(B, S.adler >> 8 & 255), z(B, S.adler >> 16 & 255), z(B, S.adler >> 24 & 255), z(B, 255 & S.total_in), z(B, S.total_in >> 8 & 255), z(B, S.total_in >> 16 & 255), z(B, S.total_in >> 24 & 255)) : (F(B, S.adler >>> 16), F(B, 65535 & S.adler)), T(S), 0 < B.wrap && (B.wrap = -B.wrap), B.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, B, 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 (B = W.strstart, k = W.lookahead - (L - 1); W.ins_h = (W.ins_h << W.hash_shift ^ W.window[B + L - 1]) & W.hash_mask, W.prev[B & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = B, B++, --k; )
|
|
4135
4135
|
;
|
|
4136
|
-
W.strstart =
|
|
4136
|
+
W.strstart = B, 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)";
|
|
@@ -4271,10 +4271,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
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, ie, q, oe, $, se, T,
|
|
4274
|
+
var E, U, ie, q, oe, $, se, T, P, z, F, K, Q, pe, ce, ve, we, Ae, Fe, Ce, S, J, W, B, 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, ie = C.output, se = C.avail_out, q = C.next_in, U = C.input, $ = C.avail_in, T = E.hold,
|
|
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, P = 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 (; P < 16; ) {
|
|
4287
4287
|
if ($ === 0)
|
|
4288
4288
|
break e;
|
|
4289
|
-
$--, T += U[q++] <<
|
|
4289
|
+
$--, T += U[q++] << P, P += 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), P = 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 (P -= 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, P = T = 0;
|
|
4310
4310
|
break;
|
|
4311
4311
|
case 2:
|
|
4312
|
-
for (;
|
|
4312
|
+
for (; P < 16; ) {
|
|
4313
4313
|
if ($ === 0)
|
|
4314
4314
|
break e;
|
|
4315
|
-
$--, T += U[q++] <<
|
|
4315
|
+
$--, T += U[q++] << P, P += 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)), P = T = 0, E.mode = 3;
|
|
4326
4326
|
case 3:
|
|
4327
|
-
for (;
|
|
4327
|
+
for (; P < 32; ) {
|
|
4328
4328
|
if ($ === 0)
|
|
4329
4329
|
break e;
|
|
4330
|
-
$--, T += U[q++] <<
|
|
4330
|
+
$--, T += U[q++] << P, P += 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)), P = T = 0, E.mode = 4;
|
|
4333
4333
|
case 4:
|
|
4334
|
-
for (;
|
|
4334
|
+
for (; P < 16; ) {
|
|
4335
4335
|
if ($ === 0)
|
|
4336
4336
|
break e;
|
|
4337
|
-
$--, T += U[q++] <<
|
|
4337
|
+
$--, T += U[q++] << P, P += 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)), P = T = 0, E.mode = 5;
|
|
4340
4340
|
case 5:
|
|
4341
4341
|
if (1024 & E.flags) {
|
|
4342
|
-
for (;
|
|
4342
|
+
for (; P < 16; ) {
|
|
4343
4343
|
if ($ === 0)
|
|
4344
4344
|
break e;
|
|
4345
|
-
$--, T += U[q++] <<
|
|
4345
|
+
$--, T += U[q++] << P, P += 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)), P = 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 (; P < 16; ) {
|
|
4380
4380
|
if ($ === 0)
|
|
4381
4381
|
break e;
|
|
4382
|
-
$--, T += U[q++] <<
|
|
4382
|
+
$--, T += U[q++] << P, P += 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
|
+
P = 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 (; P < 32; ) {
|
|
4394
4394
|
if ($ === 0)
|
|
4395
4395
|
break e;
|
|
4396
|
-
$--, T += U[q++] <<
|
|
4396
|
+
$--, T += U[q++] << P, P += 8;
|
|
4397
4397
|
}
|
|
4398
|
-
C.adler = E.check = b(T),
|
|
4398
|
+
C.adler = E.check = b(T), P = 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 = P, 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 & P, P -= 7 & P, E.mode = 27;
|
|
4409
4409
|
break;
|
|
4410
4410
|
}
|
|
4411
|
-
for (;
|
|
4411
|
+
for (; P < 3; ) {
|
|
4412
4412
|
if ($ === 0)
|
|
4413
4413
|
break e;
|
|
4414
|
-
$--, T += U[q++] <<
|
|
4414
|
+
$--, T += U[q++] << P, P += 8;
|
|
4415
4415
|
}
|
|
4416
|
-
switch (E.last = 1 & T,
|
|
4416
|
+
switch (E.last = 1 & T, P -= 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, P -= 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, P -= 2;
|
|
4432
4432
|
break;
|
|
4433
4433
|
case 14:
|
|
4434
|
-
for (T >>>= 7 &
|
|
4434
|
+
for (T >>>= 7 & P, P -= 7 & P; P < 32; ) {
|
|
4435
4435
|
if ($ === 0)
|
|
4436
4436
|
break e;
|
|
4437
|
-
$--, T += U[q++] <<
|
|
4437
|
+
$--, T += U[q++] << P, P += 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, P = T = 0, E.mode = 15, M === 6)
|
|
4444
4444
|
break e;
|
|
4445
4445
|
case 15:
|
|
4446
4446
|
E.mode = 16;
|
|
@@ -4454,24 +4454,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4454
4454
|
E.mode = 12;
|
|
4455
4455
|
break;
|
|
4456
4456
|
case 17:
|
|
4457
|
-
for (;
|
|
4457
|
+
for (; P < 14; ) {
|
|
4458
4458
|
if ($ === 0)
|
|
4459
4459
|
break e;
|
|
4460
|
-
$--, T += U[q++] <<
|
|
4460
|
+
$--, T += U[q++] << P, P += 8;
|
|
4461
4461
|
}
|
|
4462
|
-
if (E.nlen = 257 + (31 & T), T >>>= 5,
|
|
4462
|
+
if (E.nlen = 257 + (31 & T), T >>>= 5, P -= 5, E.ndist = 1 + (31 & T), T >>>= 5, P -= 5, E.ncode = 4 + (15 & T), T >>>= 4, P -= 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 (; P < 3; ) {
|
|
4470
4470
|
if ($ === 0)
|
|
4471
4471
|
break e;
|
|
4472
|
-
$--, T += U[q++] <<
|
|
4472
|
+
$--, T += U[q++] << P, P += 8;
|
|
4473
4473
|
}
|
|
4474
|
-
E.lens[Z[E.have++]] = 7 & T, T >>>= 3,
|
|
4474
|
+
E.lens[Z[E.have++]] = 7 & T, T >>>= 3, P -= 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 (; ve = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255,
|
|
4485
|
+
for (; ve = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <= P); ) {
|
|
4486
4486
|
if ($ === 0)
|
|
4487
4487
|
break e;
|
|
4488
|
-
$--, T += U[q++] <<
|
|
4488
|
+
$--, T += U[q++] << P, P += 8;
|
|
4489
4489
|
}
|
|
4490
|
-
if (
|
|
4491
|
-
T >>>= ce,
|
|
4490
|
+
if (we < 16)
|
|
4491
|
+
T >>>= ce, P -= ce, E.lens[E.have++] = we;
|
|
4492
4492
|
else {
|
|
4493
|
-
if (
|
|
4494
|
-
for (
|
|
4493
|
+
if (we === 16) {
|
|
4494
|
+
for (B = ce + 2; P < B; ) {
|
|
4495
4495
|
if ($ === 0)
|
|
4496
4496
|
break e;
|
|
4497
|
-
$--, T += U[q++] <<
|
|
4497
|
+
$--, T += U[q++] << P, P += 8;
|
|
4498
4498
|
}
|
|
4499
|
-
if (T >>>= ce,
|
|
4499
|
+
if (T >>>= ce, P -= 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,
|
|
4504
|
-
} else if (
|
|
4505
|
-
for (
|
|
4503
|
+
S = E.lens[E.have - 1], K = 3 + (3 & T), T >>>= 2, P -= 2;
|
|
4504
|
+
} else if (we === 17) {
|
|
4505
|
+
for (B = ce + 3; P < B; ) {
|
|
4506
4506
|
if ($ === 0)
|
|
4507
4507
|
break e;
|
|
4508
|
-
$--, T += U[q++] <<
|
|
4508
|
+
$--, T += U[q++] << P, P += 8;
|
|
4509
4509
|
}
|
|
4510
|
-
|
|
4510
|
+
P -= ce, S = 0, K = 3 + (7 & (T >>>= ce)), T >>>= 3, P -= 3;
|
|
4511
4511
|
} else {
|
|
4512
|
-
for (
|
|
4512
|
+
for (B = ce + 7; P < B; ) {
|
|
4513
4513
|
if ($ === 0)
|
|
4514
4514
|
break e;
|
|
4515
|
-
$--, T += U[q++] <<
|
|
4515
|
+
$--, T += U[q++] << P, P += 8;
|
|
4516
4516
|
}
|
|
4517
|
-
|
|
4517
|
+
P -= ce, S = 0, K = 11 + (127 & (T >>>= ce)), T >>>= 7, P -= 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 = P, 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, P = E.bits, E.mode === 12 && (E.back = -1);
|
|
4548
4548
|
break;
|
|
4549
4549
|
}
|
|
4550
|
-
for (E.back = 0; ve = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255,
|
|
4550
|
+
for (E.back = 0; ve = (k = E.lencode[T & (1 << E.lenbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <= P); ) {
|
|
4551
4551
|
if ($ === 0)
|
|
4552
4552
|
break e;
|
|
4553
|
-
$--, T += U[q++] <<
|
|
4553
|
+
$--, T += U[q++] << P, P += 8;
|
|
4554
4554
|
}
|
|
4555
4555
|
if (ve && !(240 & ve)) {
|
|
4556
|
-
for (Ae = ce, Fe = ve,
|
|
4556
|
+
for (Ae = ce, Fe = ve, Ce = we; ve = (k = E.lencode[Ce + ((T & (1 << Ae + Fe) - 1) >> Ae)]) >>> 16 & 255, we = 65535 & k, !(Ae + (ce = k >>> 24) <= P); ) {
|
|
4557
4557
|
if ($ === 0)
|
|
4558
4558
|
break e;
|
|
4559
|
-
$--, T += U[q++] <<
|
|
4559
|
+
$--, T += U[q++] << P, P += 8;
|
|
4560
4560
|
}
|
|
4561
|
-
T >>>= Ae,
|
|
4561
|
+
T >>>= Ae, P -= Ae, E.back += Ae;
|
|
4562
4562
|
}
|
|
4563
|
-
if (T >>>= ce,
|
|
4563
|
+
if (T >>>= ce, P -= ce, E.back += ce, E.length = we, ve === 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 & ve, E.mode = 22;
|
|
4576
4576
|
case 22:
|
|
4577
4577
|
if (E.extra) {
|
|
4578
|
-
for (
|
|
4578
|
+
for (B = E.extra; P < B; ) {
|
|
4579
4579
|
if ($ === 0)
|
|
4580
4580
|
break e;
|
|
4581
|
-
$--, T += U[q++] <<
|
|
4581
|
+
$--, T += U[q++] << P, P += 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, P -= E.extra, E.back += E.extra;
|
|
4584
4584
|
}
|
|
4585
4585
|
E.was = E.length, E.mode = 23;
|
|
4586
4586
|
case 23:
|
|
4587
|
-
for (; ve = (k = E.distcode[T & (1 << E.distbits) - 1]) >>> 16 & 255,
|
|
4587
|
+
for (; ve = (k = E.distcode[T & (1 << E.distbits) - 1]) >>> 16 & 255, we = 65535 & k, !((ce = k >>> 24) <= P); ) {
|
|
4588
4588
|
if ($ === 0)
|
|
4589
4589
|
break e;
|
|
4590
|
-
$--, T += U[q++] <<
|
|
4590
|
+
$--, T += U[q++] << P, P += 8;
|
|
4591
4591
|
}
|
|
4592
4592
|
if (!(240 & ve)) {
|
|
4593
|
-
for (Ae = ce, Fe = ve,
|
|
4593
|
+
for (Ae = ce, Fe = ve, Ce = we; ve = (k = E.distcode[Ce + ((T & (1 << Ae + Fe) - 1) >> Ae)]) >>> 16 & 255, we = 65535 & k, !(Ae + (ce = k >>> 24) <= P); ) {
|
|
4594
4594
|
if ($ === 0)
|
|
4595
4595
|
break e;
|
|
4596
|
-
$--, T += U[q++] <<
|
|
4596
|
+
$--, T += U[q++] << P, P += 8;
|
|
4597
4597
|
}
|
|
4598
|
-
T >>>= Ae,
|
|
4598
|
+
T >>>= Ae, P -= Ae, E.back += Ae;
|
|
4599
4599
|
}
|
|
4600
|
-
if (T >>>= ce,
|
|
4600
|
+
if (T >>>= ce, P -= ce, E.back += ce, 64 & ve) {
|
|
4601
4601
|
C.msg = "invalid distance code", E.mode = 30;
|
|
4602
4602
|
break;
|
|
4603
4603
|
}
|
|
4604
|
-
E.offset =
|
|
4604
|
+
E.offset = we, E.extra = 15 & ve, E.mode = 24;
|
|
4605
4605
|
case 24:
|
|
4606
4606
|
if (E.extra) {
|
|
4607
|
-
for (
|
|
4607
|
+
for (B = E.extra; P < B; ) {
|
|
4608
4608
|
if ($ === 0)
|
|
4609
4609
|
break e;
|
|
4610
|
-
$--, T += U[q++] <<
|
|
4610
|
+
$--, T += U[q++] << P, P += 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, P -= 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;
|
|
@@ -4638,30 +4638,30 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4638
4638
|
break;
|
|
4639
4639
|
case 27:
|
|
4640
4640
|
if (E.wrap) {
|
|
4641
|
-
for (;
|
|
4641
|
+
for (; P < 32; ) {
|
|
4642
4642
|
if ($ === 0)
|
|
4643
4643
|
break e;
|
|
4644
|
-
$--, T |= U[q++] <<
|
|
4644
|
+
$--, T |= U[q++] << P, P += 8;
|
|
4645
4645
|
}
|
|
4646
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 : b(T)) !== E.check) {
|
|
4647
4647
|
C.msg = "incorrect data check", E.mode = 30;
|
|
4648
4648
|
break;
|
|
4649
4649
|
}
|
|
4650
|
-
|
|
4650
|
+
P = T = 0;
|
|
4651
4651
|
}
|
|
4652
4652
|
E.mode = 28;
|
|
4653
4653
|
case 28:
|
|
4654
4654
|
if (E.wrap && E.flags) {
|
|
4655
|
-
for (;
|
|
4655
|
+
for (; P < 32; ) {
|
|
4656
4656
|
if ($ === 0)
|
|
4657
4657
|
break e;
|
|
4658
|
-
$--, T += U[q++] <<
|
|
4658
|
+
$--, T += U[q++] << P, P += 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
|
+
P = 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 = P, (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,7 +4692,7 @@ 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, b) {
|
|
4695
|
-
var v, x, y, A, I, w, R, L, D, N = b.bits, C = 0, M = 0, E = 0, U = 0, ie = 0, q = 0, oe = 0, $ = 0, se = 0, T = 0,
|
|
4695
|
+
var v, x, y, A, I, w, R, L, D, N = b.bits, C = 0, M = 0, E = 0, U = 0, ie = 0, q = 0, oe = 0, $ = 0, se = 0, T = 0, P = 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++)
|
|
@@ -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 ? (P = Q = g, 19) : h === 1 ? (P = n, z -= 257, Q = a, pe -= 257, 256) : (P = 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]], P[z + g[M]]) : (L = 96, 0), v = 1 << C - oe, E = x = 1 << q; p[I + (T >> oe) + (x -= v)] = R << 24 | L << 16 | D | 0, x !== 0; )
|
|
4719
4719
|
;
|
|
4720
4720
|
for (v = 1 << C - 1; T & v; )
|
|
4721
4721
|
v >>= 1;
|
|
@@ -4759,7 +4759,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
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 P(k) {
|
|
4763
4763
|
return k < 256 ? M[k] : M[256 + (k >>> 7)];
|
|
4764
4764
|
}
|
|
4765
4765
|
function z(k, V) {
|
|
@@ -4798,23 +4798,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4798
4798
|
function ve(k) {
|
|
4799
4799
|
8 < k.bi_valid ? z(k, k.bi_buf) : 0 < k.bi_valid && (k.pending_buf[k.pending++] = k.bi_buf), k.bi_buf = 0, k.bi_valid = 0;
|
|
4800
4800
|
}
|
|
4801
|
-
function
|
|
4801
|
+
function we(k, V, Z, X) {
|
|
4802
4802
|
var H = 2 * V, ee = 2 * Z;
|
|
4803
4803
|
return k[H] < k[ee] || k[H] === k[ee] && X[V] <= X[Z];
|
|
4804
4804
|
}
|
|
4805
4805
|
function Ae(k, V, Z) {
|
|
4806
|
-
for (var X = k.heap[Z], H = Z << 1; H <= k.heap_len && (H < k.heap_len &&
|
|
4806
|
+
for (var X = k.heap[Z], H = Z << 1; H <= k.heap_len && (H < k.heap_len && we(V, k.heap[H + 1], k.heap[H], k.depth) && H++, !we(V, X, k.heap[H], k.depth)); )
|
|
4807
4807
|
k.heap[Z] = k.heap[H], Z = H, H <<= 1;
|
|
4808
4808
|
k.heap[Z] = X;
|
|
4809
4809
|
}
|
|
4810
4810
|
function Fe(k, V, Z) {
|
|
4811
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 * 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 =
|
|
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 = P(--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
|
-
function
|
|
4817
|
+
function Ce(k, V) {
|
|
4818
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;
|
|
@@ -4824,21 +4824,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
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
|
-
k.heap[--k.heap_max] = k.heap[1], function(xe,
|
|
4828
|
-
var mt, Me, it,
|
|
4829
|
-
for (
|
|
4830
|
-
xe.bl_count[
|
|
4827
|
+
k.heap[--k.heap_max] = k.heap[1], function(xe, $e) {
|
|
4828
|
+
var mt, Me, it, Be, gt, $t, lt = $e.dyn_tree, bi = $e.max_code, xi = $e.stat_desc.static_tree, ji = $e.stat_desc.has_stree, Si = $e.stat_desc.extra_bits, _i = $e.stat_desc.extra_base, At = $e.stat_desc.max_length, qt = 0;
|
|
4829
|
+
for (Be = 0; Be <= g; Be++)
|
|
4830
|
+
xe.bl_count[Be] = 0;
|
|
4831
4831
|
for (lt[2 * xe.heap[xe.heap_max] + 1] = 0, mt = xe.heap_max + 1; mt < d; mt++)
|
|
4832
|
-
|
|
4832
|
+
At < (Be = lt[2 * lt[2 * (Me = xe.heap[mt]) + 1] + 1] + 1) && (Be = At, qt++), lt[2 * Me + 1] = Be, bi < Me || (xe.bl_count[Be]++, gt = 0, _i <= Me && (gt = Si[Me - _i]), $t = lt[2 * Me], xe.opt_len += $t * (Be + 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 (Be = At - 1; xe.bl_count[Be] === 0; )
|
|
4836
|
+
Be--;
|
|
4837
|
+
xe.bl_count[Be]--, xe.bl_count[Be + 1] += 2, xe.bl_count[At]--, qt -= 2;
|
|
4838
4838
|
} while (0 < qt);
|
|
4839
|
-
for (
|
|
4840
|
-
for (Me = xe.bl_count[
|
|
4841
|
-
bi < (it = xe.heap[--mt]) || (lt[2 * it + 1] !==
|
|
4839
|
+
for (Be = At; Be !== 0; Be--)
|
|
4840
|
+
for (Me = xe.bl_count[Be]; Me !== 0; )
|
|
4841
|
+
bi < (it = xe.heap[--mt]) || (lt[2 * it + 1] !== Be && (xe.opt_len += (Be - lt[2 * it + 1]) * lt[2 * it], lt[2 * it + 1] = Be), Me--);
|
|
4842
4842
|
}
|
|
4843
4843
|
}(k, V), pe(ee, _e, k.bl_count);
|
|
4844
4844
|
}
|
|
@@ -4861,7 +4861,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4861
4861
|
}
|
|
4862
4862
|
o($);
|
|
4863
4863
|
var W = !1;
|
|
4864
|
-
function
|
|
4864
|
+
function B(k, V, Z, X) {
|
|
4865
4865
|
F(k, (u << 1) + (X ? 1 : 0), 3), function(H, ee, he, re) {
|
|
4866
4866
|
ve(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);
|
|
@@ -4892,7 +4892,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4892
4892
|
C[2 * V + 1] = 5, C[2 * V] = Q(V, 5);
|
|
4893
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, v);
|
|
4894
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 =
|
|
4895
|
+
}, i._tr_stored_block = B, i._tr_flush_block = function(k, V, Z, X) {
|
|
4896
4896
|
var H, ee, he = 0;
|
|
4897
4897
|
0 < k.level ? (k.strm.data_type === 2 && (k.strm.data_type = function(re) {
|
|
4898
4898
|
var fe, _e = 4093624447;
|
|
@@ -4905,19 +4905,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
4905
4905
|
if (re.dyn_ltree[2 * fe] !== 0)
|
|
4906
4906
|
return a;
|
|
4907
4907
|
return n;
|
|
4908
|
-
}(k)),
|
|
4908
|
+
}(k)), Ce(k, k.l_desc), Ce(k, k.d_desc), he = function(re) {
|
|
4909
4909
|
var fe;
|
|
4910
|
-
for (S(re, re.dyn_ltree, re.l_desc.max_code), S(re, re.dyn_dtree, re.d_desc.max_code),
|
|
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
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 ?
|
|
4914
|
-
var
|
|
4915
|
-
for (F(re, fe - 257, 5), F(re, _e - 1, 5), F(re, xe - 4, 4),
|
|
4916
|
-
F(re, re.bl_tree[2 * D[
|
|
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 ? B(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
|
+
var $e;
|
|
4915
|
+
for (F(re, fe - 257, 5), F(re, _e - 1, 5), F(re, xe - 4, 4), $e = 0; $e < xe; $e++)
|
|
4916
|
+
F(re, re.bl_tree[2 * D[$e] + 1], 3);
|
|
4917
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 && ve(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 * P(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(), Bi = /* @__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 Bi.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), Bi.set(c, s)), c;
|
|
5096
5096
|
}
|
|
5097
|
-
const Qr = (s) =>
|
|
5097
|
+
const Qr = (s) => Bi.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), Bi.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 v = g + b, x = d[v];
|
|
6237
6237
|
d[v] = (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], ie = d[g + 11], q = d[g + 12], oe = d[g + 13], $ = d[g + 14], se = d[g + 15], T = y[0],
|
|
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], P = y[1], z = y[2], F = y[3];
|
|
6240
|
+
T = m(T, P, z, F, A, 7, u[0]), F = m(F, T, P, z, I, 12, u[1]), z = m(z, F, T, P, w, 17, u[2]), P = m(P, z, F, T, R, 22, u[3]), T = m(T, P, z, F, L, 7, u[4]), F = m(F, T, P, z, D, 12, u[5]), z = m(z, F, T, P, N, 17, u[6]), P = m(P, z, F, T, C, 22, u[7]), T = m(T, P, z, F, M, 7, u[8]), F = m(F, T, P, z, E, 12, u[9]), z = m(z, F, T, P, U, 17, u[10]), P = m(P, z, F, T, ie, 22, u[11]), T = m(T, P, z, F, q, 7, u[12]), F = m(F, T, P, z, oe, 12, u[13]), z = m(z, F, T, P, $, 17, u[14]), P = m(P, z, F, T, se, 22, u[15]), T = f(T, P, z, F, I, 5, u[16]), F = f(F, T, P, z, N, 9, u[17]), z = f(z, F, T, P, ie, 14, u[18]), P = f(P, z, F, T, A, 20, u[19]), T = f(T, P, z, F, D, 5, u[20]), F = f(F, T, P, z, U, 9, u[21]), z = f(z, F, T, P, se, 14, u[22]), P = f(P, z, F, T, L, 20, u[23]), T = f(T, P, z, F, E, 5, u[24]), F = f(F, T, P, z, $, 9, u[25]), z = f(z, F, T, P, R, 14, u[26]), P = f(P, z, F, T, M, 20, u[27]), T = f(T, P, z, F, oe, 5, u[28]), F = f(F, T, P, z, w, 9, u[29]), z = f(z, F, T, P, C, 14, u[30]), P = f(P, z, F, T, q, 20, u[31]), T = l(T, P, z, F, D, 4, u[32]), F = l(F, T, P, z, M, 11, u[33]), z = l(z, F, T, P, ie, 16, u[34]), P = l(P, z, F, T, $, 23, u[35]), T = l(T, P, z, F, I, 4, u[36]), F = l(F, T, P, z, L, 11, u[37]), z = l(z, F, T, P, C, 16, u[38]), P = l(P, z, F, T, U, 23, u[39]), T = l(T, P, z, F, oe, 4, u[40]), F = l(F, T, P, z, A, 11, u[41]), z = l(z, F, T, P, R, 16, u[42]), P = l(P, z, F, T, N, 23, u[43]), T = l(T, P, z, F, E, 4, u[44]), F = l(F, T, P, z, q, 11, u[45]), z = l(z, F, T, P, se, 16, u[46]), P = l(P, z, F, T, w, 23, u[47]), T = p(T, P, z, F, A, 6, u[48]), F = p(F, T, P, z, C, 10, u[49]), z = p(z, F, T, P, $, 15, u[50]), P = p(P, z, F, T, D, 21, u[51]), T = p(T, P, z, F, q, 6, u[52]), F = p(F, T, P, z, R, 10, u[53]), z = p(z, F, T, P, U, 15, u[54]), P = p(P, z, F, T, I, 21, u[55]), T = p(T, P, z, F, M, 6, u[56]), F = p(F, T, P, z, se, 10, u[57]), z = p(z, F, T, P, N, 15, u[58]), P = p(P, z, F, T, oe, 21, u[59]), T = p(T, P, z, F, L, 6, u[60]), F = p(F, T, P, z, ie, 10, u[61]), z = p(z, F, T, P, w, 15, u[62]), P = p(P, z, F, T, E, 21, u[63]), y[0] = y[0] + T | 0, y[1] = y[1] + P | 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, b = this._nDataBytes * 8, v = d.sigBytes * 8;
|
|
@@ -6513,18 +6513,18 @@ function Da() {
|
|
|
6513
6513
|
]);
|
|
6514
6514
|
},
|
|
6515
6515
|
_doProcessBlock: function(p, d) {
|
|
6516
|
-
for (var g = this._hash.words, b = g[0], v = g[1], x = g[2], y = g[3], A = g[4], I = g[5], w = g[6], R = g[7], L = b.high, D = b.low, N = v.high, C = v.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,
|
|
6516
|
+
for (var g = this._hash.words, b = g[0], v = g[1], x = g[2], y = g[3], A = g[4], I = g[5], w = g[6], R = g[7], L = b.high, D = b.low, N = v.high, C = v.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, P = w.low, z = R.high, F = R.low, K = L, Q = D, pe = N, ce = C, ve = M, we = E, Ae = U, Fe = ie, Ce = q, S = oe, J = $, W = se, B = T, k = P, 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 re = f[X - 15], fe = re.high, _e = re.low, xe = (fe >>> 1 | _e << 31) ^ (fe >>> 8 | _e << 24) ^ fe >>> 7,
|
|
6522
|
-
H =
|
|
6521
|
+
var re = f[X - 15], fe = re.high, _e = re.low, xe = (fe >>> 1 | _e << 31) ^ (fe >>> 8 | _e << 24) ^ fe >>> 7, $e = (_e >>> 1 | fe << 31) ^ (_e >>> 8 | fe << 24) ^ (_e >>> 7 | fe << 25), mt = f[X - 2], Me = mt.high, it = mt.low, Be = (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, bi = $t.low, xi = f[X - 16], ji = xi.high, Si = xi.low;
|
|
6522
|
+
H = $e + bi, ee = xe + lt + (H >>> 0 < $e >>> 0 ? 1 : 0), H = H + gt, ee = ee + Be + (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 =
|
|
6525
|
-
V =
|
|
6524
|
+
var _i = Ce & J ^ ~Ce & B, At = S & W ^ ~S & k, qt = K & pe ^ K & ve ^ pe & ve, 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, wt = V + to + (at >>> 0 < Z >>> 0 ? 1 : 0), at = at + At, wt = wt + _i + (at >>> 0 < At >>> 0 ? 1 : 0), at = at + Cs, wt = wt + ro + (at >>> 0 < Cs >>> 0 ? 1 : 0), at = at + H, wt = wt + ee + (at >>> 0 < H >>> 0 ? 1 : 0), Is = As + Qa, so = eo + qt + (Is >>> 0 < As >>> 0 ? 1 : 0);
|
|
6525
|
+
V = B, Z = k, B = J, k = W, J = Ce, W = S, S = Fe + at | 0, Ce = Ae + wt + (S >>> 0 < Fe >>> 0 ? 1 : 0) | 0, Ae = ve, Fe = we, ve = pe, we = ce, pe = K, ce = Q, Q = at + Is | 0, K = wt + so + (Q >>> 0 < at >>> 0 ? 1 : 0) | 0;
|
|
6526
6526
|
}
|
|
6527
|
-
D = b.low = D + Q, b.high = L + K + (D >>> 0 < Q >>> 0 ? 1 : 0), C = v.low = C + ce, v.high = N + pe + (C >>> 0 < ce >>> 0 ? 1 : 0), E = x.low = E +
|
|
6527
|
+
D = b.low = D + Q, b.high = L + K + (D >>> 0 < Q >>> 0 ? 1 : 0), C = v.low = C + ce, v.high = N + pe + (C >>> 0 < ce >>> 0 ? 1 : 0), E = x.low = E + we, x.high = M + ve + (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), P = w.low = P + k, w.high = T + B + (P >>> 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, b = p.sigBytes * 8;
|
|
@@ -6647,8 +6647,8 @@ function pc() {
|
|
|
6647
6647
|
for (var oe = 1; oe < 25; oe++) {
|
|
6648
6648
|
var D, N, w = v[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 P = p[f[oe]];
|
|
6651
|
+
P.high = D, P.low = N;
|
|
6652
6652
|
}
|
|
6653
6653
|
var z = p[0], F = v[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, ie = m.words, q = f.words, oe, $, se, T,
|
|
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, P, z, F, K, Q, pe;
|
|
7037
|
+
z = oe = N[0], F = $ = N[1], K = se = N[2], Q = T = N[3], pe = P = 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 += b($, se, T) + C[1] : R < 48 ? ce += v($, 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 +
|
|
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 += b($, se, T) + C[1] : R < 48 ? ce += v($, 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 + P | 0, oe = P, P = 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 += v(F, K, Q) + M[2] : R < 64 ? ce += b(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] + P + 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: {} }, Pn;
|
|
7080
7080
|
function fs() {
|
|
7081
|
-
return
|
|
7081
|
+
return Pn || (Pn = 1, function(s, c) {
|
|
7082
7082
|
(function(e, t) {
|
|
7083
7083
|
s.exports = t(Ee());
|
|
7084
7084
|
})(be, 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: {} }, Bn;
|
|
7158
7158
|
function gc() {
|
|
7159
|
-
return
|
|
7159
|
+
return Bn || (Bn = 1, function(s, c) {
|
|
7160
7160
|
(function(e, t, i) {
|
|
7161
7161
|
s.exports = t(Ee(), ls(), fs());
|
|
7162
7162
|
})(be, 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 Pt() {
|
|
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(), Pt());
|
|
7292
7292
|
})(be, 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;
|
|
@@ -7933,7 +7933,7 @@ function Sc() {
|
|
|
7933
7933
|
});
|
|
7934
7934
|
}(Tr)), Tr.exports;
|
|
7935
7935
|
}
|
|
7936
|
-
var
|
|
7936
|
+
var Pr = { 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
|
+
}(Pr)), Pr.exports;
|
|
7956
7956
|
}
|
|
7957
|
-
var
|
|
7957
|
+
var Br = { 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
|
+
}(Br)), Br.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(), Pt(), We());
|
|
8101
8101
|
})(be, 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 = [];
|
|
@@ -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(), Pt(), We());
|
|
8161
8161
|
})(be, 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(), Pt(), We());
|
|
8881
8881
|
})(be, 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(), Pt(), We());
|
|
8935
8935
|
})(be, 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 Pc() {
|
|
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(), Pt(), We());
|
|
9001
9001
|
})(be, 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 Bc() {
|
|
|
9058
9058
|
}(jr)), jr.exports;
|
|
9059
9059
|
}
|
|
9060
9060
|
var Wr = { exports: {} }, Yn;
|
|
9061
|
-
function
|
|
9061
|
+
function Bc() {
|
|
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(), Pt(), We());
|
|
9065
9065
|
})(be, 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 Pc() {
|
|
|
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(), Pt(), We(), vc(), bc(), xc(), Sc(), _c(), yc(), Ec(), Ac(), wc(), Cc(), Ic(), Rc(), Dc(), kc(), Tc(), Pc(), Bc());
|
|
10185
10185
|
})(be, 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 Pa extends Wc {
|
|
10484
10484
|
constructor(c) {
|
|
10485
10485
|
const e = Object.assign({}, c, {
|
|
10486
10486
|
installUnloadHook: (t) => {
|
|
@@ -10500,7 +10500,7 @@ class Ba extends Wc {
|
|
|
10500
10500
|
}, this.overwriteTransString(c);
|
|
10501
10501
|
}
|
|
10502
10502
|
}
|
|
10503
|
-
Ta(window, "SLS_Tracker",
|
|
10503
|
+
Ta(window, "SLS_Tracker", Pa);
|
|
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 Ba(s) {
|
|
10578
10578
|
return {
|
|
10579
10579
|
transString: function(c) {
|
|
10580
10580
|
let e = {}, t = 0, i = !1;
|
|
@@ -10605,8 +10605,8 @@ function Pa(s) {
|
|
|
10605
10605
|
}
|
|
10606
10606
|
};
|
|
10607
10607
|
}
|
|
10608
|
-
typeof window != "undefined" && Ta(window, "stsPlugin",
|
|
10609
|
-
const { BrowserUtil: e0 } =
|
|
10608
|
+
typeof window != "undefined" && Ta(window, "stsPlugin", Ba);
|
|
10609
|
+
const { BrowserUtil: e0 } = Re, Xt = {
|
|
10610
10610
|
EdgeHTML: "EdgeHTML",
|
|
10611
10611
|
Blink: "Blink",
|
|
10612
10612
|
Trident: "Trident",
|
|
@@ -10822,7 +10822,7 @@ const { BrowserUtil: e0 } = we, Xt = {
|
|
|
10822
10822
|
} catch (c) {
|
|
10823
10823
|
}
|
|
10824
10824
|
return s;
|
|
10825
|
-
}, { BrowserUtil: $r, SystenUtil: ra } =
|
|
10825
|
+
}, { BrowserUtil: $r, SystenUtil: ra } = Re;
|
|
10826
10826
|
class sa {
|
|
10827
10827
|
constructor() {
|
|
10828
10828
|
_(this, "tracker");
|
|
@@ -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 Pa({
|
|
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 = Ba(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(vt(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 Pe = (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 Be = (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
|
+
}, Bt = (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 ? Pe(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) => Pe(Le(s, c), 1e3, 1e4), Lt = (s, c = 2e7) => Pe(s, 1, c), di = class di {
|
|
10951
10951
|
constructor(c) {
|
|
10952
10952
|
_(this, "engine");
|
|
10953
10953
|
_(this, "logClient");
|
|
@@ -10996,25 +10996,25 @@ const Be = (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(Pe(M + E, 8, 2e7), C);
|
|
11000
11000
|
o.push(U);
|
|
11001
|
-
const ie = ut(
|
|
11001
|
+
const ie = ut(Pe(M, 8, 2e7), C);
|
|
11002
11002
|
u.push(ie);
|
|
11003
|
-
const q = ut(
|
|
11003
|
+
const q = ut(Pe(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 P = Bt(se, oe);
|
|
11010
|
+
if (l.push(P), 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")), b.push(Lt((K = N._source) == null ? void 0 : K.framesPerSecond, 100)), v.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 ve = Le(N, "totalPacketSendDelay");
|
|
11015
|
-
R.push(
|
|
11016
|
-
const
|
|
11017
|
-
L.push(
|
|
11015
|
+
R.push(Pe(ve, 1 / (se || 1), 2e3));
|
|
11016
|
+
const we = Le(N, "qpSum");
|
|
11017
|
+
L.push(Pe(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 Be = (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 = [], b = [], v = [], x = [], y = [], A = [], I = [], w = [], R = [], L = [], D = [], N = [], C = [], M = [], E = [], U = [], ie = [], q = [], oe = [], $ = [], se = [], T = [],
|
|
11044
|
+
}, o = [], u = [], h = [], m = [], f = [], l = [], p = [], d = [], g = [], b = [], v = [], x = [], y = [], A = [], I = [], w = [], R = [], L = [], D = [], N = [], C = [], M = [], E = [], U = [], ie = [], q = [], oe = [], $ = [], se = [], T = [], P = [], 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"), ve = Le(Q, "headerBytesReceived"),
|
|
11051
|
-
o.push(
|
|
11052
|
-
const Ae = ut(
|
|
11050
|
+
const pe = (ee = Q._last) != null && ee.timestamp ? Q.timestamp - Q._last.timestamp : 1e3, ce = Le(Q, "bytesReceived"), ve = Le(Q, "headerBytesReceived"), we = ut(Pe(ce + ve, 8, 2e7), pe);
|
|
11051
|
+
o.push(we);
|
|
11052
|
+
const Ae = ut(Pe(ce, 8, 2e7), pe);
|
|
11053
11053
|
u.push(Ae);
|
|
11054
|
-
const Fe = ut(
|
|
11054
|
+
const Fe = ut(Pe(ve, 8, 2e7), pe);
|
|
11055
11055
|
h.push(Fe);
|
|
11056
|
-
const
|
|
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 B = Bt(J, Ce);
|
|
11061
|
+
l.push(B);
|
|
11062
11062
|
const k = Le(Q, "jitterBufferDelay"), V = Le(Q, "jitterBufferEmittedCount");
|
|
11063
11063
|
if (Q.jitterBufferDelay && Q.jitterBufferEmittedCount) {
|
|
11064
|
-
const re =
|
|
11064
|
+
const re = Pe(k, 1e3 / V, 1e4);
|
|
11065
11065
|
p.push(re);
|
|
11066
11066
|
} else
|
|
11067
11067
|
p.push(0);
|
|
11068
11068
|
const Z = Le(Q, "fecPacketsReceived");
|
|
11069
|
-
x.push(
|
|
11070
|
-
const X = Le(Q, "retransmittedPacketsReceived"), H =
|
|
11071
|
-
if (g.push(
|
|
11069
|
+
x.push(Bt(Z, Ce));
|
|
11070
|
+
const X = Le(Q, "retransmittedPacketsReceived"), H = Ce + J - X;
|
|
11071
|
+
if (g.push(Bt(Ce - X, H)), b.push(Bt(J, H)), d.push(Bt(X, H)), v.push(H), F.push(0), K.push(""), n) {
|
|
11072
11072
|
A.push(na(Q.audioLevel));
|
|
11073
11073
|
const re = o0(Q, "synthesizedSamplesEvents");
|
|
11074
11074
|
I.push(re);
|
|
11075
11075
|
const fe = aa(Q, "synthesizedSamplesDuration");
|
|
11076
11076
|
w.push(fe);
|
|
11077
|
-
const _e =
|
|
11077
|
+
const _e = Bt(fe, pe);
|
|
11078
11078
|
y.push(_e), R.push(0);
|
|
11079
11079
|
} else {
|
|
11080
11080
|
const re = (he = Q._last) != null && he.totalInterFrameDelay ? Q.totalInterFrameDelay - Q._last.totalInterFrameDelay : 0;
|
|
11081
|
-
L.push(
|
|
11081
|
+
L.push(Pe(re, 1e3 / (Q.framesDecoded || 30), 500)), D.push(Pe(Q.framesPerSecond, 1, 100)), N.push(Le(Q, "framesReceived")), z.push(Le(Q, "framesRendered")), C.push(Pe(Q.frameHeight, 1, 4400)), M.push(Pe(Q.frameWidth, 1, 7700));
|
|
11082
11082
|
const fe = Le(Q, "totalProcessingDelay");
|
|
11083
|
-
E.push(
|
|
11083
|
+
E.push(Pe(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
|
-
const
|
|
11089
|
-
q.push(
|
|
11088
|
+
const $e = Le(Q, "qpSum");
|
|
11089
|
+
q.push(Pe($e, 1 / (Q.framesPerSecond || 1), 51)), oe.push(Pe(Q.framesDropped));
|
|
11090
11090
|
const mt = Le(Q, "totalFreezesDuration");
|
|
11091
|
-
$.push(
|
|
11091
|
+
$.push(Pe(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(Pe(it, 1e3 / Me, 3e4)) : se.push(0);
|
|
11094
|
+
const Be = Le(Q, "jitterBufferTargetDelay");
|
|
11095
|
+
Be && Me ? T.push(Pe(Be, 1e3 / Me, 3e4)) : T.push(0);
|
|
11096
11096
|
const gt = Le(Q, "jitterBufferMinimumDelay");
|
|
11097
|
-
gt && Me ?
|
|
11097
|
+
gt && Me ? P.push(Pe(gt, 1e3 / Me, 3e4)) : P.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 = b.join(","), a.recoverr = F.join(","), a.alll = b.join(","), a.totalc = v.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 =
|
|
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 = b.join(","), a.recoverr = F.join(","), a.alll = b.join(","), a.totalc = v.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 = P.join(","), a.ofps = z.join(","), a.dfbd = oe.join(","));
|
|
11100
11100
|
} catch (Q) {
|
|
11101
11101
|
}
|
|
11102
11102
|
this.log({
|
|
@@ -11121,7 +11121,7 @@ const Be = (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(Pe(l.currentRoundTripTime, 1e3)), t.push(Pe(l.availableOutgoingBitrate, 8, 2e8)), i.push(ut(Pe(l.bytesSent, 8, 2e7), d, 25e6)), r.push(ut(Pe(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),
|
|
@@ -11921,7 +11921,7 @@ class ae {
|
|
|
11921
11921
|
}
|
|
11922
11922
|
_(ae, "logger");
|
|
11923
11923
|
const h0 = (s) => O(void 0, null, function* () {
|
|
11924
|
-
const c = new
|
|
11924
|
+
const c = new Re.SupportUtil();
|
|
11925
11925
|
let e = {
|
|
11926
11926
|
support: !1,
|
|
11927
11927
|
detail: {
|
|
@@ -11941,10 +11941,10 @@ const h0 = (s) => O(void 0, null, function* () {
|
|
|
11941
11941
|
const t = yield c.checkH264Encode();
|
|
11942
11942
|
e.detail.isH264EncodeSupported = t, e.support = e.support && t;
|
|
11943
11943
|
}
|
|
11944
|
-
return e.detail.isScreenShareSupported = c.checkWebRtcSupport() && c.checkScreenCapture() && !
|
|
11945
|
-
}), d0 = () => new
|
|
11944
|
+
return e.detail.isScreenShareSupported = c.checkWebRtcSupport() && c.checkScreenCapture() && !Re.SystenUtil.isAndroid && !Re.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = c.checkWebRtcSupport() && c.checkEncodedTransformSupport(), e;
|
|
11945
|
+
}), d0 = () => new Re.SupportUtil().checkScreenCapture();
|
|
11946
11946
|
var je = /* @__PURE__ */ ((s) => (s[s.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", s[s.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", s))(je || {}), l0 = /* @__PURE__ */ ((s) => (s[s.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", s[s.POST_PROCESSOR = 1] = "POST_PROCESSOR", s))(l0 || {}), Fi = /* @__PURE__ */ ((s) => (s[s.AUDIO = 0] = "AUDIO", s[s.VIDEO = 1] = "VIDEO", s[s.BOTH = 2] = "BOTH", s))(Fi || {});
|
|
11947
|
-
class ri extends
|
|
11947
|
+
class ri extends Je {
|
|
11948
11948
|
constructor(e, t = je.AliRtcSdkStreamTypeCapture, i = 1) {
|
|
11949
11949
|
super();
|
|
11950
11950
|
// 扩展名
|
|
@@ -12034,7 +12034,7 @@ const f0 = {
|
|
|
12034
12034
|
17: "16IN_360P",
|
|
12035
12035
|
9999: "Mixed_Audio"
|
|
12036
12036
|
};
|
|
12037
|
-
var gs = /* @__PURE__ */ ((s) => (s[s.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", s[s.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", s[s.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", s[s.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", s[s.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", s))(gs || {}), Ti = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", s[s.LiveTranscodingBody = 1] = "LiveTranscodingBody", s))(Ti || {}), Oi = /* @__PURE__ */ ((s) => (s[s.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", s[s.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", s[s.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", s[s.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", s[s.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", s[s.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", s))(Oi || {}), Fa = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", s[s.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", s[s.LiveTranscodingFill = 2] = "LiveTranscodingFill", s))(Fa || {}), vs = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", s[s.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", s))(vs || {}), Oa = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", s[s.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", s[s.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", s[s.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", s[s.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", s[s.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", s))(Oa || {}),
|
|
12037
|
+
var gs = /* @__PURE__ */ ((s) => (s[s.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", s[s.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", s[s.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", s[s.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", s[s.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", s))(gs || {}), Ti = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", s[s.LiveTranscodingBody = 1] = "LiveTranscodingBody", s))(Ti || {}), Oi = /* @__PURE__ */ ((s) => (s[s.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", s[s.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", s[s.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", s[s.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", s[s.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", s[s.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", s))(Oi || {}), Fa = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", s[s.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", s[s.LiveTranscodingFill = 2] = "LiveTranscodingFill", s))(Fa || {}), vs = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", s[s.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", s))(vs || {}), Oa = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", s[s.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", s[s.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", s[s.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", s[s.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", s[s.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", s))(Oa || {}), St = /* @__PURE__ */ ((s) => (s[s.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", s[s.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", s[s.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", s[s.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", s[s.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", s[s.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", s[s.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", s[s.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", s[s.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", s))(St || {}), Va = /* @__PURE__ */ ((s) => (s[s.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", s[s.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", s[s.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", s))(Va || {}), st = /* @__PURE__ */ ((s) => (s[s.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", s[s.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", s[s.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", s[s.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", s[s.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", s[s.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", s[s.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", s))(st || {});
|
|
12038
12038
|
const p0 = {
|
|
12039
12039
|
0: "/libra/v1/sdk/start-task",
|
|
12040
12040
|
1: "/libra/v1/sdk/update-task",
|
|
@@ -12121,8 +12121,8 @@ class ts {
|
|
|
12121
12121
|
return n;
|
|
12122
12122
|
}
|
|
12123
12123
|
}
|
|
12124
|
-
var
|
|
12125
|
-
const oa = 10, ca = 5e3, Qt = class Qt extends
|
|
12124
|
+
var Et = /* @__PURE__ */ ((s) => (s.pre = "pre", s.prod = "prod", s))(Et || {}), It = /* @__PURE__ */ ((s) => (s.AliRtcSdkCommunication = "communication", s.AliRtcSdkInteractiveLive = "interactive_live", s.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", s))(It || {}), Ft = /* @__PURE__ */ ((s) => (s.AliRtcSdkInteractive = "interactive", s.AliRtcSdkLive = "live", s))(Ft || {}), _t = /* @__PURE__ */ ((s) => (s[s.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", s[s.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", s[s.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", s[s.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", s[s.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", s[s.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", s[s.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", s))(_t || {}), He = /* @__PURE__ */ ((s) => (s[s.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", s[s.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", s[s.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", s[s.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", s[s.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", s[s.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", s[s.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", s[s.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", s[s.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", s[s.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", s[s.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", s[s.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", s[s.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", s[s.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", s))(He || {}), De = /* @__PURE__ */ ((s) => (s[s.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", s[s.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", s[s.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", s[s.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", s[s.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", s[s.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", s))(De || {}), Yt = /* @__PURE__ */ ((s) => (s[s.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", s[s.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", s[s.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", s[s.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", s[s.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", s[s.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", s[s.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", s[s.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", s[s.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", s[s.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", s[s.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", s[s.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", s[s.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", s))(Yt || {}), xs = /* @__PURE__ */ ((s) => (s[s.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", s[s.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", s[s.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", s))(xs || {}), si = /* @__PURE__ */ ((s) => (s[s.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", s[s.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", s[s.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", s))(si || {}), ye = /* @__PURE__ */ ((s) => (s[s.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", s[s.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", s[s.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", s[s.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", s))(ye || {}), ge = /* @__PURE__ */ ((s) => (s[s.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", s[s.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", s[s.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", s[s.AliRtcStatePublished = 3] = "AliRtcStatePublished", s))(ge || {}), ke = /* @__PURE__ */ ((s) => (s[s.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", s[s.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", s[s.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", s[s.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", s))(ke || {}), Ge = /* @__PURE__ */ ((s) => (s[s.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", s[s.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", s[s.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", s))(Ge || {}), gi = /* @__PURE__ */ ((s) => (s[s.CAMERA_INVALID = -1] = "CAMERA_INVALID", s[s.CAMERA_REAR = 0] = "CAMERA_REAR", s[s.CAMERA_FRONT = 1] = "CAMERA_FRONT", s))(gi || {});
|
|
12125
|
+
const oa = 10, ca = 5e3, Qt = class Qt extends Je {
|
|
12126
12126
|
constructor(e) {
|
|
12127
12127
|
super();
|
|
12128
12128
|
_(this, "ws");
|
|
@@ -12394,7 +12394,7 @@ class Y extends Error {
|
|
|
12394
12394
|
return this._extra;
|
|
12395
12395
|
}
|
|
12396
12396
|
}
|
|
12397
|
-
const g0 = 3e4, ct = class ct extends
|
|
12397
|
+
const g0 = 3e4, ct = class ct extends Je {
|
|
12398
12398
|
// 发送重连信令时,房间信令凭这些信息找回 session
|
|
12399
12399
|
constructor(e, t, i, r, n, a) {
|
|
12400
12400
|
super();
|
|
@@ -12801,8 +12801,8 @@ var v0 = Object.defineProperty, b0 = Object.getOwnPropertyDescriptor, Ss = (s, c
|
|
|
12801
12801
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
12802
12802
|
return t && i && v0(c, e, i), i;
|
|
12803
12803
|
}, Ye;
|
|
12804
|
-
const Vi = (Ye = class extends
|
|
12805
|
-
constructor(e, t, i, r =
|
|
12804
|
+
const Vi = (Ye = class extends Je {
|
|
12805
|
+
constructor(e, t, i, r = Et.prod) {
|
|
12806
12806
|
super();
|
|
12807
12807
|
_(this, "messageCenter");
|
|
12808
12808
|
_(this, "authInfo");
|
|
@@ -12819,7 +12819,7 @@ const Vi = (Ye = class extends Ge {
|
|
|
12819
12819
|
clientrole: t
|
|
12820
12820
|
}
|
|
12821
12821
|
};
|
|
12822
|
-
const n = r ===
|
|
12822
|
+
const n = r === Et.pre ? Ri.pre : Ri.prod;
|
|
12823
12823
|
this.roomServerUri = `wss://${n}/roomserver/v1/ws`;
|
|
12824
12824
|
}
|
|
12825
12825
|
/**
|
|
@@ -12998,7 +12998,7 @@ Ss([
|
|
|
12998
12998
|
j()
|
|
12999
12999
|
], Vi.prototype, "roleUpdate", 1);
|
|
13000
13000
|
let x0 = Vi;
|
|
13001
|
-
const S0 = "https://pgw.rtn.aliyuncs.com", _0 = "https://gw.rtn.aliyuncs.com", ua = 10 * 60 * 1e3, y0 = 12, li = class li extends
|
|
13001
|
+
const S0 = "https://pgw.rtn.aliyuncs.com", _0 = "https://gw.rtn.aliyuncs.com", ua = 10 * 60 * 1e3, y0 = 12, li = class li extends Je {
|
|
13002
13002
|
constructor(e, t) {
|
|
13003
13003
|
super();
|
|
13004
13004
|
_(this, "env");
|
|
@@ -13012,7 +13012,7 @@ const S0 = "https://pgw.rtn.aliyuncs.com", _0 = "https://gw.rtn.aliyuncs.com", u
|
|
|
13012
13012
|
return;
|
|
13013
13013
|
const { appId: e, channelId: t, userId: i, nonce: r = "", token: n, timestamp: a, sessionId: o, role: u } = this.authInfo;
|
|
13014
13014
|
let h = _0;
|
|
13015
|
-
this.env ===
|
|
13015
|
+
this.env === Et.pre && (h = S0);
|
|
13016
13016
|
const m = `${h}/gslb/v1/stsupdate?appid=${e}&channelid=${t}&userid=${i}&nonce=${r}&token=${n}×tamp=${a}&session=${o}${u ? `&tokenrole=${u}` : ""}&slstoken=true&osstoken=true&tokensid=false`, f = Date.now();
|
|
13017
13017
|
fetch(m).then((l) => l.json()).then((l) => {
|
|
13018
13018
|
var p, d;
|
|
@@ -13051,15 +13051,15 @@ var E0 = Object.defineProperty, A0 = Object.getOwnPropertyDescriptor, w0 = (s, c
|
|
|
13051
13051
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
13052
13052
|
return t && i && E0(c, e, i), i;
|
|
13053
13053
|
};
|
|
13054
|
-
class _s extends
|
|
13055
|
-
constructor(e, t, i, r =
|
|
13054
|
+
class _s extends Je {
|
|
13055
|
+
constructor(e, t, i, r = Et.prod) {
|
|
13056
13056
|
super();
|
|
13057
13057
|
_(this, "signaling");
|
|
13058
13058
|
_(this, "authInfo");
|
|
13059
13059
|
_(this, "userName");
|
|
13060
13060
|
_(this, "channelProfile");
|
|
13061
13061
|
_(this, "clientRole");
|
|
13062
|
-
_(this, "env",
|
|
13062
|
+
_(this, "env", Et.prod);
|
|
13063
13063
|
_(this, "maxConnectRetryCount");
|
|
13064
13064
|
_(this, "stsManager");
|
|
13065
13065
|
_(this, "slsReporter");
|
|
@@ -13303,7 +13303,7 @@ function C0(s, c, e, t, i) {
|
|
|
13303
13303
|
}
|
|
13304
13304
|
};
|
|
13305
13305
|
}
|
|
13306
|
-
class I0 extends
|
|
13306
|
+
class I0 extends Je {
|
|
13307
13307
|
constructor() {
|
|
13308
13308
|
super();
|
|
13309
13309
|
_(this, "audioContext");
|
|
@@ -13337,7 +13337,7 @@ class I0 extends Ge {
|
|
|
13337
13337
|
this.stop();
|
|
13338
13338
|
}
|
|
13339
13339
|
}
|
|
13340
|
-
class Ha extends
|
|
13340
|
+
class Ha extends Je {
|
|
13341
13341
|
constructor(e, t, i, r) {
|
|
13342
13342
|
super();
|
|
13343
13343
|
_(this, "uid");
|
|
@@ -13503,7 +13503,7 @@ const Ka = (s, c, e = !1) => {
|
|
|
13503
13503
|
return e && s.srcObject === c ? i = Promise.resolve() : (s.load(), s.srcObject = c, i = s.play(), s._playPromise = i), i;
|
|
13504
13504
|
}));
|
|
13505
13505
|
return new Promise((i) => {
|
|
13506
|
-
if (
|
|
13506
|
+
if (Re.BrowserUtil.isMicroMessenger) {
|
|
13507
13507
|
const r = window.top !== window.self, n = window.WeixinJSBridge || window.top.WeixinJSBridge;
|
|
13508
13508
|
n ? n.invoke("getNetworkType", {}, () => {
|
|
13509
13509
|
i(t());
|
|
@@ -13519,7 +13519,7 @@ const Ka = (s, c, e = !1) => {
|
|
|
13519
13519
|
i(t());
|
|
13520
13520
|
}, 0);
|
|
13521
13521
|
});
|
|
13522
|
-
},
|
|
13522
|
+
}, bt = (s) => {
|
|
13523
13523
|
Promise.race([Rt(100), s._playPromise || Promise.resolve()]).catch(() => {
|
|
13524
13524
|
}).then(() => {
|
|
13525
13525
|
s.srcObject = null, s._playPromise = void 0;
|
|
@@ -13719,13 +13719,13 @@ class ti {
|
|
|
13719
13719
|
);
|
|
13720
13720
|
}
|
|
13721
13721
|
}
|
|
13722
|
-
var T0 = Object.defineProperty,
|
|
13723
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
13722
|
+
var T0 = Object.defineProperty, P0 = Object.getOwnPropertyDescriptor, Oe = (s, c, e, t) => {
|
|
13723
|
+
for (var i = t > 1 ? void 0 : t ? P0(c, e) : c, r = s.length - 1, n; r >= 0; r--)
|
|
13724
13724
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
13725
13725
|
return t && i && T0(c, e, i), i;
|
|
13726
13726
|
};
|
|
13727
13727
|
const fa = 30;
|
|
13728
|
-
class ni extends
|
|
13728
|
+
class ni extends Je {
|
|
13729
13729
|
constructor() {
|
|
13730
13730
|
super();
|
|
13731
13731
|
_(this, "state");
|
|
@@ -13745,7 +13745,10 @@ const Ne = (Tt = class extends Ha {
|
|
|
13745
13745
|
_(this, "url", "");
|
|
13746
13746
|
_(this, "joinTime", 0);
|
|
13747
13747
|
_(this, "_isPublishing", !1);
|
|
13748
|
-
_(this, "publishPromise", Promise.resolve({
|
|
13748
|
+
_(this, "publishPromise", Promise.resolve({
|
|
13749
|
+
traceId: "",
|
|
13750
|
+
l1ip: void 0
|
|
13751
|
+
}));
|
|
13749
13752
|
_(this, "previewElements", []);
|
|
13750
13753
|
// 本地主流预览容器元素列表
|
|
13751
13754
|
_(this, "screenPreviewElements", []);
|
|
@@ -13940,7 +13943,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
13940
13943
|
});
|
|
13941
13944
|
}
|
|
13942
13945
|
resetElement(e) {
|
|
13943
|
-
this.previewElements.includes(e) && (
|
|
13946
|
+
this.previewElements.includes(e) && (bt(e), this.previewElements.splice(this.previewElements.indexOf(e), 1)), this.screenPreviewElements.includes(e) && (bt(e), this.screenPreviewElements.splice(this.screenPreviewElements.indexOf(e), 1));
|
|
13944
13947
|
}
|
|
13945
13948
|
setPreviewElement(e) {
|
|
13946
13949
|
const { videoElement: t, screen: i } = e;
|
|
@@ -13952,9 +13955,9 @@ const Ne = (Tt = class extends Ha {
|
|
|
13952
13955
|
let n = [];
|
|
13953
13956
|
if (!t && !e && !i && r) {
|
|
13954
13957
|
try {
|
|
13955
|
-
n = yield
|
|
13958
|
+
n = yield Re.getCameraList(), n.length && (yield this.startCameraCapture());
|
|
13956
13959
|
} catch (a) {
|
|
13957
|
-
throw a.code ===
|
|
13960
|
+
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}`);
|
|
13958
13961
|
}
|
|
13959
13962
|
if (!n.length)
|
|
13960
13963
|
throw new Y(te.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
|
|
@@ -13967,9 +13970,9 @@ const Ne = (Tt = class extends Ha {
|
|
|
13967
13970
|
let r = [];
|
|
13968
13971
|
if (!e && !t && i) {
|
|
13969
13972
|
try {
|
|
13970
|
-
r = yield
|
|
13973
|
+
r = yield Re.getMicList(), r.length && (yield this.startAudioCapture());
|
|
13971
13974
|
} catch (n) {
|
|
13972
|
-
throw n.code ===
|
|
13975
|
+
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}`);
|
|
13973
13976
|
}
|
|
13974
13977
|
if (!r.length)
|
|
13975
13978
|
throw new Y(te.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
|
|
@@ -14072,17 +14075,17 @@ const Ne = (Tt = class extends Ha {
|
|
|
14072
14075
|
const { videoElement: t, primary: i = !0, screen: r = !0 } = e || {};
|
|
14073
14076
|
if (!t)
|
|
14074
14077
|
i && (this.previewElements.forEach((n) => {
|
|
14075
|
-
|
|
14078
|
+
bt(n);
|
|
14076
14079
|
}), this.previewElements = []), r && (this.screenPreviewElements.forEach((n) => {
|
|
14077
|
-
|
|
14080
|
+
bt(n);
|
|
14078
14081
|
}), this.screenPreviewElements = []);
|
|
14079
14082
|
else {
|
|
14080
14083
|
const n = this.previewElements.findIndex((a) => a === t);
|
|
14081
14084
|
if (n >= 0)
|
|
14082
|
-
this.previewElements.splice(n, 1),
|
|
14085
|
+
this.previewElements.splice(n, 1), bt(t);
|
|
14083
14086
|
else {
|
|
14084
14087
|
const a = this.screenPreviewElements.findIndex((o) => o === t);
|
|
14085
|
-
a >= 0 && (this.screenPreviewElements.splice(a, 1),
|
|
14088
|
+
a >= 0 && (this.screenPreviewElements.splice(a, 1), bt(t));
|
|
14086
14089
|
}
|
|
14087
14090
|
}
|
|
14088
14091
|
}
|
|
@@ -14094,28 +14097,38 @@ const Ne = (Tt = class extends Ha {
|
|
|
14094
14097
|
createLocalStream(e) {
|
|
14095
14098
|
return O(this, null, function* () {
|
|
14096
14099
|
try {
|
|
14100
|
+
if (e.video)
|
|
14101
|
+
for (let i = 0; i < this.previewElements.length; i++) {
|
|
14102
|
+
const r = this.previewElements[i];
|
|
14103
|
+
bt(r);
|
|
14104
|
+
}
|
|
14105
|
+
else if (e.screen)
|
|
14106
|
+
for (let i = 0; i < this.screenPreviewElements.length; i++) {
|
|
14107
|
+
const r = this.screenPreviewElements[i];
|
|
14108
|
+
bt(r);
|
|
14109
|
+
}
|
|
14097
14110
|
const t = yield this.streamManager.createLocalStream(e);
|
|
14098
14111
|
return t != null && t.audioTrack && this.audioVolumeIndicationInterval > 0 && this.audioLevelMonitor.start(t.audioTrack, this.audioVolumeIndicationInterval), e.video ? this.previewAll({ primary: !0 }) : e.screen && this.previewAll({ screen: !0 }), t;
|
|
14099
14112
|
} catch (t) {
|
|
14100
14113
|
const i = R0[t.errorCode];
|
|
14101
14114
|
throw i && (e.audio ? this.emit(
|
|
14102
14115
|
"localDeviceException",
|
|
14103
|
-
|
|
14116
|
+
_t.AliEngineLocalDeviceTypeMic,
|
|
14104
14117
|
i,
|
|
14105
14118
|
""
|
|
14106
14119
|
) : e.video ? this.emit(
|
|
14107
14120
|
"localDeviceException",
|
|
14108
|
-
|
|
14121
|
+
_t.AliEngineLocalDeviceTypeCamera,
|
|
14109
14122
|
i,
|
|
14110
14123
|
""
|
|
14111
14124
|
) : e.screen ? this.emit(
|
|
14112
14125
|
"localDeviceException",
|
|
14113
|
-
|
|
14126
|
+
_t.AliEngineLocalDeviceTypeDisplay,
|
|
14114
14127
|
i,
|
|
14115
14128
|
""
|
|
14116
14129
|
) : this.emit(
|
|
14117
14130
|
"localDeviceException",
|
|
14118
|
-
|
|
14131
|
+
_t.AliEngineLocalDeviceTypeUnknown,
|
|
14119
14132
|
i,
|
|
14120
14133
|
""
|
|
14121
14134
|
)), t;
|
|
@@ -14147,7 +14160,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14147
14160
|
});
|
|
14148
14161
|
}
|
|
14149
14162
|
reportAudioProfile() {
|
|
14150
|
-
const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t =
|
|
14163
|
+
const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t = Re.AudioProfileMap.get(e);
|
|
14151
14164
|
this.slsReporter.reportPublishProfile(G.Audio, {
|
|
14152
14165
|
a_profile: e,
|
|
14153
14166
|
bits: (t == null ? void 0 : t.maxBitrate) || 0,
|
|
@@ -14156,7 +14169,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14156
14169
|
});
|
|
14157
14170
|
}
|
|
14158
14171
|
reportVideoProfile() {
|
|
14159
|
-
const e = this.streamManager.cameraStreamInfo.videoProfile || "", t =
|
|
14172
|
+
const e = this.streamManager.cameraStreamInfo.videoProfile || "", t = Re.VideoProfileMap.get(e);
|
|
14160
14173
|
t && this.slsReporter.reportPublishProfile(G.VideoLarge, {
|
|
14161
14174
|
v_profile: e,
|
|
14162
14175
|
wdth: (t == null ? void 0 : t.width) || 0,
|
|
@@ -14166,7 +14179,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14166
14179
|
});
|
|
14167
14180
|
}
|
|
14168
14181
|
reportScreenProfile() {
|
|
14169
|
-
const e = this.streamManager.screenStreamInfo.videoProfile || "", t =
|
|
14182
|
+
const e = this.streamManager.screenStreamInfo.videoProfile || "", t = Re.VideoProfileMap.get(e);
|
|
14170
14183
|
t && this.slsReporter.reportPublishProfile(G.Screen, {
|
|
14171
14184
|
v_profile: e,
|
|
14172
14185
|
wdth: (t == null ? void 0 : t.width) || 0,
|
|
@@ -14623,7 +14636,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14623
14636
|
const n = yield this.rtsManager.getPublishVideoStats(this.url, G.VideoLarge);
|
|
14624
14637
|
n && t.push({
|
|
14625
14638
|
track: ye.AliRtcVideoTrackCamera,
|
|
14626
|
-
streamType:
|
|
14639
|
+
streamType: Ge.AliRtcVideoStreamTypeHigh,
|
|
14627
14640
|
stats: n
|
|
14628
14641
|
});
|
|
14629
14642
|
}
|
|
@@ -14631,7 +14644,7 @@ const Ne = (Tt = class extends Ha {
|
|
|
14631
14644
|
const n = yield this.rtsManager.getPublishVideoStats(this.url, G.VideoSmall);
|
|
14632
14645
|
n && t.push({
|
|
14633
14646
|
track: ye.AliRtcVideoTrackCamera,
|
|
14634
|
-
streamType:
|
|
14647
|
+
streamType: Ge.AliRtcVideoStreamTypeLow,
|
|
14635
14648
|
stats: n
|
|
14636
14649
|
});
|
|
14637
14650
|
}
|
|
@@ -14720,17 +14733,17 @@ Oe([
|
|
|
14720
14733
|
j(([s, c, e]) => [s.length, c, e])
|
|
14721
14734
|
], Ne.prototype, "sendSEI", 1);
|
|
14722
14735
|
let pa = Ne;
|
|
14723
|
-
var
|
|
14724
|
-
const
|
|
14736
|
+
var Ct = /* @__PURE__ */ ((s) => (s.OPUS = "opus", s.H264 = "H264", s.UNKNOWN = "", s))(Ct || {}), 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 || {});
|
|
14737
|
+
const B0 = (s) => {
|
|
14725
14738
|
const c = new MediaStream();
|
|
14726
14739
|
return c.addTrack(s), c;
|
|
14727
14740
|
}, qa = (s) => O(void 0, null, function* () {
|
|
14728
|
-
return yield
|
|
14741
|
+
return yield Re.createStream({
|
|
14729
14742
|
custom: !0,
|
|
14730
14743
|
mediaStream: s
|
|
14731
14744
|
});
|
|
14732
14745
|
}), ai = (s) => O(void 0, null, function* () {
|
|
14733
|
-
const c =
|
|
14746
|
+
const c = B0(s);
|
|
14734
14747
|
return yield qa(c);
|
|
14735
14748
|
}), L0 = (s) => {
|
|
14736
14749
|
const { audio: c, video: e, screen: t } = s;
|
|
@@ -14743,7 +14756,7 @@ var U0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, z0 = (s, c
|
|
|
14743
14756
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
14744
14757
|
return t && i && U0(c, e, i), i;
|
|
14745
14758
|
};
|
|
14746
|
-
class
|
|
14759
|
+
class Pi extends Je {
|
|
14747
14760
|
constructor() {
|
|
14748
14761
|
super();
|
|
14749
14762
|
_(this, "audioInfo", {
|
|
@@ -14752,7 +14765,7 @@ class Bi extends Ge {
|
|
|
14752
14765
|
msid: "",
|
|
14753
14766
|
pt: 0,
|
|
14754
14767
|
red: 0,
|
|
14755
|
-
codec:
|
|
14768
|
+
codec: Ct.UNKNOWN
|
|
14756
14769
|
});
|
|
14757
14770
|
_(this, "videoLargeInfo", {
|
|
14758
14771
|
subscribeState: Se.NotSubscribe,
|
|
@@ -14760,7 +14773,7 @@ class Bi extends Ge {
|
|
|
14760
14773
|
msid: "",
|
|
14761
14774
|
pt: 0,
|
|
14762
14775
|
red: 0,
|
|
14763
|
-
codec:
|
|
14776
|
+
codec: Ct.UNKNOWN
|
|
14764
14777
|
});
|
|
14765
14778
|
_(this, "videoSmallInfo", {
|
|
14766
14779
|
subscribeState: Se.NotSubscribe,
|
|
@@ -14768,7 +14781,7 @@ class Bi extends Ge {
|
|
|
14768
14781
|
msid: "",
|
|
14769
14782
|
pt: 0,
|
|
14770
14783
|
red: 0,
|
|
14771
|
-
codec:
|
|
14784
|
+
codec: Ct.UNKNOWN
|
|
14772
14785
|
});
|
|
14773
14786
|
_(this, "screenInfo", {
|
|
14774
14787
|
subscribeState: Se.NotSubscribe,
|
|
@@ -14776,7 +14789,7 @@ class Bi extends Ge {
|
|
|
14776
14789
|
msid: "",
|
|
14777
14790
|
pt: 0,
|
|
14778
14791
|
red: 0,
|
|
14779
|
-
codec:
|
|
14792
|
+
codec: Ct.UNKNOWN
|
|
14780
14793
|
});
|
|
14781
14794
|
_(this, "dataInfo", {
|
|
14782
14795
|
subscribeState: Se.NotSubscribe,
|
|
@@ -14784,7 +14797,7 @@ class Bi extends Ge {
|
|
|
14784
14797
|
msid: "",
|
|
14785
14798
|
pt: 0,
|
|
14786
14799
|
red: 0,
|
|
14787
|
-
codec:
|
|
14800
|
+
codec: Ct.UNKNOWN
|
|
14788
14801
|
});
|
|
14789
14802
|
_(this, "audioVolume", 1);
|
|
14790
14803
|
_(this, "audioMuted", !1);
|
|
@@ -14927,7 +14940,7 @@ class Bi extends Ge {
|
|
|
14927
14940
|
return this.audioInfo.codec;
|
|
14928
14941
|
}
|
|
14929
14942
|
get videoCodec() {
|
|
14930
|
-
return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec :
|
|
14943
|
+
return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec : Ct.UNKNOWN;
|
|
14931
14944
|
}
|
|
14932
14945
|
get audioTrackInfo() {
|
|
14933
14946
|
return this.hasAudio ? si.AliRtcAudioTrackMic : si.AliRtcAudioTrackNo;
|
|
@@ -14940,7 +14953,7 @@ class Bi extends Ge {
|
|
|
14940
14953
|
let t = "", i = "", r = "", n = "", a = "";
|
|
14941
14954
|
return e ? (e.forEach((o) => {
|
|
14942
14955
|
var m;
|
|
14943
|
-
let u =
|
|
14956
|
+
let u = Ct.UNKNOWN;
|
|
14944
14957
|
const h = ((m = o == null ? void 0 : o.attr) == null ? void 0 : m.reason) === "reconnect";
|
|
14945
14958
|
if (o.userdata) {
|
|
14946
14959
|
const { codec: f } = JSON.parse(o.userdata);
|
|
@@ -14975,16 +14988,16 @@ class Bi extends Ge {
|
|
|
14975
14988
|
updateRemoteUserDeviceStatus(e) {
|
|
14976
14989
|
let t = za.parseStatus(e);
|
|
14977
14990
|
const { audioDisable: i, videoDisable: r, screenDisable: n } = t;
|
|
14978
|
-
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(et.Remote, i ?
|
|
14991
|
+
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(et.Remote, i ? Ie.MuteAudio : Ie.UnmuteAudio)), this.userStatus.videoDisable != r && (this.userStatus.videoDisable = r, this.emit(et.Remote, r ? Ie.MuteVideo : Ie.UnmuteVideo)), this.userStatus.screenDisable != n && (this.userStatus.screenDisable = n, this.emit(et.Remote, n ? Ie.MuteScreen : Ie.UnmuteScreen))) : (this.userStatus = t, this.emit(et.Remote, i ? Ie.MuteAudio : Ie.UnmuteAudio), this.emit(et.Remote, r ? Ie.MuteVideo : Ie.UnmuteVideo), this.emit(et.Remote, n ? Ie.MuteScreen : Ie.UnmuteScreen)), !1;
|
|
14979
14992
|
}
|
|
14980
14993
|
}
|
|
14981
14994
|
/**
|
|
14982
14995
|
* @ignore
|
|
14983
14996
|
*/
|
|
14984
|
-
_(
|
|
14997
|
+
_(Pi, "logName", "RemoteStreamInfo");
|
|
14985
14998
|
z0([
|
|
14986
14999
|
j()
|
|
14987
|
-
],
|
|
15000
|
+
], Pi.prototype, "updateRemoteTrackSubState", 1);
|
|
14988
15001
|
class j0 {
|
|
14989
15002
|
constructor(c) {
|
|
14990
15003
|
_(this, "remoteUser");
|
|
@@ -15038,7 +15051,7 @@ var W0 = Object.defineProperty, K0 = Object.getOwnPropertyDescriptor, Xe = (s, c
|
|
|
15038
15051
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
15039
15052
|
return t && i && W0(c, e, i), i;
|
|
15040
15053
|
};
|
|
15041
|
-
class Zt extends
|
|
15054
|
+
class Zt extends Je {
|
|
15042
15055
|
constructor() {
|
|
15043
15056
|
super();
|
|
15044
15057
|
_(this, "state");
|
|
@@ -15063,8 +15076,8 @@ class Zt extends Ge {
|
|
|
15063
15076
|
}
|
|
15064
15077
|
}
|
|
15065
15078
|
const $0 = 30;
|
|
15066
|
-
var
|
|
15067
|
-
const
|
|
15079
|
+
var yt;
|
|
15080
|
+
const Ke = (yt = class extends Ha {
|
|
15068
15081
|
constructor(e) {
|
|
15069
15082
|
var l;
|
|
15070
15083
|
const {
|
|
@@ -15100,7 +15113,7 @@ const Je = (_t = class extends Ha {
|
|
|
15100
15113
|
_(this, "wantSubAudio", !1);
|
|
15101
15114
|
_(this, "wantSubVideo", !1);
|
|
15102
15115
|
_(this, "wantSubScreen", !1);
|
|
15103
|
-
_(this, "defaultVideoStreamType",
|
|
15116
|
+
_(this, "defaultVideoStreamType", Ge.AliRtcVideoStreamTypeHigh);
|
|
15104
15117
|
_(this, "audioMuted", !1);
|
|
15105
15118
|
_(this, "playoutVolume", 1);
|
|
15106
15119
|
_(this, "playoutGainNode");
|
|
@@ -15148,7 +15161,7 @@ const Je = (_t = class extends Ha {
|
|
|
15148
15161
|
} else
|
|
15149
15162
|
i = ti.parse(t.body);
|
|
15150
15163
|
i || ae.event(
|
|
15151
|
-
`[${
|
|
15164
|
+
`[${yt.logName}]`,
|
|
15152
15165
|
`parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`
|
|
15153
15166
|
);
|
|
15154
15167
|
} else {
|
|
@@ -15156,7 +15169,7 @@ const Je = (_t = class extends Ha {
|
|
|
15156
15169
|
return;
|
|
15157
15170
|
}
|
|
15158
15171
|
i && (ae.event(
|
|
15159
|
-
`[${
|
|
15172
|
+
`[${yt.logName}]`,
|
|
15160
15173
|
`receive data channel message, length: ${(r = i.data) == null ? void 0 : r.byteLength}`
|
|
15161
15174
|
), this.emit("remoteDataChannelMessage", this.uid, i));
|
|
15162
15175
|
});
|
|
@@ -15166,7 +15179,7 @@ const Je = (_t = class extends Ha {
|
|
|
15166
15179
|
_(this, "handleAudioPaused", () => {
|
|
15167
15180
|
this.emit("remoteAudioPlayError", "paused");
|
|
15168
15181
|
});
|
|
15169
|
-
this.streamInfo = new
|
|
15182
|
+
this.streamInfo = new Pi(), this.remoteUserInfo = new j0(this), this.parameter = f, this.streamInfo.on(et.Remote, (p) => {
|
|
15170
15183
|
this.emit(et.Remote, p, this.userId);
|
|
15171
15184
|
}), 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) => {
|
|
15172
15185
|
this.emit("audioSubscribeStateChanged", this.uid, p, d, g);
|
|
@@ -15297,13 +15310,13 @@ const Je = (_t = class extends Ha {
|
|
|
15297
15310
|
"track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
|
|
15298
15311
|
);
|
|
15299
15312
|
e ? ns(e).forEach((r) => {
|
|
15300
|
-
r.setAttribute("playsinline", ""),
|
|
15313
|
+
r.setAttribute("playsinline", ""), Re.BrowserUtil.isMicroMessenger && (r.setAttribute("x5-video-player-type", "h5-page"), r.setAttribute("x5-playsinline", ""), Re.SystenUtil.isAndroid || Re.SystenUtil.isIos && r.setAttribute("x-webkit-airplay", "allow")), t === ye.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(r) : this.viewMap.cameraViews.push(r), this.play(r, t === ye.AliRtcVideoTrackScreen);
|
|
15301
15314
|
}) : (this.stopPlayAll(t === ye.AliRtcVideoTrackScreen), t === ye.AliRtcVideoTrackScreen ? this.viewMap.screenViews = [] : this.viewMap.cameraViews = []);
|
|
15302
15315
|
}
|
|
15303
15316
|
clear(e = !0) {
|
|
15304
15317
|
return O(this, null, function* () {
|
|
15305
15318
|
var t;
|
|
15306
|
-
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Ki(
|
|
15319
|
+
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Ki(yt.prototype, this, "clear").call(this), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, ei.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(et.Remote);
|
|
15307
15320
|
});
|
|
15308
15321
|
}
|
|
15309
15322
|
updateRemoteUserDeviceStatus(e) {
|
|
@@ -15313,7 +15326,7 @@ const Je = (_t = class extends Ha {
|
|
|
15313
15326
|
updateRemoteTracks(e, t, i, r) {
|
|
15314
15327
|
return O(this, null, function* () {
|
|
15315
15328
|
var a;
|
|
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
|
|
15329
|
+
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t != null ? t : ""), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new Pi()), (a = this.streamInfo) == null ? void 0 : a.updateTracks(r);
|
|
15317
15330
|
});
|
|
15318
15331
|
}
|
|
15319
15332
|
subscribe(r, n) {
|
|
@@ -15577,7 +15590,7 @@ const Je = (_t = class extends Ha {
|
|
|
15577
15590
|
getRetryOptions() {
|
|
15578
15591
|
var i, r, n, a, o, u, h;
|
|
15579
15592
|
const e = {};
|
|
15580
|
-
this.wantSubAudio && ((i = this.streamInfo) != null && i.hasAudio) && (e.audio = !0, e.aMsid = ((r = this.streamInfo.getAudioInfo()) == null ? void 0 : r.msid) || G.Audio), this.wantSubVideo && ((n = this.streamInfo) != null && n.hasVideo) && (this.defaultVideoStreamType ===
|
|
15593
|
+
this.wantSubAudio && ((i = this.streamInfo) != null && i.hasAudio) && (e.audio = !0, e.aMsid = ((r = this.streamInfo.getAudioInfo()) == null ? void 0 : r.msid) || G.Audio), this.wantSubVideo && ((n = this.streamInfo) != null && n.hasVideo) && (this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeLow && ((a = this.streamInfo) != null && a.hasVideoSmall) ? (e.video = !0, e.vMsid = G.VideoSmall) : (o = this.streamInfo) != null && o.hasVideoLarge && (e.video = !0, e.vMsid = ((u = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : u.msid) || G.VideoLarge)), this.wantSubScreen && ((h = this.streamInfo) != null && h.hasScreen) && (e.screen = !0);
|
|
15581
15594
|
let t = {};
|
|
15582
15595
|
if (e.audio || e.video)
|
|
15583
15596
|
t = {
|
|
@@ -15603,8 +15616,8 @@ const Je = (_t = class extends Ha {
|
|
|
15603
15616
|
updateSubscribe(e) {
|
|
15604
15617
|
var n, a, o, u, h, m, f, l, p, d, g, b, v, x, y, A, I;
|
|
15605
15618
|
const t = Date.now(), i = {}, r = {};
|
|
15606
|
-
if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((a = this.streamInfo.getAudioInfo()) == null ? void 0 : a.msid) || G.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (r.audio = !0, r.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || G.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType ===
|
|
15607
|
-
if (ae.event(`[${
|
|
15619
|
+
if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((a = this.streamInfo.getAudioInfo()) == null ? void 0 : a.msid) || G.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (r.audio = !0, r.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || G.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((m = this.streamInfo) != null && m.hasVideoSmall) ? (i.video = !0, i.vMsid = G.VideoSmall) : !this.isVideoLargeSubscribing && ((f = this.streamInfo) != null && f.hasVideoLarge) && !(this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || G.VideoLarge), this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (r.video = !0, r.vMsid = G.VideoLarge) : this.defaultVideoStreamType === Ge.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (r.video = !0, r.vMsid = G.VideoSmall)) : (!this.wantSubVideo || !((p = this.streamInfo) != null && p.hasVideo)) && this.isVideoSubscribing && (r.video = !0, r.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? G.VideoSmall : ((d = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : d.msid) || G.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((g = this.streamInfo) != null && g.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((b = this.streamInfo) != null && b.hasScreen)) && this.isScreenSubscribing && (r.screen = !0), (v = this.parameter.data) != null && v.enableSubDataChannel && !this.isDataSubscribing && ((x = this.streamInfo) != null && x.hasData) ? i.data = !0 : (!((y = this.parameter.data) != null && y.enableSubDataChannel) || !((A = this.streamInfo) != null && A.hasData)) && this.isDataSubscribing && (r.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (r.audio || r.video || r.screen) && this.subscribeDeleteTracks(r), e === Te.Reconnect) {
|
|
15620
|
+
if (ae.event(`[${yt.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
|
|
15608
15621
|
const w = this.rtsManager.getStreamByMsid({
|
|
15609
15622
|
url: this.streamUrl,
|
|
15610
15623
|
aMsid: this.streamInfo.getAudioInfo().msid || G.Audio
|
|
@@ -15651,32 +15664,28 @@ const Je = (_t = class extends Ha {
|
|
|
15651
15664
|
}
|
|
15652
15665
|
playAudio() {
|
|
15653
15666
|
return O(this, null, function* () {
|
|
15654
|
-
var
|
|
15655
|
-
if (
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
|
|
15667
|
+
var e, t;
|
|
15668
|
+
if (this.audioTrack) {
|
|
15669
|
+
if (this.toggleAudio(!this.audioMuted), this.audioElement || (this.audioElement = document.createElement("audio"), this.audioElement.addEventListener("pause", this.handleAudioPaused), this.setPlayoutVolume(this.playoutVolume)), ((t = (e = this.audioElement.srcObject) == null ? void 0 : e.getAudioTracks()) == null ? void 0 : t[0]) !== this.audioTrack) {
|
|
15670
|
+
let i = this.audioElement.srcObject;
|
|
15671
|
+
i ? i.getAudioTracks().forEach((r) => {
|
|
15672
|
+
i.removeTrack(r);
|
|
15673
|
+
}) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
|
|
15674
|
+
}
|
|
15675
|
+
if (Re.SystenUtil.isIos && parseInt(Re.SystenUtil.systemVersion) <= 14) {
|
|
15676
|
+
const i = this.audioElement;
|
|
15677
|
+
i.setAttribute("autoplay", "");
|
|
15659
15678
|
const r = () => {
|
|
15660
|
-
|
|
15661
|
-
|
|
15679
|
+
i.removeEventListener("playing", r), i.pause(), i.play().catch(() => {
|
|
15680
|
+
this.handleAutoPlayFailed();
|
|
15681
|
+
});
|
|
15662
15682
|
};
|
|
15663
15683
|
this.audioElement.addEventListener("playing", r);
|
|
15664
|
-
}
|
|
15665
|
-
|
|
15666
|
-
|
|
15667
|
-
|
|
15668
|
-
let r = this.audioElement.srcObject;
|
|
15669
|
-
r ? r.getAudioTracks().forEach((n) => {
|
|
15670
|
-
r.removeTrack(n);
|
|
15671
|
-
}) : (r = new MediaStream(), this.audioElement.srcObject = r), r.addTrack(this.audioTrack);
|
|
15684
|
+
} else
|
|
15685
|
+
this.audioElement.play().catch(() => {
|
|
15686
|
+
this.handleAutoPlayFailed();
|
|
15687
|
+
});
|
|
15672
15688
|
}
|
|
15673
|
-
this.audioElement.play().catch(() => {
|
|
15674
|
-
this.handleAutoPlayFailed();
|
|
15675
|
-
});
|
|
15676
|
-
const e = this.audioElement;
|
|
15677
|
-
this.audioElement.addEventListener("playing", function r() {
|
|
15678
|
-
e.removeEventListener("playing", r), we.SystenUtil.isIos && parseInt(we.SystenUtil.systemVersion) <= 14 && (e.muted || (e.pause(), e.play()));
|
|
15679
|
-
});
|
|
15680
15689
|
});
|
|
15681
15690
|
}
|
|
15682
15691
|
stopPlayAudio() {
|
|
@@ -15700,9 +15709,9 @@ const Je = (_t = class extends Ha {
|
|
|
15700
15709
|
}
|
|
15701
15710
|
stopPlayAll(e = !1) {
|
|
15702
15711
|
e ? this.viewMap.screenViews.forEach((t) => {
|
|
15703
|
-
|
|
15712
|
+
bt(t);
|
|
15704
15713
|
}) : this.viewMap.cameraViews.forEach((t) => {
|
|
15705
|
-
|
|
15714
|
+
bt(t);
|
|
15706
15715
|
});
|
|
15707
15716
|
}
|
|
15708
15717
|
/**
|
|
@@ -15746,7 +15755,7 @@ const Je = (_t = class extends Ha {
|
|
|
15746
15755
|
u && t.push({
|
|
15747
15756
|
uid: this.uid,
|
|
15748
15757
|
track: ye.AliRtcVideoTrackCamera,
|
|
15749
|
-
streamType:
|
|
15758
|
+
streamType: Ge.AliRtcVideoStreamTypeHigh,
|
|
15750
15759
|
stats: u
|
|
15751
15760
|
});
|
|
15752
15761
|
}
|
|
@@ -15758,7 +15767,7 @@ const Je = (_t = class extends Ha {
|
|
|
15758
15767
|
u && t.push({
|
|
15759
15768
|
uid: this.uid,
|
|
15760
15769
|
track: ye.AliRtcVideoTrackCamera,
|
|
15761
|
-
streamType:
|
|
15770
|
+
streamType: Ge.AliRtcVideoStreamTypeLow,
|
|
15762
15771
|
stats: u
|
|
15763
15772
|
});
|
|
15764
15773
|
}
|
|
@@ -15842,62 +15851,65 @@ const Je = (_t = class extends Ha {
|
|
|
15842
15851
|
}, /**
|
|
15843
15852
|
* @ignore
|
|
15844
15853
|
*/
|
|
15845
|
-
_(
|
|
15854
|
+
_(yt, "logName", "RemoteUser"), yt);
|
|
15846
15855
|
Xe([
|
|
15847
15856
|
j()
|
|
15848
|
-
],
|
|
15857
|
+
], Ke.prototype, "clear", 1);
|
|
15849
15858
|
Xe([
|
|
15850
15859
|
j()
|
|
15851
|
-
],
|
|
15860
|
+
], Ke.prototype, "updateRemoteUserDeviceStatus", 1);
|
|
15852
15861
|
Xe([
|
|
15853
15862
|
j()
|
|
15854
|
-
],
|
|
15863
|
+
], Ke.prototype, "updateRemoteTracks", 1);
|
|
15855
15864
|
Xe([
|
|
15856
15865
|
j(ne)
|
|
15857
|
-
],
|
|
15866
|
+
], Ke.prototype, "subscribe", 1);
|
|
15858
15867
|
Xe([
|
|
15859
15868
|
j()
|
|
15860
|
-
],
|
|
15869
|
+
], Ke.prototype, "subscribeProxy", 1);
|
|
15861
15870
|
Xe([
|
|
15862
15871
|
j(ne)
|
|
15863
|
-
],
|
|
15872
|
+
], Ke.prototype, "subscribeDeleteProxy", 1);
|
|
15864
15873
|
Xe([
|
|
15865
15874
|
j()
|
|
15866
|
-
],
|
|
15875
|
+
], Ke.prototype, "restore", 1);
|
|
15876
|
+
Xe([
|
|
15877
|
+
j(ne)
|
|
15878
|
+
], Ke.prototype, "resumeAudio", 1);
|
|
15867
15879
|
Xe([
|
|
15868
15880
|
j(ne)
|
|
15869
|
-
],
|
|
15881
|
+
], Ke.prototype, "stopSubscribe", 1);
|
|
15870
15882
|
Xe([
|
|
15871
15883
|
j(ne)
|
|
15872
|
-
],
|
|
15884
|
+
], Ke.prototype, "doStopSubscribe", 1);
|
|
15873
15885
|
Xe([
|
|
15874
15886
|
j()
|
|
15875
|
-
],
|
|
15887
|
+
], Ke.prototype, "clearStream", 1);
|
|
15876
15888
|
Xe([
|
|
15877
15889
|
j()
|
|
15878
|
-
],
|
|
15890
|
+
], Ke.prototype, "clearScreenStream", 1);
|
|
15879
15891
|
Xe([
|
|
15880
15892
|
j()
|
|
15881
|
-
],
|
|
15893
|
+
], Ke.prototype, "updateSubscribe", 1);
|
|
15882
15894
|
Xe([
|
|
15883
15895
|
j()
|
|
15884
|
-
],
|
|
15896
|
+
], Ke.prototype, "playAudio", 1);
|
|
15885
15897
|
Xe([
|
|
15886
15898
|
j()
|
|
15887
|
-
],
|
|
15899
|
+
], Ke.prototype, "stopPlayAudio", 1);
|
|
15888
15900
|
Xe([
|
|
15889
15901
|
j((s, c, e) => [
|
|
15890
15902
|
typeof s == "string" ? s : s == null ? void 0 : s.nodeType,
|
|
15891
15903
|
c,
|
|
15892
15904
|
e
|
|
15893
15905
|
])
|
|
15894
|
-
],
|
|
15906
|
+
], Ke.prototype, "play", 1);
|
|
15895
15907
|
Xe([
|
|
15896
15908
|
j()
|
|
15897
|
-
],
|
|
15898
|
-
let q0 =
|
|
15909
|
+
], Ke.prototype, "stopPlayAll", 1);
|
|
15910
|
+
let q0 = Ke;
|
|
15899
15911
|
var Dt = /* @__PURE__ */ ((s) => (s[s.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", s[s.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", s[s.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", s[s.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", s[s.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", s[s.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", s[s.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", s[s.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", s))(Dt || {});
|
|
15900
|
-
class G0 extends
|
|
15912
|
+
class G0 extends Je {
|
|
15901
15913
|
constructor() {
|
|
15902
15914
|
super(...arguments);
|
|
15903
15915
|
_(this, "plugins", /* @__PURE__ */ new Map());
|
|
@@ -15938,7 +15950,7 @@ const zi = ([s]) => {
|
|
|
15938
15950
|
return [`user(${c.userId})`, e];
|
|
15939
15951
|
}, ma = 5;
|
|
15940
15952
|
var Qe;
|
|
15941
|
-
const Ue = (Qe = class extends
|
|
15953
|
+
const Ue = (Qe = class extends Je {
|
|
15942
15954
|
constructor(e, t, i, r, n) {
|
|
15943
15955
|
super();
|
|
15944
15956
|
_(this, "rts");
|
|
@@ -15960,7 +15972,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
15960
15972
|
_(this, "dcConnectingPromise");
|
|
15961
15973
|
_(this, "_publishingTracks", []);
|
|
15962
15974
|
_(this, "parameter", {});
|
|
15963
|
-
this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = r, this.parameter = n, this.rts =
|
|
15975
|
+
this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = r, this.parameter = n, this.rts = Re.createClient(), this.addRTSListener();
|
|
15964
15976
|
}
|
|
15965
15977
|
addRTSListener() {
|
|
15966
15978
|
this.rts.on("connectStatusChange", (e) => {
|
|
@@ -15977,7 +15989,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
15977
15989
|
this.setConnected(!0);
|
|
15978
15990
|
}
|
|
15979
15991
|
}), this.rts.on("datachannelStatusChange", (e) => {
|
|
15980
|
-
ae.event(`[${Qe.logName}]`, "rts datachannelStatusChange to:", e.status), e.status ===
|
|
15992
|
+
ae.event(`[${Qe.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === Ps.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === Ps.DATACHANNEL_STATUS_CLOSE && (this.dcConnectingPromise = new Promise((t) => {
|
|
15981
15993
|
this.dcResolve = t;
|
|
15982
15994
|
}));
|
|
15983
15995
|
}), this.rts.on("receivedSEI", (e) => {
|
|
@@ -16023,7 +16035,7 @@ const Ue = (Qe = class extends Ge {
|
|
|
16023
16035
|
this.rts.unpublish();
|
|
16024
16036
|
} catch (e) {
|
|
16025
16037
|
}
|
|
16026
|
-
this.rts =
|
|
16038
|
+
this.rts = Re.createClient(), this.addRTSListener();
|
|
16027
16039
|
}
|
|
16028
16040
|
startConnect() {
|
|
16029
16041
|
this.connecting = !0, this.connectingPromise = new Promise((e) => {
|
|
@@ -16742,7 +16754,7 @@ class Gr {
|
|
|
16742
16754
|
});
|
|
16743
16755
|
}
|
|
16744
16756
|
}
|
|
16745
|
-
class ga extends
|
|
16757
|
+
class ga extends Je {
|
|
16746
16758
|
constructor(e) {
|
|
16747
16759
|
super();
|
|
16748
16760
|
_(this, "type");
|
|
@@ -16959,7 +16971,7 @@ var Y0 = Object.defineProperty, Q0 = Object.getOwnPropertyDescriptor, pt = (s, c
|
|
|
16959
16971
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
16960
16972
|
return t && i && Y0(c, e, i), i;
|
|
16961
16973
|
}, zt;
|
|
16962
|
-
const dt = (zt = class extends
|
|
16974
|
+
const dt = (zt = class extends Je {
|
|
16963
16975
|
// 设置是否发布屏幕流
|
|
16964
16976
|
constructor(e, t) {
|
|
16965
16977
|
super();
|
|
@@ -16982,7 +16994,7 @@ const dt = (zt = class extends Ge {
|
|
|
16982
16994
|
_(this, "_publishLocalScreenStreamEnabled", !0);
|
|
16983
16995
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
16984
16996
|
const i = (r) => O(this, null, function* () {
|
|
16985
|
-
if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.2-beta.
|
|
16997
|
+
if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.2-beta.3")) {
|
|
16986
16998
|
console.warn(`${r.name} is not supported!!!`), r.emit("unsupported");
|
|
16987
16999
|
return;
|
|
16988
17000
|
}
|
|
@@ -17073,7 +17085,7 @@ const dt = (zt = class extends Ge {
|
|
|
17073
17085
|
var e, t, i, r;
|
|
17074
17086
|
if ((e = this.cameraStreamInfo.cameraVideoConstraints) != null && e.deviceId) {
|
|
17075
17087
|
let n = (t = this.cameraStreamInfo.cameraVideoConstraints) == null ? void 0 : t.deviceId;
|
|
17076
|
-
const a = yield
|
|
17088
|
+
const a = yield Re.getCameraList();
|
|
17077
17089
|
a.find((o) => o.deviceId === n) || (n = (r = (i = a.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? r : ""), this.cameraStreamInfo.cameraVideoConstraints.deviceId = n;
|
|
17078
17090
|
}
|
|
17079
17091
|
});
|
|
@@ -17084,7 +17096,7 @@ const dt = (zt = class extends Ge {
|
|
|
17084
17096
|
var e, t, i, r;
|
|
17085
17097
|
if ((e = this.cameraStreamInfo.micAudioConstraints) != null && e.deviceId) {
|
|
17086
17098
|
let n = (t = this.cameraStreamInfo.micAudioConstraints) == null ? void 0 : t.deviceId;
|
|
17087
|
-
const a = yield
|
|
17099
|
+
const a = yield Re.getMicList();
|
|
17088
17100
|
a.find((o) => o.deviceId === n) || (n = (r = (i = a.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? r : ""), this.cameraStreamInfo.micAudioConstraints.deviceId = n;
|
|
17089
17101
|
}
|
|
17090
17102
|
});
|
|
@@ -17100,7 +17112,7 @@ const dt = (zt = class extends Ge {
|
|
|
17100
17112
|
i || (a === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), a = me({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof a == "object" && (yield this.setAvailableCameraDeviceId(), a = me(me({}, a), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = me({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = me(me({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
|
|
17101
17113
|
const f = Date.now();
|
|
17102
17114
|
try {
|
|
17103
|
-
h = yield
|
|
17115
|
+
h = yield Re.createStream({
|
|
17104
17116
|
audio: o,
|
|
17105
17117
|
video: a,
|
|
17106
17118
|
screen: t,
|
|
@@ -17118,7 +17130,7 @@ const dt = (zt = class extends Ge {
|
|
|
17118
17130
|
l && (yield h.setAudioProfile(l));
|
|
17119
17131
|
}
|
|
17120
17132
|
}
|
|
17121
|
-
return
|
|
17133
|
+
return Re.SystenUtil.isIos && Re.SystenUtil.compareVersion("15.1") && !Re.SystenUtil.compareVersion("15.2") && (yield Rt(1e3)), yield this.updateStreams(), h;
|
|
17122
17134
|
});
|
|
17123
17135
|
}
|
|
17124
17136
|
stopLocalStream(e) {
|
|
@@ -17908,7 +17920,7 @@ var mu = Object.defineProperty, gu = Object.getOwnPropertyDescriptor, nt = (s, c
|
|
|
17908
17920
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
17909
17921
|
return t && i && mu(c, e, i), i;
|
|
17910
17922
|
};
|
|
17911
|
-
class Ze extends
|
|
17923
|
+
class Ze extends Je {
|
|
17912
17924
|
constructor(e) {
|
|
17913
17925
|
super();
|
|
17914
17926
|
_(this, "self");
|
|
@@ -17930,7 +17942,7 @@ class Ze extends Ge {
|
|
|
17930
17942
|
_(this, "wantSubAudio", !0);
|
|
17931
17943
|
_(this, "wantSubVideo", !0);
|
|
17932
17944
|
_(this, "wantSubScreen", !0);
|
|
17933
|
-
_(this, "defaultStreamType",
|
|
17945
|
+
_(this, "defaultStreamType", Ge.AliRtcVideoStreamTypeHigh);
|
|
17934
17946
|
_(this, "audioMuted", !1);
|
|
17935
17947
|
_(this, "playoutVolume", 1);
|
|
17936
17948
|
// 音量检测时间间隔
|
|
@@ -18194,7 +18206,7 @@ class Ze extends Ge {
|
|
|
18194
18206
|
playoutVolume: this.playoutVolume,
|
|
18195
18207
|
parameter: this.parameter
|
|
18196
18208
|
});
|
|
18197
|
-
return r.on(et.Remote, this.onRemoteDeviceStatusChange.bind(this)), r.on(
|
|
18209
|
+
return r.on(et.Remote, this.onRemoteDeviceStatusChange.bind(this)), r.on(Ie.PullStreamStats, this.onRemoteStatReport.bind(this)), r.on(Ie.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), r.on("audioSubscribeStateChanged", (n, a, o, u) => {
|
|
18198
18210
|
this.emit("audioSubscribeStateChanged", n, a, o, u, this.channel || "");
|
|
18199
18211
|
}), r.on("videoSubscribeStateChanged", (n, a, o, u) => {
|
|
18200
18212
|
this.emit("videoSubscribeStateChanged", n, a, o, u, this.channel || "");
|
|
@@ -18224,20 +18236,20 @@ class Ze extends Ge {
|
|
|
18224
18236
|
* @param {string} userId
|
|
18225
18237
|
*/
|
|
18226
18238
|
onRemoteDeviceStatusChange(e, t) {
|
|
18227
|
-
e ===
|
|
18239
|
+
e === Ie.MuteAudio ? this.emit("userAudioMuted", t, !0) : e === Ie.UnmuteAudio ? this.emit("userAudioMuted", t, !1) : e === Ie.MuteVideo ? this.emit("userVideoMuted", t, !0) : e === Ie.UnmuteVideo ? this.emit("userVideoMuted", t, !1) : e === Ie.MuteScreen ? this.emit("userScreenMuted", t, !0) : e === Ie.UnmuteScreen && this.emit("userScreenMuted", t, !1);
|
|
18228
18240
|
}
|
|
18229
18241
|
/**
|
|
18230
18242
|
* 远端流数据采集上报
|
|
18231
18243
|
* @param {any} stat
|
|
18232
18244
|
*/
|
|
18233
18245
|
onRemoteStatReport(e, t, i) {
|
|
18234
|
-
this.emit(
|
|
18246
|
+
this.emit(Ie.PullStreamStats, e, t, i);
|
|
18235
18247
|
}
|
|
18236
18248
|
/**
|
|
18237
18249
|
* rts 单 PC 订阅超限
|
|
18238
18250
|
*/
|
|
18239
18251
|
onSubscribeExceeds(e, t) {
|
|
18240
|
-
this.emit(
|
|
18252
|
+
this.emit(Ie.RtsSubscribeExceeds, e, t);
|
|
18241
18253
|
}
|
|
18242
18254
|
removeLeftUser(e) {
|
|
18243
18255
|
return O(this, null, function* () {
|
|
@@ -18433,7 +18445,7 @@ class vu {
|
|
|
18433
18445
|
var u;
|
|
18434
18446
|
const t = this.authInfo;
|
|
18435
18447
|
if (!t)
|
|
18436
|
-
return Promise.reject(
|
|
18448
|
+
return Promise.reject(St.LiveTranscodingErrorInvalidParam);
|
|
18437
18449
|
const i = "https://gw.rtn.aliyuncs.com", r = p0[c], n = {
|
|
18438
18450
|
appid: t.appId,
|
|
18439
18451
|
userid: t.userId,
|
|
@@ -18466,7 +18478,7 @@ class vu {
|
|
|
18466
18478
|
startPublishLiveStream(c, e) {
|
|
18467
18479
|
return O(this, null, function* () {
|
|
18468
18480
|
if (!this.authInfo)
|
|
18469
|
-
return Promise.reject(
|
|
18481
|
+
return Promise.reject(St.LiveTranscodingErrorInvalidParam);
|
|
18470
18482
|
const t = yield Jr(c.split("?")[0]), i = st.MPU_TASK_TRANSACTION_UPDATE, r = e.toJson(i, this.authInfo, t, c);
|
|
18471
18483
|
return this.doRequest(i, r);
|
|
18472
18484
|
});
|
|
@@ -18474,7 +18486,7 @@ class vu {
|
|
|
18474
18486
|
startPublishLiveStreamWithTaskId(c, e) {
|
|
18475
18487
|
return O(this, null, function* () {
|
|
18476
18488
|
if (!this.authInfo)
|
|
18477
|
-
return Promise.reject(
|
|
18489
|
+
return Promise.reject(St.LiveTranscodingErrorInvalidParam);
|
|
18478
18490
|
const t = st.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, c);
|
|
18479
18491
|
return this.doRequest(t, i);
|
|
18480
18492
|
});
|
|
@@ -18482,7 +18494,7 @@ class vu {
|
|
|
18482
18494
|
updatePublishLiveStream(c, e) {
|
|
18483
18495
|
return O(this, null, function* () {
|
|
18484
18496
|
if (!this.authInfo)
|
|
18485
|
-
return Promise.reject(
|
|
18497
|
+
return Promise.reject(St.LiveTranscodingErrorInvalidParam);
|
|
18486
18498
|
const t = yield Jr(c.split("?")[0]), i = st.MPU_TASK_TRANSACTION_UPDATE, r = e.toJson(i, this.authInfo, t, c);
|
|
18487
18499
|
return this.doRequest(i, r);
|
|
18488
18500
|
});
|
|
@@ -18490,7 +18502,7 @@ class vu {
|
|
|
18490
18502
|
updatePublishLiveStreamWithTaskId(c, e) {
|
|
18491
18503
|
return O(this, null, function* () {
|
|
18492
18504
|
if (!this.authInfo)
|
|
18493
|
-
return Promise.reject(
|
|
18505
|
+
return Promise.reject(St.LiveTranscodingErrorInvalidParam);
|
|
18494
18506
|
const t = st.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, c);
|
|
18495
18507
|
return this.doRequest(t, i);
|
|
18496
18508
|
});
|
|
@@ -18498,14 +18510,14 @@ class vu {
|
|
|
18498
18510
|
stopPublishLiveStream(c) {
|
|
18499
18511
|
return O(this, null, function* () {
|
|
18500
18512
|
if (!this.authInfo)
|
|
18501
|
-
return Promise.reject(
|
|
18513
|
+
return Promise.reject(St.LiveTranscodingErrorInvalidParam);
|
|
18502
18514
|
const e = yield Jr(c.split("?")[0]), t = st.MPU_TASK_TRANSACTION_STOP, i = new ts().toJson(t, this.authInfo, e, c);
|
|
18503
18515
|
return this.doRequest(t, i);
|
|
18504
18516
|
});
|
|
18505
18517
|
}
|
|
18506
18518
|
stopPublishLiveStreamWithTaskId(c) {
|
|
18507
18519
|
if (!this.authInfo)
|
|
18508
|
-
return Promise.reject(
|
|
18520
|
+
return Promise.reject(St.LiveTranscodingErrorInvalidParam);
|
|
18509
18521
|
const e = st.MPU_TASK_TRANSACTION_STOP, t = new ts().toJson(e, this.authInfo, c);
|
|
18510
18522
|
return this.doRequest(e, t);
|
|
18511
18523
|
}
|
|
@@ -18712,7 +18724,7 @@ var Eu = Object.defineProperty, Au = Object.getOwnPropertyDescriptor, de = (s, c
|
|
|
18712
18724
|
(n = s[r]) && (i = (t ? n(c, e, i) : n(i)) || i);
|
|
18713
18725
|
return t && i && Eu(c, e, i), i;
|
|
18714
18726
|
}, le;
|
|
18715
|
-
const ue = (le = class extends
|
|
18727
|
+
const ue = (le = class extends Je {
|
|
18716
18728
|
constructor(e) {
|
|
18717
18729
|
super();
|
|
18718
18730
|
_(this, "channelProfile");
|
|
@@ -18735,7 +18747,7 @@ const ue = (le = class extends Ge {
|
|
|
18735
18747
|
this.channelProfile,
|
|
18736
18748
|
this.clientRole,
|
|
18737
18749
|
this.slsReporter,
|
|
18738
|
-
(e == null ? void 0 : e.env) ===
|
|
18750
|
+
(e == null ? void 0 : e.env) === Et.pre ? Et.pre : Et.prod
|
|
18739
18751
|
), this.addSignalingManagerListeners(), this.maxSignalingConnectRetryCount = e == null ? void 0 : e.maxSignalingConnectRetryCount, this.bizControl = new Ze({
|
|
18740
18752
|
slsReporter: this.slsReporter,
|
|
18741
18753
|
signalingManager: this.signalingManager
|
|
@@ -18799,21 +18811,21 @@ const ue = (le = class extends Ge {
|
|
|
18799
18811
|
}), (t = this.publisher) == null || t.on(Ht.VideoTrackEnded, () => {
|
|
18800
18812
|
ae.event("[Publisher] VideoTrack Ended"), this.emit(
|
|
18801
18813
|
"localDeviceException",
|
|
18802
|
-
|
|
18814
|
+
_t.AliEngineLocalDeviceTypeCamera,
|
|
18803
18815
|
He.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
|
|
18804
18816
|
""
|
|
18805
18817
|
);
|
|
18806
18818
|
}), (i = this.publisher) == null || i.on(Ht.ScreenTrackEnded, () => {
|
|
18807
18819
|
ae.event("[Publisher] ScreenTrack Ended"), this.emit(
|
|
18808
18820
|
"localDeviceException",
|
|
18809
|
-
|
|
18821
|
+
_t.AliEngineLocalDeviceTypeDisplay,
|
|
18810
18822
|
He.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
18811
18823
|
""
|
|
18812
18824
|
);
|
|
18813
18825
|
}), (r = this.publisher) == null || r.on(Ht.AudioTrackEnded, () => {
|
|
18814
18826
|
ae.event("[Publisher] AudioTrack Ended"), this.emit(
|
|
18815
18827
|
"localDeviceException",
|
|
18816
|
-
|
|
18828
|
+
_t.AliEngineLocalDeviceTypeMic,
|
|
18817
18829
|
He.AliEngineLocalDeviceExceptionTypeMicInterrupt,
|
|
18818
18830
|
""
|
|
18819
18831
|
);
|
|
@@ -18965,7 +18977,7 @@ const ue = (le = class extends Ge {
|
|
|
18965
18977
|
const i = t.userid;
|
|
18966
18978
|
if (i) {
|
|
18967
18979
|
const r = this.bizControl.addUser(i, t.displayname, Te.Join);
|
|
18968
|
-
ae.event(`[${le.logName}]`,
|
|
18980
|
+
ae.event(`[${le.logName}]`, Ie.UserJoined, r);
|
|
18969
18981
|
}
|
|
18970
18982
|
});
|
|
18971
18983
|
}
|
|
@@ -19034,7 +19046,7 @@ const ue = (le = class extends Ge {
|
|
|
19034
19046
|
leaveList: i,
|
|
19035
19047
|
presentList: r
|
|
19036
19048
|
}), this.handleUsersJoin(t), i.forEach((n) => {
|
|
19037
|
-
ae.event(le.logName,
|
|
19049
|
+
ae.event(le.logName, Ie.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid, xs.AliRtcUserOfflineQuit);
|
|
19038
19050
|
});
|
|
19039
19051
|
for (let n = 0; n < r.length; n++) {
|
|
19040
19052
|
const a = r[n], o = a.userid, u = this.bizControl.getRemoteUser(o);
|
|
@@ -19076,7 +19088,7 @@ const ue = (le = class extends Ge {
|
|
|
19076
19088
|
* @returns {void}
|
|
19077
19089
|
*/
|
|
19078
19090
|
onError(e) {
|
|
19079
|
-
this.slsReporter.reportError(e), ae.event(le.logName,
|
|
19091
|
+
this.slsReporter.reportError(e), ae.event(le.logName, Ie.Error, e);
|
|
19080
19092
|
}
|
|
19081
19093
|
setEnableDualVideoStream(e, t) {
|
|
19082
19094
|
this.bizControl.setEnableDualVideoStream(e, t);
|
|
@@ -19377,10 +19389,10 @@ const ue = (le = class extends Ge {
|
|
|
19377
19389
|
return (t = (e = this.publisher) == null ? void 0 : e.publishLocalVideoStreamEnabled) != null ? t : !0;
|
|
19378
19390
|
}
|
|
19379
19391
|
setRemoteDefaultVideoStreamType(e) {
|
|
19380
|
-
[
|
|
19392
|
+
[Ge.AliRtcVideoStreamTypeHigh, Ge.AliRtcVideoStreamTypeLow].includes(e) && this.bizControl.setRemoteDefaultVideoStreamType(e);
|
|
19381
19393
|
}
|
|
19382
19394
|
setRemoteUserVideoStreamType(e, t) {
|
|
19383
|
-
[
|
|
19395
|
+
[Ge.AliRtcVideoStreamTypeHigh, Ge.AliRtcVideoStreamTypeLow].includes(t) && this.bizControl.setRemoteUserVideoStreamType(e, t);
|
|
19384
19396
|
}
|
|
19385
19397
|
setDefaultSubscribeAllRemoteVideoStreams(e) {
|
|
19386
19398
|
this.bizControl.setAutoSubVideo(e), this.bizControl.setAutoSubScreen(e);
|
|
@@ -19521,7 +19533,7 @@ const ue = (le = class extends Ge {
|
|
|
19521
19533
|
}
|
|
19522
19534
|
muteLocalMic(e = !1) {
|
|
19523
19535
|
var t;
|
|
19524
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
19536
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? Ie.MuteAudio : Ie.UnmuteAudio), (t = this.publisher) == null || t.muteLocalMic(e);
|
|
19525
19537
|
}
|
|
19526
19538
|
muteRemoteAudioPlaying(e, t = !1) {
|
|
19527
19539
|
const i = this.bizControl.getRemoteUser(e);
|
|
@@ -19643,13 +19655,13 @@ const ue = (le = class extends Ge {
|
|
|
19643
19655
|
muteLocalCamera(e) {
|
|
19644
19656
|
return O(this, null, function* () {
|
|
19645
19657
|
var t;
|
|
19646
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
19658
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? Ie.MuteVideo : Ie.UnmuteVideo), (t = this.publisher) == null || t.muteLocalCamera(e);
|
|
19647
19659
|
});
|
|
19648
19660
|
}
|
|
19649
19661
|
muteLocalScreen(e) {
|
|
19650
19662
|
return O(this, null, function* () {
|
|
19651
19663
|
var t;
|
|
19652
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
19664
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? Ie.MuteScreen : Ie.UnmuteScreen), (t = this.publisher) == null || t.muteLocalScreen(e);
|
|
19653
19665
|
});
|
|
19654
19666
|
}
|
|
19655
19667
|
setRemoteViewConfig(e, t, i) {
|
|
@@ -19915,12 +19927,12 @@ _(le, "isDualVideoStreamSupported", as.isSupport), /**
|
|
|
19915
19927
|
* @returns {Promise<string[]>}
|
|
19916
19928
|
*/
|
|
19917
19929
|
_(le, "getCameraList", () => O(le, null, function* () {
|
|
19918
|
-
return (yield
|
|
19930
|
+
return (yield Re.getCameraList()).filter((t) => t.deviceId);
|
|
19919
19931
|
})), _(le, "getMicrophoneList", () => O(le, null, function* () {
|
|
19920
|
-
return (yield
|
|
19932
|
+
return (yield Re.getMicList()).filter((t) => t.deviceId);
|
|
19921
19933
|
})), _(le, "getSpeakerList", () => O(le, null, function* () {
|
|
19922
|
-
return (yield
|
|
19923
|
-
})), _(le, "_instance"), _(le, "AliRtcSdkChannelProfile", It), _(le, "AliRtcSdkClientRole", Ft), _(le, "AliRtcVideoStreamType",
|
|
19934
|
+
return (yield Re.getSpeakerList()).filter((t) => t.deviceId);
|
|
19935
|
+
})), _(le, "_instance"), _(le, "AliRtcSdkChannelProfile", It), _(le, "AliRtcSdkClientRole", Ft), _(le, "AliRtcVideoStreamType", Ge), _(le, "AliRtcVideoTrack", ye), _(le, "AliRtcAudioTrack", si), _(le, "AliRtcPublishState", ge), _(le, "AliRtcSubscribeState", ke), _(le, "AliRtcRawDataStreamType", je), _(le, "AliRtcLogLevel", La), _(le, "AliRtcEngineLocalDeviceType", _t), _(le, "AliRtcEngineLocalDeviceExceptionType", He), _(le, "AliRtcConnectionStatus", De), _(le, "AliRtcConnectionStatusChangeReason", Yt), _(le, "AliRtcPlugin", ri), _(le, "AliRtcPluginTrackType", Fi), _(le, "AliRtcLiveTranscodingParam", ts), _(le, "AliRtcLiveTranscodingEncodeParam", Ua), _(le, "AliRtcLiveTranscodingMixParam", bu), _(le, "AliRtcLiveTranscodingSingleParam", xu), _(le, "AliRtcTranscodingClockWidget", Su), _(le, "AliRtcTranscodingImage", Xa), _(le, "AliRtcTranscodingText", _u), _(le, "AliRtcTranscodingUser", yu), _(le, "AliRtcLiveTranscodingMixMode", ki), _(le, "AliRtcLiveTranscodingStreamType", Ma), _(le, "AliRtcLiveTranscodingSourceType", mi), _(le, "AliRtcLiveTranscodingTaskProfile", Na), _(le, "AliRtcLiveTranscodingAudioSampleRate", gs), _(le, "AliRtcLiveTranscodingSegmentType", Ti), _(le, "AliRtcLiveTranscodingFontType", Oi), _(le, "AliRtcLiveTranscodingCropMode", Fa), _(le, "AliRtcLiveTranscodingMediaProcessMode", vs), _(le, "AliRtcLiveTranscodingState", Oa), _(le, "AliRtcLiveTranscodingErrorCode", St), _(le, "AliRtcTrascodingPublishTaskStatus", Va), _(le, "AliRtcDataChannelMsg", ti), _(le, "AliRtcDataMsgType", $a), _(le, "Plugin", ri), le);
|
|
19924
19936
|
de([
|
|
19925
19937
|
j()
|
|
19926
19938
|
], ue.prototype, "destroy", 1);
|
|
@@ -20162,12 +20174,12 @@ export {
|
|
|
20162
20174
|
ti as AliRtcDataChannelMsg,
|
|
20163
20175
|
$a as AliRtcDataMsgType,
|
|
20164
20176
|
He as AliRtcEngineLocalDeviceExceptionType,
|
|
20165
|
-
|
|
20177
|
+
_t as AliRtcEngineLocalDeviceType,
|
|
20166
20178
|
te as AliRtcErrorCode,
|
|
20167
20179
|
gs as AliRtcLiveTranscodingAudioSampleRate,
|
|
20168
20180
|
Fa as AliRtcLiveTranscodingCropMode,
|
|
20169
20181
|
Ua as AliRtcLiveTranscodingEncodeParam,
|
|
20170
|
-
|
|
20182
|
+
St as AliRtcLiveTranscodingErrorCode,
|
|
20171
20183
|
Oi as AliRtcLiveTranscodingFontType,
|
|
20172
20184
|
vs as AliRtcLiveTranscodingMediaProcessMode,
|
|
20173
20185
|
ki as AliRtcLiveTranscodingMixMode,
|
|
@@ -20195,7 +20207,7 @@ export {
|
|
|
20195
20207
|
_u as AliRtcTranscodingText,
|
|
20196
20208
|
yu as AliRtcTranscodingUser,
|
|
20197
20209
|
Va as AliRtcTrascodingPublishTaskStatus,
|
|
20198
|
-
|
|
20210
|
+
Ge as AliRtcVideoStreamType,
|
|
20199
20211
|
ye as AliRtcVideoTrack,
|
|
20200
20212
|
Ru as default
|
|
20201
20213
|
};
|