@byteplus/vepusher 2.0.4-rc.16 → 2.0.4-rc.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -135,7 +135,7 @@ const hc = {
135
135
  };
136
136
  var qi = /* @__PURE__ */ ((r) => (r.Portrait = "portrait", r.Landscape = "landscape", r))(qi || {});
137
137
  const fc = "720p-1", pc = "STANDARD";
138
- var qe = /* @__PURE__ */ ((r) => (r[r.DISCONNECTED = 0] = "DISCONNECTED", r[r.CONNECTING = 1] = "CONNECTING", r[r.CONNECTED = 2] = "CONNECTED", r[r.RECONNECTING = 3] = "RECONNECTING", r))(qe || {}), dr = /* @__PURE__ */ ((r) => (r[r.START = 1] = "START", r[r.WAITING = 2] = "WAITING", r[r.RECONNECTING = 3] = "RECONNECTING", r[r.SUCCESS = 4] = "SUCCESS", r[r.FAILED = 5] = "FAILED", r))(dr || {}), Ki = /* @__PURE__ */ ((r) => (r[r.PushUrlInvalid = 1001] = "PushUrlInvalid", r[r.ReconnectTimeout = 1002] = "ReconnectTimeout", r))(Ki || {}), te = /* @__PURE__ */ ((r) => (r.TRACK_NOT_AVAILABLE = "track-not-available", r.UNEXPECTED_TYPE = "unexpected-type", r.PLAY_FAILED = "play-failed", r.CAPTURE_FAILED = "capture-failed", r.NOT_SUPPORTED = "not-supported", r.UNEXPECTED_ERROR = "unexpected-error", r))(te || {}), he = /* @__PURE__ */ ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r))(he || {}), Pe = /* @__PURE__ */ ((r) => (r.ENDED = "ended", r.MUTE = "mute", r.UNMUTE = "unmute", r.PLAY_FAILED = "play-failed", r.SIZE_CHANGE = "size-change", r))(Pe || {});
138
+ var qe = /* @__PURE__ */ ((r) => (r[r.DISCONNECTED = 0] = "DISCONNECTED", r[r.CONNECTING = 1] = "CONNECTING", r[r.CONNECTED = 2] = "CONNECTED", r[r.RECONNECTING = 3] = "RECONNECTING", r))(qe || {}), ur = /* @__PURE__ */ ((r) => (r[r.START = 1] = "START", r[r.WAITING = 2] = "WAITING", r[r.RECONNECTING = 3] = "RECONNECTING", r[r.SUCCESS = 4] = "SUCCESS", r[r.FAILED = 5] = "FAILED", r))(ur || {}), Ki = /* @__PURE__ */ ((r) => (r[r.PushUrlInvalid = 1001] = "PushUrlInvalid", r[r.ReconnectTimeout = 1002] = "ReconnectTimeout", r))(Ki || {}), te = /* @__PURE__ */ ((r) => (r.TRACK_NOT_AVAILABLE = "track-not-available", r.UNEXPECTED_TYPE = "unexpected-type", r.PLAY_FAILED = "play-failed", r.CAPTURE_FAILED = "capture-failed", r.NOT_SUPPORTED = "not-supported", r.UNEXPECTED_ERROR = "unexpected-error", r))(te || {}), he = /* @__PURE__ */ ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r))(he || {}), Oe = /* @__PURE__ */ ((r) => (r.ENDED = "ended", r.MUTE = "mute", r.UNMUTE = "unmute", r.PLAY_FAILED = "play-failed", r.SIZE_CHANGE = "size-change", r))(Oe || {});
139
139
  const xe = [];
140
140
  for (let r = 0; r < 256; ++r)
141
141
  xe.push((r + 256).toString(16).slice(1));
@@ -494,7 +494,7 @@ const Jd = {
494
494
  muted: "",
495
495
  crossOrigin: "anonymous"
496
496
  };
