aliyun-rtc-sdk 6.13.5 → 6.13.6-beta.1

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.
@@ -36,10 +36,10 @@ var w = (r, n, e) => new Promise((t, i) => {
36
36
  }, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, a);
37
37
  c((e = e.apply(r, n)).next());
38
38
  });
39
- import { AliRTS as ce, EConnectStatus as ps, EDatachannelStatus as gs } from "aliyun-rts-sdk";
39
+ import { AliRTS as oe, EConnectStatus as ps, EDatachannelStatus as gs } from "aliyun-rts-sdk";
40
40
  import we from "eventemitter3";
41
41
  var jn = Object.defineProperty, zn = (r, n, e) => n in r ? jn(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e, Vt = (r, n, e) => (zn(r, typeof n != "symbol" ? n + "" : n, e), e), ki = { exports: {} }, Bi = { exports: {} }, Mi, ms;
42
- function Ne() {
42
+ function Fe() {
43
43
  if (ms)
44
44
  return Mi;
45
45
  ms = 1, Date.now = Date.now || function() {
@@ -486,7 +486,7 @@ function Wn() {
486
486
  if (xs)
487
487
  return Fi;
488
488
  xs = 1;
489
- var r = Ne();
489
+ var r = Fe();
490
490
  return Fi = function(n, e, t) {
491
491
  typeof n == "object" && (n = r.serialize(n));
492
492
  var i = e + n + (t ? "&post_res=" : "");
@@ -498,7 +498,7 @@ function $n() {
498
498
  if (Ss)
499
499
  return Ni.exports;
500
500
  Ss = 1;
501
- var r = Ne(), n = Wn(), e = "aokcdqn3ly@e629dabd48a9933", t = function(s, a) {
501
+ var r = Fe(), n = Wn(), e = "aokcdqn3ly@e629dabd48a9933", t = function(s, a) {
502
502
  var c;
503
503
  if (a.t === "error" && (c = s.requestQueue[0]) && c.t === "error" && a.msg === c.msg)
504
504
  return a.times = c.times + 1, void (s.requestQueue[0] = a);
@@ -733,7 +733,7 @@ function Kn() {
733
733
  if (vs)
734
734
  return Li.exports;
735
735
  vs = 1;
736
- var r = Ne(), n = $n(), e = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], t = function(s) {
736
+ var r = Fe(), n = $n(), e = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], t = function(s) {
737
737
  var a = (s.key || "default").split("::");
738
738
  return a.length > 1 ? r.ext(s, {
739
739
  group: a[0],
@@ -925,7 +925,7 @@ function qn() {
925
925
  if (bs)
926
926
  return Vi.exports;
927
927
  bs = 1;
928
- var r = Ne(), n = typeof window == "object" ? window : {}, e = "catch", t = n.__oFetch_ || n.fetch;
928
+ var r = Fe(), n = typeof window == "object" ? window : {}, e = "catch", t = n.__oFetch_ || n.fetch;
929
929
  return t = typeof t == "function" ? t : void 0, Vi.exports = function(i, s) {
930
930
  var a = -1;
931
931
  typeof i == "object" && (a = i.z, i = r.serialize(i));
@@ -948,7 +948,7 @@ function Jn() {
948
948
  if (ys)
949
949
  return Oi.exports;
950
950
  ys = 1;
951
- var r = Ne(), n = typeof window == "object" ? window : {}, e = n.__oXMLHttpRequest_ || n.XMLHttpRequest;
951
+ var r = Fe(), n = typeof window == "object" ? window : {}, e = n.__oXMLHttpRequest_ || n.XMLHttpRequest;
952
952
  return e = typeof e == "function" ? e : void 0, Oi.exports = function(t, i) {
953
953
  try {
954
954
  var s = new e();
@@ -964,7 +964,7 @@ function Gn() {
964
964
  if (Es)
965
965
  return Ui;
966
966
  Es = 1;
967
- var r = Ne();
967
+ var r = Fe();
968
968
  return Ui = function(n, e) {
969
969
  var t = [], i = null, s = e && e.location && e.location.href, a = void 0, c = null, o = function(d, f, g) {
970
970
  if (d !== null) {
@@ -1148,7 +1148,7 @@ function Xn() {
1148
1148
  if (Cs)
1149
1149
  return Hi;
1150
1150
  Cs = 1;
1151
- var r = Ne(), n = Ur(), e = n.TIMING_KEYS;
1151
+ var r = Fe(), n = Ur(), e = n.TIMING_KEYS;
1152
1152
  return Hi = function() {
1153
1153
  var t = r.win || {}, i = t.performance;
1154
1154
  if (!i || typeof i != "object" || typeof i.getEntriesByType != "function")
@@ -1175,7 +1175,7 @@ function Yn() {
1175
1175
  if (Is)
1176
1176
  return ji;
1177
1177
  Is = 1;
1178
- var r = Ne(), n = Ur(), e = n.TIMING_KEYS;
1178
+ var r = Fe(), n = Ur(), e = n.TIMING_KEYS;
1179
1179
  return ji = function() {
1180
1180
  var t = r.win || {}, i = t.performance;
1181
1181
  if (!i || typeof i != "object")
@@ -1218,7 +1218,7 @@ function Yn() {
1218
1218
  var Rs, ws;
1219
1219
  function Zn() {
1220
1220
  return ws || (ws = 1, Rs = function(r, n, e) {
1221
- var t = Ne(), i = Xn(), s = Yn(), a = null, c = e.documentElement, o = n.innerWidth || c.clientWidth || e.body.clientWidth, u = n.innerHeight || c.clientHeight || e.body.clientHeight, h = n.navigator.connection, p = {
1221
+ var t = Fe(), i = Xn(), s = Yn(), a = null, c = e.documentElement, o = n.innerWidth || c.clientWidth || e.body.clientWidth, u = n.innerHeight || c.clientHeight || e.body.clientHeight, h = n.navigator.connection, p = {
1222
1222
  sr: screen.width + "x" + screen.height,
1223
1223
  vp: o + "x" + u,
1224
1224
  ct: h ? h.effectiveType || h.type : ""
@@ -1392,7 +1392,7 @@ function Qn() {
1392
1392
  if (Ds)
1393
1393
  return zi;
1394
1394
  Ds = 1;
1395
- var r = Ne(), n = 500;
1395
+ var r = Fe(), n = 500;
1396
1396
  return zi = function(e, t, i) {
1397
1397
  function s(p, d, f) {
1398
1398
  var g = 0, l = p.tagName;
@@ -1477,7 +1477,7 @@ function Qn() {
1477
1477
  var Ts, Ps;
1478
1478
  function eo() {
1479
1479
  return Ps || (Ps = 1, Ts = function(r, n) {
1480
- var e = Ne(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, g, l, S, v, x, b, y, E, I) {
1480
+ var e = Fe(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, g, l, S, v, x, b, y, E, I) {
1481
1481
  var A = e.J(g) || null, C = e.safetyCall(p, [A, f], null);
1482
1482
  if (!C)
1483
1483
  return !1;
@@ -1577,24 +1577,24 @@ function eo() {
1577
1577
  if (X && !/(text)|(json)/.test(X))
1578
1578
  return J;
1579
1579
  if (!C) {
1580
- var Fe = e.parseFetchHeaders(ue);
1581
- typeof Fe == "object" && Fe["eagleeye-traceid"] && (C = Fe["eagleeye-traceid"], R = "response");
1580
+ var Ve = e.parseFetchHeaders(ue);
1581
+ typeof Ve == "object" && Ve["eagleeye-traceid"] && (C = Ve["eagleeye-traceid"], R = "response");
1582
1582
  }
1583
1583
  }
1584
- var je = x();
1585
- return j.text().then(function(Xe) {
1584
+ var ze = x();
1585
+ return j.text().then(function(Ye) {
1586
1586
  if (!C && e.isFunction(I)) {
1587
- var Ye = I(j, Xe);
1588
- Ye && e.isString(Ye) && (C = Ye);
1587
+ var Ze = I(j, Ye);
1588
+ Ze && e.isString(Ze) && (C = Ze);
1589
1589
  }
1590
- var Se = e.getFetchSnapshot(g, Xe, ue);
1591
- j.ok ? s(l, v.parseResponse, b, y, Xe, j.status || 200, je, S, C, L, Se, R, $) : (l.api(b, !1, je, j.status || 404, j.statusText, S, C, L, Se, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1590
+ var Se = e.getFetchSnapshot(g, Ye, ue);
1591
+ j.ok ? s(l, v.parseResponse, b, y, Ye, j.status || 200, ze, S, C, L, Se, R, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, S, C, L, Se, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1592
1592
  src: j.url,
1593
1593
  res_type: "api"
1594
1594
  }));
1595
1595
  }), J;
1596
- } catch (Xe) {
1597
- return e.warn("[ARMS] fetch response error :", Xe), J;
1596
+ } catch (Ye) {
1597
+ return e.warn("[ARMS] fetch response error :", Ye), J;
1598
1598
  }
1599
1599
  }).catch(function(J) {
1600
1600
  if (!l || !l.api)
@@ -1690,7 +1690,7 @@ function eo() {
1690
1690
  var ks, Bs;
1691
1691
  function to() {
1692
1692
  return Bs || (Bs = 1, ks = function(r, n) {
1693
- var e = Ne(), t = n.history || {}, i = n.document, s = function(c, o) {
1693
+ var e = Fe(), t = n.history || {}, i = n.document, s = function(c, o) {
1694
1694
  var u;
1695
1695
  n.CustomEvent ? u = new CustomEvent(c, {
1696
1696
  detail: o
@@ -1722,7 +1722,7 @@ function io() {
1722
1722
  if (Ms)
1723
1723
  return Wi;
1724
1724
  Ms = 1;
1725
- var r = Ne(), n = Ur(), e = n.TIMING_KEYS;
1725
+ var r = Fe(), n = Ur(), e = n.TIMING_KEYS;
1726
1726
  return Wi = function(t, i) {
1727
1727
  function s(o, u, h) {
1728
1728
  if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
@@ -1844,7 +1844,7 @@ function ro() {
1844
1844
  if (Ls)
1845
1845
  return Bi.exports;
1846
1846
  Ls = 1;
1847
- var r = Ne(), n = Kn(), e = qn(), t = Jn(), i = r.win, s = i.document, a = /^(error|api|speed|sum|avg|percent|custom|msg|setPage|setConfig|behavior|performance)$/, c = function(o) {
1847
+ var r = Fe(), n = Kn(), e = qn(), t = Jn(), i = r.win, s = i.document, a = /^(error|api|speed|sum|avg|percent|custom|msg|setPage|setConfig|behavior|performance)$/, c = function(o) {
1848
1848
  var u = this;
1849
1849
  return n.call(u, o), u._initialPage = o.page && r.safetyCall(o.page, [], o.page + "") || null, u._isRobot = r.isRobot(), u._health = {
1850
1850
  errcount: 0,
@@ -1999,7 +1999,7 @@ function so() {
1999
1999
  var c = {}, o = [];
2000
2000
  return i in e && (c = e[i].config || {}, o = e[i].pipe || []), r(c, o);
2001
2001
  }
2002
- var e = window, t = e.BrowserLogger = ro(), i = Ne().key, s = "__hasInitBlSdk";
2002
+ var e = window, t = e.BrowserLogger = ro(), i = Fe().key, s = "__hasInitBlSdk";
2003
2003
  t.singleton = function(c, o) {
2004
2004
  return e[s] ? e[i] : r(c, o);
2005
2005
  }, t.createExtraInstance = function(c) {
@@ -2055,7 +2055,7 @@ function co(r, n, e) {
2055
2055
  } catch (p) {
2056
2056
  throw e(p), p;
2057
2057
  }
2058
- return it(h, n + 1, e);
2058
+ return rt(h, n + 1, e);
2059
2059
  }
2060
2060
  let o = () => {
2061
2061
  };
@@ -2068,13 +2068,13 @@ function co(r, n, e) {
2068
2068
  } catch (d) {
2069
2069
  throw e(d), d;
2070
2070
  }
2071
- return it(p, n + 1, e);
2071
+ return rt(p, n + 1, e);
2072
2072
  }
2073
2073
  };
2074
- return typeof a[c] == "function" ? u.MediaboxWrapperObjectMethod : n > 10 ? a[c] : it(a[c], n + 1, e);
2074
+ return typeof a[c] == "function" ? u.MediaboxWrapperObjectMethod : n > 10 ? a[c] : rt(a[c], n + 1, e);
2075
2075
  },
2076
2076
  MediaboxWrapperObjectSetter(a, c, o) {
2077
- return a[c] = it(o, n + 1, e), !0;
2077
+ return a[c] = rt(o, n + 1, e), !0;
2078
2078
  }
2079
2079
  };
2080
2080
  return new Proxy(r, {
@@ -2091,11 +2091,11 @@ function uo(r, n, e) {
2091
2091
  } catch (o) {
2092
2092
  throw e(o), o;
2093
2093
  }
2094
- return it(c, n + 1, e);
2094
+ return rt(c, n + 1, e);
2095
2095
  },
2096
2096
  MediaboxWrapperFunctionGet(i, s) {
2097
2097
  const a = Object.getOwnPropertyDescriptor(i, s);
2098
- return a && !a.writable && !a.configurable ? i[s] : it(i[s], n + 1, e);
2098
+ return a && !a.writable && !a.configurable ? i[s] : rt(i[s], n + 1, e);
2099
2099
  },
2100
2100
  MediaboxWrapperClassConstructor(i, s) {
2101
2101
  let a;
@@ -2104,7 +2104,7 @@ function uo(r, n, e) {
2104
2104
  } catch (c) {
2105
2105
  throw e(c), c;
2106
2106
  }
2107
- return it(a, n + 1, e);
2107
+ return rt(a, n + 1, e);
2108
2108
  }
2109
2109
  };
2110
2110
  return new Proxy(r, {
@@ -2136,8 +2136,8 @@ function Hr(r) {
2136
2136
  `);
2137
2137
  return e < 0 ? n === r.length - Pt.length : n === e - Pt.length;
2138
2138
  }
2139
- function it(r, n, e) {
2140
- return typeof r == "function" ? uo(r, n + 1, e) : r instanceof Promise ? r.then((t) => it(t, n + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? r.map((t) => it(t, n + 1, e)) : Qa(r) && en(r) ? co(r, n + 1, e) : r;
2139
+ function rt(r, n, e) {
2140
+ return typeof r == "function" ? uo(r, n + 1, e) : r instanceof Promise ? r.then((t) => rt(t, n + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? r.map((t) => rt(t, n + 1, e)) : Qa(r) && en(r) ? co(r, n + 1, e) : r;
2141
2141
  }
2142
2142
  function fo(r) {
2143
2143
  return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1;
@@ -2199,7 +2199,7 @@ class jr {
2199
2199
  return "0.19.0";
2200
2200
  }
2201
2201
  wrap(n) {
2202
- return this.options.disabled || typeof Proxy > "u" ? n : it(n, 0, (e) => {
2202
+ return this.options.disabled || typeof Proxy > "u" ? n : rt(n, 0, (e) => {
2203
2203
  e instanceof Error && typeof e.stack == "string" && zs(e.stack) && (e.stack = lo(e.stack), this.armsLogger.error(e), e.stack = ho(e.stack));
2204
2204
  });
2205
2205
  }
@@ -2226,7 +2226,7 @@ class jr {
2226
2226
  this.isDestroyed = !0;
2227
2227
  }
2228
2228
  }
2229
- var oe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(oe || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), k = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(k || {}), zr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(zr || {}), mt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(mt || {}), $t = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))($t || {}), mi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(mi || {}), le = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(le || {}), rt = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(rt || {}), Ie = [];
2229
+ var ce = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(ce || {}), Ne = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Ne || {}), k = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(k || {}), zr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(zr || {}), mt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(mt || {}), $t = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))($t || {}), mi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(mi || {}), le = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(le || {}), st = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(st || {}), Ie = [];
2230
2230
  for (var Ki = 0; Ki < 256; ++Ki)
2231
2231
  Ie.push((Ki + 256).toString(16).slice(1));
2232
2232
  function po(r, n = 0) {
@@ -2242,7 +2242,7 @@ var xo = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.
2242
2242
  const $s = {
2243
2243
  randomUUID: xo
2244
2244
  };
2245
- function st(r, n, e) {
2245
+ function at(r, n, e) {
2246
2246
  if ($s.randomUUID && !n && !r)
2247
2247
  return $s.randomUUID();
2248
2248
  r = r || {};
@@ -2256,8 +2256,8 @@ function st(r, n, e) {
2256
2256
  return po(t);
2257
2257
  }
2258
2258
  var xi = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(xi || {});
2259
- const yi = "6.13.5", Ks = "web";
2260
- class Ue {
2259
+ const yi = "6.13.6-beta.1", Ks = "web";
2260
+ class He {
2261
2261
  /**
2262
2262
  * 将版本号转换为number
2263
2263
  */
@@ -2298,7 +2298,7 @@ class Ue {
2298
2298
  * @returns
2299
2299
  */
2300
2300
  static createCallid(n = "") {
2301
- const e = st();
2301
+ const e = at();
2302
2302
  return n && e && e.length > n.length ? `${n}${e.substring(n.length)}` : e;
2303
2303
  }
2304
2304
  /**
@@ -2360,7 +2360,7 @@ class Ue {
2360
2360
  let e = "";
2361
2361
  for (let t = 0; t < n.length; t++) {
2362
2362
  e !== "" && (e += " ");
2363
- let i = Ue.toString(n[t]);
2363
+ let i = He.toString(n[t]);
2364
2364
  e += i;
2365
2365
  }
2366
2366
  return e;
@@ -3854,18 +3854,18 @@ function an() {
3854
3854
  ]);
3855
3855
  },
3856
3856
  _doProcessBlock: function(g, l) {
3857
- for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], y = S[3], E = S[4], I = S[5], A = S[6], C = S[7], L = v.high, _ = v.low, R = x.high, T = x.low, B = b.high, $ = b.low, q = y.high, G = y.low, ae = E.high, Q = E.low, te = I.high, ee = I.low, P = A.high, N = A.low, F = C.high, M = C.low, J = L, j = _, ue = R, X = T, Fe = B, je = $, Xe = q, Ye = G, Se = ae, Pe = Q, at = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
3858
- var Ce, Ze, Ct = d[ke];
3859
- if (ke < 16)
3860
- Ze = Ct.high = g[l + ke * 2] | 0, Ce = Ct.low = g[l + ke * 2 + 1] | 0;
3857
+ for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], y = S[3], E = S[4], I = S[5], A = S[6], C = S[7], L = v.high, _ = v.low, R = x.high, T = x.low, B = b.high, $ = b.low, q = y.high, G = y.low, ae = E.high, Q = E.low, te = I.high, ee = I.low, P = A.high, N = A.low, F = C.high, M = C.low, J = L, j = _, ue = R, X = T, Ve = B, ze = $, Ye = q, Ze = G, Se = ae, ke = Q, nt = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, Be = 0; Be < 80; Be++) {
3858
+ var Ce, Qe, Ct = d[Be];
3859
+ if (Be < 16)
3860
+ Qe = Ct.high = g[l + Be * 2] | 0, Ce = Ct.low = g[l + Be * 2 + 1] | 0;
3861
3861
  else {
3862
- var lt = d[ke - 15], Qe = lt.high, nt = lt.low, Di = (Qe >>> 1 | nt << 31) ^ (Qe >>> 8 | nt << 24) ^ Qe >>> 7, oi = (nt >>> 1 | Qe << 31) ^ (nt >>> 8 | Qe << 24) ^ (nt >>> 7 | Qe << 25), ci = d[ke - 2], ze = ci.high, ft = ci.low, ui = (ze >>> 19 | ft << 13) ^ (ze << 3 | ft >>> 29) ^ ze >>> 6, Gt = (ft >>> 19 | ze << 13) ^ (ft << 3 | ze >>> 29) ^ (ft >>> 6 | ze << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
3863
- Ce = oi + Rn, Ze = Di + In + (Ce >>> 0 < oi >>> 0 ? 1 : 0), Ce = Ce + Gt, Ze = Ze + ui + (Ce >>> 0 < Gt >>> 0 ? 1 : 0), Ce = Ce + ns, Ze = Ze + wn + (Ce >>> 0 < ns >>> 0 ? 1 : 0), Ct.high = Ze, Ct.low = Ce;
3862
+ var lt = d[Be - 15], et = lt.high, ot = lt.low, Di = (et >>> 1 | ot << 31) ^ (et >>> 8 | ot << 24) ^ et >>> 7, oi = (ot >>> 1 | et << 31) ^ (ot >>> 8 | et << 24) ^ (ot >>> 7 | et << 25), ci = d[Be - 2], We = ci.high, ft = ci.low, ui = (We >>> 19 | ft << 13) ^ (We << 3 | ft >>> 29) ^ We >>> 6, Gt = (ft >>> 19 | We << 13) ^ (ft << 3 | We >>> 29) ^ (ft >>> 6 | We << 26), ss = d[Be - 7], In = ss.high, Rn = ss.low, as = d[Be - 16], wn = as.high, ns = as.low;
3863
+ Ce = oi + Rn, Qe = Di + In + (Ce >>> 0 < oi >>> 0 ? 1 : 0), Ce = Ce + Gt, Qe = Qe + ui + (Ce >>> 0 < Gt >>> 0 ? 1 : 0), Ce = Ce + ns, Qe = Qe + wn + (Ce >>> 0 < ns >>> 0 ? 1 : 0), Ct.high = Qe, Ct.low = Ce;
3864
3864
  }
3865
- var Dn = Se & at ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Fe ^ ue & Fe, Pn = j & X ^ j & je ^ X & je, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | Pe << 18) ^ (Se >>> 18 | Pe << 14) ^ (Se << 23 | Pe >>> 9), Mn = (Pe >>> 14 | Se << 18) ^ (Pe >>> 18 | Se << 14) ^ (Pe << 23 | Se >>> 9), us = p[ke], Ln = us.high, hs = us.low, We = _t + Mn, pt = Jt + Bn + (We >>> 0 < _t >>> 0 ? 1 : 0), We = We + os, pt = pt + Dn + (We >>> 0 < os >>> 0 ? 1 : 0), We = We + hs, pt = pt + Ln + (We >>> 0 < hs >>> 0 ? 1 : 0), We = We + Ce, pt = pt + Ze + (We >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
3866
- Jt = Nt, _t = At, Nt = at, At = Et, at = Se, Et = Pe, Pe = Ye + We | 0, Se = Xe + pt + (Pe >>> 0 < Ye >>> 0 ? 1 : 0) | 0, Xe = Fe, Ye = je, Fe = ue, je = X, ue = J, X = j, j = We + ds | 0, J = pt + Nn + (j >>> 0 < We >>> 0 ? 1 : 0) | 0;
3865
+ var Dn = Se & nt ^ ~Se & Nt, os = ke & Et ^ ~ke & At, Tn = J & ue ^ J & Ve ^ ue & Ve, Pn = j & X ^ j & ze ^ X & ze, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | ke << 18) ^ (Se >>> 18 | ke << 14) ^ (Se << 23 | ke >>> 9), Mn = (ke >>> 14 | Se << 18) ^ (ke >>> 18 | Se << 14) ^ (ke << 23 | Se >>> 9), us = p[Be], Ln = us.high, hs = us.low, $e = _t + Mn, pt = Jt + Bn + ($e >>> 0 < _t >>> 0 ? 1 : 0), $e = $e + os, pt = pt + Dn + ($e >>> 0 < os >>> 0 ? 1 : 0), $e = $e + hs, pt = pt + Ln + ($e >>> 0 < hs >>> 0 ? 1 : 0), $e = $e + Ce, pt = pt + Qe + ($e >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
3866
+ Jt = Nt, _t = At, Nt = nt, At = Et, nt = Se, Et = ke, ke = Ze + $e | 0, Se = Ye + pt + (ke >>> 0 < Ze >>> 0 ? 1 : 0) | 0, Ye = Ve, Ze = ze, Ve = ue, ze = X, ue = J, X = j, j = $e + ds | 0, J = pt + Nn + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
3867
3867
  }
3868
- _ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T = x.low = T + X, x.high = R + ue + (T >>> 0 < X >>> 0 ? 1 : 0), $ = b.low = $ + je, b.high = B + Fe + ($ >>> 0 < je >>> 0 ? 1 : 0), G = y.low = G + Ye, y.high = q + Xe + (G >>> 0 < Ye >>> 0 ? 1 : 0), Q = E.low = Q + Pe, E.high = ae + Se + (Q >>> 0 < Pe >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + at + (ee >>> 0 < Et >>> 0 ? 1 : 0), N = A.low = N + At, A.high = P + Nt + (N >>> 0 < At >>> 0 ? 1 : 0), M = C.low = M + _t, C.high = F + Jt + (M >>> 0 < _t >>> 0 ? 1 : 0);
3868
+ _ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T = x.low = T + X, x.high = R + ue + (T >>> 0 < X >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Ve + ($ >>> 0 < ze >>> 0 ? 1 : 0), G = y.low = G + Ze, y.high = q + Ye + (G >>> 0 < Ze >>> 0 ? 1 : 0), Q = E.low = Q + ke, E.high = ae + Se + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + nt + (ee >>> 0 < Et >>> 0 ? 1 : 0), N = A.low = N + At, A.high = P + Nt + (N >>> 0 < At >>> 0 ? 1 : 0), M = C.low = M + _t, C.high = F + Jt + (M >>> 0 < _t >>> 0 ? 1 : 0);
3869
3869
  },
3870
3870
  _doFinalize: function() {
3871
3871
  var g = this._data, l = g.words, S = this._nDataBytes * 8, v = g.sigBytes * 8;
@@ -7668,67 +7668,67 @@ function Jr(r, n, e, t) {
7668
7668
  }, v = { d: function() {
7669
7669
  return a();
7670
7670
  }, dd: function() {
7671
- return $e(a());
7671
+ return Ke(a());
7672
7672
  }, ddd: function() {
7673
- return Ve.dayNames[c()];
7673
+ return Oe.dayNames[c()];
7674
7674
  }, DDD: function() {
7675
- return Pa({ y: u(), m: o(), d: a(), _: s(), dayName: Ve.dayNames[c()], short: !0 });
7675
+ return Pa({ y: u(), m: o(), d: a(), _: s(), dayName: Oe.dayNames[c()], short: !0 });
7676
7676
  }, dddd: function() {
7677
- return Ve.dayNames[c() + 7];
7677
+ return Oe.dayNames[c() + 7];
7678
7678
  }, DDDD: function() {
7679
- return Pa({ y: u(), m: o(), d: a(), _: s(), dayName: Ve.dayNames[c() + 7] });
7679
+ return Pa({ y: u(), m: o(), d: a(), _: s(), dayName: Oe.dayNames[c() + 7] });
7680
7680
  }, m: function() {
7681
7681
  return o() + 1;
7682
7682
  }, mm: function() {
7683
- return $e(o() + 1);
7683
+ return Ke(o() + 1);
7684
7684
  }, mmm: function() {
7685
- return Ve.monthNames[o()];
7685
+ return Oe.monthNames[o()];
7686
7686
  }, mmmm: function() {
7687
- return Ve.monthNames[o() + 12];
7687
+ return Oe.monthNames[o() + 12];
7688
7688
  }, yy: function() {
7689
7689
  return String(u()).slice(2);
7690
7690
  }, yyyy: function() {
7691
- return $e(u(), 4);
7691
+ return Ke(u(), 4);
7692
7692
  }, h: function() {
7693
7693
  return h() % 12 || 12;
7694
7694
  }, hh: function() {
7695
- return $e(h() % 12 || 12);
7695
+ return Ke(h() % 12 || 12);
7696
7696
  }, H: function() {
7697
7697
  return h();
7698
7698
  }, HH: function() {
7699
- return $e(h());
7699
+ return Ke(h());
7700
7700
  }, M: function() {
7701
7701
  return p();
7702
7702
  }, MM: function() {
7703
- return $e(p());
7703
+ return Ke(p());
7704
7704
  }, s: function() {
7705
7705
  return d();
7706
7706
  }, ss: function() {
7707
- return $e(d());
7707
+ return Ke(d());
7708
7708
  }, l: function() {
7709
- return $e(f(), 3);
7709
+ return Ke(f(), 3);
7710
7710
  }, L: function() {
7711
- return $e(Math.floor(f() / 10));
7711
+ return Ke(Math.floor(f() / 10));
7712
7712
  }, t: function() {
7713
- return h() < 12 ? Ve.timeNames[0] : Ve.timeNames[1];
7713
+ return h() < 12 ? Oe.timeNames[0] : Oe.timeNames[1];
7714
7714
  }, tt: function() {
7715
- return h() < 12 ? Ve.timeNames[2] : Ve.timeNames[3];
7715
+ return h() < 12 ? Oe.timeNames[2] : Oe.timeNames[3];
7716
7716
  }, T: function() {
7717
- return h() < 12 ? Ve.timeNames[4] : Ve.timeNames[5];
7717
+ return h() < 12 ? Oe.timeNames[4] : Oe.timeNames[5];
7718
7718
  }, TT: function() {
7719
- return h() < 12 ? Ve.timeNames[6] : Ve.timeNames[7];
7719
+ return h() < 12 ? Oe.timeNames[6] : Oe.timeNames[7];
7720
7720
  }, Z: function() {
7721
7721
  return t ? "GMT" : e ? "UTC" : d0(r);
7722
7722
  }, o: function() {
7723
- return (g() > 0 ? "-" : "+") + $e(Math.floor(Math.abs(g()) / 60) * 100 + Math.abs(g()) % 60, 4);
7723
+ return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60) * 100 + Math.abs(g()) % 60, 4);
7724
7724
  }, p: function() {
7725
- return (g() > 0 ? "-" : "+") + $e(Math.floor(Math.abs(g()) / 60), 2) + ":" + $e(Math.floor(Math.abs(g()) % 60), 2);
7725
+ return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60), 2) + ":" + Ke(Math.floor(Math.abs(g()) % 60), 2);
7726
7726
  }, S: function() {
7727
7727
  return ["th", "st", "nd", "rd"][a() % 10 > 3 ? 0 : (a() % 100 - a() % 10 != 10) * a() % 10];
7728
7728
  }, W: function() {
7729
7729
  return l();
7730
7730
  }, WW: function() {
7731
- return $e(l());
7731
+ return Ke(l());
7732
7732
  }, N: function() {
7733
7733
  return S();
7734
7734
  } };
@@ -7736,7 +7736,7 @@ function Jr(r, n, e, t) {
7736
7736
  return x in v ? v[x]() : x.slice(1, x.length - 1);
7737
7737
  });
7738
7738
  }
7739
- var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Ve = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, $e = function(n) {
7739
+ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Oe = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, Ke = function(n) {
7740
7740
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
7741
7741
  return String(n).padStart(e, "0");
7742
7742
  }, Pa = function(n) {
@@ -7779,7 +7779,7 @@ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7779
7779
  }, d0 = function(n) {
7780
7780
  return (String(n).match(o0) || [""]).pop().replace(c0, "").replace(/GMT\+0000/g, "UTC");
7781
7781
  };
7782
- const { BrowserUtil: l0 } = ce, Ot = {
7782
+ const { BrowserUtil: l0 } = oe, Ot = {
7783
7783
  EdgeHTML: "EdgeHTML",
7784
7784
  Blink: "Blink",
7785
7785
  Trident: "Trident",
@@ -7995,7 +7995,7 @@ const { BrowserUtil: l0 } = ce, Ot = {
7995
7995
  } catch (n) {
7996
7996
  }
7997
7997
  return r;
7998
- }, { BrowserUtil: ka, SystenUtil: Ba } = ce, S0 = nn(), v0 = "woMMssV6jmyol9fr", b0 = 200, fi = 10 * 60 * 1e3, pi = {
7998
+ }, { BrowserUtil: ka, SystenUtil: Ba } = oe, S0 = nn(), v0 = "woMMssV6jmyol9fr", b0 = 200, fi = 10 * 60 * 1e3, pi = {
7999
7999
  host: "cn-hangzhou.log.aliyuncs.com",
8000
8000
  // 所在地域的服务入口。例如cn-hangzhou.log.aliyuncs.com
8001
8001
  project: "alivc-aio",
@@ -8020,8 +8020,8 @@ class y0 {
8020
8020
  m(this, "slsPlugin");
8021
8021
  m(this, "stsData");
8022
8022
  m(this, "stsExpiration", Date.now());
8023
- m(this, "clientId", st());
8024
- m(this, "bSesid", st());
8023
+ m(this, "clientId", at());
8024
+ m(this, "bSesid", at());
8025
8025
  m(this, "logLevel", 3);
8026
8026
  m(this, "appId", "");
8027
8027
  m(this, "sessionId", "");
@@ -8052,7 +8052,7 @@ class y0 {
8052
8052
  m(this, "logMethod", (n, e = console.log) => (...t) => {
8053
8053
  let i = wr();
8054
8054
  this.logLevel <= n && e(i, ...t);
8055
- let s = Ue.paramArrayToString(t);
8055
+ let s = He.paramArrayToString(t);
8056
8056
  n > 0 && this.addLog(s);
8057
8057
  });
8058
8058
  // debug level message
@@ -8097,7 +8097,7 @@ class y0 {
8097
8097
  this.updateTaskTimer && clearTimeout(this.updateTaskTimer);
8098
8098
  }
8099
8099
  reset() {
8100
- this.bSesid = st(), this.endReported = !0, this.logSequence = 0, this.appId = "", this.sessionId = "";
8100
+ this.bSesid = at(), this.endReported = !0, this.logSequence = 0, this.appId = "", this.sessionId = "";
8101
8101
  }
8102
8102
  startSTSUpdateTask() {
8103
8103
  return w(this, null, function* () {
@@ -8241,7 +8241,7 @@ class y0 {
8241
8241
  !this.sessionId || !this.tracker ? (this.logCache.push(i), this.logCache.length >= b0 && this.logCache.shift()) : this.sendLog(i);
8242
8242
  }
8243
8243
  }
8244
- class H {
8244
+ class O {
8245
8245
  static getLogger() {
8246
8246
  return this.logger || (this.logger = new y0()), this.logger;
8247
8247
  }
@@ -8286,9 +8286,9 @@ class H {
8286
8286
  this.getLogger().e("[ERR]", ...n);
8287
8287
  }
8288
8288
  }
8289
- m(H, "logger");
8289
+ m(O, "logger");
8290
8290
  const E0 = (r) => w(void 0, null, function* () {
8291
- const n = new ce.SupportUtil();
8291
+ const n = new oe.SupportUtil();
8292
8292
  let e = {
8293
8293
  support: !1,
8294
8294
  detail: {
@@ -8308,8 +8308,8 @@ const E0 = (r) => w(void 0, null, function* () {
8308
8308
  const t = yield n.checkH264Encode();
8309
8309
  e.detail.isH264EncodeSupported = t, e.support = e.support && t;
8310
8310
  }
8311
- return e.detail.isScreenShareSupported = n.checkWebRtcSupport() && n.checkScreenCapture() && !ce.SystenUtil.isAndroid && !ce.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = n.checkWebRtcSupport() && n.checkEncodedTransformSupport(), e;
8312
- }), A0 = () => new ce.SupportUtil().checkScreenCapture();
8311
+ return e.detail.isScreenShareSupported = n.checkWebRtcSupport() && n.checkScreenCapture() && !oe.SystenUtil.isAndroid && !oe.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = n.checkWebRtcSupport() && n.checkEncodedTransformSupport(), e;
8312
+ }), A0 = () => new oe.SupportUtil().checkScreenCapture();
8313
8313
  var Ee = /* @__PURE__ */ ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(Ee || {}), _0 = /* @__PURE__ */ ((r) => (r[r.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", r[r.POST_PROCESSOR = 1] = "POST_PROCESSOR", r))(_0 || {}), Ai = /* @__PURE__ */ ((r) => (r[r.AUDIO = 0] = "AUDIO", r[r.VIDEO = 1] = "VIDEO", r[r.BOTH = 2] = "BOTH", r))(Ai || {});
8314
8314
  class Kt extends we {
8315
8315
  constructor(e, t = Ee.AliRtcSdkStreamTypeCapture, i = 1) {
@@ -8401,7 +8401,7 @@ const C0 = {
8401
8401
  17: "16IN_360P",
8402
8402
  9999: "Mixed_Audio"
8403
8403
  };
8404
- var Xr = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(Xr || {}), vi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(vi || {}), _i = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(_i || {}), hn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(hn || {}), Yr = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(Yr || {}), dn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(dn || {}), ot = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ot || {}), ln = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(ln || {}), Oe = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Oe || {});
8404
+ var Xr = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(Xr || {}), vi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(vi || {}), _i = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(_i || {}), hn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(hn || {}), Yr = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(Yr || {}), dn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(dn || {}), ct = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ct || {}), ln = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(ln || {}), Ue = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Ue || {});
8405
8405
  const I0 = {
8406
8406
  0: "/libra/v1/sdk/start-task",
8407
8407
  1: "/libra/v1/sdk/update-task",
@@ -8431,7 +8431,7 @@ class fn {
8431
8431
  this.videoWidth = n, this.videoHeight = e, t && (this.videoFramerate = t), i && (this.videoBitrate = i), s && (this.videoGop = s), a && (this.audioSamplerate = a), c && (this.audioBitrate = c), o && (this.audioChannels = o);
8432
8432
  }
8433
8433
  }
8434
- const Zr = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Je = (r = 0, n) => {
8434
+ const Zr = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Ge = (r = 0, n) => {
8435
8435
  if (n == 0)
8436
8436
  return 0;
8437
8437
  let e = r / n;
@@ -8452,9 +8452,9 @@ class Br {
8452
8452
  appid: e.appId,
8453
8453
  channelid: e.channelId
8454
8454
  };
8455
- if (n === Oe.MPU_TASK_TRANSACTION_POLLING || n === Oe.MPU_TASK_TRANSACTION_LIST || n === Oe.MPU_TASK_TRANSACTION_ACKNOWLEDGE)
8456
- return n === Oe.MPU_TASK_TRANSACTION_ACKNOWLEDGE && (a.messageid = s), a;
8457
- if (a.taskid = t, n !== Oe.MPU_TASK_TRANSACTION_STOP) {
8455
+ if (n === Ue.MPU_TASK_TRANSACTION_POLLING || n === Ue.MPU_TASK_TRANSACTION_LIST || n === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE)
8456
+ return n === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE && (a.messageid = s), a;
8457
+ if (a.taskid = t, n !== Ue.MPU_TASK_TRANSACTION_STOP) {
8458
8458
  if (a.mixmode = this.mixMode, i && (a.streamurl = i), this.mixMode === Si.LiveTranscodingSingle) {
8459
8459
  const c = this.singleParam;
8460
8460
  if (c) {
@@ -8462,7 +8462,7 @@ class Br {
8462
8462
  const o = [];
8463
8463
  c.userId && o.push(c.userId), a.subspecusers = o;
8464
8464
  }
8465
- } else if (n === Oe.MPU_TASK_TRANSACTION_START || n === Oe.MPU_TASK_TRANSACTION_UPDATE) {
8465
+ } else if (n === Ue.MPU_TASK_TRANSACTION_START || n === Ue.MPU_TASK_TRANSACTION_UPDATE) {
8466
8466
  const c = this.mixParam;
8467
8467
  if (c) {
8468
8468
  c.taskProfile && (a.taskprofile = C0[c.taskProfile]);
@@ -8488,7 +8488,7 @@ class Br {
8488
8488
  return a;
8489
8489
  }
8490
8490
  }
8491
- var dt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(dt || {}), St = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(St || {}), Dt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Dt || {}), ct = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(ct || {}), ye = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(ye || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(he || {}), Ht = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Ht || {}), Qr = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(Qr || {}), qt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(qt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Z = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Z || {}), de = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(de || {}), Re = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(Re || {}), ai = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ai || {});
8491
+ var dt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(dt || {}), St = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(St || {}), Dt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Dt || {}), ut = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(ut || {}), ye = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(ye || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(he || {}), Ht = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Ht || {}), Qr = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(Qr || {}), qt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(qt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Z = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Z || {}), de = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(de || {}), Re = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(Re || {}), ai = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ai || {});
8492
8492
  const La = 10, Na = 5e3, jt = class jt extends we {
8493
8493
  constructor(e) {
8494
8494
  super();
@@ -8548,7 +8548,7 @@ const La = 10, Na = 5e3, jt = class jt extends we {
8548
8548
  * @param event
8549
8549
  */
8550
8550
  onOpen(e) {
8551
- H.info(`[${jt.logName}]`, "onOpen"), this.socketStatus = 2, this.connectRetryCount = 0, this.networkAvailableChecked = !1, this.closedByInvoke = !1, this.gotErr = !1, this.isReconnecting = !1, this.emit("onOpen", e);
8551
+ O.info(`[${jt.logName}]`, "onOpen"), this.socketStatus = 2, this.connectRetryCount = 0, this.networkAvailableChecked = !1, this.closedByInvoke = !1, this.gotErr = !1, this.isReconnecting = !1, this.emit("onOpen", e);
8552
8552
  }
8553
8553
  /**
8554
8554
  * 收到消息
@@ -8562,7 +8562,7 @@ const La = 10, Na = 5e3, jt = class jt extends we {
8562
8562
  * @param event
8563
8563
  */
8564
8564
  onError(e) {
8565
- this.isReconnecting && this.emit("onReconnectFail", e), this.emit("onError", e), this.isReconnecting = !1, this.socketStatus !== 2 && Ue.isNetworkAvailable().then((t) => {
8565
+ this.isReconnecting && this.emit("onReconnectFail", e), this.emit("onError", e), this.isReconnecting = !1, this.socketStatus !== 2 && He.isNetworkAvailable().then((t) => {
8566
8566
  t && console.error(jt.logName, "onError, Network is available, token may be invalid");
8567
8567
  });
8568
8568
  }
@@ -8576,10 +8576,10 @@ const La = 10, Na = 5e3, jt = class jt extends we {
8576
8576
  this.socketStatus = 0;
8577
8577
  return;
8578
8578
  }
8579
- if (H.info(
8579
+ if (O.info(
8580
8580
  `[${jt.logName}]`,
8581
8581
  `onClose, code: ${e.code}, reason: ${e.reason}, status: ${status}, retryCount: ${this.connectRetryCount}`
8582
- ), (yield Ue.isNetworkAvailable()) && !this.networkAvailableChecked) {
8582
+ ), (yield He.isNetworkAvailable()) && !this.networkAvailableChecked) {
8583
8583
  this.reconnect(), this.networkAvailableChecked = !0;
8584
8584
  return;
8585
8585
  } else
@@ -8646,7 +8646,7 @@ class R0 {
8646
8646
  "joinchannel"
8647
8647
  /* JOINCHANNEL */
8648
8648
  );
8649
- return n.header.displayName = this.userName, n.header.clientversion = Ue.getVersionNumber().toString(), n.header.platform = Ks, this.roleAuth && (n.data.auth = this.roleAuth), n;
8649
+ return n.header.displayName = this.userName, n.header.clientversion = He.getVersionNumber().toString(), n.header.platform = Ks, this.roleAuth && (n.data.auth = this.roleAuth), n;
8650
8650
  }
8651
8651
  /**
8652
8652
  * 创建一个用于发送离会消息的Package
@@ -8688,7 +8688,7 @@ class R0 {
8688
8688
  "reconnect"
8689
8689
  /* RECONNECT */
8690
8690
  );
8691
- return e.header.displayName = this.userName, e.header.clientversion = Ue.getVersionNumber().toString(), e.header.platform = Ks, e.data = Y(Y({}, e.data), n != null ? n : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
8691
+ return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform = Ks, e.data = Y(Y({}, e.data), n != null ? n : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
8692
8692
  }
8693
8693
  createRefreshUrlPackage() {
8694
8694
  let n = this.createBaseSendPackage(
@@ -8721,7 +8721,7 @@ class R0 {
8721
8721
  return ++this.seqIndex, {
8722
8722
  version: 1,
8723
8723
  msgtype: n,
8724
- tid: st(),
8724
+ tid: at(),
8725
8725
  header: {
8726
8726
  appid: this.authInfo.appId,
8727
8727
  channelid: this.authInfo.channelId,
@@ -8734,7 +8734,7 @@ class R0 {
8734
8734
  };
8735
8735
  }
8736
8736
  }
8737
- var O = /* @__PURE__ */ ((r) => (r[r.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", r[r.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", r[r.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", r[r.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", r[r.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", r[r.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", r[r.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", r[r.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", r[r.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", r[r.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", r[r.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", r[r.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", r[r.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", r[r.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", r[r.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", r[r.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", r[r.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", r[r.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", r[r.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", r[r.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", r[r.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", r[r.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", r[r.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", r[r.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", r[r.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", r[r.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", r[r.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", r[r.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", r[r.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", r[r.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", r[r.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", r[r.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", r[r.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", r[r.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", r[r.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", r[r.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", r[r.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", r[r.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", r[r.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", r[r.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", r[r.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", r[r.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", r[r.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", r[r.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", r[r.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", r[r.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", r[r.ERR_INNER = -1] = "ERR_INNER", r[r.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", r[r.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", r[r.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", r[r.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", r[r.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", r[r.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", r[r.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", r[r.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", r[r.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", r[r.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", r[r.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", r[r.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", r))(O || {});
8737
+ var U = /* @__PURE__ */ ((r) => (r[r.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", r[r.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", r[r.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", r[r.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", r[r.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", r[r.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", r[r.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", r[r.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", r[r.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", r[r.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", r[r.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", r[r.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", r[r.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", r[r.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", r[r.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", r[r.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", r[r.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", r[r.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", r[r.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", r[r.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", r[r.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", r[r.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", r[r.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", r[r.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", r[r.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", r[r.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", r[r.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", r[r.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", r[r.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", r[r.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", r[r.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", r[r.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", r[r.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", r[r.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", r[r.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", r[r.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", r[r.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", r[r.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", r[r.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", r[r.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", r[r.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", r[r.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", r[r.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", r[r.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", r[r.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", r[r.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", r[r.ERR_INNER = -1] = "ERR_INNER", r[r.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", r[r.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", r[r.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", r[r.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", r[r.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", r[r.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", r[r.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", r[r.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", r[r.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", r[r.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", r[r.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", r[r.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", r))(U || {});
8738
8738
  class V extends Error {
8739
8739
  constructor(e, t, i) {
8740
8740
  super(t);
@@ -8761,7 +8761,7 @@ class V extends Error {
8761
8761
  return this._extra;
8762
8762
  }
8763
8763
  }
8764
- const w0 = 3e4, Ke = class Ke extends we {
8764
+ const w0 = 3e4, qe = class qe extends we {
8765
8765
  // 发送重连信令时,房间信令凭这些信息找回 session
8766
8766
  constructor(e, t, i, s, a, c) {
8767
8767
  super();
@@ -8875,7 +8875,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8875
8875
  * 关闭websocket连接,并销毁
8876
8876
  */
8877
8877
  close() {
8878
- H.info(`[${Ke.logName}] close`), this.stopKeepAlive(), this.wsClient.off("onOpen", this.onOpen.bind(this)), this.wsClient.off("onMessage", this.onMessage.bind(this)), this.wsClient.off("onError", this.onError.bind(this)), this.wsClient.off("onClose", this.onClose.bind(this)), this.wsClient.off("onConnectFail", this.onConnectFail.bind(this)), this.wsClient.off("onAuthInvalid", this.onAuthInvalid.bind(this)), this.wsClient.off("onReconnectStart"), this.wsClient.off("onReconnectFail"), this.wsClient.close();
8878
+ O.info(`[${qe.logName}] close`), this.stopKeepAlive(), this.wsClient.off("onOpen", this.onOpen.bind(this)), this.wsClient.off("onMessage", this.onMessage.bind(this)), this.wsClient.off("onError", this.onError.bind(this)), this.wsClient.off("onClose", this.onClose.bind(this)), this.wsClient.off("onConnectFail", this.onConnectFail.bind(this)), this.wsClient.off("onAuthInvalid", this.onAuthInvalid.bind(this)), this.wsClient.off("onReconnectStart"), this.wsClient.off("onReconnectFail"), this.wsClient.close();
8879
8879
  }
8880
8880
  /**
8881
8881
  * 通过此方法发送数据到业务信令
@@ -8898,7 +8898,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8898
8898
  * ws连接建立成功后立刻发送join消息
8899
8899
  */
8900
8900
  onOpen() {
8901
- if (H.info(`[${Ke.logName}] onOpen`), this.isFirstConnect) {
8901
+ if (O.info(`[${qe.logName}] onOpen`), this.isFirstConnect) {
8902
8902
  let e = this.packageCreater.createJoinPackage();
8903
8903
  e.data.configure = {
8904
8904
  channelprofile: this.channelProfile
@@ -8918,7 +8918,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8918
8918
  let t = JSON.parse(e.data);
8919
8919
  this.packageCache.delete(t.tid), this.onRecvMessage(t), t != null && t.msgtype && (t == null ? void 0 : t.msgtype) !== ve.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!1, t.msgtype, t.tid, t);
8920
8920
  } catch (t) {
8921
- H.warn(`[${Ke.logName}] onMessage err`, t, e);
8921
+ O.warn(`[${qe.logName}] onMessage err`, t, e);
8922
8922
  }
8923
8923
  }
8924
8924
  /**
@@ -8926,28 +8926,28 @@ const w0 = 3e4, Ke = class Ke extends we {
8926
8926
  * @param event
8927
8927
  */
8928
8928
  onError(e) {
8929
- H.warn(`[${Ke.logName}] onError`, e), this.isFirstConnect && this.onConnectFail();
8929
+ O.warn(`[${qe.logName}] onError`, e), this.isFirstConnect && this.onConnectFail();
8930
8930
  }
8931
8931
  /**
8932
8932
  * 连接失败
8933
8933
  */
8934
8934
  onConnectFail() {
8935
- H.warn(`[${Ke.logName}] onConnectFail`);
8936
- const e = new V(O.ERR_INNER, "Signaling connect failed.");
8935
+ O.warn(`[${qe.logName}] onConnectFail`);
8936
+ const e = new V(U.ERR_INNER, "Signaling connect failed.");
8937
8937
  this.isFirstConnect ? this.emit("onJoinChannelResult", e) : this.emit("onConnectFail", e);
8938
8938
  }
8939
8939
  /**
8940
8940
  * 鉴权失败
8941
8941
  */
8942
8942
  onAuthInvalid() {
8943
- H.warn(`[${Ke.logName}] onAuthInvalid`), this.isFirstConnect && this.emit("onAuthInvalid");
8943
+ O.warn(`[${qe.logName}] onAuthInvalid`), this.isFirstConnect && this.emit("onAuthInvalid");
8944
8944
  }
8945
8945
  /**
8946
8946
  * 网络异常
8947
8947
  */
8948
8948
  onNetworkError() {
8949
- H.warn(`[${Ke.logName}] onNetworkError`);
8950
- const e = new V(O.ERR_INNER, "Network error, signaling connect failed.");
8949
+ O.warn(`[${qe.logName}] onNetworkError`);
8950
+ const e = new V(U.ERR_INNER, "Network error, signaling connect failed.");
8951
8951
  this.emit("onNetworkError", e);
8952
8952
  }
8953
8953
  /**
@@ -8955,7 +8955,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8955
8955
  * @param event
8956
8956
  */
8957
8957
  onClose(e) {
8958
- H.info(`[${Ke.logName}] onClose`, e), this.stopKeepAlive();
8958
+ O.info(`[${qe.logName}] onClose`, e), this.stopKeepAlive();
8959
8959
  }
8960
8960
  onKeepAliveRsp() {
8961
8961
  this.emit("onKeepAliveRsp"), this.checkAlive();
@@ -8964,14 +8964,14 @@ const w0 = 3e4, Ke = class Ke extends we {
8964
8964
  this.emit("onReconnectStart");
8965
8965
  }
8966
8966
  onReconnectFail() {
8967
- this.emit("onReconnectFail", new V(O.ERR_INNER, "signaling reconnect failed."));
8967
+ this.emit("onReconnectFail", new V(U.ERR_INNER, "signaling reconnect failed."));
8968
8968
  }
8969
8969
  /**
8970
8970
  * 处理 Keepalive 心跳,加速判断网络异常
8971
8971
  */
8972
8972
  checkAlive() {
8973
8973
  window.clearTimeout(this.aliveChecker), this.aliveChecker = window.setTimeout(() => {
8974
- H.info(`[${Ke.logName}] not alive, reconnect`), this.stopKeepAlive(), this.emit("onReconnectStart"), this.wsClient.reconnect();
8974
+ O.info(`[${qe.logName}] not alive, reconnect`), this.stopKeepAlive(), this.emit("onReconnectStart"), this.wsClient.reconnect();
8975
8975
  }, w0);
8976
8976
  }
8977
8977
  /**
@@ -8979,7 +8979,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8979
8979
  * @param response
8980
8980
  */
8981
8981
  onRecvMessage(e) {
8982
- switch (e.msgtype !== ve.KEEPALIVE && H.info(`[${Ke.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
8982
+ switch (e.msgtype !== ve.KEEPALIVE && O.info(`[${qe.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
8983
8983
  case ve.JOINCHANNEL:
8984
8984
  this.onJoinResult(e);
8985
8985
  break;
@@ -9065,7 +9065,7 @@ const w0 = 3e4, Ke = class Ke extends we {
9065
9065
  this.sendPkgCache(), this.startKeepAlive(), this.emit("onReconnectSuccess", e.data.users);
9066
9066
  else {
9067
9067
  const t = new V(
9068
- O.ERR_INNER,
9068
+ U.ERR_INNER,
9069
9069
  `reconnect failed, code: ${e.code};description: ${e.description}`
9070
9070
  );
9071
9071
  e.code === 403 && (t.code = 403), this.emit("onReconnectFail", t), this.close();
@@ -9118,8 +9118,8 @@ const w0 = 3e4, Ke = class Ke extends we {
9118
9118
  this.stopKeepAlive(), this.emit("onBye", e.reason, e.description);
9119
9119
  }
9120
9120
  };
9121
- m(Ke, "logName", "RSMessageCenter");
9122
- let Lr = Ke;
9121
+ m(qe, "logName", "RSMessageCenter");
9122
+ let Lr = qe;
9123
9123
  const D = (r, n) => (e, t, i) => {
9124
9124
  const s = i.value;
9125
9125
  return i.value = function(...a) {
@@ -9131,7 +9131,7 @@ const D = (r, n) => (e, t, i) => {
9131
9131
  u = r(a);
9132
9132
  } catch (d) {
9133
9133
  }
9134
- H.interface(c, t, ...u);
9134
+ O.interface(c, t, ...u);
9135
9135
  const h = s.apply(this, a);
9136
9136
  return Promise.resolve(h).then((d) => d).catch((d) => d).then((d) => {
9137
9137
  var S;
@@ -9152,7 +9152,7 @@ const D = (r, n) => (e, t, i) => {
9152
9152
  }
9153
9153
  else
9154
9154
  return;
9155
- H.interfaceResult(
9155
+ O.interfaceResult(
9156
9156
  c,
9157
9157
  t,
9158
9158
  !(g && l),
@@ -9162,13 +9162,13 @@ const D = (r, n) => (e, t, i) => {
9162
9162
  }
9163
9163
  }), h;
9164
9164
  }, i;
9165
- }, U = (r) => r;
9165
+ }, H = (r) => r;
9166
9166
  var D0 = Object.defineProperty, T0 = Object.getOwnPropertyDescriptor, es = (r, n, e, t) => {
9167
9167
  for (var i = t > 1 ? void 0 : t ? T0(n, e) : n, s = r.length - 1, a; s >= 0; s--)
9168
9168
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
9169
9169
  return t && i && D0(n, e, i), i;
9170
- }, Be;
9171
- const Ci = (Be = class extends we {
9170
+ }, Me;
9171
+ const Ci = (Me = class extends we {
9172
9172
  constructor(e, t, i, s = dt.prod) {
9173
9173
  super();
9174
9174
  m(this, "messageCenter");
@@ -9201,7 +9201,7 @@ const Ci = (Be = class extends we {
9201
9201
  * 释放资源
9202
9202
  */
9203
9203
  reset() {
9204
- H.info("[roomsig] reset"), this.messageCenter && (this.messageCenter.close(), this.messageCenter = void 0), this.authInfo = void 0;
9204
+ O.info("[roomsig] reset"), this.messageCenter && (this.messageCenter.close(), this.messageCenter = void 0), this.authInfo = void 0;
9205
9205
  }
9206
9206
  join(e, t, i) {
9207
9207
  return w(this, null, function* () {
@@ -9216,16 +9216,16 @@ const Ci = (Be = class extends we {
9216
9216
  i
9217
9217
  ), this.initMessageCenter(), this.messageCenter.once("onJoinChannelResult", (u) => {
9218
9218
  var h, p, d;
9219
- if (H.info(`[${Be.logName}]`, "join result: ", u), c.taskretrynum = ((h = this.messageCenter) == null ? void 0 : h.retryCount) || 0, u.code == 200) {
9219
+ if (O.info(`[${Me.logName}]`, "join result: ", u), c.taskretrynum = ((h = this.messageCenter) == null ? void 0 : h.retryCount) || 0, u.code == 200) {
9220
9220
  (p = this.messageCenter) == null || p.sendPkgCache(), (d = this.messageCenter) == null || d.startKeepAlive();
9221
9221
  let f = u.data;
9222
9222
  f.tid = u.tid, f.users = u.data.users, f.timestamp = u.timestamp, c.est && (c.joinconnecttc = Date.now() - c.est), this.slsReporter.reportJoinConnection(c), s(f);
9223
9223
  } else
9224
- this.reset(), a(this.handleSignalError(u.code, u.reason, O.ERR_JOIN_CHANNEL_FAILED));
9224
+ this.reset(), a(this.handleSignalError(u.code, u.reason, U.ERR_JOIN_CHANNEL_FAILED));
9225
9225
  }), this.messageCenter.once("onAuthInvalid", () => {
9226
- this.reset(), a(new V(O.ERR_JOIN_BAD_TOKEN, "join failed because authentication failed"));
9227
- }), H.info(
9228
- `[${Be.logName}]`,
9226
+ this.reset(), a(new V(U.ERR_JOIN_BAD_TOKEN, "join failed because authentication failed"));
9227
+ }), O.info(
9228
+ `[${Me.logName}]`,
9229
9229
  "start ws connecting roomserver and auto join when connected"
9230
9230
  );
9231
9231
  const o = {
@@ -9237,9 +9237,9 @@ const Ci = (Be = class extends we {
9237
9237
  timestamp: this.authInfo.timestamp,
9238
9238
  token: this.authInfo.token,
9239
9239
  authtype: "app",
9240
- tid: st()
9240
+ tid: at()
9241
9241
  };
9242
- e.role && (o.tokenrole = e.role), c.est = Date.now(), this.messageCenter.start(this.roomServerUri + "?" + Ue.queryingParam(o));
9242
+ e.role && (o.tokenrole = e.role), c.est = Date.now(), this.messageCenter.start(this.roomServerUri + "?" + He.queryingParam(o));
9243
9243
  });
9244
9244
  });
9245
9245
  }
@@ -9248,23 +9248,23 @@ const Ci = (Be = class extends we {
9248
9248
  * @returns
9249
9249
  */
9250
9250
  leave() {
9251
- return H.info("[roomsig] leave .."), new Promise((e, t) => {
9251
+ return O.info("[roomsig] leave .."), new Promise((e, t) => {
9252
9252
  this.messageCenter ? (this.messageCenter.on("onLeaveResult", (i, s) => {
9253
- H.info(`[${Be.logName}]`, "recv leave response " + i), i === 200 ? (this.updateReconnectData(), this.reset(), e({ tid: s })) : t(this.handleSignalError(i, "leave error"));
9254
- }), H.info(`[${Be.logName}]`, "send leave request"), this.messageCenter.leave()) : (H.info(`[${Be.logName}]`, "no message center, ok to leave"), e({ tid: "" }));
9253
+ O.info(`[${Me.logName}]`, "recv leave response " + i), i === 200 ? (this.updateReconnectData(), this.reset(), e({ tid: s })) : t(this.handleSignalError(i, "leave error"));
9254
+ }), O.info(`[${Me.logName}]`, "send leave request"), this.messageCenter.leave()) : (O.info(`[${Me.logName}]`, "no message center, ok to leave"), e({ tid: "" }));
9255
9255
  });
9256
9256
  }
9257
9257
  publish(e) {
9258
9258
  return new Promise((t, i) => {
9259
9259
  var s;
9260
9260
  this.messageCenter ? (this.messageCenter.once("onPublishResult", (a, c, o) => {
9261
- H.info(`[${Be.logName}]`, "recv pubish response " + a), a === 200 ? (this.updateReconnectData(gt(Y({}, this.reconnectData), {
9261
+ O.info(`[${Me.logName}]`, "recv pubish response " + a), a === 200 ? (this.updateReconnectData(gt(Y({}, this.reconnectData), {
9262
9262
  publish: {
9263
9263
  users: [e]
9264
9264
  }
9265
9265
  })), t({ tid: c })) : i(this.handleSignalError(a, `publish error, ${o}`));
9266
- }), this.authInfo && (e.sessionid = (s = this.authInfo.sessionId) != null ? s : ""), e.callid || (e.callid = st()), H.info(
9267
- `[${Be.logName}]`,
9266
+ }), this.authInfo && (e.sessionid = (s = this.authInfo.sessionId) != null ? s : ""), e.callid || (e.callid = at()), O.info(
9267
+ `[${Me.logName}]`,
9268
9268
  "assign callid " + e.callid + " and send publish request"
9269
9269
  ), this.messageCenter.publish(e)) : i(this.handleSignalError(-1, "publish error, no message center"));
9270
9270
  });
@@ -9277,7 +9277,7 @@ const Ci = (Be = class extends we {
9277
9277
  }
9278
9278
  this.messageCenter.on("onRoleUpdateResult", (s, a, c) => {
9279
9279
  var o, u;
9280
- H.info(`[${Be.logName}]`, "recv role update response " + s), s === 200 ? ((u = (o = this.reconnectData) == null ? void 0 : o.role) != null && u.clientrole && (this.reconnectData.role.clientrole = e, this.updateReconnectData(this.reconnectData)), t({ tid: a })) : i(this.handleSignalError(s, `role update error, ${c}`));
9280
+ O.info(`[${Me.logName}]`, "recv role update response " + s), s === 200 ? ((u = (o = this.reconnectData) == null ? void 0 : o.role) != null && u.clientrole && (this.reconnectData.role.clientrole = e, this.updateReconnectData(this.reconnectData)), t({ tid: a })) : i(this.handleSignalError(s, `role update error, ${c}`));
9281
9281
  }), this.messageCenter.roleUpdate(e);
9282
9282
  });
9283
9283
  }
@@ -9288,15 +9288,15 @@ const Ci = (Be = class extends we {
9288
9288
  * 更新推流地址
9289
9289
  */
9290
9290
  refreshUrl(e) {
9291
- return H.info(`[${Be.logName}]`, "refreshUrl .."), new Promise((t, i) => {
9291
+ return O.info(`[${Me.logName}]`, "refreshUrl .."), new Promise((t, i) => {
9292
9292
  if (!this.messageCenter) {
9293
9293
  i(this.handleSignalError(-1, "refresh url error, no message center"));
9294
9294
  return;
9295
9295
  }
9296
9296
  this.messageCenter.on("onRefreshUrlResult", (s) => {
9297
9297
  const { code: a, description: c, data: o = {} } = s || {};
9298
- H.info("recv refresh url response " + a), a === 200 ? t(o) : i(this.handleSignalError(a, `refresh url error, ${c}`));
9299
- }), H.info("send refresh url request"), this.messageCenter.refreshUrl(e);
9298
+ O.info("recv refresh url response " + a), a === 200 ? t(o) : i(this.handleSignalError(a, `refresh url error, ${c}`));
9299
+ }), O.info("send refresh url request"), this.messageCenter.refreshUrl(e);
9300
9300
  });
9301
9301
  }
9302
9302
  /**
@@ -9304,13 +9304,13 @@ const Ci = (Be = class extends we {
9304
9304
  * @param status
9305
9305
  */
9306
9306
  reportStatus(e) {
9307
- return H.info(`[${Be.logName}]`, "reportStatus " + e), new Promise((t, i) => {
9307
+ return O.info(`[${Me.logName}]`, "reportStatus " + e), new Promise((t, i) => {
9308
9308
  this.messageCenter ? (this.messageCenter.once("onStatusReport", (s, a) => {
9309
9309
  s === 200 ? t() : i(new V(s, a));
9310
9310
  }), this.messageCenter.reportStatus(e)) : i(new V(-1, "No messageCenter"));
9311
9311
  });
9312
9312
  }
9313
- handleSignalError(e, t, i = O.ERR_INNER) {
9313
+ handleSignalError(e, t, i = U.ERR_INNER) {
9314
9314
  const s = `signal error: code - ${e}; description - ${t}`;
9315
9315
  return new V(i, s);
9316
9316
  }
@@ -9354,7 +9354,7 @@ const Ci = (Be = class extends we {
9354
9354
  }, /**
9355
9355
  * @ignore
9356
9356
  */
9357
- m(Be, "logName", "RoomServerSignaling"), Be);
9357
+ m(Me, "logName", "RoomServerSignaling"), Me);
9358
9358
  es([
9359
9359
  D()
9360
9360
  ], Ci.prototype, "join", 1);
@@ -9385,12 +9385,12 @@ const k0 = "https://pgw.rtn.aliyuncs.com", B0 = "https://gw.rtn.aliyuncs.com", F
9385
9385
  var g, l;
9386
9386
  if (f.code === 0) {
9387
9387
  const S = (g = f.data) == null ? void 0 : g.oss, v = (l = f.data) == null ? void 0 : l.sls;
9388
- this.expiration = S.expiration || v.expiration, this.emit("onTokenUpdate", S, v), H.event(`[${ti.logName}]`, "getToken", S, v);
9388
+ this.expiration = S.expiration || v.expiration, this.emit("onTokenUpdate", S, v), O.event(`[${ti.logName}]`, "getToken", S, v);
9389
9389
  } else
9390
9390
  throw new Error();
9391
9391
  this.slsReporter.reportSTSResult(200, d);
9392
9392
  }).catch((f) => {
9393
- this.slsReporter.reportSTSResult(-1, d), H.error(`[${ti.logName}]`, "getToken", f.message);
9393
+ this.slsReporter.reportSTSResult(-1, d), O.error(`[${ti.logName}]`, "getToken", f.message);
9394
9394
  });
9395
9395
  }));
9396
9396
  this.slsReporter = e, this.env = t;
@@ -9434,7 +9434,7 @@ class ts extends we {
9434
9434
  }
9435
9435
  reset() {
9436
9436
  var e;
9437
- H.info("[signalingmanager] reset"), (e = this.signaling) == null || e.reset(), this.stsManager.clear(), this.signaling = void 0, this.authInfo = void 0;
9437
+ O.info("[signalingmanager] reset"), (e = this.signaling) == null || e.reset(), this.stsManager.clear(), this.signaling = void 0, this.authInfo = void 0;
9438
9438
  }
9439
9439
  /**
9440
9440
  * 向业务信令发送入会
@@ -9443,7 +9443,7 @@ class ts extends we {
9443
9443
  */
9444
9444
  join(e, t = e.userId, i, s) {
9445
9445
  return this.maxConnectRetryCount = i, this.userName = t, new Promise((a, c) => {
9446
- this.signaling ? c(new V(O.ERR_JOIN_ALREADY_JOINED, "already joined")) : (H.info("[signalingmanager] create signaling"), this.signaling = new P0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
9446
+ this.signaling ? c(new V(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new P0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
9447
9447
  this.authInfo = e, s && (s.re = Date.now()), a(o);
9448
9448
  }).catch((o) => {
9449
9449
  this.reset(), c(o);
@@ -9474,7 +9474,7 @@ class ts extends we {
9474
9474
  t(a);
9475
9475
  }).catch((a) => {
9476
9476
  i(a);
9477
- })) : i(new V(O.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL, "no signaling"));
9477
+ })) : i(new V(U.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL, "no signaling"));
9478
9478
  });
9479
9479
  }
9480
9480
  /**
@@ -9525,7 +9525,7 @@ class ts extends we {
9525
9525
  * @returns
9526
9526
  */
9527
9527
  refreshUrl(e) {
9528
- return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new V(O.ERR_SDK_INVALID_STATE, "should join first"));
9528
+ return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new V(U.ERR_SDK_INVALID_STATE, "should join first"));
9529
9529
  }
9530
9530
  refreshAuthInfo(e) {
9531
9531
  return w(this, null, function* () {
@@ -9636,7 +9636,7 @@ class ts extends we {
9636
9636
  */
9637
9637
  m(ts, "logName", "SignalingManager");
9638
9638
  F0([
9639
- D(U)
9639
+ D(H)
9640
9640
  ], ts.prototype, "publish", 1);
9641
9641
  const Tt = class Tt {
9642
9642
  static getInstance() {
@@ -9723,7 +9723,7 @@ class pn extends we {
9723
9723
  return this.name;
9724
9724
  }
9725
9725
  createCallId() {
9726
- this.callId || (this.callId = Ue.createCallid());
9726
+ this.callId || (this.callId = He.createCallid());
9727
9727
  }
9728
9728
  setUserInfo(e, t) {
9729
9729
  this.uid = e, this.name = t;
@@ -9815,11 +9815,11 @@ function Va(r) {
9815
9815
  if (e) {
9816
9816
  if (e.nodeName.toLocaleLowerCase() === "video")
9817
9817
  return e.setAttribute("playsinline", ""), e;
9818
- throw new V(O.ERR_INVALID_ARGUMENTS, "element should be HtmlVideoElement");
9818
+ throw new V(U.ERR_INVALID_ARGUMENTS, "element should be HtmlVideoElement");
9819
9819
  } else
9820
- throw new V(O.ERR_INVALID_ARGUMENTS, "element not founded");
9820
+ throw new V(U.ERR_INVALID_ARGUMENTS, "element not founded");
9821
9821
  } else
9822
- throw new V(O.ERR_INVALID_ARGUMENTS, "element id should be string");
9822
+ throw new V(U.ERR_INVALID_ARGUMENTS, "element id should be string");
9823
9823
  }
9824
9824
  function Fr(r) {
9825
9825
  var e;
@@ -9870,7 +9870,7 @@ const Sn = (r, n, e = !1) => {
9870
9870
  return e && r.srcObject === n ? i = Promise.resolve() : (r.load(), r.srcObject = n, i = r.play(), r._playPromise = i), i;
9871
9871
  }));
9872
9872
  return new Promise((i) => {
9873
- if (ce.BrowserUtil.isMicroMessenger) {
9873
+ if (oe.BrowserUtil.isMicroMessenger) {
9874
9874
  const s = window.top !== window.self, a = window.WeixinJSBridge || window.top.WeixinJSBridge;
9875
9875
  a ? a.invoke("getNetworkType", {}, () => {
9876
9876
  i(t());
@@ -9886,7 +9886,7 @@ const Sn = (r, n, e = !1) => {
9886
9886
  i(t());
9887
9887
  }, 0);
9888
9888
  });
9889
- }, tt = (r) => {
9889
+ }, it = (r) => {
9890
9890
  Promise.race([vt(100), r._playPromise || Promise.resolve()]).catch(() => {
9891
9891
  }).then(() => {
9892
9892
  r.srcObject = null, r._playPromise = void 0;
@@ -10104,8 +10104,8 @@ class Xt extends we {
10104
10104
  this.state = e, this.time = Date.now(), this.emit("change", t, e, Math.floor((this.time - i) / 1e3));
10105
10105
  }
10106
10106
  }
10107
- var ut;
10108
- const ge = (ut = class extends pn {
10107
+ var ht;
10108
+ const ge = (ht = class extends pn {
10109
10109
  constructor(e) {
10110
10110
  const { rtsManager: t, localStreamManager: i, slsReporter: s, signalingManager: a, audioVolumeIndicationInterval: c, parameter: o } = e;
10111
10111
  super("", "", t, c);
@@ -10124,7 +10124,7 @@ const ge = (ut = class extends pn {
10124
10124
  m(this, "dc");
10125
10125
  m(this, "streamTracks");
10126
10126
  // 本地流 track 信息
10127
- m(this, "publishId", st());
10127
+ m(this, "publishId", at());
10128
10128
  m(this, "signalingManager");
10129
10129
  m(this, "traceId", "");
10130
10130
  m(this, "monitorTimerId");
@@ -10238,7 +10238,7 @@ const ge = (ut = class extends pn {
10238
10238
  this.streamManager.publishLocalScreenStreamEnabled = e;
10239
10239
  }
10240
10240
  initInfo(e, t) {
10241
- this.joinTime = Date.now(), this.rtsManager.localJoinTime = this.joinTime, this.setUserInfo(e.userId, e.userId), this.url = t, this.callId = e.sessionId || Ue.createCallid(), this.updatePubId();
10241
+ this.joinTime = Date.now(), this.rtsManager.localJoinTime = this.joinTime, this.setUserInfo(e.userId, e.userId), this.url = t, this.callId = e.sessionId || He.createCallid(), this.updatePubId();
10242
10242
  }
10243
10243
  setVideoProfile(e, t) {
10244
10244
  return w(this, null, function* () {
@@ -10271,7 +10271,7 @@ const ge = (ut = class extends pn {
10271
10271
  facingMode: "environment"
10272
10272
  });
10273
10273
  else
10274
- throw new V(O.ERR_CAMERA_OPEN_FAIL, `camera direction set to ${e} failed`);
10274
+ throw new V(U.ERR_CAMERA_OPEN_FAIL, `camera direction set to ${e} failed`);
10275
10275
  }
10276
10276
  setCameraDeviceId(e) {
10277
10277
  this.streamManager.setCameraVideoConstraints({
@@ -10293,7 +10293,7 @@ const ge = (ut = class extends pn {
10293
10293
  });
10294
10294
  }
10295
10295
  updatePubId() {
10296
- this.publishId = st();
10296
+ this.publishId = at();
10297
10297
  }
10298
10298
  clearPublishState() {
10299
10299
  this.streamTracks = void 0;
@@ -10306,11 +10306,11 @@ const ge = (ut = class extends pn {
10306
10306
  }
10307
10307
  clear() {
10308
10308
  return w(this, null, function* () {
10309
- Pi(ut.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10309
+ Pi(ht.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10310
10310
  });
10311
10311
  }
10312
10312
  resetElement(e) {
10313
- this.previewElements.includes(e) && (tt(e), this.previewElements.splice(this.previewElements.indexOf(e), 1)), this.screenPreviewElements.includes(e) && (tt(e), this.screenPreviewElements.splice(this.screenPreviewElements.indexOf(e), 1));
10313
+ this.previewElements.includes(e) && (it(e), this.previewElements.splice(this.previewElements.indexOf(e), 1)), this.screenPreviewElements.includes(e) && (it(e), this.screenPreviewElements.splice(this.screenPreviewElements.indexOf(e), 1));
10314
10314
  }
10315
10315
  setPreviewElement(e) {
10316
10316
  const { videoElement: t, screen: i } = e;
@@ -10322,12 +10322,12 @@ const ge = (ut = class extends pn {
10322
10322
  let a = [];
10323
10323
  if (!t && !e && !i && s) {
10324
10324
  try {
10325
- a = yield ce.getCameraList(), a.length && (yield this.startCameraCapture());
10325
+ a = yield oe.getCameraList(), a.length && (yield this.startCameraCapture());
10326
10326
  } catch (c) {
10327
- throw c.code === ce.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new V(O.ERR_CAMERA_AUTH_FAIL, "camera auth fail") : new V(O.ERR_CAMERA_OPEN_FAIL, `camera open fail: ${c.message}`);
10327
+ throw c.code === oe.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new V(U.ERR_CAMERA_AUTH_FAIL, "camera auth fail") : new V(U.ERR_CAMERA_OPEN_FAIL, `camera open fail: ${c.message}`);
10328
10328
  }
10329
10329
  if (!a.length)
10330
- throw new V(O.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
10330
+ throw new V(U.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
10331
10331
  }
10332
10332
  });
10333
10333
  }
@@ -10337,12 +10337,12 @@ const ge = (ut = class extends pn {
10337
10337
  let s = [];
10338
10338
  if (!e && !t && i) {
10339
10339
  try {
10340
- s = yield ce.getMicList(), s.length && (yield this.startAudioCapture());
10340
+ s = yield oe.getMicList(), s.length && (yield this.startAudioCapture());
10341
10341
  } catch (a) {
10342
- throw a.code === ce.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new V(O.ERR_MIC_AUTH_FAIL, "microphone auth fail") : new V(O.ERR_MIC_OPEN_FAIL, `microphone open fail: ${a.message}`);
10342
+ throw a.code === oe.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new V(U.ERR_MIC_AUTH_FAIL, "microphone auth fail") : new V(U.ERR_MIC_OPEN_FAIL, `microphone open fail: ${a.message}`);
10343
10343
  }
10344
10344
  if (!s.length)
10345
- throw new V(O.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
10345
+ throw new V(U.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
10346
10346
  }
10347
10347
  });
10348
10348
  }
@@ -10358,7 +10358,7 @@ const ge = (ut = class extends pn {
10358
10358
  return;
10359
10359
  }
10360
10360
  if (![se.AliRtcVideoTrackCamera, se.AliRtcVideoTrackScreen].includes(t))
10361
- throw new V(O.ERR_INVALID_ARGUMENTS, "set view config invalid track", { track: t });
10361
+ throw new V(U.ERR_INVALID_ARGUMENTS, "set view config invalid track", { track: t });
10362
10362
  e.forEach((i) => {
10363
10363
  this.setPreviewElement({
10364
10364
  videoElement: i,
@@ -10405,16 +10405,16 @@ const ge = (ut = class extends pn {
10405
10405
  try {
10406
10406
  let s = i ? this.streamManager.screenStreamInfo.previewStream : this.streamManager.cameraStreamInfo.previewStream;
10407
10407
  if (!t)
10408
- throw new V(O.ERR_INVALID_ARGUMENTS, "no video element found", {
10408
+ throw new V(U.ERR_INVALID_ARGUMENTS, "no video element found", {
10409
10409
  videoElement: t
10410
10410
  });
10411
10411
  if (!s) {
10412
- H.info(`[${ut.logName}]`, "preview no stream founded");
10412
+ O.info(`[${ht.logName}]`, "preview no stream founded");
10413
10413
  return;
10414
10414
  }
10415
10415
  return Sn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
10416
10416
  } catch (s) {
10417
- const a = O.ERR_INNER;
10417
+ const a = U.ERR_INNER;
10418
10418
  throw V.fromError(s, a, "preview failed");
10419
10419
  }
10420
10420
  });
@@ -10442,17 +10442,17 @@ const ge = (ut = class extends pn {
10442
10442
  const { videoElement: t, primary: i = !0, screen: s = !0 } = e || {};
10443
10443
  if (!t)
10444
10444
  i && (this.previewElements.forEach((a) => {
10445
- tt(a);
10445
+ it(a);
10446
10446
  }), this.previewElements = []), s && (this.screenPreviewElements.forEach((a) => {
10447
- tt(a);
10447
+ it(a);
10448
10448
  }), this.screenPreviewElements = []);
10449
10449
  else {
10450
10450
  const a = this.previewElements.findIndex((c) => c === t);
10451
10451
  if (a >= 0)
10452
- this.previewElements.splice(a, 1), tt(t);
10452
+ this.previewElements.splice(a, 1), it(t);
10453
10453
  else {
10454
10454
  const c = this.screenPreviewElements.findIndex((o) => o === t);
10455
- c >= 0 && (this.screenPreviewElements.splice(c, 1), tt(t));
10455
+ c >= 0 && (this.screenPreviewElements.splice(c, 1), it(t));
10456
10456
  }
10457
10457
  }
10458
10458
  }
@@ -10467,12 +10467,12 @@ const ge = (ut = class extends pn {
10467
10467
  if (e.video)
10468
10468
  for (let i = 0; i < this.previewElements.length; i++) {
10469
10469
  const s = this.previewElements[i];
10470
- tt(s);
10470
+ it(s);
10471
10471
  }
10472
10472
  else if (e.screen)
10473
10473
  for (let i = 0; i < this.screenPreviewElements.length; i++) {
10474
10474
  const s = this.screenPreviewElements[i];
10475
- tt(s);
10475
+ it(s);
10476
10476
  }
10477
10477
  const t = yield this.streamManager.createLocalStream(e);
10478
10478
  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;
@@ -10480,22 +10480,22 @@ const ge = (ut = class extends pn {
10480
10480
  const i = U0[t.errorCode];
10481
10481
  throw i && (e.audio ? this.emit(
10482
10482
  "localDeviceException",
10483
- ct.AliEngineLocalDeviceTypeMic,
10483
+ ut.AliEngineLocalDeviceTypeMic,
10484
10484
  i,
10485
10485
  ""
10486
10486
  ) : e.video ? this.emit(
10487
10487
  "localDeviceException",
10488
- ct.AliEngineLocalDeviceTypeCamera,
10488
+ ut.AliEngineLocalDeviceTypeCamera,
10489
10489
  i,
10490
10490
  ""
10491
10491
  ) : e.screen ? this.emit(
10492
10492
  "localDeviceException",
10493
- ct.AliEngineLocalDeviceTypeDisplay,
10493
+ ut.AliEngineLocalDeviceTypeDisplay,
10494
10494
  i,
10495
10495
  ""
10496
10496
  ) : this.emit(
10497
10497
  "localDeviceException",
10498
- ct.AliEngineLocalDeviceTypeUnknown,
10498
+ ut.AliEngineLocalDeviceTypeUnknown,
10499
10499
  i,
10500
10500
  ""
10501
10501
  )), t;
@@ -10527,7 +10527,7 @@ const ge = (ut = class extends pn {
10527
10527
  });
10528
10528
  }
10529
10529
  reportAudioProfile() {
10530
- const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t = ce.AudioProfileMap.get(e);
10530
+ const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t = oe.AudioProfileMap.get(e);
10531
10531
  this.slsReporter.reportPublishProfile(k.Audio, {
10532
10532
  a_profile: e,
10533
10533
  bits: (t == null ? void 0 : t.maxBitrate) || 0,
@@ -10536,7 +10536,7 @@ const ge = (ut = class extends pn {
10536
10536
  });
10537
10537
  }
10538
10538
  reportVideoProfile() {
10539
- const e = this.streamManager.cameraStreamInfo.videoProfile || "", t = ce.VideoProfileMap.get(e);
10539
+ const e = this.streamManager.cameraStreamInfo.videoProfile || "", t = oe.VideoProfileMap.get(e);
10540
10540
  t && this.slsReporter.reportPublishProfile(k.VideoLarge, {
10541
10541
  v_profile: e,
10542
10542
  wdth: (t == null ? void 0 : t.width) || 0,
@@ -10546,7 +10546,7 @@ const ge = (ut = class extends pn {
10546
10546
  });
10547
10547
  }
10548
10548
  reportScreenProfile() {
10549
- const e = this.streamManager.screenStreamInfo.videoProfile || "", t = ce.VideoProfileMap.get(e);
10549
+ const e = this.streamManager.screenStreamInfo.videoProfile || "", t = oe.VideoProfileMap.get(e);
10550
10550
  t && this.slsReporter.reportPublishProfile(k.Screen, {
10551
10551
  v_profile: e,
10552
10552
  wdth: (t == null ? void 0 : t.width) || 0,
@@ -10556,13 +10556,13 @@ const ge = (ut = class extends pn {
10556
10556
  });
10557
10557
  }
10558
10558
  startPublish() {
10559
- return w(this, arguments, function* (e = !1, t = rt.MANUAL) {
10559
+ return w(this, arguments, function* (e = !1, t = st.MANUAL) {
10560
10560
  var u;
10561
10561
  if (!this.joined)
10562
10562
  return;
10563
10563
  const i = yield this.streamManager.publishStreams, { audio: s, video: a, videoSmall: c, screen: o } = i;
10564
10564
  if (!s && !a && !c && !o) {
10565
- H.event(`[${ut.logName}]`, "startPublish no stream founded");
10565
+ O.event(`[${ht.logName}]`, "startPublish no stream founded");
10566
10566
  return;
10567
10567
  }
10568
10568
  this.createCallId();
@@ -10573,7 +10573,7 @@ const ge = (ut = class extends pn {
10573
10573
  if (this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = p, (u = this.parameter.data) != null && u.enablePubDataChannel) {
10574
10574
  this.dataPubState.setState(Z.AliRtcStatePublishing);
10575
10575
  const g = yield this.rtsManager.publishAddDataChannel(this.url);
10576
- g ? (this.dc = g, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(Z.AliRtcStatePublished)) : this.emit("publishDataError", new V(O.ERR_INNER, "publishDataError"));
10576
+ g ? (this.dc = g, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(Z.AliRtcStatePublished)) : this.emit("publishDataError", new V(U.ERR_INNER, "publishDataError"));
10577
10577
  }
10578
10578
  s && (this.trackTraceIdMap[k.Audio] = p, this.reportAudioProfile()), c && (this.trackTraceIdMap[k.VideoSmall] = p), a && (this.trackTraceIdMap[k.VideoLarge] = p, this.reportVideoProfile()), o && (this.trackTraceIdMap[k.Screen] = p, this.reportScreenProfile());
10579
10579
  const f = {
@@ -10598,18 +10598,11 @@ const ge = (ut = class extends pn {
10598
10598
  }
10599
10599
  });
10600
10600
  }
10601
- /**
10602
- * 重新执行 progress 并触发 publishupdate
10603
- */
10604
10601
  updateStreams() {
10605
10602
  return w(this, null, function* () {
10606
10603
  yield this.streamManager.updateStreams();
10607
10604
  });
10608
10605
  }
10609
- /**
10610
- * 对比本地流和正在推流,进行推流更新
10611
- * @param isResume 是否是恢复推流
10612
- */
10613
10606
  publishUpdate(e) {
10614
10607
  return w(this, null, function* () {
10615
10608
  var a, c, o, u;
@@ -10640,7 +10633,7 @@ const ge = (ut = class extends pn {
10640
10633
  ({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.Screen
10641
10634
  ), v = yield this.compareAndPublish(S, t.screen, k.Screen);
10642
10635
  if (v && (i = v), !i)
10643
- if (e === rt.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
10636
+ if (e === st.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
10644
10637
  const x = this.rtsManager.publishingTracks.find(({ type: y }) => y === "video"), b = this.rtsManager.publishingTracks.find(({ type: y }) => y === "audio");
10645
10638
  (x || b) && (yield this.rtsManager.waitPublishSender(
10646
10639
  this.url,
@@ -10675,7 +10668,7 @@ const ge = (ut = class extends pn {
10675
10668
  return w(this, null, function* () {
10676
10669
  var o;
10677
10670
  if (!e)
10678
- throw new V(O.ERR_INNER, "sync publish to room server failed because no publishInfo");
10671
+ throw new V(U.ERR_INNER, "sync publish to room server failed because no publishInfo");
10679
10672
  let s = e;
10680
10673
  if (this.dc) {
10681
10674
  const c = e, { tracks: u } = c, h = Ft(c, ["tracks"]);
@@ -10697,7 +10690,7 @@ const ge = (ut = class extends pn {
10697
10690
  }
10698
10691
  refreshPushStreamUrl() {
10699
10692
  return w(this, null, function* () {
10700
- const e = new V(O.ERR_INNER, "refresh push stream url error"), t = this.url;
10693
+ const e = new V(U.ERR_INNER, "refresh push stream url error"), t = this.url;
10701
10694
  if (!t)
10702
10695
  throw e;
10703
10696
  const i = yield this.signalingManager.refreshUrl({
@@ -10733,8 +10726,8 @@ const ge = (ut = class extends pn {
10733
10726
  };
10734
10727
  return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), p;
10735
10728
  } catch (h) {
10736
- let p = O.ERR_SDK_PUBLISH_INVAILD;
10737
- if (a && (this.audioPubState.setState(Z.AliRtcStateNoPublish), p = O.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(Z.AliRtcStateNoPublish), p = O.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), p = O.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(Z.AliRtcStateNoPublish), p = O.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
10729
+ let p = U.ERR_SDK_PUBLISH_INVAILD;
10730
+ if (a && (this.audioPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
10738
10731
  return this.publishAdd(e, t, i, s + 1);
10739
10732
  throw V.fromError(h, p, "publish add failed");
10740
10733
  }
@@ -10761,7 +10754,7 @@ const ge = (ut = class extends pn {
10761
10754
  } catch (i) {
10762
10755
  throw V.fromError(
10763
10756
  i,
10764
- O.ERR_INNER,
10757
+ U.ERR_INNER,
10765
10758
  `publish replace failed, vMsid: ${t == null ? void 0 : t.vMsid} aMsid: ${t == null ? void 0 : t.aMsid}`
10766
10759
  );
10767
10760
  }
@@ -10785,7 +10778,7 @@ const ge = (ut = class extends pn {
10785
10778
  try {
10786
10779
  return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(Z.AliRtcStateNoPublish), e.video && (e.vMsid === k.VideoSmall ? this.videoSmallPubState.setState(Z.AliRtcStateNoPublish) : this.videoPubState.setState(Z.AliRtcStateNoPublish)), e.screen && this.screenPubState.setState(Z.AliRtcStateNoPublish), t.tracks = this.streamTracks, this.reportSelfDeviceStatus(), t;
10787
10780
  } catch (i) {
10788
- throw V.fromError(i, O.ERR_INNER, "publish delete tracks failed");
10781
+ throw V.fromError(i, U.ERR_INNER, "publish delete tracks failed");
10789
10782
  }
10790
10783
  });
10791
10784
  }
@@ -10793,10 +10786,10 @@ const ge = (ut = class extends pn {
10793
10786
  return w(this, null, function* () {
10794
10787
  if (!this._isPublishing)
10795
10788
  throw new V(
10796
- O.ERR_INNER,
10789
+ U.ERR_INNER,
10797
10790
  "publish stop failed, previous localStream is required for publishing stopping"
10798
10791
  );
10799
- H.info(`[${ut.logName}]`, "publishStop", { url: this.url });
10792
+ O.info(`[${ht.logName}]`, "publishStop", { url: this.url });
10800
10793
  const e = (/* @__PURE__ */ new Date()).getTime();
10801
10794
  try {
10802
10795
  const t = this.hasAudioTrackInMS, i = this.hasCameraTrackInMS, s = this.hasCameraDualTrackInMS, a = this.hasScreenTrackInMS;
@@ -10818,7 +10811,7 @@ const ge = (ut = class extends pn {
10818
10811
  };
10819
10812
  return this.syncPublishToRoomServer(c, {}, e), c;
10820
10813
  } catch (t) {
10821
- throw V.fromError(t, O.ERR_INNER, "publish stop failed");
10814
+ throw V.fromError(t, U.ERR_INNER, "publish stop failed");
10822
10815
  }
10823
10816
  });
10824
10817
  }
@@ -10845,7 +10838,7 @@ const ge = (ut = class extends pn {
10845
10838
  }
10846
10839
  return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(Z.AliRtcStateNoPublish), this.dc = void 0), this.slsReporter.reportUnpublish(this.callId || "", e, 0, ""), t;
10847
10840
  } catch (i) {
10848
- throw V.fromError(i, O.ERR_INNER, "unpublish failed");
10841
+ throw V.fromError(i, U.ERR_INNER, "unpublish failed");
10849
10842
  }
10850
10843
  });
10851
10844
  }
@@ -10853,7 +10846,7 @@ const ge = (ut = class extends pn {
10853
10846
  * 事件通知本地的设备使用状态
10854
10847
  */
10855
10848
  reportSelfDeviceStatus() {
10856
- this.emit(Le.Local, this.getDeviceStatus());
10849
+ this.emit(Ne.Local, this.getDeviceStatus());
10857
10850
  }
10858
10851
  /**
10859
10852
  * 从localStream 中获取当前的设备状态
@@ -11004,9 +10997,9 @@ const ge = (ut = class extends pn {
11004
10997
  return w(this, null, function* () {
11005
10998
  var s;
11006
10999
  if (!((s = this.parameter.data) != null && s.enablePubDataChannel))
11007
- throw new V(O.ERR_INNER, "data channel publish is not enabled");
11000
+ throw new V(U.ERR_INNER, "data channel publish is not enabled");
11008
11001
  if (!this.dc)
11009
- throw new V(O.ERR_INNER, "data channel is not ready");
11002
+ throw new V(U.ERR_INNER, "data channel is not ready");
11010
11003
  const t = e.toBuffer(), i = j0(t, 1156);
11011
11004
  i.forEach((a, c) => {
11012
11005
  const o = new Ri(
@@ -11058,7 +11051,7 @@ const ge = (ut = class extends pn {
11058
11051
  }, /**
11059
11052
  * @ignore
11060
11053
  */
11061
- m(ut, "logName", "LocalUser"), ut);
11054
+ m(ht, "logName", "LocalUser"), ht);
11062
11055
  me([
11063
11056
  D()
11064
11057
  ], ge.prototype, "clearPublishState", 1);
@@ -11066,10 +11059,10 @@ me([
11066
11059
  D()
11067
11060
  ], ge.prototype, "clear", 1);
11068
11061
  me([
11069
- D(U)
11062
+ D(H)
11070
11063
  ], ge.prototype, "startDefaultCamera", 1);
11071
11064
  me([
11072
- D(U)
11065
+ D(H)
11073
11066
  ], ge.prototype, "startDefaultAudio", 1);
11074
11067
  me([
11075
11068
  D()
@@ -11099,8 +11092,14 @@ me([
11099
11092
  D()
11100
11093
  ], ge.prototype, "stopLocalStream", 1);
11101
11094
  me([
11102
- D(U)
11095
+ D(H)
11103
11096
  ], ge.prototype, "startPublish", 1);
11097
+ me([
11098
+ D()
11099
+ ], ge.prototype, "updateStreams", 1);
11100
+ me([
11101
+ D(H)
11102
+ ], ge.prototype, "publishUpdate", 1);
11104
11103
  me([
11105
11104
  D(([r]) => [r])
11106
11105
  ], ge.prototype, "syncPublishToRoomServer", 1);
@@ -11114,7 +11113,7 @@ me([
11114
11113
  D(([r, n]) => [JSON.stringify(n)])
11115
11114
  ], ge.prototype, "publishReplace", 1);
11116
11115
  me([
11117
- D(U)
11116
+ D(H)
11118
11117
  ], ge.prototype, "publishDeleteTracks", 1);
11119
11118
  me([
11120
11119
  D()
@@ -11131,7 +11130,7 @@ const $0 = (r) => {
11131
11130
  const n = new MediaStream();
11132
11131
  return n.addTrack(r), n;
11133
11132
  }, bn = (r) => w(void 0, null, function* () {
11134
- return yield ce.createStream({
11133
+ return yield oe.createStream({
11135
11134
  custom: !0,
11136
11135
  mediaStream: r
11137
11136
  });
@@ -11141,7 +11140,7 @@ const $0 = (r) => {
11141
11140
  }), K0 = (r) => {
11142
11141
  const { audio: n, video: e, screen: t } = r;
11143
11142
  if (e && t)
11144
- throw new V(O.ERR_INNER, "create stream error, cannot create video && screen together");
11143
+ throw new V(U.ERR_INNER, "create stream error, cannot create video && screen together");
11145
11144
  return !(!e && !n && !t);
11146
11145
  }, q0 = (r) => r === k.Audio || r === zr.Audio, J0 = (r) => r === k.VideoLarge || r === zr.VideoLarge, G0 = (r) => r === k.VideoSmall, X0 = (r) => r === k.Screen, Y0 = (r) => r === k.Data;
11147
11146
  var Z0 = Object.defineProperty, Q0 = Object.getOwnPropertyDescriptor, ec = (r, n, e, t) => {
@@ -11381,7 +11380,7 @@ class bi extends we {
11381
11380
  updateRemoteUserDeviceStatus(e) {
11382
11381
  let t = gn.parseStatus(e);
11383
11382
  const { audioDisable: i, videoDisable: s, screenDisable: a } = t;
11384
- return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Le.Remote, i ? oe.MuteAudio : oe.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Le.Remote, s ? oe.MuteVideo : oe.UnmuteVideo)), this.userStatus.screenDisable != a && (this.userStatus.screenDisable = a, this.emit(Le.Remote, a ? oe.MuteScreen : oe.UnmuteScreen))) : (this.userStatus = t, this.emit(Le.Remote, i ? oe.MuteAudio : oe.UnmuteAudio), this.emit(Le.Remote, s ? oe.MuteVideo : oe.UnmuteVideo), this.emit(Le.Remote, a ? oe.MuteScreen : oe.UnmuteScreen)), !1;
11383
+ return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Ne.Remote, i ? ce.MuteAudio : ce.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Ne.Remote, s ? ce.MuteVideo : ce.UnmuteVideo)), this.userStatus.screenDisable != a && (this.userStatus.screenDisable = a, this.emit(Ne.Remote, a ? ce.MuteScreen : ce.UnmuteScreen))) : (this.userStatus = t, this.emit(Ne.Remote, i ? ce.MuteAudio : ce.UnmuteAudio), this.emit(Ne.Remote, s ? ce.MuteVideo : ce.UnmuteVideo), this.emit(Ne.Remote, a ? ce.MuteScreen : ce.UnmuteScreen)), !1;
11385
11384
  }
11386
11385
  }
11387
11386
  /**
@@ -11469,8 +11468,8 @@ class Ut extends we {
11469
11468
  }
11470
11469
  }
11471
11470
  const sc = 30;
11472
- var ht;
11473
- const _e = (ht = class extends pn {
11471
+ var Te;
11472
+ const _e = (Te = class extends pn {
11474
11473
  constructor(e) {
11475
11474
  var f;
11476
11475
  const {
@@ -11553,27 +11552,27 @@ const _e = (ht = class extends pn {
11553
11552
  this.dcMsgWaitingPieces = [], i || (i = Wt.parse(t.body));
11554
11553
  } else
11555
11554
  i = Wt.parse(t.body);
11556
- i || H.event(
11557
- `[${ht.logName}]`,
11555
+ i || O.event(
11556
+ `[${Te.logName}]`,
11558
11557
  `parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`
11559
11558
  );
11560
11559
  } else {
11561
11560
  t.header.frameType === 1 && (this.dcMsgWaitingPieces = []), this.dcMsgWaitingPieces.push(t.body);
11562
11561
  return;
11563
11562
  }
11564
- i && (H.event(
11565
- `[${ht.logName}]`,
11563
+ i && (O.event(
11564
+ `[${Te.logName}]`,
11566
11565
  `receive data channel message, length: ${(s = i.data) == null ? void 0 : s.byteLength}`
11567
11566
  ), this.emit("remoteDataChannelMessage", this.uid, i));
11568
11567
  });
11569
11568
  m(this, "onDataChannelError", (e) => {
11570
- this.emit("occurError", V.fromError(e, O.ERR_SDK_SUBSCRIBE_DATA_ERROR));
11569
+ this.emit("occurError", V.fromError(e, U.ERR_SDK_SUBSCRIBE_DATA_ERROR));
11571
11570
  });
11572
11571
  m(this, "handleAudioPaused", () => {
11573
11572
  this.emit("remoteAudioPlayError", this.uid, "paused");
11574
11573
  });
11575
- this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Le.Remote, (g) => {
11576
- this.emit(Le.Remote, g, this.userId);
11574
+ this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Ne.Remote, (g) => {
11575
+ this.emit(Ne.Remote, g, this.userId);
11577
11576
  }), this.signalingManager = o, this.viewMap = (f = a[t]) != null ? f : { cameraViews: [], screenViews: [] }, a[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new Ut(), this.audioSubState.on("change", (g, l, S) => {
11578
11577
  this.emit("audioSubscribeStateChanged", this.uid, g, l, S);
11579
11578
  }), this.videoSubState = new Ut(), this.videoSubState.on("change", (g, l, S) => {
@@ -11699,17 +11698,17 @@ const _e = (ht = class extends pn {
11699
11698
  setViewConfig(e, t) {
11700
11699
  if (t !== se.AliRtcVideoTrackScreen && t !== se.AliRtcVideoTrackCamera)
11701
11700
  throw new V(
11702
- O.ERR_INVALID_ARGUMENTS,
11701
+ U.ERR_INVALID_ARGUMENTS,
11703
11702
  "track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
11704
11703
  );
11705
11704
  e ? Fr(e).forEach((s) => {
11706
- s.setAttribute("playsinline", ""), ce.BrowserUtil.isMicroMessenger && (s.setAttribute("x5-video-player-type", "h5-page"), s.setAttribute("x5-playsinline", ""), ce.SystenUtil.isAndroid || ce.SystenUtil.isIos && s.setAttribute("x-webkit-airplay", "allow")), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(s) : this.viewMap.cameraViews.push(s), this.play(s, t === se.AliRtcVideoTrackScreen);
11705
+ s.setAttribute("playsinline", ""), oe.BrowserUtil.isMicroMessenger && (s.setAttribute("x5-video-player-type", "h5-page"), s.setAttribute("x5-playsinline", ""), oe.SystenUtil.isAndroid || oe.SystenUtil.isIos && s.setAttribute("x-webkit-airplay", "allow")), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(s) : this.viewMap.cameraViews.push(s), this.play(s, t === se.AliRtcVideoTrackScreen);
11707
11706
  }) : (this.stopPlayAll(t === se.AliRtcVideoTrackScreen), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews = [] : this.viewMap.cameraViews = []);
11708
11707
  }
11709
11708
  clear(e = !0) {
11710
11709
  return w(this, null, function* () {
11711
11710
  var t;
11712
- this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Pi(ht.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, zt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Le.Remote);
11711
+ this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Pi(Te.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, zt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Ne.Remote);
11713
11712
  });
11714
11713
  }
11715
11714
  updateRemoteUserDeviceStatus(e) {
@@ -11792,8 +11791,8 @@ const _e = (ht = class extends pn {
11792
11791
  } catch (p) {
11793
11792
  const d = (/* @__PURE__ */ new Date()).getTime() - s;
11794
11793
  e.audio && this.audioSubState.setState(de.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(de.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(de.AliRtcStateNoSubscribe), p && (p.message = `user(${this.uid}) subscribe error, ${(p == null ? void 0 : p.message) || ""}`);
11795
- let f = O.ERR_INNER;
11796
- e.audio && (f = O.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === k.VideoSmall ? f = O.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : f = O.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (f = O.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
11794
+ let f = U.ERR_INNER;
11795
+ e.audio && (f = U.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === k.VideoSmall ? f = U.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : f = U.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (f = U.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
11797
11796
  ((h = this.localUser) == null ? void 0 : h.callId) || "",
11798
11797
  this.callId,
11799
11798
  !!e.video && e.vMsid === k.VideoLarge,
@@ -11853,7 +11852,7 @@ const _e = (ht = class extends pn {
11853
11852
  vMsid: e.vMsid
11854
11853
  }), o;
11855
11854
  } catch (t) {
11856
- throw V.fromError(t, O.ERR_INNER, "subscribe delete failed");
11855
+ throw V.fromError(t, U.ERR_INNER, "subscribe delete failed");
11857
11856
  }
11858
11857
  });
11859
11858
  }
@@ -11915,7 +11914,7 @@ const _e = (ht = class extends pn {
11915
11914
  return this.callId = "", u;
11916
11915
  } catch (u) {
11917
11916
  if (((o = (c = (a = (s = u == null ? void 0 : u.extraInfo) == null ? void 0 : s.parsedData) == null ? void 0 : a.streams) == null ? void 0 : c[0]) == null ? void 0 : o.res_code) !== 404)
11918
- throw V.fromError(u, O.ERR_INNER, "subscribe stop failed");
11917
+ throw V.fromError(u, U.ERR_INNER, "subscribe stop failed");
11919
11918
  }
11920
11919
  });
11921
11920
  }
@@ -11926,7 +11925,7 @@ const _e = (ht = class extends pn {
11926
11925
  if (e.mediaStream) {
11927
11926
  a = document.createElement("video");
11928
11927
  const c = () => {
11929
- H.event(`uid: ${this.userId} new mediaStream canplay`), a && a.removeEventListener("canplaythrough", c, !1), a = void 0, clearTimeout(s), i(!0);
11928
+ O.event(`uid: ${this.userId} new mediaStream canplay`), a && a.removeEventListener("canplaythrough", c, !1), a = void 0, clearTimeout(s), i(!0);
11930
11929
  };
11931
11930
  a.addEventListener("canplaythrough", c, !1), (a._playPromise || Promise.resolve()).then(() => {
11932
11931
  a && e.mediaStream && (a.srcObject = e.mediaStream);
@@ -11934,7 +11933,7 @@ const _e = (ht = class extends pn {
11934
11933
  } else
11935
11934
  i(!0);
11936
11935
  s = window.setTimeout(() => {
11937
- H.event(`uid: ${this.userId} new mediaStream timeout`), a = void 0, i(!0);
11936
+ O.event(`uid: ${this.userId} new mediaStream timeout`), a = void 0, i(!0);
11938
11937
  }, 3e3);
11939
11938
  }), this.updateSubscribe(le.User)), this.stream = e, this.playAll(!1, t), !this.subscribed && e && (this.subscribed = !0), e.hasAudio && this.isAudioSubscribing && e.enableAudio(), e.hasVideo && this.isVideoSubscribing && e.enableVideo();
11940
11939
  });
@@ -11965,7 +11964,7 @@ const _e = (ht = class extends pn {
11965
11964
  } else
11966
11965
  throw new Error("no dc founded");
11967
11966
  }).catch((e) => {
11968
- const t = V.fromError(e, O.ERR_INNER, "subscribe data failed");
11967
+ const t = V.fromError(e, U.ERR_INNER, "subscribe data failed");
11969
11968
  this.emit("remoteSubscribeError", t), this.dataSubState.setState(de.AliRtcStateNoSubscribe);
11970
11969
  }));
11971
11970
  }
@@ -12010,7 +12009,7 @@ const _e = (ht = class extends pn {
12010
12009
  var a, c, o, u, h, p, d, f, g, l, S, v, x, b, y, E, I;
12011
12010
  const t = Date.now(), i = {}, s = {};
12012
12011
  if (this.wantSubAudio && !this.isAudioSubscribing && ((a = this.streamInfo) != null && a.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || k.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || k.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((p = this.streamInfo) != null && p.hasVideoSmall) ? (i.video = !0, i.vMsid = k.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || k.VideoLarge), this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = k.VideoLarge) : this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = k.VideoSmall)) : (!this.wantSubVideo || !((g = this.streamInfo) != null && g.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? k.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || k.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((S = this.streamInfo) != null && S.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (x = this.parameter.data) != null && x.enableSubDataChannel && !this.isDataSubscribing && ((b = this.streamInfo) != null && b.hasData) ? i.data = !0 : (!((y = this.parameter.data) != null && y.enableSubDataChannel) || !((E = this.streamInfo) != null && E.hasData)) && this.isDataSubscribing && (s.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (s.audio || s.video || s.screen) && this.subscribeDeleteTracks(s), e === le.Reconnect) {
12013
- if (H.event(`[${ht.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12012
+ if (O.event(`[${Te.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12014
12013
  const A = this.rtsManager.getStreamByMsid({
12015
12014
  url: this.streamUrl,
12016
12015
  aMsid: this.streamInfo.getAudioInfo().msid || k.Audio
@@ -12038,7 +12037,7 @@ const _e = (ht = class extends pn {
12038
12037
  };
12039
12038
  }
12040
12039
  handleAutoPlayFailed() {
12041
- this.emit("remoteAudioAutoPlayFail", this.uid);
12040
+ O.event(`[${Te.logName}]`, "auto play failed"), this.emit("remoteAudioAutoPlayFail", this.uid);
12042
12041
  const e = () => {
12043
12042
  this.resumeAudio().then(() => {
12044
12043
  document.removeEventListener("click", e, !1), document.removeEventListener("touchstart", e, !1);
@@ -12058,26 +12057,45 @@ const _e = (ht = class extends pn {
12058
12057
  playAudio() {
12059
12058
  return w(this, null, function* () {
12060
12059
  var e, t;
12061
- if (this.audioTrack) {
12062
- 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) {
12063
- let i = this.audioElement.srcObject;
12064
- i ? i.getAudioTracks().forEach((s) => {
12065
- i.removeTrack(s);
12066
- }) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
12067
- }
12068
- if (ce.SystenUtil.isIos && parseInt(ce.SystenUtil.systemVersion) <= 13) {
12069
- const i = this.audioElement;
12070
- i.setAttribute("autoplay", "");
12071
- const s = () => {
12072
- i.removeEventListener("playing", s), i.pause(), i.play().catch(() => {
12073
- this.handleAutoPlayFailed();
12074
- });
12075
- };
12076
- this.audioElement.addEventListener("playing", s);
12077
- } else
12078
- this.audioElement.play().catch(() => {
12060
+ if (!this.audioTrack) {
12061
+ O.event(`[${Te.logName}]`, this.userId, "audio track is null");
12062
+ return;
12063
+ }
12064
+ if (this.toggleAudio(!this.audioMuted), this.audioElement || (O.event(`[${Te.logName}]`, this.userId, "create audio element"), 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) {
12065
+ let i = this.audioElement.srcObject;
12066
+ i ? i.getAudioTracks().forEach((s) => {
12067
+ i.removeTrack(s);
12068
+ }) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
12069
+ }
12070
+ if (!oe.BrowserUtil.isMicroMessenger && oe.SystenUtil.isIos && parseInt(oe.SystenUtil.systemVersion) <= 13) {
12071
+ O.event(`[${Te.logName}]`, "play audio for iOS 13-");
12072
+ const i = this.audioElement;
12073
+ i.setAttribute("autoplay", "");
12074
+ const s = () => {
12075
+ i.removeEventListener("playing", s), i.pause(), i.play().catch(() => {
12076
+ this.handleAutoPlayFailed();
12077
+ });
12078
+ };
12079
+ this.audioElement.addEventListener("playing", s);
12080
+ } else {
12081
+ const i = () => {
12082
+ var s;
12083
+ O.event(`[${Te.logName}]`, "try play audio"), (s = this.audioElement) == null || s.play().catch(() => {
12079
12084
  this.handleAutoPlayFailed();
12080
12085
  });
12086
+ };
12087
+ if (oe.BrowserUtil.isMicroMessenger) {
12088
+ O.event(`[${Te.logName}]`, "play audio for WeChat");
12089
+ const s = window.top !== window.self, a = window.WeixinJSBridge || window.top.WeixinJSBridge;
12090
+ a ? a.invoke("getNetworkType", {}, () => {
12091
+ i();
12092
+ }) : (s ? window.top.document : document).addEventListener("WeixinJSBridgeReady", () => {
12093
+ a.invoke("getNetworkType", {}, () => {
12094
+ i();
12095
+ });
12096
+ });
12097
+ } else
12098
+ O.event(`[${Te.logName}]`, "play audio for browsers except WeChat"), i();
12081
12099
  }
12082
12100
  });
12083
12101
  }
@@ -12102,9 +12120,9 @@ const _e = (ht = class extends pn {
12102
12120
  }
12103
12121
  stopPlayAll(e = !1) {
12104
12122
  e ? this.viewMap.screenViews.forEach((t) => {
12105
- tt(t);
12123
+ it(t);
12106
12124
  }) : this.viewMap.cameraViews.forEach((t) => {
12107
- tt(t);
12125
+ it(t);
12108
12126
  });
12109
12127
  }
12110
12128
  /**
@@ -12244,7 +12262,7 @@ const _e = (ht = class extends pn {
12244
12262
  }, /**
12245
12263
  * @ignore
12246
12264
  */
12247
- m(ht, "logName", "RemoteUser"), ht);
12265
+ m(Te, "logName", "RemoteUser"), Te);
12248
12266
  De([
12249
12267
  D()
12250
12268
  ], _e.prototype, "clear", 1);
@@ -12255,25 +12273,25 @@ De([
12255
12273
  D()
12256
12274
  ], _e.prototype, "updateRemoteTracks", 1);
12257
12275
  De([
12258
- D(U)
12276
+ D(H)
12259
12277
  ], _e.prototype, "subscribe", 1);
12260
12278
  De([
12261
12279
  D()
12262
12280
  ], _e.prototype, "subscribeProxy", 1);
12263
12281
  De([
12264
- D(U)
12282
+ D(H)
12265
12283
  ], _e.prototype, "subscribeDeleteProxy", 1);
12266
12284
  De([
12267
12285
  D()
12268
12286
  ], _e.prototype, "restore", 1);
12269
12287
  De([
12270
- D(U)
12288
+ D(H)
12271
12289
  ], _e.prototype, "resumeAudio", 1);
12272
12290
  De([
12273
- D(U)
12291
+ D(H)
12274
12292
  ], _e.prototype, "stopSubscribe", 1);
12275
12293
  De([
12276
- D(U)
12294
+ D(H)
12277
12295
  ], _e.prototype, "doStopSubscribe", 1);
12278
12296
  De([
12279
12297
  D()
@@ -12342,8 +12360,8 @@ const wi = ([r]) => {
12342
12360
  const { remoteUser: n, options: e } = r;
12343
12361
  return [`user(${n.userId})`, e];
12344
12362
  }, za = 5;
12345
- var Me;
12346
- const xe = (Me = class extends we {
12363
+ var Le;
12364
+ const xe = (Le = class extends we {
12347
12365
  constructor(e, t, i, s, a) {
12348
12366
  super();
12349
12367
  m(this, "rts");
@@ -12365,16 +12383,16 @@ const xe = (Me = class extends we {
12365
12383
  m(this, "dcConnectingPromise");
12366
12384
  m(this, "_publishingTracks", []);
12367
12385
  m(this, "parameter", {});
12368
- this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = s, this.parameter = a, this.rts = ce.createClient(), this.addRTSListener();
12386
+ this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = s, this.parameter = a, this.rts = oe.createClient(), this.addRTSListener();
12369
12387
  }
12370
12388
  addRTSListener() {
12371
12389
  this.rts.on("connectStatusChange", (e) => {
12372
12390
  var t, i, s, a;
12373
- if (H.event(`[${Me.logName}]`, "rts connectStatusChange to:", e.status), e.status === ps.CONNECT_STATUS_DISCONNECTED)
12391
+ if (O.event(`[${Le.logName}]`, "rts connectStatusChange to:", e.status), e.status === ps.CONNECT_STATUS_DISCONNECTED)
12374
12392
  this.setConnected(!1), this.slsReporter.reportWarning("rts disconnected"), this.emit("disconnected");
12375
12393
  else if (e.status === ps.CONNECT_STATUS_CONNECTED) {
12376
12394
  const c = (a = (s = (i = (t = this.rts.commonController) == null ? void 0 : t.peerCore) == null ? void 0 : i.getSignal()) == null ? void 0 : s.getDatachannelCore()) == null ? void 0 : a.readyState;
12377
- H.event(`[${Me.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList());
12395
+ O.event(`[${Le.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList());
12378
12396
  try {
12379
12397
  this.emit("connected", this._rtsReconnecting, this._rtsPeerConnectionType);
12380
12398
  } catch (o) {
@@ -12382,7 +12400,7 @@ const xe = (Me = class extends we {
12382
12400
  this.setConnected(!0);
12383
12401
  }
12384
12402
  }), this.rts.on("datachannelStatusChange", (e) => {
12385
- H.event(`[${Me.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === gs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === gs.DATACHANNEL_STATUS_CLOSE && (this.dcConnectingPromise = new Promise((t) => {
12403
+ O.event(`[${Le.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === gs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === gs.DATACHANNEL_STATUS_CLOSE && (this.dcConnectingPromise = new Promise((t) => {
12386
12404
  this.dcResolve = t;
12387
12405
  }));
12388
12406
  }), this.rts.on("receivedSEI", (e) => {
@@ -12428,7 +12446,7 @@ const xe = (Me = class extends we {
12428
12446
  this.rts.unpublish();
12429
12447
  } catch (e) {
12430
12448
  }
12431
- this.rts = ce.createClient(), this.addRTSListener();
12449
+ this.rts = oe.createClient(), this.addRTSListener();
12432
12450
  }
12433
12451
  startConnect() {
12434
12452
  this.connecting = !0, this.connectingPromise = new Promise((e) => {
@@ -12467,12 +12485,12 @@ const xe = (Me = class extends we {
12467
12485
  })));
12468
12486
  }
12469
12487
  httpPublish(a, c) {
12470
- return w(this, arguments, function* (e, t, i = !1, s = rt.MANUAL) {
12488
+ return w(this, arguments, function* (e, t, i = !1, s = st.MANUAL) {
12471
12489
  var x, b;
12472
12490
  let o;
12473
12491
  const { publishStream: u, videoSmallStream: h, screenStream: p, vMsid: d } = yield this.localStreamManager.createHTTPPublishStream();
12474
12492
  if (!u)
12475
- return H.warn(`[${Me.logName}]`, "publishStream is null"), {
12493
+ return O.warn(`[${Le.logName}]`, "publishStream is null"), {
12476
12494
  traceId: "",
12477
12495
  l1ip: o
12478
12496
  };
@@ -12516,7 +12534,7 @@ const xe = (Me = class extends we {
12516
12534
  v
12517
12535
  ), V.fromRtsError(y);
12518
12536
  }
12519
- H.event(`[${Me.logName}]`, "rts publish success", S), this.slsReporter.reportPublish(
12537
+ O.event(`[${Le.logName}]`, "rts publish success", S), this.slsReporter.reportPublish(
12520
12538
  i,
12521
12539
  e,
12522
12540
  t,
@@ -12588,19 +12606,19 @@ const xe = (Me = class extends we {
12588
12606
  });
12589
12607
  }
12590
12608
  publishAdd(u, h, p, d) {
12591
- return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = rt.MANUAL) {
12609
+ return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = st.MANUAL) {
12592
12610
  var l, S, v, x, b, y, E, I;
12593
12611
  const f = Date.now(), g = this.getPubMsid(t, s);
12594
12612
  try {
12595
12613
  const A = yield Oa(
12596
12614
  (C) => w(this, null, function* () {
12597
- return C > 0 && H.event(`[${Me.logName}]`, `publishAdd retry times: ${C}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
12615
+ return C > 0 && O.event(`[${Le.logName}]`, `publishAdd retry times: ${C}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
12598
12616
  Y({
12599
12617
  url: e,
12600
12618
  stream: t,
12601
12619
  updateSourceStream: !1
12602
12620
  }, g)
12603
- ])) : Promise.reject(new V(O.ERR_INNER, "rts not connected"));
12621
+ ])) : Promise.reject(new V(U.ERR_INNER, "rts not connected"));
12604
12622
  }),
12605
12623
  za,
12606
12624
  0,
@@ -12657,7 +12675,7 @@ const xe = (Me = class extends we {
12657
12675
  const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === k.Audio)) == null ? void 0 : h.msid, s = (d = (p = this.publishingTracks) == null ? void 0 : p.find(({ msid: v }) => v === k.VideoLarge)) == null ? void 0 : d.msid, a = (g = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === k.Screen)) == null ? void 0 : g.msid, c = [];
12658
12676
  t.screen && a ? c.push(a) : t.video && c.push(t.vMsid || s);
12659
12677
  const o = [];
12660
- t.audio && i && o.push(i), H.event(Me.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
12678
+ t.audio && i && o.push(i), O.event(Le.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
12661
12679
  try {
12662
12680
  const [v] = (yield this.rts.publishDeleteTracks([
12663
12681
  {
@@ -12666,7 +12684,7 @@ const xe = (Me = class extends we {
12666
12684
  vMsid: c
12667
12685
  }
12668
12686
  ])) || [];
12669
- return H.event(Me.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((S = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : S.trackId) || "";
12687
+ return O.event(Le.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((S = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : S.trackId) || "";
12670
12688
  } catch (v) {
12671
12689
  throw V.fromRtsError(v);
12672
12690
  }
@@ -12803,7 +12821,7 @@ const xe = (Me = class extends we {
12803
12821
  try {
12804
12822
  return (yield Oa(
12805
12823
  (p) => w(this, null, function* () {
12806
- return yield this.dcConnectingPromise, p > 0 && H.event(`[${Me.logName}]`, `subscribeAdd retry times: ${p}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12824
+ return yield this.dcConnectingPromise, p > 0 && O.event(`[${Le.logName}]`, `subscribeAdd retry times: ${p}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12807
12825
  }),
12808
12826
  za,
12809
12827
  0,
@@ -12883,7 +12901,7 @@ const xe = (Me = class extends we {
12883
12901
  });
12884
12902
  }
12885
12903
  publish(a, c) {
12886
- return w(this, arguments, function* (e, t, i = !1, s = rt.MANUAL) {
12904
+ return w(this, arguments, function* (e, t, i = !1, s = st.MANUAL) {
12887
12905
  let o = "", u;
12888
12906
  if (this.connecting && (yield this.connectingPromise), this.connected) {
12889
12907
  yield this.dcConnectingPromise;
@@ -12939,7 +12957,7 @@ const xe = (Me = class extends we {
12939
12957
  const { options: o, remoteUser: u } = e;
12940
12958
  if (o.video && o.screen)
12941
12959
  throw new V(
12942
- O.ERR_INNER,
12960
+ U.ERR_INNER,
12943
12961
  "subscribe error, video and screen cannot be subscribed at the same time"
12944
12962
  );
12945
12963
  this.connecting && (yield this.connectingPromise);
@@ -12963,7 +12981,7 @@ const xe = (Me = class extends we {
12963
12981
  if (_.packetsReceived > 0 && (v = Date.now()), _.framesDecoded > 0)
12964
12982
  x = Date.now();
12965
12983
  else
12966
- return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : (H.error(`[${Me.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
12984
+ return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : (O.error(`[${Le.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
12967
12985
  return !0;
12968
12986
  })), Promise.resolve(L);
12969
12987
  };
@@ -13047,36 +13065,36 @@ const xe = (Me = class extends we {
13047
13065
  }, /**
13048
13066
  * @ignore
13049
13067
  */
13050
- m(Me, "logName", "RtsManager"), Me);
13068
+ m(Le, "logName", "RtsManager"), Le);
13051
13069
  be([
13052
- D(U)
13070
+ D(H)
13053
13071
  ], xe.prototype, "startConnect", 1);
13054
13072
  be([
13055
13073
  D()
13056
13074
  ], xe.prototype, "updatePublishingTracks", 1);
13057
13075
  be([
13058
- D(U, U)
13076
+ D(H, H)
13059
13077
  ], xe.prototype, "httpPublish", 1);
13060
13078
  be([
13061
- D(U, U)
13079
+ D(H, H)
13062
13080
  ], xe.prototype, "waitPublishSender", 1);
13063
13081
  be([
13064
- D(([r, n, e]) => [r, JSON.stringify(e)], U)
13082
+ D(([r, n, e]) => [r, JSON.stringify(e)], H)
13065
13083
  ], xe.prototype, "publishAdd", 1);
13066
13084
  be([
13067
- D(U, U)
13085
+ D(H, H)
13068
13086
  ], xe.prototype, "publishDelete", 1);
13069
13087
  be([
13070
13088
  D(([r, n, e]) => [r, JSON.stringify(e)])
13071
13089
  ], xe.prototype, "publishReplace", 1);
13072
13090
  be([
13073
- D(U)
13091
+ D(H)
13074
13092
  ], xe.prototype, "publishStop", 1);
13075
13093
  be([
13076
- D(U)
13094
+ D(H)
13077
13095
  ], xe.prototype, "publishAddDataChannel", 1);
13078
13096
  be([
13079
- D(U)
13097
+ D(H)
13080
13098
  ], xe.prototype, "publishStopDataChannel", 1);
13081
13099
  be([
13082
13100
  D()
@@ -13091,16 +13109,16 @@ be([
13091
13109
  D(wi)
13092
13110
  ], xe.prototype, "subscibeDelete", 1);
13093
13111
  be([
13094
- D(U)
13112
+ D(H)
13095
13113
  ], xe.prototype, "subscibeStop", 1);
13096
13114
  be([
13097
- D(U)
13115
+ D(H)
13098
13116
  ], xe.prototype, "subscribeAddDataChannel", 1);
13099
13117
  be([
13100
- D(U)
13118
+ D(H)
13101
13119
  ], xe.prototype, "subscribeStopDatachannel", 1);
13102
13120
  be([
13103
- D(U)
13121
+ D(H)
13104
13122
  ], xe.prototype, "publish", 1);
13105
13123
  be([
13106
13124
  D(wi)
@@ -13362,12 +13380,12 @@ class Wa extends we {
13362
13380
  return t > -1 ? (e.clear(this), this.plugins.splice(t, 1), !0) : !1;
13363
13381
  }
13364
13382
  }
13365
- var hc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, et = (r, n, e, t) => {
13383
+ var hc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, tt = (r, n, e, t) => {
13366
13384
  for (var i = t > 1 ? void 0 : t ? dc(n, e) : n, s = r.length - 1, a; s >= 0; s--)
13367
13385
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
13368
13386
  return t && i && hc(n, e, i), i;
13369
13387
  }, Bt;
13370
- const Ge = (Bt = class extends we {
13388
+ const Xe = (Bt = class extends we {
13371
13389
  // 设置是否发布屏幕流
13372
13390
  constructor(e, t) {
13373
13391
  super();
@@ -13390,7 +13408,7 @@ const Ge = (Bt = class extends we {
13390
13408
  m(this, "_publishLocalScreenStreamEnabled", !0);
13391
13409
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13392
13410
  const i = (s) => w(this, null, function* () {
13393
- if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.5")) {
13411
+ if (O.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.6-beta.1")) {
13394
13412
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13395
13413
  return;
13396
13414
  }
@@ -13481,7 +13499,7 @@ const Ge = (Bt = class extends we {
13481
13499
  var e, t, i, s;
13482
13500
  if ((e = this.cameraStreamInfo.cameraVideoConstraints) != null && e.deviceId) {
13483
13501
  let a = (t = this.cameraStreamInfo.cameraVideoConstraints) == null ? void 0 : t.deviceId;
13484
- const c = yield ce.getCameraList();
13502
+ const c = yield oe.getCameraList();
13485
13503
  c.find((o) => o.deviceId === a) || (a = (s = (i = c.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? s : ""), this.cameraStreamInfo.cameraVideoConstraints.deviceId = a;
13486
13504
  }
13487
13505
  });
@@ -13492,7 +13510,7 @@ const Ge = (Bt = class extends we {
13492
13510
  var e, t, i, s;
13493
13511
  if ((e = this.cameraStreamInfo.micAudioConstraints) != null && e.deviceId) {
13494
13512
  let a = (t = this.cameraStreamInfo.micAudioConstraints) == null ? void 0 : t.deviceId;
13495
- const c = yield ce.getMicList();
13513
+ const c = yield oe.getMicList();
13496
13514
  c.find((o) => o.deviceId === a) || (a = (s = (i = c.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? s : ""), this.cameraStreamInfo.micAudioConstraints.deviceId = a;
13497
13515
  }
13498
13516
  });
@@ -13508,7 +13526,7 @@ const Ge = (Bt = class extends we {
13508
13526
  i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c = Y({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof c == "object" && (yield this.setAvailableCameraDeviceId(), c = Y(Y({}, c), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = Y({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = Y(Y({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
13509
13527
  const d = Date.now();
13510
13528
  try {
13511
- h = yield ce.createStream({
13529
+ h = yield oe.createStream({
13512
13530
  audio: o,
13513
13531
  video: c,
13514
13532
  screen: t,
@@ -13526,7 +13544,7 @@ const Ge = (Bt = class extends we {
13526
13544
  f && (yield h.setAudioProfile(f));
13527
13545
  }
13528
13546
  }
13529
- return ce.SystenUtil.isIos && ce.SystenUtil.compareVersion("15.1") && !ce.SystenUtil.compareVersion("15.2") && (yield vt(1e3)), yield this.updateStreams(), h;
13547
+ return oe.SystenUtil.isIos && oe.SystenUtil.compareVersion("15.1") && !oe.SystenUtil.compareVersion("15.2") && (yield vt(1e3)), yield this.updateStreams(), h;
13530
13548
  });
13531
13549
  }
13532
13550
  stopLocalStream(e) {
@@ -13556,7 +13574,7 @@ const Ge = (Bt = class extends we {
13556
13574
  const c = yield this.publishStreams;
13557
13575
  try {
13558
13576
  if (!c.audio && !c.video && !c.videoSmall && !c.screen)
13559
- throw H.error(`[${Bt.logName}]`, "no tracks founded"), new V(O.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13577
+ throw O.error(`[${Bt.logName}]`, "no tracks founded"), new V(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13560
13578
  const d = new MediaStream();
13561
13579
  (o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, a = c.screen) : (h = c.screen) != null && h.videoTrack && (i = k.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield bn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
13562
13580
  } catch (d) {
@@ -13601,7 +13619,7 @@ const Ge = (Bt = class extends we {
13601
13619
  * @ignore
13602
13620
  */
13603
13621
  m(Bt, "logName", "LocalStreamManager"), Bt);
13604
- et([
13622
+ tt([
13605
13623
  D(([r]) => {
13606
13624
  const { audio: n, video: e, screen: t, custom: i, skipProfile: s, videoProfile: a, screenProfile: c } = r;
13607
13625
  return [
@@ -13616,38 +13634,38 @@ et([
13616
13634
  }
13617
13635
  ];
13618
13636
  })
13619
- ], Ge.prototype, "createLocalStream", 1);
13620
- et([
13621
- D(U)
13622
- ], Ge.prototype, "stopLocalStream", 1);
13623
- et([
13637
+ ], Xe.prototype, "createLocalStream", 1);
13638
+ tt([
13639
+ D(H)
13640
+ ], Xe.prototype, "stopLocalStream", 1);
13641
+ tt([
13624
13642
  D()
13625
- ], Ge.prototype, "createHTTPPublishStream", 1);
13626
- et([
13643
+ ], Xe.prototype, "createHTTPPublishStream", 1);
13644
+ tt([
13627
13645
  D()
13628
- ], Ge.prototype, "stop", 1);
13629
- et([
13630
- D(U)
13631
- ], Ge.prototype, "setVideoProfile", 1);
13632
- et([
13633
- D(U)
13634
- ], Ge.prototype, "setVideoContentHint", 1);
13635
- et([
13636
- D(U)
13637
- ], Ge.prototype, "setAudioProfile", 1);
13638
- et([
13639
- D(U)
13640
- ], Ge.prototype, "setScreenProfile", 1);
13641
- et([
13642
- D(U)
13643
- ], Ge.prototype, "setScreenContentHint", 1);
13644
- et([
13645
- D(U)
13646
- ], Ge.prototype, "setCameraVideoConstraints", 1);
13647
- et([
13648
- D(U)
13649
- ], Ge.prototype, "setMicAudioConstraints", 1);
13650
- let lc = Ge;
13646
+ ], Xe.prototype, "stop", 1);
13647
+ tt([
13648
+ D(H)
13649
+ ], Xe.prototype, "setVideoProfile", 1);
13650
+ tt([
13651
+ D(H)
13652
+ ], Xe.prototype, "setVideoContentHint", 1);
13653
+ tt([
13654
+ D(H)
13655
+ ], Xe.prototype, "setAudioProfile", 1);
13656
+ tt([
13657
+ D(H)
13658
+ ], Xe.prototype, "setScreenProfile", 1);
13659
+ tt([
13660
+ D(H)
13661
+ ], Xe.prototype, "setScreenContentHint", 1);
13662
+ tt([
13663
+ D(H)
13664
+ ], Xe.prototype, "setCameraVideoConstraints", 1);
13665
+ tt([
13666
+ D(H)
13667
+ ], Xe.prototype, "setMicAudioConstraints", 1);
13668
+ let lc = Xe;
13651
13669
  class fc extends Kt {
13652
13670
  constructor() {
13653
13671
  super("AliRtcScreenStandardize", Ee.AliRtcSdkStreamTypeScreen);
@@ -14311,12 +14329,12 @@ class Ic extends Kt {
14311
14329
  super.clear(e), this.hasVideoTrack = !1, e == null || e.updateDualVideoTrack();
14312
14330
  }
14313
14331
  }
14314
- var Rc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, He = (r, n, e, t) => {
14332
+ var Rc = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, je = (r, n, e, t) => {
14315
14333
  for (var i = t > 1 ? void 0 : t ? wc(n, e) : n, s = r.length - 1, a; s >= 0; s--)
14316
14334
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
14317
14335
  return t && i && Rc(n, e, i), i;
14318
14336
  };
14319
- class Te extends we {
14337
+ class Pe extends we {
14320
14338
  constructor(e) {
14321
14339
  super();
14322
14340
  m(this, "self");
@@ -14379,7 +14397,7 @@ class Te extends we {
14379
14397
  }
14380
14398
  addSignalingManagerListener() {
14381
14399
  this.signalingManager.on("onNotifyPublish", (e) => {
14382
- H.event("[Signaling] Notify Publish ", e), e.forEach((t) => {
14400
+ O.event("[Signaling] Notify Publish ", e), e.forEach((t) => {
14383
14401
  this.onRemotePublishStateChange(t);
14384
14402
  });
14385
14403
  }), this.signalingManager.stsManager.on("onTokenUpdate", (e, t) => {
@@ -14602,7 +14620,7 @@ class Te extends we {
14602
14620
  playoutVolume: this.playoutVolume,
14603
14621
  parameter: this.parameter
14604
14622
  });
14605
- return s.on(Le.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(oe.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(oe.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (a, c, o, u) => {
14623
+ return s.on(Ne.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(ce.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(ce.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (a, c, o, u) => {
14606
14624
  this.emit("audioSubscribeStateChanged", a, c, o, u, this.channel || "");
14607
14625
  }), s.on("videoSubscribeStateChanged", (a, c, o, u) => {
14608
14626
  this.emit("videoSubscribeStateChanged", a, c, o, u, this.channel || "");
@@ -14632,20 +14650,20 @@ class Te extends we {
14632
14650
  * @param {string} userId
14633
14651
  */
14634
14652
  onRemoteDeviceStatusChange(e, t) {
14635
- e === oe.MuteAudio ? this.emit("userAudioMuted", t, !0) : e === oe.UnmuteAudio ? this.emit("userAudioMuted", t, !1) : e === oe.MuteVideo ? this.emit("userVideoMuted", t, !0) : e === oe.UnmuteVideo ? this.emit("userVideoMuted", t, !1) : e === oe.MuteScreen ? this.emit("userScreenMuted", t, !0) : e === oe.UnmuteScreen && this.emit("userScreenMuted", t, !1);
14653
+ e === ce.MuteAudio ? this.emit("userAudioMuted", t, !0) : e === ce.UnmuteAudio ? this.emit("userAudioMuted", t, !1) : e === ce.MuteVideo ? this.emit("userVideoMuted", t, !0) : e === ce.UnmuteVideo ? this.emit("userVideoMuted", t, !1) : e === ce.MuteScreen ? this.emit("userScreenMuted", t, !0) : e === ce.UnmuteScreen && this.emit("userScreenMuted", t, !1);
14636
14654
  }
14637
14655
  /**
14638
14656
  * 远端流数据采集上报
14639
14657
  * @param {any} stat
14640
14658
  */
14641
14659
  onRemoteStatReport(e, t, i) {
14642
- this.emit(oe.PullStreamStats, e, t, i);
14660
+ this.emit(ce.PullStreamStats, e, t, i);
14643
14661
  }
14644
14662
  /**
14645
14663
  * rts 单 PC 订阅超限
14646
14664
  */
14647
14665
  onSubscribeExceeds(e, t) {
14648
- this.emit(oe.RtsSubscribeExceeds, e, t);
14666
+ this.emit(ce.RtsSubscribeExceeds, e, t);
14649
14667
  }
14650
14668
  removeLeftUser(e) {
14651
14669
  return w(this, null, function* () {
@@ -14685,19 +14703,19 @@ class Te extends we {
14685
14703
  updateAudioWant(e, t) {
14686
14704
  const i = this.userMap[e];
14687
14705
  if (!i)
14688
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
14706
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14689
14707
  i.setWantSubAudio(t), t ? i.updateSubscribe(le.User) : i.stopSubscribe({ audio: !0 });
14690
14708
  }
14691
14709
  updateVideoWant(e, t) {
14692
14710
  const i = this.userMap[e];
14693
14711
  if (!i)
14694
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
14712
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14695
14713
  i.setWantSubVideo(t), t ? i.updateSubscribe(le.User) : i.stopSubscribe({ video: !0 });
14696
14714
  }
14697
14715
  updateScreenWant(e, t) {
14698
14716
  const i = this.userMap[e];
14699
14717
  if (!i)
14700
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
14718
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14701
14719
  i.setWantSubScreen(t), t ? i.updateSubscribe(le.User) : i.stopSubscribe({ screen: !0 });
14702
14720
  }
14703
14721
  stopIndication() {
@@ -14768,49 +14786,49 @@ class Te extends we {
14768
14786
  /**
14769
14787
  * @ignore
14770
14788
  */
14771
- m(Te, "logName", "BizControl");
14772
- He([
14789
+ m(Pe, "logName", "BizControl");
14790
+ je([
14773
14791
  D()
14774
- ], Te.prototype, "init", 1);
14775
- He([
14792
+ ], Pe.prototype, "init", 1);
14793
+ je([
14776
14794
  D()
14777
- ], Te.prototype, "leave", 1);
14778
- He([
14795
+ ], Pe.prototype, "leave", 1);
14796
+ je([
14779
14797
  D()
14780
- ], Te.prototype, "clear", 1);
14781
- He([
14782
- D(U)
14783
- ], Te.prototype, "addUser", 1);
14784
- He([
14798
+ ], Pe.prototype, "clear", 1);
14799
+ je([
14800
+ D(H)
14801
+ ], Pe.prototype, "addUser", 1);
14802
+ je([
14785
14803
  D()
14786
- ], Te.prototype, "removeLeftUser", 1);
14787
- He([
14804
+ ], Pe.prototype, "removeLeftUser", 1);
14805
+ je([
14788
14806
  D()
14789
- ], Te.prototype, "updateUsers", 1);
14790
- He([
14791
- D(U)
14792
- ], Te.prototype, "updateAudioWant", 1);
14793
- He([
14794
- D(U)
14795
- ], Te.prototype, "updateVideoWant", 1);
14796
- He([
14797
- D(U)
14798
- ], Te.prototype, "updateScreenWant", 1);
14799
- He([
14807
+ ], Pe.prototype, "updateUsers", 1);
14808
+ je([
14809
+ D(H)
14810
+ ], Pe.prototype, "updateAudioWant", 1);
14811
+ je([
14812
+ D(H)
14813
+ ], Pe.prototype, "updateVideoWant", 1);
14814
+ je([
14815
+ D(H)
14816
+ ], Pe.prototype, "updateScreenWant", 1);
14817
+ je([
14800
14818
  D()
14801
- ], Te.prototype, "stopIndication", 1);
14802
- He([
14819
+ ], Pe.prototype, "stopIndication", 1);
14820
+ je([
14803
14821
  D()
14804
- ], Te.prototype, "startIndication", 1);
14805
- He([
14806
- D(U)
14807
- ], Te.prototype, "setEnableDualVideoStream", 1);
14808
- He([
14809
- D(U)
14810
- ], Te.prototype, "setAudioVolume", 1);
14811
- He([
14822
+ ], Pe.prototype, "startIndication", 1);
14823
+ je([
14824
+ D(H)
14825
+ ], Pe.prototype, "setEnableDualVideoStream", 1);
14826
+ je([
14827
+ D(H)
14828
+ ], Pe.prototype, "setAudioVolume", 1);
14829
+ je([
14812
14830
  D()
14813
- ], Te.prototype, "enableAudioVolumeIndication", 1);
14831
+ ], Pe.prototype, "enableAudioVolumeIndication", 1);
14814
14832
  const Pr = (r) => w(void 0, null, function* () {
14815
14833
  const n = new Uint8Array(160).fill(170), e = new TextEncoder().encode(r), t = yield window.crypto.subtle.importKey(
14816
14834
  "raw",
@@ -14841,7 +14859,7 @@ class Dc {
14841
14859
  var u;
14842
14860
  const t = this.authInfo;
14843
14861
  if (!t)
14844
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14862
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14845
14863
  const i = "https://gw.rtn.aliyuncs.com", s = I0[n], a = {
14846
14864
  appid: t.appId,
14847
14865
  userid: t.userId,
@@ -14849,9 +14867,9 @@ class Dc {
14849
14867
  timestamp: t.timestamp,
14850
14868
  token: t.token,
14851
14869
  nonce: t.nonce ? t.nonce : "",
14852
- requestid: Ue.createCallid(),
14870
+ requestid: He.createCallid(),
14853
14871
  tokensid: !1,
14854
- session: (u = t.sessionId) != null ? u : Ue.createCallid()
14872
+ session: (u = t.sessionId) != null ? u : He.createCallid()
14855
14873
  }, c = Object.keys(a).map((h) => `${h}=${encodeURIComponent(a[h])}`).join("&"), o = `${i}${s}?${c}`;
14856
14874
  return fetch(o, {
14857
14875
  method: "POST",
@@ -14860,9 +14878,9 @@ class Dc {
14860
14878
  },
14861
14879
  body: JSON.stringify(e)
14862
14880
  }).then((h) => h.status !== 200 ? (this.slsReporter.reportTranscodingError(h.status, e.taskid || ""), Promise.reject(
14863
- new V(O.ERR_INNER, `transcoding request failed, status: ${h.status}`)
14881
+ new V(U.ERR_INNER, `transcoding request failed, status: ${h.status}`)
14864
14882
  )) : h).catch((h) => Promise.reject(
14865
- new V(O.ERR_INNER, `transcoding request failed, err: ${h.message}`)
14883
+ new V(U.ERR_INNER, `transcoding request failed, err: ${h.message}`)
14866
14884
  ));
14867
14885
  }
14868
14886
  setAuthInfo(n) {
@@ -14874,47 +14892,47 @@ class Dc {
14874
14892
  startPublishLiveStream(n, e) {
14875
14893
  return w(this, null, function* () {
14876
14894
  if (!this.authInfo)
14877
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14878
- const t = yield Pr(n.split("?")[0]), i = Oe.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14895
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14896
+ const t = yield Pr(n.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14879
14897
  return this.doRequest(i, s);
14880
14898
  });
14881
14899
  }
14882
14900
  startPublishLiveStreamWithTaskId(n, e) {
14883
14901
  return w(this, null, function* () {
14884
14902
  if (!this.authInfo)
14885
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14886
- const t = Oe.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14903
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14904
+ const t = Ue.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14887
14905
  return this.doRequest(t, i);
14888
14906
  });
14889
14907
  }
14890
14908
  updatePublishLiveStream(n, e) {
14891
14909
  return w(this, null, function* () {
14892
14910
  if (!this.authInfo)
14893
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14894
- const t = yield Pr(n.split("?")[0]), i = Oe.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14911
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14912
+ const t = yield Pr(n.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, n);
14895
14913
  return this.doRequest(i, s);
14896
14914
  });
14897
14915
  }
14898
14916
  updatePublishLiveStreamWithTaskId(n, e) {
14899
14917
  return w(this, null, function* () {
14900
14918
  if (!this.authInfo)
14901
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14902
- const t = Oe.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14919
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14920
+ const t = Ue.MPU_TASK_TRANSACTION_UPDATE, i = e.toJson(t, this.authInfo, n);
14903
14921
  return this.doRequest(t, i);
14904
14922
  });
14905
14923
  }
14906
14924
  stopPublishLiveStream(n) {
14907
14925
  return w(this, null, function* () {
14908
14926
  if (!this.authInfo)
14909
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14910
- const e = yield Pr(n.split("?")[0]), t = Oe.MPU_TASK_TRANSACTION_STOP, i = new Br().toJson(t, this.authInfo, e, n);
14927
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14928
+ const e = yield Pr(n.split("?")[0]), t = Ue.MPU_TASK_TRANSACTION_STOP, i = new Br().toJson(t, this.authInfo, e, n);
14911
14929
  return this.doRequest(t, i);
14912
14930
  });
14913
14931
  }
14914
14932
  stopPublishLiveStreamWithTaskId(n) {
14915
14933
  if (!this.authInfo)
14916
- return Promise.reject(ot.LiveTranscodingErrorInvalidParam);
14917
- const e = Oe.MPU_TASK_TRANSACTION_STOP, t = new Br().toJson(e, this.authInfo, n);
14934
+ return Promise.reject(ct.LiveTranscodingErrorInvalidParam);
14935
+ const e = Ue.MPU_TASK_TRANSACTION_STOP, t = new Br().toJson(e, this.authInfo, n);
14918
14936
  return this.doRequest(e, t);
14919
14937
  }
14920
14938
  refreshAuthInfo(n) {
@@ -14961,19 +14979,19 @@ class rs {
14961
14979
  */
14962
14980
  static checkAuthInfo(n) {
14963
14981
  if (!n)
14964
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no authInfo founded");
14982
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no authInfo founded");
14965
14983
  if (!n.appId)
14966
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no appId founded");
14984
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no appId founded");
14967
14985
  if (!n.channelId)
14968
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no channelId founded");
14986
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no channelId founded");
14969
14987
  if (!n.userId)
14970
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
14988
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
14971
14989
  if (n.timestamp) {
14972
14990
  if (!rs.checkNumber(n.timestamp))
14973
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
14991
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
14974
14992
  } else
14975
- return new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
14976
- return n.token ? null : new V(O.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no token founded");
14993
+ return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
14994
+ return n.token ? null : new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no token founded");
14977
14995
  }
14978
14996
  /**
14979
14997
  * 检测是否是MediaStreamTrack类型
@@ -15026,8 +15044,8 @@ class kc {
15026
15044
  }
15027
15045
  toJson(n, e) {
15028
15046
  return {
15029
- x: Je(this.x, n),
15030
- y: Je(this.y, e),
15047
+ x: Ge(this.x, n),
15048
+ y: Ge(this.y, e),
15031
15049
  fonttype: this.fontType,
15032
15050
  fontsize: this.fontSize,
15033
15051
  fontcolor: Zr(this.fontColor),
@@ -15053,10 +15071,10 @@ class An {
15053
15071
  url: this.url,
15054
15072
  alpha: this.alpha,
15055
15073
  display: this.display,
15056
- x: Je(this.x, n),
15057
- y: Je(this.y, e),
15058
- width: Je(this.width, n),
15059
- height: Je(this.height, e),
15074
+ x: Ge(this.x, n),
15075
+ y: Ge(this.y, e),
15076
+ width: Ge(this.width, n),
15077
+ height: Ge(this.height, e),
15060
15078
  zorder: this.zOrder
15061
15079
  };
15062
15080
  }
@@ -15076,8 +15094,8 @@ class Bc {
15076
15094
  toJson(n, e) {
15077
15095
  return {
15078
15096
  text: this.text,
15079
- x: Je(this.x, n),
15080
- y: Je(this.y, e),
15097
+ x: Ge(this.x, n),
15098
+ y: Ge(this.y, e),
15081
15099
  fonttype: this.fontType,
15082
15100
  fontsize: this.fontSize,
15083
15101
  fontcolor: Zr(this.fontColor),
@@ -15103,10 +15121,10 @@ class Mc {
15103
15121
  const s = {
15104
15122
  paneid: n,
15105
15123
  majorpane: 0,
15106
- x: Je(this.x, e),
15107
- y: Je(this.y, t),
15108
- width: Je(this.width, e),
15109
- height: Je(this.height, t),
15124
+ x: Ge(this.x, e),
15125
+ y: Ge(this.y, t),
15126
+ width: Ge(this.width, e),
15127
+ height: Ge(this.height, t),
15110
15128
  zorder: this.zOrder,
15111
15129
  userid: this.userId,
15112
15130
  images: this.images.map((a) => a.toJson(e, t)),
@@ -15115,7 +15133,7 @@ class Mc {
15115
15133
  return this.sourceType && ei[this.sourceType] ? s.sourcetype = ei[this.sourceType] : s.sourcetype = ei[si.LiveTranscodingCamera], this.segmentType && i === Yr.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = vi.LiveTranscodingNoBody, s;
15116
15134
  }
15117
15135
  }
15118
- const { BrowserUtil: kr, SystenUtil: Ja } = ce;
15136
+ const { BrowserUtil: kr, SystenUtil: Ja } = oe;
15119
15137
  class Ga {
15120
15138
  constructor() {
15121
15139
  m(this, "tracker");
@@ -15194,7 +15212,7 @@ class Ga {
15194
15212
  */
15195
15213
  initParam(n) {
15196
15214
  let e = localStorage == null ? void 0 : localStorage.getItem("AliRtcUUID");
15197
- e || (e = st(), localStorage == null || localStorage.setItem("AliRtcUUID", e)), this.param || (this.param = {
15215
+ e || (e = at(), localStorage == null || localStorage.setItem("AliRtcUUID", e)), this.param || (this.param = {
15198
15216
  apid: n.appId,
15199
15217
  usrid: n.userId,
15200
15218
  statsvrs: "0.6.1",
@@ -15223,7 +15241,7 @@ class Ga {
15223
15241
  const fe = (r, n = 1, e = 6e4, t = 0) => {
15224
15242
  let i = r;
15225
15243
  return i || (i = 0), Math.min(e, Math.max(t, Math.round(i * n)));
15226
- }, qe = (r, n, e = 2e7, t = 0) => {
15244
+ }, Je = (r, n, e = 2e7, t = 0) => {
15227
15245
  let i = n;
15228
15246
  (!n || n < 0 || n > 1e4) && (i = 1e3);
15229
15247
  let s = r;
@@ -15289,25 +15307,25 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15289
15307
  var F, M, J, j, ue, X;
15290
15308
  if (!R || !R.timestamp)
15291
15309
  return;
15292
- const T = (F = R._last) != null && F.timestamp ? R.timestamp - R._last.timestamp : 1e3, B = pe(R, "bytesSent"), $ = pe(R, "headerBytesSent"), q = qe(fe(B + $, 8, 2e7), T);
15310
+ const T = (F = R._last) != null && F.timestamp ? R.timestamp - R._last.timestamp : 1e3, B = pe(R, "bytesSent"), $ = pe(R, "headerBytesSent"), q = Je(fe(B + $, 8, 2e7), T);
15293
15311
  o.push(q);
15294
- const G = qe(fe(B, 8, 2e7), T);
15312
+ const G = Je(fe(B, 8, 2e7), T);
15295
15313
  u.push(G);
15296
- const ae = qe(fe($, 8, 2e7), T);
15314
+ const ae = Je(fe($, 8, 2e7), T);
15297
15315
  h.push(ae);
15298
- const Q = pe(R, "packetsSent"), te = qe(Q, T);
15316
+ const Q = pe(R, "packetsSent"), te = Je(Q, T);
15299
15317
  p.push(te);
15300
- const ee = pe(R, "packetsLost"), P = qe(ee, T);
15318
+ const ee = pe(R, "packetsLost"), P = Je(ee, T);
15301
15319
  d.push(P);
15302
15320
  const N = Rt(ee, Q);
15303
15321
  if (f.push(N), a)
15304
15322
  (M = R._source) != null && M.audioLevel && g.push(Xa(R._source.audioLevel)), l.push(0);
15305
15323
  else {
15306
15324
  S.push(Ya(R, "totalEncodeTime")), v.push(wt((J = R._source) == null ? void 0 : J.framesPerSecond, 100)), x.push(wt((j = R._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(wt(R.framesPerSecond, 100)), y.push(wt((ue = R._source) == null ? void 0 : ue.height, 4400)), E.push(wt((X = R._source) == null ? void 0 : X.width, 7700)), I.push(wt(R.frameHeight, 4400)), A.push(wt(R.frameWidth, 7700));
15307
- const Fe = pe(R, "totalPacketSendDelay");
15308
- C.push(fe(Fe, 1 / (ee || 1), 2e3));
15309
- const je = pe(R, "qpSum");
15310
- L.push(fe(je, 1 / (R.framesPerSecond || 1), 51)), _.push(0);
15325
+ const Ve = pe(R, "totalPacketSendDelay");
15326
+ C.push(fe(Ve, 1 / (ee || 1), 2e3));
15327
+ const ze = pe(R, "qpSum");
15328
+ L.push(fe(ze, 1 / (R.framesPerSecond || 1), 51)), _.push(0);
15311
15329
  }
15312
15330
  }), c.sbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.ps = p.join(","), c.pl = d.join(","), c.plr = f.join(","), a) {
15313
15331
  const R = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
@@ -15337,20 +15355,20 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15337
15355
  }, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [], R = [], T = [], B = [], $ = [], q = [], G = [], ae = [], Q = [], te = [], ee = [], P = [], N = [], F = [], M = [], J = [];
15338
15356
  try {
15339
15357
  s.forEach((j) => {
15340
- var Ze, Ct;
15358
+ var Qe, Ct;
15341
15359
  if (!j || !j.timestamp)
15342
15360
  return;
15343
- const ue = (Ze = j._last) != null && Ze.timestamp ? j.timestamp - j._last.timestamp : 1e3, X = pe(j, "bytesReceived"), Fe = pe(j, "headerBytesReceived"), je = qe(fe(X + Fe, 8, 2e7), ue);
15344
- o.push(je);
15345
- const Xe = qe(fe(X, 8, 2e7), ue);
15346
- u.push(Xe);
15347
- const Ye = qe(fe(Fe, 8, 2e7), ue);
15348
- h.push(Ye);
15349
- const Se = pe(j, "packetsReceived"), Pe = qe(Se, ue);
15350
- p.push(Pe);
15351
- const at = pe(j, "packetsLost"), Et = qe(at, ue);
15361
+ const ue = (Qe = j._last) != null && Qe.timestamp ? j.timestamp - j._last.timestamp : 1e3, X = pe(j, "bytesReceived"), Ve = pe(j, "headerBytesReceived"), ze = Je(fe(X + Ve, 8, 2e7), ue);
15362
+ o.push(ze);
15363
+ const Ye = Je(fe(X, 8, 2e7), ue);
15364
+ u.push(Ye);
15365
+ const Ze = Je(fe(Ve, 8, 2e7), ue);
15366
+ h.push(Ze);
15367
+ const Se = pe(j, "packetsReceived"), ke = Je(Se, ue);
15368
+ p.push(ke);
15369
+ const nt = pe(j, "packetsLost"), Et = Je(nt, ue);
15352
15370
  d.push(Et);
15353
- const Nt = Rt(at, Se);
15371
+ const Nt = Rt(nt, Se);
15354
15372
  f.push(Nt);
15355
15373
  const At = pe(j, "jitterBufferDelay"), Jt = pe(j, "jitterBufferEmittedCount");
15356
15374
  if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
@@ -15360,34 +15378,34 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15360
15378
  g.push(0);
15361
15379
  const _t = pe(j, "fecPacketsReceived");
15362
15380
  b.push(Rt(_t, Se));
15363
- const ke = pe(j, "retransmittedPacketsReceived"), Ce = Se + at - ke;
15364
- if (S.push(Rt(Se - ke, Ce)), v.push(Rt(at, Ce)), l.push(Rt(ke, Ce)), x.push(Ce), M.push(0), J.push(""), a) {
15381
+ const Be = pe(j, "retransmittedPacketsReceived"), Ce = Se + nt - Be;
15382
+ if (S.push(Rt(Se - Be, Ce)), v.push(Rt(nt, Ce)), l.push(Rt(Be, Ce)), x.push(Ce), M.push(0), J.push(""), a) {
15365
15383
  E.push(Xa(j.audioLevel));
15366
15384
  const lt = Lc(j, "synthesizedSamplesEvents");
15367
15385
  I.push(lt);
15368
- const Qe = Ya(j, "synthesizedSamplesDuration");
15369
- A.push(Qe);
15370
- const nt = Rt(Qe, ue);
15371
- y.push(nt), C.push(0);
15386
+ const et = Ya(j, "synthesizedSamplesDuration");
15387
+ A.push(et);
15388
+ const ot = Rt(et, ue);
15389
+ y.push(ot), C.push(0);
15372
15390
  } else {
15373
15391
  const lt = (Ct = j._last) != null && Ct.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
15374
15392
  L.push(fe(lt, 1e3 / (j.framesDecoded || 30), 500)), _.push(fe(j.framesPerSecond, 1, 100)), R.push(pe(j, "framesReceived")), F.push(pe(j, "framesRendered")), T.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
15375
- const Qe = pe(j, "totalProcessingDelay");
15376
- $.push(fe(Qe, 1e3 / (j.framesDecoded || 30), 12e4));
15377
- const nt = pe(j, "nackCount");
15378
- G.push(nt);
15393
+ const et = pe(j, "totalProcessingDelay");
15394
+ $.push(fe(et, 1e3 / (j.framesDecoded || 30), 12e4));
15395
+ const ot = pe(j, "nackCount");
15396
+ G.push(ot);
15379
15397
  const Di = pe(j, "pliCount");
15380
15398
  q.push(Di);
15381
15399
  const oi = pe(j, "qpSum");
15382
15400
  ae.push(fe(oi, 1 / (j.framesPerSecond || 1), 51)), Q.push(fe(j.framesDropped));
15383
15401
  const ci = pe(j, "totalFreezesDuration");
15384
15402
  te.push(fe(ci, 1e3, 3e4));
15385
- const ze = pe(j, "jitterBufferEmittedCount"), ft = pe(j, "jitterBufferDelay");
15386
- ft && ze ? ee.push(fe(ft, 1e3 / ze, 3e4)) : ee.push(0);
15403
+ const We = pe(j, "jitterBufferEmittedCount"), ft = pe(j, "jitterBufferDelay");
15404
+ ft && We ? ee.push(fe(ft, 1e3 / We, 3e4)) : ee.push(0);
15387
15405
  const ui = pe(j, "jitterBufferTargetDelay");
15388
- ui && ze ? P.push(fe(ui, 1e3 / ze, 3e4)) : P.push(0);
15406
+ ui && We ? P.push(fe(ui, 1e3 / We, 3e4)) : P.push(0);
15389
15407
  const Gt = pe(j, "jitterBufferMinimumDelay");
15390
- Gt && ze ? N.push(fe(Gt, 1e3 / ze, 3e4)) : N.push(0);
15408
+ Gt && We ? N.push(fe(Gt, 1e3 / We, 3e4)) : N.push(0);
15391
15409
  }
15392
15410
  }), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = g.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = S.join(","), c.basel = v.join(","), c.recoverr = M.join(","), c.alll = v.join(","), c.totalc = x.join(","), a ? (c.er = y.join(","), c.aolevel = E.join(","), c.asrc = C.join(","), c.scnt = I.join(","), c.sdura = A.join(",")) : (c.dm = L.join(","), c.dfps = _.join(","), c.rfps = R.join(","), c.rh = T.join(","), c.rw = B.join(","), c.fpt = J.join(","), c.ns = G.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = M.join(","), c.ofimin = M.join(","), c.dfimax = M.join(","), c.dfimin = M.join(","), c.rfimax = M.join(","), c.rfimin = M.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = P.join(","), c.pdm = N.join(","), c.ofps = F.join(","), c.dfbd = Q.join(","));
15393
15411
  } catch (j) {
@@ -15414,7 +15432,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15414
15432
  if (!f.timestamp)
15415
15433
  return;
15416
15434
  const l = (S = f._last) != null && S.timestamp ? f.timestamp - f._last.timestamp : 1e3;
15417
- e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(qe(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(qe(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0), g % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
15435
+ e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(Je(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(Je(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0), g % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
15418
15436
  });
15419
15437
  const d = {
15420
15438
  ctm: Math.floor(n[0].timestamp || 0),
@@ -15571,7 +15589,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15571
15589
  pctid: c,
15572
15590
  pubtid: o,
15573
15591
  totaltm: h - s,
15574
- jorm: u === rt.JOIN_CHANNEL ? 1 : 0,
15592
+ jorm: u === st.JOIN_CHANNEL ? 1 : 0,
15575
15593
  cptc: 0,
15576
15594
  sptc: i - t,
15577
15595
  iptc: 0,
@@ -15954,7 +15972,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15954
15972
  * @param {any} param 埋点内容
15955
15973
  */
15956
15974
  log(n) {
15957
- n && (n.tm = (/* @__PURE__ */ new Date()).getTime(), H.debug("[ConsoleLogger]", "log", n), this.logClient.sendReport(n));
15975
+ n && (n.tm = (/* @__PURE__ */ new Date()).getTime(), O.debug("[ConsoleLogger]", "log", n), this.logClient.sendReport(n));
15958
15976
  }
15959
15977
  /**
15960
15978
  * 将Object转换成string
@@ -15994,12 +16012,12 @@ const z = (K = class extends we {
15994
16012
  m(this, "_serverCheckAuthInfoTimestamp", null);
15995
16013
  m(this, "_localCheckAuthInfoTimestamp", null);
15996
16014
  const t = Date.now();
15997
- H.init(), this.slsReporter = new Or(this), this.channelProfile = St.AliRtcSdkCommunication, this.clientRole = Dt.AliRtcSdkLive, this.liveTranscoding = new Dc(this.slsReporter), this.signalingManager = new ts(
16015
+ O.init(), this.slsReporter = new Or(this), this.channelProfile = St.AliRtcSdkCommunication, this.clientRole = Dt.AliRtcSdkLive, this.liveTranscoding = new Dc(this.slsReporter), this.signalingManager = new ts(
15998
16016
  this.channelProfile,
15999
16017
  this.clientRole,
16000
16018
  this.slsReporter,
16001
16019
  (e == null ? void 0 : e.env) === dt.pre ? dt.pre : dt.prod
16002
- ), this.addSignalingManagerListeners(), this.maxSignalingConnectRetryCount = e == null ? void 0 : e.maxSignalingConnectRetryCount, this.bizControl = new Te({
16020
+ ), this.addSignalingManagerListeners(), this.maxSignalingConnectRetryCount = e == null ? void 0 : e.maxSignalingConnectRetryCount, this.bizControl = new Pe({
16003
16021
  slsReporter: this.slsReporter,
16004
16022
  signalingManager: this.signalingManager
16005
16023
  }), this.addBizControlListeners(), this.addPublisherListeners(), this.slsReporter.reportSDKCreated(t);
@@ -16008,7 +16026,7 @@ const z = (K = class extends we {
16008
16026
  return yi;
16009
16027
  }
16010
16028
  static setLogLevel(e) {
16011
- H.setLogLevel(e);
16029
+ O.setLogLevel(e);
16012
16030
  }
16013
16031
  /**
16014
16032
  * @brief 获取AliRtcEngine实例
@@ -16020,7 +16038,7 @@ const z = (K = class extends we {
16020
16038
  }
16021
16039
  destroy() {
16022
16040
  return w(this, null, function* () {
16023
- K._instance = void 0, yield this.leaveChannel(), yield this.bizControl.clear(), H.destroy();
16041
+ K._instance = void 0, yield this.leaveChannel(), yield this.bizControl.clear(), O.destroy();
16024
16042
  });
16025
16043
  }
16026
16044
  /**
@@ -16057,26 +16075,26 @@ const z = (K = class extends we {
16057
16075
  */
16058
16076
  addPublisherListeners() {
16059
16077
  var e, t, i, s, a, c, o, u, h, p;
16060
- (e = this.publisher) == null || e.on(Le.Local, (d) => {
16061
- H.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
16078
+ (e = this.publisher) == null || e.on(Ne.Local, (d) => {
16079
+ O.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
16062
16080
  }), (t = this.publisher) == null || t.on(kt.VideoTrackEnded, () => {
16063
- H.event("[Publisher] VideoTrack Ended"), this.emit(
16081
+ O.event("[Publisher] VideoTrack Ended"), this.emit(
16064
16082
  "localDeviceException",
16065
- ct.AliEngineLocalDeviceTypeCamera,
16083
+ ut.AliEngineLocalDeviceTypeCamera,
16066
16084
  ye.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16067
16085
  ""
16068
16086
  );
16069
16087
  }), (i = this.publisher) == null || i.on(kt.ScreenTrackEnded, () => {
16070
- H.event("[Publisher] ScreenTrack Ended"), this.emit(
16088
+ O.event("[Publisher] ScreenTrack Ended"), this.emit(
16071
16089
  "localDeviceException",
16072
- ct.AliEngineLocalDeviceTypeDisplay,
16090
+ ut.AliEngineLocalDeviceTypeDisplay,
16073
16091
  ye.AliEngineLocalDeviceExceptionTypeDisplayException,
16074
16092
  ""
16075
16093
  );
16076
16094
  }), (s = this.publisher) == null || s.on(kt.AudioTrackEnded, () => {
16077
- H.event("[Publisher] AudioTrack Ended"), this.emit(
16095
+ O.event("[Publisher] AudioTrack Ended"), this.emit(
16078
16096
  "localDeviceException",
16079
- ct.AliEngineLocalDeviceTypeMic,
16097
+ ut.AliEngineLocalDeviceTypeMic,
16080
16098
  ye.AliEngineLocalDeviceExceptionTypeMicInterrupt,
16081
16099
  ""
16082
16100
  );
@@ -16103,7 +16121,7 @@ const z = (K = class extends we {
16103
16121
  });
16104
16122
  }
16105
16123
  occurError(e, t) {
16106
- H.event(`[${K.logName}]`, "Occur Error", e, t), this.emit("onOccurError", e, t), this.emit("occurError", e, t);
16124
+ O.event(`[${K.logName}]`, "Occur Error", e, t), this.emit("onOccurError", e, t), this.emit("occurError", e, t);
16107
16125
  }
16108
16126
  /**
16109
16127
  * 监听 UM 事件
@@ -16111,18 +16129,18 @@ const z = (K = class extends we {
16111
16129
  addBizControlListeners() {
16112
16130
  this.bizControl.rtsManager.on("connected", (e) => {
16113
16131
  var t;
16114
- e && ((t = this.publisher) == null || t.publishUpdate(rt.RECONNECT), this.remoteUsers.forEach((i) => {
16132
+ e && ((t = this.publisher) == null || t.publishUpdate(st.RECONNECT), this.remoteUsers.forEach((i) => {
16115
16133
  i.updateSubscribe(le.Reconnect);
16116
16134
  }));
16117
16135
  }), this.bizControl.rtsManager.on("disconnected", () => w(this, null, function* () {
16118
- H.event(`[${K.logName}]`, "RTS Disconnected"), (yield Ue.isNetworkAvailable()) ? this.onNetworkRecovery() : this.onNetworkError();
16136
+ O.event(`[${K.logName}]`, "RTS Disconnected"), (yield He.isNetworkAvailable()) ? this.onNetworkRecovery() : this.onNetworkError();
16119
16137
  })), this.bizControl.rtsManager.on("subscribeexceeds", () => w(this, null, function* () {
16120
16138
  yield this.resumePublishForNetworkRecovery(), yield this.resumeSubList();
16121
16139
  })), this.bizControl.rtsManager.on("seimessage", (e, t, i) => {
16122
16140
  const s = this.remoteUsers.find((a) => a.streamUrl === e);
16123
16141
  s && this.emit("mediaExtensionMsgReceived", s.userId, i, t);
16124
- }), this.bizControl.on(Le.Remote, (e, t) => {
16125
- H.event(`[${K.logName}]`, "RemoteUser Device Status Change", e, t);
16142
+ }), this.bizControl.on(Ne.Remote, (e, t) => {
16143
+ O.event(`[${K.logName}]`, "RemoteUser Device Status Change", e, t);
16126
16144
  }), this.bizControl.on("remoteTrackAvailableChange", (e, t, i) => {
16127
16145
  this.emit("remoteTrackAvailableNotify", e, t, i);
16128
16146
  }), this.bizControl.on("audioSubscribeStateChanged", (e, t, i, s, a) => {
@@ -16173,45 +16191,45 @@ const z = (K = class extends we {
16173
16191
  */
16174
16192
  addSignalingManagerListeners() {
16175
16193
  this.signalingManager.on("onKeepAliveRsp", () => {
16176
- this.networkError && (H.event("[Signaling] Receive KeepAlive Response", `networkError: ${this.networkError}`), this.onNetworkRecovery());
16194
+ this.networkError && (O.event("[Signaling] Receive KeepAlive Response", `networkError: ${this.networkError}`), this.onNetworkRecovery());
16177
16195
  }), this.signalingManager.on("onNotifyJoin", (e) => {
16178
- H.event("[Signaling] Notify Join ", e), this.handleUsersJoin(e), e.forEach((t) => {
16196
+ O.event("[Signaling] Notify Join ", e), this.handleUsersJoin(e), e.forEach((t) => {
16179
16197
  this.emit("remoteUserOnLineNotify", t.userid, 0);
16180
16198
  });
16181
16199
  }), this.signalingManager.on("onNotifyStatus", (e) => {
16182
- H.event("[Signaling] Notify Status ", e), e.forEach((t) => {
16200
+ O.event("[Signaling] Notify Status ", e), e.forEach((t) => {
16183
16201
  this.bizControl.updateRemoteUserDeviceStatus(t);
16184
16202
  });
16185
16203
  }), this.signalingManager.on("onNotifyLeave", (e) => {
16186
- H.event("[Signaling] Notify Leave ", e), e.forEach((t) => {
16204
+ O.event("[Signaling] Notify Leave ", e), e.forEach((t) => {
16187
16205
  this.emit("remoteUserOffLineNotify", t.userid, t.leavecode), this.bizControl.removeLeftUser(t);
16188
16206
  });
16189
16207
  }), this.signalingManager.on("onBye", (e, t) => {
16190
- H.event("[Signaling] Bye ", e, t), this.slsReporter.reportError({
16208
+ O.event("[Signaling] Bye ", e, t), this.slsReporter.reportError({
16191
16209
  message: `reason: ${e}, description: ${t}`
16192
16210
  }), this.emit("bye", e), this.leaveChannel(), this.slsReporter.reportBye(e);
16193
16211
  }), this.signalingManager.on("onConnectFail", (e) => {
16194
- H.event("[Signaling] Connect Failed ", e), this.onError(e), this.backToUnpublishStatus(), this.connectState = he.AliRtcConnectionStatusFailed, this.emit(
16212
+ O.event("[Signaling] Connect Failed ", e), this.onError(e), this.backToUnpublishStatus(), this.connectState = he.AliRtcConnectionStatusFailed, this.emit(
16195
16213
  "connectionStatusChange",
16196
16214
  he.AliRtcConnectionStatusFailed,
16197
16215
  Ht.AliRtcConnectionChangedNetworkInterrupted
16198
16216
  );
16199
16217
  }), this.signalingManager.on("onNetworkError", (e) => {
16200
- this.slsReporter.reportWarning("signaling network error"), H.event("[Signaling] Network error ", e), this.onNetworkError();
16218
+ this.slsReporter.reportWarning("signaling network error"), O.event("[Signaling] Network error ", e), this.onNetworkError();
16201
16219
  }), this.signalingManager.on("onAuthInvalid", () => {
16202
- H.event("[Signaling] Auth Invalid");
16220
+ O.event("[Signaling] Auth Invalid");
16203
16221
  }), this.signalingManager.on("onReconnectStart", () => {
16204
- H.event("[Signaling] Reconnect Start "), this.connectState = he.AliRtcConnectionStatusReconnecting, this.emit(
16222
+ O.event("[Signaling] Reconnect Start "), this.connectState = he.AliRtcConnectionStatusReconnecting, this.emit(
16205
16223
  "connectionStatusChange",
16206
16224
  he.AliRtcConnectionStatusReconnecting,
16207
16225
  Ht.AliRtcConnectionSignalingConnecting
16208
16226
  );
16209
16227
  }), this.signalingManager.on("onReconnectSuccess", (e) => {
16210
- H.event("[Signaling] Reconnect Success ", e), this.onNetworkRecovery(e);
16228
+ O.event("[Signaling] Reconnect Success ", e), this.onNetworkRecovery(e);
16211
16229
  }), this.signalingManager.on("onReconnectFail", (e) => {
16212
- this.slsReporter.reportWarning("signaling reconnect fail: ${err.code}"), H.event("[Signaling] Reconnect Failed ", e), e.code === 403 && this.emit("authInfoExpired");
16230
+ this.slsReporter.reportWarning("signaling reconnect fail: ${err.code}"), O.event("[Signaling] Reconnect Failed ", e), e.code === 403 && this.emit("authInfoExpired");
16213
16231
  }), this.signalingManager.on("onError", (e) => {
16214
- this.slsReporter.reportWarning("signaling error: ${err.message}"), H.event("[Signaling] Error ", e), this.onError(e);
16232
+ this.slsReporter.reportWarning("signaling error: ${err.message}"), O.event("[Signaling] Error ", e), this.onError(e);
16215
16233
  });
16216
16234
  }
16217
16235
  backToUnpublishStatus() {
@@ -16228,7 +16246,7 @@ const z = (K = class extends we {
16228
16246
  const i = t.userid;
16229
16247
  if (i) {
16230
16248
  const s = this.bizControl.addUser(i, t.displayname, le.Join);
16231
- H.event(`[${K.logName}]`, oe.UserJoined, s);
16249
+ O.event(`[${K.logName}]`, ce.UserJoined, s);
16232
16250
  }
16233
16251
  });
16234
16252
  }
@@ -16238,10 +16256,10 @@ const z = (K = class extends we {
16238
16256
  * @returns {void}
16239
16257
  */
16240
16258
  onLocalDeviceStatusChange(e) {
16241
- H.event(`[${K.logName}]`, Le.Local, e), this.signalingManager.reportStatus(e).then(() => {
16242
- H.debug("[signaling] reportStatus suc");
16259
+ O.event(`[${K.logName}]`, Ne.Local, e), this.signalingManager.reportStatus(e).then(() => {
16260
+ O.debug("[signaling] reportStatus suc");
16243
16261
  }).catch((t) => {
16244
- H.error("[signaling] reportStatus failed", t);
16262
+ O.error("[signaling] reportStatus failed", t);
16245
16263
  });
16246
16264
  }
16247
16265
  resumePublishForNetworkRecovery() {
@@ -16276,7 +16294,7 @@ const z = (K = class extends we {
16276
16294
  onNetworkRecovery(e) {
16277
16295
  return w(this, null, function* () {
16278
16296
  var t;
16279
- H.event(
16297
+ O.event(
16280
16298
  K.logName,
16281
16299
  "onNetworkRecovery",
16282
16300
  `rts isConnected: ${this.bizControl.rtsManager.isConnected}; rts isConnecting: ${this.bizControl.rtsManager.isConnecting}`,
@@ -16292,12 +16310,12 @@ const z = (K = class extends we {
16292
16310
  return w(this, null, function* () {
16293
16311
  if (e != null && e.length) {
16294
16312
  const { joinList: t, leaveList: i, presentList: s } = this.bizControl.updateUsers(e);
16295
- H.info(`[${K.logName}]`, "resumeSubList", {
16313
+ O.info(`[${K.logName}]`, "resumeSubList", {
16296
16314
  joinList: t,
16297
16315
  leaveList: i,
16298
16316
  presentList: s
16299
16317
  }), this.handleUsersJoin(t), i.forEach((a) => {
16300
- H.event(K.logName, oe.UserLeft, a.userid, a.reason), this.emit("remoteUserOffLineNotify", a.userid, Qr.AliRtcUserOfflineQuit);
16318
+ O.event(K.logName, ce.UserLeft, a.userid, a.reason), this.emit("remoteUserOffLineNotify", a.userid, Qr.AliRtcUserOfflineQuit);
16301
16319
  });
16302
16320
  for (let a = 0; a < s.length; a++) {
16303
16321
  const c = s[a], o = c.userid, u = this.bizControl.getRemoteUser(o);
@@ -16317,7 +16335,7 @@ const z = (K = class extends we {
16317
16335
  return w(this, null, function* () {
16318
16336
  const t = this.bizControl.getRemoteUser(e);
16319
16337
  if (!t)
16320
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16338
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16321
16339
  t.restore(), t.updateSubscribe(le.Retry);
16322
16340
  });
16323
16341
  }
@@ -16339,7 +16357,7 @@ const z = (K = class extends we {
16339
16357
  * @returns {void}
16340
16358
  */
16341
16359
  onError(e) {
16342
- this.slsReporter.reportError(e), H.event(K.logName, oe.Error, e);
16360
+ this.slsReporter.reportError(e), O.event(K.logName, ce.Error, e);
16343
16361
  }
16344
16362
  setEnableDualVideoStream(e, t) {
16345
16363
  this.bizControl.setEnableDualVideoStream(e, t);
@@ -16350,7 +16368,7 @@ const z = (K = class extends we {
16350
16368
  // @ts-ignore
16351
16369
  hadPushStream(e) {
16352
16370
  if (!(this.publisher && e))
16353
- throw new V(O.ERR_INNER, "stream is not publishing");
16371
+ throw new V(U.ERR_INNER, "stream is not publishing");
16354
16372
  }
16355
16373
  /**
16356
16374
  * 获取当前使用的麦克风 deviceId
@@ -16366,7 +16384,7 @@ const z = (K = class extends we {
16366
16384
  he.AliRtcConnectionStatusDisconnected,
16367
16385
  he.AliRtcConnectionStatusFailed
16368
16386
  ].includes(this.connectState))
16369
- throw new V(O.ERR_INNER, "cannot set channel profile in call");
16387
+ throw new V(U.ERR_INNER, "cannot set channel profile in call");
16370
16388
  this.channelProfile = e, this.channelProfile === St.AliRtcSdkCommunication && (this.clientRole = Dt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
16371
16389
  }
16372
16390
  startAndPublishDefaultDevices(e) {
@@ -16380,9 +16398,9 @@ const z = (K = class extends we {
16380
16398
  try {
16381
16399
  yield (c = this.publisher) == null ? void 0 : c.startDefaultCamera(this._audioOnlyMode);
16382
16400
  } catch (d) {
16383
- H.warn(`[${K.logName}]`, "startDefaultCamera failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16401
+ O.warn(`[${K.logName}]`, "startDefaultCamera failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16384
16402
  new V(
16385
- O.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
16403
+ U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
16386
16404
  `auto start video failed, ${d.message || ""}`
16387
16405
  )
16388
16406
  );
@@ -16390,9 +16408,9 @@ const z = (K = class extends we {
16390
16408
  try {
16391
16409
  yield (o = this.publisher) == null ? void 0 : o.startDefaultAudio();
16392
16410
  } catch (d) {
16393
- H.warn(`[${K.logName}]`, "startDefaultAUdio failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16411
+ O.warn(`[${K.logName}]`, "startDefaultAUdio failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16394
16412
  new V(
16395
- O.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
16413
+ U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
16396
16414
  `auto start audio failed, ${d.message || ""}`
16397
16415
  )
16398
16416
  );
@@ -16404,7 +16422,7 @@ const z = (K = class extends we {
16404
16422
  yield (p = this.publisher) == null ? void 0 : p.startPublish(!1, e);
16405
16423
  } catch (d) {
16406
16424
  const f = [];
16407
- a != null && a.audio && f.push(O.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(O.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((g) => {
16425
+ a != null && a.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((g) => {
16408
16426
  this.occurError(new V(g, `auto publish stream failed, ${d.message || ""}`));
16409
16427
  });
16410
16428
  }
@@ -16418,12 +16436,12 @@ const z = (K = class extends we {
16418
16436
  return;
16419
16437
  if (!Object.values(Dt).includes(e))
16420
16438
  throw new V(
16421
- O.ERR_INVALID_ARGUMENTS,
16439
+ U.ERR_INVALID_ARGUMENTS,
16422
16440
  `set client role error, role value(${e}) is invalid`
16423
16441
  );
16424
16442
  if (this.clientRole === e)
16425
16443
  return;
16426
- this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Dt.AliRtcSdkInteractive ? (this.bizControl.isSubscribing ? yield (t = this.publisher) == null ? void 0 : t.clearStream() : yield (i = this.publisher) == null ? void 0 : i.unPublish(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startAndPublishDefaultDevices(rt.JOIN_CHANNEL)) : yield this.signalingManager.setClientRole(e), this.clientRole = e;
16444
+ this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Dt.AliRtcSdkInteractive ? (this.bizControl.isSubscribing ? yield (t = this.publisher) == null ? void 0 : t.clearStream() : yield (i = this.publisher) == null ? void 0 : i.unPublish(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startAndPublishDefaultDevices(st.JOIN_CHANNEL)) : yield this.signalingManager.setClientRole(e), this.clientRole = e;
16427
16445
  } catch (s) {
16428
16446
  throw s.code === 403 && this.emit("authInfoExpired"), s;
16429
16447
  }
@@ -16438,12 +16456,12 @@ const z = (K = class extends we {
16438
16456
  }
16439
16457
  setAudioOnlyMode(e) {
16440
16458
  if (this.isInCall())
16441
- throw new V(O.ERR_INNER, "can not change audioOnly mode in call");
16459
+ throw new V(U.ERR_INNER, "can not change audioOnly mode in call");
16442
16460
  this._audioOnlyMode = e;
16443
16461
  }
16444
16462
  setAudioRedEnabled(e) {
16445
16463
  if (this.isInCall())
16446
- throw new V(O.ERR_INNER, "can not change audioRedEnabled in call");
16464
+ throw new V(U.ERR_INNER, "can not change audioRedEnabled in call");
16447
16465
  this.bizControl.setAudioRedEnabled(e);
16448
16466
  }
16449
16467
  /**
@@ -16478,7 +16496,7 @@ const z = (K = class extends we {
16478
16496
  token: h.token
16479
16497
  };
16480
16498
  } catch (h) {
16481
- throw new V(O.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16499
+ throw new V(U.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16482
16500
  }
16483
16501
  else
16484
16502
  i = e;
@@ -16490,7 +16508,7 @@ const z = (K = class extends we {
16490
16508
  if (he.AliRtcConnectionStatusInit === this.connectState || he.AliRtcConnectionStatusDisconnected === this.connectState || he.AliRtcConnectionStatusFailed === this.connectState) {
16491
16509
  if (this.connectState = he.AliRtcConnectionStatusConnecting, c)
16492
16510
  throw this.connectState = he.AliRtcConnectionStatusFailed, this.slsReporter.reportJoin(c.code, a, ""), this.slsReporter.reportJoinResult(c), c;
16493
- i.sessionId = Ue.createCallid("web"), H.setSessionID(i.appId, i.sessionId), this.slsReporter.start(i);
16511
+ i.sessionId = He.createCallid("web"), O.setSessionID(i.appId, i.sessionId), this.slsReporter.start(i);
16494
16512
  try {
16495
16513
  const h = yield this.signalingManager.join(
16496
16514
  i,
@@ -16503,11 +16521,11 @@ const z = (K = class extends we {
16503
16521
  const p = (u = h.code) != null ? u : -1, d = h.reason || h.message || "";
16504
16522
  throw this.connectState = he.AliRtcConnectionStatusDisconnected, this.slsReporter.reportJoin(p, a, ""), this.slsReporter.reportJoinResult(h), new V(p, d);
16505
16523
  }
16506
- this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(rt.ROLE_CHANGE)), this.remoteUsers.forEach((h) => {
16524
+ this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(st.ROLE_CHANGE)), this.remoteUsers.forEach((h) => {
16507
16525
  h.updateSubscribe(le.Join);
16508
16526
  });
16509
16527
  } else {
16510
- const h = new V(O.ERR_JOIN_ALREADY_JOINED, "already joined");
16528
+ const h = new V(U.ERR_JOIN_ALREADY_JOINED, "already joined");
16511
16529
  throw this.connectState === he.AliRtcConnectionStatusConnecting && (h.message = "Repeated operation during login"), this.slsReporter.reportJoin(h.code, a, ""), h;
16512
16530
  }
16513
16531
  });
@@ -16530,7 +16548,7 @@ const z = (K = class extends we {
16530
16548
  }
16531
16549
  else
16532
16550
  this.slsReporter.reportLeave(0, 0, "");
16533
- this.networkError = !1, this.connectState = he.AliRtcConnectionStatusDisconnected, this.clearCheckAuthInfoTimer(), this.liveTranscoding.clear(), this.slsReporter.stop(), this.signalingManager.reset(), H.reportEnd();
16551
+ this.networkError = !1, this.connectState = he.AliRtcConnectionStatusDisconnected, this.clearCheckAuthInfoTimer(), this.liveTranscoding.clear(), this.slsReporter.stop(), this.signalingManager.reset(), O.reportEnd();
16534
16552
  });
16535
16553
  }
16536
16554
  /**
@@ -16555,7 +16573,7 @@ const z = (K = class extends we {
16555
16573
  token: h.token
16556
16574
  };
16557
16575
  } catch (h) {
16558
- throw new V(O.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16576
+ throw new V(U.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16559
16577
  }
16560
16578
  else
16561
16579
  t = e;
@@ -16605,7 +16623,7 @@ const z = (K = class extends we {
16605
16623
  subscribeRemoteAudioStream(e, t) {
16606
16624
  if (t && !this.bizControl.isWantSubAudio)
16607
16625
  throw new V(
16608
- O.ERR_INVALID_ARGUMENTS,
16626
+ U.ERR_INVALID_ARGUMENTS,
16609
16627
  "subscribeAllRemoteAudioStreams(true) must be called first"
16610
16628
  );
16611
16629
  this.bizControl.updateAudioWant(e, t);
@@ -16613,13 +16631,13 @@ const z = (K = class extends we {
16613
16631
  resumeRemoteAudioStream(e) {
16614
16632
  const t = this.bizControl.getRemoteUser(e);
16615
16633
  if (!t)
16616
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16634
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16617
16635
  t.resumeAudio();
16618
16636
  }
16619
16637
  stopRemoteAudioPlay(e) {
16620
16638
  const t = this.bizControl.getRemoteUser(e);
16621
16639
  if (!t)
16622
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16640
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16623
16641
  t.stopPlayAudio();
16624
16642
  }
16625
16643
  publishLocalVideoStream(e) {
@@ -16654,7 +16672,7 @@ const z = (K = class extends we {
16654
16672
  subscribeRemoteMediaStream(e, t, i, s) {
16655
16673
  const a = this.bizControl.getRemoteUser(e);
16656
16674
  if (!a)
16657
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16675
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16658
16676
  i && (t === se.AliRtcVideoTrackScreen || t === se.AliRtcVideoTrackBoth) ? a.setWantSubScreen(!0) : a.setWantSubScreen(!1), i && (t === se.AliRtcVideoTrackCamera || t === se.AliRtcVideoTrackBoth) ? a.setWantSubVideo(!0) : a.setWantSubVideo(!1), a.setWantSubAudio(s), a.updateSubscribe(le.User);
16659
16677
  }
16660
16678
  resumeRemoteMediaStream(e, t) {
@@ -16774,7 +16792,7 @@ const z = (K = class extends we {
16774
16792
  }
16775
16793
  setAudioShareVolume(e) {
16776
16794
  if (typeof e != "number")
16777
- throw new V(O.ERR_INVALID_ARGUMENTS, "volume must be a number");
16795
+ throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
16778
16796
  this.bizControl.setAudioVolume({
16779
16797
  screen: Math.max(0, Math.min(e, 400)) / 100
16780
16798
  });
@@ -16784,12 +16802,12 @@ const z = (K = class extends we {
16784
16802
  }
16785
16803
  muteLocalMic(e = !1) {
16786
16804
  var t;
16787
- this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteAudio : oe.UnmuteAudio), (t = this.publisher) == null || t.muteLocalMic(e);
16805
+ this.isPublishing && this.onLocalDeviceStatusChange(e ? ce.MuteAudio : ce.UnmuteAudio), (t = this.publisher) == null || t.muteLocalMic(e);
16788
16806
  }
16789
16807
  muteRemoteAudioPlaying(e, t = !1) {
16790
16808
  const i = this.bizControl.getRemoteUser(e);
16791
16809
  if (!i)
16792
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16810
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16793
16811
  i.setAudioMuted(t);
16794
16812
  }
16795
16813
  muteAllRemoteAudioPlaying(e = !1) {
@@ -16829,22 +16847,22 @@ const z = (K = class extends we {
16829
16847
  }
16830
16848
  setRecordingVolume(e) {
16831
16849
  if (typeof e != "number")
16832
- throw new V(O.ERR_INVALID_ARGUMENTS, "volume must be a number");
16850
+ throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
16833
16851
  this.bizControl.setAudioVolume({
16834
16852
  audio: Math.max(0, Math.min(e, 400)) / 100
16835
16853
  });
16836
16854
  }
16837
16855
  setPlayoutVolume(e) {
16838
16856
  if (typeof e != "number")
16839
- throw new V(O.ERR_INVALID_ARGUMENTS, "volume must be a number");
16857
+ throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
16840
16858
  this.bizControl.setPlayoutVolume(Math.max(0, Math.min(e, 100)) / 100);
16841
16859
  }
16842
16860
  setRemoteAudioVolume(e, t) {
16843
16861
  const i = this.bizControl.getRemoteUser(e);
16844
16862
  if (!i)
16845
- throw new V(O.ERR_INNER, `no remote user(${e}) founded`);
16863
+ throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16846
16864
  if (typeof t != "number")
16847
- throw new V(O.ERR_INVALID_ARGUMENTS, "volume must be a number");
16865
+ throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
16848
16866
  i.setPlayoutVolume(Math.max(0, Math.min(t, 100)) / 100);
16849
16867
  }
16850
16868
  setAudioProfile(e) {
@@ -16866,7 +16884,7 @@ const z = (K = class extends we {
16866
16884
  return w(this, null, function* () {
16867
16885
  var i, s, a;
16868
16886
  if (this._audioOnlyMode)
16869
- throw new V(O.ERR_INNER, "Cannot set local view in audio only mode");
16887
+ throw new V(U.ERR_INNER, "Cannot set local view in audio only mode");
16870
16888
  (i = this.bizControl) == null || i.setLocalViewConfig(e, t), t === se.AliRtcVideoTrackCamera && ((s = this.publisher) != null && s.hasCamera) ? yield this.startPreview() : t === se.AliRtcVideoTrackScreen && ((a = this.publisher) != null && a.hasScreenShare) && (yield this.startPreviewScreen());
16871
16889
  });
16872
16890
  }
@@ -16899,20 +16917,20 @@ const z = (K = class extends we {
16899
16917
  return w(this, null, function* () {
16900
16918
  var t, i, s, a, c, o, u, h, p, d, f;
16901
16919
  if (this._audioOnlyMode)
16902
- throw new V(O.ERR_INNER, "Cannot enable local video in audio only mode");
16920
+ throw new V(U.ERR_INNER, "Cannot enable local video in audio only mode");
16903
16921
  e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((c = (a = (s = this.publisher) == null ? void 0 : s.publishStreams) == null ? void 0 : a.video) == null || c.disableVideo(), (p = (h = (u = (o = this.publisher) == null ? void 0 : o.publishStreams) == null ? void 0 : u.video) == null ? void 0 : h.videoTrack) == null || p.stop()), yield (d = this.publisher) == null ? void 0 : d.startCameraCapture()) : yield (f = this.publisher) == null ? void 0 : f.stopCameraCapture();
16904
16922
  });
16905
16923
  }
16906
16924
  muteLocalCamera(e) {
16907
16925
  return w(this, null, function* () {
16908
16926
  var t;
16909
- this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteVideo : oe.UnmuteVideo), (t = this.publisher) == null || t.muteLocalCamera(e);
16927
+ this.isPublishing && this.onLocalDeviceStatusChange(e ? ce.MuteVideo : ce.UnmuteVideo), (t = this.publisher) == null || t.muteLocalCamera(e);
16910
16928
  });
16911
16929
  }
16912
16930
  muteLocalScreen(e) {
16913
16931
  return w(this, null, function* () {
16914
16932
  var t;
16915
- this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteScreen : oe.UnmuteScreen), (t = this.publisher) == null || t.muteLocalScreen(e);
16933
+ this.isPublishing && this.onLocalDeviceStatusChange(e ? ce.MuteScreen : ce.UnmuteScreen), (t = this.publisher) == null || t.muteLocalScreen(e);
16916
16934
  });
16917
16935
  }
16918
16936
  setRemoteViewConfig(e, t, i) {
@@ -16933,7 +16951,7 @@ const z = (K = class extends we {
16933
16951
  return w(this, null, function* () {
16934
16952
  var s, a, c, o, u, h, p, d, f, g, l, S, v;
16935
16953
  if (this._audioOnlyMode)
16936
- throw new V(O.ERR_INNER, "Cannot switch camera in audio only mode");
16954
+ throw new V(U.ERR_INNER, "Cannot switch camera in audio only mode");
16937
16955
  const i = {};
16938
16956
  if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? ai.CAMERA_FRONT : ai.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((a = this.publisher) == null ? void 0 : a.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
16939
16957
  (u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (p = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : p.video) == null || d.disableVideo(), (S = (l = (g = (f = this.publisher) == null ? void 0 : f.publishStreams) == null ? void 0 : g.video) == null ? void 0 : l.videoTrack) == null || S.stop());
@@ -16956,7 +16974,7 @@ const z = (K = class extends we {
16956
16974
  return w(this, null, function* () {
16957
16975
  var e, t;
16958
16976
  if (this._audioOnlyMode)
16959
- throw new V(O.ERR_INNER, "Cannot start preview camera in audio only mode");
16977
+ throw new V(U.ERR_INNER, "Cannot start preview camera in audio only mode");
16960
16978
  (e = this.publisher) != null && e.hasCamera || (yield this.enableLocalVideo(!0)), yield (t = this.publisher) == null ? void 0 : t.previewAll({
16961
16979
  screen: !1
16962
16980
  });
@@ -16966,7 +16984,7 @@ const z = (K = class extends we {
16966
16984
  return w(this, null, function* () {
16967
16985
  var t, i;
16968
16986
  if (this._audioOnlyMode)
16969
- throw new V(O.ERR_INNER, "Cannot start preview screen share in audio only mode");
16987
+ throw new V(U.ERR_INNER, "Cannot start preview screen share in audio only mode");
16970
16988
  (t = this.publisher) != null && t.hasScreenShare || (yield this.startScreenShare(e)), yield (i = this.publisher) == null ? void 0 : i.previewAll({
16971
16989
  primary: !1
16972
16990
  });
@@ -17059,7 +17077,7 @@ const z = (K = class extends we {
17059
17077
  return w(this, null, function* () {
17060
17078
  var s;
17061
17079
  if (!this.publisher || !this.isPublishing)
17062
- throw new V(O.ERR_INNER, "you should publish first");
17080
+ throw new V(U.ERR_INNER, "you should publish first");
17063
17081
  return this.slsReporter.reportSEIMessage(i, e.byteLength, t, 0, !1), (s = this.publisher) == null ? void 0 : s.sendSEI(e, t, i);
17064
17082
  });
17065
17083
  }
@@ -17178,12 +17196,12 @@ m(K, "isDualVideoStreamSupported", Vr.isSupport), /**
17178
17196
  * @returns {Promise<string[]>}
17179
17197
  */
17180
17198
  m(K, "getCameraList", () => w(K, null, function* () {
17181
- return (yield ce.getCameraList()).filter((t) => t.deviceId);
17199
+ return (yield oe.getCameraList()).filter((t) => t.deviceId);
17182
17200
  })), m(K, "getMicrophoneList", () => w(K, null, function* () {
17183
- return (yield ce.getMicList()).filter((t) => t.deviceId);
17201
+ return (yield oe.getMicList()).filter((t) => t.deviceId);
17184
17202
  })), m(K, "getSpeakerList", () => w(K, null, function* () {
17185
- return (yield ce.getSpeakerList()).filter((t) => t.deviceId);
17186
- })), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", St), m(K, "AliRtcSdkClientRole", Dt), m(K, "AliRtcVideoStreamType", Re), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", qt), m(K, "AliRtcPublishState", Z), m(K, "AliRtcSubscribeState", de), m(K, "AliRtcRawDataStreamType", Ee), m(K, "AliRtcLogLevel", on), m(K, "AliRtcEngineLocalDeviceType", ct), m(K, "AliRtcEngineLocalDeviceExceptionType", ye), m(K, "AliRtcConnectionStatus", he), m(K, "AliRtcConnectionStatusChangeReason", Ht), m(K, "AliRtcPlugin", Kt), m(K, "AliRtcPluginTrackType", Ai), m(K, "AliRtcLiveTranscodingParam", Br), m(K, "AliRtcLiveTranscodingEncodeParam", fn), m(K, "AliRtcLiveTranscodingMixParam", Tc), m(K, "AliRtcLiveTranscodingSingleParam", Pc), m(K, "AliRtcTranscodingClockWidget", kc), m(K, "AliRtcTranscodingImage", An), m(K, "AliRtcTranscodingText", Bc), m(K, "AliRtcTranscodingUser", Mc), m(K, "AliRtcLiveTranscodingMixMode", Si), m(K, "AliRtcLiveTranscodingStreamType", cn), m(K, "AliRtcLiveTranscodingSourceType", si), m(K, "AliRtcLiveTranscodingTaskProfile", un), m(K, "AliRtcLiveTranscodingAudioSampleRate", Xr), m(K, "AliRtcLiveTranscodingSegmentType", vi), m(K, "AliRtcLiveTranscodingFontType", _i), m(K, "AliRtcLiveTranscodingCropMode", hn), m(K, "AliRtcLiveTranscodingMediaProcessMode", Yr), m(K, "AliRtcLiveTranscodingState", dn), m(K, "AliRtcLiveTranscodingErrorCode", ot), m(K, "AliRtcTrascodingPublishTaskStatus", ln), m(K, "AliRtcDataChannelMsg", Wt), m(K, "AliRtcDataMsgType", vn), m(K, "Plugin", Kt), K);
17203
+ return (yield oe.getSpeakerList()).filter((t) => t.deviceId);
17204
+ })), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", St), m(K, "AliRtcSdkClientRole", Dt), m(K, "AliRtcVideoStreamType", Re), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", qt), m(K, "AliRtcPublishState", Z), m(K, "AliRtcSubscribeState", de), m(K, "AliRtcRawDataStreamType", Ee), m(K, "AliRtcLogLevel", on), m(K, "AliRtcEngineLocalDeviceType", ut), m(K, "AliRtcEngineLocalDeviceExceptionType", ye), m(K, "AliRtcConnectionStatus", he), m(K, "AliRtcConnectionStatusChangeReason", Ht), m(K, "AliRtcPlugin", Kt), m(K, "AliRtcPluginTrackType", Ai), m(K, "AliRtcLiveTranscodingParam", Br), m(K, "AliRtcLiveTranscodingEncodeParam", fn), m(K, "AliRtcLiveTranscodingMixParam", Tc), m(K, "AliRtcLiveTranscodingSingleParam", Pc), m(K, "AliRtcTranscodingClockWidget", kc), m(K, "AliRtcTranscodingImage", An), m(K, "AliRtcTranscodingText", Bc), m(K, "AliRtcTranscodingUser", Mc), m(K, "AliRtcLiveTranscodingMixMode", Si), m(K, "AliRtcLiveTranscodingStreamType", cn), m(K, "AliRtcLiveTranscodingSourceType", si), m(K, "AliRtcLiveTranscodingTaskProfile", un), m(K, "AliRtcLiveTranscodingAudioSampleRate", Xr), m(K, "AliRtcLiveTranscodingSegmentType", vi), m(K, "AliRtcLiveTranscodingFontType", _i), m(K, "AliRtcLiveTranscodingCropMode", hn), m(K, "AliRtcLiveTranscodingMediaProcessMode", Yr), m(K, "AliRtcLiveTranscodingState", dn), m(K, "AliRtcLiveTranscodingErrorCode", ct), m(K, "AliRtcTrascodingPublishTaskStatus", ln), m(K, "AliRtcDataChannelMsg", Wt), m(K, "AliRtcDataMsgType", vn), m(K, "Plugin", Kt), K);
17187
17205
  W([
17188
17206
  D()
17189
17207
  ], z.prototype, "destroy", 1);
@@ -17200,70 +17218,70 @@ W([
17200
17218
  D()
17201
17219
  ], z.prototype, "resumeSubList", 1);
17202
17220
  W([
17203
- D(U)
17221
+ D(H)
17204
17222
  ], z.prototype, "retrySubscribe", 1);
17205
17223
  W([
17206
- D(U)
17224
+ D(H)
17207
17225
  ], z.prototype, "setEnableDualVideoStream", 1);
17208
17226
  W([
17209
- D(U)
17227
+ D(H)
17210
17228
  ], z.prototype, "setChannelProfile", 1);
17211
17229
  W([
17212
- D(U)
17230
+ D(H)
17213
17231
  ], z.prototype, "setClientRole", 1);
17214
17232
  W([
17215
- D(U)
17233
+ D(H)
17216
17234
  ], z.prototype, "setAudioOnlyMode", 1);
17217
17235
  W([
17218
17236
  D()
17219
17237
  ], z.prototype, "clearCheckAuthInfoTimer", 1);
17220
17238
  W([
17221
- D(U)
17239
+ D(H)
17222
17240
  ], z.prototype, "joinChannel", 1);
17223
17241
  W([
17224
- D(U)
17242
+ D(H)
17225
17243
  ], z.prototype, "leaveChannel", 1);
17226
17244
  W([
17227
- D(U)
17245
+ D(H)
17228
17246
  ], z.prototype, "refreshAuthInfo", 1);
17229
17247
  W([
17230
- D(U)
17248
+ D(H)
17231
17249
  ], z.prototype, "publishLocalAudioStream", 1);
17232
17250
  W([
17233
- D(U)
17251
+ D(H)
17234
17252
  ], z.prototype, "setDefaultSubscribeAllRemoteAudioStreams", 1);
17235
17253
  W([
17236
- D(U)
17254
+ D(H)
17237
17255
  ], z.prototype, "subscribeAllRemoteAudioStreams", 1);
17238
17256
  W([
17239
- D(U)
17257
+ D(H)
17240
17258
  ], z.prototype, "subscribeRemoteAudioStream", 1);
17241
17259
  W([
17242
- D(U)
17260
+ D(H)
17243
17261
  ], z.prototype, "resumeRemoteAudioStream", 1);
17244
17262
  W([
17245
- D(U)
17263
+ D(H)
17246
17264
  ], z.prototype, "stopRemoteAudioPlay", 1);
17247
17265
  W([
17248
- D(U)
17266
+ D(H)
17249
17267
  ], z.prototype, "publishLocalVideoStream", 1);
17250
17268
  W([
17251
- D(U)
17269
+ D(H)
17252
17270
  ], z.prototype, "setRemoteDefaultVideoStreamType", 1);
17253
17271
  W([
17254
- D(U)
17272
+ D(H)
17255
17273
  ], z.prototype, "setRemoteUserVideoStreamType", 1);
17256
17274
  W([
17257
- D(U)
17275
+ D(H)
17258
17276
  ], z.prototype, "setDefaultSubscribeAllRemoteVideoStreams", 1);
17259
17277
  W([
17260
- D(U)
17278
+ D(H)
17261
17279
  ], z.prototype, "subscribeAllRemoteVideoStreams", 1);
17262
17280
  W([
17263
- D(U)
17281
+ D(H)
17264
17282
  ], z.prototype, "subscribeRemoteMediaStream", 1);
17265
17283
  W([
17266
- D(U)
17284
+ D(H)
17267
17285
  ], z.prototype, "resumeRemoteMediaStream", 1);
17268
17286
  W([
17269
17287
  D(([r]) => [`${r == null ? void 0 : r.audio}`])
@@ -17272,76 +17290,76 @@ W([
17272
17290
  D()
17273
17291
  ], z.prototype, "stopScreenShare", 1);
17274
17292
  W([
17275
- D(U)
17293
+ D(H)
17276
17294
  ], z.prototype, "setScreenShareConfiguration", 1);
17277
17295
  W([
17278
- D(U)
17296
+ D(H)
17279
17297
  ], z.prototype, "setScreenShareContentHint", 1);
17280
17298
  W([
17281
17299
  D()
17282
17300
  ], z.prototype, "publishLocalScreenShareStream", 1);
17283
17301
  W([
17284
- D(U)
17302
+ D(H)
17285
17303
  ], z.prototype, "setAudioShareVolume", 1);
17286
17304
  W([
17287
- D(U)
17305
+ D(H)
17288
17306
  ], z.prototype, "enableAudioVolumeIndication", 1);
17289
17307
  W([
17290
- D(U)
17308
+ D(H)
17291
17309
  ], z.prototype, "muteLocalMic", 1);
17292
17310
  W([
17293
- D(U)
17311
+ D(H)
17294
17312
  ], z.prototype, "muteRemoteAudioPlaying", 1);
17295
17313
  W([
17296
- D(U)
17314
+ D(H)
17297
17315
  ], z.prototype, "muteAllRemoteAudioPlaying", 1);
17298
17316
  W([
17299
- D(U)
17317
+ D(H)
17300
17318
  ], z.prototype, "startAudioCapture", 1);
17301
17319
  W([
17302
17320
  D()
17303
17321
  ], z.prototype, "stopAudioCapture", 1);
17304
17322
  W([
17305
- D(U)
17323
+ D(H)
17306
17324
  ], z.prototype, "switchMicrophone", 1);
17307
17325
  W([
17308
- D(U)
17326
+ D(H)
17309
17327
  ], z.prototype, "setRecordingVolume", 1);
17310
17328
  W([
17311
- D(U)
17329
+ D(H)
17312
17330
  ], z.prototype, "setPlayoutVolume", 1);
17313
17331
  W([
17314
- D(U)
17332
+ D(H)
17315
17333
  ], z.prototype, "setRemoteAudioVolume", 1);
17316
17334
  W([
17317
- D(U)
17335
+ D(H)
17318
17336
  ], z.prototype, "setAudioProfile", 1);
17319
17337
  W([
17320
- D(U)
17338
+ D(H)
17321
17339
  ], z.prototype, "getAudioTrack", 1);
17322
17340
  W([
17323
- D(U)
17341
+ D(H)
17324
17342
  ], z.prototype, "setLocalViewConfig", 1);
17325
17343
  W([
17326
- D(U)
17344
+ D(H)
17327
17345
  ], z.prototype, "setCameraCapturerConfiguration", 1);
17328
17346
  W([
17329
- D(U)
17347
+ D(H)
17330
17348
  ], z.prototype, "setCameraCapturerContentHint", 1);
17331
17349
  W([
17332
- D(U)
17350
+ D(H)
17333
17351
  ], z.prototype, "enableLocalVideo", 1);
17334
17352
  W([
17335
- D(U)
17353
+ D(H)
17336
17354
  ], z.prototype, "muteLocalCamera", 1);
17337
17355
  W([
17338
- D(U)
17356
+ D(H)
17339
17357
  ], z.prototype, "muteLocalScreen", 1);
17340
17358
  W([
17341
- D(U)
17359
+ D(H)
17342
17360
  ], z.prototype, "setRemoteViewConfig", 1);
17343
17361
  W([
17344
- D(U)
17362
+ D(H)
17345
17363
  ], z.prototype, "switchCamera", 1);
17346
17364
  W([
17347
17365
  D()
@@ -17371,7 +17389,7 @@ W([
17371
17389
  D()
17372
17390
  ], z.prototype, "stopPublishLiveStreamWithTaskId", 1);
17373
17391
  W([
17374
- D(U)
17392
+ D(H)
17375
17393
  ], z.prototype, "setEnableMediaExtensionMsg", 1);
17376
17394
  W([
17377
17395
  D(([r, n, e]) => [r.byteLength, n, e])
@@ -17380,25 +17398,25 @@ W([
17380
17398
  D(([r, n]) => [r.name || "", n])
17381
17399
  ], z.prototype, "enablePlugin", 1);
17382
17400
  W([
17383
- D(U)
17401
+ D(H)
17384
17402
  ], z.prototype, "removePlugin", 1);
17385
17403
  W([
17386
- D(U)
17404
+ D(H)
17387
17405
  ], z.prototype, "setPluginOption", 1);
17388
17406
  W([
17389
- D(U)
17407
+ D(H)
17390
17408
  ], z.prototype, "getPluginOption", 1);
17391
17409
  W([
17392
- D(U)
17410
+ D(H)
17393
17411
  ], z.prototype, "setBeautyEffect", 1);
17394
17412
  W([
17395
- D(U)
17413
+ D(H)
17396
17414
  ], z.prototype, "enableBackgroundExchange", 1);
17397
17415
  W([
17398
- D(U)
17416
+ D(H)
17399
17417
  ], z.prototype, "enableBackgroundBlur", 1);
17400
17418
  W([
17401
- D(U)
17419
+ D(H)
17402
17420
  ], z.prototype, "setParameter", 1);
17403
17421
  W([
17404
17422
  D(([r]) => {
@@ -17407,7 +17425,7 @@ W([
17407
17425
  })
17408
17426
  ], z.prototype, "sendDataChannelMessage", 1);
17409
17427
  W([
17410
- D(U)
17428
+ D(H)
17411
17429
  ], z, "setLogLevel", 1);
17412
17430
  let _n = z;
17413
17431
  var Za;
@@ -17425,12 +17443,12 @@ export {
17425
17443
  Wt as AliRtcDataChannelMsg,
17426
17444
  vn as AliRtcDataMsgType,
17427
17445
  ye as AliRtcEngineLocalDeviceExceptionType,
17428
- ct as AliRtcEngineLocalDeviceType,
17429
- O as AliRtcErrorCode,
17446
+ ut as AliRtcEngineLocalDeviceType,
17447
+ U as AliRtcErrorCode,
17430
17448
  Xr as AliRtcLiveTranscodingAudioSampleRate,
17431
17449
  hn as AliRtcLiveTranscodingCropMode,
17432
17450
  fn as AliRtcLiveTranscodingEncodeParam,
17433
- ot as AliRtcLiveTranscodingErrorCode,
17451
+ ct as AliRtcLiveTranscodingErrorCode,
17434
17452
  _i as AliRtcLiveTranscodingFontType,
17435
17453
  Yr as AliRtcLiveTranscodingMediaProcessMode,
17436
17454
  Si as AliRtcLiveTranscodingMixMode,