@d-i-t-a/reader 2.0.6-beta.5 → 2.0.6-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -30394,7 +30394,9 @@ var require_devtools_detector = __commonJS({
30394
30394
  }([function(t, n, e) {
30395
30395
  "use strict";
30396
30396
  (function(t2) {
30397
- n.b = function(t3) {
30397
+ n.c = function() {
30398
+ return typeof performance != "undefined" ? performance.now() : Date.now();
30399
+ }, n.b = function(t3) {
30398
30400
  t3 === void 0 && (t3 = {});
30399
30401
  for (var n2 = t3.includes, e2 = n2 === void 0 ? [] : n2, r2 = t3.excludes, i2 = r2 === void 0 ? [] : r2, o = false, u = false, c = 0, a = e2; c < a.length; c++) {
30400
30402
  var f = a[c];
@@ -30411,7 +30413,7 @@ var require_devtools_detector = __commonJS({
30411
30413
  }
30412
30414
  }
30413
30415
  return o && !u;
30414
- }, n.c = function(t3, n2, e2) {
30416
+ }, n.d = function(t3, n2, e2) {
30415
30417
  var o = i.a[t3];
30416
30418
  if (o === void 0)
30417
30419
  return false;
@@ -30438,11 +30440,11 @@ var require_devtools_detector = __commonJS({
30438
30440
  }), e.d(n, "f", function() {
30439
30441
  return d;
30440
30442
  }), e.d(n, "a", function() {
30441
- return p;
30442
- }), e.d(n, "e", function() {
30443
30443
  return h;
30444
+ }), e.d(n, "e", function() {
30445
+ return p;
30444
30446
  });
30445
- var r, i, o, u = e(3), c = e(0), a = Object(c.a)(), f = "InstallTrigger" in ((a === null || a === void 0 ? void 0 : a.window) || {}) || /firefox/i.test(u.b), s = /trident/i.test(u.b) || /msie/i.test(u.b), l = /edge/i.test(u.b), d = /webkit/i.test(u.b) && !l, p = ((r = a === null || a === void 0 ? void 0 : a.window) === null || r === void 0 ? void 0 : r.chrome) !== void 0 || /chrome/i.test(u.b) || /CriOS/i.test(u.b), h = (((o = (i = a === null || a === void 0 ? void 0 : a.window) === null || i === void 0 ? void 0 : i.safari) === null || o === void 0 ? void 0 : o.pushNotification) || false).toString() === "[object SafariRemoteNotification]" || /safari/i.test(u.b) && !p;
30447
+ var r, i, o, u = e(3), c = e(0), a = Object(c.a)(), f = "InstallTrigger" in ((a === null || a === void 0 ? void 0 : a.window) || {}) || /firefox/i.test(u.b), s = /trident/i.test(u.b) || /msie/i.test(u.b), l = /edge/i.test(u.b), d = /webkit/i.test(u.b) && !l, h = ((r = a === null || a === void 0 ? void 0 : a.window) === null || r === void 0 ? void 0 : r.chrome) !== void 0 || /chrome/i.test(u.b) || /CriOS/i.test(u.b), p = (((o = (i = a === null || a === void 0 ? void 0 : a.window) === null || i === void 0 ? void 0 : i.safari) === null || o === void 0 ? void 0 : o.pushNotification) || false).toString() === "[object SafariRemoteNotification]" || /safari/i.test(u.b) && !h;
30446
30448
  }, function(t, n, e) {
30447
30449
  "use strict";
30448
30450
  e.d(n, "b", function() {
@@ -30508,7 +30510,7 @@ var require_devtools_detector = __commonJS({
30508
30510
  e.d(n, "match", function() {
30509
30511
  return o.b;
30510
30512
  }), e.d(n, "specificVersionMatch", function() {
30511
- return o.c;
30513
+ return o.d;
30512
30514
  });
30513
30515
  var u = e(1);
30514
30516
  e.d(n, "isFirefox", function() {
@@ -30532,7 +30534,7 @@ var require_devtools_detector = __commonJS({
30532
30534
  }), e.d(n, "clear", function() {
30533
30535
  return c.a;
30534
30536
  });
30535
- var a = e(17);
30537
+ var a = e(18);
30536
30538
  e.d(n, "isMobile", function() {
30537
30539
  return a.a;
30538
30540
  });
@@ -30541,10 +30543,10 @@ var require_devtools_detector = __commonJS({
30541
30543
  return f.a;
30542
30544
  });
30543
30545
  var s = e(6);
30544
- e.d(n, "isIpad", function() {
30545
- return s.b;
30546
- }), e.d(n, "isMac", function() {
30546
+ e.d(n, "isMac", function() {
30547
30547
  return s.d;
30548
+ }), e.d(n, "isIpad", function() {
30549
+ return s.b;
30548
30550
  }), e.d(n, "isIphone", function() {
30549
30551
  return s.c;
30550
30552
  }), e.d(n, "isAndroid", function() {
@@ -30552,7 +30554,7 @@ var require_devtools_detector = __commonJS({
30552
30554
  }), e.d(n, "isWindows", function() {
30553
30555
  return s.e;
30554
30556
  });
30555
- var l = new r.a({ checkers: [i.elementIdChecker, i.regToStringChecker, i.functionToStringChecker, i.depRegToStringChecker, i.dateToStringChecker, i.debuggerChecker] });
30557
+ var l = new r.a({ checkers: [i.erudaChecker, i.elementIdChecker, i.regToStringChecker, i.functionToStringChecker, i.depRegToStringChecker, i.dateToStringChecker, i.performanceChecker, i.debuggerChecker] });
30556
30558
  n.default = l;
30557
30559
  }, function(t, n, e) {
30558
30560
  "use strict";
@@ -30565,9 +30567,9 @@ var require_devtools_detector = __commonJS({
30565
30567
  }
30566
30568
  }, function(t, n, e) {
30567
30569
  "use strict";
30568
- e.d(n, "b", function() {
30570
+ e.d(n, "d", function() {
30569
30571
  return i;
30570
- }), e.d(n, "d", function() {
30572
+ }), e.d(n, "b", function() {
30571
30573
  return o;
30572
30574
  }), e.d(n, "c", function() {
30573
30575
  return u;
@@ -30576,7 +30578,7 @@ var require_devtools_detector = __commonJS({
30576
30578
  }), e.d(n, "e", function() {
30577
30579
  return a;
30578
30580
  });
30579
- var r = e(3), i = /ipad/i.test(r.b), o = /macintosh/i.test(r.b), u = /iphone/i.test(r.b), c = /android/i.test(r.b), a = /windows/i.test(r.b);
30581
+ var r = e(3), i = /macintosh/i.test(r.b), o = /ipad/i.test(r.b) || i && navigator.maxTouchPoints > 1, u = /iphone/i.test(r.b), c = /android/i.test(r.b), a = /windows/i.test(r.b);
30580
30582
  }, function(t, n, e) {
30581
30583
  "use strict";
30582
30584
  e.d(n, "a", function() {
@@ -30699,7 +30701,7 @@ var require_devtools_detector = __commonJS({
30699
30701
  }
30700
30702
  }, t2.prototype._detectLoop = function() {
30701
30703
  return r(this, void 0, void 0, function() {
30702
- var t3, n2, e2, r2, o2, u = this;
30704
+ var t3, n2, e2, r2, o2, u, c = this;
30703
30705
  return i(this, function(i2) {
30704
30706
  switch (i2.label) {
30705
30707
  case 0:
@@ -30707,7 +30709,7 @@ var require_devtools_detector = __commonJS({
30707
30709
  case 1:
30708
30710
  return e2 < r2.length ? [4, (o2 = r2[e2]).isEnable()] : [3, 6];
30709
30711
  case 2:
30710
- return i2.sent() ? (n2 = o2.name, [4, o2.isOpen()]) : [3, 4];
30712
+ return u = i2.sent(), console.log("isEnable", u), u ? (n2 = o2.name, [4, o2.isOpen()]) : [3, 4];
30711
30713
  case 3:
30712
30714
  t3 = i2.sent(), i2.label = 4;
30713
30715
  case 4:
@@ -30718,7 +30720,7 @@ var require_devtools_detector = __commonJS({
30718
30720
  return e2++, [3, 1];
30719
30721
  case 6:
30720
30722
  return t3 != this._isOpen && (this._isOpen = t3, this._broadcast({ isOpen: t3, checkerName: n2 })), this._detectLoopDelay > 0 ? this._timer = setTimeout(function() {
30721
- return u._detectLoop();
30723
+ return c._detectLoop();
30722
30724
  }, this._detectLoopDelay) : this.stop(), [2];
30723
30725
  }
30724
30726
  });
@@ -30752,6 +30754,14 @@ var require_devtools_detector = __commonJS({
30752
30754
  e.d(n, "dateToStringChecker", function() {
30753
30755
  return a.a;
30754
30756
  });
30757
+ var f = e(17);
30758
+ e.d(n, "performanceChecker", function() {
30759
+ return f.a;
30760
+ });
30761
+ var s = e(19);
30762
+ e.d(n, "erudaChecker", function() {
30763
+ return s.a;
30764
+ });
30755
30765
  }, function(t, n, e) {
30756
30766
  "use strict";
30757
30767
  e.d(n, "a", function() {
@@ -30905,15 +30915,15 @@ var require_devtools_detector = __commonJS({
30905
30915
  }
30906
30916
  var s = o3[o3.length - 1], l = u2[u2.length - 1];
30907
30917
  if (s && l) {
30908
- var d = s.split(".").map(e2), p = l.split(".").map(e2);
30909
- for (c = 0; c < Math.max(d.length, p.length); c++) {
30910
- if (d[c] === void 0 || typeof p[c] == "string" && typeof d[c] == "number")
30918
+ var d = s.split(".").map(e2), h = l.split(".").map(e2);
30919
+ for (c = 0; c < Math.max(d.length, h.length); c++) {
30920
+ if (d[c] === void 0 || typeof h[c] == "string" && typeof d[c] == "number")
30911
30921
  return -1;
30912
- if (p[c] === void 0 || typeof d[c] == "string" && typeof p[c] == "number")
30922
+ if (h[c] === void 0 || typeof d[c] == "string" && typeof h[c] == "number")
30913
30923
  return 1;
30914
- if (d[c] > p[c])
30924
+ if (d[c] > h[c])
30915
30925
  return 1;
30916
- if (p[c] > d[c])
30926
+ if (h[c] > d[c])
30917
30927
  return -1;
30918
30928
  }
30919
30929
  } else if (s || l)
@@ -31272,7 +31282,7 @@ var require_devtools_detector = __commonJS({
31272
31282
  e.d(n, "a", function() {
31273
31283
  return u;
31274
31284
  });
31275
- var r = this && this.__awaiter || function(t2, n2, e2, r2) {
31285
+ var r = e(0), i = this && this.__awaiter || function(t2, n2, e2, r2) {
31276
31286
  return new (e2 || (e2 = Promise))(function(i2, o2) {
31277
31287
  function u2(t3) {
31278
31288
  try {
@@ -31297,7 +31307,7 @@ var require_devtools_detector = __commonJS({
31297
31307
  }
31298
31308
  a((r2 = r2.apply(t2, n2 || [])).next());
31299
31309
  });
31300
- }, i = this && this.__generator || function(t2, n2) {
31310
+ }, o = this && this.__generator || function(t2, n2) {
31301
31311
  var e2, r2, i2, o2, u2 = { label: 0, sent: function() {
31302
31312
  if (1 & i2[0])
31303
31313
  throw i2[1];
@@ -31360,21 +31370,17 @@ var require_devtools_detector = __commonJS({
31360
31370
  }([o3, c2]);
31361
31371
  };
31362
31372
  }
31363
- };
31364
- function o() {
31365
- return performance ? performance.now() : Date.now();
31366
- }
31367
- var u = { name: "debugger-checker", isOpen: function() {
31368
- return r(this, void 0, void 0, function() {
31373
+ }, u = { name: "debugger-checker", isOpen: function() {
31374
+ return i(this, void 0, void 0, function() {
31369
31375
  var t2;
31370
- return i(this, function(n2) {
31371
- return t2 = o(), function() {
31372
- }.constructor("debugger")(), [2, o() - t2 > 100];
31376
+ return o(this, function(n2) {
31377
+ return t2 = Object(r.c)(), function() {
31378
+ }.constructor("debugger")(), [2, Object(r.c)() - t2 > 100];
31373
31379
  });
31374
31380
  });
31375
31381
  }, isEnable: function() {
31376
- return r(this, void 0, void 0, function() {
31377
- return i(this, function(t2) {
31382
+ return i(this, void 0, void 0, function() {
31383
+ return o(this, function(t2) {
31378
31384
  return [2, true];
31379
31385
  });
31380
31386
  });
@@ -31489,12 +31495,241 @@ var require_devtools_detector = __commonJS({
31489
31495
  });
31490
31496
  });
31491
31497
  } };
31498
+ }, function(t, n, e) {
31499
+ "use strict";
31500
+ e.d(n, "a", function() {
31501
+ return d;
31502
+ });
31503
+ for (var r = e(1), i = e(2), o = e(0), u = this && this.__awaiter || function(t2, n2, e2, r2) {
31504
+ return new (e2 || (e2 = Promise))(function(i2, o2) {
31505
+ function u2(t3) {
31506
+ try {
31507
+ a2(r2.next(t3));
31508
+ } catch (t4) {
31509
+ o2(t4);
31510
+ }
31511
+ }
31512
+ function c2(t3) {
31513
+ try {
31514
+ a2(r2.throw(t3));
31515
+ } catch (t4) {
31516
+ o2(t4);
31517
+ }
31518
+ }
31519
+ function a2(t3) {
31520
+ t3.done ? i2(t3.value) : function(t4) {
31521
+ return t4 instanceof e2 ? t4 : new e2(function(n3) {
31522
+ n3(t4);
31523
+ });
31524
+ }(t3.value).then(u2, c2);
31525
+ }
31526
+ a2((r2 = r2.apply(t2, n2 || [])).next());
31527
+ });
31528
+ }, c = this && this.__generator || function(t2, n2) {
31529
+ var e2, r2, i2, o2, u2 = { label: 0, sent: function() {
31530
+ if (1 & i2[0])
31531
+ throw i2[1];
31532
+ return i2[1];
31533
+ }, trys: [], ops: [] };
31534
+ return o2 = { next: c2(0), throw: c2(1), return: c2(2) }, typeof Symbol == "function" && (o2[Symbol.iterator] = function() {
31535
+ return this;
31536
+ }), o2;
31537
+ function c2(o3) {
31538
+ return function(c3) {
31539
+ return function(o4) {
31540
+ if (e2)
31541
+ throw new TypeError("Generator is already executing.");
31542
+ for (; u2; )
31543
+ try {
31544
+ if (e2 = 1, r2 && (i2 = 2 & o4[0] ? r2.return : o4[0] ? r2.throw || ((i2 = r2.return) && i2.call(r2), 0) : r2.next) && !(i2 = i2.call(r2, o4[1])).done)
31545
+ return i2;
31546
+ switch (r2 = 0, i2 && (o4 = [2 & o4[0], i2.value]), o4[0]) {
31547
+ case 0:
31548
+ case 1:
31549
+ i2 = o4;
31550
+ break;
31551
+ case 4:
31552
+ return u2.label++, { value: o4[1], done: false };
31553
+ case 5:
31554
+ u2.label++, r2 = o4[1], o4 = [0];
31555
+ continue;
31556
+ case 7:
31557
+ o4 = u2.ops.pop(), u2.trys.pop();
31558
+ continue;
31559
+ default:
31560
+ if (!(i2 = (i2 = u2.trys).length > 0 && i2[i2.length - 1]) && (o4[0] === 6 || o4[0] === 2)) {
31561
+ u2 = 0;
31562
+ continue;
31563
+ }
31564
+ if (o4[0] === 3 && (!i2 || o4[1] > i2[0] && o4[1] < i2[3])) {
31565
+ u2.label = o4[1];
31566
+ break;
31567
+ }
31568
+ if (o4[0] === 6 && u2.label < i2[1]) {
31569
+ u2.label = i2[1], i2 = o4;
31570
+ break;
31571
+ }
31572
+ if (i2 && u2.label < i2[2]) {
31573
+ u2.label = i2[2], u2.ops.push(o4);
31574
+ break;
31575
+ }
31576
+ i2[2] && u2.ops.pop(), u2.trys.pop();
31577
+ continue;
31578
+ }
31579
+ o4 = n2.call(t2, u2);
31580
+ } catch (t3) {
31581
+ o4 = [6, t3], r2 = 0;
31582
+ } finally {
31583
+ e2 = i2 = 0;
31584
+ }
31585
+ if (5 & o4[0])
31586
+ throw o4[1];
31587
+ return { value: o4[0] ? o4[1] : void 0, done: true };
31588
+ }([o3, c3]);
31589
+ };
31590
+ }
31591
+ }, a = function() {
31592
+ for (var t2 = {}, n2 = 0; n2 < 500; n2++)
31593
+ t2["".concat(n2)] = "".concat(n2);
31594
+ return t2;
31595
+ }(), f = [], s = 0; s < 50; s++)
31596
+ f.push(a);
31597
+ var l = Math.max(h(), 1e-3);
31598
+ Object(i.a)();
31599
+ var d = { name: "performance", isOpen: function() {
31600
+ return u(this, void 0, void 0, function() {
31601
+ var t2;
31602
+ return c(this, function(n2) {
31603
+ return t2 = function() {
31604
+ var t3 = Object(o.c)();
31605
+ return Object(i.c)(f), Object(o.c)() - t3;
31606
+ }(), l = Math.max(l, h()), Object(i.a)(), t2 === 0 ? [2, false] : [2, t2 > 10 * l];
31607
+ });
31608
+ });
31609
+ }, isEnable: function() {
31610
+ return u(this, void 0, void 0, function() {
31611
+ return c(this, function(t2) {
31612
+ return [2, Object(o.b)({ includes: [r.a], excludes: [] })];
31613
+ });
31614
+ });
31615
+ } };
31616
+ function h() {
31617
+ var t2 = Object(o.c)();
31618
+ return Object(i.b)(f), Object(o.c)() - t2;
31619
+ }
31492
31620
  }, function(t, n, e) {
31493
31621
  "use strict";
31494
31622
  e.d(n, "a", function() {
31495
31623
  return i;
31496
31624
  });
31497
31625
  var r = e(3), i = /mobile/i.test(r.b);
31626
+ }, function(t, n, e) {
31627
+ "use strict";
31628
+ e.d(n, "a", function() {
31629
+ return o;
31630
+ });
31631
+ var r = this && this.__awaiter || function(t2, n2, e2, r2) {
31632
+ return new (e2 || (e2 = Promise))(function(i2, o2) {
31633
+ function u(t3) {
31634
+ try {
31635
+ a(r2.next(t3));
31636
+ } catch (t4) {
31637
+ o2(t4);
31638
+ }
31639
+ }
31640
+ function c(t3) {
31641
+ try {
31642
+ a(r2.throw(t3));
31643
+ } catch (t4) {
31644
+ o2(t4);
31645
+ }
31646
+ }
31647
+ function a(t3) {
31648
+ t3.done ? i2(t3.value) : function(t4) {
31649
+ return t4 instanceof e2 ? t4 : new e2(function(n3) {
31650
+ n3(t4);
31651
+ });
31652
+ }(t3.value).then(u, c);
31653
+ }
31654
+ a((r2 = r2.apply(t2, n2 || [])).next());
31655
+ });
31656
+ }, i = this && this.__generator || function(t2, n2) {
31657
+ var e2, r2, i2, o2, u = { label: 0, sent: function() {
31658
+ if (1 & i2[0])
31659
+ throw i2[1];
31660
+ return i2[1];
31661
+ }, trys: [], ops: [] };
31662
+ return o2 = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o2[Symbol.iterator] = function() {
31663
+ return this;
31664
+ }), o2;
31665
+ function c(o3) {
31666
+ return function(c2) {
31667
+ return function(o4) {
31668
+ if (e2)
31669
+ throw new TypeError("Generator is already executing.");
31670
+ for (; u; )
31671
+ try {
31672
+ if (e2 = 1, r2 && (i2 = 2 & o4[0] ? r2.return : o4[0] ? r2.throw || ((i2 = r2.return) && i2.call(r2), 0) : r2.next) && !(i2 = i2.call(r2, o4[1])).done)
31673
+ return i2;
31674
+ switch (r2 = 0, i2 && (o4 = [2 & o4[0], i2.value]), o4[0]) {
31675
+ case 0:
31676
+ case 1:
31677
+ i2 = o4;
31678
+ break;
31679
+ case 4:
31680
+ return u.label++, { value: o4[1], done: false };
31681
+ case 5:
31682
+ u.label++, r2 = o4[1], o4 = [0];
31683
+ continue;
31684
+ case 7:
31685
+ o4 = u.ops.pop(), u.trys.pop();
31686
+ continue;
31687
+ default:
31688
+ if (!(i2 = (i2 = u.trys).length > 0 && i2[i2.length - 1]) && (o4[0] === 6 || o4[0] === 2)) {
31689
+ u = 0;
31690
+ continue;
31691
+ }
31692
+ if (o4[0] === 3 && (!i2 || o4[1] > i2[0] && o4[1] < i2[3])) {
31693
+ u.label = o4[1];
31694
+ break;
31695
+ }
31696
+ if (o4[0] === 6 && u.label < i2[1]) {
31697
+ u.label = i2[1], i2 = o4;
31698
+ break;
31699
+ }
31700
+ if (i2 && u.label < i2[2]) {
31701
+ u.label = i2[2], u.ops.push(o4);
31702
+ break;
31703
+ }
31704
+ i2[2] && u.ops.pop(), u.trys.pop();
31705
+ continue;
31706
+ }
31707
+ o4 = n2.call(t2, u);
31708
+ } catch (t3) {
31709
+ o4 = [6, t3], r2 = 0;
31710
+ } finally {
31711
+ e2 = i2 = 0;
31712
+ }
31713
+ if (5 & o4[0])
31714
+ throw o4[1];
31715
+ return { value: o4[0] ? o4[1] : void 0, done: true };
31716
+ }([o3, c2]);
31717
+ };
31718
+ }
31719
+ }, o = { name: "eruda", isOpen: function() {
31720
+ var t2;
31721
+ return r(this, void 0, void 0, function() {
31722
+ return i(this, function(n2) {
31723
+ return typeof eruda != "undefined" ? [2, ((t2 = eruda === null || eruda === void 0 ? void 0 : eruda._devTools) === null || t2 === void 0 ? void 0 : t2._isShow) === true] : [2, false];
31724
+ });
31725
+ });
31726
+ }, isEnable: function() {
31727
+ return r(this, void 0, void 0, function() {
31728
+ return i(this, function(t2) {
31729
+ return [2, true];
31730
+ });
31731
+ });
31732
+ } };
31498
31733
  }]);
31499
31734
  });
31500
31735
  }
@@ -33720,7 +33955,7 @@ var require_eventemitter3 = __commonJS({
33720
33955
  this.context = context;
33721
33956
  this.once = once || false;
33722
33957
  }
33723
- function addListener(emitter, event, fn, context, once) {
33958
+ function addListener2(emitter, event, fn, context, once) {
33724
33959
  if (typeof fn !== "function") {
33725
33960
  throw new TypeError("The listener must be a function");
33726
33961
  }
@@ -33831,10 +34066,10 @@ var require_eventemitter3 = __commonJS({
33831
34066
  return true;
33832
34067
  };
33833
34068
  EventEmitter2.prototype.on = function on(event, fn, context) {
33834
- return addListener(this, event, fn, context, false);
34069
+ return addListener2(this, event, fn, context, false);
33835
34070
  };
33836
34071
  EventEmitter2.prototype.once = function once(event, fn, context) {
33837
- return addListener(this, event, fn, context, true);
34072
+ return addListener2(this, event, fn, context, true);
33838
34073
  };
33839
34074
  EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
33840
34075
  var evt = prefix ? prefix + event : event;
@@ -41426,29 +41661,22 @@ var ContentProtectionModule = class {
41426
41661
  return security;
41427
41662
  }
41428
41663
  static async startInspectorProtection(config2) {
41429
- const onInspectorOpened = () => {
41430
- if (config2.clearOnInspect) {
41431
- console.clear();
41432
- window.localStorage.clear();
41433
- window.sessionStorage.clear();
41434
- window.location.replace(window.location.origin);
41435
- }
41436
- if (typeof config2.api?.inspectDetected === "function") {
41437
- config2.api.inspectDetected();
41438
- }
41439
- };
41440
- const detector = new import_devtools_detector.DevtoolsDetector({
41441
- checkers: [
41442
- import_devtools_detector.checkers.elementIdChecker,
41443
- import_devtools_detector.checkers.regToStringChecker,
41444
- import_devtools_detector.checkers.functionToStringChecker,
41445
- import_devtools_detector.checkers.depRegToStringChecker,
41446
- import_devtools_detector.checkers.dateToStringChecker
41447
- ]
41448
- });
41449
- detector.addListener(onInspectorOpened);
41450
- detector.launch();
41451
- await delay(config2.detectInspectInitDelay ?? 50);
41664
+ const onInspectorOpened = (isOpen) => {
41665
+ if (isOpen) {
41666
+ if (config2.clearOnInspect) {
41667
+ console.clear();
41668
+ window.localStorage.clear();
41669
+ window.sessionStorage.clear();
41670
+ window.location.replace(window.location.origin);
41671
+ }
41672
+ if (typeof config2.api?.inspectDetected === "function") {
41673
+ config2.api.inspectDetected();
41674
+ }
41675
+ }
41676
+ };
41677
+ (0, import_devtools_detector.addListener)(onInspectorOpened);
41678
+ (0, import_devtools_detector.launch)();
41679
+ await delay(config2.detectInspectInitDelay ?? 100);
41452
41680
  }
41453
41681
  static isCurrentBrowserSupported(config2) {
41454
41682
  if (!config2.enforceSupportedBrowsers) {