aibox-web-tracing 0.0.3 → 0.0.4

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/es/index.mjs CHANGED
@@ -338,10 +338,10 @@ function En(e) {
338
338
  sendTypeByXmlBody: q,
339
339
  // whiteScreen,
340
340
  beforePushEventList: ye,
341
- beforeSendData: _,
341
+ beforeSendData: G,
342
342
  timeout: Yt,
343
- maxQueueLength: Gt,
344
- checkRecoverInterval: _t,
343
+ maxQueueLength: _t,
344
+ checkRecoverInterval: Gt,
345
345
  transformSendParams: zt
346
346
  } = e, z = [];
347
347
  return i && typeof i == "object" ? z.push(E(i.core, "pv.core", "boolean")) : z.push(E(i, "pv", "boolean")), u && typeof u == "object" ? z.push(
@@ -376,10 +376,10 @@ function En(e) {
376
376
  E(q, "sendTypeByXmlBody", "boolean"),
377
377
  // validateOption(whiteScreen, 'whiteScreen', 'boolean'),
378
378
  E(ye, "beforePushEventList", "function"),
379
- E(_, "beforeSendData", "function"),
379
+ E(G, "beforeSendData", "function"),
380
380
  E(Yt, "timeout", "number"),
381
- E(Gt, "maxQueueLength", "number"),
382
- E(_t, "checkRecoverInterval", "number"),
381
+ E(_t, "maxQueueLength", "number"),
382
+ E(Gt, "checkRecoverInterval", "number"),
383
383
  E(zt, "transformSendParams", "function")
384
384
  ].every((Jt) => !!Jt);
385
385
  }
@@ -414,7 +414,7 @@ let d;
414
414
  function Ln(e) {
415
415
  return !Sn(e) || !En(e) ? !1 : (d = qt(new yn(e)), C.options = d, !0);
416
416
  }
417
- const wn = "0.0.3", dt = "_webtracing_device_id", Ye = "_webtracing_session_id", Rn = 18e5, Ge = "_webtracing_localization_key", An = wn, f = {
417
+ const wn = "0.0.4", dt = "_webtracing_device_id", Ye = "_webtracing_session_id", Rn = 18e5, _e = "_webtracing_localization_key", An = wn, f = {
418
418
  ERROR: "error",
419
419
  CONSOLEERROR: "consoleError",
420
420
  UNHANDLEDREJECTION: "unhandledrejection",
@@ -431,7 +431,7 @@ const wn = "0.0.3", dt = "_webtracing_device_id", Ye = "_webtracing_session_id",
431
431
  READYSTATECHANGE: "readystatechange",
432
432
  ONLINE: "online",
433
433
  OFFLINE: "offline"
434
- }, V = {
434
+ }, M = {
435
435
  PV: "pv",
436
436
  // 路由跳转
437
437
  PVDURATION: "pv-duration",
@@ -449,17 +449,17 @@ const wn = "0.0.3", dt = "_webtracing_device_id", Ye = "_webtracing_session_id",
449
449
  INTERSECTION: "intersection"
450
450
  // 曝光采集
451
451
  }, O = {
452
- PAGE: "page",
452
+ PAGE: "page_performance",
453
453
  // 页面
454
454
  RESOURCE: "resource",
455
455
  // 资源
456
456
  SERVER: "server",
457
457
  // 请求
458
- CODE: "code",
458
+ CODE: "code_error",
459
459
  // code
460
- REJECT: "reject",
460
+ REJECT: "reject_error",
461
461
  // reject
462
- CONSOLEERROR: "console.error"
462
+ CONSOLEERROR: "console_error"
463
463
  // console.error
464
464
  }, In = {
465
465
  0: "navigate",
@@ -702,15 +702,15 @@ function Yn() {
702
702
  w[e] = null;
703
703
  });
704
704
  }
