@jolibox/ads 1.1.31 → 1.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +262 -258
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var vt = Object.getOwnPropertySymbols;
|
|
2
|
-
var
|
|
2
|
+
var bi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable;
|
|
3
3
|
var pt = (t, e) => {
|
|
4
4
|
var i = {};
|
|
5
5
|
for (var n in t)
|
|
6
|
-
|
|
6
|
+
bi.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
7
7
|
if (t != null && vt)
|
|
8
8
|
for (var n of vt(t))
|
|
9
9
|
e.indexOf(n) < 0 && Ai.call(t, n) && (i[n] = t[n]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { options as se, Component as mi, isValidElement as
|
|
13
|
-
import { useRef as
|
|
12
|
+
import { options as se, Component as mi, isValidElement as Si } from "preact";
|
|
13
|
+
import { useRef as Ei, useLayoutEffect as ki, useEffect as Ue, useMemo as Ii, useState as jt, useCallback as xi, render as te, createRef as yt } from "preact/compat";
|
|
14
14
|
function B(t, e, i) {
|
|
15
15
|
return (e = Ri(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
16
16
|
}
|
|
17
17
|
function Ri(t) {
|
|
18
|
-
var e =
|
|
18
|
+
var e = Oi(t, "string");
|
|
19
19
|
return typeof e == "symbol" ? e : e + "";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Oi(t, e) {
|
|
22
22
|
if (typeof t != "object" || !t)
|
|
23
23
|
return t;
|
|
24
24
|
var i = t[Symbol.toPrimitive];
|
|
@@ -30,7 +30,7 @@ function Ti(t, e) {
|
|
|
30
30
|
}
|
|
31
31
|
return (e === "string" ? String : Number)(t);
|
|
32
32
|
}
|
|
33
|
-
class
|
|
33
|
+
class Ti {
|
|
34
34
|
constructor(e) {
|
|
35
35
|
B(this, "context", void 0), B(this, "continueCallback", void 0), B(this, "adIsShowingCallback", void 0), B(this, "isBeforeAdCalled", !1), B(this, "isBeforeRewardCalled", !1), B(this, "isAdDismissedCalled", !1), B(this, "isAdViewedCalled", !1), B(this, "isAfterAdCalled", !1), B(this, "currentProvider", void 0), B(this, "currentClientParams", void 0), B(this, "adsHasResponse", !1), B(this, "videoChecker", window.document.createElement("video")), B(this, "wrapShowAdFn", (i) => () => {
|
|
36
36
|
var r;
|
|
@@ -158,7 +158,7 @@ class Oi {
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Ee(t, e, i) {
|
|
162
162
|
return (e = Di(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
163
163
|
}
|
|
164
164
|
function Di(t) {
|
|
@@ -179,11 +179,11 @@ function Ci(t, e) {
|
|
|
179
179
|
}
|
|
180
180
|
class Li {
|
|
181
181
|
constructor(e) {
|
|
182
|
-
|
|
182
|
+
Ee(this, "context", void 0), Ee(this, "adBreakIsShowing", !1), Ee(this, "reportPageJumpOut", () => {
|
|
183
183
|
this.context.track("AdBreakJumpOut", {
|
|
184
184
|
context: "AdsActionDetection"
|
|
185
185
|
});
|
|
186
|
-
}),
|
|
186
|
+
}), Ee(this, "reportPageHide", () => {
|
|
187
187
|
this.context.track("AdBreakHide", {
|
|
188
188
|
context: "AdsActionDetection"
|
|
189
189
|
});
|
|
@@ -305,11 +305,11 @@ var Wi = {
|
|
|
305
305
|
Object.assign(globalThis, {
|
|
306
306
|
logger: Wi
|
|
307
307
|
});
|
|
308
|
-
var
|
|
309
|
-
globalThis[
|
|
310
|
-
var
|
|
311
|
-
globalThis[
|
|
312
|
-
var Kt = ((t) => (t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Kt || {}), Gt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Gt || {}), qt = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(qt || {}), At = ["name", "params"], Xi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Qi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
308
|
+
var wt = Symbol.for("Jolibox.canIUseMap"), Ji = {};
|
|
309
|
+
globalThis[wt] || (globalThis[wt] = Ji);
|
|
310
|
+
var bt = Symbol.for("Jolibox.canIUseMap.native"), Yi = {};
|
|
311
|
+
globalThis[bt] || (globalThis[bt] = Yi);
|
|
312
|
+
var Kt = ((t) => (t[t.Other = 0] = "Other", t[t.Route = 1] = "Route", t[t.Click = 2] = "Click", t[t.View = 3] = "View", t[t.Expose = 4] = "Expose", t[t.Swipe = 5] = "Swipe", t[t.Input = 6] = "Input", t[t.Select = 7] = "Select", t[t.SwitchOn = 8] = "SwitchOn", t[t.SwitchOff = 9] = "SwitchOff", t[t.Submit = 10] = "Submit", t[t.Scroll = 11] = "Scroll", t[t.Hide = 12] = "Hide", t[t.System = 1e3] = "System", t[t.ErrorTrace = 1001] = "ErrorTrace", t[t.UserDefined = 1002] = "UserDefined", t))(Kt || {}), Gt = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(Gt || {}), qt = ((t) => (t[t.App = 0] = "App", t[t.H5 = 1] = "H5", t[t.Weapp = 2] = "Weapp", t[t.Alipay = 3] = "Alipay", t[t.Gcash = 4] = "Gcash", t[t.Dana = 5] = "Dana", t[t.Umma = 6] = "Umma", t[t.WebSDK = 1e3] = "WebSDK", t[t.AppSDK = 1001] = "AppSDK", t[t.Other = 9999] = "Other", t))(qt || {}), At = ["name", "params"], Xi = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Qi = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
313
313
|
function xe(t, e) {
|
|
314
314
|
return e.map((i) => {
|
|
315
315
|
if (i === "params" && t[i]) {
|
|
@@ -370,64 +370,64 @@ var x = Xe, nn = class {
|
|
|
370
370
|
return this._first === x.Undefined;
|
|
371
371
|
}
|
|
372
372
|
clear() {
|
|
373
|
-
let
|
|
374
|
-
for (;
|
|
375
|
-
let
|
|
376
|
-
|
|
373
|
+
let t = this._first;
|
|
374
|
+
for (; t !== x.Undefined; ) {
|
|
375
|
+
let e = t.next;
|
|
376
|
+
t.prev = x.Undefined, t.next = x.Undefined, t = e;
|
|
377
377
|
}
|
|
378
378
|
this._first = x.Undefined, this._last = x.Undefined, this._size = 0;
|
|
379
379
|
}
|
|
380
|
-
unshift(
|
|
381
|
-
return this._insert(
|
|
380
|
+
unshift(t) {
|
|
381
|
+
return this._insert(t, !1);
|
|
382
382
|
}
|
|
383
|
-
push(
|
|
384
|
-
return this._insert(
|
|
383
|
+
push(t) {
|
|
384
|
+
return this._insert(t, !0);
|
|
385
385
|
}
|
|
386
|
-
_insert(
|
|
387
|
-
let
|
|
386
|
+
_insert(t, e) {
|
|
387
|
+
let i = new x(t);
|
|
388
388
|
if (this._first === x.Undefined)
|
|
389
|
-
this._first =
|
|
390
|
-
else if (
|
|
391
|
-
let
|
|
392
|
-
this._last =
|
|
389
|
+
this._first = i, this._last = i;
|
|
390
|
+
else if (e) {
|
|
391
|
+
let r = this._last;
|
|
392
|
+
this._last = i, i.prev = r, r.next = i;
|
|
393
393
|
} else {
|
|
394
|
-
let
|
|
395
|
-
this._first =
|
|
394
|
+
let r = this._first;
|
|
395
|
+
this._first = i, i.next = r, r.prev = i;
|
|
396
396
|
}
|
|
397
397
|
this._size += 1;
|
|
398
|
-
let
|
|
398
|
+
let n = !1;
|
|
399
399
|
return () => {
|
|
400
|
-
|
|
400
|
+
n || (n = !0, this._remove(i));
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
shift() {
|
|
404
404
|
if (this._first !== x.Undefined) {
|
|
405
|
-
let
|
|
406
|
-
return this._remove(this._first),
|
|
405
|
+
let t = this._first.element;
|
|
406
|
+
return this._remove(this._first), t;
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
pop() {
|
|
410
410
|
if (this._last !== x.Undefined) {
|
|
411
|
-
let
|
|
412
|
-
return this._remove(this._last),
|
|
411
|
+
let t = this._last.element;
|
|
412
|
+
return this._remove(this._last), t;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
_remove(
|
|
416
|
-
if (
|
|
417
|
-
let
|
|
418
|
-
|
|
415
|
+
_remove(t) {
|
|
416
|
+
if (t.prev !== x.Undefined && t.next !== x.Undefined) {
|
|
417
|
+
let e = t.prev;
|
|
418
|
+
e.next = t.next, t.next.prev = e;
|
|
419
419
|
} else
|
|
420
|
-
|
|
420
|
+
t.prev === x.Undefined && t.next === x.Undefined ? (this._first = x.Undefined, this._last = x.Undefined) : t.next === x.Undefined ? (this._last = this._last.prev, this._last.next = x.Undefined) : t.prev === x.Undefined && (this._first = this._first.next, this._first.prev = x.Undefined);
|
|
421
421
|
this._size -= 1;
|
|
422
422
|
}
|
|
423
423
|
*[Symbol.iterator]() {
|
|
424
|
-
let
|
|
425
|
-
for (;
|
|
426
|
-
yield
|
|
424
|
+
let t = this._first;
|
|
425
|
+
for (; t !== x.Undefined; )
|
|
426
|
+
yield t.element, t = t.next;
|
|
427
427
|
}
|
|
428
428
|
}, rn = 0, fe = class {
|
|
429
|
-
constructor(
|
|
430
|
-
this.value =
|
|
429
|
+
constructor(t) {
|
|
430
|
+
this.value = t, this.id = rn++;
|
|
431
431
|
}
|
|
432
432
|
}, ge = class {
|
|
433
433
|
constructor(e) {
|
|
@@ -484,43 +484,43 @@ var x = Xe, nn = class {
|
|
|
484
484
|
constructor() {
|
|
485
485
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
486
486
|
}
|
|
487
|
-
on(
|
|
488
|
-
let
|
|
489
|
-
var
|
|
490
|
-
let
|
|
491
|
-
this.listerHandlerMap.set(
|
|
492
|
-
handler:
|
|
493
|
-
dispose:
|
|
494
|
-
}), this.listeners.set(
|
|
495
|
-
let
|
|
496
|
-
if (
|
|
497
|
-
for (let
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
flushCachedEvent(
|
|
501
|
-
|
|
502
|
-
}
|
|
503
|
-
off(
|
|
504
|
-
let
|
|
505
|
-
|
|
506
|
-
}
|
|
507
|
-
emit(
|
|
508
|
-
let
|
|
509
|
-
for (var
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
args:
|
|
513
|
-
}),
|
|
514
|
-
event:
|
|
515
|
-
args:
|
|
487
|
+
on(e, i) {
|
|
488
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
489
|
+
var r;
|
|
490
|
+
let o = (r = this.listeners.get(e)) != null ? r : new ge(), s = (l) => i(...l.args), a = o.event(s);
|
|
491
|
+
this.listerHandlerMap.set(i, {
|
|
492
|
+
handler: s,
|
|
493
|
+
dispose: a
|
|
494
|
+
}), this.listeners.set(e, o);
|
|
495
|
+
let d = this.cachedEventQueue.get(e);
|
|
496
|
+
if (d && n)
|
|
497
|
+
for (let l of d)
|
|
498
|
+
i(...l.args);
|
|
499
|
+
}
|
|
500
|
+
flushCachedEvent(e) {
|
|
501
|
+
e ? this.cachedEventQueue.delete(e) : this.cachedEventQueue.clear();
|
|
502
|
+
}
|
|
503
|
+
off(e, i) {
|
|
504
|
+
let n = this.listerHandlerMap.get(i);
|
|
505
|
+
n && (n.dispose(), this.listerHandlerMap.delete(i));
|
|
506
|
+
}
|
|
507
|
+
emit(e) {
|
|
508
|
+
let i = this.listeners.get(e), n = this.cachedEventQueue.get(e);
|
|
509
|
+
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
510
|
+
o[s - 1] = arguments[s];
|
|
511
|
+
n || (n = new nn(), this.cachedEventQueue.set(e, n)), n.push({
|
|
512
|
+
args: o
|
|
513
|
+
}), i && i.fire({
|
|
514
|
+
event: e,
|
|
515
|
+
args: o
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
once(
|
|
519
|
-
var
|
|
520
|
-
let
|
|
521
|
-
|
|
518
|
+
once(e, i) {
|
|
519
|
+
var n = this;
|
|
520
|
+
let r = function() {
|
|
521
|
+
i(...arguments), n.off(e, r);
|
|
522
522
|
};
|
|
523
|
-
this.on(
|
|
523
|
+
this.on(e, r, !1);
|
|
524
524
|
}
|
|
525
525
|
}, Ze = {};
|
|
526
526
|
ji(Ze, {
|
|
@@ -813,7 +813,7 @@ function gn(t, e) {
|
|
|
813
813
|
}
|
|
814
814
|
return (e === "string" ? String : Number)(t);
|
|
815
815
|
}
|
|
816
|
-
class
|
|
816
|
+
class wn {
|
|
817
817
|
/**
|
|
818
818
|
* Internal constructor, should not be called directly
|
|
819
819
|
*/
|
|
@@ -863,8 +863,8 @@ class bn {
|
|
|
863
863
|
const _ = document.createElement("div");
|
|
864
864
|
_.style.position = "absolute", _.style.top = "0", _.style.left = "0", _.style.width = "100%", _.style.height = "100%", _.style.display = "flex", _.style.justifyContent = "center", _.style.alignItems = "center", _.style.backgroundColor = "rgba(0, 0, 0, 0.5)", _.style.color = "white", _.innerHTML = "Test Ad", u.style.position = "relative", l.appendChild(u), u.appendChild(_);
|
|
865
865
|
} else
|
|
866
|
-
l.appendChild(u), new MutationObserver((
|
|
867
|
-
|
|
866
|
+
l.appendChild(u), new MutationObserver((w) => {
|
|
867
|
+
w.forEach((M) => {
|
|
868
868
|
if (M.type === "attributes" && M.attributeName === "data-ad-status") {
|
|
869
869
|
const L = u.getAttribute("data-ad-status");
|
|
870
870
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
@@ -891,7 +891,7 @@ class bn {
|
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function bn(t) {
|
|
895
895
|
if (t.sheet)
|
|
896
896
|
return t.sheet;
|
|
897
897
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
@@ -917,7 +917,7 @@ var mn = /* @__PURE__ */ function() {
|
|
|
917
917
|
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(An(this));
|
|
918
918
|
var r = this.tags[this.tags.length - 1];
|
|
919
919
|
if (this.isSpeedy) {
|
|
920
|
-
var o =
|
|
920
|
+
var o = bn(r);
|
|
921
921
|
try {
|
|
922
922
|
o.insertRule(n, o.cssRules.length);
|
|
923
923
|
} catch (s) {
|
|
@@ -931,7 +931,7 @@ var mn = /* @__PURE__ */ function() {
|
|
|
931
931
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
932
932
|
}), this.tags = [], this.ctr = 0;
|
|
933
933
|
}, t;
|
|
934
|
-
}(), N = "-ms-", Ne = "-moz-", A = "-webkit-", Jt = "comm", dt = "rule", lt = "decl",
|
|
934
|
+
}(), N = "-ms-", Ne = "-moz-", A = "-webkit-", Jt = "comm", dt = "rule", lt = "decl", Sn = "@import", Yt = "@keyframes", En = "@layer", kn = Math.abs, Be = String.fromCharCode, In = Object.assign;
|
|
935
935
|
function xn(t, e) {
|
|
936
936
|
return D(t, 0) ^ 45 ? (((e << 2 ^ D(t, 0)) << 2 ^ D(t, 1)) << 2 ^ D(t, 2)) << 2 ^ D(t, 3) : 0;
|
|
937
937
|
}
|
|
@@ -950,7 +950,7 @@ function tt(t, e) {
|
|
|
950
950
|
function D(t, e) {
|
|
951
951
|
return t.charCodeAt(e) | 0;
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function we(t, e, i) {
|
|
954
954
|
return t.slice(e, i);
|
|
955
955
|
}
|
|
956
956
|
function H(t) {
|
|
@@ -962,7 +962,7 @@ function ct(t) {
|
|
|
962
962
|
function Ie(t, e) {
|
|
963
963
|
return e.push(t), t;
|
|
964
964
|
}
|
|
965
|
-
function
|
|
965
|
+
function On(t, e) {
|
|
966
966
|
return t.map(e).join("");
|
|
967
967
|
}
|
|
968
968
|
var je = 1, ae = 1, Qt = 0, U = 0, R = 0, de = "";
|
|
@@ -972,7 +972,7 @@ function Fe(t, e, i, n, r, o, s) {
|
|
|
972
972
|
function ve(t, e) {
|
|
973
973
|
return In(Fe("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Tn() {
|
|
976
976
|
return R;
|
|
977
977
|
}
|
|
978
978
|
function Dn() {
|
|
@@ -988,9 +988,9 @@ function Re() {
|
|
|
988
988
|
return U;
|
|
989
989
|
}
|
|
990
990
|
function Ae(t, e) {
|
|
991
|
-
return
|
|
991
|
+
return we(de, t, e);
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function be(t) {
|
|
994
994
|
switch (t) {
|
|
995
995
|
case 0:
|
|
996
996
|
case 9:
|
|
@@ -1028,13 +1028,13 @@ function Zt(t) {
|
|
|
1028
1028
|
function ei(t) {
|
|
1029
1029
|
return de = "", t;
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function Oe(t) {
|
|
1032
1032
|
return Xt(Ae(U - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1033
1033
|
}
|
|
1034
1034
|
function Cn(t) {
|
|
1035
1035
|
for (; (R = W()) && R < 33; )
|
|
1036
1036
|
F();
|
|
1037
|
-
return
|
|
1037
|
+
return be(t) > 2 || be(R) > 3 ? "" : " ";
|
|
1038
1038
|
}
|
|
1039
1039
|
function Ln(t, e) {
|
|
1040
1040
|
for (; --e && F() && !(R < 48 || R > 102 || R > 57 && R < 65 || R > 70 && R < 97); )
|
|
@@ -1066,34 +1066,34 @@ function Nn(t, e) {
|
|
|
1066
1066
|
return "/*" + Ae(e, U - 1) + "*" + Be(t === 47 ? t : F());
|
|
1067
1067
|
}
|
|
1068
1068
|
function Pn(t) {
|
|
1069
|
-
for (; !
|
|
1069
|
+
for (; !be(W()); )
|
|
1070
1070
|
F();
|
|
1071
1071
|
return Ae(t, U);
|
|
1072
1072
|
}
|
|
1073
1073
|
function Mn(t) {
|
|
1074
|
-
return ei(
|
|
1074
|
+
return ei(Te("", null, null, null, [""], t = Zt(t), 0, [0], t));
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0,
|
|
1076
|
+
function Te(t, e, i, n, r, o, s, a, d) {
|
|
1077
|
+
for (var l = 0, c = 0, h = s, u = 0, f = 0, y = 0, v = 1, g = 1, p = 1, _ = 0, w = "", M = r, L = o, V = n, E = w; g; )
|
|
1078
1078
|
switch (y = _, _ = F()) {
|
|
1079
1079
|
case 40:
|
|
1080
|
-
if (y != 108 && D(
|
|
1081
|
-
tt(
|
|
1080
|
+
if (y != 108 && D(E, h - 1) == 58) {
|
|
1081
|
+
tt(E += m(Oe(_), "&", "&\f"), "&\f") != -1 && (p = -1);
|
|
1082
1082
|
break;
|
|
1083
1083
|
}
|
|
1084
1084
|
case 34:
|
|
1085
1085
|
case 39:
|
|
1086
1086
|
case 91:
|
|
1087
|
-
|
|
1087
|
+
E += Oe(_);
|
|
1088
1088
|
break;
|
|
1089
1089
|
case 9:
|
|
1090
1090
|
case 10:
|
|
1091
1091
|
case 13:
|
|
1092
1092
|
case 32:
|
|
1093
|
-
|
|
1093
|
+
E += Cn(y);
|
|
1094
1094
|
break;
|
|
1095
1095
|
case 92:
|
|
1096
|
-
|
|
1096
|
+
E += Ln(Re() - 1, 7);
|
|
1097
1097
|
continue;
|
|
1098
1098
|
case 47:
|
|
1099
1099
|
switch (W()) {
|
|
@@ -1102,11 +1102,11 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1102
1102
|
Ie($n(Nn(F(), Re()), e, i), d);
|
|
1103
1103
|
break;
|
|
1104
1104
|
default:
|
|
1105
|
-
|
|
1105
|
+
E += "/";
|
|
1106
1106
|
}
|
|
1107
1107
|
break;
|
|
1108
1108
|
case 123 * v:
|
|
1109
|
-
a[l++] = H(
|
|
1109
|
+
a[l++] = H(E) * p;
|
|
1110
1110
|
case 125 * v:
|
|
1111
1111
|
case 59:
|
|
1112
1112
|
case 0:
|
|
@@ -1115,30 +1115,30 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1115
1115
|
case 125:
|
|
1116
1116
|
g = 0;
|
|
1117
1117
|
case 59 + c:
|
|
1118
|
-
p == -1 && (
|
|
1118
|
+
p == -1 && (E = m(E, /\f/g, "")), f > 0 && H(E) - h && Ie(f > 32 ? Et(E + ";", n, i, h - 1) : Et(m(E, " ", "") + ";", n, i, h - 2), d);
|
|
1119
1119
|
break;
|
|
1120
1120
|
case 59:
|
|
1121
|
-
|
|
1121
|
+
E += ";";
|
|
1122
1122
|
default:
|
|
1123
|
-
if (Ie(V =
|
|
1123
|
+
if (Ie(V = St(E, e, i, l, c, r, a, w, M = [], L = [], h), o), _ === 123)
|
|
1124
1124
|
if (c === 0)
|
|
1125
|
-
|
|
1125
|
+
Te(E, e, V, V, M, o, h, a, L);
|
|
1126
1126
|
else
|
|
1127
|
-
switch (u === 99 && D(
|
|
1127
|
+
switch (u === 99 && D(E, 3) === 110 ? 100 : u) {
|
|
1128
1128
|
case 100:
|
|
1129
1129
|
case 108:
|
|
1130
1130
|
case 109:
|
|
1131
1131
|
case 115:
|
|
1132
|
-
|
|
1132
|
+
Te(t, V, V, n && Ie(St(t, V, V, 0, 0, r, a, w, r, M = [], h), L), r, L, h, a, n ? M : L);
|
|
1133
1133
|
break;
|
|
1134
1134
|
default:
|
|
1135
|
-
|
|
1135
|
+
Te(E, V, V, V, [""], L, 0, a, L);
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
l = c = f = 0, v = p = 1,
|
|
1138
|
+
l = c = f = 0, v = p = 1, w = E = "", h = s;
|
|
1139
1139
|
break;
|
|
1140
1140
|
case 58:
|
|
1141
|
-
h = 1 + H(
|
|
1141
|
+
h = 1 + H(E), f = y;
|
|
1142
1142
|
default:
|
|
1143
1143
|
if (v < 1) {
|
|
1144
1144
|
if (_ == 123)
|
|
@@ -1146,33 +1146,33 @@ function Oe(t, e, i, n, r, o, s, a, d) {
|
|
|
1146
1146
|
else if (_ == 125 && v++ == 0 && Dn() == 125)
|
|
1147
1147
|
continue;
|
|
1148
1148
|
}
|
|
1149
|
-
switch (
|
|
1149
|
+
switch (E += Be(_), _ * v) {
|
|
1150
1150
|
case 38:
|
|
1151
|
-
p = c > 0 ? 1 : (
|
|
1151
|
+
p = c > 0 ? 1 : (E += "\f", -1);
|
|
1152
1152
|
break;
|
|
1153
1153
|
case 44:
|
|
1154
|
-
a[l++] = (H(
|
|
1154
|
+
a[l++] = (H(E) - 1) * p, p = 1;
|
|
1155
1155
|
break;
|
|
1156
1156
|
case 64:
|
|
1157
|
-
W() === 45 && (
|
|
1157
|
+
W() === 45 && (E += Oe(F())), u = W(), c = h = H(w = E += Pn(Re())), _++;
|
|
1158
1158
|
break;
|
|
1159
1159
|
case 45:
|
|
1160
|
-
y === 45 && H(
|
|
1160
|
+
y === 45 && H(E) == 2 && (v = 0);
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
return o;
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function St(t, e, i, n, r, o, s, a, d, l, c) {
|
|
1166
1166
|
for (var h = r - 1, u = r === 0 ? o : [""], f = ct(u), y = 0, v = 0, g = 0; y < n; ++y)
|
|
1167
|
-
for (var p = 0, _ =
|
|
1168
|
-
(
|
|
1167
|
+
for (var p = 0, _ = we(t, h + 1, h = kn(v = s[y])), w = t; p < f; ++p)
|
|
1168
|
+
(w = Xt(v > 0 ? u[p] + " " + _ : m(_, /&\f/g, u[p]))) && (d[g++] = w);
|
|
1169
1169
|
return Fe(t, e, i, r === 0 ? dt : a, d, l, c);
|
|
1170
1170
|
}
|
|
1171
1171
|
function $n(t, e, i) {
|
|
1172
|
-
return Fe(t, e, i, Jt, Be(
|
|
1172
|
+
return Fe(t, e, i, Jt, Be(Tn()), we(t, 2, -2), 0);
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return Fe(t, e, i, lt,
|
|
1174
|
+
function Et(t, e, i, n) {
|
|
1175
|
+
return Fe(t, e, i, lt, we(t, 0, n), we(t, n + 1, -1), n);
|
|
1176
1176
|
}
|
|
1177
1177
|
function oe(t, e) {
|
|
1178
1178
|
for (var i = "", n = ct(t), r = 0; r < n; r++)
|
|
@@ -1181,10 +1181,10 @@ function oe(t, e) {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
function Un(t, e, i, n) {
|
|
1183
1183
|
switch (t.type) {
|
|
1184
|
-
case
|
|
1184
|
+
case En:
|
|
1185
1185
|
if (t.children.length)
|
|
1186
1186
|
break;
|
|
1187
|
-
case
|
|
1187
|
+
case Sn:
|
|
1188
1188
|
case lt:
|
|
1189
1189
|
return t.return = t.return || t.value;
|
|
1190
1190
|
case Jt:
|
|
@@ -1216,18 +1216,18 @@ function Fn(t) {
|
|
|
1216
1216
|
};
|
|
1217
1217
|
}
|
|
1218
1218
|
var Vn = function(e, i, n) {
|
|
1219
|
-
for (var r = 0, o = 0; r = o, o = W(), r === 38 && o === 12 && (i[n] = 1), !
|
|
1219
|
+
for (var r = 0, o = 0; r = o, o = W(), r === 38 && o === 12 && (i[n] = 1), !be(o); )
|
|
1220
1220
|
F();
|
|
1221
1221
|
return Ae(e, U);
|
|
1222
1222
|
}, zn = function(e, i) {
|
|
1223
1223
|
var n = -1, r = 44;
|
|
1224
1224
|
do
|
|
1225
|
-
switch (
|
|
1225
|
+
switch (be(r)) {
|
|
1226
1226
|
case 0:
|
|
1227
1227
|
r === 38 && W() === 12 && (i[n] = 1), e[n] += Vn(U - 1, i, n);
|
|
1228
1228
|
break;
|
|
1229
1229
|
case 2:
|
|
1230
|
-
e[n] +=
|
|
1230
|
+
e[n] += Oe(r);
|
|
1231
1231
|
break;
|
|
1232
1232
|
case 4:
|
|
1233
1233
|
if (r === 44) {
|
|
@@ -1389,7 +1389,7 @@ var Hn = function(e, i, n, r) {
|
|
|
1389
1389
|
})], r);
|
|
1390
1390
|
case dt:
|
|
1391
1391
|
if (e.length)
|
|
1392
|
-
return
|
|
1392
|
+
return On(e.props, function(o) {
|
|
1393
1393
|
switch (Rn(o, /(::plac\w+|:read-\w+)/)) {
|
|
1394
1394
|
case ":read-only":
|
|
1395
1395
|
case ":read-write":
|
|
@@ -1435,8 +1435,8 @@ var Hn = function(e, i, n, r) {
|
|
|
1435
1435
|
})], u = Bn(l.concat(r, h)), f = function(g) {
|
|
1436
1436
|
return oe(Mn(g), u);
|
|
1437
1437
|
};
|
|
1438
|
-
d = function(g, p, _,
|
|
1439
|
-
c = _, f(g ? g + "{" + p.styles + "}" : p.styles),
|
|
1438
|
+
d = function(g, p, _, w) {
|
|
1439
|
+
c = _, f(g ? g + "{" + p.styles + "}" : p.styles), w && (y.inserted[p.name] = !0);
|
|
1440
1440
|
};
|
|
1441
1441
|
}
|
|
1442
1442
|
var y = {
|
|
@@ -1665,11 +1665,11 @@ var tr = function(e, i, n) {
|
|
|
1665
1665
|
while (o !== void 0);
|
|
1666
1666
|
}
|
|
1667
1667
|
};
|
|
1668
|
-
function
|
|
1668
|
+
function Ot(t, e) {
|
|
1669
1669
|
if (t.inserted[e.name] === void 0)
|
|
1670
1670
|
return t.insert("", e, t.sheet, !0);
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function Tt(t, e, i) {
|
|
1673
1673
|
var n = [], r = ni(t, n, i);
|
|
1674
1674
|
return n.length < 2 ? i : r + e(n);
|
|
1675
1675
|
}
|
|
@@ -1687,7 +1687,7 @@ var nr = function(e) {
|
|
|
1687
1687
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1688
1688
|
l[c] = arguments[c];
|
|
1689
1689
|
var h = qe(l, i.registered), u = "animation-" + h.name;
|
|
1690
|
-
return
|
|
1690
|
+
return Ot(i, {
|
|
1691
1691
|
name: h.name,
|
|
1692
1692
|
styles: "@keyframes " + u + "{" + h.styles + "}"
|
|
1693
1693
|
}), u;
|
|
@@ -1695,11 +1695,11 @@ var nr = function(e) {
|
|
|
1695
1695
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1696
1696
|
l[c] = arguments[c];
|
|
1697
1697
|
var h = qe(l, i.registered);
|
|
1698
|
-
|
|
1698
|
+
Ot(i, h);
|
|
1699
1699
|
}, s = function() {
|
|
1700
1700
|
for (var d = arguments.length, l = new Array(d), c = 0; c < d; c++)
|
|
1701
1701
|
l[c] = arguments[c];
|
|
1702
|
-
return
|
|
1702
|
+
return Tt(i.registered, n, rr(l));
|
|
1703
1703
|
};
|
|
1704
1704
|
return {
|
|
1705
1705
|
css: n,
|
|
@@ -1717,7 +1717,7 @@ var nr = function(e) {
|
|
|
1717
1717
|
sheet: i.sheet,
|
|
1718
1718
|
cache: i,
|
|
1719
1719
|
getRegisteredStyles: ni.bind(null, i.registered),
|
|
1720
|
-
merge:
|
|
1720
|
+
merge: Tt.bind(null, i.registered, n)
|
|
1721
1721
|
};
|
|
1722
1722
|
}, rr = function t(e) {
|
|
1723
1723
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
@@ -1746,9 +1746,9 @@ var nr = function(e) {
|
|
|
1746
1746
|
return i;
|
|
1747
1747
|
}, or = nr({
|
|
1748
1748
|
key: "css"
|
|
1749
|
-
}), le = or.css, nt, j, He, Dt, Ct = 0, ri = [],
|
|
1749
|
+
}), le = or.css, nt, j, He, Dt, Ct = 0, ri = [], O = se, Lt = O.__b, Nt = O.__r, Pt = O.diffed, Mt = O.__c, $t = O.unmount, Ut = O.__;
|
|
1750
1750
|
function sr(t, e) {
|
|
1751
|
-
|
|
1751
|
+
O.__h && O.__h(j, t, Ct || e), Ct = 0;
|
|
1752
1752
|
var i = j.__H || (j.__H = { __: [], __h: [] });
|
|
1753
1753
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1754
1754
|
}
|
|
@@ -1762,26 +1762,26 @@ function ar() {
|
|
|
1762
1762
|
try {
|
|
1763
1763
|
t.__H.__h.forEach(De), t.__H.__h.forEach(rt), t.__H.__h = [];
|
|
1764
1764
|
} catch (e) {
|
|
1765
|
-
t.__H.__h = [],
|
|
1765
|
+
t.__H.__h = [], O.__e(e, t.__v);
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
|
|
1768
|
+
O.__b = function(t) {
|
|
1769
1769
|
j = null, Lt && Lt(t);
|
|
1770
|
-
},
|
|
1770
|
+
}, O.__ = function(t, e) {
|
|
1771
1771
|
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Ut && Ut(t, e);
|
|
1772
|
-
},
|
|
1772
|
+
}, O.__r = function(t) {
|
|
1773
1773
|
Nt && Nt(t), nt = 0;
|
|
1774
1774
|
var e = (j = t.__c).__H;
|
|
1775
1775
|
e && (He === j ? (e.__h = [], j.__h = [], e.__.forEach(function(i) {
|
|
1776
1776
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1777
1777
|
})) : (e.__h.forEach(De), e.__h.forEach(rt), e.__h = [], nt = 0)), He = j;
|
|
1778
|
-
},
|
|
1778
|
+
}, O.diffed = function(t) {
|
|
1779
1779
|
Pt && Pt(t);
|
|
1780
1780
|
var e = t.__c;
|
|
1781
|
-
e && e.__H && (e.__H.__h.length && (ri.push(e) !== 1 && Dt ===
|
|
1781
|
+
e && e.__H && (e.__H.__h.length && (ri.push(e) !== 1 && Dt === O.requestAnimationFrame || ((Dt = O.requestAnimationFrame) || dr)(ar)), e.__H.__.forEach(function(i) {
|
|
1782
1782
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1783
1783
|
})), He = j = null;
|
|
1784
|
-
},
|
|
1784
|
+
}, O.__c = function(t, e) {
|
|
1785
1785
|
e.some(function(i) {
|
|
1786
1786
|
try {
|
|
1787
1787
|
i.__h.forEach(De), i.__h = i.__h.filter(function(n) {
|
|
@@ -1790,10 +1790,10 @@ T.__b = function(t) {
|
|
|
1790
1790
|
} catch (n) {
|
|
1791
1791
|
e.some(function(r) {
|
|
1792
1792
|
r.__h && (r.__h = []);
|
|
1793
|
-
}), e = [],
|
|
1793
|
+
}), e = [], O.__e(n, i.__v);
|
|
1794
1794
|
}
|
|
1795
1795
|
}), Mt && Mt(t, e);
|
|
1796
|
-
},
|
|
1796
|
+
}, O.unmount = function(t) {
|
|
1797
1797
|
$t && $t(t);
|
|
1798
1798
|
var e, i = t.__c;
|
|
1799
1799
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
@@ -1802,7 +1802,7 @@ T.__b = function(t) {
|
|
|
1802
1802
|
} catch (r) {
|
|
1803
1803
|
e = r;
|
|
1804
1804
|
}
|
|
1805
|
-
}), i.__H = void 0, e &&
|
|
1805
|
+
}), i.__H = void 0, e && O.__e(e, i.__v));
|
|
1806
1806
|
};
|
|
1807
1807
|
var Bt = typeof requestAnimationFrame == "function";
|
|
1808
1808
|
function dr(t) {
|
|
@@ -1846,7 +1846,7 @@ function Ve() {
|
|
|
1846
1846
|
throw t;
|
|
1847
1847
|
}
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function T(t) {
|
|
1850
1850
|
if (ee > 0)
|
|
1851
1851
|
return t();
|
|
1852
1852
|
ee++;
|
|
@@ -1884,7 +1884,7 @@ C.prototype.U = function(t) {
|
|
|
1884
1884
|
};
|
|
1885
1885
|
C.prototype.subscribe = function(t) {
|
|
1886
1886
|
var e = this;
|
|
1887
|
-
return
|
|
1887
|
+
return Se(function() {
|
|
1888
1888
|
var i = e.value, n = k;
|
|
1889
1889
|
k = void 0;
|
|
1890
1890
|
try {
|
|
@@ -1928,7 +1928,7 @@ Object.defineProperty(C.prototype, "value", { get: function() {
|
|
|
1928
1928
|
}
|
|
1929
1929
|
}
|
|
1930
1930
|
} });
|
|
1931
|
-
function
|
|
1931
|
+
function S(t) {
|
|
1932
1932
|
return new C(t);
|
|
1933
1933
|
}
|
|
1934
1934
|
function ai(t) {
|
|
@@ -2058,7 +2058,7 @@ me.prototype.N = function() {
|
|
|
2058
2058
|
me.prototype.d = function() {
|
|
2059
2059
|
this.f |= 8, 1 & this.f || ut(this);
|
|
2060
2060
|
};
|
|
2061
|
-
function
|
|
2061
|
+
function Se(t) {
|
|
2062
2062
|
var e = new me(t);
|
|
2063
2063
|
try {
|
|
2064
2064
|
e.c();
|
|
@@ -2068,7 +2068,7 @@ function Ee(t) {
|
|
|
2068
2068
|
return e.d.bind(e);
|
|
2069
2069
|
}
|
|
2070
2070
|
var ui, We, hi = [];
|
|
2071
|
-
|
|
2071
|
+
Se(function() {
|
|
2072
2072
|
ui = this.N;
|
|
2073
2073
|
})();
|
|
2074
2074
|
function ue(t, e) {
|
|
@@ -2091,8 +2091,8 @@ function fi(t) {
|
|
|
2091
2091
|
var f = n.value.value;
|
|
2092
2092
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2093
2093
|
}), c = _e(function() {
|
|
2094
|
-
return !Array.isArray(l.value) && !
|
|
2095
|
-
}), h =
|
|
2094
|
+
return !Array.isArray(l.value) && !Si(l.value);
|
|
2095
|
+
}), h = Se(function() {
|
|
2096
2096
|
if (this.N = pi, c.value) {
|
|
2097
2097
|
var f = l.value;
|
|
2098
2098
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
@@ -2124,7 +2124,7 @@ ue("__r", function(t, e) {
|
|
|
2124
2124
|
var i, n = e.__c;
|
|
2125
2125
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2126
2126
|
var o;
|
|
2127
|
-
return
|
|
2127
|
+
return Se(function() {
|
|
2128
2128
|
o = this;
|
|
2129
2129
|
}), o.c = function() {
|
|
2130
2130
|
n.__$f |= 1, n.setState({});
|
|
@@ -2157,10 +2157,10 @@ ue("diffed", function(t, e) {
|
|
|
2157
2157
|
t(e);
|
|
2158
2158
|
});
|
|
2159
2159
|
function hr(t, e, i, n) {
|
|
2160
|
-
var r = e in t && t.ownerSVGElement === void 0, o =
|
|
2160
|
+
var r = e in t && t.ownerSVGElement === void 0, o = S(i);
|
|
2161
2161
|
return { o: function(s, a) {
|
|
2162
2162
|
o.value = s, n = a;
|
|
2163
|
-
}, d:
|
|
2163
|
+
}, d: Se(function() {
|
|
2164
2164
|
this.N = pi;
|
|
2165
2165
|
var s = o.value.value;
|
|
2166
2166
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
@@ -2211,7 +2211,7 @@ mi.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2211
2211
|
};
|
|
2212
2212
|
function vi(t) {
|
|
2213
2213
|
return oi(function() {
|
|
2214
|
-
return
|
|
2214
|
+
return S(t);
|
|
2215
2215
|
}, []);
|
|
2216
2216
|
}
|
|
2217
2217
|
var fr = function(t) {
|
|
@@ -2220,7 +2220,7 @@ var fr = function(t) {
|
|
|
2220
2220
|
});
|
|
2221
2221
|
};
|
|
2222
2222
|
function vr() {
|
|
2223
|
-
|
|
2223
|
+
T(function() {
|
|
2224
2224
|
for (var t; t = hi.shift(); )
|
|
2225
2225
|
ui.call(t);
|
|
2226
2226
|
});
|
|
@@ -2248,7 +2248,7 @@ const P = le`
|
|
|
2248
2248
|
'Helvetica Neue', sans-serif;
|
|
2249
2249
|
`;
|
|
2250
2250
|
function pr(t, e) {
|
|
2251
|
-
const i =
|
|
2251
|
+
const i = Ei(t);
|
|
2252
2252
|
ki(() => {
|
|
2253
2253
|
i.current = t;
|
|
2254
2254
|
}, [t]), Ue(() => {
|
|
@@ -2263,7 +2263,7 @@ function pr(t, e) {
|
|
|
2263
2263
|
}, [e]);
|
|
2264
2264
|
}
|
|
2265
2265
|
var yr = 0;
|
|
2266
|
-
function
|
|
2266
|
+
function b(t, e, i, n, r, o) {
|
|
2267
2267
|
e || (e = {});
|
|
2268
2268
|
var s, a, d = e;
|
|
2269
2269
|
if ("ref" in d)
|
|
@@ -2350,49 +2350,49 @@ const _r = le`
|
|
|
2350
2350
|
}
|
|
2351
2351
|
}
|
|
2352
2352
|
}
|
|
2353
|
-
`, K =
|
|
2353
|
+
`, K = S(null), st = S(""), at = S(""), Ce = S(!1), gr = () => {
|
|
2354
2354
|
var t;
|
|
2355
2355
|
(t = K.value) == null || t.call(K, !1);
|
|
2356
|
-
},
|
|
2356
|
+
}, wr = () => {
|
|
2357
2357
|
var t;
|
|
2358
2358
|
(t = K.value) == null || t.call(K, !0);
|
|
2359
|
-
},
|
|
2359
|
+
}, br = async (t) => {
|
|
2360
2360
|
let {
|
|
2361
2361
|
title: e,
|
|
2362
2362
|
content: i
|
|
2363
2363
|
} = t;
|
|
2364
|
-
return K.value && (K.value(!1),
|
|
2364
|
+
return K.value && (K.value(!1), T(() => {
|
|
2365
2365
|
K.value = null, Ce.value = !1;
|
|
2366
|
-
})),
|
|
2366
|
+
})), T(() => {
|
|
2367
2367
|
st.value = e || "", at.value = i || "", Ce.value = !0;
|
|
2368
2368
|
}), new Promise((n) => {
|
|
2369
2369
|
K.value = (r) => {
|
|
2370
|
-
|
|
2370
|
+
T(() => {
|
|
2371
2371
|
K.value = null, Ce.value = !1, st.value = "", at.value = "";
|
|
2372
2372
|
}), n(r);
|
|
2373
2373
|
};
|
|
2374
2374
|
});
|
|
2375
|
-
}, Ar = () => Ce.value ?
|
|
2375
|
+
}, Ar = () => Ce.value ? b("div", {
|
|
2376
2376
|
className: _r,
|
|
2377
|
-
children:
|
|
2377
|
+
children: b("div", {
|
|
2378
2378
|
className: "card-wrapper",
|
|
2379
|
-
children: [
|
|
2379
|
+
children: [b("div", {
|
|
2380
2380
|
className: "body",
|
|
2381
|
-
children: [
|
|
2381
|
+
children: [b("div", {
|
|
2382
2382
|
className: "title",
|
|
2383
2383
|
children: st.value
|
|
2384
|
-
}),
|
|
2384
|
+
}), b("div", {
|
|
2385
2385
|
className: "content",
|
|
2386
2386
|
children: at.value
|
|
2387
2387
|
})]
|
|
2388
|
-
}),
|
|
2388
|
+
}), b("div", {
|
|
2389
2389
|
className: "footer",
|
|
2390
|
-
children: [
|
|
2390
|
+
children: [b("button", {
|
|
2391
2391
|
onClick: gr,
|
|
2392
2392
|
className: "cancel-btn",
|
|
2393
2393
|
children: "Cancel"
|
|
2394
|
-
}),
|
|
2395
|
-
onClick:
|
|
2394
|
+
}), b("button", {
|
|
2395
|
+
onClick: wr,
|
|
2396
2396
|
className: "confirm-btm",
|
|
2397
2397
|
children: "Confirm"
|
|
2398
2398
|
})]
|
|
@@ -2431,18 +2431,18 @@ const _r = le`
|
|
|
2431
2431
|
cursor: not-allowed;
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
2434
|
-
`,
|
|
2435
|
-
const t =
|
|
2434
|
+
`, Sr = () => {
|
|
2435
|
+
const t = S(!1), e = S(null);
|
|
2436
2436
|
return {
|
|
2437
2437
|
timerPaused: t,
|
|
2438
2438
|
startTimestamp: e,
|
|
2439
2439
|
startTimer: () => {
|
|
2440
|
-
|
|
2440
|
+
T(() => {
|
|
2441
2441
|
e.value = Date.now(), t.value = !1;
|
|
2442
2442
|
});
|
|
2443
2443
|
}
|
|
2444
2444
|
};
|
|
2445
|
-
},
|
|
2445
|
+
}, Er = (t) => {
|
|
2446
2446
|
let {
|
|
2447
2447
|
countdown: e = 0,
|
|
2448
2448
|
mode: i,
|
|
@@ -2454,7 +2454,7 @@ const _r = le`
|
|
|
2454
2454
|
timerPaused: s
|
|
2455
2455
|
} = r, a = vi(e);
|
|
2456
2456
|
pr(() => {
|
|
2457
|
-
a.value > 0 ? a.value -= 1 :
|
|
2457
|
+
a.value > 0 ? a.value -= 1 : T(() => {
|
|
2458
2458
|
s.value = !0, a.value = 0;
|
|
2459
2459
|
});
|
|
2460
2460
|
}, s.value ? null : 1e3);
|
|
@@ -2471,36 +2471,36 @@ const _r = le`
|
|
|
2471
2471
|
const f = Date.now() - o.value;
|
|
2472
2472
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2473
2473
|
}), c = _e(() => i === "interstitial" ? !1 : !d.value && !l.value), h = async () => {
|
|
2474
|
-
if (s.value = !0, !await
|
|
2474
|
+
if (s.value = !0, !await br({
|
|
2475
2475
|
title: "Are you sure?",
|
|
2476
2476
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2477
2477
|
})) {
|
|
2478
2478
|
s.value = !1;
|
|
2479
2479
|
return;
|
|
2480
2480
|
}
|
|
2481
|
-
n("dismiss"),
|
|
2481
|
+
n("dismiss"), T(() => {
|
|
2482
2482
|
s.value = !0, a.value = 0, o.value = null;
|
|
2483
2483
|
});
|
|
2484
2484
|
}, u = () => {
|
|
2485
|
-
n("viewed"),
|
|
2485
|
+
n("viewed"), T(() => {
|
|
2486
2486
|
s.value = !0, a.value = 0, o.value = null;
|
|
2487
2487
|
});
|
|
2488
2488
|
};
|
|
2489
|
-
return
|
|
2489
|
+
return b("div", {
|
|
2490
2490
|
className: mr,
|
|
2491
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2491
|
+
children: [a.value > 0 && i !== "interstitial" && b("div", {
|
|
2492
2492
|
className: "timer",
|
|
2493
2493
|
children: [a.value, "s"]
|
|
2494
|
-
}),
|
|
2494
|
+
}), b("button", {
|
|
2495
2495
|
onClick: d.value ? h : l.value ? u : void 0,
|
|
2496
2496
|
disabled: c.value,
|
|
2497
|
-
children:
|
|
2497
|
+
children: b("svg", {
|
|
2498
2498
|
width: "12",
|
|
2499
2499
|
height: "12",
|
|
2500
2500
|
viewBox: "0 0 14 14",
|
|
2501
2501
|
fill: "none",
|
|
2502
2502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2503
|
-
children:
|
|
2503
|
+
children: b("path", {
|
|
2504
2504
|
d: "M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",
|
|
2505
2505
|
fill: "white"
|
|
2506
2506
|
})
|
|
@@ -2508,7 +2508,7 @@ const _r = le`
|
|
|
2508
2508
|
})]
|
|
2509
2509
|
});
|
|
2510
2510
|
}, yi = () => {
|
|
2511
|
-
const t =
|
|
2511
|
+
const t = S(), e = S(), i = S(), n = S(), r = S(), o = S(!1), s = S(15), a = S(""), d = S("reward");
|
|
2512
2512
|
return {
|
|
2513
2513
|
afterAd: t,
|
|
2514
2514
|
adDismissed: e,
|
|
@@ -2553,9 +2553,9 @@ const _r = le`
|
|
|
2553
2553
|
countdown: d,
|
|
2554
2554
|
src: l,
|
|
2555
2555
|
mode: c
|
|
2556
|
-
} = e, h = Ii(() =>
|
|
2557
|
-
var p, _,
|
|
2558
|
-
a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (
|
|
2556
|
+
} = e, h = Ii(() => Sr(), []), [u, f] = jt(!1), y = (g) => {
|
|
2557
|
+
var p, _, w, M;
|
|
2558
|
+
a.value = !1, g === "dismiss" ? (p = n.value) == null || p.call(n) : g === "viewed" && ((_ = r.value) == null || _.call(r)), (w = i.value) == null || w.call(i), (M = o.value) == null || M.call(o), f(!1);
|
|
2559
2559
|
}, v = xi(() => {
|
|
2560
2560
|
var g;
|
|
2561
2561
|
u || (f(!0), (g = s.value) == null || g.call(s));
|
|
@@ -2564,18 +2564,18 @@ const _r = le`
|
|
|
2564
2564
|
u && (c.value === "reward" || c.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2565
2565
|
h.startTimer();
|
|
2566
2566
|
}, 100);
|
|
2567
|
-
}, [u, c.value]), a.value ?
|
|
2567
|
+
}, [u, c.value]), a.value ? b("div", {
|
|
2568
2568
|
className: kr,
|
|
2569
|
-
children: [
|
|
2569
|
+
children: [b(Er, {
|
|
2570
2570
|
mode: c.value,
|
|
2571
2571
|
onClose: y,
|
|
2572
2572
|
countdown: d.value,
|
|
2573
2573
|
state: h
|
|
2574
|
-
}), a.value &&
|
|
2574
|
+
}), a.value && b("iframe", {
|
|
2575
2575
|
src: l.value,
|
|
2576
2576
|
onLoad: v,
|
|
2577
2577
|
sandbox: "allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"
|
|
2578
|
-
}),
|
|
2578
|
+
}), b(Ar, {})]
|
|
2579
2579
|
}) : null;
|
|
2580
2580
|
};
|
|
2581
2581
|
function Y(t, e, i) {
|
|
@@ -2603,7 +2603,7 @@ class Rr {
|
|
|
2603
2603
|
}
|
|
2604
2604
|
async init() {
|
|
2605
2605
|
var e;
|
|
2606
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(
|
|
2606
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), te(b(_i, {
|
|
2607
2607
|
state: this.state
|
|
2608
2608
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2609
2609
|
}
|
|
@@ -2665,7 +2665,7 @@ class Rr {
|
|
|
2665
2665
|
breakStatus: "viewed"
|
|
2666
2666
|
});
|
|
2667
2667
|
};
|
|
2668
|
-
|
|
2668
|
+
T(() => {
|
|
2669
2669
|
this.adsIsShowing = !0, this.state.afterAd.value = h, this.state.adBreakDone.value = u, this.state.src.value = i.params.url, this.state.mode.value = "interstitial", this.state.visible.value = !0;
|
|
2670
2670
|
});
|
|
2671
2671
|
break;
|
|
@@ -2695,7 +2695,7 @@ class Rr {
|
|
|
2695
2695
|
var p;
|
|
2696
2696
|
this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, u);
|
|
2697
2697
|
};
|
|
2698
|
-
|
|
2698
|
+
T(() => {
|
|
2699
2699
|
this.state.afterAd.value = h, this.state.adDismissed.value = f, this.state.adViewed.value = y, this.state.adBreakDone.value = v;
|
|
2700
2700
|
});
|
|
2701
2701
|
const g = () => {
|
|
@@ -2709,7 +2709,7 @@ class Rr {
|
|
|
2709
2709
|
});
|
|
2710
2710
|
return;
|
|
2711
2711
|
}
|
|
2712
|
-
this.adsIsShowing = !0,
|
|
2712
|
+
this.adsIsShowing = !0, T(() => {
|
|
2713
2713
|
var _;
|
|
2714
2714
|
this.state.countdown.value = (_ = i.params.countdown) != null ? _ : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2715
2715
|
});
|
|
@@ -2731,7 +2731,7 @@ const ie = (t, e) => {
|
|
|
2731
2731
|
re[t].delete(e);
|
|
2732
2732
|
}), [t, e]);
|
|
2733
2733
|
}, gi = () => {
|
|
2734
|
-
const t =
|
|
2734
|
+
const t = S(), e = S(), i = S(), n = S(), r = S(), o = S(), s = S(), a = S(!1), d = S("");
|
|
2735
2735
|
return {
|
|
2736
2736
|
afterAd: t,
|
|
2737
2737
|
adDismissed: e,
|
|
@@ -2743,7 +2743,7 @@ const ie = (t, e) => {
|
|
|
2743
2743
|
visible: a,
|
|
2744
2744
|
src: d
|
|
2745
2745
|
};
|
|
2746
|
-
},
|
|
2746
|
+
}, Or = le`
|
|
2747
2747
|
${P}
|
|
2748
2748
|
position: fixed;
|
|
2749
2749
|
z-index: 2147483647;
|
|
@@ -2762,7 +2762,7 @@ const ie = (t, e) => {
|
|
|
2762
2762
|
width: 100%;
|
|
2763
2763
|
height: 100%;
|
|
2764
2764
|
}
|
|
2765
|
-
`,
|
|
2765
|
+
`, wi = (t) => {
|
|
2766
2766
|
let {
|
|
2767
2767
|
state: e
|
|
2768
2768
|
} = t;
|
|
@@ -2785,12 +2785,12 @@ const ie = (t, e) => {
|
|
|
2785
2785
|
return ie("appsrockets_ad_dismissed", () => u("dismiss")), ie("appsrockets_ad_rewarded", () => u("viewed")), ie("appsrockets_ad_completed", () => u("viewed")), ie("appsrockets_ad_skipped", () => u("viewed")), ie("appsrockets_ad_clicked", (y) => {
|
|
2786
2786
|
var v;
|
|
2787
2787
|
return (v = a.value) == null ? void 0 : v.call(a, y);
|
|
2788
|
-
}), ie("appsrockets_ad_loaded", () => h(!0)), d.value ?
|
|
2789
|
-
className:
|
|
2788
|
+
}), ie("appsrockets_ad_loaded", () => h(!0)), d.value ? b("div", {
|
|
2789
|
+
className: Or,
|
|
2790
2790
|
style: {
|
|
2791
2791
|
display: c ? "flex" : "none"
|
|
2792
2792
|
},
|
|
2793
|
-
children: d.value &&
|
|
2793
|
+
children: d.value && b("iframe", {
|
|
2794
2794
|
src: l.value,
|
|
2795
2795
|
onLoad: f,
|
|
2796
2796
|
allowFullScreen: !0,
|
|
@@ -2800,9 +2800,9 @@ const ie = (t, e) => {
|
|
|
2800
2800
|
}) : null;
|
|
2801
2801
|
};
|
|
2802
2802
|
function X(t, e, i) {
|
|
2803
|
-
return (e =
|
|
2803
|
+
return (e = Tr(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2805
|
+
function Tr(t) {
|
|
2806
2806
|
var e = Dr(t, "string");
|
|
2807
2807
|
return typeof e == "symbol" ? e : e + "";
|
|
2808
2808
|
}
|
|
@@ -2828,7 +2828,7 @@ class Cr {
|
|
|
2828
2828
|
}
|
|
2829
2829
|
async init() {
|
|
2830
2830
|
var e;
|
|
2831
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(
|
|
2831
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), te(b(wi, {
|
|
2832
2832
|
state: this.state
|
|
2833
2833
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2834
2834
|
}
|
|
@@ -2902,7 +2902,7 @@ class Cr {
|
|
|
2902
2902
|
breakStatus: "noAdPreloaded"
|
|
2903
2903
|
});
|
|
2904
2904
|
};
|
|
2905
|
-
|
|
2905
|
+
T(() => {
|
|
2906
2906
|
this.adsIsShowing = !0, this.state.afterAd.value = u, this.state.adBreakDone.value = f, this.state.src.value = this.processUrl(i.params.url), this.state.adLinkClicked.value = n, this.state.adError.value = y, this.state.visible.value = !0;
|
|
2907
2907
|
});
|
|
2908
2908
|
break;
|
|
@@ -2915,32 +2915,32 @@ class Cr {
|
|
|
2915
2915
|
breakStatus: "ignored"
|
|
2916
2916
|
}), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
|
|
2917
2917
|
const u = () => {
|
|
2918
|
-
var
|
|
2919
|
-
this.adsIsShowing = !1, (
|
|
2918
|
+
var w;
|
|
2919
|
+
this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
|
|
2920
2920
|
}, f = {
|
|
2921
2921
|
breakType: e.type,
|
|
2922
2922
|
breakName: e.name,
|
|
2923
2923
|
breakFormat: "reward",
|
|
2924
2924
|
breakStatus: "ignored"
|
|
2925
2925
|
}, y = () => {
|
|
2926
|
-
var
|
|
2927
|
-
this.adsIsShowing = !1, f.breakStatus = "dismissed", (
|
|
2926
|
+
var w;
|
|
2927
|
+
this.adsIsShowing = !1, f.breakStatus = "dismissed", (w = e.adDismissed) == null || w.call(e);
|
|
2928
2928
|
}, v = () => {
|
|
2929
|
-
var
|
|
2930
|
-
this.adsIsShowing = !1, f.breakStatus = "viewed", (
|
|
2929
|
+
var w;
|
|
2930
|
+
this.adsIsShowing = !1, f.breakStatus = "viewed", (w = e.adViewed) == null || w.call(e);
|
|
2931
2931
|
}, g = () => {
|
|
2932
|
-
var
|
|
2933
|
-
this.adsIsShowing = !1, (
|
|
2932
|
+
var w;
|
|
2933
|
+
this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, f);
|
|
2934
2934
|
}, p = () => {
|
|
2935
2935
|
this.adsIsShowing = !1, f.breakStatus = "noAdPreloaded";
|
|
2936
2936
|
};
|
|
2937
|
-
|
|
2937
|
+
T(() => {
|
|
2938
2938
|
this.state.afterAd.value = u, this.state.adDismissed.value = y, this.state.adViewed.value = v, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = p;
|
|
2939
2939
|
});
|
|
2940
2940
|
const _ = () => {
|
|
2941
|
-
var
|
|
2941
|
+
var w;
|
|
2942
2942
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
2943
|
-
(
|
|
2943
|
+
(w = e.adBreakDone) == null || w.call(e, {
|
|
2944
2944
|
breakType: e.type,
|
|
2945
2945
|
breakName: e.name,
|
|
2946
2946
|
breakFormat: "reward",
|
|
@@ -2948,7 +2948,7 @@ class Cr {
|
|
|
2948
2948
|
});
|
|
2949
2949
|
return;
|
|
2950
2950
|
}
|
|
2951
|
-
this.adsIsShowing = !0,
|
|
2951
|
+
this.adsIsShowing = !0, T(() => {
|
|
2952
2952
|
this.state.src.value = this.processUrl(i.params.url), this.state.visible.value = !0;
|
|
2953
2953
|
});
|
|
2954
2954
|
};
|
|
@@ -2977,7 +2977,7 @@ function Nr(t, e) {
|
|
|
2977
2977
|
}
|
|
2978
2978
|
return (e === "string" ? String : Number)(t);
|
|
2979
2979
|
}
|
|
2980
|
-
class
|
|
2980
|
+
class fo {
|
|
2981
2981
|
constructor(e) {
|
|
2982
2982
|
if (G(this, "context", void 0), G(this, "contextInfo", void 0), G(this, "providers", {}), G(this, "channelPolicy", void 0), G(this, "adsActionDetection", void 0), G(this, "adsTrackSerializer", void 0), G(this, "initialized", !1), G(this, "adsIsShowing", !1), G(this, "lastAdBreak", void 0), G(this, "initializedTimeStamp", Date.now()), e)
|
|
2983
2983
|
this.context = e, this.channelPolicy = new yn(this.context), this.adsActionDetection = new Li(this.context), this.adsTrackSerializer = new Wt(this.context), this.contextInfo = this.context.getContextInfo();
|
|
@@ -3032,7 +3032,7 @@ class vo {
|
|
|
3032
3032
|
switch (n.provider) {
|
|
3033
3033
|
case "ADSENSE":
|
|
3034
3034
|
case "ADSENSE_ADMOB": {
|
|
3035
|
-
const r = new
|
|
3035
|
+
const r = new wn(this.context, n.params);
|
|
3036
3036
|
await r.init(), this.providers[n.provider] = r;
|
|
3037
3037
|
break;
|
|
3038
3038
|
}
|
|
@@ -3133,15 +3133,15 @@ class vo {
|
|
|
3133
3133
|
return;
|
|
3134
3134
|
}
|
|
3135
3135
|
let p = !0, _ = null;
|
|
3136
|
-
const
|
|
3136
|
+
const w = new Ti(this.context);
|
|
3137
3137
|
for (this.adsActionDetection.adBreakIsShowing = !0; g.length > 0; ) {
|
|
3138
3138
|
const M = g.shift(), L = this.providers[M.provider];
|
|
3139
3139
|
if (L) {
|
|
3140
|
-
const [V,
|
|
3140
|
+
const [V, E] = await w.callAdBreakAndContinue(L, e, M, (ht) => {
|
|
3141
3141
|
var ft;
|
|
3142
3142
|
this.adsIsShowing = ht, (ft = this.context.eventEmitter) == null || ft.emit("isAdShowing", ht);
|
|
3143
3143
|
});
|
|
3144
|
-
p = V, _ =
|
|
3144
|
+
p = V, _ = E;
|
|
3145
3145
|
} else
|
|
3146
3146
|
p = !0, _ = {
|
|
3147
3147
|
breakType: e.type,
|
|
@@ -3350,7 +3350,7 @@ class Vr {
|
|
|
3350
3350
|
}
|
|
3351
3351
|
var Le = /* @__PURE__ */ ((t) => (t[t.ADS_REQUEST_NETWORK_ERROR = 1012] = "ADS_REQUEST_NETWORK_ERROR", t[t.ASSET_FALLBACK_FAILED = 1021] = "ASSET_FALLBACK_FAILED", t[t.AUTOPLAY_DISALLOWED = 1205] = "AUTOPLAY_DISALLOWED", t[t.COMPANION_AD_LOADING_FAILED = 603] = "COMPANION_AD_LOADING_FAILED", t[t.COMPANION_REQUIRED_ERROR = 602] = "COMPANION_REQUIRED_ERROR", t[t.FAILED_TO_REQUEST_ADS = 1005] = "FAILED_TO_REQUEST_ADS", t[t.INVALID_AD_TAG = 1013] = "INVALID_AD_TAG", t[t.INVALID_ADX_EXTENSION = 1105] = "INVALID_ADX_EXTENSION", t[t.INVALID_ARGUMENTS = 1101] = "INVALID_ARGUMENTS", t[t.NONLINEAR_DIMENSIONS_ERROR = 501] = "NONLINEAR_DIMENSIONS_ERROR", t[t.OVERLAY_AD_LOADING_FAILED = 502] = "OVERLAY_AD_LOADING_FAILED", t[t.OVERLAY_AD_PLAYING_FAILED = 500] = "OVERLAY_AD_PLAYING_FAILED", t[t.STREAM_INITIALIZATION_FAILED = 1020] = "STREAM_INITIALIZATION_FAILED", t[t.UNKNOWN_AD_RESPONSE = 1010] = "UNKNOWN_AD_RESPONSE", t[t.UNKNOWN_ERROR = 900] = "UNKNOWN_ERROR", t[t.UNSUPPORTED_LOCALE = 1011] = "UNSUPPORTED_LOCALE", t[t.VAST_ASSET_NOT_FOUND = 1007] = "VAST_ASSET_NOT_FOUND", t[t.VAST_EMPTY_RESPONSE = 1009] = "VAST_EMPTY_RESPONSE", t[t.VAST_LINEAR_ASSET_MISMATCH = 403] = "VAST_LINEAR_ASSET_MISMATCH", t[t.VAST_LOAD_TIMEOUT = 301] = "VAST_LOAD_TIMEOUT", t[t.VAST_MALFORMED_RESPONSE = 100] = "VAST_MALFORMED_RESPONSE", t[t.VAST_MEDIA_LOAD_TIMEOUT = 402] = "VAST_MEDIA_LOAD_TIMEOUT", t[t.VAST_NO_ADS_AFTER_WRAPPER = 303] = "VAST_NO_ADS_AFTER_WRAPPER", t[t.VAST_NONLINEAR_ASSET_MISMATCH = 503] = "VAST_NONLINEAR_ASSET_MISMATCH", t[t.VAST_PROBLEM_DISPLAYING_MEDIA_FILE = 405] = "VAST_PROBLEM_DISPLAYING_MEDIA_FILE", t[t.VAST_SCHEMA_VALIDATION_ERROR = 101] = "VAST_SCHEMA_VALIDATION_ERROR", t[t.VAST_TOO_MANY_REDIRECTS = 302] = "VAST_TOO_MANY_REDIRECTS", t[t.VAST_TRAFFICKING_ERROR = 200] = "VAST_TRAFFICKING_ERROR", t[t.VAST_UNEXPECTED_DURATION_ERROR = 202] = "VAST_UNEXPECTED_DURATION_ERROR", t[t.VAST_UNEXPECTED_LINEARITY = 201] = "VAST_UNEXPECTED_LINEARITY", t[t.VAST_UNSUPPORTED_VERSION = 102] = "VAST_UNSUPPORTED_VERSION", t[t.VAST_WRAPPER_ERROR = 300] = "VAST_WRAPPER_ERROR", t[t.VIDEO_PLAY_ERROR = 400] = "VIDEO_PLAY_ERROR", t[t.VPAID_ERROR = 901] = "VPAID_ERROR", t))(Le || {});
|
|
3352
3352
|
const zr = () => {
|
|
3353
|
-
const t =
|
|
3353
|
+
const t = S(!1), e = S(!1), i = S(null), n = yt(), r = yt();
|
|
3354
3354
|
return {
|
|
3355
3355
|
visible: t,
|
|
3356
3356
|
canRetry: e,
|
|
@@ -3419,40 +3419,41 @@ const zr = () => {
|
|
|
3419
3419
|
videoRef: s,
|
|
3420
3420
|
adContainerRef: a
|
|
3421
3421
|
} = i, d = () => {
|
|
3422
|
-
r.value && (r.value(),
|
|
3422
|
+
r.value && (r.value(), T(() => {
|
|
3423
3423
|
r.value = null, o.value = !1;
|
|
3424
3424
|
}));
|
|
3425
3425
|
};
|
|
3426
3426
|
return Ue(() => {
|
|
3427
3427
|
e();
|
|
3428
|
-
}, [e]),
|
|
3428
|
+
}, [e]), b("div", {
|
|
3429
3429
|
className: Kr,
|
|
3430
3430
|
"data-visible": n.value,
|
|
3431
|
-
children:
|
|
3431
|
+
children: b("div", {
|
|
3432
3432
|
className: "ads-wrapper",
|
|
3433
|
-
children: [
|
|
3433
|
+
children: [b("video", {
|
|
3434
3434
|
ref: s,
|
|
3435
3435
|
width: "100%",
|
|
3436
|
-
height: "100%"
|
|
3437
|
-
|
|
3436
|
+
height: "100%",
|
|
3437
|
+
playsInline: !0
|
|
3438
|
+
}), b("div", {
|
|
3438
3439
|
id: "ad-container",
|
|
3439
3440
|
ref: a
|
|
3440
|
-
}), o.value ?
|
|
3441
|
+
}), o.value ? b("div", {
|
|
3441
3442
|
className: "retry-button",
|
|
3442
3443
|
onClick: d,
|
|
3443
|
-
children:
|
|
3444
|
+
children: b("svg", {
|
|
3444
3445
|
width: "64",
|
|
3445
3446
|
height: "64",
|
|
3446
3447
|
viewBox: "0 0 64 64",
|
|
3447
3448
|
fill: "none",
|
|
3448
3449
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3449
|
-
children: [
|
|
3450
|
+
children: [b("circle", {
|
|
3450
3451
|
cx: "32",
|
|
3451
3452
|
cy: "32",
|
|
3452
3453
|
r: "32",
|
|
3453
3454
|
fill: "#141416",
|
|
3454
3455
|
fillOpacity: "0.3"
|
|
3455
|
-
}),
|
|
3456
|
+
}), b("path", {
|
|
3456
3457
|
d: "M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",
|
|
3457
3458
|
fill: "white"
|
|
3458
3459
|
})]
|
|
@@ -3498,7 +3499,7 @@ class Wr {
|
|
|
3498
3499
|
}, s.onerror = o, document.head.appendChild(s);
|
|
3499
3500
|
}
|
|
3500
3501
|
}), this.adsOverlay = document.createElement("div"), document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
3501
|
-
te(
|
|
3502
|
+
te(b(Gr, {
|
|
3502
3503
|
state: this.state,
|
|
3503
3504
|
onReady: () => {
|
|
3504
3505
|
this.ima = new Vr(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
@@ -3518,6 +3519,7 @@ class Wr {
|
|
|
3518
3519
|
var l;
|
|
3519
3520
|
this.ima.destroy(), this.state.visible.value = !1, (l = i.onAdCompleted) == null || l.call(i, d);
|
|
3520
3521
|
}, o = (d) => {
|
|
3522
|
+
var c;
|
|
3521
3523
|
let l = !1;
|
|
3522
3524
|
switch (d.raw.getErrorCode()) {
|
|
3523
3525
|
case Le.AUTOPLAY_DISALLOWED:
|
|
@@ -3532,13 +3534,15 @@ class Wr {
|
|
|
3532
3534
|
}
|
|
3533
3535
|
}
|
|
3534
3536
|
if (!l)
|
|
3535
|
-
this.ima.destroy(),
|
|
3537
|
+
this.ima.destroy(), T(() => {
|
|
3538
|
+
this.state.canRetry.value = !1, this.state.retry.value = null, this.state.visible.value = !1;
|
|
3539
|
+
}), (c = i.onAdError) == null || c.call(i, d);
|
|
3536
3540
|
else {
|
|
3537
|
-
const
|
|
3541
|
+
const h = () => {
|
|
3538
3542
|
this.ima.destroy(), this.requestAd(i, n);
|
|
3539
3543
|
};
|
|
3540
|
-
|
|
3541
|
-
this.state.canRetry.value = !0, this.state.retry.value =
|
|
3544
|
+
T(() => {
|
|
3545
|
+
this.state.canRetry.value = !0, this.state.retry.value = h;
|
|
3542
3546
|
});
|
|
3543
3547
|
}
|
|
3544
3548
|
}, s = Object.assign({}, i);
|
|
@@ -3569,7 +3573,7 @@ class Xr {
|
|
|
3569
3573
|
constructor(e) {
|
|
3570
3574
|
q(this, "name", "OKSPIN"), q(this, "initialized", !1), q(this, "initCompleter", null), q(this, "context", void 0), q(this, "adsOverlay", null), q(this, "adsIsShowing", !1), q(this, "state", yi()), q(this, "init", async (i) => {
|
|
3571
3575
|
var n;
|
|
3572
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(
|
|
3576
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), te(b(_i, {
|
|
3573
3577
|
state: this.state
|
|
3574
3578
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3575
3579
|
}), q(this, "destroy", () => {
|
|
@@ -3593,7 +3597,7 @@ class Xr {
|
|
|
3593
3597
|
var c;
|
|
3594
3598
|
(c = i.onAdLoaded) == null || c.call(i, void 0);
|
|
3595
3599
|
};
|
|
3596
|
-
this.adsIsShowing = !0,
|
|
3600
|
+
this.adsIsShowing = !0, T(() => {
|
|
3597
3601
|
var c;
|
|
3598
3602
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.countdown.value = (c = n.params.countdown) != null ? c : 15, this.state.src.value = n.params.url, this.state.mode.value = "rewarded_insterstitial", this.state.visible.value = !0;
|
|
3599
3603
|
}), (l = i.onAdPlaying) == null || l.call(i, void 0);
|
|
@@ -3627,7 +3631,7 @@ class eo {
|
|
|
3627
3631
|
return o.has("joliSource") || o.set("joliSource", n.joliSource), o.get("osType") || o.set("osType", n.osType), o.get("runtimeType") || o.set("runtimeType", n.runtimeType), o.get("mode") || o.set("mode", "AFV"), o.get("deviceId") || o.set("deviceId", n.deviceId), o.get("statusBarHeight") || o.set("statusBarHeight", ((s = this.context.getWindowInfo().statusBarHeight) != null ? s : 0).toString()), r.search = o.toString(), r.toString();
|
|
3628
3632
|
}), z(this, "init", async (i) => {
|
|
3629
3633
|
var n;
|
|
3630
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(
|
|
3634
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), te(b(wi, {
|
|
3631
3635
|
state: this.state
|
|
3632
3636
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
3633
3637
|
}), z(this, "destroy", () => {
|
|
@@ -3657,7 +3661,7 @@ class eo {
|
|
|
3657
3661
|
var u;
|
|
3658
3662
|
(u = i.onAdError) == null || u.call(i, $.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
3659
3663
|
};
|
|
3660
|
-
this.adsIsShowing = !0,
|
|
3664
|
+
this.adsIsShowing = !0, T(() => {
|
|
3661
3665
|
this.state.adLoaded.value = o, this.state.adBreakDone.value = r, this.state.adLinkClicked.value = s, this.state.adError.value = a, this.state.src.value = this.processUrl(n.params.url), this.state.visible.value = !0;
|
|
3662
3666
|
}), (h = i.onAdPlaying) == null || h.call(i, void 0);
|
|
3663
3667
|
}), this.context = e;
|
|
@@ -3682,7 +3686,7 @@ function io(t, e) {
|
|
|
3682
3686
|
}
|
|
3683
3687
|
return (e === "string" ? String : Number)(t);
|
|
3684
3688
|
}
|
|
3685
|
-
class
|
|
3689
|
+
class vo {
|
|
3686
3690
|
constructor(e) {
|
|
3687
3691
|
if (pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "providers", {}), pe(this, "adsTrackSerializer", void 0), pe(this, "initialized", !1), e)
|
|
3688
3692
|
this.context = e, this.adsTrackSerializer = new Wt(e), this.contextInfo = this.context.getContextInfo();
|
|
@@ -3832,18 +3836,18 @@ function ro(t, e) {
|
|
|
3832
3836
|
}
|
|
3833
3837
|
return (e === "string" ? String : Number)(t);
|
|
3834
3838
|
}
|
|
3835
|
-
class
|
|
3839
|
+
class po extends Error {
|
|
3836
3840
|
constructor(e) {
|
|
3837
3841
|
super(e), ne(this, "name", void 0), ne(this, "message", void 0), ne(this, "errMsg", void 0), ne(this, "code", void 0), ne(this, "data", void 0), ne(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
3838
3842
|
}
|
|
3839
3843
|
}
|
|
3840
3844
|
export {
|
|
3841
3845
|
$ as AFVWrappedError,
|
|
3842
|
-
|
|
3846
|
+
wn as GoogleAdSenseProvider,
|
|
3843
3847
|
Wr as GoogleIMAProvider,
|
|
3844
|
-
|
|
3845
|
-
|
|
3848
|
+
fo as JoliboxAdsForGame,
|
|
3849
|
+
vo as JoliboxAdsForVideo,
|
|
3846
3850
|
Rr as OKSpinForGameProvider,
|
|
3847
3851
|
Xr as OKSpinForVideoProvider,
|
|
3848
|
-
|
|
3852
|
+
po as ResponseError
|
|
3849
3853
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jolibox/ads",
|
|
3
3
|
"description": "This project is for integrating Jolibox ads providers",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.33",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
],
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jolibox/common": "1.1.
|
|
15
|
+
"@jolibox/common": "1.1.33",
|
|
16
16
|
"@emotion/css": "11.13.5",
|
|
17
|
-
"@jolibox/types": "1.1.
|
|
17
|
+
"@jolibox/types": "1.1.33",
|
|
18
18
|
"preact": "10.26.4",
|
|
19
19
|
"@preact/signals": "2.0.4"
|
|
20
20
|
},
|