@jolibox/ads 1.4.6 → 1.4.8
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/afv/index.d.ts +12 -1
- package/dist/index.js +1050 -1009
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var ln = Object.defineProperty, un = Object.defineProperties;
|
|
2
|
+
var cn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var We = Object.getOwnPropertySymbols;
|
|
4
|
+
var Kt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var qt = (t, e, i) => e in t ? ln(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, yt = (t, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
7
|
+
Kt.call(e, i) && qt(t, i, e[i]);
|
|
8
|
+
if (We)
|
|
9
|
+
for (var i of We(e))
|
|
10
|
+
zt.call(e, i) && qt(t, i, e[i]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, Wt = (t, e) => un(t, cn(e));
|
|
13
|
+
var Ht = (t, e) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var n in t)
|
|
16
|
-
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var n of
|
|
19
|
-
e.indexOf(n) < 0 &&
|
|
16
|
+
Kt.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
17
|
+
if (t != null && We)
|
|
18
|
+
for (var n of We(t))
|
|
19
|
+
e.indexOf(n) < 0 && zt.call(t, n) && (i[n] = t[n]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
|
-
import { options as
|
|
23
|
-
import { useRef as
|
|
24
|
-
import { registerCanIUseContext as
|
|
25
|
-
var
|
|
22
|
+
import { options as Te, Component as hn, isValidElement as fn } from "preact";
|
|
23
|
+
import { useRef as mi, useLayoutEffect as vn, useEffect as Ce, useMemo as yn, useState as _e, useCallback as kt, render as ye, createRef as Jt } from "preact/compat";
|
|
24
|
+
import { registerCanIUseContext as gn, invokeNative as gt, offNative as wn, onNative as An } from "@jolibox/native-bridge";
|
|
25
|
+
var Si = Object.defineProperty, bn = Object.defineProperties, pn = Object.getOwnPropertyDescriptors, Yt = Object.getOwnPropertySymbols, _n = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable, Xt = (t, e, i) => e in t ? Si(t, e, {
|
|
26
26
|
enumerable: !0,
|
|
27
27
|
configurable: !0,
|
|
28
28
|
writable: !0,
|
|
29
29
|
value: i
|
|
30
|
-
}) : t[e] = i,
|
|
30
|
+
}) : t[e] = i, Sn = (t, e) => {
|
|
31
31
|
for (var i in e || (e = {}))
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
for (var i of
|
|
35
|
-
|
|
32
|
+
_n.call(e, i) && Xt(t, i, e[i]);
|
|
33
|
+
if (Yt)
|
|
34
|
+
for (var i of Yt(e))
|
|
35
|
+
mn.call(e, i) && Xt(t, i, e[i]);
|
|
36
36
|
return t;
|
|
37
|
-
},
|
|
37
|
+
}, En = (t, e) => bn(t, pn(e)), kn = (t, e) => {
|
|
38
38
|
for (var i in e)
|
|
39
|
-
|
|
39
|
+
Si(t, i, {
|
|
40
40
|
get: e[i],
|
|
41
41
|
enumerable: !0
|
|
42
42
|
});
|
|
43
|
-
},
|
|
43
|
+
}, Ei = (t, e, i, n) => {
|
|
44
44
|
for (var r = e, o = t.length - 1, s; o >= 0; o--)
|
|
45
45
|
(s = t[o]) && (r = s(r) || r);
|
|
46
46
|
return r;
|
|
47
|
-
},
|
|
47
|
+
}, In = (t, e, i) => new Promise((n, r) => {
|
|
48
48
|
var o = (d) => {
|
|
49
49
|
try {
|
|
50
50
|
a(i.next(d));
|
|
@@ -89,26 +89,26 @@ if (typeof window != "undefined" && !window.AbortController) {
|
|
|
89
89
|
n.call(this, i);
|
|
90
90
|
}, window.AbortController = t, window.AbortSignal = e;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function xn(t) {
|
|
93
93
|
return new Promise((e) => {
|
|
94
94
|
setTimeout(() => {
|
|
95
95
|
e();
|
|
96
96
|
}, t);
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function xn(t) {
|
|
100
|
-
return typeof t == "string";
|
|
101
|
-
}
|
|
102
99
|
function Rn(t) {
|
|
103
|
-
return typeof t == "
|
|
100
|
+
return typeof t == "string";
|
|
104
101
|
}
|
|
105
102
|
function Tn(t) {
|
|
106
|
-
return
|
|
103
|
+
return typeof t == "undefined";
|
|
107
104
|
}
|
|
108
105
|
function Cn(t) {
|
|
106
|
+
return Tn(t) || t === null;
|
|
107
|
+
}
|
|
108
|
+
function On(t) {
|
|
109
109
|
return typeof t == "function";
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ki(t) {
|
|
112
112
|
let e = t, i = null, n = function() {
|
|
113
113
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
114
114
|
o[s] = arguments[s];
|
|
@@ -116,29 +116,29 @@ function Ei(t) {
|
|
|
116
116
|
};
|
|
117
117
|
return n.prototype = e.prototype, n;
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
function
|
|
119
|
+
var Dn = ((t) => (t[t.DEVELOPER_FILE_NOT_FOUND = 0] = "DEVELOPER_FILE_NOT_FOUND", t[t.INTERNAL_IOS_CAN_NOT_FOUND_PKG = 1] = "INTERNAL_IOS_CAN_NOT_FOUND_PKG", t[t.USER_IOS_LOAD_TIMEOUT = 2] = "USER_IOS_LOAD_TIMEOUT", t[t.INTERNAL_IOS_PKG_LOAD_ERROR = 3] = "INTERNAL_IOS_PKG_LOAD_ERROR", t[t.INTERNAL_IOS_PKG_PARSE_FAIL = 4] = "INTERNAL_IOS_PKG_PARSE_FAIL", t[t.USER_IOS_GET_EMPTY_DATA = 5] = "USER_IOS_GET_EMPTY_DATA", t[t.USER_ANDROID_GET_PKG_FAIL = 6] = "USER_ANDROID_GET_PKG_FAIL", t[t.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE = 7] = "DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE", t))(Dn || {});
|
|
120
|
+
function Le(t) {
|
|
121
121
|
return function() {
|
|
122
122
|
var e, i;
|
|
123
123
|
((i = (e = globalThis.VConsole) == null ? void 0 : e[t]) != null ? i : globalThis.console[t])(...arguments);
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
var
|
|
127
|
-
log:
|
|
128
|
-
warn:
|
|
129
|
-
info:
|
|
130
|
-
error:
|
|
131
|
-
debug:
|
|
126
|
+
var Pn = {
|
|
127
|
+
log: Le("log"),
|
|
128
|
+
warn: Le("warn"),
|
|
129
|
+
info: Le("info"),
|
|
130
|
+
error: Le("error"),
|
|
131
|
+
debug: Le("debug")
|
|
132
132
|
};
|
|
133
133
|
Object.assign(globalThis, {
|
|
134
|
-
logger:
|
|
134
|
+
logger: Pn
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
globalThis[Yt] || (globalThis[Yt] = Pn);
|
|
138
|
-
var Qt = Symbol.for("Jolibox.canIUseMap.native"), Nn = {};
|
|
136
|
+
var Qt = Symbol.for("Jolibox.canIUseMap"), Nn = {};
|
|
139
137
|
globalThis[Qt] || (globalThis[Qt] = Nn);
|
|
140
|
-
var
|
|
141
|
-
|
|
138
|
+
var Zt = Symbol.for("Jolibox.canIUseMap.native"), Ln = {};
|
|
139
|
+
globalThis[Zt] || (globalThis[Zt] = Ln);
|
|
140
|
+
var Ii = ((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))(Ii || {}), xi = ((t) => (t.MiniGame = "mini-game", t.MiniDrama = "mini-drama", t.App = "app", t.WebSDK = "web-sdk", t.AppSDK = "app-sdk", t))(xi || {}), Ri = ((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))(Ri || {}), ei = ["name", "params"], Bn = ["name", "type", "location", "target", "extra", "timestamp", "userId"], Mn = ["platform", "os", "appVersion", "appId", "model", "brand", "uuid", "jsSdkVersion", "extra"];
|
|
141
|
+
function Qe(t, e) {
|
|
142
142
|
return e.map((i) => {
|
|
143
143
|
if (i === "params" && t[i]) {
|
|
144
144
|
let n = t[i];
|
|
@@ -147,18 +147,18 @@ function Ye(t, e) {
|
|
|
147
147
|
return t[i];
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
let e = t.location ?
|
|
152
|
-
return
|
|
150
|
+
function $n(t) {
|
|
151
|
+
let e = t.location ? Qe(t.location, ei) : null, i = t.target ? Qe(t.target, ei) : null;
|
|
152
|
+
return Qe(En(Sn({}, t), {
|
|
153
153
|
location: e,
|
|
154
154
|
target: i
|
|
155
|
-
}),
|
|
155
|
+
}), Bn);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
let e = t.events.map((n) =>
|
|
157
|
+
function Fn(t) {
|
|
158
|
+
let e = t.events.map((n) => $n(n)), i = Qe(t.device, Mn);
|
|
159
159
|
return [t.protocolVersion, e, i, t.project];
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Un() {
|
|
162
162
|
if (typeof window == "undefined")
|
|
163
163
|
return {
|
|
164
164
|
getItem: () => null,
|
|
@@ -191,16 +191,16 @@ function Fn() {
|
|
|
191
191
|
return console.warn("Failed to get original localStorage, fallback to default implementation", t), localStorage;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
!
|
|
197
|
-
var
|
|
194
|
+
Un();
|
|
195
|
+
var Ie = typeof window == "undefined", st = () => !Ie && !!(navigator.userAgent || "").includes("JoliboxPlatformSDK");
|
|
196
|
+
!Ie && (navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPod") || navigator.userAgent.includes("iPad") || navigator.userAgent.includes("iPhone OS")), !Ie && navigator.userAgent.includes("Android"), !Ie && navigator.userAgent.includes("Mac"), !Ie && navigator.userAgent.includes("FB_IAB"), !Ie && !navigator.userAgent.includes("iPhone") && navigator.userAgent.includes("Android");
|
|
197
|
+
var It = class xt {
|
|
198
198
|
constructor(e) {
|
|
199
|
-
this.element = e, this.next =
|
|
199
|
+
this.element = e, this.next = xt.Undefined, this.prev = xt.Undefined;
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
-
|
|
203
|
-
var D =
|
|
202
|
+
It.Undefined = new It(void 0);
|
|
203
|
+
var D = It, jn = class {
|
|
204
204
|
constructor() {
|
|
205
205
|
this._first = D.Undefined, this._last = D.Undefined, this._size = 0;
|
|
206
206
|
}
|
|
@@ -266,17 +266,17 @@ var D = kt, Un = class {
|
|
|
266
266
|
for (; t !== D.Undefined; )
|
|
267
267
|
yield t.element, t = t.next;
|
|
268
268
|
}
|
|
269
|
-
},
|
|
269
|
+
}, Vn = 0, Be = class {
|
|
270
270
|
constructor(e) {
|
|
271
|
-
this.value = e, this.id =
|
|
271
|
+
this.value = e, this.id = Vn++;
|
|
272
272
|
}
|
|
273
|
-
},
|
|
273
|
+
}, je = class {
|
|
274
274
|
constructor(e) {
|
|
275
275
|
this.options = e, this._size = 0;
|
|
276
276
|
}
|
|
277
277
|
dispose(e) {
|
|
278
278
|
var i, n;
|
|
279
|
-
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof
|
|
279
|
+
this._disposed || (this._disposed = !0, this._listeners && (e ? (this._listeners instanceof Be && (this._listeners = [this._listeners]), this._listeners = this._listeners.filter((r) => (r == null ? void 0 : r.value) === e)) : (this._listeners = void 0, this._size = 0)), (n = (i = this.options) == null ? void 0 : i.onDidRemoveLastListener) == null || n.call(i));
|
|
280
280
|
}
|
|
281
281
|
get event() {
|
|
282
282
|
return this._event != null || (this._event = (e, i) => {
|
|
@@ -286,15 +286,15 @@ var D = kt, Un = class {
|
|
|
286
286
|
console.info("[Jolibox SDK] Emitter is _disposed");
|
|
287
287
|
};
|
|
288
288
|
i && (e = e.bind(i));
|
|
289
|
-
let u = new
|
|
290
|
-
return this._listeners ? this._listeners instanceof
|
|
289
|
+
let u = new Be(e);
|
|
290
|
+
return this._listeners ? this._listeners instanceof Be ? this._listeners = [this._listeners, u] : this._listeners.push(u) : ((r = (n = this.options) == null ? void 0 : n.onWillAddFirstListener) == null || r.call(n, this), this._listeners = u, (s = (o = this.options) == null ? void 0 : o.onDidFirstListener) == null || s.call(o, this)), (d = (a = this.options) == null ? void 0 : a.onDidAddListener) == null || d.call(a, this), this._size++, () => {
|
|
291
291
|
var l, c, h, f;
|
|
292
292
|
if (!this._disposed) {
|
|
293
|
-
if (this._listeners instanceof
|
|
293
|
+
if (this._listeners instanceof Be)
|
|
294
294
|
this._listeners.id === u.id && (this._listeners = void 0, this._size = 0, (c = (l = this.options) == null ? void 0 : l.onDidRemoveLastListener) == null || c.call(l));
|
|
295
295
|
else if (this._listeners) {
|
|
296
|
-
let
|
|
297
|
-
|
|
296
|
+
let v = this._listeners.indexOf(u);
|
|
297
|
+
v >= 0 && (this._listeners.splice(v, 1), this._size--, this._size === 0 && ((f = (h = this.options) == null ? void 0 : h.onDidRemoveLastListener) == null || f.call(h)));
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
};
|
|
@@ -316,19 +316,19 @@ var D = kt, Un = class {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
fire(e) {
|
|
319
|
-
this._listeners && (this._listeners instanceof
|
|
319
|
+
this._listeners && (this._listeners instanceof Be ? this._deliver(this._listeners, e) : this._listeners.forEach((i) => this._deliver(i, e)));
|
|
320
320
|
}
|
|
321
321
|
hasListeners() {
|
|
322
322
|
return this._size > 0;
|
|
323
323
|
}
|
|
324
|
-
},
|
|
324
|
+
}, Gn = class {
|
|
325
325
|
constructor() {
|
|
326
326
|
this.listeners = /* @__PURE__ */ new Map(), this.listerHandlerMap = /* @__PURE__ */ new WeakMap(), this.cachedEventQueue = /* @__PURE__ */ new Map();
|
|
327
327
|
}
|
|
328
328
|
on(t, e) {
|
|
329
329
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
330
330
|
var n;
|
|
331
|
-
let r = (n = this.listeners.get(t)) != null ? n : new
|
|
331
|
+
let r = (n = this.listeners.get(t)) != null ? n : new je(), o = (d) => e(...d.args), s = r.event(o);
|
|
332
332
|
this.listerHandlerMap.set(e, {
|
|
333
333
|
handler: o,
|
|
334
334
|
dispose: s
|
|
@@ -349,7 +349,7 @@ var D = kt, Un = class {
|
|
|
349
349
|
let e = this.listeners.get(t), i = this.cachedEventQueue.get(t);
|
|
350
350
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
351
351
|
r[o - 1] = arguments[o];
|
|
352
|
-
i || (i = new
|
|
352
|
+
i || (i = new jn(), this.cachedEventQueue.set(t, i)), i.push({
|
|
353
353
|
args: r
|
|
354
354
|
}), e && e.fire({
|
|
355
355
|
event: t,
|
|
@@ -363,20 +363,20 @@ var D = kt, Un = class {
|
|
|
363
363
|
};
|
|
364
364
|
this.on(t, n, !1);
|
|
365
365
|
}
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
None: () =>
|
|
369
|
-
filter: () =>
|
|
370
|
-
once: () =>
|
|
371
|
-
toPromise: () =>
|
|
366
|
+
}, Rt = {};
|
|
367
|
+
kn(Rt, {
|
|
368
|
+
None: () => qn,
|
|
369
|
+
filter: () => zn,
|
|
370
|
+
once: () => Ti,
|
|
371
|
+
toPromise: () => Kn
|
|
372
372
|
});
|
|
373
|
-
var
|
|
373
|
+
var qn = () => (console.log("[Jolibox SDK] None Event"), () => {
|
|
374
374
|
console.log("[Jolibox SDK] None Event dispose");
|
|
375
375
|
});
|
|
376
|
-
function
|
|
377
|
-
return new Promise((e) =>
|
|
376
|
+
function Kn(t) {
|
|
377
|
+
return new Promise((e) => Ti(t)(e));
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Ti(t) {
|
|
380
380
|
return function(e) {
|
|
381
381
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n = !1;
|
|
382
382
|
return t((r) => {
|
|
@@ -385,52 +385,52 @@ function Ri(t) {
|
|
|
385
385
|
}, null);
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function zn(t, e) {
|
|
389
389
|
return ((i) => {
|
|
390
390
|
let n = {
|
|
391
391
|
onWillAddFirstListener() {
|
|
392
392
|
i(r.fire, r);
|
|
393
393
|
}
|
|
394
|
-
}, r = new
|
|
394
|
+
}, r = new je(n);
|
|
395
395
|
return r.event;
|
|
396
396
|
})(function(i) {
|
|
397
397
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
398
398
|
return t((r) => e(r) && i.call(n, r), null);
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
var
|
|
402
|
-
let t = new
|
|
403
|
-
return globalThis[
|
|
401
|
+
var wt = Symbol.for("Jolibox.hostEmitter"), Wn = () => {
|
|
402
|
+
let t = new Gn();
|
|
403
|
+
return globalThis[wt] || (globalThis[wt] = {
|
|
404
404
|
on: t.on.bind(t),
|
|
405
405
|
off: t.off.bind(t),
|
|
406
406
|
emit: t.emit.bind(t),
|
|
407
407
|
once: t.once.bind(t)
|
|
408
|
-
}), globalThis[
|
|
408
|
+
}), globalThis[wt];
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
function
|
|
410
|
+
Wn();
|
|
411
|
+
function Hn(t, e) {
|
|
412
412
|
let i = Math.min(t.length, e.length);
|
|
413
413
|
for (let n = 0; n < i; n++)
|
|
414
|
-
|
|
414
|
+
Jn(t[n], e[n]);
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
if (
|
|
416
|
+
function Jn(t, e) {
|
|
417
|
+
if (Rn(e)) {
|
|
418
418
|
if (typeof t !== e)
|
|
419
419
|
throw new Error(`argument does not match constraint: typeof ${e}`);
|
|
420
|
-
} else if (
|
|
420
|
+
} else if (On(e)) {
|
|
421
421
|
try {
|
|
422
422
|
if (t instanceof e)
|
|
423
423
|
return;
|
|
424
424
|
} catch (i) {
|
|
425
425
|
}
|
|
426
|
-
if (!
|
|
426
|
+
if (!Cn(t) && t.constructor === e || e.length === 1 && e.call(void 0, t) === !0)
|
|
427
427
|
return;
|
|
428
428
|
throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true");
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var Tt = class {
|
|
432
432
|
constructor() {
|
|
433
|
-
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new
|
|
433
|
+
this._commands = /* @__PURE__ */ new Map(), this._onDidRegisterCommand = new je(), this.onDidRegisterCommand = this._onDidRegisterCommand.event, console.log("[Jolibox SDK] command registry");
|
|
434
434
|
}
|
|
435
435
|
registerCommand(t) {
|
|
436
436
|
if (!t)
|
|
@@ -443,7 +443,7 @@ var Rt = class {
|
|
|
443
443
|
t.handler = function() {
|
|
444
444
|
for (var r = arguments.length, o = new Array(r), s = 0; s < r; s++)
|
|
445
445
|
o[s] = arguments[s];
|
|
446
|
-
return
|
|
446
|
+
return Hn(o, i), n(...o);
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
let {
|
|
@@ -463,19 +463,19 @@ var Rt = class {
|
|
|
463
463
|
return t;
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
|
-
|
|
467
|
-
var
|
|
466
|
+
Tt = Ei([ki], Tt);
|
|
467
|
+
var ti = class {
|
|
468
468
|
constructor() {
|
|
469
|
-
this._onWillExecuteCommand = new
|
|
469
|
+
this._onWillExecuteCommand = new je(), this.onWillExecuteCommand = this._onWillExecuteCommand.event, this._onDidExecuteCommand = new je(), this.onDidExecuteCommand = this._onDidExecuteCommand.event, this.registry = new Tt(), this._starActivation = null;
|
|
470
470
|
}
|
|
471
471
|
_activateStar() {
|
|
472
|
-
return this._starActivation || (this._starActivation =
|
|
472
|
+
return this._starActivation || (this._starActivation = xn(3e4)), this._starActivation;
|
|
473
473
|
}
|
|
474
474
|
executeCommand(e) {
|
|
475
475
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
476
476
|
n[r - 1] = arguments[r];
|
|
477
|
-
return
|
|
478
|
-
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(),
|
|
477
|
+
return In(this, null, function* () {
|
|
478
|
+
return this.registry.getCommand(e) ? this._tryExecuteCommand(e, n) : (yield Promise.all([Promise.race([this._activateStar(), Rt.toPromise(Rt.filter(this.registry.onDidRegisterCommand, (o) => o === e))])]), this._tryExecuteCommand(e, n));
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
executeCommandThowErr(e) {
|
|
@@ -521,11 +521,11 @@ var ei = class {
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
|
-
|
|
524
|
+
ti = Ei([ki], ti);
|
|
525
525
|
function H(t, e, i) {
|
|
526
|
-
return (e =
|
|
526
|
+
return (e = Yn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Yn(t) {
|
|
529
529
|
var e = Xn(t, "string");
|
|
530
530
|
return typeof e == "symbol" ? e : e + "";
|
|
531
531
|
}
|
|
@@ -541,7 +541,7 @@ function Xn(t, e) {
|
|
|
541
541
|
}
|
|
542
542
|
return (e === "string" ? String : Number)(t);
|
|
543
543
|
}
|
|
544
|
-
const
|
|
544
|
+
const Se = (t) => t ? function() {
|
|
545
545
|
try {
|
|
546
546
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
547
547
|
i[n] = arguments[n];
|
|
@@ -552,7 +552,7 @@ const _e = (t) => t ? function() {
|
|
|
552
552
|
} : () => {
|
|
553
553
|
console.log("wrapUserFunction: fn is undefined");
|
|
554
554
|
};
|
|
555
|
-
class
|
|
555
|
+
class Qn {
|
|
556
556
|
constructor(e) {
|
|
557
557
|
H(this, "context", void 0), H(this, "continueCallback", void 0), H(this, "adIsShowingCallback", void 0), H(this, "isBeforeAdCalled", !1), H(this, "isBeforeRewardCalled", !1), H(this, "isAdDismissedCalled", !1), H(this, "isAdViewedCalled", !1), H(this, "isAfterAdCalled", !1), H(this, "currentProvider", void 0), H(this, "currentClientParams", void 0), H(this, "adsHasResponse", !1), H(this, "videoChecker", window.document.createElement("video")), H(this, "contextInfo", void 0), H(this, "wrapShowAdFn", (i) => () => {
|
|
558
558
|
var o, s, a;
|
|
@@ -562,15 +562,15 @@ class Yn {
|
|
|
562
562
|
n = !1;
|
|
563
563
|
}), n = !this.videoChecker.paused, this.videoChecker.pause(), this.context.track("CallShowAdFn", Object.assign({}, {
|
|
564
564
|
userEvent: n
|
|
565
|
-
}, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",
|
|
565
|
+
}, this.paramsToTrack)), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD", yt({
|
|
566
566
|
userEvent: n
|
|
567
|
-
}, this.paramsToTrack)),
|
|
567
|
+
}, this.paramsToTrack)), st() && this.context.track("mmp_ad_impression", {
|
|
568
568
|
ad_network: (s = (o = this.currentProvider) == null ? void 0 : o.name) != null ? s : "",
|
|
569
569
|
ad_format: "rewarded",
|
|
570
570
|
module: "game",
|
|
571
571
|
game_id: this.contextInfo.objectId
|
|
572
572
|
}), (a = this.adIsShowingCallback) == null || a.call(this, !0);
|
|
573
|
-
const r =
|
|
573
|
+
const r = Se(i);
|
|
574
574
|
r == null || r();
|
|
575
575
|
}), this.context = e, this.contextInfo = e.getContextInfo();
|
|
576
576
|
}
|
|
@@ -595,8 +595,8 @@ class Yn {
|
|
|
595
595
|
var i, n, r, o;
|
|
596
596
|
if (this.adsHasResponse = !0, this.context.track("CallBeforeAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD", this.paramsToTrack), !this.isBeforeAdCalled) {
|
|
597
597
|
this.isBeforeAdCalled = !0;
|
|
598
|
-
const s =
|
|
599
|
-
s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0),
|
|
598
|
+
const s = Se(e);
|
|
599
|
+
s == null || s(), ((i = this.currentClientParams) == null ? void 0 : i.type) !== "reward" && ((n = this.adIsShowingCallback) == null || n.call(this, !0), st() && this.context.track("mmp_ad_impression", {
|
|
600
600
|
ad_network: (o = (r = this.currentProvider) == null ? void 0 : r.name) != null ? o : "",
|
|
601
601
|
ad_format: "interstitial",
|
|
602
602
|
module: "game",
|
|
@@ -614,7 +614,7 @@ class Yn {
|
|
|
614
614
|
return () => {
|
|
615
615
|
if (this.adsHasResponse = !0, !this.isAdDismissedCalled) {
|
|
616
616
|
this.isAdDismissedCalled = !0;
|
|
617
|
-
const i =
|
|
617
|
+
const i = Se(e);
|
|
618
618
|
i == null || i();
|
|
619
619
|
}
|
|
620
620
|
};
|
|
@@ -623,7 +623,7 @@ class Yn {
|
|
|
623
623
|
return () => {
|
|
624
624
|
if (this.adsHasResponse = !0, !this.isAdViewedCalled) {
|
|
625
625
|
this.isAdViewedCalled = !0;
|
|
626
|
-
const i =
|
|
626
|
+
const i = Se(e);
|
|
627
627
|
i == null || i();
|
|
628
628
|
}
|
|
629
629
|
};
|
|
@@ -632,7 +632,7 @@ class Yn {
|
|
|
632
632
|
return () => {
|
|
633
633
|
if (this.adsHasResponse = !0, this.context.track("CallAfterAd", this.paramsToTrack), this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD", this.paramsToTrack), !this.isAfterAdCalled) {
|
|
634
634
|
this.isAfterAdCalled = !0;
|
|
635
|
-
const i =
|
|
635
|
+
const i = Se(e);
|
|
636
636
|
i == null || i();
|
|
637
637
|
}
|
|
638
638
|
};
|
|
@@ -657,7 +657,7 @@ class Yn {
|
|
|
657
657
|
case "ignored":
|
|
658
658
|
case "dismissed":
|
|
659
659
|
case "error": {
|
|
660
|
-
const h =
|
|
660
|
+
const h = Se(e);
|
|
661
661
|
h == null || h(i), (u = this.adIsShowingCallback) == null || u.call(this, !1), (l = this.continueCallback) == null || l.call(this, [!1, i]);
|
|
662
662
|
break;
|
|
663
663
|
}
|
|
@@ -728,14 +728,14 @@ class Yn {
|
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
return (e =
|
|
731
|
+
function He(t, e, i) {
|
|
732
|
+
return (e = Zn(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
735
|
-
var e =
|
|
734
|
+
function Zn(t) {
|
|
735
|
+
var e = er(t, "string");
|
|
736
736
|
return typeof e == "symbol" ? e : e + "";
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function er(t, e) {
|
|
739
739
|
if (typeof t != "object" || !t)
|
|
740
740
|
return t;
|
|
741
741
|
var i = t[Symbol.toPrimitive];
|
|
@@ -747,13 +747,13 @@ function Zn(t, e) {
|
|
|
747
747
|
}
|
|
748
748
|
return (e === "string" ? String : Number)(t);
|
|
749
749
|
}
|
|
750
|
-
class
|
|
750
|
+
class tr {
|
|
751
751
|
constructor(e) {
|
|
752
|
-
|
|
752
|
+
He(this, "context", void 0), He(this, "adBreakIsShowing", !1), He(this, "reportPageJumpOut", () => {
|
|
753
753
|
this.context.track("AdBreakJumpOut", {
|
|
754
754
|
context: "AdsActionDetection"
|
|
755
755
|
});
|
|
756
|
-
}),
|
|
756
|
+
}), He(this, "reportPageHide", () => {
|
|
757
757
|
this.context.track("AdBreakHide", {
|
|
758
758
|
context: "AdsActionDetection"
|
|
759
759
|
});
|
|
@@ -764,14 +764,14 @@ class er {
|
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
return (e =
|
|
767
|
+
function Je(t, e, i) {
|
|
768
|
+
return (e = ir(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
771
|
-
var e =
|
|
770
|
+
function ir(t) {
|
|
771
|
+
var e = nr(t, "string");
|
|
772
772
|
return typeof e == "symbol" ? e : e + "";
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function nr(t, e) {
|
|
775
775
|
if (typeof t != "object" || !t)
|
|
776
776
|
return t;
|
|
777
777
|
var i = t[Symbol.toPrimitive];
|
|
@@ -783,9 +783,9 @@ function ir(t, e) {
|
|
|
783
783
|
}
|
|
784
784
|
return (e === "string" ? String : Number)(t);
|
|
785
785
|
}
|
|
786
|
-
class
|
|
786
|
+
class rr {
|
|
787
787
|
constructor(e) {
|
|
788
|
-
|
|
788
|
+
Je(this, "configs", null), Je(this, "firstRun", !0), Je(this, "context", void 0), Je(this, "contextInfo", void 0), this.context = e, this.contextInfo = this.context.getContextInfo(), this.init();
|
|
789
789
|
}
|
|
790
790
|
async init() {
|
|
791
791
|
try {
|
|
@@ -809,14 +809,14 @@ class nr {
|
|
|
809
809
|
return this.firstRun = !1, e;
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
return (e =
|
|
812
|
+
function de(t, e, i) {
|
|
813
|
+
return (e = or(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
816
|
-
var e =
|
|
815
|
+
function or(t) {
|
|
816
|
+
var e = sr(t, "string");
|
|
817
817
|
return typeof e == "symbol" ? e : e + "";
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function sr(t, e) {
|
|
820
820
|
if (typeof t != "object" || !t)
|
|
821
821
|
return t;
|
|
822
822
|
var i = t[Symbol.toPrimitive];
|
|
@@ -828,31 +828,31 @@ function or(t, e) {
|
|
|
828
828
|
}
|
|
829
829
|
return (e === "string" ? String : Number)(t);
|
|
830
830
|
}
|
|
831
|
-
class
|
|
831
|
+
class ar {
|
|
832
832
|
/**
|
|
833
833
|
* Internal constructor, should not be called directly
|
|
834
834
|
*/
|
|
835
835
|
constructor(e, i) {
|
|
836
|
-
|
|
836
|
+
de(this, "name", "ADSENSE"), de(this, "context", void 0), de(this, "contextInfo", void 0), de(this, "configured", !1), de(this, "initParams", void 0), de(this, "push", function() {
|
|
837
837
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
838
838
|
window.adsbygoogle.push(n);
|
|
839
|
-
}),
|
|
839
|
+
}), de(this, "adConfig", (n) => {
|
|
840
840
|
const s = n, {
|
|
841
841
|
onReady: r
|
|
842
|
-
} = s, o =
|
|
842
|
+
} = s, o = Ht(s, [
|
|
843
843
|
"onReady"
|
|
844
844
|
]);
|
|
845
845
|
this.context.track("CallAdConfig", o), this.configured ? console.warn("Ad config already set, skipping") : (this.configured = !0, this.push(n));
|
|
846
|
-
}),
|
|
846
|
+
}), de(this, "adBreak", (n) => {
|
|
847
847
|
if (!this.contextInfo.objectId) {
|
|
848
848
|
console.warn("Game ID is not set, skip calling adBreak");
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
851
|
this.push(n);
|
|
852
|
-
}),
|
|
853
|
-
var
|
|
852
|
+
}), de(this, "adUnit", async (n) => {
|
|
853
|
+
var v, y, w, g;
|
|
854
854
|
if (this.context.track("CallAdUnit", {
|
|
855
|
-
adFormat: (
|
|
855
|
+
adFormat: (y = (v = n.adFormat) == null ? void 0 : v.toString()) != null ? y : null,
|
|
856
856
|
fullWidthResponsive: (w = n.fullWidthResponsive) != null ? w : null
|
|
857
857
|
}), document.querySelector("#jolibox-ads")) {
|
|
858
858
|
console.warn("Ad unit already set, skipping");
|
|
@@ -875,15 +875,15 @@ class sr {
|
|
|
875
875
|
throw new Error("slot is required");
|
|
876
876
|
const c = typeof s == "object" && Array.isArray(s) ? s.join(", ") : s, h = document.createElement("ins");
|
|
877
877
|
if (h.className = "adsbygoogle", h.id = "jolibox-ads", h.style.display = "block", h.setAttribute("data-ad-client", this.initParams.clientId), h.setAttribute("data-ad-slot", l), c && h.setAttribute("data-ad-format", c), a && h.setAttribute("data-full-width-responsive", a), d && h.setAttribute("style", d), (g = this.contextInfo.testAdsMode) != null ? g : !1) {
|
|
878
|
-
const
|
|
879
|
-
|
|
878
|
+
const A = document.createElement("div");
|
|
879
|
+
A.style.position = "absolute", A.style.top = "0", A.style.left = "0", A.style.width = "100%", A.style.height = "100%", A.style.display = "flex", A.style.justifyContent = "center", A.style.alignItems = "center", A.style.backgroundColor = "rgba(0, 0, 0, 0.5)", A.style.color = "white", A.innerHTML = "Test Ad", h.style.position = "relative", u.appendChild(h), h.appendChild(A);
|
|
880
880
|
} else
|
|
881
881
|
u.appendChild(h), new MutationObserver((S) => {
|
|
882
|
-
S.forEach((
|
|
883
|
-
if (
|
|
884
|
-
const
|
|
882
|
+
S.forEach((p) => {
|
|
883
|
+
if (p.type === "attributes" && p.attributeName === "data-ad-status") {
|
|
884
|
+
const _ = h.getAttribute("data-ad-status");
|
|
885
885
|
this.context.track("AdSenseUnitStatusChanged", {
|
|
886
|
-
status:
|
|
886
|
+
status: _ != null ? _ : "null"
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
889
|
});
|
|
@@ -906,18 +906,18 @@ class sr {
|
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function dr(t) {
|
|
910
910
|
if (t.sheet)
|
|
911
911
|
return t.sheet;
|
|
912
912
|
for (var e = 0; e < document.styleSheets.length; e++)
|
|
913
913
|
if (document.styleSheets[e].ownerNode === t)
|
|
914
914
|
return document.styleSheets[e];
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function lr(t) {
|
|
917
917
|
var e = document.createElement("style");
|
|
918
918
|
return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
|
|
919
919
|
}
|
|
920
|
-
var
|
|
920
|
+
var ur = /* @__PURE__ */ function() {
|
|
921
921
|
function t(i) {
|
|
922
922
|
var n = this;
|
|
923
923
|
this._insertTag = function(r) {
|
|
@@ -929,10 +929,10 @@ var lr = /* @__PURE__ */ function() {
|
|
|
929
929
|
return e.hydrate = function(n) {
|
|
930
930
|
n.forEach(this._insertTag);
|
|
931
931
|
}, e.insert = function(n) {
|
|
932
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
932
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(lr(this));
|
|
933
933
|
var r = this.tags[this.tags.length - 1];
|
|
934
934
|
if (this.isSpeedy) {
|
|
935
|
-
var o =
|
|
935
|
+
var o = dr(r);
|
|
936
936
|
try {
|
|
937
937
|
o.insertRule(n, o.cssRules.length);
|
|
938
938
|
} catch (s) {
|
|
@@ -946,66 +946,66 @@ var lr = /* @__PURE__ */ function() {
|
|
|
946
946
|
return (r = n.parentNode) == null ? void 0 : r.removeChild(n);
|
|
947
947
|
}), this.tags = [], this.ctr = 0;
|
|
948
948
|
}, t;
|
|
949
|
-
}(), V = "-ms-",
|
|
950
|
-
function
|
|
949
|
+
}(), V = "-ms-", at = "-moz-", x = "-webkit-", Ci = "comm", Mt = "rule", $t = "decl", cr = "@import", Oi = "@keyframes", hr = "@layer", fr = Math.abs, ct = String.fromCharCode, vr = Object.assign;
|
|
950
|
+
function yr(t, e) {
|
|
951
951
|
return $(t, 0) ^ 45 ? (((e << 2 ^ $(t, 0)) << 2 ^ $(t, 1)) << 2 ^ $(t, 2)) << 2 ^ $(t, 3) : 0;
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function Di(t) {
|
|
954
954
|
return t.trim();
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function gr(t, e) {
|
|
957
957
|
return (t = e.exec(t)) ? t[0] : t;
|
|
958
958
|
}
|
|
959
959
|
function R(t, e, i) {
|
|
960
960
|
return t.replace(e, i);
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Ct(t, e) {
|
|
963
963
|
return t.indexOf(e);
|
|
964
964
|
}
|
|
965
965
|
function $(t, e) {
|
|
966
966
|
return t.charCodeAt(e) | 0;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Ve(t, e, i) {
|
|
969
969
|
return t.slice(e, i);
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function se(t) {
|
|
972
972
|
return t.length;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Ft(t) {
|
|
975
975
|
return t.length;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function Ye(t, e) {
|
|
978
978
|
return e.push(t), t;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function wr(t, e) {
|
|
981
981
|
return t.map(e).join("");
|
|
982
982
|
}
|
|
983
|
-
var
|
|
984
|
-
function
|
|
985
|
-
return { value: t, root: e, parent: i, type: n, props: r, children: o, line:
|
|
983
|
+
var ht = 1, Oe = 1, Pi = 0, Y = 0, N = 0, De = "";
|
|
984
|
+
function ft(t, e, i, n, r, o, s) {
|
|
985
|
+
return { value: t, root: e, parent: i, type: n, props: r, children: o, line: ht, column: Oe, length: s, return: "" };
|
|
986
986
|
}
|
|
987
|
-
function
|
|
988
|
-
return
|
|
987
|
+
function Me(t, e) {
|
|
988
|
+
return vr(ft("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function Ar() {
|
|
991
991
|
return N;
|
|
992
992
|
}
|
|
993
993
|
function br() {
|
|
994
|
-
return N =
|
|
994
|
+
return N = Y > 0 ? $(De, --Y) : 0, Oe--, N === 10 && (Oe = 1, ht--), N;
|
|
995
995
|
}
|
|
996
996
|
function Z() {
|
|
997
|
-
return N =
|
|
997
|
+
return N = Y < Pi ? $(De, Y++) : 0, Oe++, N === 10 && (Oe = 1, ht++), N;
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
return $(
|
|
999
|
+
function ae() {
|
|
1000
|
+
return $(De, Y);
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1002
|
+
function Ze() {
|
|
1003
|
+
return Y;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
return
|
|
1005
|
+
function qe(t, e) {
|
|
1006
|
+
return Ve(De, t, e);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Ge(t) {
|
|
1009
1009
|
switch (t) {
|
|
1010
1010
|
case 0:
|
|
1011
1011
|
case 9:
|
|
@@ -1037,240 +1037,240 @@ function Ve(t) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
return 0;
|
|
1039
1039
|
}
|
|
1040
|
-
function Pi(t) {
|
|
1041
|
-
return ct = Ce = 1, Di = re(Oe = t), X = 0, [];
|
|
1042
|
-
}
|
|
1043
1040
|
function Ni(t) {
|
|
1044
|
-
return Oe =
|
|
1041
|
+
return ht = Oe = 1, Pi = se(De = t), Y = 0, [];
|
|
1042
|
+
}
|
|
1043
|
+
function Li(t) {
|
|
1044
|
+
return De = "", t;
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return
|
|
1046
|
+
function et(t) {
|
|
1047
|
+
return Di(qe(Y - 1, Ot(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
for (; (N =
|
|
1049
|
+
function pr(t) {
|
|
1050
|
+
for (; (N = ae()) && N < 33; )
|
|
1051
1051
|
Z();
|
|
1052
|
-
return
|
|
1052
|
+
return Ge(t) > 2 || Ge(N) > 3 ? "" : " ";
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function _r(t, e) {
|
|
1055
1055
|
for (; --e && Z() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
|
|
1056
1056
|
;
|
|
1057
|
-
return
|
|
1057
|
+
return qe(t, Ze() + (e < 6 && ae() == 32 && Z() == 32));
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Ot(t) {
|
|
1060
1060
|
for (; Z(); )
|
|
1061
1061
|
switch (N) {
|
|
1062
1062
|
case t:
|
|
1063
|
-
return
|
|
1063
|
+
return Y;
|
|
1064
1064
|
case 34:
|
|
1065
1065
|
case 39:
|
|
1066
|
-
t !== 34 && t !== 39 &&
|
|
1066
|
+
t !== 34 && t !== 39 && Ot(N);
|
|
1067
1067
|
break;
|
|
1068
1068
|
case 40:
|
|
1069
|
-
t === 41 &&
|
|
1069
|
+
t === 41 && Ot(t);
|
|
1070
1070
|
break;
|
|
1071
1071
|
case 92:
|
|
1072
1072
|
Z();
|
|
1073
1073
|
break;
|
|
1074
1074
|
}
|
|
1075
|
-
return
|
|
1075
|
+
return Y;
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function mr(t, e) {
|
|
1078
1078
|
for (; Z() && t + N !== 57; )
|
|
1079
|
-
if (t + N === 84 &&
|
|
1079
|
+
if (t + N === 84 && ae() === 47)
|
|
1080
1080
|
break;
|
|
1081
|
-
return "/*" +
|
|
1081
|
+
return "/*" + qe(e, Y - 1) + "*" + ct(t === 47 ? t : Z());
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1084
|
-
for (; !
|
|
1083
|
+
function Sr(t) {
|
|
1084
|
+
for (; !Ge(ae()); )
|
|
1085
1085
|
Z();
|
|
1086
|
-
return
|
|
1086
|
+
return qe(t, Y);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return
|
|
1088
|
+
function Er(t) {
|
|
1089
|
+
return Li(tt("", null, null, null, [""], t = Ni(t), 0, [0], t));
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1092
|
-
for (var u = 0, l = 0, c = s, h = 0, f = 0,
|
|
1093
|
-
switch (
|
|
1091
|
+
function tt(t, e, i, n, r, o, s, a, d) {
|
|
1092
|
+
for (var u = 0, l = 0, c = s, h = 0, f = 0, v = 0, y = 1, w = 1, g = 1, A = 0, S = "", p = r, _ = o, E = n, b = S; w; )
|
|
1093
|
+
switch (v = A, A = Z()) {
|
|
1094
1094
|
case 40:
|
|
1095
|
-
if (
|
|
1096
|
-
|
|
1095
|
+
if (v != 108 && $(b, c - 1) == 58) {
|
|
1096
|
+
Ct(b += R(et(A), "&", "&\f"), "&\f") != -1 && (g = -1);
|
|
1097
1097
|
break;
|
|
1098
1098
|
}
|
|
1099
1099
|
case 34:
|
|
1100
1100
|
case 39:
|
|
1101
1101
|
case 91:
|
|
1102
|
-
|
|
1102
|
+
b += et(A);
|
|
1103
1103
|
break;
|
|
1104
1104
|
case 9:
|
|
1105
1105
|
case 10:
|
|
1106
1106
|
case 13:
|
|
1107
1107
|
case 32:
|
|
1108
|
-
|
|
1108
|
+
b += pr(v);
|
|
1109
1109
|
break;
|
|
1110
1110
|
case 92:
|
|
1111
|
-
|
|
1111
|
+
b += _r(Ze() - 1, 7);
|
|
1112
1112
|
continue;
|
|
1113
1113
|
case 47:
|
|
1114
|
-
switch (
|
|
1114
|
+
switch (ae()) {
|
|
1115
1115
|
case 42:
|
|
1116
1116
|
case 47:
|
|
1117
|
-
|
|
1117
|
+
Ye(kr(mr(Z(), Ze()), e, i), d);
|
|
1118
1118
|
break;
|
|
1119
1119
|
default:
|
|
1120
|
-
|
|
1120
|
+
b += "/";
|
|
1121
1121
|
}
|
|
1122
1122
|
break;
|
|
1123
|
-
case 123 *
|
|
1124
|
-
a[u++] =
|
|
1125
|
-
case 125 *
|
|
1123
|
+
case 123 * y:
|
|
1124
|
+
a[u++] = se(b) * g;
|
|
1125
|
+
case 125 * y:
|
|
1126
1126
|
case 59:
|
|
1127
1127
|
case 0:
|
|
1128
|
-
switch (
|
|
1128
|
+
switch (A) {
|
|
1129
1129
|
case 0:
|
|
1130
1130
|
case 125:
|
|
1131
1131
|
w = 0;
|
|
1132
1132
|
case 59 + l:
|
|
1133
|
-
g == -1 && (
|
|
1133
|
+
g == -1 && (b = R(b, /\f/g, "")), f > 0 && se(b) - c && Ye(f > 32 ? ni(b + ";", n, i, c - 1) : ni(R(b, " ", "") + ";", n, i, c - 2), d);
|
|
1134
1134
|
break;
|
|
1135
1135
|
case 59:
|
|
1136
|
-
|
|
1136
|
+
b += ";";
|
|
1137
1137
|
default:
|
|
1138
|
-
if (
|
|
1138
|
+
if (Ye(E = ii(b, e, i, u, l, r, a, S, p = [], _ = [], c), o), A === 123)
|
|
1139
1139
|
if (l === 0)
|
|
1140
|
-
|
|
1140
|
+
tt(b, e, E, E, p, o, c, a, _);
|
|
1141
1141
|
else
|
|
1142
|
-
switch (h === 99 && $(
|
|
1142
|
+
switch (h === 99 && $(b, 3) === 110 ? 100 : h) {
|
|
1143
1143
|
case 100:
|
|
1144
1144
|
case 108:
|
|
1145
1145
|
case 109:
|
|
1146
1146
|
case 115:
|
|
1147
|
-
|
|
1147
|
+
tt(t, E, E, n && Ye(ii(t, E, E, 0, 0, r, a, S, r, p = [], c), _), r, _, c, a, n ? p : _);
|
|
1148
1148
|
break;
|
|
1149
1149
|
default:
|
|
1150
|
-
|
|
1150
|
+
tt(b, E, E, E, [""], _, 0, a, _);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
u = l = f = 0,
|
|
1153
|
+
u = l = f = 0, y = g = 1, S = b = "", c = s;
|
|
1154
1154
|
break;
|
|
1155
1155
|
case 58:
|
|
1156
|
-
c = 1 +
|
|
1156
|
+
c = 1 + se(b), f = v;
|
|
1157
1157
|
default:
|
|
1158
|
-
if (
|
|
1159
|
-
if (
|
|
1160
|
-
--
|
|
1161
|
-
else if (
|
|
1158
|
+
if (y < 1) {
|
|
1159
|
+
if (A == 123)
|
|
1160
|
+
--y;
|
|
1161
|
+
else if (A == 125 && y++ == 0 && br() == 125)
|
|
1162
1162
|
continue;
|
|
1163
1163
|
}
|
|
1164
|
-
switch (
|
|
1164
|
+
switch (b += ct(A), A * y) {
|
|
1165
1165
|
case 38:
|
|
1166
|
-
g = l > 0 ? 1 : (
|
|
1166
|
+
g = l > 0 ? 1 : (b += "\f", -1);
|
|
1167
1167
|
break;
|
|
1168
1168
|
case 44:
|
|
1169
|
-
a[u++] = (
|
|
1169
|
+
a[u++] = (se(b) - 1) * g, g = 1;
|
|
1170
1170
|
break;
|
|
1171
1171
|
case 64:
|
|
1172
|
-
|
|
1172
|
+
ae() === 45 && (b += et(Z())), h = ae(), l = c = se(S = b += Sr(Ze())), A++;
|
|
1173
1173
|
break;
|
|
1174
1174
|
case 45:
|
|
1175
|
-
|
|
1175
|
+
v === 45 && se(b) == 2 && (y = 0);
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
return o;
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1181
|
-
for (var c = r - 1, h = r === 0 ? o : [""], f =
|
|
1182
|
-
for (var g = 0,
|
|
1183
|
-
(S =
|
|
1184
|
-
return
|
|
1180
|
+
function ii(t, e, i, n, r, o, s, a, d, u, l) {
|
|
1181
|
+
for (var c = r - 1, h = r === 0 ? o : [""], f = Ft(h), v = 0, y = 0, w = 0; v < n; ++v)
|
|
1182
|
+
for (var g = 0, A = Ve(t, c + 1, c = fr(y = s[v])), S = t; g < f; ++g)
|
|
1183
|
+
(S = Di(y > 0 ? h[g] + " " + A : R(A, /&\f/g, h[g]))) && (d[w++] = S);
|
|
1184
|
+
return ft(t, e, i, r === 0 ? Mt : a, d, u, l);
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1187
|
-
return
|
|
1186
|
+
function kr(t, e, i) {
|
|
1187
|
+
return ft(t, e, i, Ci, ct(Ar()), Ve(t, 2, -2), 0);
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1189
|
+
function ni(t, e, i, n) {
|
|
1190
|
+
return ft(t, e, i, $t, Ve(t, 0, n), Ve(t, n + 1, -1), n);
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
for (var i = "", n =
|
|
1192
|
+
function Re(t, e) {
|
|
1193
|
+
for (var i = "", n = Ft(t), r = 0; r < n; r++)
|
|
1194
1194
|
i += e(t[r], r, t, e) || "";
|
|
1195
1195
|
return i;
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function Ir(t, e, i, n) {
|
|
1198
1198
|
switch (t.type) {
|
|
1199
|
-
case
|
|
1199
|
+
case hr:
|
|
1200
1200
|
if (t.children.length)
|
|
1201
1201
|
break;
|
|
1202
|
-
case
|
|
1203
|
-
case
|
|
1202
|
+
case cr:
|
|
1203
|
+
case $t:
|
|
1204
1204
|
return t.return = t.return || t.value;
|
|
1205
|
-
case Ti:
|
|
1206
|
-
return "";
|
|
1207
1205
|
case Ci:
|
|
1208
|
-
return
|
|
1209
|
-
case
|
|
1206
|
+
return "";
|
|
1207
|
+
case Oi:
|
|
1208
|
+
return t.return = t.value + "{" + Re(t.children, n) + "}";
|
|
1209
|
+
case Mt:
|
|
1210
1210
|
t.value = t.props.join(",");
|
|
1211
1211
|
}
|
|
1212
|
-
return
|
|
1212
|
+
return se(i = Re(t.children, n)) ? t.return = t.value + "{" + i + "}" : "";
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
var e =
|
|
1214
|
+
function xr(t) {
|
|
1215
|
+
var e = Ft(t);
|
|
1216
1216
|
return function(i, n, r, o) {
|
|
1217
1217
|
for (var s = "", a = 0; a < e; a++)
|
|
1218
1218
|
s += t[a](i, n, r, o) || "";
|
|
1219
1219
|
return s;
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function Rr(t) {
|
|
1223
1223
|
return function(e) {
|
|
1224
1224
|
e.root || (e = e.return) && t(e);
|
|
1225
1225
|
};
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Tr(t) {
|
|
1228
1228
|
var e = /* @__PURE__ */ Object.create(null);
|
|
1229
1229
|
return function(i) {
|
|
1230
1230
|
return e[i] === void 0 && (e[i] = t(i)), e[i];
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
|
-
var
|
|
1234
|
-
for (var r = 0, o = 0; r = o, o =
|
|
1233
|
+
var Cr = function(e, i, n) {
|
|
1234
|
+
for (var r = 0, o = 0; r = o, o = ae(), r === 38 && o === 12 && (i[n] = 1), !Ge(o); )
|
|
1235
1235
|
Z();
|
|
1236
|
-
return
|
|
1237
|
-
},
|
|
1236
|
+
return qe(e, Y);
|
|
1237
|
+
}, Or = function(e, i) {
|
|
1238
1238
|
var n = -1, r = 44;
|
|
1239
1239
|
do
|
|
1240
|
-
switch (
|
|
1240
|
+
switch (Ge(r)) {
|
|
1241
1241
|
case 0:
|
|
1242
|
-
r === 38 &&
|
|
1242
|
+
r === 38 && ae() === 12 && (i[n] = 1), e[n] += Cr(Y - 1, i, n);
|
|
1243
1243
|
break;
|
|
1244
1244
|
case 2:
|
|
1245
|
-
e[n] +=
|
|
1245
|
+
e[n] += et(r);
|
|
1246
1246
|
break;
|
|
1247
1247
|
case 4:
|
|
1248
1248
|
if (r === 44) {
|
|
1249
|
-
e[++n] =
|
|
1249
|
+
e[++n] = ae() === 58 ? "&\f" : "", i[n] = e[n].length;
|
|
1250
1250
|
break;
|
|
1251
1251
|
}
|
|
1252
1252
|
default:
|
|
1253
|
-
e[n] +=
|
|
1253
|
+
e[n] += ct(r);
|
|
1254
1254
|
}
|
|
1255
1255
|
while (r = Z());
|
|
1256
1256
|
return e;
|
|
1257
|
-
},
|
|
1258
|
-
return
|
|
1259
|
-
},
|
|
1257
|
+
}, Dr = function(e, i) {
|
|
1258
|
+
return Li(Or(Ni(e), i));
|
|
1259
|
+
}, ri = /* @__PURE__ */ new WeakMap(), Pr = function(e) {
|
|
1260
1260
|
if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
|
|
1261
1261
|
// negative .length indicates that this rule has been already prefixed
|
|
1262
1262
|
e.length < 1)) {
|
|
1263
1263
|
for (var i = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule"; )
|
|
1264
1264
|
if (n = n.parent, !n)
|
|
1265
1265
|
return;
|
|
1266
|
-
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !
|
|
1267
|
-
|
|
1268
|
-
for (var o = [], s =
|
|
1266
|
+
if (!(e.props.length === 1 && i.charCodeAt(0) !== 58 && !ri.get(n)) && !r) {
|
|
1267
|
+
ri.set(e, !0);
|
|
1268
|
+
for (var o = [], s = Dr(i, o), a = n.props, d = 0, u = 0; d < s.length; d++)
|
|
1269
1269
|
for (var l = 0; l < a.length; l++, u++)
|
|
1270
1270
|
e.props[u] = o[d] ? s[d].replace(/&\f/g, a[l]) : a[l] + " " + s[d];
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
},
|
|
1273
|
+
}, Nr = function(e) {
|
|
1274
1274
|
if (e.type === "decl") {
|
|
1275
1275
|
var i = e.value;
|
|
1276
1276
|
// charcode for l
|
|
@@ -1278,8 +1278,8 @@ var Tr = function(e, i, n) {
|
|
|
1278
1278
|
i.charCodeAt(2) === 98 && (e.return = "", e.value = "");
|
|
1279
1279
|
}
|
|
1280
1280
|
};
|
|
1281
|
-
function
|
|
1282
|
-
switch (
|
|
1281
|
+
function Bi(t, e) {
|
|
1282
|
+
switch (yr(t, e)) {
|
|
1283
1283
|
case 5103:
|
|
1284
1284
|
return x + "print-" + t + t;
|
|
1285
1285
|
case 5737:
|
|
@@ -1313,7 +1313,7 @@ function Li(t, e) {
|
|
|
1313
1313
|
case 4810:
|
|
1314
1314
|
case 6968:
|
|
1315
1315
|
case 2756:
|
|
1316
|
-
return x + t +
|
|
1316
|
+
return x + t + at + t + V + t + t;
|
|
1317
1317
|
case 6828:
|
|
1318
1318
|
case 4268:
|
|
1319
1319
|
return x + t + V + t + t;
|
|
@@ -1357,22 +1357,22 @@ function Li(t, e) {
|
|
|
1357
1357
|
case 5789:
|
|
1358
1358
|
case 5021:
|
|
1359
1359
|
case 4765:
|
|
1360
|
-
if (
|
|
1360
|
+
if (se(t) - 1 - e > 6)
|
|
1361
1361
|
switch ($(t, e + 1)) {
|
|
1362
1362
|
case 109:
|
|
1363
1363
|
if ($(t, e + 4) !== 45)
|
|
1364
1364
|
break;
|
|
1365
1365
|
case 102:
|
|
1366
|
-
return R(t, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" +
|
|
1366
|
+
return R(t, /(.+:)(.+)-([^]+)/, "$1" + x + "$2-$3$1" + at + ($(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
1367
1367
|
case 115:
|
|
1368
|
-
return ~
|
|
1368
|
+
return ~Ct(t, "stretch") ? Bi(R(t, "stretch", "fill-available"), e) + t : t;
|
|
1369
1369
|
}
|
|
1370
1370
|
break;
|
|
1371
1371
|
case 4949:
|
|
1372
1372
|
if ($(t, e + 1) !== 115)
|
|
1373
1373
|
break;
|
|
1374
1374
|
case 6444:
|
|
1375
|
-
switch ($(t,
|
|
1375
|
+
switch ($(t, se(t) - 3 - (~Ct(t, "!important") && 10))) {
|
|
1376
1376
|
case 107:
|
|
1377
1377
|
return R(t, ":", ":" + x) + t;
|
|
1378
1378
|
case 101:
|
|
@@ -1392,71 +1392,71 @@ function Li(t, e) {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
return t;
|
|
1394
1394
|
}
|
|
1395
|
-
var
|
|
1395
|
+
var Lr = function(e, i, n, r) {
|
|
1396
1396
|
if (e.length > -1 && !e.return)
|
|
1397
1397
|
switch (e.type) {
|
|
1398
|
-
case
|
|
1399
|
-
e.return =
|
|
1398
|
+
case $t:
|
|
1399
|
+
e.return = Bi(e.value, e.length);
|
|
1400
1400
|
break;
|
|
1401
|
-
case
|
|
1402
|
-
return
|
|
1401
|
+
case Oi:
|
|
1402
|
+
return Re([Me(e, {
|
|
1403
1403
|
value: R(e.value, "@", "@" + x)
|
|
1404
1404
|
})], r);
|
|
1405
|
-
case
|
|
1405
|
+
case Mt:
|
|
1406
1406
|
if (e.length)
|
|
1407
|
-
return
|
|
1408
|
-
switch (
|
|
1407
|
+
return wr(e.props, function(o) {
|
|
1408
|
+
switch (gr(o, /(::plac\w+|:read-\w+)/)) {
|
|
1409
1409
|
case ":read-only":
|
|
1410
1410
|
case ":read-write":
|
|
1411
|
-
return
|
|
1412
|
-
props: [R(o, /:(read-\w+)/, ":" +
|
|
1411
|
+
return Re([Me(e, {
|
|
1412
|
+
props: [R(o, /:(read-\w+)/, ":" + at + "$1")]
|
|
1413
1413
|
})], r);
|
|
1414
1414
|
case "::placeholder":
|
|
1415
|
-
return
|
|
1415
|
+
return Re([Me(e, {
|
|
1416
1416
|
props: [R(o, /:(plac\w+)/, ":" + x + "input-$1")]
|
|
1417
|
-
}),
|
|
1418
|
-
props: [R(o, /:(plac\w+)/, ":" +
|
|
1419
|
-
}),
|
|
1417
|
+
}), Me(e, {
|
|
1418
|
+
props: [R(o, /:(plac\w+)/, ":" + at + "$1")]
|
|
1419
|
+
}), Me(e, {
|
|
1420
1420
|
props: [R(o, /:(plac\w+)/, V + "input-$1")]
|
|
1421
1421
|
})], r);
|
|
1422
1422
|
}
|
|
1423
1423
|
return "";
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
|
-
},
|
|
1426
|
+
}, Br = [Lr], Mr = function(e) {
|
|
1427
1427
|
var i = e.key;
|
|
1428
1428
|
if (i === "css") {
|
|
1429
1429
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1430
|
-
Array.prototype.forEach.call(n, function(
|
|
1431
|
-
var w =
|
|
1432
|
-
w.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
1430
|
+
Array.prototype.forEach.call(n, function(y) {
|
|
1431
|
+
var w = y.getAttribute("data-emotion");
|
|
1432
|
+
w.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
|
|
1433
1433
|
});
|
|
1434
1434
|
}
|
|
1435
|
-
var r = e.stylisPlugins ||
|
|
1435
|
+
var r = e.stylisPlugins || Br, o = {}, s, a = [];
|
|
1436
1436
|
s = e.container || document.head, Array.prototype.forEach.call(
|
|
1437
1437
|
// this means we will ignore elements which don't have a space in them which
|
|
1438
1438
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1439
1439
|
document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
|
|
1440
|
-
function(
|
|
1441
|
-
for (var w =
|
|
1440
|
+
function(y) {
|
|
1441
|
+
for (var w = y.getAttribute("data-emotion").split(" "), g = 1; g < w.length; g++)
|
|
1442
1442
|
o[w[g]] = !0;
|
|
1443
|
-
a.push(
|
|
1443
|
+
a.push(y);
|
|
1444
1444
|
}
|
|
1445
1445
|
);
|
|
1446
|
-
var d, u = [
|
|
1446
|
+
var d, u = [Pr, Nr];
|
|
1447
1447
|
{
|
|
1448
|
-
var l, c = [
|
|
1449
|
-
l.insert(
|
|
1450
|
-
})], h =
|
|
1451
|
-
return
|
|
1448
|
+
var l, c = [Ir, Rr(function(y) {
|
|
1449
|
+
l.insert(y);
|
|
1450
|
+
})], h = xr(u.concat(r, c)), f = function(w) {
|
|
1451
|
+
return Re(Er(w), h);
|
|
1452
1452
|
};
|
|
1453
|
-
d = function(w, g,
|
|
1454
|
-
l =
|
|
1453
|
+
d = function(w, g, A, S) {
|
|
1454
|
+
l = A, f(w ? w + "{" + g.styles + "}" : g.styles), S && (v.inserted[g.name] = !0);
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
|
-
var
|
|
1457
|
+
var v = {
|
|
1458
1458
|
key: i,
|
|
1459
|
-
sheet: new
|
|
1459
|
+
sheet: new ur({
|
|
1460
1460
|
key: i,
|
|
1461
1461
|
container: s,
|
|
1462
1462
|
nonce: e.nonce,
|
|
@@ -1469,9 +1469,9 @@ var Nr = function(e, i, n, r) {
|
|
|
1469
1469
|
registered: {},
|
|
1470
1470
|
insert: d
|
|
1471
1471
|
};
|
|
1472
|
-
return
|
|
1472
|
+
return v.sheet.hydrate(a), v;
|
|
1473
1473
|
};
|
|
1474
|
-
function
|
|
1474
|
+
function $r(t) {
|
|
1475
1475
|
for (var e = 0, i, n = 0, r = t.length; r >= 4; ++n, r -= 4)
|
|
1476
1476
|
i = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, i = /* Math.imul(k, m): */
|
|
1477
1477
|
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
|
|
@@ -1490,7 +1490,7 @@ function Mr(t) {
|
|
|
1490
1490
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
1491
1491
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
1492
1492
|
}
|
|
1493
|
-
var
|
|
1493
|
+
var Fr = {
|
|
1494
1494
|
animationIterationCount: 1,
|
|
1495
1495
|
aspectRatio: 1,
|
|
1496
1496
|
borderImageOutset: 1,
|
|
@@ -1539,28 +1539,28 @@ var $r = {
|
|
|
1539
1539
|
strokeMiterlimit: 1,
|
|
1540
1540
|
strokeOpacity: 1,
|
|
1541
1541
|
strokeWidth: 1
|
|
1542
|
-
},
|
|
1542
|
+
}, Ur = /[A-Z]|^ms/g, jr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Mi = function(e) {
|
|
1543
1543
|
return e.charCodeAt(1) === 45;
|
|
1544
|
-
},
|
|
1544
|
+
}, oi = function(e) {
|
|
1545
1545
|
return e != null && typeof e != "boolean";
|
|
1546
|
-
},
|
|
1547
|
-
return
|
|
1548
|
-
}),
|
|
1546
|
+
}, At = /* @__PURE__ */ Tr(function(t) {
|
|
1547
|
+
return Mi(t) ? t : t.replace(Ur, "-$&").toLowerCase();
|
|
1548
|
+
}), si = function(e, i) {
|
|
1549
1549
|
switch (e) {
|
|
1550
1550
|
case "animation":
|
|
1551
1551
|
case "animationName":
|
|
1552
1552
|
if (typeof i == "string")
|
|
1553
|
-
return i.replace(
|
|
1554
|
-
return
|
|
1553
|
+
return i.replace(jr, function(n, r, o) {
|
|
1554
|
+
return Ae = {
|
|
1555
1555
|
name: r,
|
|
1556
1556
|
styles: o,
|
|
1557
|
-
next:
|
|
1557
|
+
next: Ae
|
|
1558
1558
|
}, r;
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
|
-
return
|
|
1561
|
+
return Fr[e] !== 1 && !Mi(e) && typeof i == "number" && i !== 0 ? i + "px" : i;
|
|
1562
1562
|
};
|
|
1563
|
-
function
|
|
1563
|
+
function dt(t, e, i) {
|
|
1564
1564
|
if (i == null)
|
|
1565
1565
|
return "";
|
|
1566
1566
|
var n = i;
|
|
@@ -1572,25 +1572,25 @@ function at(t, e, i) {
|
|
|
1572
1572
|
case "object": {
|
|
1573
1573
|
var r = i;
|
|
1574
1574
|
if (r.anim === 1)
|
|
1575
|
-
return
|
|
1575
|
+
return Ae = {
|
|
1576
1576
|
name: r.name,
|
|
1577
1577
|
styles: r.styles,
|
|
1578
|
-
next:
|
|
1578
|
+
next: Ae
|
|
1579
1579
|
}, r.name;
|
|
1580
1580
|
var o = i;
|
|
1581
1581
|
if (o.styles !== void 0) {
|
|
1582
1582
|
var s = o.next;
|
|
1583
1583
|
if (s !== void 0)
|
|
1584
1584
|
for (; s !== void 0; )
|
|
1585
|
-
|
|
1585
|
+
Ae = {
|
|
1586
1586
|
name: s.name,
|
|
1587
1587
|
styles: s.styles,
|
|
1588
|
-
next:
|
|
1588
|
+
next: Ae
|
|
1589
1589
|
}, s = s.next;
|
|
1590
1590
|
var a = o.styles + ";";
|
|
1591
1591
|
return a;
|
|
1592
1592
|
}
|
|
1593
|
-
return
|
|
1593
|
+
return Vr(t, e, i);
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
1596
|
var d = i;
|
|
@@ -1599,26 +1599,26 @@ function at(t, e, i) {
|
|
|
1599
1599
|
var u = e[d];
|
|
1600
1600
|
return u !== void 0 ? u : d;
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function Vr(t, e, i) {
|
|
1603
1603
|
var n = "";
|
|
1604
1604
|
if (Array.isArray(i))
|
|
1605
1605
|
for (var r = 0; r < i.length; r++)
|
|
1606
|
-
n +=
|
|
1606
|
+
n += dt(t, e, i[r]) + ";";
|
|
1607
1607
|
else
|
|
1608
1608
|
for (var o in i) {
|
|
1609
1609
|
var s = i[o];
|
|
1610
1610
|
if (typeof s != "object") {
|
|
1611
1611
|
var a = s;
|
|
1612
|
-
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" :
|
|
1612
|
+
e != null && e[a] !== void 0 ? n += o + "{" + e[a] + "}" : oi(a) && (n += At(o) + ":" + si(o, a) + ";");
|
|
1613
1613
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
1614
1614
|
for (var d = 0; d < s.length; d++)
|
|
1615
|
-
|
|
1615
|
+
oi(s[d]) && (n += At(o) + ":" + si(o, s[d]) + ";");
|
|
1616
1616
|
else {
|
|
1617
|
-
var u =
|
|
1617
|
+
var u = dt(t, e, s);
|
|
1618
1618
|
switch (o) {
|
|
1619
1619
|
case "animation":
|
|
1620
1620
|
case "animationName": {
|
|
1621
|
-
n +=
|
|
1621
|
+
n += At(o) + ":" + u + ";";
|
|
1622
1622
|
break;
|
|
1623
1623
|
}
|
|
1624
1624
|
default:
|
|
@@ -1628,41 +1628,41 @@ function jr(t, e, i) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
return n;
|
|
1630
1630
|
}
|
|
1631
|
-
var
|
|
1631
|
+
var ai = /label:\s*([^\s;{]+)\s*(;|$)/g, Ae;
|
|
1632
1632
|
function bt(t, e, i) {
|
|
1633
1633
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1634
1634
|
return t[0];
|
|
1635
1635
|
var n = !0, r = "";
|
|
1636
|
-
|
|
1636
|
+
Ae = void 0;
|
|
1637
1637
|
var o = t[0];
|
|
1638
1638
|
if (o == null || o.raw === void 0)
|
|
1639
|
-
n = !1, r +=
|
|
1639
|
+
n = !1, r += dt(i, e, o);
|
|
1640
1640
|
else {
|
|
1641
1641
|
var s = o;
|
|
1642
1642
|
r += s[0];
|
|
1643
1643
|
}
|
|
1644
1644
|
for (var a = 1; a < t.length; a++)
|
|
1645
|
-
if (r +=
|
|
1645
|
+
if (r += dt(i, e, t[a]), n) {
|
|
1646
1646
|
var d = o;
|
|
1647
1647
|
r += d[a];
|
|
1648
1648
|
}
|
|
1649
|
-
|
|
1650
|
-
for (var u = "", l; (l =
|
|
1649
|
+
ai.lastIndex = 0;
|
|
1650
|
+
for (var u = "", l; (l = ai.exec(r)) !== null; )
|
|
1651
1651
|
u += "-" + l[1];
|
|
1652
|
-
var c =
|
|
1652
|
+
var c = $r(r) + u;
|
|
1653
1653
|
return {
|
|
1654
1654
|
name: c,
|
|
1655
1655
|
styles: r,
|
|
1656
|
-
next:
|
|
1656
|
+
next: Ae
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function $i(t, e, i) {
|
|
1660
1660
|
var n = "";
|
|
1661
1661
|
return i.split(" ").forEach(function(r) {
|
|
1662
1662
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (n += r + " ");
|
|
1663
1663
|
}), n;
|
|
1664
1664
|
}
|
|
1665
|
-
var
|
|
1665
|
+
var Gr = function(e, i, n) {
|
|
1666
1666
|
var r = e.key + "-" + i.name;
|
|
1667
1667
|
// we only need to add the styles to the registered cache if the
|
|
1668
1668
|
// class name could be used further down
|
|
@@ -1670,8 +1670,8 @@ var Vr = function(e, i, n) {
|
|
|
1670
1670
|
// so we don't have to add it to registered cache.
|
|
1671
1671
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1672
1672
|
e.registered[r] === void 0 && (e.registered[r] = i.styles);
|
|
1673
|
-
},
|
|
1674
|
-
|
|
1673
|
+
}, qr = function(e, i, n) {
|
|
1674
|
+
Gr(e, i);
|
|
1675
1675
|
var r = e.key + "-" + i.name;
|
|
1676
1676
|
if (e.inserted[i.name] === void 0) {
|
|
1677
1677
|
var o = i;
|
|
@@ -1680,16 +1680,16 @@ var Vr = function(e, i, n) {
|
|
|
1680
1680
|
while (o !== void 0);
|
|
1681
1681
|
}
|
|
1682
1682
|
};
|
|
1683
|
-
function
|
|
1683
|
+
function di(t, e) {
|
|
1684
1684
|
if (t.inserted[e.name] === void 0)
|
|
1685
1685
|
return t.insert("", e, t.sheet, !0);
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1688
|
-
var n = [], r =
|
|
1687
|
+
function li(t, e, i) {
|
|
1688
|
+
var n = [], r = $i(t, n, i);
|
|
1689
1689
|
return n.length < 2 ? i : r + e(n);
|
|
1690
1690
|
}
|
|
1691
|
-
var
|
|
1692
|
-
var i =
|
|
1691
|
+
var Kr = function(e) {
|
|
1692
|
+
var i = Mr(e);
|
|
1693
1693
|
i.sheet.speedy = function(a) {
|
|
1694
1694
|
this.isSpeedy = a;
|
|
1695
1695
|
}, i.compat = !0;
|
|
@@ -1697,12 +1697,12 @@ var qr = function(e) {
|
|
|
1697
1697
|
for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
|
|
1698
1698
|
u[l] = arguments[l];
|
|
1699
1699
|
var c = bt(u, i.registered, void 0);
|
|
1700
|
-
return
|
|
1700
|
+
return qr(i, c), i.key + "-" + c.name;
|
|
1701
1701
|
}, r = function() {
|
|
1702
1702
|
for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
|
|
1703
1703
|
u[l] = arguments[l];
|
|
1704
1704
|
var c = bt(u, i.registered), h = "animation-" + c.name;
|
|
1705
|
-
return
|
|
1705
|
+
return di(i, {
|
|
1706
1706
|
name: c.name,
|
|
1707
1707
|
styles: "@keyframes " + h + "{" + c.styles + "}"
|
|
1708
1708
|
}), h;
|
|
@@ -1710,11 +1710,11 @@ var qr = function(e) {
|
|
|
1710
1710
|
for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
|
|
1711
1711
|
u[l] = arguments[l];
|
|
1712
1712
|
var c = bt(u, i.registered);
|
|
1713
|
-
|
|
1713
|
+
di(i, c);
|
|
1714
1714
|
}, s = function() {
|
|
1715
1715
|
for (var d = arguments.length, u = new Array(d), l = 0; l < d; l++)
|
|
1716
1716
|
u[l] = arguments[l];
|
|
1717
|
-
return
|
|
1717
|
+
return li(i.registered, n, zr(u));
|
|
1718
1718
|
};
|
|
1719
1719
|
return {
|
|
1720
1720
|
css: n,
|
|
@@ -1731,10 +1731,10 @@ var qr = function(e) {
|
|
|
1731
1731
|
},
|
|
1732
1732
|
sheet: i.sheet,
|
|
1733
1733
|
cache: i,
|
|
1734
|
-
getRegisteredStyles:
|
|
1735
|
-
merge:
|
|
1734
|
+
getRegisteredStyles: $i.bind(null, i.registered),
|
|
1735
|
+
merge: li.bind(null, i.registered, n)
|
|
1736
1736
|
};
|
|
1737
|
-
},
|
|
1737
|
+
}, zr = function t(e) {
|
|
1738
1738
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
1739
1739
|
var r = e[n];
|
|
1740
1740
|
if (r != null) {
|
|
@@ -1759,78 +1759,78 @@ var qr = function(e) {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
1761
|
return i;
|
|
1762
|
-
},
|
|
1762
|
+
}, Wr = Kr({
|
|
1763
1763
|
key: "css"
|
|
1764
|
-
}), G =
|
|
1765
|
-
function
|
|
1766
|
-
B.__h && B.__h(Q, t,
|
|
1764
|
+
}), G = Wr.css, Dt, Q, pt, ui, ci = 0, Fi = [], B = Te, hi = B.__b, fi = B.__r, vi = B.diffed, yi = B.__c, gi = B.unmount, wi = B.__;
|
|
1765
|
+
function Hr(t, e) {
|
|
1766
|
+
B.__h && B.__h(Q, t, ci || e), ci = 0;
|
|
1767
1767
|
var i = Q.__H || (Q.__H = { __: [], __h: [] });
|
|
1768
1768
|
return t >= i.__.length && i.__.push({}), i.__[t];
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1771
|
-
var i =
|
|
1770
|
+
function Ui(t, e) {
|
|
1771
|
+
var i = Hr(Dt++, 7);
|
|
1772
1772
|
return Xr(i.__H, e) && (i.__ = t(), i.__H = e, i.__h = t), i.__;
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1775
|
-
for (var t; t =
|
|
1774
|
+
function Jr() {
|
|
1775
|
+
for (var t; t = Fi.shift(); )
|
|
1776
1776
|
if (t.__P && t.__H)
|
|
1777
1777
|
try {
|
|
1778
|
-
t.__H.__h.forEach(
|
|
1778
|
+
t.__H.__h.forEach(it), t.__H.__h.forEach(Pt), t.__H.__h = [];
|
|
1779
1779
|
} catch (e) {
|
|
1780
1780
|
t.__H.__h = [], B.__e(e, t.__v);
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
B.__b = function(t) {
|
|
1784
|
-
Q = null,
|
|
1784
|
+
Q = null, hi && hi(t);
|
|
1785
1785
|
}, B.__ = function(t, e) {
|
|
1786
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
1786
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), wi && wi(t, e);
|
|
1787
1787
|
}, B.__r = function(t) {
|
|
1788
|
-
|
|
1788
|
+
fi && fi(t), Dt = 0;
|
|
1789
1789
|
var e = (Q = t.__c).__H;
|
|
1790
|
-
e && (
|
|
1790
|
+
e && (pt === Q ? (e.__h = [], Q.__h = [], e.__.forEach(function(i) {
|
|
1791
1791
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
1792
|
-
})) : (e.__h.forEach(
|
|
1792
|
+
})) : (e.__h.forEach(it), e.__h.forEach(Pt), e.__h = [], Dt = 0)), pt = Q;
|
|
1793
1793
|
}, B.diffed = function(t) {
|
|
1794
|
-
|
|
1794
|
+
vi && vi(t);
|
|
1795
1795
|
var e = t.__c;
|
|
1796
|
-
e && e.__H && (e.__H.__h.length && (
|
|
1796
|
+
e && e.__H && (e.__H.__h.length && (Fi.push(e) !== 1 && ui === B.requestAnimationFrame || ((ui = B.requestAnimationFrame) || Yr)(Jr)), e.__H.__.forEach(function(i) {
|
|
1797
1797
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
1798
|
-
})),
|
|
1798
|
+
})), pt = Q = null;
|
|
1799
1799
|
}, B.__c = function(t, e) {
|
|
1800
1800
|
e.some(function(i) {
|
|
1801
1801
|
try {
|
|
1802
|
-
i.__h.forEach(
|
|
1803
|
-
return !n.__ ||
|
|
1802
|
+
i.__h.forEach(it), i.__h = i.__h.filter(function(n) {
|
|
1803
|
+
return !n.__ || Pt(n);
|
|
1804
1804
|
});
|
|
1805
1805
|
} catch (n) {
|
|
1806
1806
|
e.some(function(r) {
|
|
1807
1807
|
r.__h && (r.__h = []);
|
|
1808
1808
|
}), e = [], B.__e(n, i.__v);
|
|
1809
1809
|
}
|
|
1810
|
-
}),
|
|
1810
|
+
}), yi && yi(t, e);
|
|
1811
1811
|
}, B.unmount = function(t) {
|
|
1812
|
-
|
|
1812
|
+
gi && gi(t);
|
|
1813
1813
|
var e, i = t.__c;
|
|
1814
1814
|
i && i.__H && (i.__H.__.forEach(function(n) {
|
|
1815
1815
|
try {
|
|
1816
|
-
|
|
1816
|
+
it(n);
|
|
1817
1817
|
} catch (r) {
|
|
1818
1818
|
e = r;
|
|
1819
1819
|
}
|
|
1820
1820
|
}), i.__H = void 0, e && B.__e(e, i.__v));
|
|
1821
1821
|
};
|
|
1822
|
-
var
|
|
1823
|
-
function
|
|
1822
|
+
var Ai = typeof requestAnimationFrame == "function";
|
|
1823
|
+
function Yr(t) {
|
|
1824
1824
|
var e, i = function() {
|
|
1825
|
-
clearTimeout(n),
|
|
1825
|
+
clearTimeout(n), Ai && cancelAnimationFrame(e), setTimeout(t);
|
|
1826
1826
|
}, n = setTimeout(i, 100);
|
|
1827
|
-
|
|
1827
|
+
Ai && (e = requestAnimationFrame(i));
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function it(t) {
|
|
1830
1830
|
var e = Q, i = t.__c;
|
|
1831
1831
|
typeof i == "function" && (t.__c = void 0, i()), Q = e;
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function Pt(t) {
|
|
1834
1834
|
var e = Q;
|
|
1835
1835
|
t.__c = t.__(), Q = e;
|
|
1836
1836
|
}
|
|
@@ -1839,16 +1839,16 @@ function Xr(t, e) {
|
|
|
1839
1839
|
return i !== t[n];
|
|
1840
1840
|
});
|
|
1841
1841
|
}
|
|
1842
|
-
var
|
|
1843
|
-
function
|
|
1844
|
-
if (
|
|
1845
|
-
|
|
1842
|
+
var Qr = Symbol.for("preact-signals");
|
|
1843
|
+
function vt() {
|
|
1844
|
+
if (be > 1)
|
|
1845
|
+
be--;
|
|
1846
1846
|
else {
|
|
1847
|
-
for (var t, e = !1;
|
|
1848
|
-
var i =
|
|
1849
|
-
for (
|
|
1847
|
+
for (var t, e = !1; Fe !== void 0; ) {
|
|
1848
|
+
var i = Fe;
|
|
1849
|
+
for (Fe = void 0, Nt++; i !== void 0; ) {
|
|
1850
1850
|
var n = i.o;
|
|
1851
|
-
if (i.o = void 0, i.f &= -3, !(8 & i.f) &&
|
|
1851
|
+
if (i.o = void 0, i.f &= -3, !(8 & i.f) && Vi(i))
|
|
1852
1852
|
try {
|
|
1853
1853
|
i.c();
|
|
1854
1854
|
} catch (r) {
|
|
@@ -1857,22 +1857,22 @@ function ft() {
|
|
|
1857
1857
|
i = n;
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
if (
|
|
1860
|
+
if (Nt = 0, be--, e)
|
|
1861
1861
|
throw t;
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
1864
|
function P(t) {
|
|
1865
|
-
if (
|
|
1865
|
+
if (be > 0)
|
|
1866
1866
|
return t();
|
|
1867
|
-
|
|
1867
|
+
be++;
|
|
1868
1868
|
try {
|
|
1869
1869
|
return t();
|
|
1870
1870
|
} finally {
|
|
1871
|
-
|
|
1871
|
+
vt();
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
var T = void 0,
|
|
1875
|
-
function
|
|
1874
|
+
var T = void 0, Fe = void 0, be = 0, Nt = 0, lt = 0;
|
|
1875
|
+
function ji(t) {
|
|
1876
1876
|
if (T !== void 0) {
|
|
1877
1877
|
var e = t.n;
|
|
1878
1878
|
if (e === void 0 || e.t !== T)
|
|
@@ -1884,7 +1884,7 @@ function Ui(t) {
|
|
|
1884
1884
|
function U(t) {
|
|
1885
1885
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1886
1886
|
}
|
|
1887
|
-
U.prototype.brand =
|
|
1887
|
+
U.prototype.brand = Qr;
|
|
1888
1888
|
U.prototype.h = function() {
|
|
1889
1889
|
return !0;
|
|
1890
1890
|
};
|
|
@@ -1899,7 +1899,7 @@ U.prototype.U = function(t) {
|
|
|
1899
1899
|
};
|
|
1900
1900
|
U.prototype.subscribe = function(t) {
|
|
1901
1901
|
var e = this;
|
|
1902
|
-
return
|
|
1902
|
+
return ze(function() {
|
|
1903
1903
|
var i = e.value, n = T;
|
|
1904
1904
|
T = void 0;
|
|
1905
1905
|
try {
|
|
@@ -1928,31 +1928,31 @@ U.prototype.peek = function() {
|
|
|
1928
1928
|
}
|
|
1929
1929
|
};
|
|
1930
1930
|
Object.defineProperty(U.prototype, "value", { get: function() {
|
|
1931
|
-
var t =
|
|
1931
|
+
var t = ji(this);
|
|
1932
1932
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1933
1933
|
}, set: function(t) {
|
|
1934
1934
|
if (t !== this.v) {
|
|
1935
|
-
if (
|
|
1935
|
+
if (Nt > 100)
|
|
1936
1936
|
throw new Error("Cycle detected");
|
|
1937
|
-
this.v = t, this.i++,
|
|
1937
|
+
this.v = t, this.i++, lt++, be++;
|
|
1938
1938
|
try {
|
|
1939
1939
|
for (var e = this.t; e !== void 0; e = e.x)
|
|
1940
1940
|
e.t.N();
|
|
1941
1941
|
} finally {
|
|
1942
|
-
|
|
1942
|
+
vt();
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
1945
|
} });
|
|
1946
1946
|
function k(t) {
|
|
1947
1947
|
return new U(t);
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1949
|
+
function Vi(t) {
|
|
1950
1950
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
1951
1951
|
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
|
|
1952
1952
|
return !0;
|
|
1953
1953
|
return !1;
|
|
1954
1954
|
}
|
|
1955
|
-
function
|
|
1955
|
+
function Gi(t) {
|
|
1956
1956
|
for (var e = t.s; e !== void 0; e = e.n) {
|
|
1957
1957
|
var i = e.S.n;
|
|
1958
1958
|
if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
|
|
@@ -1961,34 +1961,34 @@ function Vi(t) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function qi(t) {
|
|
1965
1965
|
for (var e = t.s, i = void 0; e !== void 0; ) {
|
|
1966
1966
|
var n = e.p;
|
|
1967
1967
|
e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
|
|
1968
1968
|
}
|
|
1969
1969
|
t.s = i;
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1972
|
-
U.call(this, void 0), this.x = t, this.s = void 0, this.g =
|
|
1971
|
+
function Pe(t) {
|
|
1972
|
+
U.call(this, void 0), this.x = t, this.s = void 0, this.g = lt - 1, this.f = 4;
|
|
1973
1973
|
}
|
|
1974
|
-
(
|
|
1974
|
+
(Pe.prototype = new U()).h = function() {
|
|
1975
1975
|
if (this.f &= -3, 1 & this.f)
|
|
1976
1976
|
return !1;
|
|
1977
|
-
if ((36 & this.f) == 32 || (this.f &= -5, this.g ===
|
|
1977
|
+
if ((36 & this.f) == 32 || (this.f &= -5, this.g === lt))
|
|
1978
1978
|
return !0;
|
|
1979
|
-
if (this.g =
|
|
1979
|
+
if (this.g = lt, this.f |= 1, this.i > 0 && !Vi(this))
|
|
1980
1980
|
return this.f &= -2, !0;
|
|
1981
1981
|
var t = T;
|
|
1982
1982
|
try {
|
|
1983
|
-
|
|
1983
|
+
Gi(this), T = this;
|
|
1984
1984
|
var e = this.x();
|
|
1985
1985
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
|
1986
1986
|
} catch (i) {
|
|
1987
1987
|
this.v = i, this.f |= 16, this.i++;
|
|
1988
1988
|
}
|
|
1989
|
-
return T = t,
|
|
1989
|
+
return T = t, qi(this), this.f &= -2, !0;
|
|
1990
1990
|
};
|
|
1991
|
-
|
|
1991
|
+
Pe.prototype.S = function(t) {
|
|
1992
1992
|
if (this.t === void 0) {
|
|
1993
1993
|
this.f |= 36;
|
|
1994
1994
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
@@ -1996,60 +1996,60 @@ De.prototype.S = function(t) {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
U.prototype.S.call(this, t);
|
|
1998
1998
|
};
|
|
1999
|
-
|
|
1999
|
+
Pe.prototype.U = function(t) {
|
|
2000
2000
|
if (this.t !== void 0 && (U.prototype.U.call(this, t), this.t === void 0)) {
|
|
2001
2001
|
this.f &= -33;
|
|
2002
2002
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
2003
2003
|
e.S.U(e);
|
|
2004
2004
|
}
|
|
2005
2005
|
};
|
|
2006
|
-
|
|
2006
|
+
Pe.prototype.N = function() {
|
|
2007
2007
|
if (!(2 & this.f)) {
|
|
2008
2008
|
this.f |= 6;
|
|
2009
2009
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
2010
2010
|
t.t.N();
|
|
2011
2011
|
}
|
|
2012
2012
|
};
|
|
2013
|
-
Object.defineProperty(
|
|
2013
|
+
Object.defineProperty(Pe.prototype, "value", { get: function() {
|
|
2014
2014
|
if (1 & this.f)
|
|
2015
2015
|
throw new Error("Cycle detected");
|
|
2016
|
-
var t =
|
|
2016
|
+
var t = ji(this);
|
|
2017
2017
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f)
|
|
2018
2018
|
throw this.v;
|
|
2019
2019
|
return this.v;
|
|
2020
2020
|
} });
|
|
2021
|
-
function
|
|
2022
|
-
return new
|
|
2021
|
+
function Ue(t) {
|
|
2022
|
+
return new Pe(t);
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function Ki(t) {
|
|
2025
2025
|
var e = t.u;
|
|
2026
2026
|
if (t.u = void 0, typeof e == "function") {
|
|
2027
|
-
|
|
2027
|
+
be++;
|
|
2028
2028
|
var i = T;
|
|
2029
2029
|
T = void 0;
|
|
2030
2030
|
try {
|
|
2031
2031
|
e();
|
|
2032
2032
|
} catch (n) {
|
|
2033
|
-
throw t.f &= -2, t.f |= 8,
|
|
2033
|
+
throw t.f &= -2, t.f |= 8, Ut(t), n;
|
|
2034
2034
|
} finally {
|
|
2035
|
-
T = i,
|
|
2035
|
+
T = i, vt();
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function Ut(t) {
|
|
2040
2040
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
2041
2041
|
e.S.U(e);
|
|
2042
|
-
t.x = void 0, t.s = void 0,
|
|
2042
|
+
t.x = void 0, t.s = void 0, Ki(t);
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function Zr(t) {
|
|
2045
2045
|
if (T !== this)
|
|
2046
2046
|
throw new Error("Out-of-order effect");
|
|
2047
|
-
|
|
2047
|
+
qi(this), T = t, this.f &= -2, 8 & this.f && Ut(this), vt();
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function Ke(t) {
|
|
2050
2050
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
|
2051
2051
|
}
|
|
2052
|
-
|
|
2052
|
+
Ke.prototype.c = function() {
|
|
2053
2053
|
var t = this.S();
|
|
2054
2054
|
try {
|
|
2055
2055
|
if (8 & this.f || this.x === void 0)
|
|
@@ -2060,21 +2060,21 @@ qe.prototype.c = function() {
|
|
|
2060
2060
|
t();
|
|
2061
2061
|
}
|
|
2062
2062
|
};
|
|
2063
|
-
|
|
2063
|
+
Ke.prototype.S = function() {
|
|
2064
2064
|
if (1 & this.f)
|
|
2065
2065
|
throw new Error("Cycle detected");
|
|
2066
|
-
this.f |= 1, this.f &= -9,
|
|
2066
|
+
this.f |= 1, this.f &= -9, Ki(this), Gi(this), be++;
|
|
2067
2067
|
var t = T;
|
|
2068
|
-
return T = this,
|
|
2068
|
+
return T = this, Zr.bind(this, t);
|
|
2069
2069
|
};
|
|
2070
|
-
|
|
2071
|
-
2 & this.f || (this.f |= 2, this.o =
|
|
2070
|
+
Ke.prototype.N = function() {
|
|
2071
|
+
2 & this.f || (this.f |= 2, this.o = Fe, Fe = this);
|
|
2072
2072
|
};
|
|
2073
|
-
|
|
2074
|
-
this.f |= 8, 1 & this.f ||
|
|
2073
|
+
Ke.prototype.d = function() {
|
|
2074
|
+
this.f |= 8, 1 & this.f || Ut(this);
|
|
2075
2075
|
};
|
|
2076
|
-
function
|
|
2077
|
-
var e = new
|
|
2076
|
+
function ze(t) {
|
|
2077
|
+
var e = new Ke(t);
|
|
2078
2078
|
try {
|
|
2079
2079
|
e.c();
|
|
2080
2080
|
} catch (i) {
|
|
@@ -2082,33 +2082,33 @@ function Ke(t) {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
return e.d.bind(e);
|
|
2084
2084
|
}
|
|
2085
|
-
var
|
|
2086
|
-
|
|
2087
|
-
|
|
2085
|
+
var zi, _t, Wi = [];
|
|
2086
|
+
ze(function() {
|
|
2087
|
+
zi = this.N;
|
|
2088
2088
|
})();
|
|
2089
|
-
function
|
|
2090
|
-
|
|
2089
|
+
function Ne(t, e) {
|
|
2090
|
+
Te[t] = e.bind(null, Te[t] || function() {
|
|
2091
2091
|
});
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2094
|
-
|
|
2093
|
+
function ut(t) {
|
|
2094
|
+
_t && _t(), _t = t && t.S();
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2097
|
-
var e = this, i = t.data, n =
|
|
2096
|
+
function Hi(t) {
|
|
2097
|
+
var e = this, i = t.data, n = Ji(i);
|
|
2098
2098
|
n.value = i;
|
|
2099
|
-
var r =
|
|
2099
|
+
var r = Ui(function() {
|
|
2100
2100
|
for (var a = e, d = e.__v; d = d.__; )
|
|
2101
2101
|
if (d.__c) {
|
|
2102
2102
|
d.__c.__$f |= 4;
|
|
2103
2103
|
break;
|
|
2104
2104
|
}
|
|
2105
|
-
var u =
|
|
2105
|
+
var u = Ue(function() {
|
|
2106
2106
|
var f = n.value.value;
|
|
2107
2107
|
return f === 0 ? 0 : f === !0 ? "" : f || "";
|
|
2108
|
-
}), l =
|
|
2109
|
-
return !Array.isArray(u.value) && !
|
|
2110
|
-
}), c =
|
|
2111
|
-
if (this.N =
|
|
2108
|
+
}), l = Ue(function() {
|
|
2109
|
+
return !Array.isArray(u.value) && !fn(u.value);
|
|
2110
|
+
}), c = ze(function() {
|
|
2111
|
+
if (this.N = Yi, l.value) {
|
|
2112
2112
|
var f = u.value;
|
|
2113
2113
|
a.__v && a.__v.__e && a.__v.__e.nodeType === 3 && (a.__v.__e.data = f);
|
|
2114
2114
|
}
|
|
@@ -2119,11 +2119,11 @@ function Wi(t) {
|
|
|
2119
2119
|
}, []), o = r[0], s = r[1];
|
|
2120
2120
|
return o.value ? s.peek() : s.value;
|
|
2121
2121
|
}
|
|
2122
|
-
|
|
2123
|
-
Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value:
|
|
2122
|
+
Hi.displayName = "_st";
|
|
2123
|
+
Object.defineProperties(U.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Hi }, props: { configurable: !0, get: function() {
|
|
2124
2124
|
return { data: this };
|
|
2125
2125
|
} }, __b: { configurable: !0, value: 1 } });
|
|
2126
|
-
|
|
2126
|
+
Ne("__b", function(t, e) {
|
|
2127
2127
|
if (typeof e.type == "string") {
|
|
2128
2128
|
var i, n = e.props;
|
|
2129
2129
|
for (var r in n)
|
|
@@ -2134,23 +2134,23 @@ Pe("__b", function(t, e) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
t(e);
|
|
2136
2136
|
});
|
|
2137
|
-
|
|
2138
|
-
|
|
2137
|
+
Ne("__r", function(t, e) {
|
|
2138
|
+
ut();
|
|
2139
2139
|
var i, n = e.__c;
|
|
2140
2140
|
n && (n.__$f &= -2, (i = n.__$u) === void 0 && (n.__$u = i = function(r) {
|
|
2141
2141
|
var o;
|
|
2142
|
-
return
|
|
2142
|
+
return ze(function() {
|
|
2143
2143
|
o = this;
|
|
2144
2144
|
}), o.c = function() {
|
|
2145
2145
|
n.__$f |= 1, n.setState({});
|
|
2146
2146
|
}, o;
|
|
2147
|
-
}())),
|
|
2147
|
+
}())), ut(i), t(e);
|
|
2148
2148
|
});
|
|
2149
|
-
|
|
2150
|
-
|
|
2149
|
+
Ne("__e", function(t, e, i, n) {
|
|
2150
|
+
ut(), t(e, i, n);
|
|
2151
2151
|
});
|
|
2152
|
-
|
|
2153
|
-
|
|
2152
|
+
Ne("diffed", function(t, e) {
|
|
2153
|
+
ut();
|
|
2154
2154
|
var i;
|
|
2155
2155
|
if (typeof e.type == "string" && (i = e.__e)) {
|
|
2156
2156
|
var n = e.__np, r = e.props;
|
|
@@ -2165,23 +2165,23 @@ Pe("diffed", function(t, e) {
|
|
|
2165
2165
|
o = {}, i.U = o;
|
|
2166
2166
|
for (var d in n) {
|
|
2167
2167
|
var u = o[d], l = n[d];
|
|
2168
|
-
u === void 0 ? (u =
|
|
2168
|
+
u === void 0 ? (u = eo(i, d, l, r), o[d] = u) : u.o(l, r);
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
t(e);
|
|
2173
2173
|
});
|
|
2174
|
-
function
|
|
2174
|
+
function eo(t, e, i, n) {
|
|
2175
2175
|
var r = e in t && t.ownerSVGElement === void 0, o = k(i);
|
|
2176
2176
|
return { o: function(s, a) {
|
|
2177
2177
|
o.value = s, n = a;
|
|
2178
|
-
}, d:
|
|
2179
|
-
this.N =
|
|
2178
|
+
}, d: ze(function() {
|
|
2179
|
+
this.N = Yi;
|
|
2180
2180
|
var s = o.value.value;
|
|
2181
2181
|
n[e] !== s && (n[e] = s, r ? t[e] = s : s ? t.setAttribute(e, s) : t.removeAttribute(e));
|
|
2182
2182
|
}) };
|
|
2183
2183
|
}
|
|
2184
|
-
|
|
2184
|
+
Ne("unmount", function(t, e) {
|
|
2185
2185
|
if (typeof e.type == "string") {
|
|
2186
2186
|
var i = e.__e;
|
|
2187
2187
|
if (i) {
|
|
@@ -2203,10 +2203,10 @@ Pe("unmount", function(t, e) {
|
|
|
2203
2203
|
}
|
|
2204
2204
|
t(e);
|
|
2205
2205
|
});
|
|
2206
|
-
|
|
2206
|
+
Ne("__h", function(t, e, i, n) {
|
|
2207
2207
|
(n < 3 || n === 9) && (e.__$f |= 2), t(e, i, n);
|
|
2208
2208
|
});
|
|
2209
|
-
|
|
2209
|
+
hn.prototype.shouldComponentUpdate = function(t, e) {
|
|
2210
2210
|
var i = this.__$u, n = i && i.s !== void 0;
|
|
2211
2211
|
for (var r in e)
|
|
2212
2212
|
return !0;
|
|
@@ -2224,24 +2224,24 @@ cn.prototype.shouldComponentUpdate = function(t, e) {
|
|
|
2224
2224
|
return !0;
|
|
2225
2225
|
return !1;
|
|
2226
2226
|
};
|
|
2227
|
-
function
|
|
2228
|
-
return
|
|
2227
|
+
function Ji(t) {
|
|
2228
|
+
return Ui(function() {
|
|
2229
2229
|
return k(t);
|
|
2230
2230
|
}, []);
|
|
2231
2231
|
}
|
|
2232
|
-
var
|
|
2232
|
+
var to = function(t) {
|
|
2233
2233
|
queueMicrotask(function() {
|
|
2234
2234
|
queueMicrotask(t);
|
|
2235
2235
|
});
|
|
2236
2236
|
};
|
|
2237
|
-
function
|
|
2237
|
+
function io() {
|
|
2238
2238
|
P(function() {
|
|
2239
|
-
for (var t; t =
|
|
2240
|
-
|
|
2239
|
+
for (var t; t = Wi.shift(); )
|
|
2240
|
+
zi.call(t);
|
|
2241
2241
|
});
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2244
|
-
|
|
2243
|
+
function Yi() {
|
|
2244
|
+
Wi.push(this) === 1 && (Te.requestAnimationFrame || to)(io);
|
|
2245
2245
|
}
|
|
2246
2246
|
const M = G`
|
|
2247
2247
|
inset: 0;
|
|
@@ -2262,11 +2262,11 @@ const M = G`
|
|
|
2262
2262
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
2263
2263
|
'Helvetica Neue', sans-serif;
|
|
2264
2264
|
`;
|
|
2265
|
-
function
|
|
2266
|
-
const i =
|
|
2267
|
-
|
|
2265
|
+
function no(t, e) {
|
|
2266
|
+
const i = mi(t);
|
|
2267
|
+
vn(() => {
|
|
2268
2268
|
i.current = t;
|
|
2269
|
-
}, [t]),
|
|
2269
|
+
}, [t]), Ce(() => {
|
|
2270
2270
|
if (e === null)
|
|
2271
2271
|
return;
|
|
2272
2272
|
const n = setInterval(() => {
|
|
@@ -2277,20 +2277,20 @@ function io(t, e) {
|
|
|
2277
2277
|
};
|
|
2278
2278
|
}, [e]);
|
|
2279
2279
|
}
|
|
2280
|
-
var
|
|
2281
|
-
function
|
|
2280
|
+
var ro = 0;
|
|
2281
|
+
function m(t, e, i, n, r, o) {
|
|
2282
2282
|
e || (e = {});
|
|
2283
2283
|
var s, a, d = e;
|
|
2284
2284
|
if ("ref" in d)
|
|
2285
2285
|
for (a in d = {}, e)
|
|
2286
2286
|
a == "ref" ? s = e[a] : d[a] = e[a];
|
|
2287
|
-
var u = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2287
|
+
var u = { type: t, props: d, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ro, __i: -1, __u: 0, __source: r, __self: o };
|
|
2288
2288
|
if (typeof t == "function" && (s = t.defaultProps))
|
|
2289
2289
|
for (a in s)
|
|
2290
2290
|
d[a] === void 0 && (d[a] = s[a]);
|
|
2291
|
-
return
|
|
2291
|
+
return Te.vnode && Te.vnode(u), u;
|
|
2292
2292
|
}
|
|
2293
|
-
const
|
|
2293
|
+
const oo = G`
|
|
2294
2294
|
${M}
|
|
2295
2295
|
position: fixed;
|
|
2296
2296
|
top: 0;
|
|
@@ -2365,55 +2365,55 @@ const ro = G`
|
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
|
-
`,
|
|
2368
|
+
`, ne = k(null), Lt = k(""), Bt = k(""), nt = k(!1), so = () => {
|
|
2369
2369
|
var t;
|
|
2370
|
-
(t =
|
|
2371
|
-
},
|
|
2370
|
+
(t = ne.value) == null || t.call(ne, !1);
|
|
2371
|
+
}, ao = () => {
|
|
2372
2372
|
var t;
|
|
2373
|
-
(t =
|
|
2374
|
-
},
|
|
2373
|
+
(t = ne.value) == null || t.call(ne, !0);
|
|
2374
|
+
}, lo = async (t) => {
|
|
2375
2375
|
let {
|
|
2376
2376
|
title: e,
|
|
2377
2377
|
content: i
|
|
2378
2378
|
} = t;
|
|
2379
|
-
return
|
|
2380
|
-
|
|
2379
|
+
return ne.value && (ne.value(!1), P(() => {
|
|
2380
|
+
ne.value = null, nt.value = !1;
|
|
2381
2381
|
})), P(() => {
|
|
2382
|
-
|
|
2382
|
+
Lt.value = e || "", Bt.value = i || "", nt.value = !0;
|
|
2383
2383
|
}), new Promise((n) => {
|
|
2384
|
-
|
|
2384
|
+
ne.value = (r) => {
|
|
2385
2385
|
P(() => {
|
|
2386
|
-
|
|
2386
|
+
ne.value = null, nt.value = !1, Lt.value = "", Bt.value = "";
|
|
2387
2387
|
}), n(r);
|
|
2388
2388
|
};
|
|
2389
2389
|
});
|
|
2390
|
-
},
|
|
2391
|
-
className:
|
|
2392
|
-
children:
|
|
2390
|
+
}, uo = () => nt.value ? m("div", {
|
|
2391
|
+
className: oo,
|
|
2392
|
+
children: m("div", {
|
|
2393
2393
|
className: "card-wrapper",
|
|
2394
|
-
children: [
|
|
2394
|
+
children: [m("div", {
|
|
2395
2395
|
className: "body",
|
|
2396
|
-
children: [
|
|
2396
|
+
children: [m("div", {
|
|
2397
2397
|
className: "title",
|
|
2398
|
-
children: Nt.value
|
|
2399
|
-
}), _("div", {
|
|
2400
|
-
className: "content",
|
|
2401
2398
|
children: Lt.value
|
|
2399
|
+
}), m("div", {
|
|
2400
|
+
className: "content",
|
|
2401
|
+
children: Bt.value
|
|
2402
2402
|
})]
|
|
2403
|
-
}),
|
|
2403
|
+
}), m("div", {
|
|
2404
2404
|
className: "footer",
|
|
2405
|
-
children: [
|
|
2406
|
-
onClick:
|
|
2405
|
+
children: [m("button", {
|
|
2406
|
+
onClick: so,
|
|
2407
2407
|
className: "cancel-btn",
|
|
2408
2408
|
children: "Cancel"
|
|
2409
|
-
}),
|
|
2410
|
-
onClick:
|
|
2409
|
+
}), m("button", {
|
|
2410
|
+
onClick: ao,
|
|
2411
2411
|
className: "confirm-btm",
|
|
2412
2412
|
children: "Confirm"
|
|
2413
2413
|
})]
|
|
2414
2414
|
})]
|
|
2415
2415
|
})
|
|
2416
|
-
}) : null,
|
|
2416
|
+
}) : null, co = G`
|
|
2417
2417
|
${M}
|
|
2418
2418
|
position: relative;
|
|
2419
2419
|
display: flex;
|
|
@@ -2446,7 +2446,7 @@ const ro = G`
|
|
|
2446
2446
|
cursor: not-allowed;
|
|
2447
2447
|
}
|
|
2448
2448
|
}
|
|
2449
|
-
`,
|
|
2449
|
+
`, ho = () => {
|
|
2450
2450
|
const t = k(!1), e = k(null);
|
|
2451
2451
|
return {
|
|
2452
2452
|
timerPaused: t,
|
|
@@ -2457,7 +2457,7 @@ const ro = G`
|
|
|
2457
2457
|
});
|
|
2458
2458
|
}
|
|
2459
2459
|
};
|
|
2460
|
-
},
|
|
2460
|
+
}, fo = (t) => {
|
|
2461
2461
|
let {
|
|
2462
2462
|
countdown: e = 0,
|
|
2463
2463
|
mode: i,
|
|
@@ -2467,26 +2467,26 @@ const ro = G`
|
|
|
2467
2467
|
const {
|
|
2468
2468
|
startTimestamp: o,
|
|
2469
2469
|
timerPaused: s
|
|
2470
|
-
} = r, a =
|
|
2471
|
-
|
|
2470
|
+
} = r, a = Ji(e);
|
|
2471
|
+
no(() => {
|
|
2472
2472
|
a.value > 0 ? a.value -= 1 : P(() => {
|
|
2473
2473
|
s.value = !0, a.value = 0;
|
|
2474
2474
|
});
|
|
2475
2475
|
}, s.value ? null : 1e3);
|
|
2476
|
-
const d =
|
|
2476
|
+
const d = Ue(() => {
|
|
2477
2477
|
if (i === "interstitial" || i === "rewarded_insterstitial" || !o.value)
|
|
2478
2478
|
return !1;
|
|
2479
2479
|
const f = Date.now() - o.value;
|
|
2480
2480
|
return a.value > 0 && e - a.value >= 5 && f >= 5e3;
|
|
2481
|
-
}), u =
|
|
2481
|
+
}), u = Ue(() => {
|
|
2482
2482
|
if (i === "interstitial")
|
|
2483
2483
|
return !0;
|
|
2484
2484
|
if (!o.value)
|
|
2485
2485
|
return !1;
|
|
2486
2486
|
const f = Date.now() - o.value;
|
|
2487
2487
|
return a.value <= 0 && f >= (e - 1) * 1e3 && e > 5;
|
|
2488
|
-
}), l =
|
|
2489
|
-
if (s.value = !0, !await
|
|
2488
|
+
}), l = Ue(() => i === "interstitial" ? !1 : !d.value && !u.value), c = async () => {
|
|
2489
|
+
if (s.value = !0, !await lo({
|
|
2490
2490
|
title: "Are you sure?",
|
|
2491
2491
|
content: "You will lose your reward if you dismiss this Ad."
|
|
2492
2492
|
})) {
|
|
@@ -2501,21 +2501,21 @@ const ro = G`
|
|
|
2501
2501
|
s.value = !0, a.value = 0, o.value = null;
|
|
2502
2502
|
});
|
|
2503
2503
|
};
|
|
2504
|
-
return
|
|
2505
|
-
className:
|
|
2506
|
-
children: [a.value > 0 && i !== "interstitial" &&
|
|
2504
|
+
return m("div", {
|
|
2505
|
+
className: co,
|
|
2506
|
+
children: [a.value > 0 && i !== "interstitial" && m("div", {
|
|
2507
2507
|
className: "timer",
|
|
2508
2508
|
children: [a.value, "s"]
|
|
2509
|
-
}),
|
|
2509
|
+
}), m("button", {
|
|
2510
2510
|
onClick: d.value ? c : u.value ? h : void 0,
|
|
2511
2511
|
disabled: l.value,
|
|
2512
|
-
children:
|
|
2512
|
+
children: m("svg", {
|
|
2513
2513
|
width: "12",
|
|
2514
2514
|
height: "12",
|
|
2515
2515
|
viewBox: "0 0 14 14",
|
|
2516
2516
|
fill: "none",
|
|
2517
2517
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2518
|
-
children:
|
|
2518
|
+
children: m("path", {
|
|
2519
2519
|
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",
|
|
2520
2520
|
fill: "white"
|
|
2521
2521
|
})
|
|
@@ -2535,7 +2535,7 @@ const ro = G`
|
|
|
2535
2535
|
src: a,
|
|
2536
2536
|
mode: d
|
|
2537
2537
|
};
|
|
2538
|
-
},
|
|
2538
|
+
}, vo = G`
|
|
2539
2539
|
${M}
|
|
2540
2540
|
position: fixed;
|
|
2541
2541
|
z-index: 2147483647;
|
|
@@ -2554,7 +2554,7 @@ const ro = G`
|
|
|
2554
2554
|
width: 100%;
|
|
2555
2555
|
height: 100%;
|
|
2556
2556
|
}
|
|
2557
|
-
`,
|
|
2557
|
+
`, Qi = (t) => {
|
|
2558
2558
|
let {
|
|
2559
2559
|
state: e
|
|
2560
2560
|
} = t;
|
|
@@ -2568,39 +2568,39 @@ const ro = G`
|
|
|
2568
2568
|
countdown: d,
|
|
2569
2569
|
src: u,
|
|
2570
2570
|
mode: l
|
|
2571
|
-
} = e, c =
|
|
2572
|
-
var g,
|
|
2573
|
-
a.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((
|
|
2574
|
-
},
|
|
2571
|
+
} = e, c = yn(() => ho(), []), [h, f] = _e(!1), v = (w) => {
|
|
2572
|
+
var g, A, S, p;
|
|
2573
|
+
a.value = !1, w === "dismiss" ? (g = n.value) == null || g.call(n) : w === "viewed" && ((A = r.value) == null || A.call(r)), (S = i.value) == null || S.call(i), (p = o.value) == null || p.call(o), f(!1);
|
|
2574
|
+
}, y = kt(() => {
|
|
2575
2575
|
var w;
|
|
2576
2576
|
h || (f(!0), (w = s.value) == null || w.call(s));
|
|
2577
2577
|
}, [h]);
|
|
2578
|
-
return
|
|
2578
|
+
return Ce(() => {
|
|
2579
2579
|
h && (l.value === "reward" || l.value === "rewarded_insterstitial") && setTimeout(() => {
|
|
2580
2580
|
c.startTimer();
|
|
2581
2581
|
}, 100);
|
|
2582
|
-
}, [h, l.value]), a.value ?
|
|
2583
|
-
className:
|
|
2584
|
-
children: [
|
|
2582
|
+
}, [h, l.value]), a.value ? m("div", {
|
|
2583
|
+
className: vo,
|
|
2584
|
+
children: [m(fo, {
|
|
2585
2585
|
mode: l.value,
|
|
2586
|
-
onClose:
|
|
2586
|
+
onClose: v,
|
|
2587
2587
|
countdown: d.value,
|
|
2588
2588
|
state: c
|
|
2589
|
-
}), a.value &&
|
|
2589
|
+
}), a.value && m("iframe", {
|
|
2590
2590
|
src: u.value,
|
|
2591
|
-
onLoad:
|
|
2591
|
+
onLoad: y,
|
|
2592
2592
|
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"
|
|
2593
|
-
}),
|
|
2593
|
+
}), m(uo, {})]
|
|
2594
2594
|
}) : null;
|
|
2595
2595
|
};
|
|
2596
|
-
function
|
|
2597
|
-
return (e =
|
|
2596
|
+
function le(t, e, i) {
|
|
2597
|
+
return (e = yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2598
2598
|
}
|
|
2599
|
-
function
|
|
2600
|
-
var e =
|
|
2599
|
+
function yo(t) {
|
|
2600
|
+
var e = go(t, "string");
|
|
2601
2601
|
return typeof e == "symbol" ? e : e + "";
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2603
|
+
function go(t, e) {
|
|
2604
2604
|
if (typeof t != "object" || !t)
|
|
2605
2605
|
return t;
|
|
2606
2606
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2612,13 +2612,13 @@ function yo(t, e) {
|
|
|
2612
2612
|
}
|
|
2613
2613
|
return (e === "string" ? String : Number)(t);
|
|
2614
2614
|
}
|
|
2615
|
-
class
|
|
2615
|
+
class wo {
|
|
2616
2616
|
constructor(e, i) {
|
|
2617
|
-
|
|
2617
|
+
le(this, "name", "OKSPIN"), le(this, "initialized", !1), le(this, "initCompleter", null), le(this, "context", void 0), le(this, "initParams", void 0), le(this, "adsOverlay", null), le(this, "adsIsShowing", !1), le(this, "lastUnDisplayedAdBreak", null), le(this, "state", Xi()), this.context = e, this.initParams = i;
|
|
2618
2618
|
}
|
|
2619
2619
|
async init() {
|
|
2620
2620
|
var e;
|
|
2621
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"),
|
|
2621
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg"), ye(m(Qi, {
|
|
2622
2622
|
state: this.state
|
|
2623
2623
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
2624
2624
|
}
|
|
@@ -2703,15 +2703,15 @@ class go {
|
|
|
2703
2703
|
}, f = () => {
|
|
2704
2704
|
var g;
|
|
2705
2705
|
this.adsIsShowing = !1, h.breakStatus = "dismissed", (g = e.adDismissed) == null || g.call(e);
|
|
2706
|
-
},
|
|
2706
|
+
}, v = () => {
|
|
2707
2707
|
var g;
|
|
2708
2708
|
this.adsIsShowing = !1, h.breakStatus = "viewed", (g = e.adViewed) == null || g.call(e);
|
|
2709
|
-
},
|
|
2709
|
+
}, y = () => {
|
|
2710
2710
|
var g;
|
|
2711
2711
|
this.adsIsShowing = !1, (g = e.adBreakDone) == null || g.call(e, h);
|
|
2712
2712
|
};
|
|
2713
2713
|
P(() => {
|
|
2714
|
-
this.state.afterAd.value = c, this.state.adDismissed.value = f, this.state.adViewed.value =
|
|
2714
|
+
this.state.afterAd.value = c, this.state.adDismissed.value = f, this.state.adViewed.value = v, this.state.adBreakDone.value = y;
|
|
2715
2715
|
});
|
|
2716
2716
|
const w = () => {
|
|
2717
2717
|
var g;
|
|
@@ -2725,8 +2725,8 @@ class go {
|
|
|
2725
2725
|
return;
|
|
2726
2726
|
}
|
|
2727
2727
|
this.adsIsShowing = !0, P(() => {
|
|
2728
|
-
var
|
|
2729
|
-
this.state.countdown.value = (
|
|
2728
|
+
var A;
|
|
2729
|
+
this.state.countdown.value = (A = i.params.countdown) != null ? A : 15, this.state.src.value = i.params.url, this.state.mode.value = "reward", this.state.visible.value = !0;
|
|
2730
2730
|
});
|
|
2731
2731
|
};
|
|
2732
2732
|
this.lastUnDisplayedAdBreak = e, (l = e.beforeReward) == null || l.call(e, w);
|
|
@@ -2735,7 +2735,7 @@ class go {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
}
|
|
2737
2737
|
}
|
|
2738
|
-
const
|
|
2738
|
+
const Ao = () => {
|
|
2739
2739
|
const t = k(null), e = k(null), i = k(null), n = k(null), r = k(null), o = k(null), s = k(!1), a = k(null);
|
|
2740
2740
|
return {
|
|
2741
2741
|
afterAd: t,
|
|
@@ -2754,7 +2754,7 @@ const wo = () => {
|
|
|
2754
2754
|
z-index: 2147483647;
|
|
2755
2755
|
display: flex;
|
|
2756
2756
|
background: #000000;
|
|
2757
|
-
`,
|
|
2757
|
+
`, po = G`
|
|
2758
2758
|
${M}
|
|
2759
2759
|
position: relative;
|
|
2760
2760
|
width: 100%;
|
|
@@ -2762,7 +2762,7 @@ const wo = () => {
|
|
|
2762
2762
|
display: flex;
|
|
2763
2763
|
flex-direction: column;
|
|
2764
2764
|
color: #f7f9fc;
|
|
2765
|
-
`,
|
|
2765
|
+
`, _o = G`
|
|
2766
2766
|
position: absolute;
|
|
2767
2767
|
top: 24px;
|
|
2768
2768
|
left: 24px;
|
|
@@ -2773,15 +2773,15 @@ const wo = () => {
|
|
|
2773
2773
|
border-radius: 999px;
|
|
2774
2774
|
background: rgba(0, 0, 0, 0.65);
|
|
2775
2775
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
2776
|
-
`,
|
|
2776
|
+
`, mo = G`
|
|
2777
2777
|
font-size: 11px;
|
|
2778
2778
|
letter-spacing: 0.08em;
|
|
2779
2779
|
text-transform: uppercase;
|
|
2780
2780
|
color: #c7d4ef;
|
|
2781
|
-
`,
|
|
2781
|
+
`, So = G`
|
|
2782
2782
|
font-size: 14px;
|
|
2783
2783
|
font-weight: 500;
|
|
2784
|
-
`,
|
|
2784
|
+
`, Eo = G`
|
|
2785
2785
|
${M}
|
|
2786
2786
|
flex: 1;
|
|
2787
2787
|
background: #050505;
|
|
@@ -2798,13 +2798,13 @@ const wo = () => {
|
|
|
2798
2798
|
justify-content: center;
|
|
2799
2799
|
color: #6e7da1;
|
|
2800
2800
|
font-size: 14px;
|
|
2801
|
-
`,
|
|
2801
|
+
`, ko = G`
|
|
2802
2802
|
position: absolute;
|
|
2803
2803
|
bottom: 32px;
|
|
2804
2804
|
right: 32px;
|
|
2805
2805
|
display: flex;
|
|
2806
2806
|
gap: 12px;
|
|
2807
|
-
`,
|
|
2807
|
+
`, Io = G`
|
|
2808
2808
|
min-width: 160px;
|
|
2809
2809
|
min-height: 48px;
|
|
2810
2810
|
border-radius: 999px;
|
|
@@ -2820,7 +2820,7 @@ const wo = () => {
|
|
|
2820
2820
|
opacity: 0.4;
|
|
2821
2821
|
cursor: not-allowed;
|
|
2822
2822
|
}
|
|
2823
|
-
`,
|
|
2823
|
+
`, xo = G`
|
|
2824
2824
|
min-width: 120px;
|
|
2825
2825
|
min-height: 44px;
|
|
2826
2826
|
border-radius: 999px;
|
|
@@ -2830,7 +2830,7 @@ const wo = () => {
|
|
|
2830
2830
|
font-size: 14px;
|
|
2831
2831
|
font-weight: 500;
|
|
2832
2832
|
cursor: pointer;
|
|
2833
|
-
`,
|
|
2833
|
+
`, Ro = (t) => {
|
|
2834
2834
|
let {
|
|
2835
2835
|
state: e
|
|
2836
2836
|
} = t;
|
|
@@ -2843,51 +2843,51 @@ const wo = () => {
|
|
|
2843
2843
|
adError: a,
|
|
2844
2844
|
visible: d,
|
|
2845
2845
|
payload: u
|
|
2846
|
-
} = e, [l, c] =
|
|
2846
|
+
} = e, [l, c] = _e(!1), [h, f] = _e(0), [v, y] = _e(!1), [w, g] = _e(!1), [A, S] = _e("Loading next content..."), p = mi(null), _ = u.value, E = kt((L) => {
|
|
2847
2847
|
var C, W, q, I;
|
|
2848
2848
|
c(!1), d.value = !1, L === "dismiss" ? (C = n.value) == null || C.call(n) : (W = r.value) == null || W.call(r), (q = i.value) == null || q.call(i), (I = o.value) == null || I.call(o);
|
|
2849
|
-
}, [d, n, r, i, o]),
|
|
2849
|
+
}, [d, n, r, i, o]), b = kt(() => {
|
|
2850
2850
|
var L;
|
|
2851
2851
|
c(!1), d.value = !1, (L = a.value) == null || L.call(a);
|
|
2852
2852
|
}, [d, a]);
|
|
2853
|
-
if (
|
|
2853
|
+
if (Ce(() => {
|
|
2854
2854
|
var I;
|
|
2855
|
-
if (!d.value || !
|
|
2856
|
-
f(0),
|
|
2855
|
+
if (!d.value || !_) {
|
|
2856
|
+
f(0), y(!1), g(!1), S("Loading next content...");
|
|
2857
2857
|
return;
|
|
2858
2858
|
}
|
|
2859
|
-
const L =
|
|
2860
|
-
if (f(C), g(
|
|
2859
|
+
const L = _.mode === "reward" ? 15 : 0, C = Math.max(Math.floor((I = _.countdown) != null ? I : L), 0);
|
|
2860
|
+
if (f(C), g(_.mode === "reward" ? C === 0 : !0), y(_.mode === "interstitial" ? C === 0 : !1), C === 0)
|
|
2861
2861
|
return;
|
|
2862
2862
|
let W = C;
|
|
2863
2863
|
const q = window.setInterval(() => {
|
|
2864
|
-
W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(q),
|
|
2864
|
+
W -= 1, f(Math.max(W, 0)), W <= 0 && (window.clearInterval(q), _.mode === "reward" ? g(!0) : y(!0));
|
|
2865
2865
|
}, 1e3);
|
|
2866
2866
|
return () => {
|
|
2867
2867
|
window.clearInterval(q);
|
|
2868
2868
|
};
|
|
2869
|
-
}, [d.value,
|
|
2869
|
+
}, [d.value, _, E]), Ce(() => {
|
|
2870
2870
|
var q;
|
|
2871
|
-
if (!d.value || !
|
|
2871
|
+
if (!d.value || !_)
|
|
2872
2872
|
return;
|
|
2873
|
-
const L =
|
|
2873
|
+
const L = p.current;
|
|
2874
2874
|
if (!L)
|
|
2875
2875
|
return;
|
|
2876
|
-
if (L.innerHTML = "", S("Loading next content..."), c(!1),
|
|
2876
|
+
if (L.innerHTML = "", S("Loading next content..."), c(!1), _.testMode) {
|
|
2877
2877
|
const I = document.createElement("div");
|
|
2878
2878
|
I.className = bi, I.innerText = "Preview slot placeholder", L.appendChild(I), c(!0), (q = s.value) == null || q.call(s);
|
|
2879
2879
|
return;
|
|
2880
2880
|
}
|
|
2881
2881
|
if (typeof window == "undefined") {
|
|
2882
|
-
|
|
2882
|
+
b();
|
|
2883
2883
|
return;
|
|
2884
2884
|
}
|
|
2885
2885
|
const C = document.createElement("ins");
|
|
2886
|
-
C.className = "adsbygoogle", C.style.display = "block", C.style.width = "100%", C.style.height = "100%", C.setAttribute("data-ad-client",
|
|
2886
|
+
C.className = "adsbygoogle", C.style.display = "block", C.style.width = "100%", C.style.height = "100%", C.setAttribute("data-ad-client", _.clientId), C.setAttribute("data-ad-slot", _.unitId), C.setAttribute("data-ad-format", "auto"), C.setAttribute("data-full-width-responsive", "true"), _.channelId && C.setAttribute("data-ad-channel", _.channelId), L.appendChild(C);
|
|
2887
2887
|
const W = new MutationObserver(() => {
|
|
2888
|
-
var
|
|
2888
|
+
var X;
|
|
2889
2889
|
const I = C.getAttribute("data-ad-status");
|
|
2890
|
-
I === "filled" ? (c(!0), S(""), (
|
|
2890
|
+
I === "filled" ? (c(!0), S(""), (X = s.value) == null || X.call(s), W.disconnect()) : I === "unfilled" && (S("Slot currently unavailable."), c(!1), W.disconnect());
|
|
2891
2891
|
});
|
|
2892
2892
|
W.observe(C, {
|
|
2893
2893
|
attributes: !0,
|
|
@@ -2897,44 +2897,44 @@ const wo = () => {
|
|
|
2897
2897
|
const I = window;
|
|
2898
2898
|
I.adsbygoogle = I.adsbygoogle || [], I.adsbygoogle.push({});
|
|
2899
2899
|
} catch (I) {
|
|
2900
|
-
W.disconnect(),
|
|
2900
|
+
W.disconnect(), b();
|
|
2901
2901
|
}
|
|
2902
2902
|
return () => {
|
|
2903
2903
|
W.disconnect(), L.innerHTML = "";
|
|
2904
2904
|
};
|
|
2905
|
-
}, [d.value,
|
|
2905
|
+
}, [d.value, _, s, b]), !d.value || !_)
|
|
2906
2906
|
return null;
|
|
2907
|
-
const
|
|
2908
|
-
return
|
|
2907
|
+
const ee = _.mode === "reward" ? "Next content unlocking" : "Content paused", me = h > 0 ? `Content resumes in ${h}s` : "Content ready";
|
|
2908
|
+
return m("div", {
|
|
2909
2909
|
className: bo,
|
|
2910
|
-
children:
|
|
2911
|
-
className:
|
|
2912
|
-
children: [
|
|
2913
|
-
className:
|
|
2914
|
-
children: [
|
|
2915
|
-
className: _o,
|
|
2916
|
-
children: se
|
|
2917
|
-
}), _("div", {
|
|
2910
|
+
children: m("div", {
|
|
2911
|
+
className: po,
|
|
2912
|
+
children: [m("div", {
|
|
2913
|
+
className: _o,
|
|
2914
|
+
children: [m("div", {
|
|
2918
2915
|
className: mo,
|
|
2919
|
-
children:
|
|
2916
|
+
children: ee
|
|
2917
|
+
}), m("div", {
|
|
2918
|
+
className: So,
|
|
2919
|
+
children: me
|
|
2920
2920
|
})]
|
|
2921
|
-
}),
|
|
2922
|
-
className:
|
|
2923
|
-
ref:
|
|
2924
|
-
children: !l &&
|
|
2921
|
+
}), m("div", {
|
|
2922
|
+
className: Eo,
|
|
2923
|
+
ref: p,
|
|
2924
|
+
children: !l && m("div", {
|
|
2925
2925
|
className: bi,
|
|
2926
|
-
children:
|
|
2926
|
+
children: A
|
|
2927
2927
|
})
|
|
2928
|
-
}),
|
|
2929
|
-
className:
|
|
2930
|
-
children:
|
|
2931
|
-
className:
|
|
2928
|
+
}), m("div", {
|
|
2929
|
+
className: ko,
|
|
2930
|
+
children: _.mode === "reward" ? m("button", {
|
|
2931
|
+
className: Io,
|
|
2932
2932
|
type: "button",
|
|
2933
2933
|
onClick: () => E("viewed"),
|
|
2934
2934
|
disabled: !w,
|
|
2935
2935
|
children: w ? "Continue" : `Continue in ${h}s`
|
|
2936
|
-
}) :
|
|
2937
|
-
className:
|
|
2936
|
+
}) : v && m("button", {
|
|
2937
|
+
className: xo,
|
|
2938
2938
|
type: "button",
|
|
2939
2939
|
onClick: () => E("viewed"),
|
|
2940
2940
|
children: "Continue"
|
|
@@ -2944,13 +2944,13 @@ const wo = () => {
|
|
|
2944
2944
|
});
|
|
2945
2945
|
};
|
|
2946
2946
|
function K(t, e, i) {
|
|
2947
|
-
return (e =
|
|
2947
|
+
return (e = To(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2950
|
-
var e =
|
|
2949
|
+
function To(t) {
|
|
2950
|
+
var e = Co(t, "string");
|
|
2951
2951
|
return typeof e == "symbol" ? e : e + "";
|
|
2952
2952
|
}
|
|
2953
|
-
function
|
|
2953
|
+
function Co(t, e) {
|
|
2954
2954
|
if (typeof t != "object" || !t)
|
|
2955
2955
|
return t;
|
|
2956
2956
|
var i = t[Symbol.toPrimitive];
|
|
@@ -2962,9 +2962,9 @@ function To(t, e) {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
return (e === "string" ? String : Number)(t);
|
|
2964
2964
|
}
|
|
2965
|
-
class
|
|
2965
|
+
class Oo {
|
|
2966
2966
|
constructor(e, i) {
|
|
2967
|
-
if (K(this, "name", "ADSENSE_BANNER_AS_AFG"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "contextInfo", void 0), K(this, "initParams", void 0), K(this, "defaultCountdown", 5), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "lastUnDisplayedAdBreak", null), K(this, "requestCounter", 0), K(this, "scriptPromise", null), K(this, "scriptReady", !1), K(this, "scriptFailed", !1), K(this, "state",
|
|
2967
|
+
if (K(this, "name", "ADSENSE_BANNER_AS_AFG"), K(this, "initialized", !1), K(this, "initCompleter", null), K(this, "context", void 0), K(this, "contextInfo", void 0), K(this, "initParams", void 0), K(this, "defaultCountdown", 5), K(this, "adsOverlay", null), K(this, "adsIsShowing", !1), K(this, "lastUnDisplayedAdBreak", null), K(this, "requestCounter", 0), K(this, "scriptPromise", null), K(this, "scriptReady", !1), K(this, "scriptFailed", !1), K(this, "state", Ao()), this.context = e, this.contextInfo = this.context.getContextInfo(), this.initParams = i, typeof window != "undefined") {
|
|
2968
2968
|
const n = window;
|
|
2969
2969
|
n.adsbygoogle = n.adsbygoogle || [];
|
|
2970
2970
|
}
|
|
@@ -2972,7 +2972,7 @@ class Co {
|
|
|
2972
2972
|
async init() {
|
|
2973
2973
|
var e;
|
|
2974
2974
|
if (typeof document != "undefined") {
|
|
2975
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"),
|
|
2975
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-banner-as-afg"), ye(m(Ro, {
|
|
2976
2976
|
state: this.state
|
|
2977
2977
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay);
|
|
2978
2978
|
try {
|
|
@@ -3041,7 +3041,7 @@ class Co {
|
|
|
3041
3041
|
this.state.payload.value = r, this.state.visible.value = !0;
|
|
3042
3042
|
}
|
|
3043
3043
|
adBreak(e, i) {
|
|
3044
|
-
var s, a, d, u, l, c, h, f,
|
|
3044
|
+
var s, a, d, u, l, c, h, f, v;
|
|
3045
3045
|
const n = e.type === "preroll" ? "" : e.name, r = e.type === "reward" ? "reward" : "interstitial";
|
|
3046
3046
|
if (!this.initialized || !this.adsOverlay) {
|
|
3047
3047
|
(s = e.adBreakDone) == null || s.call(e, {
|
|
@@ -3086,7 +3086,7 @@ class Co {
|
|
|
3086
3086
|
case "next":
|
|
3087
3087
|
case "pause": {
|
|
3088
3088
|
(l = e.beforeAd) == null || l.call(e);
|
|
3089
|
-
const
|
|
3089
|
+
const y = {
|
|
3090
3090
|
breakType: e.type,
|
|
3091
3091
|
breakName: e.name,
|
|
3092
3092
|
breakFormat: "interstitial",
|
|
@@ -3096,13 +3096,13 @@ class Co {
|
|
|
3096
3096
|
this.adsIsShowing = !1, (S = e.afterAd) == null || S.call(e);
|
|
3097
3097
|
}, g = () => {
|
|
3098
3098
|
var S;
|
|
3099
|
-
this.adsIsShowing = !1, (S = e.adBreakDone) == null || S.call(e,
|
|
3100
|
-
},
|
|
3101
|
-
var S,
|
|
3102
|
-
this.adsIsShowing = !1,
|
|
3099
|
+
this.adsIsShowing = !1, (S = e.adBreakDone) == null || S.call(e, y);
|
|
3100
|
+
}, A = () => {
|
|
3101
|
+
var S, p;
|
|
3102
|
+
this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (S = e.afterAd) == null || S.call(e), (p = e.adBreakDone) == null || p.call(e, y);
|
|
3103
3103
|
};
|
|
3104
3104
|
P(() => {
|
|
3105
|
-
this.adsIsShowing = !0, this.state.afterAd.value = w, this.state.adBreakDone.value = g, this.state.adDismissed.value = null, this.state.adViewed.value = null, this.state.adError.value =
|
|
3105
|
+
this.adsIsShowing = !0, this.state.afterAd.value = w, this.state.adBreakDone.value = g, this.state.adDismissed.value = null, this.state.adViewed.value = null, this.state.adError.value = A, this.showBannerOverlay("interstitial", o);
|
|
3106
3106
|
});
|
|
3107
3107
|
break;
|
|
3108
3108
|
}
|
|
@@ -3113,7 +3113,7 @@ class Co {
|
|
|
3113
3113
|
breakFormat: this.lastUnDisplayedAdBreak.type === "reward" ? "reward" : "interstitial",
|
|
3114
3114
|
breakStatus: "ignored"
|
|
3115
3115
|
}), this.lastUnDisplayedAdBreak = null), (f = e.beforeAd) == null || f.call(e);
|
|
3116
|
-
const
|
|
3116
|
+
const y = {
|
|
3117
3117
|
breakType: e.type,
|
|
3118
3118
|
breakName: e.name,
|
|
3119
3119
|
breakFormat: "reward",
|
|
@@ -3123,24 +3123,24 @@ class Co {
|
|
|
3123
3123
|
this.adsIsShowing = !1, (E = e.afterAd) == null || E.call(e);
|
|
3124
3124
|
}, g = () => {
|
|
3125
3125
|
var E;
|
|
3126
|
-
this.adsIsShowing = !1,
|
|
3127
|
-
},
|
|
3126
|
+
this.adsIsShowing = !1, y.breakStatus = "dismissed", (E = e.adDismissed) == null || E.call(e);
|
|
3127
|
+
}, A = () => {
|
|
3128
3128
|
var E;
|
|
3129
|
-
this.adsIsShowing = !1,
|
|
3129
|
+
this.adsIsShowing = !1, y.breakStatus = "viewed", (E = e.adViewed) == null || E.call(e);
|
|
3130
3130
|
}, S = () => {
|
|
3131
3131
|
var E;
|
|
3132
|
-
this.adsIsShowing = !1, (E = e.adBreakDone) == null || E.call(e,
|
|
3133
|
-
},
|
|
3134
|
-
var E,
|
|
3135
|
-
this.adsIsShowing = !1,
|
|
3132
|
+
this.adsIsShowing = !1, (E = e.adBreakDone) == null || E.call(e, y);
|
|
3133
|
+
}, p = () => {
|
|
3134
|
+
var E, b;
|
|
3135
|
+
this.adsIsShowing = !1, y.breakStatus = "noAdPreloaded", (E = e.afterAd) == null || E.call(e), (b = e.adBreakDone) == null || b.call(e, y);
|
|
3136
3136
|
};
|
|
3137
3137
|
P(() => {
|
|
3138
|
-
this.state.afterAd.value = w, this.state.adDismissed.value = g, this.state.adViewed.value =
|
|
3138
|
+
this.state.afterAd.value = w, this.state.adDismissed.value = g, this.state.adViewed.value = A, this.state.adBreakDone.value = S, this.state.adError.value = p;
|
|
3139
3139
|
});
|
|
3140
|
-
const
|
|
3141
|
-
var E,
|
|
3140
|
+
const _ = () => {
|
|
3141
|
+
var E, b;
|
|
3142
3142
|
if (!this.canDisplay(o.rewardUnitId)) {
|
|
3143
|
-
this.lastUnDisplayedAdBreak = null, (E = e.afterAd) == null || E.call(e), (
|
|
3143
|
+
this.lastUnDisplayedAdBreak = null, (E = e.afterAd) == null || E.call(e), (b = e.adBreakDone) == null || b.call(e, {
|
|
3144
3144
|
breakType: e.type,
|
|
3145
3145
|
breakName: e.name,
|
|
3146
3146
|
breakFormat: "reward",
|
|
@@ -3152,23 +3152,23 @@ class Co {
|
|
|
3152
3152
|
this.showBannerOverlay("reward", o);
|
|
3153
3153
|
});
|
|
3154
3154
|
};
|
|
3155
|
-
this.lastUnDisplayedAdBreak = e, (
|
|
3155
|
+
this.lastUnDisplayedAdBreak = e, (v = e.beforeReward) == null || v.call(e, _);
|
|
3156
3156
|
break;
|
|
3157
3157
|
}
|
|
3158
3158
|
}
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
3161
|
-
const
|
|
3161
|
+
const xe = {};
|
|
3162
3162
|
window.addEventListener("message", (t) => {
|
|
3163
|
-
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" ||
|
|
3163
|
+
t.origin !== "https://ads.appsrockets.com" && t.origin !== "https://stg-ads.appsrockets.com" || xe[t.data.type] && xe[t.data.type].forEach((e) => {
|
|
3164
3164
|
e(t.data.data);
|
|
3165
3165
|
});
|
|
3166
3166
|
});
|
|
3167
|
-
const
|
|
3168
|
-
|
|
3169
|
-
|
|
3167
|
+
const Ee = (t, e) => {
|
|
3168
|
+
Ce(() => (xe[t] || (xe[t] = /* @__PURE__ */ new Set()), xe[t].add(e), () => {
|
|
3169
|
+
xe[t].delete(e);
|
|
3170
3170
|
}), [t, e]);
|
|
3171
|
-
},
|
|
3171
|
+
}, Zi = () => {
|
|
3172
3172
|
const t = k(), e = k(), i = k(), n = k(), r = k(), o = k(), s = k(), a = k(!1), d = k("");
|
|
3173
3173
|
return {
|
|
3174
3174
|
afterAd: t,
|
|
@@ -3181,7 +3181,7 @@ const me = (t, e) => {
|
|
|
3181
3181
|
visible: a,
|
|
3182
3182
|
src: d
|
|
3183
3183
|
};
|
|
3184
|
-
},
|
|
3184
|
+
}, Do = G`
|
|
3185
3185
|
${M}
|
|
3186
3186
|
position: fixed;
|
|
3187
3187
|
z-index: 2147483647;
|
|
@@ -3200,7 +3200,7 @@ const me = (t, e) => {
|
|
|
3200
3200
|
width: 100%;
|
|
3201
3201
|
height: 100%;
|
|
3202
3202
|
}
|
|
3203
|
-
`,
|
|
3203
|
+
`, en = (t) => {
|
|
3204
3204
|
let {
|
|
3205
3205
|
state: e
|
|
3206
3206
|
} = t;
|
|
@@ -3213,22 +3213,22 @@ const me = (t, e) => {
|
|
|
3213
3213
|
adLinkClicked: a,
|
|
3214
3214
|
visible: d,
|
|
3215
3215
|
src: u
|
|
3216
|
-
} = e, [l, c] =
|
|
3217
|
-
var
|
|
3218
|
-
c(!1), d.value = !1,
|
|
3216
|
+
} = e, [l, c] = _e(!1), h = (v) => {
|
|
3217
|
+
var y, w, g, A;
|
|
3218
|
+
c(!1), d.value = !1, v === "dismiss" ? (y = n.value) == null || y.call(n) : v === "viewed" && ((w = r.value) == null || w.call(r)), (g = i.value) == null || g.call(i), (A = o.value) == null || A.call(o);
|
|
3219
3219
|
}, f = () => {
|
|
3220
|
-
var y;
|
|
3221
|
-
(y = s.value) == null || y.call(s);
|
|
3222
|
-
};
|
|
3223
|
-
return me("appsrockets_ad_dismissed", () => h("dismiss")), me("appsrockets_ad_rewarded", () => h("viewed")), me("appsrockets_ad_completed", () => h("viewed")), me("appsrockets_ad_skipped", () => h("viewed")), me("appsrockets_ad_clicked", (y) => {
|
|
3224
3220
|
var v;
|
|
3225
|
-
|
|
3226
|
-
}
|
|
3227
|
-
|
|
3221
|
+
(v = s.value) == null || v.call(s);
|
|
3222
|
+
};
|
|
3223
|
+
return Ee("appsrockets_ad_dismissed", () => h("dismiss")), Ee("appsrockets_ad_rewarded", () => h("viewed")), Ee("appsrockets_ad_completed", () => h("viewed")), Ee("appsrockets_ad_skipped", () => h("viewed")), Ee("appsrockets_ad_clicked", (v) => {
|
|
3224
|
+
var y;
|
|
3225
|
+
return (y = a.value) == null ? void 0 : y.call(a, v);
|
|
3226
|
+
}), Ee("appsrockets_ad_loaded", () => c(!0)), d.value ? m("div", {
|
|
3227
|
+
className: Do,
|
|
3228
3228
|
style: {
|
|
3229
3229
|
display: l ? "flex" : "none"
|
|
3230
3230
|
},
|
|
3231
|
-
children: d.value &&
|
|
3231
|
+
children: d.value && m("iframe", {
|
|
3232
3232
|
src: u.value,
|
|
3233
3233
|
onLoad: f,
|
|
3234
3234
|
allowFullScreen: !0,
|
|
@@ -3237,14 +3237,14 @@ const me = (t, e) => {
|
|
|
3237
3237
|
})
|
|
3238
3238
|
}) : null;
|
|
3239
3239
|
};
|
|
3240
|
-
function
|
|
3241
|
-
return (e =
|
|
3240
|
+
function ue(t, e, i) {
|
|
3241
|
+
return (e = Po(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3244
|
-
var e =
|
|
3243
|
+
function Po(t) {
|
|
3244
|
+
var e = No(t, "string");
|
|
3245
3245
|
return typeof e == "symbol" ? e : e + "";
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3247
|
+
function No(t, e) {
|
|
3248
3248
|
if (typeof t != "object" || !t)
|
|
3249
3249
|
return t;
|
|
3250
3250
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3256,9 +3256,9 @@ function Po(t, e) {
|
|
|
3256
3256
|
}
|
|
3257
3257
|
return (e === "string" ? String : Number)(t);
|
|
3258
3258
|
}
|
|
3259
|
-
class
|
|
3259
|
+
class Lo {
|
|
3260
3260
|
constructor(e, i) {
|
|
3261
|
-
|
|
3261
|
+
ue(this, "name", "APPSROCKETS"), ue(this, "initialized", !1), ue(this, "initCompleter", null), ue(this, "context", void 0), ue(this, "adsOverlay", null), ue(this, "adsIsShowing", !1), ue(this, "lastUnDisplayedAdBreak", null), ue(this, "state", Zi()), ue(this, "processUrl", (n, r) => {
|
|
3262
3262
|
var d;
|
|
3263
3263
|
const o = this.context.getContextInfo(), s = new URL(n), a = new URLSearchParams(s.search);
|
|
3264
3264
|
return a.has("joliSource") || a.set("joliSource", o.joliSource), a.get("osType") || a.set("osType", o.osType), a.get("runtimeType") || a.set("runtimeType", o.runtimeType), a.get("mode") || a.set("mode", "AFG"), a.get("deviceId") || a.set("deviceId", o.deviceId), a.get("statusBarHeight") || a.set("statusBarHeight", ((d = this.context.getWindowInfo().statusBarHeight) != null ? d : 0).toString()), a.get("adsType") || a.set("adsType", r), s.search = a.toString(), s.toString();
|
|
@@ -3266,7 +3266,7 @@ class No {
|
|
|
3266
3266
|
}
|
|
3267
3267
|
async init() {
|
|
3268
3268
|
var e;
|
|
3269
|
-
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"),
|
|
3269
|
+
this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afg-appsrockets"), ye(m(en, {
|
|
3270
3270
|
state: this.state
|
|
3271
3271
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (e = this.initCompleter) == null || e.call(this);
|
|
3272
3272
|
}
|
|
@@ -3302,8 +3302,8 @@ class No {
|
|
|
3302
3302
|
return;
|
|
3303
3303
|
}
|
|
3304
3304
|
const n = (f) => {
|
|
3305
|
-
var
|
|
3306
|
-
(
|
|
3305
|
+
var v, y;
|
|
3306
|
+
(y = (v = this.context).handleLinkClicked) == null || y.call(v, f);
|
|
3307
3307
|
}, r = e.type === "reward" ? "REWARD" : "INTERSTITIAL";
|
|
3308
3308
|
switch (e.type) {
|
|
3309
3309
|
case "preroll": {
|
|
@@ -3323,7 +3323,7 @@ class No {
|
|
|
3323
3323
|
const f = () => {
|
|
3324
3324
|
var w;
|
|
3325
3325
|
this.adsIsShowing = !1, (w = e.afterAd) == null || w.call(e);
|
|
3326
|
-
},
|
|
3326
|
+
}, v = () => {
|
|
3327
3327
|
var w;
|
|
3328
3328
|
this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, {
|
|
3329
3329
|
breakType: e.type,
|
|
@@ -3331,7 +3331,7 @@ class No {
|
|
|
3331
3331
|
breakFormat: "interstitial",
|
|
3332
3332
|
breakStatus: "viewed"
|
|
3333
3333
|
});
|
|
3334
|
-
},
|
|
3334
|
+
}, y = () => {
|
|
3335
3335
|
var w;
|
|
3336
3336
|
this.adsIsShowing = !1, (w = e.adBreakDone) == null || w.call(e, {
|
|
3337
3337
|
breakType: e.type,
|
|
@@ -3341,7 +3341,7 @@ class No {
|
|
|
3341
3341
|
});
|
|
3342
3342
|
};
|
|
3343
3343
|
P(() => {
|
|
3344
|
-
this.adsIsShowing = !0, this.state.afterAd.value = f, this.state.adBreakDone.value =
|
|
3344
|
+
this.adsIsShowing = !0, this.state.afterAd.value = f, this.state.adBreakDone.value = v, this.state.src.value = this.processUrl(i.params.url, r), this.state.adLinkClicked.value = n, this.state.adError.value = y, this.state.visible.value = !0;
|
|
3345
3345
|
});
|
|
3346
3346
|
break;
|
|
3347
3347
|
}
|
|
@@ -3353,32 +3353,32 @@ class No {
|
|
|
3353
3353
|
breakStatus: "ignored"
|
|
3354
3354
|
}), this.lastUnDisplayedAdBreak = null), (c = e.beforeAd) == null || c.call(e);
|
|
3355
3355
|
const f = () => {
|
|
3356
|
-
var
|
|
3357
|
-
this.adsIsShowing = !1, (
|
|
3358
|
-
},
|
|
3356
|
+
var p;
|
|
3357
|
+
this.adsIsShowing = !1, (p = e.afterAd) == null || p.call(e);
|
|
3358
|
+
}, v = {
|
|
3359
3359
|
breakType: e.type,
|
|
3360
3360
|
breakName: e.name,
|
|
3361
3361
|
breakFormat: "reward",
|
|
3362
3362
|
breakStatus: "ignored"
|
|
3363
|
-
},
|
|
3364
|
-
var
|
|
3365
|
-
this.adsIsShowing = !1,
|
|
3363
|
+
}, y = () => {
|
|
3364
|
+
var p;
|
|
3365
|
+
this.adsIsShowing = !1, v.breakStatus = "dismissed", (p = e.adDismissed) == null || p.call(e);
|
|
3366
3366
|
}, w = () => {
|
|
3367
|
-
var
|
|
3368
|
-
this.adsIsShowing = !1,
|
|
3367
|
+
var p;
|
|
3368
|
+
this.adsIsShowing = !1, v.breakStatus = "viewed", (p = e.adViewed) == null || p.call(e);
|
|
3369
3369
|
}, g = () => {
|
|
3370
|
-
var
|
|
3371
|
-
this.adsIsShowing = !1, (
|
|
3372
|
-
},
|
|
3373
|
-
this.adsIsShowing = !1,
|
|
3370
|
+
var p;
|
|
3371
|
+
this.adsIsShowing = !1, (p = e.adBreakDone) == null || p.call(e, v);
|
|
3372
|
+
}, A = () => {
|
|
3373
|
+
this.adsIsShowing = !1, v.breakStatus = "noAdPreloaded";
|
|
3374
3374
|
};
|
|
3375
3375
|
P(() => {
|
|
3376
|
-
this.state.afterAd.value = f, this.state.adDismissed.value =
|
|
3376
|
+
this.state.afterAd.value = f, this.state.adDismissed.value = y, this.state.adViewed.value = w, this.state.adBreakDone.value = g, this.state.adLinkClicked.value = n, this.state.adError.value = A;
|
|
3377
3377
|
});
|
|
3378
3378
|
const S = () => {
|
|
3379
|
-
var
|
|
3379
|
+
var p;
|
|
3380
3380
|
if (this.lastUnDisplayedAdBreak = null, !this.adsOverlay) {
|
|
3381
|
-
(
|
|
3381
|
+
(p = e.adBreakDone) == null || p.call(e, {
|
|
3382
3382
|
breakType: e.type,
|
|
3383
3383
|
breakName: e.name,
|
|
3384
3384
|
breakFormat: "reward",
|
|
@@ -3396,7 +3396,7 @@ class No {
|
|
|
3396
3396
|
}
|
|
3397
3397
|
}
|
|
3398
3398
|
}
|
|
3399
|
-
const
|
|
3399
|
+
const tn = () => {
|
|
3400
3400
|
window.googletag = window.googletag || {
|
|
3401
3401
|
cmd: []
|
|
3402
3402
|
}, window.googletag.pubadsReady || window.googletag.cmd.push(() => {
|
|
@@ -3404,13 +3404,13 @@ const en = () => {
|
|
|
3404
3404
|
});
|
|
3405
3405
|
};
|
|
3406
3406
|
function j(t, e, i) {
|
|
3407
|
-
return (e =
|
|
3407
|
+
return (e = Bo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3408
3408
|
}
|
|
3409
|
-
function
|
|
3410
|
-
var e =
|
|
3409
|
+
function Bo(t) {
|
|
3410
|
+
var e = Mo(t, "string");
|
|
3411
3411
|
return typeof e == "symbol" ? e : e + "";
|
|
3412
3412
|
}
|
|
3413
|
-
function
|
|
3413
|
+
function Mo(t, e) {
|
|
3414
3414
|
if (typeof t != "object" || !t)
|
|
3415
3415
|
return t;
|
|
3416
3416
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3422,7 +3422,7 @@ function Bo(t, e) {
|
|
|
3422
3422
|
}
|
|
3423
3423
|
return (e === "string" ? String : Number)(t);
|
|
3424
3424
|
}
|
|
3425
|
-
let
|
|
3425
|
+
let nn = class {
|
|
3426
3426
|
constructor(e, i, n) {
|
|
3427
3427
|
j(this, "adUnit", void 0), j(this, "project", void 0), j(this, "keyValue", void 0), j(this, "adsContext", null), j(this, "rewardedSlot", null), j(this, "rewardedPayload", null), j(this, "readyEvent", null), j(this, "withCommand", function() {
|
|
3428
3428
|
googletag.cmd.push(...arguments);
|
|
@@ -3480,19 +3480,19 @@ let tn = class {
|
|
|
3480
3480
|
}, 500);
|
|
3481
3481
|
}
|
|
3482
3482
|
});
|
|
3483
|
-
}), this.adUnit = e, this.project = i, this.keyValue = n,
|
|
3483
|
+
}), this.adUnit = e, this.project = i, this.keyValue = n, tn(), this.withCommand(() => {
|
|
3484
3484
|
this.init();
|
|
3485
3485
|
});
|
|
3486
3486
|
}
|
|
3487
3487
|
};
|
|
3488
3488
|
function J(t, e, i) {
|
|
3489
|
-
return (e =
|
|
3489
|
+
return (e = $o(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3492
|
-
var e =
|
|
3491
|
+
function $o(t) {
|
|
3492
|
+
var e = Fo(t, "string");
|
|
3493
3493
|
return typeof e == "symbol" ? e : e + "";
|
|
3494
3494
|
}
|
|
3495
|
-
function
|
|
3495
|
+
function Fo(t, e) {
|
|
3496
3496
|
if (typeof t != "object" || !t)
|
|
3497
3497
|
return t;
|
|
3498
3498
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3504,7 +3504,7 @@ function $o(t, e) {
|
|
|
3504
3504
|
}
|
|
3505
3505
|
return (e === "string" ? String : Number)(t);
|
|
3506
3506
|
}
|
|
3507
|
-
class
|
|
3507
|
+
class Uo {
|
|
3508
3508
|
constructor(e, i, n) {
|
|
3509
3509
|
var r = this;
|
|
3510
3510
|
J(this, "adUnit", void 0), J(this, "project", void 0), J(this, "keyValue", void 0), J(this, "adsContext", null), J(this, "gamingInterstitialSlot", null), J(this, "readyEvent", null), J(this, "isRetrying", !1), J(this, "withCommand", function() {
|
|
@@ -3545,19 +3545,19 @@ class Fo {
|
|
|
3545
3545
|
}), this.isRetrying = !1;
|
|
3546
3546
|
}, 31e3)));
|
|
3547
3547
|
});
|
|
3548
|
-
}),
|
|
3548
|
+
}), tn(), this.adUnit = e, this.project = i, this.keyValue = n, this.withCommand(() => {
|
|
3549
3549
|
this.init();
|
|
3550
3550
|
});
|
|
3551
3551
|
}
|
|
3552
3552
|
}
|
|
3553
|
-
function
|
|
3554
|
-
return (e =
|
|
3553
|
+
function pe(t, e, i) {
|
|
3554
|
+
return (e = jo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3557
|
-
var e =
|
|
3556
|
+
function jo(t) {
|
|
3557
|
+
var e = Vo(t, "string");
|
|
3558
3558
|
return typeof e == "symbol" ? e : e + "";
|
|
3559
3559
|
}
|
|
3560
|
-
function
|
|
3560
|
+
function Vo(t, e) {
|
|
3561
3561
|
if (typeof t != "object" || !t)
|
|
3562
3562
|
return t;
|
|
3563
3563
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3569,9 +3569,9 @@ function jo(t, e) {
|
|
|
3569
3569
|
}
|
|
3570
3570
|
return (e === "string" ? String : Number)(t);
|
|
3571
3571
|
}
|
|
3572
|
-
class
|
|
3572
|
+
class Go {
|
|
3573
3573
|
constructor(e, i) {
|
|
3574
|
-
|
|
3574
|
+
pe(this, "name", "GOOGLE_GPT"), pe(this, "context", void 0), pe(this, "contextInfo", void 0), pe(this, "initParams", void 0), pe(this, "rewardAdManager", void 0), pe(this, "interstitialManager", void 0), pe(this, "insertScript", () => {
|
|
3575
3575
|
const n = "jolibox-google-gpt";
|
|
3576
3576
|
let r = document.getElementById(n);
|
|
3577
3577
|
r || (r = window.document.createElement("script"), r.id = n, r.async = !0, r.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", r.crossOrigin = "anonymous", document.head.appendChild(r));
|
|
@@ -3579,7 +3579,7 @@ class Vo {
|
|
|
3579
3579
|
}
|
|
3580
3580
|
async init() {
|
|
3581
3581
|
const e = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : this.initParams.rewardedSlot, i = this.contextInfo.testAdsMode ? "/6355419/Travel/Europe/France/Paris" : this.initParams.interstitialSlot, r = `minigame-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
3582
|
-
e && (this.rewardAdManager = new
|
|
3582
|
+
e && (this.rewardAdManager = new nn(e, r, this.initParams.keyValue)), i && (this.interstitialManager = new Uo(i, r, this.initParams.keyValue));
|
|
3583
3583
|
}
|
|
3584
3584
|
adConfig(e, i) {
|
|
3585
3585
|
}
|
|
@@ -3650,14 +3650,14 @@ class Vo {
|
|
|
3650
3650
|
}
|
|
3651
3651
|
}
|
|
3652
3652
|
}
|
|
3653
|
-
function
|
|
3654
|
-
return (e =
|
|
3653
|
+
function mt(t, e, i) {
|
|
3654
|
+
return (e = qo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3657
|
-
var e =
|
|
3656
|
+
function qo(t) {
|
|
3657
|
+
var e = Ko(t, "string");
|
|
3658
3658
|
return typeof e == "symbol" ? e : e + "";
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3660
|
+
function Ko(t, e) {
|
|
3661
3661
|
if (typeof t != "object" || !t)
|
|
3662
3662
|
return t;
|
|
3663
3663
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3669,10 +3669,10 @@ function qo(t, e) {
|
|
|
3669
3669
|
}
|
|
3670
3670
|
return (e === "string" ? String : Number)(t);
|
|
3671
3671
|
}
|
|
3672
|
-
class
|
|
3672
|
+
class zo {
|
|
3673
3673
|
constructor(e) {
|
|
3674
3674
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GAME";
|
|
3675
|
-
|
|
3675
|
+
mt(this, "context", void 0), mt(this, "placement", "GAME"), mt(this, "contextInfo", void 0), this.context = e, this.placement = i, this.contextInfo = this.context.getContextInfo();
|
|
3676
3676
|
}
|
|
3677
3677
|
getLocation() {
|
|
3678
3678
|
const e = new URLSearchParams(window.location.search), i = {};
|
|
@@ -3686,7 +3686,7 @@ class Ko {
|
|
|
3686
3686
|
getDevice() {
|
|
3687
3687
|
var e, i, n, r;
|
|
3688
3688
|
return {
|
|
3689
|
-
platform: (e = this.contextInfo.platform) != null ? e :
|
|
3689
|
+
platform: (e = this.contextInfo.platform) != null ? e : Ri.WebSDK,
|
|
3690
3690
|
os: this.contextInfo.osType + "_" + this.contextInfo.runtimeType,
|
|
3691
3691
|
appVersion: "1.0.0",
|
|
3692
3692
|
// mock
|
|
@@ -3705,7 +3705,7 @@ class Ko {
|
|
|
3705
3705
|
protocolVersion: "1.0.0",
|
|
3706
3706
|
events: [{
|
|
3707
3707
|
name: e,
|
|
3708
|
-
type:
|
|
3708
|
+
type: Ii.System,
|
|
3709
3709
|
location: this.getLocation(),
|
|
3710
3710
|
target: null,
|
|
3711
3711
|
extra: i,
|
|
@@ -3713,19 +3713,19 @@ class Ko {
|
|
|
3713
3713
|
userId: (o = this.contextInfo.userId) != null ? o : null
|
|
3714
3714
|
}],
|
|
3715
3715
|
device: this.getDevice(),
|
|
3716
|
-
project:
|
|
3716
|
+
project: xi.WebSDK
|
|
3717
3717
|
};
|
|
3718
|
-
return
|
|
3718
|
+
return Fn(r);
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
3721
|
function z(t, e, i) {
|
|
3722
|
-
return (e =
|
|
3722
|
+
return (e = Wo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3723
3723
|
}
|
|
3724
|
-
function
|
|
3725
|
-
var e =
|
|
3724
|
+
function Wo(t) {
|
|
3725
|
+
var e = Ho(t, "string");
|
|
3726
3726
|
return typeof e == "symbol" ? e : e + "";
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3728
|
+
function Ho(t, e) {
|
|
3729
3729
|
if (typeof t != "object" || !t)
|
|
3730
3730
|
return t;
|
|
3731
3731
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3737,9 +3737,9 @@ function Wo(t, e) {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
return (e === "string" ? String : Number)(t);
|
|
3739
3739
|
}
|
|
3740
|
-
class
|
|
3740
|
+
class jt {
|
|
3741
3741
|
constructor(e) {
|
|
3742
|
-
z(this, "context", void 0), z(this, "adsTrackSerializer", void 0), z(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new
|
|
3742
|
+
z(this, "context", void 0), z(this, "adsTrackSerializer", void 0), z(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo(), this.adsTrackSerializer = new zo(this.context);
|
|
3743
3743
|
}
|
|
3744
3744
|
getRequestContextData(e) {
|
|
3745
3745
|
var r, o;
|
|
@@ -3775,7 +3775,7 @@ class Ut {
|
|
|
3775
3775
|
};
|
|
3776
3776
|
}
|
|
3777
3777
|
}
|
|
3778
|
-
class
|
|
3778
|
+
class rn {
|
|
3779
3779
|
constructor(e, i) {
|
|
3780
3780
|
var n = this;
|
|
3781
3781
|
z(this, "context", void 0), z(this, "contextInfo", void 0), z(this, "requestContext", void 0), z(this, "pendingAFGAdsInfo", {
|
|
@@ -3831,13 +3831,13 @@ class nn {
|
|
|
3831
3831
|
return n.cacheAFVInfo(), o;
|
|
3832
3832
|
} else
|
|
3833
3833
|
return n.cacheAFVInfo(), await n.pendingAFVAdsInfo;
|
|
3834
|
-
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new
|
|
3834
|
+
}), this.context = e, this.contextInfo = this.context.getContextInfo(), this.requestContext = new jt(e), i != null && i.reward && this.cacheRewardInfo(), i != null && i.interstitial && this.cacheInterstitialInfo("start"), i != null && i.afv && this.cacheAFVInfo();
|
|
3835
3835
|
}
|
|
3836
3836
|
}
|
|
3837
|
-
function
|
|
3838
|
-
return (e =
|
|
3837
|
+
function Jo(t, e, i) {
|
|
3838
|
+
return (e = Yo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3839
3839
|
}
|
|
3840
|
-
function
|
|
3840
|
+
function Yo(t) {
|
|
3841
3841
|
var e = Xo(t, "string");
|
|
3842
3842
|
return typeof e == "symbol" ? e : e + "";
|
|
3843
3843
|
}
|
|
@@ -3853,7 +3853,7 @@ function Xo(t, e) {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
return (e === "string" ? String : Number)(t);
|
|
3855
3855
|
}
|
|
3856
|
-
const
|
|
3856
|
+
const Qo = function(t) {
|
|
3857
3857
|
for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
3858
3858
|
i[n - 1] = arguments[n];
|
|
3859
3859
|
if (t)
|
|
@@ -3863,12 +3863,12 @@ const Yo = function(t) {
|
|
|
3863
3863
|
console.error("[JoliboxSDK] Callback error:", r);
|
|
3864
3864
|
}
|
|
3865
3865
|
};
|
|
3866
|
-
class
|
|
3866
|
+
class on {
|
|
3867
3867
|
constructor(e) {
|
|
3868
|
-
this.context = e,
|
|
3868
|
+
this.context = e, Jo(this, "canIUseHelper", void 0), this.context = e;
|
|
3869
3869
|
const {
|
|
3870
3870
|
canIUseNative: i
|
|
3871
|
-
} =
|
|
3871
|
+
} = gn(() => this.context.getContextInfo().deviceInfo.nativeSDKVersionCode || 1e6, () => this.context.getContextInfo().deviceInfo.platform || "h5");
|
|
3872
3872
|
this.canIUseHelper = i;
|
|
3873
3873
|
}
|
|
3874
3874
|
/**
|
|
@@ -3881,7 +3881,7 @@ class rn {
|
|
|
3881
3881
|
const {
|
|
3882
3882
|
errNo: i,
|
|
3883
3883
|
errMsg: n
|
|
3884
|
-
} = await
|
|
3884
|
+
} = await gt("loadAdsAsync", {
|
|
3885
3885
|
params: {
|
|
3886
3886
|
providers: e.providers
|
|
3887
3887
|
}
|
|
@@ -3901,7 +3901,7 @@ class rn {
|
|
|
3901
3901
|
}
|
|
3902
3902
|
}
|
|
3903
3903
|
canIUse() {
|
|
3904
|
-
return
|
|
3904
|
+
return st() && this.canIUseHelper("loadAdsAsync") && this.canIUseHelper("showAdAsync");
|
|
3905
3905
|
}
|
|
3906
3906
|
/**
|
|
3907
3907
|
* Show a loaded ad
|
|
@@ -3910,7 +3910,7 @@ class rn {
|
|
|
3910
3910
|
*/
|
|
3911
3911
|
async showAdAsync(e) {
|
|
3912
3912
|
try {
|
|
3913
|
-
const i = await
|
|
3913
|
+
const i = await gt("showAdAsync", {
|
|
3914
3914
|
params: {
|
|
3915
3915
|
providers: e.providers
|
|
3916
3916
|
}
|
|
@@ -3925,15 +3925,15 @@ class rn {
|
|
|
3925
3925
|
const r = e.timeout !== void 0 ? e.timeout : -1;
|
|
3926
3926
|
let o = null;
|
|
3927
3927
|
const s = () => {
|
|
3928
|
-
|
|
3928
|
+
wn("onAdsStateChange", a), o && (clearTimeout(o), o = null);
|
|
3929
3929
|
}, a = (d) => {
|
|
3930
3930
|
var l;
|
|
3931
3931
|
if (d.UUID !== n)
|
|
3932
3932
|
return;
|
|
3933
3933
|
const u = (l = e.callbacks) == null ? void 0 : l[d.event];
|
|
3934
|
-
u &&
|
|
3934
|
+
u && Qo(u, d.data), ["onAdClosed", "onAdError", "onAdDismissed"].includes(d.event) && s();
|
|
3935
3935
|
};
|
|
3936
|
-
|
|
3936
|
+
An("onAdsStateChange", a), r > 0 && (o = setTimeout(() => {
|
|
3937
3937
|
s(), console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${r}ms timeout`);
|
|
3938
3938
|
}, r));
|
|
3939
3939
|
}
|
|
@@ -3958,7 +3958,7 @@ class rn {
|
|
|
3958
3958
|
const {
|
|
3959
3959
|
errNo: i,
|
|
3960
3960
|
data: n
|
|
3961
|
-
} =
|
|
3961
|
+
} = gt("isAdsReadySync", {
|
|
3962
3962
|
params: {
|
|
3963
3963
|
providers: e.providers
|
|
3964
3964
|
}
|
|
@@ -3969,14 +3969,14 @@ class rn {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return (e =
|
|
3972
|
+
function ce(t, e, i) {
|
|
3973
|
+
return (e = Zo(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3974
3974
|
}
|
|
3975
|
-
function
|
|
3976
|
-
var e =
|
|
3975
|
+
function Zo(t) {
|
|
3976
|
+
var e = es(t, "string");
|
|
3977
3977
|
return typeof e == "symbol" ? e : e + "";
|
|
3978
3978
|
}
|
|
3979
|
-
function
|
|
3979
|
+
function es(t, e) {
|
|
3980
3980
|
if (typeof t != "object" || !t)
|
|
3981
3981
|
return t;
|
|
3982
3982
|
var i = t[Symbol.toPrimitive];
|
|
@@ -3988,21 +3988,21 @@ function Zo(t, e) {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
return (e === "string" ? String : Number)(t);
|
|
3990
3990
|
}
|
|
3991
|
-
class
|
|
3991
|
+
class ts {
|
|
3992
3992
|
get isAdsReady() {
|
|
3993
3993
|
return this._isAdsReady;
|
|
3994
3994
|
}
|
|
3995
3995
|
constructor(e, i) {
|
|
3996
|
-
|
|
3996
|
+
ce(this, "providers", void 0), ce(this, "helper", void 0), ce(this, "adsContext", null), ce(this, "_isAdsReady", !1), ce(this, "init", async () => {
|
|
3997
3997
|
this.helper.canIUse() ? (await this.helper.loadAdsAsync({
|
|
3998
3998
|
providers: this.providers
|
|
3999
3999
|
})).code === "SUCCESS" ? this._isAdsReady = !0 : this._isAdsReady = !1 : this._isAdsReady = !1;
|
|
4000
|
-
}),
|
|
4000
|
+
}), ce(this, "destroy", (n) => {
|
|
4001
4001
|
var r, o;
|
|
4002
4002
|
this._isAdsReady = !1, (o = (r = this.adsContext) == null ? void 0 : r.adBreakDone) == null || o.call(r, n), n !== "ignored" && (this.adsContext = null);
|
|
4003
|
-
}),
|
|
4003
|
+
}), ce(this, "reinit", async (n) => {
|
|
4004
4004
|
this.destroy(n), await this.init();
|
|
4005
|
-
}),
|
|
4005
|
+
}), ce(this, "requestAds", async (n, r) => {
|
|
4006
4006
|
if (this.adsContext) {
|
|
4007
4007
|
this.destroy("ignored");
|
|
4008
4008
|
return;
|
|
@@ -4013,7 +4013,7 @@ class es {
|
|
|
4013
4013
|
} catch (o) {
|
|
4014
4014
|
this.destroy("notReady");
|
|
4015
4015
|
}
|
|
4016
|
-
}),
|
|
4016
|
+
}), ce(this, "showAd", () => {
|
|
4017
4017
|
if (!this.adsContext) {
|
|
4018
4018
|
this.destroy("error");
|
|
4019
4019
|
return;
|
|
@@ -4047,17 +4047,17 @@ class es {
|
|
|
4047
4047
|
callbacks: s
|
|
4048
4048
|
})).code !== "SUCCESS" && this.reinit("noAdPreloaded");
|
|
4049
4049
|
});
|
|
4050
|
-
}), this.providers = i, this.helper = new
|
|
4050
|
+
}), this.providers = i, this.helper = new on(e), this.init();
|
|
4051
4051
|
}
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4054
|
-
return (e =
|
|
4053
|
+
function he(t, e, i) {
|
|
4054
|
+
return (e = is(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4055
4055
|
}
|
|
4056
|
-
function
|
|
4057
|
-
var e =
|
|
4056
|
+
function is(t) {
|
|
4057
|
+
var e = ns(t, "string");
|
|
4058
4058
|
return typeof e == "symbol" ? e : e + "";
|
|
4059
4059
|
}
|
|
4060
|
-
function
|
|
4060
|
+
function ns(t, e) {
|
|
4061
4061
|
if (typeof t != "object" || !t)
|
|
4062
4062
|
return t;
|
|
4063
4063
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4069,24 +4069,24 @@ function is(t, e) {
|
|
|
4069
4069
|
}
|
|
4070
4070
|
return (e === "string" ? String : Number)(t);
|
|
4071
4071
|
}
|
|
4072
|
-
class
|
|
4072
|
+
class rs {
|
|
4073
4073
|
get isAdsReady() {
|
|
4074
4074
|
return this._isAdsReady;
|
|
4075
4075
|
}
|
|
4076
4076
|
constructor(e, i) {
|
|
4077
4077
|
var n = this;
|
|
4078
|
-
|
|
4078
|
+
he(this, "providers", void 0), he(this, "helper", void 0), he(this, "adsContext", null), he(this, "_isAdsReady", !1), he(this, "init", async () => {
|
|
4079
4079
|
this.helper.canIUse() && ((await this.helper.loadAdsAsync({
|
|
4080
4080
|
providers: this.providers
|
|
4081
4081
|
})).code === "SUCCESS" ? this._isAdsReady = !0 : this._isAdsReady = !1);
|
|
4082
|
-
}),
|
|
4082
|
+
}), he(this, "destroy", function(r) {
|
|
4083
4083
|
var s, a;
|
|
4084
4084
|
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
4085
4085
|
n._isAdsReady = !1, o && ((a = (s = n.adsContext) == null ? void 0 : s.onEnd) == null || a.call(s, r), r !== "ignored" && (n.adsContext = null));
|
|
4086
|
-
}),
|
|
4086
|
+
}), he(this, "reinit", async function(r) {
|
|
4087
4087
|
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
4088
4088
|
n.destroy(r, o), await n.init();
|
|
4089
|
-
}),
|
|
4089
|
+
}), he(this, "requestAds", async (r, o) => {
|
|
4090
4090
|
if (this.adsContext) {
|
|
4091
4091
|
this.destroy("ignored");
|
|
4092
4092
|
return;
|
|
@@ -4097,7 +4097,7 @@ class ns {
|
|
|
4097
4097
|
} catch (s) {
|
|
4098
4098
|
this.destroy("notReady");
|
|
4099
4099
|
}
|
|
4100
|
-
}),
|
|
4100
|
+
}), he(this, "showAd", async () => {
|
|
4101
4101
|
var d, u;
|
|
4102
4102
|
if (!this.adsContext) {
|
|
4103
4103
|
this.destroy("error");
|
|
@@ -4125,17 +4125,17 @@ class ns {
|
|
|
4125
4125
|
providers: this.providers,
|
|
4126
4126
|
callbacks: s
|
|
4127
4127
|
})).code !== "SUCCESS" && this.reinit("noAdPreloaded");
|
|
4128
|
-
}), this.providers = i, this.helper = new
|
|
4128
|
+
}), this.providers = i, this.helper = new on(e), this.init();
|
|
4129
4129
|
}
|
|
4130
4130
|
}
|
|
4131
|
-
function
|
|
4132
|
-
return (e =
|
|
4131
|
+
function $e(t, e, i) {
|
|
4132
|
+
return (e = os(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4133
4133
|
}
|
|
4134
|
-
function
|
|
4135
|
-
var e =
|
|
4134
|
+
function os(t) {
|
|
4135
|
+
var e = ss(t, "string");
|
|
4136
4136
|
return typeof e == "symbol" ? e : e + "";
|
|
4137
4137
|
}
|
|
4138
|
-
function
|
|
4138
|
+
function ss(t, e) {
|
|
4139
4139
|
if (typeof t != "object" || !t)
|
|
4140
4140
|
return t;
|
|
4141
4141
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4147,11 +4147,11 @@ function os(t, e) {
|
|
|
4147
4147
|
}
|
|
4148
4148
|
return (e === "string" ? String : Number)(t);
|
|
4149
4149
|
}
|
|
4150
|
-
class
|
|
4150
|
+
class as {
|
|
4151
4151
|
constructor(e, i) {
|
|
4152
|
-
|
|
4152
|
+
$e(this, "name", "INTERNAL_NATIVE"), $e(this, "context", void 0), $e(this, "rewardAdManager", void 0), $e(this, "interstitialManager", void 0), $e(this, "initProviders", void 0), this.context = e, this.initProviders = i.providers;
|
|
4153
4153
|
const n = this.getConfigsByTypes(["REWARD", "REWARD_INTERSTITIAL", "NATIVE"], i.providers), r = this.getConfigsByTypes(["INTERSTITIAL"], i.providers);
|
|
4154
|
-
n.length > 0 && (this.rewardAdManager = new
|
|
4154
|
+
n.length > 0 && (this.rewardAdManager = new ts(this.context, n)), r.length > 0 && (this.interstitialManager = new rs(this.context, r));
|
|
4155
4155
|
}
|
|
4156
4156
|
getConfigsByTypes(e, i, n) {
|
|
4157
4157
|
const r = [];
|
|
@@ -4243,22 +4243,22 @@ class ss {
|
|
|
4243
4243
|
}
|
|
4244
4244
|
}
|
|
4245
4245
|
}
|
|
4246
|
-
const
|
|
4247
|
-
let
|
|
4248
|
-
function
|
|
4246
|
+
const St = "jolibox-nb-proxy";
|
|
4247
|
+
let ds = 0;
|
|
4248
|
+
function pi(t, e, i, n) {
|
|
4249
4249
|
return new Promise((r, o) => {
|
|
4250
4250
|
if (!window.parent || window.parent === window) {
|
|
4251
4251
|
o(new Error("[ParentProxy] No parent window"));
|
|
4252
4252
|
return;
|
|
4253
4253
|
}
|
|
4254
|
-
const s = `${
|
|
4254
|
+
const s = `${St}-${++ds}`, a = (u) => {
|
|
4255
4255
|
const l = u.data;
|
|
4256
|
-
(l == null ? void 0 : l.type) === `${
|
|
4256
|
+
(l == null ? void 0 : l.type) === `${St}:response` && l.id === s && (window.removeEventListener("message", a), clearTimeout(d), l.error ? o(new Error(l.error)) : r(l.result));
|
|
4257
4257
|
}, d = window.setTimeout(() => {
|
|
4258
4258
|
window.removeEventListener("message", a), o(new Error(`[ParentProxy] Timeout: ${t.join(".")}.${e}`));
|
|
4259
4259
|
}, 15e3);
|
|
4260
4260
|
window.addEventListener("message", a), window.parent.postMessage({
|
|
4261
|
-
type: `${
|
|
4261
|
+
type: `${St}:request`,
|
|
4262
4262
|
id: s,
|
|
4263
4263
|
path: t,
|
|
4264
4264
|
action: e,
|
|
@@ -4267,41 +4267,41 @@ function Ai(t, e, i, n) {
|
|
|
4267
4267
|
}, "*");
|
|
4268
4268
|
});
|
|
4269
4269
|
}
|
|
4270
|
-
function
|
|
4270
|
+
function sn(t) {
|
|
4271
4271
|
return console.log("[JoliboxSDK] NewsBreak createProxyForPath basePath:", t), new Proxy(() => {
|
|
4272
4272
|
}, {
|
|
4273
4273
|
get(e, i) {
|
|
4274
4274
|
if (console.log("[JoliboxSDK] NewsBreak createProxyForPath get:", i), !(i === "then" || i === "toJSON" || typeof i == "symbol"))
|
|
4275
|
-
return
|
|
4275
|
+
return sn([...t, i]);
|
|
4276
4276
|
},
|
|
4277
4277
|
set(e, i, n) {
|
|
4278
|
-
return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:", i),
|
|
4278
|
+
return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:", i), pi([...t, i], "set", void 0, n).catch((r) => {
|
|
4279
4279
|
console.warn(`[ParentProxy] set ${[...t, i].join(".")} failed:`, r);
|
|
4280
4280
|
}), !0;
|
|
4281
4281
|
},
|
|
4282
4282
|
apply(e, i, n) {
|
|
4283
|
-
return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:", n),
|
|
4283
|
+
return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:", n), pi(t, "call", n);
|
|
4284
4284
|
}
|
|
4285
4285
|
});
|
|
4286
4286
|
}
|
|
4287
|
-
function
|
|
4288
|
-
return
|
|
4287
|
+
function ls(t) {
|
|
4288
|
+
return sn([t]);
|
|
4289
4289
|
}
|
|
4290
|
-
const
|
|
4290
|
+
const rt = () => {
|
|
4291
4291
|
try {
|
|
4292
4292
|
if (window.parent && window.parent !== window)
|
|
4293
|
-
return
|
|
4293
|
+
return ls("GameSDK");
|
|
4294
4294
|
} catch (t) {
|
|
4295
4295
|
}
|
|
4296
4296
|
};
|
|
4297
|
-
function
|
|
4298
|
-
return (e =
|
|
4297
|
+
function ge(t, e, i) {
|
|
4298
|
+
return (e = us(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4299
4299
|
}
|
|
4300
|
-
function
|
|
4301
|
-
var e =
|
|
4300
|
+
function us(t) {
|
|
4301
|
+
var e = cs(t, "string");
|
|
4302
4302
|
return typeof e == "symbol" ? e : e + "";
|
|
4303
4303
|
}
|
|
4304
|
-
function
|
|
4304
|
+
function cs(t, e) {
|
|
4305
4305
|
if (typeof t != "object" || !t)
|
|
4306
4306
|
return t;
|
|
4307
4307
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4313,11 +4313,11 @@ function us(t, e) {
|
|
|
4313
4313
|
}
|
|
4314
4314
|
return (e === "string" ? String : Number)(t);
|
|
4315
4315
|
}
|
|
4316
|
-
class
|
|
4316
|
+
class hs {
|
|
4317
4317
|
constructor() {
|
|
4318
|
-
|
|
4318
|
+
ge(this, "adsContext", null), ge(this, "_isReady", !1), ge(this, "_isAvailable", !1), ge(this, "init", async () => {
|
|
4319
4319
|
this._isReady = !1;
|
|
4320
|
-
const e =
|
|
4320
|
+
const e = rt();
|
|
4321
4321
|
if (e)
|
|
4322
4322
|
try {
|
|
4323
4323
|
if (this._isAvailable = await e.isAvailable("rewarded"), console.log("[JoliboxSDK] NewsBreak init isAvailable", this._isAvailable), !this._isAvailable)
|
|
@@ -4329,45 +4329,46 @@ class cs {
|
|
|
4329
4329
|
} catch (i) {
|
|
4330
4330
|
this._isReady = !1;
|
|
4331
4331
|
}
|
|
4332
|
-
}),
|
|
4332
|
+
}), ge(this, "destroy", (e) => {
|
|
4333
4333
|
var i, n;
|
|
4334
4334
|
this._isReady = !1, (n = (i = this.adsContext) == null ? void 0 : i.adBreakDone) == null || n.call(i, e), e !== "ignored" && (this.adsContext = null);
|
|
4335
|
-
}),
|
|
4335
|
+
}), ge(this, "reinit", async (e) => {
|
|
4336
4336
|
this.destroy(e), await this.init();
|
|
4337
|
-
}),
|
|
4337
|
+
}), ge(this, "requestAds", (e) => {
|
|
4338
4338
|
if (console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext", this.adsContext), this.adsContext) {
|
|
4339
4339
|
this.destroy("ignored");
|
|
4340
4340
|
return;
|
|
4341
4341
|
}
|
|
4342
4342
|
this.adsContext = e;
|
|
4343
|
-
const i =
|
|
4343
|
+
const i = rt();
|
|
4344
4344
|
if (console.log("[JoliboxSDK] NewsBreak newsbreak sdk", i), !i) {
|
|
4345
4345
|
this.destroy("notReady");
|
|
4346
4346
|
return;
|
|
4347
4347
|
}
|
|
4348
|
-
|
|
4348
|
+
const n = i.isRewardReady();
|
|
4349
|
+
if (console.log("[JoliboxSDK] NewsBreak sdk.isRewardReady", n), this._isReady || n)
|
|
4349
4350
|
this._isReady = !0, this.showAd();
|
|
4350
4351
|
else {
|
|
4351
|
-
const
|
|
4352
|
+
const r = window.setTimeout(() => {
|
|
4352
4353
|
this._isReady || this.reinit("timeout");
|
|
4353
4354
|
}, 5e3);
|
|
4354
4355
|
i.createRewardAd({
|
|
4355
4356
|
platform: "jolibox"
|
|
4356
|
-
}).then((
|
|
4357
|
-
clearTimeout(
|
|
4357
|
+
}).then((o) => {
|
|
4358
|
+
clearTimeout(r), o.success && o.ready ? (this._isReady = !0, this.showAd()) : this.reinit("noAdPreloaded");
|
|
4358
4359
|
}).catch(() => {
|
|
4359
|
-
clearTimeout(
|
|
4360
|
+
clearTimeout(r), this.reinit("noAdPreloaded");
|
|
4360
4361
|
});
|
|
4361
4362
|
}
|
|
4362
|
-
}),
|
|
4363
|
+
}), ge(this, "showAd", () => {
|
|
4363
4364
|
if (!this.adsContext) {
|
|
4364
4365
|
this.destroy("error");
|
|
4365
4366
|
return;
|
|
4366
4367
|
}
|
|
4367
4368
|
this.adsContext.beforeReward(async () => {
|
|
4368
|
-
var i, n, r, o, s, a, d, u, l, c, h, f,
|
|
4369
|
+
var i, n, r, o, s, a, d, u, l, c, h, f, v, y;
|
|
4369
4370
|
(n = (i = this.adsContext) == null ? void 0 : i.beforeAd) == null || n.call(i);
|
|
4370
|
-
const e =
|
|
4371
|
+
const e = rt();
|
|
4371
4372
|
if (!e) {
|
|
4372
4373
|
(o = (r = this.adsContext) == null ? void 0 : r.afterAd) == null || o.call(r), this.reinit("error");
|
|
4373
4374
|
return;
|
|
@@ -4380,20 +4381,20 @@ class cs {
|
|
|
4380
4381
|
}
|
|
4381
4382
|
w.rewardGranted ? ((d = this.adsContext) == null || d.adViewed(), (l = (u = this.adsContext) == null ? void 0 : u.afterAd) == null || l.call(u), this.reinit("viewed")) : ((c = this.adsContext) == null || c.adDismissed(), (f = (h = this.adsContext) == null ? void 0 : h.afterAd) == null || f.call(h), this.reinit("dismissed"));
|
|
4382
4383
|
} catch (w) {
|
|
4383
|
-
(
|
|
4384
|
+
(y = (v = this.adsContext) == null ? void 0 : v.afterAd) == null || y.call(v), this.reinit("error");
|
|
4384
4385
|
}
|
|
4385
4386
|
});
|
|
4386
4387
|
}), this.init();
|
|
4387
4388
|
}
|
|
4388
4389
|
}
|
|
4389
|
-
function
|
|
4390
|
-
return (e =
|
|
4390
|
+
function _i(t, e, i) {
|
|
4391
|
+
return (e = fs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4391
4392
|
}
|
|
4392
|
-
function
|
|
4393
|
-
var e =
|
|
4393
|
+
function fs(t) {
|
|
4394
|
+
var e = vs(t, "string");
|
|
4394
4395
|
return typeof e == "symbol" ? e : e + "";
|
|
4395
4396
|
}
|
|
4396
|
-
function
|
|
4397
|
+
function vs(t, e) {
|
|
4397
4398
|
if (typeof t != "object" || !t)
|
|
4398
4399
|
return t;
|
|
4399
4400
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4405,17 +4406,17 @@ function fs(t, e) {
|
|
|
4405
4406
|
}
|
|
4406
4407
|
return (e === "string" ? String : Number)(t);
|
|
4407
4408
|
}
|
|
4408
|
-
class
|
|
4409
|
+
class ys {
|
|
4409
4410
|
constructor() {
|
|
4410
|
-
|
|
4411
|
+
_i(this, "name", "NEWSBREAK"), _i(this, "rewardAdManager", void 0);
|
|
4411
4412
|
}
|
|
4412
4413
|
async init() {
|
|
4413
|
-
const e =
|
|
4414
|
+
const e = rt();
|
|
4414
4415
|
if (!e) {
|
|
4415
4416
|
console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");
|
|
4416
4417
|
return;
|
|
4417
4418
|
}
|
|
4418
|
-
e.onEnter(), this.rewardAdManager = new
|
|
4419
|
+
e.onEnter(), this.rewardAdManager = new hs();
|
|
4419
4420
|
}
|
|
4420
4421
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4421
4422
|
adConfig(e, i) {
|
|
@@ -4458,14 +4459,14 @@ class vs {
|
|
|
4458
4459
|
});
|
|
4459
4460
|
}
|
|
4460
4461
|
}
|
|
4461
|
-
function
|
|
4462
|
-
return (e =
|
|
4462
|
+
function te(t, e, i) {
|
|
4463
|
+
return (e = gs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4463
4464
|
}
|
|
4464
|
-
function
|
|
4465
|
-
var e =
|
|
4465
|
+
function gs(t) {
|
|
4466
|
+
var e = ws(t, "string");
|
|
4466
4467
|
return typeof e == "symbol" ? e : e + "";
|
|
4467
4468
|
}
|
|
4468
|
-
function
|
|
4469
|
+
function ws(t, e) {
|
|
4469
4470
|
if (typeof t != "object" || !t)
|
|
4470
4471
|
return t;
|
|
4471
4472
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4477,10 +4478,10 @@ function gs(t, e) {
|
|
|
4477
4478
|
}
|
|
4478
4479
|
return (e === "string" ? String : Number)(t);
|
|
4479
4480
|
}
|
|
4480
|
-
class
|
|
4481
|
+
class Zs {
|
|
4481
4482
|
constructor(e) {
|
|
4482
|
-
if (
|
|
4483
|
-
this.context = e, this.channelPolicy = new
|
|
4483
|
+
if (te(this, "context", void 0), te(this, "contextInfo", void 0), te(this, "providers", {}), te(this, "channelPolicy", void 0), te(this, "adsActionDetection", void 0), te(this, "requestContext", void 0), te(this, "adsRequest", void 0), te(this, "initialized", !1), te(this, "adsIsShowing", !1), te(this, "lastAdBreak", void 0), te(this, "initializedTimeStamp", Date.now()), e)
|
|
4484
|
+
this.context = e, this.channelPolicy = new rr(this.context), this.adsActionDetection = new tr(this.context), this.contextInfo = this.context.getContextInfo(), this.adsRequest = new rn(e), this.requestContext = new jt(e);
|
|
4484
4485
|
else
|
|
4485
4486
|
throw new Error("JoliboxAdsForGame requires a configuration object");
|
|
4486
4487
|
}
|
|
@@ -4505,39 +4506,39 @@ class Qs {
|
|
|
4505
4506
|
for (const a of s)
|
|
4506
4507
|
switch (a.provider) {
|
|
4507
4508
|
case "GOOGLE_GPT": {
|
|
4508
|
-
const d = new
|
|
4509
|
+
const d = new Go(this.context, a.params);
|
|
4509
4510
|
await d.init(), this.providers[a.provider] = d;
|
|
4510
4511
|
break;
|
|
4511
4512
|
}
|
|
4512
4513
|
case "ADSENSE":
|
|
4513
4514
|
case "ADSENSE_ADMOB": {
|
|
4514
|
-
const d = new
|
|
4515
|
+
const d = new ar(this.context, a.params);
|
|
4515
4516
|
await d.init(), this.providers[a.provider] = d;
|
|
4516
4517
|
break;
|
|
4517
4518
|
}
|
|
4518
4519
|
case "OKSPIN": {
|
|
4519
|
-
const d = new
|
|
4520
|
+
const d = new wo(this.context, a.params);
|
|
4520
4521
|
await d.init(), this.providers.OKSPIN = d;
|
|
4521
4522
|
break;
|
|
4522
4523
|
}
|
|
4523
4524
|
case "APPSROCKETS": {
|
|
4524
|
-
const d = new
|
|
4525
|
+
const d = new Lo(this.context, a.params);
|
|
4525
4526
|
await d.init(), this.providers.APPSROCKETS = d;
|
|
4526
4527
|
break;
|
|
4527
4528
|
}
|
|
4528
4529
|
case "ADSENSE_BANNER_AS_AFG": {
|
|
4529
|
-
const d = new
|
|
4530
|
+
const d = new Oo(this.context, a.params);
|
|
4530
4531
|
await d.init(), this.providers.ADSENSE_BANNER_AS_AFG = d;
|
|
4531
4532
|
break;
|
|
4532
4533
|
}
|
|
4533
4534
|
case "INTERNAL_NATIVE": {
|
|
4534
|
-
const d = new
|
|
4535
|
+
const d = new as(this.context, a.params);
|
|
4535
4536
|
await d.init(), this.providers.INTERNAL_NATIVE = d;
|
|
4536
4537
|
break;
|
|
4537
4538
|
}
|
|
4538
4539
|
case "NEWSBREAK": {
|
|
4539
4540
|
console.log("[JoliboxSDK] NewsBreak Provider", a);
|
|
4540
|
-
const d = new
|
|
4541
|
+
const d = new ys();
|
|
4541
4542
|
await d.init(), this.providers.NEWSBREAK = d;
|
|
4542
4543
|
break;
|
|
4543
4544
|
}
|
|
@@ -4549,7 +4550,7 @@ class Qs {
|
|
|
4549
4550
|
this.providers.ADSENSE ? this.providers.ADSENSE.adConfig(e) : window.adsbygoogle.push(e);
|
|
4550
4551
|
}
|
|
4551
4552
|
async adBreak(e) {
|
|
4552
|
-
var r, o, s, a, d, u, l, c, h, f,
|
|
4553
|
+
var r, o, s, a, d, u, l, c, h, f, v, y, w, g, A, S;
|
|
4553
4554
|
const i = Date.now();
|
|
4554
4555
|
if (i - this.initializedTimeStamp < 3e3) {
|
|
4555
4556
|
(r = e.adBreakDone) == null || r.call(e, {
|
|
@@ -4597,7 +4598,7 @@ class Qs {
|
|
|
4597
4598
|
return;
|
|
4598
4599
|
}
|
|
4599
4600
|
try {
|
|
4600
|
-
const
|
|
4601
|
+
const p = await this.adsRequest.getAFGAdsInfo(e.type), _ = p == null ? void 0 : p.data, E = p == null ? void 0 : p.code;
|
|
4601
4602
|
if (E === "BYPASS_ADS") {
|
|
4602
4603
|
switch (e.type) {
|
|
4603
4604
|
case "preroll": {
|
|
@@ -4610,8 +4611,8 @@ class Qs {
|
|
|
4610
4611
|
}
|
|
4611
4612
|
case "reward": {
|
|
4612
4613
|
e.beforeReward(() => {
|
|
4613
|
-
var
|
|
4614
|
-
(
|
|
4614
|
+
var b, ee, me, L;
|
|
4615
|
+
(b = e.beforeAd) == null || b.call(e), (ee = e.adViewed) == null || ee.call(e), (me = e.afterAd) == null || me.call(e), (L = e.adBreakDone) == null || L.call(e, {
|
|
4615
4616
|
breakType: e.type,
|
|
4616
4617
|
breakName: e.name,
|
|
4617
4618
|
breakFormat: "reward",
|
|
@@ -4632,7 +4633,7 @@ class Qs {
|
|
|
4632
4633
|
}
|
|
4633
4634
|
return;
|
|
4634
4635
|
}
|
|
4635
|
-
if (!
|
|
4636
|
+
if (!_ || E !== "SUCCESS") {
|
|
4636
4637
|
(f = e.adBreakDone) == null || f.call(e, {
|
|
4637
4638
|
breakType: e.type,
|
|
4638
4639
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
@@ -4641,8 +4642,8 @@ class Qs {
|
|
|
4641
4642
|
});
|
|
4642
4643
|
return;
|
|
4643
4644
|
} else {
|
|
4644
|
-
if (
|
|
4645
|
-
(
|
|
4645
|
+
if (_.length === 0) {
|
|
4646
|
+
(v = e.adBreakDone) == null || v.call(e, {
|
|
4646
4647
|
breakType: e.type,
|
|
4647
4648
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4648
4649
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
@@ -4650,40 +4651,40 @@ class Qs {
|
|
|
4650
4651
|
});
|
|
4651
4652
|
return;
|
|
4652
4653
|
}
|
|
4653
|
-
let
|
|
4654
|
-
const
|
|
4654
|
+
let b = !0, ee = null;
|
|
4655
|
+
const me = new Qn(this.context);
|
|
4655
4656
|
this.adsActionDetection.adBreakIsShowing = !0;
|
|
4656
|
-
const L =
|
|
4657
|
-
seq: (w = (
|
|
4657
|
+
const L = _.filter((I) => I.isNative).sort((I, X) => I.seq - X.seq), C = _.filter((I) => !I.isNative).sort((I, X) => I.seq - X.seq), W = {
|
|
4658
|
+
seq: (w = (y = L[0]) == null ? void 0 : y.seq) != null ? w : 0,
|
|
4658
4659
|
provider: "INTERNAL_NATIVE",
|
|
4659
4660
|
params: L
|
|
4660
4661
|
};
|
|
4661
4662
|
let q;
|
|
4662
|
-
for (L.length > 0 ? q = [W].concat(C) : q = C, q = q.sort((I,
|
|
4663
|
-
seq:
|
|
4663
|
+
for (L.length > 0 ? q = [W].concat(C) : q = C, q = q.sort((I, X) => I.seq - X.seq).map((I, X) => Wt(yt({}, I), {
|
|
4664
|
+
seq: X
|
|
4664
4665
|
// re-assign seq
|
|
4665
4666
|
})); q.length > 0; ) {
|
|
4666
|
-
const I = q.shift(),
|
|
4667
|
-
if (
|
|
4668
|
-
const [
|
|
4669
|
-
var
|
|
4670
|
-
this.adsIsShowing =
|
|
4667
|
+
const I = q.shift(), X = this.providers[I.provider];
|
|
4668
|
+
if (X) {
|
|
4669
|
+
const [an, dn] = await me.callAdBreakAndContinue(X, e, I, (Vt) => {
|
|
4670
|
+
var Gt;
|
|
4671
|
+
this.adsIsShowing = Vt, (Gt = this.context.eventEmitter) == null || Gt.emit("isAdShowing", Vt);
|
|
4671
4672
|
});
|
|
4672
|
-
|
|
4673
|
+
b = an, ee = dn;
|
|
4673
4674
|
} else
|
|
4674
|
-
|
|
4675
|
+
b = !0, ee = {
|
|
4675
4676
|
breakType: e.type,
|
|
4676
4677
|
breakName: e.type === "preroll" ? void 0 : e.name,
|
|
4677
4678
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4678
4679
|
breakStatus: "notReady"
|
|
4679
4680
|
};
|
|
4680
|
-
if (!
|
|
4681
|
+
if (!b)
|
|
4681
4682
|
break;
|
|
4682
4683
|
}
|
|
4683
|
-
|
|
4684
|
+
b && ee && ((g = e.adBreakDone) == null || g.call(e, ee));
|
|
4684
4685
|
}
|
|
4685
|
-
} catch (
|
|
4686
|
-
(
|
|
4686
|
+
} catch (p) {
|
|
4687
|
+
(A = e.adBreakDone) == null || A.call(e, {
|
|
4687
4688
|
breakType: e.type,
|
|
4688
4689
|
breakFormat: e.type === "reward" ? "reward" : "interstitial",
|
|
4689
4690
|
breakStatus: "noAdPreloaded"
|
|
@@ -4697,9 +4698,9 @@ class Qs {
|
|
|
4697
4698
|
}
|
|
4698
4699
|
}
|
|
4699
4700
|
function Xe(t, e, i) {
|
|
4700
|
-
return (e =
|
|
4701
|
+
return (e = As(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4701
4702
|
}
|
|
4702
|
-
function
|
|
4703
|
+
function As(t) {
|
|
4703
4704
|
var e = bs(t, "string");
|
|
4704
4705
|
return typeof e == "symbol" ? e : e + "";
|
|
4705
4706
|
}
|
|
@@ -4715,7 +4716,7 @@ function bs(t, e) {
|
|
|
4715
4716
|
}
|
|
4716
4717
|
return (e === "string" ? String : Number)(t);
|
|
4717
4718
|
}
|
|
4718
|
-
class
|
|
4719
|
+
class ps {
|
|
4719
4720
|
constructor(e) {
|
|
4720
4721
|
Xe(this, "context", void 0), Xe(this, "currentProvider", void 0), Xe(this, "continueCallback", void 0), Xe(this, "contextInfo", void 0), this.context = e, this.contextInfo = e.getContextInfo();
|
|
4721
4722
|
}
|
|
@@ -4738,7 +4739,7 @@ class As {
|
|
|
4738
4739
|
wrapAdPlaying(e) {
|
|
4739
4740
|
return (i) => {
|
|
4740
4741
|
var n, r;
|
|
4741
|
-
this.context.track("CallAFVPlaying", this.paramsToTrack),
|
|
4742
|
+
this.context.track("CallAFVPlaying", this.paramsToTrack), st() && this.context.track("mmp_ad_impression", {
|
|
4742
4743
|
ad_network: (r = (n = this.currentProvider) == null ? void 0 : n.name) != null ? r : "",
|
|
4743
4744
|
ad_format: "AFV",
|
|
4744
4745
|
module: "drama",
|
|
@@ -4766,14 +4767,14 @@ class As {
|
|
|
4766
4767
|
});
|
|
4767
4768
|
}
|
|
4768
4769
|
}
|
|
4769
|
-
function
|
|
4770
|
-
return (e =
|
|
4770
|
+
function Et(t, e, i) {
|
|
4771
|
+
return (e = _s(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4771
4772
|
}
|
|
4772
|
-
function
|
|
4773
|
-
var e =
|
|
4773
|
+
function _s(t) {
|
|
4774
|
+
var e = ms(t, "string");
|
|
4774
4775
|
return typeof e == "symbol" ? e : e + "";
|
|
4775
4776
|
}
|
|
4776
|
-
function
|
|
4777
|
+
function ms(t, e) {
|
|
4777
4778
|
if (typeof t != "object" || !t)
|
|
4778
4779
|
return t;
|
|
4779
4780
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4787,7 +4788,7 @@ function _s(t, e) {
|
|
|
4787
4788
|
}
|
|
4788
4789
|
class F extends Error {
|
|
4789
4790
|
constructor(e, i) {
|
|
4790
|
-
super(e.message),
|
|
4791
|
+
super(e.message), Et(this, "name", void 0), Et(this, "type", void 0), Et(this, "raw", void 0), this.name = "AFVRequestError", this.type = i, this.raw = e, this.stack = e.stack, this.message = e.message;
|
|
4791
4792
|
}
|
|
4792
4793
|
static from(e, i) {
|
|
4793
4794
|
switch (i) {
|
|
@@ -4799,13 +4800,13 @@ class F extends Error {
|
|
|
4799
4800
|
}
|
|
4800
4801
|
}
|
|
4801
4802
|
function O(t, e, i) {
|
|
4802
|
-
return (e =
|
|
4803
|
+
return (e = Ss(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
4803
4804
|
}
|
|
4804
|
-
function
|
|
4805
|
-
var e =
|
|
4805
|
+
function Ss(t) {
|
|
4806
|
+
var e = Es(t, "string");
|
|
4806
4807
|
return typeof e == "symbol" ? e : e + "";
|
|
4807
4808
|
}
|
|
4808
|
-
function
|
|
4809
|
+
function Es(t, e) {
|
|
4809
4810
|
if (typeof t != "object" || !t)
|
|
4810
4811
|
return t;
|
|
4811
4812
|
var i = t[Symbol.toPrimitive];
|
|
@@ -4817,11 +4818,11 @@ function Ss(t, e) {
|
|
|
4817
4818
|
}
|
|
4818
4819
|
return (e === "string" ? String : Number)(t);
|
|
4819
4820
|
}
|
|
4820
|
-
class
|
|
4821
|
+
class ks {
|
|
4821
4822
|
constructor(e, i, n) {
|
|
4822
4823
|
O(this, "adsLoader", void 0), O(this, "adDisplayContainer", void 0), O(this, "isAdPlaying", !1), O(this, "isContentFinished", !1), O(this, "videoContent", void 0), O(this, "adContainer", void 0), O(this, "adsManager", void 0), O(this, "intervalTimer", void 0), O(this, "completed", !1), O(this, "adTagUrl", void 0), O(this, "notifyRequestAd", void 0), O(this, "notifyLoaded", void 0), O(this, "notifyPlayingAd", void 0), O(this, "notifyCompleted", void 0), O(this, "notifyError", void 0), O(this, "destroy", () => {
|
|
4823
|
-
var r, o, s, a, d, u, l, c, h, f,
|
|
4824
|
-
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (
|
|
4824
|
+
var r, o, s, a, d, u, l, c, h, f, v;
|
|
4825
|
+
this.intervalTimer && clearInterval(this.intervalTimer), (r = this.adsManager) == null || r.stop(), (o = this.adDisplayContainer) == null || o.destroy(), (s = this.adsLoader) == null || s.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.onAdsManagerLoaded), (a = this.adsLoader) == null || a.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (d = this.adsManager) == null || d.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR, this.onAdError), (u = this.adsManager) == null || u.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this.onContentPauseRequested), (l = this.adsManager) == null || l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this.onContentResumeRequested), (c = this.adsManager) == null || c.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this.onAdEvent), (h = this.adsManager) == null || h.removeEventListener(window.google.ima.AdEvent.Type.LOADED, this.onAdEvent), (f = this.adsManager) == null || f.removeEventListener(window.google.ima.AdEvent.Type.STARTED, this.onAdEvent), (v = this.adsManager) == null || v.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE, this.onAdEvent);
|
|
4825
4826
|
}), O(this, "requestAds", async (r, o) => {
|
|
4826
4827
|
var l;
|
|
4827
4828
|
this.createAdDisplayContainer(), this.notifyRequestAd = r.onAdRequested, this.notifyLoaded = r.onAdLoaded, this.notifyPlayingAd = r.onAdPlaying, this.notifyCompleted = r.onAdCompleted, this.notifyError = (c) => {
|
|
@@ -4883,9 +4884,9 @@ class Es {
|
|
|
4883
4884
|
}), this.adTagUrl = e, this.videoContent = i, this.adContainer = n;
|
|
4884
4885
|
}
|
|
4885
4886
|
}
|
|
4886
|
-
var
|
|
4887
|
-
const
|
|
4888
|
-
const t = k(!1), e = k(!1), i = k(null), n =
|
|
4887
|
+
var ot = /* @__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))(ot || {});
|
|
4888
|
+
const Is = () => {
|
|
4889
|
+
const t = k(!1), e = k(!1), i = k(null), n = Jt(), r = Jt();
|
|
4889
4890
|
return {
|
|
4890
4891
|
visible: t,
|
|
4891
4892
|
canRetry: e,
|
|
@@ -4893,7 +4894,7 @@ const ks = () => {
|
|
|
4893
4894
|
videoRef: n,
|
|
4894
4895
|
adContainerRef: r
|
|
4895
4896
|
};
|
|
4896
|
-
},
|
|
4897
|
+
}, xs = G`
|
|
4897
4898
|
${M}
|
|
4898
4899
|
position: fixed;
|
|
4899
4900
|
left: 0;
|
|
@@ -4938,7 +4939,7 @@ const ks = () => {
|
|
|
4938
4939
|
cursor: pointer;
|
|
4939
4940
|
}
|
|
4940
4941
|
}
|
|
4941
|
-
`,
|
|
4942
|
+
`, Rs = (t) => {
|
|
4942
4943
|
let {
|
|
4943
4944
|
onReady: e,
|
|
4944
4945
|
state: i
|
|
@@ -4954,16 +4955,16 @@ const ks = () => {
|
|
|
4954
4955
|
r.value = null, o.value = !1;
|
|
4955
4956
|
}));
|
|
4956
4957
|
};
|
|
4957
|
-
return
|
|
4958
|
+
return Ce(() => {
|
|
4958
4959
|
e();
|
|
4959
|
-
}, [e]),
|
|
4960
|
-
className:
|
|
4960
|
+
}, [e]), m("div", {
|
|
4961
|
+
className: xs,
|
|
4961
4962
|
style: {
|
|
4962
4963
|
display: n.value ? "block" : "none"
|
|
4963
4964
|
},
|
|
4964
|
-
children:
|
|
4965
|
+
children: m("div", {
|
|
4965
4966
|
className: "ads-wrapper",
|
|
4966
|
-
children: [
|
|
4967
|
+
children: [m("video", {
|
|
4967
4968
|
ref: s,
|
|
4968
4969
|
width: "100%",
|
|
4969
4970
|
height: "100%",
|
|
@@ -4976,25 +4977,25 @@ const ks = () => {
|
|
|
4976
4977
|
animation: "none !important",
|
|
4977
4978
|
objectFit: "contain"
|
|
4978
4979
|
}
|
|
4979
|
-
}),
|
|
4980
|
+
}), m("div", {
|
|
4980
4981
|
id: "ad-container",
|
|
4981
4982
|
ref: a
|
|
4982
|
-
}), o.value ?
|
|
4983
|
+
}), o.value ? m("div", {
|
|
4983
4984
|
className: "retry-button",
|
|
4984
4985
|
onClick: d,
|
|
4985
|
-
children:
|
|
4986
|
+
children: m("svg", {
|
|
4986
4987
|
width: "64",
|
|
4987
4988
|
height: "64",
|
|
4988
4989
|
viewBox: "0 0 64 64",
|
|
4989
4990
|
fill: "none",
|
|
4990
4991
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4991
|
-
children: [
|
|
4992
|
+
children: [m("circle", {
|
|
4992
4993
|
cx: "32",
|
|
4993
4994
|
cy: "32",
|
|
4994
4995
|
r: "32",
|
|
4995
4996
|
fill: "#141416",
|
|
4996
4997
|
fillOpacity: "0.3"
|
|
4997
|
-
}),
|
|
4998
|
+
}), m("path", {
|
|
4998
4999
|
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",
|
|
4999
5000
|
fill: "white"
|
|
5000
5001
|
})]
|
|
@@ -5003,14 +5004,14 @@ const ks = () => {
|
|
|
5003
5004
|
})
|
|
5004
5005
|
});
|
|
5005
5006
|
};
|
|
5006
|
-
function
|
|
5007
|
-
return (e =
|
|
5007
|
+
function fe(t, e, i) {
|
|
5008
|
+
return (e = Ts(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5008
5009
|
}
|
|
5009
|
-
function
|
|
5010
|
-
var e =
|
|
5010
|
+
function Ts(t) {
|
|
5011
|
+
var e = Cs(t, "string");
|
|
5011
5012
|
return typeof e == "symbol" ? e : e + "";
|
|
5012
5013
|
}
|
|
5013
|
-
function
|
|
5014
|
+
function Cs(t, e) {
|
|
5014
5015
|
if (typeof t != "object" || !t)
|
|
5015
5016
|
return t;
|
|
5016
5017
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5022,9 +5023,9 @@ function Ts(t, e) {
|
|
|
5022
5023
|
}
|
|
5023
5024
|
return (e === "string" ? String : Number)(t);
|
|
5024
5025
|
}
|
|
5025
|
-
class
|
|
5026
|
+
class Os {
|
|
5026
5027
|
constructor(e) {
|
|
5027
|
-
|
|
5028
|
+
fe(this, "name", "GOOGLE_IMA"), fe(this, "context", void 0), fe(this, "adsOverlay", null), fe(this, "initialized", !1), fe(this, "ima", null), fe(this, "state", Is()), fe(this, "init", async (i) => {
|
|
5028
5029
|
if (this.initialized)
|
|
5029
5030
|
return;
|
|
5030
5031
|
const n = "//imasdk.googleapis.com/js/sdkloader/ima3.js";
|
|
@@ -5040,16 +5041,16 @@ class Cs {
|
|
|
5040
5041
|
}, s.onerror = o, document.head.appendChild(s);
|
|
5041
5042
|
}
|
|
5042
5043
|
}), this.adsOverlay = document.createElement("div"), this.adsOverlay.id = "jolibox-ima-overlay", document.documentElement.appendChild(this.adsOverlay), await new Promise((r, o) => {
|
|
5043
|
-
|
|
5044
|
+
ye(m(Rs, {
|
|
5044
5045
|
state: this.state,
|
|
5045
5046
|
onReady: () => {
|
|
5046
|
-
this.ima = new
|
|
5047
|
+
this.ima = new ks(i.params.url, this.state.videoRef.current, this.state.adContainerRef.current), r();
|
|
5047
5048
|
}
|
|
5048
5049
|
}), this.adsOverlay);
|
|
5049
5050
|
}), this.initialized = !0;
|
|
5050
|
-
}),
|
|
5051
|
-
this.adsOverlay && (
|
|
5052
|
-
}),
|
|
5051
|
+
}), fe(this, "destroy", () => {
|
|
5052
|
+
this.adsOverlay && (ye(null, this.adsOverlay), this.adsOverlay.remove()), this.ima && this.ima.destroy(), this.initialized = !1;
|
|
5053
|
+
}), fe(this, "requestAd", (i, n) => {
|
|
5053
5054
|
var u;
|
|
5054
5055
|
if (!this.adsOverlay || !this.ima || !this.initialized) {
|
|
5055
5056
|
const l = F.from(new Error("IMA not initialized"), "JOLIBOX_IMA_ERROR");
|
|
@@ -5063,9 +5064,9 @@ class Cs {
|
|
|
5063
5064
|
var h;
|
|
5064
5065
|
let c = !1;
|
|
5065
5066
|
switch (l.raw.getErrorCode()) {
|
|
5066
|
-
case
|
|
5067
|
-
case
|
|
5068
|
-
case
|
|
5067
|
+
case ot.AUTOPLAY_DISALLOWED:
|
|
5068
|
+
case ot.VIDEO_PLAY_ERROR:
|
|
5069
|
+
case ot.ADS_REQUEST_NETWORK_ERROR: {
|
|
5069
5070
|
c = !0;
|
|
5070
5071
|
break;
|
|
5071
5072
|
}
|
|
@@ -5097,14 +5098,14 @@ class Cs {
|
|
|
5097
5098
|
}), this.context = e;
|
|
5098
5099
|
}
|
|
5099
5100
|
}
|
|
5100
|
-
function
|
|
5101
|
-
return (e =
|
|
5101
|
+
function re(t, e, i) {
|
|
5102
|
+
return (e = Ds(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5102
5103
|
}
|
|
5103
|
-
function
|
|
5104
|
-
var e =
|
|
5104
|
+
function Ds(t) {
|
|
5105
|
+
var e = Ps(t, "string");
|
|
5105
5106
|
return typeof e == "symbol" ? e : e + "";
|
|
5106
5107
|
}
|
|
5107
|
-
function
|
|
5108
|
+
function Ps(t, e) {
|
|
5108
5109
|
if (typeof t != "object" || !t)
|
|
5109
5110
|
return t;
|
|
5110
5111
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5116,17 +5117,17 @@ function Ds(t, e) {
|
|
|
5116
5117
|
}
|
|
5117
5118
|
return (e === "string" ? String : Number)(t);
|
|
5118
5119
|
}
|
|
5119
|
-
class
|
|
5120
|
+
class Ns {
|
|
5120
5121
|
constructor(e) {
|
|
5121
|
-
|
|
5122
|
+
re(this, "name", "OKSPIN"), re(this, "initialized", !1), re(this, "initCompleter", null), re(this, "context", void 0), re(this, "adsOverlay", null), re(this, "adsIsShowing", !1), re(this, "state", Xi()), re(this, "init", async (i) => {
|
|
5122
5123
|
var n;
|
|
5123
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"),
|
|
5124
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv"), ye(m(Qi, {
|
|
5124
5125
|
state: this.state
|
|
5125
5126
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
5126
|
-
}),
|
|
5127
|
+
}), re(this, "destroy", () => {
|
|
5127
5128
|
var i;
|
|
5128
|
-
this.adsOverlay && (
|
|
5129
|
-
}),
|
|
5129
|
+
this.adsOverlay && (ye(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
5130
|
+
}), re(this, "requestAd", (i, n) => {
|
|
5130
5131
|
var s, a, d, u;
|
|
5131
5132
|
if (!this.adsOverlay || !this.initialized) {
|
|
5132
5133
|
(s = i.onAdError) == null || s.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
@@ -5151,14 +5152,14 @@ class Ps {
|
|
|
5151
5152
|
}), this.context = e;
|
|
5152
5153
|
}
|
|
5153
5154
|
}
|
|
5154
|
-
function
|
|
5155
|
-
return (e =
|
|
5155
|
+
function ie(t, e, i) {
|
|
5156
|
+
return (e = Ls(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5156
5157
|
}
|
|
5157
|
-
function
|
|
5158
|
-
var e =
|
|
5158
|
+
function Ls(t) {
|
|
5159
|
+
var e = Bs(t, "string");
|
|
5159
5160
|
return typeof e == "symbol" ? e : e + "";
|
|
5160
5161
|
}
|
|
5161
|
-
function
|
|
5162
|
+
function Bs(t, e) {
|
|
5162
5163
|
if (typeof t != "object" || !t)
|
|
5163
5164
|
return t;
|
|
5164
5165
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5170,21 +5171,21 @@ function Ls(t, e) {
|
|
|
5170
5171
|
}
|
|
5171
5172
|
return (e === "string" ? String : Number)(t);
|
|
5172
5173
|
}
|
|
5173
|
-
class
|
|
5174
|
+
class Ms {
|
|
5174
5175
|
constructor(e) {
|
|
5175
|
-
|
|
5176
|
+
ie(this, "name", "APPSROCKETS"), ie(this, "initialized", !1), ie(this, "initCompleter", null), ie(this, "context", void 0), ie(this, "adsOverlay", null), ie(this, "adsIsShowing", !1), ie(this, "state", Zi()), ie(this, "processUrl", (i) => {
|
|
5176
5177
|
var s;
|
|
5177
5178
|
const n = this.context.getContextInfo(), r = new URL(i), o = new URLSearchParams(r.search);
|
|
5178
5179
|
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()), o.get("adsType") || o.set("adsType", "REWARD_INTERSTITIAL"), r.search = o.toString(), r.toString();
|
|
5179
|
-
}),
|
|
5180
|
+
}), ie(this, "init", async (i) => {
|
|
5180
5181
|
var n;
|
|
5181
|
-
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"),
|
|
5182
|
+
this.initialized || (this.adsOverlay = document.createElement("div"), this.adsOverlay.setAttribute("data-placement-info", "afv-appsrockets"), ye(m(en, {
|
|
5182
5183
|
state: this.state
|
|
5183
5184
|
}), this.adsOverlay), document.documentElement.appendChild(this.adsOverlay), this.initialized = !0, (n = this.initCompleter) == null || n.call(this));
|
|
5184
|
-
}),
|
|
5185
|
+
}), ie(this, "destroy", () => {
|
|
5185
5186
|
var i;
|
|
5186
|
-
this.adsOverlay && (
|
|
5187
|
-
}),
|
|
5187
|
+
this.adsOverlay && (ye(null, this.adsOverlay), (i = this.adsOverlay) == null || i.remove()), this.initialized = !1;
|
|
5188
|
+
}), ie(this, "requestAd", (i, n) => {
|
|
5188
5189
|
var d, u, l, c;
|
|
5189
5190
|
if (!this.adsOverlay || !this.initialized) {
|
|
5190
5191
|
(d = i.onAdError) == null || d.call(i, F.from(new Error("Ads not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
@@ -5202,8 +5203,8 @@ class Bs {
|
|
|
5202
5203
|
var h;
|
|
5203
5204
|
(h = i.onAdLoaded) == null || h.call(i, void 0);
|
|
5204
5205
|
}, s = (h) => {
|
|
5205
|
-
var f,
|
|
5206
|
-
(
|
|
5206
|
+
var f, v;
|
|
5207
|
+
(v = (f = this.context).handleLinkClicked) == null || v.call(f, h);
|
|
5207
5208
|
}, a = () => {
|
|
5208
5209
|
var h;
|
|
5209
5210
|
(h = i.onAdError) == null || h.call(i, F.from(new Error("Ads load error"), "JOLIBOX_IMA_ERROR"));
|
|
@@ -5214,14 +5215,14 @@ class Bs {
|
|
|
5214
5215
|
}), this.context = e;
|
|
5215
5216
|
}
|
|
5216
5217
|
}
|
|
5217
|
-
function
|
|
5218
|
-
return (e =
|
|
5218
|
+
function we(t, e, i) {
|
|
5219
|
+
return (e = $s(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5219
5220
|
}
|
|
5220
|
-
function
|
|
5221
|
-
var e =
|
|
5221
|
+
function $s(t) {
|
|
5222
|
+
var e = Fs(t, "string");
|
|
5222
5223
|
return typeof e == "symbol" ? e : e + "";
|
|
5223
5224
|
}
|
|
5224
|
-
function
|
|
5225
|
+
function Fs(t, e) {
|
|
5225
5226
|
if (typeof t != "object" || !t)
|
|
5226
5227
|
return t;
|
|
5227
5228
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5233,24 +5234,24 @@ function $s(t, e) {
|
|
|
5233
5234
|
}
|
|
5234
5235
|
return (e === "string" ? String : Number)(t);
|
|
5235
5236
|
}
|
|
5236
|
-
class
|
|
5237
|
+
class Us {
|
|
5237
5238
|
constructor(e) {
|
|
5238
|
-
|
|
5239
|
+
we(this, "name", "GOOGLE_GPT"), we(this, "context", void 0), we(this, "contextInfo", void 0), we(this, "rewardAdManager", void 0), we(this, "init", async (i) => {
|
|
5239
5240
|
if (!this.rewardAdManager) {
|
|
5240
5241
|
const n = this.contextInfo.testAdsMode ? "/22639388115/rewarded_web_example" : i.params.rewardedSlot, o = `minidrama-${this.contextInfo.runtimeType === "APP" ? "app" : "h5"}`;
|
|
5241
|
-
this.rewardAdManager = new
|
|
5242
|
+
this.rewardAdManager = new nn(n, o, i.params.keyValue);
|
|
5242
5243
|
}
|
|
5243
|
-
}),
|
|
5244
|
+
}), we(this, "insertScript", () => {
|
|
5244
5245
|
const i = "jolibox-google-gpt";
|
|
5245
5246
|
let n = document.getElementById(i);
|
|
5246
5247
|
n || (n = window.document.createElement("script"), n.id = i, n.async = !0, n.src = "https://securepubads.g.doubleclick.net/tag/js/gpt.js", n.crossOrigin = "anonymous", document.head.appendChild(n));
|
|
5247
|
-
}),
|
|
5248
|
+
}), we(this, "destroy", () => {
|
|
5248
5249
|
var i;
|
|
5249
5250
|
(i = this.rewardAdManager) == null || i.withCommand(() => {
|
|
5250
5251
|
var n;
|
|
5251
5252
|
(n = this.rewardAdManager) == null || n.destroy("ignored");
|
|
5252
5253
|
});
|
|
5253
|
-
}),
|
|
5254
|
+
}), we(this, "requestAd", (i, n) => {
|
|
5254
5255
|
var r;
|
|
5255
5256
|
if (!this.rewardAdManager) {
|
|
5256
5257
|
(r = i.onAdError) == null || r.call(i, F.from(new Error("rewardAdManager not initialized"), "JOLIBOX_IMA_ERROR"));
|
|
@@ -5285,14 +5286,14 @@ class Fs {
|
|
|
5285
5286
|
}), this.context = e, this.contextInfo = e.getContextInfo(), this.insertScript();
|
|
5286
5287
|
}
|
|
5287
5288
|
}
|
|
5288
|
-
function
|
|
5289
|
-
return (e =
|
|
5289
|
+
function oe(t, e, i) {
|
|
5290
|
+
return (e = js(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5290
5291
|
}
|
|
5291
|
-
function
|
|
5292
|
-
var e =
|
|
5292
|
+
function js(t) {
|
|
5293
|
+
var e = Vs(t, "string");
|
|
5293
5294
|
return typeof e == "symbol" ? e : e + "";
|
|
5294
5295
|
}
|
|
5295
|
-
function
|
|
5296
|
+
function Vs(t, e) {
|
|
5296
5297
|
if (typeof t != "object" || !t)
|
|
5297
5298
|
return t;
|
|
5298
5299
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5304,10 +5305,10 @@ function js(t, e) {
|
|
|
5304
5305
|
}
|
|
5305
5306
|
return (e === "string" ? String : Number)(t);
|
|
5306
5307
|
}
|
|
5307
|
-
class
|
|
5308
|
+
class ve {
|
|
5308
5309
|
constructor(e) {
|
|
5309
|
-
if (
|
|
5310
|
-
this.context = e, this.requestContext = new
|
|
5310
|
+
if (oe(this, "context", void 0), oe(this, "contextInfo", void 0), oe(this, "providers", {}), oe(this, "requestContext", void 0), oe(this, "adsRequest", void 0), oe(this, "initialized", !1), oe(this, "preloadedAd", null), oe(this, "shouldCache", !1), e)
|
|
5311
|
+
this.context = e, this.requestContext = new jt(e), this.adsRequest = new rn(e, {
|
|
5311
5312
|
reward: !1,
|
|
5312
5313
|
interstitial: !1,
|
|
5313
5314
|
afv: !1
|
|
@@ -5316,40 +5317,75 @@ class Zs {
|
|
|
5316
5317
|
throw new Error("JoliboxAdsForVideo requires a configuration object");
|
|
5317
5318
|
}
|
|
5318
5319
|
async init() {
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5320
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i;
|
|
5321
|
+
const n = sessionStorage.getItem(ve.STORAGE_KEY_INIT);
|
|
5322
|
+
if (n) {
|
|
5323
|
+
sessionStorage.removeItem(ve.STORAGE_KEY_INIT);
|
|
5324
|
+
try {
|
|
5325
|
+
i = JSON.parse(n);
|
|
5326
|
+
} catch (r) {
|
|
5327
|
+
}
|
|
5328
|
+
}
|
|
5329
|
+
if (i != null && i.length || (i = (await this.context.httpClient.post("/api/ads/init", {
|
|
5322
5330
|
data: {
|
|
5323
5331
|
contextData: this.requestContext.getRequestContextData("AdsAFVSDKInit"),
|
|
5324
5332
|
bizParams: this.requestContext.getRequestBizParams(),
|
|
5325
5333
|
testAdsMode: this.contextInfo.testAdsMode
|
|
5326
5334
|
}
|
|
5327
|
-
})
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5335
|
+
})).data), e && (i != null && i.length))
|
|
5336
|
+
try {
|
|
5337
|
+
sessionStorage.setItem(ve.STORAGE_KEY_INIT, JSON.stringify(i));
|
|
5338
|
+
} catch (r) {
|
|
5339
|
+
}
|
|
5340
|
+
if ((i == null ? void 0 : i.length) > 0)
|
|
5341
|
+
for (const r of i)
|
|
5342
|
+
switch (r.provider) {
|
|
5331
5343
|
case "GOOGLE_GPT": {
|
|
5332
|
-
const
|
|
5333
|
-
await
|
|
5344
|
+
const o = new Us(this.context);
|
|
5345
|
+
await o.init(r), this.providers.GOOGLE_GPT = o;
|
|
5334
5346
|
break;
|
|
5335
5347
|
}
|
|
5336
5348
|
case "GOOGLE_IMA": {
|
|
5337
|
-
const
|
|
5338
|
-
await
|
|
5349
|
+
const o = new Os(this.context);
|
|
5350
|
+
await o.init(r), this.providers.GOOGLE_IMA = o;
|
|
5339
5351
|
break;
|
|
5340
5352
|
}
|
|
5341
5353
|
case "OKSPIN": {
|
|
5342
|
-
const
|
|
5343
|
-
await
|
|
5354
|
+
const o = new Ns(this.context);
|
|
5355
|
+
await o.init(r), this.providers.OKSPIN = o;
|
|
5344
5356
|
break;
|
|
5345
5357
|
}
|
|
5346
5358
|
case "APPSROCKETS": {
|
|
5347
|
-
const
|
|
5348
|
-
await
|
|
5359
|
+
const o = new Ms(this.context);
|
|
5360
|
+
await o.init(r), this.providers.APPSROCKETS = o;
|
|
5349
5361
|
break;
|
|
5350
5362
|
}
|
|
5351
5363
|
}
|
|
5352
|
-
this.adsRequest.cacheAFVInfo(), this.initialized = !0;
|
|
5364
|
+
this.adsRequest.cacheAFVInfo(), this.initialized = !0, this.shouldCache = e, this.preload();
|
|
5365
|
+
}
|
|
5366
|
+
/**
|
|
5367
|
+
* Preload ads info and resolve provider options in advance.
|
|
5368
|
+
* If preload fails, requestAd() will fall back to the normal flow.
|
|
5369
|
+
*/
|
|
5370
|
+
preload() {
|
|
5371
|
+
const e = sessionStorage.getItem(ve.STORAGE_KEY_INFO);
|
|
5372
|
+
if (e) {
|
|
5373
|
+
sessionStorage.removeItem(ve.STORAGE_KEY_INFO);
|
|
5374
|
+
try {
|
|
5375
|
+
this.preloadedAd = JSON.parse(e);
|
|
5376
|
+
return;
|
|
5377
|
+
} catch (i) {
|
|
5378
|
+
}
|
|
5379
|
+
}
|
|
5380
|
+
this.adsRequest.getAFVAdsInfo(!0).then((i) => {
|
|
5381
|
+
if (console.log("[JoliboxSDK] afv preload adsInfo:", i), this.preloadedAd = i, this.shouldCache && i)
|
|
5382
|
+
try {
|
|
5383
|
+
sessionStorage.setItem(ve.STORAGE_KEY_INFO, JSON.stringify(i));
|
|
5384
|
+
} catch (n) {
|
|
5385
|
+
}
|
|
5386
|
+
}).catch(() => {
|
|
5387
|
+
this.preloadedAd = null;
|
|
5388
|
+
});
|
|
5353
5389
|
}
|
|
5354
5390
|
/**
|
|
5355
5391
|
* Destroy all providers and reset the initialized state.
|
|
@@ -5358,62 +5394,67 @@ class Zs {
|
|
|
5358
5394
|
const e = Object.values(this.providers);
|
|
5359
5395
|
for (const i of e)
|
|
5360
5396
|
i.destroy();
|
|
5361
|
-
this.initialized = !1;
|
|
5397
|
+
this.initialized = !1, this.preloadedAd = null;
|
|
5362
5398
|
}
|
|
5363
5399
|
async requestAd(e) {
|
|
5364
|
-
var i, n, r, o, s, a, d, u, l, c, h;
|
|
5400
|
+
var i, n, r, o, s, a, d, u, l, c, h, f;
|
|
5365
5401
|
if ((i = this.context.eventEmitter) == null || i.emit("isAdShowing", !0), this.initialized || await this.init(), !this.context.checkNetwork()) {
|
|
5366
|
-
const
|
|
5367
|
-
(n = e.onAdError) == null || n.call(e,
|
|
5402
|
+
const v = F.from(new Error("No network connection"), "JOLIBOX_IMA_ERROR");
|
|
5403
|
+
(n = e.onAdError) == null || n.call(e, v);
|
|
5368
5404
|
return;
|
|
5369
5405
|
}
|
|
5370
5406
|
try {
|
|
5371
|
-
|
|
5407
|
+
console.log("[JoliboxSDK] requestAd this.preloadedAd:", this.preloadedAd);
|
|
5408
|
+
const v = (r = this.preloadedAd) != null ? r : await this.adsRequest.getAFVAdsInfo(!0);
|
|
5409
|
+
this.preloadedAd = null;
|
|
5410
|
+
const y = v == null ? void 0 : v.code, w = v == null ? void 0 : v.data;
|
|
5372
5411
|
if (y === "BYPASS_ADS") {
|
|
5373
|
-
(
|
|
5412
|
+
(o = e.onAdRequested) == null || o.call(e), (s = e.onAdLoaded) == null || s.call(e, void 0), (a = e.onAdPlaying) == null || a.call(e, void 0), (d = e.onAdCompleted) == null || d.call(e, void 0);
|
|
5374
5413
|
return;
|
|
5375
5414
|
}
|
|
5376
|
-
if (
|
|
5377
|
-
const
|
|
5378
|
-
if (
|
|
5379
|
-
const
|
|
5380
|
-
(
|
|
5415
|
+
if (w) {
|
|
5416
|
+
const g = w.sort((_, E) => _.seq - E.seq);
|
|
5417
|
+
if (g.length === 0) {
|
|
5418
|
+
const _ = F.from(new Error("No ads available"), "JOLIBOX_IMA_ERROR");
|
|
5419
|
+
(l = e.onAdError) == null || l.call(e, _);
|
|
5381
5420
|
return;
|
|
5382
5421
|
}
|
|
5383
|
-
let
|
|
5384
|
-
const
|
|
5385
|
-
for (;
|
|
5386
|
-
const
|
|
5387
|
-
if (
|
|
5388
|
-
const [
|
|
5389
|
-
|
|
5422
|
+
let A = !0, S = null;
|
|
5423
|
+
const p = new ps(this.context);
|
|
5424
|
+
for (; g.length > 0; ) {
|
|
5425
|
+
const _ = g.shift(), E = this.providers[_.provider];
|
|
5426
|
+
if (E) {
|
|
5427
|
+
const [b, ee] = await p.callAdRequestAndContinue(E, e, _);
|
|
5428
|
+
A = b, S = ee;
|
|
5390
5429
|
} else
|
|
5391
|
-
|
|
5392
|
-
if (!
|
|
5430
|
+
A = !0, S = F.from(new Error("No provider available"), "JOLIBOX_IMA_ERROR");
|
|
5431
|
+
if (!A)
|
|
5393
5432
|
break;
|
|
5394
5433
|
}
|
|
5395
|
-
|
|
5434
|
+
A && S && ((c = e.onAdError) == null || c.call(e, S));
|
|
5396
5435
|
} else {
|
|
5397
|
-
const
|
|
5398
|
-
(
|
|
5436
|
+
const g = F.from(new Error("Unknown error"), "JOLIBOX_IMA_ERROR");
|
|
5437
|
+
(u = e.onAdError) == null || u.call(e, g);
|
|
5399
5438
|
return;
|
|
5400
5439
|
}
|
|
5401
|
-
} catch (
|
|
5440
|
+
} catch (v) {
|
|
5402
5441
|
const y = F.from(new Error("Failed to request ad"), "JOLIBOX_IMA_ERROR");
|
|
5403
|
-
(
|
|
5442
|
+
(h = e.onAdError) == null || h.call(e, y);
|
|
5404
5443
|
} finally {
|
|
5405
|
-
(
|
|
5444
|
+
(f = this.context.eventEmitter) == null || f.emit("isAdShowing", !1), this.preload();
|
|
5406
5445
|
}
|
|
5407
5446
|
}
|
|
5408
5447
|
}
|
|
5409
|
-
|
|
5410
|
-
|
|
5448
|
+
oe(ve, "STORAGE_KEY_INIT", "jolibox_afv_init_data");
|
|
5449
|
+
oe(ve, "STORAGE_KEY_INFO", "jolibox_afv_info_data");
|
|
5450
|
+
function ke(t, e, i) {
|
|
5451
|
+
return (e = Gs(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
5411
5452
|
}
|
|
5412
|
-
function
|
|
5413
|
-
var e =
|
|
5453
|
+
function Gs(t) {
|
|
5454
|
+
var e = qs(t, "string");
|
|
5414
5455
|
return typeof e == "symbol" ? e : e + "";
|
|
5415
5456
|
}
|
|
5416
|
-
function
|
|
5457
|
+
function qs(t, e) {
|
|
5417
5458
|
if (typeof t != "object" || !t)
|
|
5418
5459
|
return t;
|
|
5419
5460
|
var i = t[Symbol.toPrimitive];
|
|
@@ -5427,19 +5468,19 @@ function Gs(t, e) {
|
|
|
5427
5468
|
}
|
|
5428
5469
|
class ea extends Error {
|
|
5429
5470
|
constructor(e) {
|
|
5430
|
-
super(e),
|
|
5471
|
+
super(e), ke(this, "name", void 0), ke(this, "message", void 0), ke(this, "errMsg", void 0), ke(this, "code", void 0), ke(this, "data", void 0), ke(this, "extra", void 0), this.name = "ResponseError", this.message = e, this.errMsg = e;
|
|
5431
5472
|
}
|
|
5432
5473
|
}
|
|
5433
5474
|
export {
|
|
5434
5475
|
F as AFVWrappedError,
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5476
|
+
ar as GoogleAdSenseProvider,
|
|
5477
|
+
Os as GoogleIMAProvider,
|
|
5478
|
+
Uo as InterstitialAdManager,
|
|
5479
|
+
Zs as JoliboxAdsForGame,
|
|
5480
|
+
ve as JoliboxAdsForVideo,
|
|
5481
|
+
wo as OKSpinForGameProvider,
|
|
5482
|
+
Ns as OKSpinForVideoProvider,
|
|
5442
5483
|
ea as ResponseError,
|
|
5443
|
-
|
|
5444
|
-
|
|
5484
|
+
nn as RewardAdManager,
|
|
5485
|
+
tn as initGPTServices
|
|
5445
5486
|
};
|