aliyun-rtc-sdk 6.13.7-beta.1 → 6.13.8-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,8 +130,8 @@ function Fe() {
130
130
  if (!a)
131
131
  return c;
132
132
  var o = this, u = o.T(a), h = i.slice(0, s - 1);
133
- return u === "Function" ? o.safetyCall(a, h, c) : u === "Array" ? (this.each(a, function(g) {
134
- h[0] = c = o.filterByRule.apply(o, [].concat(h, g));
133
+ return u === "Function" ? o.safetyCall(a, h, c) : u === "Array" ? (this.each(a, function(p) {
134
+ h[0] = c = o.filterByRule.apply(o, [].concat(h, p));
135
135
  }), c) : u === "Object" ? c.replace(a.rule, a.target || "") : c.replace(a, "");
136
136
  },
137
137
  ignoreByRule: function(i, s) {
@@ -336,7 +336,7 @@ function Fe() {
336
336
  if (i.indexOf("?") >= 0 && (u = i.substring(i.indexOf("?") + 1, i.length).split("&")), u.length > 0)
337
337
  for (var h in u)
338
338
  c = (a = u[h].split("="))[0], o = a[1], s[c] = o;
339
- } catch (g) {
339
+ } catch (p) {
340
340
  s = {};
341
341
  }
342
342
  return s;
@@ -350,8 +350,8 @@ function Fe() {
350
350
  s.protocol = i.substring(0, c + 1);
351
351
  var o = i.indexOf("#"), u = i.indexOf("?");
352
352
  o < 0 && (o = a), u < 0 && (u = o), s.search = i.substring(u, o).substring(0, 1e3);
353
- var h = i.substring(c + 3, u), g = h.indexOf("/");
354
- return g < 0 && (g = h.length), s.domain = h.substring(0, g).split(":")[0], s.path = h.substring(g, h.length).substring(0, 1e3), s;
353
+ var h = i.substring(c + 3, u), p = h.indexOf("/");
354
+ return p < 0 && (p = h.length), s.domain = h.substring(0, p).split(":")[0], s.path = h.substring(p, h.length).substring(0, 1e3), s;
355
355
  },
356
356
  getResType: function(i, s) {
357
357
  if (["script", "img", "other"].indexOf(i) > -1)
@@ -380,11 +380,11 @@ function Fe() {
380
380
  getFetchSnapshot: function(i, s, a) {
381
381
  var c, o;
382
382
  try {
383
- var u = (i && typeof i[0] != "string" ? i[0].url : i[0]) || "", h = (i && typeof i[0] != "string" ? i[0] : i[1]) || {}, g = h.method.toUpperCase() === "POST" ? h.body : this.getQuerys(u);
383
+ var u = (i && typeof i[0] != "string" ? i[0].url : i[0]) || "", h = (i && typeof i[0] != "string" ? i[0] : i[1]) || {}, p = h.method.toUpperCase() === "POST" ? h.body : this.getQuerys(u);
384
384
  c = {
385
385
  originApi: u,
386
386
  method: h.method || "unknown",
387
- params: g,
387
+ params: p,
388
388
  response: s || "",
389
389
  reqHeaders: this.parseFetchHeaders(h.headers || null),
390
390
  resHeaders: this.parseFetchHeaders(a)
@@ -597,19 +597,19 @@ function $n() {
597
597
  };
598
598
  },
599
599
  getUberTraceId: function(s) {
600
- var a = this.rip, c = Date.now(), o = r.getSortNum(this.record), u = r.getRandNum(this._conf.pid), h = a + c + o + r.getNum(2) + u, g = h.substring(0, 16);
600
+ var a = this.rip, c = Date.now(), o = r.getSortNum(this.record), u = r.getRandNum(this._conf.pid), h = a + c + o + r.getNum(2) + u, p = h.substring(0, 16);
601
601
  return s = s ? "1" : "0", h[0] === "0" && (h[0] = "1"), h[16] === "0" && (h[16] = "1"), {
602
- "uber-trace-id": h + ":" + g + ":0:" + s,
602
+ "uber-trace-id": h + ":" + p + ":0:" + s,
603
603
  traceId: h
604
604
  };
605
605
  },
606
606
  getB3TraceId: function(s) {
607
- var a = this.rip, c = Date.now(), o = r.getSortNum(this.record), u = r.getRandNum(this._conf.pid), h = a + c + o + r.getNum(2) + u, g = h.substring(0, 16);
607
+ var a = this.rip, c = Date.now(), o = r.getSortNum(this.record), u = r.getRandNum(this._conf.pid), h = a + c + o + r.getNum(2) + u, p = h.substring(0, 16);
608
608
  return s = s ? "1" : "0", h[0] === "0" && (h[0] = "1"), h[16] === "0" && (h[16] = "1"), {
609
- b3: h + "-" + g + "-" + s + "-0",
609
+ b3: h + "-" + p + "-" + s + "-0",
610
610
  "X-B3-TraceId": h,
611
611
  "X-B3-ParentSpanId": "0",
612
- "X-B3-SpanId": g,
612
+ "X-B3-SpanId": p,
613
613
  "X-B3-Sampled": s
614
614
  };
615
615
  },
@@ -654,14 +654,14 @@ function $n() {
654
654
  return this;
655
655
  },
656
656
  _lg: function(s, a, c, o) {
657
- var u = this, h = u._conf, g = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, p = d.ignoreResErrors, l = d.ignoreUrls, x = d.ignoreApis;
658
- if (u._isRobot || r.ignoreByRule(g, l) || r.ignoreByRule(r.decode(g), l) || s === "error" && (r.ignoreByRule(a.msg, f) || r.ignoreByRule(r.decode(a.msg), f)) || s === "resourceError" && (r.ignoreByRule(a.src, p) || r.ignoreByRule(r.decode(a.src), p)) || 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, 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)
659
659
  return u;
660
660
  var v = a.dl;
661
661
  if (delete a.dl, a = r.ext({
662
662
  t: s,
663
663
  times: 1,
664
- page: g,
664
+ page: p,
665
665
  tag: h.tag || "",
666
666
  release: h.release || "",
667
667
  environment: h.environment,
@@ -707,7 +707,7 @@ function $n() {
707
707
  h.times++;
708
708
  try {
709
709
  h.err && a.err && h.err.msg_raw && a.err.msg_raw && h.err.msg_raw.split("&").indexOf(a.err.msg_raw) < 0 && h.err.msg_raw.length < 1e3 && (h.err.msg_raw += "&" + a.err.msg_raw);
710
- } catch (g) {
710
+ } catch (p) {
711
711
  }
712
712
  } else
713
713
  o.selfQueue.unshift(a), o.onReady(function() {
@@ -803,8 +803,8 @@ function Kn() {
803
803
  a = a || {};
804
804
  var h = typeof location == "object" && typeof location.href == "string" && location.href.substring(0, 500) || "";
805
805
  if (r.checkSDKError(o, a.filename)) {
806
- var g = /^Script error\.?$/, d = s.msg || s.message;
807
- if (r.ignoreByRule(d, g) || r.ignoreByRule(r.decode(d), g))
806
+ var p = /^Script error\.?$/, d = s.msg || s.message;
807
+ if (r.ignoreByRule(d, p) || r.ignoreByRule(r.decode(d), p))
808
808
  return this;
809
809
  var f = {
810
810
  msg: r.selfErrKey,
@@ -814,7 +814,7 @@ function Kn() {
814
814
  };
815
815
  return this._self("error", f, 1);
816
816
  }
817
- for (var p = {
817
+ for (var g = {
818
818
  begin: Date.now(),
819
819
  cate: c,
820
820
  msg: o && o.substring(0, 1e3),
@@ -829,10 +829,10 @@ function Kn() {
829
829
  dl: h
830
830
  }, l = ["tag", "c1", "c2", "c3"], x = 0; x < l.length; x++) {
831
831
  var v = l[x];
832
- a[v] && (p[v] = a[v]);
832
+ a[v] && (g[v] = a[v]);
833
833
  }
834
834
  var S = (this.getConfig("ignore") || {}).ignoreErrors;
835
- return r.ignoreByRule(p.msg, S) || r.ignoreByRule(r.decode(p.msg), S) ? this : (this.beforeSend && this.beforeSend("error", p), this._lg("error", p, 1));
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));
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, g, d, f, p, l, x, v, S, b, y) {
845
+ api: function(s, a, c, o, u, h, p, d, f, g, l, x, v, S, b, y) {
846
846
  if (!s)
847
847
  return r.warn("[retcode] api is null"), this;
848
848
  if (s = typeof s == "string" ? {
@@ -852,10 +852,10 @@ function Kn() {
852
852
  code: o,
853
853
  msg: u,
854
854
  begin: h,
855
- traceId: g,
855
+ traceId: p,
856
856
  pv_id: d,
857
857
  apiSnapshot: f,
858
- domain: p,
858
+ domain: g,
859
859
  flag: x,
860
860
  tag: v,
861
861
  c1: S,
@@ -901,14 +901,14 @@ function Kn() {
901
901
  }
902
902
  if (u)
903
903
  return r.warn("[arms] lack param data: " + s), this;
904
- var g = {
904
+ var p = {
905
905
  begin: s.begin || Date.now(),
906
906
  dom: s.dom || "",
907
907
  load: s.load || "",
908
908
  res: r.isArray(s.res) ? JSON.stringify(s.res) : JSON.stringify([]),
909
909
  dl: s.dl || ""
910
910
  };
911
- return this._lg("res", g, a);
911
+ return this._lg("res", p, a);
912
912
  },
913
913
  event: function(s, a) {
914
914
  if (typeof s == "object" && s && s.key) {
@@ -966,29 +966,29 @@ function Gn() {
966
966
  Es = 1;
967
967
  var r = Fe();
968
968
  return Ui = function(n, e) {
969
- var t = [], i = null, s = e && e.location && e.location.href, a = void 0, c = null, o = function(d, f, p) {
969
+ var t = [], i = null, s = e && e.location && e.location.href, a = void 0, c = null, o = function(d, f, g) {
970
970
  if (d !== null) {
971
971
  var l = d[f];
972
- d[f] = p(l);
972
+ d[f] = g(l);
973
973
  }
974
974
  }, u = function(d) {
975
- var f, p, l, x, v, S = [];
975
+ var f, g, l, x, v, S = [];
976
976
  if (!d || typeof d.tagName != "string")
977
977
  return "";
978
978
  if (S.push(d.tagName.toLowerCase()), typeof d.id == "string" && S.push("#".concat(d.id)), typeof (f = d.className) == "string")
979
- for (p = f.split(/\s+/), v = 0; v < p.length; v++)
980
- S.push(".".concat(p[v]));
979
+ for (g = f.split(/\s+/), v = 0; v < g.length; v++)
980
+ S.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
983
  l = b[v], typeof (x = d.getAttribute(l)) == "string" && S.push("[".concat(l, '="').concat(x, '"]'));
984
984
  return S.join("");
985
985
  }, h = function(d, f) {
986
- return function(p) {
987
- if (p && p !== c) {
988
- c = p;
986
+ return function(g) {
987
+ if (g && g !== c) {
988
+ c = g;
989
989
  var l;
990
990
  try {
991
- l = p.target;
991
+ l = g.target;
992
992
  } catch (v) {
993
993
  l = "<unknown>";
994
994
  }
@@ -1012,7 +1012,7 @@ function Gn() {
1012
1012
  }
1013
1013
  }
1014
1014
  };
1015
- }, g = function() {
1015
+ }, p = function() {
1016
1016
  if (function() {
1017
1017
  var l = e && e.chrome, x = l && l.app && l.app.runtime, v = "history" in e && !!e.history.pushState && !!e.history.replaceState;
1018
1018
  return !x && v;
@@ -1034,7 +1034,7 @@ function Gn() {
1034
1034
  if (d(s, S), f)
1035
1035
  return f.apply(this, x);
1036
1036
  };
1037
- var p = function(l) {
1037
+ var g = function(l) {
1038
1038
  return function() {
1039
1039
  for (var x = arguments.length, v = new Array(x), S = 0; S < x; S++)
1040
1040
  v[S] = arguments[S];
@@ -1042,19 +1042,19 @@ function Gn() {
1042
1042
  return b && d(s, String(b)), l.apply(this, v);
1043
1043
  };
1044
1044
  };
1045
- o(e.history, "pushState", p), o(e.history, "replaceState", p);
1045
+ o(e.history, "pushState", g), o(e.history, "replaceState", g);
1046
1046
  }
1047
1047
  };
1048
1048
  r.ext(n.prototype, {
1049
1049
  addBehavior: function(d) {
1050
1050
  if (this.getConfig("behavior") && d && typeof d == "object") {
1051
- var f = {}, p = d.data || {};
1051
+ var f = {}, g = d.data || {};
1052
1052
  if (d.type)
1053
- f = p;
1053
+ f = g;
1054
1054
  else {
1055
- if (typeof p.name != "string" || typeof p.message != "string")
1055
+ if (typeof g.name != "string" || typeof g.message != "string")
1056
1056
  return;
1057
- f.name = p.name.substr(0, 20), f.message = p.message.substr(0, 200);
1057
+ f.name = g.name.substr(0, 20), f.message = g.message.substr(0, 200);
1058
1058
  }
1059
1059
  f.message && (f.message = r.encode(f.message));
1060
1060
  var l = {
@@ -1083,26 +1083,26 @@ function Gn() {
1083
1083
  try {
1084
1084
  (function() {
1085
1085
  if (document && document.referrer && document.location) {
1086
- var f = document.referrer, p = document.location.href;
1086
+ var f = document.referrer, g = document.location.href;
1087
1087
  if (f !== "") {
1088
1088
  var l = {
1089
1089
  type: "navigation",
1090
1090
  data: {
1091
1091
  from: f,
1092
- to: p
1092
+ to: g
1093
1093
  }
1094
1094
  };
1095
- s = p, i && i.addBehavior(l);
1095
+ s = g, i && i.addBehavior(l);
1096
1096
  }
1097
1097
  }
1098
- })(), e && e.document && e.document.addEventListener && (e.document.addEventListener("click", h("click"), !1), e.document.addEventListener("keypress", h("keypress"), !1)), g();
1098
+ })(), e && e.document && e.document.addEventListener && (e.document.addEventListener("click", h("click"), !1), e.document.addEventListener("keypress", h("keypress"), !1)), p();
1099
1099
  var d = this.getConfig("enableConsole");
1100
1100
  d && function(f) {
1101
1101
  if (e && e.console) {
1102
- var p = ["debug", "info", "warn", "log", "error", "assert"];
1103
- r.isArray(f) && (p = f);
1104
- for (var l = 0; l < p.length; l++) {
1105
- var x = p[l];
1102
+ var g = ["debug", "info", "warn", "log", "error", "assert"];
1103
+ r.isArray(f) && (g = f);
1104
+ for (var l = 0; l < g.length; l++) {
1105
+ var x = g[l];
1106
1106
  x && r.isString(x) && e.console[x] && typeof e.console[x] == "function" && o(e.console, x, function(v) {
1107
1107
  var S = x;
1108
1108
  return function() {
@@ -1162,9 +1162,9 @@ function Xn() {
1162
1162
  dom: [10, 8],
1163
1163
  load: [14, 1]
1164
1164
  }, function(u, h) {
1165
- var g = a[e[u[1]]], d = a[e[u[0]]];
1166
- if (g > 0 && d > 0) {
1167
- var f = Math.round(d - g);
1165
+ var p = a[e[u[1]]], d = a[e[u[0]]];
1166
+ if (p > 0 && d > 0) {
1167
+ var f = Math.round(d - p);
1168
1168
  f >= 0 && f < 6e5 && (s[h] = f);
1169
1169
  }
1170
1170
  }), s.res = JSON.stringify(c), s;
@@ -1198,17 +1198,17 @@ function Yn() {
1198
1198
  tti: [10, 1],
1199
1199
  ready: [12, 1],
1200
1200
  load: [14, 1]
1201
- }, function(p, l) {
1202
- var x = a[e[p[1]]], v = a[e[p[0]]];
1201
+ }, function(g, l) {
1202
+ var x = a[e[g[1]]], v = a[e[g[0]]];
1203
1203
  if (o === 2 || x > 0 && v > 0) {
1204
1204
  var S = Math.round(v - x);
1205
1205
  S >= 0 && S < 6e5 && (s[l] = S);
1206
1206
  }
1207
1207
  });
1208
- var h = t.navigator.connection, g = i.navigation || {};
1208
+ var h = t.navigator.connection, p = i.navigation || {};
1209
1209
  s.ct = h ? h.effectiveType || h.type : "";
1210
1210
  var d = h && (h.downlink || h.downlinkMax || h.bandwidth) || null;
1211
- if ((d = d > 999 ? 999 : d) && (s.bandwidth = d), s.navtype = g.type === 1 ? "Reload" : "Other", o === 1 && a[e[16]] > 0 && a[e[1]] > 0) {
1211
+ if ((d = d > 999 ? 999 : d) && (s.bandwidth = d), s.navtype = p.type === 1 ? "Reload" : "Other", o === 1 && a[e[16]] > 0 && a[e[1]] > 0) {
1212
1212
  var f = a[e[16]] - a[e[1]];
1213
1213
  f >= 0 && f < 36e5 && (s.fpt = f);
1214
1214
  }
@@ -1218,7 +1218,7 @@ function Yn() {
1218
1218
  var Rs, ws;
1219
1219
  function Zn() {
1220
1220
  return ws || (ws = 1, Rs = function(r, n, e) {
1221
- var t = Fe(), i = Xn(), s = Yn(), a = null, c = e.documentElement, o = n.innerWidth || c.clientWidth || e.body.clientWidth, u = n.innerHeight || c.clientHeight || e.body.clientHeight, h = n.navigator.connection, g = {
1221
+ var t = Fe(), i = Xn(), s = Yn(), a = null, c = e.documentElement, o = n.innerWidth || c.clientWidth || e.body.clientWidth, u = n.innerHeight || c.clientHeight || e.body.clientHeight, h = n.navigator.connection, p = {
1222
1222
  sr: screen.width + "x" + screen.height,
1223
1223
  vp: o + "x" + u,
1224
1224
  ct: h ? h.effectiveType || h.type : ""
@@ -1243,7 +1243,7 @@ function Zn() {
1243
1243
  } catch (A) {
1244
1244
  return t.warn("[retcode] can not set cookie: ", A), !1;
1245
1245
  }
1246
- }, p = function(l) {
1246
+ }, g = function(l) {
1247
1247
  var x = l._conf.uid || f("_nk_") || f("_bl_uid");
1248
1248
  return !x && (x = t.uu(), !f("_bl_uid", x, 15552e3)) ? null : x;
1249
1249
  };
@@ -1324,7 +1324,7 @@ function Zn() {
1324
1324
  var l = this;
1325
1325
  l.onReady(function() {
1326
1326
  var x = function(v) {
1327
- var S = p(v), b = n.devicePixelRatio || 1;
1327
+ var S = g(v), b = n.devicePixelRatio || 1;
1328
1328
  return {
1329
1329
  uid: S,
1330
1330
  dt: e.title,
@@ -1340,7 +1340,7 @@ function Zn() {
1340
1340
  });
1341
1341
  },
1342
1342
  commonInfo: function() {
1343
- return g.uid = p(this), g.sid = function(l) {
1343
+ return p.uid = g(this), p.sid = function(l) {
1344
1344
  if (l.session)
1345
1345
  return l.session;
1346
1346
  var x;
@@ -1351,7 +1351,7 @@ function Zn() {
1351
1351
  t.warn("[ARMS] getSid error :", v);
1352
1352
  }
1353
1353
  return l.session = x = t.uu(), x;
1354
- }(this), g;
1354
+ }(this), p;
1355
1355
  },
1356
1356
  handleUnload: function(l) {
1357
1357
  var x = Date.now();
@@ -1394,28 +1394,28 @@ function Qn() {
1394
1394
  Ds = 1;
1395
1395
  var r = Fe(), n = 500;
1396
1396
  return zi = function(e, t, i) {
1397
- function s(g, d, f) {
1398
- var p = 0, l = g.tagName;
1397
+ function s(p, d, f) {
1398
+ var g = 0, l = p.tagName;
1399
1399
  if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
1400
- var x = g.children ? g.children.length : 0;
1400
+ var x = p.children ? p.children.length : 0;
1401
1401
  if (x > 0)
1402
- for (var v = g.children, S = x - 1; S >= 0; S--)
1403
- p += s(v[S], d + 1, p > 0);
1404
- if (p <= 0 && !f && !(g.getBoundingClientRect && g.getBoundingClientRect().top < c))
1402
+ for (var v = p.children, S = x - 1; S >= 0; S--)
1403
+ g += s(v[S], d + 1, g > 0);
1404
+ if (g <= 0 && !f && !(p.getBoundingClientRect && p.getBoundingClientRect().top < c))
1405
1405
  return 0;
1406
- p += 1 + 0.5 * d;
1406
+ g += 1 + 0.5 * d;
1407
1407
  }
1408
- return p;
1409
- }
1410
- function a(g) {
1411
- for (var d = 1; d < g.length; d++)
1412
- if (g[d].score < g[d - 1].score)
1413
- return g.splice(d, 1), a(g);
1414
1408
  return g;
1415
1409
  }
1410
+ function a(p) {
1411
+ for (var d = 1; d < p.length; d++)
1412
+ if (p[d].score < p[d - 1].score)
1413
+ return p.splice(d, 1), a(p);
1414
+ return p;
1415
+ }
1416
1416
  var c = t.innerHeight || 0, o = [], u = null, h = 0;
1417
1417
  r.ext(e.prototype, {
1418
- initFmpObserver: function(g) {
1418
+ initFmpObserver: function(p) {
1419
1419
  var d = this;
1420
1420
  if (!d._conf || !d._conf.useFmp)
1421
1421
  return null;
@@ -1426,8 +1426,8 @@ function Qn() {
1426
1426
  });
1427
1427
  var f = t.MutationObserver;
1428
1428
  return (u = new f(function() {
1429
- (function(p) {
1430
- var l = Date.now() - p, x = i.querySelector("body");
1429
+ (function(g) {
1430
+ var l = Date.now() - g, x = i.querySelector("body");
1431
1431
  if (x) {
1432
1432
  var v = 0;
1433
1433
  v += s(x, 1, !1), o.push({
@@ -1444,31 +1444,31 @@ function Qn() {
1444
1444
  childList: !0,
1445
1445
  subtree: !0
1446
1446
  }), h = 1, d.onReady(function() {
1447
- d.endObserving(g);
1447
+ d.endObserving(p);
1448
1448
  }), u;
1449
1449
  },
1450
- endObserving: function(g, d) {
1450
+ endObserving: function(p, d) {
1451
1451
  var f = this;
1452
1452
  if (u && h)
1453
1453
  if (f.fmpTimmer && (clearTimeout(f.fmpTimmer), f.fmpTimmer = null), d || !function(v, S) {
1454
1454
  var b = Date.now() - v;
1455
1455
  return !(b > S || b - (o && o.length && o[o.length - 1].t || 0) > 2 * n);
1456
- }(f._startTime, g)) {
1456
+ }(f._startTime, p)) {
1457
1457
  u.disconnect(), h = 0, o = a(o);
1458
- for (var p = null, l = 1; l < o.length; l++)
1458
+ for (var g = null, l = 1; l < o.length; l++)
1459
1459
  if (o[l].t >= o[l - 1].t) {
1460
1460
  var x = o[l].score - o[l - 1].score;
1461
- (!p || p.rate <= x) && (p = {
1461
+ (!g || g.rate <= x) && (g = {
1462
1462
  t: o[l].t,
1463
1463
  rate: x
1464
1464
  });
1465
1465
  }
1466
- p && p.t > 0 && p.t < 36e5 ? f.sendPerformance({
1467
- fmp: p.t
1466
+ g && g.t > 0 && g.t < 36e5 ? f.sendPerformance({
1467
+ fmp: g.t
1468
1468
  }) : f.sendPerformance();
1469
1469
  } else
1470
1470
  f.fmpTimmer = r.delay(function() {
1471
- f.endObserving(g);
1471
+ f.endObserving(p);
1472
1472
  }, n);
1473
1473
  }
1474
1474
  });
@@ -1477,31 +1477,31 @@ function Qn() {
1477
1477
  var Ts, Ps;
1478
1478
  function eo() {
1479
1479
  return Ps || (Ps = 1, Ts = function(r, n) {
1480
- var e = Fe(), t = null, i = e.getCurDomain(), s = function(h, g, d, f, p, l, x, v, S, b, y, E, I) {
1481
- var A = e.J(p) || null, C = e.safetyCall(g, [A, f], null);
1480
+ var e = Fe(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, g, l, x, v, S, b, y, E, I) {
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
1485
  h.api(d, _, x, L, C.msg, v, S, b, _ ? {} : y, i, E, I);
1486
1486
  }, a = "fetch", c = "__oFetch_", o = "__oXMLHttpRequest_", u = "XMLHttpRequest";
1487
1487
  return e.ext(r.prototype, {
1488
- removeHook: function(h, g) {
1489
- return t && (g || this === t) ? (n[c] && (n[a] = n[c], delete n[c]), n[o] && (n[u] = n[o], delete n[o]), t = null, this) : this;
1488
+ removeHook: function(h, p) {
1489
+ return t && (p || this === t) ? (n[c] && (n[a] = n[c], delete n[c]), n[o] && (n[u] = n[o], delete n[o]), t = null, this) : this;
1490
1490
  },
1491
1491
  addHook: function(h) {
1492
1492
  return !h && t ? this : (t || (function() {
1493
1493
  if (typeof n[a] == "function") {
1494
- var g = n[a];
1495
- n[c] = g, n[a] = function(d, f) {
1496
- var p = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), l = t;
1494
+ var p = n[a];
1495
+ n[c] = p, n[a] = function(d, f) {
1496
+ var g = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), l = t;
1497
1497
  if (!l || !l.api || f && (f.method === "HEAD" || f.mode === "no-cors"))
1498
- return g.apply(n, p);
1498
+ return p.apply(n, g);
1499
1499
  f || (f = {});
1500
1500
  var x = Date.now(), v = l._conf, S = 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))
1504
- return g.apply(n, p);
1504
+ return p.apply(n, g);
1505
1505
  b = e.filterByRule(b, y, v.ignoreApiPath ? v.ignoreApiPath : v.apiHelper);
1506
1506
  var A = v.enableLinkTrace, C = "", L = "", _ = l.getConfig("pid"), R = null, T = l.getConfig("sample"), B = l.getConfig("linkType"), $ = 1;
1507
1507
  if (T && !l.sampling(T) && ($ = 0), A) {
@@ -1515,26 +1515,26 @@ function eo() {
1515
1515
  if (l.getConfig("enableApiCors") || G)
1516
1516
  if (d && typeof d != "string")
1517
1517
  try {
1518
- if (p[0].headers && typeof p[0].headers.get == "function" && typeof p[0].headers.append == "function")
1518
+ if (g[0].headers && typeof g[0].headers.get == "function" && typeof g[0].headers.append == "function")
1519
1519
  switch (B) {
1520
1520
  case "arms":
1521
- var ae = p[0].headers.get("EagleEye-TraceID"), Q = p[0].headers.get("EagleEye-SessionID"), te = p[0].headers.get("EagleEye-pAppName");
1522
- ae ? C = ae : (C = l.getTraceId()["EagleEye-TraceID"], p[0].headers.append("EagleEye-TraceID", C)), Q ? L = Q : (L = l.getPageviewId()["EagleEye-SessionID"], p[0].headers.append("EagleEye-SessionID", L)), te || p[0].headers.append("EagleEye-pAppName", _);
1521
+ var ae = g[0].headers.get("EagleEye-TraceID"), Q = g[0].headers.get("EagleEye-SessionID"), te = g[0].headers.get("EagleEye-pAppName");
1522
+ ae ? C = ae : (C = l.getTraceId()["EagleEye-TraceID"], g[0].headers.append("EagleEye-TraceID", C)), Q ? L = Q : (L = l.getPageviewId()["EagleEye-SessionID"], g[0].headers.append("EagleEye-SessionID", L)), te || g[0].headers.append("EagleEye-pAppName", _);
1523
1523
  break;
1524
1524
  case "b3":
1525
- var ee = p[0].headers.get("X-B3-TraceId");
1525
+ var ee = g[0].headers.get("X-B3-TraceId");
1526
1526
  if (ee)
1527
1527
  C = ee;
1528
1528
  else {
1529
1529
  var P = l.getB3TraceId($);
1530
- p[0].headers.append("X-B3-TraceId", P["X-B3-TraceId"]), p[0].headers.append("X-B3-ParentSpanId", P["X-B3-ParentSpanId"]), p[0].headers.append("X-B3-SpanId", P["X-B3-SpanId"]), p[0].headers.append("X-B3-Sampled", P["X-B3-Sampled"]), p[0].headers.append("X-Request-ID", e.guid()), C = P["X-B3-TraceId"];
1530
+ g[0].headers.append("X-B3-TraceId", P["X-B3-TraceId"]), g[0].headers.append("X-B3-ParentSpanId", P["X-B3-ParentSpanId"]), g[0].headers.append("X-B3-SpanId", P["X-B3-SpanId"]), g[0].headers.append("X-B3-Sampled", P["X-B3-Sampled"]), g[0].headers.append("X-Request-ID", e.guid()), C = P["X-B3-TraceId"];
1531
1531
  }
1532
1532
  L = l.pageview;
1533
1533
  break;
1534
1534
  case "tracing":
1535
1535
  default:
1536
- var N = p[0].headers.get("uber-trace-id");
1537
- N ? C = N.split(":")[0] : (N = l.getUberTraceId($), p[0].headers.append("uber-trace-id", N["uber-trace-id"]), C = N.traceId), L = l.pageview;
1536
+ var N = g[0].headers.get("uber-trace-id");
1537
+ N ? C = N.split(":")[0] : (N = l.getUberTraceId($), g[0].headers.append("uber-trace-id", N["uber-trace-id"]), C = N.traceId), L = l.pageview;
1538
1538
  }
1539
1539
  } catch (J) {
1540
1540
  e.warn(`[retcode] fetch failed to set header, exception is :
@@ -1565,7 +1565,7 @@ function eo() {
1565
1565
  L = l.getPageviewId()["EagleEye-SessionID"];
1566
1566
  }
1567
1567
  }
1568
- return g.apply(n, p).then(function(J) {
1568
+ return p.apply(n, g).then(function(J) {
1569
1569
  if (!l || !l.api)
1570
1570
  return J;
1571
1571
  try {
@@ -1587,7 +1587,7 @@ function eo() {
1587
1587
  var Ze = I(j, Ye);
1588
1588
  Ze && e.isString(Ze) && (C = Ze);
1589
1589
  }
1590
- var Se = e.getFetchSnapshot(p, Ye, ue);
1590
+ var Se = e.getFetchSnapshot(g, Ye, ue);
1591
1591
  j.ok ? s(l, v.parseResponse, b, y, Ye, j.status || 200, ze, x, C, L, Se, R, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, x, C, L, Se, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
1592
1592
  src: j.url,
1593
1593
  res_type: "api"
@@ -1609,15 +1609,15 @@ function eo() {
1609
1609
  }
1610
1610
  }(), function() {
1611
1611
  if (typeof n[u] == "function") {
1612
- var g, d = n[u];
1612
+ var p, d = n[u];
1613
1613
  n[o] = d;
1614
- var f = function(p) {
1615
- var l = new d(p), x = t;
1614
+ var f = function(g) {
1615
+ var l = new d(g), x = t;
1616
1616
  if (!x || !x.api || !l.addEventListener)
1617
1617
  return l;
1618
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
1619
  return G && !x.sampling(G) && (Q = 0), l.open = function(te, ee) {
1620
- g = te;
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);
1623
1623
  var N = !e.checkAPI(b, !0) || e.ignoreByRule(b, L);
@@ -1650,7 +1650,7 @@ function eo() {
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, g, l);
1653
+ var te = S(), 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");
@@ -1675,8 +1675,8 @@ function eo() {
1675
1675
  }
1676
1676
  }), l;
1677
1677
  };
1678
- f.prototype = d.prototype, e.each(Object.keys(d), function(p) {
1679
- f[p] = d[p];
1678
+ f.prototype = d.prototype, e.each(Object.keys(d), function(g) {
1679
+ f[g] = d[g];
1680
1680
  }), n[u] = f, n[u].toString = e.createFakeToString(u);
1681
1681
  }
1682
1682
  }()), t = this, this);
@@ -1697,17 +1697,17 @@ function to() {
1697
1697
  }) : ((u = i.createEvent("HTMLEvents")).initEvent(c, !1, !0), u.detail = o), n.dispatchEvent(u);
1698
1698
  }, a = function(c) {
1699
1699
  var o = t[c];
1700
- typeof o == "function" && (t[c] = function(u, h, g) {
1701
- var d = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), f = location.href, p = o.apply(t, d);
1702
- if (!g || typeof g != "string" || g === f)
1703
- return p;
1700
+ typeof o == "function" && (t[c] = function(u, h, p) {
1701
+ var d = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), f = location.href, g = o.apply(t, d);
1702
+ if (!p || typeof p != "string" || p === f)
1703
+ return g;
1704
1704
  try {
1705
- var l = f.split("#"), x = g.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");
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
1706
  b !== y ? s("historystatechange", y) : v !== S && s("historystatechange", S);
1707
1707
  } catch (E) {
1708
1708
  e.warn("[retcode] error in " + c + ": " + E);
1709
1709
  }
1710
- return p;
1710
+ return g;
1711
1711
  }, t[c].toString = e.createFakeToString(c));
1712
1712
  };
1713
1713
  e.ext(r.prototype, {
@@ -1726,15 +1726,15 @@ function io() {
1726
1726
  return Wi = function(t, i) {
1727
1727
  function s(o, u, h) {
1728
1728
  if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
1729
- var g = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
1730
- if (g && d.includes(g) && !r.ignoreByRule(o.name, f) && !r.ignoreByRule(r.decode(o.name), f)) {
1731
- var p = 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(p, l, x, v, S, b, y, E, I) || p > E))
1729
+ var p = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
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))
1733
1733
  return;
1734
- if (A < p && (A = p), C < p && (C = l), r.areInOrder(p, A, C, l))
1734
+ if (A < g && (A = g), C < g && (C = l), r.areInOrder(g, A, C, l))
1735
1735
  return {
1736
1736
  domain: r.getURL(o.name).domain,
1737
- res_type: g,
1737
+ res_type: p,
1738
1738
  src_type: r.getSrcType(o.name, u.cdnHostList),
1739
1739
  success: 1,
1740
1740
  size: Math.round(o.decodedBodySize),
@@ -1751,9 +1751,9 @@ function io() {
1751
1751
  var o = this, u = i.performance, h = i.PerformanceObserver;
1752
1752
  if (o[c] || (o[c] = /* @__PURE__ */ new WeakMap()), !u || !h || typeof u != "object" || typeof u.getEntriesByType != "function")
1753
1753
  return null;
1754
- var g = u.getEntriesByType("resource") || [];
1754
+ var p = u.getEntriesByType("resource") || [];
1755
1755
  return setTimeout(function() {
1756
- o.setResource(g);
1756
+ o.setResource(p);
1757
1757
  }, 10), new h(function(d) {
1758
1758
  setTimeout(function() {
1759
1759
  o.setResource(d.getEntries());
@@ -1768,13 +1768,13 @@ function io() {
1768
1768
  var u = this._conf, h = this[c];
1769
1769
  if (r.isArray(o) && o.length) {
1770
1770
  this[a] || (this[a] = {});
1771
- for (var g = this[a], d = 0, f = o.length; d < f; d += 1) {
1772
- var p = o[d];
1773
- if (r.checkAPI(p.name, !1)) {
1774
- var l = s(p, u, h);
1771
+ for (var p = this[a], d = 0, f = o.length; d < f; d += 1) {
1772
+ var g = o[d];
1773
+ if (r.checkAPI(g.name, !1)) {
1774
+ var l = s(g, u, h);
1775
1775
  if (l) {
1776
1776
  var x = l.res_type + "-" + l.domain;
1777
- x in g || (g[x] = []), g[x].push(l);
1777
+ x in p || (p[x] = []), p[x].push(l);
1778
1778
  }
1779
1779
  }
1780
1780
  }
@@ -1788,9 +1788,9 @@ function io() {
1788
1788
  var h = this[c];
1789
1789
  if (!o.src || !r.checkAPI(o.src, !1))
1790
1790
  return this;
1791
- var g = o.timeStamp || u.now(), d = u.getEntriesByName(o.src, "resource");
1791
+ var p = o.timeStamp || u.now(), d = u.getEntriesByName(o.src, "resource");
1792
1792
  return r.each(d, function(f) {
1793
- h.has(f) || g - f.responseEnd < 100 && h.set(f, {
1793
+ h.has(f) || p - f.responseEnd < 100 && h.set(f, {
1794
1794
  success: 0
1795
1795
  });
1796
1796
  }), this;
@@ -1798,10 +1798,10 @@ function io() {
1798
1798
  resourceComboReport: function() {
1799
1799
  var o = this[a] || {}, u = this._conf.resourceSlow || 2e3, h = this[c];
1800
1800
  this[a] = {};
1801
- var g = Object.keys(o);
1802
- if (g.length !== 0) {
1801
+ var p = Object.keys(o);
1802
+ if (p.length !== 0) {
1803
1803
  var d = [];
1804
- r.each(g, function(x) {
1804
+ r.each(p, function(x) {
1805
1805
  var v = o[x], S = {
1806
1806
  domain: "",
1807
1807
  res_type: "",
@@ -1830,9 +1830,9 @@ function io() {
1830
1830
  var f = {
1831
1831
  _combo: 1,
1832
1832
  resource: JSON.stringify(d)
1833
- }, p = i.navigator.connection;
1834
- f.ct = p ? p.effectiveType || p.type : "";
1835
- var l = p && (p.downlink || p.downlinkMax || p.bandwidth) || null;
1833
+ }, g = i.navigator.connection;
1834
+ f.ct = g ? g.effectiveType || g.type : "";
1835
+ var l = g && (g.downlink || g.downlinkMax || g.bandwidth) || null;
1836
1836
  (l = l > 999 ? 999 : l) && (f.bandwidth = l), this._lg("resource", f, this.getConfig("sample"));
1837
1837
  }
1838
1838
  }
@@ -1850,8 +1850,8 @@ function ro() {
1850
1850
  errcount: 0,
1851
1851
  apisucc: 0,
1852
1852
  apifail: 0
1853
- }, u.beforeSend = function(h, g) {
1854
- h === "error" ? u._health.errcount++ : h === "api" && u._health[g.success ? "apisucc" : "apifail"]++;
1853
+ }, u.beforeSend = function(h, p) {
1854
+ h === "error" ? u._health.errcount++ : h === "api" && u._health[p.success ? "apisucc" : "apifail"]++;
1855
1855
  }, o.enableInstanceAutoSend !== !1 && (u.initHandler(), u.initHook(), u.initFmpObserver(1e4), u._conf && u._conf.behavior && typeof u.initBehavior == "function" && u.initBehavior(), u._conf && u._conf.enableResource && typeof u.initResource == "function" && u.initResource()), Object.defineProperty && i.addEventListener && Object.defineProperty(u, "pipe", {
1856
1856
  set: u.sendPipe
1857
1857
  }), u;
@@ -1910,13 +1910,13 @@ function ro() {
1910
1910
  }, !0);
1911
1911
  },
1912
1912
  getPage: function(o) {
1913
- var u = this._conf, h = u.page, g = location, d = g.host + g.pathname;
1914
- return h && !o ? r.safetyCall(h, [], h + "") : this._initialPage || r.filterByRule(u.ignoreUrlCase ? d.toLowerCase() : d, g.href, u.ignoreUrlPath ? u.ignoreUrlPath : u.urlHelper);
1913
+ var u = this._conf, h = u.page, p = location, d = p.host + p.pathname;
1914
+ return h && !o ? r.safetyCall(h, [], h + "") : this._initialPage || r.filterByRule(u.ignoreUrlCase ? d.toLowerCase() : d, p.href, u.ignoreUrlPath ? u.ignoreUrlPath : u.urlHelper);
1915
1915
  },
1916
1916
  setPage: function(o, u) {
1917
- var h = this, g = h.prevPage;
1917
+ var h = this, p = h.prevPage;
1918
1918
  if (u !== !1) {
1919
- if (!o || o === g)
1919
+ if (!o || o === p)
1920
1920
  return h;
1921
1921
  h.prevPage = o, clearTimeout(h.sendPVTimmer), h.handleUnload(1), h.resetPageview(), h.sendPVTimmer = setTimeout(function() {
1922
1922
  h.sendPV();
@@ -1930,8 +1930,8 @@ function ro() {
1930
1930
  r.verifyConfig(o), o = this.setImgUrl(o);
1931
1931
  var h = this._conf;
1932
1932
  if (this._conf = r.ext({}, h, o), !u) {
1933
- var g = "disableHook";
1934
- g in o && h[g] !== o[g] && (o[g] ? this.removeHook() : this.addHook()), (g = "enableSPA") in o && h[g] !== o[g] && this.bindHashChange(o[g]);
1933
+ var p = "disableHook";
1934
+ p in o && h[p] !== o[p] && (o[p] ? this.removeHook() : this.addHook()), (p = "enableSPA") in o && h[p] !== o[p] && this.bindHashChange(o[p]);
1935
1935
  }
1936
1936
  }
1937
1937
  },
@@ -1941,8 +1941,8 @@ function ro() {
1941
1941
  postData: function(o, u) {
1942
1942
  var h = {};
1943
1943
  h[u] = o[u], delete o[u];
1944
- var g = "";
1945
- typeof o == "object" && (g = r.serialize(o)), t(h, this.getConfig("imgUrl") + g + "&post_res=");
1944
+ var p = "";
1945
+ typeof o == "object" && (p = r.serialize(o)), t(h, this.getConfig("imgUrl") + p + "&post_res=");
1946
1946
  },
1947
1947
  sendPipe: function(o) {
1948
1948
  var u = this;
@@ -1950,8 +1950,8 @@ function ro() {
1950
1950
  return u;
1951
1951
  try {
1952
1952
  if (r.T(o[0]) === "Array")
1953
- return r.each(o, function(g) {
1954
- return u.sendPipe(g);
1953
+ return r.each(o, function(p) {
1954
+ return u.sendPipe(p);
1955
1955
  });
1956
1956
  if (r.T(o) !== "Array")
1957
1957
  return u;
@@ -1959,8 +1959,8 @@ function ro() {
1959
1959
  if (!a.test(h))
1960
1960
  return u;
1961
1961
  u[h].apply(u, o);
1962
- } catch (g) {
1963
- return r.warn("[retcode] error in sendPipe", g), u;
1962
+ } catch (p) {
1963
+ return r.warn("[retcode] error in sendPipe", p), u;
1964
1964
  }
1965
1965
  },
1966
1966
  sendHealth: function() {
@@ -2052,8 +2052,8 @@ function co(r, n, e) {
2052
2052
  let h;
2053
2053
  try {
2054
2054
  h = a[c];
2055
- } catch (g) {
2056
- throw e(g), g;
2055
+ } catch (p) {
2056
+ throw e(p), p;
2057
2057
  }
2058
2058
  return rt(h, n + 1, e);
2059
2059
  }
@@ -2062,13 +2062,13 @@ function co(r, n, e) {
2062
2062
  typeof a[c] == "function" && (o = a[c].bind(a));
2063
2063
  const u = {
2064
2064
  MediaboxWrapperObjectMethod(...h) {
2065
- let g;
2065
+ let p;
2066
2066
  try {
2067
- g = o(...h);
2067
+ p = o(...h);
2068
2068
  } catch (d) {
2069
2069
  throw e(d), d;
2070
2070
  }
2071
- return rt(g, n + 1, e);
2071
+ return rt(p, n + 1, e);
2072
2072
  }
2073
2073
  };
2074
2074
  return typeof a[c] == "function" ? u.MediaboxWrapperObjectMethod : n > 10 ? a[c] : rt(a[c], n + 1, e);
@@ -2256,7 +2256,7 @@ function at(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.7-beta.1", Ks = "web";
2259
+ const yi = "6.13.8-beta.0", Ks = "web";
2260
2260
  class He {
2261
2261
  /**
2262
2262
  * 将版本号转换为number
@@ -2666,7 +2666,7 @@ function ne() {
2666
2666
  return this.init.prototype.extend(this);
2667
2667
  }
2668
2668
  };
2669
- }(), g = u.WordArray = h.extend({
2669
+ }(), p = u.WordArray = h.extend({
2670
2670
  /**
2671
2671
  * Initializes a newly created word array.
2672
2672
  *
@@ -2761,7 +2761,7 @@ function ne() {
2761
2761
  random: function(S) {
2762
2762
  for (var b = [], y = 0; y < S; y += 4)
2763
2763
  b.push(a());
2764
- return new g.init(b, S);
2764
+ return new p.init(b, S);
2765
2765
  }
2766
2766
  }), d = o.enc = {}, f = d.Hex = {
2767
2767
  /**
@@ -2800,9 +2800,9 @@ function ne() {
2800
2800
  parse: function(S) {
2801
2801
  for (var b = S.length, y = [], E = 0; E < b; E += 2)
2802
2802
  y[E >>> 3] |= parseInt(S.substr(E, 2), 16) << 24 - E % 8 * 4;
2803
- return new g.init(y, b / 2);
2803
+ return new p.init(y, b / 2);
2804
2804
  }
2805
- }, p = d.Latin1 = {
2805
+ }, g = d.Latin1 = {
2806
2806
  /**
2807
2807
  * Converts a word array to a Latin1 string.
2808
2808
  *
@@ -2839,7 +2839,7 @@ function ne() {
2839
2839
  parse: function(S) {
2840
2840
  for (var b = S.length, y = [], E = 0; E < b; E++)
2841
2841
  y[E >>> 2] |= (S.charCodeAt(E) & 255) << 24 - E % 4 * 8;
2842
- return new g.init(y, b);
2842
+ return new p.init(y, b);
2843
2843
  }
2844
2844
  }, l = d.Utf8 = {
2845
2845
  /**
@@ -2857,7 +2857,7 @@ function ne() {
2857
2857
  */
2858
2858
  stringify: function(S) {
2859
2859
  try {
2860
- return decodeURIComponent(escape(p.stringify(S)));
2860
+ return decodeURIComponent(escape(g.stringify(S)));
2861
2861
  } catch (b) {
2862
2862
  throw new Error("Malformed UTF-8 data");
2863
2863
  }
@@ -2876,7 +2876,7 @@ function ne() {
2876
2876
  * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
2877
2877
  */
2878
2878
  parse: function(S) {
2879
- return p.parse(unescape(encodeURIComponent(S)));
2879
+ return g.parse(unescape(encodeURIComponent(S)));
2880
2880
  }
2881
2881
  }, x = u.BufferedBlockAlgorithm = h.extend({
2882
2882
  /**
@@ -2887,7 +2887,7 @@ function ne() {
2887
2887
  * bufferedBlockAlgorithm.reset();
2888
2888
  */
2889
2889
  reset: function() {
2890
- this._data = new g.init(), this._nDataBytes = 0;
2890
+ this._data = new p.init(), this._nDataBytes = 0;
2891
2891
  },
2892
2892
  /**
2893
2893
  * Adds new data to this block algorithm's buffer.
@@ -2925,7 +2925,7 @@ function ne() {
2925
2925
  this._doProcessBlock(E, T);
2926
2926
  b = E.splice(0, _), y.sigBytes -= R;
2927
2927
  }
2928
- return new g.init(b, R);
2928
+ return new p.init(b, R);
2929
2929
  },
2930
2930
  /**
2931
2931
  * Creates a copy of this object.
@@ -3253,11 +3253,11 @@ function Ei() {
3253
3253
  * var x32WordArray = x64WordArray.toX32();
3254
3254
  */
3255
3255
  toX32: function() {
3256
- for (var u = this.words, h = u.length, g = [], d = 0; d < h; d++) {
3256
+ for (var u = this.words, h = u.length, p = [], d = 0; d < h; d++) {
3257
3257
  var f = u[d];
3258
- g.push(f.high), g.push(f.low);
3258
+ p.push(f.high), p.push(f.low);
3259
3259
  }
3260
- return c.create(g, this.sigBytes);
3260
+ return c.create(p, this.sigBytes);
3261
3261
  },
3262
3262
  /**
3263
3263
  * Creates a copy of this word array.
@@ -3269,7 +3269,7 @@ function Ei() {
3269
3269
  * var clone = x64WordArray.clone();
3270
3270
  */
3271
3271
  clone: function() {
3272
- for (var u = a.clone.call(this), h = u.words = this.words.slice(0), g = h.length, d = 0; d < g; d++)
3272
+ for (var u = a.clone.call(this), h = u.words = this.words.slice(0), p = h.length, d = 0; d < p; d++)
3273
3273
  h[d] = h[d].clone();
3274
3274
  return u;
3275
3275
  }
@@ -3288,8 +3288,8 @@ function Do() {
3288
3288
  if (typeof ArrayBuffer == "function") {
3289
3289
  var t = e, i = t.lib, s = i.WordArray, a = s.init, c = s.init = function(o) {
3290
3290
  if (o instanceof ArrayBuffer && (o = new Uint8Array(o)), (o instanceof Int8Array || typeof Uint8ClampedArray != "undefined" && o instanceof Uint8ClampedArray || o instanceof Int16Array || o instanceof Uint16Array || o instanceof Int32Array || o instanceof Uint32Array || o instanceof Float32Array || o instanceof Float64Array) && (o = new Uint8Array(o.buffer, o.byteOffset, o.byteLength)), o instanceof Uint8Array) {
3291
- for (var u = o.byteLength, h = [], g = 0; g < u; g++)
3292
- h[g >>> 2] |= o[g] << 24 - g % 4 * 8;
3291
+ for (var u = o.byteLength, h = [], p = 0; p < u; p++)
3292
+ h[p >>> 2] |= o[p] << 24 - p % 4 * 8;
3293
3293
  a.call(this, h, u);
3294
3294
  } else
3295
3295
  a.apply(this, arguments);
@@ -3323,11 +3323,11 @@ function To() {
3323
3323
  * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
3324
3324
  */
3325
3325
  stringify: function(o) {
3326
- for (var u = o.words, h = o.sigBytes, g = [], d = 0; d < h; d += 2) {
3326
+ for (var u = o.words, h = o.sigBytes, p = [], d = 0; d < h; d += 2) {
3327
3327
  var f = u[d >>> 2] >>> 16 - d % 4 * 8 & 65535;
3328
- g.push(String.fromCharCode(f));
3328
+ p.push(String.fromCharCode(f));
3329
3329
  }
3330
- return g.join("");
3330
+ return p.join("");
3331
3331
  },
3332
3332
  /**
3333
3333
  * Converts a UTF-16 BE string to a word array.
@@ -3343,8 +3343,8 @@ function To() {
3343
3343
  * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
3344
3344
  */
3345
3345
  parse: function(o) {
3346
- for (var u = o.length, h = [], g = 0; g < u; g++)
3347
- h[g >>> 1] |= o.charCodeAt(g) << 16 - g % 2 * 16;
3346
+ for (var u = o.length, h = [], p = 0; p < u; p++)
3347
+ h[p >>> 1] |= o.charCodeAt(p) << 16 - p % 2 * 16;
3348
3348
  return s.create(h, u * 2);
3349
3349
  }
3350
3350
  }, a.Utf16LE = {
@@ -3362,11 +3362,11 @@ function To() {
3362
3362
  * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
3363
3363
  */
3364
3364
  stringify: function(o) {
3365
- for (var u = o.words, h = o.sigBytes, g = [], d = 0; d < h; d += 2) {
3365
+ for (var u = o.words, h = o.sigBytes, p = [], d = 0; d < h; d += 2) {
3366
3366
  var f = c(u[d >>> 2] >>> 16 - d % 4 * 8 & 65535);
3367
- g.push(String.fromCharCode(f));
3367
+ p.push(String.fromCharCode(f));
3368
3368
  }
3369
- return g.join("");
3369
+ return p.join("");
3370
3370
  },
3371
3371
  /**
3372
3372
  * Converts a UTF-16 LE string to a word array.
@@ -3382,8 +3382,8 @@ function To() {
3382
3382
  * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
3383
3383
  */
3384
3384
  parse: function(o) {
3385
- for (var u = o.length, h = [], g = 0; g < u; g++)
3386
- h[g >>> 1] |= c(o.charCodeAt(g) << 16 - g % 2 * 16);
3385
+ for (var u = o.length, h = [], p = 0; p < u; p++)
3386
+ h[p >>> 1] |= c(o.charCodeAt(p) << 16 - p % 2 * 16);
3387
3387
  return s.create(h, u * 2);
3388
3388
  }
3389
3389
  };
@@ -3417,12 +3417,12 @@ function Mt() {
3417
3417
  * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
3418
3418
  */
3419
3419
  stringify: function(o) {
3420
- var u = o.words, h = o.sigBytes, g = this._map;
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 p = 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 = p << 16 | l << 8 | x, S = 0; S < 4 && f + S * 0.75 < h; S++)
3424
- d.push(g.charAt(v >>> 6 * (3 - S) & 63));
3425
- var b = g.charAt(64);
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));
3425
+ var b = p.charAt(64);
3426
3426
  if (b)
3427
3427
  for (; d.length % 4; )
3428
3428
  d.push(b);
@@ -3442,28 +3442,28 @@ function Mt() {
3442
3442
  * var wordArray = CryptoJS.enc.Base64.parse(base64String);
3443
3443
  */
3444
3444
  parse: function(o) {
3445
- var u = o.length, h = this._map, g = this._reverseMap;
3446
- if (!g) {
3447
- g = this._reverseMap = [];
3445
+ var u = o.length, h = this._map, p = this._reverseMap;
3446
+ if (!p) {
3447
+ p = this._reverseMap = [];
3448
3448
  for (var d = 0; d < h.length; d++)
3449
- g[h.charCodeAt(d)] = d;
3449
+ p[h.charCodeAt(d)] = d;
3450
3450
  }
3451
3451
  var f = h.charAt(64);
3452
3452
  if (f) {
3453
- var p = o.indexOf(f);
3454
- p !== -1 && (u = p);
3453
+ var g = o.indexOf(f);
3454
+ g !== -1 && (u = g);
3455
3455
  }
3456
- return c(o, u, g);
3456
+ return c(o, u, p);
3457
3457
  },
3458
3458
  _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
3459
3459
  };
3460
3460
  function c(o, u, h) {
3461
- for (var g = [], d = 0, f = 0; f < u; f++)
3461
+ for (var p = [], d = 0, f = 0; f < u; f++)
3462
3462
  if (f % 4) {
3463
- var p = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, x = p | l;
3464
- g[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, x = g | l;
3464
+ p[d >>> 2] |= x << 24 - d % 4 * 8, d++;
3465
3465
  }
3466
- return s.create(g, d);
3466
+ return s.create(p, d);
3467
3467
  }
3468
3468
  }(), e.enc.Base64;
3469
3469
  });
@@ -3495,10 +3495,10 @@ function Po() {
3495
3495
  */
3496
3496
  stringify: function(o, u) {
3497
3497
  u === void 0 && (u = !0);
3498
- var h = o.words, g = o.sigBytes, d = u ? this._safe_map : this._map;
3498
+ var h = o.words, p = o.sigBytes, d = u ? this._safe_map : this._map;
3499
3499
  o.clamp();
3500
- for (var f = [], p = 0; p < g; p += 3)
3501
- for (var l = h[p >>> 2] >>> 24 - p % 4 * 8 & 255, x = h[p + 1 >>> 2] >>> 24 - (p + 1) % 4 * 8 & 255, v = h[p + 2 >>> 2] >>> 24 - (p + 2) % 4 * 8 & 255, S = l << 16 | x << 8 | v, b = 0; b < 4 && p + b * 0.75 < g; b++)
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
3502
  f.push(d.charAt(S >>> 6 * (3 - b) & 63));
3503
3503
  var y = d.charAt(64);
3504
3504
  if (y)
@@ -3523,15 +3523,15 @@ function Po() {
3523
3523
  */
3524
3524
  parse: function(o, u) {
3525
3525
  u === void 0 && (u = !0);
3526
- var h = o.length, g = u ? this._safe_map : this._map, d = this._reverseMap;
3526
+ var h = o.length, p = u ? this._safe_map : this._map, d = this._reverseMap;
3527
3527
  if (!d) {
3528
3528
  d = this._reverseMap = [];
3529
- for (var f = 0; f < g.length; f++)
3530
- d[g.charCodeAt(f)] = f;
3529
+ for (var f = 0; f < p.length; f++)
3530
+ d[p.charCodeAt(f)] = f;
3531
3531
  }
3532
- var p = g.charAt(64);
3533
- if (p) {
3534
- var l = o.indexOf(p);
3532
+ var g = p.charAt(64);
3533
+ if (g) {
3534
+ var l = o.indexOf(g);
3535
3535
  l !== -1 && (h = l);
3536
3536
  }
3537
3537
  return c(o, h, d);
@@ -3540,12 +3540,12 @@ function Po() {
3540
3540
  _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
3541
3541
  };
3542
3542
  function c(o, u, h) {
3543
- for (var g = [], d = 0, f = 0; f < u; f++)
3543
+ for (var p = [], d = 0, f = 0; f < u; f++)
3544
3544
  if (f % 4) {
3545
- var p = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, x = p | l;
3546
- g[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, x = g | l;
3546
+ p[d >>> 2] |= x << 24 - d % 4 * 8, d++;
3547
3547
  }
3548
- return s.create(g, d);
3548
+ return s.create(p, d);
3549
3549
  }
3550
3550
  }(), e.enc.Base64url;
3551
3551
  });
@@ -3578,7 +3578,7 @@ function Lt() {
3578
3578
  l[S] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
3579
3579
  }
3580
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];
3581
- P = g(P, N, F, M, E, 7, u[0]), M = g(M, P, N, F, I, 12, u[1]), F = g(F, M, P, N, A, 17, u[2]), N = g(N, F, M, P, C, 22, u[3]), P = g(P, N, F, M, L, 7, u[4]), M = g(M, P, N, F, _, 12, u[5]), F = g(F, M, P, N, R, 17, u[6]), N = g(N, F, M, P, T, 22, u[7]), P = g(P, N, F, M, B, 7, u[8]), M = g(M, P, N, F, $, 12, u[9]), F = g(F, M, P, N, q, 17, u[10]), N = g(N, F, M, P, G, 22, u[11]), P = g(P, N, F, M, ae, 7, u[12]), M = g(M, P, N, F, Q, 12, u[13]), F = g(F, M, P, N, te, 17, u[14]), N = g(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 = p(P, N, F, M, E, 6, u[48]), M = p(M, P, N, F, T, 10, u[49]), F = p(F, M, P, N, te, 15, u[50]), N = p(N, F, M, P, _, 21, u[51]), P = p(P, N, F, M, ae, 6, u[52]), M = p(M, P, N, F, C, 10, u[53]), F = p(F, M, P, N, q, 15, u[54]), N = p(N, F, M, P, I, 21, u[55]), P = p(P, N, F, M, B, 6, u[56]), M = p(M, P, N, F, ee, 10, u[57]), F = p(F, M, P, N, R, 15, u[58]), N = p(N, F, M, P, Q, 21, u[59]), P = p(P, N, F, M, L, 6, u[60]), M = p(M, P, N, F, G, 10, u[61]), F = p(F, M, P, N, A, 15, u[62]), N = p(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;
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
3584
  var l = this._data, x = l.words, v = this._nDataBytes * 8, S = l.sigBytes * 8;
@@ -3596,7 +3596,7 @@ function Lt() {
3596
3596
  return l._hash = this._hash.clone(), l;
3597
3597
  }
3598
3598
  });
3599
- function g(l, x, v, S, b, y, E) {
3599
+ function p(l, x, v, S, b, y, E) {
3600
3600
  var I = l + (x & v | ~x & S) + b + E;
3601
3601
  return (I << y | I >>> 32 - y) + x;
3602
3602
  }
@@ -3608,7 +3608,7 @@ function Lt() {
3608
3608
  var I = l + (x ^ v ^ S) + b + E;
3609
3609
  return (I << y | I >>> 32 - y) + x;
3610
3610
  }
3611
- function p(l, x, v, S, b, y, E) {
3611
+ function g(l, x, v, S, b, y, E) {
3612
3612
  var I = l + (v ^ (x | ~S)) + b + E;
3613
3613
  return (I << y | I >>> 32 - y) + x;
3614
3614
  }
@@ -3634,22 +3634,22 @@ function sn() {
3634
3634
  3285377520
3635
3635
  ]);
3636
3636
  },
3637
- _doProcessBlock: function(h, g) {
3638
- for (var d = this._hash.words, f = d[0], p = d[1], l = d[2], x = d[3], v = d[4], S = 0; S < 80; S++) {
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
3639
  if (S < 16)
3640
- o[S] = h[g + S] | 0;
3640
+ o[S] = h[p + S] | 0;
3641
3641
  else {
3642
3642
  var b = o[S - 3] ^ o[S - 8] ^ o[S - 14] ^ o[S - 16];
3643
3643
  o[S] = b << 1 | b >>> 31;
3644
3644
  }
3645
3645
  var y = (f << 5 | f >>> 27) + v + o[S];
3646
- S < 20 ? y += (p & l | ~p & x) + 1518500249 : S < 40 ? y += (p ^ l ^ x) + 1859775393 : S < 60 ? y += (p & l | p & x | l & x) - 1894007588 : y += (p ^ l ^ x) - 899497514, v = x, x = l, l = p << 30 | p >>> 2, p = f, f = y;
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;
3647
3647
  }
3648
- d[0] = d[0] + f | 0, d[1] = d[1] + p | 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] + x | 0, d[4] = d[4] + v | 0;
3649
3649
  },
3650
3650
  _doFinalize: function() {
3651
- var h = this._data, g = h.words, d = this._nDataBytes * 8, f = h.sigBytes * 8;
3652
- return g[f >>> 5] |= 128 << 24 - f % 32, g[(f + 64 >>> 9 << 4) + 14] = Math.floor(d / 4294967296), g[(f + 64 >>> 9 << 4) + 15] = d, h.sigBytes = g.length * 4, this._process(), this._hash;
3651
+ var h = this._data, p = h.words, d = this._nDataBytes * 8, f = h.sigBytes * 8;
3652
+ return p[f >>> 5] |= 128 << 24 - f % 32, p[(f + 64 >>> 9 << 4) + 14] = Math.floor(d / 4294967296), p[(f + 64 >>> 9 << 4) + 15] = d, h.sigBytes = p.length * 4, this._process(), this._hash;
3653
3653
  },
3654
3654
  clone: function() {
3655
3655
  var h = a.clone.call(this);
@@ -3676,32 +3676,32 @@ function $r() {
3676
3676
  return !1;
3677
3677
  return !0;
3678
3678
  }
3679
- function p(v) {
3679
+ function g(v) {
3680
3680
  return (v - (v | 0)) * 4294967296 | 0;
3681
3681
  }
3682
3682
  for (var l = 2, x = 0; x < 64; )
3683
- f(l) && (x < 8 && (u[x] = p(t.pow(l, 1 / 2))), h[x] = p(t.pow(l, 1 / 3)), x++), l++;
3683
+ f(l) && (x < 8 && (u[x] = g(t.pow(l, 1 / 2))), h[x] = g(t.pow(l, 1 / 3)), x++), l++;
3684
3684
  })();
3685
- var g = [], d = o.SHA256 = c.extend({
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
- _doProcessBlock: function(f, p) {
3689
+ _doProcessBlock: function(f, g) {
3690
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++) {
3691
3691
  if (C < 16)
3692
- g[C] = f[p + C] | 0;
3692
+ p[C] = f[g + C] | 0;
3693
3693
  else {
3694
- var L = g[C - 15], _ = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, R = g[C - 2], T = (R << 15 | R >>> 17) ^ (R << 13 | R >>> 19) ^ R >>> 10;
3695
- g[C] = _ + g[C - 7] + T + g[C - 16];
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
+ 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] + g[C], Q = q + $;
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
3698
  A = I, I = E, E = y, y = b + ae | 0, b = S, S = v, v = x, x = ae + Q | 0;
3699
3699
  }
3700
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;
3701
3701
  },
3702
3702
  _doFinalize: function() {
3703
- var f = this._data, p = f.words, l = this._nDataBytes * 8, x = f.sigBytes * 8;
3704
- return p[x >>> 5] |= 128 << 24 - x % 32, p[(x + 64 >>> 9 << 4) + 14] = t.floor(l / 4294967296), p[(x + 64 >>> 9 << 4) + 15] = l, f.sigBytes = p.length * 4, this._process(), this._hash;
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;
3705
3705
  },
3706
3706
  clone: function() {
3707
3707
  var f = c.clone.call(this);
@@ -3754,7 +3754,7 @@ function an() {
3754
3754
  function h() {
3755
3755
  return c.create.apply(c, arguments);
3756
3756
  }
3757
- var g = [
3757
+ var p = [
3758
3758
  h(1116352408, 3609767458),
3759
3759
  h(1899447441, 602891725),
3760
3760
  h(3049323471, 3964484399),
@@ -3837,8 +3837,8 @@ function an() {
3837
3837
  h(1816402316, 1246189591)
3838
3838
  ], d = [];
3839
3839
  (function() {
3840
- for (var p = 0; p < 80; p++)
3841
- d[p] = h();
3840
+ for (var g = 0; g < 80; g++)
3841
+ d[g] = h();
3842
3842
  })();
3843
3843
  var f = u.SHA512 = s.extend({
3844
3844
  _doReset: function() {
@@ -3853,29 +3853,29 @@ function an() {
3853
3853
  new c.init(1541459225, 327033209)
3854
3854
  ]);
3855
3855
  },
3856
- _doProcessBlock: function(p, l) {
3856
+ _doProcessBlock: function(g, l) {
3857
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, Ve = B, ze = $, Ye = q, Ze = G, Se = ae, Pe = Q, nt = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
3858
3858
  var Ce, Qe, Ct = d[ke];
3859
3859
  if (ke < 16)
3860
- Qe = Ct.high = p[l + ke * 2] | 0, Ce = Ct.low = p[l + ke * 2 + 1] | 0;
3860
+ Qe = Ct.high = g[l + ke * 2] | 0, Ce = Ct.low = g[l + ke * 2 + 1] | 0;
3861
3861
  else {
3862
3862
  var lt = d[ke - 15], et = lt.high, ot = lt.low, Di = (et >>> 1 | ot << 31) ^ (et >>> 8 | ot << 24) ^ et >>> 7, oi = (ot >>> 1 | et << 31) ^ (ot >>> 8 | et << 24) ^ (ot >>> 7 | et << 25), ci = d[ke - 2], We = ci.high, ft = ci.low, ui = (We >>> 19 | ft << 13) ^ (We << 3 | ft >>> 29) ^ We >>> 6, Gt = (ft >>> 19 | We << 13) ^ (ft << 3 | We >>> 29) ^ (ft >>> 6 | We << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
3863
3863
  Ce = oi + Rn, Qe = Di + In + (Ce >>> 0 < oi >>> 0 ? 1 : 0), Ce = Ce + Gt, Qe = Qe + ui + (Ce >>> 0 < Gt >>> 0 ? 1 : 0), Ce = Ce + ns, Qe = Qe + wn + (Ce >>> 0 < ns >>> 0 ? 1 : 0), Ct.high = Qe, Ct.low = Ce;
3864
3864
  }
3865
- var Dn = Se & nt ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Ve ^ ue & Ve, Pn = j & X ^ j & ze ^ X & ze, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | Pe << 18) ^ (Se >>> 18 | Pe << 14) ^ (Se << 23 | Pe >>> 9), Mn = (Pe >>> 14 | Se << 18) ^ (Pe >>> 18 | Se << 14) ^ (Pe << 23 | Se >>> 9), us = g[ke], Ln = us.high, hs = us.low, $e = _t + Mn, pt = Jt + Bn + ($e >>> 0 < _t >>> 0 ? 1 : 0), $e = $e + os, pt = pt + Dn + ($e >>> 0 < os >>> 0 ? 1 : 0), $e = $e + hs, pt = pt + Ln + ($e >>> 0 < hs >>> 0 ? 1 : 0), $e = $e + Ce, pt = pt + Qe + ($e >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
3865
+ var Dn = Se & nt ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Ve ^ ue & Ve, Pn = j & X ^ j & ze ^ X & ze, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | 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, $e = _t + Mn, pt = Jt + Bn + ($e >>> 0 < _t >>> 0 ? 1 : 0), $e = $e + os, pt = pt + Dn + ($e >>> 0 < os >>> 0 ? 1 : 0), $e = $e + hs, pt = pt + Ln + ($e >>> 0 < hs >>> 0 ? 1 : 0), $e = $e + Ce, pt = pt + Qe + ($e >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
3866
3866
  Jt = Nt, _t = At, Nt = nt, At = Et, nt = Se, Et = Pe, Pe = Ze + $e | 0, Se = Ye + pt + (Pe >>> 0 < Ze >>> 0 ? 1 : 0) | 0, Ye = Ve, Ze = ze, Ve = ue, ze = X, ue = J, X = j, j = $e + ds | 0, J = pt + Nn + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
3867
3867
  }
3868
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 = $ + ze, b.high = B + Ve + ($ >>> 0 < ze >>> 0 ? 1 : 0), G = y.low = G + Ze, y.high = q + Ye + (G >>> 0 < Ze >>> 0 ? 1 : 0), Q = E.low = Q + Pe, E.high = ae + Se + (Q >>> 0 < Pe >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + nt + (ee >>> 0 < Et >>> 0 ? 1 : 0), N = A.low = N + At, A.high = P + Nt + (N >>> 0 < At >>> 0 ? 1 : 0), M = C.low = M + _t, C.high = F + Jt + (M >>> 0 < _t >>> 0 ? 1 : 0);
3869
3869
  },
3870
3870
  _doFinalize: function() {
3871
- var p = this._data, l = p.words, x = this._nDataBytes * 8, v = p.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, p.sigBytes = l.length * 4, this._process();
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
3873
  var S = this._hash.toX32();
3874
3874
  return S;
3875
3875
  },
3876
3876
  clone: function() {
3877
- var p = s.clone.call(this);
3878
- return p._hash = this._hash.clone(), p;
3877
+ var g = s.clone.call(this);
3878
+ return g._hash = this._hash.clone(), g;
3879
3879
  },
3880
3880
  blockSize: 1024 / 32
3881
3881
  });
@@ -3921,10 +3921,10 @@ function Mo() {
3921
3921
  r.exports = t(ne(), Ei());
3922
3922
  })(ie, function(e) {
3923
3923
  return function(t) {
3924
- var i = e, s = i.lib, a = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo, g = [], d = [], f = [];
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
3926
  for (var x = 1, v = 0, S = 0; S < 24; S++) {
3927
- g[x + 5 * v] = (S + 1) * (S + 2) / 2 % 64;
3927
+ p[x + 5 * v] = (S + 1) * (S + 2) / 2 % 64;
3928
3928
  var b = v % 5, y = (2 * x + 3 * v) % 5;
3929
3929
  x = b, v = y;
3930
3930
  }
@@ -3942,10 +3942,10 @@ function Mo() {
3942
3942
  f[I] = u.create(A, C);
3943
3943
  }
3944
3944
  })();
3945
- var p = [];
3945
+ var g = [];
3946
3946
  (function() {
3947
3947
  for (var x = 0; x < 25; x++)
3948
- p[x] = u.create();
3948
+ g[x] = u.create();
3949
3949
  })();
3950
3950
  var l = h.SHA3 = c.extend({
3951
3951
  /**
@@ -3977,25 +3977,25 @@ function Mo() {
3977
3977
  var A = S[L + 5 * T];
3978
3978
  _ ^= A.high, R ^= A.low;
3979
3979
  }
3980
- var B = p[L];
3980
+ var B = g[L];
3981
3981
  B.high = _, B.low = R;
3982
3982
  }
3983
3983
  for (var L = 0; L < 5; L++)
3984
- for (var $ = p[(L + 4) % 5], q = p[(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++) {
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
3985
  var A = S[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 = g[Q];
3989
+ var _, R, A = S[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
- var N = p[d[Q]];
3991
+ var N = g[d[Q]];
3992
3992
  N.high = _, N.low = R;
3993
3993
  }
3994
- var F = p[0], M = S[0];
3994
+ var F = g[0], M = S[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 = p[Q], j = p[(L + 1) % 5 + 5 * T], ue = p[(L + 2) % 5 + 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];
3999
3999
  A.high = J.high ^ ~j.high & ue.high, A.low = J.low ^ ~j.low & ue.low;
4000
4000
  }
4001
4001
  var A = S[0], X = f[C];
@@ -4203,7 +4203,7 @@ function Lo() {
4203
4203
  3,
4204
4204
  9,
4205
4205
  11
4206
- ]), g = a.create([
4206
+ ]), p = a.create([
4207
4207
  11,
4208
4208
  14,
4209
4209
  15,
@@ -4365,7 +4365,7 @@ function Lo() {
4365
4365
  13,
4366
4366
  11,
4367
4367
  11
4368
- ]), f = a.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), p = a.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), l = o.RIPEMD160 = c.extend({
4368
+ ]), f = a.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), g = a.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), l = o.RIPEMD160 = c.extend({
4369
4369
  _doReset: function() {
4370
4370
  this._hash = a.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
4371
4371
  },
@@ -4374,7 +4374,7 @@ function Lo() {
4374
4374
  var L = A + C, _ = I[L];
4375
4375
  I[L] = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360;
4376
4376
  }
4377
- var R = this._hash.words, T = f.words, B = p.words, $ = u.words, q = h.words, G = g.words, ae = d.words, Q, te, ee, P, N, F, M, J, j, ue;
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
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;
@@ -4438,11 +4438,11 @@ function Kr() {
4438
4438
  */
4439
4439
  init: function(u, h) {
4440
4440
  u = this._hasher = new u.init(), typeof h == "string" && (h = c.parse(h));
4441
- var g = u.blockSize, d = g * 4;
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(), p = this._iKey = h.clone(), l = f.words, x = p.words, v = 0; v < g; v++)
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
4444
  l[v] ^= 1549556828, x[v] ^= 909522486;
4445
- f.sigBytes = p.sigBytes = d, this.reset();
4445
+ f.sigBytes = g.sigBytes = d, this.reset();
4446
4446
  },
4447
4447
  /**
4448
4448
  * Resets this HMAC to its initial state.
@@ -4485,9 +4485,9 @@ function Kr() {
4485
4485
  * var hmac = hmacHasher.finalize(wordArray);
4486
4486
  */
4487
4487
  finalize: function(u) {
4488
- var h = this._hasher, g = h.finalize(u);
4488
+ var h = this._hasher, p = h.finalize(u);
4489
4489
  h.reset();
4490
- var d = h.finalize(this._oKey.clone().concat(g));
4490
+ var d = h.finalize(this._oKey.clone().concat(p));
4491
4491
  return d;
4492
4492
  }
4493
4493
  });
@@ -4526,8 +4526,8 @@ function No() {
4526
4526
  * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
4527
4527
  * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
4528
4528
  */
4529
- init: function(g) {
4530
- this.cfg = this.cfg.extend(g);
4529
+ init: function(p) {
4530
+ this.cfg = this.cfg.extend(p);
4531
4531
  },
4532
4532
  /**
4533
4533
  * Computes the Password-Based Key Derivation Function 2.
@@ -4541,12 +4541,12 @@ function No() {
4541
4541
  *
4542
4542
  * var key = kdf.compute(password, salt);
4543
4543
  */
4544
- compute: function(g, d) {
4545
- for (var f = this.cfg, p = u.create(f.hasher, g), 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 = p.update(d).finalize(x);
4547
- p.reset();
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);
4547
+ g.reset();
4548
4548
  for (var I = E.words, A = I.length, C = E, L = 1; L < y; L++) {
4549
- C = p.finalize(C), p.reset();
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
  }
@@ -4555,8 +4555,8 @@ function No() {
4555
4555
  return l.sigBytes = b * 4, l;
4556
4556
  }
4557
4557
  });
4558
- t.PBKDF2 = function(g, d, f) {
4559
- return h.create(f).compute(g, d);
4558
+ t.PBKDF2 = function(p, d, f) {
4559
+ return h.create(f).compute(p, d);
4560
4560
  };
4561
4561
  }(), e.PBKDF2;
4562
4562
  });
@@ -4608,18 +4608,18 @@ function yt() {
4608
4608
  *
4609
4609
  * var key = kdf.compute(password, salt);
4610
4610
  */
4611
- compute: function(h, g) {
4612
- for (var d, f = this.cfg, p = f.hasher.create(), l = a.create(), x = l.words, v = f.keySize, S = f.iterations; x.length < v; ) {
4613
- d && p.update(d), d = p.update(h).finalize(g), p.reset();
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; ) {
4613
+ d && g.update(d), d = g.update(h).finalize(p), g.reset();
4614
4614
  for (var b = 1; b < S; b++)
4615
- d = p.finalize(d), p.reset();
4615
+ d = g.finalize(d), g.reset();
4616
4616
  l.concat(d);
4617
4617
  }
4618
4618
  return l.sigBytes = v * 4, l;
4619
4619
  }
4620
4620
  });
4621
- t.EvpKDF = function(h, g, d) {
4622
- return u.create(d).compute(h, g);
4621
+ t.EvpKDF = function(h, p, d) {
4622
+ return u.create(d).compute(h, p);
4623
4623
  };
4624
4624
  }(), e.EvpKDF;
4625
4625
  });
@@ -4634,7 +4634,7 @@ function Ae() {
4634
4634
  e.lib.Cipher || function(t) {
4635
4635
  var i = e, s = i.lib, a = s.Base, c = s.WordArray, o = s.BufferedBlockAlgorithm, u = i.enc;
4636
4636
  u.Utf8;
4637
- var h = u.Base64, g = i.algo, d = g.EvpKDF, f = s.Cipher = o.extend({
4637
+ var h = u.Base64, p = i.algo, d = p.EvpKDF, f = s.Cipher = o.extend({
4638
4638
  /**
4639
4639
  * Configuration options.
4640
4640
  *
@@ -4773,7 +4773,7 @@ function Ae() {
4773
4773
  },
4774
4774
  blockSize: 1
4775
4775
  });
4776
- var p = i.mode = {}, l = s.BlockCipherMode = a.extend({
4776
+ var g = i.mode = {}, l = s.BlockCipherMode = a.extend({
4777
4777
  /**
4778
4778
  * Creates this mode for encryption.
4779
4779
  *
@@ -4817,7 +4817,7 @@ function Ae() {
4817
4817
  init: function(_, R) {
4818
4818
  this._cipher = _, this._iv = R;
4819
4819
  }
4820
- }), x = p.CBC = function() {
4820
+ }), x = g.CBC = function() {
4821
4821
  var _ = l.extend();
4822
4822
  _.Encryptor = _.extend({
4823
4823
  /**
@@ -5185,8 +5185,8 @@ function Fo() {
5185
5185
  function i(s, a, c, o) {
5186
5186
  var u, h = this._iv;
5187
5187
  h ? (u = h.slice(0), this._iv = void 0) : u = this._prevBlock, o.encryptBlock(u, 0);
5188
- for (var g = 0; g < c; g++)
5189
- s[a + g] ^= u[g];
5188
+ for (var p = 0; p < c; p++)
5189
+ s[a + p] ^= u[p];
5190
5190
  }
5191
5191
  return t;
5192
5192
  }(), e.mode.CFB;
@@ -5204,10 +5204,10 @@ function Vo() {
5204
5204
  processBlock: function(s, a) {
5205
5205
  var c = this._cipher, o = c.blockSize, u = this._iv, h = this._counter;
5206
5206
  u && (h = this._counter = u.slice(0), this._iv = void 0);
5207
- var g = h.slice(0);
5208
- c.encryptBlock(g, 0), h[o - 1] = h[o - 1] + 1 | 0;
5207
+ var p = h.slice(0);
5208
+ c.encryptBlock(p, 0), h[o - 1] = h[o - 1] + 1 | 0;
5209
5209
  for (var d = 0; d < o; d++)
5210
- s[a + d] ^= g[d];
5210
+ s[a + d] ^= p[d];
5211
5211
  }
5212
5212
  });
5213
5213
  return t.Decryptor = i, t;
@@ -5241,12 +5241,12 @@ function Oo() {
5241
5241
  }
5242
5242
  var a = t.Encryptor = t.extend({
5243
5243
  processBlock: function(c, o) {
5244
- var u = this._cipher, h = u.blockSize, g = this._iv, d = this._counter;
5245
- g && (d = this._counter = g.slice(0), this._iv = void 0), s(d);
5244
+ var u = this._cipher, h = u.blockSize, p = this._iv, d = this._counter;
5245
+ p && (d = this._counter = p.slice(0), this._iv = void 0), s(d);
5246
5246
  var f = d.slice(0);
5247
5247
  u.encryptBlock(f, 0);
5248
- for (var p = 0; p < h; p++)
5249
- c[o + p] ^= f[p];
5248
+ for (var g = 0; g < h; g++)
5249
+ c[o + g] ^= f[g];
5250
5250
  }
5251
5251
  });
5252
5252
  return t.Decryptor = a, t;
@@ -5265,8 +5265,8 @@ function Uo() {
5265
5265
  processBlock: function(s, a) {
5266
5266
  var c = this._cipher, o = c.blockSize, u = this._iv, h = this._keystream;
5267
5267
  u && (h = this._keystream = u.slice(0), this._iv = void 0), c.encryptBlock(h, 0);
5268
- for (var g = 0; g < o; g++)
5269
- s[a + g] ^= h[g];
5268
+ for (var p = 0; p < o; p++)
5269
+ s[a + p] ^= h[p];
5270
5270
  }
5271
5271
  });
5272
5272
  return t.Decryptor = i, t;
@@ -5426,8 +5426,8 @@ function qo() {
5426
5426
  * var cipherParams = CryptoJS.format.Hex.parse(hexString);
5427
5427
  */
5428
5428
  parse: function(h) {
5429
- var g = o.parse(h);
5430
- return a.create({ ciphertext: g });
5429
+ var p = o.parse(h);
5430
+ return a.create({ ciphertext: p });
5431
5431
  }
5432
5432
  };
5433
5433
  }(), e.format.Hex;
@@ -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 = [], g = [], d = [], f = [], p = [], l = [], x = [];
5444
+ var t = e, i = t.lib, s = i.BlockCipher, a = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], x = [];
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;
@@ -5449,9 +5449,9 @@ function Jo() {
5449
5449
  var A = I ^ I << 1 ^ I << 2 ^ I << 3 ^ I << 4;
5450
5450
  A = A >>> 8 ^ A & 255 ^ 99, c[E] = A, o[A] = E;
5451
5451
  var C = b[E], L = b[C], _ = b[L], R = b[A] * 257 ^ A * 16843008;
5452
- u[E] = R << 24 | R >>> 8, h[E] = R << 16 | R >>> 16, g[E] = R << 8 | R >>> 24, d[E] = R;
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, p[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, x[A] = R, E ? (E = C ^ b[b[b[_ ^ C]]], I ^= b[b[I]]) : E = I = 1;
5455
5455
  }
5456
5456
  })();
5457
5457
  var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], S = a.AES = s.extend({
@@ -5466,16 +5466,16 @@ 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]] ^ p[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]] ^ x[c[b & 255]];
5470
5470
  }
5471
5471
  }
5472
5472
  },
5473
5473
  encryptBlock: function(b, y) {
5474
- this._doCryptBlock(b, y, this._keySchedule, u, h, g, d, c);
5474
+ this._doCryptBlock(b, y, this._keySchedule, u, h, p, d, c);
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, p, l, x, o);
5478
+ b[y + 1] = b[y + 3], b[y + 3] = E, this._doCryptBlock(b, y, this._invKeySchedule, f, g, l, x, o);
5479
5479
  var E = b[y + 1];
5480
5480
  b[y + 1] = b[y + 3], b[y + 3] = E;
5481
5481
  },
@@ -5607,7 +5607,7 @@ function Go() {
5607
5607
  36,
5608
5608
  29,
5609
5609
  32
5610
- ], h = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], g = [
5610
+ ], h = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], p = [
5611
5611
  {
5612
5612
  0: 8421888,
5613
5613
  268435456: 32768,
@@ -6169,20 +6169,20 @@ function Go() {
6169
6169
  this._doCryptBlock(v, S, this._invSubKeys);
6170
6170
  },
6171
6171
  _doCryptBlock: function(v, S, b) {
6172
- this._lBlock = v[S], this._rBlock = v[S + 1], p.call(this, 4, 252645135), p.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), p.call(this, 1, 1431655765);
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);
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
- C |= g[L][((A ^ E[L]) & d[L]) >>> 0];
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 = _, p.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), p.call(this, 16, 65535), p.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[S] = this._lBlock, v[S + 1] = this._rBlock;
6180
6180
  },
6181
6181
  keySize: 64 / 32,
6182
6182
  ivSize: 64 / 32,
6183
6183
  blockSize: 64 / 32
6184
6184
  });
6185
- function p(v, S) {
6185
+ function g(v, S) {
6186
6186
  var b = (this._lBlock >>> v ^ this._rBlock) & S;
6187
6187
  this._rBlock ^= b, this._lBlock ^= b << v;
6188
6188
  }
@@ -6223,29 +6223,29 @@ function Xo() {
6223
6223
  return function() {
6224
6224
  var t = e, i = t.lib, s = i.StreamCipher, a = t.algo, c = a.RC4 = s.extend({
6225
6225
  _doReset: function() {
6226
- for (var h = this._key, g = h.words, d = h.sigBytes, f = this._S = [], p = 0; p < 256; p++)
6227
- f[p] = p;
6228
- for (var p = 0, l = 0; p < 256; p++) {
6229
- var x = p % d, v = g[x >>> 2] >>> 24 - x % 4 * 8 & 255;
6230
- l = (l + f[p] + v) % 256;
6231
- var S = f[p];
6232
- f[p] = f[l], f[l] = S;
6226
+ for (var h = this._key, p = h.words, d = h.sigBytes, f = this._S = [], g = 0; g < 256; g++)
6227
+ f[g] = g;
6228
+ for (var g = 0, l = 0; g < 256; g++) {
6229
+ var x = g % d, v = p[x >>> 2] >>> 24 - x % 4 * 8 & 255;
6230
+ l = (l + f[g] + v) % 256;
6231
+ var S = f[g];
6232
+ f[g] = f[l], f[l] = S;
6233
6233
  }
6234
6234
  this._i = this._j = 0;
6235
6235
  },
6236
- _doProcessBlock: function(h, g) {
6237
- h[g] ^= o.call(this);
6236
+ _doProcessBlock: function(h, p) {
6237
+ h[p] ^= o.call(this);
6238
6238
  },
6239
6239
  keySize: 256 / 32,
6240
6240
  ivSize: 0
6241
6241
  });
6242
6242
  function o() {
6243
- for (var h = this._S, g = this._i, d = this._j, f = 0, p = 0; p < 4; p++) {
6244
- g = (g + 1) % 256, d = (d + h[g]) % 256;
6245
- var l = h[g];
6246
- h[g] = h[d], h[d] = l, f |= h[(h[g] + h[d]) % 256] << 24 - p * 8;
6243
+ for (var h = this._S, p = this._i, d = this._j, f = 0, g = 0; g < 4; g++) {
6244
+ p = (p + 1) % 256, d = (d + h[p]) % 256;
6245
+ var l = h[p];
6246
+ h[p] = h[d], h[d] = l, f |= h[(h[p] + h[d]) % 256] << 24 - g * 8;
6247
6247
  }
6248
- return this._i = g, this._j = d, f;
6248
+ return this._i = p, this._j = d, f;
6249
6249
  }
6250
6250
  t.RC4 = s._createHelper(c);
6251
6251
  var u = a.RC4Drop = c.extend({
@@ -6277,8 +6277,8 @@ function Yo() {
6277
6277
  return function() {
6278
6278
  var t = e, i = t.lib, s = i.StreamCipher, a = t.algo, c = [], o = [], u = [], h = a.Rabbit = s.extend({
6279
6279
  _doReset: function() {
6280
- for (var d = this._key.words, f = this.cfg.iv, p = 0; p < 4; p++)
6281
- d[p] = (d[p] << 8 | d[p] >>> 24) & 16711935 | (d[p] << 24 | d[p] >>> 8) & 4278255360;
6280
+ for (var d = this._key.words, f = this.cfg.iv, g = 0; g < 4; g++)
6281
+ d[g] = (d[g] << 8 | d[g] >>> 24) & 16711935 | (d[g] << 24 | d[g] >>> 8) & 4278255360;
6282
6282
  var l = this._X = [
6283
6283
  d[0],
6284
6284
  d[3] << 16 | d[2] >>> 16,
@@ -6299,33 +6299,33 @@ function Yo() {
6299
6299
  d[3] & 4294901760 | d[0] & 65535
6300
6300
  ];
6301
6301
  this._b = 0;
6302
- for (var p = 0; p < 4; p++)
6303
- g.call(this);
6304
- for (var p = 0; p < 8; p++)
6305
- x[p] ^= l[p + 4 & 7];
6302
+ for (var g = 0; g < 4; g++)
6303
+ p.call(this);
6304
+ for (var g = 0; g < 8; g++)
6305
+ x[g] ^= l[g + 4 & 7];
6306
6306
  if (f) {
6307
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
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;
6309
- for (var p = 0; p < 4; p++)
6310
- g.call(this);
6309
+ for (var g = 0; g < 4; g++)
6310
+ p.call(this);
6311
6311
  }
6312
6312
  },
6313
6313
  _doProcessBlock: function(d, f) {
6314
- var p = this._X;
6315
- g.call(this), c[0] = p[0] ^ p[5] >>> 16 ^ p[3] << 16, c[1] = p[2] ^ p[7] >>> 16 ^ p[5] << 16, c[2] = p[4] ^ p[1] >>> 16 ^ p[7] << 16, c[3] = p[6] ^ p[3] >>> 16 ^ p[1] << 16;
6314
+ var g = this._X;
6315
+ p.call(this), c[0] = g[0] ^ g[5] >>> 16 ^ g[3] << 16, c[1] = g[2] ^ g[7] >>> 16 ^ g[5] << 16, c[2] = g[4] ^ g[1] >>> 16 ^ g[7] << 16, c[3] = g[6] ^ g[3] >>> 16 ^ g[1] << 16;
6316
6316
  for (var l = 0; l < 4; l++)
6317
6317
  c[l] = (c[l] << 8 | c[l] >>> 24) & 16711935 | (c[l] << 24 | c[l] >>> 8) & 4278255360, d[f + l] ^= c[l];
6318
6318
  },
6319
6319
  blockSize: 128 / 32,
6320
6320
  ivSize: 64 / 32
6321
6321
  });
6322
- function g() {
6323
- for (var d = this._X, f = this._C, p = 0; p < 8; p++)
6324
- o[p] = f[p];
6322
+ function p() {
6323
+ for (var d = this._X, f = this._C, g = 0; g < 8; g++)
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
- for (var p = 0; p < 8; p++) {
6327
- var l = d[p] + f[p], 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[p] = S ^ b;
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;
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
  }
@@ -6343,7 +6343,7 @@ function Zo() {
6343
6343
  return function() {
6344
6344
  var t = e, i = t.lib, s = i.StreamCipher, a = t.algo, c = [], o = [], u = [], h = a.RabbitLegacy = s.extend({
6345
6345
  _doReset: function() {
6346
- var d = this._key.words, f = this.cfg.iv, p = this._X = [
6346
+ var d = this._key.words, f = this.cfg.iv, g = this._X = [
6347
6347
  d[0],
6348
6348
  d[3] << 16 | d[2] >>> 16,
6349
6349
  d[1],
@@ -6364,32 +6364,32 @@ function Zo() {
6364
6364
  ];
6365
6365
  this._b = 0;
6366
6366
  for (var x = 0; x < 4; x++)
6367
- g.call(this);
6367
+ p.call(this);
6368
6368
  for (var x = 0; x < 8; x++)
6369
- l[x] ^= p[x + 4 & 7];
6369
+ l[x] ^= g[x + 4 & 7];
6370
6370
  if (f) {
6371
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;
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
6373
  for (var x = 0; x < 4; x++)
6374
- g.call(this);
6374
+ p.call(this);
6375
6375
  }
6376
6376
  },
6377
6377
  _doProcessBlock: function(d, f) {
6378
- var p = this._X;
6379
- g.call(this), c[0] = p[0] ^ p[5] >>> 16 ^ p[3] << 16, c[1] = p[2] ^ p[7] >>> 16 ^ p[5] << 16, c[2] = p[4] ^ p[1] >>> 16 ^ p[7] << 16, c[3] = p[6] ^ p[3] >>> 16 ^ p[1] << 16;
6378
+ var g = this._X;
6379
+ p.call(this), c[0] = g[0] ^ g[5] >>> 16 ^ g[3] << 16, c[1] = g[2] ^ g[7] >>> 16 ^ g[5] << 16, c[2] = g[4] ^ g[1] >>> 16 ^ g[7] << 16, c[3] = g[6] ^ g[3] >>> 16 ^ g[1] << 16;
6380
6380
  for (var l = 0; l < 4; l++)
6381
6381
  c[l] = (c[l] << 8 | c[l] >>> 24) & 16711935 | (c[l] << 24 | c[l] >>> 8) & 4278255360, d[f + l] ^= c[l];
6382
6382
  },
6383
6383
  blockSize: 128 / 32,
6384
6384
  ivSize: 64 / 32
6385
6385
  });
6386
- function g() {
6387
- for (var d = this._X, f = this._C, p = 0; p < 8; p++)
6388
- o[p] = f[p];
6386
+ function p() {
6387
+ for (var d = this._X, f = this._C, g = 0; g < 8; g++)
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
- for (var p = 0; p < 8; p++) {
6391
- var l = d[p] + f[p], 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[p] = S ^ b;
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;
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,23 +7463,23 @@ function Qo() {
7463
7463
  pbox: [],
7464
7464
  sbox: []
7465
7465
  };
7466
- function g(x, v) {
7466
+ function p(x, v) {
7467
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
7468
  return I = I ^ x.sbox[2][y], I = I + x.sbox[3][E], I;
7469
7469
  }
7470
7470
  function d(x, v, S) {
7471
7471
  let b = v, y = S, E;
7472
7472
  for (let I = 0; I < c; ++I)
7473
- b = b ^ x.pbox[I], y = g(x, b) ^ y, E = b, b = y, y = E;
7473
+ b = b ^ x.pbox[I], y = p(x, b) ^ y, E = b, b = y, y = E;
7474
7474
  return E = b, b = y, y = E, y = y ^ x.pbox[c], b = b ^ x.pbox[c + 1], { left: b, right: y };
7475
7475
  }
7476
7476
  function f(x, v, S) {
7477
7477
  let b = v, y = S, E;
7478
7478
  for (let I = c + 1; I > 1; --I)
7479
- b = b ^ x.pbox[I], y = g(x, b) ^ y, E = b, b = y, y = E;
7479
+ b = b ^ x.pbox[I], y = p(x, b) ^ y, E = b, b = y, y = E;
7480
7480
  return E = b, b = y, y = E, y = y ^ x.pbox[1], b = b ^ x.pbox[0], { left: b, right: y };
7481
7481
  }
7482
- function p(x, v, S) {
7482
+ function g(x, v, S) {
7483
7483
  for (let A = 0; A < 4; A++) {
7484
7484
  x.sbox[A] = [];
7485
7485
  for (let C = 0; C < 256; C++)
@@ -7500,7 +7500,7 @@ function Qo() {
7500
7500
  _doReset: function() {
7501
7501
  if (this._keyPriorReset !== this._key) {
7502
7502
  var x = this._keyPriorReset = this._key, v = x.words, S = x.sigBytes / 4;
7503
- p(h, v, S);
7503
+ g(h, v, S);
7504
7504
  }
7505
7505
  },
7506
7506
  encryptBlock: function(x, v) {
@@ -7540,17 +7540,17 @@ function i0(r, n, e, t, i, s, a, c) {
7540
7540
  ` + ((o = s.get("Content-Type")) != null ? o : "") + `
7541
7541
  ` + c + `
7542
7542
  `;
7543
- const h = (p, l) => p[0].localeCompare(l[0]), g = (p) => p[0].startsWith("x-log-") || p[0].startsWith("x-acs-");
7543
+ const h = (g, l) => g[0].localeCompare(l[0]), p = (g) => g[0].startsWith("x-log-") || g[0].startsWith("x-acs-");
7544
7544
  try {
7545
- const p = [...s.entries()].filter(g).sort(h).map((l) => l[0] + ":" + l[1] + `
7545
+ const g = [...s.entries()].filter(p).sort(h).map((l) => l[0] + ":" + l[1] + `
7546
7546
  `).join("");
7547
- u += p;
7548
- } catch (p) {
7547
+ u += g;
7548
+ } catch (g) {
7549
7549
  }
7550
7550
  u += n, i.size > 0 && (u += "?");
7551
7551
  try {
7552
- u += [...i.entries()].sort(h).map((p) => p[0] + "=" + p[1]).join("&");
7553
- } catch (p) {
7552
+ u += [...i.entries()].sort(h).map((g) => g[0] + "=" + g[1]).join("&");
7553
+ } catch (g) {
7554
7554
  }
7555
7555
  const d = ri.HmacSHA1(u, t).toString(ri.enc.Base64), f = "LOG " + e + ":" + d;
7556
7556
  return s.set("Authorization", f), s.set("x-log-date", c), f;
@@ -7653,13 +7653,13 @@ function Jr(r, n, e, t) {
7653
7653
  return r[s() + "FullYear"]();
7654
7654
  }, h = function() {
7655
7655
  return r[s() + "Hours"]();
7656
- }, g = function() {
7656
+ }, p = function() {
7657
7657
  return r[s() + "Minutes"]();
7658
7658
  }, d = function() {
7659
7659
  return r[s() + "Seconds"]();
7660
7660
  }, f = function() {
7661
7661
  return r[s() + "Milliseconds"]();
7662
- }, p = function() {
7662
+ }, g = function() {
7663
7663
  return e ? 0 : r.getTimezoneOffset();
7664
7664
  }, l = function() {
7665
7665
  return u0(r);
@@ -7698,9 +7698,9 @@ function Jr(r, n, e, t) {
7698
7698
  }, HH: function() {
7699
7699
  return Ke(h());
7700
7700
  }, M: function() {
7701
- return g();
7701
+ return p();
7702
7702
  }, MM: function() {
7703
- return Ke(g());
7703
+ return Ke(p());
7704
7704
  }, s: function() {
7705
7705
  return d();
7706
7706
  }, ss: function() {
@@ -7720,9 +7720,9 @@ function Jr(r, n, e, t) {
7720
7720
  }, Z: function() {
7721
7721
  return t ? "GMT" : e ? "UTC" : d0(r);
7722
7722
  }, o: function() {
7723
- return (p() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(p()) / 60) * 100 + Math.abs(p()) % 60, 4);
7723
+ return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60) * 100 + Math.abs(g()) % 60, 4);
7724
7724
  }, p: function() {
7725
- return (p() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(p()) / 60), 2) + ":" + Ke(Math.floor(Math.abs(p()) % 60), 2);
7725
+ return (g() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(g()) / 60), 2) + ":" + Ke(Math.floor(Math.abs(g()) % 60), 2);
7726
7726
  }, S: function() {
7727
7727
  return ["th", "st", "nd", "rd"][a() % 10 > 3 ? 0 : (a() % 100 - a() % 10 != 10) * a() % 10];
7728
7728
  }, W: function() {
@@ -7742,13 +7742,13 @@ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7742
7742
  }, Pa = function(n) {
7743
7743
  var e = n.y, t = n.m, i = n.d, s = n._, a = n.dayName, c = n.short, o = c === void 0 ? !1 : c, u = /* @__PURE__ */ new Date(), h = /* @__PURE__ */ new Date();
7744
7744
  h.setDate(h[s + "Date"]() - 1);
7745
- var g = /* @__PURE__ */ new Date();
7746
- g.setDate(g[s + "Date"]() + 1);
7745
+ var p = /* @__PURE__ */ new Date();
7746
+ p.setDate(p[s + "Date"]() + 1);
7747
7747
  var d = function() {
7748
7748
  return u[s + "Date"]();
7749
7749
  }, f = function() {
7750
7750
  return u[s + "Month"]();
7751
- }, p = function() {
7751
+ }, g = function() {
7752
7752
  return u[s + "FullYear"]();
7753
7753
  }, l = function() {
7754
7754
  return h[s + "Date"]();
@@ -7757,13 +7757,13 @@ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7757
7757
  }, v = function() {
7758
7758
  return h[s + "FullYear"]();
7759
7759
  }, S = function() {
7760
- return g[s + "Date"]();
7760
+ return p[s + "Date"]();
7761
7761
  }, b = function() {
7762
- return g[s + "Month"]();
7762
+ return p[s + "Month"]();
7763
7763
  }, y = function() {
7764
- return g[s + "FullYear"]();
7764
+ return p[s + "FullYear"]();
7765
7765
  };
7766
- return p() === 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 && x() === t && l() === i ? o ? "Ysd" : "Yesterday" : y() === e && b() === t && S() === 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);
@@ -8468,17 +8468,17 @@ class Br {
8468
8468
  c.taskProfile && (a.taskprofile = C0[c.taskProfile]);
8469
8469
  const o = c.encodeParam || new fn(1280, 720);
8470
8470
  let u = o.videoWidth, h = o.videoHeight;
8471
- const g = {};
8471
+ const p = {};
8472
8472
  Object.keys(o).forEach((f) => {
8473
- const p = o[f];
8474
- p > 0 && (g[f.toLowerCase()] = p);
8475
- }), g.lowbitratehighquality = 0, a.encodeparam = g, a.backgrounds = c.backgrounds.map((f) => f.toJson(u, h)), a.watermarks = c.watermarks.map((f) => f.toJson(u, h)), a.clockwidgets = c.clockWidgets.map((f) => f.toJson(u, h));
8473
+ const g = o[f];
8474
+ g > 0 && (p[f.toLowerCase()] = g);
8475
+ }), p.lowbitratehighquality = 0, a.encodeparam = p, a.backgrounds = c.backgrounds.map((f) => f.toJson(u, h)), a.watermarks = c.watermarks.map((f) => f.toJson(u, h)), a.clockwidgets = c.clockWidgets.map((f) => f.toJson(u, h));
8476
8476
  const d = c.users.map((f) => f.userId);
8477
8477
  a.subspecusers = [...new Set(d)], a.layouts = [
8478
8478
  {
8479
8479
  audiomixcount: c.users.length,
8480
8480
  panes: c.users.map(
8481
- (f, p) => f.toJson(p, u, h, c.mediaProcessMode)
8481
+ (f, g) => f.toJson(g, u, h, c.mediaProcessMode)
8482
8482
  )
8483
8483
  }
8484
8484
  ], a.layoutids = ["0"], a.cropmode = c.cropMode, a.backgroundcolor = Zr(c.backgroundColor), a.taskmode = c.mediaProcessMode;
@@ -8843,10 +8843,10 @@ const w0 = 3e4, qe = class qe extends we {
8843
8843
  s.data.users = [], s.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
8844
8844
  const { tracks: a, resume: c } = i;
8845
8845
  a.forEach((u) => {
8846
- const { codec: h, ssrc: g } = u;
8846
+ const { codec: h, ssrc: p } = u;
8847
8847
  u.userdata = JSON.stringify({
8848
8848
  codec: h
8849
- }), u.ssrc = `${g}`, c && (u.attr = {
8849
+ }), u.ssrc = `${p}`, c && (u.attr = {
8850
8850
  reason: "reconnect"
8851
8851
  });
8852
8852
  }), s.data.users.push(i), this.sendPackage(s);
@@ -9123,8 +9123,8 @@ let Lr = qe;
9123
9123
  const D = (r, n) => (e, t, i) => {
9124
9124
  const s = i.value;
9125
9125
  return i.value = function(...a) {
9126
- var g;
9127
- const c = `[${((g = e.constructor) == null ? void 0 : g.logName) || ""}]`, o = Date.now();
9126
+ var p;
9127
+ const c = `[${((p = e.constructor) == null ? void 0 : p.logName) || ""}]`, o = Date.now();
9128
9128
  let u = [];
9129
9129
  if (r)
9130
9130
  try {
@@ -9136,11 +9136,11 @@ const D = (r, n) => (e, t, i) => {
9136
9136
  return Promise.resolve(h).then((d) => d).catch((d) => d).then((d) => {
9137
9137
  var x;
9138
9138
  let f = "";
9139
- const p = d instanceof Error, l = p && ((x = e.constructor) == null ? void 0 : x.logError);
9140
- if (!(!n && !p)) {
9139
+ const g = d instanceof Error, l = g && ((x = e.constructor) == null ? void 0 : x.logError);
9140
+ if (!(!n && !g)) {
9141
9141
  if (l)
9142
9142
  f = d;
9143
- else if (p)
9143
+ else if (g)
9144
9144
  f = d.message || "";
9145
9145
  else if (n)
9146
9146
  if (d === void 0)
@@ -9155,7 +9155,7 @@ const D = (r, n) => (e, t, i) => {
9155
9155
  O.interfaceResult(
9156
9156
  c,
9157
9157
  t,
9158
- !(p && l),
9158
+ !(g && l),
9159
9159
  `${Date.now() - o}ms`,
9160
9160
  f
9161
9161
  );
@@ -9215,9 +9215,9 @@ const Ci = (Be = class extends we {
9215
9215
  this.slsReporter,
9216
9216
  i
9217
9217
  ), this.initMessageCenter(), this.messageCenter.once("onJoinChannelResult", (u) => {
9218
- var h, g, d;
9218
+ var h, p, d;
9219
9219
  if (O.info(`[${Be.logName}]`, "join result: ", u), c.taskretrynum = ((h = this.messageCenter) == null ? void 0 : h.retryCount) || 0, u.code == 200) {
9220
- (g = this.messageCenter) == null || g.sendPkgCache(), (d = this.messageCenter) == null || d.startKeepAlive();
9220
+ (p = this.messageCenter) == null || p.sendPkgCache(), (d = this.messageCenter) == null || d.startKeepAlive();
9221
9221
  let f = u.data;
9222
9222
  f.tid = u.tid, f.users = u.data.users, f.timestamp = u.timestamp, c.est && (c.joinconnecttc = Date.now() - c.est), this.slsReporter.reportJoinConnection(c), s(f);
9223
9223
  } else
@@ -9324,29 +9324,29 @@ const Ci = (Be = class extends we {
9324
9324
  * 初始化MessageCenter,增加事件监听
9325
9325
  */
9326
9326
  initMessageCenter() {
9327
- var e, t, i, s, a, c, o, u, h, g, d, f;
9327
+ var e, t, i, s, a, c, o, u, h, p, d, f;
9328
9328
  (e = this.messageCenter) == null || e.on("onKeepAliveRsp", () => {
9329
9329
  this.emit("onKeepAliveRsp");
9330
- }), (t = this.messageCenter) == null || t.on("onNotifyJoin", (p) => {
9331
- this.emit("onNotifyJoin", p);
9332
- }), (i = this.messageCenter) == null || i.on("onNotifyStatus", (p) => {
9333
- this.emit("onNotifyStatus", p);
9334
- }), (s = this.messageCenter) == null || s.on("onNotifyLeave", (p) => {
9335
- this.emit("onNotifyLeave", p);
9336
- }), (a = this.messageCenter) == null || a.on("onNotifyPublish", (p) => {
9337
- this.emit("onNotifyPublish", p);
9338
- }), (c = this.messageCenter) == null || c.on("onBye", (p, l) => {
9339
- this.emit("onBye", p, l);
9330
+ }), (t = this.messageCenter) == null || t.on("onNotifyJoin", (g) => {
9331
+ this.emit("onNotifyJoin", g);
9332
+ }), (i = this.messageCenter) == null || i.on("onNotifyStatus", (g) => {
9333
+ this.emit("onNotifyStatus", g);
9334
+ }), (s = this.messageCenter) == null || s.on("onNotifyLeave", (g) => {
9335
+ this.emit("onNotifyLeave", g);
9336
+ }), (a = this.messageCenter) == null || a.on("onNotifyPublish", (g) => {
9337
+ this.emit("onNotifyPublish", g);
9338
+ }), (c = this.messageCenter) == null || c.on("onBye", (g, l) => {
9339
+ this.emit("onBye", g, l);
9340
9340
  }), (o = this.messageCenter) == null || o.on("onReconnectStart", () => {
9341
9341
  this.emit("onReconnectStart");
9342
- }), (u = this.messageCenter) == null || u.on("onReconnectSuccess", (p) => {
9343
- this.emit("onReconnectSuccess", p);
9344
- }), (h = this.messageCenter) == null || h.on("onReconnectFail", (p) => {
9345
- this.emit("onReconnectFail", p);
9346
- }), (g = this.messageCenter) == null || g.on("onConnectFail", (p) => {
9347
- this.emit("onConnectFail", p), this.reset();
9348
- }), (d = this.messageCenter) == null || d.on("onNetworkError", (p) => {
9349
- this.emit("onNetworkError", p);
9342
+ }), (u = this.messageCenter) == null || u.on("onReconnectSuccess", (g) => {
9343
+ this.emit("onReconnectSuccess", g);
9344
+ }), (h = this.messageCenter) == null || h.on("onReconnectFail", (g) => {
9345
+ this.emit("onReconnectFail", g);
9346
+ }), (p = this.messageCenter) == null || p.on("onConnectFail", (g) => {
9347
+ this.emit("onConnectFail", g), this.reset();
9348
+ }), (d = this.messageCenter) == null || d.on("onNetworkError", (g) => {
9349
+ this.emit("onNetworkError", g);
9350
9350
  }), (f = this.messageCenter) == null || f.on("onAuthInvalid", () => {
9351
9351
  this.emit("onAuthInvalid");
9352
9352
  });
@@ -9380,11 +9380,11 @@ const k0 = "https://pgw.rtn.aliyuncs.com", B0 = "https://gw.rtn.aliyuncs.com", F
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
9382
  this.env === dt.pre && (h = k0);
9383
- const g = `${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
- fetch(g).then((f) => f.json()).then((f) => {
9385
- var p, l;
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
+ fetch(p).then((f) => f.json()).then((f) => {
9385
+ var g, l;
9386
9386
  if (f.code === 0) {
9387
- const x = (p = f.data) == null ? void 0 : p.oss, v = (l = f.data) == null ? void 0 : l.sls;
9387
+ const x = (g = f.data) == null ? void 0 : g.oss, v = (l = f.data) == null ? void 0 : l.sls;
9388
9388
  this.expiration = x.expiration || v.expiration, this.emit("onTokenUpdate", x, v), O.event(`[${ti.logName}]`, "getToken", x, v);
9389
9389
  } else
9390
9390
  throw new Error();
@@ -9541,8 +9541,8 @@ class ts extends we {
9541
9541
  * 监听业务信令相关的事件
9542
9542
  */
9543
9543
  initSignaling() {
9544
- var e, t, i, s, a, c, o, u, h, g, d, f, p;
9545
- (e = this.signaling) == null || e.on("onKeepAliveRsp", this.onKeepAliveRsp.bind(this)), (t = this.signaling) == null || t.on("onNotifyJoin", this.onNotifyJoin.bind(this)), (i = this.signaling) == null || i.on("onNotifyStatus", this.onNotifyStatus.bind(this)), (s = this.signaling) == null || s.on("onNotifyLeave", this.onNotifyLeave.bind(this)), (a = this.signaling) == null || a.on("onNotifyPublish", this.onNotifyPublish.bind(this)), (c = this.signaling) == null || c.on("onBye", this.onBye.bind(this)), (o = this.signaling) == null || o.on("onReconnectStart", this.onReconnectStart.bind(this)), (u = this.signaling) == null || u.on("onReconnectSuccess", this.onReconnectSuccess.bind(this)), (h = this.signaling) == null || h.on("onReconnectFail", this.onReconnectFail.bind(this)), (g = this.signaling) == null || g.on("onConnectFail", this.onConnectFail.bind(this)), (d = this.signaling) == null || d.on("onNetworkError", this.onNetworkError.bind(this)), (f = this.signaling) == null || f.on("onAuthInvalid", this.onAuthInvalid.bind(this)), (p = this.signaling) == null || p.on("onError", this.onError.bind(this));
9544
+ var e, t, i, s, a, c, o, u, h, p, d, f, g;
9545
+ (e = this.signaling) == null || e.on("onKeepAliveRsp", this.onKeepAliveRsp.bind(this)), (t = this.signaling) == null || t.on("onNotifyJoin", this.onNotifyJoin.bind(this)), (i = this.signaling) == null || i.on("onNotifyStatus", this.onNotifyStatus.bind(this)), (s = this.signaling) == null || s.on("onNotifyLeave", this.onNotifyLeave.bind(this)), (a = this.signaling) == null || a.on("onNotifyPublish", this.onNotifyPublish.bind(this)), (c = this.signaling) == null || c.on("onBye", this.onBye.bind(this)), (o = this.signaling) == null || o.on("onReconnectStart", this.onReconnectStart.bind(this)), (u = this.signaling) == null || u.on("onReconnectSuccess", this.onReconnectSuccess.bind(this)), (h = this.signaling) == null || h.on("onReconnectFail", this.onReconnectFail.bind(this)), (p = this.signaling) == null || p.on("onConnectFail", this.onConnectFail.bind(this)), (d = this.signaling) == null || d.on("onNetworkError", this.onNetworkError.bind(this)), (f = this.signaling) == null || f.on("onAuthInvalid", this.onAuthInvalid.bind(this)), (g = this.signaling) == null || g.on("onError", this.onError.bind(this));
9546
9546
  }
9547
9547
  /**
9548
9548
  * 收到心跳消息
@@ -9653,16 +9653,16 @@ function V0(r, n, e, t, i) {
9653
9653
  n.connect(o), o.connect(e);
9654
9654
  const h = () => {
9655
9655
  c && window.clearInterval(c);
9656
- }, g = () => {
9656
+ }, p = () => {
9657
9657
  c = window.setInterval(() => {
9658
9658
  o.getByteFrequencyData(u);
9659
- let d = Math.round(u.reduce((f, p) => f + p) / u.length);
9659
+ let d = Math.round(u.reduce((f, g) => f + g) / u.length);
9660
9660
  d = Math.min(100, d), a = d, i && i(d);
9661
9661
  }, s);
9662
9662
  };
9663
- return g(), {
9663
+ return p(), {
9664
9664
  updateInterval: (d) => {
9665
- h(), s = d, g();
9665
+ h(), s = d, p();
9666
9666
  },
9667
9667
  getLevel: () => a,
9668
9668
  dispose: () => {
@@ -10147,16 +10147,16 @@ const ge = (ht = class extends pn {
10147
10147
  this.onTrackEnd(u);
10148
10148
  }), this.streamManager.on("publishupdate", () => {
10149
10149
  this.publishUpdate();
10150
- }), this.audioPubState = new Xt(), this.audioPubState.on("change", (u, h, g) => {
10151
- this.emit("audioPublishStateChanged", u, h, g);
10152
- }), this.videoPubState = new Xt(), this.videoPubState.on("change", (u, h, g) => {
10153
- this.emit("videoPublishStateChanged", u, h, g);
10154
- }), this.videoSmallPubState = new Xt(), this.videoSmallPubState.on("change", (u, h, g) => {
10155
- this.emit("dualStreamPublishStateChanged", u, h, g);
10156
- }), this.screenPubState = new Xt(), this.screenPubState.on("change", (u, h, g) => {
10157
- this.emit("screenPublishStateChanged", u, h, g);
10158
- }), this.dataPubState = new Xt(), this.dataPubState.on("change", (u, h, g) => {
10159
- this.emit("dataPublishStateChanged", u, h, g);
10150
+ }), this.audioPubState = new Xt(), this.audioPubState.on("change", (u, h, p) => {
10151
+ this.emit("audioPublishStateChanged", u, h, p);
10152
+ }), this.videoPubState = new Xt(), this.videoPubState.on("change", (u, h, p) => {
10153
+ this.emit("videoPublishStateChanged", u, h, p);
10154
+ }), this.videoSmallPubState = new Xt(), this.videoSmallPubState.on("change", (u, h, p) => {
10155
+ this.emit("dualStreamPublishStateChanged", u, h, p);
10156
+ }), this.screenPubState = new Xt(), this.screenPubState.on("change", (u, h, p) => {
10157
+ this.emit("screenPublishStateChanged", u, h, p);
10158
+ }), this.dataPubState = new Xt(), this.dataPubState.on("change", (u, h, p) => {
10159
+ this.emit("dataPublishStateChanged", u, h, p);
10160
10160
  }), this.startStreamMonitor();
10161
10161
  }
10162
10162
  get joined() {
@@ -10569,13 +10569,8 @@ const ge = (ht = class extends pn {
10569
10569
  try {
10570
10570
  const h = (/* @__PURE__ */ new Date()).getTime();
10571
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);
10572
- const { traceId: g, l1ip: d } = yield this.publishPromise;
10573
- if (this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = g, (u = this.parameter.data) != null && u.enablePubDataChannel) {
10574
- this.dataPubState.setState(Z.AliRtcStatePublishing);
10575
- const p = yield this.rtsManager.publishAddDataChannel(this.url);
10576
- p ? (this.dc = p, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(Z.AliRtcStatePublished)) : this.emit("publishDataError", new V(U.ERR_INNER, "publishDataError"));
10577
- }
10578
- s && (this.trackTraceIdMap[k.Audio] = g, this.reportAudioProfile()), c && (this.trackTraceIdMap[k.VideoSmall] = g), a && (this.trackTraceIdMap[k.VideoLarge] = g, this.reportVideoProfile()), o && (this.trackTraceIdMap[k.Screen] = g, this.reportScreenProfile());
10572
+ const { traceId: p, l1ip: d } = yield this.publishPromise;
10573
+ this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = p, (u = this.parameter.data) != null && u.enablePubDataChannel && (yield this.publishDataChannel()), s && (this.trackTraceIdMap[k.Audio] = p, this.reportAudioProfile()), c && (this.trackTraceIdMap[k.VideoSmall] = p), a && (this.trackTraceIdMap[k.VideoLarge] = p, this.reportVideoProfile()), o && (this.trackTraceIdMap[k.Screen] = p, this.reportScreenProfile());
10579
10574
  const f = {
10580
10575
  type: mt.Add,
10581
10576
  userid: this.userId,
@@ -10590,7 +10585,7 @@ const ge = (ht = class extends pn {
10590
10585
  l1ip: this.parameter.reportL1IP ? d : void 0,
10591
10586
  callid: this.callId,
10592
10587
  tracks: this.streamTracks,
10593
- traceid: g
10588
+ traceid: p
10594
10589
  };
10595
10590
  yield this.syncPublishToRoomServer(f, i, h), s && this.audioPubState.setState(Z.AliRtcStatePublished), a && this.videoPubState.setState(Z.AliRtcStatePublished), c && this.videoSmallPubState.setState(Z.AliRtcStatePublished), o && this.screenPubState.setState(Z.AliRtcStatePublished);
10596
10591
  } catch (h) {
@@ -10603,9 +10598,19 @@ const ge = (ht = class extends pn {
10603
10598
  yield this.streamManager.updateStreams();
10604
10599
  });
10605
10600
  }
10601
+ publishDataChannel() {
10602
+ return w(this, null, function* () {
10603
+ this.dataPubState.setState(Z.AliRtcStatePublishing);
10604
+ const e = yield this.rtsManager.publishAddDataChannel(this.url);
10605
+ e ? (this.dc = e, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(Z.AliRtcStatePublished)) : this.emit("publishDataError", new V(U.ERR_INNER, "publishDataError"));
10606
+ });
10607
+ }
10608
+ clearDataChannel() {
10609
+ this.dc = void 0;
10610
+ }
10606
10611
  publishUpdate(e) {
10607
10612
  return w(this, null, function* () {
10608
- var a, c, o, u;
10613
+ var a, c, o, u, h;
10609
10614
  if (!this._isPublishing)
10610
10615
  return;
10611
10616
  yield this.publishPromise;
@@ -10613,32 +10618,32 @@ const ge = (ht = class extends pn {
10613
10618
  let i;
10614
10619
  const s = (/* @__PURE__ */ new Date()).getTime();
10615
10620
  try {
10616
- const h = (a = this.streamTracks) == null ? void 0 : a.find(
10617
- ({ ssrc: S, type: b, msid: y }) => b === "audio" && S && y === k.Audio
10618
- ), g = yield this.compareAndPublish(h, t.audio, k.Audio);
10621
+ const p = (a = this.streamTracks) == null ? void 0 : a.find(
10622
+ ({ ssrc: b, type: y, msid: E }) => y === "audio" && b && E === k.Audio
10623
+ ), d = yield this.compareAndPublish(p, t.audio, k.Audio);
10624
+ d && (i = d);
10625
+ const f = (c = this.streamTracks) == null ? void 0 : c.find(
10626
+ ({ ssrc: b, type: y, msid: E }) => y === "video" && b && E === k.VideoLarge
10627
+ ), g = yield this.compareAndPublish(f, t.video, k.VideoLarge);
10619
10628
  g && (i = g);
10620
- const d = (c = this.streamTracks) == null ? void 0 : c.find(
10621
- ({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.VideoLarge
10622
- ), f = yield this.compareAndPublish(d, t.video, k.VideoLarge);
10623
- f && (i = f);
10624
- const p = (o = this.streamTracks) == null ? void 0 : o.find(
10625
- ({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.VideoSmall
10626
- ), l = yield this.compareAndPublish(
10627
- p,
10629
+ const l = (o = this.streamTracks) == null ? void 0 : o.find(
10630
+ ({ ssrc: b, type: y, msid: E }) => y === "video" && b && E === k.VideoSmall
10631
+ ), x = yield this.compareAndPublish(
10632
+ l,
10628
10633
  t.videoSmall,
10629
10634
  k.VideoSmall
10630
10635
  );
10631
- l && (i = l);
10632
- const x = (u = this.streamTracks) == null ? void 0 : u.find(
10633
- ({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.Screen
10634
- ), v = yield this.compareAndPublish(x, t.screen, k.Screen);
10635
- if (v && (i = v), !i)
10636
+ x && (i = x);
10637
+ const v = (u = this.streamTracks) == null ? void 0 : u.find(
10638
+ ({ ssrc: b, type: y, msid: E }) => y === "video" && b && E === k.Screen
10639
+ ), S = yield this.compareAndPublish(v, t.screen, k.Screen);
10640
+ if (S && (i = S), !i)
10636
10641
  if (e === st.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
10637
- const S = this.rtsManager.publishingTracks.find(({ type: y }) => y === "video"), b = this.rtsManager.publishingTracks.find(({ type: y }) => y === "audio");
10638
- (S || b) && (yield this.rtsManager.waitPublishSender(
10642
+ const b = this.rtsManager.publishingTracks.find(({ type: E }) => E === "video"), y = this.rtsManager.publishingTracks.find(({ type: E }) => E === "audio");
10643
+ (b || y) && (yield this.rtsManager.waitPublishSender(
10639
10644
  this.url,
10640
- !S,
10641
- S ? S.msid : b == null ? void 0 : b.msid
10645
+ !b,
10646
+ b ? b.msid : y == null ? void 0 : y.msid
10642
10647
  )), i = {
10643
10648
  type: mt.Add,
10644
10649
  userid: this.userId,
@@ -10656,10 +10661,10 @@ const ge = (ht = class extends pn {
10656
10661
  };
10657
10662
  } else
10658
10663
  return;
10659
- yield this.syncPublishToRoomServer(i, t, s);
10660
- } catch (h) {
10661
- const { code: g } = h != null ? h : {}, d = this.url;
10662
- throw g === 403 && d && (yield this.refreshPushStreamUrl(), i = yield this.publishUpdate()), h;
10664
+ (h = this.parameter.data) != null && h.enablePubDataChannel && !this.dc && (yield this.publishDataChannel()), yield this.syncPublishToRoomServer(i, t, s);
10665
+ } catch (p) {
10666
+ const { code: d } = p != null ? p : {}, f = this.url;
10667
+ throw d === 403 && f && (yield this.refreshPushStreamUrl(), i = yield this.publishUpdate()), p;
10663
10668
  }
10664
10669
  return i;
10665
10670
  });
@@ -10709,7 +10714,7 @@ const ge = (ht = class extends pn {
10709
10714
  try {
10710
10715
  const h = yield this.rtsManager.publishAdd(this.url, e, this.callId, t, !1, !0);
10711
10716
  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;
10712
- const g = {
10717
+ const p = {
10713
10718
  type: mt.Add,
10714
10719
  userid: this.userId,
10715
10720
  sessionid: "",
@@ -10724,12 +10729,12 @@ const ge = (ht = class extends pn {
10724
10729
  tracks: this.streamTracks,
10725
10730
  traceid: h
10726
10731
  };
10727
- return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), g;
10732
+ return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), p;
10728
10733
  } catch (h) {
10729
- let g = U.ERR_SDK_PUBLISH_INVAILD;
10730
- if (a && (this.audioPubState.setState(Z.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(Z.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(Z.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
10734
+ let p = U.ERR_SDK_PUBLISH_INVAILD;
10735
+ if (a && (this.audioPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(Z.AliRtcStateNoPublish), p = U.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
10731
10736
  return this.publishAdd(e, t, i, s + 1);
10732
- throw V.fromError(h, g, "publish add failed");
10737
+ throw V.fromError(h, p, "publish add failed");
10733
10738
  }
10734
10739
  });
10735
10740
  }
@@ -10929,13 +10934,13 @@ const ge = (ht = class extends pn {
10929
10934
  if (!h)
10930
10935
  return;
10931
10936
  o.includes(h) && (o = o.filter((f) => f !== h));
10932
- let g;
10933
- h === k.Audio ? g = this.rtsManager.getPublishAudioStats(this.url) : g = this.rtsManager.getPublishVideoStats(this.url, h), g.then((f) => {
10937
+ let p;
10938
+ h === k.Audio ? p = this.rtsManager.getPublishAudioStats(this.url) : p = this.rtsManager.getPublishVideoStats(this.url, h), p.then((f) => {
10934
10939
  if (!f.timestamp)
10935
10940
  return;
10936
10941
  this.monitorDataCache[h] || (this.monitorDataCache[h] = []);
10937
- const p = this.getMediaStats(f.mediaSourceId);
10938
- f._source = p;
10942
+ const g = this.getMediaStats(f.mediaSourceId);
10943
+ f._source = g;
10939
10944
  const l = this.monitorDataCache[h];
10940
10945
  let x;
10941
10946
  if ((l == null ? void 0 : l.length) > 0) {
@@ -11344,9 +11349,9 @@ class bi extends we {
11344
11349
  updateTracks(e) {
11345
11350
  let t = "", i = "", s = "", a = "", c = "";
11346
11351
  return e ? (e.forEach((o) => {
11347
- var g;
11352
+ var p;
11348
11353
  let u = xt.UNKNOWN;
11349
- const h = ((g = o == null ? void 0 : o.attr) == null ? void 0 : g.reason) === "reconnect";
11354
+ const h = ((p = o == null ? void 0 : o.attr) == null ? void 0 : p.reason) === "reconnect";
11350
11355
  if (o.userdata) {
11351
11356
  const { codec: d } = JSON.parse(o.userdata);
11352
11357
  d && (u = d);
@@ -11481,7 +11486,7 @@ const _e = (Me = class extends pn {
11481
11486
  signalingManager: o,
11482
11487
  localUser: u,
11483
11488
  audioVolumeIndicationInterval: h,
11484
- playoutVolume: g,
11489
+ playoutVolume: p,
11485
11490
  parameter: d
11486
11491
  } = e;
11487
11492
  super(t, i, s, h);
@@ -11543,8 +11548,8 @@ const _e = (Me = class extends pn {
11543
11548
  const c = new ArrayBuffer(a);
11544
11549
  let o = 0;
11545
11550
  for (let h = 0; h < this.dcMsgWaitingPieces.length; h++) {
11546
- const g = this.dcMsgWaitingPieces[h];
11547
- new Uint8Array(c, o, g.byteLength).set(new Uint8Array(g)), o += g.byteLength;
11551
+ const p = this.dcMsgWaitingPieces[h];
11552
+ new Uint8Array(c, o, p.byteLength).set(new Uint8Array(p)), o += p.byteLength;
11548
11553
  }
11549
11554
  new Uint8Array(c, o, t.body.byteLength).set(new Uint8Array(t.body)), i = Wt.parse(c);
11550
11555
  } catch (c) {
@@ -11571,17 +11576,17 @@ const _e = (Me = class extends pn {
11571
11576
  m(this, "handleAudioPaused", () => {
11572
11577
  this.emit("remoteAudioPlayError", this.uid, "paused");
11573
11578
  });
11574
- this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Ne.Remote, (p) => {
11575
- this.emit(Ne.Remote, p, this.userId);
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", (p, l, x) => {
11577
- this.emit("audioSubscribeStateChanged", this.uid, p, l, x);
11578
- }), this.videoSubState = new Ut(), this.videoSubState.on("change", (p, l, x) => {
11579
- this.emit("videoSubscribeStateChanged", this.uid, p, l, x);
11580
- }), this.screenSubState = new Ut(), this.screenSubState.on("change", (p, l, x) => {
11581
- this.emit("screenSubscribeStateChanged", this.uid, p, l, x);
11582
- }), this.dataSubState = new Ut(), this.dataSubState.on("change", (p, l, x) => {
11583
- this.emit("dataSubscribeStateChanged", this.uid, p, l, x);
11584
- }), this.playoutVolume = g;
11579
+ this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Ne.Remote, (g) => {
11580
+ this.emit(Ne.Remote, g, this.userId);
11581
+ }), 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) => {
11582
+ this.emit("audioSubscribeStateChanged", this.uid, g, l, x);
11583
+ }), this.videoSubState = new Ut(), this.videoSubState.on("change", (g, l, x) => {
11584
+ this.emit("videoSubscribeStateChanged", this.uid, g, l, x);
11585
+ }), this.screenSubState = new Ut(), this.screenSubState.on("change", (g, l, x) => {
11586
+ this.emit("screenSubscribeStateChanged", this.uid, g, l, x);
11587
+ }), this.dataSubState = new Ut(), this.dataSubState.on("change", (g, l, x) => {
11588
+ this.emit("dataSubscribeStateChanged", this.uid, g, l, x);
11589
+ }), this.playoutVolume = p;
11585
11590
  }
11586
11591
  isWantSubAudio() {
11587
11592
  return this.wantSubAudio;
@@ -11723,7 +11728,7 @@ const _e = (Me = class extends pn {
11723
11728
  }
11724
11729
  subscribe(s, a) {
11725
11730
  return w(this, arguments, function* (e, t, i = Date.now()) {
11726
- var f, p;
11731
+ var f, g;
11727
11732
  let c = e;
11728
11733
  if (!c) {
11729
11734
  const { hasAudio: l, hasVideo: x, hasScreen: v, hasData: S } = (f = this.streamInfo) != null ? f : {};
@@ -11731,15 +11736,15 @@ const _e = (Me = class extends pn {
11731
11736
  audio: this.wantSubAudio && l,
11732
11737
  video: this.wantSubVideo && x,
11733
11738
  screen: this.wantSubScreen && v,
11734
- data: ((p = this.parameter.data) == null ? void 0 : p.enableSubDataChannel) && S
11739
+ data: ((g = this.parameter.data) == null ? void 0 : g.enableSubDataChannel) && S
11735
11740
  };
11736
11741
  }
11737
11742
  this.streamInfo.markRemoteTrackSubscribing(c);
11738
- const { screen: o, audio: u, video: h, vMsid: g } = c, d = [];
11743
+ const { screen: o, audio: u, video: h, vMsid: p } = c, d = [];
11739
11744
  (h || u) && d.push({
11740
11745
  audio: u,
11741
11746
  video: h,
11742
- vMsid: g
11747
+ vMsid: p
11743
11748
  }), o && d.push({
11744
11749
  screen: o
11745
11750
  }), !(d.length === 0 && !(e != null && e.data)) && (yield Promise.all(d.map((l) => this.subscribeProxy(l, t || le.User, i))), e != null && e.data && this.subscribeDataChannel());
@@ -11751,7 +11756,7 @@ const _e = (Me = class extends pn {
11751
11756
  let s = (/* @__PURE__ */ new Date()).getTime(), a = "";
11752
11757
  try {
11753
11758
  e.audio && this.audioSubState.setState(de.AliRtcStateSubscribing), e.video && (this.videoSubState.currentState === de.AliRtcStateSubscribeIdle || this.videoSubState.currentState === de.AliRtcStateNoSubscribe) && this.videoSubState.setState(de.AliRtcStateSubscribing), e.screen && this.screenSubState.setState(de.AliRtcStateSubscribing);
11754
- const g = yield this.rtsManager.subscribe(
11759
+ const p = yield this.rtsManager.subscribe(
11755
11760
  {
11756
11761
  remoteUser: this,
11757
11762
  options: e
@@ -11761,12 +11766,12 @@ const _e = (Me = class extends pn {
11761
11766
  this.callId,
11762
11767
  i
11763
11768
  );
11764
- this.streamInfo.updateRemoteTrackSubState(e), a = g.traceId || "";
11765
- const { stream: d } = g;
11769
+ this.streamInfo.updateRemoteTrackSubState(e), a = p.traceId || "";
11770
+ const { stream: d } = p;
11766
11771
  if (e.audio) {
11767
11772
  this.trackTraceIdMap[k.Audio] = a;
11768
- const p = d.audioTrack;
11769
- p && (this.audioTrack = p, (o = d.mediaStream) == null || o.removeTrack(p), this.playAudio(), this.audioVolumeIndicationInterval && this.audioLevelMonitor.start(p, this.audioVolumeIndicationInterval)), this.audioSubState.setState(de.AliRtcStateSubscribed), this.audioSubState.getEnabled() || this.toggleAudio(!1);
11773
+ const g = d.audioTrack;
11774
+ g && (this.audioTrack = g, (o = d.mediaStream) == null || o.removeTrack(g), this.playAudio(), this.audioVolumeIndicationInterval && this.audioLevelMonitor.start(g, this.audioVolumeIndicationInterval)), this.audioSubState.setState(de.AliRtcStateSubscribed), this.audioSubState.getEnabled() || this.toggleAudio(!1);
11770
11775
  }
11771
11776
  e.video && (this.videoSubState.setState(de.AliRtcStateSubscribed), e.vMsid === k.VideoSmall ? (this.trackTraceIdMap[k.VideoSmall] = a, this.videoSmallSubState.setState(de.AliRtcStateSubscribed)) : (this.trackTraceIdMap[k.VideoLarge] = a, this.videoLargeSubState.setState(de.AliRtcStateSubscribed)), this.videoSubState.getEnabled() || this.toggleVideo(!1), this.updateStream(d, this.isVideoLargeSubscribing && this.isVideoSmallSubscribing)), e.screen && (this.screenSubState.setState(de.AliRtcStateSubscribed), this.trackTraceIdMap[k.Screen] = a, this.videoSubState.getEnabled() || this.toggleScreen(!1), this.updateScreenStream(d));
11772
11777
  const f = (/* @__PURE__ */ new Date()).getTime() - s;
@@ -11788,9 +11793,9 @@ const _e = (Me = class extends pn {
11788
11793
  est: s
11789
11794
  }
11790
11795
  ), this.startStreamMonitor();
11791
- } catch (g) {
11796
+ } catch (p) {
11792
11797
  const d = (/* @__PURE__ */ new Date()).getTime() - s;
11793
- e.audio && this.audioSubState.setState(de.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(de.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(de.AliRtcStateNoSubscribe), g && (g.message = `user(${this.uid}) subscribe error, ${(g == null ? void 0 : g.message) || ""}`);
11798
+ e.audio && this.audioSubState.setState(de.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(de.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(de.AliRtcStateNoSubscribe), p && (p.message = `user(${this.uid}) subscribe error, ${(p == null ? void 0 : p.message) || ""}`);
11794
11799
  let f = U.ERR_INNER;
11795
11800
  e.audio && (f = U.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === k.VideoSmall ? f = U.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : f = U.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (f = U.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
11796
11801
  ((h = this.localUser) == null ? void 0 : h.callId) || "",
@@ -11810,8 +11815,8 @@ const _e = (Me = class extends pn {
11810
11815
  est: s
11811
11816
  }
11812
11817
  );
11813
- const p = V.fromError(g, f);
11814
- throw this.emit("remoteSubscribeError", p), p;
11818
+ const g = V.fromError(p, f);
11819
+ throw this.emit("remoteSubscribeError", g), g;
11815
11820
  }
11816
11821
  });
11817
11822
  }
@@ -12006,9 +12011,9 @@ const _e = (Me = class extends pn {
12006
12011
  };
12007
12012
  }
12008
12013
  updateSubscribe(e) {
12009
- var a, c, o, u, h, g, d, f, p, l, x, v, S, b, y, E, I;
12014
+ var a, c, o, u, h, p, d, f, g, l, x, v, S, b, y, E, I;
12010
12015
  const t = Date.now(), i = {}, s = {};
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 && ((g = this.streamInfo) != null && g.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 || !((p = this.streamInfo) != null && p.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) {
12016
+ 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) {
12012
12017
  if (O.event(`[${Me.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
12013
12018
  const A = this.rtsManager.getStreamByMsid({
12014
12019
  url: this.streamUrl,
@@ -12221,7 +12226,7 @@ const _e = (Me = class extends pn {
12221
12226
  let s;
12222
12227
  const a = i === k.Audio;
12223
12228
  a ? s = this.rtsManager.getSubscribeAudioStats(this.streamUrl) : s = this.rtsManager.getSubscribeVideoStats(this.streamUrl, i), s.then((c) => {
12224
- var g;
12229
+ var p;
12225
12230
  if (!c.timestamp)
12226
12231
  return;
12227
12232
  this.monitorDataCache[i] || (this.monitorDataCache[i] = []);
@@ -12231,7 +12236,7 @@ const _e = (Me = class extends pn {
12231
12236
  const h = o[o.length - 1] || {}, { _last: f } = h;
12232
12237
  u = Ft(h, ["_last"]);
12233
12238
  }
12234
- (o == null ? void 0 : o.length) >= sc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, a && (c._source = (g = this.localUser) == null ? void 0 : g.getMediaStats(c.playoutId)), this.monitorDataCache[i].push(c);
12239
+ (o == null ? void 0 : o.length) >= sc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, a && (c._source = (p = this.localUser) == null ? void 0 : p.getMediaStats(c.playoutId)), this.monitorDataCache[i].push(c);
12235
12240
  });
12236
12241
  }), e.forEach((t) => {
12237
12242
  this.reportSubscribeMonitor(t);
@@ -12369,6 +12374,7 @@ const xe = (Le = class extends we {
12369
12374
  m(this, "connectionResolve");
12370
12375
  m(this, "connectingPromise");
12371
12376
  m(this, "dcResolve");
12377
+ m(this, "dcReject");
12372
12378
  m(this, "dcConnectingPromise");
12373
12379
  m(this, "_publishingTracks", []);
12374
12380
  m(this, "parameter", {});
@@ -12378,7 +12384,7 @@ const xe = (Le = class extends we {
12378
12384
  this.rts.on("connectStatusChange", (e) => {
12379
12385
  var t, i, s, a;
12380
12386
  if (O.event(`[${Le.logName}]`, "rts connectStatusChange to:", e.status), e.status === ps.CONNECT_STATUS_DISCONNECTED)
12381
- this.setConnected(!1), this.slsReporter.reportWarning("rts disconnected"), this.emit("disconnected");
12387
+ this.dcReject && this.dcReject(), this.setConnected(!1), this.slsReporter.reportWarning("rts disconnected"), this.emit("disconnected");
12382
12388
  else if (e.status === ps.CONNECT_STATUS_CONNECTED) {
12383
12389
  const c = (a = (s = (i = (t = this.rts.commonController) == null ? void 0 : t.peerCore) == null ? void 0 : i.getSignal()) == null ? void 0 : s.getDatachannelCore()) == null ? void 0 : a.readyState;
12384
12390
  O.event(`[${Le.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList());
@@ -12389,8 +12395,8 @@ const xe = (Le = class extends we {
12389
12395
  this.setConnected(!0);
12390
12396
  }
12391
12397
  }), this.rts.on("datachannelStatusChange", (e) => {
12392
- O.event(`[${Le.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === gs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === gs.DATACHANNEL_STATUS_CLOSE && (this.dcConnectingPromise = new Promise((t) => {
12393
- this.dcResolve = t;
12398
+ O.event(`[${Le.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === gs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === gs.DATACHANNEL_STATUS_CLOSE && (this.dcReject && this.dcReject(), this.dcConnectingPromise = new Promise((t, i) => {
12399
+ this.dcResolve = t, this.dcReject = i;
12394
12400
  }));
12395
12401
  }), this.rts.on("receivedSEI", (e) => {
12396
12402
  this.emit("seimessage", e.url, e.sei.payloadType, e.sei.data);
@@ -12440,15 +12446,13 @@ const xe = (Le = class extends we {
12440
12446
  startConnect() {
12441
12447
  this.connecting = !0, this.connectingPromise = new Promise((e) => {
12442
12448
  this.connectionResolve = e;
12443
- }), this.dcConnectingPromise = new Promise((e) => {
12444
- this.dcResolve = e;
12449
+ }), this.dcConnectingPromise = new Promise((e, t) => {
12450
+ this.dcResolve = e, this.dcReject = t;
12445
12451
  });
12446
12452
  }
12447
12453
  setConnected(e) {
12448
12454
  var t;
12449
- this.connected = e, this.connecting = !1, this._rtsReconnecting = !1, (t = this.connectionResolve) == null || t.call(this, !0), e || (this.dcConnectingPromise = new Promise((i) => {
12450
- this.dcResolve = i;
12451
- }));
12455
+ this.connected = e, this.connecting = !1, this._rtsReconnecting = !1, (t = this.connectionResolve) == null || t.call(this, !0);
12452
12456
  }
12453
12457
  get isConnecting() {
12454
12458
  return this.connecting;
@@ -12477,7 +12481,7 @@ const xe = (Le = class extends we {
12477
12481
  return w(this, arguments, function* (e, t, i = !1, s = st.MANUAL) {
12478
12482
  var S, b;
12479
12483
  let o;
12480
- const { publishStream: u, videoSmallStream: h, screenStream: g, vMsid: d } = yield this.localStreamManager.createHTTPPublishStream();
12484
+ const { publishStream: u, videoSmallStream: h, screenStream: p, vMsid: d } = yield this.localStreamManager.createHTTPPublishStream();
12481
12485
  if (!u)
12482
12486
  return O.warn(`[${Le.logName}]`, "publishStream is null"), {
12483
12487
  traceId: "",
@@ -12499,7 +12503,7 @@ const xe = (Le = class extends we {
12499
12503
  });
12500
12504
  return y.stream = E, A.aMsid ? y.aMsid = A.aMsid : y.aMsid = [], A.vMsid ? y.vMsid = A.vMsid : y.vMsid = [], y;
12501
12505
  }), this._rtsPeerConnectionType = "publish";
12502
- let p = !u.hasVideo, l = d, x = "";
12506
+ let g = !u.hasVideo, l = d, x = "";
12503
12507
  this.startConnect();
12504
12508
  const v = Date.now();
12505
12509
  try {
@@ -12546,21 +12550,21 @@ const xe = (Le = class extends we {
12546
12550
  vMsid: k.VideoSmall
12547
12551
  },
12548
12552
  i
12549
- ), p = !1, l = k.VideoSmall), g && (yield this.publishAdd(
12553
+ ), g = !1, l = k.VideoSmall), p && (yield this.publishAdd(
12550
12554
  e,
12551
- g,
12555
+ p,
12552
12556
  t,
12553
12557
  {
12554
12558
  vMsid: k.Screen
12555
12559
  },
12556
12560
  i
12557
- ), p = !1, l = k.Screen), yield this.waitPublishSender(e, p, l), this.slsReporter.reportPublishFirstPacket(
12561
+ ), g = !1, l = k.Screen), yield this.waitPublishSender(e, g, l), this.slsReporter.reportPublishFirstPacket(
12558
12562
  i,
12559
12563
  t,
12560
12564
  v,
12561
12565
  y,
12562
12566
  this._localJoinTime,
12563
- p ? k.Audio : f.vMsid,
12567
+ g ? k.Audio : f.vMsid,
12564
12568
  x || "",
12565
12569
  x || "",
12566
12570
  s
@@ -12577,7 +12581,7 @@ const xe = (Le = class extends we {
12577
12581
  return w(this, null, function* () {
12578
12582
  const s = (a, c) => {
12579
12583
  let o = 0;
12580
- const u = () => (t ? this.rts.getPublishAudioStats(e, i) : this.rts.getPublishVideoStats(e, i)).then((g) => !(g.bytesSent > 0) && o < a ? (o++, new Promise((f) => setTimeout(() => f(u()), c))) : Promise.resolve());
12584
+ 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());
12581
12585
  return u();
12582
12586
  };
12583
12587
  return Promise.race([vt(1e3), s(5, 100)]).catch(() => {
@@ -12594,10 +12598,10 @@ const xe = (Le = class extends we {
12594
12598
  return yield this.rts.getPublishAudioStats(e, t);
12595
12599
  });
12596
12600
  }
12597
- publishAdd(u, h, g, d) {
12601
+ publishAdd(u, h, p, d) {
12598
12602
  return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = st.MANUAL) {
12599
12603
  var l, x, v, S, b, y, E, I;
12600
- const f = Date.now(), p = this.getPubMsid(t, s);
12604
+ const f = Date.now(), g = this.getPubMsid(t, s);
12601
12605
  try {
12602
12606
  const A = yield Oa(
12603
12607
  (C) => w(this, null, function* () {
@@ -12606,7 +12610,7 @@ const xe = (Le = class extends we {
12606
12610
  url: e,
12607
12611
  stream: t,
12608
12612
  updateSourceStream: !1
12609
- }, p)
12613
+ }, g)
12610
12614
  ])) : Promise.reject(new V(U.ERR_INNER, "rts not connected"));
12611
12615
  }),
12612
12616
  za,
@@ -12619,10 +12623,10 @@ const xe = (Le = class extends we {
12619
12623
  !1,
12620
12624
  e,
12621
12625
  i,
12622
- ((l = p.vMsid) == null ? void 0 : l[0]) === k.VideoLarge,
12623
- ((x = p.vMsid) == null ? void 0 : x[0]) === k.VideoSmall,
12624
- ((v = p.vMsid) == null ? void 0 : v[0]) === k.Screen,
12625
- ((S = p.aMsid) == null ? void 0 : S[0]) === k.Audio,
12626
+ ((l = g.vMsid) == null ? void 0 : l[0]) === k.VideoLarge,
12627
+ ((x = g.vMsid) == null ? void 0 : x[0]) === k.VideoSmall,
12628
+ ((v = g.vMsid) == null ? void 0 : v[0]) === k.Screen,
12629
+ ((S = g.aMsid) == null ? void 0 : S[0]) === k.Audio,
12626
12630
  0,
12627
12631
  this.pcTraceId,
12628
12632
  L.traceId || "",
@@ -12644,10 +12648,10 @@ const xe = (Le = class extends we {
12644
12648
  !1,
12645
12649
  e,
12646
12650
  i,
12647
- ((b = p.vMsid) == null ? void 0 : b[0]) === k.VideoLarge,
12648
- ((y = p.vMsid) == null ? void 0 : y[0]) === k.VideoSmall,
12649
- ((E = p.vMsid) == null ? void 0 : E[0]) === k.Screen,
12650
- ((I = p.aMsid) == null ? void 0 : I[0]) === k.Audio,
12651
+ ((b = g.vMsid) == null ? void 0 : b[0]) === k.VideoLarge,
12652
+ ((y = g.vMsid) == null ? void 0 : y[0]) === k.VideoSmall,
12653
+ ((E = g.vMsid) == null ? void 0 : E[0]) === k.Screen,
12654
+ ((I = g.aMsid) == null ? void 0 : I[0]) === k.Audio,
12651
12655
  (A == null ? void 0 : A.errorCode) || -1,
12652
12656
  this.pcTraceId,
12653
12657
  "",
@@ -12659,9 +12663,9 @@ const xe = (Le = class extends we {
12659
12663
  }
12660
12664
  publishDelete(e, t) {
12661
12665
  return w(this, null, function* () {
12662
- var u, h, g, d, f, p, l, x;
12666
+ var u, h, p, d, f, g, l, x;
12663
12667
  yield this.dcConnectingPromise;
12664
- const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === k.Audio)) == null ? void 0 : h.msid, s = (d = (g = this.publishingTracks) == null ? void 0 : g.find(({ msid: v }) => v === k.VideoLarge)) == null ? void 0 : d.msid, a = (p = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === k.Screen)) == null ? void 0 : p.msid, c = [];
12668
+ 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 = [];
12665
12669
  t.screen && a ? c.push(a) : t.video && c.push(t.vMsid || s);
12666
12670
  const o = [];
12667
12671
  t.audio && i && o.push(i), O.event(Le.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
@@ -12755,13 +12759,13 @@ const xe = (Le = class extends we {
12755
12759
  }
12756
12760
  httpSubscribe(e) {
12757
12761
  return w(this, null, function* () {
12758
- var c, o, u, h, g, d;
12762
+ var c, o, u, h, p, d;
12759
12763
  const { remoteUser: t, options: i } = e;
12760
12764
  let s = t.streamUrl;
12761
12765
  i.video || i.screen ? i != null && i.audio || (s += "@subaudio=no") : s += "@subvideo=no";
12762
12766
  const a = this.getSubConfig(t.streamInfo, i);
12763
12767
  if (this.encodedInsertableStreams && (a.encodedInsertableStreams = !0), (o = (c = this.parameter) == null ? void 0 : c.net) != null && o.useTCP && (a.tcpOnly = !0), (h = (u = this.parameter) == null ? void 0 : u.net) != null && h.mediaTimeout) {
12764
- const f = (d = (g = this.parameter) == null ? void 0 : g.net) == null ? void 0 : d.mediaTimeout;
12768
+ const f = (d = (p = this.parameter) == null ? void 0 : p.net) == null ? void 0 : d.mediaTimeout;
12765
12769
  f > 1e3 && f < 1e5 && (a.mediaTimeout = f);
12766
12770
  }
12767
12771
  a.beforeRetry = (f) => w(this, null, function* () {
@@ -12772,16 +12776,16 @@ const xe = (Le = class extends we {
12772
12776
  "subscribe"
12773
12777
  /* SUBSCRIBE */
12774
12778
  );
12775
- } catch (p) {
12779
+ } catch (g) {
12776
12780
  }
12777
12781
  if (this._publishingTracks = [], this.subscribeRetryOptionsHook) {
12778
- const p = this.subscribeRetryOptionsHook();
12779
- if (p) {
12782
+ const g = this.subscribeRetryOptionsHook();
12783
+ if (g) {
12780
12784
  let l = t.streamUrl;
12781
12785
  i.video || i.screen ? i != null && i.audio || (l += "@subaudio=no") : l += "@subvideo=no", f.url = l;
12782
12786
  const x = this.getSubConfig(
12783
- p.remoteUser.streamInfo,
12784
- p.options
12787
+ g.remoteUser.streamInfo,
12788
+ g.options
12785
12789
  );
12786
12790
  x.aMsid && (f.aMsid = x.aMsid), x.vMsid && (f.vMsid = x.vMsid);
12787
12791
  } else
@@ -12813,13 +12817,13 @@ const xe = (Le = class extends we {
12813
12817
  });
12814
12818
  try {
12815
12819
  return (yield Oa(
12816
- (g) => w(this, null, function* () {
12817
- return yield this.dcConnectingPromise, g > 0 && O.event(`[${Le.logName}]`, `subscribeAdd retry times: ${g}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12820
+ (p) => w(this, null, function* () {
12821
+ return yield this.dcConnectingPromise, p > 0 && O.event(`[${Le.logName}]`, `subscribeAdd retry times: ${p}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12818
12822
  }),
12819
12823
  za,
12820
12824
  0,
12821
12825
  // 仅超时重试
12822
- (g) => (g == null ? void 0 : g.errorCode) === 15006
12826
+ (p) => (p == null ? void 0 : p.errorCode) === 15006
12823
12827
  ))[0];
12824
12828
  } catch (h) {
12825
12829
  if (((u = (o = (c = (a = h == null ? void 0 : h.extraInfo) == null ? void 0 : a.parsedData) == null ? void 0 : c.streams) == null ? void 0 : o[0]) == null ? void 0 : u.res_code) === 508)
@@ -12898,8 +12902,8 @@ const xe = (Le = class extends we {
12898
12902
  let o = "", u;
12899
12903
  if (this.connecting && (yield this.connectingPromise), this.connected) {
12900
12904
  yield this.dcConnectingPromise;
12901
- let h = !1, g;
12902
- const { audio: d, video: f, videoSmall: p, screen: l } = this.localStreamManager.publishStreams;
12905
+ let h = !1, p;
12906
+ const { audio: d, video: f, videoSmall: g, screen: l } = this.localStreamManager.publishStreams;
12903
12907
  d && (o = yield this.publishAdd(
12904
12908
  e,
12905
12909
  d,
@@ -12908,7 +12912,7 @@ const xe = (Le = class extends we {
12908
12912
  aMsid: k.Audio
12909
12913
  },
12910
12914
  i
12911
- ), h = !0, g = k.Audio, yield vt(100)), f && (o = yield this.publishAdd(
12915
+ ), h = !0, p = k.Audio, yield vt(100)), f && (o = yield this.publishAdd(
12912
12916
  e,
12913
12917
  f,
12914
12918
  t,
@@ -12916,15 +12920,15 @@ const xe = (Le = class extends we {
12916
12920
  vMsid: k.VideoLarge
12917
12921
  },
12918
12922
  i
12919
- ), h = !1, g = k.VideoLarge, yield vt(100)), p && (o = yield this.publishAdd(
12923
+ ), h = !1, p = k.VideoLarge, yield vt(100)), g && (o = yield this.publishAdd(
12920
12924
  e,
12921
- p,
12925
+ g,
12922
12926
  t,
12923
12927
  {
12924
12928
  vMsid: k.VideoSmall
12925
12929
  },
12926
12930
  i
12927
- ), h = !1, g = k.VideoSmall, yield vt(100)), l && (o = yield this.publishAdd(
12931
+ ), h = !1, p = k.VideoSmall, yield vt(100)), l && (o = yield this.publishAdd(
12928
12932
  e,
12929
12933
  l,
12930
12934
  t,
@@ -12933,7 +12937,7 @@ const xe = (Le = class extends we {
12933
12937
  vMsid: k.Screen
12934
12938
  },
12935
12939
  i
12936
- ), h = !1, g = k.Screen), g && (yield this.waitPublishSender(e, h, g));
12940
+ ), h = !1, p = k.Screen), p && (yield this.waitPublishSender(e, h, p));
12937
12941
  } else {
12938
12942
  const h = yield this.httpPublish(e, t, i, s);
12939
12943
  o = h.traceId, u = h.l1ip;
@@ -12954,10 +12958,10 @@ const xe = (Le = class extends we {
12954
12958
  "subscribe error, video and screen cannot be subscribed at the same time"
12955
12959
  );
12956
12960
  this.connecting && (yield this.connectingPromise);
12957
- let h, g = Date.now();
12958
- this.connected ? (g = Date.now(), h = yield this.subscribeAdd(e)) : (c = !0, h = yield this.httpSubscribe(e));
12961
+ let h, p = Date.now();
12962
+ this.connected ? (p = Date.now(), h = yield this.subscribeAdd(e)) : (c = !0, h = yield this.httpSubscribe(e));
12959
12963
  const d = Date.now();
12960
- let f = k.VideoLarge, p = o.video || o.screen, l = o.audio;
12964
+ let f = k.VideoLarge, g = o.video || o.screen, l = o.audio;
12961
12965
  o.video && o.vMsid ? f = o.vMsid : o.screen && (f = k.Screen);
12962
12966
  let x = 0, v = 0, S = 0;
12963
12967
  const y = ((E, I) => {
@@ -12967,10 +12971,10 @@ const xe = (Le = class extends we {
12967
12971
  return l && !x && (L = this.rts.getSubscribeAudioStats(u.streamUrl).then((_) => {
12968
12972
  if (_.packetsReceived > 0)
12969
12973
  x = Date.now();
12970
- else if (!p)
12974
+ else if (!g)
12971
12975
  return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : !1;
12972
12976
  return !0;
12973
- })), p && !S && (L = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((_) => {
12977
+ })), g && !S && (L = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((_) => {
12974
12978
  if (_.packetsReceived > 0 && (v = Date.now()), _.framesDecoded > 0)
12975
12979
  S = Date.now();
12976
12980
  else
@@ -12987,12 +12991,12 @@ const xe = (Le = class extends we {
12987
12991
  s,
12988
12992
  f,
12989
12993
  {
12990
- fprt: v - g,
12991
- ifsprtc: S ? S - g : 0,
12994
+ fprt: v - p,
12995
+ ifsprtc: S ? S - p : 0,
12992
12996
  ajsub: t === le.Join ? 1 : 0,
12993
12997
  pctid: this.pcTraceId,
12994
12998
  subtid: (h == null ? void 0 : h.traceId) || "",
12995
- sstc: d - g
12999
+ sstc: d - p
12996
13000
  }
12997
13001
  ), S && this.slsReporter.reportSubscribeFirstFrame(
12998
13002
  t === le.Resume,
@@ -13000,13 +13004,13 @@ const xe = (Le = class extends we {
13000
13004
  s,
13001
13005
  f,
13002
13006
  {
13003
- fvfrt: S - g,
13007
+ fvfrt: S - p,
13004
13008
  fp2fftc: S - v,
13005
13009
  ajsub: t === le.Join ? 1 : 0,
13006
13010
  tffrtc: t === le.Join ? S - this.localJoinTime : S - a,
13007
13011
  pctid: this.pcTraceId,
13008
13012
  subtid: (h == null ? void 0 : h.traceId) || "",
13009
- fvfdtc: S - g
13013
+ fvfdtc: S - p
13010
13014
  }
13011
13015
  ), x && this.slsReporter.reportSubscribeFirstPacket(
13012
13016
  t === le.Resume,
@@ -13014,12 +13018,12 @@ const xe = (Le = class extends we {
13014
13018
  s,
13015
13019
  k.Audio,
13016
13020
  {
13017
- fprt: x - g,
13018
- ifsprtc: x - g,
13021
+ fprt: x - p,
13022
+ ifsprtc: x - p,
13019
13023
  ajsub: t === le.Join ? 1 : 0,
13020
13024
  pctid: this.pcTraceId,
13021
13025
  subtid: (h == null ? void 0 : h.traceId) || "",
13022
- sstc: d - g
13026
+ sstc: d - p
13023
13027
  }
13024
13028
  );
13025
13029
  }), c && (yield Promise.race([y, vt(1500)])), h;
@@ -13209,9 +13213,9 @@ class Wa extends we {
13209
13213
  }
13210
13214
  updateSource(e, t, i) {
13211
13215
  return w(this, null, function* () {
13212
- var c, o, u, h, g, d;
13216
+ var c, o, u, h, p, d;
13213
13217
  const { videoTrack: s, audioTrack: a } = e;
13214
- s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), a && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === Ee.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), a && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (g = this.originVideoTrack) == null || g.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t || $t.Camera, this.updateVideoTrack(s)), a && (this.originAudioTrack = a, (d = this.originAudioTrack) == null || d.addEventListener("ended", this.onAudioTrackEnded), this.audioSource = i || mi.Microphone, this.updateAudioTrack(a));
13218
+ s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), a && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === Ee.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), a && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (p = this.originVideoTrack) == null || p.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t || $t.Camera, this.updateVideoTrack(s)), a && (this.originAudioTrack = a, (d = this.originAudioTrack) == null || d.addEventListener("ended", this.onAudioTrackEnded), this.audioSource = i || mi.Microphone, this.updateAudioTrack(a));
13215
13219
  });
13216
13220
  }
13217
13221
  get currentProfile() {
@@ -13291,7 +13295,7 @@ class Wa extends we {
13291
13295
  }
13292
13296
  process(e) {
13293
13297
  return w(this, null, function* () {
13294
- var t, i, s, a, c, o, u, h, g, d, f, p;
13298
+ var t, i, s, a, c, o, u, h, p, d, f, g;
13295
13299
  this._targetAudioTrack = this.originAudioTrack, this._targetVideoTrack = this.originVideoTrack;
13296
13300
  for (const l of this.plugins)
13297
13301
  try {
@@ -13299,7 +13303,7 @@ class Wa extends we {
13299
13303
  } catch (x) {
13300
13304
  console.error(`error in plugin-${l.name}, error: ${x}`);
13301
13305
  }
13302
- 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 = (g = this._publishAudioStream) == null ? void 0 : g.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, (p = this.previewStream) == null || p.deleteTracks({ audio: !0 }));
13306
+ 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 }));
13303
13307
  });
13304
13308
  }
13305
13309
  /**
@@ -13401,7 +13405,7 @@ const Xe = (Bt = class extends we {
13401
13405
  m(this, "_publishLocalScreenStreamEnabled", !0);
13402
13406
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13403
13407
  const i = (s) => w(this, null, function* () {
13404
- if (O.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.7-beta.1")) {
13408
+ if (O.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.8-beta.0")) {
13405
13409
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13406
13410
  return;
13407
13411
  }
@@ -13510,7 +13514,7 @@ const Xe = (Bt = class extends we {
13510
13514
  }
13511
13515
  createLocalStream(e) {
13512
13516
  return w(this, null, function* () {
13513
- var g;
13517
+ var p;
13514
13518
  const { screen: t, mediaStream: i, videoProfile: s, screenProfile: a } = e;
13515
13519
  let { video: c, audio: o } = e;
13516
13520
  const u = K0(e);
@@ -13526,7 +13530,7 @@ const Xe = (Bt = class extends we {
13526
13530
  custom: !!i,
13527
13531
  mediaStream: i,
13528
13532
  skipProfile: !0
13529
- }), o && !i && this.slsReporter.reportAudio(null, Date.now() - d, ((g = h == null ? void 0 : h.audioTrack) == null ? void 0 : g.label) || ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d);
13533
+ }), o && !i && this.slsReporter.reportAudio(null, Date.now() - d, ((p = h == null ? void 0 : h.audioTrack) == null ? void 0 : p.label) || ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d);
13530
13534
  } catch (f) {
13531
13535
  throw o && !i && this.slsReporter.reportAudio(f, Date.now() - d, ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d), f;
13532
13536
  }
@@ -13562,14 +13566,14 @@ const Xe = (Bt = class extends we {
13562
13566
  }
13563
13567
  createHTTPPublishStream() {
13564
13568
  return w(this, null, function* () {
13565
- var o, u, h, g;
13569
+ var o, u, h, p;
13566
13570
  let e, t = !1, i, s, a;
13567
13571
  const c = yield this.publishStreams;
13568
13572
  try {
13569
13573
  if (!c.audio && !c.video && !c.videoSmall && !c.screen)
13570
13574
  throw O.error(`[${Bt.logName}]`, "no tracks founded"), new V(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13571
13575
  const d = new MediaStream();
13572
- (o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, a = c.screen) : (h = c.screen) != null && h.videoTrack && (i = k.Screen, d.addTrack((g = c.screen) == null ? void 0 : g.videoTrack), t = !0), e = yield bn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
13576
+ (o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, a = c.screen) : (h = c.screen) != null && h.videoTrack && (i = k.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield bn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
13573
13577
  } catch (d) {
13574
13578
  }
13575
13579
  return { publishStream: e, videoSmallStream: s, screenStream: a, vMsid: i };
@@ -13717,9 +13721,9 @@ class fc extends Kt {
13717
13721
  return;
13718
13722
  }
13719
13723
  const t = new MediaStreamTrackProcessor({ track: e.originVideoTrack }), i = new MediaStreamTrackGenerator({ kind: "video" }), s = new MediaStream([i]), a = this, c = new TransformStream({
13720
- transform(g, d) {
13724
+ transform(p, d) {
13721
13725
  return w(this, null, function* () {
13722
- const f = yield a.handleFrame(g, e);
13726
+ const f = yield a.handleFrame(p, e);
13723
13727
  yield d.enqueue(f), f == null || f.close();
13724
13728
  });
13725
13729
  }
@@ -14357,17 +14361,21 @@ class Te extends we {
14357
14361
  m(this, "indicationTimer", 0);
14358
14362
  m(this, "parameter", {});
14359
14363
  m(this, "publishRetryOptionsHook", () => {
14360
- for (const e of this.remoteUsers)
14361
- e.restore();
14364
+ var e;
14365
+ for (const t of this.remoteUsers)
14366
+ t.restore();
14367
+ (e = this.self) == null || e.clearDataChannel();
14362
14368
  });
14363
14369
  m(this, "subscribeRetryOptionsHook", () => {
14370
+ var i;
14371
+ (i = this.self) == null || i.clearDataChannel();
14364
14372
  let e = !1, t;
14365
- for (const i of this.remoteUsers)
14373
+ for (const s of this.remoteUsers)
14366
14374
  if (e)
14367
- i.restore();
14375
+ s.restore();
14368
14376
  else {
14369
- const s = i.getRetryOptions();
14370
- s && (t = s, e = !0);
14377
+ const a = s.getRetryOptions();
14378
+ a && (t = a, e = !0);
14371
14379
  }
14372
14380
  return t;
14373
14381
  });
@@ -14474,8 +14482,8 @@ class Te extends we {
14474
14482
  const s = Fr(t);
14475
14483
  s.length !== 0 && (s.forEach((o) => {
14476
14484
  var u;
14477
- (u = this.publisher) == null || u.resetElement(o), Object.values(this.usersViewMap).forEach(({ cameraViews: h = [], screenViews: g = [] }) => {
14478
- h.includes(o) && h.splice(h.indexOf(o), 1), g.includes(o) && g.splice(g.indexOf(o), 1);
14485
+ (u = this.publisher) == null || u.resetElement(o), Object.values(this.usersViewMap).forEach(({ cameraViews: h = [], screenViews: p = [] }) => {
14486
+ h.includes(o) && h.splice(h.indexOf(o), 1), p.includes(o) && p.splice(p.indexOf(o), 1);
14479
14487
  });
14480
14488
  }), (c = this.userMap[e]) == null || c.setViewConfig(s, i));
14481
14489
  }
@@ -14518,8 +14526,8 @@ class Te extends we {
14518
14526
  let u = this.getRemoteUser(t);
14519
14527
  if (!u)
14520
14528
  return;
14521
- const h = u.streamInfo.audioTrackInfo, g = u.streamInfo.videoTrackInfo;
14522
- u.updateRemoteTracks(i, o, a, c), u.updateSubscribe(le.Publish), (h !== u.streamInfo.audioTrackInfo || g !== u.streamInfo.videoTrackInfo) && this.emit(
14529
+ const h = u.streamInfo.audioTrackInfo, p = u.streamInfo.videoTrackInfo;
14530
+ u.updateRemoteTracks(i, o, a, c), u.updateSubscribe(le.Publish), (h !== u.streamInfo.audioTrackInfo || p !== u.streamInfo.videoTrackInfo) && this.emit(
14523
14531
  "remoteTrackAvailableChange",
14524
14532
  t,
14525
14533
  u.streamInfo.audioTrackInfo,
@@ -15294,7 +15302,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15294
15302
  ctm: Math.floor(s[0].timestamp || 0),
15295
15303
  src: s[0].ssrc || "",
15296
15304
  codec: s[0]._codec || ""
15297
- }, o = [], u = [], h = [], g = [], d = [], f = [], p = [], l = [], x = [], v = [], S = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [];
15305
+ }, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], x = [], v = [], S = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [];
15298
15306
  try {
15299
15307
  if (s.forEach((R) => {
15300
15308
  var F, M, J, j, ue, X;
@@ -15307,12 +15315,12 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15307
15315
  const ae = Je(fe($, 8, 2e7), T);
15308
15316
  h.push(ae);
15309
15317
  const Q = pe(R, "packetsSent"), te = Je(Q, T);
15310
- g.push(te);
15318
+ p.push(te);
15311
15319
  const ee = pe(R, "packetsLost"), P = Je(ee, T);
15312
15320
  d.push(P);
15313
15321
  const N = Rt(ee, Q);
15314
15322
  if (f.push(N), a)
15315
- (M = R._source) != null && M.audioLevel && p.push(Xa(R._source.audioLevel)), l.push(0);
15323
+ (M = R._source) != null && M.audioLevel && g.push(Xa(R._source.audioLevel)), l.push(0);
15316
15324
  else {
15317
15325
  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));
15318
15326
  const Ve = pe(R, "totalPacketSendDelay");
@@ -15320,9 +15328,9 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15320
15328
  const ze = pe(R, "qpSum");
15321
15329
  L.push(fe(ze, 1 / (R.framesPerSecond || 1), 51)), _.push(0);
15322
15330
  }
15323
- }), c.sbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.ps = g.join(","), c.pl = d.join(","), c.plr = f.join(","), a) {
15331
+ }), c.sbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.ps = p.join(","), c.pl = d.join(","), c.plr = f.join(","), a) {
15324
15332
  const R = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
15325
- c.ailevel = p.join(","), c.arpc = l.join(","), c.arsr = R, c.aesr = R, c.publevel = -90, c.rawlevel = -90;
15333
+ c.ailevel = g.join(","), c.arpc = l.join(","), c.arsr = R, c.aesr = R, c.publevel = -90, c.rawlevel = -90;
15326
15334
  } else
15327
15335
  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(",");
15328
15336
  } catch (R) {
@@ -15345,7 +15353,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15345
15353
  ctm: Math.floor(s[0].timestamp || 0),
15346
15354
  src: s[0].ssrc || "",
15347
15355
  codec: s[0]._codec || ""
15348
- }, o = [], u = [], h = [], g = [], d = [], f = [], p = [], 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 = [];
15356
+ }, 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 = [];
15349
15357
  try {
15350
15358
  s.forEach((j) => {
15351
15359
  var Qe, Ct;
@@ -15358,7 +15366,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15358
15366
  const Ze = Je(fe(Ve, 8, 2e7), ue);
15359
15367
  h.push(Ze);
15360
15368
  const Se = pe(j, "packetsReceived"), Pe = Je(Se, ue);
15361
- g.push(Pe);
15369
+ p.push(Pe);
15362
15370
  const nt = pe(j, "packetsLost"), Et = Je(nt, ue);
15363
15371
  d.push(Et);
15364
15372
  const Nt = Rt(nt, Se);
@@ -15366,9 +15374,9 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15366
15374
  const At = pe(j, "jitterBufferDelay"), Jt = pe(j, "jitterBufferEmittedCount");
15367
15375
  if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
15368
15376
  const lt = fe(At, 1e3 / Jt, 1e4);
15369
- p.push(lt);
15377
+ g.push(lt);
15370
15378
  } else
15371
- p.push(0);
15379
+ g.push(0);
15372
15380
  const _t = pe(j, "fecPacketsReceived");
15373
15381
  b.push(Rt(_t, Se));
15374
15382
  const ke = pe(j, "retransmittedPacketsReceived"), Ce = Se + nt - ke;
@@ -15400,7 +15408,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15400
15408
  const Gt = pe(j, "jitterBufferMinimumDelay");
15401
15409
  Gt && We ? N.push(fe(Gt, 1e3 / We, 3e4)) : N.push(0);
15402
15410
  }
15403
- }), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = g.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = p.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(","));
15411
+ }), 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(","));
15404
15412
  } catch (j) {
15405
15413
  }
15406
15414
  this.log({
@@ -15419,13 +15427,13 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15419
15427
  reportNetworkMonitor(n) {
15420
15428
  if (n.length <= 0)
15421
15429
  return;
15422
- const e = [], t = [], i = [], s = [], a = [], c = [], o = [], u = [], h = [], g = [];
15423
- n.forEach((f, p) => {
15430
+ const e = [], t = [], i = [], s = [], a = [], c = [], o = [], u = [], h = [], p = [];
15431
+ n.forEach((f, g) => {
15424
15432
  var x;
15425
15433
  if (!f.timestamp)
15426
15434
  return;
15427
15435
  const l = (x = f._last) != null && x.timestamp ? f.timestamp - f._last.timestamp : 1e3;
15428
- e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(Je(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(Je(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0), p % 5 === 0 && (o.push(""), u.push(""), h.push(""), g.push(""));
15436
+ e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(Je(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(Je(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0), g % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
15429
15437
  });
15430
15438
  const d = {
15431
15439
  ctm: Math.floor(n[0].timestamp || 0),
@@ -15435,7 +15443,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15435
15443
  cpu: o.join(","),
15436
15444
  mem: u.join(","),
15437
15445
  sysmem: h.join(","),
15438
- systotalmem: g.join(","),
15446
+ systotalmem: p.join(","),
15439
15447
  audioonly: this.engine.isAudioOnly() ? 1 : 0
15440
15448
  };
15441
15449
  this.log({
@@ -15457,7 +15465,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15457
15465
  * @param {string} tid
15458
15466
  */
15459
15467
  reportJoin(n, e, t = "") {
15460
- var g, d;
15468
+ var p, d;
15461
15469
  const { start: i, rs: s = 0, re: a = 0 } = e, c = Date.now() - i, o = a - s;
15462
15470
  let u = 0;
15463
15471
  s && (u = s - i);
@@ -15465,7 +15473,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15465
15473
  a && (h = a - s), this.log({
15466
15474
  evetid: 10010,
15467
15475
  args: this.data2String({
15468
- sesid: ((g = this.authInfo) == null ? void 0 : g.sessionId) || "",
15476
+ sesid: ((p = this.authInfo) == null ? void 0 : p.sessionId) || "",
15469
15477
  joitm: c,
15470
15478
  rslt: n,
15471
15479
  gslbtm: 0,
@@ -15532,7 +15540,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15532
15540
  * @param {string} tid
15533
15541
  * @param {number} pubTime
15534
15542
  */
15535
- reportPublish(n, e, t, i, s, a, c, o, u, h, g) {
15543
+ reportPublish(n, e, t, i, s, a, c, o, u, h, p) {
15536
15544
  this.log({
15537
15545
  evetid: n ? 10032 : 10030,
15538
15546
  calid: t,
@@ -15545,7 +15553,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
15545
15553
  isaudio: c ? 1 : 0,
15546
15554
  rslt: o,
15547
15555
  tid: "123",
15548
- pubtm: Date.now() - g,
15556
+ pubtm: Date.now() - p,
15549
15557
  pctid: u,
15550
15558
  pubtid: h,
15551
15559
  isvp: 0,
@@ -16067,7 +16075,7 @@ const z = (K = class extends we {
16067
16075
  * 监听 Publisher 事件
16068
16076
  */
16069
16077
  addPublisherListeners() {
16070
- var e, t, i, s, a, c, o, u, h, g;
16078
+ var e, t, i, s, a, c, o, u, h, p;
16071
16079
  (e = this.publisher) == null || e.on(Ne.Local, (d) => {
16072
16080
  O.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
16073
16081
  }), (t = this.publisher) == null || t.on(kt.VideoTrackEnded, () => {
@@ -16093,24 +16101,24 @@ const z = (K = class extends we {
16093
16101
  );
16094
16102
  }), (a = this.publisher) == null || a.on(
16095
16103
  "localDeviceException",
16096
- (d, f, p = "") => {
16097
- this.emit("localDeviceException", d, f, p);
16104
+ (d, f, g = "") => {
16105
+ this.emit("localDeviceException", d, f, g);
16098
16106
  }
16099
- ), (c = this.publisher) == null || c.on("audioPublishStateChanged", (d, f, p) => {
16107
+ ), (c = this.publisher) == null || c.on("audioPublishStateChanged", (d, f, g) => {
16100
16108
  var l;
16101
- this.emit("audioPublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
16102
- }), (o = this.publisher) == null || o.on("videoPublishStateChanged", (d, f, p) => {
16109
+ this.emit("audioPublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16110
+ }), (o = this.publisher) == null || o.on("videoPublishStateChanged", (d, f, g) => {
16103
16111
  var l;
16104
- this.emit("videoPublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
16105
- }), (u = this.publisher) == null || u.on("dualStreamPublishStateChanged", (d, f, p) => {
16112
+ this.emit("videoPublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16113
+ }), (u = this.publisher) == null || u.on("dualStreamPublishStateChanged", (d, f, g) => {
16106
16114
  var l;
16107
- this.emit("dualStreamPublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
16108
- }), (h = this.publisher) == null || h.on("screenPublishStateChanged", (d, f, p) => {
16115
+ this.emit("dualStreamPublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16116
+ }), (h = this.publisher) == null || h.on("screenPublishStateChanged", (d, f, g) => {
16109
16117
  var l;
16110
- this.emit("screenSharePublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
16111
- }), (g = this.publisher) == null || g.on("dataPublishStateChanged", (d, f, p) => {
16118
+ this.emit("screenSharePublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16119
+ }), (p = this.publisher) == null || p.on("dataPublishStateChanged", (d, f, g) => {
16112
16120
  var l;
16113
- this.emit("dataPublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
16121
+ this.emit("dataPublishStateChanged", d, f, g, (l = this.channel) != null ? l : "");
16114
16122
  });
16115
16123
  }
16116
16124
  occurError(e, t) {
@@ -16271,8 +16279,8 @@ const z = (K = class extends we {
16271
16279
  a > 1 && (clearInterval(u), o()), a += 1;
16272
16280
  try {
16273
16281
  yield (h = this.publisher) == null ? void 0 : h.resumePublish(), clearInterval(u), c();
16274
- } catch (g) {
16275
- const { code: d } = g;
16282
+ } catch (p) {
16283
+ const { code: d } = p;
16276
16284
  d !== 10205 && (clearInterval(u), o());
16277
16285
  }
16278
16286
  }), 1e3);
@@ -16382,7 +16390,7 @@ const z = (K = class extends we {
16382
16390
  }
16383
16391
  startAndPublishDefaultDevices(e) {
16384
16392
  return w(this, null, function* () {
16385
- var c, o, u, h, g;
16393
+ var c, o, u, h, p;
16386
16394
  if (!this.publisher)
16387
16395
  return;
16388
16396
  const { hasCamera: t, hasMicrophone: i, hasScreenShare: s } = this.publisher;
@@ -16412,11 +16420,11 @@ const z = (K = class extends we {
16412
16420
  const a = ((h = this.publisher) == null ? void 0 : h.publishStreams) || {};
16413
16421
  if (Object.values(a).some((d) => d))
16414
16422
  try {
16415
- yield (g = this.publisher) == null ? void 0 : g.startPublish(!1, e);
16423
+ yield (p = this.publisher) == null ? void 0 : p.startPublish(!1, e);
16416
16424
  } catch (d) {
16417
16425
  const f = [];
16418
- a != null && a.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((p) => {
16419
- this.occurError(new V(p, `auto publish stream failed, ${d.message || ""}`));
16426
+ a != null && a.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((g) => {
16427
+ this.occurError(new V(g, `auto publish stream failed, ${d.message || ""}`));
16420
16428
  });
16421
16429
  }
16422
16430
  });
@@ -16511,8 +16519,8 @@ const z = (K = class extends we {
16511
16519
  );
16512
16520
  this.connectState = he.AliRtcConnectionStatusConnected, (o = this.publisher) == null || o.reportSelfDeviceStatus(), this.bizControl.init(i, h), this.setCheckAuthInfoTimer(i.timestamp, h.timestamp), this.liveTranscoding.setAuthInfo(i), this.slsReporter.reportJoin(0, a, h.tid), this.slsReporter.reportJoinResult(null);
16513
16521
  } catch (h) {
16514
- const g = (u = h.code) != null ? u : -1, d = h.reason || h.message || "";
16515
- throw this.connectState = he.AliRtcConnectionStatusDisconnected, this.slsReporter.reportJoin(g, a, ""), this.slsReporter.reportJoinResult(h), new V(g, d);
16522
+ const p = (u = h.code) != null ? u : -1, d = h.reason || h.message || "";
16523
+ throw this.connectState = he.AliRtcConnectionStatusDisconnected, this.slsReporter.reportJoin(p, a, ""), this.slsReporter.reportJoinResult(h), new V(p, d);
16516
16524
  }
16517
16525
  this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(st.JOIN_CHANNEL)), this.remoteUsers.forEach((h) => {
16518
16526
  h.updateSubscribe(le.Join);
@@ -16883,7 +16891,7 @@ const z = (K = class extends we {
16883
16891
  }
16884
16892
  setCameraCapturerConfiguration(e) {
16885
16893
  return w(this, null, function* () {
16886
- var u, h, g;
16894
+ var u, h, p;
16887
16895
  const {
16888
16896
  width: t = Zt.width,
16889
16897
  height: i = Zt.height,
@@ -16897,7 +16905,7 @@ const z = (K = class extends we {
16897
16905
  height: i,
16898
16906
  frameRate: s,
16899
16907
  maxBitrate: a
16900
- }), c !== void 0 && ((h = this.publisher) == null || h.setCameraDirection(c)), o && ((g = this.publisher) == null || g.setCameraDeviceId(o));
16908
+ }), c !== void 0 && ((h = this.publisher) == null || h.setCameraDirection(c)), o && ((p = this.publisher) == null || p.setCameraDeviceId(o));
16901
16909
  });
16902
16910
  }
16903
16911
  setCameraCapturerContentHint(e) {
@@ -16908,10 +16916,10 @@ const z = (K = class extends we {
16908
16916
  }
16909
16917
  enableLocalVideo(e = !0) {
16910
16918
  return w(this, null, function* () {
16911
- var t, i, s, a, c, o, u, h, g, d, f;
16919
+ var t, i, s, a, c, o, u, h, p, d, f;
16912
16920
  if (this._audioOnlyMode)
16913
16921
  throw new V(U.ERR_INNER, "Cannot enable local video in audio only mode");
16914
- e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((c = (a = (s = this.publisher) == null ? void 0 : s.publishStreams) == null ? void 0 : a.video) == null || c.disableVideo(), (g = (h = (u = (o = this.publisher) == null ? void 0 : o.publishStreams) == null ? void 0 : u.video) == null ? void 0 : h.videoTrack) == null || g.stop()), yield (d = this.publisher) == null ? void 0 : d.startCameraCapture()) : yield (f = this.publisher) == null ? void 0 : f.stopCameraCapture();
16922
+ e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((c = (a = (s = this.publisher) == null ? void 0 : s.publishStreams) == null ? void 0 : a.video) == null || c.disableVideo(), (p = (h = (u = (o = this.publisher) == null ? void 0 : o.publishStreams) == null ? void 0 : u.video) == null ? void 0 : h.videoTrack) == null || p.stop()), yield (d = this.publisher) == null ? void 0 : d.startCameraCapture()) : yield (f = this.publisher) == null ? void 0 : f.stopCameraCapture();
16915
16923
  });
16916
16924
  }
16917
16925
  muteLocalCamera(e) {
@@ -16942,12 +16950,12 @@ const z = (K = class extends we {
16942
16950
  }
16943
16951
  switchCamera(e, t) {
16944
16952
  return w(this, null, function* () {
16945
- var s, a, c, o, u, h, g, d, f, p, l, x, v;
16953
+ var s, a, c, o, u, h, p, d, f, g, l, x, v;
16946
16954
  if (this._audioOnlyMode)
16947
16955
  throw new V(U.ERR_INNER, "Cannot switch camera in audio only mode");
16948
16956
  const i = {};
16949
16957
  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)) {
16950
- (u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (g = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : g.video) == null || d.disableVideo(), (x = (l = (p = (f = this.publisher) == null ? void 0 : f.publishStreams) == null ? void 0 : p.video) == null ? void 0 : l.videoTrack) == null || x.stop());
16958
+ (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());
16951
16959
  const S = {
16952
16960
  video: !0
16953
16961
  };