497
- class Zr {
497
+ class Xr {
498
498
  constructor(e, t = []) {
499
499
  V(this, "id", tr());
500
500
  V(this, "_referenceTracks", []);
@@ -788,20 +788,20 @@ class Oo extends Mo {
788
788
  V(this, "id", tr());
789
789
  V(this, "_track");
790
790
  V(this, "_element");
791
- t instanceof MediaStreamTrack ? (this._track = new Ao(t), this._bindTrackEvent(this._track)) : t instanceof Zr ? (this._element = t, t.addReferenceTrack(this)) : t instanceof bc && (this._element = t);
791
+ t instanceof MediaStreamTrack ? (this._track = new Ao(t), this._bindTrackEvent(this._track)) : t instanceof Xr ? (this._element = t, t.addReferenceTrack(this)) : t instanceof bc && (this._element = t);
792
792
  }
793
793
  _bindTrackEvent(t) {
794
794
  t.on("ended", this._handleTrackEnded.bind(this)), t.on("mute", () => {
795
- this.emit(Pe.MUTE);
795
+ this.emit(Oe.MUTE);
796
796
  }), t.on("unmute", () => {
797
- this.emit(Pe.UNMUTE);
797
+ this.emit(Oe.UNMUTE);
798
798
  });
799
799
  }
800
800
  _handleTrackEnded() {
801
- this.emit(Pe.ENDED), this.destroy();
801
+ this.emit(Oe.ENDED), this.destroy();
802
802
  }
803
803
  handlePlayFailed() {
804
- this.emit(Pe.PLAY_FAILED);
804
+ this.emit(Oe.PLAY_FAILED);
805
805
  }
806
806
  track() {
807
807
  if (this.logger.info("track"), !this.available())
@@ -832,7 +832,7 @@ class Oo extends Mo {
832
832
  te.UNEXPECTED_TYPE,
833
833
  "got this._track falsy"
834
834
  );
835
- const t = new Zr(this._track.target, [this]);
835
+ const t = new Xr(this._track.target, [this]);
836
836
  this._element = t;
837
837
  const n = t.element();
838
838
  return this.logger.success("element", n), n;
@@ -886,7 +886,7 @@ class Kn extends Oo {
886
886
  te.UNEXPECTED_TYPE,
887
887
  "got this._track falsy"
888
888
  );
889
- const t = new Zr(this._track.target, [this]);
889
+ const t = new Xr(this._track.target, [this]);
890
890
  return this._element = t, t.element();
891
891
  }
892
892
  destroy() {
@@ -912,11 +912,11 @@ class Ec extends Kn {
912
912
  V(this, "logger", new je("MediaAudioTrack"));
913
913
  }
914
914
  handlePlayFailed() {
915
- this.emit(Pe.PLAY_FAILED);
915
+ this.emit(Oe.PLAY_FAILED);
916
916
  }
917
917
  async play() {
918
918
  if (this._element) {
919
- if (!(this._element instanceof Zr))
919
+ if (!(this._element instanceof Xr))
920
920
  throw new ee(
921
921
  te.UNEXPECTED_TYPE,
922
922
  "element is not TrackMediaElement"
@@ -1321,7 +1321,7 @@ class Jn extends Oo {
1321
1321
  const t = this.width(), n = this.height();
1322
1322
  this.sizeChangeTimer = setTimeout(() => {
1323
1323
  const i = this.width(), o = this.height();
1324
- (n !== o || t !== i) && this.emit(Pe.SIZE_CHANGE, {
1324
+ (n !== o || t !== i) && this.emit(Oe.SIZE_CHANGE, {
1325
1325
  width: i,
1326
1326
  height: o
1327
1327
  });
@@ -1476,7 +1476,7 @@ async function yl(r, e, t) {
1476
1476
  return c.push(new fl(s)), d && c.push(new tl(d)), c;
1477
1477
  }
1478
1478
  async function Sl(r) {
1479
- const { url: e, audio: t, video: n, loop: i } = r, o = new Zr({
1479
+ const { url: e, audio: t, video: n, loop: i } = r, o = new Xr({
1480
1480
  url: e,
1481
1481
  kind: n ? he.VIDEO : he.AUDIO,
1482
1482
  loop: i
@@ -1525,7 +1525,7 @@ var Zi = /* @__PURE__ */ ((r) => (r.PAUSING = "pausing", r))(Zi || {});
1525
1525
  const Ml = {
1526
1526
  sampleRate: 48e3,
1527
1527
  keepAlive: !0
1528
- }, Ss = /* @__PURE__ */ new Map(), kr = new je("Mixer");
1528
+ }, Ss = /* @__PURE__ */ new Map(), Cr = new je("Mixer");
1529
1529
  class Ol extends Mo {
1530
1530
  constructor(t) {
1531
1531
  super();
@@ -1544,25 +1544,25 @@ class Ol extends Mo {
1544
1544
  t.removeEventListener(a, o);
1545
1545
  });
1546
1546
  }, o = () => {
1547
- Mr(this._context).then(i);
1547
+ xr(this._context).then(i);
1548
1548
  };
1549
1549
  n.forEach((a) => {
1550
1550
  t.addEventListener(a, o, !1);
1551
1551
  });
1552
1552
  });
1553
- kr.info("ctor", t), this._config = {
1553
+ Cr.info("ctor", t), this._config = {
1554
1554
  ...Ml,
1555
1555
  ...t
1556
1556
  }, this._context = Pl(this._config), this._bindContextEvent(this._context);
1557
1557
  }
1558
1558
  mix(t) {
1559
- kr.info("mix", t), Mr(this._context);
1559
+ Cr.info("mix", t), xr(this._context);
1560
1560
  for (const n of this._nodeList)
1561
1561
  t.includes(n) || n.destroy();
1562
1562
  this._nodeList = t, this._connect(t, this._destNode), this._nodeList.length === 0 && this._appendSlience(this._context, this._destNode);
1563
1563
  }
1564
1564
  resume() {
1565
- return kr.info("resume"), Mr(this._context);
1565
+ return Cr.info("resume"), xr(this._context);
1566
1566
  }
1567
1567
  _connect(t, n) {
1568
1568
  for (const i of t)
@@ -1585,10 +1585,10 @@ class Ol extends Mo {
1585
1585
  }
1586
1586
  _handleContextStateChange() {
1587
1587
  const t = this._context;
1588
- (t.state === "suspended" || t.state === "interrupted") && (kr.info("_emit_", Zi.PAUSING), this.emit(Zi.PAUSING));
1588
+ (t.state === "suspended" || t.state === "interrupted") && (Cr.info("_emit_", Zi.PAUSING), this.emit(Zi.PAUSING));
1589
1589
  }
1590
1590
  track() {
1591
- if (kr.info("track"), Mr(this._context), this.unlockAudioContext(), this._track)
1591
+ if (Cr.info("track"), xr(this._context), this.unlockAudioContext(), this._track)
1592
1592
  return this._track;
1593
1593
  let t = this._destNode;
1594
1594
  t || (t = new MediaStreamAudioDestinationNode(this._context)), this._nodeList.length === 0 && this._appendSlience(this._context, t), this._connect(this._nodeList, t);
@@ -1600,10 +1600,10 @@ function Pl(r) {
1600
1600
  const { sampleRate: e, keepAlive: t } = r;
1601
1601
  let n = Ss.get(e);
1602
1602
  return (!n || n.state === "closed") && (n = new AudioContext({ sampleRate: e }), Ss.set(e, n)), t && (n.onstatechange = () => {
1603
- Mr(n);
1603
+ xr(n);
1604
1604
  }), n;
1605
1605
  }
1606
- function Mr(r) {
1606
+ function xr(r) {
1607
1607
  return r.state === "suspended" || r.state === "interrupted" ? r.resume() : Promise.resolve();
1608
1608
  }
1609
1609
  const Ll = (r) => (e, t) => (r.set(e, t), t), bs = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, Cc = 536870912, Es = Cc * 2, Ul = (r, e) => (t) => {
@@ -1834,7 +1834,7 @@ const Ll = (r) => (e, t) => (r.set(e, t), t), bs = Number.MAX_SAFE_INTEGER === v
1834
1834
  height: 480,
1835
1835
  frameRate: 30,
1836
1836
  backgroundColor: "#000000"
1837
- }, vn = new je("View");
1837
+ }, _n = new je("View");
1838
1838
  class Xl {
1839
1839
  constructor(e) {
1840
1840
  V(this, "id", tr());
@@ -1865,7 +1865,7 @@ class Xl {
1865
1865
  this._paintLoop(), this._raqId && (cancelAnimationFrame(this._raqId), this._raqId = void 0);
1866
1866
  }, kn / this._config.frameRate), this._raqId = requestAnimationFrame(this._paintLoop);
1867
1867
  });
1868
- vn.info("ctor", e), this._config = {
1868
+ _n.info("ctor", e), this._config = {
1869
1869
  ...Jl,
1870
1870
  ...e
1871
1871
  };
@@ -1892,7 +1892,7 @@ class Xl {
1892
1892
  }, this._canvas.width = this._config.width, this._canvas.height = this._config.height;
1893
1893
  }
1894
1894
  draw(e = []) {
1895
- vn.info("draw", e), this._nodeList = e;
1895
+ _n.info("draw", e), this._nodeList = e;
1896
1896
  }
1897
1897
  _drawOnCanvas() {
1898
1898
  if (this._shouldDraw(Date.now())) {
@@ -1921,7 +1921,7 @@ class Xl {
1921
1921
  this._context.clearRect(0, 0, t, n), e && (this._context.fillStyle = e, this._context.fillRect(0, 0, t, n));
1922
1922
  }
1923
1923
  track() {
1924
- if (vn.info("track"), this._stopped && (this._stopped = !1, this._paintLoop()), this._track)
1924
+ if (_n.info("track"), this._stopped && (this._stopped = !1, this._paintLoop()), this._track)
1925
1925
  return this._track;
1926
1926
  const { frameRate: e } = this._config, t = this._canvas.captureStream(e);
1927
1927
  return this._track = t.getVideoTracks()[0], this._track;
@@ -1934,7 +1934,7 @@ class Xl {
1934
1934
  return this.track();
1935
1935
  }
1936
1936
  element() {
1937
- return vn.info("element"), this._paintLoop(), this._canvas;
1937
+ return _n.info("element"), this._paintLoop(), this._canvas;
1938
1938
  }
1939
1939
  stop() {
1940
1940
  this._stopped = !0;
@@ -2104,7 +2104,7 @@ class zc extends Ft {
2104
2104
  return ((e = this._volumeDetector) == null ? void 0 : e.volume) || 0;
2105
2105
  }
2106
2106
  }
2107
- class Sr extends zc {
2107
+ class yr extends zc {
2108
2108
  constructor() {
2109
2109
  super(...arguments), this._frameRate = 1;
2110
2110
  }
@@ -2118,7 +2118,7 @@ class Sr extends zc {
2118
2118
  return this._frameRate;
2119
2119
  }
2120
2120
  bindTrackSizeChangeEvent(e) {
2121
- e.on(Pe.SIZE_CHANGE, ({ width: t, height: n }) => {
2121
+ e.on(Oe.SIZE_CHANGE, ({ width: t, height: n }) => {
2122
2122
  this._width = t, this._height = n, this.emit(hc.SizeChange, {
2123
2123
  width: t,
2124
2124
  height: n
@@ -2134,7 +2134,7 @@ class Xn extends zc {
2134
2134
  return !0;
2135
2135
  }
2136
2136
  }
2137
- class th extends Sr {
2137
+ class th extends yr {
2138
2138
  constructor(e, t) {
2139
2139
  super({
2140
2140
  type: ce.Camera,
@@ -2151,37 +2151,37 @@ class th extends Sr {
2151
2151
  return null;
2152
2152
  }
2153
2153
  bindTrackEnd(e) {
2154
- this.source.on(Pe.ENDED, e);
2154
+ this.source.on(Oe.ENDED, e);
2155
2155
  }
2156
2156
  destroy() {
2157
2157
  this.source.destroy();
2158
2158
  }
2159
2159
  }
2160
- var Rc = typeof global == "object" && global && global.Object === Object && global, rh = typeof self == "object" && self && self.Object === Object && self, zt = Rc || rh || Function("return this")(), Nt = zt.Symbol, Dc = Object.prototype, nh = Dc.hasOwnProperty, ih = Dc.toString, Tr = Nt ? Nt.toStringTag : void 0;
2160
+ var Rc = typeof global == "object" && global && global.Object === Object && global, rh = typeof self == "object" && self && self.Object === Object && self, zt = Rc || rh || Function("return this")(), Nt = zt.Symbol, Dc = Object.prototype, nh = Dc.hasOwnProperty, ih = Dc.toString, kr = Nt ? Nt.toStringTag : void 0;
2161
2161
  function oh(r) {
2162
- var e = nh.call(r, Tr), t = r[Tr];
2162
+ var e = nh.call(r, kr), t = r[kr];
2163
2163
  try {
2164
- r[Tr] = void 0;
2164
+ r[kr] = void 0;
2165
2165
  var n = !0;
2166
2166
  } catch {
2167
2167
  }
2168
2168
  var i = ih.call(r);
2169
- return n && (e ? r[Tr] = t : delete r[Tr]), i;
2169
+ return n && (e ? r[kr] = t : delete r[kr]), i;
2170
2170
  }
2171
2171
  var sh = Object.prototype, ah = sh.toString;
2172
2172
  function ch(r) {
2173
2173
  return ah.call(r);
2174
2174
  }
2175
2175
  var uh = "[object Null]", dh = "[object Undefined]", ws = Nt ? Nt.toStringTag : void 0;
2176
- function br(r) {
2176
+ function Sr(r) {
2177
2177
  return r == null ? r === void 0 ? dh : uh : ws && ws in Object(r) ? oh(r) : ch(r);
2178
2178
  }
2179
- function gr(r) {
2179
+ function mr(r) {
2180
2180
  return r != null && typeof r == "object";
2181
2181
  }
2182
2182
  var lh = "[object Symbol]";
2183
2183
  function Zn(r) {
2184
- return typeof r == "symbol" || gr(r) && br(r) == lh;
2184
+ return typeof r == "symbol" || mr(r) && Sr(r) == lh;
2185
2185
  }
2186
2186
  function Ac(r, e) {
2187
2187
  for (var t = -1, n = r == null ? 0 : r.length, i = Array(n); ++t < n; )
@@ -2209,7 +2209,7 @@ var ph = /^\s+/;
2209
2209
  function mh(r) {
2210
2210
  return r && r.slice(0, fh(r) + 1).replace(ph, "");
2211
2211
  }
2212
- function Yr(r) {
2212
+ function Zr(r) {
2213
2213
  var e = typeof r;
2214
2214
  return r != null && (e == "object" || e == "function");
2215
2215
  }
@@ -2219,9 +2219,9 @@ function Sh(r) {
2219
2219
  return r;
2220
2220
  if (Zn(r))
2221
2221
  return Ts;
2222
- if (Yr(r)) {
2222
+ if (Zr(r)) {
2223
2223
  var e = typeof r.valueOf == "function" ? r.valueOf() : r;
2224
- r = Yr(e) ? e + "" : e;
2224
+ r = Zr(e) ? e + "" : e;
2225
2225
  }
2226
2226
  if (typeof r != "string")
2227
2227
  return r === 0 ? r : +r;
@@ -2248,9 +2248,9 @@ function kh(r) {
2248
2248
  }
2249
2249
  var Th = "[object AsyncFunction]", zh = "[object Function]", Rh = "[object GeneratorFunction]", Dh = "[object Proxy]";
2250
2250
  function xc(r) {
2251
- if (!Yr(r))
2251
+ if (!Zr(r))
2252
2252
  return !1;
2253
- var e = br(r);
2253
+ var e = Sr(r);
2254
2254
  return e == zh || e == Rh || e == Th || e == Dh;
2255
2255
  }
2256
2256
  var ui = zt["__core-js_shared__"], zs = function() {
@@ -2278,7 +2278,7 @@ var Mh = /[\\^$.*+?()[\]{}|]/g, Oh = /^\[object .+?Constructor\]$/, Ph = Functio
2278
2278
  "^" + Uh.call(Gh).replace(Mh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2279
2279
  );
2280
2280
  function Bh(r) {
2281
- if (!Yr(r) || Ah(r))
2281
+ if (!Zr(r) || Ah(r))
2282
2282
  return !1;
2283
2283
  var e = xc(r) ? Nh : Oh;
2284
2284
  return e.test(rr(r));
@@ -2286,11 +2286,11 @@ function Bh(r) {
2286
2286
  function Fh(r, e) {
2287
2287
  return r == null ? void 0 : r[e];
2288
2288
  }
2289
- function Er(r, e) {
2289
+ function br(r, e) {
2290
2290
  var t = Fh(r, e);
2291
2291
  return Bh(t) ? t : void 0;
2292
2292
  }
2293
- var Yi = Er(zt, "WeakMap");
2293
+ var Yi = br(zt, "WeakMap");
2294
2294
  function Vh(r, e, t, n) {
2295
2295
  for (var i = r.length, o = t + -1; ++o < i; )
2296
2296
  if (e(r[o], o, r))
@@ -2324,12 +2324,12 @@ function Kh(r, e) {
2324
2324
  }
2325
2325
  var Wh = "[object Arguments]";
2326
2326
  function Rs(r) {
2327
- return gr(r) && br(r) == Wh;
2327
+ return mr(r) && Sr(r) == Wh;
2328
2328
  }
2329
2329
  var Lc = Object.prototype, Jh = Lc.hasOwnProperty, Xh = Lc.propertyIsEnumerable, Uo = Rs(/* @__PURE__ */ function() {
2330
2330
  return arguments;
2331
2331
  }()) ? Rs : function(r) {
2332
- return gr(r) && Jh.call(r, "callee") && !Xh.call(r, "callee");
2332
+ return mr(r) && Jh.call(r, "callee") && !Xh.call(r, "callee");
2333
2333
  };
2334
2334
  function Zh() {
2335
2335
  return !1;
@@ -2338,16 +2338,16 @@ var Uc = typeof exports == "object" && exports && !exports.nodeType && exports,
2338
2338
  ge[gf] = ge[_f] = ge[vf] = ge[yf] = ge[Sf] = ge[bf] = ge[Ef] = ge[wf] = ge[Cf] = !0;
2339
2339
  ge[ef] = ge[tf] = ge[pf] = ge[rf] = ge[mf] = ge[nf] = ge[of] = ge[sf] = ge[af] = ge[cf] = ge[uf] = ge[df] = ge[lf] = ge[hf] = ge[ff] = !1;
2340
2340
  function kf(r) {
2341
- return gr(r) && Lo(r.length) && !!ge[br(r)];
2341
+ return mr(r) && Lo(r.length) && !!ge[Sr(r)];
2342
2342
  }
2343
2343
  function Tf(r) {
2344
2344
  return function(e) {
2345
2345
  return r(e);
2346
2346
  };
2347
2347
  }
2348
- var Gc = typeof exports == "object" && exports && !exports.nodeType && exports, Nr = Gc && typeof module == "object" && module && !module.nodeType && module, zf = Nr && Nr.exports === Gc, di = zf && Rc.process, Is = function() {
2348
+ var Gc = typeof exports == "object" && exports && !exports.nodeType && exports, Gr = Gc && typeof module == "object" && module && !module.nodeType && module, zf = Gr && Gr.exports === Gc, di = zf && Rc.process, Is = function() {
2349
2349
  try {
2350
- var r = Nr && Nr.require && Nr.require("util").types;
2350
+ var r = Gr && Gr.require && Gr.require("util").types;
2351
2351
  return r || di && di.binding && di.binding("util");
2352
2352
  } catch {
2353
2353
  }
@@ -2376,7 +2376,7 @@ function Nc(r) {
2376
2376
  Of.call(r, t) && t != "constructor" && e.push(t);
2377
2377
  return e;
2378
2378
  }
2379
- function hn(r) {
2379
+ function ln(r) {
2380
2380
  return Yn(r) ? Af(r) : Nc(r);
2381
2381
  }
2382
2382
  var Pf = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Lf = /^\w*$/;
@@ -2386,9 +2386,9 @@ function No(r, e) {
2386
2386
  var t = typeof r;
2387
2387
  return t == "number" || t == "symbol" || t == "boolean" || r == null || Zn(r) ? !0 : Lf.test(r) || !Pf.test(r) || e != null && r in Object(e);
2388
2388
  }
2389
- var Qr = Er(Object, "create");
2389
+ var Yr = br(Object, "create");
2390
2390
  function Uf() {
2391
- this.__data__ = Qr ? Qr(null) : {}, this.size = 0;
2391
+ this.__data__ = Yr ? Yr(null) : {}, this.size = 0;
2392
2392
  }
2393
2393
  function Gf(r) {
2394
2394
  var e = this.has(r) && delete this.__data__[r];
@@ -2397,7 +2397,7 @@ function Gf(r) {
2397
2397
  var Nf = "__lodash_hash_undefined__", Bf = Object.prototype, Ff = Bf.hasOwnProperty;
2398
2398
  function Vf(r) {
2399
2399
  var e = this.__data__;
2400
- if (Qr) {
2400
+ if (Yr) {
2401
2401
  var t = e[r];
2402
2402
  return t === Nf ? void 0 : t;
2403
2403
  }
@@ -2406,12 +2406,12 @@ function Vf(r) {
2406
2406
  var jf = Object.prototype, Hf = jf.hasOwnProperty;
2407
2407
  function $f(r) {
2408
2408
  var e = this.__data__;
2409
- return Qr ? e[r] !== void 0 : Hf.call(e, r);
2409
+ return Yr ? e[r] !== void 0 : Hf.call(e, r);
2410
2410
  }
2411
2411
  var qf = "__lodash_hash_undefined__";
2412
2412
  function Kf(r, e) {
2413
2413
  var t = this.__data__;
2414
- return this.size += this.has(r) ? 0 : 1, t[r] = Qr && e === void 0 ? qf : e, this;
2414
+ return this.size += this.has(r) ? 0 : 1, t[r] = Yr && e === void 0 ? qf : e, this;
2415
2415
  }
2416
2416
  function Yt(r) {
2417
2417
  var e = -1, t = r == null ? 0 : r.length;
@@ -2465,11 +2465,11 @@ Rt.prototype.delete = Zf;
2465
2465
  Rt.prototype.get = Yf;
2466
2466
  Rt.prototype.has = Qf;
2467
2467
  Rt.prototype.set = ep;
2468
- var en = Er(zt, "Map");
2468
+ var Qr = br(zt, "Map");
2469
2469
  function tp() {
2470
2470
  this.size = 0, this.__data__ = {
2471
2471
  hash: new Yt(),
2472
- map: new (en || Rt)(),
2472
+ map: new (Qr || Rt)(),
2473
2473
  string: new Yt()
2474
2474
  };
2475
2475
  }
@@ -2579,7 +2579,7 @@ function bp(r, e) {
2579
2579
  var t = this.__data__;
2580
2580
  if (t instanceof Rt) {
2581
2581
  var n = t.__data__;
2582
- if (!en || n.length < Sp - 1)
2582
+ if (!Qr || n.length < Sp - 1)
2583
2583
  return n.push([r, e]), this.size = ++t.size, this;
2584
2584
  t = this.__data__ = new Dt(n);
2585
2585
  }
@@ -2614,11 +2614,11 @@ function Tp(r, e, t) {
2614
2614
  return ze(r) ? n : mp(n, t(r));
2615
2615
  }
2616
2616
  function Os(r) {
2617
- return Tp(r, hn, kp);
2617
+ return Tp(r, ln, kp);
2618
2618
  }
2619
- var Qi = Er(zt, "DataView"), eo = Er(zt, "Promise"), to = Er(zt, "Set"), Ps = "[object Map]", zp = "[object Object]", Ls = "[object Promise]", Us = "[object Set]", Gs = "[object WeakMap]", Ns = "[object DataView]", Rp = rr(Qi), Dp = rr(en), Ap = rr(eo), Ip = rr(to), xp = rr(Yi), Et = br;
2620
- (Qi && Et(new Qi(new ArrayBuffer(1))) != Ns || en && Et(new en()) != Ps || eo && Et(eo.resolve()) != Ls || to && Et(new to()) != Us || Yi && Et(new Yi()) != Gs) && (Et = function(r) {
2621
- var e = br(r), t = e == zp ? r.constructor : void 0, n = t ? rr(t) : "";
2619
+ var Qi = br(zt, "DataView"), eo = br(zt, "Promise"), to = br(zt, "Set"), Ps = "[object Map]", zp = "[object Object]", Ls = "[object Promise]", Us = "[object Set]", Gs = "[object WeakMap]", Ns = "[object DataView]", Rp = rr(Qi), Dp = rr(Qr), Ap = rr(eo), Ip = rr(to), xp = rr(Yi), Et = Sr;
2620
+ (Qi && Et(new Qi(new ArrayBuffer(1))) != Ns || Qr && Et(new Qr()) != Ps || eo && Et(eo.resolve()) != Ls || to && Et(new to()) != Us || Yi && Et(new Yi()) != Gs) && (Et = function(r) {
2621
+ var e = Sr(r), t = e == zp ? r.constructor : void 0, n = t ? rr(t) : "";
2622
2622
  if (n)
2623
2623
  switch (n) {
2624
2624
  case Rp:
@@ -2771,11 +2771,11 @@ function om(r, e, t, n, i, o) {
2771
2771
  }
2772
2772
  return o.delete(r), o.delete(e), z;
2773
2773
  }
2774
- var sm = 1, Vs = "[object Arguments]", js = "[object Array]", yn = "[object Object]", am = Object.prototype, Hs = am.hasOwnProperty;
2774
+ var sm = 1, Vs = "[object Arguments]", js = "[object Array]", vn = "[object Object]", am = Object.prototype, Hs = am.hasOwnProperty;
2775
2775
  function cm(r, e, t, n, i, o) {
2776
2776
  var a = ze(r), s = ze(e), d = a ? js : Et(r), c = s ? js : Et(e);
2777
- d = d == Vs ? yn : d, c = c == Vs ? yn : c;
2778
- var u = d == yn, f = c == yn, h = d == c;
2777
+ d = d == Vs ? vn : d, c = c == Vs ? vn : c;
2778
+ var u = d == vn, f = c == vn, h = d == c;
2779
2779
  if (h && On(r)) {
2780
2780
  if (!On(e))
2781
2781
  return !1;
@@ -2793,7 +2793,7 @@ function cm(r, e, t, n, i, o) {
2793
2793
  return h ? (o || (o = new kt()), om(r, e, t, n, i, o)) : !1;
2794
2794
  }
2795
2795
  function Fo(r, e, t, n, i) {
2796
- return r === e ? !0 : r == null || e == null || !gr(r) && !gr(e) ? r !== r && e !== e : cm(r, e, t, n, Fo, i);
2796
+ return r === e ? !0 : r == null || e == null || !mr(r) && !mr(e) ? r !== r && e !== e : cm(r, e, t, n, Fo, i);
2797
2797
  }
2798
2798
  var um = 1, dm = 2;
2799
2799
  function lm(r, e, t, n) {
@@ -2820,10 +2820,10 @@ function lm(r, e, t, n) {
2820
2820
  return !0;
2821
2821
  }
2822
2822
  function Hc(r) {
2823
- return r === r && !Yr(r);
2823
+ return r === r && !Zr(r);
2824
2824
  }
2825
2825
  function hm(r) {
2826
- for (var e = hn(r), t = e.length; t--; ) {
2826
+ for (var e = ln(r), t = e.length; t--; ) {
2827
2827
  var n = e[t], i = r[n];
2828
2828
  e[t] = [n, i, Hc(i)];
2829
2829
  }
@@ -2891,7 +2891,7 @@ function wm(r) {
2891
2891
  }
2892
2892
  var Cm = wm();
2893
2893
  function km(r, e) {
2894
- return r && Cm(r, e, hn);
2894
+ return r && Cm(r, e, ln);
2895
2895
  }
2896
2896
  function Tm(r, e) {
2897
2897
  return function(t, n) {
@@ -2920,7 +2920,7 @@ function Dm(r) {
2920
2920
  var i = Object(e);
2921
2921
  if (!Yn(e)) {
2922
2922
  var o = Vo(t);
2923
- e = hn(e), t = function(s) {
2923
+ e = ln(e), t = function(s) {
2924
2924
  return o(i[s], s, i);
2925
2925
  };
2926
2926
  }
@@ -2936,14 +2936,14 @@ function Im(r, e, t) {
2936
2936
  var i = t == null ? 0 : Ch(t);
2937
2937
  return i < 0 && (i = Am(n + i, 0)), Vh(r, Vo(e), i);
2938
2938
  }
2939
- var tn = Dm(Im);
2939
+ var en = Dm(Im);
2940
2940
  function xm(r, e) {
2941
2941
  return Ac(e, function(t) {
2942
2942
  return r[t];
2943
2943
  });
2944
2944
  }
2945
2945
  function vt(r) {
2946
- return r == null ? [] : xm(r, hn(r));
2946
+ return r == null ? [] : xm(r, ln(r));
2947
2947
  }
2948
2948
  var Mm = "[object Map]", Om = "[object Set]", Pm = Object.prototype, Lm = Pm.hasOwnProperty;
2949
2949
  function Um(r) {
@@ -2978,22 +2978,22 @@ class Nm extends Xn {
2978
2978
  return this.source.node();
2979
2979
  }
2980
2980
  bindTrackEnd(e) {
2981
- this.source.on(Pe.ENDED, e);
2981
+ this.source.on(Oe.ENDED, e);
2982
2982
  }
2983
2983
  destroy() {
2984
2984
  this.source.destroy();
2985
2985
  }
2986
2986
  }
2987
- class Bm extends Sr {
2987
+ class Bm extends yr {
2988
2988
  constructor(e) {
2989
2989
  super({
2990
2990
  type: ce.VideoFile,
2991
2991
  stream: e
2992
2992
  });
2993
- const t = tn(
2993
+ const t = en(
2994
2994
  e,
2995
2995
  (i) => i.kind === he.VIDEO
2996
- ), n = tn(
2996
+ ), n = en(
2997
2997
  e,
2998
2998
  (i) => i.kind === he.AUDIO
2999
2999
  );
@@ -3009,23 +3009,23 @@ class Bm extends Sr {
3009
3009
  }
3010
3010
  bindTrackEnd(e) {
3011
3011
  var t;
3012
- (t = this._videoStream) == null || t.on(Pe.ENDED, e);
3012
+ (t = this._videoStream) == null || t.on(Oe.ENDED, e);
3013
3013
  }
3014
3014
  destroy() {
3015
3015
  var e, t;
3016
3016
  (e = this._videoStream) == null || e.destroy(), (t = this._audioStream) == null || t.destroy(), delete this._trackMap.video, delete this._trackMap.audio;
3017
3017
  }
3018
3018
  }
3019
- class Fm extends Sr {
3019
+ class Fm extends yr {
3020
3020
  constructor(e, t) {
3021
3021
  super({
3022
3022
  type: ce.Screen,
3023
3023
  stream: e
3024
3024
  });
3025
- const n = tn(
3025
+ const n = en(
3026
3026
  e,
3027
3027
  (o) => o.kind === he.VIDEO
3028
- ), i = tn(
3028
+ ), i = en(
3029
3029
  e,
3030
3030
  (o) => o.kind === he.AUDIO
3031
3031
  );
@@ -3041,7 +3041,7 @@ class Fm extends Sr {
3041
3041
  }
3042
3042
  bindTrackEnd(e) {
3043
3043
  var t;
3044
- (t = this._videoStream) == null || t.on(Pe.ENDED, e);
3044
+ (t = this._videoStream) == null || t.on(Oe.ENDED, e);
3045
3045
  }
3046
3046
  destroy() {
3047
3047
  var e, t;
@@ -3054,7 +3054,7 @@ class Vm extends Xn {
3054
3054
  type: ce.AudioFile,
3055
3055
  stream: e
3056
3056
  });
3057
- const t = tn(
3057
+ const t = en(
3058
3058
  e,
3059
3059
  (n) => n.kind === he.AUDIO
3060
3060
  );
@@ -3066,14 +3066,14 @@ class Vm extends Xn {
3066
3066
  }
3067
3067
  bindTrackEnd(e) {
3068
3068
  var t;
3069
- (t = this._audioStream) == null || t.on(Pe.ENDED, e);
3069
+ (t = this._audioStream) == null || t.on(Oe.ENDED, e);
3070
3070
  }
3071
3071
  destroy() {
3072
3072
  var e;
3073
3073
  (e = this._audioStream) == null || e.destroy();
3074
3074
  }
3075
3075
  }
3076
- class jm extends Sr {
3076
+ class jm extends yr {
3077
3077
  constructor(e) {
3078
3078
  super({
3079
3079
  type: ce.Image,
@@ -3090,13 +3090,13 @@ class jm extends Sr {
3090
3090
  return this.source.node();
3091
3091
  }
3092
3092
  bindTrackEnd(e) {
3093
- this.source.on(Pe.ENDED, e);
3093
+ this.source.on(Oe.ENDED, e);
3094
3094
  }
3095
3095
  destroy() {
3096
3096
  this.source.destroy();
3097
3097
  }
3098
3098
  }
3099
- class Hm extends Sr {
3099
+ class Hm extends yr {
3100
3100
  constructor(e) {
3101
3101
  super({
3102
3102
  type: ce.CustomVideo,
@@ -3113,7 +3113,7 @@ class Hm extends Sr {
3113
3113
  return null;
3114
3114
  }
3115
3115
  bindTrackEnd(e) {
3116
- this.source.on(Pe.ENDED, e);
3116
+ this.source.on(Oe.ENDED, e);
3117
3117
  }
3118
3118
  destroy() {
3119
3119
  this.source.destroy();
@@ -3135,7 +3135,7 @@ class $m extends Xn {
3135
3135
  }
3136
3136
  bindTrackEnd(e) {
3137
3137
  var t;
3138
- (t = this._audioStream) == null || t.on(Pe.ENDED, e);
3138
+ (t = this._audioStream) == null || t.on(Oe.ENDED, e);
3139
3139
  }
3140
3140
  destroy() {
3141
3141
  var e;
@@ -3144,12 +3144,12 @@ class $m extends Xn {
3144
3144
  }
3145
3145
  const qm = ["user", "environment"], Km = 18e4, Wm = 1e4, Kc = 1e3, Jm = 15;
3146
3146
  var We = /* @__PURE__ */ ((r) => (r[r.OPEN_CAMERA_FAILED = 1001] = "OPEN_CAMERA_FAILED", r[r.OPEN_MICROPHONE_FAILED = 1002] = "OPEN_MICROPHONE_FAILED", r[r.OPEN_SCREEN_FAILED = 1003] = "OPEN_SCREEN_FAILED", r[r.VIDEO_FILE_CAPTURE_FAILED = 1004] = "VIDEO_FILE_CAPTURE_FAILED", r[r.AUDIO_FILE_CAPTURE_FAILED = 1005] = "AUDIO_FILE_CAPTURE_FAILED", r[r.IMAGE_FILE_CAPTURE_FAILED = 1006] = "IMAGE_FILE_CAPTURE_FAILED", r[r.VOLUME_DETECT_FAILED = 1008] = "VOLUME_DETECT_FAILED", r[r.PUBLISH_FAILED = 2001] = "PUBLISH_FAILED", r[r.UPDATE_PUBLISH_FAILED = 2002] = "UPDATE_PUBLISH_FAILED", r[r.PUSH_CONNECT_FAILED = 2003] = "PUSH_CONNECT_FAILED", r[r.AUDIO_RESUME_FAILED = 2004] = "AUDIO_RESUME_FAILED", r))(We || {});
3147
- class lr extends Error {
3147
+ class dr extends Error {
3148
3148
  constructor(e, t, n) {
3149
3149
  super(), this.code = e, this.message = t, n && (this.ext = n);
3150
3150
  }
3151
3151
  }
3152
- function _r(r, e, t) {
3152
+ function gr(r, e, t) {
3153
3153
  const n = qi.Landscape;
3154
3154
  if (e === "video") {
3155
3155
  const d = (n === qi.Landscape ? cc : uc)[r], [c, u, f, h] = d.split("x").map((g) => Number(g));
@@ -3272,7 +3272,7 @@ function Xm(r, e) {
3272
3272
  }
3273
3273
  return a;
3274
3274
  }
3275
- function rn() {
3275
+ function tn() {
3276
3276
  for (var r = [], e = 0; e < arguments.length; e++) r = r.concat(Xm(arguments[e]));
3277
3277
  return r;
3278
3278
  }
@@ -3298,7 +3298,7 @@ var $s, Zm = function() {
3298
3298
  this._cache.indexOf(n) !== -1 ? this._emit(e, t) : (this._hooksCache.hasOwnProperty(n) || (this._hooksCache[n] = {}), this._hooksCache[n].hasOwnProperty(e) || (this._hooksCache[n][e] = []), this._hooksCache[n][e].push(t));
3299
3299
  } else this._emit(e, t);
3300
3300
  }, r.prototype._emit = function(e, t) {
3301
- e && this._hooks[e] && this._hooks[e].length && rn(this._hooks[e]).forEach(function(n) {
3301
+ e && this._hooks[e] && this._hooks[e].length && tn(this._hooks[e]).forEach(function(n) {
3302
3302
  try {
3303
3303
  n(t);
3304
3304
  } catch {
@@ -3307,13 +3307,13 @@ var $s, Zm = function() {
3307
3307
  }, r.prototype.set = function(e) {
3308
3308
  e && this._cache.indexOf(e) === -1 && this._cache.push(e);
3309
3309
  }, r;
3310
- }(), nn = function(r) {
3310
+ }(), rn = function(r) {
3311
3311
  return r != null && Object.prototype.toString.call(r) == "[object Object]";
3312
3312
  }, jo = function(r) {
3313
3313
  return Array.isArray(r);
3314
3314
  }, Ym = ($s = +Date.now() + Number(("" + Math.random()).slice(2, 8)), function() {
3315
3315
  return $s += 1;
3316
- }), on = function(r) {
3316
+ }), nn = function(r) {
3317
3317
  return function(e, t, n) {
3318
3318
  if (typeof e == "string" && typeof n == "number") {
3319
3319
  var i, o = [];
@@ -3331,7 +3331,7 @@ var $s, Zm = function() {
3331
3331
  }(r, 64, 25);
3332
3332
  }, Wc = function() {
3333
3333
  return !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
3334
- }, fn = function(r) {
3334
+ }, hn = function(r) {
3335
3335
  Wc() ? window.addEventListener("pagehide", r, !1) : window.addEventListener("beforeunload", r, !1);
3336
3336
  }, Jc = function() {
3337
3337
  var r = 0;
@@ -3357,14 +3357,14 @@ var $s, Zm = function() {
3357
3357
  } catch {
3358
3358
  }
3359
3359
  return e;
3360
- }, Sn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3360
+ }, yn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3361
3361
  function hi() {
3362
3362
  throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");
3363
3363
  }
3364
3364
  function Xc(r, e) {
3365
3365
  return r(e = { exports: {} }, e.exports), e.exports;
3366
3366
  }
3367
- var Br = Xc(function(r, e) {
3367
+ var Nr = Xc(function(r, e) {
3368
3368
  var t;
3369
3369
  t = function() {
3370
3370
  function n() {
@@ -3477,7 +3477,7 @@ var Br = Xc(function(r, e) {
3477
3477
  n.exports = function(z) {
3478
3478
  g.push(z) !== 1 || s || a();
3479
3479
  };
3480
- }).call(this, Sn !== void 0 ? Sn : typeof self < "u" ? self : typeof window < "u" ? window : {});
3480
+ }).call(this, yn !== void 0 ? yn : typeof self < "u" ? self : typeof window < "u" ? window : {});
3481
3481
  }, {}], 2: [function(t, n, i) {
3482
3482
  var o = t(1);
3483
3483
  function a() {
@@ -3591,7 +3591,7 @@ var Br = Xc(function(r, e) {
3591
3591
  }, { 1: 1 }], 3: [function(t, n, i) {
3592
3592
  (function(o) {
3593
3593
  typeof o.Promise != "function" && (o.Promise = t(2));
3594
- }).call(this, Sn !== void 0 ? Sn : typeof self < "u" ? self : typeof window < "u" ? window : {});
3594
+ }).call(this, yn !== void 0 ? yn : typeof self < "u" ? self : typeof window < "u" ? window : {});
3595
3595
  }, { 2: 2 }], 4: [function(t, n, i) {
3596
3596
  var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(y) {
3597
3597
  return typeof y;
@@ -4351,7 +4351,7 @@ var Br = Xc(function(r, e) {
4351
4351
  }
4352
4352
  }() || localStorage.length > 0;
4353
4353
  }
4354
- var Le = { _driver: "localStorageWrapper", _initStorage: function(y) {
4354
+ var Pe = { _driver: "localStorageWrapper", _initStorage: function(y) {
4355
4355
  var l = {};
4356
4356
  if (y) for (var p in y) l[p] = y[p];
4357
4357
  return l.keyPrefix = Re(y, this._defaultConfig), At() ? (this._dbInfo = l, l.serializer = Se, d.resolve()) : d.reject();
@@ -4462,7 +4462,7 @@ var Br = Xc(function(r, e) {
4462
4462
  return !1;
4463
4463
  }, gt = Array.isArray || function(y) {
4464
4464
  return Object.prototype.toString.call(y) === "[object Array]";
4465
- }, He = {}, Te = {}, De = { INDEXEDDB: Z, WEBSQL: pe, LOCALSTORAGE: Le }, Ue = [De.INDEXEDDB._driver, De.WEBSQL._driver, De.LOCALSTORAGE._driver], Ge = ["dropInstance"], Ne = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ge), Ze = { description: "", driver: Ue.slice(), name: "localforage", size: 4980736, storeName: "keyvaluepairs", version: 1 };
4465
+ }, He = {}, Te = {}, De = { INDEXEDDB: Z, WEBSQL: pe, LOCALSTORAGE: Pe }, Le = [De.INDEXEDDB._driver, De.WEBSQL._driver, De.LOCALSTORAGE._driver], Ue = ["dropInstance"], Ge = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ue), Ze = { description: "", driver: Le.slice(), name: "localforage", size: 4980736, storeName: "keyvaluepairs", version: 1 };
4466
4466
  function _t(y, l) {
4467
4467
  y[l] = function() {
4468
4468
  var p = arguments;
@@ -4504,18 +4504,18 @@ var Br = Xc(function(r, e) {
4504
4504
  try {
4505
4505
  var C = l._driver, R = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
4506
4506
  if (!l._driver) return void S(R);
4507
- for (var D = Ne.concat("_initStorage"), A = 0, M = D.length; A < M; A++) {
4507
+ for (var D = Ge.concat("_initStorage"), A = 0, M = D.length; A < M; A++) {
4508
4508
  var N = D[A];
4509
- if ((!It(Ge, N) || l[N]) && typeof l[N] != "function") return void S(R);
4509
+ if ((!It(Ue, N) || l[N]) && typeof l[N] != "function") return void S(R);
4510
4510
  }
4511
4511
  (function() {
4512
4512
  for (var q = function(jt) {
4513
4513
  return function() {
4514
- var ni = new Error("Method " + jt + " is not implemented by the current driver"), _n = d.reject(ni);
4515
- return c(_n, arguments[arguments.length - 1]), _n;
4514
+ var ni = new Error("Method " + jt + " is not implemented by the current driver"), gn = d.reject(ni);
4515
+ return c(gn, arguments[arguments.length - 1]), gn;
4516
4516
  };
4517
- }, Q = 0, me = Ge.length; Q < me; Q++) {
4518
- var $e = Ge[Q];
4517
+ }, Q = 0, me = Ue.length; Q < me; Q++) {
4518
+ var $e = Ue[Q];
4519
4519
  l[$e] || (l[$e] = q($e));
4520
4520
  }
4521
4521
  })();
@@ -4588,7 +4588,7 @@ var Br = Xc(function(r, e) {
4588
4588
  }
4589
4589
  return p;
4590
4590
  }, y.prototype._wrapLibraryMethodsWithReady = function() {
4591
- for (var l = 0, p = Ne.length; l < p; l++) _t(this, Ne[l]);
4591
+ for (var l = 0, p = Ge.length; l < p; l++) _t(this, Ge[l]);
4592
4592
  }, y.prototype.createInstance = function(l) {
4593
4593
  return new y(l);
4594
4594
  }, y;
@@ -4734,7 +4734,7 @@ var Br = Xc(function(r, e) {
4734
4734
  this.cache.removeItem(e);
4735
4735
  }, r.prototype.getCookie = function(e, t) {
4736
4736
  try {
4737
- return Br.get(e);
4737
+ return Nr.get(e);
4738
4738
  } catch {
4739
4739
  return "";
4740
4740
  }
@@ -4742,12 +4742,12 @@ var Br = Xc(function(r, e) {
4742
4742
  n === void 0 && (n = this.defaultExpireTime);
4743
4743
  try {
4744
4744
  var o = i || document.domain, a = +/* @__PURE__ */ new Date() + n;
4745
- Br.set(e, t, { expires: new Date(a), path: "/", domain: o });
4745
+ Nr.set(e, t, { expires: new Date(a), path: "/", domain: o });
4746
4746
  } catch {
4747
4747
  }
4748
4748
  }, r.prototype.removeCookie = function(e, t) {
4749
4749
  try {
4750
- Br.remove(e, { path: "/", domain: t || "" });
4750
+ Nr.remove(e, { path: "/", domain: t || "" });
4751
4751
  } catch {
4752
4752
  }
4753
4753
  }, r;
@@ -4838,14 +4838,14 @@ var Br = Xc(function(r, e) {
4838
4838
  }, r;
4839
4839
  }(), $o = function(r, e) {
4840
4840
  try {
4841
- return Br.get(r);
4841
+ return Nr.get(r);
4842
4842
  } catch {
4843
4843
  return "";
4844
4844
  }
4845
4845
  }, qo = function(r, e, t, n) {
4846
4846
  try {
4847
4847
  var i = n || document.domain, o = +/* @__PURE__ */ new Date() + (t || 6048e5);
4848
- Br.set(r, e, { expires: new Date(o), path: "/", domain: i });
4848
+ Nr.set(r, e, { expires: new Date(o), path: "/", domain: i });
4849
4849
  } catch {
4850
4850
  }
4851
4851
  }, og = function() {
@@ -4946,8 +4946,8 @@ var Br = Xc(function(r, e) {
4946
4946
  return new Set(Object.keys(Ko));
4947
4947
  }, pi = function() {
4948
4948
  return Object.keys(Ko);
4949
- }, Ks = { sg: "1fz22z22z1nz21z4mz4bz4bz21z1ez18z1jz1gz49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k", va: "1fz22z22z1nz21z4mz4bz4bz1kz18z1jz1gz24z18z49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k", my: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z19z1bz49z1kz27z4az1jz18z20z1iz1mz1dz1dz1gz1az1cz4az1az1mz1k" }, oo = { va: "1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k", sg: "1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k", in: "1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k" }, ag = { sg: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z21z1ez4az22z1gz1iz22z1mz1iz24z4az1az1mz1k", va: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k", in: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z49z23z21z1cz18z21z22z4ez18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k", ie2: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23" }, cg = { sg: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1gz1iz22z1mz1iz25z4az23z21", va: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1gz1iz22z1mz1iz24z4az23z21", ie2: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23" }, sn = "5.3.11_oversea", ug = ["1fz22z22z1nz21z4mz4bz4bz1bz18z22z18z4az19z27z22z1cz1bz18z1lz1az1cz4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz22z1cz18z49z24z18z4az22z1gz1iz22z1mz1iz49z20z1mz25z4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz22z1cz18z4az22z1gz1iz22z1mz1iz49z1cz23z4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz22z1cz18z4az22z1gz1iz22z1mz1iz49z23z21z22z21z4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz1gz1mz49z21z1ez4az22z1gz1iz22z1mz1iz49z20z1mz25z4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz1gz1mz49z24z18z4az22z1gz1iz22z1mz1iz49z20z1mz25z4az1lz1cz22"].map(function(r) {
4950
- return on(r);
4949
+ }, Ks = { sg: "1fz22z22z1nz21z4mz4bz4bz21z1ez18z1jz1gz49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k", va: "1fz22z22z1nz21z4mz4bz4bz1kz18z1jz1gz24z18z49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k", my: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z19z1bz49z1kz27z4az1jz18z20z1iz1mz1dz1dz1gz1az1cz4az1az1mz1k" }, oo = { va: "1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k", sg: "1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k", in: "1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k" }, ag = { sg: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z21z1ez4az22z1gz1iz22z1mz1iz24z4az1az1mz1k", va: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k", in: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z49z23z21z1cz18z21z22z4ez18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k", ie2: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23" }, cg = { sg: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1gz1iz22z1mz1iz25z4az23z21", va: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1gz1iz22z1mz1iz24z4az23z21", ie2: "1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23" }, on = "5.3.11_oversea", ug = ["1fz22z22z1nz21z4mz4bz4bz1bz18z22z18z4az19z27z22z1cz1bz18z1lz1az1cz4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz22z1cz18z49z24z18z4az22z1gz1iz22z1mz1iz49z20z1mz25z4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz22z1cz18z4az22z1gz1iz22z1mz1iz49z1cz23z4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz22z1cz18z4az22z1gz1iz22z1mz1iz49z23z21z22z21z4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz1gz1mz49z21z1ez4az22z1gz1iz22z1mz1iz49z20z1mz25z4az1lz1cz22", "1fz22z22z1nz21z4mz4bz4bz1gz1mz49z24z18z4az22z1gz1iz22z1mz1iz49z20z1mz25z4az1lz1cz22"].map(function(r) {
4950
+ return nn(r);
4951
4951
  });
4952
4952
  (function(r) {
4953
4953
  r.Init = "init", r.Config = "config", r.Start = "start", r.Ready = "ready", r.TokenComplete = "token-complete", r.TokenStorage = "token-storage", r.TokenFetch = "token-fetch", r.TokenError = "token-error", r.ConfigUuid = "config-uuid", r.ConfigWebId = "config-webid", r.ConfigDiD = "config-deviceid", r.ConfigDomain = "config-domain", r.CustomWebId = "custom-webid", r.TokenChange = "token-change", r.TokenReset = "token-reset", r.ConfigTransform = "config-transform", r.EnvTransform = "env-transform", r.SessionReset = "session-reset", r.SessionResetTime = "session-reset-time", r.Event = "event", r.Events = "events", r.EventNow = "event-now", r.CleanEvents = "clean-events", r.BeconEvent = "becon-event", r.SubmitBefore = "submit-before", r.SubmitScuess = "submit-scuess", r.SubmitAfter = "submit-after", r.SubmitError = "submit-error", r.SubmitVerify = "submit-verify", r.DestoryInstance = "destory-instance", r.LogSettingReady = "log-setting-ready", r.Stay = "stay", r.ResetStay = "reset-stay", r.StayReady = "stay-ready", r.SetStay = "set-stay", r.RouteChange = "route-change", r.RouteReady = "route-ready", r.Ab = "ab", r.AbVar = "ab-var", r.AbAllVars = "ab-all-vars", r.AbConfig = "ab-config", r.AbExternalVersion = "ab-external-version", r.AbVersionChangeOn = "ab-version-change-on", r.AbVersionChangeOff = "ab-version-change-off", r.AbOpenLayer = "ab-open-layer", r.AbCloseLayer = "ab-close-layer", r.AbReady = "ab-ready", r.AbComplete = "ab-complete", r.AbTimeout = "ab-timeout", r.AbVerify = "ab-verify", r.Profile = "profile", r.ProfileSet = "profile-set", r.ProfileSetOnce = "profile-set-once", r.ProfileUnset = "profile-unset", r.ProfileIncrement = "profile-increment", r.ProfileAppend = "profile-append", r.ProfileClear = "profile-clear", r.Autotrack = "autotrack", r.AutotrackReady = "autotrack-ready", r.CepReady = "cep-ready", r.TracerReady = "tracer-ready", r.sessionRecord = "session-record", r.SessionRecordStart = "session-record-start", r.SessionRecordPause = "session-record-pause", r.SessionRecordEnd = "session-record-end", r.SessionRecordReport = "session-record-report", r.TrackEventDuration = "track-event-duration", r.TrackEventDurationStart = "track-event-duration-start", r.TrackEventDurationEnd = "track-event-duration-end", r.TrackEventDurationPause = "track-event-duration-pause", r.TrackEventDurationResume = "tracl-event-duration-resume", r.VisualCollectReady = "visual-collect-ready", r.VisualApiReady = "visual-api-ready", r.VisualApiUpdate = "visual-api-update";
@@ -4961,7 +4961,7 @@ var F = io, ie = void 0, Yc = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
4961
4961
  var i = new ig(t.app_id, t.cookie_domain || "", t.cookie_expire || 6048e5).init(), o = "__tea_cache_first_" + t.app_id;
4962
4962
  this.configKey = "__tea_cache_config_" + t.app_id, this.sessionStorage = new Qt(!1, "session"), this.localStorage = new Qt(!1, "local"), this.channelUrl = this.getChannelForUrl(), this.current_env = "row", t.configPersist && (this.configPersist = !0, this.storage = t.configPersist === 1 ? this.sessionStorage : this.localStorage);
4963
4963
  var a = this.localStorage.getItem(o);
4964
- a && a == 1 ? this.is_first_time = !1 : (this.is_first_time = !0, this.localStorage.setItem(o, "1")), this.envInfo = { user: { user_unique_id: ie, user_type: ie, user_id: ie, user_is_auth: ie, user_is_login: ie, device_id: ie, web_id: ie, ip_addr_id: ie, user_unique_id_type: ie }, header: { app_id: ie, app_name: ie, app_install_id: ie, install_id: ie, app_package: ie, app_channel: ie, app_version: ie, ab_version: ie, os_name: i.os_name, os_version: i.os_version, device_model: i.device_model, ab_client: ie, traffic_type: ie, network_type: i.network_type, client_ip: ie, device_brand: ie, os_api: ie, access: ie, language: i.language, region: ie, app_language: ie, app_region: ie, creative_id: i.utm.creative_id, ad_id: i.utm.ad_id, campaign_id: i.utm.campaign_id, log_type: ie, rnd: ie, platform: i.platform, sdk_version: sn, sdk_lib: "js", province: ie, city: ie, timezone: dg, tz_offset: lg, tz_name: ie, sim_region: ie, carrier: ie, resolution: i.screen_width + "x" + i.screen_height, browser: i.browser, browser_version: i.browser_version, referrer: i.referrer, referrer_host: i.referrer_host, width: i.screen_width, height: i.screen_height, screen_width: i.screen_width, screen_height: i.screen_height, utm_term: i.utm.utm_term, utm_content: i.utm.utm_content, utm_source: i.utm.utm_source, utm_medium: i.utm.utm_medium, utm_campaign: i.utm.utm_campaign, tracer_data: JSON.stringify(i.utm.tracer_data), custom: i.network_type ? { network_type: i.network_type } : {} } }, this.ab_version = "", this.ab_uuid_cache = {}, this.evtParams = {}, this.reportErrorCallback = function() {
4964
+ a && a == 1 ? this.is_first_time = !1 : (this.is_first_time = !0, this.localStorage.setItem(o, "1")), this.envInfo = { user: { user_unique_id: ie, user_type: ie, user_id: ie, user_is_auth: ie, user_is_login: ie, device_id: ie, web_id: ie, ip_addr_id: ie, user_unique_id_type: ie }, header: { app_id: ie, app_name: ie, app_install_id: ie, install_id: ie, app_package: ie, app_channel: ie, app_version: ie, ab_version: ie, os_name: i.os_name, os_version: i.os_version, device_model: i.device_model, ab_client: ie, traffic_type: ie, network_type: i.network_type, client_ip: ie, device_brand: ie, os_api: ie, access: ie, language: i.language, region: ie, app_language: ie, app_region: ie, creative_id: i.utm.creative_id, ad_id: i.utm.ad_id, campaign_id: i.utm.campaign_id, log_type: ie, rnd: ie, platform: i.platform, sdk_version: on, sdk_lib: "js", province: ie, city: ie, timezone: dg, tz_offset: lg, tz_name: ie, sim_region: ie, carrier: ie, resolution: i.screen_width + "x" + i.screen_height, browser: i.browser, browser_version: i.browser_version, referrer: i.referrer, referrer_host: i.referrer_host, width: i.screen_width, height: i.screen_height, screen_width: i.screen_width, screen_height: i.screen_height, utm_term: i.utm.utm_term, utm_content: i.utm.utm_content, utm_source: i.utm.utm_source, utm_medium: i.utm.utm_medium, utm_campaign: i.utm.utm_campaign, tracer_data: JSON.stringify(i.utm.tracer_data), custom: i.network_type ? { network_type: i.network_type } : {} } }, this.ab_version = "", this.ab_uuid_cache = {}, this.evtParams = {}, this.reportErrorCallback = function() {
4965
4965
  }, this.isLast = !1, this.setCustom(i), this.initDomain(), this.initABData(), this.collect.on("route-change", function(s) {
4966
4966
  n.changeReferInfo(s.config);
4967
4967
  });
@@ -4971,7 +4971,7 @@ var F = io, ie = void 0, Yc = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
4971
4971
  if (t) this.domain = t;
4972
4972
  else {
4973
4973
  var n = e || this.initConfig.report_channel || this.initConfig.channel, i = this.getChannelDomain(n);
4974
- i || (console.warn("current channel: " + n + " is not exist, use va instead, please check!!!!"), i = Ks.sg), this.domain = on(i), this.setCurrentEnv(this.domain);
4974
+ i || (console.warn("current channel: " + n + " is not exist, use va instead, please check!!!!"), i = Ks.sg), this.domain = nn(i), this.setCurrentEnv(this.domain);
4975
4975
  }
4976
4976
  }, r.prototype.setDomain = function(e) {
4977
4977
  this.customDomain = !0, this.domain = e, this.setCurrentEnv(this.domain);
@@ -5297,7 +5297,7 @@ var F = io, ie = void 0, Yc = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
5297
5297
  var e = this;
5298
5298
  window.addEventListener("unload", function() {
5299
5299
  e.reportAll(!0);
5300
- }, !1), fn(function() {
5300
+ }, !1), hn(function() {
5301
5301
  e.reportAll(!0);
5302
5302
  }), document.addEventListener("visibilitychange", function() {
5303
5303
  document.visibilityState === "hidden" && e.reportAll(!0);
@@ -5308,7 +5308,7 @@ var F = io, ie = void 0, Yc = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
5308
5308
  var t = this;
5309
5309
  if (!this.collect.destroy && !this.collect.sdkStop) try {
5310
5310
  if (this.config.enable_ios_sendbeacon && Wc()) return void this.beconEvent(e);
5311
- var n = rn(e, this.cacheStorgae.getItem(this.eventKey) || []);
5311
+ var n = tn(e, this.cacheStorgae.getItem(this.eventKey) || []);
5312
5312
  if (this.cacheStorgae.setItem(this.eventKey, n), this.reportTimeout && clearTimeout(this.reportTimeout), n.length >= this.maxReport) this.report(!1);
5313
5313
  else {
5314
5314
  var i = this.reportTime;
@@ -5321,7 +5321,7 @@ var F = io, ie = void 0, Yc = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
5321
5321
  }
5322
5322
  }, r.prototype.beconEvent = function(e) {
5323
5323
  if (!this.collect.destroy && !this.collect.sdkStop) {
5324
- var t = rn(e, this.cacheStorgae.getItem(this.beconKey) || []);
5324
+ var t = tn(e, this.cacheStorgae.getItem(this.beconKey) || []);
5325
5325
  if (this.cacheStorgae.setItem(this.beconKey, t), this.collect.tokenManager.getReady() && this.collect.sdkReady) {
5326
5326
  this.cacheStorgae.removeItem(this.beconKey);
5327
5327
  try {
@@ -5577,7 +5577,7 @@ var F = io, ie = void 0, Yc = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
5577
5577
  } else t("");
5578
5578
  });
5579
5579
  }, r;
5580
- }(), Or = function() {
5580
+ }(), Mr = function() {
5581
5581
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(r) {
5582
5582
  var e = 16 * Math.random() | 0;
5583
5583
  return (r === "x" ? e : 3 & e | 8).toString(16);
@@ -5596,11 +5596,11 @@ var F = io, ie = void 0, Yc = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
5596
5596
  var e = this.storage.getItem(this.sessionKey);
5597
5597
  if (e && e.sessionId) {
5598
5598
  var t = e.timestamp;
5599
- Date.now() - t > this.expireTime ? e = { sessionId: Or(), timestamp: Date.now() } : e.timestamp = Date.now(), this.storage.setItem(this.sessionKey, e), this.resetExpTime();
5599
+ Date.now() - t > this.expireTime ? e = { sessionId: Mr(), timestamp: Date.now() } : e.timestamp = Date.now(), this.storage.setItem(this.sessionKey, e), this.resetExpTime();
5600
5600
  }
5601
5601
  }, r.prototype.setSessionId = function() {
5602
5602
  var e = this, t = this.storage.getItem(this.sessionKey);
5603
- t && t.sessionId ? t.timestamp = Date.now() : t = { sessionId: Or(), timestamp: Date.now() }, this.storage.setItem(this.sessionKey, t), this.disableSessionTimeCheck || (this.sessionExp = setInterval(function() {
5603
+ t && t.sessionId ? t.timestamp = Date.now() : t = { sessionId: Mr(), timestamp: Date.now() }, this.storage.setItem(this.sessionKey, t), this.disableSessionTimeCheck || (this.sessionExp = setInterval(function() {
5604
5604
  e.checkEXp();
5605
5605
  }, this.expireTime));
5606
5606
  }, r.prototype.getSessionId = function() {
@@ -5612,27 +5612,27 @@ var F = io, ie = void 0, Yc = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
5612
5612
  e.checkEXp();
5613
5613
  }, this.expireTime));
5614
5614
  }, r.prototype.resetSessionId = function(e) {
5615
- var t = { sessionId: e || Or(), timestamp: Date.now() };
5615
+ var t = { sessionId: e || Mr(), timestamp: Date.now() };
5616
5616
  this.storage.setItem(this.sessionKey, t);
5617
5617
  }, r.prototype.checkEXp = function() {
5618
5618
  var e = this.storage.getItem(this.sessionKey);
5619
- e && e.sessionId && Date.now() - e.timestamp + 30 >= this.expireTime && (e = { sessionId: Or(), timestamp: Date.now() }, this.storage.setItem(this.sessionKey, e));
5619
+ e && e.sessionId && Date.now() - e.timestamp + 30 >= this.expireTime && (e = { sessionId: Mr(), timestamp: Date.now() }, this.storage.setItem(this.sessionKey, e));
5620
5620
  }, r;
5621
5621
  }();
5622
- function wr(r) {
5622
+ function Er(r) {
5623
5623
  let e = r.length;
5624
5624
  for (; --e >= 0; ) r[e] = 0;
5625
5625
  }
5626
5626
  const so = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]), zn = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), Sg = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), Ws = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), St = new Array(576);
5627
- wr(St);
5628
- const Pr = new Array(60);
5629
- wr(Pr);
5630
- const an = new Array(512);
5631
- wr(an);
5632
- const Fr = new Array(256);
5633
- wr(Fr);
5627
+ Er(St);
5628
+ const Or = new Array(60);
5629
+ Er(Or);
5630
+ const sn = new Array(512);
5631
+ Er(sn);
5632
+ const Br = new Array(256);
5633
+ Er(Br);
5634
5634
  const Wo = new Array(29);
5635
- wr(Wo);
5635
+ Er(Wo);
5636
5636
  const Un = new Array(30);
5637
5637
  function mi(r, e, t, n, i) {
5638
5638
  this.static_tree = r, this.extra_bits = e, this.extra_base = t, this.elems = n, this.max_length = i, this.has_stree = r && r.length;
@@ -5641,11 +5641,11 @@ let Js, Xs, Zs;
5641
5641
  function gi(r, e) {
5642
5642
  this.dyn_tree = r, this.max_code = 0, this.stat_desc = e;
5643
5643
  }
5644
- wr(Un);
5645
- const Qc = (r) => r < 256 ? an[r] : an[256 + (r >>> 7)], cn = (r, e) => {
5644
+ Er(Un);
5645
+ const Qc = (r) => r < 256 ? sn[r] : sn[256 + (r >>> 7)], an = (r, e) => {
5646
5646
  r.pending_buf[r.pending++] = 255 & e, r.pending_buf[r.pending++] = e >>> 8 & 255;
5647
5647
  }, Fe = (r, e, t) => {
5648
- r.bi_valid > 16 - t ? (r.bi_buf |= e << r.bi_valid & 65535, cn(r, r.bi_buf), r.bi_buf = e >> 16 - r.bi_valid, r.bi_valid += t - 16) : (r.bi_buf |= e << r.bi_valid & 65535, r.bi_valid += t);
5648
+ r.bi_valid > 16 - t ? (r.bi_buf |= e << r.bi_valid & 65535, an(r, r.bi_buf), r.bi_buf = e >> 16 - r.bi_valid, r.bi_valid += t - 16) : (r.bi_buf |= e << r.bi_valid & 65535, r.bi_valid += t);
5649
5649
  }, ht = (r, e, t) => {
5650
5650
  Fe(r, t[2 * e], t[2 * e + 1]);
5651
5651
  }, eu = (r, e) => {
@@ -5669,7 +5669,7 @@ const Qc = (r) => r < 256 ? an[r] : an[256 + (r >>> 7)], cn = (r, e) => {
5669
5669
  for (e = 0; e < 19; e++) r.bl_tree[2 * e] = 0;
5670
5670
  r.dyn_ltree[512] = 1, r.opt_len = r.static_len = 0, r.sym_next = r.matches = 0;
5671
5671
  }, ru = (r) => {
5672
- r.bi_valid > 8 ? cn(r, r.bi_buf) : r.bi_valid > 0 && (r.pending_buf[r.pending++] = r.bi_buf), r.bi_buf = 0, r.bi_valid = 0;
5672
+ r.bi_valid > 8 ? an(r, r.bi_buf) : r.bi_valid > 0 && (r.pending_buf[r.pending++] = r.bi_buf), r.bi_buf = 0, r.bi_valid = 0;
5673
5673
  }, Qs = (r, e, t, n) => {
5674
5674
  const i = 2 * e, o = 2 * t;
5675
5675
  return r[i] < r[o] || r[i] === r[o] && n[e] <= n[t];
@@ -5681,7 +5681,7 @@ const Qc = (r) => r < 256 ? an[r] : an[256 + (r >>> 7)], cn = (r, e) => {
5681
5681
  }, ea = (r, e, t) => {
5682
5682
  let n, i, o, a, s = 0;
5683
5683
  if (r.sym_next !== 0) do
5684
- n = 255 & r.pending_buf[r.sym_buf + s++], n += (255 & r.pending_buf[r.sym_buf + s++]) << 8, i = r.pending_buf[r.sym_buf + s++], n === 0 ? ht(r, i, e) : (o = Fr[i], ht(r, o + 256 + 1, e), a = so[o], a !== 0 && (i -= Wo[o], Fe(r, i, a)), n--, o = Qc(n), ht(r, o, t), a = zn[o], a !== 0 && (n -= Un[o], Fe(r, n, a)));
5684
+ n = 255 & r.pending_buf[r.sym_buf + s++], n += (255 & r.pending_buf[r.sym_buf + s++]) << 8, i = r.pending_buf[r.sym_buf + s++], n === 0 ? ht(r, i, e) : (o = Br[i], ht(r, o + 256 + 1, e), a = so[o], a !== 0 && (i -= Wo[o], Fe(r, i, a)), n--, o = Qc(n), ht(r, o, t), a = zn[o], a !== 0 && (n -= Un[o], Fe(r, n, a)));
5685
5685
  while (s < r.sym_next);
5686
5686
  ht(r, 256, e);
5687
5687
  }, vi = (r, e) => {
@@ -5722,22 +5722,22 @@ const Qc = (r) => r < 256 ? an[r] : an[256 + (r >>> 7)], cn = (r, e) => {
5722
5722
  };
5723
5723
  let na = !1;
5724
5724
  const ia = (r, e, t, n) => {
5725
- Fe(r, 0 + (n ? 1 : 0), 3), ru(r), cn(r, t), cn(r, ~t), t && r.pending_buf.set(r.window.subarray(e, e + t), r.pending), r.pending += t;
5725
+ Fe(r, 0 + (n ? 1 : 0), 3), ru(r), an(r, t), an(r, ~t), t && r.pending_buf.set(r.window.subarray(e, e + t), r.pending), r.pending += t;
5726
5726
  };
5727
5727
  var bg = { _tr_init: (r) => {
5728
5728
  na || ((() => {
5729
5729
  let e, t, n, i, o;
5730
5730
  const a = new Array(16);
5731
- for (n = 0, i = 0; i < 28; i++) for (Wo[i] = n, e = 0; e < 1 << so[i]; e++) Fr[n++] = i;
5732
- for (Fr[n - 1] = i, o = 0, i = 0; i < 16; i++) for (Un[i] = o, e = 0; e < 1 << zn[i]; e++) an[o++] = i;
5733
- for (o >>= 7; i < 30; i++) for (Un[i] = o << 7, e = 0; e < 1 << zn[i] - 7; e++) an[256 + o++] = i;
5731
+ for (n = 0, i = 0; i < 28; i++) for (Wo[i] = n, e = 0; e < 1 << so[i]; e++) Br[n++] = i;
5732
+ for (Br[n - 1] = i, o = 0, i = 0; i < 16; i++) for (Un[i] = o, e = 0; e < 1 << zn[i]; e++) sn[o++] = i;
5733
+ for (o >>= 7; i < 30; i++) for (Un[i] = o << 7, e = 0; e < 1 << zn[i] - 7; e++) sn[256 + o++] = i;
5734
5734
  for (t = 0; t <= 15; t++) a[t] = 0;
5735
5735
  for (e = 0; e <= 143; ) St[2 * e + 1] = 8, e++, a[8]++;
5736
5736
  for (; e <= 255; ) St[2 * e + 1] = 9, e++, a[9]++;
5737
5737
  for (; e <= 279; ) St[2 * e + 1] = 7, e++, a[7]++;
5738
5738
  for (; e <= 287; ) St[2 * e + 1] = 8, e++, a[8]++;
5739
- for (tu(St, 287, a), e = 0; e < 30; e++) Pr[2 * e + 1] = 5, Pr[2 * e] = eu(e, 5);
5740
- Js = new mi(St, so, 257, 286, 15), Xs = new mi(Pr, zn, 0, 30, 15), Zs = new mi(new Array(0), Sg, 0, 19, 7);
5739
+ for (tu(St, 287, a), e = 0; e < 30; e++) Or[2 * e + 1] = 5, Or[2 * e] = eu(e, 5);
5740
+ Js = new mi(St, so, 257, 286, 15), Xs = new mi(Or, zn, 0, 30, 15), Zs = new mi(new Array(0), Sg, 0, 19, 7);
5741
5741
  })(), na = !0), r.l_desc = new gi(r.dyn_ltree, Js), r.d_desc = new gi(r.dyn_dtree, Xs), r.bl_desc = new gi(r.bl_tree, Zs), r.bi_buf = 0, r.bi_valid = 0, Ys(r);
5742
5742
  }, _tr_stored_block: ia, _tr_flush_block: (r, e, t, n) => {
5743
5743
  let i, o, a = 0;
@@ -5751,16 +5751,16 @@ var bg = { _tr_init: (r) => {
5751
5751
  let d;
5752
5752
  for (ta(s, s.dyn_ltree, s.l_desc.max_code), ta(s, s.dyn_dtree, s.d_desc.max_code), vi(s, s.bl_desc), d = 18; d >= 3 && s.bl_tree[2 * Ws[d] + 1] === 0; d--) ;
5753
5753
  return s.opt_len += 3 * (d + 1) + 5 + 5 + 4, d;
5754
- })(r), i = r.opt_len + 3 + 7 >>> 3, o = r.static_len + 3 + 7 >>> 3, o <= i && (i = o)) : i = o = t + 5, t + 4 <= i && e !== -1 ? ia(r, e, t, n) : r.strategy === 4 || o === i ? (Fe(r, 2 + (n ? 1 : 0), 3), ea(r, St, Pr)) : (Fe(r, 4 + (n ? 1 : 0), 3), ((s, d, c, u) => {
5754
+ })(r), i = r.opt_len + 3 + 7 >>> 3, o = r.static_len + 3 + 7 >>> 3, o <= i && (i = o)) : i = o = t + 5, t + 4 <= i && e !== -1 ? ia(r, e, t, n) : r.strategy === 4 || o === i ? (Fe(r, 2 + (n ? 1 : 0), 3), ea(r, St, Or)) : (Fe(r, 4 + (n ? 1 : 0), 3), ((s, d, c, u) => {
5755
5755
  let f;
5756
5756
  for (Fe(s, d - 257, 5), Fe(s, c - 1, 5), Fe(s, u - 4, 4), f = 0; f < u; f++) Fe(s, s.bl_tree[2 * Ws[f] + 1], 3);
5757
5757
  ra(s, s.dyn_ltree, d - 1), ra(s, s.dyn_dtree, c - 1);
5758
5758
  })(r, r.l_desc.max_code + 1, r.d_desc.max_code + 1, a + 1), ea(r, r.dyn_ltree, r.dyn_dtree)), Ys(r), n && ru(r);
5759
- }, _tr_tally: (r, e, t) => (r.pending_buf[r.sym_buf + r.sym_next++] = e, r.pending_buf[r.sym_buf + r.sym_next++] = e >> 8, r.pending_buf[r.sym_buf + r.sym_next++] = t, e === 0 ? r.dyn_ltree[2 * t]++ : (r.matches++, e--, r.dyn_ltree[2 * (Fr[t] + 256 + 1)]++, r.dyn_dtree[2 * Qc(e)]++), r.sym_next === r.sym_end), _tr_align: (r) => {
5759
+ }, _tr_tally: (r, e, t) => (r.pending_buf[r.sym_buf + r.sym_next++] = e, r.pending_buf[r.sym_buf + r.sym_next++] = e >> 8, r.pending_buf[r.sym_buf + r.sym_next++] = t, e === 0 ? r.dyn_ltree[2 * t]++ : (r.matches++, e--, r.dyn_ltree[2 * (Br[t] + 256 + 1)]++, r.dyn_dtree[2 * Qc(e)]++), r.sym_next === r.sym_end), _tr_align: (r) => {
5760
5760
  Fe(r, 2, 3), ht(r, 256, St), ((e) => {
5761
- e.bi_valid === 16 ? (cn(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = 255 & e.bi_buf, e.bi_buf >>= 8, e.bi_valid -= 8);
5761
+ e.bi_valid === 16 ? (an(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = 255 & e.bi_buf, e.bi_buf >>= 8, e.bi_valid -= 8);
5762
5762
  })(r);
5763
- } }, Vr = (r, e, t, n) => {
5763
+ } }, Fr = (r, e, t, n) => {
5764
5764
  let i = 65535 & r | 0, o = r >>> 16 & 65535 | 0, a = 0;
5765
5765
  for (; t !== 0; ) {
5766
5766
  a = t > 2e3 ? 2e3 : t, t -= a;
@@ -5786,7 +5786,7 @@ var Ie = (r, e, t, n) => {
5786
5786
  for (let a = n; a < o; a++) r = r >>> 8 ^ i[255 & (r ^ e[a])];
5787
5787
  return -1 ^ r;
5788
5788
  }, er = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }, nr = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
5789
- const { _tr_init: wg, _tr_stored_block: ao, _tr_flush_block: Cg, _tr_tally: Lt, _tr_align: kg } = bg, { Z_NO_FLUSH: Ut, Z_PARTIAL_FLUSH: Tg, Z_FULL_FLUSH: zg, Z_FINISH: rt, Z_BLOCK: oa, Z_OK: Me, Z_STREAM_END: sa, Z_STREAM_ERROR: lt, Z_DATA_ERROR: Rg, Z_BUF_ERROR: yi, Z_DEFAULT_COMPRESSION: Dg, Z_FILTERED: Ag, Z_HUFFMAN_ONLY: bn, Z_RLE: Ig, Z_FIXED: xg, Z_DEFAULT_STRATEGY: Mg, Z_UNKNOWN: Og, Z_DEFLATED: Gn } = nr, qt = (r, e) => (r.msg = er[e], e), aa = (r) => 2 * r - (r > 4 ? 9 : 0), xt = (r) => {
5789
+ const { _tr_init: wg, _tr_stored_block: ao, _tr_flush_block: Cg, _tr_tally: Lt, _tr_align: kg } = bg, { Z_NO_FLUSH: Ut, Z_PARTIAL_FLUSH: Tg, Z_FULL_FLUSH: zg, Z_FINISH: rt, Z_BLOCK: oa, Z_OK: Me, Z_STREAM_END: sa, Z_STREAM_ERROR: lt, Z_DATA_ERROR: Rg, Z_BUF_ERROR: yi, Z_DEFAULT_COMPRESSION: Dg, Z_FILTERED: Ag, Z_HUFFMAN_ONLY: Sn, Z_RLE: Ig, Z_FIXED: xg, Z_DEFAULT_STRATEGY: Mg, Z_UNKNOWN: Og, Z_DEFLATED: Gn } = nr, qt = (r, e) => (r.msg = er[e], e), aa = (r) => 2 * r - (r > 4 ? 9 : 0), xt = (r) => {
5790
5790
  let e = r.length;
5791
5791
  for (; --e >= 0; ) r[e] = 0;
5792
5792
  }, Pg = (r) => {
@@ -5809,11 +5809,11 @@ const Ke = (r) => {
5809
5809
  Cg(r, r.block_start >= 0 ? r.block_start : -1, r.strstart - r.block_start, e), r.block_start = r.strstart, Ke(r.strm);
5810
5810
  }, ae = (r, e) => {
5811
5811
  r.pending_buf[r.pending++] = e;
5812
- }, zr = (r, e) => {
5812
+ }, Tr = (r, e) => {
5813
5813
  r.pending_buf[r.pending++] = e >>> 8 & 255, r.pending_buf[r.pending++] = 255 & e;
5814
5814
  }, co = (r, e, t, n) => {
5815
5815
  let i = r.avail_in;
5816
- return i > n && (i = n), i === 0 ? 0 : (r.avail_in -= i, e.set(r.input.subarray(r.next_in, r.next_in + i), t), r.state.wrap === 1 ? r.adler = Vr(r.adler, e, i, t) : r.state.wrap === 2 && (r.adler = Ie(r.adler, e, i, t)), r.next_in += i, r.total_in += i, i);
5816
+ return i > n && (i = n), i === 0 ? 0 : (r.avail_in -= i, e.set(r.input.subarray(r.next_in, r.next_in + i), t), r.state.wrap === 1 ? r.adler = Fr(r.adler, e, i, t) : r.state.wrap === 2 && (r.adler = Ie(r.adler, e, i, t)), r.next_in += i, r.total_in += i, i);
5817
5817
  }, nu = (r, e) => {
5818
5818
  let t, n, i = r.max_chain_length, o = r.strstart, a = r.prev_length, s = r.nice_match;
5819
5819
  const d = r.strstart > r.w_size - 262 ? r.strstart - (r.w_size - 262) : 0, c = r.window, u = r.w_mask, f = r.prev, h = r.strstart + 258;
@@ -5832,7 +5832,7 @@ const Ke = (r) => {
5832
5832
  }
5833
5833
  while ((e = f[e & u]) > d && --i != 0);
5834
5834
  return a <= r.lookahead ? a : r.lookahead;
5835
- }, hr = (r) => {
5835
+ }, lr = (r) => {
5836
5836
  const e = r.w_size;
5837
5837
  let t, n, i;
5838
5838
  do {
@@ -5850,7 +5850,7 @@ const Ke = (r) => {
5850
5850
  let t, n;
5851
5851
  for (; ; ) {
5852
5852
  if (r.lookahead < 262) {
5853
- if (hr(r), r.lookahead < 262 && e === Ut) return 1;
5853
+ if (lr(r), r.lookahead < 262 && e === Ut) return 1;
5854
5854
  if (r.lookahead === 0) break;
5855
5855
  }
5856
5856
  if (t = 0, r.lookahead >= 3 && (r.ins_h = Gt(r, r.ins_h, r.window[r.strstart + 3 - 1]), t = r.prev[r.strstart & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = r.strstart), t !== 0 && r.strstart - t <= r.w_size - 262 && (r.match_length = nu(r, t)), r.match_length >= 3) if (n = Lt(r, r.strstart - r.match_start, r.match_length - 3), r.lookahead -= r.match_length, r.match_length <= r.max_lazy_match && r.lookahead >= 3) {
@@ -5868,7 +5868,7 @@ const Ke = (r) => {
5868
5868
  let t, n, i;
5869
5869
  for (; ; ) {
5870
5870
  if (r.lookahead < 262) {
5871
- if (hr(r), r.lookahead < 262 && e === Ut) return 1;
5871
+ if (lr(r), r.lookahead < 262 && e === Ut) return 1;
5872
5872
  if (r.lookahead === 0) break;
5873
5873
  }
5874
5874
  if (t = 0, r.lookahead >= 3 && (r.ins_h = Gt(r, r.ins_h, r.window[r.strstart + 3 - 1]), t = r.prev[r.strstart & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = r.strstart), r.prev_length = r.match_length, r.prev_match = r.match_start, r.match_length = 2, t !== 0 && r.prev_length < r.max_lazy_match && r.strstart - t <= r.w_size - 262 && (r.match_length = nu(r, t), r.match_length <= 5 && (r.strategy === Ag || r.match_length === 3 && r.strstart - r.match_start > 4096) && (r.match_length = 2)), r.prev_length >= 3 && r.match_length <= r.prev_length) {
@@ -5886,23 +5886,23 @@ const Ke = (r) => {
5886
5886
  function ut(r, e, t, n, i) {
5887
5887
  this.good_length = r, this.max_lazy = e, this.nice_length = t, this.max_chain = n, this.func = i;
5888
5888
  }
5889
- const Lr = [new ut(0, 0, 0, 0, iu), new ut(4, 4, 8, 4, Si), new ut(4, 5, 16, 8, Si), new ut(4, 6, 32, 32, Si), new ut(4, 4, 16, 16, or), new ut(8, 16, 32, 32, or), new ut(8, 16, 128, 128, or), new ut(8, 32, 128, 256, or), new ut(32, 128, 258, 1024, or), new ut(32, 258, 258, 4096, or)];
5889
+ const Pr = [new ut(0, 0, 0, 0, iu), new ut(4, 4, 8, 4, Si), new ut(4, 5, 16, 8, Si), new ut(4, 6, 32, 32, Si), new ut(4, 4, 16, 16, or), new ut(8, 16, 32, 32, or), new ut(8, 16, 128, 128, or), new ut(8, 32, 128, 256, or), new ut(32, 128, 258, 1024, or), new ut(32, 258, 258, 4096, or)];
5890
5890
  function Lg() {
5891
5891
  this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = Gn, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(1146), this.dyn_dtree = new Uint16Array(122), this.bl_tree = new Uint16Array(78), xt(this.dyn_ltree), xt(this.dyn_dtree), xt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(16), this.heap = new Uint16Array(573), xt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(573), xt(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
5892
5892
  }
5893
- const Ur = (r) => {
5893
+ const Lr = (r) => {
5894
5894
  if (!r) return 1;
5895
5895
  const e = r.state;
5896
5896
  return !e || e.strm !== r || e.status !== 42 && e.status !== 57 && e.status !== 69 && e.status !== 73 && e.status !== 91 && e.status !== 103 && e.status !== 113 && e.status !== 666 ? 1 : 0;
5897
5897
  }, ou = (r) => {
5898
- if (Ur(r)) return qt(r, lt);
5898
+ if (Lr(r)) return qt(r, lt);
5899
5899
  r.total_in = r.total_out = 0, r.data_type = Og;
5900
5900
  const e = r.state;
5901
5901
  return e.pending = 0, e.pending_out = 0, e.wrap < 0 && (e.wrap = -e.wrap), e.status = e.wrap === 2 ? 57 : e.wrap ? 42 : 113, r.adler = e.wrap === 2 ? 0 : 1, e.last_flush = -2, wg(e), Me;
5902
5902
  }, su = (r) => {
5903
5903
  const e = ou(r);
5904
5904
  var t;
5905
- return e === Me && ((t = r.state).window_size = 2 * t.w_size, xt(t.head), t.max_lazy_match = Lr[t.level].max_lazy, t.good_match = Lr[t.level].good_length, t.nice_match = Lr[t.level].nice_length, t.max_chain_length = Lr[t.level].max_chain, t.strstart = 0, t.block_start = 0, t.lookahead = 0, t.insert = 0, t.match_length = t.prev_length = 2, t.match_available = 0, t.ins_h = 0), e;
5905
+ return e === Me && ((t = r.state).window_size = 2 * t.w_size, xt(t.head), t.max_lazy_match = Pr[t.level].max_lazy, t.good_match = Pr[t.level].good_length, t.nice_match = Pr[t.level].nice_length, t.max_chain_length = Pr[t.level].max_chain, t.strstart = 0, t.block_start = 0, t.lookahead = 0, t.insert = 0, t.match_length = t.prev_length = 2, t.match_available = 0, t.ins_h = 0), e;
5906
5906
  }, ca = (r, e, t, n, i, o) => {
5907
5907
  if (!r) return lt;
5908
5908
  let a = 1;
@@ -5911,8 +5911,8 @@ const Ur = (r) => {
5911
5911
  const s = new Lg();
5912
5912
  return r.state = s, s.strm = r, s.status = 42, s.wrap = a, s.gzhead = null, s.w_bits = n, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = i + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + 3 - 1) / 3), s.window = new Uint8Array(2 * s.w_size), s.head = new Uint16Array(s.hash_size), s.prev = new Uint16Array(s.w_size), s.lit_bufsize = 1 << i + 6, s.pending_buf_size = 4 * s.lit_bufsize, s.pending_buf = new Uint8Array(s.pending_buf_size), s.sym_buf = s.lit_bufsize, s.sym_end = 3 * (s.lit_bufsize - 1), s.level = e, s.strategy = o, s.method = t, su(r);
5913
5913
  };
5914
- var jr = { deflateInit: (r, e) => ca(r, e, Gn, 15, 8, Mg), deflateInit2: ca, deflateReset: su, deflateResetKeep: ou, deflateSetHeader: (r, e) => Ur(r) || r.state.wrap !== 2 ? lt : (r.state.gzhead = e, Me), deflate: (r, e) => {
5915
- if (Ur(r) || e > oa || e < 0) return r ? qt(r, lt) : lt;
5914
+ var Vr = { deflateInit: (r, e) => ca(r, e, Gn, 15, 8, Mg), deflateInit2: ca, deflateReset: su, deflateResetKeep: ou, deflateSetHeader: (r, e) => Lr(r) || r.state.wrap !== 2 ? lt : (r.state.gzhead = e, Me), deflate: (r, e) => {
5915
+ if (Lr(r) || e > oa || e < 0) return r ? qt(r, lt) : lt;
5916
5916
  const t = r.state;
5917
5917
  if (!r.output || r.avail_in !== 0 && !r.input || t.status === 666 && e !== rt) return qt(r, r.avail_out === 0 ? yi : lt);
5918
5918
  const n = t.last_flush;
@@ -5922,11 +5922,11 @@ var jr = { deflateInit: (r, e) => ca(r, e, Gn, 15, 8, Mg), deflateInit2: ca, def
5922
5922
  if (t.status === 666 && r.avail_in !== 0) return qt(r, yi);
5923
5923
  if (t.status === 42 && t.wrap === 0 && (t.status = 113), t.status === 42) {
5924
5924
  let i = Gn + (t.w_bits - 8 << 4) << 8, o = -1;
5925
- if (o = t.strategy >= bn || t.level < 2 ? 0 : t.level < 6 ? 1 : t.level === 6 ? 2 : 3, i |= o << 6, t.strstart !== 0 && (i |= 32), i += 31 - i % 31, zr(t, i), t.strstart !== 0 && (zr(t, r.adler >>> 16), zr(t, 65535 & r.adler)), r.adler = 1, t.status = 113, Ke(r), t.pending !== 0) return t.last_flush = -1, Me;
5925
+ if (o = t.strategy >= Sn || t.level < 2 ? 0 : t.level < 6 ? 1 : t.level === 6 ? 2 : 3, i |= o << 6, t.strstart !== 0 && (i |= 32), i += 31 - i % 31, Tr(t, i), t.strstart !== 0 && (Tr(t, r.adler >>> 16), Tr(t, 65535 & r.adler)), r.adler = 1, t.status = 113, Ke(r), t.pending !== 0) return t.last_flush = -1, Me;
5926
5926
  }
5927
5927
  if (t.status === 57) {
5928
- if (r.adler = 0, ae(t, 31), ae(t, 139), ae(t, 8), t.gzhead) ae(t, (t.gzhead.text ? 1 : 0) + (t.gzhead.hcrc ? 2 : 0) + (t.gzhead.extra ? 4 : 0) + (t.gzhead.name ? 8 : 0) + (t.gzhead.comment ? 16 : 0)), ae(t, 255 & t.gzhead.time), ae(t, t.gzhead.time >> 8 & 255), ae(t, t.gzhead.time >> 16 & 255), ae(t, t.gzhead.time >> 24 & 255), ae(t, t.level === 9 ? 2 : t.strategy >= bn || t.level < 2 ? 4 : 0), ae(t, 255 & t.gzhead.os), t.gzhead.extra && t.gzhead.extra.length && (ae(t, 255 & t.gzhead.extra.length), ae(t, t.gzhead.extra.length >> 8 & 255)), t.gzhead.hcrc && (r.adler = Ie(r.adler, t.pending_buf, t.pending, 0)), t.gzindex = 0, t.status = 69;
5929
- else if (ae(t, 0), ae(t, 0), ae(t, 0), ae(t, 0), ae(t, 0), ae(t, t.level === 9 ? 2 : t.strategy >= bn || t.level < 2 ? 4 : 0), ae(t, 3), t.status = 113, Ke(r), t.pending !== 0) return t.last_flush = -1, Me;
5928
+ if (r.adler = 0, ae(t, 31), ae(t, 139), ae(t, 8), t.gzhead) ae(t, (t.gzhead.text ? 1 : 0) + (t.gzhead.hcrc ? 2 : 0) + (t.gzhead.extra ? 4 : 0) + (t.gzhead.name ? 8 : 0) + (t.gzhead.comment ? 16 : 0)), ae(t, 255 & t.gzhead.time), ae(t, t.gzhead.time >> 8 & 255), ae(t, t.gzhead.time >> 16 & 255), ae(t, t.gzhead.time >> 24 & 255), ae(t, t.level === 9 ? 2 : t.strategy >= Sn || t.level < 2 ? 4 : 0), ae(t, 255 & t.gzhead.os), t.gzhead.extra && t.gzhead.extra.length && (ae(t, 255 & t.gzhead.extra.length), ae(t, t.gzhead.extra.length >> 8 & 255)), t.gzhead.hcrc && (r.adler = Ie(r.adler, t.pending_buf, t.pending, 0)), t.gzindex = 0, t.status = 69;
5929
+ else if (ae(t, 0), ae(t, 0), ae(t, 0), ae(t, 0), ae(t, 0), ae(t, t.level === 9 ? 2 : t.strategy >= Sn || t.level < 2 ? 4 : 0), ae(t, 3), t.status = 113, Ke(r), t.pending !== 0) return t.last_flush = -1, Me;
5930
5930
  }
5931
5931
  if (t.status === 69) {
5932
5932
  if (t.gzhead.extra) {
@@ -5977,10 +5977,10 @@ var jr = { deflateInit: (r, e) => ca(r, e, Gn, 15, 8, Mg), deflateInit2: ca, def
5977
5977
  if (t.status = 113, Ke(r), t.pending !== 0) return t.last_flush = -1, Me;
5978
5978
  }
5979
5979
  if (r.avail_in !== 0 || t.lookahead !== 0 || e !== Ut && t.status !== 666) {
5980
- let i = t.level === 0 ? iu(t, e) : t.strategy === bn ? ((o, a) => {
5980
+ let i = t.level === 0 ? iu(t, e) : t.strategy === Sn ? ((o, a) => {
5981
5981
  let s;
5982
5982
  for (; ; ) {
5983
- if (o.lookahead === 0 && (hr(o), o.lookahead === 0)) {
5983
+ if (o.lookahead === 0 && (lr(o), o.lookahead === 0)) {
5984
5984
  if (a === Ut) return 1;
5985
5985
  break;
5986
5986
  }
@@ -5992,7 +5992,7 @@ var jr = { deflateInit: (r, e) => ca(r, e, Gn, 15, 8, Mg), deflateInit2: ca, def
5992
5992
  const f = o.window;
5993
5993
  for (; ; ) {
5994
5994
  if (o.lookahead <= 258) {
5995
- if (hr(o), o.lookahead <= 258 && a === Ut) return 1;
5995
+ if (lr(o), o.lookahead <= 258 && a === Ut) return 1;
5996
5996
  if (o.lookahead === 0) break;
5997
5997
  }
5998
5998
  if (o.match_length = 0, o.lookahead >= 3 && o.strstart > 0 && (c = o.strstart - 1, d = f[c], d === f[++c] && d === f[++c] && d === f[++c])) {
@@ -6005,32 +6005,32 @@ var jr = { deflateInit: (r, e) => ca(r, e, Gn, 15, 8, Mg), deflateInit2: ca, def
6005
6005
  if (o.match_length >= 3 ? (s = Lt(o, 1, o.match_length - 3), o.lookahead -= o.match_length, o.strstart += o.match_length, o.match_length = 0) : (s = Lt(o, 0, o.window[o.strstart]), o.lookahead--, o.strstart++), s && (Je(o, !1), o.strm.avail_out === 0)) return 1;
6006
6006
  }
6007
6007
  return o.insert = 0, a === rt ? (Je(o, !0), o.strm.avail_out === 0 ? 3 : 4) : o.sym_next && (Je(o, !1), o.strm.avail_out === 0) ? 1 : 2;
6008
- })(t, e) : Lr[t.level].func(t, e);
6008
+ })(t, e) : Pr[t.level].func(t, e);
6009
6009
  if (i !== 3 && i !== 4 || (t.status = 666), i === 1 || i === 3) return r.avail_out === 0 && (t.last_flush = -1), Me;
6010
6010
  if (i === 2 && (e === Tg ? kg(t) : e !== oa && (ao(t, 0, 0, !1), e === zg && (xt(t.head), t.lookahead === 0 && (t.strstart = 0, t.block_start = 0, t.insert = 0))), Ke(r), r.avail_out === 0)) return t.last_flush = -1, Me;
6011
6011
  }
6012
- return e !== rt ? Me : t.wrap <= 0 ? sa : (t.wrap === 2 ? (ae(t, 255 & r.adler), ae(t, r.adler >> 8 & 255), ae(t, r.adler >> 16 & 255), ae(t, r.adler >> 24 & 255), ae(t, 255 & r.total_in), ae(t, r.total_in >> 8 & 255), ae(t, r.total_in >> 16 & 255), ae(t, r.total_in >> 24 & 255)) : (zr(t, r.adler >>> 16), zr(t, 65535 & r.adler)), Ke(r), t.wrap > 0 && (t.wrap = -t.wrap), t.pending !== 0 ? Me : sa);
6012
+ return e !== rt ? Me : t.wrap <= 0 ? sa : (t.wrap === 2 ? (ae(t, 255 & r.adler), ae(t, r.adler >> 8 & 255), ae(t, r.adler >> 16 & 255), ae(t, r.adler >> 24 & 255), ae(t, 255 & r.total_in), ae(t, r.total_in >> 8 & 255), ae(t, r.total_in >> 16 & 255), ae(t, r.total_in >> 24 & 255)) : (Tr(t, r.adler >>> 16), Tr(t, 65535 & r.adler)), Ke(r), t.wrap > 0 && (t.wrap = -t.wrap), t.pending !== 0 ? Me : sa);
6013
6013
  }, deflateEnd: (r) => {
6014
- if (Ur(r)) return lt;
6014
+ if (Lr(r)) return lt;
6015
6015
  const e = r.state.status;
6016
6016
  return r.state = null, e === 113 ? qt(r, Rg) : Me;
6017
6017
  }, deflateSetDictionary: (r, e) => {
6018
6018
  let t = e.length;
6019
- if (Ur(r)) return lt;
6019
+ if (Lr(r)) return lt;
6020
6020
  const n = r.state, i = n.wrap;
6021
6021
  if (i === 2 || i === 1 && n.status !== 42 || n.lookahead) return lt;
6022
- if (i === 1 && (r.adler = Vr(r.adler, e, t, 0)), n.wrap = 0, t >= n.w_size) {
6022
+ if (i === 1 && (r.adler = Fr(r.adler, e, t, 0)), n.wrap = 0, t >= n.w_size) {
6023
6023
  i === 0 && (xt(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0);
6024
6024
  let d = new Uint8Array(n.w_size);
6025
6025
  d.set(e.subarray(t - n.w_size, t), 0), e = d, t = n.w_size;
6026
6026
  }
6027
6027
  const o = r.avail_in, a = r.next_in, s = r.input;
6028
- for (r.avail_in = t, r.next_in = 0, r.input = e, hr(n); n.lookahead >= 3; ) {
6028
+ for (r.avail_in = t, r.next_in = 0, r.input = e, lr(n); n.lookahead >= 3; ) {
6029
6029
  let d = n.strstart, c = n.lookahead - 2;
6030
6030
  do
6031
6031
  n.ins_h = Gt(n, n.ins_h, n.window[d + 3 - 1]), n.prev[d & n.w_mask] = n.head[n.ins_h], n.head[n.ins_h] = d, d++;
6032
6032
  while (--c);
6033
- n.strstart = d, n.lookahead = 2, hr(n);
6033
+ n.strstart = d, n.lookahead = 2, lr(n);
6034
6034
  }
6035
6035
  return n.strstart += n.lookahead, n.block_start = n.strstart, n.insert = n.lookahead, n.lookahead = 0, n.match_length = n.prev_length = 2, n.match_available = 0, r.next_in = a, r.input = s, r.avail_in = o, n.wrap = i, Me;
6036
6036
  }, deflateInfo: "pako deflate (from Nodeca project)" };
@@ -6061,9 +6061,9 @@ try {
6061
6061
  } catch {
6062
6062
  uu = !1;
6063
6063
  }
6064
- const un = new Uint8Array(256);
6065
- for (let r = 0; r < 256; r++) un[r] = r >= 252 ? 6 : r >= 248 ? 5 : r >= 240 ? 4 : r >= 224 ? 3 : r >= 192 ? 2 : 1;
6066
- un[254] = un[254] = 1;
6064
+ const cn = new Uint8Array(256);
6065
+ for (let r = 0; r < 256; r++) cn[r] = r >= 252 ? 6 : r >= 248 ? 5 : r >= 240 ? 4 : r >= 224 ? 3 : r >= 192 ? 2 : 1;
6066
+ cn[254] = cn[254] = 1;
6067
6067
  var Jo = (r) => {
6068
6068
  if (typeof TextEncoder == "function" && TextEncoder.prototype.encode) return new TextEncoder().encode(r);
6069
6069
  let e, t, n, i, o, a = r.length, s = 0;
@@ -6081,7 +6081,7 @@ var Jo = (r) => {
6081
6081
  o[i++] = a;
6082
6082
  continue;
6083
6083
  }
6084
- let s = un[a];
6084
+ let s = cn[a];
6085
6085
  if (s > 4) o[i++] = 65533, n += s - 1;
6086
6086
  else {
6087
6087
  for (a &= s === 2 ? 31 : s === 3 ? 15 : 7; s > 1 && n < t; ) a = a << 6 | 63 & r[n++], s--;
@@ -6098,47 +6098,47 @@ var Jo = (r) => {
6098
6098
  (e = e || r.length) > r.length && (e = r.length);
6099
6099
  let t = e - 1;
6100
6100
  for (; t >= 0 && (192 & r[t]) == 128; ) t--;
6101
- return t < 0 || t === 0 ? e : t + un[r[t]] > e ? t : e;
6101
+ return t < 0 || t === 0 ? e : t + cn[r[t]] > e ? t : e;
6102
6102
  }, du = function() {
6103
6103
  this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
6104
6104
  };
6105
6105
  const lu = Object.prototype.toString, { Z_NO_FLUSH: Bg, Z_SYNC_FLUSH: Fg, Z_FULL_FLUSH: Vg, Z_FINISH: jg, Z_OK: Nn, Z_STREAM_END: Hg, Z_DEFAULT_COMPRESSION: $g, Z_DEFAULT_STRATEGY: qg, Z_DEFLATED: Kg } = nr;
6106
- function Hr(r) {
6106
+ function jr(r) {
6107
6107
  this.options = au({ level: $g, method: Kg, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: qg }, r || {});
6108
6108
  let e = this.options;
6109
6109
  e.raw && e.windowBits > 0 ? e.windowBits = -e.windowBits : e.gzip && e.windowBits > 0 && e.windowBits < 16 && (e.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new du(), this.strm.avail_out = 0;
6110
- let t = jr.deflateInit2(this.strm, e.level, e.method, e.windowBits, e.memLevel, e.strategy);
6110
+ let t = Vr.deflateInit2(this.strm, e.level, e.method, e.windowBits, e.memLevel, e.strategy);
6111
6111
  if (t !== Nn) throw new Error(er[t]);
6112
- if (e.header && jr.deflateSetHeader(this.strm, e.header), e.dictionary) {
6112
+ if (e.header && Vr.deflateSetHeader(this.strm, e.header), e.dictionary) {
6113
6113
  let n;
6114
- if (n = typeof e.dictionary == "string" ? Jo(e.dictionary) : lu.call(e.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(e.dictionary) : e.dictionary, t = jr.deflateSetDictionary(this.strm, n), t !== Nn) throw new Error(er[t]);
6114
+ if (n = typeof e.dictionary == "string" ? Jo(e.dictionary) : lu.call(e.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(e.dictionary) : e.dictionary, t = Vr.deflateSetDictionary(this.strm, n), t !== Nn) throw new Error(er[t]);
6115
6115
  this._dict_set = !0;
6116
6116
  }
6117
6117
  }
6118
6118
  function bi(r, e) {
6119
- const t = new Hr(e);
6119
+ const t = new jr(e);
6120
6120
  if (t.push(r, !0), t.err) throw t.msg || er[t.err];
6121
6121
  return t.result;
6122
6122
  }
6123
- Hr.prototype.push = function(r, e) {
6123
+ jr.prototype.push = function(r, e) {
6124
6124
  const t = this.strm, n = this.options.chunkSize;
6125
6125
  let i, o;
6126
6126
  if (this.ended) return !1;
6127
6127
  for (o = e === ~~e ? e : e === !0 ? jg : Bg, typeof r == "string" ? t.input = Jo(r) : lu.call(r) === "[object ArrayBuffer]" ? t.input = new Uint8Array(r) : t.input = r, t.next_in = 0, t.avail_in = t.input.length; ; ) if (t.avail_out === 0 && (t.output = new Uint8Array(n), t.next_out = 0, t.avail_out = n), (o === Fg || o === Vg) && t.avail_out <= 6) this.onData(t.output.subarray(0, t.next_out)), t.avail_out = 0;
6128
6128
  else {
6129
- if (i = jr.deflate(t, o), i === Hg) return t.next_out > 0 && this.onData(t.output.subarray(0, t.next_out)), i = jr.deflateEnd(this.strm), this.onEnd(i), this.ended = !0, i === Nn;
6129
+ if (i = Vr.deflate(t, o), i === Hg) return t.next_out > 0 && this.onData(t.output.subarray(0, t.next_out)), i = Vr.deflateEnd(this.strm), this.onEnd(i), this.ended = !0, i === Nn;
6130
6130
  if (t.avail_out !== 0) {
6131
6131
  if (o > 0 && t.next_out > 0) this.onData(t.output.subarray(0, t.next_out)), t.avail_out = 0;
6132
6132
  else if (t.avail_in === 0) break;
6133
6133
  } else this.onData(t.output);
6134
6134
  }
6135
6135
  return !0;
6136
- }, Hr.prototype.onData = function(r) {
6136
+ }, jr.prototype.onData = function(r) {
6137
6137
  this.chunks.push(r);
6138
- }, Hr.prototype.onEnd = function(r) {
6138
+ }, jr.prototype.onEnd = function(r) {
6139
6139
  r === Nn && (this.result = cu(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
6140
6140
  };
6141
- var Wg = { Deflate: Hr, deflate: bi, deflateRaw: function(r, e) {
6141
+ var Wg = { Deflate: jr, deflate: bi, deflateRaw: function(r, e) {
6142
6142
  return (e = e || {}).raw = !0, bi(r, e);
6143
6143
  }, gzip: function(r, e) {
6144
6144
  return (e = e || {}).gzip = !0, bi(r, e);
@@ -6229,7 +6229,7 @@ var Wg = { Deflate: Hr, deflate: bi, deflateRaw: function(r, e) {
6229
6229
  O = g >> 3, t -= O, g -= O << 3, h &= (1 << g) - 1, r.next_in = t, r.next_out = i, r.avail_in = t < n ? n - t + 5 : 5 - (t - n), r.avail_out = i < a ? a - i + 257 : 257 - (i - a), $.hold = h, $.bits = g;
6230
6230
  };
6231
6231
  const Xg = new Uint16Array([3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]), Zg = new Uint8Array([16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]), Yg = new Uint16Array([1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]), Qg = new Uint8Array([16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]);
6232
- var $r = (r, e, t, n, i, o, a, s) => {
6232
+ var Hr = (r, e, t, n, i, o, a, s) => {
6233
6233
  const d = s.bits;
6234
6234
  let c, u, f, h, g, k, z = 0, w = 0, b = 0, T = 0, E = 0, O = 0, G = 0, I = 0, U = 0, L = 0, j = null;
6235
6235
  const $ = new Uint16Array(16), K = new Uint16Array(16);
@@ -6262,7 +6262,7 @@ var $r = (r, e, t, n, i, o, a, s) => {
6262
6262
  }
6263
6263
  return L !== 0 && (i[g + L] = z - G << 24 | 64 << 16 | 0), s.bits = E, 0;
6264
6264
  };
6265
- const { Z_FINISH: ua, Z_BLOCK: e_, Z_TREES: En, Z_OK: Kt, Z_STREAM_END: t_, Z_NEED_DICT: r_, Z_STREAM_ERROR: tt, Z_DATA_ERROR: da, Z_MEM_ERROR: la, Z_BUF_ERROR: n_, Z_DEFLATED: ha } = nr, fa = (r) => (r >>> 24 & 255) + (r >>> 8 & 65280) + ((65280 & r) << 8) + ((255 & r) << 24);
6265
+ const { Z_FINISH: ua, Z_BLOCK: e_, Z_TREES: bn, Z_OK: Kt, Z_STREAM_END: t_, Z_NEED_DICT: r_, Z_STREAM_ERROR: tt, Z_DATA_ERROR: da, Z_MEM_ERROR: la, Z_BUF_ERROR: n_, Z_DEFLATED: ha } = nr, fa = (r) => (r >>> 24 & 255) + (r >>> 8 & 65280) + ((65280 & r) << 8) + ((255 & r) << 24);
6266
6266
  function i_() {
6267
6267
  this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
6268
6268
  }
@@ -6299,8 +6299,8 @@ const o_ = (r) => {
6299
6299
  for (; e < 256; ) r.lens[e++] = 9;
6300
6300
  for (; e < 280; ) r.lens[e++] = 7;
6301
6301
  for (; e < 288; ) r.lens[e++] = 8;
6302
- for ($r(1, r.lens, 0, 288, Ei, 0, r.work, { bits: 9 }), e = 0; e < 32; ) r.lens[e++] = 5;
6303
- $r(2, r.lens, 0, 32, wi, 0, r.work, { bits: 5 }), ma = !1;
6302
+ for (Hr(1, r.lens, 0, 288, Ei, 0, r.work, { bits: 9 }), e = 0; e < 32; ) r.lens[e++] = 5;
6303
+ Hr(2, r.lens, 0, 32, wi, 0, r.work, { bits: 5 }), ma = !1;
6304
6304
  }
6305
6305
  r.lencode = Ei, r.lenbits = 9, r.distcode = wi, r.distbits = 5;
6306
6306
  }, ga = (r, e, t, n) => {
@@ -6425,7 +6425,7 @@ var wt = { inflateReset: fu, inflateReset2: pu, inflateResetKeep: hu, inflateIni
6425
6425
  if (t.havedict === 0) return r.next_out = a, r.avail_out = d, r.next_in = o, r.avail_in = s, t.hold = c, t.bits = u, r_;
6426
6426
  r.adler = t.check = 1, t.mode = 16191;
6427
6427
  case 16191:
6428
- if (e === e_ || e === En) break e;
6428
+ if (e === e_ || e === bn) break e;
6429
6429
  case 16192:
6430
6430
  if (t.last) {
6431
6431
  c >>>= 7 & u, u -= 7 & u, t.mode = 16206;
@@ -6440,7 +6440,7 @@ var wt = { inflateReset: fu, inflateReset2: pu, inflateResetKeep: hu, inflateIni
6440
6440
  t.mode = 16193;
6441
6441
  break;
6442
6442
  case 1:
6443
- if (o_(t), t.mode = 16199, e === En) {
6443
+ if (o_(t), t.mode = 16199, e === bn) {
6444
6444
  c >>>= 2, u -= 2;
6445
6445
  break e;
6446
6446
  }
@@ -6462,7 +6462,7 @@ var wt = { inflateReset: fu, inflateReset2: pu, inflateResetKeep: hu, inflateIni
6462
6462
  r.msg = "invalid stored block lengths", t.mode = 16209;
6463
6463
  break;
6464
6464
  }
6465
- if (t.length = 65535 & c, c = 0, u = 0, t.mode = 16194, e === En) break e;
6465
+ if (t.length = 65535 & c, c = 0, u = 0, t.mode = 16194, e === bn) break e;
6466
6466
  case 16194:
6467
6467
  t.mode = 16195;
6468
6468
  case 16195:
@@ -6492,7 +6492,7 @@ var wt = { inflateReset: fu, inflateReset2: pu, inflateResetKeep: hu, inflateIni
6492
6492
  t.lens[Z[t.have++]] = 7 & c, c >>>= 3, u -= 3;
6493
6493
  }
6494
6494
  for (; t.have < 19; ) t.lens[Z[t.have++]] = 0;
6495
- if (t.lencode = t.lendyn, t.lenbits = 7, $ = { bits: t.lenbits }, U = $r(0, t.lens, 0, 19, t.lencode, 0, t.work, $), t.lenbits = $.bits, U) {
6495
+ if (t.lencode = t.lendyn, t.lenbits = 7, $ = { bits: t.lenbits }, U = Hr(0, t.lens, 0, 19, t.lencode, 0, t.work, $), t.lenbits = $.bits, U) {
6496
6496
  r.msg = "invalid code lengths set", t.mode = 16209;
6497
6497
  break;
6498
6498
  }
@@ -6540,15 +6540,15 @@ var wt = { inflateReset: fu, inflateReset2: pu, inflateResetKeep: hu, inflateIni
6540
6540
  r.msg = "invalid code -- missing end-of-block", t.mode = 16209;
6541
6541
  break;
6542
6542
  }
6543
- if (t.lenbits = 9, $ = { bits: t.lenbits }, U = $r(1, t.lens, 0, t.nlen, t.lencode, 0, t.work, $), t.lenbits = $.bits, U) {
6543
+ if (t.lenbits = 9, $ = { bits: t.lenbits }, U = Hr(1, t.lens, 0, t.nlen, t.lencode, 0, t.work, $), t.lenbits = $.bits, U) {
6544
6544
  r.msg = "invalid literal/lengths set", t.mode = 16209;
6545
6545
  break;
6546
6546
  }
6547
- if (t.distbits = 6, t.distcode = t.distdyn, $ = { bits: t.distbits }, U = $r(2, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, $), t.distbits = $.bits, U) {
6547
+ if (t.distbits = 6, t.distcode = t.distdyn, $ = { bits: t.distbits }, U = Hr(2, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, $), t.distbits = $.bits, U) {
6548
6548
  r.msg = "invalid distances set", t.mode = 16209;
6549
6549
  break;
6550
6550
  }
6551
- if (t.mode = 16199, e === En) break e;
6551
+ if (t.mode = 16199, e === bn) break e;
6552
6552
  case 16199:
6553
6553
  t.mode = 16200;
6554
6554
  case 16200:
@@ -6644,7 +6644,7 @@ var wt = { inflateReset: fu, inflateReset2: pu, inflateResetKeep: hu, inflateIni
6644
6644
  if (s === 0) break e;
6645
6645
  s--, c |= n[o++] << u, u += 8;
6646
6646
  }
6647
- if (h -= d, r.total_out += h, t.total += h, 4 & t.wrap && h && (r.adler = t.check = t.flags ? Ie(t.check, i, h, a - h) : Vr(t.check, i, h, a - h)), h = d, 4 & t.wrap && (t.flags ? c : fa(c)) !== t.check) {
6647
+ if (h -= d, r.total_out += h, t.total += h, 4 & t.wrap && h && (r.adler = t.check = t.flags ? Ie(t.check, i, h, a - h) : Fr(t.check, i, h, a - h)), h = d, 4 & t.wrap && (t.flags ? c : fa(c)) !== t.check) {
6648
6648
  r.msg = "incorrect data check", t.mode = 16209;
6649
6649
  break;
6650
6650
  }
@@ -6676,7 +6676,7 @@ var wt = { inflateReset: fu, inflateReset2: pu, inflateResetKeep: hu, inflateIni
6676
6676
  default:
6677
6677
  return tt;
6678
6678
  }
6679
- return r.next_out = a, r.avail_out = d, r.next_in = o, r.avail_in = s, t.hold = c, t.bits = u, (t.wsize || h !== r.avail_out && t.mode < 16209 && (t.mode < 16206 || e !== ua)) && ga(r, r.output, r.next_out, h - r.avail_out), f -= r.avail_in, h -= r.avail_out, r.total_in += f, r.total_out += h, t.total += h, 4 & t.wrap && h && (r.adler = t.check = t.flags ? Ie(t.check, i, h, r.next_out - h) : Vr(t.check, i, h, r.next_out - h)), r.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === 16191 ? 128 : 0) + (t.mode === 16199 || t.mode === 16194 ? 256 : 0), (f === 0 && h === 0 || e === ua) && U === Kt && (U = n_), U;
6679
+ return r.next_out = a, r.avail_out = d, r.next_in = o, r.avail_in = s, t.hold = c, t.bits = u, (t.wsize || h !== r.avail_out && t.mode < 16209 && (t.mode < 16206 || e !== ua)) && ga(r, r.output, r.next_out, h - r.avail_out), f -= r.avail_in, h -= r.avail_out, r.total_in += f, r.total_out += h, t.total += h, 4 & t.wrap && h && (r.adler = t.check = t.flags ? Ie(t.check, i, h, r.next_out - h) : Fr(t.check, i, h, r.next_out - h)), r.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === 16191 ? 128 : 0) + (t.mode === 16199 || t.mode === 16194 ? 256 : 0), (f === 0 && h === 0 || e === ua) && U === Kt && (U = n_), U;
6680
6680
  }, inflateEnd: (r) => {
6681
6681
  if (Xt(r)) return tt;
6682
6682
  let e = r.state;
@@ -6688,30 +6688,30 @@ var wt = { inflateReset: fu, inflateReset2: pu, inflateResetKeep: hu, inflateIni
6688
6688
  }, inflateSetDictionary: (r, e) => {
6689
6689
  const t = e.length;
6690
6690
  let n, i, o;
6691
- return Xt(r) ? tt : (n = r.state, n.wrap !== 0 && n.mode !== 16190 ? tt : n.mode === 16190 && (i = 1, i = Vr(i, e, t, 0), i !== n.check) ? da : (o = ga(r, e, t, t), o ? (n.mode = 16210, la) : (n.havedict = 1, Kt)));
6691
+ return Xt(r) ? tt : (n = r.state, n.wrap !== 0 && n.mode !== 16190 ? tt : n.mode === 16190 && (i = 1, i = Fr(i, e, t, 0), i !== n.check) ? da : (o = ga(r, e, t, t), o ? (n.mode = 16210, la) : (n.havedict = 1, Kt)));
6692
6692
  }, inflateInfo: "pako inflate (from Nodeca project)" }, s_ = function() {
6693
6693
  this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
6694
6694
  };
6695
- const mu = Object.prototype.toString, { Z_NO_FLUSH: a_, Z_FINISH: c_, Z_OK: qr, Z_STREAM_END: Ci, Z_NEED_DICT: ki, Z_STREAM_ERROR: u_, Z_DATA_ERROR: _a, Z_MEM_ERROR: d_ } = nr;
6696
- function Kr(r) {
6695
+ const mu = Object.prototype.toString, { Z_NO_FLUSH: a_, Z_FINISH: c_, Z_OK: $r, Z_STREAM_END: Ci, Z_NEED_DICT: ki, Z_STREAM_ERROR: u_, Z_DATA_ERROR: _a, Z_MEM_ERROR: d_ } = nr;
6696
+ function qr(r) {
6697
6697
  this.options = au({ chunkSize: 65536, windowBits: 15, to: "" }, r || {});
6698
6698
  const e = this.options;
6699
6699
  e.raw && e.windowBits >= 0 && e.windowBits < 16 && (e.windowBits = -e.windowBits, e.windowBits === 0 && (e.windowBits = -15)), !(e.windowBits >= 0 && e.windowBits < 16) || r && r.windowBits || (e.windowBits += 32), e.windowBits > 15 && e.windowBits < 48 && !(15 & e.windowBits) && (e.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new du(), this.strm.avail_out = 0;
6700
6700
  let t = wt.inflateInit2(this.strm, e.windowBits);
6701
- if (t !== qr) throw new Error(er[t]);
6702
- if (this.header = new s_(), wt.inflateGetHeader(this.strm, this.header), e.dictionary && (typeof e.dictionary == "string" ? e.dictionary = Jo(e.dictionary) : mu.call(e.dictionary) === "[object ArrayBuffer]" && (e.dictionary = new Uint8Array(e.dictionary)), e.raw && (t = wt.inflateSetDictionary(this.strm, e.dictionary), t !== qr))) throw new Error(er[t]);
6701
+ if (t !== $r) throw new Error(er[t]);
6702
+ if (this.header = new s_(), wt.inflateGetHeader(this.strm, this.header), e.dictionary && (typeof e.dictionary == "string" ? e.dictionary = Jo(e.dictionary) : mu.call(e.dictionary) === "[object ArrayBuffer]" && (e.dictionary = new Uint8Array(e.dictionary)), e.raw && (t = wt.inflateSetDictionary(this.strm, e.dictionary), t !== $r))) throw new Error(er[t]);
6703
6703
  }
6704
6704
  function Ti(r, e) {
6705
- const t = new Kr(e);
6705
+ const t = new qr(e);
6706
6706
  if (t.push(r), t.err) throw t.msg || er[t.err];
6707
6707
  return t.result;
6708
6708
  }
6709
- Kr.prototype.push = function(r, e) {
6709
+ qr.prototype.push = function(r, e) {
6710
6710
  const t = this.strm, n = this.options.chunkSize, i = this.options.dictionary;
6711
6711
  let o, a, s;
6712
6712
  if (this.ended) return !1;
6713
6713
  for (a = e === ~~e ? e : e === !0 ? c_ : a_, mu.call(r) === "[object ArrayBuffer]" ? t.input = new Uint8Array(r) : t.input = r, t.next_in = 0, t.avail_in = t.input.length; ; ) {
6714
- for (t.avail_out === 0 && (t.output = new Uint8Array(n), t.next_out = 0, t.avail_out = n), o = wt.inflate(t, a), o === ki && i && (o = wt.inflateSetDictionary(t, i), o === qr ? o = wt.inflate(t, a) : o === _a && (o = ki)); t.avail_in > 0 && o === Ci && t.state.wrap > 0 && r[t.next_in] !== 0; ) wt.inflateReset(t), o = wt.inflate(t, a);
6714
+ for (t.avail_out === 0 && (t.output = new Uint8Array(n), t.next_out = 0, t.avail_out = n), o = wt.inflate(t, a), o === ki && i && (o = wt.inflateSetDictionary(t, i), o === $r ? o = wt.inflate(t, a) : o === _a && (o = ki)); t.avail_in > 0 && o === Ci && t.state.wrap > 0 && r[t.next_in] !== 0; ) wt.inflateReset(t), o = wt.inflate(t, a);
6715
6715
  switch (o) {
6716
6716
  case u_:
6717
6717
  case _a:
@@ -6723,18 +6723,18 @@ Kr.prototype.push = function(r, e) {
6723
6723
  let d = Ng(t.output, t.next_out), c = t.next_out - d, u = Gg(t.output, d);
6724
6724
  t.next_out = c, t.avail_out = n - c, c && t.output.set(t.output.subarray(d, d + c), 0), this.onData(u);
6725
6725
  } else this.onData(t.output.length === t.next_out ? t.output : t.output.subarray(0, t.next_out));
6726
- if (o !== qr || s !== 0) {
6726
+ if (o !== $r || s !== 0) {
6727
6727
  if (o === Ci) return o = wt.inflateEnd(this.strm), this.onEnd(o), this.ended = !0, !0;
6728
6728
  if (t.avail_in === 0) break;
6729
6729
  }
6730
6730
  }
6731
6731
  return !0;
6732
- }, Kr.prototype.onData = function(r) {
6732
+ }, qr.prototype.onData = function(r) {
6733
6733
  this.chunks.push(r);
6734
- }, Kr.prototype.onEnd = function(r) {
6735
- r === qr && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = cu(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
6734
+ }, qr.prototype.onEnd = function(r) {
6735
+ r === $r && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = cu(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
6736
6736
  };
6737
- var l_ = { Inflate: Kr, inflate: Ti, inflateRaw: function(r, e) {
6737
+ var l_ = { Inflate: qr, inflate: Ti, inflateRaw: function(r, e) {
6738
6738
  return (e = e || {}).raw = !0, Ti(r, e);
6739
6739
  }, ungzip: Ti, constants: nr };
6740
6740
  const { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_ } = Wg, { Inflate: g_, inflate: __, inflateRaw: v_, ungzip: y_ } = l_;
@@ -6847,8 +6847,8 @@ var S_ = { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_, Inflate: g_, infl
6847
6847
  }, r.prototype.loadDevTool = function() {
6848
6848
  this.loadScript(this.loadUrl);
6849
6849
  }, r.prototype.loadBaseInfo = function() {
6850
- if (this.log = [], this.event = [], this.info = [{ title: "BaseInfo", key: "base", type: 1, content: [{ name: "app_id", desc: "APPID", value: this.config.app_id }, { name: "channel", desc: "CHANNEL", value: this.config.channel }, { name: "domain", desc: "Domain", value: this.collect.configManager.getDomain() }, { name: "sdk_version", desc: "SDK Version", value: sn }, { name: "sdk_type", desc: "SDK Import Type", value: "npm" }] }, { title: "UserInfo", key: "user", type: 2, content: [{ name: "uuid", desc: "UserUniqueId", value: this.collect.configManager.get("user").user_unique_id || "" }, { name: "web_id", desc: "WEB_ID", value: this.collect.configManager.get("user").web_id || "" }] }, { title: "CommonInfo", type: 2, key: "common", content: [{ name: "browser", desc: "Browser", value: this.collect.configManager.get("browser") }, { name: "browser_version", desc: "Browser Version", value: this.collect.configManager.get("browser_version") }, { name: "platform", desc: "Platform", value: this.collect.configManager.get("platform") }, { name: "device_model", desc: "Devide Model", value: this.collect.configManager.get("device_model") }, { name: "os_name", desc: "Os Name", value: this.collect.configManager.get("os_name") }, { name: "os_version", desc: "Os Version", value: this.collect.configManager.get("os_version") }, { name: "resolution", desc: "Screen Resolution", value: this.collect.configManager.get("resolution") }, { name: "referrer", desc: "Referrer", value: this.collect.configManager.get("referrer") }, { name: "custom", desc: "Custom Info", value: JSON.stringify(this.collect.configManager.get("custom")) }] }, { title: "Config Info", key: "config", type: 3, content: [{ name: "autotrack", desc: "AutoTrackEvent", value: !!this.config.autotrack }, { name: "stay", desc: "StayDuration", value: !!this.config.enable_stay_duration }] }, { title: "A/B Config Info", key: "ab", type: 4, content: [{ name: "ab", desc: "A/BTester", value: !!this.config.enable_ab_test }] }], this.config.enable_ab_test) {
6851
- var e = this.getInfo("ab"), t = [{ name: "ab", desc: "A/BTester", value: !!this.config.enable_ab_test }, { name: "vid", desc: "A/B VID", value: this.collect.configManager.getAbVersion() }, { name: "ab_domain", desc: "Domain", value: this.config.ab_channel_domain || on(oo[this.config.channel]) }, { name: "all_values", desc: "A/B ALL Values", value: this.collect.configManager.getAbCache() }];
6850
+ if (this.log = [], this.event = [], this.info = [{ title: "BaseInfo", key: "base", type: 1, content: [{ name: "app_id", desc: "APPID", value: this.config.app_id }, { name: "channel", desc: "CHANNEL", value: this.config.channel }, { name: "domain", desc: "Domain", value: this.collect.configManager.getDomain() }, { name: "sdk_version", desc: "SDK Version", value: on }, { name: "sdk_type", desc: "SDK Import Type", value: "npm" }] }, { title: "UserInfo", key: "user", type: 2, content: [{ name: "uuid", desc: "UserUniqueId", value: this.collect.configManager.get("user").user_unique_id || "" }, { name: "web_id", desc: "WEB_ID", value: this.collect.configManager.get("user").web_id || "" }] }, { title: "CommonInfo", type: 2, key: "common", content: [{ name: "browser", desc: "Browser", value: this.collect.configManager.get("browser") }, { name: "browser_version", desc: "Browser Version", value: this.collect.configManager.get("browser_version") }, { name: "platform", desc: "Platform", value: this.collect.configManager.get("platform") }, { name: "device_model", desc: "Devide Model", value: this.collect.configManager.get("device_model") }, { name: "os_name", desc: "Os Name", value: this.collect.configManager.get("os_name") }, { name: "os_version", desc: "Os Version", value: this.collect.configManager.get("os_version") }, { name: "resolution", desc: "Screen Resolution", value: this.collect.configManager.get("resolution") }, { name: "referrer", desc: "Referrer", value: this.collect.configManager.get("referrer") }, { name: "custom", desc: "Custom Info", value: JSON.stringify(this.collect.configManager.get("custom")) }] }, { title: "Config Info", key: "config", type: 3, content: [{ name: "autotrack", desc: "AutoTrackEvent", value: !!this.config.autotrack }, { name: "stay", desc: "StayDuration", value: !!this.config.enable_stay_duration }] }, { title: "A/B Config Info", key: "ab", type: 4, content: [{ name: "ab", desc: "A/BTester", value: !!this.config.enable_ab_test }] }], this.config.enable_ab_test) {
6851
+ var e = this.getInfo("ab"), t = [{ name: "ab", desc: "A/BTester", value: !!this.config.enable_ab_test }, { name: "vid", desc: "A/B VID", value: this.collect.configManager.getAbVersion() }, { name: "ab_domain", desc: "Domain", value: this.config.ab_channel_domain || nn(oo[this.config.channel]) }, { name: "all_values", desc: "A/B ALL Values", value: this.collect.configManager.getAbCache() }];
6852
6852
  e.content = t, this.setInfo("ab", e);
6853
6853
  }
6854
6854
  }, r.prototype.getInfo = function(e) {
@@ -6905,7 +6905,7 @@ var S_ = { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_, Inflate: g_, infl
6905
6905
  if (e.devToolOrigin === t.origin) {
6906
6906
  if (t && t.data && t.data.type === "devtool:web:ready") {
6907
6907
  if (e.devToolOrigin = t.origin, e.devToolReady = !0, e.sendAlready) return;
6908
- e.sendData("devtool:web:init", { info: e.info, log: e.log, event: e.event, sdk_type: sn.includes("tob") ? "tob" : "inner", appId: e.app_id }), e.sendAlready = !0;
6908
+ e.sendData("devtool:web:init", { info: e.info, log: e.log, event: e.event, sdk_type: on.includes("tob") ? "tob" : "inner", appId: e.app_id }), e.sendAlready = !0;
6909
6909
  }
6910
6910
  t && t.data && t.data.type === "devtool:web:ssid" && e.collect.getToken(function(n) {
6911
6911
  e.setSecondInfo("user", "sid", n.tobid), e.updateInfo();
@@ -6929,7 +6929,7 @@ var S_ = { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_, Inflate: g_, infl
6929
6929
  position: fixed;
6930
6930
  width: 45px;
6931
6931
  height: 45px;
6932
- background-image: url(` + on("1fz22z22z1nz21z4mz4bz4bz21z1dz4dz4iz49z25z1cz19z21z1gz22z1cz49z1jz1mz1ez1gz1lz4az1lz1cz23z22z20z18z1jz4az22z22z25z21z22z18z22z1gz1az4az1az1mz1kz4bz1mz19z1hz4bz22z1gz1iz22z1mz1iz16z25z1cz19z16z1jz1mz1ez1gz1lz16z21z22z18z22z1gz1az4bz1jz1mz1ez49z21z1bz1iz4bz1az1mz1jz1jz1cz1az22z4bz1bz1cz24z22z1mz1mz1jz4bz18z1nz1nz1jz1mz1ez4az1nz1lz1e") + `);
6932
+ background-image: url(` + nn("1fz22z22z1nz21z4mz4bz4bz21z1dz4dz4iz49z25z1cz19z21z1gz22z1cz49z1jz1mz1ez1gz1lz4az1lz1cz23z22z20z18z1jz4az22z22z25z21z22z18z22z1gz1az4az1az1mz1kz4bz1mz19z1hz4bz22z1gz1iz22z1mz1iz16z25z1cz19z16z1jz1mz1ez1gz1lz16z21z22z18z22z1gz1az4bz1jz1mz1ez49z21z1bz1iz4bz1az1mz1jz1jz1cz1az22z4bz1bz1cz24z22z1mz1mz1jz4bz18z1nz1nz1jz1mz1ez4az1nz1lz1e") + `);
6933
6933
  bottom: 5%;
6934
6934
  right: 10%;
6935
6935
  cursor: pointer;
@@ -6969,7 +6969,7 @@ var S_ = { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_, Inflate: g_, infl
6969
6969
  t = e;
6970
6970
  }
6971
6971
  if (this.logger = new fg(this.name, t.log), this.inited) this.logger.warn("[instance: " + this.name + "], every instance's api: init, can be call only one time!");
6972
- else if (t && nn(t)) if (t.app_id && typeof (n = t.app_id) == "number" && !isNaN(n)) if (!t.app_key || /* @__PURE__ */ function(o) {
6972
+ else if (t && rn(t)) if (t.app_id && typeof (n = t.app_id) == "number" && !isNaN(n)) if (!t.app_key || /* @__PURE__ */ function(o) {
6973
6973
  return typeof o == "string";
6974
6974
  }(t.app_key)) {
6975
6975
  if (t.channel_domain || (t.report_channel !== "eu_ttp_ie" && t.channel !== "ie" || this.logger.error("ie dc will be deprecated in the future, please use other dc instead"), t.report_channel && !Zc().has(t.report_channel) ? (this.logger.warn("your report_channel: " + t.report_channel + " is not exist. report_channel must be one of " + pi().join(",") + ", use default report_channel: us_east instead, please check!!!"), t.report_channel = "us_east") : t.report_channel || ["sg", "va", "in", "my", "ie", "ie2"].indexOf(t.channel) !== -1 || (this.logger.warn("your channel: " + t.channel + " is not exist. use report_channel instead and report_channel must be one of " + pi().join(",") + ", use default report_channel: us_east instead, please check!!!"), t.report_channel = "us_east"), this.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK set channel warning", level: "error", time: Date.now(), data: "your report_channel: " + t.channel + " is not exist. report_channel must be one of " + pi().join(",") + ", use us_east instead, please check!!!", infoType: "sdk" })), this.spider = new pg(), this.spider.checkSpider(t)) return this.logger.warn("The current environment may be a spider, can not report!"), void this.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK hit spider", level: "error", time: Date.now(), data: "The current environment may be a spider, can not report!", infoType: "sdk" });
@@ -6996,7 +6996,7 @@ var S_ = { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_, Inflate: g_, infl
6996
6996
  } catch (o) {
6997
6997
  console.warn("load plugin error, " + o.message), i.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK Load Plugin Error", level: "error", time: Date.now(), data: o.message, infoType: "sdk" });
6998
6998
  }
6999
- i.sdkReady = !0, i.emit(F.Ready), i.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK UserInfo Init Completed", time: Date.now(), secType: "USER", level: "info", data: i.configManager.get("user"), infoType: "sdk" }), i.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK Initialization Completed", time: Date.now(), level: "info", data: i.configManager.get("user"), infoType: "sdk" }), i.logger.info("appid: " + t.app_id + ", userInfo:" + JSON.stringify(i.configManager.get("user"))), i.logger.info("appid: " + t.app_id + ", sdk is ready, version is " + sn + ", you can report now !!!"), t.disable_auto_pv && (i.disableAutoPageView = !0);
6999
+ i.sdkReady = !0, i.emit(F.Ready), i.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK UserInfo Init Completed", time: Date.now(), secType: "USER", level: "info", data: i.configManager.get("user"), infoType: "sdk" }), i.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK Initialization Completed", time: Date.now(), level: "info", data: i.configManager.get("user"), infoType: "sdk" }), i.logger.info("appid: " + t.app_id + ", userInfo:" + JSON.stringify(i.configManager.get("user"))), i.logger.info("appid: " + t.app_id + ", sdk is ready, version is " + on + ", you can report now !!!"), t.disable_auto_pv && (i.disableAutoPageView = !0);
7000
7000
  try {
7001
7001
  (i.loadType === "full" && t.enable_ab_test || t.autotrack) && (window.opener || window.parent).postMessage("[tea-sdk]ready", "*");
7002
7002
  } catch (o) {
@@ -7015,7 +7015,7 @@ var S_ = { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_, Inflate: g_, infl
7015
7015
  else this.logger.warn("init params error,please check");
7016
7016
  }, r.prototype.config = function(e) {
7017
7017
  if (!this.inited) return console.warn("config must be use after function init"), void this.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK Config Error", level: "error", time: Date.now(), data: "config must be use after function init", infoType: "sdk" });
7018
- if (!e || !nn(e)) return console.warn("config params is error, please check"), void this.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK Config Error", level: "error", time: Date.now(), data: "config params is error, please check", infoType: "sdk" });
7018
+ if (!e || !rn(e)) return console.warn("config params is error, please check"), void this.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, info: "SDK Config Error", level: "error", time: Date.now(), data: "config params is error, please check", infoType: "sdk" });
7019
7019
  var t;
7020
7020
  try {
7021
7021
  t = JSON.parse(JSON.stringify(t));
@@ -7119,7 +7119,7 @@ var S_ = { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_, Inflate: g_, infl
7119
7119
  }, r.prototype.setNativeAppId = function(e) {
7120
7120
  this.bridgeReport && this.appBridge.setNativeAppId(e);
7121
7121
  }, r.prototype.getSessionId = function() {
7122
- return Or();
7122
+ return Mr();
7123
7123
  }, r.prototype.setSessionId = function(e) {
7124
7124
  this.emit(F.SessionReset, e);
7125
7125
  }, r.prototype.resetStayDuration = function(e, t, n) {
@@ -7192,7 +7192,7 @@ var S_ = { Deflate: h_, deflate: f_, deflateRaw: p_, gzip: m_, Inflate: g_, infl
7192
7192
  }, r.prototype.destroyInstance = function() {
7193
7193
  this.destroy || (this.destroy = !0, this.off(F.TokenComplete), this.emit(F.DestoryInstance));
7194
7194
  }, r.plugins = [], r;
7195
- }(), Wr = {}, gu = [];
7195
+ }(), Kr = {}, gu = [];
7196
7196
  function va(r, e, t, n) {
7197
7197
  var i = r && r.source || window.opener || window.parent, o = r && r.origin || n || window.location.origin, a = { type: e, payload: t };
7198
7198
  i.postMessage(JSON.stringify(a), o);
@@ -7209,15 +7209,15 @@ function C_(r) {
7209
7209
  }
7210
7210
  if (!e) return;
7211
7211
  var t = e.type, n = e.payload;
7212
- Wr[t] && Wr[t].forEach(function(i) {
7212
+ Kr[t] && Kr[t].forEach(function(i) {
7213
7213
  typeof i == "function" && i(r, n);
7214
7214
  });
7215
7215
  }
7216
7216
  }
7217
- var Jr, Ri = "__rangers_ab_style__";
7217
+ var Wr, Ri = "__rangers_ab_style__";
7218
7218
  (function(r) {
7219
7219
  r[r.Var = 0] = "Var", r[r.All = 1] = "All";
7220
- })(Jr || (Jr = {}));
7220
+ })(Wr || (Wr = {}));
7221
7221
  var k_ = function() {
7222
7222
  function r() {
7223
7223
  this.fetchStatus = "no", this.refreshFetchStatus = "no", this.versions = [], this.extVersions = [], this.mulilinkVersions = [], this.enable_multilink = !1, this.enable_ab_visual = !1, this.editMode = !1, this.callbacks = [], this.data = {}, this.changeListener = /* @__PURE__ */ new Map(), this.readyStatus = !1, this.exposureCache = [], this.fetchQueueMap = /* @__PURE__ */ new Map();
@@ -7225,7 +7225,7 @@ var k_ = function() {
7225
7225
  return r.prototype.apply = function(e, t) {
7226
7226
  var n = this;
7227
7227
  if (this.collect = e, this.config = t, this.config.enable_ab_test) {
7228
- var i = t.enable_multilink, o = t.ab_channel_domain, a = t.enable_ab_visual, s = t.ab_cross, d = t.ab_cookie_domain, c = t.ab_timeout, u = t.disable_auto_ab, f = oo[t.channel || "sg"] || oo.sg, h = o || on(f), g = e.adapters.storage;
7228
+ var i = t.enable_multilink, o = t.ab_channel_domain, a = t.enable_ab_visual, s = t.ab_cross, d = t.ab_cookie_domain, c = t.ab_timeout, u = t.disable_auto_ab, f = oo[t.channel || "sg"] || oo.sg, h = o || nn(f), g = e.adapters.storage;
7229
7229
  this.cacheStorgae = new g(!1), this.timeout = c || 3e3, this.enable_multilink = i, this.enable_ab_visual = a, this.abKey = "__tea_sdk_ab_version_" + t.app_id, this.ab_cross = s, this.ab_cookie_domain = d || "", this.fetchUrl = h + "/service/2/abtest_config/", this.reportUrl = this.collect.configManager.getUrl("event"), this.exposureLimit = t.exposure_limit || 20, this.ab_batch_time = t.ab_batch_time || 500, this.ab_user_mode = t.ab_user_mode || "user_unique_id", this.callbackMap = /* @__PURE__ */ new Map(), this.fetchQueueMap = /* @__PURE__ */ new Map();
7230
7230
  var k = this.collect.Types;
7231
7231
  this.types = k, this.collect.on(k.TokenChange, function(z) {
@@ -7295,7 +7295,7 @@ var k_ = function() {
7295
7295
  }, r.prototype.getVar = function(e, t, n, i) {
7296
7296
  if (!e) throw new Error("getVar key must not be empty");
7297
7297
  if (t === void 0 && console.warn("getVar defaultValue is illegal, please check!"), typeof n != "function") throw new Error("getVar callback must be a function");
7298
- var o = { name: e, defaultValue: t, callback: n, type: Jr.Var };
7298
+ var o = { name: e, defaultValue: t, callback: n, type: Wr.Var };
7299
7299
  this.collect.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, secType: "AB", info: "SDK Execute GetVar", level: "info", time: Date.now(), data: e, infoType: "cus" }), this.fetchStatus === "complete" && this.refreshFetchStatus === "complete" ? this.getRealVar(o, e, i) : this.callbackMap.set(e, o);
7300
7300
  }, r.prototype.setAbUuid = function(e, t) {
7301
7301
  this.collect.configManager.setAbUuidCache(e, t);
@@ -7303,7 +7303,7 @@ var k_ = function() {
7303
7303
  var i = e.name, o = e.defaultValue, a = e.callback, s = this.data;
7304
7304
  if (s) {
7305
7305
  var d = s[i];
7306
- if (d && nn(d)) {
7306
+ if (d && rn(d)) {
7307
7307
  var c = d.vid;
7308
7308
  return t === "$ab_url" ? this.mulilinkVersions.includes(c) || this.mulilinkVersions.push(c) : this.versions.includes(c) || this.versions.push(c), this.setAbUuid(c, n), this.updateVersions(), this.fechEvent(c, t || i, o, a, d.val), void this.collect.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, secType: "AB", info: "SDK Execute GetVar, Exposure Experiment " + i, level: "info", time: Date.now(), data: s[i], infoType: "sdk" });
7309
7309
  }
@@ -7312,7 +7312,7 @@ var k_ = function() {
7312
7312
  }, r.prototype.getAllVars = function(e, t) {
7313
7313
  var n = this;
7314
7314
  if (typeof e != "function") throw new Error("getAllVars callback must be a function");
7315
- var i = null, o = { callback: e, type: Jr.All, timer: i };
7315
+ var i = null, o = { callback: e, type: Wr.All, timer: i };
7316
7316
  this.collect.emit(x.DEBUGGER_MESSAGE, { type: x.DEBUGGER_MESSAGE_SDK, secType: "AB", info: "SDK Execute GetAllVars", level: "info", time: Date.now(), infoType: "cus" }), t && (i = setTimeout(function() {
7317
7317
  o.timer = null, n.getRealAllVars(o), clearTimeout(i);
7318
7318
  }, t), o.timer = i), this.fetchStatus === "complete" && this.refreshFetchStatus === "complete" ? (o.timer = null, this.getRealAllVars(o), i && clearTimeout(i)) : this.callbackMap.set("allVars", o);
@@ -7416,7 +7416,7 @@ var k_ = function() {
7416
7416
  this.updateVersions();
7417
7417
  } else this.closeOverlayer();
7418
7418
  this.callbackMap.forEach(function(u) {
7419
- u.type === Jr.Var ? n.getRealVar(u, "") : n.getRealAllVars(u, e);
7419
+ u.type === Wr.Var ? n.getRealVar(u, "") : n.getRealAllVars(u, e);
7420
7420
  });
7421
7421
  } catch {
7422
7422
  }
@@ -7490,7 +7490,7 @@ var k_ = function() {
7490
7490
  }, r;
7491
7491
  }(), z_ = function() {
7492
7492
  function r(e, t) {
7493
- this.maxDuration = 432e5, this.aliveDTime = 6e4, this.options = { aliveName: "predefine_page_alive", params: {} }, this.focusState = !0, this.collect = e, this.config = t, this.pageStartTime = Date.now(), this.sessionStartTime = this.pageStartTime, this.timerHandler = null, nn(t.enable_stay_duration) && (this.options = Object.assign(this.options, t.enable_stay_duration)), this.hard = this.options.mode && this.options.mode === "hard", this.focusState = document.hasFocus();
7493
+ this.maxDuration = 432e5, this.aliveDTime = 6e4, this.options = { aliveName: "predefine_page_alive", params: {} }, this.focusState = !0, this.collect = e, this.config = t, this.pageStartTime = Date.now(), this.sessionStartTime = this.pageStartTime, this.timerHandler = null, rn(t.enable_stay_duration) && (this.options = Object.assign(this.options, t.enable_stay_duration)), this.hard = this.options.mode && this.options.mode === "hard", this.focusState = document.hasFocus();
7494
7494
  }
7495
7495
  return r.prototype.setParams = function(e, t, n) {
7496
7496
  this.set_path = e, this.set_url = n, this.set_title = t;
@@ -7524,7 +7524,7 @@ var k_ = function() {
7524
7524
  var e = this;
7525
7525
  this.timerHandler = this.setUpTimer();
7526
7526
  var t = this.visibilitychange.bind(this), n = this.beforeunload.bind(this);
7527
- return document.addEventListener("visibilitychange", t), fn(n), function() {
7527
+ return document.addEventListener("visibilitychange", t), hn(n), function() {
7528
7528
  e.beforeunload(), document.removeEventListener("visibilitychange", t), window.removeEventListener("beforeunload", n), window.removeEventListener("pagehide", n);
7529
7529
  };
7530
7530
  }, r.prototype.hardMode = function() {
@@ -7549,7 +7549,7 @@ var k_ = function() {
7549
7549
  } catch {
7550
7550
  }
7551
7551
  n.sendEventPageClose();
7552
- }, this.collect = e, this.config = t, this.maxDuration = t.maxDuration || 864e5, this.pageStartTime = Date.now(), nn(t.enable_stay_duration) && (this.options = Object.assign(this.options, t.enable_stay_duration)), this.hard = this.options.mode && this.options.mode === "hard", this.focusState = document.hasFocus(), this.resetData();
7552
+ }, this.collect = e, this.config = t, this.maxDuration = t.maxDuration || 864e5, this.pageStartTime = Date.now(), rn(t.enable_stay_duration) && (this.options = Object.assign(this.options, t.enable_stay_duration)), this.hard = this.options.mode && this.options.mode === "hard", this.focusState = document.hasFocus(), this.resetData();
7553
7553
  }
7554
7554
  return r.prototype.setParams = function(e, t, n) {
7555
7555
  this.set_path = e, this.set_url = n, this.set_title = t;
@@ -7575,7 +7575,7 @@ var k_ = function() {
7575
7575
  }
7576
7576
  }, r.prototype.enablePageClose = function() {
7577
7577
  var e = this, t = this.visibilitychange.bind(this), n = this.beforeunload.bind(this);
7578
- return document.addEventListener("visibilitychange", t), fn(n), function() {
7578
+ return document.addEventListener("visibilitychange", t), hn(n), function() {
7579
7579
  e.beforeunload(), document.removeEventListener("visibilitychange", t), window.removeEventListener("beforeunload", n), window.removeEventListener("pagehide", n);
7580
7580
  };
7581
7581
  }, r.prototype.hardMode = function() {
@@ -7849,7 +7849,7 @@ var Bn = function(r, e) {
7849
7849
  var n;
7850
7850
  this.eventHandel({ eventType: "dom", eventName: "beat" }, { beat_type: 3 }), this.beatTime && (n = setInterval(function() {
7851
7851
  t.eventHandel({ eventType: "dom", eventName: "beat" }, { beat_type: 2 });
7852
- }, e)), fn(function() {
7852
+ }, e)), hn(function() {
7853
7853
  t.eventHandel({ eventType: "dom", eventName: "beat", eventSend: "becon" }, { beat_type: 0 }), t.beatTime && clearInterval(n);
7854
7854
  });
7855
7855
  } catch {
@@ -7920,7 +7920,7 @@ function U_(r, e, t, n) {
7920
7920
  var G = Di(e);
7921
7921
  return G.tagName === "A" && (i.href = G.getAttribute("href")), e.tagName === "IMG" && (i.src = e.getAttribute("src")), i;
7922
7922
  }
7923
- var Rr = function(r, e, t, n, i) {
7923
+ var zr = function(r, e, t, n, i) {
7924
7924
  return ve(ve({ event: r }, U_(e, t, n, i)), { is_html: 1, page_key: window.location.href, page_title: document.title });
7925
7925
  }, G_ = function() {
7926
7926
  function r(e, t) {
@@ -7932,9 +7932,9 @@ var Rr = function(r, e, t, n, i) {
7932
7932
  var n = "bav2b_click";
7933
7933
  switch (t) {
7934
7934
  case "click":
7935
- return n = e.target.getAttribute("data-applog-click-event") || this.eventName.click, Rr(n, e, e.target, this.options, this.ignore);
7935
+ return n = e.target.getAttribute("data-applog-click-event") || this.eventName.click, zr(n, e, e.target, this.options, this.ignore);
7936
7936
  case "change":
7937
- return ve(ve({}, Rr(n = "bav2b_change", e, e.target, this.options)), function(i, o) {
7937
+ return ve(ve({}, zr(n = "bav2b_change", e, e.target, this.options)), function(i, o) {
7938
7938
  try {
7939
7939
  if (i === "bav2b_change") return o.hasAttribute("data-tea-track") ? { value: o.value } : {};
7940
7940
  } catch {
@@ -7942,7 +7942,7 @@ var Rr = function(r, e, t, n, i) {
7942
7942
  }
7943
7943
  }(n, e.target));
7944
7944
  case "submit":
7945
- return Rr(n = "bav2b_submit", e, e.target, this.options);
7945
+ return zr(n = "bav2b_submit", e, e.target, this.options);
7946
7946
  }
7947
7947
  } catch (i) {
7948
7948
  return console.error(i), null;
@@ -7980,14 +7980,14 @@ var Rr = function(r, e, t, n, i) {
7980
7980
  return e;
7981
7981
  }, r.prototype.handleExposureEvent = function(e, t) {
7982
7982
  if (Sa(t.target)) return null;
7983
- var n = Rr(e.event || this.eventName.exposure, t, t.target || t, this.options, this.ignore);
7983
+ var n = zr(e.event || this.eventName.exposure, t, t.target || t, this.options, this.ignore);
7984
7984
  if (n.$exposure_type = e.exposureType, this.options.exposure.callback) {
7985
7985
  var i = this.options.exposure.callback(n);
7986
7986
  return i || Object.keys(i).length ? i : (console.warn("exposure callback must return data!"), n);
7987
7987
  }
7988
7988
  return n;
7989
7989
  }, r.prototype.handleScrollEvent = function(e, t) {
7990
- var n = Rr(e.event || this.eventName.scroll, t, t.target || t, this.options, this.ignore);
7990
+ var n = zr(e.event || this.eventName.scroll, t, t.target || t, this.options, this.ignore);
7991
7991
  if (n = Object.assign(n, e.params), !this.options.scroll.callback || (n = this.options.scroll.callback(n)) || Object.keys(n).length) return n;
7992
7992
  console.warn("scroll callback must return data!");
7993
7993
  }, r;
@@ -8045,7 +8045,7 @@ function F_(r, e) {
8045
8045
  i = function(h) {
8046
8046
  var g = h.data.app_id;
8047
8047
  g && g !== e.app_id || B_({ event: h, editorUrl: "https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/log-sdk/collect/heatmap-core.js?query=" + Date.now(), autoTrackInstance: r });
8048
- }, Wr[n = "tea:openHeatMapCore"] = Wr[n] || [], Wr[n].push(i);
8048
+ }, Kr[n = "tea:openHeatMapCore"] = Kr[n] || [], Kr[n].push(i);
8049
8049
  } catch {
8050
8050
  console.log("openHeatMapCore error");
8051
8051
  }
@@ -8386,7 +8386,7 @@ var Ea = { pv: ["predefine_pageview"], sdk: ["_be_active", "predefine_page_alive
8386
8386
  }
8387
8387
  }, r.prototype.processTracer = function(e, t, n) {
8388
8388
  try {
8389
- var i = { count: e, state: n, key: t, params_for_special: "applog_trace", aid: this.appid, platform: "web", _staging_flag: 1, sdk_version: sn };
8389
+ var i = { count: e, state: n, key: t, params_for_special: "applog_trace", aid: this.appid, platform: "web", _staging_flag: 1, sdk_version: on };
8390
8390
  n !== "f_net" && n !== "f_data" || (i.errorCode = this.errorCode[n]);
8391
8391
  var o = this.collect.processEvent("applog_trace", i);
8392
8392
  if (o && o.event) return delete o.is_bav, o;
@@ -8397,7 +8397,7 @@ var Ea = { pv: ["predefine_pageview"], sdk: ["_be_active", "predefine_page_alive
8397
8397
  var e = this;
8398
8398
  document.addEventListener("visibilitychange", function() {
8399
8399
  document.visibilityState === "hidden" && e.leavePage();
8400
- }), fn(function() {
8400
+ }), hn(function() {
8401
8401
  e.leavePage();
8402
8402
  });
8403
8403
  }, r.prototype.leavePage = function() {
@@ -8525,7 +8525,7 @@ var Ea = { pv: ["predefine_pageview"], sdk: ["_be_active", "predefine_page_alive
8525
8525
  history.pushState = function(i) {
8526
8526
  for (var o = [], a = 1; a < arguments.length; a++) o[a - 1] = arguments[a];
8527
8527
  typeof history.onpushstate == "function" && history.onpushstate({ state: i });
8528
- var s = t.call.apply(t, rn([history, i], o));
8528
+ var s = t.call.apply(t, tn([history, i], o));
8529
8529
  if (e.collect.sdkStop || e.collect.destroy) return s;
8530
8530
  if (!(e.lastLocation === location.href || e.config.disable_spa_query && e.pathEquel())) {
8531
8531
  e.setReferCache(e.lastLocation);
@@ -8537,7 +8537,7 @@ var Ea = { pv: ["predefine_pageview"], sdk: ["_be_active", "predefine_page_alive
8537
8537
  history.replaceState = function(i) {
8538
8538
  for (var o = [], a = 1; a < arguments.length; a++) o[a - 1] = arguments[a];
8539
8539
  typeof history.onreplacestate == "function" && history.onreplacestate({ state: i });
8540
- var s = n.call.apply(n, rn([history, i], o));
8540
+ var s = n.call.apply(n, tn([history, i], o));
8541
8541
  if (e.collect.sdkStop || e.collect.destroy) return s;
8542
8542
  if (!(e.lastLocation === location.href || e.config.disable_spa_query && e.pathEquel())) {
8543
8543
  e.setReferCache(e.lastLocation);
@@ -8658,7 +8658,7 @@ var Ea = { pv: ["predefine_pageview"], sdk: ["_be_active", "predefine_page_alive
8658
8658
  }, r;
8659
8659
  }();
8660
8660
  Qe.usePlugin(X_, "extend"), Qe.usePlugin(T_, "et"), Qe.usePlugin(J_, "retry"), Qe.usePlugin(k_, "ab"), Qe.usePlugin(D_, "stay"), Qe.usePlugin(K_, "autotrack"), Qe.usePlugin(Y_, "trackeventduration"), Qe.usePlugin(A_, "heartbeat"), Qe.usePlugin(I_, "monitor"), Qe.usePlugin(Z_, "route"), Qe.usePlugin(W_, "tracer");
8661
- var Dr = new Qe("default");
8661
+ var Rr = new Qe("default");
8662
8662
  const xi = "VEPUSHER_DEVICE_ID", Mi = "VEPUSHER_USER_ID", _u = (r) => Math.floor(
8663
8663
  (Math.random() * 9 + 1) * Math.pow(10, r - 1)
8664
8664
  ).toString();
@@ -8904,7 +8904,7 @@ const rv = {
8904
8904
  class ov {
8905
8905
  constructor({ showLogInConsole: e = !1 }) {
8906
8906
  this._showLogInConsole = !1, this.markCollectTeaEventReady = () => {
8907
- this.isReady = !0, Dr.start(), this.queueTeaEvent.forEach((t) => this.sendTeaEvent(...t)), this.queueTeaEvent = [];
8907
+ this.isReady = !0, Rr.start(), this.queueTeaEvent.forEach((t) => this.sendTeaEvent(...t)), this.queueTeaEvent = [];
8908
8908
  }, this.configTea = (t, n) => {
8909
8909
  const i = {
8910
8910
  ...t,
@@ -8913,12 +8913,12 @@ class ov {
8913
8913
  page_path_fe: window.location.pathname || "unknown",
8914
8914
  page_host_fe: window.location.hostname || "unknown",
8915
8915
  sdk_version: "2.0.3",
8916
- build_version: "1.0.0.135",
8916
+ build_version: "1.0.0.138",
8917
8917
  ...n
8918
8918
  }
8919
8919
  };
8920
- Dr.config(i), this.markCollectTeaEventReady();
8921
- }, this.isReady = !1, this.queueTeaEvent = [], Dr.init({
8920
+ Rr.config(i), this.markCollectTeaEventReady();
8921
+ }, this.isReady = !1, this.queueTeaEvent = [], Rr.init({
8922
8922
  app_id: 778494,
8923
8923
  channel: "sg"
8924
8924
  }), this._showLogInConsole = e;
@@ -8935,7 +8935,7 @@ class ov {
8935
8935
  const i = {
8936
8936
  ...Q_(t || {})
8937
8937
  };
8938
- Dr.event(e, i), this._showLogInConsole && !n && console.log("[VePusher logger]:", e, i);
8938
+ Rr.event(e, i), this._showLogInConsole && !n && console.log("[VePusher logger]:", e, i);
8939
8939
  } catch (i) {
8940
8940
  console.error(i);
8941
8941
  }
@@ -8946,18 +8946,18 @@ class ov {
8946
8946
  return this.isReady;
8947
8947
  }
8948
8948
  getRawTea() {
8949
- return Dr;
8949
+ return Rr;
8950
8950
  }
8951
8951
  }
8952
- let dn;
8952
+ let un;
8953
8953
  function sv({ showLogInConsole: r }) {
8954
- dn = new ov({ showLogInConsole: r });
8954
+ un = new ov({ showLogInConsole: r });
8955
8955
  }
8956
8956
  function X(r, e, t = !1) {
8957
- dn && dn.sendTeaEvent(r, e, t);
8957
+ un && un.sendTeaEvent(r, e, t);
8958
8958
  }
8959
8959
  function av(r, e) {
8960
- dn && dn.configTea(r, e);
8960
+ un && un.configTea(r, e);
8961
8961
  }
8962
8962
  const vu = () => {
8963
8963
  X(J.PAGE_VISIBLE_CHANGE, {
@@ -8984,10 +8984,10 @@ class dv extends Ft {
8984
8984
  height: 720,
8985
8985
  frameRate: 30
8986
8986
  }, this._cameraStreams = {}, this._screenStreams = {}, this._videoFileStreams = {}, this._microphoneStreams = {}, this._audioFileStreams = {}, this._imageStreams = {}, this._customVideoStreams = {}, this._customAudioStreams = {};
8987
- const { width: t, height: n, frameRate: i } = _r(
8987
+ const { width: t, height: n, frameRate: i } = gr(
8988
8988
  fc,
8989
8989
  "video"
8990
- ), { sampleRate: o } = _r(pc, "audio");
8990
+ ), { sampleRate: o } = gr(pc, "audio");
8991
8991
  this._videoConstraints = {
8992
8992
  width: t,
8993
8993
  height: n,
@@ -9014,7 +9014,7 @@ class dv extends Ft {
9014
9014
  });
9015
9015
  }
9016
9016
  _handleError(e, t) {
9017
- const n = new lr(t, e.message);
9017
+ const n = new dr(t, e.message);
9018
9018
  this.emit(ft.Error, n);
9019
9019
  }
9020
9020
  setVideoResolution(e) {
@@ -9624,7 +9624,7 @@ class hv extends Ft {
9624
9624
  destroy() {
9625
9625
  }
9626
9626
  }
9627
- class Ca extends Sr {
9627
+ class Ca extends yr {
9628
9628
  constructor(e, t) {
9629
9629
  super({
9630
9630
  type: ce.MixVideo,
@@ -9650,19 +9650,19 @@ class Ca extends Sr {
9650
9650
  this.source.stop(), delete this._trackMap.video;
9651
9651
  }
9652
9652
  }
9653
- var fv = Object.defineProperty, pv = Object.getOwnPropertyDescriptor, pn = (r, e, t, n) => {
9653
+ var fv = Object.defineProperty, pv = Object.getOwnPropertyDescriptor, fn = (r, e, t, n) => {
9654
9654
  for (var i = pv(e, t), o = r.length - 1, a; o >= 0; o--)
9655
9655
  (a = r[o]) && (i = a(e, t, i) || i);
9656
9656
  return i && fv(e, t, i), i;
9657
9657
  };
9658
9658
  const yu = new Vt("composition-composer");
9659
- function mn(r, e, t) {
9659
+ function pn(r, e, t) {
9660
9660
  const n = t.value;
9661
9661
  return t.value = function(...i) {
9662
9662
  return this._active || yu.error("composer is not active"), n.apply(this, i);
9663
9663
  }, t;
9664
9664
  }
9665
- class Cr extends Zo {
9665
+ class wr extends Zo {
9666
9666
  constructor(e) {
9667
9667
  super(e), this._compositionViewConfig = {
9668
9668
  width: 1080,
@@ -9790,21 +9790,21 @@ class Cr extends Zo {
9790
9790
  return this._videoMixer.getDrawCountPerSecond();
9791
9791
  }
9792
9792
  }
9793
- pn([
9794
- mn
9795
- ], Cr.prototype, "addVideoStream");
9796
- pn([
9797
- mn
9798
- ], Cr.prototype, "updateVideoStream");
9799
- pn([
9800
- mn
9801
- ], Cr.prototype, "removeVideoStream");
9802
- pn([
9803
- mn
9804
- ], Cr.prototype, "muteVideoStream");
9805
- pn([
9806
- mn
9807
- ], Cr.prototype, "unmuteVideoStream");
9793
+ fn([
9794
+ pn
9795
+ ], wr.prototype, "addVideoStream");
9796
+ fn([
9797
+ pn
9798
+ ], wr.prototype, "updateVideoStream");
9799
+ fn([
9800
+ pn
9801
+ ], wr.prototype, "removeVideoStream");
9802
+ fn([
9803
+ pn
9804
+ ], wr.prototype, "muteVideoStream");
9805
+ fn([
9806
+ pn
9807
+ ], wr.prototype, "unmuteVideoStream");
9808
9808
  class mv extends Ft {
9809
9809
  constructor(e, { volume: t }) {
9810
9810
  super(), this._volume = 100, this._isMute = !1, this._volume = t ?? 100, this._stream = e;
@@ -9970,7 +9970,7 @@ class Sv {
9970
9970
  streamManagerController: this._streamManagerController,
9971
9971
  composedStream: this._composedStream,
9972
9972
  streamComposeController: this
9973
- }), this.compositionComposer = new Cr({
9973
+ }), this.compositionComposer = new wr({
9974
9974
  streamManagerController: this._streamManagerController,
9975
9975
  composedStream: this._composedStream,
9976
9976
  streamComposeController: this
@@ -10781,8 +10781,8 @@ function Cv() {
10781
10781
  return ot.grammar = t, ot.write = e, ot.parse = r.parse, ot.parseParams = r.parseParams, ot.parseFmtpConfig = r.parseFmtpConfig, ot.parsePayloads = r.parsePayloads, ot.parseRemoteCandidates = r.parseRemoteCandidates, ot.parseImageAttributes = r.parseImageAttributes, ot.parseSimulcastStreamList = r.parseSimulcastStreamList, ot;
10782
10782
  }
10783
10783
  var kv = Cv();
10784
- const cr = /* @__PURE__ */ $n(kv);
10785
- function gn(r) {
10784
+ const En = /* @__PURE__ */ $n(kv);
10785
+ function mn(r) {
10786
10786
  return new Promise((e) => {
10787
10787
  setTimeout(e, r);
10788
10788
  });
@@ -10822,7 +10822,7 @@ async function bu(r, e = {}, t = {}) {
10822
10822
  } catch (a) {
10823
10823
  if (o--, t.retryCount = o, o < 0)
10824
10824
  throw a;
10825
- return await gn(i), await bu(r, e, t);
10825
+ return await mn(i), await bu(r, e, t);
10826
10826
  }
10827
10827
  }
10828
10828
  const uo = -1;
@@ -10857,29 +10857,29 @@ async function lo(r, e) {
10857
10857
  }), t;
10858
10858
  }
10859
10859
  async function zv(r, e, t) {
10860
- var u, f, h, g, k, z, w, b, T, E, O, G, I, U, L, j, $, K, Z, W, se, ne, Y, le, fe, ue, Se, ye, re, Ee, de, pe, Re, At, Le, It, gt, He, Te;
10860
+ var u, f, h, g, k, z, w, b, T, E, O, G, I, U, L, j, $, K, Z, W, se, ne, Y, le, fe, ue, Se, ye, re, Ee, de, pe, Re, At, Pe, It, gt, He, Te;
10861
10861
  const n = await lo(e, t);
10862
- await gn(r);
10862
+ await mn(r);
10863
10863
  const i = await lo(e, t), { audio: o, video: a } = n, { audio: s, video: d } = i, c = {};
10864
10864
  if (o != null && o.codec && (s != null && s.codec)) {
10865
- const De = ((u = s.outboundRtp) == null ? void 0 : u.timestamp) - ((f = o.outboundRtp) == null ? void 0 : f.timestamp), Ue = ((h = s.outboundRtp) == null ? void 0 : h.bytesSent) - ((g = o.outboundRtp) == null ? void 0 : g.bytesSent), Ge = ((k = s.remoteInboundRtp) == null ? void 0 : k.packetsLost) - ((z = o.remoteInboundRtp) == null ? void 0 : z.packetsLost), Ne = ((w = s.outboundRtp) == null ? void 0 : w.packetsSent) - ((b = o.outboundRtp) == null ? void 0 : b.packetsSent), Ze = (((T = s.mediaSource) == null ? void 0 : T.totalAudioEnergy) ?? 0) - (((E = o.mediaSource) == null ? void 0 : E.totalAudioEnergy) ?? 0);
10865
+ const De = ((u = s.outboundRtp) == null ? void 0 : u.timestamp) - ((f = o.outboundRtp) == null ? void 0 : f.timestamp), Le = ((h = s.outboundRtp) == null ? void 0 : h.bytesSent) - ((g = o.outboundRtp) == null ? void 0 : g.bytesSent), Ue = ((k = s.remoteInboundRtp) == null ? void 0 : k.packetsLost) - ((z = o.remoteInboundRtp) == null ? void 0 : z.packetsLost), Ge = ((w = s.outboundRtp) == null ? void 0 : w.packetsSent) - ((b = o.outboundRtp) == null ? void 0 : b.packetsSent), Ze = (((T = s.mediaSource) == null ? void 0 : T.totalAudioEnergy) ?? 0) - (((E = o.mediaSource) == null ? void 0 : E.totalAudioEnergy) ?? 0);
10866
10866
  c.audio = {
10867
10867
  codec: s.codec.mimeType,
10868
10868
  channels: s.codec.channels,
10869
- sendBitrate: Ue / De * 8e3,
10869
+ sendBitrate: Le / De * 8e3,
10870
10870
  // bps
10871
10871
  packetsSent: (O = s.outboundRtp) == null ? void 0 : O.packetsSent,
10872
10872
  nackCount: (G = s.outboundRtp) == null ? void 0 : G.nackCount,
10873
10873
  packetsLost: (I = s.remoteInboundRtp) == null ? void 0 : I.packetsLost,
10874
- packetsLostPercent: Ge / Ne,
10874
+ packetsLostPercent: Ue / Ge,
10875
10875
  deltaAudioEnergy: Ze
10876
10876
  };
10877
10877
  }
10878
10878
  if (a != null && a.codec && (d != null && d.codec)) {
10879
- const De = ((U = d.outboundRtp) == null ? void 0 : U.timestamp) - ((L = a.outboundRtp) == null ? void 0 : L.timestamp), Ue = ((j = d.outboundRtp) == null ? void 0 : j.bytesSent) - (($ = a.outboundRtp) == null ? void 0 : $.bytesSent), Ge = ((K = d.outboundRtp) == null ? void 0 : K.framesEncoded) - ((Z = a.outboundRtp) == null ? void 0 : Z.framesEncoded), Ne = ((W = d.outboundRtp) == null ? void 0 : W.totalEncodeTime) - ((se = a.outboundRtp) == null ? void 0 : se.totalEncodeTime), Ze = ((ne = d.outboundRtp) == null ? void 0 : ne.framesSent) - ((Y = a.outboundRtp) == null ? void 0 : Y.framesSent), _t = ((le = d.outboundRtp) == null ? void 0 : le.packetsSent) - ((fe = a.outboundRtp) == null ? void 0 : fe.packetsSent), nt = ((ue = d.outboundRtp) == null ? void 0 : ue.totalPacketSendDelay) - ((Se = a.outboundRtp) == null ? void 0 : Se.totalPacketSendDelay), it = ((ye = d.remoteInboundRtp) == null ? void 0 : ye.packetsLost) - ((re = a.remoteInboundRtp) == null ? void 0 : re.packetsLost);
10879
+ const De = ((U = d.outboundRtp) == null ? void 0 : U.timestamp) - ((L = a.outboundRtp) == null ? void 0 : L.timestamp), Le = ((j = d.outboundRtp) == null ? void 0 : j.bytesSent) - (($ = a.outboundRtp) == null ? void 0 : $.bytesSent), Ue = ((K = d.outboundRtp) == null ? void 0 : K.framesEncoded) - ((Z = a.outboundRtp) == null ? void 0 : Z.framesEncoded), Ge = ((W = d.outboundRtp) == null ? void 0 : W.totalEncodeTime) - ((se = a.outboundRtp) == null ? void 0 : se.totalEncodeTime), Ze = ((ne = d.outboundRtp) == null ? void 0 : ne.framesSent) - ((Y = a.outboundRtp) == null ? void 0 : Y.framesSent), _t = ((le = d.outboundRtp) == null ? void 0 : le.packetsSent) - ((fe = a.outboundRtp) == null ? void 0 : fe.packetsSent), nt = ((ue = d.outboundRtp) == null ? void 0 : ue.totalPacketSendDelay) - ((Se = a.outboundRtp) == null ? void 0 : Se.totalPacketSendDelay), it = ((ye = d.remoteInboundRtp) == null ? void 0 : ye.packetsLost) - ((re = a.remoteInboundRtp) == null ? void 0 : re.packetsLost);
10880
10880
  c.video = {
10881
10881
  codec: d.codec.mimeType,
10882
- sendBitrate: Ue / De * 8e3,
10882
+ sendBitrate: Le / De * 8e3,
10883
10883
  // bps
10884
10884
  frameWidth: (Ee = d.outboundRtp) == null ? void 0 : Ee.frameWidth,
10885
10885
  frameHeight: (de = d.outboundRtp) == null ? void 0 : de.frameHeight,
@@ -10887,13 +10887,13 @@ async function zv(r, e, t) {
10887
10887
  Ze / De * 1e3 || 0
10888
10888
  ),
10889
10889
  framesEncoded: (pe = d.outboundRtp) == null ? void 0 : pe.framesEncoded,
10890
- framesEncodedPerSecond: Ge * 1e3 / De,
10890
+ framesEncodedPerSecond: Ue * 1e3 / De,
10891
10891
  // fps
10892
10892
  keyFramesEncoded: (Re = d.outboundRtp) == null ? void 0 : Re.keyFramesEncoded,
10893
10893
  framesSent: (At = d.outboundRtp) == null ? void 0 : At.frameHeight,
10894
- frameEncodeAvgTime: Ne * 1e3 / Ge,
10894
+ frameEncodeAvgTime: Ge * 1e3 / Ue,
10895
10895
  // ms
10896
- packetsSent: (Le = d.outboundRtp) == null ? void 0 : Le.packetsSent,
10896
+ packetsSent: (Pe = d.outboundRtp) == null ? void 0 : Pe.packetsSent,
10897
10897
  packetSendDelay: nt * 1e3 / _t,
10898
10898
  // ms
10899
10899
  nackCount: (It = d.outboundRtp) == null ? void 0 : It.nackCount,
@@ -11205,7 +11205,7 @@ const Gv = async () => {
11205
11205
  return !1;
11206
11206
  }
11207
11207
  return mt.h264decode || !1;
11208
- }, Oe = new Vt("PCConnect"), as = class as {
11208
+ }, Be = new Vt("PCConnect"), as = class as {
11209
11209
  constructor(e, t, n) {
11210
11210
  this._pc = null, this._ms = new MediaStream(), this._signalUrl = "", this._videoTransceiver = null, this._audioTransceiver = null, this._opts = void 0, this._sessionId = Date.now(), this._signalUrl = e, this._opts = t, this._onConnectStateChange = n;
11211
11211
  }
@@ -11229,9 +11229,10 @@ const Gv = async () => {
11229
11229
  async getSdpWithSdp({
11230
11230
  url: e,
11231
11231
  offer: t,
11232
- isReconnect: n
11232
+ frameRate: n,
11233
+ isReconnect: i
11233
11234
  }) {
11234
- var o;
11235
+ var a;
11235
11236
  return await bu(
11236
11237
  e,
11237
11238
  {
@@ -11242,13 +11243,14 @@ const Gv = async () => {
11242
11243
  version: "1.0-html",
11243
11244
  localSdp: t,
11244
11245
  metadata: {
11245
- platform: "Web"
11246
+ platform: "Web",
11247
+ framerate: n
11246
11248
  }
11247
11249
  })
11248
11250
  },
11249
11251
  {
11250
11252
  ...this._opts,
11251
- timeout: n ? 10 * Kc : (o = this._opts) == null ? void 0 : o.timeout
11253
+ timeout: i ? 10 * Kc : (a = this._opts) == null ? void 0 : a.timeout
11252
11254
  }
11253
11255
  );
11254
11256
  }
@@ -11276,58 +11278,55 @@ const Gv = async () => {
11276
11278
  async publish(e, t, n) {
11277
11279
  const i = new RTCPeerConnection();
11278
11280
  this._pc = i, this._bindRTCEvent();
11279
- const o = e.filter((f) => (f == null ? void 0 : f.kind) === "audio")[0], a = e.filter((f) => (f == null ? void 0 : f.kind) === "video")[0];
11281
+ const o = e.filter((u) => (u == null ? void 0 : u.kind) === "audio")[0], a = e.filter((u) => (u == null ? void 0 : u.kind) === "video")[0];
11280
11282
  o && this._ms.addTrack(o), a && this._ms.addTrack(a), this._audioTransceiver = i.addTransceiver(o || "audio", {
11281
11283
  direction: "sendonly",
11282
11284
  sendEncodings: [{ maxBitrate: t[0] }],
11283
11285
  streams: [this._ms]
11284
- }), Oe.log("add track to pc,", o), this._videoTransceiver = i.addTransceiver(a || "video", {
11286
+ }), Be.log("add track to pc,", o), this._videoTransceiver = i.addTransceiver(a || "video", {
11285
11287
  direction: "sendonly",
11286
11288
  sendEncodings: [{ maxBitrate: t[1] }],
11287
11289
  streams: [this._ms]
11288
- }), Oe.log("add track to pc,", a);
11290
+ }), Be.log("add track to pc,", a);
11289
11291
  const s = await i.createOffer();
11290
- Oe.groupCollapsed("local offer"), Oe.log(s.sdp);
11291
- const d = cr.parse(s.sdp);
11292
- d.media.forEach((f) => {
11293
- f.type === "audio" ? Ov(f) : f.type === "video" && (Pv(f), Da(f, "software"), Lv(f, t[1]));
11294
- }), s.sdp = cr.write(d), Oe.log("local offer modified"), Oe.log(s.sdp), await i.setLocalDescription(s);
11295
- let c;
11296
- if (pt.instance.getCustomRTMAnswerSdp ? c = await this.getCustomRTMAnswerSdp(s) : c = await this.getSdpWithSdp({
11292
+ Be.groupCollapsed("local offer"), Be.log(s.sdp), await i.setLocalDescription(s);
11293
+ let d;
11294
+ if (pt.instance.getCustomRTMAnswerSdp ? d = await this.getCustomRTMAnswerSdp(s) : d = await this.getSdpWithSdp({
11297
11295
  url: this._signalUrl,
11298
11296
  offer: s,
11297
+ frameRate: n == null ? void 0 : n.frameRate,
11299
11298
  isReconnect: n == null ? void 0 : n.isReconnect
11300
- }), (c == null ? void 0 : c.code) !== 200)
11299
+ }), (d == null ? void 0 : d.code) !== 200)
11301
11300
  throw {
11302
- code: c.code,
11303
- message: c.message
11301
+ code: d.code,
11302
+ message: d.message
11304
11303
  };
11305
- Oe.log("remote answer:"), Oe.log(c.remoteSdp.sdp);
11306
- const u = cr.parse(c.remoteSdp.sdp);
11307
- if (u.media.forEach((f) => {
11308
- var h;
11309
- (h = f.fingerprint) != null && h.hash && (f.fingerprint.hash = f.fingerprint.hash.toUpperCase());
11310
- }), c.remoteSdp.sdp = cr.write(u), Oe.log("remote answer modified"), Oe.log(c.remoteSdp.sdp), Oe.groupEnd(), i.connectionState === "closed") {
11311
- Oe.log(
11304
+ Be.log("remote answer:"), Be.log(d.remoteSdp.sdp);
11305
+ const c = En.parse(d.remoteSdp.sdp);
11306
+ if (c.media.forEach((u) => {
11307
+ var f;
11308
+ (f = u.fingerprint) != null && f.hash && (u.fingerprint.hash = u.fingerprint.hash.toUpperCase()), u.type === "audio" ? Ov(u) : u.type === "video" && (Pv(u), Da(u, "software"), Lv(u, t[1]));
11309
+ }), d.remoteSdp.sdp = En.write(c), Be.log("remote answer modified"), Be.log(d.remoteSdp.sdp), Be.groupEnd(), i.connectionState === "closed") {
11310
+ Be.log(
11312
11311
  "PeerConnection is closed, skipping setRemoteDescription"
11313
11312
  );
11314
11313
  return;
11315
11314
  }
11316
11315
  X(J.PUSH_SDP_INFO, {
11317
11316
  offer_sdp: s.sdp,
11318
- answer_sdp: c.remoteSdp.sdp
11319
- }), await i.setRemoteDescription(c.remoteSdp);
11317
+ answer_sdp: d.remoteSdp.sdp
11318
+ }), await i.setRemoteDescription(d.remoteSdp);
11320
11319
  }
11321
11320
  updateVideoEncodeType(e) {
11322
11321
  var o, a;
11323
11322
  const t = this._pc, n = (o = t == null ? void 0 : t.localDescription) == null ? void 0 : o.sdp, i = (a = t == null ? void 0 : t.remoteDescription) == null ? void 0 : a.sdp;
11324
11323
  if (n && i) {
11325
- const s = cr.parse(i);
11324
+ const s = En.parse(i);
11326
11325
  s.media.forEach((d) => {
11327
11326
  d.type === "video" && Da(d, e);
11328
11327
  }), t.setLocalDescription(t.localDescription), t.setRemoteDescription({
11329
11328
  type: "answer",
11330
- sdp: cr.write(s)
11329
+ sdp: En.write(s)
11331
11330
  });
11332
11331
  }
11333
11332
  }
@@ -11336,7 +11335,7 @@ const Gv = async () => {
11336
11335
  let n;
11337
11336
  t === "video" ? n = this._videoTransceiver : n = this._audioTransceiver;
11338
11337
  const i = (o = n == null ? void 0 : n.sender) == null ? void 0 : o.track;
11339
- (i == null ? void 0 : i.id) !== (e == null ? void 0 : e.id) && (await ((a = n == null ? void 0 : n.sender) == null ? void 0 : a.replaceTrack(e)), Oe.log(
11338
+ (i == null ? void 0 : i.id) !== (e == null ? void 0 : e.id) && (await ((a = n == null ? void 0 : n.sender) == null ? void 0 : a.replaceTrack(e)), Be.log(
11340
11339
  `replace ${t} track done! ${i == null ? void 0 : i.label} -> ${e == null ? void 0 : e.label}`
11341
11340
  ));
11342
11341
  }
@@ -11345,14 +11344,14 @@ const Gv = async () => {
11345
11344
  const i = t === "video" ? (a = this._videoTransceiver) == null ? void 0 : a.sender : (s = this._audioTransceiver) == null ? void 0 : s.sender;
11346
11345
  if (!i) return;
11347
11346
  const o = i.getParameters();
11348
- o.encodings = (d = o.encodings) != null && d.length ? o.encodings : [{}], n ? o.encodings[0].minBitrate = e : o.encodings[0].maxBitrate = e, i.setParameters(o), Oe.log(`set bitrate for ${t}, ${e} bps, min:${n}`);
11347
+ o.encodings = (d = o.encodings) != null && d.length ? o.encodings : [{}], n ? o.encodings[0].minBitrate = e : o.encodings[0].maxBitrate = e, i.setParameters(o), Be.log(`set bitrate for ${t}, ${e} bps, min:${n}`);
11349
11348
  }
11350
11349
  unpublish() {
11351
11350
  var e, t;
11352
11351
  (e = this._pc) == null || e.getSenders().forEach((n) => {
11353
11352
  var i;
11354
11353
  (i = this._pc) == null || i.removeTrack(n);
11355
- }), (t = this._pc) == null || t.close(), this._audioTransceiver = null, this._videoTransceiver = null, this._pc = null, Oe.log("close pc!");
11354
+ }), (t = this._pc) == null || t.close(), this._audioTransceiver = null, this._videoTransceiver = null, this._pc = null, Be.log("close pc!");
11356
11355
  }
11357
11356
  getStats() {
11358
11357
  var e, t;
@@ -11372,7 +11371,7 @@ const Gv = async () => {
11372
11371
  _bindRTCEvent() {
11373
11372
  const e = this._pc;
11374
11373
  e == null || e.addEventListener("connectionstatechange", () => {
11375
- Oe.log("onconnectionstatechange:", e.connectionState), this._onConnectStateChange(e.connectionState);
11374
+ Be.log("onconnectionstatechange:", e.connectionState), this._onConnectStateChange(e.connectionState);
11376
11375
  });
11377
11376
  }
11378
11377
  };
@@ -11507,7 +11506,7 @@ function Ia(r, e, t) {
11507
11506
  return new wu(r, e, t);
11508
11507
  }
11509
11508
  var Ct;
11510
- let vr = (Ct = class {
11509
+ let _r = (Ct = class {
11511
11510
  constructor(e) {
11512
11511
  this.group = (...t) => {
11513
11512
  this._enabled && console.group(`[${this._prefix}]: `, ...t);
@@ -11535,7 +11534,7 @@ let vr = (Ct = class {
11535
11534
  return this._enableLong;
11536
11535
  }
11537
11536
  }, Ct.enable = !1, Ct.enableLong = !1, Ct);
11538
- const Ye = new vr("RTMP_Capture");
11537
+ const Ye = new _r("RTMP_Capture");
11539
11538
  class $v {
11540
11539
  constructor(e) {
11541
11540
  this._videoFirstframeCaptured = !1, this._audioFirstframeCaptured = !1, this._videoProcessorReader = null, this._audioProcessorReader = null, this._bridge = e;
@@ -11658,10 +11657,10 @@ function qv(r) {
11658
11657
  }
11659
11658
  }
11660
11659
  try {
11661
- vr.enable = location.href.indexOf("rtmpdebug") !== -1, vr.enableLong = location.href.indexOf("rtmpdebug=long") !== -1;
11660
+ _r.enable = location.href.indexOf("rtmpdebug") !== -1, _r.enableLong = location.href.indexOf("rtmpdebug=long") !== -1;
11662
11661
  } catch {
11663
11662
  }
11664
- const wn = new vr("Bridge");
11663
+ const wn = new _r("Bridge");
11665
11664
  class ku extends Hv {
11666
11665
  // static version = __VERSION__
11667
11666
  constructor() {
@@ -11699,8 +11698,8 @@ class ku extends Hv {
11699
11698
  return (o = this._worker) == null || o.postMessage({
11700
11699
  type: et.Init,
11701
11700
  options: {
11702
- logEnable: vr.enable,
11703
- logEnableLong: vr.enableLong
11701
+ logEnable: _r.enable,
11702
+ logEnableLong: _r.enableLong
11704
11703
  }
11705
11704
  }), (a = this._worker) == null || a.addEventListener("message", i), n;
11706
11705
  }
@@ -11877,7 +11876,7 @@ class Wv {
11877
11876
  return this._rtmp.getStats();
11878
11877
  }
11879
11878
  async getStatsSnapshoot(e) {
11880
- return e && await gn(e), {
11879
+ return e && await mn(e), {
11881
11880
  stats: await this._rtmp.getStats(),
11882
11881
  originStats: void 0
11883
11882
  };
@@ -12060,8 +12059,8 @@ function ey(r) {
12060
12059
  e && (self.URL || self.webkitURL).revokeObjectURL(e);
12061
12060
  }
12062
12061
  }
12063
- var Be = function() {
12064
- return (Be = Object.assign || function(r) {
12062
+ var Ne = function() {
12063
+ return (Ne = Object.assign || function(r) {
12065
12064
  for (var e, t = 1, n = arguments.length; t < n; t++) for (var i in e = arguments[t]) Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i]);
12066
12065
  return r;
12067
12066
  }).apply(this, arguments);
@@ -12249,7 +12248,7 @@ function Gi() {
12249
12248
  function Du(r, e) {
12250
12249
  return r(e = { exports: {} }, e.exports), e.exports;
12251
12250
  }
12252
- var Xr = Du(function(r, e) {
12251
+ var Jr = Du(function(r, e) {
12253
12252
  var t;
12254
12253
  t = function() {
12255
12254
  function n() {
@@ -13236,7 +13235,7 @@ var Xr = Du(function(r, e) {
13236
13235
  }
13237
13236
  }() || localStorage.length > 0;
13238
13237
  }
13239
- var Le = { _driver: "localStorageWrapper", _initStorage: function(l) {
13238
+ var Pe = { _driver: "localStorageWrapper", _initStorage: function(l) {
13240
13239
  var p = {};
13241
13240
  if (l) for (var m in l) p[m] = l[m];
13242
13241
  return p.keyPrefix = Re(l, this._defaultConfig), At() ? (this._dbInfo = p, p.serializer = Se, d.resolve()) : d.reject();
@@ -13349,7 +13348,7 @@ var Xr = Du(function(r, e) {
13349
13348
  return !1;
13350
13349
  }, He = Array.isArray || function(l) {
13351
13350
  return Object.prototype.toString.call(l) === "[object Array]";
13352
- }, Te = {}, De = {}, Ue = { INDEXEDDB: Z, WEBSQL: pe, LOCALSTORAGE: Le }, Ge = [Ue.INDEXEDDB._driver, Ue.WEBSQL._driver, Ue.LOCALSTORAGE._driver], Ne = ["dropInstance"], Ze = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ne), _t = { description: "", driver: Ge.slice(), name: "localforage", size: 4980736, storeName: "keyvaluepairs", version: 1 };
13351
+ }, Te = {}, De = {}, Le = { INDEXEDDB: Z, WEBSQL: pe, LOCALSTORAGE: Pe }, Ue = [Le.INDEXEDDB._driver, Le.WEBSQL._driver, Le.LOCALSTORAGE._driver], Ge = ["dropInstance"], Ze = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ge), _t = { description: "", driver: Ue.slice(), name: "localforage", size: 4980736, storeName: "keyvaluepairs", version: 1 };
13353
13352
  function nt(l, p) {
13354
13353
  l[p] = function() {
13355
13354
  var m = arguments;
@@ -13369,8 +13368,8 @@ var Xr = Du(function(r, e) {
13369
13368
  function l(p) {
13370
13369
  for (var m in function(S, C) {
13371
13370
  if (!(S instanceof C)) throw new TypeError("Cannot call a class as a function");
13372
- }(this, l), Ue) if (Ue.hasOwnProperty(m)) {
13373
- var v = Ue[m], _ = v._driver;
13371
+ }(this, l), Le) if (Le.hasOwnProperty(m)) {
13372
+ var v = Le[m], _ = v._driver;
13374
13373
  this[m] = _, Te[_] || this.defineDriver(v);
13375
13374
  }
13376
13375
  this._defaultConfig = it({}, _t), this._config = it({}, this._defaultConfig, p), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
@@ -13393,16 +13392,16 @@ var Xr = Du(function(r, e) {
13393
13392
  if (!p._driver) return void C(D);
13394
13393
  for (var A = Ze.concat("_initStorage"), M = 0, N = A.length; M < N; M++) {
13395
13394
  var H = A[M];
13396
- if ((!gt(Ne, H) || p[H]) && typeof p[H] != "function") return void C(D);
13395
+ if ((!gt(Ge, H) || p[H]) && typeof p[H] != "function") return void C(D);
13397
13396
  }
13398
13397
  (function() {
13399
13398
  for (var Q = function(ni) {
13400
13399
  return function() {
13401
- var _n = new Error("Method " + ni + " is not implemented by the current driver"), cs = d.reject(_n);
13400
+ var gn = new Error("Method " + ni + " is not implemented by the current driver"), cs = d.reject(gn);
13402
13401
  return c(cs, arguments[arguments.length - 1]), cs;
13403
13402
  };
13404
- }, me = 0, $e = Ne.length; me < $e; me++) {
13405
- var jt = Ne[me];
13403
+ }, me = 0, $e = Ge.length; me < $e; me++) {
13404
+ var jt = Ge[me];
13406
13405
  p[jt] || (p[jt] = Q(jt));
13407
13406
  }
13408
13407
  })();
@@ -13621,7 +13620,7 @@ var Xr = Du(function(r, e) {
13621
13620
  this.cache.removeItem(e);
13622
13621
  }, r.prototype.getCookie = function(e, t) {
13623
13622
  try {
13624
- return Xr.get(e);
13623
+ return Jr.get(e);
13625
13624
  } catch {
13626
13625
  return "";
13627
13626
  }
@@ -13629,12 +13628,12 @@ var Xr = Du(function(r, e) {
13629
13628
  n === void 0 && (n = this.defaultExpireTime);
13630
13629
  try {
13631
13630
  var o = i || document.domain, a = +/* @__PURE__ */ new Date() + n;
13632
- Xr.set(e, t, { expires: new Date(a), path: "/", domain: o });
13631
+ Jr.set(e, t, { expires: new Date(a), path: "/", domain: o });
13633
13632
  } catch {
13634
13633
  }
13635
13634
  }, r.prototype.removeCookie = function(e, t) {
13636
13635
  try {
13637
- Xr.remove(e, { path: "/", domain: t || "" });
13636
+ Jr.remove(e, { path: "/", domain: t || "" });
13638
13637
  } catch {
13639
13638
  }
13640
13639
  }, r;
@@ -13725,14 +13724,14 @@ var Xr = Du(function(r, e) {
13725
13724
  }, r;
13726
13725
  }(), Qo = function(r, e) {
13727
13726
  try {
13728
- return Xr.get(r);
13727
+ return Jr.get(r);
13729
13728
  } catch {
13730
13729
  return "";
13731
13730
  }
13732
13731
  }, es = function(r, e, t, n) {
13733
13732
  try {
13734
13733
  var i = n || document.domain, o = +/* @__PURE__ */ new Date() + (t || 6048e5);
13735
- Xr.set(r, e, { expires: new Date(o), path: "/", domain: i });
13734
+ Jr.set(r, e, { expires: new Date(o), path: "/", domain: i });
13736
13735
  } catch {
13737
13736
  }
13738
13737
  }, uy = function() {
@@ -13814,7 +13813,7 @@ var Xr = Du(function(r, e) {
13814
13813
  } catch {
13815
13814
  return !1;
13816
13815
  }
13817
- }() }, yr = function() {
13816
+ }() }, vr = function() {
13818
13817
  function r(e, t) {
13819
13818
  this._storage = t && t === "session" ? dy : !e && Ga.isSupportLS ? Ga : new uy();
13820
13819
  }
@@ -13847,7 +13846,7 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
13847
13846
  var n = this;
13848
13847
  this.is_first_time = !0, this.configPersist = !1, this.enableClientTransport = !1, this.initConfig = t, this.collect = e;
13849
13848
  var i = new cy(t.app_id, t.cookie_domain || "", t.cookie_expire || 6048e5).init(), o = "__tea_cache_first_" + t.app_id;
13850
- this.configKey = "__tea_cache_config_" + t.app_id, this.sessionStorage = new yr(!1, "session"), this.localStorage = new yr(!1, "local"), this.channelUrl = this.getChannelForUrl(), this.current_env = "row", t.configPersist && (this.configPersist = !0, this.storage = t.configPersist === 1 ? this.sessionStorage : this.localStorage);
13849
+ this.configKey = "__tea_cache_config_" + t.app_id, this.sessionStorage = new vr(!1, "session"), this.localStorage = new vr(!1, "local"), this.channelUrl = this.getChannelForUrl(), this.current_env = "row", t.configPersist && (this.configPersist = !0, this.storage = t.configPersist === 1 ? this.sessionStorage : this.localStorage);
13851
13850
  var a = this.localStorage.getItem(o);
13852
13851
  a && a == 1 ? this.is_first_time = !1 : (this.is_first_time = !0, this.localStorage.setItem(o, "1")), this.envInfo = { user: { user_unique_id: oe, user_type: oe, user_id: oe, user_is_auth: oe, user_is_login: oe, device_id: oe, web_id: oe, ip_addr_id: oe, user_unique_id_type: oe }, header: { app_id: oe, app_name: oe, app_install_id: oe, install_id: oe, app_package: oe, app_channel: oe, app_version: oe, ab_version: oe, os_name: i.os_name, os_version: i.os_version, device_model: i.device_model, ab_client: oe, traffic_type: oe, network_type: i.network_type, client_ip: oe, device_brand: oe, os_api: oe, access: oe, language: i.language, region: oe, app_language: oe, app_region: oe, creative_id: i.utm.creative_id, ad_id: i.utm.ad_id, campaign_id: i.utm.campaign_id, log_type: oe, rnd: oe, platform: i.platform, sdk_version: "5.3.14_oversea", sdk_lib: "js", province: oe, city: oe, timezone: py, tz_offset: my, tz_name: oe, sim_region: oe, carrier: oe, resolution: i.screen_width + "x" + i.screen_height, browser: i.browser, browser_version: i.browser_version, referrer: i.referrer, referrer_host: i.referrer_host, width: i.screen_width, height: i.screen_height, screen_width: i.screen_width, screen_height: i.screen_height, utm_term: i.utm.utm_term, utm_content: i.utm.utm_content, utm_source: i.utm.utm_source, utm_medium: i.utm.utm_medium, utm_campaign: i.utm.utm_campaign, tracer_data: JSON.stringify(i.utm.tracer_data), custom: i.network_type ? { network_type: i.network_type } : {} } }, this.ab_version = "", this.ab_uuid_cache = {}, this.evtParams = {}, this.reportErrorCallback = function() {
13853
13852
  }, this.isLast = !1, this.setCustom(i), this.initDomain(), this.initABData(), this.collect.on("route-change", function(s) {
@@ -13924,8 +13923,8 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
13924
13923
  }, r.prototype.set = function(e) {
13925
13924
  var t = this;
13926
13925
  Object.keys(e).forEach(function(n) {
13927
- if (e[n] !== void 0 && e[n] !== null || t.delete(n), n === "traffic_type" && t.isLast && (t.envInfo.header.custom.$latest_traffic_source_type = e[n]), n === "evtParams") t.evtParams = Be(Be({}, t.evtParams || {}), e.evtParams || {});
13928
- else if (n === "_staging_flag") t.evtParams = Be(Be({}, t.evtParams || {}), { _staging_flag: e._staging_flag });
13926
+ if (e[n] !== void 0 && e[n] !== null || t.delete(n), n === "traffic_type" && t.isLast && (t.envInfo.header.custom.$latest_traffic_source_type = e[n]), n === "evtParams") t.evtParams = Ne(Ne({}, t.evtParams || {}), e.evtParams || {});
13927
+ else if (n === "_staging_flag") t.evtParams = Ne(Ne({}, t.evtParams || {}), { _staging_flag: e._staging_flag });
13929
13928
  else if (n === "reportErrorCallback" && typeof e[n] == "function") t.reportErrorCallback = e[n];
13930
13929
  else {
13931
13930
  var i = "", o = "";
@@ -14130,7 +14129,7 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
14130
14129
  else {
14131
14130
  var n = this.collect.configManager.get("header");
14132
14131
  n.custom = JSON.stringify(n.custom);
14133
- var i = this.collect.configManager.get("user"), o = { event_filter: 0, header: Be(Be({ aid: this.config.app_id }, n), i), options: { params_block_enable: this.config.enable_logsetting_params ? 1 : 0, header_custom_allow_enable: this.config.enable_logsetting_header_custom ? 1 : 0 } };
14132
+ var i = this.collect.configManager.get("user"), o = { event_filter: 0, header: Ne(Ne({ aid: this.config.app_id }, n), i), options: { params_block_enable: this.config.enable_logsetting_params ? 1 : 0, header_custom_allow_enable: this.config.enable_logsetting_header_custom ? 1 : 0 } };
14134
14133
  this.collect.emit(P.DEBUGGER_MESSAGE, { type: P.DEBUGGER_MESSAGE_SDK, info: "SDK Fetch LogSetting Request", logType: "fetch", level: "info", time: Date.now(), data: o, infoType: "sdk" }), this.collect.requestManager.useRequest({ url: "" + this.domain + this.setUrl + "?device_platform=web", data: o, timeout: 5e3, success: function(a) {
14135
14134
  a != null && a.config ? (t.setLocalData(a.config), t.collect.emit(P.DEBUGGER_MESSAGE, { type: P.DEBUGGER_MESSAGE_SDK, info: "LogSetting Request Success", logType: "fetch", level: "info", time: Date.now(), data: a, infoType: "sdk" })) : t.collect.emit(P.DEBUGGER_MESSAGE, { type: P.DEBUGGER_MESSAGE_SDK, info: "LogSetting Request Response No Data", logType: "fetch", level: "error", time: Date.now(), infoType: "sdk" }), t.collect.emit(B.LogSettingReady);
14136
14135
  }, fail: function() {
@@ -14174,7 +14173,7 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
14174
14173
  }
14175
14174
  return r.prototype.apply = function(e, t) {
14176
14175
  var n = this;
14177
- this.collect = e, this.config = t, this.configManager = e.configManager, this.cacheStorgae = new yr(!0), this.localStorage = new yr(!1), this.logSetting = new Sy(), this.maxReport = t.max_report || 10, this.reportTime = t.reportTime || 30, this.timeout = t.timeout || 1e5, this.enable_ttwebid = t.enable_ttwebid, this.reportUrl = t.report_url || this.configManager.getUrl("event"), this.eventKey = "__tea_cache_events_" + this.configManager.get("app_id"), this.beconKey = "__tea_cache_events_becon_" + this.configManager.get("app_id"), this.abKey = "__tea_sdk_ab_version_" + this.configManager.get("app_id"), this.refer_key = "__tea_cache_refer_" + this.configManager.get("app_id"), this.logSetting.apply(e, t), this.collect.on(B.Ready, function() {
14176
+ this.collect = e, this.config = t, this.configManager = e.configManager, this.cacheStorgae = new vr(!0), this.localStorage = new vr(!1), this.logSetting = new Sy(), this.maxReport = t.max_report || 10, this.reportTime = t.reportTime || 30, this.timeout = t.timeout || 1e5, this.enable_ttwebid = t.enable_ttwebid, this.reportUrl = t.report_url || this.configManager.getUrl("event"), this.eventKey = "__tea_cache_events_" + this.configManager.get("app_id"), this.beconKey = "__tea_cache_events_becon_" + this.configManager.get("app_id"), this.abKey = "__tea_sdk_ab_version_" + this.configManager.get("app_id"), this.refer_key = "__tea_cache_refer_" + this.configManager.get("app_id"), this.logSetting.apply(e, t), this.collect.on(B.Ready, function() {
14178
14177
  n.reportAll(!1);
14179
14178
  }), this.collect.on(B.ConfigDomain, function() {
14180
14179
  n.reportUrl = n.configManager.getUrl("event");
@@ -14287,7 +14286,7 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
14287
14286
  try {
14288
14287
  var u = e.filter(function(h) {
14289
14288
  try {
14290
- Object.keys(s).length && (h.params = Be(Be({}, s), h.params)), d && (h.params.$user_unique_id_type = d);
14289
+ Object.keys(s).length && (h.params = Ne(Ne({}, s), h.params)), d && (h.params.$user_unique_id_type = d);
14291
14290
  var g = n.configManager.getAbCache(), k = a[n.config.ab_user_mode] || a.user_unique_id, z = n.configManager.getAbUuidCache(k);
14292
14291
  if (g && g.uuid && g.uuid === k) {
14293
14292
  var w = n.configManager.getAbVersion();
@@ -14395,7 +14394,7 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
14395
14394
  }
14396
14395
  return r.prototype.apply = function(e, t) {
14397
14396
  var n = this;
14398
- this.collect = e, this.config = t, this.configManager = this.collect.configManager, this.storage = new yr(!1), this.tokenKey = "__tea_cache_tokens_" + t.app_id, this.enable_ttwebid = t.enable_ttwebid, this.enableCustomWebid = t.enable_custom_webid, this.collect.on(B.ConfigUuid, function(i) {
14397
+ this.collect = e, this.config = t, this.configManager = this.collect.configManager, this.storage = new vr(!1), this.tokenKey = "__tea_cache_tokens_" + t.app_id, this.enable_ttwebid = t.enable_ttwebid, this.enableCustomWebid = t.enable_custom_webid, this.collect.on(B.ConfigUuid, function(i) {
14399
14398
  n.setUuid(i);
14400
14399
  }), this.collect.on(B.ConfigWebId, function(i) {
14401
14400
  n.setWebId(i);
@@ -14430,7 +14429,7 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
14430
14429
  var t = e.web_id, n = e.user_unique_id, i = e.device_id;
14431
14430
  if (e.timestamp = Date.now(), this.collect.configManager.set({ web_id: t, user_unique_id: n }), this.config.enable_device_id) {
14432
14431
  var o = this.configManager.get("device_id") || i || t;
14433
- this.collect.configManager.set({ device_id: o }), e = Be(Be({}, e), { device_id: o });
14432
+ this.collect.configManager.set({ device_id: o }), e = Ne(Ne({}, e), { device_id: o });
14434
14433
  } else delete e.device_id;
14435
14434
  this.setStorage(e), this.tokenReady = !0, this.collect.emit(P.DEBUGGER_MESSAGE, { type: P.DEBUGGER_MESSAGE_SDK, info: "SDK UserInfo Complete", logType: "info", secType: "USER", level: "info", time: Date.now(), data: { web_id: t, user_unique_id: n }, infoType: "sdk" }), this.collect.emit(B.TokenComplete);
14436
14435
  }, r.prototype.completeTtWid = function(e) {
@@ -14472,7 +14471,7 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
14472
14471
  else t("");
14473
14472
  });
14474
14473
  }, r;
14475
- }(), Gr = function() {
14474
+ }(), Ur = function() {
14476
14475
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(r) {
14477
14476
  var e = 16 * Math.random() | 0;
14478
14477
  return (r === "x" ? e : 3 & e | 8).toString(16);
@@ -14491,11 +14490,11 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
14491
14490
  var e = this.storage.getSessionItem(this.sessionKey);
14492
14491
  if (e && e.sessionId) {
14493
14492
  var t = e.timestamp;
14494
- Date.now() - t > this.expireTime ? (e = { sessionId: Gr(), timestamp: Date.now() }, this.collect.emit(B.SessionResetInner)) : e.timestamp = Date.now(), this.storage.setSessionItem(this.sessionKey, e), this.resetExpTime();
14493
+ Date.now() - t > this.expireTime ? (e = { sessionId: Ur(), timestamp: Date.now() }, this.collect.emit(B.SessionResetInner)) : e.timestamp = Date.now(), this.storage.setSessionItem(this.sessionKey, e), this.resetExpTime();
14495
14494
  }
14496
14495
  }, r.prototype.setSessionId = function() {
14497
14496
  var e = this, t = this.storage.getSessionItem(this.sessionKey);
14498
- t && t.sessionId ? t.timestamp = Date.now() : t = { sessionId: Gr(), timestamp: Date.now() }, this.storage.setSessionItem(this.sessionKey, t), this.sessionExp = setInterval(function() {
14497
+ t && t.sessionId ? t.timestamp = Date.now() : t = { sessionId: Ur(), timestamp: Date.now() }, this.storage.setSessionItem(this.sessionKey, t), this.sessionExp = setInterval(function() {
14499
14498
  e.checkEXp();
14500
14499
  }, this.expireTime);
14501
14500
  }, r.prototype.getSessionId = function() {
@@ -14507,11 +14506,11 @@ var B = go, oe = void 0, xu = (/* @__PURE__ */ new Date()).getTimezoneOffset(),
14507
14506
  e.checkEXp();
14508
14507
  }, this.expireTime));
14509
14508
  }, r.prototype.resetSessionId = function() {
14510
- var e = { sessionId: Gr(), timestamp: Date.now() };
14509
+ var e = { sessionId: Ur(), timestamp: Date.now() };
14511
14510
  this.storage.setItem(this.sessionKey, e);
14512
14511
  }, r.prototype.checkEXp = function() {
14513
14512
  var e = this.storage.getSessionItem(this.sessionKey);
14514
- e && e.sessionId && Date.now() - e.timestamp + 30 >= this.expireTime && (e = { sessionId: Gr(), timestamp: Date.now() }, this.storage.setSessionItem(this.sessionKey, e));
14513
+ e && e.sessionId && Date.now() - e.timestamp + 30 >= this.expireTime && (e = { sessionId: Ur(), timestamp: Date.now() }, this.storage.setSessionItem(this.sessionKey, e));
14515
14514
  }, r;
14516
14515
  }(), at = Uint8Array, Xe = Uint16Array, rs = Int32Array, ns = new at([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), is = new at([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), Ba = new at([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Mu = function(r, e) {
14517
14516
  for (var t = new Xe(31), n = 0; n < 31; ++n) t[n] = e += 1 << r[n - 1];
@@ -14539,12 +14538,12 @@ for (_e = 0; _e < 144; ++_e) Bt[_e] = 8;
14539
14538
  for (_e = 144; _e < 256; ++_e) Bt[_e] = 9;
14540
14539
  for (_e = 256; _e < 280; ++_e) Bt[_e] = 7;
14541
14540
  for (_e = 280; _e < 288; ++_e) Bt[_e] = 8;
14542
- var ln = new at(32);
14543
- for (_e = 0; _e < 32; ++_e) ln[_e] = 5;
14541
+ var dn = new at(32);
14542
+ for (_e = 0; _e < 32; ++_e) dn[_e] = 5;
14544
14543
  var ky = Zt(Bt, 9, 0);
14545
14544
  Zt(Bt, 9, 1);
14546
- var Ty = Zt(ln, 5, 0);
14547
- Zt(ln, 5, 1);
14545
+ var Ty = Zt(dn, 5, 0);
14546
+ Zt(dn, 5, 1);
14548
14547
  var Pu = function(r) {
14549
14548
  return (r + 7) / 8 | 0;
14550
14549
  }, zy = function(r, e, t) {
@@ -14553,7 +14552,7 @@ var Pu = function(r) {
14553
14552
  t <<= 7 & e;
14554
14553
  var n = e / 8 | 0;
14555
14554
  r[n] |= t, r[n + 1] |= t >> 8;
14556
- }, Ar = function(r, e, t) {
14555
+ }, Dr = function(r, e, t) {
14557
14556
  t <<= 7 & e;
14558
14557
  var n = e / 8 | 0;
14559
14558
  r[n] |= t, r[n + 1] |= t >> 8, r[n + 2] |= t >> 16;
@@ -14613,7 +14612,7 @@ var Pu = function(r) {
14613
14612
  o = 1, i = r[s];
14614
14613
  }
14615
14614
  return { c: t.subarray(0, n), n: e };
14616
- }, Ir = function(r, e) {
14615
+ }, Ar = function(r, e) {
14617
14616
  for (var t = 0, n = 0; n < e.length; ++n) t += r[n] * e[n];
14618
14617
  return t;
14619
14618
  }, Lu = function(r, e, t) {
@@ -14626,7 +14625,7 @@ var Pu = function(r) {
14626
14625
  for (var f = Vi(i, 15), h = f.t, g = f.l, k = Vi(o, 15), z = k.t, w = k.l, b = ja(h), T = b.c, E = b.n, O = ja(z), G = O.c, I = O.n, U = new Xe(19), L = 0; L < T.length; ++L) ++U[31 & T[L]];
14627
14626
  for (L = 0; L < G.length; ++L) ++U[31 & G[L]];
14628
14627
  for (var j = Vi(U, 7), $ = j.t, K = j.l, Z = 19; Z > 4 && !$[Ba[Z - 1]]; --Z) ;
14629
- var W, se, ne, Y, le = c + 5 << 3, fe = Ir(i, Bt) + Ir(o, ln) + a, ue = Ir(i, h) + Ir(o, z) + a + 14 + 3 * Z + Ir(U, $) + 2 * U[16] + 3 * U[17] + 7 * U[18];
14628
+ var W, se, ne, Y, le = c + 5 << 3, fe = Ar(i, Bt) + Ar(o, dn) + a, ue = Ar(i, h) + Ar(o, z) + a + 14 + 3 * Z + Ar(U, $) + 2 * U[16] + 3 * U[17] + 7 * U[18];
14630
14629
  if (d >= 0 && le <= fe && le <= ue) return Lu(e, u, r.subarray(d, d + c));
14631
14630
  if (yt(e, u, 1 + (ue < fe)), u += 2, ue < fe) {
14632
14631
  W = Zt(h, g, 0), se = h, ne = Zt(z, w, 0), Y = z;
@@ -14640,16 +14639,16 @@ var Pu = function(r) {
14640
14639
  yt(e, u, Se[de]), u += $[de], de > 15 && (yt(e, u, Ee[L] >> 5 & 127), u += Ee[L] >> 12);
14641
14640
  }
14642
14641
  }
14643
- } else W = ky, se = Bt, ne = Ty, Y = ln;
14642
+ } else W = ky, se = Bt, ne = Ty, Y = dn;
14644
14643
  for (L = 0; L < s; ++L) {
14645
14644
  var pe = n[L];
14646
14645
  if (pe > 255) {
14647
- Ar(e, u, W[(de = pe >> 18 & 31) + 257]), u += se[de + 257], de > 7 && (yt(e, u, pe >> 23 & 31), u += ns[de]);
14646
+ Dr(e, u, W[(de = pe >> 18 & 31) + 257]), u += se[de + 257], de > 7 && (yt(e, u, pe >> 23 & 31), u += ns[de]);
14648
14647
  var Re = 31 & pe;
14649
- Ar(e, u, ne[Re]), u += Y[Re], Re > 3 && (Ar(e, u, pe >> 5 & 8191), u += is[Re]);
14650
- } else Ar(e, u, W[pe]), u += se[pe];
14648
+ Dr(e, u, ne[Re]), u += Y[Re], Re > 3 && (Dr(e, u, pe >> 5 & 8191), u += is[Re]);
14649
+ } else Dr(e, u, W[pe]), u += se[pe];
14651
14650
  }
14652
- return Ar(e, u, W[256]), u + se[256];
14651
+ return Dr(e, u, W[256]), u + se[256];
14653
14652
  }, Ry = new rs([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Uu = new at(0), Dy = function() {
14654
14653
  for (var r = new Int32Array(256), e = 0; e < 256; ++e) {
14655
14654
  for (var t = e, n = 9; --n; ) t = (1 & t && -306674912) ^ t >>> 1;
@@ -14684,20 +14683,20 @@ var Pu = function(r) {
14684
14683
  for (var de = 0; de < 286; ++de) Z[de] = 0;
14685
14684
  for (de = 0; de < 30; ++de) W[de] = 0;
14686
14685
  }
14687
- var pe = 2, Re = 0, At = O, Le = ye - re & 32767;
14688
- if (Ee > 2 && Se == $(Y - Le)) for (var It = Math.min(E, Ee) - 1, gt = Math.min(32767, Y), He = Math.min(258, Ee); Le <= gt && --At && ye != re; ) {
14689
- if (s[Y + pe] == s[Y + pe - Le]) {
14690
- for (var Te = 0; Te < He && s[Y + Te] == s[Y + Te - Le]; ++Te) ;
14686
+ var pe = 2, Re = 0, At = O, Pe = ye - re & 32767;
14687
+ if (Ee > 2 && Se == $(Y - Pe)) for (var It = Math.min(E, Ee) - 1, gt = Math.min(32767, Y), He = Math.min(258, Ee); Pe <= gt && --At && ye != re; ) {
14688
+ if (s[Y + pe] == s[Y + pe - Pe]) {
14689
+ for (var Te = 0; Te < He && s[Y + Te] == s[Y + Te - Pe]; ++Te) ;
14691
14690
  if (Te > pe) {
14692
- if (pe = Te, Re = Le, Te > It) break;
14693
- var De = Math.min(Le, Te - 2), Ue = 0;
14691
+ if (pe = Te, Re = Pe, Te > It) break;
14692
+ var De = Math.min(Pe, Te - 2), Le = 0;
14694
14693
  for (de = 0; de < De; ++de) {
14695
- var Ge = Y - Le + de & 32767, Ne = Ge - I[Ge] & 32767;
14696
- Ne > Ue && (Ue = Ne, re = Ge);
14694
+ var Ue = Y - Pe + de & 32767, Ge = Ue - I[Ue] & 32767;
14695
+ Ge > Le && (Le = Ge, re = Ue);
14697
14696
  }
14698
14697
  }
14699
14698
  }
14700
- Le += (ye = re) - (re = I[ye]) & 32767;
14699
+ Pe += (ye = re) - (re = I[ye]) & 32767;
14701
14700
  }
14702
14701
  if (Re) {
14703
14702
  K[le++] = 268435456 | _o[pe] << 18 | Va[Re];
@@ -15017,9 +15016,9 @@ var Py = function() {
15017
15016
  var a = document.getElementById("debugger-applog-web");
15018
15017
  new Ly(a);
15019
15018
  }, r;
15020
- }(), ji = { autotrack: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/autotrack.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/autotrack.js" }, object: "LogAutoTrack" }, ab: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/ab.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/ab.js" }, object: "LogAb" }, stay: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/stay.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/stay.js" }, object: "LogStay" }, route: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/route.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/route.js" }, object: "LogRoute" }, tracer: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/tracer.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/tracer.js" }, object: "LogTracer" }, retry: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/retry.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/retry.js" }, object: "LogRetry" }, visual: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/visual.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/visual.js" }, object: "LogVisual" } }, Gy = ["et", "profile", "heartbeat", "monitor"], fr = function() {
15019
+ }(), ji = { autotrack: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/autotrack.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/autotrack.js" }, object: "LogAutoTrack" }, ab: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/ab.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/ab.js" }, object: "LogAb" }, stay: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/stay.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/stay.js" }, object: "LogStay" }, route: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/route.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/route.js" }, object: "LogRoute" }, tracer: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/tracer.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/tracer.js" }, object: "LogTracer" }, retry: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/retry.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/retry.js" }, object: "LogRetry" }, visual: { src: { sg: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-sg/log-sdk/collect/5/plugin/visual.js", va: "https://lf-global-static.iapplogcdn.com/obj/applog-sdk-static-us/log-sdk/collect/5/plugin/visual.js" }, object: "LogVisual" } }, Gy = ["et", "profile", "heartbeat", "monitor"], hr = function() {
15021
15020
  function r(e) {
15022
- this.disableAutoPageView = !1, this.bridgeReport = !1, this.staging = !1, this.pluginInstances = [], this.sended = !1, this.started = !1, this.destroy = !1, this.sdkReady = !1, this.adapters = {}, this.loadType = "base", this.sdkStop = !1, this.name = e, this.hook = new ry(), this.remotePlugin = /* @__PURE__ */ new Map(), this.logger = new _y(e), this.Types = B, this.adapters.storage = yr;
15021
+ this.disableAutoPageView = !1, this.bridgeReport = !1, this.staging = !1, this.pluginInstances = [], this.sended = !1, this.started = !1, this.destroy = !1, this.sdkReady = !1, this.adapters = {}, this.loadType = "base", this.sdkStop = !1, this.name = e, this.hook = new ry(), this.remotePlugin = /* @__PURE__ */ new Map(), this.logger = new _y(e), this.Types = B, this.adapters.storage = vr;
15023
15022
  }
15024
15023
  return r.usePlugin = function(e, t, n) {
15025
15024
  if (t) {
@@ -15091,7 +15090,7 @@ var Py = function() {
15091
15090
  if (this.bridgeReport) this.appBridge.setConfig(t);
15092
15091
  else {
15093
15092
  t._staging_flag && t._staging_flag === 1 && (this.staging = !0), t.disable_auto_pv && (this.disableAutoPageView = !0, delete t.disable_auto_pv);
15094
- var n = Be({}, t);
15093
+ var n = Ne({}, t);
15095
15094
  if (this.initConfig && this.initConfig.configPersist) {
15096
15095
  var i = this.configManager.getStore();
15097
15096
  i && (n = Object.assign(i, t)), this.configManager.setStore(t);
@@ -15175,7 +15174,7 @@ var Py = function() {
15175
15174
  this.disableAutoPageView || this.predefinePageView();
15176
15175
  }, r.prototype.predefinePageView = function(e) {
15177
15176
  if (e === void 0 && (e = {}), this.inited) {
15178
- var t = { title: document.title || location.pathname, url: location.href, url_path: location.pathname, time: Date.now(), referrer: window.document.referrer, $is_first_time: "" + (this.configManager && this.configManager.is_first_time || !1) }, n = Be(Be({}, t), e);
15177
+ var t = { title: document.title || location.pathname, url: location.href, url_path: location.pathname, time: Date.now(), referrer: window.document.referrer, $is_first_time: "" + (this.configManager && this.configManager.is_first_time || !1) }, n = Ne(Ne({}, t), e);
15179
15178
  this.emit(P.DEBUGGER_MESSAGE, { type: P.DEBUGGER_MESSAGE_SDK, info: "SDK Report PV", level: "info", time: Date.now(), infoType: "sdk" }), this.event("predefine_pageview", n);
15180
15179
  } else console.warn("predefinePageView should call after init");
15181
15180
  }, r.prototype.enableTransPort = function() {
@@ -15189,7 +15188,7 @@ var Py = function() {
15189
15188
  }, r.prototype.setNativeAppId = function(e) {
15190
15189
  this.bridgeReport && this.appBridge.setNativeAppId(e);
15191
15190
  }, r.prototype.getSessionId = function() {
15192
- return Gr();
15191
+ return Ur();
15193
15192
  }, r.prototype.setSessionId = function(e) {
15194
15193
  this.emit(B.SessionReset, e);
15195
15194
  }, r.prototype.resetStayDuration = function(e, t, n) {
@@ -15203,7 +15202,7 @@ var Py = function() {
15203
15202
  if (!i) {
15204
15203
  i = !0;
15205
15204
  var d = n.configManager.get().user;
15206
- return s && (d.tobid = s, d["diss".split("").reverse().join("")] = s), e(Be({}, d));
15205
+ return s && (d.tobid = s, d["diss".split("").reverse().join("")] = s), e(Ne({}, d));
15207
15206
  }
15208
15207
  }, a = function() {
15209
15208
  n.tokenManager.getTobId().then(function(s) {
@@ -15444,10 +15443,10 @@ var Py = function() {
15444
15443
  }
15445
15444
  }, r;
15446
15445
  }();
15447
- fr.usePlugin(Vy, "extend"), fr.usePlugin(Ny, "et"), fr.usePlugin(By, "heartbeat"), fr.usePlugin(Fy, "monitor");
15448
- new fr("default");
15449
- var jy = fr;
15450
- class pr {
15446
+ hr.usePlugin(Vy, "extend"), hr.usePlugin(Ny, "et"), hr.usePlugin(By, "heartbeat"), hr.usePlugin(Fy, "monitor");
15447
+ new hr("default");
15448
+ var jy = hr;
15449
+ class fr {
15451
15450
  constructor({ userId: e }) {
15452
15451
  this.collector = new jy("media-engine-logger"), this.collector.init({
15453
15452
  app_id: 834499,
@@ -15461,7 +15460,7 @@ class pr {
15461
15460
  }), this.collector.start();
15462
15461
  }
15463
15462
  static getInstance({ userId: e }) {
15464
- return pr.instance || (pr.instance = new pr({ userId: e })), pr.instance;
15463
+ return fr.instance || (fr.instance = new fr({ userId: e })), fr.instance;
15465
15464
  }
15466
15465
  event(e, t) {
15467
15466
  this.collector.event(e, t || {});
@@ -15469,7 +15468,7 @@ class pr {
15469
15468
  }
15470
15469
  class Hy extends Qv {
15471
15470
  constructor({ userId: e }) {
15472
- super(ey), this.logger = pr.getInstance({ userId: e });
15471
+ super(ey), this.logger = fr.getInstance({ userId: e });
15473
15472
  }
15474
15473
  // 收到worker消息
15475
15474
  receiveWorkerMessage({ type: e, data: t }) {
@@ -15840,7 +15839,7 @@ class ju {
15840
15839
  return this.url;
15841
15840
  }
15842
15841
  async getStatsSnapshoot(e) {
15843
- e && await gn(e);
15842
+ e && await mn(e);
15844
15843
  const { video: t, audio: n, upspeed: i } = await this.engine.getStats();
15845
15844
  return {
15846
15845
  stats: {
@@ -15947,7 +15946,7 @@ class uS {
15947
15946
  "start reconnecting with max timeout: ",
15948
15947
  this._maxTimeout
15949
15948
  ), this.startTimeoutTimer(this._maxTimeout), this._pushConsumer.emitReconnectStateChange({
15950
- state: dr.START,
15949
+ state: ur.START,
15951
15950
  teaParams: {
15952
15951
  is_online: navigator.onLine,
15953
15952
  start_time: this._reconnectStartTime,
@@ -15965,7 +15964,7 @@ class uS {
15965
15964
  const i = this.getNextPushUrl();
15966
15965
  try {
15967
15966
  if (this._pushConsumer.emitReconnectStateChange({
15968
- state: dr.RECONNECTING,
15967
+ state: ur.RECONNECTING,
15969
15968
  params: {
15970
15969
  retryTime: this._reconnectCount
15971
15970
  },
@@ -16000,7 +15999,7 @@ class uS {
16000
15999
  }, this.executeStrategy = (n = !1) => {
16001
16000
  const i = n ? 0 : this._reconnectDelay;
16002
16001
  this._pushConsumer.emitReconnectStateChange({
16003
- state: dr.WAITING,
16002
+ state: ur.WAITING,
16004
16003
  params: {
16005
16004
  waitingTime: i,
16006
16005
  // 累加在执行策略中
@@ -16048,13 +16047,13 @@ class uS {
16048
16047
  return;
16049
16048
  const o = (Date.now() - this._reconnectStartTime) / 1e3;
16050
16049
  n || (e ? this._pushConsumer.emitReconnectStateChange({
16051
- state: dr.SUCCESS,
16050
+ state: ur.SUCCESS,
16052
16051
  teaParams: {
16053
16052
  reconnect_duration: o,
16054
16053
  session_id: this._pushConsumer.pushSessionId
16055
16054
  }
16056
16055
  }) : (this._logger.log("Reconnect strategy stopped: ", t), this._pushConsumer.emitReconnectStateChange({
16057
- state: dr.FAILED,
16056
+ state: ur.FAILED,
16058
16057
  params: { failedCode: t },
16059
16058
  teaParams: {
16060
16059
  reason: t,
@@ -16091,7 +16090,7 @@ class uS {
16091
16090
  return this.state !== "idle";
16092
16091
  }
16093
16092
  }
16094
- const xr = {
16093
+ const Ir = {
16095
16094
  /** 手动停止 */
16096
16095
  ManualStop: 0,
16097
16096
  /** 重连失败 */
@@ -16100,7 +16099,7 @@ const xr = {
16100
16099
  StartPushError: 2,
16101
16100
  /** 直播异常中断 */
16102
16101
  PushError: 3
16103
- }, ur = {
16102
+ }, cr = {
16104
16103
  /** 推流前检测 */
16105
16104
  PushCheck: 0,
16106
16105
  /** 推流异常 */
@@ -16117,10 +16116,10 @@ class dS extends Su {
16117
16116
  timeout: 5e3,
16118
16117
  retryCount: 1,
16119
16118
  retryDelay: 1e3
16120
- }, this._audioBitrate = _r(pc, "audio").bitrate, this._videoBitrate = _r(fc, "video").bitrate, this.handleReconnectError = (s, d) => {
16119
+ }, this._audioBitrate = gr(pc, "audio").bitrate, this._videoBitrate = gr(fc, "video").bitrate, this.handleReconnectError = (s, d) => {
16121
16120
  var c, u;
16122
16121
  X(J.STOP_PUSH_STREAM, {
16123
- reason: xr.ReconnectFailed,
16122
+ reason: Ir.ReconnectFailed,
16124
16123
  error_message: s,
16125
16124
  session_id: this._pushSessionId,
16126
16125
  push_mode: this._pushMode,
@@ -16141,7 +16140,7 @@ class dS extends Su {
16141
16140
  }, this._OnMediaReconnectFailed = () => {
16142
16141
  this._executeReconnect();
16143
16142
  }, this._OnRTMPError = (s) => {
16144
- const d = new lr(
16143
+ const d = new dr(
16145
16144
  We.PUBLISH_FAILED,
16146
16145
  `${s.code ? `code:${s.code},` : ""} message: ${s.message}`
16147
16146
  );
@@ -16149,7 +16148,7 @@ class dS extends Su {
16149
16148
  Ce.PushError,
16150
16149
  d
16151
16150
  ), X(J.STOP_PUSH_STREAM, {
16152
- reason: xr.PushError,
16151
+ reason: Ir.PushError,
16153
16152
  duration: this.pushDuration,
16154
16153
  session_id: this._pushSessionId,
16155
16154
  push_mode: this._pushMode,
@@ -16157,7 +16156,7 @@ class dS extends Su {
16157
16156
  error_code: s.code
16158
16157
  }), X(J.START_PUSH_STATUS, {
16159
16158
  is_success: !1,
16160
- reason: ur.PushError,
16159
+ reason: cr.PushError,
16161
16160
  error_message: s.message,
16162
16161
  session_id: this._pushSessionId,
16163
16162
  push_mode: this._pushMode,
@@ -16186,21 +16185,21 @@ class dS extends Su {
16186
16185
  break;
16187
16186
  case "failed":
16188
16187
  (d = this._reconnectStrategy) != null && d.isActive() ? this._executeReconnect() : (this.connectionState === qe.CONNECTED ? X(J.STOP_PUSH_STREAM, {
16189
- reason: xr.PushError,
16188
+ reason: Ir.PushError,
16190
16189
  error_message: "peerconnection failed",
16191
16190
  duration: this.pushDuration,
16192
16191
  session_id: this._pushSessionId,
16193
16192
  push_mode: this._pushMode
16194
16193
  }) : X(J.START_PUSH_STATUS, {
16195
16194
  is_success: !1,
16196
- reason: ur.PushError,
16195
+ reason: cr.PushError,
16197
16196
  error_message: "peerconnection failed",
16198
16197
  session_id: this._pushSessionId,
16199
16198
  push_mode: this._pushMode,
16200
16199
  push_url: this._pushUrl
16201
16200
  }), this.unpublish(), this._streamConsumeController.emit(
16202
16201
  Ce.PushError,
16203
- new lr(
16202
+ new dr(
16204
16203
  We.PUSH_CONNECT_FAILED,
16205
16204
  "pc failed"
16206
16205
  )
@@ -16260,7 +16259,7 @@ class dS extends Su {
16260
16259
  return this._prevStats;
16261
16260
  }
16262
16261
  async startPush(e, t = {}) {
16263
- var a, s, d;
16262
+ var a, s, d, c, u, f;
16264
16263
  if (t.isReconnect || (this._pushSessionId = Date.now(), X(J.START_PUSH, {
16265
16264
  push_url: e,
16266
16265
  session_id: this._pushSessionId
@@ -16268,7 +16267,7 @@ class dS extends Su {
16268
16267
  throw X(J.START_PUSH_STATUS, {
16269
16268
  is_success: !1,
16270
16269
  session_id: this._pushSessionId,
16271
- reason: ur.PushCheck,
16270
+ reason: cr.PushCheck,
16272
16271
  push_url: this._pushUrl
16273
16272
  }), new Error("lack publish url");
16274
16273
  if (this._connect) return;
@@ -16277,7 +16276,7 @@ class dS extends Su {
16277
16276
  if (this._needCheckAudioTrack && (!n || !i)) {
16278
16277
  X(J.START_PUSH_STATUS, {
16279
16278
  is_success: !1,
16280
- reason: ur.PushCheck,
16279
+ reason: cr.PushCheck,
16281
16280
  push_url: this._pushUrl,
16282
16281
  error_message: "lack videoTrack or audioTrack",
16283
16282
  video_track_id: n == null ? void 0 : n.id,
@@ -16291,7 +16290,7 @@ class dS extends Su {
16291
16290
  } else if (!n && !i) {
16292
16291
  X(J.START_PUSH_STATUS, {
16293
16292
  is_success: !1,
16294
- reason: ur.PushCheck,
16293
+ reason: cr.PushCheck,
16295
16294
  push_url: this._pushUrl,
16296
16295
  error_message: "lack videoTrack and audioTrack",
16297
16296
  push_mode: this._pushMode,
@@ -16321,25 +16320,31 @@ class dS extends Su {
16321
16320
  throw new Error(`not support push mode: ${this._pushMode}`);
16322
16321
  this._connect = o;
16323
16322
  try {
16324
- !t.isReconnect && ((a = this._reconnectStrategy) != null && a.isActive()) && this._reconnectStrategy.stop({ quiet: !0 }), (s = this._reconnectStrategy) != null && s.isActive() || this.setConnectState(qe.CONNECTING), await o.publish(
16323
+ !t.isReconnect && ((a = this._reconnectStrategy) != null && a.isActive()) && this._reconnectStrategy.stop({ quiet: !0 }), (s = this._reconnectStrategy) != null && s.isActive() || this.setConnectState(qe.CONNECTING);
16324
+ let h;
16325
+ ((d = this._composedStream.videoStream) == null ? void 0 : d.frameRate) !== 1 ? h = (c = this._composedStream.videoStream) == null ? void 0 : c.frameRate : h = (u = n == null ? void 0 : n.getSettings()) == null ? void 0 : u.frameRate, await o.publish(
16325
16326
  [i, n],
16326
16327
  [this._audioBitrate, this._videoBitrate],
16327
- { cfg: t.cfg, isReconnect: t.isReconnect }
16328
+ {
16329
+ cfg: t.cfg,
16330
+ isReconnect: t.isReconnect,
16331
+ frameRate: h
16332
+ }
16328
16333
  ), t.isReconnect || (Ka.log("startPush begin"), this._connectionStartDate = Date.now());
16329
- } catch (c) {
16330
- const u = new lr(
16334
+ } catch (h) {
16335
+ const g = new dr(
16331
16336
  We.PUBLISH_FAILED,
16332
- c.message,
16333
- c
16337
+ h.message,
16338
+ h
16334
16339
  );
16335
- if (Ka.groupEnd(), (d = this._reconnectStrategy) != null && d.isActive())
16336
- throw this.unpublish({ isReconnecting: !0 }), u;
16340
+ if (Ka.groupEnd(), (f = this._reconnectStrategy) != null && f.isActive())
16341
+ throw this.unpublish({ isReconnecting: !0 }), g;
16337
16342
  this._streamConsumeController.emit(
16338
16343
  Ce.PushError,
16339
- u
16344
+ g
16340
16345
  ), X(J.STOP_PUSH_STREAM, {
16341
- reason: xr.PushError,
16342
- error_message: u.message,
16346
+ reason: Ir.PushError,
16347
+ error_message: g.message,
16343
16348
  enable_reconnect: !1,
16344
16349
  push_mode: this._pushMode,
16345
16350
  session_id: this._pushSessionId,
@@ -16347,8 +16352,8 @@ class dS extends Su {
16347
16352
  }), X(J.START_PUSH_STATUS, {
16348
16353
  is_success: !1,
16349
16354
  push_url: this._pushUrl,
16350
- reason: ur.PushError,
16351
- error_message: u.message,
16355
+ reason: cr.PushError,
16356
+ error_message: g.message,
16352
16357
  session_id: this._pushSessionId,
16353
16358
  push_mode: this._pushMode
16354
16359
  }), this.unpublish();
@@ -16388,7 +16393,7 @@ class dS extends Su {
16388
16393
  !0
16389
16394
  );
16390
16395
  } else
16391
- await gn(2e3), X(
16396
+ await mn(2e3), X(
16392
16397
  J.PUSH_STATS,
16393
16398
  {
16394
16399
  push_url: this._pushUrl,
@@ -16429,7 +16434,7 @@ class dS extends Su {
16429
16434
  }
16430
16435
  ), await Promise.all(n.map((i) => i()));
16431
16436
  } catch (n) {
16432
- const i = new lr(
16437
+ const i = new dr(
16433
16438
  We.UPDATE_PUBLISH_FAILED,
16434
16439
  `${n.name}, code:${n.code}`
16435
16440
  );
@@ -16445,7 +16450,7 @@ class dS extends Su {
16445
16450
  }) {
16446
16451
  var t, n, i, o, a;
16447
16452
  e.isReconnecting && this.pushMode === "mediaEngine" || ((t = this._connect) == null || t.unpublish(), this._connect = null), this._prevStats = void 0, e.isManual && (X(J.STOP_PUSH_STREAM, {
16448
- reason: xr.ManualStop,
16453
+ reason: Ir.ManualStop,
16449
16454
  duration: this.pushDuration,
16450
16455
  session_id: this._streamConsumeController.pushSessionId,
16451
16456
  push_mode: this._pushMode,
@@ -17913,9 +17918,9 @@ t=0 0\r
17913
17918
  }($i)), $i.exports;
17914
17919
  }
17915
17920
  var Ed = vS();
17916
- const mr = /* @__PURE__ */ $n(Ed), yS = /* @__PURE__ */ kd({
17921
+ const pr = /* @__PURE__ */ $n(Ed), yS = /* @__PURE__ */ kd({
17917
17922
  __proto__: null,
17918
- default: mr
17923
+ default: pr
17919
17924
  }, [Ed]);
17920
17925
  function Dn(r) {
17921
17926
  if (!r.RTCIceCandidate || r.RTCIceCandidate && "foundation" in r.RTCIceCandidate.prototype)
@@ -17923,7 +17928,7 @@ function Dn(r) {
17923
17928
  const e = r.RTCIceCandidate;
17924
17929
  r.RTCIceCandidate = function(n) {
17925
17930
  if (typeof n == "object" && n.candidate && n.candidate.indexOf("a=") === 0 && (n = JSON.parse(JSON.stringify(n)), n.candidate = n.candidate.substring(2)), n.candidate && n.candidate.length) {
17926
- const i = new e(n), o = mr.parseCandidate(n.candidate);
17931
+ const i = new e(n), o = pr.parseCandidate(n.candidate);
17927
17932
  for (const a in o)
17928
17933
  a in i || Object.defineProperty(
17929
17934
  i,
@@ -17948,7 +17953,7 @@ function Dn(r) {
17948
17953
  function zo(r) {
17949
17954
  !r.RTCIceCandidate || r.RTCIceCandidate && "relayProtocol" in r.RTCIceCandidate.prototype || ir(r, "icecandidate", (e) => {
17950
17955
  if (e.candidate) {
17951
- const t = mr.parseCandidate(e.candidate.candidate);
17956
+ const t = pr.parseCandidate(e.candidate.candidate);
17952
17957
  t.type === "relay" && (e.candidate.relayProtocol = {
17953
17958
  0: "tls",
17954
17959
  1: "tcp",
@@ -17969,9 +17974,9 @@ function An(r, e) {
17969
17974
  const t = function(s) {
17970
17975
  if (!s || !s.sdp)
17971
17976
  return !1;
17972
- const d = mr.splitSections(s.sdp);
17977
+ const d = pr.splitSections(s.sdp);
17973
17978
  return d.shift(), d.some((c) => {
17974
- const u = mr.parseMLine(c);
17979
+ const u = pr.parseMLine(c);
17975
17980
  return u && u.kind === "application" && u.protocol.indexOf("SCTP") !== -1;
17976
17981
  });
17977
17982
  }, n = function(s) {
@@ -17986,7 +17991,7 @@ function An(r, e) {
17986
17991
  }, o = function(s, d) {
17987
17992
  let c = 65536;
17988
17993
  e.browser === "firefox" && e.version === 57 && (c = 65535);
17989
- const u = mr.matchPrefix(
17994
+ const u = pr.matchPrefix(
17990
17995
  s.sdp,
17991
17996
  "a=max-message-size:"
17992
17997
  );
@@ -18796,7 +18801,7 @@ class zS extends Ft {
18796
18801
  if (X(J.PUSH_AUDIO_CONTEXT_START_FAILED, {
18797
18802
  error: t
18798
18803
  }), this._options.checkAudio)
18799
- throw new lr(
18804
+ throw new dr(
18800
18805
  We.AUDIO_RESUME_FAILED,
18801
18806
  (t == null ? void 0 : t.message) ?? "audio resume failed"
18802
18807
  );
@@ -19065,7 +19070,7 @@ class zS extends Ft {
19065
19070
  quality: e
19066
19071
  }), this._streamConsumeController.pushMode === "webTransport" && ["120p", "180p", "240p"].indexOf(e) !== -1)
19067
19072
  throw new Error("quality not allowed lower than 360p on rtmp mode");
19068
- const { width: t, height: n, frameRate: i, bitrate: o } = _r(
19073
+ const { width: t, height: n, frameRate: i, bitrate: o } = gr(
19069
19074
  e,
19070
19075
  "video"
19071
19076
  );
@@ -19099,7 +19104,7 @@ class zS extends Ft {
19099
19104
  X(J.SET_AUDIO_QUALITY, {
19100
19105
  quality: e
19101
19106
  });
19102
- const { sampleRate: t, bitrate: n } = _r(e, "audio");
19107
+ const { sampleRate: t, bitrate: n } = gr(e, "audio");
19103
19108
  this._streamManagerController.setAudioSampleRate(t), this._streamConsumeController.setBitrate(n, "audio");
19104
19109
  }
19105
19110
  /** {en}