705
- let _e = function() {
706
- return _e = Object.assign || function(e) {
705
+ let Ge = function() {
706
+ return Ge = Object.assign || function(e) {
707
707
  for (var n, t = 1, r = arguments.length; t < r; t++)
708
708
  for (const o in n = arguments[t])
709
709
  Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
710
710
  return e;
711
- }, _e.apply(this, arguments);
711
+ }, Ge.apply(this, arguments);
712
712
  };
713
- function G(e, n, t, r) {
713
+ function _(e, n, t, r) {
714
714
  return new (t || (t = Promise))(function(o, a) {
715
715
  function s(u) {
716
716
  try {
@@ -831,7 +831,7 @@ function ft(e, n) {
831
831
  }
832
832
  }
833
833
  function ht(e, n, t) {
834
- return t === void 0 && (t = 16), G(this, void 0, void 0, function() {
834
+ return t === void 0 && (t = 16), _(this, void 0, void 0, function() {
835
835
  let r, o, a;
836
836
  return W(this, function(s) {
837
837
  switch (s.label) {
@@ -866,7 +866,7 @@ function H(e, n) {
866
866
  function ne(e, n) {
867
867
  return (n %= 64) === 32 ? [e[1], e[0]] : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n | e[0] >>> 32 - n] : (n -= 32, [e[1] << n | e[0] >>> 32 - n, e[0] << n | e[1] >>> 32 - n]);
868
868
  }
869
- function M(e, n) {
869
+ function V(e, n) {
870
870
  return (n %= 64) === 0 ? e : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n] : [e[1] << n - 32, 0];
871
871
  }
872
872
  function I(e, n) {
@@ -875,7 +875,7 @@ function I(e, n) {
875
875
  function mt(e) {
876
876
  return e = I(e, [0, e[0] >>> 1]), e = I(e = H(e, [4283543511, 3981806797]), [0, e[0] >>> 1]), e = I(e = H(e, [3301882366, 444984403]), [0, e[0] >>> 1]);
877
877
  }
878
- function Gn(e, n) {
878
+ function _n(e, n) {
879
879
  n = n || 0;
880
880
  let t, r = (e = e || "").length % 16, o = e.length - r, a = [0, n], s = [0, n], c = [0, 0], i = [0, 0], u = [2277735313, 289559509], l = [1291169091, 658871167];
881
881
  for (t = 0; t < o; t += 16)
@@ -888,33 +888,33 @@ function Gn(e, n) {
888
888
  ], c = ne(c = H(c, u), 31), a = J(a = ne(a = I(a, c = H(c, l)), 27), s), a = J(H(a, [0, 5]), [0, 1390208809]), i = ne(i = H(i, l), 33), s = J(s = ne(s = I(s, i = H(i, u)), 31), a), s = J(H(s, [0, 5]), [0, 944331445]);
889
889
  switch (c = [0, 0], i = [0, 0], r) {
890
890
  case 15:
891
- i = I(i, M([0, e.charCodeAt(t + 14)], 48));
891
+ i = I(i, V([0, e.charCodeAt(t + 14)], 48));
892
892
  case 14:
893
- i = I(i, M([0, e.charCodeAt(t + 13)], 40));
893
+ i = I(i, V([0, e.charCodeAt(t + 13)], 40));
894
894
  case 13:
895
- i = I(i, M([0, e.charCodeAt(t + 12)], 32));
895
+ i = I(i, V([0, e.charCodeAt(t + 12)], 32));
896
896
  case 12:
897
- i = I(i, M([0, e.charCodeAt(t + 11)], 24));
897
+ i = I(i, V([0, e.charCodeAt(t + 11)], 24));
898
898
  case 11:
899
- i = I(i, M([0, e.charCodeAt(t + 10)], 16));
899
+ i = I(i, V([0, e.charCodeAt(t + 10)], 16));
900
900
  case 10:
901
- i = I(i, M([0, e.charCodeAt(t + 9)], 8));
901
+ i = I(i, V([0, e.charCodeAt(t + 9)], 8));
902
902
  case 9:
903
903
  i = H(i = I(i, [0, e.charCodeAt(t + 8)]), l), s = I(s, i = H(i = ne(i, 33), u));
904
904
  case 8:
905
- c = I(c, M([0, e.charCodeAt(t + 7)], 56));
905
+ c = I(c, V([0, e.charCodeAt(t + 7)], 56));
906
906
  case 7:
907
- c = I(c, M([0, e.charCodeAt(t + 6)], 48));
907
+ c = I(c, V([0, e.charCodeAt(t + 6)], 48));
908
908
  case 6:
909
- c = I(c, M([0, e.charCodeAt(t + 5)], 40));
909
+ c = I(c, V([0, e.charCodeAt(t + 5)], 40));
910
910
  case 5:
911
- c = I(c, M([0, e.charCodeAt(t + 4)], 32));
911
+ c = I(c, V([0, e.charCodeAt(t + 4)], 32));
912
912
  case 4:
913
- c = I(c, M([0, e.charCodeAt(t + 3)], 24));
913
+ c = I(c, V([0, e.charCodeAt(t + 3)], 24));
914
914
  case 3:
915
- c = I(c, M([0, e.charCodeAt(t + 2)], 16));
915
+ c = I(c, V([0, e.charCodeAt(t + 2)], 16));
916
916
  case 2:
917
- c = I(c, M([0, e.charCodeAt(t + 1)], 8));
917
+ c = I(c, V([0, e.charCodeAt(t + 1)], 8));
918
918
  case 1:
919
919
  c = H(c = I(c, [0, e.charCodeAt(t)]), u), a = I(a, c = H(c = ne(c, 31), l));
920
920
  }
@@ -942,7 +942,7 @@ function Ht(e, n) {
942
942
  function pt(e) {
943
943
  return e && typeof e == "object" && "message" in e ? e : { message: e };
944
944
  }
945
- function _n(e) {
945
+ function Gn(e) {
946
946
  return typeof e != "function";
947
947
  }
948
948
  function zn(e, n, t) {
@@ -965,7 +965,7 @@ function zn(e, n, t) {
965
965
  return { error: pt(v[1]), duration: S };
966
966
  });
967
967
  const y = v[1];
968
- if (_n(y))
968
+ if (Gn(y))
969
969
  return l(function() {
970
970
  return { value: y, duration: S };
971
971
  });
@@ -990,7 +990,7 @@ function zn(e, n, t) {
990
990
  };
991
991
  })(e[a], n);
992
992
  }), function() {
993
- return G(this, void 0, void 0, function() {
993
+ return _(this, void 0, void 0, function() {
994
994
  let a, s, c, i, u, l;
995
995
  return W(this, function(h) {
996
996
  switch (h.label) {
@@ -1120,7 +1120,7 @@ function vt(e) {
1120
1120
  }
1121
1121
  function gt(e, n, t) {
1122
1122
  let r, o, a;
1123
- return t === void 0 && (t = 50), G(this, void 0, void 0, function() {
1123
+ return t === void 0 && (t = 50), _(this, void 0, void 0, function() {
1124
1124
  let s, c;
1125
1125
  return W(this, function(i) {
1126
1126
  switch (i.label) {
@@ -1281,7 +1281,7 @@ function er() {
1281
1281
  n();
1282
1282
  }
1283
1283
  })(), function() {
1284
- return G(e, void 0, void 0, function() {
1284
+ return _(e, void 0, void 0, function() {
1285
1285
  let n;
1286
1286
  return W(this, function(t) {
1287
1287
  switch (t.label) {
@@ -1315,7 +1315,7 @@ function Ve(e) {
1315
1315
  }
1316
1316
  function tr(e) {
1317
1317
  let n;
1318
- return G(this, void 0, void 0, function() {
1318
+ return _(this, void 0, void 0, function() {
1319
1319
  let t, r, o, a, s, c, i;
1320
1320
  return W(this, function(u) {
1321
1321
  switch (u.label) {
@@ -1398,7 +1398,7 @@ const L = Math, N = function() {
1398
1398
  },
1399
1399
  domBlockers: function(e) {
1400
1400
  const n = (e === void 0 ? {} : e).debug;
1401
- return G(this, void 0, void 0, function() {
1401
+ return _(this, void 0, void 0, function() {
1402
1402
  let t, r, o, a, s;
1403
1403
  return W(this, function(c) {
1404
1404
  switch (c.label) {
@@ -1825,8 +1825,8 @@ const L = Math, N = function() {
1825
1825
  return [
1826
1826
  new Promise(function(y, m) {
1827
1827
  let k = !1, x = 0, U = 0;
1828
- u.oncomplete = function(_) {
1829
- return y(_.renderedBuffer);
1828
+ u.oncomplete = function(G) {
1829
+ return y(G.renderedBuffer);
1830
1830
  };
1831
1831
  const q = function() {
1832
1832
  setTimeout(function() {
@@ -1834,16 +1834,16 @@ const L = Math, N = function() {
1834
1834
  }, Math.min(v, U + g - Date.now()));
1835
1835
  }, ye = function() {
1836
1836
  try {
1837
- const _ = u.startRendering();
1838
- switch (Vt(_) && ke(_), u.state) {
1837
+ const G = u.startRendering();
1838
+ switch (Vt(G) && ke(G), u.state) {
1839
1839
  case "running":
1840
1840
  U = Date.now(), k && q();
1841
1841
  break;
1842
1842
  case "suspended":
1843
1843
  document.hidden || x++, k && x >= l ? m(vt("suspended")) : setTimeout(ye, h);
1844
1844
  }
1845
- } catch (_) {
1846
- m(_);
1845
+ } catch (G) {
1846
+ m(G);
1847
1847
  }
1848
1848
  };
1849
1849
  ye(), S = function() {
@@ -1871,7 +1871,7 @@ const L = Math, N = function() {
1871
1871
  screenFrame: function() {
1872
1872
  const e = this, n = er();
1873
1873
  return function() {
1874
- return G(e, void 0, void 0, function() {
1874
+ return _(e, void 0, void 0, function() {
1875
1875
  let t, r;
1876
1876
  return W(this, function(o) {
1877
1877
  switch (o.label) {
@@ -2191,7 +2191,7 @@ function or(e) {
2191
2191
  return JSON.stringify(
2192
2192
  e,
2193
2193
  function(n, t) {
2194
- return t instanceof Error ? _e(
2194
+ return t instanceof Error ? Ge(
2195
2195
  {
2196
2196
  name: (ie = t).name,
2197
2197
  message: ie.message,
@@ -2205,7 +2205,7 @@ function or(e) {
2205
2205
  );
2206
2206
  }
2207
2207
  function ir(e) {
2208
- return Gn(
2208
+ return _n(
2209
2209
  (function(n) {
2210
2210
  for (var t = "", r = 0, o = Object.keys(n).sort(); r < o.length; r++) {
2211
2211
  const a = o[r], s = n[a], c = s.error ? "error" : JSON.stringify(s.value);
@@ -2234,7 +2234,7 @@ function sr(e, n) {
2234
2234
  const t = Date.now();
2235
2235
  return {
2236
2236
  get: function(r) {
2237
- return G(this, void 0, void 0, function() {
2237
+ return _(this, void 0, void 0, function() {
2238
2238
  let o, a, s;
2239
2239
  return W(this, function(c) {
2240
2240
  switch (c.label) {
@@ -2269,7 +2269,7 @@ components: `).concat(or(a), "\n```")
2269
2269
  }
2270
2270
  function cr(e) {
2271
2271
  const n = e === void 0 ? {} : e, t = n.delayFallback, r = n.debug;
2272
- return n.monitoring, G(this, void 0, void 0, function() {
2272
+ return n.monitoring, _(this, void 0, void 0, function() {
2273
2273
  return W(this, function(o) {
2274
2274
  switch (o.label) {
2275
2275
  case 0:
@@ -2459,7 +2459,7 @@ class vr {
2459
2459
  })), o = d.value.transformSendParams ? d.value.transformSendParams(r.value) : null;
2460
2460
  if (d.value.localization) {
2461
2461
  $e.setSendDataItem(
2462
- Ge,
2462
+ _e,
2463
2463
  r.value
2464
2464
  ) || d.value.localizationOverFlow(r.value);
2465
2465
  return;
@@ -2884,7 +2884,7 @@ function It(e) {
2884
2884
  if (n instanceof HTMLElement && n.nodeType === 1) {
2885
2885
  const t = {
2886
2886
  initiatorType: n.nodeName.toLowerCase(),
2887
- eventId: O.RESOURCE,
2887
+ eventId: `${O.RESOURCE}_${M.ERROR}`,
2888
2888
  requestUrl: ""
2889
2889
  };
2890
2890
  return n.nodeName.toLowerCase() === "link" ? t.requestUrl = n.href : t.requestUrl = n.currentSrc || n.src, t;
@@ -2914,7 +2914,7 @@ function Mr() {
2914
2914
  function Re(e, n = !1) {
2915
2915
  const t = {
2916
2916
  ...e,
2917
- eventType: V.ERROR,
2917
+ eventType: M.ERROR,
2918
2918
  recordscreen: d.value.recordScreen ? Ir(Mr()) : null,
2919
2919
  triggerPageUrl: F(),
2920
2920
  triggerTime: R()
@@ -3004,7 +3004,7 @@ function Xr() {
3004
3004
  type: f.CLICK,
3005
3005
  callback: (e) => {
3006
3006
  const n = new Dr({
3007
- eventType: V.CLICK
3007
+ eventType: M.CLICK
3008
3008
  }), t = e.composedPath() ? e.composedPath() : e.target ? jr(e.target) : [], r = t.find(
3009
3009
  (i) => i.hasAttribute && (i.hasAttribute("data-warden-container") || i.hasAttribute("data-warden-event-id") || i.hasAttribute("data-warden-title"))
3010
3010
  );
@@ -3094,14 +3094,14 @@ function Yr(e = []) {
3094
3094
  c.includes(u) || (s[u] = i.nodeValue);
3095
3095
  }), s;
3096
3096
  }
3097
- function Gr() {
3097
+ function _r() {
3098
3098
  d.value.event.core && Xr();
3099
3099
  }
3100
- function _r(e = {}, n = !1) {
3100
+ function Gr(e = {}, n = !1) {
3101
3101
  T.emit(
3102
3102
  {
3103
3103
  ...e,
3104
- eventType: V.CUSTOM,
3104
+ eventType: M.CUSTOM,
3105
3105
  triggerTime: R(),
3106
3106
  triggerPageUrl: F()
3107
3107
  },
@@ -3158,7 +3158,7 @@ function Ct(e) {
3158
3158
  }), r.push(
3159
3159
  ce({
3160
3160
  ...s,
3161
- eventType: V.PERFORMANCE,
3161
+ eventType: M.PERFORMANCE,
3162
3162
  eventId: O.RESOURCE,
3163
3163
  requestUrl: o.name,
3164
3164
  triggerTime: R(),
@@ -3178,7 +3178,7 @@ function qr() {
3178
3178
  e.indexOf(s.toLowerCase()) !== -1 && (D(a, f.LOAD, function() {
3179
3179
  T.emit(
3180
3180
  ce({
3181
- eventType: V.PERFORMANCE,
3181
+ eventType: M.PERFORMANCE,
3182
3182
  eventId: O.RESOURCE,
3183
3183
  requestUrl: a.src || a.href,
3184
3184
  duration: R() - r,
@@ -3189,7 +3189,7 @@ function qr() {
3189
3189
  }), D(a, f.ERROR, function() {
3190
3190
  T.emit(
3191
3191
  ce({
3192
- eventType: V.PERFORMANCE,
3192
+ eventType: M.PERFORMANCE,
3193
3193
  eventId: O.RESOURCE,
3194
3194
  requestUrl: a.src || a.href,
3195
3195
  responseStatus: "error",
@@ -3216,7 +3216,7 @@ function $r() {
3216
3216
  C.firstScreen ? C.firstScreen.push({ ...t }) : C.firstScreen = [{ ...t }], T.emit(
3217
3217
  ce({
3218
3218
  ...t,
3219
- eventType: V.PERFORMANCE,
3219
+ eventType: M.PERFORMANCE,
3220
3220
  eventId: O.PAGE
3221
3221
  })
3222
3222
  );
@@ -3244,7 +3244,7 @@ function Qr() {
3244
3244
  C.firstScreen ? C.firstScreen.push({ ...r }) : C.firstScreen = [{ ...r }], T.emit(
3245
3245
  ce({
3246
3246
  ...r,
3247
- eventType: V.PERFORMANCE,
3247
+ eventType: M.PERFORMANCE,
3248
3248
  eventId: O.PAGE
3249
3249
  })
3250
3250
  );
@@ -3265,7 +3265,7 @@ function at(e = {}, n = !1) {
3265
3265
  ...e,
3266
3266
  triggerTime: R(),
3267
3267
  triggerPageUrl: F(),
3268
- eventType: V.PERFORMANCE
3268
+ eventType: M.PERFORMANCE
3269
3269
  };
3270
3270
  T.emit(ce(t), n);
3271
3271
  }
@@ -3416,7 +3416,7 @@ function he(e = {}) {
3416
3416
  () => {
3417
3417
  K = F();
3418
3418
  const s = {
3419
- eventType: V.PV,
3419
+ eventType: M.PV,
3420
3420
  eventId: le.pageId,
3421
3421
  triggerPageUrl: F(),
3422
3422
  referer: n,
@@ -3429,7 +3429,7 @@ function he(e = {}) {
3429
3429
  const c = R() - Ke;
3430
3430
  Ke = R(), Object.values(ge).length > 0 && c > 100 && T.emit({ ...ge, durationTime: c }), ge = {
3431
3431
  ...s,
3432
- eventType: V.PVDURATION
3432
+ eventType: M.PVDURATION
3433
3433
  };
3434
3434
  },
3435
3435
  o ? 0 : 17
@@ -3441,7 +3441,7 @@ function so(e = {}, n = !1) {
3441
3441
  referer: K,
3442
3442
  title: document.title,
3443
3443
  ...e,
3444
- eventType: V.PV,
3444
+ eventType: M.PV,
3445
3445
  eventId: le.pageId,
3446
3446
  triggerPageUrl: F(),
3447
3447
  triggerTime: R()
@@ -3502,7 +3502,7 @@ class uo {
3502
3502
  */
3503
3503
  sendEvent(n) {
3504
3504
  T.emit({
3505
- eventType: V.INTERSECTION,
3505
+ eventType: M.INTERSECTION,
3506
3506
  triggerPageUrl: F(),
3507
3507
  ...n
3508
3508
  });
@@ -3601,7 +3601,7 @@ function wo(e = {}, n = !1) {
3601
3601
  }
3602
3602
  function Ro(e = {}, n = !1) {
3603
3603
  if (P("traceCustomEvent"))
3604
- return _r(e, n);
3604
+ return Gr(e, n);
3605
3605
  }
3606
3606
  function Ao(e = {}, n = !1) {
3607
3607
  if (P("tracePageView"))
@@ -3621,8 +3621,8 @@ function Co() {
3621
3621
  }
3622
3622
  function Oo() {
3623
3623
  if (!P("sendData") && !d.value.localization) return;
3624
- const e = $e.getItem(Ge);
3625
- e && (T.sendLocal(e), $e.removeItem(Ge));
3624
+ const e = $e.getItem(_e);
3625
+ e && (T.sendLocal(e), $e.removeItem(_e));
3626
3626
  }
3627
3627
  function Po(e) {
3628
3628
  !P("localizationOverFlow") && !d.value.localization || (d.value.localizationOverFlow = e);
@@ -3654,7 +3654,7 @@ const Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3654
3654
  unzipRecordscreen: ho
3655
3655
  }, Symbol.toStringTag, { value: "Module" }));
3656
3656
  function No(e) {
3657
- p.__webTracingInit__ || Ln(e) && (Tn(), yr(), gr(), Sr(), Vr(), Gr(), oo(), Kr(), ao(), lo(), d.value.recordScreen && Rr(), p.__webTracingInit__ = !0);
3657
+ p.__webTracingInit__ || Ln(e) && (Tn(), yr(), gr(), Sr(), Vr(), _r(), oo(), Kr(), ao(), lo(), d.value.recordScreen && Rr(), p.__webTracingInit__ = !0);
3658
3658
  }
3659
3659
  function jo() {
3660
3660
  zr(), Hr(), io(), eo(), fo(), Tr(), co(), Yn(), T && T.destroy(), p.__webTracingInit__ = !1;
@@ -3663,7 +3663,7 @@ function Uo(e, n) {
3663
3663
  No(n);
3664
3664
  }
3665
3665
  export {
3666
- V as SEDNEVENTTYPES,
3666
+ M as SEDNEVENTTYPES,
3667
3667
  O as SENDID,
3668
3668
  d as _options,
3669
3669
  vo as afterSendData,
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("vue"),gn=require("rrweb"),Pt=require("pako"),Re=require("js-base64");function ee(e){return function(n){return Object.prototype.toString.call(n)===`[object ${e}]`}}const et=ee("RegExp"),bn=ee("Number"),yn=ee("String"),En=ee("Boolean"),Sn=ee("Function"),Ce=ee("Array"),Ln=ee("Window"),Oe=e=>En(e)&&String(e)==="false";function wn(e){return yn(e)&&e.trim()===""||e===void 0||e===null}const Rn=Ln(typeof window<"u"?window:0),An=!!window?.process?.versions?.electron,je=typeof navigator<"u"&&navigator.userAgent.includes("jsdom")||typeof window<"u"&&window.jsdom;function xt(){return Rn||An||je?window:{}}function In(){return p.__webTracing__=p.__webTracing__||{},p.__webTracing__}function Tn(){return!!p.__webTracingInit__}const p=xt(),C=In();function ae(...e){exports._options.value.debug&&console.log("@web-tracing: ",...e)}function K(...e){console.error("@web-tracing: ",...e)}function V(e,n,t,r=!1){e.addEventListener(n,t,r)}function le(e,n,t,r=!1){if(e!==void 0&&(n in e||r)){const o=e[n],a=t(o);Sn(a)&&(e[n]=a)}}function se(e){return Object.keys(e).forEach(n=>{const t=e[n];bn(t)&&(e[n]=t===0?void 0:parseFloat(t.toFixed(2)))}),e}function N(){return typeof document>"u"||document.location==null?"":document.location.href}function w(){return Date.now()}function Nt(e,n,t=!1){let r=null,o;return function(...a){o=a,r===null&&(t&&e.apply(this,o),r=setTimeout(()=>{r=null,e.apply(this,o)},n))}}function kn(e,n,t=!1){let r=null;return function(...o){t&&(e.call(this,...o),t=!1),r&&clearTimeout(r),r=setTimeout(()=>{e.call(this,...o)},n)}}function Pe(e,...n){const t=new Map;for(const r of e){const o=n.filter(a=>r[a]).map(a=>r[a]).join(":");t.has(o)||t.set(o,[]),t.get(o).push(r)}return Array.from(t.values())}function Ae(e,...n){return n.forEach(t=>{for(const r in t)t[r]!==null&&et(t[r])?e[r]=t[r]:t[r]!==null&&typeof t[r]=="object"?e[r]=Ae(e[r]||(Ce(t[r])?[]:{}),t[r]):e[r]=t[r]}),e}function O(e){return Tn()?!0:(K(`${e} 需要在SDK初始化之后使用`),!1)}function ce(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function de(e,n){return e in n}function Cn(e){return Math.random()<=e}function te(e,n,t="0"){const r=String(e);if(r.length<n){let o=r;for(let a=0;a<n-r.length;a+=1)o=t+o;return o}return r}function On(e){return e.split("?")[0]}function We(){const e=new Date,n=parseInt(`${e.getFullYear()}${te(e.getMonth()+1,2)}${te(e.getDate(),2)}`,10).toString(16),t=parseInt(`${te(e.getHours(),2)}${te(e.getMinutes(),2)}${te(e.getSeconds(),2)}${te(e.getMilliseconds(),3)}`,10).toString(16);let r=n+t.length+t;for(;r.length<32;)r+=Math.floor(Math.random()*16).toString(16);return`${r.slice(0,8)}-${r.slice(8,16)}-${r.slice(16)}`}function tt(e){const n=document.cookie.match(new RegExp(`${e}=([^;]+)(;|$)`));return n?n[1]:void 0}function Pn(e,n){const t=new Blob([JSON.stringify(n)],{type:"application/json"});return navigator.sendBeacon(e,t)}const Le=[];function xn(e,n){return new Promise(t=>{const r=new Image;r.src=`${e}?v=${encodeURIComponent(JSON.stringify(n))}`,Le.push(r),r.onload=()=>{t()},r.onerror=function(){t()}})}function st(e,n,t=5e3){return new Promise((r,o)=>{const a=new XMLHttpRequest;a.open("post",e),a.setRequestHeader("content-type","application/json"),a.timeout=t,a.send(JSON.stringify(n)),a.onreadystatechange=function(){a.readyState===4&&(a.status>=200&&a.status<300?r():o(new Error("@web-tracing XMLHttpRequest error: "+a.status)))},a.ontimeout=function(){o(new Error("@web-tracing XMLHttpRequest timeout"))},a.onerror=function(){o(new Error("@web-tracing XMLHttpRequest network error"))}})}function ye(e,n,t){if(e.length===0)return t;let r;for(let o=0;o<e.length;o++){const a=e[o];o===0||n?r=a(t):r=a(r)}return r}function xe(e){return Ce(e)?e:[e]}const Nn=Array.prototype.map||function(n){const t=[];for(let r=0;r<this.length;r+=1)t.push(n(this[r],r,this));return t};function Ft(e,n){return Nn.call(e,n)}const Fn=Array.prototype.filter||function(n){const t=[];for(let r=0;r<this.length;r+=1)n(this[r],r,this)&&t.push(this[r]);return t};function Mn(e,n){return Fn.call(e,n)}const _n=window.requestIdleCallback||window.requestAnimationFrame||(e=>setTimeout(e,17));function ct(e,n){const t=JSON.stringify(e);return new TextEncoder().encode(t).length/1024>n}function Be(e){if(!e)return{};const n={},t=e.split("?")[1];if(t){const r=t.split("&");for(const o of r){const[a,s]=o.split("=");n[decodeURIComponent(a)]=decodeURIComponent(s)}}return n}function Ze(e,n=new Map){if(e!==null&&typeof e=="object"){let t=n.get(e);return t||(e instanceof Array?(t=[],n.set(e,t),e.forEach((r,o)=>{t[o]=Ze(r,n)})):(t={},n.set(e,t),Object.keys(e).forEach(r=>{de(r,e)&&(t[r]=Ze(e[r],n))})),t)}return e}function j(e,n,t,r=!1){e.removeEventListener(n,t,r)}class Vn{dsn="";appName="";appCode="";appVersion="";userUuid="";sdkUserUuid="";debug=!1;pv={core:!1};performance={core:!1,firstResource:!1,server:!1};error={core:!1,server:!1};event={core:!1};recordScreen=!0;timeout=5e3;maxQueueLength=200;checkRecoverInterval=1;ext={};tracesSampleRate=1;cacheMaxLength=5;cacheWatingTime=5e3;ignoreErrors=[];ignoreRequest=[];scopeError=!1;localization=!1;sendTypeByXmlBody=!1;beforePushEventList=[];beforeSendData=[];afterSendData=[];localizationOverFlow=()=>{};constructor(n){const t=this.transitionOptions(n);t.ignoreRequest.push(new RegExp(t.dsn)),Ae(this,t)}transitionOptions(n){const t=Ae({},this,n),{beforePushEventList:r,beforeSendData:o,afterSendData:a}=n,{pv:s,performance:c,error:i,event:u}=t;return typeof s=="boolean"&&(t.pv={core:s}),typeof c=="boolean"&&(t.performance={core:c,firstResource:c,server:c}),typeof i=="boolean"&&(t.error={core:i,server:i}),typeof u=="boolean"&&(t.event={core:u}),r&&(t.beforePushEventList=[r]),o&&(t.beforeSendData=[o]),a&&(t.afterSendData=[a]),n.timeout!==void 0&&(t.timeout=n.timeout),n.maxQueueLength!==void 0&&(t.maxQueueLength=n.maxQueueLength),n.checkRecoverInterval!==void 0&&(t.checkRecoverInterval=n.checkRecoverInterval),t}}function Hn(e){const{dsn:n,appName:t,appCode:r,appVersion:o,userUuid:a,debug:s,recordScreen:c,pv:i,performance:u,error:l,event:f,ext:m,tracesSampleRate:v,cacheMaxLength:E,cacheWatingTime:b,ignoreErrors:h,ignoreRequest:I,scopeError:P,localization:U,sendTypeByXmlBody:J,beforePushEventList:be,beforeSendData:Y,timeout:fn,maxQueueLength:hn,checkRecoverInterval:pn,transformSendParams:mn}=e,G=[];return i&&typeof i=="object"?G.push(y(i.core,"pv.core","boolean")):G.push(y(i,"pv","boolean")),u&&typeof u=="object"?G.push(y(u.core,"performance.core","boolean"),y(u.firstResource,"performance.firstResource","boolean"),y(u.server,"performance.server","boolean")):G.push(y(u,"performance","boolean")),l&&typeof l=="object"?G.push(y(l.core,"error.core","boolean"),y(l.server,"error.server","boolean")):G.push(y(l,"error","boolean")),f&&typeof f=="object"?G.push(y(f.core,"event.core","boolean")):G.push(y(f,"event","boolean")),[y(n,"dsn","string"),y(t,"appName","string"),y(r,"appCode","string"),y(o,"appVersion","string"),y(a,"userUuid","string"),y(s,"debug","boolean"),y(c,"recordScreen","boolean"),y(m,"ext","object"),y(v,"tracesSampleRate","number"),y(E,"cacheMaxLength","number"),y(b,"cacheWatingTime","number"),y(h,"ignoreErrors","array"),lt(h,"ignoreErrors",["string","regexp"]),y(I,"ignoreRequest","array"),lt(I,"ignoreRequest",["string","regexp"]),y(P,"scopeError","boolean"),y(U,"localization","boolean"),y(J,"sendTypeByXmlBody","boolean"),y(be,"beforePushEventList","function"),y(Y,"beforeSendData","function"),y(fn,"timeout","number"),y(hn,"maxQueueLength","number"),y(pn,"checkRecoverInterval","number"),y(mn,"transformSendParams","function")].every(vn=>!!vn)}function Dn(e){return[ut(e.appName,"appName"),ut(e.dsn,"dsn")].every(t=>!!t)}function ut(e,n){return wn(e)?(K(`【${n}】参数必填`),!1):!0}function y(e,n,t){return!e||ce(e)===t?!0:(K(`TypeError:【${n}】期望传入${t}类型,目前是${ce(e)}类型`),!1)}function lt(e,n,t){if(!e)return!0;let r=!0;return e.forEach(o=>{t.includes(ce(o))||(K(`TypeError:【${n}】数组内的值期望传入${t.join("|")}类型,目前值${o}是${ce(o)}类型`),r=!1)}),r}exports._options=void 0;function Un(e){return!Dn(e)||!Hn(e)?!1:(exports._options=ke.ref(new Vn(e)),C.options=exports._options,!0)}const Xn="0.0.3",dt="_webtracing_device_id",Ye="_webtracing_session_id",jn=18e5,Ge="_webtracing_localization_key",Wn=Xn,d={ERROR:"error",CONSOLEERROR:"consoleError",UNHANDLEDREJECTION:"unhandledrejection",CLICK:"click",LOAD:"load",BEFOREUNLOAD:"beforeunload",FETCH:"fetch",XHROPEN:"xhr-open",XHRSEND:"xhr-send",HASHCHANGE:"hashchange",HISTORYPUSHSTATE:"history-pushState",HISTORYREPLACESTATE:"history-replaceState",POPSTATE:"popstate",READYSTATECHANGE:"readystatechange",ONLINE:"online",OFFLINE:"offline"},F={PV:"pv",PVDURATION:"pv-duration",ERROR:"error",PERFORMANCE:"performance",CLICK:"click",DWELL:"dwell",CUSTOM:"custom",INTERSECTION:"intersection"},k={PAGE:"page",RESOURCE:"resource",SERVER:"server",CODE:"code",REJECT:"reject",CONSOLEERROR:"console.error"},Bn={0:"navigate",1:"reload",2:"back_forward",255:"reserved"};class Zn{handlers;constructor(){this.handlers={}}addEvent(n){!this.handlers[n.type]&&(this.handlers[n.type]=[]),this._getCallbackIndex(n)===-1&&this.handlers[n.type]?.push(n.callback)}delEvent(n){const t=this._getCallbackIndex(n);t!==-1&&this.handlers[n.type]?.splice(t,1)}changeEvent(n,t){const r=this._getCallbackIndex(n);r!==-1&&this.handlers[n.type]?.splice(r,1,t)}getEvent(n){return this.handlers[n]||[]}runEvent(n,...t){this.getEvent(n).forEach(o=>{o(...t)})}_getCallbackIndex(n){if(this.handlers[n.type]){const t=this.handlers[n.type];return t?t.findIndex(r=>r===n.callback):-1}else return-1}removeEvents(n){n.forEach(t=>{delete this.handlers[t]})}}const g=C.eventBus||(C.eventBus=new Zn),R={consoleError:null,xhrOpen:null,xhrSend:null,fetch:null,historyPushState:null,historyReplaceState:null},L={error:null,unhandledrejection:null,click:null,load:null,beforeunload:null,hashchange:null,popstate:null,offline:null,online:null};function Yn(){for(const e in d)de(e,d)&&Gn(e)}function Gn(e){if(!de(e,d))return;switch(d[e]){case d.ERROR:zn(d.ERROR);break;case d.UNHANDLEDREJECTION:Jn(d.UNHANDLEDREJECTION);break;case d.CONSOLEERROR:qn(d.CONSOLEERROR);break;case d.CLICK:$n(d.CLICK);break;case d.LOAD:Qn(d.LOAD);break;case d.BEFOREUNLOAD:Kn(d.BEFOREUNLOAD);break;case d.XHROPEN:er(d.XHROPEN);break;case d.XHRSEND:tr(d.XHRSEND);break;case d.FETCH:nr(d.FETCH);break;case d.HASHCHANGE:rr(d.HASHCHANGE);break;case d.HISTORYPUSHSTATE:ir(d.HISTORYPUSHSTATE);break;case d.HISTORYREPLACESTATE:or(d.HISTORYREPLACESTATE);break;case d.POPSTATE:ar(d.POPSTATE);break;case d.OFFLINE:sr(d.OFFLINE);break;case d.ONLINE:cr(d.ONLINE);break}}function zn(e){const n=function(t){g.runEvent(e,t)};L.error=n,V(p,"error",n,!0)}function Jn(e){const n=function(t){g.runEvent(e,t)};L.unhandledrejection=n,V(p,"unhandledrejection",n)}function qn(e){R.consoleError=console.error,le(console,"error",n=>function(...t){t[0]&&t[0].slice&&t[0].slice(0,12)==="@web-tracing"||g.runEvent(e,t),n.apply(this,t)})}function $n(e){if(!("document"in p))return;const n=Nt(g.runEvent,100,!0),t=function(r){n.call(g,e,r)};L.click=t,V(p.document,"click",t,!0)}function Qn(e){const n=function(t){g.runEvent(e,t)};L.load=n,V(p,"load",n,!0)}function Kn(e){const n=function(t){g.runEvent(e,t)};L.beforeunload=n,V(p,"beforeunload",n,!1)}function er(e){"XMLHttpRequest"in p&&(R.xhrOpen=XMLHttpRequest.prototype.open,le(XMLHttpRequest.prototype,"open",n=>function(...t){g.runEvent(e,...t),n.apply(this,t)}))}function tr(e){"XMLHttpRequest"in p&&(R.xhrSend=XMLHttpRequest.prototype.send,le(XMLHttpRequest.prototype,"send",n=>function(...t){g.runEvent(e,this,...t),n.apply(this,t)}))}function nr(e){"fetch"in p&&(R.fetch=p.fetch,le(p,"fetch",n=>function(...t){const r=w(),o={};return n.apply(p,t).then(a=>(g.runEvent(e,t[0],t[1],a,r,o),a))}))}function rr(e){const n=function(t){g.runEvent(e,t)};L.hashchange=n,V(p,"hashchange",n)}function or(e){R.historyReplaceState=history.replaceState,le(history,"replaceState",n=>function(...t){g.runEvent(e,...t),n.apply(this,t)})}function ir(e){R.historyPushState=history.pushState,le(history,"pushState",n=>function(...t){g.runEvent(e,...t),n.apply(this,t)})}function ar(e){const n=function(t){g.runEvent(e,t)};L.popstate=n,V(p,"popstate",n)}function sr(e){const n=function(t){g.runEvent(e,t)};L.offline=n,V(p,"offline",n)}function cr(e){const n=function(t){g.runEvent(e,t)};L.offline=n,V(p,"offline",n)}function ur(){R.consoleError&&console.error!==R.consoleError&&(console.error=R.consoleError),R.xhrOpen&&XMLHttpRequest.prototype.open!==R.xhrOpen&&(XMLHttpRequest.prototype.open=R.xhrOpen),R.xhrSend&&XMLHttpRequest.prototype.send!==R.xhrSend&&(XMLHttpRequest.prototype.send=R.xhrSend),R.fetch&&p.fetch!==R.fetch&&(p.fetch=R.fetch),R.historyPushState&&history.pushState!==R.historyPushState&&(history.pushState=R.historyPushState),R.historyReplaceState&&history.replaceState!==R.historyReplaceState&&(history.replaceState=R.historyReplaceState),L.error&&j(p,"error",L.error,!0),L.unhandledrejection&&j(p,"unhandledrejection",L.unhandledrejection),L.click&&j(p.document,"click",L.click,!0),L.load&&j(p,"load",L.load,!0),L.beforeunload&&j(p,"beforeunload",L.beforeunload,!1),L.hashchange&&j(p,"hashchange",L.hashchange),L.popstate&&j(p,"popstate",L.popstate),L.offline&&j(p,"offline",L.offline),L.online&&j(p,"online",L.online),Object.keys(R).forEach(e=>{R[e]=null}),Object.keys(L).forEach(e=>{L[e]=null})}let ze=function(){return ze=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(const o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},ze.apply(this,arguments)};function Z(e,n,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{i(r.next(u))}catch(l){a(l)}}function c(u){try{i(r.throw(u))}catch(l){a(l)}}function i(u){let l;u.done?o(u.value):(l=u.value,l instanceof t?l:new t(function(f){f(l)})).then(s,c)}i((r=r.apply(e,[])).next())})}function X(e,n){let t,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(u){return(function(l){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(s=0)),s;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!((o=o.length>0&&o[o.length-1])||l[0]!==6&&l[0]!==2)){s=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){s.label=l[1];break}if(l[0]===6&&s.label<o[1]){s.label=o[1],o=l;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(l);break}o[2]&&s.ops.pop(),s.trys.pop();continue}l=n.call(e,s)}catch(f){l=[6,f],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}})([i,u])}}}function ie(e,n,t){if(t||arguments.length===2)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function B(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function Mt(e){return!!e&&typeof e.then=="function"}function ft(e,n){try{const t=e();Mt(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(t){n(!1,t)}}function ht(e,n,t){return t===void 0&&(t=16),Z(this,void 0,void 0,function(){let r,o,a;return X(this,function(s){switch(s.label){case 0:r=Date.now(),o=0,s.label=1;case 1:return o<e.length?(n(e[o],o),(a=Date.now())>=r+t?(r=a,[4,B(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2]}})})}function Ie(e){e.then(void 0,function(){})}function z(e,n){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];const t=[0,0,0,0];return t[3]+=e[3]+n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]+n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]+n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]+n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function _(e,n){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];const t=[0,0,0,0];return t[3]+=e[3]*n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]*n[3],t[1]+=t[2]>>>16,t[2]&=65535,t[2]+=e[3]*n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]*n[3],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[2]*n[2],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[3]*n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function ne(e,n){return(n%=64)===32?[e[1],e[0]]:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])}function M(e,n){return(n%=64)===0?e:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]}function A(e,n){return[e[0]^n[0],e[1]^n[1]]}function pt(e){return e=A(e,[0,e[0]>>>1]),e=A(e=_(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=A(e=_(e,[3301882366,444984403]),[0,e[0]>>>1])}function lr(e,n){n=n||0;let t,r=(e=e||"").length%16,o=e.length-r,a=[0,n],s=[0,n],c=[0,0],i=[0,0],u=[2277735313,289559509],l=[1291169091,658871167];for(t=0;t<o;t+=16)c=[255&e.charCodeAt(t+4)|(255&e.charCodeAt(t+5))<<8|(255&e.charCodeAt(t+6))<<16|(255&e.charCodeAt(t+7))<<24,255&e.charCodeAt(t)|(255&e.charCodeAt(t+1))<<8|(255&e.charCodeAt(t+2))<<16|(255&e.charCodeAt(t+3))<<24],i=[255&e.charCodeAt(t+12)|(255&e.charCodeAt(t+13))<<8|(255&e.charCodeAt(t+14))<<16|(255&e.charCodeAt(t+15))<<24,255&e.charCodeAt(t+8)|(255&e.charCodeAt(t+9))<<8|(255&e.charCodeAt(t+10))<<16|(255&e.charCodeAt(t+11))<<24],c=ne(c=_(c,u),31),a=z(a=ne(a=A(a,c=_(c,l)),27),s),a=z(_(a,[0,5]),[0,1390208809]),i=ne(i=_(i,l),33),s=z(s=ne(s=A(s,i=_(i,u)),31),a),s=z(_(s,[0,5]),[0,944331445]);switch(c=[0,0],i=[0,0],r){case 15:i=A(i,M([0,e.charCodeAt(t+14)],48));case 14:i=A(i,M([0,e.charCodeAt(t+13)],40));case 13:i=A(i,M([0,e.charCodeAt(t+12)],32));case 12:i=A(i,M([0,e.charCodeAt(t+11)],24));case 11:i=A(i,M([0,e.charCodeAt(t+10)],16));case 10:i=A(i,M([0,e.charCodeAt(t+9)],8));case 9:i=_(i=A(i,[0,e.charCodeAt(t+8)]),l),s=A(s,i=_(i=ne(i,33),u));case 8:c=A(c,M([0,e.charCodeAt(t+7)],56));case 7:c=A(c,M([0,e.charCodeAt(t+6)],48));case 6:c=A(c,M([0,e.charCodeAt(t+5)],40));case 5:c=A(c,M([0,e.charCodeAt(t+4)],32));case 4:c=A(c,M([0,e.charCodeAt(t+3)],24));case 3:c=A(c,M([0,e.charCodeAt(t+2)],16));case 2:c=A(c,M([0,e.charCodeAt(t+1)],8));case 1:c=_(c=A(c,[0,e.charCodeAt(t)]),u),a=A(a,c=_(c=ne(c,31),l))}return a=z(a=A(a,[0,e.length]),s=A(s,[0,e.length])),s=z(s,a),a=z(a=pt(a),s=pt(s)),s=z(s,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Ne(e){return parseInt(e)}function H(e){return parseFloat(e)}function W(e,n){return typeof e=="number"&&isNaN(e)?n:e}function D(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function _t(e,n){if(n===void 0&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;const t=1/n;return Math.round(e*t)/t}function mt(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function dr(e){return typeof e!="function"}function fr(e,n,t){const r=Object.keys(e).filter(function(a){return!(function(s,c){for(let i=0,u=s.length;i<u;++i)if(s[i]===c)return!0;return!1})(t,a)}),o=Array(r.length);return ht(r,function(a,s){o[s]=(function(c,i){const u=new Promise(function(l){const f=Date.now();ft(c.bind(null,i),function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];const E=Date.now()-f;if(!m[0])return l(function(){return{error:mt(m[1]),duration:E}});const b=m[1];if(dr(b))return l(function(){return{value:b,duration:E}});l(function(){return new Promise(function(h){const I=Date.now();ft(b,function(){for(var P=[],U=0;U<arguments.length;U++)P[U]=arguments[U];const J=E+Date.now()-I;if(!P[0])return h({error:mt(P[1]),duration:J});h({value:P[1],duration:J})})})})})});return Ie(u),function(){return u.then(function(l){return l()})}})(e[a],n)}),function(){return Z(this,void 0,void 0,function(){let a,s,c,i,u,l;return X(this,function(f){switch(f.label){case 0:for(a={},s=0,c=r;s<c.length;s++)i=c[s],a[i]=void 0;u=Array(r.length),l=function(){let m;return X(this,function(v){switch(v.label){case 0:return m=!0,[4,ht(r,function(E,b){if(!u[b])if(o[b]){const h=o[b]().then(function(I){return a[E]=I});Ie(h),u[b]=h}else m=!1})];case 1:return v.sent(),m?[2,"break"]:[4,B(1)];case 2:return v.sent(),[2]}})},f.label=1;case 1:return[5,l()];case 2:if(f.sent()==="break")return[3,4];f.label=3;case 3:return[3,1];case 4:return[4,Promise.all(u)];case 5:return f.sent(),[2,a]}})})}}function Vt(){const e=window,n=navigator;return D(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function hr(){const e=window,n=navigator;return D(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!Vt()}function Je(){const e=window,n=navigator;return D(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,n.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function he(){const e=window,n=navigator;return D(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,n.vendor.indexOf("Apple")===0,"getStorageUpdates"in n,"WebKitMediaKeys"in e])>=4}function qe(){const e=window;return D(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function pr(){let e,n,t=window;return D(["buildID"in navigator,"MozAppearance"in((n=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&n!==void 0?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function mr(){const e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Ht(){const e=Je(),n=pr();if(!e&&!n)return!1;const t=window;return D(["onorientationchange"in t,"orientation"in t,e&&!("SharedWorker"in t),n&&/android/i.test(navigator.appVersion)])>=2}function vt(e){const n=new Error(e);return n.name=e,n}function gt(e,n,t){let r,o,a;return t===void 0&&(t=50),Z(this,void 0,void 0,function(){let s,c;return X(this,function(i){switch(i.label){case 0:s=document,i.label=1;case 1:return s.body?[3,3]:[4,B(t)];case 2:return i.sent(),[3,1];case 3:c=s.createElement("iframe"),i.label=4;case 4:return i.trys.push([4,,10,11]),[4,new Promise(function(u,l){let f=!1,m=function(){f=!0,u()};c.onload=m,c.onerror=function(b){f=!0,l(b)};const v=c.style;v.setProperty("display","block","important"),v.position="absolute",v.top="0",v.left="0",v.visibility="hidden",c.src="about:blank",s.body.appendChild(c);const E=function(){let b,h;f||(((h=(b=c.contentWindow)===null||b===void 0?void 0:b.document)===null||h===void 0?void 0:h.readyState)==="complete"?m():setTimeout(E,10))};E()})];case 5:i.sent(),i.label=6;case 6:return!((o=(r=c.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body?[3,8]:[4,B(t)];case 7:return i.sent(),[3,6];case 8:return[4,e(c,c.contentWindow)];case 9:return[2,i.sent()];case 10:return(a=c.parentNode)===null||a===void 0||a.removeChild(c),[7];case 11:return[2]}})})}function vr(e){for(var n=(function(c){for(var i,u,l="Unexpected syntax '".concat(c,"'"),f=/^\s*([a-z-]*)(.*)$/i.exec(c),m=f[1]||void 0,v={},E=/([.:#][\w-]+|\[.+?\])/gi,b=function(I,P){v[I]=v[I]||[],v[I].push(P)};;){const I=E.exec(f[2]);if(!I)break;const P=I[0];switch(P[0]){case".":b("class",P.slice(1));break;case"#":b("id",P.slice(1));break;case"[":var h=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(P);if(!h)throw new Error(l);b(h[1],(u=(i=h[4])!==null&&i!==void 0?i:h[5])!==null&&u!==void 0?u:"");break;default:throw new Error(l)}}return[m,v]})(e),t=n[0],r=n[1],o=document.createElement(t??"div"),a=0,s=Object.keys(r);a<s.length;a++){const c=s[a],i=r[c].join(" ");c==="style"?gr(o.style,i):o.setAttribute(c,i)}return o}function gr(e,n){for(let t=0,r=n.split(";");t<r.length;t++){const o=r[t],a=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(a){const s=a[1],c=a[2],i=a[4];e.setProperty(s,c,i||"")}}}const re=["monospace","sans-serif","serif"],bt=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Fe(e){return e.toDataURL()}let Ee,Me;function br(){const e=this;return(function(){if(Me===void 0){const n=function(){const t=_e();Ve(t)?Me=setTimeout(n,2500):(Ee=t,Me=void 0)};n()}})(),function(){return Z(e,void 0,void 0,function(){let n;return X(this,function(t){switch(t.label){case 0:return Ve(n=_e())?Ee?[2,ie([],Ee,!0)]:mr()?[4,(r=document,(r.exitFullscreen||r.msExitFullscreen||r.mozCancelFullScreen||r.webkitExitFullscreen).call(r))]:[3,2]:[3,2];case 1:t.sent(),n=_e(),t.label=2;case 2:return Ve(n)||(Ee=n),[2,n]}let r})})}}function _e(){const e=screen;return[W(H(e.availTop),null),W(H(e.width)-H(e.availWidth)-W(H(e.availLeft),0),null),W(H(e.height)-H(e.availHeight)-W(H(e.availTop),0),null),W(H(e.availLeft),null)]}function Ve(e){for(let n=0;n<4;++n)if(e[n])return!1;return!0}function yr(e){let n;return Z(this,void 0,void 0,function(){let t,r,o,a,s,c,i;return X(this,function(u){switch(u.label){case 0:for(t=document,r=t.createElement("div"),o=new Array(e.length),a={},yt(r),i=0;i<e.length;++i)s=vr(e[i]),yt(c=t.createElement("div")),c.appendChild(s),r.appendChild(c),o[i]=s;u.label=1;case 1:return t.body?[3,3]:[4,B(50)];case 2:return u.sent(),[3,1];case 3:t.body.appendChild(r);try{for(i=0;i<e.length;++i)o[i].offsetParent||(a[e[i]]=!0)}finally{(n=r.parentNode)===null||n===void 0||n.removeChild(r)}return[2,a]}})})}function yt(e){e.style.setProperty("display","block","important")}function Et(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function St(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function oe(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function Lt(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function wt(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}const S=Math,x=function(){return 0},He={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Er={fonts:function(){return gt(function(e,n){const t=n.document,r=t.body;r.style.fontSize="48px";const o=t.createElement("div"),a={},s={},c=function(l){const f=t.createElement("span"),m=f.style;return m.position="absolute",m.top="0",m.left="0",m.fontFamily=l,f.textContent="mmMwWLliI0O&1",o.appendChild(f),f},i=re.map(c),u=(function(){for(var l={},f=function(E){l[E]=re.map(function(b){return(function(h,I){return c("'".concat(h,"',").concat(I))})(E,b)})},m=0,v=bt;m<v.length;m++)f(v[m]);return l})();r.appendChild(o);for(let l=0;l<re.length;l++)a[re[l]]=i[l].offsetWidth,s[re[l]]=i[l].offsetHeight;return bt.filter(function(l){return n=u[l],re.some(function(f,m){return n[m].offsetWidth!==a[f]||n[m].offsetHeight!==s[f]})})})},domBlockers:function(e){const n=(e===void 0?{}:e).debug;return Z(this,void 0,void 0,function(){let t,r,o,a,s;return X(this,function(c){switch(c.label){case 0:return he()||Ht()?(i=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",i("YVt0aXRsZT0iN25hZ2EgcG9rZXIiIGld"),'[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",i("Lmlvc0Fkc2lvc0Fkcy1sYXlvdXQ="),".quangcao",i("W2hyZWZePSJodHRwczovL3I4OC52bi8iXQ=="),i("W2hyZWZePSJodHRwczovL3piZXQudm4vIl0=")],adBlockFinland:[".mainostila",i("LnNwb25zb3JpdA=="),".ylamainos",i("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),i("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",i("I2FkMl9pbmxpbmU=")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",i("LmhlYWRlci1ibG9ja2VkLWFk"),i("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:[".BetterJsPopOverlay",i("I2FkXzMwMFgyNTA="),i("I2Jhbm5lcmZsb2F0MjI="),i("I2FkLWJhbm5lcg=="),i("I2NhbXBhaWduLWJhbm5lcg==")],adGuardChinese:[i("LlppX2FkX2FfSA=="),i("YVtocmVmKj0iL29kMDA1LmNvbSJd"),i("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),".qq_nr_lad","#widget-quan"],adGuardFrench:[i("I2Jsb2NrLXZpZXdzLWFkcy1zaWRlYmFyLWJsb2NrLWJsb2Nr"),"#pavePub",i("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv"],adGuardGerman:[i("LmJhbm5lcml0ZW13ZXJidW5nX2hlYWRfMQ=="),i("LmJveHN0YXJ0d2VyYnVuZw=="),i("LndlcmJ1bmcz"),i("YVtocmVmXj0iaHR0cDovL3d3dy5laXMuZGUvaW5kZXgucGh0bWw/cmVmaWQ9Il0="),i("YVtocmVmXj0iaHR0cHM6Ly93d3cudGlwaWNvLmNvbS8/YWZmaWxpYXRlSWQ9Il0=")],adGuardJapanese:["#kauli_yad_1",i("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),i("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),i("LmFkZ29vZ2xl"),i("LmFkX3JlZ3VsYXIz")],adGuardMobile:[i("YW1wLWF1dG8tYWRz"),i("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",i("I2FkX2ludmlld19hcmVh")],adGuardRussian:[i("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),i("LnJlY2xhbWE="),'div[id^="smi2adblock"]',i("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),i("I2FkX3NxdWFyZQ==")],adGuardSocial:[i("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),i("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",i("W2hyZWZePSJodHRwOi8vYWRzLmdsaXNwYS5jb20vIl0=")],adGuardTrackingProtection:["#qoo-counter",i("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),i("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),i("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",i("I3Jla2xhbWk="),i("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),i("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),i("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[i("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers",i("I25ld0Fk")],easyList:[i("I0FEX0NPTlRST0xfMjg="),i("LnNlY29uZC1wb3N0LWFkcy13cmFwcGVy"),".universalboxADVBOX03",i("LmFkdmVydGlzZW1lbnQtNzI4eDkw"),i("LnNxdWFyZV9hZHM=")],easyListChina:[i("YVtocmVmKj0iLndlbnNpeHVldGFuZy5jb20vIl0="),i("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),i("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box"],easyListCookie:["#AdaCompliance.app-notice",".text-center.rgpd",".panel--cookie",".js-cookies-andromeda",".elxtr-consent"],easyListCzechSlovak:["#onlajny-stickers",i("I3Jla2xhbW5pLWJveA=="),i("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",i("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[i("I2FkdmVydGVudGll"),i("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",i("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:[i("I0FkX1dpbjJkYXk="),i("I3dlcmJ1bmdzYm94MzAw"),i("YVtocmVmXj0iaHR0cDovL3d3dy5yb3RsaWNodGthcnRlaS5jb20vP3NjPSJd"),i("I3dlcmJ1bmdfd2lkZXNreXNjcmFwZXJfc2NyZWVu"),i("YVtocmVmXj0iaHR0cDovL2xhbmRpbmcucGFya3BsYXR6a2FydGVpLmNvbS8/YWc9Il0=")],easyListItaly:[i("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",i("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),i("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),i("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[i("LnJla2xhbW9zX3RhcnBhcw=="),i("LnJla2xhbW9zX251b3JvZG9z"),i("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),i("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),i("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[i("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#feedback-tab","#taboola-below-article",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:[i("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),i("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",i("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[i("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),i("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),i("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",i("LmFkX19tYWlu"),i("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:[i("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[i("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),i("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[i("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),i("I2xpdmVyZUFkV3JhcHBlcg=="),i("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),i("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[i("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",i("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),i("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),i("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[i("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),i("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),i("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",i("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),i("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),i("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),i("ZGl2I3NrYXBpZWNfYWQ=")],ro:[i("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),'a[href^="/magazin/"]',i("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),i("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),i("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd")],ruAd:[i("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),i("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),i("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",i("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),i("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",i("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},r=Object.keys(t),[4,yr((s=[]).concat.apply(s,r.map(function(u){return t[u]})))]):[2,void 0];case 1:return o=c.sent(),n&&(function(u,l){for(var f="DOM blockers debug:\n```",m=0,v=Object.keys(u);m<v.length;m++){const E=v[m];f+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ke=require("vue"),gn=require("rrweb"),Pt=require("pako"),Re=require("js-base64");function ee(e){return function(n){return Object.prototype.toString.call(n)===`[object ${e}]`}}const et=ee("RegExp"),bn=ee("Number"),yn=ee("String"),En=ee("Boolean"),Sn=ee("Function"),Ce=ee("Array"),Ln=ee("Window"),Oe=e=>En(e)&&String(e)==="false";function wn(e){return yn(e)&&e.trim()===""||e===void 0||e===null}const Rn=Ln(typeof window<"u"?window:0),An=!!window?.process?.versions?.electron,je=typeof navigator<"u"&&navigator.userAgent.includes("jsdom")||typeof window<"u"&&window.jsdom;function xt(){return Rn||An||je?window:{}}function In(){return p.__webTracing__=p.__webTracing__||{},p.__webTracing__}function Tn(){return!!p.__webTracingInit__}const p=xt(),C=In();function ae(...e){exports._options.value.debug&&console.log("@web-tracing: ",...e)}function K(...e){console.error("@web-tracing: ",...e)}function V(e,n,t,r=!1){e.addEventListener(n,t,r)}function le(e,n,t,r=!1){if(e!==void 0&&(n in e||r)){const o=e[n],a=t(o);Sn(a)&&(e[n]=a)}}function se(e){return Object.keys(e).forEach(n=>{const t=e[n];bn(t)&&(e[n]=t===0?void 0:parseFloat(t.toFixed(2)))}),e}function F(){return typeof document>"u"||document.location==null?"":document.location.href}function w(){return Date.now()}function Nt(e,n,t=!1){let r=null,o;return function(...a){o=a,r===null&&(t&&e.apply(this,o),r=setTimeout(()=>{r=null,e.apply(this,o)},n))}}function kn(e,n,t=!1){let r=null;return function(...o){t&&(e.call(this,...o),t=!1),r&&clearTimeout(r),r=setTimeout(()=>{e.call(this,...o)},n)}}function Pe(e,...n){const t=new Map;for(const r of e){const o=n.filter(a=>r[a]).map(a=>r[a]).join(":");t.has(o)||t.set(o,[]),t.get(o).push(r)}return Array.from(t.values())}function Ae(e,...n){return n.forEach(t=>{for(const r in t)t[r]!==null&&et(t[r])?e[r]=t[r]:t[r]!==null&&typeof t[r]=="object"?e[r]=Ae(e[r]||(Ce(t[r])?[]:{}),t[r]):e[r]=t[r]}),e}function O(e){return Tn()?!0:(K(`${e} 需要在SDK初始化之后使用`),!1)}function ce(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function de(e,n){return e in n}function Cn(e){return Math.random()<=e}function te(e,n,t="0"){const r=String(e);if(r.length<n){let o=r;for(let a=0;a<n-r.length;a+=1)o=t+o;return o}return r}function On(e){return e.split("?")[0]}function We(){const e=new Date,n=parseInt(`${e.getFullYear()}${te(e.getMonth()+1,2)}${te(e.getDate(),2)}`,10).toString(16),t=parseInt(`${te(e.getHours(),2)}${te(e.getMinutes(),2)}${te(e.getSeconds(),2)}${te(e.getMilliseconds(),3)}`,10).toString(16);let r=n+t.length+t;for(;r.length<32;)r+=Math.floor(Math.random()*16).toString(16);return`${r.slice(0,8)}-${r.slice(8,16)}-${r.slice(16)}`}function tt(e){const n=document.cookie.match(new RegExp(`${e}=([^;]+)(;|$)`));return n?n[1]:void 0}function Pn(e,n){const t=new Blob([JSON.stringify(n)],{type:"application/json"});return navigator.sendBeacon(e,t)}const Le=[];function xn(e,n){return new Promise(t=>{const r=new Image;r.src=`${e}?v=${encodeURIComponent(JSON.stringify(n))}`,Le.push(r),r.onload=()=>{t()},r.onerror=function(){t()}})}function st(e,n,t=5e3){return new Promise((r,o)=>{const a=new XMLHttpRequest;a.open("post",e),a.setRequestHeader("content-type","application/json"),a.timeout=t,a.send(JSON.stringify(n)),a.onreadystatechange=function(){a.readyState===4&&(a.status>=200&&a.status<300?r():o(new Error("@web-tracing XMLHttpRequest error: "+a.status)))},a.ontimeout=function(){o(new Error("@web-tracing XMLHttpRequest timeout"))},a.onerror=function(){o(new Error("@web-tracing XMLHttpRequest network error"))}})}function ye(e,n,t){if(e.length===0)return t;let r;for(let o=0;o<e.length;o++){const a=e[o];o===0||n?r=a(t):r=a(r)}return r}function xe(e){return Ce(e)?e:[e]}const Nn=Array.prototype.map||function(n){const t=[];for(let r=0;r<this.length;r+=1)t.push(n(this[r],r,this));return t};function Ft(e,n){return Nn.call(e,n)}const Fn=Array.prototype.filter||function(n){const t=[];for(let r=0;r<this.length;r+=1)n(this[r],r,this)&&t.push(this[r]);return t};function Mn(e,n){return Fn.call(e,n)}const _n=window.requestIdleCallback||window.requestAnimationFrame||(e=>setTimeout(e,17));function ct(e,n){const t=JSON.stringify(e);return new TextEncoder().encode(t).length/1024>n}function Be(e){if(!e)return{};const n={},t=e.split("?")[1];if(t){const r=t.split("&");for(const o of r){const[a,s]=o.split("=");n[decodeURIComponent(a)]=decodeURIComponent(s)}}return n}function Ze(e,n=new Map){if(e!==null&&typeof e=="object"){let t=n.get(e);return t||(e instanceof Array?(t=[],n.set(e,t),e.forEach((r,o)=>{t[o]=Ze(r,n)})):(t={},n.set(e,t),Object.keys(e).forEach(r=>{de(r,e)&&(t[r]=Ze(e[r],n))})),t)}return e}function j(e,n,t,r=!1){e.removeEventListener(n,t,r)}class Vn{dsn="";appName="";appCode="";appVersion="";userUuid="";sdkUserUuid="";debug=!1;pv={core:!1};performance={core:!1,firstResource:!1,server:!1};error={core:!1,server:!1};event={core:!1};recordScreen=!0;timeout=5e3;maxQueueLength=200;checkRecoverInterval=1;ext={};tracesSampleRate=1;cacheMaxLength=5;cacheWatingTime=5e3;ignoreErrors=[];ignoreRequest=[];scopeError=!1;localization=!1;sendTypeByXmlBody=!1;beforePushEventList=[];beforeSendData=[];afterSendData=[];localizationOverFlow=()=>{};constructor(n){const t=this.transitionOptions(n);t.ignoreRequest.push(new RegExp(t.dsn)),Ae(this,t)}transitionOptions(n){const t=Ae({},this,n),{beforePushEventList:r,beforeSendData:o,afterSendData:a}=n,{pv:s,performance:c,error:i,event:u}=t;return typeof s=="boolean"&&(t.pv={core:s}),typeof c=="boolean"&&(t.performance={core:c,firstResource:c,server:c}),typeof i=="boolean"&&(t.error={core:i,server:i}),typeof u=="boolean"&&(t.event={core:u}),r&&(t.beforePushEventList=[r]),o&&(t.beforeSendData=[o]),a&&(t.afterSendData=[a]),n.timeout!==void 0&&(t.timeout=n.timeout),n.maxQueueLength!==void 0&&(t.maxQueueLength=n.maxQueueLength),n.checkRecoverInterval!==void 0&&(t.checkRecoverInterval=n.checkRecoverInterval),t}}function Hn(e){const{dsn:n,appName:t,appCode:r,appVersion:o,userUuid:a,debug:s,recordScreen:c,pv:i,performance:u,error:l,event:f,ext:m,tracesSampleRate:v,cacheMaxLength:E,cacheWatingTime:b,ignoreErrors:h,ignoreRequest:I,scopeError:P,localization:U,sendTypeByXmlBody:J,beforePushEventList:be,beforeSendData:Y,timeout:fn,maxQueueLength:hn,checkRecoverInterval:pn,transformSendParams:mn}=e,G=[];return i&&typeof i=="object"?G.push(y(i.core,"pv.core","boolean")):G.push(y(i,"pv","boolean")),u&&typeof u=="object"?G.push(y(u.core,"performance.core","boolean"),y(u.firstResource,"performance.firstResource","boolean"),y(u.server,"performance.server","boolean")):G.push(y(u,"performance","boolean")),l&&typeof l=="object"?G.push(y(l.core,"error.core","boolean"),y(l.server,"error.server","boolean")):G.push(y(l,"error","boolean")),f&&typeof f=="object"?G.push(y(f.core,"event.core","boolean")):G.push(y(f,"event","boolean")),[y(n,"dsn","string"),y(t,"appName","string"),y(r,"appCode","string"),y(o,"appVersion","string"),y(a,"userUuid","string"),y(s,"debug","boolean"),y(c,"recordScreen","boolean"),y(m,"ext","object"),y(v,"tracesSampleRate","number"),y(E,"cacheMaxLength","number"),y(b,"cacheWatingTime","number"),y(h,"ignoreErrors","array"),lt(h,"ignoreErrors",["string","regexp"]),y(I,"ignoreRequest","array"),lt(I,"ignoreRequest",["string","regexp"]),y(P,"scopeError","boolean"),y(U,"localization","boolean"),y(J,"sendTypeByXmlBody","boolean"),y(be,"beforePushEventList","function"),y(Y,"beforeSendData","function"),y(fn,"timeout","number"),y(hn,"maxQueueLength","number"),y(pn,"checkRecoverInterval","number"),y(mn,"transformSendParams","function")].every(vn=>!!vn)}function Dn(e){return[ut(e.appName,"appName"),ut(e.dsn,"dsn")].every(t=>!!t)}function ut(e,n){return wn(e)?(K(`【${n}】参数必填`),!1):!0}function y(e,n,t){return!e||ce(e)===t?!0:(K(`TypeError:【${n}】期望传入${t}类型,目前是${ce(e)}类型`),!1)}function lt(e,n,t){if(!e)return!0;let r=!0;return e.forEach(o=>{t.includes(ce(o))||(K(`TypeError:【${n}】数组内的值期望传入${t.join("|")}类型,目前值${o}是${ce(o)}类型`),r=!1)}),r}exports._options=void 0;function Un(e){return!Dn(e)||!Hn(e)?!1:(exports._options=ke.ref(new Vn(e)),C.options=exports._options,!0)}const Xn="0.0.4",dt="_webtracing_device_id",Ye="_webtracing_session_id",jn=18e5,Ge="_webtracing_localization_key",Wn=Xn,d={ERROR:"error",CONSOLEERROR:"consoleError",UNHANDLEDREJECTION:"unhandledrejection",CLICK:"click",LOAD:"load",BEFOREUNLOAD:"beforeunload",FETCH:"fetch",XHROPEN:"xhr-open",XHRSEND:"xhr-send",HASHCHANGE:"hashchange",HISTORYPUSHSTATE:"history-pushState",HISTORYREPLACESTATE:"history-replaceState",POPSTATE:"popstate",READYSTATECHANGE:"readystatechange",ONLINE:"online",OFFLINE:"offline"},N={PV:"pv",PVDURATION:"pv-duration",ERROR:"error",PERFORMANCE:"performance",CLICK:"click",DWELL:"dwell",CUSTOM:"custom",INTERSECTION:"intersection"},k={PAGE:"page_performance",RESOURCE:"resource",SERVER:"server",CODE:"code_error",REJECT:"reject_error",CONSOLEERROR:"console_error"},Bn={0:"navigate",1:"reload",2:"back_forward",255:"reserved"};class Zn{handlers;constructor(){this.handlers={}}addEvent(n){!this.handlers[n.type]&&(this.handlers[n.type]=[]),this._getCallbackIndex(n)===-1&&this.handlers[n.type]?.push(n.callback)}delEvent(n){const t=this._getCallbackIndex(n);t!==-1&&this.handlers[n.type]?.splice(t,1)}changeEvent(n,t){const r=this._getCallbackIndex(n);r!==-1&&this.handlers[n.type]?.splice(r,1,t)}getEvent(n){return this.handlers[n]||[]}runEvent(n,...t){this.getEvent(n).forEach(o=>{o(...t)})}_getCallbackIndex(n){if(this.handlers[n.type]){const t=this.handlers[n.type];return t?t.findIndex(r=>r===n.callback):-1}else return-1}removeEvents(n){n.forEach(t=>{delete this.handlers[t]})}}const g=C.eventBus||(C.eventBus=new Zn),R={consoleError:null,xhrOpen:null,xhrSend:null,fetch:null,historyPushState:null,historyReplaceState:null},L={error:null,unhandledrejection:null,click:null,load:null,beforeunload:null,hashchange:null,popstate:null,offline:null,online:null};function Yn(){for(const e in d)de(e,d)&&Gn(e)}function Gn(e){if(!de(e,d))return;switch(d[e]){case d.ERROR:zn(d.ERROR);break;case d.UNHANDLEDREJECTION:Jn(d.UNHANDLEDREJECTION);break;case d.CONSOLEERROR:qn(d.CONSOLEERROR);break;case d.CLICK:$n(d.CLICK);break;case d.LOAD:Qn(d.LOAD);break;case d.BEFOREUNLOAD:Kn(d.BEFOREUNLOAD);break;case d.XHROPEN:er(d.XHROPEN);break;case d.XHRSEND:tr(d.XHRSEND);break;case d.FETCH:nr(d.FETCH);break;case d.HASHCHANGE:rr(d.HASHCHANGE);break;case d.HISTORYPUSHSTATE:ir(d.HISTORYPUSHSTATE);break;case d.HISTORYREPLACESTATE:or(d.HISTORYREPLACESTATE);break;case d.POPSTATE:ar(d.POPSTATE);break;case d.OFFLINE:sr(d.OFFLINE);break;case d.ONLINE:cr(d.ONLINE);break}}function zn(e){const n=function(t){g.runEvent(e,t)};L.error=n,V(p,"error",n,!0)}function Jn(e){const n=function(t){g.runEvent(e,t)};L.unhandledrejection=n,V(p,"unhandledrejection",n)}function qn(e){R.consoleError=console.error,le(console,"error",n=>function(...t){t[0]&&t[0].slice&&t[0].slice(0,12)==="@web-tracing"||g.runEvent(e,t),n.apply(this,t)})}function $n(e){if(!("document"in p))return;const n=Nt(g.runEvent,100,!0),t=function(r){n.call(g,e,r)};L.click=t,V(p.document,"click",t,!0)}function Qn(e){const n=function(t){g.runEvent(e,t)};L.load=n,V(p,"load",n,!0)}function Kn(e){const n=function(t){g.runEvent(e,t)};L.beforeunload=n,V(p,"beforeunload",n,!1)}function er(e){"XMLHttpRequest"in p&&(R.xhrOpen=XMLHttpRequest.prototype.open,le(XMLHttpRequest.prototype,"open",n=>function(...t){g.runEvent(e,...t),n.apply(this,t)}))}function tr(e){"XMLHttpRequest"in p&&(R.xhrSend=XMLHttpRequest.prototype.send,le(XMLHttpRequest.prototype,"send",n=>function(...t){g.runEvent(e,this,...t),n.apply(this,t)}))}function nr(e){"fetch"in p&&(R.fetch=p.fetch,le(p,"fetch",n=>function(...t){const r=w(),o={};return n.apply(p,t).then(a=>(g.runEvent(e,t[0],t[1],a,r,o),a))}))}function rr(e){const n=function(t){g.runEvent(e,t)};L.hashchange=n,V(p,"hashchange",n)}function or(e){R.historyReplaceState=history.replaceState,le(history,"replaceState",n=>function(...t){g.runEvent(e,...t),n.apply(this,t)})}function ir(e){R.historyPushState=history.pushState,le(history,"pushState",n=>function(...t){g.runEvent(e,...t),n.apply(this,t)})}function ar(e){const n=function(t){g.runEvent(e,t)};L.popstate=n,V(p,"popstate",n)}function sr(e){const n=function(t){g.runEvent(e,t)};L.offline=n,V(p,"offline",n)}function cr(e){const n=function(t){g.runEvent(e,t)};L.offline=n,V(p,"offline",n)}function ur(){R.consoleError&&console.error!==R.consoleError&&(console.error=R.consoleError),R.xhrOpen&&XMLHttpRequest.prototype.open!==R.xhrOpen&&(XMLHttpRequest.prototype.open=R.xhrOpen),R.xhrSend&&XMLHttpRequest.prototype.send!==R.xhrSend&&(XMLHttpRequest.prototype.send=R.xhrSend),R.fetch&&p.fetch!==R.fetch&&(p.fetch=R.fetch),R.historyPushState&&history.pushState!==R.historyPushState&&(history.pushState=R.historyPushState),R.historyReplaceState&&history.replaceState!==R.historyReplaceState&&(history.replaceState=R.historyReplaceState),L.error&&j(p,"error",L.error,!0),L.unhandledrejection&&j(p,"unhandledrejection",L.unhandledrejection),L.click&&j(p.document,"click",L.click,!0),L.load&&j(p,"load",L.load,!0),L.beforeunload&&j(p,"beforeunload",L.beforeunload,!1),L.hashchange&&j(p,"hashchange",L.hashchange),L.popstate&&j(p,"popstate",L.popstate),L.offline&&j(p,"offline",L.offline),L.online&&j(p,"online",L.online),Object.keys(R).forEach(e=>{R[e]=null}),Object.keys(L).forEach(e=>{L[e]=null})}let ze=function(){return ze=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(const o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},ze.apply(this,arguments)};function Z(e,n,t,r){return new(t||(t=Promise))(function(o,a){function s(u){try{i(r.next(u))}catch(l){a(l)}}function c(u){try{i(r.throw(u))}catch(l){a(l)}}function i(u){let l;u.done?o(u.value):(l=u.value,l instanceof t?l:new t(function(f){f(l)})).then(s,c)}i((r=r.apply(e,[])).next())})}function X(e,n){let t,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(i){return function(u){return(function(l){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(s=0)),s;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!((o=o.length>0&&o[o.length-1])||l[0]!==6&&l[0]!==2)){s=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){s.label=l[1];break}if(l[0]===6&&s.label<o[1]){s.label=o[1],o=l;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(l);break}o[2]&&s.ops.pop(),s.trys.pop();continue}l=n.call(e,s)}catch(f){l=[6,f],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}})([i,u])}}}function ie(e,n,t){if(t||arguments.length===2)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function B(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function Mt(e){return!!e&&typeof e.then=="function"}function ft(e,n){try{const t=e();Mt(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(t){n(!1,t)}}function ht(e,n,t){return t===void 0&&(t=16),Z(this,void 0,void 0,function(){let r,o,a;return X(this,function(s){switch(s.label){case 0:r=Date.now(),o=0,s.label=1;case 1:return o<e.length?(n(e[o],o),(a=Date.now())>=r+t?(r=a,[4,B(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2]}})})}function Ie(e){e.then(void 0,function(){})}function z(e,n){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];const t=[0,0,0,0];return t[3]+=e[3]+n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]+n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]+n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]+n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function _(e,n){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],n=[n[0]>>>16,65535&n[0],n[1]>>>16,65535&n[1]];const t=[0,0,0,0];return t[3]+=e[3]*n[3],t[2]+=t[3]>>>16,t[3]&=65535,t[2]+=e[2]*n[3],t[1]+=t[2]>>>16,t[2]&=65535,t[2]+=e[3]*n[2],t[1]+=t[2]>>>16,t[2]&=65535,t[1]+=e[1]*n[3],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[2]*n[2],t[0]+=t[1]>>>16,t[1]&=65535,t[1]+=e[3]*n[1],t[0]+=t[1]>>>16,t[1]&=65535,t[0]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0],t[0]&=65535,[t[0]<<16|t[1],t[2]<<16|t[3]]}function ne(e,n){return(n%=64)===32?[e[1],e[0]]:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n|e[0]>>>32-n]:(n-=32,[e[1]<<n|e[0]>>>32-n,e[0]<<n|e[1]>>>32-n])}function M(e,n){return(n%=64)===0?e:n<32?[e[0]<<n|e[1]>>>32-n,e[1]<<n]:[e[1]<<n-32,0]}function A(e,n){return[e[0]^n[0],e[1]^n[1]]}function pt(e){return e=A(e,[0,e[0]>>>1]),e=A(e=_(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=A(e=_(e,[3301882366,444984403]),[0,e[0]>>>1])}function lr(e,n){n=n||0;let t,r=(e=e||"").length%16,o=e.length-r,a=[0,n],s=[0,n],c=[0,0],i=[0,0],u=[2277735313,289559509],l=[1291169091,658871167];for(t=0;t<o;t+=16)c=[255&e.charCodeAt(t+4)|(255&e.charCodeAt(t+5))<<8|(255&e.charCodeAt(t+6))<<16|(255&e.charCodeAt(t+7))<<24,255&e.charCodeAt(t)|(255&e.charCodeAt(t+1))<<8|(255&e.charCodeAt(t+2))<<16|(255&e.charCodeAt(t+3))<<24],i=[255&e.charCodeAt(t+12)|(255&e.charCodeAt(t+13))<<8|(255&e.charCodeAt(t+14))<<16|(255&e.charCodeAt(t+15))<<24,255&e.charCodeAt(t+8)|(255&e.charCodeAt(t+9))<<8|(255&e.charCodeAt(t+10))<<16|(255&e.charCodeAt(t+11))<<24],c=ne(c=_(c,u),31),a=z(a=ne(a=A(a,c=_(c,l)),27),s),a=z(_(a,[0,5]),[0,1390208809]),i=ne(i=_(i,l),33),s=z(s=ne(s=A(s,i=_(i,u)),31),a),s=z(_(s,[0,5]),[0,944331445]);switch(c=[0,0],i=[0,0],r){case 15:i=A(i,M([0,e.charCodeAt(t+14)],48));case 14:i=A(i,M([0,e.charCodeAt(t+13)],40));case 13:i=A(i,M([0,e.charCodeAt(t+12)],32));case 12:i=A(i,M([0,e.charCodeAt(t+11)],24));case 11:i=A(i,M([0,e.charCodeAt(t+10)],16));case 10:i=A(i,M([0,e.charCodeAt(t+9)],8));case 9:i=_(i=A(i,[0,e.charCodeAt(t+8)]),l),s=A(s,i=_(i=ne(i,33),u));case 8:c=A(c,M([0,e.charCodeAt(t+7)],56));case 7:c=A(c,M([0,e.charCodeAt(t+6)],48));case 6:c=A(c,M([0,e.charCodeAt(t+5)],40));case 5:c=A(c,M([0,e.charCodeAt(t+4)],32));case 4:c=A(c,M([0,e.charCodeAt(t+3)],24));case 3:c=A(c,M([0,e.charCodeAt(t+2)],16));case 2:c=A(c,M([0,e.charCodeAt(t+1)],8));case 1:c=_(c=A(c,[0,e.charCodeAt(t)]),u),a=A(a,c=_(c=ne(c,31),l))}return a=z(a=A(a,[0,e.length]),s=A(s,[0,e.length])),s=z(s,a),a=z(a=pt(a),s=pt(s)),s=z(s,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Ne(e){return parseInt(e)}function H(e){return parseFloat(e)}function W(e,n){return typeof e=="number"&&isNaN(e)?n:e}function D(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function _t(e,n){if(n===void 0&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;const t=1/n;return Math.round(e*t)/t}function mt(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function dr(e){return typeof e!="function"}function fr(e,n,t){const r=Object.keys(e).filter(function(a){return!(function(s,c){for(let i=0,u=s.length;i<u;++i)if(s[i]===c)return!0;return!1})(t,a)}),o=Array(r.length);return ht(r,function(a,s){o[s]=(function(c,i){const u=new Promise(function(l){const f=Date.now();ft(c.bind(null,i),function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];const E=Date.now()-f;if(!m[0])return l(function(){return{error:mt(m[1]),duration:E}});const b=m[1];if(dr(b))return l(function(){return{value:b,duration:E}});l(function(){return new Promise(function(h){const I=Date.now();ft(b,function(){for(var P=[],U=0;U<arguments.length;U++)P[U]=arguments[U];const J=E+Date.now()-I;if(!P[0])return h({error:mt(P[1]),duration:J});h({value:P[1],duration:J})})})})})});return Ie(u),function(){return u.then(function(l){return l()})}})(e[a],n)}),function(){return Z(this,void 0,void 0,function(){let a,s,c,i,u,l;return X(this,function(f){switch(f.label){case 0:for(a={},s=0,c=r;s<c.length;s++)i=c[s],a[i]=void 0;u=Array(r.length),l=function(){let m;return X(this,function(v){switch(v.label){case 0:return m=!0,[4,ht(r,function(E,b){if(!u[b])if(o[b]){const h=o[b]().then(function(I){return a[E]=I});Ie(h),u[b]=h}else m=!1})];case 1:return v.sent(),m?[2,"break"]:[4,B(1)];case 2:return v.sent(),[2]}})},f.label=1;case 1:return[5,l()];case 2:if(f.sent()==="break")return[3,4];f.label=3;case 3:return[3,1];case 4:return[4,Promise.all(u)];case 5:return f.sent(),[2,a]}})})}}function Vt(){const e=window,n=navigator;return D(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function hr(){const e=window,n=navigator;return D(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!Vt()}function Je(){const e=window,n=navigator;return D(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,n.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function he(){const e=window,n=navigator;return D(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,n.vendor.indexOf("Apple")===0,"getStorageUpdates"in n,"WebKitMediaKeys"in e])>=4}function qe(){const e=window;return D(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function pr(){let e,n,t=window;return D(["buildID"in navigator,"MozAppearance"in((n=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&n!==void 0?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function mr(){const e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Ht(){const e=Je(),n=pr();if(!e&&!n)return!1;const t=window;return D(["onorientationchange"in t,"orientation"in t,e&&!("SharedWorker"in t),n&&/android/i.test(navigator.appVersion)])>=2}function vt(e){const n=new Error(e);return n.name=e,n}function gt(e,n,t){let r,o,a;return t===void 0&&(t=50),Z(this,void 0,void 0,function(){let s,c;return X(this,function(i){switch(i.label){case 0:s=document,i.label=1;case 1:return s.body?[3,3]:[4,B(t)];case 2:return i.sent(),[3,1];case 3:c=s.createElement("iframe"),i.label=4;case 4:return i.trys.push([4,,10,11]),[4,new Promise(function(u,l){let f=!1,m=function(){f=!0,u()};c.onload=m,c.onerror=function(b){f=!0,l(b)};const v=c.style;v.setProperty("display","block","important"),v.position="absolute",v.top="0",v.left="0",v.visibility="hidden",c.src="about:blank",s.body.appendChild(c);const E=function(){let b,h;f||(((h=(b=c.contentWindow)===null||b===void 0?void 0:b.document)===null||h===void 0?void 0:h.readyState)==="complete"?m():setTimeout(E,10))};E()})];case 5:i.sent(),i.label=6;case 6:return!((o=(r=c.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body?[3,8]:[4,B(t)];case 7:return i.sent(),[3,6];case 8:return[4,e(c,c.contentWindow)];case 9:return[2,i.sent()];case 10:return(a=c.parentNode)===null||a===void 0||a.removeChild(c),[7];case 11:return[2]}})})}function vr(e){for(var n=(function(c){for(var i,u,l="Unexpected syntax '".concat(c,"'"),f=/^\s*([a-z-]*)(.*)$/i.exec(c),m=f[1]||void 0,v={},E=/([.:#][\w-]+|\[.+?\])/gi,b=function(I,P){v[I]=v[I]||[],v[I].push(P)};;){const I=E.exec(f[2]);if(!I)break;const P=I[0];switch(P[0]){case".":b("class",P.slice(1));break;case"#":b("id",P.slice(1));break;case"[":var h=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(P);if(!h)throw new Error(l);b(h[1],(u=(i=h[4])!==null&&i!==void 0?i:h[5])!==null&&u!==void 0?u:"");break;default:throw new Error(l)}}return[m,v]})(e),t=n[0],r=n[1],o=document.createElement(t??"div"),a=0,s=Object.keys(r);a<s.length;a++){const c=s[a],i=r[c].join(" ");c==="style"?gr(o.style,i):o.setAttribute(c,i)}return o}function gr(e,n){for(let t=0,r=n.split(";");t<r.length;t++){const o=r[t],a=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(a){const s=a[1],c=a[2],i=a[4];e.setProperty(s,c,i||"")}}}const re=["monospace","sans-serif","serif"],bt=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Fe(e){return e.toDataURL()}let Ee,Me;function br(){const e=this;return(function(){if(Me===void 0){const n=function(){const t=_e();Ve(t)?Me=setTimeout(n,2500):(Ee=t,Me=void 0)};n()}})(),function(){return Z(e,void 0,void 0,function(){let n;return X(this,function(t){switch(t.label){case 0:return Ve(n=_e())?Ee?[2,ie([],Ee,!0)]:mr()?[4,(r=document,(r.exitFullscreen||r.msExitFullscreen||r.mozCancelFullScreen||r.webkitExitFullscreen).call(r))]:[3,2]:[3,2];case 1:t.sent(),n=_e(),t.label=2;case 2:return Ve(n)||(Ee=n),[2,n]}let r})})}}function _e(){const e=screen;return[W(H(e.availTop),null),W(H(e.width)-H(e.availWidth)-W(H(e.availLeft),0),null),W(H(e.height)-H(e.availHeight)-W(H(e.availTop),0),null),W(H(e.availLeft),null)]}function Ve(e){for(let n=0;n<4;++n)if(e[n])return!1;return!0}function yr(e){let n;return Z(this,void 0,void 0,function(){let t,r,o,a,s,c,i;return X(this,function(u){switch(u.label){case 0:for(t=document,r=t.createElement("div"),o=new Array(e.length),a={},yt(r),i=0;i<e.length;++i)s=vr(e[i]),yt(c=t.createElement("div")),c.appendChild(s),r.appendChild(c),o[i]=s;u.label=1;case 1:return t.body?[3,3]:[4,B(50)];case 2:return u.sent(),[3,1];case 3:t.body.appendChild(r);try{for(i=0;i<e.length;++i)o[i].offsetParent||(a[e[i]]=!0)}finally{(n=r.parentNode)===null||n===void 0||n.removeChild(r)}return[2,a]}})})}function yt(e){e.style.setProperty("display","block","important")}function Et(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function St(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function oe(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function Lt(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function wt(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}const S=Math,x=function(){return 0},He={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Er={fonts:function(){return gt(function(e,n){const t=n.document,r=t.body;r.style.fontSize="48px";const o=t.createElement("div"),a={},s={},c=function(l){const f=t.createElement("span"),m=f.style;return m.position="absolute",m.top="0",m.left="0",m.fontFamily=l,f.textContent="mmMwWLliI0O&1",o.appendChild(f),f},i=re.map(c),u=(function(){for(var l={},f=function(E){l[E]=re.map(function(b){return(function(h,I){return c("'".concat(h,"',").concat(I))})(E,b)})},m=0,v=bt;m<v.length;m++)f(v[m]);return l})();r.appendChild(o);for(let l=0;l<re.length;l++)a[re[l]]=i[l].offsetWidth,s[re[l]]=i[l].offsetHeight;return bt.filter(function(l){return n=u[l],re.some(function(f,m){return n[m].offsetWidth!==a[f]||n[m].offsetHeight!==s[f]})})})},domBlockers:function(e){const n=(e===void 0?{}:e).debug;return Z(this,void 0,void 0,function(){let t,r,o,a,s;return X(this,function(c){switch(c.label){case 0:return he()||Ht()?(i=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",i("YVt0aXRsZT0iN25hZ2EgcG9rZXIiIGld"),'[title="ALIENBOLA" i]'],abpvn:["#quangcaomb",i("Lmlvc0Fkc2lvc0Fkcy1sYXlvdXQ="),".quangcao",i("W2hyZWZePSJodHRwczovL3I4OC52bi8iXQ=="),i("W2hyZWZePSJodHRwczovL3piZXQudm4vIl0=")],adBlockFinland:[".mainostila",i("LnNwb25zb3JpdA=="),".ylamainos",i("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),i("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",i("I2FkMl9pbmxpbmU=")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",i("LmhlYWRlci1ibG9ja2VkLWFk"),i("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:['amp-embed[type="zen"]',".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil"],adGuardBase:[".BetterJsPopOverlay",i("I2FkXzMwMFgyNTA="),i("I2Jhbm5lcmZsb2F0MjI="),i("I2FkLWJhbm5lcg=="),i("I2NhbXBhaWduLWJhbm5lcg==")],adGuardChinese:[i("LlppX2FkX2FfSA=="),i("YVtocmVmKj0iL29kMDA1LmNvbSJd"),i("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),".qq_nr_lad","#widget-quan"],adGuardFrench:[i("I2Jsb2NrLXZpZXdzLWFkcy1zaWRlYmFyLWJsb2NrLWJsb2Nr"),"#pavePub",i("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv"],adGuardGerman:[i("LmJhbm5lcml0ZW13ZXJidW5nX2hlYWRfMQ=="),i("LmJveHN0YXJ0d2VyYnVuZw=="),i("LndlcmJ1bmcz"),i("YVtocmVmXj0iaHR0cDovL3d3dy5laXMuZGUvaW5kZXgucGh0bWw/cmVmaWQ9Il0="),i("YVtocmVmXj0iaHR0cHM6Ly93d3cudGlwaWNvLmNvbS8/YWZmaWxpYXRlSWQ9Il0=")],adGuardJapanese:["#kauli_yad_1",i("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),i("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),i("LmFkZ29vZ2xl"),i("LmFkX3JlZ3VsYXIz")],adGuardMobile:[i("YW1wLWF1dG8tYWRz"),i("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",i("I2FkX2ludmlld19hcmVh")],adGuardRussian:[i("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),i("LnJlY2xhbWE="),'div[id^="smi2adblock"]',i("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),i("I2FkX3NxdWFyZQ==")],adGuardSocial:[i("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),i("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",i("W2hyZWZePSJodHRwOi8vYWRzLmdsaXNwYS5jb20vIl0=")],adGuardTrackingProtection:["#qoo-counter",i("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),i("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),i("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",i("I3Jla2xhbWk="),i("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),i("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),i("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[i("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers",i("I25ld0Fk")],easyList:[i("I0FEX0NPTlRST0xfMjg="),i("LnNlY29uZC1wb3N0LWFkcy13cmFwcGVy"),".universalboxADVBOX03",i("LmFkdmVydGlzZW1lbnQtNzI4eDkw"),i("LnNxdWFyZV9hZHM=")],easyListChina:[i("YVtocmVmKj0iLndlbnNpeHVldGFuZy5jb20vIl0="),i("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),i("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box"],easyListCookie:["#AdaCompliance.app-notice",".text-center.rgpd",".panel--cookie",".js-cookies-andromeda",".elxtr-consent"],easyListCzechSlovak:["#onlajny-stickers",i("I3Jla2xhbW5pLWJveA=="),i("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",i("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[i("I2FkdmVydGVudGll"),i("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",i("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:[i("I0FkX1dpbjJkYXk="),i("I3dlcmJ1bmdzYm94MzAw"),i("YVtocmVmXj0iaHR0cDovL3d3dy5yb3RsaWNodGthcnRlaS5jb20vP3NjPSJd"),i("I3dlcmJ1bmdfd2lkZXNreXNjcmFwZXJfc2NyZWVu"),i("YVtocmVmXj0iaHR0cDovL2xhbmRpbmcucGFya3BsYXR6a2FydGVpLmNvbS8/YWc9Il0=")],easyListItaly:[i("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",i("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),i("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),i("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[i("LnJla2xhbW9zX3RhcnBhcw=="),i("LnJla2xhbW9zX251b3JvZG9z"),i("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),i("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),i("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[i("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#feedback-tab","#taboola-below-article",".feedburnerFeedBlock",".widget-feedburner-counter",'[title="Subscribe to our blog"]'],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:[".td-tags-and-social-wrapper-box",".twitterContainer",".youtube-social",'a[title^="Like us on Facebook"]','img[alt^="Share on Digg"]'],frellwitSwedish:[i("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),i("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",i("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[i("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),i("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),i("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",i("LmFkX19tYWlu"),i("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container",".cookie-msg-info-container","#cookies-policy-sticky"],icelandicAbp:[i("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[i("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),i("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[i("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),i("I2xpdmVyZUFkV3JhcHBlcg=="),i("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),i("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[i("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",i("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),i("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),i("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[i("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),i("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),i("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",i("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),i("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),i("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),i("ZGl2I3NrYXBpZWNfYWQ=")],ro:[i("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),'a[href^="/magazin/"]',i("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),i("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),i("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd")],ruAd:[i("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),i("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),i("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",i("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),i("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",i("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},r=Object.keys(t),[4,yr((s=[]).concat.apply(s,r.map(function(u){return t[u]})))]):[2,void 0];case 1:return o=c.sent(),n&&(function(u,l){for(var f="DOM blockers debug:\n```",m=0,v=Object.keys(u);m<v.length;m++){const E=v[m];f+=`
2
2
  `.concat(E,":");for(let b=0,h=u[E];b<h.length;b++){const I=h[b];f+=`
3
3
  `.concat(l[I]?"🚫":"➡️"," ").concat(I)}}console.log("".concat(f,"\n```"))})(t,o),(a=r.filter(function(u){const l=t[u];return D(l.map(function(f){return o[f]}))>.6*l.length})).sort(),[2,a]}let i})})},fontPreferences:function(){return(function(e,n){return n===void 0&&(n=4e3),gt(function(t,r){const o=r.document,a=o.body,s=a.style;s.width="".concat(n,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",Je()?a.style.zoom="".concat(1/r.devicePixelRatio):he()&&(a.style.zoom="reset");const c=o.createElement("div");return c.textContent=ie([],Array(n/20<<0),!0).map(function(){return"word"}).join(" "),a.appendChild(c),e(o,a)})})(function(e,n){for(var t={},r={},o=0,a=Object.keys(He);o<a.length;o++){var s=a[o],c=He[s],i=c[0],u=i===void 0?{}:i,l=c[1],f=l===void 0?"mmMwWLliI0fiflO&1":l,m=e.createElement("span");m.textContent=f,m.style.whiteSpace="nowrap";for(let v=0,E=Object.keys(u);v<E.length;v++){const b=E[v],h=u[b];h!==void 0&&(m.style[b]=h)}t[s]=m,n.appendChild(e.createElement("br")),n.appendChild(m)}for(let v=0,E=Object.keys(He);v<E.length;v++)r[s=E[v]]=t[s].getBoundingClientRect().width;return r})},audio:function(){const e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(he()&&!qe()&&!(function(){const u=window;return D(["DOMRectList"in u,"RTCPeerConnectionIceEvent"in u,"SVGGeometryElement"in u,"ontransitioncancel"in u])>=3})())return-1;const t=new n(1,5e3,44100),r=t.createOscillator();r.type="triangle",r.frequency.value=1e4;const o=t.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,r.connect(o),o.connect(t.destination),r.start(0);const a=(function(u){let l=3,f=500,m=500,v=5e3,E=function(){};return[new Promise(function(b,h){let I=!1,P=0,U=0;u.oncomplete=function(Y){return b(Y.renderedBuffer)};const J=function(){setTimeout(function(){return h(vt("timeout"))},Math.min(m,U+v-Date.now()))},be=function(){try{const Y=u.startRendering();switch(Mt(Y)&&Ie(Y),u.state){case"running":U=Date.now(),I&&J();break;case"suspended":document.hidden||P++,I&&P>=l?h(vt("suspended")):setTimeout(be,f)}}catch(Y){h(Y)}};be(),E=function(){I||(I=!0,U>0&&J())}}),E]})(t),s=a[0],c=a[1],i=s.then(function(u){return(function(l){for(var f=0,m=0;m<l.length;++m)f+=Math.abs(l[m]);return f})(u.getChannelData(0).subarray(4500))},function(u){if(u.name==="timeout"||u.name==="suspended")return-3;throw u});return Ie(i),function(){return c(),i}},screenFrame:function(){const e=this,n=br();return function(){return Z(e,void 0,void 0,function(){let t,r;return X(this,function(o){switch(o.label){case 0:return[4,n()];case 1:return t=o.sent(),[2,[(r=function(a){return a===null?null:_t(a,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},osCpu:function(){return navigator.oscpu},languages:function(){let e,n=navigator,t=[],r=n.language||n.userLanguage||n.browserLanguage||n.systemLanguage;if(r!==void 0&&t.push([r]),Array.isArray(n.languages))Je()&&D([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||t.push(n.languages);else if(typeof n.languages=="string"){const o=n.languages;o&&t.push(o.split(","))}return t},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return W(H(navigator.deviceMemory),void 0)},screenResolution:function(){const e=screen,n=function(r){return W(Ne(r),null)},t=[n(e.width),n(e.height)];return t.sort().reverse(),t},hardwareConcurrency:function(){return W(Ne(navigator.hardwareConcurrency),void 0)},timezone:function(){let e,n=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(n){const o=new n().resolvedOptions().timeZone;if(o)return o}let t,r=(t=new Date().getFullYear(),-Math.max(H(new Date(t,0,1).getTimezoneOffset()),H(new Date(t,6,1).getTimezoneOffset())));return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!Vt()&&!hr())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){const e=navigator.platform;return e==="MacIntel"&&he()&&!qe()?(function(){if(navigator.platform==="iPad")return!0;const n=screen,t=n.width/n.height;return D(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2})()?"iPad":"iPhone":e},plugins:function(){const e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){const a=e[t];if(a){for(var r=[],o=0;o<a.length;++o){const s=a[o];r.push({type:s.type,suffixes:s.suffixes})}n.push({name:a.name,description:a.description,mimeTypes:r})}}return n}},canvas:function(){let e,n,t=!1,r=(function(){const s=document.createElement("canvas");return s.width=1,s.height=1,[s,s.getContext("2d")]})(),o=r[0],a=r[1];if((function(s,c){return!(!c||!s.toDataURL)})(o,a)){t=(function(c){return c.rect(0,0,10,10),c.rect(2,2,6,6),!c.isPointInPath(5,5,"evenodd")})(a),(function(c,i){c.width=240,c.height=60,i.textBaseline="alphabetic",i.fillStyle="#f60",i.fillRect(100,1,62,20),i.fillStyle="#069",i.font='11pt "Times New Roman"';const u="Cwm fjordbank gly ".concat("😃");i.fillText(u,2,15),i.fillStyle="rgba(102, 204, 0, 0.2)",i.font="18pt Arial",i.fillText(u,4,45)})(o,a);const s=Fe(o);s!==Fe(o)?e=n="unstable":(n=s,(function(c,i){c.width=122,c.height=110,i.globalCompositeOperation="multiply";for(let u=0,l=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];u<l.length;u++){const f=l[u],m=f[0],v=f[1],E=f[2];i.fillStyle=m,i.beginPath(),i.arc(v,E,40,0,2*Math.PI,!0),i.closePath(),i.fill()}i.fillStyle="#f9c",i.arc(60,60,60,0,2*Math.PI,!0),i.arc(60,60,20,0,2*Math.PI,!0),i.fill("evenodd")})(o,a),e=Fe(o))}else e=n="";return{winding:t,geometry:e,text:n}},touchSupport:function(){let e,n=navigator,t=0;n.maxTouchPoints!==void 0?t=Ne(n.maxTouchPoints):n.msMaxTouchPoints!==void 0&&(t=n.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch{e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<t.length;n++){const r=t[n],o=window[r];o&&typeof o=="object"&&e.push(r)}return e.sort()},cookiesEnabled:function(){const e=document;try{e.cookie="cookietest=1; SameSite=Strict;";const n=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch{return!1}},colorGamut:function(){for(let e=0,n=["rec2020","p3","srgb"];e<n.length;e++){const t=n[e];if(matchMedia("(color-gamut: ".concat(t,")")).matches)return t}},invertedColors:function(){return!!Et("inverted")||!Et("none")&&void 0},forcedColors:function(){return!!St("active")||!St("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return oe("no-preference")?0:oe("high")||oe("more")?1:oe("low")||oe("less")?-1:oe("forced")?10:void 0},reducedMotion:function(){return!!Lt("reduce")||!Lt("no-preference")&&void 0},hdr:function(){return!!wt("high")||!wt("standard")&&void 0},math:function(){let e,n=S.acos||x,t=S.acosh||x,r=S.asin||x,o=S.asinh||x,a=S.atanh||x,s=S.atan||x,c=S.sin||x,i=S.sinh||x,u=S.cos||x,l=S.cosh||x,f=S.tan||x,m=S.tanh||x,v=S.exp||x,E=S.expm1||x,b=S.log1p||x;return{acos:n(.12312423423423424),acosh:t(1e308),acoshPf:(e=1e154,S.log(e+S.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:(function(h){return S.log(h+S.sqrt(h*h+1))})(1),atanh:a(.5),atanhPf:(function(h){return S.log((1+h)/(1-h))/2})(.5),atan:s(.5),sin:c(-1e300),sinh:i(1),sinhPf:(function(h){return S.exp(h)-1/S.exp(h)/2})(1),cos:u(10.000000000123),cosh:l(1),coshPf:(function(h){return(S.exp(h)+1/S.exp(h))/2})(1),tan:f(-1e300),tanh:m(1),tanhPf:(function(h){return(S.exp(2*h)-1)/(S.exp(2*h)+1)})(1),exp:v(1),expm1:E(1),expm1Pf:(function(h){return S.exp(h)-1})(1),log1p:b(10),log1pPf:(function(h){return S.log(1+h)})(10),powPI:(function(h){return S.pow(S.PI,h)})(-100)}},videoCard:function(){let e,n=document.createElement("canvas"),t=(e=n.getContext("webgl"))!==null&&e!==void 0?e:n.getContext("experimental-webgl");if(t&&"getExtension"in t){const r=t.getExtension("WEBGL_debug_renderer_info");if(r)return{vendor:(t.getParameter(r.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(t.getParameter(r.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){const e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}};function Sr(e){const n=(function(r){if(Ht())return .4;if(he())return qe()?.5:.3;const o=r.platform.value||"";return/^Win/.test(o)?.6:/^Mac/.test(o)?.5:.7})(e),t=(function(r){return _t(.99+.01*r,1e-4)})(n);return{score:n,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(t))}}function Lr(e){return JSON.stringify(e,function(n,t){return t instanceof Error?ze({name:(ie=t).name,message:ie.message,stack:(B=ie.stack)===null||B===void 0?void 0:B.split(`
4
4
  `)},ie):t},2)}function wr(e){return lr((function(n){for(var t="",r=0,o=Object.keys(n).sort();r<o.length;r++){const a=o[r],s=n[a],c=s.error?"error":JSON.stringify(s.value);t+="".concat(t?"|":"").concat(a.replace(/([:|\\])/g,"\\$1"),":").concat(c)}return t})(e))}function Rr(e){return e===void 0&&(e=50),(function(n,t){t===void 0&&(t=1/0);const r=window.requestIdleCallback;return r?new Promise(function(o){return r.call(window,function(){return o()},{timeout:t})}):B(Math.min(n,t))})(e,2*e)}function Ar(e,n){const t=Date.now();return{get:function(r){return Z(this,void 0,void 0,function(){let o,a,s;return X(this,function(c){switch(c.label){case 0:return o=Date.now(),[4,e()];case 1:return a=c.sent(),s=(function(i){let u;return{get visitorId(){return u===void 0&&(u=wr(this.components)),u},set visitorId(l){u=l},confidence:Sr(i),components:i,version:"3.4.1"}})(a),(n||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version,`
@@ -8,4 +8,4 @@ visitorId: `).concat(s.visitorId,`
8
8
  components: `).concat(Lr(a),"\n```")),[2,s]}})})}}}function Ir(e){const n=e===void 0?{}:e,t=n.delayFallback,r=n.debug;return n.monitoring,Z(this,void 0,void 0,function(){return X(this,function(o){switch(o.label){case 0:return[4,Rr(t)];case 1:return o.sent(),[2,Ar(fr(Er,{debug:r},[]),r)]}})})}function nt(){const e=tt(Ye)||`s_${We()}`,n=new Date(w()+jn);return document.cookie=`${Ye}=${e};path=/;max-age=1800;expires=${n.toUTCString()}`,e}function Tr(){return tt(Ye)||nt()}nt();function kr(e){return Dt.test(e)}function Cr(e){return Ut.test(e)}const Dt=/((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])/,Ut=/((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/,Or=[Ut,Dt];function Pr(e){let n,t=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;function r(){(n=new t({iceServers:[{urls:"stun:stun.l.google.com:19302"}]})).onicecandidate=s=>a(s),n.createDataChannel("fake_data_channel")}function o(){return n.createOffer().then(s=>n.setLocalDescription(s))}function a(s){s&&s.candidate&&s.candidate.candidate&&e(s&&s.candidate&&s.candidate.candidate)}return{start:function(){r(),o()},stop:function(){if(n)try{n.close()}finally{n.onicecandidate=()=>{},n=null}},createConnection:r,createStunRequest:o,handleCandidates:a}}function $e(e){if(e&&e<100)throw new Error("Custom timeout cannot be under 100 milliseconds.");const n=[],t=Pr(function(o){const a=[];for(const s of Or){const c=[],i=s.exec(o);if(i){for(let u=0;u<i.length;u++)(kr(i[u])||Cr(i[u]))&&c.push(i[u]);a.push(c)}}(function(s){n.includes(s)||n.push(r(s.flat(1/0)))})(a.flat(1/0))});function r(o){return Array.from(new Set(o))}return new Promise(function(o,a){t.start(),setTimeout(()=>{n&&n!==[]?o(r(n.flat(1/0))):a("No IP addresses were found."),t.stop()},e||500)})}function rt(e){return new Promise(function(n,t){const r=[];$e(e).then(o=>{o.forEach(a=>{a.match(/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/)?r.push({ip:a,type:"private",IPv4:!0}):a.match(/((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/)?r.push({ip:a,type:"IPv6",IPv4:!1}):r.push({ip:a,type:"public",IPv4:!0})}),n(r)}).catch(t)})}function xr(e){return rt(e).then(n=>{const t=n.filter(r=>r.IPv4);for(let r=0;r<t.length;r++)t[r]=t[r].ip;return t||""})}function Nr(e){return rt(e).then(n=>{const t=n.filter(r=>r.type==="IPv6");for(let r=0;r<t.length;r++)t[r]=t[r].ip;return t?t.ip:""})}function Xt(e){return Object.assign($e(e),{types:rt,public:$e,IPv4:xr,IPv6:Nr})}class Qe{static maxSize=.01*1024*1e3;static getItem(n){const t=localStorage.getItem(n);return t?JSON.parse(t):null}static setItem(n,t){localStorage.setItem(n,JSON.stringify(t))}static removeItem(n){localStorage.removeItem(n)}static getSize(){let n=0;for(let t=0;t<localStorage.length;t++){const r=localStorage.key(t);if(r){const o=localStorage.getItem(r);o&&(n+=this.getBytes(o))}}return n}static setSendDataItem(n,t){if(this.getSize()>=this.maxSize)return!1;const r=this.getItem(n)||{baseInfo:{},eventInfo:[]},o={baseInfo:Ae(r.baseInfo,t.baseInfo),eventInfo:r.eventInfo.concat(t.eventInfo)};return this.setItem(n,o),!0}static getBytes(n){return new Blob([n]).size}}class Fr{events=[];timeoutID;isServerAvailable=!0;retryTimer;send(){if(!this.events.length||!this.isServerAvailable)return;const n=this.events.slice(0,exports._options.value.cacheMaxLength);this.events=this.events.slice(exports._options.value.cacheMaxLength);const t=w(),r=ke.computed(()=>({baseInfo:{...ue.base?.value,sendTime:t,userUuid:exports._options.value.userUuid},eventInfo:Ft(n,s=>(s.sendTime=t,s))})),o=exports._options.value.transformSendParams?exports._options.value.transformSendParams(r.value):null;if(exports._options.value.localization){Qe.setSendDataItem(Ge,r.value)||exports._options.value.localizationOverFlow(r.value);return}const a=ye(exports._options.value.beforeSendData,!1,o??r.value);Oe(a)||this.validateObject(a,"beforeSendData")&&(ae("send events",a),this.executeSend(exports._options.value.dsn,a).then(s=>{s.success===!1?this.handleServerError():(this.isServerAvailable=!0,ye(exports._options.value.afterSendData,!0,{...s,params:a}))}),this.events.length&&_n(this.send.bind(this)))}handleServerError(){if(this.isServerAvailable=!1,this.retryTimer&&clearTimeout(this.retryTimer),exports._options.value.checkRecoverInterval===-1)return;const n=(exports._options.value.checkRecoverInterval??1)*60*1e3;this.retryTimer=setTimeout(()=>{this.testServerAvailable()},n)}testServerAvailable(){st(exports._options.value.dsn,{ping:1},exports._options.value.timeout).then(()=>{this.isServerAvailable=!0,this.retryTimer&&clearTimeout(this.retryTimer),this.events.length&&this.send()}).catch(()=>{this.handleServerError()})}sendLocal(n){const t=exports._options.value.transformSendParams?exports._options.value.transformSendParams(n):null,r=ye(exports._options.value.beforeSendData,!1,t??n);Oe(r)||this.validateObject(r,"beforeSendData")&&(ae("send events",r),this.executeSend(exports._options.value.dsn,r))}emit(n,t=!1){if(!n||!C.lineStatus.onLine||!t&&!Cn(exports._options.value.tracesSampleRate))return;Ce(n)||(n=[n]);const r=exports._options.value.maxQueueLength??200;if(!this.isServerAvailable&&this.events.length>=r){this.events=this.events.slice(this.events.length-r+n.length).concat(n);return}const o=ye(exports._options.value.beforePushEventList,!1,n);Oe(o)||this.validateObject(o,"beforePushEventList")&&(this.events=this.events.concat(o),nt(),this.timeoutID&&clearTimeout(this.timeoutID),ue._initSuccess&&(this.events.length>=exports._options.value.cacheMaxLength||t?this.send():this.timeoutID=setTimeout(this.send.bind(this),exports._options.value.cacheWatingTime)))}executeSend(n,t){let r=1;return exports._options.value.sendTypeByXmlBody?r=3:p.navigator?r=ct(t,60)?3:1:r=ct(t,2)?3:2,new Promise(o=>{switch(r){case 1:o({sendType:"sendBeacon",success:Pn(n,t)});break;case 2:xn(n,t).then(()=>{o({sendType:"image",success:!0})}).catch(()=>{o({sendType:"image",success:!1})});break;case 3:st(n,t,exports._options.value.timeout).then(()=>{o({sendType:"xml",success:!0})}).catch(()=>{o({sendType:"xml",success:!1})});break}})}validateObject(n,t){return n===!1?!1:n?["object","array"].includes(ce(n))?!0:(K(`TypeError: ${t}期望返回 {} 或者 [] 类型,目前是${ce(n)}类型`),!1):(K(`NullError: ${t}期望返回 {} 或者 [] 类型,目前无返回值`),!1)}destroy(){this.timeoutID&&clearTimeout(this.timeoutID),this.retryTimer&&clearTimeout(this.retryTimer),this.events=[],this.isServerAvailable=!0}}let T;function Mr(){C.sendData=new Fr,T=C.sendData}class _r{base;pageId;sdkUserUuid="";device;_initSuccess=!1;constructor(){this.pageId=We(),this.initSdkUserUuid().then(()=>{this.initDevice(),this.initBase()}).finally(()=>{this._initSuccess=!0,T.emit([])})}initDevice(){const{screen:n}=xt(),{clientWidth:t,clientHeight:r}=document.documentElement,{width:o,height:a,colorDepth:s,pixelDepth:c}=n;let i=tt(dt);i||(i=`t_${We()}`,document.cookie=`${dt}=${i};path=/;`),this.device={clientHeight:r,clientWidth:t,colorDepth:s,pixelDepth:c,deviceId:i,screenWidth:o,screenHeight:a,vendor:navigator.vendor,platform:navigator.platform}}initBase(){const n=Tr();let t="";this.base=ke.computed(()=>({...this.device,userUuid:exports._options.value.userUuid,sdkUserUuid:this.sdkUserUuid,ext:exports._options.value.ext,appName:exports._options.value.appName,appCode:exports._options.value.appCode,pageId:this.pageId,sessionId:n,sdkVersion:Wn,ip:t})),!je&&Xt().then(r=>{this.base.value.ip=r[0],t=r[0]})}initSdkUserUuid(){return je?Promise.resolve().then(()=>{this.sdkUserUuid="unit-test-id",exports._options.value.sdkUserUuid="unit-test-id"}):Ir({}).then(n=>n.get()).then(n=>{const t=n.visitorId;this.sdkUserUuid=t,exports._options.value.sdkUserUuid=t})}}let ue;function Vr(){ue=new _r,C.baseInfo=ue}class Hr{onLine=!0;constructor(){this.init()}init(){g.addEvent({type:d.OFFLINE,callback:n=>{n.type==="offline"&&(ae("网络断开"),this.onLine=!1)}}),g.addEvent({type:d.ONLINE,callback:n=>{n.type==="online"&&(ae("网络连接"),this.onLine=!0)}})}}function Dr(){C.lineStatus=new Hr,C.lineStatus}const Ur=5e3,Xr=3;let q;class Rt{eventList=[{scope:`${w()}-`,eventList:[]}];closeCallback;constructor(){this.init()}init(){this.closeCallback=gn.record({emit:(n,t)=>{const r=this.eventList[this.eventList.length-1];r.eventList.push(n),t&&(this.eventList.length>0&&(this.eventList[this.eventList.length-1].scope=r.scope+w()),this.eventList.length>Xr&&this.eventList.shift(),this.eventList.push({scope:`${w()}-`,eventList:[]}))},recordCanvas:!0,checkoutEveryNms:Ur})}close(){this.closeCallback?.(),this.closeCallback=void 0}}function jr(){ke.watch(exports._options,(e,n)=>{e.recordScreen!==n.recordScreen&&(e.recordScreen?q=new Rt:(q?.close(),q=void 0))}),q=exports._options.value.recordScreen?new Rt:void 0}function Wr(){return q?.eventList??[]}function Br(e){if(!e)return e;const n=typeof e!="string"&&typeof e!="number"?JSON.stringify(e):e,t=Re.Base64.encode(n),r=Pt.gzip(t),o=Array.from(r);let a="";return o.forEach(s=>{a+=String.fromCharCode(s)}),Re.Base64.btoa(a)}function Zr(e){const t=Re.Base64.atob(e).split("").map(function(l){return l.charCodeAt(0)}),r=new Uint8Array(t),o=Pt.ungzip(r);let a="";const s=8*1024;let c;for(c=0;c<o.length/s;c++)a+=String.fromCharCode.apply(null,o.slice(c*s,(c+1)*s));a+=String.fromCharCode.apply(null,o.slice(c*s));const i=Re.Base64.decode(a);let u="";try{u=JSON.parse(i)}catch(l){/Unexpected token o in JSON at position 0/.test(l)&&(u=i)}return u}function Yr(){q?.close(),q=void 0}const Gr=2e3,zr=2e4,Se=5,De=["errMessage","eventId","requestUrl"];class Jr{cacheErrorA;cacheErrorB;throttleProxyAddCacheErrorA;throttleProxyAddCacheErrorB;constructor(){this.cacheErrorA=[],this.cacheErrorB=[],this.throttleProxyAddCacheErrorA=kn(this.proxyAddCacheErrorA,Gr),this.throttleProxyAddCacheErrorB=Nt(this.proxyAddCacheErrorB,zr)}proxyAddCacheErrorA(){let n=this.cacheErrorA.length;if(!n)return;const t=Pe(this.cacheErrorA,...De),r=t.filter(a=>a.length<Se),o=t.filter(a=>a.length>=Se);if(r.length&&T.emit(r.flat(1/0)),o.length){const a=[];o.forEach(s=>{const c=s[0];c.batchError=!0,c.batchErrorLength=s.length,c.batchErrorLastHappenTime=s[s.length-1].triggerTime,a.push(c)}),this.cacheErrorB.push(...a),this.throttleProxyAddCacheErrorB()}for(;n--;)this.cacheErrorA.shift()}proxyAddCacheErrorB(){let n=this.cacheErrorB.length;if(!n)return;const t=Pe(this.cacheErrorB,...De);for(;n--;)this.cacheErrorB.shift();const r=[];t.forEach(o=>{const a=o[0];o.length>1&&(a.batchErrorLength=o.reduce((s,c)=>s+=c.batchErrorLength,0),a.batchErrorLastHappenTime=o[o.length-1].triggerTime),r.push(a)}),T.emit(r)}sendAllCacheError(){const n=this.cacheErrorA.concat(this.cacheErrorB),t=Pe(n,...De),r=t.filter(a=>a.length<Se),o=t.filter(a=>a.length>=Se);if(r.length&&T.emit(r.flat(1/0),!0),o.length){const a=[];o.forEach(s=>{const c=s[0];c.batchError=!0,c.batchErrorLength=s.length,c.batchErrorLastHappenTime=s[s.length-1].triggerTime,a.push(c)}),T.emit(a,!0)}}pushCacheErrorA(n){this.cacheErrorA.push(n),this.throttleProxyAddCacheErrorA(),this.cacheErrorA.length>=50&&(this.proxyAddCacheErrorA(),this.proxyAddCacheErrorB())}}let ot;function qr(){ot=new Jr}function $r(e){return e.map(t=>{if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="function")return`[Function: ${t.name||"anonymous"}]`;if(t instanceof Error)return`${t.name}: ${t.message}${t.stack?`
9
9
  `+t.stack:""}`;if(typeof t=="object")try{return JSON.stringify(t,null,2)}catch{return t.toString()}return String(t)}).join(" | ")}function At(e){const{stack:n="",message:t=""}=e,r={eventId:k.CODE,errMessage:t,errStack:n};if(n){const o=/^\s*at\s*([^(]+)\s*\((.+?):(\d+):(\d+)\)$/,a=/^\s*([^@]*)@(.+?):(\d+):(\d+)$/,s=n.replace(new RegExp(`^[\\w\\s:]*${t}
10
10
  `),""),i=Ft(Mn(s.split(`
11
- `),u=>u),u=>{const l=u.match(o);if(l)return{triggerPageUrl:l[2],line:l[3],col:l[4]};const f=u.match(a);return f?{triggerPageUrl:f[2],line:f[3],col:f[4]}:{}})[0]||{};return{...r,...i}}return r}function Te(e){if(e instanceof Error){const{message:n,stack:t,lineNumber:r,fileName:o,columnNumber:a}=e;return o?{errMessage:n,errStack:t,eventId:k.CODE,line:r,col:a,triggerPageUrl:o}:At(e)}return e.message?At(e):typeof e=="string"?{eventId:k.REJECT,errMessage:e}:Ce(e)?{eventId:k.CONSOLEERROR,errMessage:$r(e)}:{}}function Qr(e){return e&&e.reason!==void 0}function It(e){if(Qr(e))return{eventId:k.CODE,...Te(e.reason)};const{target:n}=e;if(n instanceof HTMLElement&&n.nodeType===1){const t={initiatorType:n.nodeName.toLowerCase(),eventId:k.RESOURCE,requestUrl:""};return n.nodeName.toLowerCase()==="link"?t.requestUrl=n.href:t.requestUrl=n.currentSrc||n.src,t}if(e.error){const t=e.error;return t.fileName=t.filename||e.filename,t.columnNumber=t.colno||e.colno,t.lineNumber=t.lineno||e.lineno,{eventId:k.CODE,...Te(t)}}return{eventId:k.CODE,line:p.event.errorLine,col:p.event.errorCharacter,errMessage:p.event.errorMessage,triggerPageUrl:p.event.errorUrl}}function Ue(e){if(!exports._options.value.ignoreErrors.length)return!1;let n=e.errMessage||e.message;return n?(n=String(n),exports._options.value.ignoreErrors.some(t=>et(t)?t.test(n)?(ae(`ignoreErrors拦截成功 - 截条件:${t} 错误信息:${n}`),!0):!1:n===t?(ae(`ignoreErrors拦截成功 - 截条件:${t} 错误信息:${n}`),!0):!1)):!1}function Kr(){return JSON.parse(JSON.stringify(Wr())).slice(-2).map(n=>n.eventList).flat()}function we(e,n=!1){const t={...e,eventType:F.ERROR,recordscreen:exports._options.value.recordScreen?Br(Kr()):null,triggerPageUrl:N(),triggerTime:w()};exports._options.value.scopeError?ot.pushCacheErrorA(t):T.emit(t,n)}function eo(){exports._options.value.error.core&&(exports._options.value.scopeError&&(qr(),g.addEvent({type:d.BEFOREUNLOAD,callback:()=>{ot.sendAllCacheError()}})),g.addEvent({type:d.ERROR,callback:e=>{const n=It(e);Ue(n)||we(n)}}),g.addEvent({type:d.UNHANDLEDREJECTION,callback:e=>{const n=It(e);Ue(n)||we(n)}}),g.addEvent({type:d.CONSOLEERROR,callback:e=>{const n=Te(e);Ue(n)||we({eventId:k.CODE,...n})}}))}function it(e={},n=!1){we(e,n)}function to(){g.removeEvents([d.ERROR,d.UNHANDLEDREJECTION,d.CONSOLEERROR])}function Xe(e,n){return e.find(t=>t.hasAttribute&&t.hasAttribute(n))}function Tt(e){if(e.length>0){const n=["em","b","strong","span","img","i","code"];return e.filter(({tagName:r})=>n.indexOf(r.toLowerCase())>=0).length===e.length}return!0}function jt(e,n=""){if(!e)return n;const t=e.parentElement,{id:r}=e,o=e.tagName.toLowerCase(),a=n?`>${n}`:"";return!t||t===document.documentElement||t===document.body?`${o}${a}`:r?`#${r}${a}`:jt(t,`${o}${a}`)}class no{eventId="";eventType="";title="";triggerPageUrl="";x=-1;y=-1;params={};elementPath="";triggerTime=-1;constructor(n={}){Object.keys(n).forEach(t=>{de(t,n)&&(this[t]=n[t]||null)})}}function ro(){g.addEvent({type:d.CLICK,callback:e=>{const n=new no({eventType:F.CLICK}),t=e.composedPath()?e.composedPath():e.target?oo(e.target):[],r=t.find(i=>i.hasAttribute&&(i.hasAttribute("data-warden-container")||i.hasAttribute("data-warden-event-id")||i.hasAttribute("data-warden-title")));if(!r)return;const{scrollTop:o,scrollLeft:a}=document.documentElement,{top:s,left:c}=e.target.getBoundingClientRect();n.x=c+a,n.y=s+o,n.triggerTime=w(),n.triggerPageUrl=N(),n.title=io(r),n.eventId=co(t),n.params=uo(t),n.elementPath=jt(r).slice(-128),T.emit(n)}})}function oo(e,n={includeSelf:!0,order:"asc"}){if(!e)return[];const{includeSelf:t,order:r}=n;let o=t?e:e.parentElement,a=[];for(;o;)a=r==="asc"?a.concat(o):[o].concat(a),o=o.parentElement;return a}function io(e){const n=kt(e);if(n)return n;let t=e.parentElement;for(;t&&t!==document.body&&!t.hasAttribute("data-warden-container");)t=t.parentElement;const r=kt(t);if(r)return r;const{tagName:o}=e;return!e.hasChildNodes()||o.toLowerCase()==="svg"?ao(e):so(e)}function kt(e){return e?e.hasAttribute("data-warden-title")?e.getAttribute("data-warden-title"):e.title:""}function ao(e){const{tagName:n,textContent:t}=e;if(n==="IMG")return e.getAttribute("alt")||null;if(n==="svg"){const r=[...Array(e.children)].find(o=>o.tagName==="use");if(r)return r.getAttribute("xlink:href")||null}return t}function so(e){const{tagName:n,textContent:t}=e;if(n==="A")return Tt([...Array.from(e.children)])?t:e.getAttribute("href")||null;if(n==="BUTTON"){const o=e.getAttribute("name"),a=Tt([...Array.from(e.children)]);return o||a?t:e.getAttribute("href")||null}const{length:r}=[...Array.from(e.children)].filter(()=>e.hasChildNodes());return r>0?null:t}function co(e=[]){const n=Xe(e,"data-warden-event-id");if(n)return n.getAttribute("data-warden-event-id");const t=Xe(e,"title");if(t)return t.getAttribute("title");const r=Xe(e,"data-warden-container");if(r){if(r.getAttribute("data-warden-event-id"))return r.getAttribute("data-warden-event-id");if(r.getAttribute("title"))return r.getAttribute("title");const o=r.getAttribute("data-warden-container");if(typeof o=="string"&&o)return o}return e[0].tagName.toLowerCase()}function uo(e=[]){const n=/^data-warden-/;let t,r=-1;for(let i=0;i<e.length;i++){const u=e[i];if(t=(u&&u.attributes&&Array.from(u.attributes)||[]).find(f=>f.nodeName.match(n)?f.nodeName.match(n):f.nodeName.indexOf("data-warden-container")!==-1),t){r=i;break}}if(r<0)return{};const o=e[r],a=Array.from(o.attributes)||[],s={},c=["container","title","event-id"];return a.forEach(i=>{if(i.nodeName.indexOf("data-warden")<0)return;const u=i.nodeName.replace(n,"");c.includes(u)||(s[u]=i.nodeValue)}),s}function lo(){exports._options.value.event.core&&ro()}function fo(e={},n=!1){T.emit({...e,eventType:F.CUSTOM,triggerTime:w(),triggerPageUrl:N()},n)}function ho(){g.removeEvents([d.CLICK,d.LOAD])}const $={performance:!!p.performance,getEntriesByType:!!(p.performance&&p.performance.getEntriesByType),PerformanceObserver:"PerformanceObserver"in p,MutationObserver:"MutationObserver"in p,PerformanceNavigationTiming:"PerformanceNavigationTiming"in p},po={initiatorType:"",transferSize:0,encodedBodySize:0,decodedBodySize:0,duration:0,redirectStart:0,redirectEnd:0,startTime:0,fetchStart:0,domainLookupStart:0,domainLookupEnd:0,connectStart:0,connectEnd:0,requestStart:0,responseStart:0,responseEnd:0,workerStart:0};function Ct(e){const n=["img","script","link","audio","video","css"],t=e.getEntriesByType("resource"),r=[];return t.forEach(o=>{const{initiatorType:a=""}=o;if(n.indexOf(a.toLowerCase())<0)return;if(Le.length){const c=Le.findIndex(i=>i.src===o.name);if(c!==-1){Le.splice(c,1);return}}const s={};Object.keys(po).forEach(c=>{de(c,o)&&(s[c]=o[c])}),r.push(se({...s,eventType:F.PERFORMANCE,eventId:k.RESOURCE,requestUrl:o.name,triggerTime:w(),triggerPageUrl:N()}))}),r.length&&T.emit(r),r}let pe=null,me=null;function mo(){const e=["img","script","link"];pe=new MutationObserver(n=>{for(let t=0;t<n.length;t+=1){const r=w(),{addedNodes:o=[]}=n[t];o.forEach(a=>{const{nodeName:s}=a;e.indexOf(s.toLowerCase())!==-1&&(V(a,d.LOAD,function(){T.emit(se({eventType:F.PERFORMANCE,eventId:k.RESOURCE,requestUrl:a.src||a.href,duration:w()-r,triggerTime:w(),triggerPageUrl:N()}))}),V(a,d.ERROR,function(){T.emit(se({eventType:F.PERFORMANCE,eventId:k.RESOURCE,requestUrl:a.src||a.href,responseStatus:"error",duration:w()-r,triggerTime:w(),triggerPageUrl:N()}))}))})}}),pe.observe(p.document,{subtree:!0,childList:!0})}function vo(){const e=n=>{const t={...n,triggerPageUrl:N()};C.firstScreen?C.firstScreen.push({...t}):C.firstScreen=[{...t}],T.emit(se({...t,eventType:F.PERFORMANCE,eventId:k.PAGE}))};new PerformanceObserver((n,t)=>{const r=n.getEntriesByName("first-contentful-paint")[0];r&&(t.disconnect(),e({fcp:r.startTime}))}).observe({type:"paint",buffered:!0}),new PerformanceObserver((n,t)=>{const r=n.getEntriesByType("largest-contentful-paint").at(-1);r&&(t.disconnect(),e({lcp:r.startTime}))}).observe({type:"largest-contentful-paint",buffered:!0})}function go(){const e={},{performance:n}=p;let t=n.timing;if(e.fmp=0,$.getEntriesByType){const o=n.getEntriesByType("paint");if(o.length&&(e.fmp=o[o.length-1].startTime),$.PerformanceNavigationTiming){const a=n.getEntriesByType("navigation")[0];a&&(t=a)}}e.fmp&&$.PerformanceNavigationTiming&&(e.fmp-=t.fetchStart),e.whiteScreenTime=t.responseEnd-t.fetchStart,e.tti=t.domInteractive-t.fetchStart,e.ready=t.domContentLoadedEventEnd-t.fetchStart,e.loadTime=t.loadEventStart-t.fetchStart,e.firstByte=t.responseStart-t.domainLookupStart,e.dns=t.domainLookupEnd-t.domainLookupStart,e.dnsCache=t.domainLookupStart-t.fetchStart,e.tcp=t.connectEnd-t.connectStart,e.ttfb=t.responseStart-t.requestStart,e.trans=t.responseEnd-t.responseStart,e.dom=t.domInteractive-t.responseEnd,e.res=t.loadEventStart-t.domContentLoadedEventEnd,e.ssllink=t.connectEnd-t.secureConnectionStart,e.redirect=t.redirectEnd-t.redirectStart,e.unloadTime=t.unloadEventEnd-t.unloadEventStart;const r={...e,triggerPageUrl:N()};C.firstScreen?C.firstScreen.push({...r}):C.firstScreen=[{...r}],T.emit(se({...r,eventType:F.PERFORMANCE,eventId:k.PAGE}))}function Ot(){$.performance&&exports._options.value.performance.firstResource&&(go(),vo()),$.performance&&exports._options.value.performance.core&&(Ct(p.performance),$.PerformanceObserver?(me=new PerformanceObserver(Ct),me.observe({entryTypes:["resource"]})):$.MutationObserver&&mo())}function bo(){!exports._options.value.performance.firstResource&&!exports._options.value.performance.core||(document.readyState==="complete"?Ot():g.addEvent({type:d.LOAD,callback:()=>{Ot()}}))}function at(e={},n=!1){const t={...e,triggerTime:w(),triggerPageUrl:N(),eventType:F.PERFORMANCE};T.emit(se(t),n)}function yo(){pe&&(pe.disconnect(),pe=null),me&&(me.disconnect(),me=null)}function Eo(){g.addEvent({type:d.FETCH,callback:async(e,n={},t,r,o={})=>{const{method:a="GET",body:s={}}=n,{url:c,status:i,statusText:u}=t,l=String(a).toLocaleLowerCase();Wt(c)||(i===200||i===304?exports._options.value.performance.server&&at({eventId:k.SERVER,requestUrl:c,triggerTime:r,duration:w()-r,responseStatus:i,requestMethod:l,requestType:"fetch",...o,params:a.toUpperCase()==="POST"?s:Be(c)}):exports._options.value.error.server&&it({eventId:k.SERVER,triggerTime:r,duration:w()-r,errMessage:u,requestUrl:On(c),responseStatus:i,requestMethod:l,requestType:"fetch",...o,params:a.toUpperCase()==="POST"?s:Be(c)}))}})}class So{requestUrl="";requestMethod="";requestParams={};triggerTime=-1;constructor(n={}){Object.keys(n).forEach(t=>{de(t,n)&&(this[t]=n[t]||null)})}}function Lo(){const e=new So;g.addEvent({type:d.XHROPEN,callback:(n,t)=>{e.requestMethod=String(n).toLocaleLowerCase(),e.requestUrl=t,e.requestParams=Be(t)}}),g.addEvent({type:d.XHRSEND,callback:(n,t)=>{V(n,d.READYSTATECHANGE,function(){const{readyState:r,status:o,responseURL:a,statusText:s}=n,c=n.responseType===""||n.responseType==="text"?n.responseText:"";if(r===4){const i=a||e.requestUrl;if(Wt(i))return;o===200||o===304?exports._options.value.performance.server&&at({eventId:k.SERVER,requestUrl:i,requestMethod:e.requestMethod,requestType:"xhr",responseStatus:o,duration:w()-e.triggerTime,params:e.requestMethod==="post"?t:e.requestParams}):exports._options.value.error.server&&it({eventId:k.SERVER,errMessage:s||c,requestUrl:i,requestMethod:e.requestMethod,requestType:"xhr",responseStatus:o,params:e.requestMethod==="post"?t:e.requestParams})}}),e.triggerTime=w()}})}function Wt(e){return!exports._options.value.ignoreRequest.length||!e?!1:exports._options.value.ignoreRequest.some(n=>et(n)?!!n.test(e):e===n)}function wo(){!exports._options.value.performance.server&&!exports._options.value.error.server||(Lo(),Eo())}function Ro(){g.removeEvents([d.FETCH,d.XHROPEN,d.XHRSEND])}let Q=N();function Ao(){if(!exports._options.value.pv.core)return;let e=!1,n=!1;fe({referer:document.referrer}),g.addEvent({type:d.HISTORYPUSHSTATE,callback:()=>{n||(e=!1,fe({action:"navigation"}))}}),g.addEvent({type:d.HISTORYREPLACESTATE,callback:()=>{n=!0,e=!1,fe({action:"navigation"}),setTimeout(()=>{n=!1},100)}}),g.addEvent({type:d.HASHCHANGE,callback:()=>{n||(e||fe(),e=!1)}}),g.addEvent({type:d.POPSTATE,callback:()=>{if(!n){if(p.location.hash!==""){const t=Q.indexOf("#")>0?Q.slice(0,Q.indexOf("#")):Q;if(p.location.href.slice(0,p.location.href.indexOf("#"))===t)return}e=!0,fe()}}}),g.addEvent({type:d.BEFOREUNLOAD,callback:()=>{const t=w()-Ke;Object.values(ve).length>0&&t>100&&T.emit({...ve,durationTime:t},!0)}})}let Ke=w(),ve={};function fe(e={}){const{referer:n=Q,action:t,params:r,title:o}=e;let a=t;a||(a=Bn[performance.navigation.type]||""),setTimeout(()=>{Q=N();const s={eventType:F.PV,eventId:ue.pageId,triggerPageUrl:N(),referer:n,params:r,title:o||document.title,action:a,triggerTime:w()};T.emit(s);const c=w()-Ke;Ke=w(),Object.values(ve).length>0&&c>100&&T.emit({...ve,durationTime:c}),ve={...s,eventType:F.PVDURATION}},o?0:17)}function Io(e={},n=!1){T.emit({referer:Q,title:document.title,...e,eventType:F.PV,eventId:ue.pageId,triggerPageUrl:N(),triggerTime:w()},n)}function To(){g.removeEvents([d.HISTORYPUSHSTATE,d.HISTORYREPLACESTATE,d.HASHCHANGE,d.POPSTATE,d.BEFOREUNLOAD])}class ko{ioMap={};targetMap=[];options={root:null,rootMargin:"0px",threshold:.5};initObserver(n){return new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=this.targetMap.find(a=>a.target===r.target);o&&(o.showTime=w())}else{const o=this.targetMap.find(a=>a.target===r.target);if(o){if(!o.showTime)return;o.showEndTime=w(),this.sendEvent(o)}}})},{...this.options,threshold:n})}sendEvent(n){T.emit({eventType:F.INTERSECTION,triggerPageUrl:N(),...n})}observe(n){xe(n).forEach(r=>{const o=xe(r.target);Object.prototype.hasOwnProperty.call(this.ioMap,r.threshold)||(this.ioMap[r.threshold]=this.initObserver(r.threshold||.5)),o.forEach(a=>{this.targetMap.findIndex(c=>c.target===a)===-1&&(this.ioMap[r.threshold].observe(a),this.targetMap.push({target:a,threshold:r.threshold,observeTime:w(),params:r.params}))})})}unobserve(n){xe(n).forEach(r=>{const o=this.targetMap.findIndex(s=>s.target===r);if(o===-1)return;const a=this.ioMap[this.targetMap[o].threshold];a&&(this.targetMap.splice(o,1),a.unobserve(r))})}disconnect(){for(const n in this.ioMap)Object.prototype.hasOwnProperty.call(this.ioMap,n)&&this.ioMap[n].disconnect();this.targetMap=[],this.ioMap={}}}let ge;function Co(){C.intersection=new ko,ge=C.intersection}function Oo(){ge?.disconnect()}function Bt(e){return Zr(e)}function Zt(e){O("beforePushEventList")&&exports._options.value.beforePushEventList.push(e)}function Yt(e){O("beforeSendData")&&exports._options.value.beforeSendData.push(e)}function Gt(e){O("afterSendData")&&exports._options.value.afterSendData.push(e)}function zt(e){O("setUserUuid")&&(exports._options.value.userUuid=e)}function Jt(){if(O("getUserUuid"))return exports._options.value.userUuid}function qt(){if(O("getSDKUserUuid"))return exports._options.value.sdkUserUuid}function $t(){if(O("getBaseInfo"))return{...C.baseInfo.base,userUuid:exports._options.value.userUuid}}function Qt(){if(O("getFirstScreen"))return{...C.firstScreen}}function Kt(e={},n=!1){if(O("traceError"))return it(e,n)}function en(e={},n=!1){if(O("tracePerformance"))return at(e,n)}function tn(e={},n=!1){if(O("traceCustomEvent"))return fo(e,n)}function nn(e={},n=!1){if(O("tracePageView"))return Io(e,n)}function rn(){return Xt().then(e=>e[0])}function on(e){O("intersectionObserver")&&ge.observe(e)}function an(e){O("intersectionUnobserve")&&ge.unobserve(e)}function sn(){O("intersectionDisconnect")&&ge.disconnect()}function cn(){if(!O("sendData")&&!exports._options.value.localization)return;const e=Qe.getItem(Ge);e&&(T.sendLocal(e),Qe.removeItem(Ge))}function un(e){!O("localizationOverFlow")&&!exports._options.value.localization||(exports._options.value.localizationOverFlow=e)}function ln(){return Ze(exports._options.value)}const Po=Object.freeze(Object.defineProperty({__proto__:null,afterSendData:Gt,beforePushEventList:Zt,beforeSendData:Yt,getBaseInfo:$t,getFirstScreen:Qt,getIPs:rn,getOptions:ln,getSDKUserUuid:qt,getUserUuid:Jt,intersectionDisconnect:sn,intersectionObserver:on,intersectionUnobserve:an,sendLocal:cn,setLocalizationOverFlow:un,setUserUuid:zt,traceCustomEvent:tn,traceError:Kt,tracePageView:nn,tracePerformance:en,unzipRecordscreen:Bt},Symbol.toStringTag,{value:"Module"}));function dn(e){p.__webTracingInit__||Un(e)&&(Yn(),Vr(),Mr(),Dr(),eo(),lo(),wo(),bo(),Ao(),Co(),exports._options.value.recordScreen&&jr(),p.__webTracingInit__=!0)}function xo(){ho(),to(),Ro(),yo(),Oo(),Yr(),To(),ur(),T&&T.destroy(),p.__webTracingInit__=!1}function No(e,n){dn(n)}exports.SEDNEVENTTYPES=F;exports.SENDID=k;exports.afterSendData=Gt;exports.beforePushEventList=Zt;exports.beforeSendData=Yt;exports.destroyTracing=xo;exports.exportMethods=Po;exports.getBaseInfo=$t;exports.getFirstScreen=Qt;exports.getIPs=rn;exports.getOptions=ln;exports.getSDKUserUuid=qt;exports.getUserUuid=Jt;exports.init=dn;exports.install=No;exports.intersectionDisconnect=sn;exports.intersectionObserver=on;exports.intersectionUnobserve=an;exports.logError=K;exports.parseError=Te;exports.sendLocal=cn;exports.setLocalizationOverFlow=un;exports.setUserUuid=zt;exports.traceCustomEvent=tn;exports.traceError=Kt;exports.tracePageView=nn;exports.tracePerformance=en;exports.unzipRecordscreen=Bt;
11
+ `),u=>u),u=>{const l=u.match(o);if(l)return{triggerPageUrl:l[2],line:l[3],col:l[4]};const f=u.match(a);return f?{triggerPageUrl:f[2],line:f[3],col:f[4]}:{}})[0]||{};return{...r,...i}}return r}function Te(e){if(e instanceof Error){const{message:n,stack:t,lineNumber:r,fileName:o,columnNumber:a}=e;return o?{errMessage:n,errStack:t,eventId:k.CODE,line:r,col:a,triggerPageUrl:o}:At(e)}return e.message?At(e):typeof e=="string"?{eventId:k.REJECT,errMessage:e}:Ce(e)?{eventId:k.CONSOLEERROR,errMessage:$r(e)}:{}}function Qr(e){return e&&e.reason!==void 0}function It(e){if(Qr(e))return{eventId:k.CODE,...Te(e.reason)};const{target:n}=e;if(n instanceof HTMLElement&&n.nodeType===1){const t={initiatorType:n.nodeName.toLowerCase(),eventId:`${k.RESOURCE}_${N.ERROR}`,requestUrl:""};return n.nodeName.toLowerCase()==="link"?t.requestUrl=n.href:t.requestUrl=n.currentSrc||n.src,t}if(e.error){const t=e.error;return t.fileName=t.filename||e.filename,t.columnNumber=t.colno||e.colno,t.lineNumber=t.lineno||e.lineno,{eventId:k.CODE,...Te(t)}}return{eventId:k.CODE,line:p.event.errorLine,col:p.event.errorCharacter,errMessage:p.event.errorMessage,triggerPageUrl:p.event.errorUrl}}function Ue(e){if(!exports._options.value.ignoreErrors.length)return!1;let n=e.errMessage||e.message;return n?(n=String(n),exports._options.value.ignoreErrors.some(t=>et(t)?t.test(n)?(ae(`ignoreErrors拦截成功 - 截条件:${t} 错误信息:${n}`),!0):!1:n===t?(ae(`ignoreErrors拦截成功 - 截条件:${t} 错误信息:${n}`),!0):!1)):!1}function Kr(){return JSON.parse(JSON.stringify(Wr())).slice(-2).map(n=>n.eventList).flat()}function we(e,n=!1){const t={...e,eventType:N.ERROR,recordscreen:exports._options.value.recordScreen?Br(Kr()):null,triggerPageUrl:F(),triggerTime:w()};exports._options.value.scopeError?ot.pushCacheErrorA(t):T.emit(t,n)}function eo(){exports._options.value.error.core&&(exports._options.value.scopeError&&(qr(),g.addEvent({type:d.BEFOREUNLOAD,callback:()=>{ot.sendAllCacheError()}})),g.addEvent({type:d.ERROR,callback:e=>{const n=It(e);Ue(n)||we(n)}}),g.addEvent({type:d.UNHANDLEDREJECTION,callback:e=>{const n=It(e);Ue(n)||we(n)}}),g.addEvent({type:d.CONSOLEERROR,callback:e=>{const n=Te(e);Ue(n)||we({eventId:k.CODE,...n})}}))}function it(e={},n=!1){we(e,n)}function to(){g.removeEvents([d.ERROR,d.UNHANDLEDREJECTION,d.CONSOLEERROR])}function Xe(e,n){return e.find(t=>t.hasAttribute&&t.hasAttribute(n))}function Tt(e){if(e.length>0){const n=["em","b","strong","span","img","i","code"];return e.filter(({tagName:r})=>n.indexOf(r.toLowerCase())>=0).length===e.length}return!0}function jt(e,n=""){if(!e)return n;const t=e.parentElement,{id:r}=e,o=e.tagName.toLowerCase(),a=n?`>${n}`:"";return!t||t===document.documentElement||t===document.body?`${o}${a}`:r?`#${r}${a}`:jt(t,`${o}${a}`)}class no{eventId="";eventType="";title="";triggerPageUrl="";x=-1;y=-1;params={};elementPath="";triggerTime=-1;constructor(n={}){Object.keys(n).forEach(t=>{de(t,n)&&(this[t]=n[t]||null)})}}function ro(){g.addEvent({type:d.CLICK,callback:e=>{const n=new no({eventType:N.CLICK}),t=e.composedPath()?e.composedPath():e.target?oo(e.target):[],r=t.find(i=>i.hasAttribute&&(i.hasAttribute("data-warden-container")||i.hasAttribute("data-warden-event-id")||i.hasAttribute("data-warden-title")));if(!r)return;const{scrollTop:o,scrollLeft:a}=document.documentElement,{top:s,left:c}=e.target.getBoundingClientRect();n.x=c+a,n.y=s+o,n.triggerTime=w(),n.triggerPageUrl=F(),n.title=io(r),n.eventId=co(t),n.params=uo(t),n.elementPath=jt(r).slice(-128),T.emit(n)}})}function oo(e,n={includeSelf:!0,order:"asc"}){if(!e)return[];const{includeSelf:t,order:r}=n;let o=t?e:e.parentElement,a=[];for(;o;)a=r==="asc"?a.concat(o):[o].concat(a),o=o.parentElement;return a}function io(e){const n=kt(e);if(n)return n;let t=e.parentElement;for(;t&&t!==document.body&&!t.hasAttribute("data-warden-container");)t=t.parentElement;const r=kt(t);if(r)return r;const{tagName:o}=e;return!e.hasChildNodes()||o.toLowerCase()==="svg"?ao(e):so(e)}function kt(e){return e?e.hasAttribute("data-warden-title")?e.getAttribute("data-warden-title"):e.title:""}function ao(e){const{tagName:n,textContent:t}=e;if(n==="IMG")return e.getAttribute("alt")||null;if(n==="svg"){const r=[...Array(e.children)].find(o=>o.tagName==="use");if(r)return r.getAttribute("xlink:href")||null}return t}function so(e){const{tagName:n,textContent:t}=e;if(n==="A")return Tt([...Array.from(e.children)])?t:e.getAttribute("href")||null;if(n==="BUTTON"){const o=e.getAttribute("name"),a=Tt([...Array.from(e.children)]);return o||a?t:e.getAttribute("href")||null}const{length:r}=[...Array.from(e.children)].filter(()=>e.hasChildNodes());return r>0?null:t}function co(e=[]){const n=Xe(e,"data-warden-event-id");if(n)return n.getAttribute("data-warden-event-id");const t=Xe(e,"title");if(t)return t.getAttribute("title");const r=Xe(e,"data-warden-container");if(r){if(r.getAttribute("data-warden-event-id"))return r.getAttribute("data-warden-event-id");if(r.getAttribute("title"))return r.getAttribute("title");const o=r.getAttribute("data-warden-container");if(typeof o=="string"&&o)return o}return e[0].tagName.toLowerCase()}function uo(e=[]){const n=/^data-warden-/;let t,r=-1;for(let i=0;i<e.length;i++){const u=e[i];if(t=(u&&u.attributes&&Array.from(u.attributes)||[]).find(f=>f.nodeName.match(n)?f.nodeName.match(n):f.nodeName.indexOf("data-warden-container")!==-1),t){r=i;break}}if(r<0)return{};const o=e[r],a=Array.from(o.attributes)||[],s={},c=["container","title","event-id"];return a.forEach(i=>{if(i.nodeName.indexOf("data-warden")<0)return;const u=i.nodeName.replace(n,"");c.includes(u)||(s[u]=i.nodeValue)}),s}function lo(){exports._options.value.event.core&&ro()}function fo(e={},n=!1){T.emit({...e,eventType:N.CUSTOM,triggerTime:w(),triggerPageUrl:F()},n)}function ho(){g.removeEvents([d.CLICK,d.LOAD])}const $={performance:!!p.performance,getEntriesByType:!!(p.performance&&p.performance.getEntriesByType),PerformanceObserver:"PerformanceObserver"in p,MutationObserver:"MutationObserver"in p,PerformanceNavigationTiming:"PerformanceNavigationTiming"in p},po={initiatorType:"",transferSize:0,encodedBodySize:0,decodedBodySize:0,duration:0,redirectStart:0,redirectEnd:0,startTime:0,fetchStart:0,domainLookupStart:0,domainLookupEnd:0,connectStart:0,connectEnd:0,requestStart:0,responseStart:0,responseEnd:0,workerStart:0};function Ct(e){const n=["img","script","link","audio","video","css"],t=e.getEntriesByType("resource"),r=[];return t.forEach(o=>{const{initiatorType:a=""}=o;if(n.indexOf(a.toLowerCase())<0)return;if(Le.length){const c=Le.findIndex(i=>i.src===o.name);if(c!==-1){Le.splice(c,1);return}}const s={};Object.keys(po).forEach(c=>{de(c,o)&&(s[c]=o[c])}),r.push(se({...s,eventType:N.PERFORMANCE,eventId:k.RESOURCE,requestUrl:o.name,triggerTime:w(),triggerPageUrl:F()}))}),r.length&&T.emit(r),r}let pe=null,me=null;function mo(){const e=["img","script","link"];pe=new MutationObserver(n=>{for(let t=0;t<n.length;t+=1){const r=w(),{addedNodes:o=[]}=n[t];o.forEach(a=>{const{nodeName:s}=a;e.indexOf(s.toLowerCase())!==-1&&(V(a,d.LOAD,function(){T.emit(se({eventType:N.PERFORMANCE,eventId:k.RESOURCE,requestUrl:a.src||a.href,duration:w()-r,triggerTime:w(),triggerPageUrl:F()}))}),V(a,d.ERROR,function(){T.emit(se({eventType:N.PERFORMANCE,eventId:k.RESOURCE,requestUrl:a.src||a.href,responseStatus:"error",duration:w()-r,triggerTime:w(),triggerPageUrl:F()}))}))})}}),pe.observe(p.document,{subtree:!0,childList:!0})}function vo(){const e=n=>{const t={...n,triggerPageUrl:F()};C.firstScreen?C.firstScreen.push({...t}):C.firstScreen=[{...t}],T.emit(se({...t,eventType:N.PERFORMANCE,eventId:k.PAGE}))};new PerformanceObserver((n,t)=>{const r=n.getEntriesByName("first-contentful-paint")[0];r&&(t.disconnect(),e({fcp:r.startTime}))}).observe({type:"paint",buffered:!0}),new PerformanceObserver((n,t)=>{const r=n.getEntriesByType("largest-contentful-paint").at(-1);r&&(t.disconnect(),e({lcp:r.startTime}))}).observe({type:"largest-contentful-paint",buffered:!0})}function go(){const e={},{performance:n}=p;let t=n.timing;if(e.fmp=0,$.getEntriesByType){const o=n.getEntriesByType("paint");if(o.length&&(e.fmp=o[o.length-1].startTime),$.PerformanceNavigationTiming){const a=n.getEntriesByType("navigation")[0];a&&(t=a)}}e.fmp&&$.PerformanceNavigationTiming&&(e.fmp-=t.fetchStart),e.whiteScreenTime=t.responseEnd-t.fetchStart,e.tti=t.domInteractive-t.fetchStart,e.ready=t.domContentLoadedEventEnd-t.fetchStart,e.loadTime=t.loadEventStart-t.fetchStart,e.firstByte=t.responseStart-t.domainLookupStart,e.dns=t.domainLookupEnd-t.domainLookupStart,e.dnsCache=t.domainLookupStart-t.fetchStart,e.tcp=t.connectEnd-t.connectStart,e.ttfb=t.responseStart-t.requestStart,e.trans=t.responseEnd-t.responseStart,e.dom=t.domInteractive-t.responseEnd,e.res=t.loadEventStart-t.domContentLoadedEventEnd,e.ssllink=t.connectEnd-t.secureConnectionStart,e.redirect=t.redirectEnd-t.redirectStart,e.unloadTime=t.unloadEventEnd-t.unloadEventStart;const r={...e,triggerPageUrl:F()};C.firstScreen?C.firstScreen.push({...r}):C.firstScreen=[{...r}],T.emit(se({...r,eventType:N.PERFORMANCE,eventId:k.PAGE}))}function Ot(){$.performance&&exports._options.value.performance.firstResource&&(go(),vo()),$.performance&&exports._options.value.performance.core&&(Ct(p.performance),$.PerformanceObserver?(me=new PerformanceObserver(Ct),me.observe({entryTypes:["resource"]})):$.MutationObserver&&mo())}function bo(){!exports._options.value.performance.firstResource&&!exports._options.value.performance.core||(document.readyState==="complete"?Ot():g.addEvent({type:d.LOAD,callback:()=>{Ot()}}))}function at(e={},n=!1){const t={...e,triggerTime:w(),triggerPageUrl:F(),eventType:N.PERFORMANCE};T.emit(se(t),n)}function yo(){pe&&(pe.disconnect(),pe=null),me&&(me.disconnect(),me=null)}function Eo(){g.addEvent({type:d.FETCH,callback:async(e,n={},t,r,o={})=>{const{method:a="GET",body:s={}}=n,{url:c,status:i,statusText:u}=t,l=String(a).toLocaleLowerCase();Wt(c)||(i===200||i===304?exports._options.value.performance.server&&at({eventId:k.SERVER,requestUrl:c,triggerTime:r,duration:w()-r,responseStatus:i,requestMethod:l,requestType:"fetch",...o,params:a.toUpperCase()==="POST"?s:Be(c)}):exports._options.value.error.server&&it({eventId:k.SERVER,triggerTime:r,duration:w()-r,errMessage:u,requestUrl:On(c),responseStatus:i,requestMethod:l,requestType:"fetch",...o,params:a.toUpperCase()==="POST"?s:Be(c)}))}})}class So{requestUrl="";requestMethod="";requestParams={};triggerTime=-1;constructor(n={}){Object.keys(n).forEach(t=>{de(t,n)&&(this[t]=n[t]||null)})}}function Lo(){const e=new So;g.addEvent({type:d.XHROPEN,callback:(n,t)=>{e.requestMethod=String(n).toLocaleLowerCase(),e.requestUrl=t,e.requestParams=Be(t)}}),g.addEvent({type:d.XHRSEND,callback:(n,t)=>{V(n,d.READYSTATECHANGE,function(){const{readyState:r,status:o,responseURL:a,statusText:s}=n,c=n.responseType===""||n.responseType==="text"?n.responseText:"";if(r===4){const i=a||e.requestUrl;if(Wt(i))return;o===200||o===304?exports._options.value.performance.server&&at({eventId:k.SERVER,requestUrl:i,requestMethod:e.requestMethod,requestType:"xhr",responseStatus:o,duration:w()-e.triggerTime,params:e.requestMethod==="post"?t:e.requestParams}):exports._options.value.error.server&&it({eventId:k.SERVER,errMessage:s||c,requestUrl:i,requestMethod:e.requestMethod,requestType:"xhr",responseStatus:o,params:e.requestMethod==="post"?t:e.requestParams})}}),e.triggerTime=w()}})}function Wt(e){return!exports._options.value.ignoreRequest.length||!e?!1:exports._options.value.ignoreRequest.some(n=>et(n)?!!n.test(e):e===n)}function wo(){!exports._options.value.performance.server&&!exports._options.value.error.server||(Lo(),Eo())}function Ro(){g.removeEvents([d.FETCH,d.XHROPEN,d.XHRSEND])}let Q=F();function Ao(){if(!exports._options.value.pv.core)return;let e=!1,n=!1;fe({referer:document.referrer}),g.addEvent({type:d.HISTORYPUSHSTATE,callback:()=>{n||(e=!1,fe({action:"navigation"}))}}),g.addEvent({type:d.HISTORYREPLACESTATE,callback:()=>{n=!0,e=!1,fe({action:"navigation"}),setTimeout(()=>{n=!1},100)}}),g.addEvent({type:d.HASHCHANGE,callback:()=>{n||(e||fe(),e=!1)}}),g.addEvent({type:d.POPSTATE,callback:()=>{if(!n){if(p.location.hash!==""){const t=Q.indexOf("#")>0?Q.slice(0,Q.indexOf("#")):Q;if(p.location.href.slice(0,p.location.href.indexOf("#"))===t)return}e=!0,fe()}}}),g.addEvent({type:d.BEFOREUNLOAD,callback:()=>{const t=w()-Ke;Object.values(ve).length>0&&t>100&&T.emit({...ve,durationTime:t},!0)}})}let Ke=w(),ve={};function fe(e={}){const{referer:n=Q,action:t,params:r,title:o}=e;let a=t;a||(a=Bn[performance.navigation.type]||""),setTimeout(()=>{Q=F();const s={eventType:N.PV,eventId:ue.pageId,triggerPageUrl:F(),referer:n,params:r,title:o||document.title,action:a,triggerTime:w()};T.emit(s);const c=w()-Ke;Ke=w(),Object.values(ve).length>0&&c>100&&T.emit({...ve,durationTime:c}),ve={...s,eventType:N.PVDURATION}},o?0:17)}function Io(e={},n=!1){T.emit({referer:Q,title:document.title,...e,eventType:N.PV,eventId:ue.pageId,triggerPageUrl:F(),triggerTime:w()},n)}function To(){g.removeEvents([d.HISTORYPUSHSTATE,d.HISTORYREPLACESTATE,d.HASHCHANGE,d.POPSTATE,d.BEFOREUNLOAD])}class ko{ioMap={};targetMap=[];options={root:null,rootMargin:"0px",threshold:.5};initObserver(n){return new IntersectionObserver(t=>{t.forEach(r=>{if(r.isIntersecting){const o=this.targetMap.find(a=>a.target===r.target);o&&(o.showTime=w())}else{const o=this.targetMap.find(a=>a.target===r.target);if(o){if(!o.showTime)return;o.showEndTime=w(),this.sendEvent(o)}}})},{...this.options,threshold:n})}sendEvent(n){T.emit({eventType:N.INTERSECTION,triggerPageUrl:F(),...n})}observe(n){xe(n).forEach(r=>{const o=xe(r.target);Object.prototype.hasOwnProperty.call(this.ioMap,r.threshold)||(this.ioMap[r.threshold]=this.initObserver(r.threshold||.5)),o.forEach(a=>{this.targetMap.findIndex(c=>c.target===a)===-1&&(this.ioMap[r.threshold].observe(a),this.targetMap.push({target:a,threshold:r.threshold,observeTime:w(),params:r.params}))})})}unobserve(n){xe(n).forEach(r=>{const o=this.targetMap.findIndex(s=>s.target===r);if(o===-1)return;const a=this.ioMap[this.targetMap[o].threshold];a&&(this.targetMap.splice(o,1),a.unobserve(r))})}disconnect(){for(const n in this.ioMap)Object.prototype.hasOwnProperty.call(this.ioMap,n)&&this.ioMap[n].disconnect();this.targetMap=[],this.ioMap={}}}let ge;function Co(){C.intersection=new ko,ge=C.intersection}function Oo(){ge?.disconnect()}function Bt(e){return Zr(e)}function Zt(e){O("beforePushEventList")&&exports._options.value.beforePushEventList.push(e)}function Yt(e){O("beforeSendData")&&exports._options.value.beforeSendData.push(e)}function Gt(e){O("afterSendData")&&exports._options.value.afterSendData.push(e)}function zt(e){O("setUserUuid")&&(exports._options.value.userUuid=e)}function Jt(){if(O("getUserUuid"))return exports._options.value.userUuid}function qt(){if(O("getSDKUserUuid"))return exports._options.value.sdkUserUuid}function $t(){if(O("getBaseInfo"))return{...C.baseInfo.base,userUuid:exports._options.value.userUuid}}function Qt(){if(O("getFirstScreen"))return{...C.firstScreen}}function Kt(e={},n=!1){if(O("traceError"))return it(e,n)}function en(e={},n=!1){if(O("tracePerformance"))return at(e,n)}function tn(e={},n=!1){if(O("traceCustomEvent"))return fo(e,n)}function nn(e={},n=!1){if(O("tracePageView"))return Io(e,n)}function rn(){return Xt().then(e=>e[0])}function on(e){O("intersectionObserver")&&ge.observe(e)}function an(e){O("intersectionUnobserve")&&ge.unobserve(e)}function sn(){O("intersectionDisconnect")&&ge.disconnect()}function cn(){if(!O("sendData")&&!exports._options.value.localization)return;const e=Qe.getItem(Ge);e&&(T.sendLocal(e),Qe.removeItem(Ge))}function un(e){!O("localizationOverFlow")&&!exports._options.value.localization||(exports._options.value.localizationOverFlow=e)}function ln(){return Ze(exports._options.value)}const Po=Object.freeze(Object.defineProperty({__proto__:null,afterSendData:Gt,beforePushEventList:Zt,beforeSendData:Yt,getBaseInfo:$t,getFirstScreen:Qt,getIPs:rn,getOptions:ln,getSDKUserUuid:qt,getUserUuid:Jt,intersectionDisconnect:sn,intersectionObserver:on,intersectionUnobserve:an,sendLocal:cn,setLocalizationOverFlow:un,setUserUuid:zt,traceCustomEvent:tn,traceError:Kt,tracePageView:nn,tracePerformance:en,unzipRecordscreen:Bt},Symbol.toStringTag,{value:"Module"}));function dn(e){p.__webTracingInit__||Un(e)&&(Yn(),Vr(),Mr(),Dr(),eo(),lo(),wo(),bo(),Ao(),Co(),exports._options.value.recordScreen&&jr(),p.__webTracingInit__=!0)}function xo(){ho(),to(),Ro(),yo(),Oo(),Yr(),To(),ur(),T&&T.destroy(),p.__webTracingInit__=!1}function No(e,n){dn(n)}exports.SEDNEVENTTYPES=N;exports.SENDID=k;exports.afterSendData=Gt;exports.beforePushEventList=Zt;exports.beforeSendData=Yt;exports.destroyTracing=xo;exports.exportMethods=Po;exports.getBaseInfo=$t;exports.getFirstScreen=Qt;exports.getIPs=rn;exports.getOptions=ln;exports.getSDKUserUuid=qt;exports.getUserUuid=Jt;exports.init=dn;exports.install=No;exports.intersectionDisconnect=sn;exports.intersectionObserver=on;exports.intersectionUnobserve=an;exports.logError=K;exports.parseError=Te;exports.sendLocal=cn;exports.setLocalizationOverFlow=un;exports.setUserUuid=zt;exports.traceCustomEvent=tn;exports.traceError=Kt;exports.tracePageView=nn;exports.tracePerformance=en;exports.unzipRecordscreen=Bt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aibox-web-tracing",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "keywords": [
5
5
  "tracing",
6
6
  "utils",