aliyun-rtc-sdk 6.13.3 → 6.13.4-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.
@@ -8,7 +8,7 @@ var Ti = (r, n, e) => n in r ? Fn(r, n, { enumerable: !0, configurable: !0, writ
8
8
  for (var e of hi(n))
9
9
  fs.call(n, e) && Ti(r, e, n[e]);
10
10
  return r;
11
- }, pt = (r, n) => Vn(r, On(n));
11
+ }, gt = (r, n) => Vn(r, On(n));
12
12
  var Ft = (r, n) => {
13
13
  var e = {};
14
14
  for (var t in r)
@@ -654,8 +654,8 @@ function $n() {
654
654
  return this;
655
655
  },
656
656
  _lg: function(s, a, c, o) {
657
- var u = this, h = u._conf, p = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, g = d.ignoreResErrors, l = d.ignoreUrls, x = d.ignoreApis;
658
- if (u._isRobot || r.ignoreByRule(p, l) || r.ignoreByRule(r.decode(p), l) || s === "error" && (r.ignoreByRule(a.msg, f) || r.ignoreByRule(r.decode(a.msg), f)) || s === "resourceError" && (r.ignoreByRule(a.src, g) || r.ignoreByRule(r.decode(a.src), g)) || s === "api" && (r.ignoreByRule(a.api, x) || r.ignoreByRule(r.decode(a.api), x)) || !u.checkImgUrl(h.imgUrl) || !a || h.disabled || !h.pid || o === 0)
657
+ var u = this, h = u._conf, p = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, g = d.ignoreResErrors, l = d.ignoreUrls, S = d.ignoreApis;
658
+ if (u._isRobot || r.ignoreByRule(p, l) || r.ignoreByRule(r.decode(p), l) || s === "error" && (r.ignoreByRule(a.msg, f) || r.ignoreByRule(r.decode(a.msg), f)) || s === "resourceError" && (r.ignoreByRule(a.src, g) || r.ignoreByRule(r.decode(a.src), g)) || s === "api" && (r.ignoreByRule(a.api, S) || r.ignoreByRule(r.decode(a.api), S)) || !u.checkImgUrl(h.imgUrl) || !a || h.disabled || !h.pid || o === 0)
659
659
  return u;
660
660
  var v = a.dl;
661
661
  if (delete a.dl, a = r.ext({
@@ -681,7 +681,7 @@ function $n() {
681
681
  try {
682
682
  if (!(a = h.beforeReport(a)))
683
683
  return u;
684
- } catch (S) {
684
+ } catch (x) {
685
685
  return u;
686
686
  }
687
687
  return o === 1 ? t(u, a) : c && !u.sampling(c) ? u : t(u, a);
@@ -827,12 +827,12 @@ function Kn() {
827
827
  stack_raw: r.encode(u)
828
828
  },
829
829
  dl: h
830
- }, l = ["tag", "c1", "c2", "c3"], x = 0; x < l.length; x++) {
831
- var v = l[x];
830
+ }, l = ["tag", "c1", "c2", "c3"], S = 0; S < l.length; S++) {
831
+ var v = l[S];
832
832
  a[v] && (g[v] = a[v]);
833
833
  }
834
- var S = (this.getConfig("ignore") || {}).ignoreErrors;
835
- return r.ignoreByRule(g.msg, S) || r.ignoreByRule(r.decode(g.msg), S) ? this : (this.beforeSend && this.beforeSend("error", g), this._lg("error", g, 1));
834
+ var x = (this.getConfig("ignore") || {}).ignoreErrors;
835
+ return r.ignoreByRule(g.msg, x) || r.ignoreByRule(r.decode(g.msg), x) ? this : (this.beforeSend && this.beforeSend("error", g), this._lg("error", g, 1));
836
836
  },
837
837
  behavior: function(s) {
838
838
  if (s) {
@@ -842,7 +842,7 @@ function Kn() {
842
842
  return this.beforeSend && this.beforeSend("behavior", a), this._lg("behavior", a, 1);
843
843
  }
844
844
  },
845
- api: function(s, a, c, o, u, h, p, d, f, g, l, x, v, S, b, y) {
845
+ api: function(s, a, c, o, u, h, p, d, f, g, l, S, v, x, b, y) {
846
846
  if (!s)
847
847
  return r.warn("[retcode] api is null"), this;
848
848
  if (s = typeof s == "string" ? {
@@ -856,9 +856,9 @@ function Kn() {
856
856
  pv_id: d,
857
857
  apiSnapshot: f,
858
858
  domain: g,
859
- flag: x,
859
+ flag: S,
860
860
  tag: v,
861
- c1: S,
861
+ c1: x,
862
862
  c2: b,
863
863
  c3: y
864
864
  } : r.sub(s, e), !r.checkAPI(s.api, !0))
@@ -972,16 +972,16 @@ function Gn() {
972
972
  d[f] = g(l);
973
973
  }
974
974
  }, u = function(d) {
975
- var f, g, l, x, v, S = [];
975
+ var f, g, l, S, v, x = [];
976
976
  if (!d || typeof d.tagName != "string")
977
977
  return "";
978
- if (S.push(d.tagName.toLowerCase()), typeof d.id == "string" && S.push("#".concat(d.id)), typeof (f = d.className) == "string")
978
+ if (x.push(d.tagName.toLowerCase()), typeof d.id == "string" && x.push("#".concat(d.id)), typeof (f = d.className) == "string")
979
979
  for (g = f.split(/\s+/), v = 0; v < g.length; v++)
980
- S.push(".".concat(g[v]));
980
+ x.push(".".concat(g[v]));
981
981
  var b = ["type", "name", "title", "alt", "data-arms-attr"];
982
982
  for (v = 0; v < b.length; v++)
983
- l = b[v], typeof (x = d.getAttribute(l)) == "string" && S.push("[".concat(l, '="').concat(x, '"]'));
984
- return S.join("");
983
+ l = b[v], typeof (S = d.getAttribute(l)) == "string" && x.push("[".concat(l, '="').concat(S, '"]'));
984
+ return x.join("");
985
985
  }, h = function(d, f) {
986
986
  return function(g) {
987
987
  if (g && g !== c) {
@@ -993,20 +993,20 @@ function Gn() {
993
993
  l = "<unknown>";
994
994
  }
995
995
  if (l.length !== 0) {
996
- var x = {
996
+ var S = {
997
997
  type: "ui.".concat(d),
998
998
  data: {
999
999
  message: function(v) {
1000
1000
  if (!v || v.nodeType !== 1)
1001
1001
  return "";
1002
- for (var S = v || null, b = [], y = 0, E = 0, I = 3, A = ""; S && y++ < 5 && !((A = u(S)) === "html" || y > 1 && E + b.length * I + A.length >= 80); )
1003
- b.push(A), E += A.length, S = S.parentNode;
1002
+ for (var x = v || null, b = [], y = 0, E = 0, I = 3, A = ""; x && y++ < 5 && !((A = u(x)) === "html" || y > 1 && E + b.length * I + A.length >= 80); )
1003
+ b.push(A), E += A.length, x = x.parentNode;
1004
1004
  return b.reverse().join(" > ");
1005
1005
  }(l)
1006
1006
  },
1007
1007
  timestamp: Date.now()
1008
1008
  };
1009
- d === "click" ? i && i.addBehavior(x) : d === "keypress" && (a || i && i.addBehavior(x), clearTimeout(a), a = setTimeout(function() {
1009
+ d === "click" ? i && i.addBehavior(S) : d === "keypress" && (a || i && i.addBehavior(S), clearTimeout(a), a = setTimeout(function() {
1010
1010
  a = void 0;
1011
1011
  }, 100));
1012
1012
  }
@@ -1014,30 +1014,30 @@ function Gn() {
1014
1014
  };
1015
1015
  }, p = function() {
1016
1016
  if (function() {
1017
- var l = e && e.chrome, x = l && l.app && l.app.runtime, v = "history" in e && !!e.history.pushState && !!e.history.replaceState;
1018
- return !x && v;
1017
+ var l = e && e.chrome, S = l && l.app && l.app.runtime, v = "history" in e && !!e.history.pushState && !!e.history.replaceState;
1018
+ return !S && v;
1019
1019
  }()) {
1020
- var d = function(l, x) {
1020
+ var d = function(l, S) {
1021
1021
  var v = {
1022
1022
  type: "navigation",
1023
1023
  data: {
1024
1024
  from: l,
1025
- to: x
1025
+ to: S
1026
1026
  }
1027
1027
  };
1028
- i && i.addBehavior(v), s = x;
1028
+ i && i.addBehavior(v), s = S;
1029
1029
  }, f = e.onpopstate;
1030
1030
  e.onpopstate = function() {
1031
- for (var l = arguments.length, x = new Array(l), v = 0; v < l; v++)
1032
- x[v] = arguments[v];
1033
- var S = e.location.href;
1034
- if (d(s, S), f)
1035
- return f.apply(this, x);
1031
+ for (var l = arguments.length, S = new Array(l), v = 0; v < l; v++)
1032
+ S[v] = arguments[v];
1033
+ var x = e.location.href;
1034
+ if (d(s, x), f)
1035
+ return f.apply(this, S);
1036
1036
  };
1037
1037
  var g = function(l) {
1038
1038
  return function() {
1039
- for (var x = arguments.length, v = new Array(x), S = 0; S < x; S++)
1040
- v[S] = arguments[S];
1039
+ for (var S = arguments.length, v = new Array(S), x = 0; x < S; x++)
1040
+ v[x] = arguments[x];
1041
1041
  var b = v.length > 2 ? v[2] : void 0;
1042
1042
  return b && d(s, String(b)), l.apply(this, v);
1043
1043
  };
@@ -1102,20 +1102,20 @@ function Gn() {
1102
1102
  var g = ["debug", "info", "warn", "log", "error", "assert"];
1103
1103
  r.isArray(f) && (g = f);
1104
1104
  for (var l = 0; l < g.length; l++) {
1105
- var x = g[l];
1106
- x && r.isString(x) && e.console[x] && typeof e.console[x] == "function" && o(e.console, x, function(v) {
1107
- var S = x;
1105
+ var S = g[l];
1106
+ S && r.isString(S) && e.console[S] && typeof e.console[S] == "function" && o(e.console, S, function(v) {
1107
+ var x = S;
1108
1108
  return function() {
1109
1109
  for (var b = arguments.length, y = new Array(b), E = 0; E < b; E++)
1110
1110
  y[E] = arguments[E];
1111
1111
  var I = {
1112
1112
  type: "console",
1113
1113
  data: {
1114
- level: S,
1114
+ level: x,
1115
1115
  message: y
1116
1116
  }
1117
1117
  };
1118
- if (i && i.addBehavior(I), S === "error")
1118
+ if (i && i.addBehavior(I), x === "error")
1119
1119
  for (var A = 0; A < y.length; A++) {
1120
1120
  var C = y[A];
1121
1121
  C && C.message && C.stack && i && i.errorHandler(new ErrorEvent("error", {
@@ -1199,10 +1199,10 @@ function Yn() {
1199
1199
  ready: [12, 1],
1200
1200
  load: [14, 1]
1201
1201
  }, function(g, l) {
1202
- var x = a[e[g[1]]], v = a[e[g[0]]];
1203
- if (o === 2 || x > 0 && v > 0) {
1204
- var S = Math.round(v - x);
1205
- S >= 0 && S < 6e5 && (s[l] = S);
1202
+ var S = a[e[g[1]]], v = a[e[g[0]]];
1203
+ if (o === 2 || S > 0 && v > 0) {
1204
+ var x = Math.round(v - S);
1205
+ x >= 0 && x < 6e5 && (s[l] = x);
1206
1206
  }
1207
1207
  });
1208
1208
  var h = t.navigator.connection, p = i.navigation || {};
@@ -1222,8 +1222,8 @@ function Zn() {
1222
1222
  sr: screen.width + "x" + screen.height,
1223
1223
  vp: o + "x" + u,
1224
1224
  ct: h ? h.effectiveType || h.type : ""
1225
- }, d = {}, f = function(l, x, v, S, b) {
1226
- if (x === void 0) {
1225
+ }, d = {}, f = function(l, S, v, x, b) {
1226
+ if (S === void 0) {
1227
1227
  var y, E;
1228
1228
  if (!d[l]) {
1229
1229
  y = new RegExp(l + "=([^;]+)");
@@ -1236,7 +1236,7 @@ function Zn() {
1236
1236
  }
1237
1237
  return d[l];
1238
1238
  }
1239
- var I = l + "=" + x;
1239
+ var I = l + "=" + S;
1240
1240
  I += "; path=/", v && (I += "; max-age=" + v);
1241
1241
  try {
1242
1242
  return e.cookie = I, !!e.cookie;
@@ -1244,8 +1244,8 @@ function Zn() {
1244
1244
  return t.warn("[retcode] can not set cookie: ", A), !1;
1245
1245
  }
1246
1246
  }, g = function(l) {
1247
- var x = l._conf.uid || f("_nk_") || f("_bl_uid");
1248
- return !x && (x = t.uu(), !f("_bl_uid", x, 15552e3)) ? null : x;
1247
+ var S = l._conf.uid || f("_nk_") || f("_bl_uid");
1248
+ return !S && (S = t.uu(), !f("_bl_uid", S, 15552e3)) ? null : S;
1249
1249
  };
1250
1250
  return t.ext(r.prototype, {
1251
1251
  activeErrHandler: function(l) {
@@ -1254,79 +1254,79 @@ function Zn() {
1254
1254
  errorHandler: function(l) {
1255
1255
  if (!l)
1256
1256
  return this;
1257
- var x = l.type;
1258
- if (x === "error") {
1257
+ var S = l.type;
1258
+ if (S === "error") {
1259
1259
  var v = l.target || l.srcElement;
1260
1260
  !v || !v.tagName || l.message || l.filename || l.lineno || l.colno ? this.error(l.error || {
1261
1261
  message: l.message
1262
1262
  }, l) : this.resourceErrorHandler(l);
1263
1263
  } else
1264
- x === "unhandledrejection" && t.T(l.reason, "Error") && t.checkAutoError(l.reason) && this.error(l.reason);
1264
+ S === "unhandledrejection" && t.T(l.reason, "Error") && t.checkAutoError(l.reason) && this.error(l.reason);
1265
1265
  try {
1266
1266
  this.getConfig("behavior") && this.reportBehavior && this.reportBehavior();
1267
- } catch (S) {
1267
+ } catch (x) {
1268
1268
  }
1269
1269
  return this;
1270
1270
  },
1271
1271
  resourceErrorHandler: function(l) {
1272
- var x = this, v = l.target || l.srcElement;
1272
+ var S = this, v = l.target || l.srcElement;
1273
1273
  try {
1274
- var S = x.getSrc(v), b = typeof v.tagName == "string" ? v.tagName.toLowerCase() : "", y = x.getXPath(v, 5), E = t.getURL(S), I = {
1275
- src: S && S.substring(0, 1e3),
1274
+ var x = S.getSrc(v), b = typeof v.tagName == "string" ? v.tagName.toLowerCase() : "", y = S.getXPath(v, 5), E = t.getURL(x), I = {
1275
+ src: x && x.substring(0, 1e3),
1276
1276
  node_name: b,
1277
1277
  xpath: y,
1278
- res_type: t.getResType(b, S),
1278
+ res_type: t.getResType(b, x),
1279
1279
  res_name: E.path,
1280
1280
  domain: E.domain
1281
1281
  };
1282
- return x._conf.enableResource && x.fixResourceStatus && l.timeStamp && x.fixResourceStatus({
1283
- src: S,
1282
+ return S._conf.enableResource && S.fixResourceStatus && l.timeStamp && S.fixResourceStatus({
1283
+ src: x,
1284
1284
  node_name: b,
1285
- res_type: t.getResType(b, S),
1285
+ res_type: t.getResType(b, x),
1286
1286
  timeStamp: l.timeStamp,
1287
1287
  domain: E.domain
1288
- }), x._lg("resourceError", I), x;
1288
+ }), S._lg("resourceError", I), S;
1289
1289
  } catch (A) {
1290
- return t.warn("[ARMS] resourceErrorHandler error :", A), x;
1290
+ return t.warn("[ARMS] resourceErrorHandler error :", A), S;
1291
1291
  }
1292
1292
  },
1293
1293
  getSrc: function(l) {
1294
- var x = l.src || l.href;
1294
+ var S = l.src || l.href;
1295
1295
  try {
1296
- if (!x) {
1297
- var v = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") === "object", S = l.getAttribute("classid") && l.getAttribute("classid").toLowerCase() === "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" || l.getAttribute("type") === "application/x-shockwave-flash";
1298
- v && S && (x = l.getAttribute("data") || l.getAttribute("codebase")), x || (x = l.outerHTML || l.innerHTML);
1296
+ if (!S) {
1297
+ var v = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") === "object", x = l.getAttribute("classid") && l.getAttribute("classid").toLowerCase() === "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" || l.getAttribute("type") === "application/x-shockwave-flash";
1298
+ v && x && (S = l.getAttribute("data") || l.getAttribute("codebase")), S || (S = l.outerHTML || l.innerHTML);
1299
1299
  }
1300
1300
  } catch (b) {
1301
- x = "";
1301
+ S = "";
1302
1302
  }
1303
- return x;
1303
+ return S;
1304
1304
  },
1305
- getXPath: function(l, x) {
1306
- var v = l.id ? "#" + l.id : "", S = typeof l.className == "string" ? "." + l.className.split(" ").join(".") : "", b = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") + v + S;
1307
- return l.parentNode && l.parentNode.tagName && x - 1 != 0 ? this.getXPath(l.parentNode, x - 1) + " > " + b : b;
1305
+ getXPath: function(l, S) {
1306
+ var v = l.id ? "#" + l.id : "", x = typeof l.className == "string" ? "." + l.className.split(" ").join(".") : "", b = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") + v + x;
1307
+ return l.parentNode && l.parentNode.tagName && S - 1 != 0 ? this.getXPath(l.parentNode, S - 1) + " > " + b : b;
1308
1308
  },
1309
1309
  sendPerformance: function(l) {
1310
- var x = this;
1311
- x.onReady(function() {
1310
+ var S = this;
1311
+ S.onReady(function() {
1312
1312
  var v = s();
1313
- v && v.load && v.load > 0 && (v.page = x.getPage(!0), l && (v = t.ext(v, l)), v.autoSend = !0, x.performance(v));
1313
+ v && v.load && v.load > 0 && (v.page = S.getPage(!0), l && (v = t.ext(v, l)), v.autoSend = !0, S.performance(v));
1314
1314
  });
1315
1315
  },
1316
1316
  sendResources: function(l) {
1317
- var x = this;
1318
- x.onReady(function() {
1317
+ var S = this;
1318
+ S.onReady(function() {
1319
1319
  var v = i();
1320
- v && v.load && v.load > 0 && (v.load && v.load <= 2e3 || v.load && v.load <= 8e3 && Math.random() > 0.05 || (v.page = x.getPage(!0), v.dl = location.href, l && (v = t.ext(v, l)), x._lg("res", v, x.getConfig("sample"))));
1320
+ v && v.load && v.load > 0 && (v.load && v.load <= 2e3 || v.load && v.load <= 8e3 && Math.random() > 0.05 || (v.page = S.getPage(!0), v.dl = location.href, l && (v = t.ext(v, l)), S._lg("res", v, S.getConfig("sample"))));
1321
1321
  });
1322
1322
  },
1323
1323
  sendPV: function() {
1324
1324
  var l = this;
1325
1325
  l.onReady(function() {
1326
- var x = function(v) {
1327
- var S = g(v), b = n.devicePixelRatio || 1;
1326
+ var S = function(v) {
1327
+ var x = g(v), b = n.devicePixelRatio || 1;
1328
1328
  return {
1329
- uid: S,
1329
+ uid: x,
1330
1330
  dt: e.title,
1331
1331
  dl: location.href,
1332
1332
  dr: e.referrer,
@@ -1336,49 +1336,49 @@ function Zn() {
1336
1336
  begin: Date.now()
1337
1337
  };
1338
1338
  }(l);
1339
- x && x.uid && l._lg("pv", x, l.getConfig("pvSample"));
1339
+ S && S.uid && l._lg("pv", S, l.getConfig("pvSample"));
1340
1340
  });
1341
1341
  },
1342
1342
  commonInfo: function() {
1343
1343
  return p.uid = g(this), p.sid = function(l) {
1344
1344
  if (l.session)
1345
1345
  return l.session;
1346
- var x;
1346
+ var S;
1347
1347
  try {
1348
1348
  if (typeof window == "object" && typeof sessionStorage == "object" && typeof sessionStorage.getItem == "function")
1349
- return typeof (x = sessionStorage.getItem("_bl_sid")) == "string" ? (l.session = x, x) : (x = t.uu(), l.session = x, typeof sessionStorage.setItem == "function" && sessionStorage.setItem("_bl_sid", x), x);
1349
+ return typeof (S = sessionStorage.getItem("_bl_sid")) == "string" ? (l.session = S, S) : (S = t.uu(), l.session = S, typeof sessionStorage.setItem == "function" && sessionStorage.setItem("_bl_sid", S), S);
1350
1350
  } catch (v) {
1351
1351
  t.warn("[ARMS] getSid error :", v);
1352
1352
  }
1353
- return l.session = x = t.uu(), x;
1353
+ return l.session = S = t.uu(), S;
1354
1354
  }(this), p;
1355
1355
  },
1356
1356
  handleUnload: function(l) {
1357
- var x = Date.now();
1358
- if (x - this._lastUnload < 200)
1357
+ var S = Date.now();
1358
+ if (S - this._lastUnload < 200)
1359
1359
  return this;
1360
- this._lastUnload = x, this.sendHealth(l), this.speedCache && (this._lg("speed", this.speedCache), this.speedCache = null, clearTimeout(this.speedTimmer)), this._conf && this._conf.enableResource && this.resourceComboReport(), this.clear(!0);
1360
+ this._lastUnload = S, this.sendHealth(l), this.speedCache && (this._lg("speed", this.speedCache), this.speedCache = null, clearTimeout(this.speedTimmer)), this._conf && this._conf.enableResource && this.resourceComboReport(), this.clear(!0);
1361
1361
  },
1362
1362
  bindHashChange: function(l) {
1363
- var x = this;
1364
- if (!l ^ x.hashChangeHandler)
1365
- return x;
1366
- l ? (x.hackHistoryState(), x.hashChangeHandler = function(v) {
1367
- var S = x._conf.parseHash(location.hash);
1368
- S && x.setPage(S, v !== !1);
1369
- }, x.stateChangeHandler = function(v) {
1370
- var S = x._conf.parseHash(v.detail);
1371
- S && x.setPage(S);
1372
- }, t.on(n, "hashchange", x.hashChangeHandler), t.on(n, "historystatechange", x.stateChangeHandler), x.hashChangeHandler(!1)) : (t.off(n, "hashchange", x.hashChangeHandler), t.off(n, "historystatechange", x.stateChangeHandler), x.hashChangeHandler = null, x.stateChangeHandler = null);
1363
+ var S = this;
1364
+ if (!l ^ S.hashChangeHandler)
1365
+ return S;
1366
+ l ? (S.hackHistoryState(), S.hashChangeHandler = function(v) {
1367
+ var x = S._conf.parseHash(location.hash);
1368
+ x && S.setPage(x, v !== !1);
1369
+ }, S.stateChangeHandler = function(v) {
1370
+ var x = S._conf.parseHash(v.detail);
1371
+ x && S.setPage(x);
1372
+ }, t.on(n, "hashchange", S.hashChangeHandler), t.on(n, "historystatechange", S.stateChangeHandler), S.hashChangeHandler(!1)) : (t.off(n, "hashchange", S.hashChangeHandler), t.off(n, "historystatechange", S.stateChangeHandler), S.hashChangeHandler = null, S.stateChangeHandler = null);
1373
1373
  },
1374
1374
  initHandler: function() {
1375
1375
  var l = this;
1376
1376
  if (l.hasInitHandler)
1377
1377
  return l;
1378
- var x = l._conf;
1378
+ var S = l._conf;
1379
1379
  return t.on(n, "beforeunload", function() {
1380
1380
  l.handleUnload(0);
1381
- }), l.bindHashChange(x.enableSPA), l.activeErrHandler(!1), l.hasInitHandler = !0, l;
1381
+ }), l.bindHashChange(S.enableSPA), l.activeErrHandler(!1), l.hasInitHandler = !0, l;
1382
1382
  }
1383
1383
  }), t.on(n, "error", function(l) {
1384
1384
  a && a.errorHandler(l);
@@ -1397,10 +1397,10 @@ function Qn() {
1397
1397
  function s(p, d, f) {
1398
1398
  var g = 0, l = p.tagName;
1399
1399
  if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
1400
- var x = p.children ? p.children.length : 0;
1401
- if (x > 0)
1402
- for (var v = p.children, S = x - 1; S >= 0; S--)
1403
- g += s(v[S], d + 1, g > 0);
1400
+ var S = p.children ? p.children.length : 0;
1401
+ if (S > 0)
1402
+ for (var v = p.children, x = S - 1; x >= 0; x--)
1403
+ g += s(v[x], d + 1, g > 0);
1404
1404
  if (g <= 0 && !f && !(p.getBoundingClientRect && p.getBoundingClientRect().top < c))
1405
1405
  return 0;
1406
1406
  g += 1 + 0.5 * d;
@@ -1427,10 +1427,10 @@ function Qn() {
1427
1427
  var f = t.MutationObserver;
1428
1428
  return (u = new f(function() {
1429
1429
  (function(g) {
1430
- var l = Date.now() - g, x = i.querySelector("body");
1431
- if (x) {
1430
+ var l = Date.now() - g, S = i.querySelector("body");
1431
+ if (S) {
1432
1432
  var v = 0;
1433
- v += s(x, 1, !1), o.push({
1433
+ v += s(S, 1, !1), o.push({
1434
1434
  score: v,
1435
1435
  t: l
1436
1436
  });
@@ -1450,17 +1450,17 @@ function Qn() {
1450
1450
  endObserving: function(p, d) {
1451
1451
  var f = this;
1452
1452
  if (u && h)
1453
- if (f.fmpTimmer && (clearTimeout(f.fmpTimmer), f.fmpTimmer = null), d || !function(v, S) {
1453
+ if (f.fmpTimmer && (clearTimeout(f.fmpTimmer), f.fmpTimmer = null), d || !function(v, x) {
1454
1454
  var b = Date.now() - v;
1455
- return !(b > S || b - (o && o.length && o[o.length - 1].t || 0) > 2 * n);
1455
+ return !(b > x || b - (o && o.length && o[o.length - 1].t || 0) > 2 * n);
1456
1456
  }(f._startTime, p)) {
1457
1457
  u.disconnect(), h = 0, o = a(o);
1458
1458
  for (var g = null, l = 1; l < o.length; l++)
1459
1459
  if (o[l].t >= o[l - 1].t) {
1460
- var x = o[l].score - o[l - 1].score;
1461
- (!g || g.rate <= x) && (g = {
1460
+ var S = o[l].score - o[l - 1].score;
1461
+ (!g || g.rate <= S) && (g = {
1462
1462
  t: o[l].t,
1463
- rate: x
1463
+ rate: S
1464
1464
  });
1465
1465
  }
1466
1466
  g && g.t > 0 && g.t < 36e5 ? f.sendPerformance({
@@ -1477,12 +1477,12 @@ 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, x, v, S, b, y, E, I) {
1480
+ var e = Ne(), 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;
1484
1484
  var L = C.code || l, _ = !("success" in C) || C.success;
1485
- h.api(d, _, x, L, C.msg, v, S, b, _ ? {} : y, i, E, I);
1485
+ h.api(d, _, S, L, C.msg, v, x, b, _ ? {} : y, i, E, I);
1486
1486
  }, a = "fetch", c = "__oFetch_", o = "__oXMLHttpRequest_", u = "XMLHttpRequest";
1487
1487
  return e.ext(r.prototype, {
1488
1488
  removeHook: function(h, p) {
@@ -1497,7 +1497,7 @@ function eo() {
1497
1497
  if (!l || !l.api || f && (f.method === "HEAD" || f.mode === "no-cors"))
1498
1498
  return p.apply(n, g);
1499
1499
  f || (f = {});
1500
- var x = Date.now(), v = l._conf, S = e.duration(), b = (d && typeof d != "string" ? d.url : d) || "", y = b;
1500
+ var S = Date.now(), v = l._conf, x = e.duration(), b = (d && typeof d != "string" ? d.url : d) || "", y = b;
1501
1501
  b = e.cutUrlSearch(b);
1502
1502
  var E = (v.ignore || {}).ignoreApis, I = v.parseTraceId;
1503
1503
  if (!e.checkAPI(b, !0) || e.ignoreByRule(b, E))
@@ -1581,14 +1581,14 @@ function eo() {
1581
1581
  typeof Fe == "object" && Fe["eagleeye-traceid"] && (C = Fe["eagleeye-traceid"], R = "response");
1582
1582
  }
1583
1583
  }
1584
- var je = S();
1584
+ var je = x();
1585
1585
  return j.text().then(function(Xe) {
1586
1586
  if (!C && e.isFunction(I)) {
1587
1587
  var Ye = I(j, Xe);
1588
1588
  Ye && e.isString(Ye) && (C = Ye);
1589
1589
  }
1590
- var xe = e.getFetchSnapshot(g, Xe, ue);
1591
- j.ok ? s(l, v.parseResponse, b, y, Xe, j.status || 200, je, x, C, L, xe, R, $) : (l.api(b, !1, je, j.status || 404, j.statusText, x, C, L, xe, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
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({
1592
1592
  src: j.url,
1593
1593
  res_type: "api"
1594
1594
  }));
@@ -1599,8 +1599,8 @@ function eo() {
1599
1599
  }).catch(function(J) {
1600
1600
  if (!l || !l.api)
1601
1601
  throw J;
1602
- var j = S();
1603
- throw l.api(b, !1, j, J.name || "Error", J.message, x, C, L, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1602
+ var j = x();
1603
+ throw l.api(b, !1, j, J.name || "Error", J.message, S, C, L, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1604
1604
  src: y,
1605
1605
  res_type: "api"
1606
1606
  }), J;
@@ -1612,11 +1612,11 @@ function eo() {
1612
1612
  var p, d = n[u];
1613
1613
  n[o] = d;
1614
1614
  var f = function(g) {
1615
- var l = new d(g), x = t;
1616
- if (!x || !x.api || !l.addEventListener)
1615
+ var l = new d(g), S = t;
1616
+ if (!S || !S.api || !l.addEventListener)
1617
1617
  return l;
1618
- var v, S, b, y, E = l.send, I = l.open, A = l.setRequestHeader, C = x._conf, L = (C.ignore || {}).ignoreApis, _ = C.parseTraceId, R = x.getConfig("enableLinkTrace"), T = "", B = "", $ = "", q = null, G = x.getConfig("sample"), ae = x.getConfig("linkType"), Q = 1;
1619
- return G && !x.sampling(G) && (Q = 0), l.open = function(te, ee) {
1618
+ var v, x, b, y, E = l.send, I = l.open, A = l.setRequestHeader, C = S._conf, L = (C.ignore || {}).ignoreApis, _ = C.parseTraceId, R = S.getConfig("enableLinkTrace"), T = "", B = "", $ = "", q = null, G = S.getConfig("sample"), ae = S.getConfig("linkType"), Q = 1;
1619
+ return G && !S.sampling(G) && (Q = 0), l.open = function(te, ee) {
1620
1620
  p = te;
1621
1621
  var P = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
1622
1622
  I.apply(l, P), y = ee || "", b = e.cutUrlSearch(y);
@@ -1629,28 +1629,28 @@ function eo() {
1629
1629
  F = "";
1630
1630
  }
1631
1631
  var M = e.checkSameOrigin(y, F);
1632
- if ((x.getConfig("enableApiCors") || M) && A && typeof A == "function")
1632
+ if ((S.getConfig("enableApiCors") || M) && A && typeof A == "function")
1633
1633
  switch (ae) {
1634
1634
  case "arms":
1635
- T = x.getTraceId()["EagleEye-TraceID"], A.apply(l, ["EagleEye-TraceID", T]), B = x.getPageviewId()["EagleEye-SessionID"], A.apply(l, ["EagleEye-SessionID", B]), $ = x.getConfig("pid"), A.apply(l, ["EagleEye-pAppName", $]);
1635
+ T = S.getTraceId()["EagleEye-TraceID"], A.apply(l, ["EagleEye-TraceID", T]), B = S.getPageviewId()["EagleEye-SessionID"], A.apply(l, ["EagleEye-SessionID", B]), $ = S.getConfig("pid"), A.apply(l, ["EagleEye-pAppName", $]);
1636
1636
  break;
1637
1637
  case "b3":
1638
- var J = x.getB3TraceId(Q);
1639
- A.apply(l, ["X-B3-TraceId", J["X-B3-TraceId"]]), A.apply(l, ["X-B3-ParentSpanId", J["X-B3-ParentSpanId"]]), A.apply(l, ["X-B3-SpanId", J["X-B3-SpanId"]]), A.apply(l, ["X-B3-Sampled", J["X-B3-Sampled"]]), A.apply(l, ["X-Request-ID", e.guid()]), T = J["X-B3-TraceId"], B = x.getPageviewId()["EagleEye-SessionID"];
1638
+ var J = S.getB3TraceId(Q);
1639
+ A.apply(l, ["X-B3-TraceId", J["X-B3-TraceId"]]), A.apply(l, ["X-B3-ParentSpanId", J["X-B3-ParentSpanId"]]), A.apply(l, ["X-B3-SpanId", J["X-B3-SpanId"]]), A.apply(l, ["X-B3-Sampled", J["X-B3-Sampled"]]), A.apply(l, ["X-Request-ID", e.guid()]), T = J["X-B3-TraceId"], B = S.getPageviewId()["EagleEye-SessionID"];
1640
1640
  break;
1641
1641
  case "tracing":
1642
1642
  default:
1643
- var j = x.getUberTraceId(Q);
1644
- A.apply(l, ["uber-trace-id", j["uber-trace-id"]]), T = j.traceId, B = x.getPageviewId()["EagleEye-SessionID"];
1643
+ var j = S.getUberTraceId(Q);
1644
+ A.apply(l, ["uber-trace-id", j["uber-trace-id"]]), T = j.traceId, B = S.getPageviewId()["EagleEye-SessionID"];
1645
1645
  }
1646
1646
  }
1647
1647
  }, l.send = function() {
1648
- v = Date.now(), S = e.duration();
1648
+ v = Date.now(), x = e.duration();
1649
1649
  var te = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
1650
1650
  E.apply(l, te);
1651
1651
  }, e.on(l, "readystatechange", function() {
1652
1652
  if (b && l.readyState === 4) {
1653
- var te = S(), ee = e.getXhrSnapshot(y, p, l);
1653
+ var te = x(), ee = e.getXhrSnapshot(y, p, l);
1654
1654
  if (!T) {
1655
1655
  var P = e.parseXhrHeaders(typeof l.getAllResponseHeaders == "function" && l.getAllResponseHeaders() || "");
1656
1656
  typeof P == "object" && P["eagleeye-traceid"] && (T = P["eagleeye-traceid"], q = "response");
@@ -1666,9 +1666,9 @@ function eo() {
1666
1666
  if (M && !/(text)|(json)/.test(M))
1667
1667
  return;
1668
1668
  }
1669
- l.responseType && l.responseType !== "text" ? x.api(b, !0, te, F, "", v, T, B, {}, i, q, Q) : s(x, C.parseResponse, b, y, l.responseText, F, te, v, T, B, ee, q, Q);
1669
+ l.responseType && l.responseType !== "text" ? S.api(b, !0, te, F, "", v, T, B, {}, i, q, Q) : s(S, C.parseResponse, b, y, l.responseText, F, te, v, T, B, ee, q, Q);
1670
1670
  } else
1671
- x.api(b, !1, te, l.status || "FAILED", l.statusText, v, T, B, ee, i, q, Q), C.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1671
+ S.api(b, !1, te, l.status || "FAILED", l.statusText, v, T, B, ee, i, q, Q), C.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1672
1672
  src: l.responseURL || y,
1673
1673
  res_type: "api"
1674
1674
  });
@@ -1702,8 +1702,8 @@ function to() {
1702
1702
  if (!p || typeof p != "string" || p === f)
1703
1703
  return g;
1704
1704
  try {
1705
- var l = f.split("#"), x = p.split("#"), v = e.cutUrlSearch(l[0]), S = e.cutUrlSearch(x[0]), b = l[1] && l[1].replace(/^\/?(.*)/, "$1"), y = x[1] && x[1].replace(/^\/?(.*)/, "$1");
1706
- b !== y ? s("historystatechange", y) : v !== S && s("historystatechange", S);
1705
+ var l = f.split("#"), S = p.split("#"), v = e.cutUrlSearch(l[0]), x = e.cutUrlSearch(S[0]), b = l[1] && l[1].replace(/^\/?(.*)/, "$1"), y = S[1] && S[1].replace(/^\/?(.*)/, "$1");
1706
+ b !== y ? s("historystatechange", y) : v !== x && s("historystatechange", x);
1707
1707
  } catch (E) {
1708
1708
  e.warn("[retcode] error in " + c + ": " + E);
1709
1709
  }
@@ -1728,8 +1728,8 @@ function io() {
1728
1728
  if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
1729
1729
  var p = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
1730
1730
  if (p && d.includes(p) && !r.ignoreByRule(o.name, f) && !r.ignoreByRule(r.decode(o.name), f)) {
1731
- var g = o[e[0]], l = o[e[1]], x = o[e[2]], v = o[e[3]], S = o[e[4]], b = o[e[5]], y = o[e[6]], E = o[e[7]], I = o[e[8]], A = o[e[18]], C = o[e[19]];
1732
- if (!h.has(o) && (!r.areInOrder(g, l, x, v, S, b, y, E, I) || g > E))
1731
+ var g = o[e[0]], l = o[e[1]], S = o[e[2]], v = o[e[3]], x = o[e[4]], b = o[e[5]], y = o[e[6]], E = o[e[7]], I = o[e[8]], A = o[e[18]], C = o[e[19]];
1732
+ if (!h.has(o) && (!r.areInOrder(g, l, S, v, x, b, y, E, I) || g > E))
1733
1733
  return;
1734
1734
  if (A < g && (A = g), C < g && (C = l), r.areInOrder(g, A, C, l))
1735
1735
  return {
@@ -1773,8 +1773,8 @@ function io() {
1773
1773
  if (r.checkAPI(g.name, !1)) {
1774
1774
  var l = s(g, u, h);
1775
1775
  if (l) {
1776
- var x = l.res_type + "-" + l.domain;
1777
- x in p || (p[x] = []), p[x].push(l);
1776
+ var S = l.res_type + "-" + l.domain;
1777
+ S in p || (p[S] = []), p[S].push(l);
1778
1778
  }
1779
1779
  }
1780
1780
  }
@@ -1801,8 +1801,8 @@ function io() {
1801
1801
  var p = Object.keys(o);
1802
1802
  if (p.length !== 0) {
1803
1803
  var d = [];
1804
- r.each(p, function(x) {
1805
- var v = o[x], S = {
1804
+ r.each(p, function(S) {
1805
+ var v = o[S], x = {
1806
1806
  domain: "",
1807
1807
  res_type: "",
1808
1808
  src_type: "",
@@ -1817,15 +1817,15 @@ function io() {
1817
1817
  };
1818
1818
  r.each(v, function(b) {
1819
1819
  var y = b.timing || {}, E = h.get(b.timing), I = E ? E.success : 1, A = b.duration > u ? 1 : 0;
1820
- S.domain = b.domain, S.res_type = b.res_type, S.src_type = b.src_type, S.count += 1, S.duration += b.duration, S.size += b.size, I || (S.err_count += 1, S.err_duration += b.duration), A && (S.slow_count += 1, S.slow_duration += b.duration);
1820
+ x.domain = b.domain, x.res_type = b.res_type, x.src_type = b.src_type, x.count += 1, x.duration += b.duration, x.size += b.size, I || (x.err_count += 1, x.err_duration += b.duration), A && (x.slow_count += 1, x.slow_duration += b.duration);
1821
1821
  try {
1822
1822
  var C = JSON.parse(JSON.stringify(y));
1823
- C.success = I, C.resourceSlow = u, C.isSlow = A, S.timings.push(C);
1823
+ C.success = I, C.resourceSlow = u, C.isSlow = A, x.timings.push(C);
1824
1824
  } catch (L) {
1825
1825
  }
1826
- }), S.count && (S.size = Math.round(S.size / S.count), S.duration = Math.round(S.duration / S.count)), S.slow_count && (S.slow_duration = Math.round(S.slow_duration / S.slow_count)), S.err_count && (S.err_duration = Math.round(S.err_duration / S.err_count)), S.timings.length > 20 && (S.timings.sort(function(b, y) {
1826
+ }), x.count && (x.size = Math.round(x.size / x.count), x.duration = Math.round(x.duration / x.count)), x.slow_count && (x.slow_duration = Math.round(x.slow_duration / x.slow_count)), x.err_count && (x.err_duration = Math.round(x.err_duration / x.err_count)), x.timings.length > 20 && (x.timings.sort(function(b, y) {
1827
1827
  return y.duration - b.duration;
1828
- }), S.timings.length = 20), S.timings = encodeURIComponent(JSON.stringify(S.timings)), d.push(S);
1828
+ }), x.timings.length = 20), x.timings = encodeURIComponent(JSON.stringify(x.timings)), d.push(x);
1829
1829
  });
1830
1830
  var f = {
1831
1831
  _combo: 1,
@@ -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 || {}), gt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(gt || {}), $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 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 = [];
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) {
@@ -2256,7 +2256,7 @@ 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.3", Ks = "web";
2259
+ const yi = "6.13.4-beta.1", Ks = "web";
2260
2260
  class Ue {
2261
2261
  /**
2262
2262
  * 将版本号转换为number
@@ -2558,28 +2558,28 @@ function ne() {
2558
2558
  if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof ie != "undefined" && ie.crypto && (s = ie.crypto), !s && typeof Co == "function")
2559
2559
  try {
2560
2560
  s = wo;
2561
- } catch (S) {
2561
+ } catch (x) {
2562
2562
  }
2563
2563
  var a = function() {
2564
2564
  if (s) {
2565
2565
  if (typeof s.getRandomValues == "function")
2566
2566
  try {
2567
2567
  return s.getRandomValues(new Uint32Array(1))[0];
2568
- } catch (S) {
2568
+ } catch (x) {
2569
2569
  }
2570
2570
  if (typeof s.randomBytes == "function")
2571
2571
  try {
2572
2572
  return s.randomBytes(4).readInt32LE();
2573
- } catch (S) {
2573
+ } catch (x) {
2574
2574
  }
2575
2575
  }
2576
2576
  throw new Error("Native crypto module could not be used to get secure random number.");
2577
2577
  }, c = Object.create || function() {
2578
- function S() {
2578
+ function x() {
2579
2579
  }
2580
2580
  return function(b) {
2581
2581
  var y;
2582
- return S.prototype = b, y = new S(), S.prototype = null, y;
2582
+ return x.prototype = b, y = new x(), x.prototype = null, y;
2583
2583
  };
2584
2584
  }(), o = {}, u = o.lib = {}, h = u.Base = function() {
2585
2585
  return {
@@ -2601,9 +2601,9 @@ function ne() {
2601
2601
  * }
2602
2602
  * });
2603
2603
  */
2604
- extend: function(S) {
2604
+ extend: function(x) {
2605
2605
  var b = c(this);
2606
- return S && b.mixIn(S), (!b.hasOwnProperty("init") || this.init === b.init) && (b.init = function() {
2606
+ return x && b.mixIn(x), (!b.hasOwnProperty("init") || this.init === b.init) && (b.init = function() {
2607
2607
  b.$super.init.apply(this, arguments);
2608
2608
  }), b.init.prototype = b, b.$super = this, b;
2609
2609
  },
@@ -2620,8 +2620,8 @@ function ne() {
2620
2620
  * var instance = MyType.create();
2621
2621
  */
2622
2622
  create: function() {
2623
- var S = this.extend();
2624
- return S.init.apply(S, arguments), S;
2623
+ var x = this.extend();
2624
+ return x.init.apply(x, arguments), x;
2625
2625
  },
2626
2626
  /**
2627
2627
  * Initializes a newly created object.
@@ -2648,10 +2648,10 @@ function ne() {
2648
2648
  * field: 'value'
2649
2649
  * });
2650
2650
  */
2651
- mixIn: function(S) {
2652
- for (var b in S)
2653
- S.hasOwnProperty(b) && (this[b] = S[b]);
2654
- S.hasOwnProperty("toString") && (this.toString = S.toString);
2651
+ mixIn: function(x) {
2652
+ for (var b in x)
2653
+ x.hasOwnProperty(b) && (this[b] = x[b]);
2654
+ x.hasOwnProperty("toString") && (this.toString = x.toString);
2655
2655
  },
2656
2656
  /**
2657
2657
  * Creates a copy of this object.
@@ -2679,8 +2679,8 @@ function ne() {
2679
2679
  * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
2680
2680
  * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
2681
2681
  */
2682
- init: function(S, b) {
2683
- S = this.words = S || [], b != i ? this.sigBytes = b : this.sigBytes = S.length * 4;
2682
+ init: function(x, b) {
2683
+ x = this.words = x || [], b != i ? this.sigBytes = b : this.sigBytes = x.length * 4;
2684
2684
  },
2685
2685
  /**
2686
2686
  * Converts this word array to a string.
@@ -2695,8 +2695,8 @@ function ne() {
2695
2695
  * var string = wordArray.toString();
2696
2696
  * var string = wordArray.toString(CryptoJS.enc.Utf8);
2697
2697
  */
2698
- toString: function(S) {
2699
- return (S || f).stringify(this);
2698
+ toString: function(x) {
2699
+ return (x || f).stringify(this);
2700
2700
  },
2701
2701
  /**
2702
2702
  * Concatenates a word array to this word array.
@@ -2709,8 +2709,8 @@ function ne() {
2709
2709
  *
2710
2710
  * wordArray1.concat(wordArray2);
2711
2711
  */
2712
- concat: function(S) {
2713
- var b = this.words, y = S.words, E = this.sigBytes, I = S.sigBytes;
2712
+ concat: function(x) {
2713
+ var b = this.words, y = x.words, E = this.sigBytes, I = x.sigBytes;
2714
2714
  if (this.clamp(), E % 4)
2715
2715
  for (var A = 0; A < I; A++) {
2716
2716
  var C = y[A >>> 2] >>> 24 - A % 4 * 8 & 255;
@@ -2729,8 +2729,8 @@ function ne() {
2729
2729
  * wordArray.clamp();
2730
2730
  */
2731
2731
  clamp: function() {
2732
- var S = this.words, b = this.sigBytes;
2733
- S[b >>> 2] &= 4294967295 << 32 - b % 4 * 8, S.length = t.ceil(b / 4);
2732
+ var x = this.words, b = this.sigBytes;
2733
+ x[b >>> 2] &= 4294967295 << 32 - b % 4 * 8, x.length = t.ceil(b / 4);
2734
2734
  },
2735
2735
  /**
2736
2736
  * Creates a copy of this word array.
@@ -2742,8 +2742,8 @@ function ne() {
2742
2742
  * var clone = wordArray.clone();
2743
2743
  */
2744
2744
  clone: function() {
2745
- var S = h.clone.call(this);
2746
- return S.words = this.words.slice(0), S;
2745
+ var x = h.clone.call(this);
2746
+ return x.words = this.words.slice(0), x;
2747
2747
  },
2748
2748
  /**
2749
2749
  * Creates a word array filled with random bytes.
@@ -2758,10 +2758,10 @@ function ne() {
2758
2758
  *
2759
2759
  * var wordArray = CryptoJS.lib.WordArray.random(16);
2760
2760
  */
2761
- random: function(S) {
2762
- for (var b = [], y = 0; y < S; y += 4)
2761
+ random: function(x) {
2762
+ for (var b = [], y = 0; y < x; y += 4)
2763
2763
  b.push(a());
2764
- return new p.init(b, S);
2764
+ return new p.init(b, x);
2765
2765
  }
2766
2766
  }), d = o.enc = {}, f = d.Hex = {
2767
2767
  /**
@@ -2777,8 +2777,8 @@ function ne() {
2777
2777
  *
2778
2778
  * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
2779
2779
  */
2780
- stringify: function(S) {
2781
- for (var b = S.words, y = S.sigBytes, E = [], I = 0; I < y; I++) {
2780
+ stringify: function(x) {
2781
+ for (var b = x.words, y = x.sigBytes, E = [], I = 0; I < y; I++) {
2782
2782
  var A = b[I >>> 2] >>> 24 - I % 4 * 8 & 255;
2783
2783
  E.push((A >>> 4).toString(16)), E.push((A & 15).toString(16));
2784
2784
  }
@@ -2797,9 +2797,9 @@ function ne() {
2797
2797
  *
2798
2798
  * var wordArray = CryptoJS.enc.Hex.parse(hexString);
2799
2799
  */
2800
- parse: function(S) {
2801
- for (var b = S.length, y = [], E = 0; E < b; E += 2)
2802
- y[E >>> 3] |= parseInt(S.substr(E, 2), 16) << 24 - E % 8 * 4;
2800
+ parse: function(x) {
2801
+ for (var b = x.length, y = [], E = 0; E < b; E += 2)
2802
+ y[E >>> 3] |= parseInt(x.substr(E, 2), 16) << 24 - E % 8 * 4;
2803
2803
  return new p.init(y, b / 2);
2804
2804
  }
2805
2805
  }, g = d.Latin1 = {
@@ -2816,8 +2816,8 @@ function ne() {
2816
2816
  *
2817
2817
  * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
2818
2818
  */
2819
- stringify: function(S) {
2820
- for (var b = S.words, y = S.sigBytes, E = [], I = 0; I < y; I++) {
2819
+ stringify: function(x) {
2820
+ for (var b = x.words, y = x.sigBytes, E = [], I = 0; I < y; I++) {
2821
2821
  var A = b[I >>> 2] >>> 24 - I % 4 * 8 & 255;
2822
2822
  E.push(String.fromCharCode(A));
2823
2823
  }
@@ -2836,9 +2836,9 @@ function ne() {
2836
2836
  *
2837
2837
  * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
2838
2838
  */
2839
- parse: function(S) {
2840
- for (var b = S.length, y = [], E = 0; E < b; E++)
2841
- y[E >>> 2] |= (S.charCodeAt(E) & 255) << 24 - E % 4 * 8;
2839
+ parse: function(x) {
2840
+ for (var b = x.length, y = [], E = 0; E < b; E++)
2841
+ y[E >>> 2] |= (x.charCodeAt(E) & 255) << 24 - E % 4 * 8;
2842
2842
  return new p.init(y, b);
2843
2843
  }
2844
2844
  }, l = d.Utf8 = {
@@ -2855,9 +2855,9 @@ function ne() {
2855
2855
  *
2856
2856
  * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
2857
2857
  */
2858
- stringify: function(S) {
2858
+ stringify: function(x) {
2859
2859
  try {
2860
- return decodeURIComponent(escape(g.stringify(S)));
2860
+ return decodeURIComponent(escape(g.stringify(x)));
2861
2861
  } catch (b) {
2862
2862
  throw new Error("Malformed UTF-8 data");
2863
2863
  }
@@ -2875,10 +2875,10 @@ function ne() {
2875
2875
  *
2876
2876
  * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
2877
2877
  */
2878
- parse: function(S) {
2879
- return g.parse(unescape(encodeURIComponent(S)));
2878
+ parse: function(x) {
2879
+ return g.parse(unescape(encodeURIComponent(x)));
2880
2880
  }
2881
- }, x = u.BufferedBlockAlgorithm = h.extend({
2881
+ }, S = u.BufferedBlockAlgorithm = h.extend({
2882
2882
  /**
2883
2883
  * Resets this block algorithm's data buffer to its initial state.
2884
2884
  *
@@ -2899,8 +2899,8 @@ function ne() {
2899
2899
  * bufferedBlockAlgorithm._append('data');
2900
2900
  * bufferedBlockAlgorithm._append(wordArray);
2901
2901
  */
2902
- _append: function(S) {
2903
- typeof S == "string" && (S = l.parse(S)), this._data.concat(S), this._nDataBytes += S.sigBytes;
2902
+ _append: function(x) {
2903
+ typeof x == "string" && (x = l.parse(x)), this._data.concat(x), this._nDataBytes += x.sigBytes;
2904
2904
  },
2905
2905
  /**
2906
2906
  * Processes available data blocks.
@@ -2916,9 +2916,9 @@ function ne() {
2916
2916
  * var processedData = bufferedBlockAlgorithm._process();
2917
2917
  * var processedData = bufferedBlockAlgorithm._process(!!'flush');
2918
2918
  */
2919
- _process: function(S) {
2919
+ _process: function(x) {
2920
2920
  var b, y = this._data, E = y.words, I = y.sigBytes, A = this.blockSize, C = A * 4, L = I / C;
2921
- S ? L = t.ceil(L) : L = t.max((L | 0) - this._minBufferSize, 0);
2921
+ x ? L = t.ceil(L) : L = t.max((L | 0) - this._minBufferSize, 0);
2922
2922
  var _ = L * A, R = t.min(_ * 4, I);
2923
2923
  if (_) {
2924
2924
  for (var T = 0; T < _; T += A)
@@ -2937,12 +2937,12 @@ function ne() {
2937
2937
  * var clone = bufferedBlockAlgorithm.clone();
2938
2938
  */
2939
2939
  clone: function() {
2940
- var S = h.clone.call(this);
2941
- return S._data = this._data.clone(), S;
2940
+ var x = h.clone.call(this);
2941
+ return x._data = this._data.clone(), x;
2942
2942
  },
2943
2943
  _minBufferSize: 0
2944
2944
  });
2945
- u.Hasher = x.extend({
2945
+ u.Hasher = S.extend({
2946
2946
  /**
2947
2947
  * Configuration options.
2948
2948
  */
@@ -2956,8 +2956,8 @@ function ne() {
2956
2956
  *
2957
2957
  * var hasher = CryptoJS.algo.SHA256.create();
2958
2958
  */
2959
- init: function(S) {
2960
- this.cfg = this.cfg.extend(S), this.reset();
2959
+ init: function(x) {
2960
+ this.cfg = this.cfg.extend(x), this.reset();
2961
2961
  },
2962
2962
  /**
2963
2963
  * Resets this hasher to its initial state.
@@ -2967,7 +2967,7 @@ function ne() {
2967
2967
  * hasher.reset();
2968
2968
  */
2969
2969
  reset: function() {
2970
- x.reset.call(this), this._doReset();
2970
+ S.reset.call(this), this._doReset();
2971
2971
  },
2972
2972
  /**
2973
2973
  * Updates this hasher with a message.
@@ -2981,8 +2981,8 @@ function ne() {
2981
2981
  * hasher.update('message');
2982
2982
  * hasher.update(wordArray);
2983
2983
  */
2984
- update: function(S) {
2985
- return this._append(S), this._process(), this;
2984
+ update: function(x) {
2985
+ return this._append(x), this._process(), this;
2986
2986
  },
2987
2987
  /**
2988
2988
  * Finalizes the hash computation.
@@ -2998,8 +2998,8 @@ function ne() {
2998
2998
  * var hash = hasher.finalize('message');
2999
2999
  * var hash = hasher.finalize(wordArray);
3000
3000
  */
3001
- finalize: function(S) {
3002
- S && this._append(S);
3001
+ finalize: function(x) {
3002
+ x && this._append(x);
3003
3003
  var b = this._doFinalize();
3004
3004
  return b;
3005
3005
  },
@@ -3017,9 +3017,9 @@ function ne() {
3017
3017
  *
3018
3018
  * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
3019
3019
  */
3020
- _createHelper: function(S) {
3020
+ _createHelper: function(x) {
3021
3021
  return function(b, y) {
3022
- return new S.init(y).finalize(b);
3022
+ return new x.init(y).finalize(b);
3023
3023
  };
3024
3024
  },
3025
3025
  /**
@@ -3035,9 +3035,9 @@ function ne() {
3035
3035
  *
3036
3036
  * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
3037
3037
  */
3038
- _createHmacHelper: function(S) {
3038
+ _createHmacHelper: function(x) {
3039
3039
  return function(b, y) {
3040
- return new v.HMAC.init(S, y).finalize(b);
3040
+ return new v.HMAC.init(x, y).finalize(b);
3041
3041
  };
3042
3042
  }
3043
3043
  });
@@ -3420,8 +3420,8 @@ function Mt() {
3420
3420
  var u = o.words, h = o.sigBytes, p = this._map;
3421
3421
  o.clamp();
3422
3422
  for (var d = [], f = 0; f < h; f += 3)
3423
- for (var g = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, x = u[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, v = g << 16 | l << 8 | x, S = 0; S < 4 && f + S * 0.75 < h; S++)
3424
- d.push(p.charAt(v >>> 6 * (3 - S) & 63));
3423
+ for (var g = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, S = u[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, v = g << 16 | l << 8 | S, x = 0; x < 4 && f + x * 0.75 < h; x++)
3424
+ d.push(p.charAt(v >>> 6 * (3 - x) & 63));
3425
3425
  var b = p.charAt(64);
3426
3426
  if (b)
3427
3427
  for (; d.length % 4; )
@@ -3460,8 +3460,8 @@ function Mt() {
3460
3460
  function c(o, u, h) {
3461
3461
  for (var p = [], d = 0, f = 0; f < u; f++)
3462
3462
  if (f % 4) {
3463
- var g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, x = g | l;
3464
- p[d >>> 2] |= x << 24 - d % 4 * 8, d++;
3463
+ var g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, S = g | l;
3464
+ p[d >>> 2] |= S << 24 - d % 4 * 8, d++;
3465
3465
  }
3466
3466
  return s.create(p, d);
3467
3467
  }
@@ -3498,8 +3498,8 @@ function Po() {
3498
3498
  var h = o.words, p = o.sigBytes, d = u ? this._safe_map : this._map;
3499
3499
  o.clamp();
3500
3500
  for (var f = [], g = 0; g < p; g += 3)
3501
- for (var l = h[g >>> 2] >>> 24 - g % 4 * 8 & 255, x = h[g + 1 >>> 2] >>> 24 - (g + 1) % 4 * 8 & 255, v = h[g + 2 >>> 2] >>> 24 - (g + 2) % 4 * 8 & 255, S = l << 16 | x << 8 | v, b = 0; b < 4 && g + b * 0.75 < p; b++)
3502
- f.push(d.charAt(S >>> 6 * (3 - b) & 63));
3501
+ for (var l = h[g >>> 2] >>> 24 - g % 4 * 8 & 255, S = h[g + 1 >>> 2] >>> 24 - (g + 1) % 4 * 8 & 255, v = h[g + 2 >>> 2] >>> 24 - (g + 2) % 4 * 8 & 255, x = l << 16 | S << 8 | v, b = 0; b < 4 && g + b * 0.75 < p; b++)
3502
+ f.push(d.charAt(x >>> 6 * (3 - b) & 63));
3503
3503
  var y = d.charAt(64);
3504
3504
  if (y)
3505
3505
  for (; f.length % 4; )
@@ -3542,8 +3542,8 @@ function Po() {
3542
3542
  function c(o, u, h) {
3543
3543
  for (var p = [], d = 0, f = 0; f < u; f++)
3544
3544
  if (f % 4) {
3545
- var g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, x = g | l;
3546
- p[d >>> 2] |= x << 24 - d % 4 * 8, d++;
3545
+ var g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, S = g | l;
3546
+ p[d >>> 2] |= S << 24 - d % 4 * 8, d++;
3547
3547
  }
3548
3548
  return s.create(p, d);
3549
3549
  }
@@ -3572,19 +3572,19 @@ function Lt() {
3572
3572
  271733878
3573
3573
  ]);
3574
3574
  },
3575
- _doProcessBlock: function(l, x) {
3575
+ _doProcessBlock: function(l, S) {
3576
3576
  for (var v = 0; v < 16; v++) {
3577
- var S = x + v, b = l[S];
3578
- l[S] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
3577
+ var x = S + v, b = l[x];
3578
+ l[x] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
3579
3579
  }
3580
- var y = this._hash.words, E = l[x + 0], I = l[x + 1], A = l[x + 2], C = l[x + 3], L = l[x + 4], _ = l[x + 5], R = l[x + 6], T = l[x + 7], B = l[x + 8], $ = l[x + 9], q = l[x + 10], G = l[x + 11], ae = l[x + 12], Q = l[x + 13], te = l[x + 14], ee = l[x + 15], P = y[0], N = y[1], F = y[2], M = y[3];
3580
+ var y = this._hash.words, E = l[S + 0], I = l[S + 1], A = l[S + 2], C = l[S + 3], L = l[S + 4], _ = l[S + 5], R = l[S + 6], T = l[S + 7], B = l[S + 8], $ = l[S + 9], q = l[S + 10], G = l[S + 11], ae = l[S + 12], Q = l[S + 13], te = l[S + 14], ee = l[S + 15], P = y[0], N = y[1], F = y[2], M = y[3];
3581
3581
  P = p(P, N, F, M, E, 7, u[0]), M = p(M, P, N, F, I, 12, u[1]), F = p(F, M, P, N, A, 17, u[2]), N = p(N, F, M, P, C, 22, u[3]), P = p(P, N, F, M, L, 7, u[4]), M = p(M, P, N, F, _, 12, u[5]), F = p(F, M, P, N, R, 17, u[6]), N = p(N, F, M, P, T, 22, u[7]), P = p(P, N, F, M, B, 7, u[8]), M = p(M, P, N, F, $, 12, u[9]), F = p(F, M, P, N, q, 17, u[10]), N = p(N, F, M, P, G, 22, u[11]), P = p(P, N, F, M, ae, 7, u[12]), M = p(M, P, N, F, Q, 12, u[13]), F = p(F, M, P, N, te, 17, u[14]), N = p(N, F, M, P, ee, 22, u[15]), P = d(P, N, F, M, I, 5, u[16]), M = d(M, P, N, F, R, 9, u[17]), F = d(F, M, P, N, G, 14, u[18]), N = d(N, F, M, P, E, 20, u[19]), P = d(P, N, F, M, _, 5, u[20]), M = d(M, P, N, F, q, 9, u[21]), F = d(F, M, P, N, ee, 14, u[22]), N = d(N, F, M, P, L, 20, u[23]), P = d(P, N, F, M, $, 5, u[24]), M = d(M, P, N, F, te, 9, u[25]), F = d(F, M, P, N, C, 14, u[26]), N = d(N, F, M, P, B, 20, u[27]), P = d(P, N, F, M, Q, 5, u[28]), M = d(M, P, N, F, A, 9, u[29]), F = d(F, M, P, N, T, 14, u[30]), N = d(N, F, M, P, ae, 20, u[31]), P = f(P, N, F, M, _, 4, u[32]), M = f(M, P, N, F, B, 11, u[33]), F = f(F, M, P, N, G, 16, u[34]), N = f(N, F, M, P, te, 23, u[35]), P = f(P, N, F, M, I, 4, u[36]), M = f(M, P, N, F, L, 11, u[37]), F = f(F, M, P, N, T, 16, u[38]), N = f(N, F, M, P, q, 23, u[39]), P = f(P, N, F, M, Q, 4, u[40]), M = f(M, P, N, F, E, 11, u[41]), F = f(F, M, P, N, C, 16, u[42]), N = f(N, F, M, P, R, 23, u[43]), P = f(P, N, F, M, $, 4, u[44]), M = f(M, P, N, F, ae, 11, u[45]), F = f(F, M, P, N, ee, 16, u[46]), N = f(N, F, M, P, A, 23, u[47]), P = g(P, N, F, M, E, 6, u[48]), M = g(M, P, N, F, T, 10, u[49]), F = g(F, M, P, N, te, 15, u[50]), N = g(N, F, M, P, _, 21, u[51]), P = g(P, N, F, M, ae, 6, u[52]), M = g(M, P, N, F, C, 10, u[53]), F = g(F, M, P, N, q, 15, u[54]), N = g(N, F, M, P, I, 21, u[55]), P = g(P, N, F, M, B, 6, u[56]), M = g(M, P, N, F, ee, 10, u[57]), F = g(F, M, P, N, R, 15, u[58]), N = g(N, F, M, P, Q, 21, u[59]), P = g(P, N, F, M, L, 6, u[60]), M = g(M, P, N, F, G, 10, u[61]), F = g(F, M, P, N, A, 15, u[62]), N = g(N, F, M, P, $, 21, u[63]), y[0] = y[0] + P | 0, y[1] = y[1] + N | 0, y[2] = y[2] + F | 0, y[3] = y[3] + M | 0;
3582
3582
  },
3583
3583
  _doFinalize: function() {
3584
- var l = this._data, x = l.words, v = this._nDataBytes * 8, S = l.sigBytes * 8;
3585
- x[S >>> 5] |= 128 << 24 - S % 32;
3584
+ var l = this._data, S = l.words, v = this._nDataBytes * 8, x = l.sigBytes * 8;
3585
+ S[x >>> 5] |= 128 << 24 - x % 32;
3586
3586
  var b = t.floor(v / 4294967296), y = v;
3587
- x[(S + 64 >>> 9 << 4) + 15] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, x[(S + 64 >>> 9 << 4) + 14] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, l.sigBytes = (x.length + 1) * 4, this._process();
3587
+ S[(x + 64 >>> 9 << 4) + 15] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, S[(x + 64 >>> 9 << 4) + 14] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, l.sigBytes = (S.length + 1) * 4, this._process();
3588
3588
  for (var E = this._hash, I = E.words, A = 0; A < 4; A++) {
3589
3589
  var C = I[A];
3590
3590
  I[A] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
@@ -3596,21 +3596,21 @@ function Lt() {
3596
3596
  return l._hash = this._hash.clone(), l;
3597
3597
  }
3598
3598
  });
3599
- function p(l, x, v, S, b, y, E) {
3600
- var I = l + (x & v | ~x & S) + b + E;
3601
- return (I << y | I >>> 32 - y) + x;
3599
+ function p(l, S, v, x, b, y, E) {
3600
+ var I = l + (S & v | ~S & x) + b + E;
3601
+ return (I << y | I >>> 32 - y) + S;
3602
3602
  }
3603
- function d(l, x, v, S, b, y, E) {
3604
- var I = l + (x & S | v & ~S) + b + E;
3605
- return (I << y | I >>> 32 - y) + x;
3603
+ function d(l, S, v, x, b, y, E) {
3604
+ var I = l + (S & x | v & ~x) + b + E;
3605
+ return (I << y | I >>> 32 - y) + S;
3606
3606
  }
3607
- function f(l, x, v, S, b, y, E) {
3608
- var I = l + (x ^ v ^ S) + b + E;
3609
- return (I << y | I >>> 32 - y) + x;
3607
+ function f(l, S, v, x, b, y, E) {
3608
+ var I = l + (S ^ v ^ x) + b + E;
3609
+ return (I << y | I >>> 32 - y) + S;
3610
3610
  }
3611
- function g(l, x, v, S, b, y, E) {
3612
- var I = l + (v ^ (x | ~S)) + b + E;
3613
- return (I << y | I >>> 32 - y) + x;
3611
+ function g(l, S, v, x, b, y, E) {
3612
+ var I = l + (v ^ (S | ~x)) + b + E;
3613
+ return (I << y | I >>> 32 - y) + S;
3614
3614
  }
3615
3615
  i.MD5 = c._createHelper(h), i.HmacMD5 = c._createHmacHelper(h);
3616
3616
  }(Math), e.MD5;
@@ -3635,17 +3635,17 @@ function sn() {
3635
3635
  ]);
3636
3636
  },
3637
3637
  _doProcessBlock: function(h, p) {
3638
- for (var d = this._hash.words, f = d[0], g = d[1], l = d[2], x = d[3], v = d[4], S = 0; S < 80; S++) {
3639
- if (S < 16)
3640
- o[S] = h[p + S] | 0;
3638
+ for (var d = this._hash.words, f = d[0], g = d[1], l = d[2], S = d[3], v = d[4], x = 0; x < 80; x++) {
3639
+ if (x < 16)
3640
+ o[x] = h[p + x] | 0;
3641
3641
  else {
3642
- var b = o[S - 3] ^ o[S - 8] ^ o[S - 14] ^ o[S - 16];
3643
- o[S] = b << 1 | b >>> 31;
3642
+ var b = o[x - 3] ^ o[x - 8] ^ o[x - 14] ^ o[x - 16];
3643
+ o[x] = b << 1 | b >>> 31;
3644
3644
  }
3645
- var y = (f << 5 | f >>> 27) + v + o[S];
3646
- S < 20 ? y += (g & l | ~g & x) + 1518500249 : S < 40 ? y += (g ^ l ^ x) + 1859775393 : S < 60 ? y += (g & l | g & x | l & x) - 1894007588 : y += (g ^ l ^ x) - 899497514, v = x, x = l, l = g << 30 | g >>> 2, g = f, f = y;
3645
+ var y = (f << 5 | f >>> 27) + v + o[x];
3646
+ x < 20 ? y += (g & l | ~g & S) + 1518500249 : x < 40 ? y += (g ^ l ^ S) + 1859775393 : x < 60 ? y += (g & l | g & S | l & S) - 1894007588 : y += (g ^ l ^ S) - 899497514, v = S, S = l, l = g << 30 | g >>> 2, g = f, f = y;
3647
3647
  }
3648
- d[0] = d[0] + f | 0, d[1] = d[1] + g | 0, d[2] = d[2] + l | 0, d[3] = d[3] + x | 0, d[4] = d[4] + v | 0;
3648
+ d[0] = d[0] + f | 0, d[1] = d[1] + g | 0, d[2] = d[2] + l | 0, d[3] = d[3] + S | 0, d[4] = d[4] + v | 0;
3649
3649
  },
3650
3650
  _doFinalize: function() {
3651
3651
  var h = this._data, p = h.words, d = this._nDataBytes * 8, f = h.sigBytes * 8;
@@ -3671,7 +3671,7 @@ function $r() {
3671
3671
  var i = e, s = i.lib, a = s.WordArray, c = s.Hasher, o = i.algo, u = [], h = [];
3672
3672
  (function() {
3673
3673
  function f(v) {
3674
- for (var S = t.sqrt(v), b = 2; b <= S; b++)
3674
+ for (var x = t.sqrt(v), b = 2; b <= x; b++)
3675
3675
  if (!(v % b))
3676
3676
  return !1;
3677
3677
  return !0;
@@ -3679,29 +3679,29 @@ function $r() {
3679
3679
  function g(v) {
3680
3680
  return (v - (v | 0)) * 4294967296 | 0;
3681
3681
  }
3682
- for (var l = 2, x = 0; x < 64; )
3683
- f(l) && (x < 8 && (u[x] = g(t.pow(l, 1 / 2))), h[x] = g(t.pow(l, 1 / 3)), x++), l++;
3682
+ for (var l = 2, S = 0; S < 64; )
3683
+ f(l) && (S < 8 && (u[S] = g(t.pow(l, 1 / 2))), h[S] = g(t.pow(l, 1 / 3)), S++), l++;
3684
3684
  })();
3685
3685
  var p = [], d = o.SHA256 = c.extend({
3686
3686
  _doReset: function() {
3687
3687
  this._hash = new a.init(u.slice(0));
3688
3688
  },
3689
3689
  _doProcessBlock: function(f, g) {
3690
- for (var l = this._hash.words, x = l[0], v = l[1], S = l[2], b = l[3], y = l[4], E = l[5], I = l[6], A = l[7], C = 0; C < 64; C++) {
3690
+ for (var l = this._hash.words, S = l[0], v = l[1], x = l[2], b = l[3], y = l[4], E = l[5], I = l[6], A = l[7], C = 0; C < 64; C++) {
3691
3691
  if (C < 16)
3692
3692
  p[C] = f[g + C] | 0;
3693
3693
  else {
3694
3694
  var L = p[C - 15], _ = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, R = p[C - 2], T = (R << 15 | R >>> 17) ^ (R << 13 | R >>> 19) ^ R >>> 10;
3695
3695
  p[C] = _ + p[C - 7] + T + p[C - 16];
3696
3696
  }
3697
- var B = y & E ^ ~y & I, $ = x & v ^ x & S ^ v & S, q = (x << 30 | x >>> 2) ^ (x << 19 | x >>> 13) ^ (x << 10 | x >>> 22), G = (y << 26 | y >>> 6) ^ (y << 21 | y >>> 11) ^ (y << 7 | y >>> 25), ae = A + G + B + h[C] + p[C], Q = q + $;
3698
- A = I, I = E, E = y, y = b + ae | 0, b = S, S = v, v = x, x = ae + Q | 0;
3697
+ var B = y & E ^ ~y & I, $ = S & v ^ S & x ^ v & x, q = (S << 30 | S >>> 2) ^ (S << 19 | S >>> 13) ^ (S << 10 | S >>> 22), G = (y << 26 | y >>> 6) ^ (y << 21 | y >>> 11) ^ (y << 7 | y >>> 25), ae = A + G + B + h[C] + p[C], Q = q + $;
3698
+ A = I, I = E, E = y, y = b + ae | 0, b = x, x = v, v = S, S = ae + Q | 0;
3699
3699
  }
3700
- l[0] = l[0] + x | 0, l[1] = l[1] + v | 0, l[2] = l[2] + S | 0, l[3] = l[3] + b | 0, l[4] = l[4] + y | 0, l[5] = l[5] + E | 0, l[6] = l[6] + I | 0, l[7] = l[7] + A | 0;
3700
+ l[0] = l[0] + S | 0, l[1] = l[1] + v | 0, l[2] = l[2] + x | 0, l[3] = l[3] + b | 0, l[4] = l[4] + y | 0, l[5] = l[5] + E | 0, l[6] = l[6] + I | 0, l[7] = l[7] + A | 0;
3701
3701
  },
3702
3702
  _doFinalize: function() {
3703
- var f = this._data, g = f.words, l = this._nDataBytes * 8, x = f.sigBytes * 8;
3704
- return g[x >>> 5] |= 128 << 24 - x % 32, g[(x + 64 >>> 9 << 4) + 14] = t.floor(l / 4294967296), g[(x + 64 >>> 9 << 4) + 15] = l, f.sigBytes = g.length * 4, this._process(), this._hash;
3703
+ var f = this._data, g = f.words, l = this._nDataBytes * 8, S = f.sigBytes * 8;
3704
+ return g[S >>> 5] |= 128 << 24 - S % 32, g[(S + 64 >>> 9 << 4) + 14] = t.floor(l / 4294967296), g[(S + 64 >>> 9 << 4) + 15] = l, f.sigBytes = g.length * 4, this._process(), this._hash;
3705
3705
  },
3706
3706
  clone: function() {
3707
3707
  var f = c.clone.call(this);
@@ -3854,24 +3854,24 @@ function an() {
3854
3854
  ]);
3855
3855
  },
3856
3856
  _doProcessBlock: function(g, l) {
3857
- for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], y = x[3], E = x[4], I = x[5], A = x[6], C = x[7], L = v.high, _ = v.low, R = S.high, T = S.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, xe = ae, Pe = Q, at = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
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
3858
  var Ce, Ze, Ct = d[ke];
3859
3859
  if (ke < 16)
3860
3860
  Ze = Ct.high = g[l + ke * 2] | 0, Ce = Ct.low = g[l + ke * 2 + 1] | 0;
3861
3861
  else {
3862
- var dt = d[ke - 15], Qe = dt.high, nt = dt.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, lt = ci.low, ui = (ze >>> 19 | lt << 13) ^ (ze << 3 | lt >>> 29) ^ ze >>> 6, Gt = (lt >>> 19 | ze << 13) ^ (lt << 3 | ze >>> 29) ^ (lt >>> 6 | ze << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
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
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;
3864
3864
  }
3865
- var Dn = xe & at ^ ~xe & 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 = (xe >>> 14 | Pe << 18) ^ (xe >>> 18 | Pe << 14) ^ (xe << 23 | Pe >>> 9), Mn = (Pe >>> 14 | xe << 18) ^ (Pe >>> 18 | xe << 14) ^ (Pe << 23 | xe >>> 9), us = p[ke], Ln = us.high, hs = us.low, We = _t + Mn, ft = Jt + Bn + (We >>> 0 < _t >>> 0 ? 1 : 0), We = We + os, ft = ft + Dn + (We >>> 0 < os >>> 0 ? 1 : 0), We = We + hs, ft = ft + Ln + (We >>> 0 < hs >>> 0 ? 1 : 0), We = We + Ce, ft = ft + 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 = xe, Et = Pe, Pe = Ye + We | 0, xe = Xe + ft + (Pe >>> 0 < Ye >>> 0 ? 1 : 0) | 0, Xe = Fe, Ye = je, Fe = ue, je = X, ue = J, X = j, j = We + ds | 0, J = ft + Nn + (j >>> 0 < We >>> 0 ? 1 : 0) | 0;
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;
3867
3867
  }
3868
- _ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T = S.low = T + X, S.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 + xe + (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 = $ + 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);
3869
3869
  },
3870
3870
  _doFinalize: function() {
3871
- var g = this._data, l = g.words, x = this._nDataBytes * 8, v = g.sigBytes * 8;
3872
- l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(x / 4294967296), l[(v + 128 >>> 10 << 5) + 31] = x, g.sigBytes = l.length * 4, this._process();
3873
- var S = this._hash.toX32();
3874
- return S;
3871
+ var g = this._data, l = g.words, S = this._nDataBytes * 8, v = g.sigBytes * 8;
3872
+ l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(S / 4294967296), l[(v + 128 >>> 10 << 5) + 31] = S, g.sigBytes = l.length * 4, this._process();
3873
+ var x = this._hash.toX32();
3874
+ return x;
3875
3875
  },
3876
3876
  clone: function() {
3877
3877
  var g = s.clone.call(this);
@@ -3923,14 +3923,14 @@ function Mo() {
3923
3923
  return function(t) {
3924
3924
  var i = e, s = i.lib, a = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo, p = [], d = [], f = [];
3925
3925
  (function() {
3926
- for (var x = 1, v = 0, S = 0; S < 24; S++) {
3927
- p[x + 5 * v] = (S + 1) * (S + 2) / 2 % 64;
3928
- var b = v % 5, y = (2 * x + 3 * v) % 5;
3929
- x = b, v = y;
3926
+ for (var S = 1, v = 0, x = 0; x < 24; x++) {
3927
+ p[S + 5 * v] = (x + 1) * (x + 2) / 2 % 64;
3928
+ var b = v % 5, y = (2 * S + 3 * v) % 5;
3929
+ S = b, v = y;
3930
3930
  }
3931
- for (var x = 0; x < 5; x++)
3931
+ for (var S = 0; S < 5; S++)
3932
3932
  for (var v = 0; v < 5; v++)
3933
- d[x + 5 * v] = v + (2 * x + 3 * v) % 5 * 5;
3933
+ d[S + 5 * v] = v + (2 * S + 3 * v) % 5 * 5;
3934
3934
  for (var E = 1, I = 0; I < 24; I++) {
3935
3935
  for (var A = 0, C = 0, L = 0; L < 7; L++) {
3936
3936
  if (E & 1) {
@@ -3944,8 +3944,8 @@ function Mo() {
3944
3944
  })();
3945
3945
  var g = [];
3946
3946
  (function() {
3947
- for (var x = 0; x < 25; x++)
3948
- g[x] = u.create();
3947
+ for (var S = 0; S < 25; S++)
3948
+ g[S] = u.create();
3949
3949
  })();
3950
3950
  var l = h.SHA3 = c.extend({
3951
3951
  /**
@@ -3960,21 +3960,21 @@ function Mo() {
3960
3960
  outputLength: 512
3961
3961
  }),
3962
3962
  _doReset: function() {
3963
- for (var x = this._state = [], v = 0; v < 25; v++)
3964
- x[v] = new u.init();
3963
+ for (var S = this._state = [], v = 0; v < 25; v++)
3964
+ S[v] = new u.init();
3965
3965
  this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
3966
3966
  },
3967
- _doProcessBlock: function(x, v) {
3968
- for (var S = this._state, b = this.blockSize / 2, y = 0; y < b; y++) {
3969
- var E = x[v + 2 * y], I = x[v + 2 * y + 1];
3967
+ _doProcessBlock: function(S, v) {
3968
+ for (var x = this._state, b = this.blockSize / 2, y = 0; y < b; y++) {
3969
+ var E = S[v + 2 * y], I = S[v + 2 * y + 1];
3970
3970
  E = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360, I = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
3971
- var A = S[y];
3971
+ var A = x[y];
3972
3972
  A.high ^= I, A.low ^= E;
3973
3973
  }
3974
3974
  for (var C = 0; C < 24; C++) {
3975
3975
  for (var L = 0; L < 5; L++) {
3976
3976
  for (var _ = 0, R = 0, T = 0; T < 5; T++) {
3977
- var A = S[L + 5 * T];
3977
+ var A = x[L + 5 * T];
3978
3978
  _ ^= A.high, R ^= A.low;
3979
3979
  }
3980
3980
  var B = g[L];
@@ -3982,31 +3982,31 @@ function Mo() {
3982
3982
  }
3983
3983
  for (var L = 0; L < 5; L++)
3984
3984
  for (var $ = g[(L + 4) % 5], q = g[(L + 1) % 5], G = q.high, ae = q.low, _ = $.high ^ (G << 1 | ae >>> 31), R = $.low ^ (ae << 1 | G >>> 31), T = 0; T < 5; T++) {
3985
- var A = S[L + 5 * T];
3985
+ var A = x[L + 5 * T];
3986
3986
  A.high ^= _, A.low ^= R;
3987
3987
  }
3988
3988
  for (var Q = 1; Q < 25; Q++) {
3989
- var _, R, A = S[Q], te = A.high, ee = A.low, P = p[Q];
3989
+ var _, R, A = x[Q], te = A.high, ee = A.low, P = p[Q];
3990
3990
  P < 32 ? (_ = te << P | ee >>> 32 - P, R = ee << P | te >>> 32 - P) : (_ = ee << P - 32 | te >>> 64 - P, R = te << P - 32 | ee >>> 64 - P);
3991
3991
  var N = g[d[Q]];
3992
3992
  N.high = _, N.low = R;
3993
3993
  }
3994
- var F = g[0], M = S[0];
3994
+ var F = g[0], M = x[0];
3995
3995
  F.high = M.high, F.low = M.low;
3996
3996
  for (var L = 0; L < 5; L++)
3997
3997
  for (var T = 0; T < 5; T++) {
3998
- var Q = L + 5 * T, A = S[Q], J = g[Q], j = g[(L + 1) % 5 + 5 * T], ue = g[(L + 2) % 5 + 5 * T];
3998
+ var Q = L + 5 * T, A = x[Q], J = g[Q], j = g[(L + 1) % 5 + 5 * T], ue = g[(L + 2) % 5 + 5 * T];
3999
3999
  A.high = J.high ^ ~j.high & ue.high, A.low = J.low ^ ~j.low & ue.low;
4000
4000
  }
4001
- var A = S[0], X = f[C];
4001
+ var A = x[0], X = f[C];
4002
4002
  A.high ^= X.high, A.low ^= X.low;
4003
4003
  }
4004
4004
  },
4005
4005
  _doFinalize: function() {
4006
- var x = this._data, v = x.words;
4006
+ var S = this._data, v = S.words;
4007
4007
  this._nDataBytes * 8;
4008
- var S = x.sigBytes * 8, b = this.blockSize * 32;
4009
- v[S >>> 5] |= 1 << 24 - S % 32, v[(t.ceil((S + 1) / b) * b >>> 5) - 1] |= 128, x.sigBytes = v.length * 4, this._process();
4008
+ var x = S.sigBytes * 8, b = this.blockSize * 32;
4009
+ v[x >>> 5] |= 1 << 24 - x % 32, v[(t.ceil((x + 1) / b) * b >>> 5) - 1] |= 128, S.sigBytes = v.length * 4, this._process();
4010
4010
  for (var y = this._state, E = this.cfg.outputLength / 8, I = E / 8, A = [], C = 0; C < I; C++) {
4011
4011
  var L = y[C], _ = L.high, R = L.low;
4012
4012
  _ = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, R = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, A.push(R), A.push(_);
@@ -4014,9 +4014,9 @@ function Mo() {
4014
4014
  return new a.init(A, E);
4015
4015
  },
4016
4016
  clone: function() {
4017
- for (var x = c.clone.call(this), v = x._state = this._state.slice(0), S = 0; S < 25; S++)
4018
- v[S] = v[S].clone();
4019
- return x;
4017
+ for (var S = c.clone.call(this), v = S._state = this._state.slice(0), x = 0; x < 25; x++)
4018
+ v[x] = v[x].clone();
4019
+ return S;
4020
4020
  }
4021
4021
  });
4022
4022
  i.SHA3 = c._createHelper(l), i.HmacSHA3 = c._createHmacHelper(l);
@@ -4377,7 +4377,7 @@ function Lo() {
4377
4377
  var R = this._hash.words, T = f.words, B = g.words, $ = u.words, q = h.words, G = p.words, ae = d.words, Q, te, ee, P, N, F, M, J, j, ue;
4378
4378
  F = Q = R[0], M = te = R[1], J = ee = R[2], j = P = R[3], ue = N = R[4];
4379
4379
  for (var X, C = 0; C < 80; C += 1)
4380
- X = Q + I[A + $[C]] | 0, C < 16 ? X += x(te, ee, P) + T[0] : C < 32 ? X += v(te, ee, P) + T[1] : C < 48 ? X += S(te, ee, P) + T[2] : C < 64 ? X += b(te, ee, P) + T[3] : X += y(te, ee, P) + T[4], X = X | 0, X = E(X, G[C]), X = X + N | 0, Q = N, N = P, P = E(ee, 10), ee = te, te = X, X = F + I[A + q[C]] | 0, C < 16 ? X += y(M, J, j) + B[0] : C < 32 ? X += b(M, J, j) + B[1] : C < 48 ? X += S(M, J, j) + B[2] : C < 64 ? X += v(M, J, j) + B[3] : X += x(M, J, j) + B[4], X = X | 0, X = E(X, ae[C]), X = X + ue | 0, F = ue, ue = j, j = E(J, 10), J = M, M = X;
4380
+ X = Q + I[A + $[C]] | 0, C < 16 ? X += S(te, ee, P) + T[0] : C < 32 ? X += v(te, ee, P) + T[1] : C < 48 ? X += x(te, ee, P) + T[2] : C < 64 ? X += b(te, ee, P) + T[3] : X += y(te, ee, P) + T[4], X = X | 0, X = E(X, G[C]), X = X + N | 0, Q = N, N = P, P = E(ee, 10), ee = te, te = X, X = F + I[A + q[C]] | 0, C < 16 ? X += y(M, J, j) + B[0] : C < 32 ? X += b(M, J, j) + B[1] : C < 48 ? X += x(M, J, j) + B[2] : C < 64 ? X += v(M, J, j) + B[3] : X += S(M, J, j) + B[4], X = X | 0, X = E(X, ae[C]), X = X + ue | 0, F = ue, ue = j, j = E(J, 10), J = M, M = X;
4381
4381
  X = R[1] + ee + j | 0, R[1] = R[2] + P + ue | 0, R[2] = R[3] + N + F | 0, R[3] = R[4] + Q + M | 0, R[4] = R[0] + te + J | 0, R[0] = X;
4382
4382
  },
4383
4383
  _doFinalize: function() {
@@ -4394,13 +4394,13 @@ function Lo() {
4394
4394
  return I._hash = this._hash.clone(), I;
4395
4395
  }
4396
4396
  });
4397
- function x(I, A, C) {
4397
+ function S(I, A, C) {
4398
4398
  return I ^ A ^ C;
4399
4399
  }
4400
4400
  function v(I, A, C) {
4401
4401
  return I & A | ~I & C;
4402
4402
  }
4403
- function S(I, A, C) {
4403
+ function x(I, A, C) {
4404
4404
  return (I | ~A) ^ C;
4405
4405
  }
4406
4406
  function b(I, A, C) {
@@ -4440,8 +4440,8 @@ function Kr() {
4440
4440
  u = this._hasher = new u.init(), typeof h == "string" && (h = c.parse(h));
4441
4441
  var p = u.blockSize, d = p * 4;
4442
4442
  h.sigBytes > d && (h = u.finalize(h)), h.clamp();
4443
- for (var f = this._oKey = h.clone(), g = this._iKey = h.clone(), l = f.words, x = g.words, v = 0; v < p; v++)
4444
- l[v] ^= 1549556828, x[v] ^= 909522486;
4443
+ for (var f = this._oKey = h.clone(), g = this._iKey = h.clone(), l = f.words, S = g.words, v = 0; v < p; v++)
4444
+ l[v] ^= 1549556828, S[v] ^= 909522486;
4445
4445
  f.sigBytes = g.sigBytes = d, this.reset();
4446
4446
  },
4447
4447
  /**
@@ -4542,15 +4542,15 @@ function No() {
4542
4542
  * var key = kdf.compute(password, salt);
4543
4543
  */
4544
4544
  compute: function(p, d) {
4545
- for (var f = this.cfg, g = u.create(f.hasher, p), l = a.create(), x = a.create([1]), v = l.words, S = x.words, b = f.keySize, y = f.iterations; v.length < b; ) {
4546
- var E = g.update(d).finalize(x);
4545
+ for (var f = this.cfg, g = u.create(f.hasher, p), l = a.create(), S = a.create([1]), v = l.words, x = S.words, b = f.keySize, y = f.iterations; v.length < b; ) {
4546
+ var E = g.update(d).finalize(S);
4547
4547
  g.reset();
4548
4548
  for (var I = E.words, A = I.length, C = E, L = 1; L < y; L++) {
4549
4549
  C = g.finalize(C), g.reset();
4550
4550
  for (var _ = C.words, R = 0; R < A; R++)
4551
4551
  I[R] ^= _[R];
4552
4552
  }
4553
- l.concat(E), S[0]++;
4553
+ l.concat(E), x[0]++;
4554
4554
  }
4555
4555
  return l.sigBytes = b * 4, l;
4556
4556
  }
@@ -4609,9 +4609,9 @@ function yt() {
4609
4609
  * var key = kdf.compute(password, salt);
4610
4610
  */
4611
4611
  compute: function(h, p) {
4612
- for (var d, f = this.cfg, g = f.hasher.create(), l = a.create(), x = l.words, v = f.keySize, S = f.iterations; x.length < v; ) {
4612
+ for (var d, f = this.cfg, g = f.hasher.create(), l = a.create(), S = l.words, v = f.keySize, x = f.iterations; S.length < v; ) {
4613
4613
  d && g.update(d), d = g.update(h).finalize(p), g.reset();
4614
- for (var b = 1; b < S; b++)
4614
+ for (var b = 1; b < x; b++)
4615
4615
  d = g.finalize(d), g.reset();
4616
4616
  l.concat(d);
4617
4617
  }
@@ -4817,7 +4817,7 @@ function Ae() {
4817
4817
  init: function(_, R) {
4818
4818
  this._cipher = _, this._iv = R;
4819
4819
  }
4820
- }), x = g.CBC = function() {
4820
+ }), S = g.CBC = function() {
4821
4821
  var _ = l.extend();
4822
4822
  _.Encryptor = _.extend({
4823
4823
  /**
@@ -4857,7 +4857,7 @@ function Ae() {
4857
4857
  T[B + ae] ^= q[ae];
4858
4858
  }
4859
4859
  return _;
4860
- }(), v = i.pad = {}, S = v.Pkcs7 = {
4860
+ }(), v = i.pad = {}, x = v.Pkcs7 = {
4861
4861
  /**
4862
4862
  * Pads data using the algorithm defined in PKCS #5/7.
4863
4863
  *
@@ -4900,8 +4900,8 @@ function Ae() {
4900
4900
  * @property {Padding} padding The padding strategy to use. Default: Pkcs7
4901
4901
  */
4902
4902
  cfg: f.cfg.extend({
4903
- mode: x,
4904
- padding: S
4903
+ mode: S,
4904
+ padding: x
4905
4905
  }),
4906
4906
  reset: function() {
4907
4907
  var _;
@@ -5441,7 +5441,7 @@ function Jo() {
5441
5441
  r.exports = t(ne(), Mt(), Lt(), yt(), Ae());
5442
5442
  })(ie, function(e) {
5443
5443
  return function() {
5444
- var t = e, i = t.lib, s = i.BlockCipher, a = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], x = [];
5444
+ var t = e, i = t.lib, s = i.BlockCipher, a = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [];
5445
5445
  (function() {
5446
5446
  for (var b = [], y = 0; y < 256; y++)
5447
5447
  y < 128 ? b[y] = y << 1 : b[y] = y << 1 ^ 283;
@@ -5451,10 +5451,10 @@ function Jo() {
5451
5451
  var C = b[E], L = b[C], _ = b[L], R = b[A] * 257 ^ A * 16843008;
5452
5452
  u[E] = R << 24 | R >>> 8, h[E] = R << 16 | R >>> 16, p[E] = R << 8 | R >>> 24, d[E] = R;
5453
5453
  var R = _ * 16843009 ^ L * 65537 ^ C * 257 ^ E * 16843008;
5454
- f[A] = R << 24 | R >>> 8, g[A] = R << 16 | R >>> 16, l[A] = R << 8 | R >>> 24, x[A] = R, E ? (E = C ^ b[b[b[_ ^ C]]], I ^= b[b[I]]) : E = I = 1;
5454
+ f[A] = R << 24 | R >>> 8, g[A] = R << 16 | R >>> 16, l[A] = R << 8 | R >>> 24, S[A] = R, E ? (E = C ^ b[b[b[_ ^ C]]], I ^= b[b[I]]) : E = I = 1;
5455
5455
  }
5456
5456
  })();
5457
- var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], S = a.AES = s.extend({
5457
+ var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], x = a.AES = s.extend({
5458
5458
  _doReset: function() {
5459
5459
  var b;
5460
5460
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
@@ -5466,7 +5466,7 @@ function Jo() {
5466
5466
  var b = L[_];
5467
5467
  else
5468
5468
  var b = L[_ - 4];
5469
- T < 4 || _ <= 4 ? R[T] = b : R[T] = f[c[b >>> 24]] ^ g[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^ x[c[b & 255]];
5469
+ T < 4 || _ <= 4 ? R[T] = b : R[T] = f[c[b >>> 24]] ^ g[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^ S[c[b & 255]];
5470
5470
  }
5471
5471
  }
5472
5472
  },
@@ -5475,7 +5475,7 @@ function Jo() {
5475
5475
  },
5476
5476
  decryptBlock: function(b, y) {
5477
5477
  var E = b[y + 1];
5478
- b[y + 1] = b[y + 3], b[y + 3] = E, this._doCryptBlock(b, y, this._invKeySchedule, f, g, l, x, o);
5478
+ b[y + 1] = b[y + 3], b[y + 3] = E, this._doCryptBlock(b, y, this._invKeySchedule, f, g, l, S, o);
5479
5479
  var E = b[y + 1];
5480
5480
  b[y + 1] = b[y + 3], b[y + 3] = E;
5481
5481
  },
@@ -5489,7 +5489,7 @@ function Jo() {
5489
5489
  },
5490
5490
  keySize: 256 / 32
5491
5491
  });
5492
- t.AES = s._createHelper(S);
5492
+ t.AES = s._createHelper(x);
5493
5493
  }(), e.AES;
5494
5494
  });
5495
5495
  }(Er)), Er.exports;
@@ -6147,9 +6147,9 @@ function Go() {
6147
6147
  2147483679
6148
6148
  ], f = c.DES = a.extend({
6149
6149
  _doReset: function() {
6150
- for (var v = this._key, S = v.words, b = [], y = 0; y < 56; y++) {
6150
+ for (var v = this._key, x = v.words, b = [], y = 0; y < 56; y++) {
6151
6151
  var E = o[y] - 1;
6152
- b[y] = S[E >>> 5] >>> 31 - E % 32 & 1;
6152
+ b[y] = x[E >>> 5] >>> 31 - E % 32 & 1;
6153
6153
  }
6154
6154
  for (var I = this._subKeys = [], A = 0; A < 16; A++) {
6155
6155
  for (var C = I[A] = [], L = h[A], y = 0; y < 24; y++)
@@ -6162,54 +6162,54 @@ function Go() {
6162
6162
  for (var _ = this._invSubKeys = [], y = 0; y < 16; y++)
6163
6163
  _[y] = I[15 - y];
6164
6164
  },
6165
- encryptBlock: function(v, S) {
6166
- this._doCryptBlock(v, S, this._subKeys);
6165
+ encryptBlock: function(v, x) {
6166
+ this._doCryptBlock(v, x, this._subKeys);
6167
6167
  },
6168
- decryptBlock: function(v, S) {
6169
- this._doCryptBlock(v, S, this._invSubKeys);
6168
+ decryptBlock: function(v, x) {
6169
+ this._doCryptBlock(v, x, this._invSubKeys);
6170
6170
  },
6171
- _doCryptBlock: function(v, S, b) {
6172
- this._lBlock = v[S], this._rBlock = v[S + 1], g.call(this, 4, 252645135), g.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), g.call(this, 1, 1431655765);
6171
+ _doCryptBlock: function(v, x, b) {
6172
+ this._lBlock = v[x], this._rBlock = v[x + 1], g.call(this, 4, 252645135), g.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), g.call(this, 1, 1431655765);
6173
6173
  for (var y = 0; y < 16; y++) {
6174
6174
  for (var E = b[y], I = this._lBlock, A = this._rBlock, C = 0, L = 0; L < 8; L++)
6175
6175
  C |= p[L][((A ^ E[L]) & d[L]) >>> 0];
6176
6176
  this._lBlock = A, this._rBlock = I ^ C;
6177
6177
  }
6178
6178
  var _ = this._lBlock;
6179
- this._lBlock = this._rBlock, this._rBlock = _, g.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), g.call(this, 16, 65535), g.call(this, 4, 252645135), v[S] = this._lBlock, v[S + 1] = this._rBlock;
6179
+ this._lBlock = this._rBlock, this._rBlock = _, g.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), g.call(this, 16, 65535), g.call(this, 4, 252645135), v[x] = this._lBlock, v[x + 1] = this._rBlock;
6180
6180
  },
6181
6181
  keySize: 64 / 32,
6182
6182
  ivSize: 64 / 32,
6183
6183
  blockSize: 64 / 32
6184
6184
  });
6185
- function g(v, S) {
6186
- var b = (this._lBlock >>> v ^ this._rBlock) & S;
6185
+ function g(v, x) {
6186
+ var b = (this._lBlock >>> v ^ this._rBlock) & x;
6187
6187
  this._rBlock ^= b, this._lBlock ^= b << v;
6188
6188
  }
6189
- function l(v, S) {
6190
- var b = (this._rBlock >>> v ^ this._lBlock) & S;
6189
+ function l(v, x) {
6190
+ var b = (this._rBlock >>> v ^ this._lBlock) & x;
6191
6191
  this._lBlock ^= b, this._rBlock ^= b << v;
6192
6192
  }
6193
6193
  t.DES = a._createHelper(f);
6194
- var x = c.TripleDES = a.extend({
6194
+ var S = c.TripleDES = a.extend({
6195
6195
  _doReset: function() {
6196
- var v = this._key, S = v.words;
6197
- if (S.length !== 2 && S.length !== 4 && S.length < 6)
6196
+ var v = this._key, x = v.words;
6197
+ if (x.length !== 2 && x.length !== 4 && x.length < 6)
6198
6198
  throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
6199
- var b = S.slice(0, 2), y = S.length < 4 ? S.slice(0, 2) : S.slice(2, 4), E = S.length < 6 ? S.slice(0, 2) : S.slice(4, 6);
6199
+ var b = x.slice(0, 2), y = x.length < 4 ? x.slice(0, 2) : x.slice(2, 4), E = x.length < 6 ? x.slice(0, 2) : x.slice(4, 6);
6200
6200
  this._des1 = f.createEncryptor(s.create(b)), this._des2 = f.createEncryptor(s.create(y)), this._des3 = f.createEncryptor(s.create(E));
6201
6201
  },
6202
- encryptBlock: function(v, S) {
6203
- this._des1.encryptBlock(v, S), this._des2.decryptBlock(v, S), this._des3.encryptBlock(v, S);
6202
+ encryptBlock: function(v, x) {
6203
+ this._des1.encryptBlock(v, x), this._des2.decryptBlock(v, x), this._des3.encryptBlock(v, x);
6204
6204
  },
6205
- decryptBlock: function(v, S) {
6206
- this._des3.decryptBlock(v, S), this._des2.encryptBlock(v, S), this._des1.decryptBlock(v, S);
6205
+ decryptBlock: function(v, x) {
6206
+ this._des3.decryptBlock(v, x), this._des2.encryptBlock(v, x), this._des1.decryptBlock(v, x);
6207
6207
  },
6208
6208
  keySize: 192 / 32,
6209
6209
  ivSize: 64 / 32,
6210
6210
  blockSize: 64 / 32
6211
6211
  });
6212
- t.TripleDES = a._createHelper(x);
6212
+ t.TripleDES = a._createHelper(S);
6213
6213
  }(), e.TripleDES;
6214
6214
  });
6215
6215
  }(Ar)), Ar.exports;
@@ -6226,10 +6226,10 @@ function Xo() {
6226
6226
  for (var h = this._key, p = h.words, d = h.sigBytes, f = this._S = [], g = 0; g < 256; g++)
6227
6227
  f[g] = g;
6228
6228
  for (var g = 0, l = 0; g < 256; g++) {
6229
- var x = g % d, v = p[x >>> 2] >>> 24 - x % 4 * 8 & 255;
6229
+ var S = g % d, v = p[S >>> 2] >>> 24 - S % 4 * 8 & 255;
6230
6230
  l = (l + f[g] + v) % 256;
6231
- var S = f[g];
6232
- f[g] = f[l], f[l] = S;
6231
+ var x = f[g];
6232
+ f[g] = f[l], f[l] = x;
6233
6233
  }
6234
6234
  this._i = this._j = 0;
6235
6235
  },
@@ -6288,7 +6288,7 @@ function Yo() {
6288
6288
  d[1] << 16 | d[0] >>> 16,
6289
6289
  d[3],
6290
6290
  d[2] << 16 | d[1] >>> 16
6291
- ], x = this._C = [
6291
+ ], S = this._C = [
6292
6292
  d[2] << 16 | d[2] >>> 16,
6293
6293
  d[0] & 4294901760 | d[1] & 65535,
6294
6294
  d[3] << 16 | d[3] >>> 16,
@@ -6302,10 +6302,10 @@ function Yo() {
6302
6302
  for (var g = 0; g < 4; g++)
6303
6303
  p.call(this);
6304
6304
  for (var g = 0; g < 8; g++)
6305
- x[g] ^= l[g + 4 & 7];
6305
+ S[g] ^= l[g + 4 & 7];
6306
6306
  if (f) {
6307
- var v = f.words, S = v[0], b = v[1], y = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, I = y >>> 16 | E & 4294901760, A = E << 16 | y & 65535;
6308
- x[0] ^= y, x[1] ^= I, x[2] ^= E, x[3] ^= A, x[4] ^= y, x[5] ^= I, x[6] ^= E, x[7] ^= A;
6307
+ var v = f.words, x = v[0], b = v[1], y = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, I = y >>> 16 | E & 4294901760, A = E << 16 | y & 65535;
6308
+ S[0] ^= y, S[1] ^= I, S[2] ^= E, S[3] ^= A, S[4] ^= y, S[5] ^= I, S[6] ^= E, S[7] ^= A;
6309
6309
  for (var g = 0; g < 4; g++)
6310
6310
  p.call(this);
6311
6311
  }
@@ -6324,8 +6324,8 @@ function Yo() {
6324
6324
  o[g] = f[g];
6325
6325
  f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < o[7] >>> 0 ? 1 : 0;
6326
6326
  for (var g = 0; g < 8; g++) {
6327
- var l = d[g] + f[g], x = l & 65535, v = l >>> 16, S = ((x * x >>> 17) + x * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
6328
- u[g] = S ^ b;
6327
+ var l = d[g] + f[g], S = l & 65535, v = l >>> 16, x = ((S * S >>> 17) + S * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
6328
+ u[g] = x ^ b;
6329
6329
  }
6330
6330
  d[0] = u[0] + (u[7] << 16 | u[7] >>> 16) + (u[6] << 16 | u[6] >>> 16) | 0, d[1] = u[1] + (u[0] << 8 | u[0] >>> 24) + u[7] | 0, d[2] = u[2] + (u[1] << 16 | u[1] >>> 16) + (u[0] << 16 | u[0] >>> 16) | 0, d[3] = u[3] + (u[2] << 8 | u[2] >>> 24) + u[1] | 0, d[4] = u[4] + (u[3] << 16 | u[3] >>> 16) + (u[2] << 16 | u[2] >>> 16) | 0, d[5] = u[5] + (u[4] << 8 | u[4] >>> 24) + u[3] | 0, d[6] = u[6] + (u[5] << 16 | u[5] >>> 16) + (u[4] << 16 | u[4] >>> 16) | 0, d[7] = u[7] + (u[6] << 8 | u[6] >>> 24) + u[5] | 0;
6331
6331
  }
@@ -6363,14 +6363,14 @@ function Zo() {
6363
6363
  d[3] & 4294901760 | d[0] & 65535
6364
6364
  ];
6365
6365
  this._b = 0;
6366
- for (var x = 0; x < 4; x++)
6366
+ for (var S = 0; S < 4; S++)
6367
6367
  p.call(this);
6368
- for (var x = 0; x < 8; x++)
6369
- l[x] ^= g[x + 4 & 7];
6368
+ for (var S = 0; S < 8; S++)
6369
+ l[S] ^= g[S + 4 & 7];
6370
6370
  if (f) {
6371
- var v = f.words, S = v[0], b = v[1], y = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, I = y >>> 16 | E & 4294901760, A = E << 16 | y & 65535;
6371
+ var v = f.words, x = v[0], b = v[1], y = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, I = y >>> 16 | E & 4294901760, A = E << 16 | y & 65535;
6372
6372
  l[0] ^= y, l[1] ^= I, l[2] ^= E, l[3] ^= A, l[4] ^= y, l[5] ^= I, l[6] ^= E, l[7] ^= A;
6373
- for (var x = 0; x < 4; x++)
6373
+ for (var S = 0; S < 4; S++)
6374
6374
  p.call(this);
6375
6375
  }
6376
6376
  },
@@ -6388,8 +6388,8 @@ function Zo() {
6388
6388
  o[g] = f[g];
6389
6389
  f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < o[7] >>> 0 ? 1 : 0;
6390
6390
  for (var g = 0; g < 8; g++) {
6391
- var l = d[g] + f[g], x = l & 65535, v = l >>> 16, S = ((x * x >>> 17) + x * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
6392
- u[g] = S ^ b;
6391
+ var l = d[g] + f[g], S = l & 65535, v = l >>> 16, x = ((S * S >>> 17) + S * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
6392
+ u[g] = x ^ b;
6393
6393
  }
6394
6394
  d[0] = u[0] + (u[7] << 16 | u[7] >>> 16) + (u[6] << 16 | u[6] >>> 16) | 0, d[1] = u[1] + (u[0] << 8 | u[0] >>> 24) + u[7] | 0, d[2] = u[2] + (u[1] << 16 | u[1] >>> 16) + (u[0] << 16 | u[0] >>> 16) | 0, d[3] = u[3] + (u[2] << 8 | u[2] >>> 24) + u[1] | 0, d[4] = u[4] + (u[3] << 16 | u[3] >>> 16) + (u[2] << 16 | u[2] >>> 16) | 0, d[5] = u[5] + (u[4] << 8 | u[4] >>> 24) + u[3] | 0, d[6] = u[6] + (u[5] << 16 | u[5] >>> 16) + (u[4] << 16 | u[4] >>> 16) | 0, d[7] = u[7] + (u[6] << 8 | u[6] >>> 24) + u[5] | 0;
6395
6395
  }
@@ -7463,53 +7463,53 @@ function Qo() {
7463
7463
  pbox: [],
7464
7464
  sbox: []
7465
7465
  };
7466
- function p(x, v) {
7467
- let S = v >> 24 & 255, b = v >> 16 & 255, y = v >> 8 & 255, E = v & 255, I = x.sbox[0][S] + x.sbox[1][b];
7468
- return I = I ^ x.sbox[2][y], I = I + x.sbox[3][E], I;
7466
+ function p(S, v) {
7467
+ let x = v >> 24 & 255, b = v >> 16 & 255, y = v >> 8 & 255, E = v & 255, I = S.sbox[0][x] + S.sbox[1][b];
7468
+ return I = I ^ S.sbox[2][y], I = I + S.sbox[3][E], I;
7469
7469
  }
7470
- function d(x, v, S) {
7471
- let b = v, y = S, E;
7470
+ function d(S, v, x) {
7471
+ let b = v, y = x, E;
7472
7472
  for (let I = 0; I < c; ++I)
7473
- b = b ^ x.pbox[I], y = p(x, b) ^ y, E = b, b = y, y = E;
7474
- return E = b, b = y, y = E, y = y ^ x.pbox[c], b = b ^ x.pbox[c + 1], { left: b, right: y };
7473
+ b = b ^ S.pbox[I], y = p(S, b) ^ y, E = b, b = y, y = E;
7474
+ return E = b, b = y, y = E, y = y ^ S.pbox[c], b = b ^ S.pbox[c + 1], { left: b, right: y };
7475
7475
  }
7476
- function f(x, v, S) {
7477
- let b = v, y = S, E;
7476
+ function f(S, v, x) {
7477
+ let b = v, y = x, E;
7478
7478
  for (let I = c + 1; I > 1; --I)
7479
- b = b ^ x.pbox[I], y = p(x, b) ^ y, E = b, b = y, y = E;
7480
- return E = b, b = y, y = E, y = y ^ x.pbox[1], b = b ^ x.pbox[0], { left: b, right: y };
7479
+ b = b ^ S.pbox[I], y = p(S, b) ^ y, E = b, b = y, y = E;
7480
+ return E = b, b = y, y = E, y = y ^ S.pbox[1], b = b ^ S.pbox[0], { left: b, right: y };
7481
7481
  }
7482
- function g(x, v, S) {
7482
+ function g(S, v, x) {
7483
7483
  for (let A = 0; A < 4; A++) {
7484
- x.sbox[A] = [];
7484
+ S.sbox[A] = [];
7485
7485
  for (let C = 0; C < 256; C++)
7486
- x.sbox[A][C] = u[A][C];
7486
+ S.sbox[A][C] = u[A][C];
7487
7487
  }
7488
7488
  let b = 0;
7489
7489
  for (let A = 0; A < c + 2; A++)
7490
- x.pbox[A] = o[A] ^ v[b], b++, b >= S && (b = 0);
7490
+ S.pbox[A] = o[A] ^ v[b], b++, b >= x && (b = 0);
7491
7491
  let y = 0, E = 0, I = 0;
7492
7492
  for (let A = 0; A < c + 2; A += 2)
7493
- I = d(x, y, E), y = I.left, E = I.right, x.pbox[A] = y, x.pbox[A + 1] = E;
7493
+ I = d(S, y, E), y = I.left, E = I.right, S.pbox[A] = y, S.pbox[A + 1] = E;
7494
7494
  for (let A = 0; A < 4; A++)
7495
7495
  for (let C = 0; C < 256; C += 2)
7496
- I = d(x, y, E), y = I.left, E = I.right, x.sbox[A][C] = y, x.sbox[A][C + 1] = E;
7496
+ I = d(S, y, E), y = I.left, E = I.right, S.sbox[A][C] = y, S.sbox[A][C + 1] = E;
7497
7497
  return !0;
7498
7498
  }
7499
7499
  var l = a.Blowfish = s.extend({
7500
7500
  _doReset: function() {
7501
7501
  if (this._keyPriorReset !== this._key) {
7502
- var x = this._keyPriorReset = this._key, v = x.words, S = x.sigBytes / 4;
7503
- g(h, v, S);
7502
+ var S = this._keyPriorReset = this._key, v = S.words, x = S.sigBytes / 4;
7503
+ g(h, v, x);
7504
7504
  }
7505
7505
  },
7506
- encryptBlock: function(x, v) {
7507
- var S = d(h, x[v], x[v + 1]);
7508
- x[v] = S.left, x[v + 1] = S.right;
7506
+ encryptBlock: function(S, v) {
7507
+ var x = d(h, S[v], S[v + 1]);
7508
+ S[v] = x.left, S[v + 1] = x.right;
7509
7509
  },
7510
- decryptBlock: function(x, v) {
7511
- var S = f(h, x[v], x[v + 1]);
7512
- x[v] = S.left, x[v + 1] = S.right;
7510
+ decryptBlock: function(S, v) {
7511
+ var x = f(h, S[v], S[v + 1]);
7512
+ S[v] = x.left, S[v + 1] = x.right;
7513
7513
  },
7514
7514
  blockSize: 64 / 32,
7515
7515
  keySize: 128 / 32,
@@ -7663,7 +7663,7 @@ function Jr(r, n, e, t) {
7663
7663
  return e ? 0 : r.getTimezoneOffset();
7664
7664
  }, l = function() {
7665
7665
  return u0(r);
7666
- }, x = function() {
7666
+ }, S = function() {
7667
7667
  return h0(r);
7668
7668
  }, v = { d: function() {
7669
7669
  return a();
@@ -7730,10 +7730,10 @@ function Jr(r, n, e, t) {
7730
7730
  }, WW: function() {
7731
7731
  return $e(l());
7732
7732
  }, N: function() {
7733
- return x();
7733
+ return S();
7734
7734
  } };
7735
- return n.replace(n0, function(S) {
7736
- return S in v ? v[S]() : S.slice(1, S.length - 1);
7735
+ return n.replace(n0, function(x) {
7736
+ return x in v ? v[x]() : x.slice(1, x.length - 1);
7737
7737
  });
7738
7738
  }
7739
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) {
@@ -7752,18 +7752,18 @@ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7752
7752
  return u[s + "FullYear"]();
7753
7753
  }, l = function() {
7754
7754
  return h[s + "Date"]();
7755
- }, x = function() {
7755
+ }, S = function() {
7756
7756
  return h[s + "Month"]();
7757
7757
  }, v = function() {
7758
7758
  return h[s + "FullYear"]();
7759
- }, S = function() {
7759
+ }, x = function() {
7760
7760
  return p[s + "Date"]();
7761
7761
  }, b = function() {
7762
7762
  return p[s + "Month"]();
7763
7763
  }, y = function() {
7764
7764
  return p[s + "FullYear"]();
7765
7765
  };
7766
- return g() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && x() === t && l() === i ? o ? "Ysd" : "Yesterday" : y() === e && b() === t && S() === i ? o ? "Tmw" : "Tomorrow" : a;
7766
+ return g() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && S() === t && l() === i ? o ? "Ysd" : "Yesterday" : y() === e && b() === t && x() === i ? o ? "Tmw" : "Tomorrow" : a;
7767
7767
  }, u0 = function(n) {
7768
7768
  var e = new Date(n.getFullYear(), n.getMonth(), n.getDate());
7769
7769
  e.setDate(e.getDate() - (e.getDay() + 6) % 7 + 3);
@@ -8053,7 +8053,7 @@ class y0 {
8053
8053
  let i = wr();
8054
8054
  this.logLevel <= n && e(i, ...t);
8055
8055
  let s = Ue.paramArrayToString(t);
8056
- this.addLog(s);
8056
+ n > 0 && this.addLog(s);
8057
8057
  });
8058
8058
  // debug level message
8059
8059
  m(this, "d", this.logMethod(0, console.debug));
@@ -8488,7 +8488,7 @@ class Br {
8488
8488
  return a;
8489
8489
  }
8490
8490
  }
8491
- var ht = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(ht || {}), xt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(xt || {}), 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 || {}), be = /* @__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))(be || {}), 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 || {}), 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 || {});
8492
8492
  const La = 10, Na = 5e3, jt = class jt extends we {
8493
8493
  constructor(e) {
8494
8494
  super();
@@ -8607,7 +8607,7 @@ const La = 10, Na = 5e3, jt = class jt extends we {
8607
8607
  */
8608
8608
  m(jt, "logName", "Socket");
8609
8609
  let Mr = jt;
8610
- var Se = /* @__PURE__ */ ((r) => (r.KEEPALIVE = "keepalive", r.JOINCHANNEL = "joinchannel", r.NOTIFYJOIN = "notifyjoin", r.NOTIFYSTATUS = "notifystatus", r.STATUSREPORT = "statusreport", r.LEAVECHANNEL = "leavechannel", r.NOTIFYLEAVE = "notifyleave", r.NOTIFYPUBLISH = "notifypublish", r.BYE = "bye", r.RECONNECT = "reconnect", r.PUBLISH = "publish", r.REFRESHURL = "refreshurl", r.UNSUBSCRIBE = "unsubscribe", r.ROLEUPDATE = "roleupdate", r))(Se || {});
8610
+ var ve = /* @__PURE__ */ ((r) => (r.KEEPALIVE = "keepalive", r.JOINCHANNEL = "joinchannel", r.NOTIFYJOIN = "notifyjoin", r.NOTIFYSTATUS = "notifystatus", r.STATUSREPORT = "statusreport", r.LEAVECHANNEL = "leavechannel", r.NOTIFYLEAVE = "notifyleave", r.NOTIFYPUBLISH = "notifypublish", r.BYE = "bye", r.RECONNECT = "reconnect", r.PUBLISH = "publish", r.REFRESHURL = "refreshurl", r.UNSUBSCRIBE = "unsubscribe", r.ROLEUPDATE = "roleupdate", r))(ve || {});
8611
8611
  class R0 {
8612
8612
  constructor(n, e) {
8613
8613
  m(this, "authInfo");
@@ -8864,7 +8864,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8864
8864
  */
8865
8865
  refreshUrl(e) {
8866
8866
  const t = this.packageCreater.createRefreshUrlPackage();
8867
- t.data = Y(pt(Y({}, t.data), {
8867
+ t.data = Y(gt(Y({}, t.data), {
8868
8868
  sessionid: t.header.sessionid
8869
8869
  }), e), this.sendPackage(t);
8870
8870
  }
@@ -8884,7 +8884,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8884
8884
  * @param pkg
8885
8885
  */
8886
8886
  sendPackage(e) {
8887
- [Se.KEEPALIVE, Se.RECONNECT, Se.JOINCHANNEL].includes(e.msgtype) || this.packageCache.set(e.tid, e), this.wsClient.send(e), e.msgtype !== Se.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!0, e.msgtype, e.tid, e);
8887
+ [ve.KEEPALIVE, ve.RECONNECT, ve.JOINCHANNEL].includes(e.msgtype) || this.packageCache.set(e.tid, e), this.wsClient.send(e), e.msgtype !== ve.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!0, e.msgtype, e.tid, e);
8888
8888
  }
8889
8889
  /**
8890
8890
  * 更新重连 payload
@@ -8902,7 +8902,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8902
8902
  let e = this.packageCreater.createJoinPackage();
8903
8903
  e.data.configure = {
8904
8904
  channelprofile: this.channelProfile
8905
- }, (this.channelProfile === xt.AliRtcSdkInteractiveLive || this.channelProfile === xt.AliRtcSdkInteractiveWithLowLatencyLive) && (e.data.configure.clientrole = this.clientRole), this.sendPackage(e);
8905
+ }, (this.channelProfile === St.AliRtcSdkInteractiveLive || this.channelProfile === St.AliRtcSdkInteractiveWithLowLatencyLive) && (e.data.configure.clientrole = this.clientRole), this.sendPackage(e);
8906
8906
  } else {
8907
8907
  this.stopKeepAlive();
8908
8908
  const e = this.packageCreater.createReconnectPackage(this.reconnectData);
@@ -8916,7 +8916,7 @@ const w0 = 3e4, Ke = class Ke extends we {
8916
8916
  onMessage(e) {
8917
8917
  try {
8918
8918
  let t = JSON.parse(e.data);
8919
- this.packageCache.delete(t.tid), this.onRecvMessage(t), t != null && t.msgtype && (t == null ? void 0 : t.msgtype) !== Se.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!1, t.msgtype, t.tid, t);
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
8921
  H.warn(`[${Ke.logName}] onMessage err`, t, e);
8922
8922
  }
@@ -8979,44 +8979,44 @@ const w0 = 3e4, Ke = class Ke extends we {
8979
8979
  * @param response
8980
8980
  */
8981
8981
  onRecvMessage(e) {
8982
- switch (e.msgtype !== Se.KEEPALIVE && H.info(`[${Ke.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
8983
- case Se.JOINCHANNEL:
8982
+ switch (e.msgtype !== ve.KEEPALIVE && H.info(`[${Ke.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
8983
+ case ve.JOINCHANNEL:
8984
8984
  this.onJoinResult(e);
8985
8985
  break;
8986
- case Se.KEEPALIVE:
8986
+ case ve.KEEPALIVE:
8987
8987
  this.onKeepAliveRsp();
8988
8988
  break;
8989
- case Se.PUBLISH:
8989
+ case ve.PUBLISH:
8990
8990
  this.onPublishResult(e);
8991
8991
  break;
8992
- case Se.NOTIFYJOIN:
8992
+ case ve.NOTIFYJOIN:
8993
8993
  this.onNotifyJoin(e);
8994
8994
  break;
8995
- case Se.NOTIFYSTATUS:
8995
+ case ve.NOTIFYSTATUS:
8996
8996
  this.onNotifyStatus(e);
8997
8997
  break;
8998
- case Se.LEAVECHANNEL:
8998
+ case ve.LEAVECHANNEL:
8999
8999
  this.onLeaveResult(e);
9000
9000
  break;
9001
- case Se.NOTIFYLEAVE:
9001
+ case ve.NOTIFYLEAVE:
9002
9002
  this.onNotifyLeave(e);
9003
9003
  break;
9004
- case Se.NOTIFYPUBLISH:
9004
+ case ve.NOTIFYPUBLISH:
9005
9005
  this.onNotifyPublish(e);
9006
9006
  break;
9007
- case Se.STATUSREPORT:
9007
+ case ve.STATUSREPORT:
9008
9008
  this.onStatusReport(e);
9009
9009
  break;
9010
- case Se.BYE:
9010
+ case ve.BYE:
9011
9011
  this.onBye(e);
9012
9012
  break;
9013
- case Se.ROLEUPDATE:
9013
+ case ve.ROLEUPDATE:
9014
9014
  this.onRoleUpdateResult(e);
9015
9015
  break;
9016
- case Se.REFRESHURL:
9016
+ case ve.REFRESHURL:
9017
9017
  this.onRefreshUrlResult(e);
9018
9018
  break;
9019
- case Se.RECONNECT:
9019
+ case ve.RECONNECT:
9020
9020
  this.onReconnectResult(e);
9021
9021
  break;
9022
9022
  }
@@ -9134,9 +9134,9 @@ const D = (r, n) => (e, t, i) => {
9134
9134
  H.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
- var x;
9137
+ var S;
9138
9138
  let f = "";
9139
- const g = d instanceof Error, l = g && ((x = e.constructor) == null ? void 0 : x.logError);
9139
+ const g = d instanceof Error, l = g && ((S = e.constructor) == null ? void 0 : S.logError);
9140
9140
  if (!(!n && !g)) {
9141
9141
  if (l)
9142
9142
  f = d;
@@ -9169,7 +9169,7 @@ var D0 = Object.defineProperty, T0 = Object.getOwnPropertyDescriptor, es = (r, n
9169
9169
  return t && i && D0(n, e, i), i;
9170
9170
  }, Be;
9171
9171
  const Ci = (Be = class extends we {
9172
- constructor(e, t, i, s = ht.prod) {
9172
+ constructor(e, t, i, s = dt.prod) {
9173
9173
  super();
9174
9174
  m(this, "messageCenter");
9175
9175
  m(this, "authInfo");
@@ -9186,7 +9186,7 @@ const Ci = (Be = class extends we {
9186
9186
  clientrole: t
9187
9187
  }
9188
9188
  };
9189
- const a = s === ht.pre ? xi.pre : xi.prod;
9189
+ const a = s === dt.pre ? xi.pre : xi.prod;
9190
9190
  this.roomServerUri = `wss://${a}/roomserver/v1/ws`;
9191
9191
  }
9192
9192
  /**
@@ -9258,7 +9258,7 @@ const Ci = (Be = class extends we {
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(pt(Y({}, this.reconnectData), {
9261
+ H.info(`[${Be.logName}]`, "recv pubish response " + a), a === 200 ? (this.updateReconnectData(gt(Y({}, this.reconnectData), {
9262
9262
  publish: {
9263
9263
  users: [e]
9264
9264
  }
@@ -9379,13 +9379,13 @@ const k0 = "https://pgw.rtn.aliyuncs.com", B0 = "https://gw.rtn.aliyuncs.com", F
9379
9379
  return;
9380
9380
  const { appId: e, channelId: t, userId: i, nonce: s = "", token: a, timestamp: c, sessionId: o, role: u } = this.authInfo;
9381
9381
  let h = B0;
9382
- this.env === ht.pre && (h = k0);
9382
+ this.env === dt.pre && (h = k0);
9383
9383
  const p = `${h}/gslb/v1/stsupdate?appid=${e}&channelid=${t}&userid=${i}&nonce=${s}&token=${a}&timestamp=${c}&session=${o}${u ? `&tokenrole=${u}` : ""}&slstoken=true&osstoken=true&tokensid=false`, d = Date.now();
9384
9384
  fetch(p).then((f) => f.json()).then((f) => {
9385
9385
  var g, l;
9386
9386
  if (f.code === 0) {
9387
- const x = (g = f.data) == null ? void 0 : g.oss, v = (l = f.data) == null ? void 0 : l.sls;
9388
- this.expiration = x.expiration || v.expiration, this.emit("onTokenUpdate", x, v), H.event(`[${ti.logName}]`, "getToken", x, v);
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);
9389
9389
  } else
9390
9390
  throw new Error();
9391
9391
  this.slsReporter.reportSTSResult(200, d);
@@ -9419,14 +9419,14 @@ var L0 = Object.defineProperty, N0 = Object.getOwnPropertyDescriptor, F0 = (r, n
9419
9419
  return t && i && L0(n, e, i), i;
9420
9420
  };
9421
9421
  class ts extends we {
9422
- constructor(e, t, i, s = ht.prod) {
9422
+ constructor(e, t, i, s = dt.prod) {
9423
9423
  super();
9424
9424
  m(this, "signaling");
9425
9425
  m(this, "authInfo");
9426
9426
  m(this, "userName");
9427
9427
  m(this, "channelProfile");
9428
9428
  m(this, "clientRole");
9429
- m(this, "env", ht.prod);
9429
+ m(this, "env", dt.prod);
9430
9430
  m(this, "maxConnectRetryCount");
9431
9431
  m(this, "stsManager");
9432
9432
  m(this, "slsReporter");
@@ -9791,20 +9791,20 @@ const mn = "customVideoProfile", xn = "customScreenProfile", Zt = {
9791
9791
  frameRate: 30,
9792
9792
  maxBitrate: 2600
9793
9793
  }, U0 = {
9794
- 1e4: be.AliEngineLocalDeviceExceptionTypeUnknown,
9795
- 2e4: be.AliEngineLocalDeviceExceptionTypeUnknown,
9796
- 10001: be.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
9797
- 10002: be.AliEngineLocalDeviceExceptionTypeMicAuthFail,
9798
- 10003: be.AliEngineLocalDeviceExceptionTypeMicOpenFail,
9799
- 10005: be.AliEngineLocalDeviceExceptionTypeCameraAuthFail,
9800
- 10004: be.AliEngineLocalDeviceExceptionTypeVideoDeviceException,
9801
- 10006: be.AliEngineLocalDeviceExceptionTypeCameraOpenFail,
9802
- 10010: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9803
- 10011: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9804
- 10012: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9805
- 10013: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9806
- 10014: be.AliEngineLocalDeviceExceptionTypeDisplayException,
9807
- 10019: be.AliEngineLocalDeviceExceptionTypeDisplayException
9794
+ 1e4: ye.AliEngineLocalDeviceExceptionTypeUnknown,
9795
+ 2e4: ye.AliEngineLocalDeviceExceptionTypeUnknown,
9796
+ 10001: ye.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
9797
+ 10002: ye.AliEngineLocalDeviceExceptionTypeMicAuthFail,
9798
+ 10003: ye.AliEngineLocalDeviceExceptionTypeMicOpenFail,
9799
+ 10005: ye.AliEngineLocalDeviceExceptionTypeCameraAuthFail,
9800
+ 10004: ye.AliEngineLocalDeviceExceptionTypeVideoDeviceException,
9801
+ 10006: ye.AliEngineLocalDeviceExceptionTypeCameraOpenFail,
9802
+ 10010: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9803
+ 10011: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9804
+ 10012: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9805
+ 10013: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9806
+ 10014: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9807
+ 10019: ye.AliEngineLocalDeviceExceptionTypeDisplayException
9808
9808
  }, H0 = (r) => r.getAudioTracks()[0];
9809
9809
  function Va(r) {
9810
9810
  var n;
@@ -9838,7 +9838,7 @@ function Fr(r) {
9838
9838
  }
9839
9839
  return n;
9840
9840
  }
9841
- function St(r) {
9841
+ function vt(r) {
9842
9842
  return new Promise((n) => setTimeout(n, r));
9843
9843
  }
9844
9844
  function Oa(r, n, e = 1e3, t = (i) => !0) {
@@ -9864,7 +9864,7 @@ function j0(r, n) {
9864
9864
  return t;
9865
9865
  }
9866
9866
  const Sn = (r, n, e = !1) => {
9867
- const t = () => (r.muted = !0, Promise.race([St(500), r._playPromise || Promise.resolve()]).catch(() => {
9867
+ const t = () => (r.muted = !0, Promise.race([vt(500), r._playPromise || Promise.resolve()]).catch(() => {
9868
9868
  }).then(() => {
9869
9869
  let i;
9870
9870
  return e && r.srcObject === n ? i = Promise.resolve() : (r.load(), r.srcObject = n, i = r.play(), r._playPromise = i), i;
@@ -9887,7 +9887,7 @@ const Sn = (r, n, e = !1) => {
9887
9887
  }, 0);
9888
9888
  });
9889
9889
  }, tt = (r) => {
9890
- Promise.race([St(100), r._playPromise || Promise.resolve()]).catch(() => {
9890
+ Promise.race([vt(100), r._playPromise || Promise.resolve()]).catch(() => {
9891
9891
  }).then(() => {
9892
9892
  r.srcObject = null, r._playPromise = void 0;
9893
9893
  });
@@ -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 bt;
10108
- const ge = (bt = class extends pn {
10107
+ var ut;
10108
+ const ge = (ut = 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);
@@ -10306,7 +10306,7 @@ const ge = (bt = class extends pn {
10306
10306
  }
10307
10307
  clear() {
10308
10308
  return w(this, null, function* () {
10309
- Pi(bt.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
10309
+ Pi(ut.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) {
@@ -10409,7 +10409,7 @@ const ge = (bt = class extends pn {
10409
10409
  videoElement: t
10410
10410
  });
10411
10411
  if (!s) {
10412
- H.info(`[${bt.logName}]`, "preview no stream founded");
10412
+ H.info(`[${ut.logName}]`, "preview no stream founded");
10413
10413
  return;
10414
10414
  }
10415
10415
  return Sn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
@@ -10560,8 +10560,12 @@ const ge = (bt = class extends pn {
10560
10560
  var u;
10561
10561
  if (!this.joined)
10562
10562
  return;
10563
- this.createCallId();
10564
10563
  const i = yield this.streamManager.publishStreams, { audio: s, video: a, videoSmall: c, screen: o } = i;
10564
+ if (!s && !a && !c && !o) {
10565
+ H.event(`[${ut.logName}]`, "startPublish no stream founded");
10566
+ return;
10567
+ }
10568
+ this.createCallId();
10565
10569
  try {
10566
10570
  const h = (/* @__PURE__ */ new Date()).getTime();
10567
10571
  s && this.audioPubState.setState(Z.AliRtcStatePublishing), a && this.videoPubState.setState(Z.AliRtcStatePublishing), c && this.videoSmallPubState.setState(Z.AliRtcStatePublishing), o && this.screenPubState.setState(Z.AliRtcStatePublishing), this.publishPromise = this.rtsManager.publish(this.url, this.callId, e, t);
@@ -10573,7 +10577,7 @@ const ge = (bt = class extends pn {
10573
10577
  }
10574
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());
10575
10579
  const f = {
10576
- type: gt.Add,
10580
+ type: mt.Add,
10577
10581
  userid: this.userId,
10578
10582
  sessionid: "",
10579
10583
  displayname: this.name,
@@ -10617,43 +10621,47 @@ const ge = (bt = class extends pn {
10617
10621
  const s = (/* @__PURE__ */ new Date()).getTime();
10618
10622
  try {
10619
10623
  const h = (a = this.streamTracks) == null ? void 0 : a.find(
10620
- ({ ssrc: S, type: b, msid: y }) => b === "audio" && S && y === k.Audio
10624
+ ({ ssrc: x, type: b, msid: y }) => b === "audio" && x && y === k.Audio
10621
10625
  ), p = yield this.compareAndPublish(h, t.audio, k.Audio);
10622
10626
  p && (i = p);
10623
10627
  const d = (c = this.streamTracks) == null ? void 0 : c.find(
10624
- ({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.VideoLarge
10628
+ ({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.VideoLarge
10625
10629
  ), f = yield this.compareAndPublish(d, t.video, k.VideoLarge);
10626
10630
  f && (i = f);
10627
10631
  const g = (o = this.streamTracks) == null ? void 0 : o.find(
10628
- ({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.VideoSmall
10632
+ ({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.VideoSmall
10629
10633
  ), l = yield this.compareAndPublish(
10630
10634
  g,
10631
10635
  t.videoSmall,
10632
10636
  k.VideoSmall
10633
10637
  );
10634
10638
  l && (i = l);
10635
- const x = (u = this.streamTracks) == null ? void 0 : u.find(
10636
- ({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.Screen
10637
- ), v = yield this.compareAndPublish(x, t.screen, k.Screen);
10638
- if (v && (i = v), !i)
10639
- if (e === rt.RECONNECT)
10640
- i = {
10641
- type: gt.Add,
10642
- userid: this.userId,
10643
- sessionid: "",
10644
- displayname: this.name,
10645
- pubid: this.publishId,
10646
- resume: !0,
10647
- subscribe: {
10648
- signal: "",
10649
- pullstreamurl: this.url
10650
- },
10651
- callid: this.callId,
10652
- tracks: this.rtsManager.publishingTracks,
10653
- traceid: this.traceId
10654
- };
10655
- else
10656
- return;
10639
+ const S = (u = this.streamTracks) == null ? void 0 : u.find(
10640
+ ({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.Screen
10641
+ ), v = yield this.compareAndPublish(S, t.screen, k.Screen);
10642
+ if (v && (i = v), !i && e === rt.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
10643
+ const x = this.rtsManager.publishingTracks.find(({ type: y }) => y === "video"), b = this.rtsManager.publishingTracks.find(({ type: y }) => y === "audio");
10644
+ (x || b) && (yield this.rtsManager.waitPublishSender(
10645
+ this.url,
10646
+ !x,
10647
+ x ? x.msid : b == null ? void 0 : b.msid
10648
+ )), i = {
10649
+ type: mt.Add,
10650
+ userid: this.userId,
10651
+ sessionid: "",
10652
+ displayname: this.name,
10653
+ pubid: this.publishId,
10654
+ resume: !0,
10655
+ subscribe: {
10656
+ signal: "",
10657
+ pullstreamurl: this.url
10658
+ },
10659
+ callid: this.callId,
10660
+ tracks: this.rtsManager.publishingTracks,
10661
+ traceid: this.traceId
10662
+ };
10663
+ } else
10664
+ return;
10657
10665
  yield this.syncPublishToRoomServer(i, t, s);
10658
10666
  } catch (h) {
10659
10667
  const { code: p } = h != null ? h : {}, d = this.url;
@@ -10670,7 +10678,7 @@ const ge = (bt = class extends pn {
10670
10678
  let s = e;
10671
10679
  if (this.dc) {
10672
10680
  const c = e, { tracks: u } = c, h = Ft(c, ["tracks"]);
10673
- s = pt(Y({}, h), {
10681
+ s = gt(Y({}, h), {
10674
10682
  tracks: [
10675
10683
  ...u,
10676
10684
  {
@@ -10708,7 +10716,7 @@ const ge = (bt = class extends pn {
10708
10716
  const h = yield this.rtsManager.publishAdd(this.url, e, this.callId, t, !1, !0);
10709
10717
  a && (this.audioPubState.setState(Z.AliRtcStatePublished), this.reportAudioProfile(), this.trackTraceIdMap[k.Audio] = h), c && (this.videoPubState.setState(Z.AliRtcStatePublished), this.reportVideoProfile(), this.trackTraceIdMap[k.VideoLarge] = h), o && (this.videoSmallPubState.setState(Z.AliRtcStatePublished), this.trackTraceIdMap[k.VideoSmall] = h), u && (this.screenPubState.setState(Z.AliRtcStatePublished), this.reportScreenProfile(), this.trackTraceIdMap[k.Screen] = h), this.streamTracks = this.rtsManager.publishingTracks;
10710
10718
  const p = {
10711
- type: gt.Add,
10719
+ type: mt.Add,
10712
10720
  userid: this.userId,
10713
10721
  sessionid: "",
10714
10722
  displayname: this.name,
@@ -10736,7 +10744,7 @@ const ge = (bt = class extends pn {
10736
10744
  try {
10737
10745
  yield this.rtsManager.publishReplace(this.url, e, t), this.streamTracks = this.rtsManager.publishingTracks;
10738
10746
  const i = {
10739
- type: gt.Replace,
10747
+ type: mt.Replace,
10740
10748
  userid: this.userId,
10741
10749
  sessionid: "",
10742
10750
  pubid: this.publishId,
@@ -10761,7 +10769,7 @@ const ge = (bt = class extends pn {
10761
10769
  publishDeleteTracks(e) {
10762
10770
  return w(this, null, function* () {
10763
10771
  const t = {
10764
- type: gt.Delete,
10772
+ type: mt.Delete,
10765
10773
  userid: this.userId,
10766
10774
  sessionid: "",
10767
10775
  displayname: this.displayname,
@@ -10787,7 +10795,7 @@ const ge = (bt = class extends pn {
10787
10795
  O.ERR_INNER,
10788
10796
  "publish stop failed, previous localStream is required for publishing stopping"
10789
10797
  );
10790
- H.info(`[${bt.logName}]`, "publishStop", { url: this.url });
10798
+ H.info(`[${ut.logName}]`, "publishStop", { url: this.url });
10791
10799
  const e = (/* @__PURE__ */ new Date()).getTime();
10792
10800
  try {
10793
10801
  const t = this.hasAudioTrackInMS, i = this.hasCameraTrackInMS, s = this.hasCameraDualTrackInMS, a = this.hasScreenTrackInMS;
@@ -10795,7 +10803,7 @@ const ge = (bt = class extends pn {
10795
10803
  this.reportPublishMonitor(o);
10796
10804
  }), this.streamTracks = [];
10797
10805
  const c = {
10798
- type: gt.Stop,
10806
+ type: mt.Stop,
10799
10807
  userid: this.userId,
10800
10808
  sessionid: "",
10801
10809
  displayname: this.displayname,
@@ -10817,7 +10825,7 @@ const ge = (bt = class extends pn {
10817
10825
  return w(this, null, function* () {
10818
10826
  const e = (/* @__PURE__ */ new Date()).getTime();
10819
10827
  let t = {
10820
- type: gt.UnPublish,
10828
+ type: mt.UnPublish,
10821
10829
  userid: this.userId,
10822
10830
  sessionid: "",
10823
10831
  displayname: this.displayname,
@@ -10935,12 +10943,12 @@ const ge = (bt = class extends pn {
10935
10943
  const g = this.getMediaStats(f.mediaSourceId);
10936
10944
  f._source = g;
10937
10945
  const l = this.monitorDataCache[h];
10938
- let x;
10946
+ let S;
10939
10947
  if ((l == null ? void 0 : l.length) > 0) {
10940
10948
  const v = l[l.length - 1] || {}, { _last: b } = v;
10941
- x = Ft(v, ["_last"]);
10949
+ S = Ft(v, ["_last"]);
10942
10950
  }
10943
- (l == null ? void 0 : l.length) >= Ha && this.reportPublishMonitor(h), f._last = x, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
10951
+ (l == null ? void 0 : l.length) >= Ha && this.reportPublishMonitor(h), f._last = S, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
10944
10952
  });
10945
10953
  }), o.forEach((u) => {
10946
10954
  this.reportPublishMonitor(u);
@@ -11049,7 +11057,7 @@ const ge = (bt = class extends pn {
11049
11057
  }, /**
11050
11058
  * @ignore
11051
11059
  */
11052
- m(bt, "logName", "LocalUser"), bt);
11060
+ m(ut, "logName", "LocalUser"), ut);
11053
11061
  me([
11054
11062
  D()
11055
11063
  ], ge.prototype, "clearPublishState", 1);
@@ -11117,7 +11125,7 @@ me([
11117
11125
  D(([r, n, e]) => [r.length, n, e])
11118
11126
  ], ge.prototype, "sendSEI", 1);
11119
11127
  let ja = ge;
11120
- var mt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(mt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), kt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(kt || {});
11128
+ var xt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(xt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), kt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(kt || {});
11121
11129
  const $0 = (r) => {
11122
11130
  const n = new MediaStream();
11123
11131
  return n.addTrack(r), n;
@@ -11149,7 +11157,7 @@ class bi extends we {
11149
11157
  msid: "",
11150
11158
  pt: 0,
11151
11159
  red: 0,
11152
- codec: mt.UNKNOWN
11160
+ codec: xt.UNKNOWN
11153
11161
  });
11154
11162
  m(this, "videoLargeInfo", {
11155
11163
  subscribeState: re.NotSubscribe,
@@ -11157,7 +11165,7 @@ class bi extends we {
11157
11165
  msid: "",
11158
11166
  pt: 0,
11159
11167
  red: 0,
11160
- codec: mt.UNKNOWN
11168
+ codec: xt.UNKNOWN
11161
11169
  });
11162
11170
  m(this, "videoSmallInfo", {
11163
11171
  subscribeState: re.NotSubscribe,
@@ -11165,7 +11173,7 @@ class bi extends we {
11165
11173
  msid: "",
11166
11174
  pt: 0,
11167
11175
  red: 0,
11168
- codec: mt.UNKNOWN
11176
+ codec: xt.UNKNOWN
11169
11177
  });
11170
11178
  m(this, "screenInfo", {
11171
11179
  subscribeState: re.NotSubscribe,
@@ -11173,7 +11181,7 @@ class bi extends we {
11173
11181
  msid: "",
11174
11182
  pt: 0,
11175
11183
  red: 0,
11176
- codec: mt.UNKNOWN
11184
+ codec: xt.UNKNOWN
11177
11185
  });
11178
11186
  m(this, "dataInfo", {
11179
11187
  subscribeState: re.NotSubscribe,
@@ -11181,7 +11189,7 @@ class bi extends we {
11181
11189
  msid: "",
11182
11190
  pt: 0,
11183
11191
  red: 0,
11184
- codec: mt.UNKNOWN
11192
+ codec: xt.UNKNOWN
11185
11193
  });
11186
11194
  m(this, "audioVolume", 1);
11187
11195
  m(this, "audioMuted", !1);
@@ -11324,7 +11332,7 @@ class bi extends we {
11324
11332
  return this.audioInfo.codec;
11325
11333
  }
11326
11334
  get videoCodec() {
11327
- return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec : mt.UNKNOWN;
11335
+ return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec : xt.UNKNOWN;
11328
11336
  }
11329
11337
  get audioTrackInfo() {
11330
11338
  return this.hasAudio ? qt.AliRtcAudioTrackMic : qt.AliRtcAudioTrackNo;
@@ -11337,7 +11345,7 @@ class bi extends we {
11337
11345
  let t = "", i = "", s = "", a = "", c = "";
11338
11346
  return e ? (e.forEach((o) => {
11339
11347
  var p;
11340
- let u = mt.UNKNOWN;
11348
+ let u = xt.UNKNOWN;
11341
11349
  const h = ((p = o == null ? void 0 : o.attr) == null ? void 0 : p.reason) === "reconnect";
11342
11350
  if (o.userdata) {
11343
11351
  const { codec: d } = JSON.parse(o.userdata);
@@ -11460,8 +11468,8 @@ class Ut extends we {
11460
11468
  }
11461
11469
  }
11462
11470
  const sc = 30;
11463
- var ut;
11464
- const _e = (ut = class extends pn {
11471
+ var ht;
11472
+ const _e = (ht = class extends pn {
11465
11473
  constructor(e) {
11466
11474
  var f;
11467
11475
  const {
@@ -11545,7 +11553,7 @@ const _e = (ut = class extends pn {
11545
11553
  } else
11546
11554
  i = Wt.parse(t.body);
11547
11555
  i || H.event(
11548
- `[${ut.logName}]`,
11556
+ `[${ht.logName}]`,
11549
11557
  `parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`
11550
11558
  );
11551
11559
  } else {
@@ -11553,7 +11561,7 @@ const _e = (ut = class extends pn {
11553
11561
  return;
11554
11562
  }
11555
11563
  i && (H.event(
11556
- `[${ut.logName}]`,
11564
+ `[${ht.logName}]`,
11557
11565
  `receive data channel message, length: ${(s = i.data) == null ? void 0 : s.byteLength}`
11558
11566
  ), this.emit("remoteDataChannelMessage", this.uid, i));
11559
11567
  });
@@ -11565,14 +11573,14 @@ const _e = (ut = class extends pn {
11565
11573
  });
11566
11574
  this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Le.Remote, (g) => {
11567
11575
  this.emit(Le.Remote, g, this.userId);
11568
- }), 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, x) => {
11569
- this.emit("audioSubscribeStateChanged", this.uid, g, l, x);
11570
- }), this.videoSubState = new Ut(), this.videoSubState.on("change", (g, l, x) => {
11571
- this.emit("videoSubscribeStateChanged", this.uid, g, l, x);
11572
- }), this.screenSubState = new Ut(), this.screenSubState.on("change", (g, l, x) => {
11573
- this.emit("screenSubscribeStateChanged", this.uid, g, l, x);
11574
- }), this.dataSubState = new Ut(), this.dataSubState.on("change", (g, l, x) => {
11575
- this.emit("dataSubscribeStateChanged", this.uid, g, l, x);
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) => {
11577
+ this.emit("audioSubscribeStateChanged", this.uid, g, l, S);
11578
+ }), this.videoSubState = new Ut(), this.videoSubState.on("change", (g, l, S) => {
11579
+ this.emit("videoSubscribeStateChanged", this.uid, g, l, S);
11580
+ }), this.screenSubState = new Ut(), this.screenSubState.on("change", (g, l, S) => {
11581
+ this.emit("screenSubscribeStateChanged", this.uid, g, l, S);
11582
+ }), this.dataSubState = new Ut(), this.dataSubState.on("change", (g, l, S) => {
11583
+ this.emit("dataSubscribeStateChanged", this.uid, g, l, S);
11576
11584
  }), this.playoutVolume = p;
11577
11585
  }
11578
11586
  isWantSubAudio() {
@@ -11700,7 +11708,7 @@ const _e = (ut = class extends pn {
11700
11708
  clear(e = !0) {
11701
11709
  return w(this, null, function* () {
11702
11710
  var t;
11703
- this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Pi(ut.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(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);
11704
11712
  });
11705
11713
  }
11706
11714
  updateRemoteUserDeviceStatus(e) {
@@ -11718,12 +11726,12 @@ const _e = (ut = class extends pn {
11718
11726
  var f, g;
11719
11727
  let c = e;
11720
11728
  if (!c) {
11721
- const { hasAudio: l, hasVideo: x, hasScreen: v, hasData: S } = (f = this.streamInfo) != null ? f : {};
11729
+ const { hasAudio: l, hasVideo: S, hasScreen: v, hasData: x } = (f = this.streamInfo) != null ? f : {};
11722
11730
  c = {
11723
11731
  audio: this.wantSubAudio && l,
11724
- video: this.wantSubVideo && x,
11732
+ video: this.wantSubVideo && S,
11725
11733
  screen: this.wantSubScreen && v,
11726
- data: ((g = this.parameter.data) == null ? void 0 : g.enableSubDataChannel) && S
11734
+ data: ((g = this.parameter.data) == null ? void 0 : g.enableSubDataChannel) && x
11727
11735
  };
11728
11736
  }
11729
11737
  this.streamInfo.markRemoteTrackSubscribing(c);
@@ -11998,10 +12006,10 @@ const _e = (ut = class extends pn {
11998
12006
  };
11999
12007
  }
12000
12008
  updateSubscribe(e) {
12001
- var a, c, o, u, h, p, d, f, g, l, x, v, S, b, y, E, I;
12009
+ var a, c, o, u, h, p, d, f, g, l, S, v, x, b, y, E, I;
12002
12010
  const t = Date.now(), i = {}, s = {};
12003
- 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 && ((x = this.streamInfo) != null && x.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (S = this.parameter.data) != null && S.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) {
12004
- if (H.event(`[${ut.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
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) {
12012
+ if (H.event(`[${ht.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12005
12013
  const A = this.rtsManager.getStreamByMsid({
12006
12014
  url: this.streamUrl,
12007
12015
  aMsid: this.streamInfo.getAudioInfo().msid || k.Audio
@@ -12235,7 +12243,7 @@ const _e = (ut = class extends pn {
12235
12243
  }, /**
12236
12244
  * @ignore
12237
12245
  */
12238
- m(ut, "logName", "RemoteUser"), ut);
12246
+ m(ht, "logName", "RemoteUser"), ht);
12239
12247
  De([
12240
12248
  D()
12241
12249
  ], _e.prototype, "clear", 1);
@@ -12292,7 +12300,7 @@ De([
12292
12300
  D()
12293
12301
  ], _e.prototype, "stopPlayAll", 1);
12294
12302
  let ac = _e;
12295
- var vt = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(vt || {});
12303
+ var bt = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(bt || {});
12296
12304
  class nc extends we {
12297
12305
  constructor() {
12298
12306
  super(...arguments);
@@ -12300,13 +12308,13 @@ class nc extends we {
12300
12308
  }
12301
12309
  add(e, t) {
12302
12310
  if (this.plugins.has(e.name))
12303
- throw new V(vt.AliRtcPluginErrorCreateError, `Plugin ${e.name} already exists`);
12311
+ throw new V(bt.AliRtcPluginErrorCreateError, `Plugin ${e.name} already exists`);
12304
12312
  this.plugins.set(e.name, e), t && e.setOptions(t), this.emit("added", e), e.on("enabled", () => this.emit("added", e)), e.on("disabled", () => this.emit("removed", e)), e.on("updated", () => this.emit("updated", e));
12305
12313
  }
12306
12314
  remove(e) {
12307
12315
  const t = this.plugins.get(e);
12308
12316
  if (!t)
12309
- throw new V(vt.AliRtcPluginErrorNoFindPlugin, `Plugin ${e} not founded`);
12317
+ throw new V(bt.AliRtcPluginErrorNoFindPlugin, `Plugin ${e} not founded`);
12310
12318
  this.plugins.delete(e), t.removeAllListeners(), this.emit("removed", t);
12311
12319
  }
12312
12320
  removeAll() {
@@ -12324,7 +12332,7 @@ class nc extends we {
12324
12332
  return Array.from(this.plugins.values());
12325
12333
  }
12326
12334
  }
12327
- var oc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, ye = (r, n, e, t) => {
12335
+ var oc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, be = (r, n, e, t) => {
12328
12336
  for (var i = t > 1 ? void 0 : t ? cc(n, e) : n, s = r.length - 1, a; s >= 0; s--)
12329
12337
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
12330
12338
  return t && i && oc(n, e, i), i;
@@ -12334,7 +12342,7 @@ const wi = ([r]) => {
12334
12342
  return [`user(${n.userId})`, e];
12335
12343
  }, za = 5;
12336
12344
  var Me;
12337
- const ve = (Me = class extends we {
12345
+ const xe = (Me = class extends we {
12338
12346
  constructor(e, t, i, s, a) {
12339
12347
  super();
12340
12348
  m(this, "rts");
@@ -12459,7 +12467,7 @@ const ve = (Me = class extends we {
12459
12467
  }
12460
12468
  httpPublish(a, c) {
12461
12469
  return w(this, arguments, function* (e, t, i = !1, s = rt.MANUAL) {
12462
- var S, b;
12470
+ var x, b;
12463
12471
  let o;
12464
12472
  const { publishStream: u, videoSmallStream: h, screenStream: p, vMsid: d } = yield this.localStreamManager.createHTTPPublishStream();
12465
12473
  if (!u)
@@ -12473,7 +12481,7 @@ const ve = (Me = class extends we {
12473
12481
  this.encodedInsertableStreams && (f.encodedInsertableStreams = !0), f.answerSdpHook = (y) => {
12474
12482
  const E = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(y);
12475
12483
  return E != null && E[0] && (o = E[0]), y;
12476
- }, (b = (S = this.parameter) == null ? void 0 : S.net) != null && b.useTCP && (f.tcpOnly = !0), f.beforeRetry = (y) => w(this, null, function* () {
12484
+ }, (b = (x = this.parameter) == null ? void 0 : x.net) != null && b.useTCP && (f.tcpOnly = !0), f.beforeRetry = (y) => w(this, null, function* () {
12477
12485
  this._rtsReconnecting = !0, this.publishRetryHook && this.publishRetryHook();
12478
12486
  const { publishStream: E, vMsid: I } = yield this.localStreamManager.createHTTPPublishStream();
12479
12487
  if (!E)
@@ -12483,11 +12491,11 @@ const ve = (Me = class extends we {
12483
12491
  });
12484
12492
  return y.stream = E, A.aMsid ? y.aMsid = A.aMsid : y.aMsid = [], A.vMsid ? y.vMsid = A.vMsid : y.vMsid = [], y;
12485
12493
  }), this._rtsPeerConnectionType = "publish";
12486
- let g = !u.hasVideo, l = d, x = "";
12494
+ let g = !u.hasVideo, l = d, S = "";
12487
12495
  this.startConnect();
12488
12496
  const v = Date.now();
12489
12497
  try {
12490
- x = yield this.rts.publish(e, u, f);
12498
+ S = yield this.rts.publish(e, u, f);
12491
12499
  } catch (y) {
12492
12500
  this.setConnected(!1);
12493
12501
  const E = 2e3 - (Date.now() - v);
@@ -12507,7 +12515,7 @@ const ve = (Me = class extends we {
12507
12515
  v
12508
12516
  ), V.fromRtsError(y);
12509
12517
  }
12510
- H.event(`[${Me.logName}]`, "rts publish success", x), this.slsReporter.reportPublish(
12518
+ H.event(`[${Me.logName}]`, "rts publish success", S), this.slsReporter.reportPublish(
12511
12519
  i,
12512
12520
  e,
12513
12521
  t,
@@ -12516,13 +12524,13 @@ const ve = (Me = class extends we {
12516
12524
  u.hasVideo && d === k.Screen,
12517
12525
  u.hasAudio,
12518
12526
  0,
12519
- x,
12520
- x,
12527
+ S,
12528
+ S,
12521
12529
  v
12522
12530
  );
12523
12531
  try {
12524
12532
  const y = Date.now();
12525
- return this._pcTraceId = x, this.setConnected(!0), this._publishingTracks = this.rts.getPublishTrackInfoList(), h && (yield this.publishAdd(
12533
+ return this._pcTraceId = S, this.setConnected(!0), this._publishingTracks = this.rts.getPublishTrackInfoList(), h && (yield this.publishAdd(
12526
12534
  e,
12527
12535
  h,
12528
12536
  t,
@@ -12545,11 +12553,11 @@ const ve = (Me = class extends we {
12545
12553
  y,
12546
12554
  this._localJoinTime,
12547
12555
  g ? k.Audio : f.vMsid,
12548
- x || "",
12549
- x || "",
12556
+ S || "",
12557
+ S || "",
12550
12558
  s
12551
12559
  ), {
12552
- traceId: x,
12560
+ traceId: S,
12553
12561
  l1ip: o
12554
12562
  };
12555
12563
  } catch (y) {
@@ -12564,7 +12572,7 @@ const ve = (Me = class extends we {
12564
12572
  const u = () => (t ? this.rts.getPublishAudioStats(e, i) : this.rts.getPublishVideoStats(e, i)).then((p) => !(p.bytesSent > 0) && o < a ? (o++, new Promise((f) => setTimeout(() => f(u()), c))) : Promise.resolve());
12565
12573
  return u();
12566
12574
  };
12567
- return Promise.race([St(1e3), s(5, 100)]).catch(() => {
12575
+ return Promise.race([vt(1e3), s(5, 100)]).catch(() => {
12568
12576
  });
12569
12577
  });
12570
12578
  }
@@ -12580,7 +12588,7 @@ const ve = (Me = class extends we {
12580
12588
  }
12581
12589
  publishAdd(u, h, p, d) {
12582
12590
  return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = rt.MANUAL) {
12583
- var l, x, v, S, b, y, E, I;
12591
+ var l, S, v, x, b, y, E, I;
12584
12592
  const f = Date.now(), g = this.getPubMsid(t, s);
12585
12593
  try {
12586
12594
  const A = yield Oa(
@@ -12604,9 +12612,9 @@ const ve = (Me = class extends we {
12604
12612
  e,
12605
12613
  i,
12606
12614
  ((l = g.vMsid) == null ? void 0 : l[0]) === k.VideoLarge,
12607
- ((x = g.vMsid) == null ? void 0 : x[0]) === k.VideoSmall,
12615
+ ((S = g.vMsid) == null ? void 0 : S[0]) === k.VideoSmall,
12608
12616
  ((v = g.vMsid) == null ? void 0 : v[0]) === k.Screen,
12609
- ((S = g.aMsid) == null ? void 0 : S[0]) === k.Audio,
12617
+ ((x = g.aMsid) == null ? void 0 : x[0]) === k.Audio,
12610
12618
  0,
12611
12619
  this.pcTraceId,
12612
12620
  L.traceId || "",
@@ -12643,7 +12651,7 @@ const ve = (Me = class extends we {
12643
12651
  }
12644
12652
  publishDelete(e, t) {
12645
12653
  return w(this, null, function* () {
12646
- var u, h, p, d, f, g, l, x;
12654
+ var u, h, p, d, f, g, l, S;
12647
12655
  yield this.dcConnectingPromise;
12648
12656
  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 = [];
12649
12657
  t.screen && a ? c.push(a) : t.video && c.push(t.vMsid || s);
@@ -12657,7 +12665,7 @@ const ve = (Me = class extends we {
12657
12665
  vMsid: c
12658
12666
  }
12659
12667
  ])) || [];
12660
- return H.event(Me.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((x = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : x.trackId) || "";
12668
+ 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) || "";
12661
12669
  } catch (v) {
12662
12670
  throw V.fromRtsError(v);
12663
12671
  }
@@ -12784,7 +12792,7 @@ const ve = (Me = class extends we {
12784
12792
  subscribeAdd(e) {
12785
12793
  return w(this, null, function* () {
12786
12794
  var a, c, o, u;
12787
- const { remoteUser: t, options: i } = e, s = pt(Y({
12795
+ const { remoteUser: t, options: i } = e, s = gt(Y({
12788
12796
  url: t.streamUrl,
12789
12797
  subAudio: !!i.audio,
12790
12798
  subVideo: !!(i.screen || i.video)
@@ -12812,7 +12820,7 @@ const ve = (Me = class extends we {
12812
12820
  return w(this, null, function* () {
12813
12821
  var a, c, o, u;
12814
12822
  yield this.dcConnectingPromise;
12815
- const { remoteUser: t, options: i } = e, s = pt(Y({
12823
+ const { remoteUser: t, options: i } = e, s = gt(Y({
12816
12824
  url: t.streamUrl,
12817
12825
  subAudio: !!i.audio,
12818
12826
  subVideo: !!(i.screen || i.video)
@@ -12888,7 +12896,7 @@ const ve = (Me = class extends we {
12888
12896
  aMsid: k.Audio
12889
12897
  },
12890
12898
  i
12891
- ), h = !0, p = k.Audio, yield St(100)), f && (o = yield this.publishAdd(
12899
+ ), h = !0, p = k.Audio, yield vt(100)), f && (o = yield this.publishAdd(
12892
12900
  e,
12893
12901
  f,
12894
12902
  t,
@@ -12896,7 +12904,7 @@ const ve = (Me = class extends we {
12896
12904
  vMsid: k.VideoLarge
12897
12905
  },
12898
12906
  i
12899
- ), h = !1, p = k.VideoLarge, yield St(100)), g && (o = yield this.publishAdd(
12907
+ ), h = !1, p = k.VideoLarge, yield vt(100)), g && (o = yield this.publishAdd(
12900
12908
  e,
12901
12909
  g,
12902
12910
  t,
@@ -12904,7 +12912,7 @@ const ve = (Me = class extends we {
12904
12912
  vMsid: k.VideoSmall
12905
12913
  },
12906
12914
  i
12907
- ), h = !1, p = k.VideoSmall, yield St(100)), l && (o = yield this.publishAdd(
12915
+ ), h = !1, p = k.VideoSmall, yield vt(100)), l && (o = yield this.publishAdd(
12908
12916
  e,
12909
12917
  l,
12910
12918
  t,
@@ -12939,20 +12947,20 @@ const ve = (Me = class extends we {
12939
12947
  const d = Date.now();
12940
12948
  let f = k.VideoLarge, g = o.video || o.screen, l = o.audio;
12941
12949
  o.video && o.vMsid ? f = o.vMsid : o.screen && (f = k.Screen);
12942
- let x = 0, v = 0, S = 0;
12950
+ let S = 0, v = 0, x = 0;
12943
12951
  const y = ((E, I) => {
12944
12952
  let A = 0;
12945
12953
  const C = () => {
12946
12954
  let L;
12947
- return l && !x && (L = this.rts.getSubscribeAudioStats(u.streamUrl).then((_) => {
12955
+ return l && !S && (L = this.rts.getSubscribeAudioStats(u.streamUrl).then((_) => {
12948
12956
  if (_.packetsReceived > 0)
12949
- x = Date.now();
12957
+ S = Date.now();
12950
12958
  else if (!g)
12951
12959
  return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : !1;
12952
12960
  return !0;
12953
- })), g && !S && (L = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((_) => {
12961
+ })), g && !x && (L = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((_) => {
12954
12962
  if (_.packetsReceived > 0 && (v = Date.now()), _.framesDecoded > 0)
12955
- S = Date.now();
12963
+ x = Date.now();
12956
12964
  else
12957
12965
  return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : (H.error(`[${Me.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
12958
12966
  return !0;
@@ -12968,41 +12976,41 @@ const ve = (Me = class extends we {
12968
12976
  f,
12969
12977
  {
12970
12978
  fprt: v - p,
12971
- ifsprtc: S ? S - p : 0,
12979
+ ifsprtc: x ? x - p : 0,
12972
12980
  ajsub: t === le.Join ? 1 : 0,
12973
12981
  pctid: this.pcTraceId,
12974
12982
  subtid: (h == null ? void 0 : h.traceId) || "",
12975
12983
  sstc: d - p
12976
12984
  }
12977
- ), S && this.slsReporter.reportSubscribeFirstFrame(
12985
+ ), x && this.slsReporter.reportSubscribeFirstFrame(
12978
12986
  t === le.Resume,
12979
12987
  i,
12980
12988
  s,
12981
12989
  f,
12982
12990
  {
12983
- fvfrt: S - p,
12984
- fp2fftc: S - v,
12991
+ fvfrt: x - p,
12992
+ fp2fftc: x - v,
12985
12993
  ajsub: t === le.Join ? 1 : 0,
12986
- tffrtc: t === le.Join ? S - this.localJoinTime : S - a,
12994
+ tffrtc: t === le.Join ? x - this.localJoinTime : x - a,
12987
12995
  pctid: this.pcTraceId,
12988
12996
  subtid: (h == null ? void 0 : h.traceId) || "",
12989
- fvfdtc: S - p
12997
+ fvfdtc: x - p
12990
12998
  }
12991
- ), x && this.slsReporter.reportSubscribeFirstPacket(
12999
+ ), S && this.slsReporter.reportSubscribeFirstPacket(
12992
13000
  t === le.Resume,
12993
13001
  i,
12994
13002
  s,
12995
13003
  k.Audio,
12996
13004
  {
12997
- fprt: x - p,
12998
- ifsprtc: x - p,
13005
+ fprt: S - p,
13006
+ ifsprtc: S - p,
12999
13007
  ajsub: t === le.Join ? 1 : 0,
13000
13008
  pctid: this.pcTraceId,
13001
13009
  subtid: (h == null ? void 0 : h.traceId) || "",
13002
13010
  sstc: d - p
13003
13011
  }
13004
13012
  );
13005
- }), c && (yield Promise.race([y, St(1500)])), h;
13013
+ }), c && (yield Promise.race([y, vt(1500)])), h;
13006
13014
  });
13007
13015
  }
13008
13016
  getSubscribeVideoStats(e, t) {
@@ -13039,64 +13047,67 @@ const ve = (Me = class extends we {
13039
13047
  * @ignore
13040
13048
  */
13041
13049
  m(Me, "logName", "RtsManager"), Me);
13042
- ye([
13050
+ be([
13051
+ D(U)
13052
+ ], xe.prototype, "startConnect", 1);
13053
+ be([
13043
13054
  D()
13044
- ], ve.prototype, "updatePublishingTracks", 1);
13045
- ye([
13055
+ ], xe.prototype, "updatePublishingTracks", 1);
13056
+ be([
13046
13057
  D(U, U)
13047
- ], ve.prototype, "httpPublish", 1);
13048
- ye([
13058
+ ], xe.prototype, "httpPublish", 1);
13059
+ be([
13049
13060
  D(U, U)
13050
- ], ve.prototype, "waitPublishSender", 1);
13051
- ye([
13061
+ ], xe.prototype, "waitPublishSender", 1);
13062
+ be([
13052
13063
  D(([r, n, e]) => [r, JSON.stringify(e)], U)
13053
- ], ve.prototype, "publishAdd", 1);
13054
- ye([
13064
+ ], xe.prototype, "publishAdd", 1);
13065
+ be([
13055
13066
  D(U, U)
13056
- ], ve.prototype, "publishDelete", 1);
13057
- ye([
13067
+ ], xe.prototype, "publishDelete", 1);
13068
+ be([
13058
13069
  D(([r, n, e]) => [r, JSON.stringify(e)])
13059
- ], ve.prototype, "publishReplace", 1);
13060
- ye([
13070
+ ], xe.prototype, "publishReplace", 1);
13071
+ be([
13061
13072
  D(U)
13062
- ], ve.prototype, "publishStop", 1);
13063
- ye([
13073
+ ], xe.prototype, "publishStop", 1);
13074
+ be([
13064
13075
  D(U)
13065
- ], ve.prototype, "publishAddDataChannel", 1);
13066
- ye([
13076
+ ], xe.prototype, "publishAddDataChannel", 1);
13077
+ be([
13067
13078
  D(U)
13068
- ], ve.prototype, "publishStopDataChannel", 1);
13069
- ye([
13079
+ ], xe.prototype, "publishStopDataChannel", 1);
13080
+ be([
13070
13081
  D()
13071
- ], ve.prototype, "unpublish", 1);
13072
- ye([
13082
+ ], xe.prototype, "unpublish", 1);
13083
+ be([
13073
13084
  D(wi, ({ traceId: r }) => r)
13074
- ], ve.prototype, "httpSubscribe", 1);
13075
- ye([
13085
+ ], xe.prototype, "httpSubscribe", 1);
13086
+ be([
13076
13087
  D(wi, ({ traceId: r }) => r)
13077
- ], ve.prototype, "subscribeAdd", 1);
13078
- ye([
13088
+ ], xe.prototype, "subscribeAdd", 1);
13089
+ be([
13079
13090
  D(wi)
13080
- ], ve.prototype, "subscibeDelete", 1);
13081
- ye([
13091
+ ], xe.prototype, "subscibeDelete", 1);
13092
+ be([
13082
13093
  D(U)
13083
- ], ve.prototype, "subscibeStop", 1);
13084
- ye([
13094
+ ], xe.prototype, "subscibeStop", 1);
13095
+ be([
13085
13096
  D(U)
13086
- ], ve.prototype, "subscribeAddDataChannel", 1);
13087
- ye([
13097
+ ], xe.prototype, "subscribeAddDataChannel", 1);
13098
+ be([
13088
13099
  D(U)
13089
- ], ve.prototype, "subscribeStopDatachannel", 1);
13090
- ye([
13100
+ ], xe.prototype, "subscribeStopDatachannel", 1);
13101
+ be([
13091
13102
  D(U)
13092
- ], ve.prototype, "publish", 1);
13093
- ye([
13103
+ ], xe.prototype, "publish", 1);
13104
+ be([
13094
13105
  D(wi)
13095
- ], ve.prototype, "subscribe", 1);
13096
- ye([
13106
+ ], xe.prototype, "subscribe", 1);
13107
+ be([
13097
13108
  D()
13098
- ], ve.prototype, "sendSEI", 1);
13099
- let uc = ve;
13109
+ ], xe.prototype, "sendSEI", 1);
13110
+ let uc = xe;
13100
13111
  class Tr {
13101
13112
  constructor() {
13102
13113
  m(this, "profile");
@@ -13273,8 +13284,8 @@ class Wa extends we {
13273
13284
  for (const l of this.plugins)
13274
13285
  try {
13275
13286
  yield l.execute(this, e);
13276
- } catch (x) {
13277
- console.error(`error in plugin-${l.name}, error: ${x}`);
13287
+ } catch (S) {
13288
+ console.error(`error in plugin-${l.name}, error: ${S}`);
13278
13289
  }
13279
13290
  this._targetVideoTrack ? ((i = (t = this._publishVideoStream) == null ? void 0 : t.videoTrack) == null ? void 0 : i.id) !== this._targetVideoTrack.id && (this._publishVideoStream = yield Yt(this._targetVideoTrack), this.setVideoMuted(this._videoMuted), (s = this.profileManager) == null || s.setVideoProfile(this.originVideoTrack, this._publishVideoStream, !0), (a = this.profileManager) == null || a.setContentHint(this._targetVideoTrack), this.previewStream ? (c = this.previewStream) == null || c.mergeStream(this._publishVideoStream) : this._previewStream = yield Yt(this._targetVideoTrack)) : (this._publishVideoStream = void 0, (o = this.previewStream) == null || o.deleteTracks({ video: !0 })), this._targetDualVideoTrack ? ((h = (u = this._publishDualVideoStream) == null ? void 0 : u.videoTrack) == null ? void 0 : h.id) !== this._targetDualVideoTrack.id && (this._publishDualVideoStream = yield Yt(this._targetDualVideoTrack), this._videoMuted ? this._publishDualVideoStream.disableVideo() : this._publishDualVideoStream.enableVideo()) : this._publishDualVideoStream = void 0, this._targetAudioTrack ? ((d = (p = this._publishAudioStream) == null ? void 0 : p.audioTrack) == null ? void 0 : d.id) !== this._targetAudioTrack.id && (this._publishAudioStream = yield Yt(this._targetAudioTrack), this.setAudioMuted(this._audioMuted), this.previewStream ? (f = this.previewStream) == null || f.mergeStream(this._publishAudioStream) : this._previewStream = yield Yt(this._targetAudioTrack)) : (this._publishAudioStream = void 0, (g = this.previewStream) == null || g.deleteTracks({ audio: !0 }));
13280
13291
  });
@@ -13378,14 +13389,14 @@ const Ge = (Bt = class extends we {
13378
13389
  m(this, "_publishLocalScreenStreamEnabled", !0);
13379
13390
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13380
13391
  const i = (s) => w(this, null, function* () {
13381
- if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.3")) {
13392
+ if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.4-beta.1")) {
13382
13393
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13383
13394
  return;
13384
13395
  }
13385
13396
  try {
13386
13397
  yield s.init();
13387
13398
  } catch (a) {
13388
- s.emit("error", V.fromError(a, vt.AliRtcPluginErrorInitError));
13399
+ s.emit("error", V.fromError(a, bt.AliRtcPluginErrorInitError));
13389
13400
  }
13390
13401
  s.streamType === Ee.AliRtcSdkStreamTypeCapture && (this.cameraStreamInfo.addPlugin(s), yield this.cameraStreamInfo.process(this.streamInfos)), s.streamType === Ee.AliRtcSdkStreamTypeScreen && (this.screenStreamInfo.addPlugin(s), yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
13391
13402
  });
@@ -13514,7 +13525,7 @@ const Ge = (Bt = class extends we {
13514
13525
  f && (yield h.setAudioProfile(f));
13515
13526
  }
13516
13527
  }
13517
- return ce.SystenUtil.isIos && ce.SystenUtil.compareVersion("15.1") && !ce.SystenUtil.compareVersion("15.2") && (yield St(1e3)), yield this.updateStreams(), h;
13528
+ return ce.SystenUtil.isIos && ce.SystenUtil.compareVersion("15.1") && !ce.SystenUtil.compareVersion("15.2") && (yield vt(1e3)), yield this.updateStreams(), h;
13518
13529
  });
13519
13530
  }
13520
13531
  stopLocalStream(e) {
@@ -15135,7 +15146,7 @@ class Ga {
15135
15146
  const i = qr(t);
15136
15147
  e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((s, a) => {
15137
15148
  var c, o;
15138
- (o = this.tracker) == null || o.send(Y(pt(Y({}, this.param), { stat_log_id: `${((c = this.param) == null ? void 0 : c.sesid) || "nosession"}-${a}` }), s));
15149
+ (o = this.tracker) == null || o.send(Y(gt(Y({}, this.param), { stat_log_id: `${((c = this.param) == null ? void 0 : c.sesid) || "nosession"}-${a}` }), s));
15139
15150
  }), this.index = this.index + this.msgCacheArr.length, this.msgCacheArr = [];
15140
15151
  }
15141
15152
  }
@@ -15161,7 +15172,7 @@ class Ga {
15161
15172
  let e;
15162
15173
  try {
15163
15174
  e = JSON.parse(
15164
- JSON.stringify(Y(pt(Y({
15175
+ JSON.stringify(Y(gt(Y({
15165
15176
  bt: kr.browserName || "unknown"
15166
15177
  }, this.param), {
15167
15178
  stat_log_id: `${((t = this.param) == null ? void 0 : t.sesid) || "nosession"}-${this.index}`
@@ -15271,7 +15282,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15271
15282
  ctm: Math.floor(s[0].timestamp || 0),
15272
15283
  src: s[0].ssrc || "",
15273
15284
  codec: s[0]._codec || ""
15274
- }, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], x = [], v = [], S = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [];
15285
+ }, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [];
15275
15286
  try {
15276
15287
  if (s.forEach((R) => {
15277
15288
  var F, M, J, j, ue, X;
@@ -15291,7 +15302,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15291
15302
  if (f.push(N), a)
15292
15303
  (M = R._source) != null && M.audioLevel && g.push(Xa(R._source.audioLevel)), l.push(0);
15293
15304
  else {
15294
- x.push(Ya(R, "totalEncodeTime")), v.push(wt((J = R._source) == null ? void 0 : J.framesPerSecond, 100)), S.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));
15305
+ 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));
15295
15306
  const Fe = pe(R, "totalPacketSendDelay");
15296
15307
  C.push(fe(Fe, 1 / (ee || 1), 2e3));
15297
15308
  const je = pe(R, "qpSum");
@@ -15301,7 +15312,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15301
15312
  const R = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
15302
15313
  c.ailevel = g.join(","), c.arpc = l.join(","), c.arsr = R, c.aesr = R, c.publevel = -90, c.rawlevel = -90;
15303
15314
  } else
15304
- c.em = x.join(","), c.cfps = v.join(","), c.ifps = S.join(","), c.sfps = b.join(","), c.ih = y.join(","), c.iw = E.join(","), c.sh = I.join(","), c.sw = A.join(","), c.sd = C.join(","), c.aqp = L.join(","), c.caf = _.join(","), c.can = _.join(","), c.cav = u.join(","), c.ifimax = _.join(","), c.ifimin = _.join(","), c.efimax = _.join(","), c.efimin = _.join(","), c.sfimax = _.join(","), c.sfimin = _.join(","), c.apsnr = _.join(",");
15315
+ c.em = S.join(","), c.cfps = v.join(","), c.ifps = x.join(","), c.sfps = b.join(","), c.ih = y.join(","), c.iw = E.join(","), c.sh = I.join(","), c.sw = A.join(","), c.sd = C.join(","), c.aqp = L.join(","), c.caf = _.join(","), c.can = _.join(","), c.cav = u.join(","), c.ifimax = _.join(","), c.ifimin = _.join(","), c.efimax = _.join(","), c.efimin = _.join(","), c.sfimax = _.join(","), c.sfimin = _.join(","), c.apsnr = _.join(",");
15305
15316
  } catch (R) {
15306
15317
  }
15307
15318
  this.log({
@@ -15322,7 +15333,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15322
15333
  ctm: Math.floor(s[0].timestamp || 0),
15323
15334
  src: s[0].ssrc || "",
15324
15335
  codec: s[0]._codec || ""
15325
- }, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], x = [], v = [], S = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [], R = [], T = [], B = [], $ = [], q = [], G = [], ae = [], Q = [], te = [], ee = [], P = [], N = [], F = [], M = [], J = [];
15336
+ }, 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 = [];
15326
15337
  try {
15327
15338
  s.forEach((j) => {
15328
15339
  var Ze, Ct;
@@ -15334,32 +15345,32 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15334
15345
  u.push(Xe);
15335
15346
  const Ye = qe(fe(Fe, 8, 2e7), ue);
15336
15347
  h.push(Ye);
15337
- const xe = pe(j, "packetsReceived"), Pe = qe(xe, ue);
15348
+ const Se = pe(j, "packetsReceived"), Pe = qe(Se, ue);
15338
15349
  p.push(Pe);
15339
15350
  const at = pe(j, "packetsLost"), Et = qe(at, ue);
15340
15351
  d.push(Et);
15341
- const Nt = Rt(at, xe);
15352
+ const Nt = Rt(at, Se);
15342
15353
  f.push(Nt);
15343
15354
  const At = pe(j, "jitterBufferDelay"), Jt = pe(j, "jitterBufferEmittedCount");
15344
15355
  if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
15345
- const dt = fe(At, 1e3 / Jt, 1e4);
15346
- g.push(dt);
15356
+ const lt = fe(At, 1e3 / Jt, 1e4);
15357
+ g.push(lt);
15347
15358
  } else
15348
15359
  g.push(0);
15349
15360
  const _t = pe(j, "fecPacketsReceived");
15350
- b.push(Rt(_t, xe));
15351
- const ke = pe(j, "retransmittedPacketsReceived"), Ce = xe + at - ke;
15352
- if (x.push(Rt(xe - ke, Ce)), v.push(Rt(at, Ce)), l.push(Rt(ke, Ce)), S.push(Ce), M.push(0), J.push(""), a) {
15361
+ b.push(Rt(_t, Se));
15362
+ const ke = pe(j, "retransmittedPacketsReceived"), Ce = Se + at - ke;
15363
+ 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) {
15353
15364
  E.push(Xa(j.audioLevel));
15354
- const dt = Lc(j, "synthesizedSamplesEvents");
15355
- I.push(dt);
15365
+ const lt = Lc(j, "synthesizedSamplesEvents");
15366
+ I.push(lt);
15356
15367
  const Qe = Ya(j, "synthesizedSamplesDuration");
15357
15368
  A.push(Qe);
15358
15369
  const nt = Rt(Qe, ue);
15359
15370
  y.push(nt), C.push(0);
15360
15371
  } else {
15361
- const dt = (Ct = j._last) != null && Ct.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
15362
- L.push(fe(dt, 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));
15372
+ const lt = (Ct = j._last) != null && Ct.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
15373
+ 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));
15363
15374
  const Qe = pe(j, "totalProcessingDelay");
15364
15375
  $.push(fe(Qe, 1e3 / (j.framesDecoded || 30), 12e4));
15365
15376
  const nt = pe(j, "nackCount");
@@ -15370,14 +15381,14 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15370
15381
  ae.push(fe(oi, 1 / (j.framesPerSecond || 1), 51)), Q.push(fe(j.framesDropped));
15371
15382
  const ci = pe(j, "totalFreezesDuration");
15372
15383
  te.push(fe(ci, 1e3, 3e4));
15373
- const ze = pe(j, "jitterBufferEmittedCount"), lt = pe(j, "jitterBufferDelay");
15374
- lt && ze ? ee.push(fe(lt, 1e3 / ze, 3e4)) : ee.push(0);
15384
+ const ze = pe(j, "jitterBufferEmittedCount"), ft = pe(j, "jitterBufferDelay");
15385
+ ft && ze ? ee.push(fe(ft, 1e3 / ze, 3e4)) : ee.push(0);
15375
15386
  const ui = pe(j, "jitterBufferTargetDelay");
15376
15387
  ui && ze ? P.push(fe(ui, 1e3 / ze, 3e4)) : P.push(0);
15377
15388
  const Gt = pe(j, "jitterBufferMinimumDelay");
15378
15389
  Gt && ze ? N.push(fe(Gt, 1e3 / ze, 3e4)) : N.push(0);
15379
15390
  }
15380
- }), 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 = x.join(","), c.basel = v.join(","), c.recoverr = M.join(","), c.alll = v.join(","), c.totalc = S.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(","));
15391
+ }), 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(","));
15381
15392
  } catch (j) {
15382
15393
  }
15383
15394
  this.log({
@@ -15398,10 +15409,10 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15398
15409
  return;
15399
15410
  const e = [], t = [], i = [], s = [], a = [], c = [], o = [], u = [], h = [], p = [];
15400
15411
  n.forEach((f, g) => {
15401
- var x;
15412
+ var S;
15402
15413
  if (!f.timestamp)
15403
15414
  return;
15404
- const l = (x = f._last) != null && x.timestamp ? f.timestamp - f._last.timestamp : 1e3;
15415
+ const l = (S = f._last) != null && S.timestamp ? f.timestamp - f._last.timestamp : 1e3;
15405
15416
  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(""));
15406
15417
  });
15407
15418
  const d = {
@@ -15982,11 +15993,11 @@ const z = (K = class extends we {
15982
15993
  m(this, "_serverCheckAuthInfoTimestamp", null);
15983
15994
  m(this, "_localCheckAuthInfoTimestamp", null);
15984
15995
  const t = Date.now();
15985
- H.init(), this.slsReporter = new Or(this), this.channelProfile = xt.AliRtcSdkCommunication, this.clientRole = Dt.AliRtcSdkLive, this.liveTranscoding = new Dc(this.slsReporter), this.signalingManager = new ts(
15996
+ 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(
15986
15997
  this.channelProfile,
15987
15998
  this.clientRole,
15988
15999
  this.slsReporter,
15989
- (e == null ? void 0 : e.env) === ht.pre ? ht.pre : ht.prod
16000
+ (e == null ? void 0 : e.env) === dt.pre ? dt.pre : dt.prod
15990
16001
  ), this.addSignalingManagerListeners(), this.maxSignalingConnectRetryCount = e == null ? void 0 : e.maxSignalingConnectRetryCount, this.bizControl = new Te({
15991
16002
  slsReporter: this.slsReporter,
15992
16003
  signalingManager: this.signalingManager
@@ -16038,7 +16049,7 @@ const z = (K = class extends we {
16038
16049
  return e ? e.isPublishing : !1;
16039
16050
  }
16040
16051
  get currentRoleCanPublish() {
16041
- return this.channelProfile === xt.AliRtcSdkCommunication || this.clientRole === Dt.AliRtcSdkInteractive;
16052
+ return this.channelProfile === St.AliRtcSdkCommunication || this.clientRole === Dt.AliRtcSdkInteractive;
16042
16053
  }
16043
16054
  /**
16044
16055
  * 监听 Publisher 事件
@@ -16051,21 +16062,21 @@ const z = (K = class extends we {
16051
16062
  H.event("[Publisher] VideoTrack Ended"), this.emit(
16052
16063
  "localDeviceException",
16053
16064
  ct.AliEngineLocalDeviceTypeCamera,
16054
- be.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16065
+ ye.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16055
16066
  ""
16056
16067
  );
16057
16068
  }), (i = this.publisher) == null || i.on(kt.ScreenTrackEnded, () => {
16058
16069
  H.event("[Publisher] ScreenTrack Ended"), this.emit(
16059
16070
  "localDeviceException",
16060
16071
  ct.AliEngineLocalDeviceTypeDisplay,
16061
- be.AliEngineLocalDeviceExceptionTypeDisplayException,
16072
+ ye.AliEngineLocalDeviceExceptionTypeDisplayException,
16062
16073
  ""
16063
16074
  );
16064
16075
  }), (s = this.publisher) == null || s.on(kt.AudioTrackEnded, () => {
16065
16076
  H.event("[Publisher] AudioTrack Ended"), this.emit(
16066
16077
  "localDeviceException",
16067
16078
  ct.AliEngineLocalDeviceTypeMic,
16068
- be.AliEngineLocalDeviceExceptionTypeMicInterrupt,
16079
+ ye.AliEngineLocalDeviceExceptionTypeMicInterrupt,
16069
16080
  ""
16070
16081
  );
16071
16082
  }), (a = this.publisher) == null || a.on(
@@ -16269,7 +16280,7 @@ const z = (K = class extends we {
16269
16280
  "onNetworkRecovery",
16270
16281
  `rts isConnected: ${this.bizControl.rtsManager.isConnected}; rts isConnecting: ${this.bizControl.rtsManager.isConnecting}`,
16271
16282
  { users: e }
16272
- ), !this.bizControl.rtsManager.isConnected && !this.bizControl.rtsManager.isConnecting && (yield this.resumePublishForNetworkRecovery(), yield this.resumeSubList(e)), this.networkError && (this.networkError = !1, (t = this.publisher) == null || t.reportSelfDeviceStatus(), this.connectState = he.AliRtcConnectionStatusConnected, this.emit(
16283
+ ), !this.bizControl.rtsManager.isConnected && !this.bizControl.rtsManager.isConnecting ? (yield this.resumePublishForNetworkRecovery(), yield this.resumeSubList()) : e && (yield this.resumeSubList(e)), this.networkError && (this.networkError = !1, (t = this.publisher) == null || t.reportSelfDeviceStatus(), this.connectState = he.AliRtcConnectionStatusConnected, this.emit(
16273
16284
  "connectionStatusChange",
16274
16285
  he.AliRtcConnectionStatusConnected,
16275
16286
  Ht.AliRtcConnectionSignalingHeartbeatAlive
@@ -16355,7 +16366,7 @@ const z = (K = class extends we {
16355
16366
  he.AliRtcConnectionStatusFailed
16356
16367
  ].includes(this.connectState))
16357
16368
  throw new V(O.ERR_INNER, "cannot set channel profile in call");
16358
- this.channelProfile = e, this.channelProfile === xt.AliRtcSdkCommunication && (this.clientRole = Dt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
16369
+ this.channelProfile = e, this.channelProfile === St.AliRtcSdkCommunication && (this.clientRole = Dt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
16359
16370
  }
16360
16371
  startAndPublishDefaultDevices(e) {
16361
16372
  return w(this, null, function* () {
@@ -16402,7 +16413,7 @@ const z = (K = class extends we {
16402
16413
  return w(this, null, function* () {
16403
16414
  var t, i;
16404
16415
  try {
16405
- if (this.channelProfile === xt.AliRtcSdkCommunication)
16416
+ if (this.channelProfile === St.AliRtcSdkCommunication)
16406
16417
  return;
16407
16418
  if (!Object.values(Dt).includes(e))
16408
16419
  throw new V(
@@ -16919,16 +16930,16 @@ const z = (K = class extends we {
16919
16930
  }
16920
16931
  switchCamera(e, t) {
16921
16932
  return w(this, null, function* () {
16922
- var s, a, c, o, u, h, p, d, f, g, l, x, v;
16933
+ var s, a, c, o, u, h, p, d, f, g, l, S, v;
16923
16934
  if (this._audioOnlyMode)
16924
16935
  throw new V(O.ERR_INNER, "Cannot switch camera in audio only mode");
16925
16936
  const i = {};
16926
16937
  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)) {
16927
- (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(), (x = (l = (g = (f = this.publisher) == null ? void 0 : f.publishStreams) == null ? void 0 : g.video) == null ? void 0 : l.videoTrack) == null || x.stop());
16928
- const S = {
16938
+ (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());
16939
+ const x = {
16929
16940
  video: !0
16930
16941
  };
16931
- t && (S.mediaStream = new MediaStream([t])), yield (v = this.publisher) == null ? void 0 : v.createLocalStream(S);
16942
+ t && (x.mediaStream = new MediaStream([t])), yield (v = this.publisher) == null ? void 0 : v.createLocalStream(x);
16932
16943
  }
16933
16944
  });
16934
16945
  }
@@ -17084,7 +17095,7 @@ const z = (K = class extends we {
17084
17095
  const e = this.bizControl.pluginManager.get("AliRtcBeauty");
17085
17096
  if (!e)
17086
17097
  throw new V(
17087
- vt.AliRtcPluginErrorNoFindPlugin,
17098
+ bt.AliRtcPluginErrorNoFindPlugin,
17088
17099
  "you should enable beautyPlugin first"
17089
17100
  );
17090
17101
  return !!(e != null && e.isEnable);
@@ -17093,7 +17104,7 @@ const z = (K = class extends we {
17093
17104
  const i = this.bizControl.pluginManager.get("AliRtcBeauty");
17094
17105
  if (!i)
17095
17106
  throw new V(
17096
- vt.AliRtcPluginErrorNoFindPlugin,
17107
+ bt.AliRtcPluginErrorNoFindPlugin,
17097
17108
  "you should enable beautyPlugin first"
17098
17109
  );
17099
17110
  e ? i.enable() : i.disable(), i.setOptions({
@@ -17107,7 +17118,7 @@ const z = (K = class extends we {
17107
17118
  const i = this.bizControl.pluginManager.get("AliRtcBeauty");
17108
17119
  if (!i || !i.isEnable)
17109
17120
  throw new V(
17110
- vt.AliRtcPluginErrorNoFindPlugin,
17121
+ bt.AliRtcPluginErrorNoFindPlugin,
17111
17122
  "you should enable beautyPlugin first"
17112
17123
  );
17113
17124
  const s = {
@@ -17123,7 +17134,7 @@ const z = (K = class extends we {
17123
17134
  const t = this.bizControl.pluginManager.get("AliRtcBeauty");
17124
17135
  if (!t || !t.isEnable)
17125
17136
  throw new V(
17126
- vt.AliRtcPluginErrorNoFindPlugin,
17137
+ bt.AliRtcPluginErrorNoFindPlugin,
17127
17138
  "you should enable beautyPlugin first"
17128
17139
  );
17129
17140
  const i = {
@@ -17171,7 +17182,7 @@ m(K, "getCameraList", () => w(K, null, function* () {
17171
17182
  return (yield ce.getMicList()).filter((t) => t.deviceId);
17172
17183
  })), m(K, "getSpeakerList", () => w(K, null, function* () {
17173
17184
  return (yield ce.getSpeakerList()).filter((t) => t.deviceId);
17174
- })), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", xt), 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", be), 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);
17185
+ })), 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);
17175
17186
  W([
17176
17187
  D()
17177
17188
  ], z.prototype, "destroy", 1);
@@ -17412,7 +17423,7 @@ export {
17412
17423
  Ht as AliRtcConnectionStatusChangeReason,
17413
17424
  Wt as AliRtcDataChannelMsg,
17414
17425
  vn as AliRtcDataMsgType,
17415
- be as AliRtcEngineLocalDeviceExceptionType,
17426
+ ye as AliRtcEngineLocalDeviceExceptionType,
17416
17427
  ct as AliRtcEngineLocalDeviceType,
17417
17428
  O as AliRtcErrorCode,
17418
17429
  Xr as AliRtcLiveTranscodingAudioSampleRate,
@@ -17438,7 +17449,7 @@ export {
17438
17449
  Z as AliRtcPublishState,
17439
17450
  Ee as AliRtcRawDataStreamType,
17440
17451
  tc as AliRtcRemoteUserInfo,
17441
- xt as AliRtcSdkChannelProfile,
17452
+ St as AliRtcSdkChannelProfile,
17442
17453
  Dt as AliRtcSdkClientRole,
17443
17454
  de as AliRtcSubscribeState,
17444
17455
  kc as AliRtcTranscodingClockWidget,